"use strict";this.default_b=this.default_b||{};(function(__){var window=this;
try{
var g,baa=function(a){if(a!==aaa)throw Error("r");},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},ba=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])},da=function(){var a=ca.navigator;return a&&(a=a.userAgent)?a:""},fa=function(a){return ea(da(),a)},caa=function(){return fa("Trident")||
fa("MSIE")},ia=function(){return fa("Firefox")||fa("FxiOS")},daa=function(){return fa("Safari")&&!(ja()||fa("Coast")||fa("Opera")||fa("Edge")||fa("Edg/")||fa("OPR")||ia()||fa("Silk")||fa("Android"))},ja=function(){return(fa("Chrome")||fa("CriOS"))&&!fa("Edge")||fa("Silk")},eaa=function(){return fa("Android")&&!(ja()||ia()||fa("Opera")||fa("Silk"))},faa=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})]||""}},gaa=function(a){var b=
da();if("Internet Explorer"===a){if(caa())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=faa(c);switch(a){case "Opera":if(fa("Opera"))return b(["Version",
"Opera"]);if(fa("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(fa("Edge"))return b(["Edge"]);if(fa("Edg/"))return b(["Edg"]);break;case "Chromium":if(ja())return b(["Chrome","CriOS","HeadlessChrome"])}return"Firefox"===a&&ia()||"Safari"===a&&daa()||"Android Browser"===a&&eaa()||"Silk"===a&&fa("Silk")?(b=c[2])&&b[1]||"":""},la=function(a){a=gaa(a);if(""===a)return NaN;a=a.split(".");return 0===a.length?NaN:Number(a[0])},ma=function(){return fa("iPhone")&&!fa("iPod")&&!fa("iPad")},na=function(){return ma()||
fa("iPad")||fa("iPod")},haa=function(){var a=da(),b="";fa("Windows")?(b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0"):na()?(b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".")):fa("Macintosh")?(b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10"):oa(da(),"KaiOS")?(b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1]):fa("Android")?(b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1]):fa("CrOS")&&(b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,b=(a=b.exec(a))&&
a[1]);return 0<=pa(b||"",12)},qa=function(a){return a[a.length-1]},iaa=function(a,b){var c=0;sa(a,function(d,e,f){b.call(void 0,d,e,f)&&++c});return c},kaa=function(a){for(var b=jaa,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},ua=function(a,b){return 0<=ta(a,b)},wa=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0},ya=function(a,b){b=ta(a,b);var c;(c=0<=b)&&xa(a,b);return c},xa=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&&xa(a,b)},Aa=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[]},laa=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(Ea(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)}},naa=function(a,b,c,d){return Array.prototype.splice.apply(a,maa(arguments,
1))},maa=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},Ha=function(a,b,c){b=b||a;var d=function(q){return Fa(q)?"o"+Ga(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},Ka=function(a,b){a.sort(b||oaa)},paa=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||oaa;Ka(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},oaa=function(a,b){return a>b?1:a<b?-1:0},qaa=function(){for(var a=[],b=0;5>b;b+=1)a.push(b);return a},raa=function(a,b,c){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,c,0,b[0])},taa=function(a){if(null==a||Ma(a))return a;if("string"===typeof a)return saa(a);Na(a);return null},Ma=function(a){return Oa&&null!=a&&a instanceof Uint8Array},uaa=function(a){if(a!==Pa)throw Error("u");},vaa=function(a,b){Object.isFrozen(a)||
(Qa?a[Qa]|=b:void 0!==a.internalArrayState?a.internalArrayState|=b:Object.defineProperties(a,{internalArrayState:{value:b,configurable:!0,writable:!0,enumerable:!1}}))},waa=function(a){var b;Qa?b=a[Qa]:b=a.internalArrayState;return null==b?0:b},xaa=function(a){return Array.isArray(a)?!!(waa(a)&1):!1},Ra=function(a){vaa(a,1);return a},Ta=function(a){return Array.isArray(a)?!!(waa(a)&2):!1},Ua=function(a){if(!Array.isArray(a))throw Error("w");vaa(a,2)},yaa=function(a){return null!==a&&"object"===typeof a&&
!Array.isArray(a)&&a.constructor===Object},ab=function(a){if(null==a)return Wa();if(a.constructor===Za)return a;if("string"===typeof a)return a?new Za(a,Pa):Wa();if(Ma(a))return a.length?new Za(new Uint8Array(a),Pa):Wa();Na(a);return Wa()},zaa=function(a){a instanceof Za&&(uaa(Pa),a=a.value_||"");return a},Aaa=function(a){return Array.isArray(a)&&xaa(a)&&!a.length},Baa=function(a){return{value:a,configurable:!1,writable:!1,enumerable:!1}},bb=function(a){ca.setTimeout(function(){throw a;},0)},Caa=
function(a,b,c){c=void 0===c?!1:c;if(Array.isArray(a))return new b(a);if(c)return new b},Eaa=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(!Daa(a,f,a[f],b,f,b[f]))return!1;return!0},Faa=function(a){return a&&"object"===typeof a?a.internalArray_||a:a},Haa=function(a,b){return null!=b&&Gaa(a.toArrayInternal(),b.toArrayInternal())},Iaa=function(a,b,c,d){if(null==d)d=[];else if(!Array.isArray(d))return null;return b[c]=new cb(d,a.valueCtor)},Daa=function(a,
b,c,d,e,f){c=zaa(c);f=zaa(f);c=Faa(c);f=Faa(f);if(c==f)return!0;if(Oa){var h=Ma(c),k=Ma(f);if(h||k){if(h)a=c;else if("string"===typeof c)a=taa(c);else return!1;if(!k)if("string"===typeof f)f=taa(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 cb)return Haa(c,f instanceof cb?f:Iaa(c,d,e,f));if(f instanceof cb)return Haa(f,Iaa(f,a,b,c));if(null==c&&Aaa(f)||null==f&&Aaa(c))return!0;if(!Fa(c)||!Fa(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),!Daa(k,d,e,f,d,h))return!1;return a||b?(a=a||{},b=b||{},Eaa(a,b)):!0}if(c.constructor===Object)return Eaa(c,f);throw Error("z");},Gaa=function(a,b){return Daa(void 0,void 0,a,void 0,void 0,b)},Jaa=function(a){switch(typeof a){case "number":return isFinite(a)?
a:String(a);case "object":if(a&&!Array.isArray(a)){if(Ma(a))return db(a);if(a instanceof Za)return gb(a);if(a instanceof cb)return a.toArrayInternal()}}return a},ib=function(a,b){b=void 0===b?Kaa:b;return Laa(a,b)},Maa=function(a,b){if(null!=a){if(Array.isArray(a))a=Laa(a,b);else if(yaa(a)){var c={},d;for(d in a)c[d]=Maa(a[d],b);a=c}else a=b(a);return a}},Laa=function(a,b){for(var c=a.slice(),d=0;d<c.length;d++)c[d]=Maa(c[d],b);xaa(a)&&Ra(c);return c},Naa=function(a){if(a&&"object"==typeof a&&a.toJSON)return a.toJSON();
a=Jaa(a);return Array.isArray(a)?ib(a,Naa):a},Oaa=function(a){return a.clone()},Kaa=function(a){return Ma(a)?new Uint8Array(a):a instanceof cb?Paa(a,Oaa):a},kb=function(a,b,c){var d=jb(a,b,!1);if(d.length&&!(waa(d)&4)){Object.isFrozen(d)&&(d=Ra(d.slice()),l(a,b,d,void 0,!0));for(b=0;b<d.length;b++)d[b]=c(d[b]);vaa(d,5)}Ta(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},Qaa=function(a,b){return Jaa(b)},Raa=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++)Raa(f[h],e[h])}else(f=m(a,e.constructor,h,void 0,f))&&Raa(f,e)}}}},Taa=function(a){if("string"===
typeof a)return{buffer:saa(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===Za)return{buffer:Saa(a)||sb||(sb=new Uint8Array(0)),isImmutable:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),isImmutable:!1};throw Error("K");},Uaa=function(a,b){return 4294967296*
b+(a>>>0)},Vaa=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0));a=Uaa(a,b);return c?-a:a},Waa=function(a,b,c){return a[tb]||(a[tb]=function(d,e){return b(d,e,c)})},Zaa=function(a){var b=a[tb];if(!b){var c=Xaa(a);b=function(d,e){return Yaa(d,e,c)};a[tb]=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)&&(ub 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,v,y){return f(q,v,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(v,y,E){return k(v,y,E,d,q,h)}},Xaa=function(a){var b=a[ub];if(b)return b;b=a[ub]={};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 v=h++;v=cba(a,v);e(q,c,k,v,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);}}ub 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_,wb(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},xb=function(a,
b){return{reader:a,writer:b}},zb=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?Ab(a,c,b,!0):Bb(a,c,b,!0)},mba=function(a,b,c,d,e,f){(a=a.internalWrappers_&&a.internalWrappers_[c])?Array.isArray(a)?(e=f.copyRepeatedFields?Ra(a.slice()):a,Ab(b,c,e)):Bb(b,c,a):(Oa&&d instanceof Uint8Array?e=d.length?new Za(new Uint8Array(d),Pa):Wa():d instanceof
cb?e=Paa(d,lba):(Array.isArray(d)&&(e?Ua(d):xaa(d)&&f.copyRepeatedFields&&(d=d.slice())),e=d),l(b,c,e))},Cb=function(a,b,c){for(var d=[],e=0;e<a.length;e++)d.push(b(c,a[e]));return d},Db=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?Cb(h,q,d):q(d,h):h}}},nba=function(a){a instanceof Za&&(a=a.value_||"",a="string"===typeof a?a:new Uint8Array(a));return a},Eb=
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},Fb=function(a){return null==a?void 0:Array.isArray(a)?a.map(function(b){return gb(b)}):gb(a)},oba=function(a){a=p(a,2);if(null==a)return"";if("string"===typeof a)return a;if(Ma(a))return db(a);if(Array.isArray(a))return ib(a);if(a instanceof Za)return gb(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$1607:d.$jscomp$loop$prop$name$1607},e++){d.$jscomp$loop$prop$name$1607=b[e];var f=a[d.$jscomp$loop$prop$name$1607];if(f){var h=Gb(a,d.$jscomp$loop$prop$name$1607);rba(h)&&(a[d.$jscomp$loop$prop$name$1607]=function(k){return function(q){var v=function(){return q.apply(this,qba(arguments,c+"."+k.$jscomp$loop$prop$name$1607))};
Hb(v,q);return v}}(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=Gb(a,b);!d&&c&&Gb(c,b)&&(d={enumerable:!0,configurable:!0});if(d&&d.configurable&&(c=Jb("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=Kb[h];k||(k=Kb[h]=Jb("ON_PROPERTY"+h));d.set=function(q){var v=this;v||a!==Lb||(v=Lb);v&&("function"===typeof v[k]&&v.removeEventListener(h,
tba),f&&f.call(v,null),v[k]=q,"function"===typeof q&&v.addEventListener(h,tba,!1))};d.get=function(){var q=this;q||a!==Lb||(q=Lb);if(!q)return null;var v=q[k];return v?v:e&&(v=e.call(this))?(d.set.call(this,v),"function"===typeof q.removeAttribute&&q.removeAttribute(b),v):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=Lb[a];if(b){Lb[Jb(a)]=
b;Lb[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");}};Hb(Lb[a],b);var c=new b(function(){}),d;for(d in c)"XMLHttpRequest"===a&&"responseBlob"===d||function(e){"function"===typeof c[e]?Lb[a].prototype[e]=function(){return this[Mb][e].apply(this[Mb],arguments)}:uba(Lb[a].prototype,
e,{set:function(f){"function"===typeof f?(this[Mb][e]=pba(f,a+"."+e),Hb(this[Mb][e],f)):this[Mb][e]=f},get:function(){return this[Mb][e]}})}(d);for(d in b)"prototype"!==d&&b.hasOwnProperty(d)&&(Lb[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=Jb(b);var e=null;if(d&&(!(e=d[a])||!d.hasOwnProperty(a))){e=d[a]=d[b];var f=d&&Gb(d,b);if(rba(f)){var h=c(e,a,b);d[b]=function(){return h(this,arguments)};Hb(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)}})},Hb=function(a,b){a[Jb("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,ra){if(ha=ha||a.event){ka=ka||ha.target||a;var Da=ka[Rb[ha.type][ra?"true":"false"]];if(Da){ra=[];if(1===Da.length)(ha=I(Da[0],ka,ha))&&ra.push(ha);else{Da=Da.slice();for(var Ja=0;Ja<Da.length&&(!ha||!0!==ha[Dba]);Ja++){var Ba=I(Da[Ja],ka,ha);Ba&&ra.push(Ba)}}if(1===ra.length)throw ra[0];ha={};for(ka=0;ka<ra.length;ha={$jscomp$loop$prop$err$1195$1609:ha.$jscomp$loop$prop$err$1195$1609},
ka++)ha.$jscomp$loop$prop$err$1195$1609=ra[ka],b.nativeScheduleMicroTask(function(La){return function(){throw La.$jscomp$loop$prop$err$1195$1609;}}(ha))}}}function f(ka,ha){if(!ka)return!1;var ra=!0;ha&&void 0!==ha.useG&&(ra=ha.useG);var Da=ha&&ha.vh,Ja=!0;ha&&void 0!==ha.chkDup&&(Ja=ha.chkDup);var Ba=!1;ha&&void 0!==ha.rt&&(Ba=ha.rt);for(var La=ka;La&&!La.hasOwnProperty(h);)La=xba(La);!La&&ka[h]&&(La=ka);if(!La||La[y])return!1;var hb=ha&&ha.eventNameToString,fb={},Tb=La[y]=La[h],va=La[Jb(k)]=La[k];
ka=La[Jb(q)]=La[q];var Ca=La[Jb(v)]=La[v],Ia;ha&&ha.prepend&&(Ia=La[Jb(ha.prepend)]=La[ha.prepend]);var Xa=function(eb){if(!eb.isRemoved){var yb=Rb[eb.eventName],Ib;yb&&(Ib=yb[eb.capture?"true":"false"]);if(yb=Ib&&eb.target[Ib])for(var ec=0;ec<yb.length;ec++)if(yb[ec]===eb){yb.splice(ec,1);eb.isRemoved=!0;0===yb.length&&(eb.allRemoved=!0,eb.target[Ib]=null);break}}if(eb.allRemoved)return va.call(eb.target,eb.eventName,eb.capture?L:N,eb.options)},$a=function(eb){return Tb.call(fb.target,fb.eventName,
eb.invoke,fb.options)},jc=function(eb){return Ia.call(fb.target,fb.eventName,eb.invoke,fb.options)},Va=function(eb){return va.call(eb.target,eb.eventName,eb.invoke,eb.options)};$a=ra?function(){if(!fb.isExisting)return Tb.call(fb.target,fb.eventName,fb.capture?L:N,fb.options)}:$a;Xa=ra?Xa:Va;Va=function(eb,yb){var Ib=typeof yb;return"function"===Ib&&eb.callback===yb||"object"===Ib&&eb.originalDelegate===yb};var Ya=ha&&ha.diff?ha.diff:Va,Sa=Zone[Jb("UNPATCHED_EVENTS")],vb=a[Jb("PASSIVE_EVENTS")];Va=
function(eb,yb,Ib,ec,Ac,se){Ac=void 0===Ac?!1:Ac;se=void 0===se?!1:se;return function(){var id=this||a,Dd=arguments[0];ha&&ha.transferEventName&&(Dd=ha.transferEventName(Dd));var eh=arguments[1];if(!eh||Sb&&"uncaughtException"===Dd)return eb.apply(this,arguments);var EK=!1;if("function"!==typeof eh){if(!eh.handleEvent)return eb.apply(this,arguments);EK=!0}if(!Da||Da(eb,eh,id,arguments)){var Vl=Ub&&!!vb&&-1!==vb.indexOf(Dd);var kc=arguments[2];kc=!Ub&&"object"===typeof kc&&kc?!!kc.capture:Ub&&Vl?"boolean"===
typeof kc?{capture:kc,passive:!0}:kc?"object"===typeof kc&&!1!==kc.passive?Object.assign({},kc,{passive:!0}):kc:{passive:!0}:kc;if(Sa)for(var fc=0;fc<Sa.length;fc++)if(Dd===Sa[fc])return Vl?eb.call(id,Dd,eh,kc):eb.apply(this,arguments);Vl=kc?"boolean"===typeof kc?!0:kc.capture:!1;fc=kc&&"object"===typeof kc?kc.once:!1;var te=Zone.current,Li=Rb[Dd];Li||(Cba(Dd,hb),Li=Rb[Dd]);var Kn=Li[Vl?"true":"false"];Li=id[Kn];var Tp=!1;if(Li){if(Tp=!0,Ja)for(Kn=0;Kn<Li.length;Kn++)if(Ya(Li[Kn],eh))return}else Li=
id[Kn]=[];var Ok;Kn=id.constructor.name;var $za=Eba[Kn];$za&&(Ok=$za[Dd]);Ok||(Ok=Kn+yb+(hb?hb(Dd):Dd));fb.options=kc;fc&&(fb.options.once=!1);fb.target=id;fb.capture=Vl;fb.eventName=Dd;fb.isExisting=Tp;if(Tp=ra?Fba:void 0)Tp.taskData=fb;Ok=te.scheduleEventTask(Ok,eh,Tp,Ib,ec);fb.target=null;Tp&&(Tp.taskData=null);fc&&(kc.once=!0);if(Ub||"boolean"!==typeof Ok.options)Ok.options=kc;Ok.target=id;Ok.capture=Vl;Ok.eventName=Dd;EK&&(Ok.originalDelegate=eh);se?Li.unshift(Ok):Li.push(Ok);if(Ac)return id}}};
La[h]=Va(Tb,E,$a,Xa,Ba);Ia&&(La.prependListener=Va(Ia,".prependListener:",jc,Xa,Ba,!0));La[k]=function(){var eb=this||a,yb=arguments[0];ha&&ha.transferEventName&&(yb=ha.transferEventName(yb));var Ib=arguments[2],ec=Ib?"boolean"===typeof Ib?!0:Ib.capture:!1;Ib=arguments[1];if(!Ib)return va.apply(this,arguments);if(!Da||Da(va,Ib,eb,arguments)){var Ac=Rb[yb],se;Ac&&(se=Ac[ec?"true":"false"]);if(ec=se&&eb[se])for(Ac=0;Ac<ec.length;Ac++){var id=ec[Ac];if(Ya(id,Ib)){ec.splice(Ac,1);id.isRemoved=!0;0===
ec.length&&(id.allRemoved=!0,eb[se]=null,"string"===typeof yb&&(eb[Qb+"ON_PROPERTY"+yb]=null));id.zone.cancelTask(id);if(Ba)return eb;return}}return va.apply(this,arguments)}};La[q]=function(eb){var yb=this||a,Ib=eb;ha&&ha.transferEventName&&(Ib=ha.transferEventName(Ib));eb=[];yb=Gba(yb,hb?hb(Ib):Ib);for(Ib=0;Ib<yb.length;Ib++){var ec=yb[Ib];eb.push(ec.originalDelegate?ec.originalDelegate:ec.callback)}return eb};La[v]=function(eb){var yb=this||a;if(eb){ha&&ha.transferEventName&&(eb=ha.transferEventName(eb));
var Ib=Rb[eb];if(Ib){var ec=yb[Ib["false"]];yb=yb[Ib["true"]];if(ec)for(ec=ec.slice(),Ib=0;Ib<ec.length;Ib++){var Ac=ec[Ib];this[k].call(this,eb,Ac.originalDelegate?Ac.originalDelegate:Ac.callback,Ac.options)}if(yb)for(yb=yb.slice(),ec=0;ec<yb.length;ec++)Ib=yb[ec],this[k].call(this,eb,Ib.originalDelegate?Ib.originalDelegate:Ib.callback,Ib.options)}}else{eb=Object.keys(yb);for(yb=0;yb<eb.length;yb++)(ec=(ec=Hba.exec(eb[yb]))&&ec[1])&&"removeListener"!==ec&&this[v].call(this,ec);this[v].call(this,
"removeListener")}if(Ba)return this};Hb(La[h],Tb);Hb(La[k],va);Ca&&Hb(La[v],Ca);ka&&Hb(La[q],ka);return!0}for(var h=d&&d.add||"addEventListener",k=d&&d.rm||"removeEventListener",q=d&&d.listeners||"eventListeners",v=d&&d.rmAll||"removeAllListeners",y=Jb(h),E="."+h+":",I=function(ka,ha,ra){if(!ka.isRemoved){var Da=ka.callback;"object"===typeof Da&&Da.handleEvent&&(ka.callback=function(La){return Da.handleEvent(La)},ka.originalDelegate=Da);try{ka.invoke(ka,ha,[ra])}catch(La){var Ja=La}var Ba=ka.options;
Ba&&"object"===typeof Ba&&Ba.once&&ha[k].call(ha,ra.type,ka.originalDelegate?ka.originalDelegate:ka.callback,Ba);return Ja}},N=function(ka){return e(this,ka,!1)},L=function(ka){return e(this,ka,!0)},T=[],Y=0;Y<c.length;Y++)T[Y]=f(c[Y],d);return T},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)}})},Wb=function(a,b,c,d){function e(v){var y=v.data;y.args[0]=function(){return v.invoke.apply(this,arguments)};y.handleId=h.apply(a,y.args);return v}function f(v){return k.call(a,v.data.handleId)}var h=null,k=null;b+=d;c+=d;var q={};h=Ob(a,b,function(v){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[Vb]=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[Vb]=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 v.apply(a,E)}});
k=Ob(a,c,function(v){return function(y,E){y=E[0];if("number"===typeof y)var I=q[y];else(I=y&&y[Vb])||(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[Vb]=null),I.zone.cancelTask(I)):v.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,v){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,v)};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(){Xb=Zone.__symbol__;Yb=Object[Xb("defineProperty")]=Object.defineProperty;Nba=Object[Xb("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor;Oba=Object.create;Zb=Xb("unconfigurables");Object.defineProperty=function(a,b,c){if(a&&a[Zb]&&a[Zb][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[Zb]&&a[Zb][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[Zb]||Object.isFrozen(a)||Yb(a,Zb,{writable:!0,value:{}}),a[Zb]&&(a[Zb][b]=!0));return c},Qba=function(a,b,c,d){try{return Yb(a,b,c)}catch(e){if(c.configurable){"undefined"==typeof d?delete c.configurable:c.configurable=d;try{return Yb(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,v="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(v):
a.EventTarget?c.push("EventTarget"):c=v;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(v=0;v<d.length;v++){var T=d[v],Y=q+(T+k),ka=q+(T+h);f[T]={};f[T][k]=Y;f[T][h]=ka}for(f=0;f<y.length;f++)for(h=
y[f],k=e[h]={},q=0;q<d.length;q++)v=d[q],k[v]=h+".addEventListener:"+v;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,ra,Da,Ja){if(!E&&N)if(I)try{var Ba=ra.toString();if("[object FunctionWrapper]"===Ba||"function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }"==Ba)return ha.apply(Da,Ja),!1}catch(La){return ha.apply(Da,Ja),!1}else{if(ra=ra.toString(),"[object FunctionWrapper]"===ra||"function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }"==
ra)return ha.apply(Da,Ja),!1}else if(I)try{ra.toString()}catch(La){return ha.apply(Da,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 v=1<arguments.length?new f(k,q):new f(k),y=a.ObjectGetOwnPropertyDescriptor(v,"onmessage");if(y&&
!1===y.configurable){var E=a.ObjectCreate(v);var I=v;[d,e,"send","close"].forEach(function(N){E[N]=function(){var L=a.ArraySlice.call(arguments);if(N===d||N===e){var T=0<L.length?L[0]:void 0;T&&(T=Zone.__symbol__("ON_PROPERTY"+T),v[T]=E[T])}return v[N].apply(v,L)}})}else E=v;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$1616:c.$jscomp$loop$prop$onproperty$1616},
d++){var e=Wba[d];c.$jscomp$loop$prop$onproperty$1616="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$1616:"unknown."+f.$jscomp$loop$prop$onproperty$1616;h;){if(h[f.$jscomp$loop$prop$onproperty$1616]&&!h[f.$jscomp$loop$prop$onproperty$1616][b]){var q=a.wrapWithCurrentZone(h[f.$jscomp$loop$prop$onproperty$1616],k);q[b]=h[f.$jscomp$loop$prop$onproperty$1616];h[f.$jscomp$loop$prop$onproperty$1616]=q}h=h.parentElement}}}(c),
!0)}},$b=function(a){for(var b in a)if(a[b]===$b)return b;throw Error("ia");},Yba=function(a,b){for(var c in b)b.hasOwnProperty(c)&&!a.hasOwnProperty(c)&&(a[c]=b[c])},ac=function(a){if("string"===typeof a)return a;if(Array.isArray(a))return"["+a.map(ac).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},bc=function(a){a.__forward_ref__=bc;a.toString=function(){return ac(this())};return a},cc=function(a){return $ba(a)?a():a},$ba=function(a){return"function"===typeof a&&a.hasOwnProperty(aca)&&a.__forward_ref__===bc},dc=function(a){return{token:a.token,providedIn:a.providedIn||null,factory:a.factory,value:void 0}},gc=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:""));},lc=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(ac(a),"Injector")},nc=function(a){var b=mc;mc=a;return b},mca=function(a,b){b=void 0===b?0:b;if(void 0===mc)throw new ic(203,"");return null===mc?lca(a,void 0,b):mc.get(a,b&8?null:void 0,b)},t=function(a,b){b=void 0===b?0:b;return(kca||mca)(cc(a),b)},nca=function(a){for(var b=[],c=0;c<a.length;c++){var d=cc(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},oc=function(a,b){a.__NG_DI_FLAG__=b;a.prototype.__NG_DI_FLAG__=b;return a},pc=function(a){return{toString:a}.toString()},oca=function(a){return function(){var b=qc.apply(0,arguments);if(a){b=a.apply(null,u(b));for(var c in b)this[c]=b[c]}}},rc=function(a){return pc(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=qc.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})},w=function(a){return pc(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,dependencies:!0===a.standalone&&a.dependencies||null,getStandaloneInjector:null,selectors:a.selectors||sc,viewQuery:a.viewQuery||null,features:a.features||null,data:a.data||{},encapsulation:a.encapsulation||0,id:"c",styles:a.styles||sc,_: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[tc]||a[vca]||null},sca=function(a){return null!==
a},uc=function(a){return pc(function(){return{type:a.type,bootstrap:a.bootstrap||sc,declarations:a.declarations||sc,imports:a.imports||sc,exports:a.exports||sc,transitiveCompileScopes:null,schemas:a.schemas||null,id:a.id||null}})},qca=function(a,b){if(null==a)return vc;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},wc=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[wca]||null},xc=function(a){return Array.isArray(a)&&"object"===typeof a[1]},yc=function(a){return Array.isArray(a)&&!0===a[1]},Bc=function(a){return a.hasOwnProperty(zc)?a[zc]:null},Cc=function(){return xca},xca=function(a){a.type.prototype.ngOnChanges&&(a.setInput=yca);return zca},zca=function(){var a=this.__ngSimpleChanges__||null,b=null==a?void 0:a.current;if(b){var c=a.previous;if(c===vc)a.previous=b;else for(var d in b)c[d]=b[d];a.current=null;this.ngOnChanges(b)}},
yca=function(a,b,c,d){var e;(e=a.__ngSimpleChanges__||null)||(e=a.__ngSimpleChanges__={previous:vc,current:null});var f=e;e=f.current||(f.current={});f=f.previous;c=this.declaredInputs[c];var h=f[c];e[c]=new Aca(h&&h.currentValue,b,f===vc);a[d]=b},Cca=function(){if(void 0!==Bca)return Bca;if("undefined"!==typeof document)return document},Dc=function(a){for(;Array.isArray(a);)a=a[0];return a},Ec=function(a,b){return Dc(b[a.index])},Fc=function(a,b){a=b[a];return xc(a)?a:a[0]},Gc=function(a,b){return null===
b||void 0===b?null:a[b]},Dca=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 Hc.lView},z=function(a){Hc.contextLView=a;return a[8]},A=function(a){Hc.contextLView=null;return a},Ic=function(){for(var a=Hc.currentTNode;null!==a&&64===a.type;)a=a.parent;return a},Jc=function(a,b){var c=Hc;c.currentTNode=a;c.isParent=b},Kc=function(){var a=Hc,b=a.bindingRootIndex;-1===b&&(b=a.bindingRootIndex=a.tView.bindingStartIndex);return b},
Lc=function(a){var b=Hc,c=b.bindingIndex;b.bindingIndex+=a;return c},Eca=function(a){var b=Hc.currentDirectiveIndex;return-1===b?null:a[b]},Gca=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=Hc=Fca();c.currentTNode=b;c.lView=a;return!0},Hca=function(a){var b=Fca(),c=a[1];Hc=b;b.currentTNode=c.firstChild;b.lView=a;b.tView=c;b.contextLView=a;b.bindingIndex=c.bindingStartIndex;
b.inI18n=!1},Fca=function(){var a=Hc,b=null===a?null:a.child;return null===b?Ica(a):b},Ica=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},Jca=function(){var a=Hc;Hc=a.parent;a.currentTNode=null;a.lView=null;return a},Kca=function(){var a=Jca();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},Mc=function(){var a=Hc;return a.tView.data[a.selectedIndex]},Nc=function(){Hc.currentNamespace="svg"},Oc=function(){Hc.currentNamespace=null},Pc=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)}},Rc=function(a,b,c,d){(a[2]&3)===c&&Qc(a,b,c,d)},Lca=function(a,b){var c=a[2];(c&3)===b&&(a[2]=(c&
2047)+1)},Qc=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],v=b[k+1],y=a[q?-b[k]:b[k]];q?a[2]>>11<a[18]>>16&&(a[2]&3)===c&&(a[2]+=2048,v.call(y)):v.call(y);a[18]=(a[18]&4294901760)+k+2}k++}},Sc=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++}},Tc=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?Mca(a,c,e,b[++d]):Mca(a,c,e,null))}return a},Mca=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)},Uc=function(a,b){for(a>>=16;0<a;)b=b[15],a--;return b},Vc=function(a){var b=Nca;Nca=a;return b},Xc=function(a,b,c){var d;"string"===typeof c?d=c.charCodeAt(0)||0:c.hasOwnProperty(Wc)&&(d=c[Wc]);null==d&&(d=c[Wc]=Oca++);c=d&255;b.data[a+(c>>5)]|=1<<c},Yc=function(a,b){var c=Pca(a,b);if(-1!==
c)return c;c=b[1];c.firstCreatePass&&(a.injectorIndex=b.length,Qca(c.data,a),Qca(b,null),Qca(c.blueprint,null));c=Rca(a,b);a=a.injectorIndex;if(-1!==c)for(var d=c&32767,e=Uc(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},Qca=function(a,b){a.push(0,0,0,0,0,0,0,0,b)},Pca=function(a,b){return-1===a.injectorIndex||a.parent&&a.parent.injectorIndex===a.injectorIndex||null===b[a.injectorIndex+8]?-1:a.injectorIndex},Rca=function(a,b){if(a.parent&&-1!==a.parent.injectorIndex)return a.parent.injectorIndex;
a=0;for(var c=b;null!==c;){b=Sca(c);if(null===b)break;a++;c=c[15];if(-1!==b.injectorIndex)return b.injectorIndex|a<<16}return-1},Zc=function(a){var b=Ic();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},Tca=function(a,b,c){if(c&8)return a;jca(b,"NodeInjector")},Uca=function(a,
b,c,d){c&8&&void 0===d&&(d=null);if(0===(c&3)){a=a[9];var e=lc();try{return a?a.get(b,d,c&8):lca(b,d,c&8)}finally{lc(e)}}return Tca(d,b,c)},Wca=function(a,b,c,d,e){d=void 0===d?0:d;if(null!==a){if(b[2]&1024){a:{var f=d;for(var h=a,k=b;null!==h&&null!==k&&k[2]&1024&&!(k[2]&256);){var q=Vca(h,k,c,f|2);if(q!==$c){f=q;break a}h=h.parent;if(!h){if(h=k[21])if(h=h.get(c,$c,f),h!==$c){f=h;break a}h=Sca(k);k=k[15]}}f=$c}if(f!==$c)return f}a=Vca(a,b,c,d);if(a!==$c)return a}return Uca(b,c,d,e)},Vca=function(a,
b,c,d){if("string"===typeof c)var e=c.charCodeAt(0)||0;else e=c.hasOwnProperty(Wc)?c[Wc]:void 0,e="number"===typeof e?0<=e?e&255:Xca:e;if("function"===typeof e){if(!Gca(b,a,d))return d&1?Tca($c,c,d):Uca(b,c,d,$c);try{var f=e(d);if(null!=f||d&8)return f;jca(c)}finally{Jca()}}else if("number"===typeof e){f=null;var h=Pca(a,b),k=d&1?b[16][6]:null;if(-1===h||d&4){var q=-1===h?Rca(a,b):b[h+8];-1===q||d&2?h=-1:(f=b[1],h=q&32767,b=Uc(q,b))}for(;-1!==h;){a=b[1];if(a.data[h+(e>>5)]&1<<e){q=b[1];var v=q.data[h+
8],y=ad(v,q,c,null==f?2===(v.flags&2)&&Nca:f!=q&&0!==(v.type&3),d&1&&k===v);q=null!==y?bd(b,q,y,v):$c;if(q!==$c)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=Uc(q,b)):h=-1}}return $c},ad=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},bd=function(a,b,
c,d){var e=a[c],f=b.data;if(e instanceof cd){var h=e;if(h.resolving)throw new ic(-200,"Circular dependency in DI detected for "+ica(f[c]));var k=Vc(h.canSeeViewProviders);h.resolving=!0;var q=h.injectImpl?lc(h.injectImpl):null;Gca(a,d,0);try{if(e=a[c]=h.factory(void 0,f,a,d),b.firstCreatePass&&c>=d.directiveStart){var v=f[c],y=v.type.prototype,E=y.ngOnInit,I=y.ngDoCheck;if(y.ngOnChanges){var N=xca(v);(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&&lc(q),Vc(k),h.resolving=!1,Jca()}}return e},Xca=function(){return new dd(Ic(),x())},ed=function(a){return pc(function(){var b=a.prototype.constructor;b=b[zc]||Yca(b);for(var c=Object.prototype,d=Object.getPrototypeOf(a.prototype).constructor;d&&d!==c;){var e=d[zc]||Yca(d);if(e&&e!==b)return e;d=Object.getPrototypeOf(d)}return function(f){return new f}})},
Yca=function(a){return $ba(a)?function(){var b=Yca(cc(a));return b&&b()}:Bc(a)},Sca=function(a){var b=a[1],c=b.type;return 2===c?b.declTNode:1===c?a[6]:null},Zca=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)),Zca(d,b)):b!==a&&b.push(d)}return b},fd=function(a,b){a.forEach(function(c){return Array.isArray(c)?fd(c,b):b(c)})},gd=function(a,b){return b>=a.length-1?a.pop():a.splice(b,1)[0]},$ca=function(a,b){for(var c=[],d=0;d<a;d++)c.push(b);
return c},jd=function(a,b,c){var d=hd(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}}},ada=function(a,b){b=hd(a,b);if(0<=b)return a[b|1]},hd=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)},cda=function(){return{"\u0275providers":bda(!0,qc.apply(0,arguments))}},bda=function(a){var b=[],c=new Set,d;
fd(qc.apply(1,arguments),function(e){dda(e,b,[],c)&&(d||(d=[]),d.push(e))});void 0!==d&&eda(d,b);return b},eda=function(a,b){for(var c={},d=0;d<a.length;c={$jscomp$loop$prop$providers$1618:c.$jscomp$loop$prop$providers$1618,$jscomp$loop$prop$ngModule$1619:c.$jscomp$loop$prop$ngModule$1619},d++){var e=a[d];c.$jscomp$loop$prop$ngModule$1619=e.ngModule;c.$jscomp$loop$prop$providers$1618=e.providers;fd(c.$jscomp$loop$prop$providers$1618,function(){return function(f){b.push(f)}}(c))}},dda=function(a,b,
c,d){a=cc(a);if(!a)return!1;var e=null,f=hca(a),h=!f&&(a[tc]||null);if(f||h){if(h&&!h.standalone)return!1;e=a}else{var k=a.ngModule;if(f=hca(k))e=k;else return!1}k=d.has(e);if(h){if(k)return!1;d.add(e);if(h.dependencies)for(f="function"===typeof h.dependencies?h.dependencies():h.dependencies,f=r(f),k=f.next();!k.done;k=f.next())dda(k.value,b,c,d)}else if(f){if(null!=f.imports&&!k){d.add(e);var q;fd(f.imports,function(v){dda(v,b,c,d)&&(q||(q=[]),q.push(v))});void 0!==q&&eda(q,b)}k||(h=Bc(e)||function(){return new e},
b.push({provide:e,useFactory:h,deps:sc},{provide:fda,useValue:e,multi:!0},{provide:gda,useValue:function(){return t(e)},multi:!0}));f=f.providers;null==f||k||fd(f,function(v){b.push(v)})}else return!1;return e!==a&&void 0!==a.providers},ida=function(a){return null!==a&&"object"==typeof a&&hda in a},kd=function(a){return"function"===typeof a},lda=function(){void 0===jda&&(jda=new kda);return jda},nda=function(a){var b=dca(a);b=null!==b?b.factory:Bc(a);if(null!==b)return b;if(a instanceof ld)throw new ic(204,
!1);if(a instanceof Function)return mda(a);throw new ic(204,!1);},mda=function(a){var b=a.length;if(0<b)throw $ca(b,"?"),new ic(204,!1);var c=eca(a);return null!==c?function(){return c.factory(a)}:function(){return new a}},pda=function(a){if(ida(a))return md(void 0,a.useValue);a=oda(a);return md(a,nd)},oda=function(a){var b=void 0;if(kd(a))return b=cc(a),Bc(b)||nda(b);if(ida(a))b=function(){return cc(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(cc(a.useExisting))};else{var c=cc(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 Bc(c)||nda(c)}return b},md=function(a,b,c){return{factory:a,value:b,multi:(void 0===c?0:c)?[]:void 0}},qda=function(a,b){a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,Array.isArray(c)?qda(c,b):c.\u0275providers?qda(c.\u0275providers,b):b(c)},tda=function(a,b,c,d){a=rda(a,
void 0===b?null:b,void 0===c?null:c,d);sda(a);return a},rda=function(a,b,c,d,e){b=void 0===b?null:b;e=void 0===e?new Set:e;c=[(void 0===c?null:c)||sc,cda(a)];d=d||("object"===typeof a?void 0:ac(a));return new od(c,b||lda(),d||null,e)},uda=function(a){a.error.apply(a,u(qc.apply(1,arguments)))},qd=function(a,b){return new pd(Ec(a,b))},vda=function(a){return a instanceof pd?a.nativeElement:a},rd=function(a,b){xc(b)?(a.__ngContext__=b[20],wda.set(b[20],b)):a.__ngContext__=b},xda=function(a){a=a.__ngContext__;
return(a="number"===typeof a?wda.get(a)||null:a||null)?xc(a)?a:a.lView:null},sd=function(a){return a.ownerDocument.defaultView},yda=function(a){return a.ownerDocument},B=function(a){zda(Hc.tView,x(),Hc.selectedIndex+a)},zda=function(a,b,c){3===(b[2]&3)?(a=a.preOrderCheckHooks,null!==a&&Qc(b,a,3,c)):(a=a.preOrderHooks,null!==a&&Rc(b,a,0,c));Hc.selectedIndex=c},Ada=function(){if(void 0===td&&(td=null,ud.trustedTypes))try{td=ud.trustedTypes.createPolicy("angular",{createHTML:function(a){return a},createScript:function(a){return a},
createScriptURL:function(a){return a}})}catch(a){}return td},vd=function(a){var b;return(null==(b=Ada())?void 0:b.createHTML(a))||a},Bda=function(a){a=a[3];return yc(a)?a[3]:a},wd=function(a){for(;null!==a&&!yc(a);)a=a[4];return a},yd=function(a,b,c,d,e){if(null!=d){var f=!1;if(yc(d))var h=d;else xc(d)&&(f=!0,d=d[0]);d=Dc(d);if(0===a&&null!==c)null==e?Cda(b,c,d):xd(b,c,d,e||null,!0);else if(1===a&&null!==c)xd(b,c,d,e||null,!0);else if(2===a){var k=Dda(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=Dc(h),d!==f&&yd(a,b,c,d,e),e=10;e<h.length;e++)f=h[e],zd(b,a,f[1].firstChild,f,c,d,!1)}},Eda=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)},Fda=function(a,b){a=a[9];var c=a.indexOf(b),d=b[3];b[2]&512&&(b[2]&=-513,Dca(d,-1));a.splice(c,1)},Gda=function(a,b){if(!(10>=
a.length)){var c=10+b,d=a[c];if(d){var e=d[17];null!==e&&e!==a&&Fda(e,d);0<b&&(a[c-1][4]=d[4]);a=gd(a,10+b);zd(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]&=-65}return d}},Ida=function(a,b){if(!(b[2]&128)){var c=b[11];c.listen&&c.destroyNode&&zd(c,3,a.firstChild,b,null,null,!1);if(a=b[13])for(;a;){c=null;if(xc(a))c=a[13];else{var d=a[10];d&&(c=d)}if(!c){for(;a&&!a[4]&&a!==b;)xc(a)&&Hda(a[1],a),a=a[3];null===a&&(a=b);xc(a)&&
Hda(a[1],a);c=a&&a[4]}a=c}else Hda(b[1],b)}},Hda=function(a,b){if(!(b[2]&128)){b[2]&=-65;b[2]|=128;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 cd)){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):Dc(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&&yc(b[3])&&(c!==b[3]&&Fda(c,b),c=b[19],null!==c&&c.detachView(a));wda.delete(b[20])}},Jda=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:Ec(b,c)},xd=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)},Cda=function(a,b,c){a.listen?a.appendChild(b,c):("TEMPLATE"===b.tagName&&void 0!==b.content?b.content:b).appendChild(c)},Dda=function(a,b){return a.listen?a.parentNode(b):b.parentNode},Ad=function(a,b,c,d){a=Jda(a,d.parent,b);var e=b[11];d=d.parent||b[6];b=d.type&40?Ec(d,b):null;if(null!=a)if(Array.isArray(c))for(d=0;d<c.length;d++){var f=c[d];null!==b?xd(e,a,f,b,!1):Cda(e,a,f)}else null!==b?xd(e,a,c,b,!1):Cda(e,
a,c)},Bd=function(a,b){if(null!==b){var c=b.type;if(c&3)return Ec(b,a);if(c&4)return Kda(-1,a[b.index]);if(c&8){c=b.child;if(null!==c)return Bd(a,c);a=a[b.index];return yc(a)?Kda(-1,a):Dc(a)}if(c&32)return(void 0)(b,a)()||Dc(a[b.index]);c=null!==b?a[16][6].projection[b.projection]:null;if(null!==c){if(Array.isArray(c))return c[0];a=Bda(a[16]);return Bd(a,c)}return Bd(a,b.next)}return null},Kda=function(a,b){a+=11;if(a<b.length){a=b[a];var c=a[1].firstChild;if(null!==c)return Bd(a,c)}return b[7]},
zd=function(a,b,c,d,e,f,h){for(;null!=c;){var k=d[c.index],q=c.type;h&&0===b&&(k&&rd(Dc(k),d),c.flags|=4);if(64!==(c.flags&64))if(q&8)zd(a,b,c.child,d,e,f,!1),yd(b,a,e,k,f);else if(q&32){q=(void 0)(c,d);for(var v;v=q();)yd(b,a,e,v,f);yd(b,a,e,k,f)}else q&16?Lda(a,b,d,c,e,f):yd(b,a,e,k,f);c=h?c.projectionNext:c.next}},Lda=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++)yd(b,a,e,d[c],f);else zd(a,b,d,c[3],e,f,!0)},Mda=function(a,b,c){a.listen?
""===c?a.removeAttribute(b,"class"):a.setAttribute(b,"class",c):b.className=c},Nda=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}},Oda=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 v=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!==Nda(I.toLowerCase(),v)){v=!0;break a}}else if(1===I){for(;E<q.length&&"string"==typeof(I=q[E++]);)if(I.toLowerCase()===v){v=!0;break a}break}}v=!1}if(!v){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(""!==v&&(q=q>f?"":e[q+1].toLowerCase(),(y=d&8?q:null)&&-1!==Nda(y,v)||d&2&&
v!==q)){if(0===(d&1))return!1;h=!0}}}}return 0===(d&1)||h},Pda=function(a,b,c){c=void 0===c?!1:c;for(var d=0;d<b.length;d++)if(Oda(a,b[d],c))return!0;return!1},Qda=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},Ed=function(a){return a instanceof
Cd?a.changingThisBreaksApplicationSecurity:a},Fd=function(a,b){a=a instanceof Cd&&a.getTypeName()||null;if(null!=a&&a!==b){if("ResourceURL"===a&&"URL"===b)return!0;throw Error("na`"+b+"`"+a);}return a===b},Gd=function(a){a=String(a);return a.match(Rda)||a.match(Sda)?a:"unsafe:"+a},Tda=function(a){a=String(a);return a.split(",").map(function(b){return Gd(b.trim())}).join(", ")},Hd=function(a){var b={};a=r(a.split(","));for(var c=a.next();!c.done;c=a.next())b[c.value]=!0;return b},Id=function(){for(var a=
{},b=r(qc.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},Wda=function(a){return a.replace(/&/g,"&amp;").replace(Uda,function(b){return"&#"+(1024*(b.charCodeAt(0)-55296)+(b.charCodeAt(1)-56320)+65536)+";"}).replace(Vda,function(b){return"&#"+b.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")},fea=function(a,b){var c=null;try{var d;if(!(d=Jd)){var e=new Xda(a);try{var f=!!(new window.DOMParser).parseFromString(vd(""),
"text/html")}catch(Y){f=!1}d=f?new Yda(e):e}Jd=d;var h=b?String(b):"";c=Jd.getInertBodyElement(h);a=5;b=h;do{if(0===a)throw Error("pa");a--;h=b;b=c.innerHTML;c=Jd.getInertBodyElement(h)}while(h!==b);var k=new Zda,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 v=b.nodeName.toLowerCase();if($da.hasOwnProperty(v)){a.buf.push("<");a.buf.push(v);var y=b.attributes;for(b=0;b<y.length;b++){var E=
y.item(b),I=E.name,N=I.toLowerCase();if(aea.hasOwnProperty(N)){var L=E.value;bea[N]&&(L=Gd(L));cea[N]&&(L=Tda(L));a.buf.push(" ",I,'="',Wda(L),'"')}}a.buf.push(">");h=!0}else h=!dea.hasOwnProperty(v)}else q.nodeType===Node.TEXT_NODE&&k.buf.push(Wda(q.nodeValue));if(h&&q.firstChild)q=q.firstChild;else for(;q;){q.nodeType===Node.ELEMENT_NODE&&k.endElement(q);var T=eea(q,q.nextSibling);if(T){q=T;break}q=eea(q,q.parentNode)}}return vd(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)}},gea=function(){if(void 0===Kd&&(Kd=null,ud.trustedTypes))try{Kd=ud.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(a){}return Kd},hea=function(a){var b;return(null==(b=gea())?void 0:b.createHTML(a))||a},iea=function(a){var b;return(null==(b=gea())?void 0:b.createScriptURL(a))||a},Ld=function(a){var b=
jea();return b?hea(b.sanitize(1,a)||""):Fd(a,"HTML")?hea(Ed(a)):fea(Cca(),hc(a))},Md=function(a){var b=jea();return b?b.sanitize(4,a)||"":Fd(a,"URL")?Ed(a):Gd(hc(a))},kea=function(a){var b=jea();if(b)return iea(b.sanitize(5,a)||"");if(Fd(a,"ResourceURL"))return iea(Ed(a));throw new ic(904,"");},jea=function(){var a=x();return a&&a[12]},lea=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];Hc.currentQueryIndex=e;h.contentQueries(2,
b[f],f)}}},Nd=function(a,b,c,d,e,f,h,k,q,v,y){var E=b.blueprint.slice();E[0]=e;E[2]=d|76;if(null!==y||a&&a[2]&1024)E[2]|=1024;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]=v||a&&a[9]||null;E[6]=f;E[20]=mea++;E[21]=y;E[16]=2==b.type?a[16]:E;return E},Od=function(a,b,c,d,e){var f=a.data[b];if(null===f){f=Hc.currentTNode;var h=Hc.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;Hc.inI18n&&(f.flags|=64)}else f.type&64&&(f.type=c,f.value=d,f.attrs=e,a=Hc,b=a.currentTNode,a=a.isParent?b:b.parent,f.injectorIndex=null===a?-1:a.injectorIndex);Jc(f,!0);return f},nea=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},Pd=function(a,b,c){Hca(b);try{var d=a.viewQuery;null!==d&&(Hc.currentQueryIndex=0,d(1,c));var e=a.template;null!==e&&oea(a,b,e,1,c);a.firstCreatePass&&(a.firstCreatePass=
!1);a.staticContentQueries&&lea(a,b);if(a.staticViewQueries){var f=a.viewQuery;Hc.currentQueryIndex=0;f(2,c)}var h=a.components;if(null!==h)for(c=0;c<h.length;c++){for(var k=Fc(h[c],b),q=k[1],v=k.length;v<q.blueprint.length;v++)k.push(q.blueprint[v]);Pd(q,k,k[8])}}catch(y){throw a.firstCreatePass&&(a.incompleteFirstPass=!0,a.firstCreatePass=!1),y;}finally{b[2]&=-5,Kca()}},Qd=function(a,b,c,d){var e=b[2];if(128!==(e&128)){Hca(b);try{b[18]=0;Hc.bindingIndex=a.bindingStartIndex;null!==c&&oea(a,b,c,2,
d);if(c=3===(e&3)){var f=a.preOrderCheckHooks;null!==f&&Qc(b,f,3,null)}else{var h=a.preOrderHooks;null!==h&&Rc(b,h,0,null);Lca(b,0)}for(var k=wd(b[13]);null!==k;k=wd(k[4]))if(k[2]){var q=k[9];for(f=0;f<q.length;f++){var v=q[f],y=v[3];0===(v[2]&512)&&Dca(y,1);v[2]|=512}}for(var E=wd(b[13]);null!==E;E=wd(E[4]))for(k=10;k<E.length;k++){var I=E[k],N=I[1];64===(I[2]&64)&&Qd(N,I,N.template,I[8])}null!==a.contentQueries&&lea(a,b);if(c){var L=a.contentCheckHooks;null!==L&&Qc(b,L,3)}else{var T=a.contentHooks;
null!==T&&Rc(b,T,1);Lca(b,1)}var Y=a.hostBindingOpCodes;if(null!==Y)try{for(E=0;E<Y.length;E++){var ka=Y[E];if(0>ka)Hc.selectedIndex=~ka;else{I=ka;var ha=Y[++E],ra=Y[++E];N=Hc;N.bindingIndex=N.bindingRootIndex=ha;Hc.currentDirectiveIndex=I;ra(2,b[I])}}}finally{Hc.selectedIndex=-1}var Da=a.components;if(null!==Da)for(Y=0;Y<Da.length;Y++){var Ja=Fc(Da[Y],b);if(64===(Ja[2]&64)){var Ba=Ja[1];Ja[2]&48?Qd(Ba,Ja,Ba.template,Ja[8]):0<Ja[5]&&pea(Ja)}}var La=a.viewQuery;null!==La&&(Hc.currentQueryIndex=0,La(2,
d));if(c){var hb=a.viewCheckHooks;null!==hb&&Qc(b,hb,3)}else{var fb=a.viewHooks;null!==fb&&Rc(b,fb,2);Lca(b,2)}!0===a.firstUpdatePass&&(a.firstUpdatePass=!1);b[2]&=-41;b[2]&512&&(b[2]&=-513,Dca(b[3],-1))}finally{Kca()}}},oea=function(a,b,c,d,e){var f=Hc.selectedIndex;try{Hc.selectedIndex=-1,d&2&&22<b.length&&zda(a,b,22),c(d,e)}finally{Hc.selectedIndex=f}},qea=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)}}},sea=function(a,b,c){var d=Ec(c,b),e=c.directiveStart,f=c.directiveEnd;a.firstCreatePass||Yc(c,b);rd(d,b);d=c.initialInputs;for(var h=e;h<f;h++){var k=a.data[h],q=null!==k.template;if(q){var v=b,y=c,E=Ec(y,v),I=rea(k),N=v[10];E=Rd(v,Nd(v,I,null,k.onPush?32:16,E,y,N,N.createRenderer(E,k),null,null,null));v[y.index]=E}v=bd(b,a,h,c);rd(v,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++],T=y[I++];null!==E?k.setInput(v,T,N,L):v[L]=T}q&&(Fc(c.index,b)[8]=
v)}if(128===(c.flags&128)){f=c.directiveStart;e=c.directiveEnd;d=c.index;c=Hc.currentDirectiveIndex;try{for(Hc.selectedIndex=d;f<e;f++){var Y=a.data[f],ka=b[f];Hc.currentDirectiveIndex=f;null===Y.hostBindings&&0===Y.hostVars&&null===Y.hostAttrs||null===Y.hostBindings||Y.hostBindings(1,ka)}}finally{Hc.selectedIndex=-1,Hc.currentDirectiveIndex=c}}},tea=function(a,b,c){c=void 0===c?Ec: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}},
rea=function(a){var b=a.tView;return null===b||b.incompleteFirstPass?a.tView=uea(1,null,a.template,a.decls,a.vars,a.directiveDefs,a.pipeDefs,a.viewQuery,a.schemas,a.consts):b},uea=function(a,b,c,d,e,f,h,k,q,v){d=22+d;e=d+e;for(var y=[],E=0;E<e;E++)y.push(E<d?null:Sd);v="function"===typeof v?v():v;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:v,incompleteFirstPass:!1}},vea=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))},wea=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},Td=function(a,b,c,d,e,f,h,k){var q=Ec(b,c),v=b.inputs,y;!k&&null!=v&&(y=v[d])?(xea(a,c,y,d,e),2===(b.flags&2)&&(a=Fc(b.index,c),a[2]&16||(a[2]|=32))):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))},zea=function(a,b,c){var d=Ic();if(a.firstCreatePass){c.providersResolver&&c.providersResolver(c);var e=nea(a,b,1,null);yea(a,d,b,e,c)}a=bd(b,a,d.directiveStart,d);rd(a,b);(d=Ec(d,b))&&rd(d,b);return a},Bea=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(Pda(c,k.selectors,!1)){f||(f=[]);var q=Yc(c,b);Xc(q,a,k.type);null!==k.template?(Aea(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=nea(a,b,f.length,null);for(var v=0;v<f.length;v++){var y=f[v];c.mergedAttrs=Tc(c.mergedAttrs,y.hostAttrs);yea(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(v=c.directiveStart;v<b;v++){y=a[v];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=wea(E,v,k);q=wea(y.outputs,v,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=Tc(c.mergedAttrs,c.attrs)},Cea=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)}},Aea=function(a,b){b.flags|=2;(a.components||(a.components=[])).push(b.index)},yea=function(a,b,c,d,e){a.data[d]=e;var f=e.factory||(e.factory=Bc(e.type));f=new cd(f,null!==e.template,null);a.blueprint[d]=f;c[d]=f;Cea(a,b,d,nea(a,c,e.hostVars,Sd),e)},Ud=function(a,b,c,d,e,f){var h=Ec(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))},pea=function(a){for(var b=wd(a[13]);null!==b;b=wd(b[4]))for(var c=10;c<b.length;c++){var d=b[c];if(d[2]&512){var e=d[1];Qd(e,d,e.template,d[8])}else 0<d[5]&&pea(d)}b=a[1].components;if(null!==b)for(c=0;c<b.length;c++)d=Fc(b[c],a),64===(d[2]&64)&&0<d[5]&&pea(d)},Rd=function(a,b){a[13]?a[14][4]=b:a[13]=b;return a[14]=b},Dea=function(a){for(;a;){a[2]|=
32;var b=Bda(a);if(0!==(a[2]&256)&&!b)break;a=b}},Eea=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]},Fea=function(a,b){(a=(a=a[9])?a.get(Vd,null):null)&&a.handleError(b)},xea=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}},Gea=function(a,b){var c=Dc(a[Hc.selectedIndex]);a=a[11];a.listen?a.setValue(c,b):c.textContent=
b},Wd=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},Iea=function(a,b,c,d){var e=[Hea],f=c[1],h=zea(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,Ic().directiveStart);a=Ic();!f.firstCreatePass||
null===b.hostBindings&&null===b.hostAttrs||(Hc.selectedIndex=a.index,Cea(c[1],a,a.directiveStart,a.directiveEnd,b),null!==b.hostBindings&&b.hostBindings(1,h));return h},Hea=function(a){a=xda(a)[1];Pc(a,Ic())},Xd=function(a,b,c,d,e){for(e=void 0===e?!1:e;null!==c;){var f=b[c.index];null!==f&&d.push(Dc(f));if(yc(f))for(var h=10;h<f.length;h++){var k=f[h],q=k[1].firstChild;null!==q&&Xd(k[1],k,q,d)}f=c.type;if(f&8)Xd(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=Bda(b[16]),Xd(h[1],h,f,d,!0)));c=e?c.projectionNext:c.next}return d},Jea=function(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&b.push({propName:a[c],templateName:c});return b},Kea=function(a,b,c){return(new Yd(a,void 0===b?null:b,void 0===c?null:c)).injector},Zd=function(a){return!!a&&"function"===typeof a.then},Lea=function(a){return!!a&&"function"===typeof a.subscribe},Mea=function(){},Oea=function(){return Nea()+
Nea()+Nea()},Nea=function(){return String.fromCharCode(97+Math.floor(25*Math.random()))},$d=function(a){var b=a.toLowerCase().replace(/_/g,"-"),c=Pea(b);if(c)return c;b=b.split("-")[0];if(c=Pea(b))return c;if("en"===b)return Qea;throw Error("qa`"+a);},Pea=function(a){a in Rea||(Rea[a]=ud.ng&&ud.ng.common&&ud.ng.common.locales&&ud.ng.common.locales[a]);return Rea[a]},ae=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=Sea(a.inputs);f.declaredInputs=Sea(a.declaredInputs);f.outputs=Sea(a.outputs);(f=e.hostBindings)&&Tea(a,f);f=e.viewQuery;var h=e.contentQueries;f&&Uea(a,f);h&&Vea(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===ae&&(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=Tc(e.hostAttrs,b=Tc(b,e.hostAttrs))},Sea=function(a){return a===vc?{}:a===sc?[]:a},Uea=function(a,b){var c=a.viewQuery;c?a.viewQuery=function(d,e){b(d,e);c(d,e)}:a.viewQuery=b},Vea=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},Tea=function(a,b){var c=a.hostBindings;c?a.hostBindings=function(d,
e){b(d,e);c(d,e)}:a.hostBindings=b},ce=function(){if(!be){var a=ud.Symbol;if(a&&a.iterator)be=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&&(be=c)}}}return be},Xea=function(a){return Wea(a)?Array.isArray(a)||!(a instanceof Map)&&ce()in a:!1},Yea=function(a,b){if(Array.isArray(a))for(var c=0;c<a.length;c++)b(a[c]);else for(a=a[ce()]();!(c=a.next()).done;)b(c.value)},Wea=function(a){return null!==
a&&("function"===typeof a||"object"===typeof a)},de=function(a,b,c){return a[b]=c},ee=function(a,b,c){if(Object.is(a[b],c))return!1;a[b]=c;return!0},fe=function(a,b,c,d){c=ee(a,b,c);return ee(a,b+1,d)||c},Zea=function(a,b,c,d,e){c=fe(a,b,c,d);return ee(a,b+2,e)||c},ge=function(a,b,c,d){var e=x(),f=Hc.bindingIndex++;ee(e,f,b)&&(f=Mc(),Ud(f,e,a,b,c,d));return ge},he=function(a,b,c,d){return ee(a,Hc.bindingIndex++,c)?b+hc(c)+d:Sd},$ea=function(a,b,c,d,e,f){a=fe(a,Hc.bindingIndex,c,e);Lc(2);return a?
b+hc(c)+d+hc(e)+f:Sd},ie=function(a,b,c,d,e,f){var h=x();b=he(h,b,c,d);b!==Sd&&(c=Mc(),Ud(c,h,a,b,e,f));return ie},je=function(a,b,c,d,e,f,h,k){var q=x();b=$ea(q,b,c,d,e,f);b!==Sd&&(c=Mc(),Ud(c,q,a,b,h,k));return je},afa=function(a,b,c,d,e,f,h,k,q,v){var y=x(),E=Zea(y,Hc.bindingIndex,c,e,h);Lc(3);b=E?b+hc(c)+d+hc(e)+f+hc(h)+k:Sd;b!==Sd&&(c=Mc(),Ud(c,y,a,b,q,v));return afa},C=function(a,b,c){var d=x(),e=Hc.bindingIndex++;if(ee(d,e,b)){e=Hc.tView;var f=Mc();Td(e,f,d,a,b,d[11],c,!1)}return C},bfa=function(a,
b,c,d,e){e=e?"class":"style";xea(a,c,b.inputs[e],e,d)},cfa=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],v=a[h],y=b;if(null===v||null==y||(Array.isArray(v)?v[1]:v)===y||Array.isArray(v)&&"string"===typeof y&&0<=hd(v,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)},hfa=function(a,b){var c=dfa;if(c===b)return-1;for(b=efa=b;b<c&&32<a.charCodeAt(b);)b++;b=ffa=b;return gfa(a,b,c)},gfa=function(a,b,c){for(;b<
c&&32>=a.charCodeAt(b);)b++;return b},ke=function(a,b,c){ifa(a,b,c,!1);return ke},le=function(a,b){ifa(a,b,null,!0);return le},ifa=function(a,b,c,d){var e=x(),f=Hc.tView,h=Lc(2);f.firstUpdatePass&&jfa(f,a,h,d);if(b!==Sd&&ee(e,h,b)){var k=f.data[Hc.selectedIndex],q=e[11];null!=b&&("string"===typeof c?b+=c:"object"===typeof b&&(b=ac(Ed(b))));kfa(f,k,e,q,a,e[h+1]=b,d,h)}},me=function(a){var b=Hc.tView,c=Lc(2);b.firstUpdatePass&&jfa(b,null,c,!0);var d=x();if(a!==Sd&&ee(d,c,a)){var e=b.data[Hc.selectedIndex];
if(0===(e.flags&16)||c>=b.expandoStartIndex){var f=d[11],h=d[c+1];if(null==a||""===a)var k=sc;else if(k=[],a=Ed(a),Array.isArray(a))for(var q=0;q<a.length;q++)jd(k,a[q],!0);else if("object"===typeof a)for(q in a)a.hasOwnProperty(q)&&jd(k,q,a[q]);else if("string"===typeof a)for(ffa=efa=0,dfa=a.length,q=hfa(a,gfa(a,0,dfa));0<=q;q=hfa(a,q))jd(k,a.substring(efa,ffa),!0);k=d[c+1]=k;h===Sd&&(h=sc);q=a=0;for(var v=0<h.length?h[0]:null,y=0<k.length?k[0]:null;null!==v||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;v===y?(a+=2,q+=2,E!==I&&(N=y,L=I)):null===y||null!==v&&v<y?(a+=2,N=v):(q+=2,N=y,L=I);null!==N&&kfa(b,e,d,f,N,L,!0,c);v=a<h.length?h[a]:null;y=q<k.length?k[q]:null}}else c=e.classesWithoutHost,null!==c&&(a=Zba(c,a?a:"")),bfa(b,e,d,a,!0)}},jfa=function(a,b,c,d){var e=a.data;if(null===e[c+1]){var f=e[Hc.selectedIndex];a=c>=a.expandoStartIndex;0!==(f.flags&(d?16:32))&&null===b&&!a&&(b=!1);var h=Eca(e),k=d?f.residualClasses:f.residualStyles;if(null===h)0===(d?
f.classBindings:f.styleBindings)&&(b=lfa(null,e,f,b,d),b=ne(b,f.attrs,d),k=null);else{var q=f.directiveStylingLast;if(-1===q||e[q]!==h)if(b=lfa(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=lfa(null,e,f,h[1],d),h=ne(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=ne(k,e[q].hostAttrs,d);k=ne(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 v=!1;if(Array.isArray(q)){if(h=q[1],null===h||0<hd(q,h))v=!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);v&&(e[c+1]=e[c+1]|2);cfa(e,h,c,!0);cfa(e,h,c,!1);a=d?f.residualClasses:f.residualStyles;null!=a&&"string"==
typeof h&&0<=hd(a,h)&&(e[c+1]=e[c+1]|1);k=b<<17|k<<2;d?f.classBindings=k:f.styleBindings=k}},lfa=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=ne(d,k.hostAttrs,e);if(k===a)break;h++}null!==a&&(c.directiveStylingLast=h);return d},ne=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]),jd(a,h,c?!0:b[++f]))}return void 0===
a?null:a},kfa=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)?mfa(a,b,c,e,(q&131068)>>2,h):void 0))if(void 0!==f||2==(q&2)&&(f=mfa(a,null,c,e,k,h)),b=Dc(c[Hc.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":"")}}},mfa=function(a,b,c,d,e,f){for(var h=null===b,k=void 0;0<e;){var q=a[e],v=Array.isArray(q),y=v?q[1]:q,E=null===y,I=c[e+1];I===Sd&&(I=E?sc:void 0);y=E?ada(I,d):y===d?I:void 0;v&&void 0===y&&(y=ada(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=ada(a,d)));return k},oe=function(a,b,c){a=he(x(),a,b,c);me(a)},D=function(a,b){b=void 0===b?0:b;var c=x();return null===
c?t(a,b):Wca(Ic(),c,cc(a),b)},pe=function(){throw Error("ra");},F=function(a,b,c,d){var e=x(),f=Hc.tView,h=22+a;a=e[11];var k=e[h]=Eda(a,b,Hc.currentNamespace);if(f.firstCreatePass){var q=f.consts;c=Gc(q,c);b=Od(f,h,2,b,c);Bea(f,e,b,Gc(q,d));null!==b.attrs&&Wd(b,b.attrs,!1);null!==b.mergedAttrs&&Wd(b,b.mergedAttrs,!0);null!==f.queries&&f.queries.elementStart(f,b)}else b=f.data[h];Jc(b,!0);q=b.mergedAttrs;null!==q&&Sc(a,k,q);q=b.classes;null!==q&&Mda(a,k,q);q=b.styles;null!==q&&(a.listen?a.setAttribute(k,
"style",q):k.style.cssText=q);64!==(b.flags&64)&&Ad(f,e,k,b);0===Hc.elementDepthCount&&rd(k,e);Hc.elementDepthCount++;1===(b.flags&1)&&(sea(f,e,b),qea(f,b,e));null!==d&&tea(e,b);return F},G=function(){var a=Ic();Hc.isParent?Hc.isParent=!1:(a=a.parent,Jc(a,!1));var b=a;Hc.elementDepthCount--;var c=Hc.tView;c.firstCreatePass&&(Pc(c,a),0!==(a.flags&8)&&c.queries.elementEnd(a));null!=b.classesWithoutHost&&0!==(b.flags&16)&&bfa(c,b,x(),b.classesWithoutHost,!0);null!=b.stylesWithoutHost&&0!==(b.flags&32)&&
bfa(c,b,x(),b.stylesWithoutHost,!1);return G},H=function(a,b,c,d){F(a,b,c,d);G();return H},qe=function(a,b,c){var d=x(),e=Hc.tView;a+=22;if(e.firstCreatePass){var f=e.consts;var h=Gc(f,b);b=Od(e,a,8,"ng-container",h);null!==h&&Wd(b,h,!0);f=Gc(f,c);Bea(e,d,b,f);null!==e.queries&&e.queries.elementStart(e,b);f=b}else f=e.data[a];Jc(f,!0);a=d[a]=d[11].createComment("");Ad(e,d,a,f);rd(a,d);1===(f.flags&1)&&(sea(e,d,f),qea(e,f,d));null!=c&&tea(d,f);return qe},re=function(){var a=Ic(),b=Hc.tView;Hc.isParent?
Hc.isParent=!1:(a=a.parent,Jc(a,!1));b.firstCreatePass&&(Pc(b,a),0!==(a.flags&8)&&b.queries.elementEnd(a));return re},ue=function(a,b,c){qe(a,b,c);re();return ue},ve=function(a,b,c){var d=x(),e=Hc.bindingIndex++;if(ee(d,e,b)){e=Hc.tView;var f=Mc();Td(e,f,d,a,b,d[11],c,!0)}return ve},we=function(a,b,c){var d=x(),e=Hc.bindingIndex++;if(ee(d,e,b)){e=Hc.tView;var f=Mc(),h=Eea(Eca(e.data),f,d);Td(e,f,d,a,b,h,c,!0)}return we},J=function(a,b,c,d){var e=x();nfa(Hc.tView,e,e[11],Ic(),a,b,!!c,d);return J},
ofa=function(a,b){var c=Ic(),d=x(),e=Hc.tView,f=Eea(Eca(e.data),c,d);nfa(e,d,f,c,a,b,!1);return ofa},pfa=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},nfa=function(a,b,c,d,e,f,h,k){var q=1===(d.flags&1),v=a.firstCreatePass&&(a.cleanup||(a.cleanup=[])),y=b[7]||(b[7]=[]),E=!0;if(d.type&3||k){var I=Ec(d,b),N=k?k(I):I;I=y.length;var L=k?function(Y){return k(Dc(Y[d.index]))}:
d.index;c.listen?(h=null,!k&&q&&(h=pfa(a,b,e,d.index)),null!==h?((h.__ngLastListenerFn__||h).__ngNextListenerFn__=f,h.__ngLastListenerFn__=f,E=!1):(f=qfa(d,b,f,!1),a=c.listen(N,e,f),y.push(f,a),v&&v.push(e,L,I,I+1))):(f=qfa(d,b,f,!0),N.addEventListener(e,f,h),y.push(f),v&&v.push(e,L,I,h))}else f=qfa(d,b,f,!1);a=d.outputs;var T;if(E&&null!==a&&(T=a[e])&&(E=T.length))for(a=0;a<E;a+=2)c=b[T[a]][T[a+1]].subscribe(f),q=y.length,y.push(f,c),v&&v.push(e,d.index,q,-(q+1))},rfa=function(a,b,c){try{return!1!==
b(c)}catch(d){return Fea(a,d),!1}finally{}},qfa=function(a,b,c,d){return function h(f){if(f===Function)return c;var k=a.flags&2?Fc(a.index,b):b;Dea(k);k=rfa(b,c,f);for(var q=h.__ngNextListenerFn__;q;)k=rfa(b,q,f)&&k,q=q.__ngNextListenerFn__;d&&!1===k&&(f.preventDefault(),f.returnValue=!1);return k}},K=function(a){var b=Hc;a=void 0===a?1:a;for(var c=Hc.contextLView;0<a;)c=c[15],a--;return(b.contextLView=c)[8]},xe=function(a){var b=x()[16][6];if(!b.projection){var c=b.projection=$ca(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 v=f[q];if("*"===v)h=q;else{if(null===k)v=Pda(e,v,!0);else b:{var y=0;c:for(;y<v.length;y++){var E=v[y];if(k.length===E.length){for(var I=0;I<k.length;I++)if(k[I]!==E[I])continue c;v=!0;break b}}v=!1}if(v){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}}},ye=function(a,b,c){b=
void 0===b?0:b;var d=x(),e=Hc.tView;a=Od(e,22+a,16,null,c||null);null===a.projection&&(a.projection=b);Hc.isParent=!1;64!==(a.flags&64)&&(b=d[11],e=Jda(e,a.parent,d),c=a.parent||d[6],c=c.type&40?Ec(c,d):null,Lda(b,0,d,a,e,c))},Ae=function(a,b,c){ze(a,"",b,"",c);return Ae},ze=function(a,b,c,d,e){var f=x();b=he(f,b,c,d);b!==Sd&&(c=Hc.tView,d=Mc(),Td(c,d,f,a,b,f[11],e,!1));return ze},Be=function(a,b,c,d,e,f,h){var k=x();b=$ea(k,b,c,d,e,f);b!==Sd&&(c=Hc.tView,d=Mc(),Td(c,d,k,a,b,k[11],h,!1));return Be},
Ce=function(a){return Hc.contextLView[22+a]},M=function(a,b,c,d,e,f,h,k){var q=x(),v=Hc.tView;a+=22;if(v.firstCreatePass){var y=v.consts;e=Od(v,a,4,e||null,Gc(y,f));Bea(v,q,e,Gc(y,h));Pc(v,e);b=e.tViews=uea(2,e,b,c,d,v.directiveRegistry,v.pipeRegistry,null,v.schemas,y);null!==v.queries&&(v.queries.template(v,e),b.queries=v.queries.embeddedTView(e));b=e}else b=v.data[a];Jc(b,!1);c=q[11].createComment("");Ad(v,q,c,b);rd(c,q);Rd(q,q[a]=[c,!0,!1,q,null,0,b,c,null,null]);1===(b.flags&1)&&sea(v,q,b);null!=
h&&tea(q,b,k)},O=function(a,b){b=void 0===b?"":b;var c=x(),d=Hc.tView,e=a+22;a=d.firstCreatePass?Od(d,e,1,b,null):d.data[e];var f=c[11];b=c[e]=f.listen?f.createText(b):f.createTextNode(b);Ad(d,c,b,a);Jc(a,!1)},Ee=function(a){De("",a,"");return Ee},De=function(a,b,c){var d=x();a=he(d,a,b,c);a!==Sd&&Gea(d,a);return De},Fe=function(a,b,c,d,e){var f=x();a=$ea(f,a,b,c,d,e);a!==Sd&&Gea(f,a);return Fe},sfa=function(a,b,c,d,e,f,h){var k=x(),q=Zea(k,Hc.bindingIndex,b,d,f);Lc(3);a=q?a+hc(b)+c+hc(d)+e+hc(f)+
h:Sd;a!==Sd&&Gea(k,a);return sfa},tfa=function(a,b,c,d,e){a=cc(a);if(Array.isArray(a))for(var f=0;f<a.length;f++)tfa(a[f],b,c,d,e);else{f=Hc.tView;var h=x(),k=kd(a)?a:cc(a.provide),q=oda(a),v=Ic(),y=v.providerIndexes&1048575,E=v.directiveStart,I=v.providerIndexes>>20;if(kd(a)||!a.multi)d=new cd(q,e,D),q=ufa(k,b,e?y:y+I,E),-1===q?(q=Yc(v,h),Xc(q,f,k),vfa(f,a,b.length),b.push(k),v.directiveStart++,v.directiveEnd++,e&&(v.providerIndexes+=1048576),c.push(d),h.push(d)):(c[q]=d,h[q]=d);else{E=ufa(k,b,y+
I,E);y=ufa(k,b,y,y+I);var N=0<=E&&c[E];I=0<=y&&c[y];e&&!I||!e&&!N?(E=Yc(v,h),Xc(E,f,k),E=c.length,N=new cd(e?wfa:xfa,e,D),N.multi=[],N.index=E,N.componentProviders=0,d&&!e&&N.componentProviders++,N.multi.push(q),!e&&I&&(c[y].providerFactory=N),vfa(f,a,b.length,0),b.push(k),v.directiveStart++,v.directiveEnd++,e&&(v.providerIndexes+=1048576),c.push(N),h.push(N)):(b=c[e?y:E],!e&&d&&b.componentProviders++,b=b.multi.push(q)-1,vfa(f,a,-1<E?E:y,b));!e&&d&&I&&c[y].componentProviders++}}},vfa=function(a,b,
c,d){var e=kd(b),f=!!b.useClass;if(e||f)if(f=(f?cc(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)},ufa=function(a,b,c,d){for(;c<d;c++)if(b[c]===a)return c;return-1},xfa=function(){return yfa(this.multi,[])},wfa=function(a,b,c,d){b=this.multi;if(this.providerFactory){var e=this.providerFactory.componentProviders;d=bd(c,c[1],this.providerFactory.index,d);c=d.slice(0,e);yfa(b,c);for(b=e;b<d.length;b++)c.push(d[b])}else c=
[],yfa(b,c);return c},yfa=function(a,b){for(var c=0;c<a.length;c++)b.push((0,a[c])());return b},Ge=function(a){var b=void 0===b?[]:b;return function(c){c.providersResolver=function(d,e){e=e?e(a):a;var f=Hc.tView;f.firstCreatePass&&(d=null!==d.template,tfa(b,f.data,f.blueprint,d,!0),tfa(e,f.data,f.blueprint,d,!1))}}},He=function(a,b){a=Kc()+a;var c=x();return c[a]===Sd?de(c,a,b()):c[a]},Ie=function(a,b,c){return zfa(x(),Kc(),a,b,c)},Je=function(a,b,c,d){return Afa(x(),Kc(),a,b,c,d)},Ke=function(a,
b,c,d){return Bfa(x(),Kc(),2,a,b,c,d)},Dfa=function(a,b,c,d,e,f){var h=Cfa,k=Kc()+8,q=x();var v=fe(q,k,a,b);v=fe(q,k+2,c,d)||v;return fe(q,k+4,e,f)||v?de(q,k+6,h(a,b,c,d,e,f)):q[k+6]},Le=function(a,b){a=a[b];return a===Sd?void 0:a},zfa=function(a,b,c,d,e,f){b+=c;return ee(a,b,e)?de(a,b+1,f?d.call(f,e):d(e)):Le(a,b+1)},Afa=function(a,b,c,d,e,f,h){b+=c;return fe(a,b,e,f)?de(a,b+2,h?d.call(h,e,f):d(e,f)):Le(a,b+2)},Bfa=function(a,b,c,d,e,f,h,k){b+=c;return Zea(a,b,e,f,h)?de(a,b+3,k?d.call(k,e,f,h):d(e,
f,h)):Le(a,b+3)},P=function(a,b){var c=Hc.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=Bc(b.type));d=lc(D);try{var h=Vc(!1),k=b();Vc(h);var q=x();a>=c.data.length&&(c.data[a]=null,c.blueprint[a]=null);q[a]=k}finally{lc(d)}},Q=function(a,b,c){a+=22;var d=x(),e=d[a];return d[1].data[a].pure?
zfa(d,Kc(),b,e.transform,c,e):e.transform(c)},Me=function(a,b,c,d){a+=22;var e=x(),f=e[a];return e[1].data[a].pure?Afa(e,Kc(),b,f.transform,c,d,f):f.transform(c,d)},Ne=function(a){setTimeout(function(){throw a;},0)},Oe=function(a){return"function"===typeof a},Pe=function(a){return null!==a&&"object"===typeof a},Efa=function(a){return a instanceof Qe||a&&"closed"in a&&"function"===typeof a.remove&&"function"===typeof a.add&&"function"===typeof a.unsubscribe},Ffa=function(a){return a.reduce(function(b,
c){return b.concat(c instanceof Re?c.errors:c)},[])},Gfa=function(a){for(;a;){var b=a,c=b.destination,d=b.isStopped;if(b.closed||d)return!1;c&&c instanceof Se?a=c:a=null}return!0},Te=function(a){return a},Hfa=function(a){return 0===a.length?Te:1===a.length?a[0]:function(b){return a.reduce(function(c,d){return d(c)},b)}},Ifa=function(a){return a&&"function"===typeof a.next&&"function"===typeof a.error&&"function"===typeof a.complete},Jfa=function(a){a||(a=Ue.Promise||Promise);if(!a)throw Error("ua");
return a},Kfa=function(a){return new Ve(function(b){return a.schedule(function(){return b.complete()})})},Lfa=function(a,b){return new Ve(function(c){var d=new Qe,e=0;d.add(b.schedule(function(){e===a.length?c.complete():(c.next(a[e++]),c.closed||d.add(this.schedule()))}));return d})},We=function(a,b){return b?Lfa(a,b):new Ve(Mfa(a))},Xe=function(a){return a&&"function"===typeof a.schedule},Nfa=function(){var a=qc.apply(0,arguments),b=a[a.length-1];return Xe(b)?(a.pop(),Lfa(a,b)):We(a)},Ofa=function(a){a.subscriber.error(a.error)},
Ye=function(a,b){if(a&&"function"===typeof a.lift)return a.lift(b);throw new TypeError("va");},Ze=function(){return function(a){return Ye(a,new Pfa)}},R=function(a){return function(b){if("function"!==typeof a)throw new TypeError("wa");return Ye(b,new Qfa(a))}},Rfa=function(a,b,c){if(b)if(Xe(b))c=b;else return function(){return Rfa(a,c).apply(null,u(qc.apply(0,arguments))).pipe(R(function(d){return $e(d)?b.apply(null,u(d)):b(d)}))};return function(){var d=qc.apply(0,arguments),e=this,f,h={context:e,
subject:void 0,callbackFunc:a,scheduler:c};return new Ve(function(k){if(c)return c.schedule(Sfa,0,{args:d,subscriber:k,params:h});if(!f){f=new af;var q=function(){var v=qc.apply(0,arguments);f.next(1>=v.length?v[0]:v);f.complete()};try{a.apply(e,[].concat(u(d),[q]))}catch(v){Gfa(f)?f.error(v):console.warn(v)}}return f.subscribe(k)})}},Sfa=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 af;e=function(){var q=
qc.apply(0,arguments);b.add(h.schedule(Tfa,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))},Tfa=function(a){var b=a.subject;b.next(a.value);b.complete()},Ufa=function(a,b,c){if(b)if(Xe(b))c=b;else return function(){return Ufa(a,c).apply(null,u(qc.apply(0,arguments))).pipe(R(function(d){return $e(d)?b.apply(null,u(d)):b(d)}))};return function(){var d=qc.apply(0,arguments),e={subject:void 0,args:d,callbackFunc:a,scheduler:c,
context:this};return new Ve(function(f){var h=e.context,k=e.subject;if(c)return c.schedule(Vfa,0,{params:e,subscriber:f,context:h});if(!k){k=e.subject=new af;var q=function(){var v=qc.apply(0,arguments),y=v.shift();y?k.error(y):(k.next(1>=v.length?v[0]:v),k.complete())};try{a.apply(h,[].concat(u(d),[q]))}catch(v){Gfa(k)?k.error(v):console.warn(v)}}return k.subscribe(f)})}},Vfa=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 af;c=function(){var q=qc.apply(0,arguments),v=q.shift();v?b.add(h.schedule(Wfa,0,{err:v,subject:k})):b.add(h.schedule(Xfa,0,{value:1>=q.length?q[0]:q,subject:k}))};try{e.apply(a,[].concat(u(f),[c]))}catch(q){this.add(h.schedule(Wfa,0,{err:q,subject:k}))}}this.add(k.subscribe(d))},Xfa=function(a){var b=a.subject;b.next(a.value);b.complete()},Wfa=function(a){a.subject.error(a.err)},Yfa=function(a){return!!a&&"function"!==typeof a.subscribe&&"function"===typeof a.then},$fa=function(a){return function(b){Zfa(a,
b).catch(function(c){return b.error(c)})}},Zfa=function(a,b){var c,d,e;return bf(function(f){switch(f.nextAddress){case 1:var h=a[Symbol.asyncIterator];c=void 0!==h?h.call(a):new aga(r(a));case 2:return cf(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(),df(f)}})},ff=function(a,b){if(!b.closed)return a instanceof Ve?a.subscribe(b):ef(a)(b)},bga=function(a,b){if(!a)throw Error("za");return new Ve(function(c){var d=new Qe;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})},cga=function(a,b){if(!a)throw Error("za");return new Ve(function(c){var d=new Qe,e;d.add(function(){e&&"function"===typeof e.return&&e.return()});d.add(b.schedule(function(){e=a[gf]();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})},dga=function(a,b){return new Ve(function(c){var d=new Qe;d.add(b.schedule(function(){var e=a[hf]();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})},ega=function(a,b){return new Ve(function(c){var d=new Qe;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})},gga=function(a,b){if(null!=a){if(a&&"function"===typeof a[hf])return dga(a,b);if(Yfa(a))return ega(a,b);if(fga(a))return Lfa(a,b);if(a&&"function"===typeof a[gf]||"string"===typeof a)return cga(a,b);if(Symbol&&Symbol.asyncIterator&&"function"===typeof a[Symbol.asyncIterator])return bga(a,b)}throw new TypeError("Aa`"+(null!==a&&typeof a||a));},jf=function(a,b){return b?
gga(a,b):a instanceof Ve?a:new Ve(ef(a))},kf=function(a,b){var c=void 0===c?Infinity:c;if("function"===typeof b)return function(d){return d.pipe(kf(function(e,f){return jf(a(e,f)).pipe(R(function(h,k){return b(e,h,f,k)}))},c))};"number"===typeof b&&(c=b);return function(d){return Ye(d,new hga(a,c))}},lf=function(a){a=void 0===a?Infinity:a;return kf(Te,a)},mf=function(){return lf(1)(Nfa.apply(null,u(qc.apply(0,arguments))))},iga=function(a){return new Ve(function(b){try{var c=a()}catch(d){b.error(d);
return}return jf(c).subscribe(b)})},lga=function(a){return new Ve(function(b){var c=a||jga,d=c.now(),e=function(h){var k=c.now();b.next({timestamp:a?k:h,elapsed:k-d});b.closed||(f=kga(e))};var f=kga(e);return function(){return f.unsubscribe()}})},nf=function(a,b){return new Ve(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$1624:0};k.$jscomp$loop$prop$i$1624<d;k={$jscomp$loop$prop$hasValue$1625:k.$jscomp$loop$prop$hasValue$1625,$jscomp$loop$prop$i$1624:k.$jscomp$loop$prop$i$1624},
k.$jscomp$loop$prop$i$1624++){var q=jf(a[k.$jscomp$loop$prop$i$1624]);k.$jscomp$loop$prop$hasValue$1625=!1;c.add(q.subscribe({next:function(v){return function(y){v.$jscomp$loop$prop$hasValue$1625||(v.$jscomp$loop$prop$hasValue$1625=!0,h++);e[v.$jscomp$loop$prop$i$1624]=y}}(k),error:function(v){return c.error(v)},complete:function(v){return function(){f++;f!==d&&v.$jscomp$loop$prop$hasValue$1625||(h===d&&c.next(b?b.reduce(function(y,E,I){return y[E]=e[I],y},{}):e),c.complete())}}(k)}))}})},mga=function(a,
b,c,d){Oe(c)&&(d=c,c=void 0);return d?mga(a,b,c).pipe(R(function(e){return $e(e)?d.apply(null,u(e)):d(e)})):new Ve(function(e){nga(a,b,function(f){1<arguments.length?e.next(Array.prototype.slice.call(arguments)):e.next(f)},e,c)})},nga=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++)nga(a[h],b,c,d,e);else throw new TypeError("Ba");d.add(f)},oga=function(a,b,c){return c?oga(a,b).pipe(R(function(d){return $e(d)?c.apply(null,u(d)):c(d)})):new Ve(function(d){var e=function(){var h=qc.apply(0,arguments);return d.next(1===h.length?h[0]:h)};try{var f=a(e)}catch(h){d.error(h);return}if(Oe(b))return function(){return b(e,
f)}})},pga=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)}},qga=function(a){return!$e(a)&&0<=a-parseFloat(a)+1},rga=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)},of=function(){},sga=function(){var a=qc.apply(0,arguments);if(0===a.length)return pf;var b=r(a),c=b.next().value,d=qf(b);return 1===a.length&&$e(c)?sga.apply(null,u(c)):new Ve(function(e){var f=function(){return e.add(sga.apply(null,u(d)).subscribe(e))};return jf(c).subscribe({next:function(h){e.next(h)},error:f,complete:f})})},tga=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()},rf=function(a,b){return function(c){return Ye(c,new uga(a,b))}},vga=function(a,b){function c(){return!c.pred.apply(c.thisArg,arguments)}c.pred=a;c.thisArg=b;return c},wga=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)))},xga=function(a){return a instanceof Date&&!isNaN(a)},zga=function(a,b,c){a=
void 0===a?0:a;var d=-1;null!=b&&(Xe(b)?c=b:d=b);Xe(c)||(c=sf);return new Ve(function(e){var f=Math.max(0,xga(a)?+a-c.now():a);return c.schedule(yga,f,{counter:0,period:d,subscriber:e})})},yga=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)}},tf=function(a){var b;return function(c){var d=void 0,e=void 0,f=null,h;b=null!=(h=b)?h:sf;if(xga(a))var k=a;else if("number"===typeof a)d=a;else{k=a.first;d=a.each;e=a.with;b=a.scheduler||
sf;var q;f=null!=(q=a.meta)?q:null}var v;e=null!=(v=e)?v:Aga;if(null==k&&null==d)throw new TypeError("Da");return Ye(c,new Bga(k,d,e,b,f))}},Aga=function(a){throw new Cga(a);},Ega=function(a){return a in Dga?(delete Dga[a],!0):!1},Fga=function(a){return function(b){setTimeout(a,void 0,b)}},Gga=function(){return this._results[ce()]()},Hga=function(){return uf(Ic(),x())},uf=function(a,b){return a.type&4?new vf(b,a,qd(a,b)):null},Jga=function(){return Iga(Ic(),x())},Kga=function(a){return a[8]||(a[8]=
[])},Iga=function(a,b){var c=b[a.index];if(!yc(c)){if(a.type&8)var d=Dc(c);else{var e=b[11];d=e.createComment("");var f=Ec(a,b),h=Dda(e,f);xd(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];Rd(b,c)}return new wf(c,a,b)},Lga=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,v=q.push,y=b,E=a[k],I=e[h+1];k=c.metadata.read;-1===I?(k=E,y=k.type&11?qd(k,
y):k.type&4?uf(k,y):null):-2===I?y=k===pd?qd(E,y):k===xf?uf(E,y):k===yf?Iga(E,y):void 0:y=bd(y,y[1],I,E);v.call(q,y)}}d.matches=f}return d.matches},Mga=function(a,b,c,d){var e=a.queries.queries[c],f=e.matches;if(null!==f)for(a=Lga(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]&&Mga(q[1],q,e,d)}if(null!==h[9])for(h=h[9],k=0;k<h.length;k++)q=h[k],Mga(q[1],q,e,d)}}return d},Af=function(a){var b=x(),c=Hc.tView,
d=Hc.currentQueryIndex;Hc.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?Mga(c,b,d,[]):Lga(c,b,e,d),a.reset(b,vda),zf(a)),!0):!1},Bf=function(a,b,c){var d=Hc.tView;d.firstCreatePass&&(Nga(d,new Oga(a,b,c),-1),2===(b&2)&&(d.staticViewQueries=!0));Pga(d,b)},Cf=function(a,b,c,d){var e=Hc.tView;e.firstCreatePass&&(Nga(e,new Oga(b,c,d),Ic().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));Pga(e,c)},Df=function(){return x()[19].queries[Hc.currentQueryIndex].queryList},Pga=function(a,b){var c=x();b=new Ef(4===(b&4));vea(a,c,b,b.destroy);null===c[19]&&(c[19]=new Ff);c[19].queries.push(new Gf(b))},Nga=function(a,b,c){null===a.queries&&(a.queries=new Hf);a.queries.track(new If(b,c))},Jf=function(a,b){return uf(a,b)},Rga=function(a){"undefined"===typeof Zone?Qga.then(function(){a&&a.apply(null,
null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",a)},Kf=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}}},Tga=function(a){a.isCheckStableRunning||-1!==a.lastRequestAnimationFrameId||(a.lastRequestAnimationFrameId=a.nativeRequestAnimationFrame.call(ud,function(){a.fakeTopEventTask||(a.fakeTopEventTask=
Zone.root.scheduleEventTask("fakeTopEventTask",function(){a.lastRequestAnimationFrameId=-1;Sga(a);a.isCheckStableRunning=!0;Kf(a);a.isCheckStableRunning=!1},void 0,function(){},function(){}));a.fakeTopEventTask.invoke()}),Sga(a))},Vga=function(a){a._inner=a._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(b,c,d,e,f,h){try{return Uga(a),b.invokeTask(d,e,f,h)}finally{(a.shouldCoalesceEventChangeDetection&&"eventTask"===e.type||a.shouldCoalesceRunChangeDetection)&&Tga(a),
a._nesting--,Kf(a)}},onInvoke:function(b,c,d,e,f,h,k){try{return Uga(a),b.invoke(d,e,f,h,k)}finally{a.shouldCoalesceRunChangeDetection&&Tga(a),a._nesting--,Kf(a)}},onHasTask:function(b,c,d,e){b.hasTask(d,e);c===d&&("microTask"==e.change?(a._hasPendingMicrotasks=e.microTask,Sga(a),Kf(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}})},Sga=function(a){a.hasPendingMicrotasks=
a._hasPendingMicrotasks||(a.shouldCoalesceEventChangeDetection||a.shouldCoalesceRunChangeDetection)&&-1!==a.lastRequestAnimationFrameId?!0:!1},Uga=function(a){a._nesting++;a.isStable&&(a.isStable=!1,a.onUnstable.emit(null))},Xga=function(a){return function(b){return Ye(b,new Wga(a))}},Lf=function(a,b){b=void 0===b?sf:b;return Xga(function(){return zga(a,b)})},Zga=function(a){return function(b){return Ye(b,new Yga(a))}},Mf=function(a){return function(b){var c=new $ga(a);b=Ye(b,c);return c.caught=b}},
aha=function(){var a=qc.apply(0,arguments);return function(b){var c=mf.apply(null,[b].concat(u(a)));if(b&&"function"===typeof b.lift)b=b.lift.call(c);else throw new TypeError("va");return b}},cha=function(a){return function(b){return Ye(b,new bha(a))}},Nf=function(a,b){b=void 0===b?sf:b;return function(c){return Ye(c,new dha(a,b))}},fha=function(a){eha(a)},hha=function(a){a=void 0===a?null:a;return function(b){return Ye(b,new gha(a))}},Of=function(a,b){b=void 0===b?sf:b;var c=xga(a)?+a-b.now():Math.abs(a);
return function(d){return Ye(d,new iha(c,b))}},Pf=function(a){return function(b){return Ye(b,new jha(a))}},Qf=function(){if(isNaN(1))throw new TypeError("Ia");return function(a){return Ye(a,new kha)}},nha=function(a){a=void 0===a?lha:a;return function(b){return Ye(b,new mha(a))}},lha=function(){return new Rf},Sf=function(a){return function(b){return Ye(b,new oha(a))}},Tf=function(a,b){var c=2<=arguments.length;return function(d){return d.pipe(a?rf(function(e,f){return a(e,f,d)}):Te,Qf(),c?hha(b):
nha(function(){return new Rf}))}},qha=function(){return function(a){return Ye(a,new pha)}},sha=function(){if(isNaN(1))throw new TypeError("Ia");return function(a){return Ye(a,new rha)}},tha=function(a,b){var c=2<=arguments.length;return function(d){return d.pipe(a?rf(function(e,f){return a(e,f,d)}):Te,sha(),c?hha(b):nha(function(){return new Rf}))}},Uf=function(a){return function(b){return Ye(b,new uha(a))}},Vf=function(a,b){var c=!1;2<=arguments.length&&(c=!0);return function(d){return Ye(d,new vha(a,
b,c))}},xha=function(a){return function(b){var c;"function"===typeof a?c=a:c=function(){return a};var d=Object.create(b,wha);d.source=b;d.subjectFactory=c;return d}},yha=function(){var a=new Wf(1,void 0,void 0);return function(b){return xha(function(){return a})(b)}},zha=function(){return new Xf},Yf=function(){return function(a){return Ze()(xha(zha)(a))}},Zf=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 Ye(c,
Aha(b))}},Aha=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 v=f.subscribe(this);else f=new Wf(b,c,e),v=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--;v.unsubscribe();d&&0===h&&k&&(k.unsubscribe(),f=k=void 0)})}},$f=function(a){return function(b){return Ye(b,
new Bha(a))}},ag=function(){var a=qc.apply(0,arguments),b=a[a.length-1];return Xe(b)?(a.pop(),function(c){return mf(a,c,b)}):function(c){return mf(a,c)}},bg=function(a){return function(b){return Ye(b,new Cha(a))}},Dha=function(a){return bg(function(){return a})},cg=function(a){return function(b){return Ye(b,new Eha(a))}},Gha=function(a){var b=void 0===b?!1:b;return function(c){return Ye(c,new Fha(a,b))}},dg=function(a,b){return function(c){return Ye(c,new Hha(a,b))}},Kha=function(a){var b=void 0===
b?Iha:b;return function(c){return Ye(c,new Jha(a,!!b.leading,!!b.trailing))}},eg=function(){var a=qc.apply(0,arguments);return function(b){var c;"function"===typeof a[a.length-1]&&(c=a.pop());return Ye(b,new Lha(a,c))}},Nha=function(a){(a=a.get(Mha,null))&&a.forEach(function(b){return b()})},Rha=function(a,b,c){c=void 0===c?[]:c;var d="Platform: "+b,e=new ld(d);return function(f){f=void 0===f?[]:f;var h=Oha();if(!h||h.injector.get(Pha,!1))if(f=[].concat(u(c),u(f),[{provide:e,useValue:!0}]),a)a(f);
else{f=Qha(f,d);if(fg&&!fg.get(Pha,!1))throw new ic(400,"");fg=f;f.get(gg);Nha(f)}f=Oha();if(!f)throw new ic(401,"");return f}},Qha=function(a,b){a=void 0===a?[]:a;return hg({name:b,providers:[{provide:Sha,useValue:"platform"},{provide:Tha,useValue:function(){return fg=null}}].concat(u(a))})},Oha=function(){var a,b;return null!=(b=null==(a=fg)?void 0:a.get(gg))?b:null},Uha=function(a,b){var c;"noop"===a?c=new ig:c=("zone.js"===a?void 0:a)||new jg(b);return c},Vha=function(a,b,c){try{var d=c();return Zd(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;}},Wha=function(a,b){Array.isArray(b)?a=b.reduce(Wha,a):a=Object.assign({},a,b);return a},kg=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)},Xha=function(a){var b=Ic(),c=x();2===(b.flags&2)&&16!==(a&16)?(a=Fc(b.index,c),a=new lg(a,a)):a=b.type&47?new lg(c[16],c):null;return a},Yha=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},mg=function(a){return"boolean"===typeof a?a:null!=a&&"false"!==a},Zha=function(a,b){if(b&&!b.createEmbeddedView)throw Error("Ja`"+a+"`"+ac(b));},$ha=function(a,b,c){a=$d(a);b=ng([a[1],a[2]],b);return ng(b,c)},aia=function(a,b,c){a=$d(a);b=ng([a[3],a[4]],b);return ng(b,c)},bia=function(a,b,c){a=$d(a);b=ng([a[5],a[6]],b);return ng(b,c)},cia=function(a,b){a=$d(a)[7];return ng(a,b)},og=function(a,b){a=$d(a);return ng(a[10],b)},pg=function(a,b){a=$d(a);return ng(a[11],
b)},qg=function(a,b){a=$d(a)[12];return ng(a,b)},rg=function(a,b){a=$d(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},dia=function(a){if(!a[21])throw Error("La`"+a[0]);},fia=function(a){a=$d(a);dia(a);return(a[21][2]||[]).map(function(b){return"string"===typeof b?eia(b):[eia(b[0]),eia(b[1])]})},gia=function(a,b,c){a=$d(a);dia(a);b=ng([a[21][0],a[21][1]],b)||[];return ng(b,c)||[]},ng=function(a,b){for(;-1<b;b--)if("undefined"!==typeof a[b])return a[b];
throw Error("Ma");},eia=function(a){var b=r(a.split(":"));a=b.next().value;b=b.next().value;return{hours:+a,minutes:+b}},sg=function(){return new ic(2100,"")},nia=function(a,b,c,d){var e=hia(a);b=tg(c,b)||b;a=[];for(var f;b;)if(f=iia.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=jia(d,h),e=kia(e,d));var k="";a.forEach(function(q){a:if(lia[q])var v=lia[q];else{switch(q){case "G":case "GG":case "GGG":v=ug(3,1);break;case "GGGG":v=ug(3,2);
break;case "GGGGG":v=ug(3,0);break;case "y":v=vg(0,1,0,!1,!0);break;case "yy":v=vg(0,2,0,!0,!0);break;case "yyy":v=vg(0,3,0,!1,!0);break;case "yyyy":v=vg(0,4,0,!1,!0);break;case "Y":v=wg(1);break;case "YY":v=wg(2,!0);break;case "YYY":v=wg(3);break;case "YYYY":v=wg(4);break;case "M":case "L":v=vg(1,1,1);break;case "MM":case "LL":v=vg(1,2,1);break;case "MMM":v=ug(2,1);break;case "MMMM":v=ug(2,2);break;case "MMMMM":v=ug(2,0);break;case "LLL":v=ug(2,1,1);break;case "LLLL":v=ug(2,2,1);break;case "LLLLL":v=
ug(2,0,1);break;case "w":v=mia(1);break;case "ww":v=mia(2);break;case "W":v=mia(1,!0);break;case "d":v=vg(2,1);break;case "dd":v=vg(2,2);break;case "c":case "cc":v=vg(7,1);break;case "ccc":v=ug(1,1,1);break;case "cccc":v=ug(1,2,1);break;case "ccccc":v=ug(1,0,1);break;case "cccccc":v=ug(1,3,1);break;case "E":case "EE":case "EEE":v=ug(1,1);break;case "EEEE":v=ug(1,2);break;case "EEEEE":v=ug(1,0);break;case "EEEEEE":v=ug(1,3);break;case "a":case "aa":case "aaa":v=ug(0,1);break;case "aaaa":v=ug(0,2);
break;case "aaaaa":v=ug(0,0);break;case "b":case "bb":case "bbb":v=ug(0,1,1,!0);break;case "bbbb":v=ug(0,2,1,!0);break;case "bbbbb":v=ug(0,0,1,!0);break;case "B":case "BB":case "BBB":v=ug(0,1,0,!0);break;case "BBBB":v=ug(0,2,0,!0);break;case "BBBBB":v=ug(0,0,0,!0);break;case "h":v=vg(3,1,-12);break;case "hh":v=vg(3,2,-12);break;case "H":v=vg(3,1);break;case "HH":v=vg(3,2);break;case "m":v=vg(4,1);break;case "mm":v=vg(4,2);break;case "s":v=vg(5,1);break;case "ss":v=vg(5,2);break;case "S":v=vg(6,1);
break;case "SS":v=vg(6,2);break;case "SSS":v=vg(6,3);break;case "Z":case "ZZ":case "ZZZ":v=xg(0);break;case "ZZZZZ":v=xg(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":v=xg(1);break;case "OOOO":case "ZZZZ":case "zzzz":v=xg(2);break;default:v=null;break a}lia[q]=v}k+=v?v(e,c,h):"''"===q?"'":q.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return k},yg=function(a,b,c){var d=new Date(0);d.setFullYear(a,b,c);d.setHours(0,0,0);return d},tg=function(a,b){var c=$d(a)[0];zg[c]=zg[c]||{};
if(zg[c][b])return zg[c][b];var d="";switch(b){case "shortDate":d=og(a,0);break;case "mediumDate":d=og(a,1);break;case "longDate":d=og(a,2);break;case "fullDate":d=og(a,3);break;case "shortTime":d=pg(a,0);break;case "mediumTime":d=pg(a,1);break;case "longTime":d=pg(a,2);break;case "fullTime":d=pg(a,3);break;case "short":d=tg(a,"shortTime");var e=tg(a,"shortDate");d=Ag(qg(a,0),[d,e]);break;case "medium":d=tg(a,"mediumTime");e=tg(a,"mediumDate");d=Ag(qg(a,1),[d,e]);break;case "long":d=tg(a,"longTime");
e=tg(a,"longDate");d=Ag(qg(a,2),[d,e]);break;case "full":d=tg(a,"fullTime"),e=tg(a,"fullDate"),d=Ag(qg(a,3),[d,e])}d&&(zg[c][b]=d);return d},Ag=function(a,b){b&&(a=a.replace(/\{([^}]+)}/g,function(c,d){return null!=b&&d in b?b[d]:c}));return a},Bg=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},vg=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=
oia(a,f);if(0<c||f>-c)f+=c;if(3===a)0===f&&-12===c&&(f=12);else if(6===a)return Bg(f,3).substring(0,b);h=rg(h,5);return Bg(f,b,h,d,e)}},oia=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);}},ug=function(a,b,c,d){c=void 0===c?0:c;d=void 0===d?!1:d;return function(e,f){return pia(e,
f,a,b,c,d)}},pia=function(a,b,c,d,e,f){switch(c){case 2:return bia(b,e,d)[a.getMonth()];case 1:return aia(b,e,d)[a.getDay()];case 0:var h=a.getHours(),k=a.getMinutes();return f&&(c=fia(b),a=gia(b,e,d),c=c.findIndex(function(q){if(Array.isArray(q)){var v=r(q);q=v.next().value;v=v.next().value;var y=h>=q.hours&&k>=q.minutes,E=h<v.hours||h===v.hours&&k<v.minutes;if(q.hours<v.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]:$ha(b,e,d)[12>
h?0:1];case 3:return cia(b,d)[0>=a.getFullYear()?0:1];default:throw Error("Oa`"+c);}},xg=function(a){return function(b,c,d){b=-1*d;c=rg(c,5);var e=0<b?Math.floor(b/60):Math.ceil(b/60);switch(a){case 0:return(0<=b?"+":"")+Bg(e,2,c)+Bg(Math.abs(b%60),2,c);case 1:return"GMT"+(0<=b?"+":"")+Bg(e,1,c);case 2:return"GMT"+(0<=b?"+":"")+Bg(e,2,c)+":"+Bg(Math.abs(b%60),2,c);case 3:return 0===d?"Z":(0<=b?"+":"")+Bg(e,2,c)+":"+Bg(Math.abs(b%60),2,c);default:throw Error("Pa`"+a);}}},qia=function(a){return yg(a.getFullYear(),
a.getMonth(),a.getDate()+(4-a.getDay()))},mia=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=qia(c);c=e.getFullYear();var f=yg(c,0,1).getDay();c=yg(c,0,1+(4>=f?4:11)-f);e=1+Math.round((e.getTime()-c.getTime())/6048E5)}return Bg(e,a,rg(d,5))}},wg=function(a,b){b=void 0===b?!1:b;return function(c,d){c=qia(c).getFullYear();return Bg(c,a,rg(d,5),b)}},jia=function(a,b){a=a.replace(/:/g,
"");a=Date.parse("Jan 01, 1970 00:00:00 "+a)/6E4;return isNaN(a)?b:a},kia=function(a,b){var c=a.getTimezoneOffset();b=jia(b,c);a=new Date(a.getTime());a.setMinutes(a.getMinutes()+-1*(b-c));return a},hia=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 yg(a,c-1,void 0===b?1:b)}b=parseFloat(a);if(!isNaN(a-b))return new Date(b);if(b=a.match(ria))return sia(b)}b=new Date(a);if(!(b instanceof Date)||isNaN(b.valueOf()))throw Error("Qa`"+a);return b},sia=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},tia=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},zia=function(a,b,c,d){var e=void 0===e?!1:e;var f="",h=!1;if(isFinite(a)){h=uia(a);e&&(h=via(h));f=b.minInt;
e=b.minFrac;var k=b.maxFrac;if(d){var q=d.match(wia);if(null===q)throw Error("Ra`"+d);d=q[1];var v=q[3];q=q[5];null!=d&&(f=xia(d));null!=v&&(e=xia(v));null!=q?k=xia(q):null!=v&&e>k&&(k=e)}yia(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(rg(c,1));k.length&&(f+=rg(c,0)+k.join(""));e&&(f+=rg(c,6)+"+"+e)}else f=rg(c,9);return f=0>a&&!h?b.negPre+f+b.negSuf:b.posPre+f+b.posSuf},via=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},uia=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}},yia=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,v=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>=v?N.pop():q=!1);return 10<=E?1:0},0))d.unshift(b),a.integerLen++},xia=function(a){var b=parseInt(a);if(isNaN(b))throw Error("Ta`"+a);return b},Aia=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},Bia=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)},Cg=function(a){return a&&"?"!==a[0]?"?"+a:a},Dg=function(a){return null==a||("string"===typeof a||Array.isArray(a))&&0===a.length},Cia=function(a){return function(b){if(Dg(b.value)||Dg(a))return null;var c=parseFloat(b.value);return!isNaN(c)&&c<a?{min:{min:a,actual:b.value}}:
null}},Dia=function(a){return Dg(a.value)?{required:!0}:null},Eia=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}},Gia=function(a){if(!a)return Fia;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(Dg(d.value))return null;d=d.value;return c.test(d)?null:{pattern:{requiredPattern:b,
actualValue:d}}}},Fia=function(){return null},Hia=function(a){return null!=a},Iia=function(a){return Zd(a)?(0,S.from)(a):a},Jia=function(a){var b={};a.forEach(function(c){b=null!=c?Object.assign({},b,c):b});return 0===Object.keys(b).length?null:b},Kia=function(a,b){return b.map(function(c){return c(a)})},Lia=function(a){return a.map(function(b){return b.validate?function(c){return b.validate(c)}:b})},Mia=function(a){if(!a)return null;var b=a.filter(Hia);return 0==b.length?null:function(c){return Jia(Kia(c,
b))}},Nia=function(a){return null!=a?Mia(Lia(a)):null},Oia=function(a){if(!a)return null;var b=a.filter(Hia);return 0==b.length?null:function(c){c=Kia(c,b).map(Iia);return(0,S.forkJoin)(c).pipe(R(Jia))}},Pia=function(a){return null!=a?Oia(Lia(a)):null},Qia=function(a,b){return null===a?[b]:Array.isArray(a)?[].concat(u(a),[b]):[a,b]},Ria=function(a,b){return[].concat(u(b.path),[a])},Eg=function(a,b){Sia(a,b);b.valueAccessor.writeValue(a.value);if(a.disabled){var c,d;null==(d=(c=b.valueAccessor).setDisabledState)||
d.call(c,!0)}Tia(a,b);Uia(a,b);Via(a,b);Wia(a,b)},Gg=function(a,b){var c=function(){};b.valueAccessor&&(b.valueAccessor.registerOnChange(c),b.valueAccessor.registerOnTouched(c));Fg(a,b);a&&(b._invokeOnDestroyCallbacks(),a._registerOnCollectionChange(function(){}))},Hg=function(a,b){a.forEach(function(c){c.registerOnValidatorChange&&c.registerOnValidatorChange(b)})},Wia=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)})}},Sia=function(a,b){var c=a._rawValidators;null!==b.validator?Xia(a,Qia(c,b.validator)):"function"===typeof c&&Xia(a,[c]);c=a._rawAsyncValidators;null!==b.asyncValidator?Yia(a,Qia(c,b.asyncValidator)):"function"===typeof c&&Yia(a,[c]);c=function(){return Ig(a)};Hg(b._rawValidators,c);Hg(b._rawAsyncValidators,c)},Fg=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,Xia(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,Yia(a,e))))}a=function(){};Hg(b._rawValidators,a);Hg(b._rawAsyncValidators,a);return c},Tia=function(a,b){b.valueAccessor.registerOnChange(function(c){a._pendingValue=c;a._pendingChange=!0;a._pendingDirty=!0;"change"===a.updateOn&&Zia(a,b)})},Via=function(a,
b){b.valueAccessor.registerOnTouched(function(){a._pendingTouched=!0;"blur"===a.updateOn&&a._pendingChange&&Zia(a,b);"submit"!==a.updateOn&&$ia(a)})},Zia=function(a,b){a._pendingDirty&&aja(a);a.setValue(a._pendingValue,{emitModelToViewChange:!1});b.viewToModelUpdate(a._pendingValue);a._pendingChange=!1},Uia=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)})},bja=function(a,b){if(!a.hasOwnProperty("model"))return!1;
a=a.model;return a.isFirstChange()?!0:!Object.is(b,a.currentValue)},cja=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)})},dja=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===Jg?b=e:Object.getPrototypeOf(e.constructor)===Kg?c=e:d=e});return d?d:c?c:b?b:null},eja=function(a){return(Lg(a)?a.validators:a)||
null},fja=function(a){return Array.isArray(a)?Nia(a):a||null},gja=function(a){return Array.isArray(a)?Pia(a):a||null},Lg=function(a){return null!=a&&!Array.isArray(a)&&"object"===typeof a},hja=function(a,b){a._forEachChild(function(c,d){if(void 0===b[d])throw new ic(1002,"");})},ija=function(a){return"object"===typeof a&&null!==a&&2===Object.keys(a).length&&"value"in a&&"disabled"in a},kja=function(){if(Mg)return Mg;if("object"!==typeof document||!document)return Mg=new Set(jja);var a=document.createElement("input");
return Mg=new Set(jja.filter(function(b){a.setAttribute("type",b);return a.type===b}))},lja=function(){if(null==Ng&&"undefined"!==typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Ng=!0}}))}finally{Ng=Ng||!1}return Ng},Og=function(a){return lja()?a:!!a.capture},mja=function(){if(null==Pg){if("object"!==typeof document||!document||"function"!==typeof Element||!Element)return Pg=!1;if("scrollBehavior"in document.documentElement.style)Pg=
!0;else{var a=Element.prototype.scrollTo;Pg=a?!/\{\s*\[native code\]\s*\}/.test(a.toString()):!1}}return Pg},nja=function(){if("object"!==typeof document||!document)return 0;if(null==Qg){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);Qg=0;0===a.scrollLeft&&(a.scrollLeft=
1,Qg=0===a.scrollLeft?1:2);a.remove()}return Qg},Rg=function(a){if(null==oja){var b="undefined"!==typeof document?document.head:null;oja=!(!b||!b.createShadowRoot&&!b.attachShadow)}return oja&&(a=a.getRootNode?a.getRootNode():null,"undefined"!==typeof ShadowRoot&&ShadowRoot&&a instanceof ShadowRoot)?a:null},Sg=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},Tg=function(a){return a.composedPath?
a.composedPath()[0]:a.target},pja=function(){return"undefined"!==typeof __karma__&&!!__karma__||"undefined"!==typeof jasmine&&!!jasmine||"undefined"!==typeof jest&&!!jest||"undefined"!==typeof Mocha&&!!Mocha},qja=function(a){if(!a.hasAttribute("tabindex")||void 0===a.tabIndex)return!1;a=a.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))},rja=function(a){if(!qja(a))return null;a=parseInt(a.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a},Ug=function(a){return Array.isArray(a)?a:[a]},
Vg=function(a){return null!=a&&"false"!==""+a},Wg=function(a){return null==a?"":"string"===typeof a?a:a+"px"},Xg=function(a){return a instanceof pd?a.nativeElement:a},Yg=function(a,b){return isNaN(parseFloat(a))||isNaN(Number(a))?void 0===b?0:b:Number(a)},sja=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},Zg=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},$g=function(a,
b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c},tja=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c},uja=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1},vja=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},wja=function(a,b){return null!==a&&b in a},xja=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c},yja=function(a,b){return(b=xja(a,b))&&a[b]},ah=function(a){for(var b in a)return!1;return!0},zja=
function(a){for(var b in a)delete a[b]},bh=function(a,b){b in a&&delete a[b]},Aja=function(a,b,c){if(null!==a&&b in a)throw Error("Xa`"+b);a[b]=c},Bja=function(a,b){return null!==a&&b in a?a[b]:void 0},ch=function(a){var b={},c;for(c in a)b[c]=a[c];return b},Dja=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<Cja.length;f++)c=Cja[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}},Eja=function(a){var b=arguments.length;if(1==b&&Array.isArray(arguments[0]))return Eja.apply(null,
arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c},Lja=function(a){if(a instanceof dh)return'url("'+fh(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(a instanceof gh)a=hh(a);else{a=String(a);var b=a.replace(Fja,"$1").replace(Fja,"$1").replace(Gja,"url");if(Hja.test(b)){if(b=!Ija.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&&Jja(a)}a=b?Kja(a):"zClosurez"}else a="zClosurez"}if(/[{;}]/.test(a))throw new ba("Value does not allow [{;}], got: %s.",
[a]);return a},Jja=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},Kja=function(a){return a.replace(Gja,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,k,q){f=k;return q});b=(Mja(d)||ih).getTypedStringValue();return c+f+b+f+e})},Pja=function(a){var b,c=null==(b=Nja())?void 0:b.createScriptURL(a);return new jh(null!=c?c:a,Oja)},Qja=function(a){if(a instanceof
jh)return a.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Za");},Rja=function(a){a=Qja(a);var b="undefined"!==typeof window?window.trustedTypes:void 0;b=null!=b?b:null;return(null==b?0:b.isScriptURL(a))?TrustedScriptURL.prototype.toString.apply(a):a},lh=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 kh(a,null)},mh=function(a,b){throw Error(void 0===b?"unexpected value "+a+"!":b);},oh=function(a){if(a instanceof nh)return a.privateDoNotAccessOrElseWrappedUrl;throw Error("Za");},rh=function(a){return a instanceof ph?qh(a):qh(a)},th=function(a){return a instanceof sh?oh(a):fh(a)},Sja=function(a){return a instanceof uh?Qja(a).toString():vh(a)},Tja=function(a,b){a.src=Sja(b)},wh=function(a,b){b=b instanceof
uh?Qja(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)},xh=function(a){return new Vja(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})},yh=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 nh(a,Oja);break a}}a=void 0}return a||
Xja},zh=function(a){var b=qc.apply(1,arguments);if(0===b.length)return Pja(a[0]);for(var c=[a[0]],d=0;d<b.length;d++)c.push(encodeURIComponent(b[d])),c.push(a[d+1]);return Pja(c.join(""))},Yja=function(a){Ah.remove(a)},Bh=function(a,b,c){for(var d=0;d<b.length;d++){var e=b[d];Array.isArray(e)?Bh(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=Ch.has(a)||Dh.has(a),d=Ch.has(b)||Dh.has(b);return function(e,f){var h="*"==a||a==e,k="*"==b||b==
f;!h&&c&&"boolean"===typeof e&&(h=e?Ch.has(a):Dh.has(a));!k&&d&&"boolean"===typeof f&&(k=f?Ch.has(b):Dh.has(b));return h&&k}},Eh=function(a,b){return{type:7,name:a,definitions:b,options:{}}},Fh=function(a,b){return{type:4,styles:void 0===b?null:b,timings:a}},Gh=function(a){return{type:6,styles:a,offset:null}},Hh=function(a,b){return{type:0,name:a,styles:b,options:void 0}},Ih=function(a,b,c){return{type:1,expr:a,animation:b,options:void 0===c?null:c}},Jh=function(){return{type:9,options:null}},Kh=
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)},Mh=function(a){switch(a.length){case 0:return new Lh;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"),v=q==f,y=v&&h||new Map;k.forEach(function(E,I){var N=I;if("offset"!==
I)switch(N=Nh(N),E){case "!":E=b.get(I);break;case "*":E=c.get(I);break;default:E=ika(N,E,d)}y.set(N,E)});v||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}},Oh=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},Ph=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}},Qh=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},Rh=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)}):[]},Sh=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)},Th=function(a,
b,c){a.style&&(b.forEach(function(d,e){var f=Nh(e);c&&!c.has(e)&&c.set(e,a.style[f]);a.style[f]=d}),gka()&&tka(a))},Uh=function(a,b){a.style&&(b.forEach(function(c,d){d=Nh(d);a.style[d]=""}),gka()&&tka(a))},Vh=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},Wh=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},Xh=function(a){for(var b=[],c=a.next();!c.done;)b.push(c.value),c=a.next();return b},Nh=function(a){return a.replace(xka,function(){return qc.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$1630:c.$jscomp$loop$prop$kf$1630},f++)c.$jscomp$loop$prop$kf$1630=b[f],e.forEach(function(h){return function(k){var q=h.$jscomp$loop$prop$kf$1630,v=q.set;var y=window.getComputedStyle(a)[k];return v.call(q,k,y)}}(c))}}return b},Yh=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:Qh(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=Qh(a,b);return{duration:a.duration,delay:a.delay,easing:a.easing}},Zh=function(a){if(a){if(a=Rh(a),a.params){var b=a;var c=(c=a.params)?Rh(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,v){f=void 0===f?new Map:
f;h=void 0===h?new Map:h;v=void 0===v?[]:v;return(new Eka).buildKeyframes(a,b,c,d,e,f,h,k,q,v)},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 Sh(e,c)});return c},Ika=function(a,b,c,d,e,f,h,k,q,v,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:v,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=Rh(b);for(var c in a)a.hasOwnProperty(c)&&null!=a[c]&&(b[c]=a[c]);return b},Lka=function(a,b){return new $h(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))},ai=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,v){var y=new Map;q.forEach(function(E){var I=b.computeStyle(v,E,e);y.set(E,I);I&&0!=I.length||(v.__ng_removed=Oka,h.push(v))});a.set(v,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},bi=function(a,b){var c;null==(c=a.classList)||c.add(b)},ci=function(a,b){var c;null==(c=a.classList)||c.remove(b)},Rka=function(a,b,c){Mh(c).onDone(function(){return di(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 ei(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)]},fi=function(a){return 0===a.buttons||0===a.offsetX&&0===a.offsetY},gi=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)},hi=function(a){var b=qc.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=ii(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=ii(a).filter(function(d){return d!=b.trim()});c.length?a.setAttribute("aria-describedby",
c.join(" ")):a.removeAttribute("aria-describedby")},ii=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(ji)},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},ki=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)}},
mi=function(a,b){var c=function(){var d=a.apply(this,[].concat(u(qc.apply(0,arguments))))||this;d.defaultColor=b;d.color=b;return d};U(c,a);li.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},ni=function(a){var b=function(){var c=
a.apply(this,[].concat(u(qc.apply(0,arguments))))||this;c._disableRipple=!1;return c};U(b,a);li.Object.defineProperties(b.prototype,{disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(c){this._disableRipple=Vg(c)}}});return b},oi=function(a){var b=function(){var c=a.apply(this,[].concat(u(qc.apply(0,arguments))))||this;c._disabled=!1;return c};U(b,a);li.Object.defineProperties(b.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},
set:function(c){this._disabled=Vg(c)}}});return b},mla=function(a){var b=function(){var c=a.apply(this,[].concat(u(qc.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(qc.apply(0,
arguments))))||this;c._isInitialized=!1;c._pendingSubscribers=[];c.initialized=new S.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},pi=function(a){var b=void 0===b?0:b;var c=function(){var d=a.apply(this,[].concat(u(qc.apply(0,
arguments))))||this;d._tabIndex=b;d.defaultTabIndex=b;return d};U(c,a);li.Object.defineProperties(c.prototype,{tabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:this._tabIndex},set:function(d){this._tabIndex=null!=d?Yg(d):this.defaultTabIndex}}});return c},ola=function(){return t(qi)},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(ag(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&&H(0,"mat-pseudo-checkbox",4);a&2&&(a=K(),C("state",a.selected?"checked":"unchecked")("disabled",
a.disabled))},tla=function(a){a&1&&(F(0,"span",5),O(1),G());a&2&&(a=K(),B(1),De("(",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&&(F(0,"tr",2)(1,"td",3),O(2),G()());a&2&&(a=K(),B(1),ke("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),ge("colspan",a.numCols),B(1),De(" ",a.label," "))},xla=
function(a){a&1&&(F(0,"td",3),O(1),G());a&2&&(a=K(2),ke("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),ge("colspan",a._firstRowOffset),B(1),De(" ",a._firstRowOffset>=a.labelMinRequiredCells?a.label:""," "))},yla=function(a,b){if(a&1){var c=x();F(0,"td",7)(1,"button",8);J("click",function(f){var h=z(c).$implicit,k=K(2);return A(k._cellClicked(h,f))})("focus",function(f){var h=z(c).$implicit,k=K(2);return A(k._emitActiveDateChange(h,f))});F(2,"div",9);O(3);G();H(4,"div",10);G()()}if(a&
2){a=b.$implicit;b=b.index;var d=K().index,e=K();ke("width",e._cellWidth)("padding-top",e._cellPadding)("padding-bottom",e._cellPadding);ge("data-mat-row",d)("data-mat-col",b);B(1);le("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));C("ngClass",a.cssClasses)("tabindex",e._isActiveCell(d,b)?0:-1);ge("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);le("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);De(" ",a.displayValue," ")}},
zla=function(a,b){a&1&&(F(0,"tr",4),M(1,xla,2,6,"td",5),M(2,yla,5,47,"td",6),G());if(a&2){a=b.$implicit;b=b.index;var c=K();B(1);C("ngIf",0===b&&c._firstRowOffset);B(1);C("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&&(F(0,"th",5)(1,"span",6),O(2),G(),F(3,"span",7),O(4),G()());a&2&&(a=b.$implicit,B(2),Ee(a.long),B(2),Ee(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)},ri=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();F(0,"mat-month-view",5);J("activeDateChange",function(c){z(b);var d=K();return A(d.activeDate=c)})("_userSelection",function(c){z(b);var d=K();return A(d._dateSelected(c))});G()}a&2&&(a=
K(),C("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();F(0,"mat-year-view",6);J("activeDateChange",function(c){z(b);var d=K();return A(d.activeDate=c)})("monthSelected",function(c){z(b);var d=K();return A(d._monthSelectedInYearView(c))})("selectedChange",function(c){z(b);var d=K();return A(d._goToDateInView(c,
"month"))});G()}a&2&&(a=K(),C("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();F(0,"mat-multi-year-view",7);J("activeDateChange",function(c){z(b);var d=K();return A(d.activeDate=c)})("yearSelected",function(c){z(b);var d=K();return A(d._yearSelectedInMultiYearView(c))})("selectedChange",function(c){z(b);var d=K();return A(d._goToDateInView(c,"year"))});G()}a&2&&(a=K(),
C("activeDate",a.activeDate)("selected",a.selected)("dateFilter",a.dateFilter)("maxDate",a.maxDate)("minDate",a.minDate)("dateClass",a.dateClass))},Kla=function(){},Lla=function(a,b){for(var c=a.length;c--;)b(a[c])},Mla=function(){},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&&(qe(0),F(1,"div",14),H(2,"div",15)(3,"div",16)(4,"div",17),G(),F(5,
"div",18),H(6,"div",15)(7,"div",16)(8,"div",17),G(),re())},Pla=function(a){if(a&1){var b=x();F(0,"div",19);J("cdkObserveContent",function(){z(b);var c=K();return A(si(c))});ye(1,1);G()}a&2&&(a=K(),C("cdkObserveContentDisabled","outline"!=a.appearance))},Qla=function(a){a&1&&(qe(0),ye(1,2),F(2,"span"),O(3),G(),re());a&2&&(a=K(2),B(3),Ee(a._control.placeholder))},Rla=function(a){a&1&&ye(0,3,["*ngSwitchCase","true"])},Sla=function(a){a&1&&(F(0,"span",23),O(1," *"),G())},Tla=function(a){if(a&1){var b=
x();F(0,"label",20,21);J("cdkObserveContent",function(){z(b);var c=K();return A(si(c))});M(2,Qla,4,1,"ng-container",12);M(3,Rla,1,0,"ng-content",12);M(4,Sla,2,0,"span",22);G()}a&2&&(a=K(),le("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),C("cdkObserveContentDisabled","outline"!=a.appearance)("id",a._labelId)("ngSwitch",a._hasLabel()),ge("for",a._control.id)("aria-owns",
a._control.id),B(2),C("ngSwitchCase",!1),B(1),C("ngSwitchCase",!0),B(1),C("ngIf",!a.hideRequiredMarker&&a._control.required&&!a._control.disabled))},Ula=function(a){a&1&&(F(0,"div",24),ye(1,4),G())},Vla=function(a){a&1&&(F(0,"div",25),H(1,"span",26),G());a&2&&(a=K(),B(1),le("mat-accent","accent"==a.color)("mat-warn","warn"==a.color))},Wla=function(a){a&1&&(F(0,"div"),ye(1,5),G());a&2&&(a=K(),C("@transitionMessages",a._subscriptAnimationState))},Xla=function(a){a&1&&(F(0,"div",30),O(1),G());a&2&&(a=
K(2),C("id",a._hintLabelId),B(1),Ee(a.hintLabel))},Yla=function(a){a&1&&(F(0,"div",27),M(1,Xla,2,2,"div",28),ye(2,6),H(3,"div",29),ye(4,7),G());a&2&&(a=K(),C("@transitionMessages",a._subscriptAnimationState),B(1),C("ngIf",a.hintLabel))},Zla=function(a){a&1&&H(0,"input",8);a&2&&(a=K(),C("formControl",a.timeFormControl))},$la=function(a){a&1&&(F(0,"mat-error",9),O(1),G());a&2&&(a=K(),B(1),Ee(a.formErrorMessage))},ama=function(a,b){return a.open(ti,{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 ui("y-MM-dd")).format(a)},dma=function(a){if(a&1){var b=x();F(0,"button",6);J("click",function(){z(b);var c=K();return A(c.action.emit())});O(1);G()}a&2&&(a=K(),B(1),De(" ",a.actionBtnText," "))},ema=function(a){if(a&1){var b=x();F(0,"onedev-feature-tooltip-body",1);J("action",function(){z(b);var c=K();return A(c.action.emit())})("dismiss",
function(){z(b);var c=K();c.hideFeatureTooltip();c.dismiss.emit();return A()});ye(1);G()}a&2&&(a=K(),C("actionBtnText",a.actionBtnText)("color",a.color)("pointerPosition",a.pointerPosition)("widthOffset",a.widthOffset))},vi=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];Ea(d)?fma.apply(null,d):vi(d)}},gma=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;y=v=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],T=e[2],Y=e[3],ka=e[4];for(N=0;80>N;N++){if(40>N)if(20>N){var ha=Y^L&(T^Y);var ra=1518500249}else ha=L^T^Y,ra=1859775393;else 60>N?(ha=L&T|Y&(L|T),ra=2400959708):(ha=L^T^Y,ra=3395469782);ha=((E<<5|E>>>27)&4294967295)+ha+ka+ra+I[N]&4294967295;ka=Y;Y=T;T=(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]+T&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,T=E.length;L<T;++L)N.push(E.charCodeAt(L));E=N}I||(I=E.length);N=0;if(0==v)for(;N+64<I;)b(E.slice(N,N+64)),N+=64,y+=64;for(;N<I;)if(f[v++]=E[N++],y++,64==v)for(v=0,b(f);N+64<I;)b(E.slice(N,N+64)),N+=64,y+=64}function d(){var E=[],I=8*y;56>v?c(k,56-v):c(k,64-(v-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 v,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){wi(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""+a},oma=function(a){return"undefined"!==typeof ArrayBuffer&&a instanceof ArrayBuffer},pma=function(a){return"undefined"!==typeof Blob&&a instanceof Blob},qma=function(a){return"undefined"!==typeof FormData&&a instanceof FormData},rma=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}},sma=function(){if(void 0===xi&&(xi=null,"undefined"!==typeof window)){var a=window;void 0!==a.trustedTypes&&(xi=a.trustedTypes.createPolicy("angular#components",{createHTML:function(b){return b}}))}return xi},tma=function(a){var b;return(null==(b=sma())?void 0:b.createHTML(a))||a},uma=function(){var a=t(ji),b=a?a.location:null;return{getPathname:function(){return b?b.pathname+b.search:""}}},vma=function(a){a&
1&&(Nc(),F(0,"svg",2),H(1,"polygon",3),G())},wma=function(a){if(a&1){var b=x();F(0,"div",0);J("keydown",function(c){z(b);var d=K();return A(d._handleKeydown(c))})("click",function(){z(b);var c=K();return A(c.closed.emit("click"))})("@transformMenu.start",function(c){z(b);var d=K();return A(d._onAnimationStart(c))})("@transformMenu.done",function(c){z(b);var d=K();return A(d._onAnimationDone(c))});F(1,"div",1);ye(2);G()()}a&2&&(a=K(),C("id",a.panelId)("ngClass",a._classList)("@transformMenu",a._panelAnimationState),
ge("aria-label",a.ariaLabel||null)("aria-labelledby",a.ariaLabelledby||null)("aria-describedby",a.ariaDescribedby||null))},xma=function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}},yma=function(a){return{matches:"all"===a||""===a,media:a,addListener:function(){},removeListener:function(){}}},zma=function(a){return a.map(function(b){return b.split(",")}).reduce(function(b,c){return b.concat(c)}).map(function(b){return b.trim()})},
Ama=function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}},Bma=function(a){a&1&&H(0,"mat-icon",22)},Cma=function(a){a&1&&(qe(0),F(1,"mat-icon",22)(2,"span",23),O(3),G()(),re());a&2&&(a=K(),B(3),Ee(a.pinnedTasksCount))},Dma=function(a){a&1&&(qe(0),F(1,"mat-icon",22),H(2,"mat-icon",24),G(),re());a&2&&(a=K(),B(2),C("ngClass",a.subscriptIconStyleClass)("svgIcon",a.subscriptIcon))},Ema=function(a){if(a&1){var b=x();F(0,"span",39);J("click",function(c){z(b);var d=K(2);return A(d.stopPropagation(c))});
O(1);P(2,"date");G()}a&2&&(a=K(2),C("disableRipple",!0),B(1),De(" Until ",Me(2,2,a.snoozeUntilMsInternal,"EEE, MMM d, h:mm a")," "))},Fma=function(a){if(a&1){var b=x();F(0,"button",40);J("click",function(){z(b);K(2).addTaskByUrl.emit();return A()});H(1,"mat-icon",41);G()}},Gma=function(a){a&1&&H(0,"mat-icon",42)},Hma=function(a){a&1&&H(0,"mat-icon",43)},Ima=function(a){a&1&&H(0,"mat-icon",44)},Jma=function(a){a&1&&H(0,"mat-icon",45)},Kma=function(a){a&1&&H(0,"mat-icon",46)},Lma=function(a){a&1&&H(0,
"mat-icon",47)},Mma=function(a){if(a&1){var b=x();qe(0);M(1,Ema,3,5,"span",25);F(2,"div",26);M(3,Fma,2,0,"button",27);F(4,"button",28);J("click",function(){z(b);var c=K();return A(yi(c,c.taskStatusInternal===c.TaskStatus.PINNED?c.TaskStatus.INCOMING:c.TaskStatus.PINNED))});M(5,Gma,1,0,"mat-icon",29);M(6,Hma,1,0,"mat-icon",30);G();F(7,"button",31);J("click",function(){z(b);var c=K();try{c.widgetMenuTrigger.closeMenu(),zi(c.snoozeMenuTrigger)}catch(d){}return A()});H(8,"mat-icon",32);G();F(9,"button",
33);J("click",function(){z(b);var c=K();return A(yi(c,c.taskStatusInternal===c.TaskStatus.ARCHIVED?c.TaskStatus.INCOMING:c.TaskStatus.ARCHIVED))});M(10,Ima,1,0,"mat-icon",34);M(11,Jma,1,0,"mat-icon",35);G();F(12,"button",36);J("click",function(){z(b);var c=K();return A(yi(c,c.taskStatusInternal===c.TaskStatus.MUTED?c.TaskStatus.INCOMING:c.TaskStatus.MUTED))});M(13,Kma,1,0,"mat-icon",37);M(14,Lma,1,0,"mat-icon",38);G()();re()}a&2&&(a=K(),B(1),C("ngIf",a.taskStatusInternal===a.TaskStatus.SNOOZED),B(2),
C("ngIf",a.shouldShowAddToG3cButton),B(1),C("matTooltip",a.taskStatusInternal===a.TaskStatus.PINNED?"Unpin this task":"Pin this task"),ge("aria-label",a.taskStatusInternal===a.TaskStatus.PINNED?"Unpin this task":"Pin this task"),B(1),C("ngIf",a.taskStatusInternal!==a.TaskStatus.PINNED),B(1),C("ngIf",a.taskStatusInternal===a.TaskStatus.PINNED),B(1),C("matTooltip",a.taskStatusInternal===a.TaskStatus.SNOOZED?"Unsnooze this task":"Snooze this task"),ge("aria-label",a.taskStatusInternal===a.TaskStatus.SNOOZED?
"Unsnooze this task":"Snooze this task"),B(1),le("orange",a.taskStatusInternal===a.TaskStatus.SNOOZED),B(1),C("matTooltip",a.taskStatusInternal===a.TaskStatus.ARCHIVED?"Unarchive this task":"Archive this task"),ge("aria-label",a.taskStatusInternal===a.TaskStatus.ARCHIVED?"Unarchive this task":"Archive this task"),B(1),C("ngIf",a.taskStatusInternal!==a.TaskStatus.ARCHIVED),B(1),C("ngIf",a.taskStatusInternal===a.TaskStatus.ARCHIVED),B(1),C("matTooltip",a.taskStatusInternal===a.TaskStatus.MUTED?"Unmute this task":
"Mute this task"),ge("aria-label",a.taskStatusInternal===a.TaskStatus.MUTED?"Unmute this task":"Mute this task"),B(1),C("ngIf",a.taskStatusInternal!==a.TaskStatus.MUTED),B(1),C("ngIf",a.taskStatusInternal===a.TaskStatus.MUTED))},Nma=function(a){if(a&1){var b=x();F(0,"button",16);J("click",function(){z(b);var c=K();Ai(c,c.laterThisWeek);return A()});O(1," Later this week ");F(2,"span",17);O(3);P(4,"date");G()()}a&2&&(a=K(),B(3),Ee(Me(4,1,a.laterThisWeek,"EEE, MMM d, h:mm a")))},Oma=function(a){if(a&
1){var b=x();F(0,"button",16);J("click",function(){z(b);var c=K();yi(c,6);return A()});H(1,"mat-icon",48);O(2,"Unsnooze now ");G()}},Pma=function(a){if(a&1){var b=x();F(0,"onedev-feature-tooltip",50);J("beforeShown",function(){z(b);var c=K(2);c.featureTooltipActioned.emit(c.G3cWidgetUserActionType.G3C_WIDGET_FEATURE_TOOLTIP_WITHOUT_TASK_ACTIONS_SHOWN);return A()})("dismiss",function(){z(b);var c=K(2);c.featureTooltipActioned.emit(c.G3cWidgetUserActionType.G3C_WIDGET_FEATURE_TOOLTIP_WITHOUT_TASK_ACTIONS_ACKED);
return A()});F(1,"p",51);O(2,"G3 Console");G();O(3," Navigate to the G3 Console to see all of your tasks. ");G()}a&2&&(a=K(2),C("tooltipId",a.G3cWidgetFeatureTooltips.G3C_WIDGET_WITHOUT_TASK_ACTIONS))},Qma=function(a){if(a&1){var b=x();F(0,"onedev-feature-tooltip",50);J("beforeShown",function(){z(b);var c=K(2);c.featureTooltipActioned.emit(c.G3cWidgetUserActionType.G3C_WIDGET_FEATURE_TOOLTIP_WITH_TASK_ACTIONS_SHOWN);return A()})("dismiss",function(){z(b);var c=K(2);c.featureTooltipActioned.emit(c.G3cWidgetUserActionType.G3C_WIDGET_FEATURE_TOOLTIP_WITH_TASK_ACTIONS_ACKED);
return A()});F(1,"p",51);O(2,"G3 Console");G();O(3," Pin, snooze, archive or mute this task. ");G()}a&2&&(a=K(2),C("tooltipId",a.G3cWidgetFeatureTooltips.G3C_WIDGET_WITH_TASK_ACTIONS))},Rma=function(a){a&1&&(F(0,"onedev-feature-tooltip-controller"),M(1,Pma,4,1,"onedev-feature-tooltip",49),M(2,Qma,4,1,"onedev-feature-tooltip",49),G());a&2&&(a=K(),B(1),C("ngIf",a.skipTasksActions),B(1),C("ngIf",!a.skipTasksActions))},Sma=function(a){if(a&1){var b=x();qe(0);F(1,"g3c-widget",1);J("updateTaskStatus",function(c){z(b);
var d=K();return A(d.updateTaskStatus(c))})("addTaskByUrl",function(){z(b);var c=K();return A(c.addTaskByUrl())})("widgetMenuOpen",function(){z(b);var c=K();return A(c.emitWidgetMenuOpen())})("openInG3cClicked",function(){z(b);var c=K();return A(c.emitOpenInG3cClicked())})("featureTooltipActioned",function(c){z(b);K().userActionPerformed.emit(c);return A()});P(2,"async");P(3,"async");G();re()}a&2&&(a=K(),B(1),C("task",Q(2,6,a.task$))("pinnedTasksCount",Q(3,8,a.pinnedTasksCount$))("menuXPosition",
a.menuXPosition)("skipTasksActions",a.skipTasksActionsInternal)("featureHighlightingEnabled",a.featureHighlightingEnabled)("customWidgetClass",a.customWidgetClass))},Uma=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 Bi:new Tma;if(b.startsWith("application/x-protobuf")){a=a.xhr_?a.xhr_.getResponseHeader("Content-Transfer-Encoding"):null;if(!a)return new Ci;
if("base64"==a.toLowerCase())return new Di}return null},Vma=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(!Wma.call(b,f)||!Ei(a[f],b[f]))return!1}return!0}return!1},Xma=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},Yma=function(a,
b){for(var c=a.length-1;0<=c;c--)Ei(a[c],b)&&a.splice(c,1)},Zma=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},ana=function(a){return Object.assign.apply(Object,[{}].concat(u($ma.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},bna=function(a){return Gi(a)||Hi(a)},cna=function(a){return Array.isArray(a)&&a.every(Hi)},dna=function(a){return Array.isArray(a)&&a.every(Gi)},ena=function(a){return null==a?!1:"function"===typeof a.then},fna=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()})},Mi=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 Mi(Number(a))}return new Ji},gna=function(a){return a.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"")},hna=function(a){return!(!a||!Ni(a,"text/")&&!Ni(a,"image/")&&"application/pdf"!==a)},Oi=function(a,b){return a.map(function(c){return c[b]})},
Pi=function(a,b){return a.filter(function(c){return!b.has(c)})},ina=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},Qi=function(a,b){return Pi(a,new Set(b))},Si=function(a,b){var c=/[,;]/;(void 0===b||b)&&(c=/[\s,;]/);return a.split(c).map(Ri).filter(function(d){return!!d})},Ui=function(a){"duplicateOfIssueId"===a&&(a="canonicalIssueId");var b=Number(a);isNaN(b)?a=new Ti({type:String(a).replace(/([A-Z])/g,
"_$1").toUpperCase()}):0===b?a=null:(a={customFieldId:b},a=new Ti({type:"CUSTOM_FIELD",customFieldId:a.customFieldId,customFieldName:a.name}));return a},jna=function(a){a=Vi(a);if(Wi(a))return null;var b=a.split(":");if(2!==b.length||Wi(b[1]))return null;a="asc"===b[1].toLowerCase()?"ASCENDING":"DESCENDING";return(b=Ui(b[0]))&&a?new Xi(b,a):null},Yi=function(){if(null==kna){var a=void 0===a?lna.buganizerSessionJspb:a;a=kna=new mna(a)}else a=kna;return a},$i=function(a){var b=void 0===b?Yi():b;var c,
d;return null==(d=null==(c=b.getConfig())?void 0:Zi(c,4))?void 0:d.get(a)},nna=function(a){a=void 0===a?Yi():a;return V(a,4)||"INTERNAL"},aj=function(a){a=void 0===a?Yi():a;return"INTERNAL"===nna(a)},ona=function(){var a=void 0===a?Yi():a;return!aj(a)},pna=function(){var a=void 0===a?Yi():a;return"PUBLIC"===nna(a)},qna=function(){var a=void 0===a?Yi():a;return a.getUser()||void 0},rna=function(a){if(null==a)return 0;switch(bj[a]){case 2:return 2;case 1:return 1;case 3:return 3;default:return 0}},
sna=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("ec`"+a);}},cj=function(a){if(ona())return!1;var b;return!0===(null==a?void 0:null==(b=a.newIssueDetailsPagePreferences)?void 0:b.newIdpOptOut)?!1:!0},Bna=function(a){var b={};dj(a,1)&&(b.showFullHistory=W(a,1));dj(a,2)&&(b.useCodefont=W(a,2));dj(a,5)&&(b.resultsPerPage=ej(a,5));dj(a,26)&&(b.showRecentEventsFirst=W(a,26));var c=a.getDisplayColumns();c&&(b.displayColumns={column:c.getColumnList().map(tna)});if(c=a.getSortColumns())b.sortColumns=
{column:c.getColumnList().map(una)};dj(a,7)&&(b.bannerMessageId=V(a,7));if(c=m(a,fj,3)){var d={};dj(c,1)&&(d.reportedPriority=gj[X(c,1,0)]);dj(c,2)&&(d.assignedPriority=gj[X(c,2,0)]);dj(c,3)&&(d.verifiedPriority=gj[X(c,3,0)]);dj(c,4)&&(d.ccdPriority=gj[X(c,4,0)]);dj(c,5)&&(d.starredPriority=gj[X(c,5,0)]);dj(c,6)&&(d.excludeChangesByMe=W(c,6));dj(c,7)&&(d.unsubscribeFromAll=W(c,7));dj(c,8)&&(d.enableV2Prefs=W(c,8));b.notificationPreferences=d}if(c=m(a,hj,9))d={},dj(c,1)&&(d.showHotlists=W(c,1)),dj(c,
4)&&(d.showStatusIcons=W(c,4)),dj(c,3)&&(d.wrapComponents=W(c,3)),dj(c,2)&&(d.wrapTitles=W(c,2)),dj(c,5)&&(d.rtlComponentPath=W(c,5)),b.listViewPreferences=d;if(c=a.getLayoutPreferences())d={},dj(c,1)&&(d.leftSidebarWidth=ej(c,1)),dj(c,2)&&(d.expandIssueSlo=W(c,2)),dj(c,3)&&(d.rightSidebarWidth=ej(c,3)),b.layoutPreferences=d;if(c=a.getDateTimePreferences())d={},dj(c,1)&&(d.calendarFormat=V(c,1)),dj(c,2)&&(d.timeFormat=V(c,2)),c.hasTimeZone()&&(d.timeZone=c.getTimeZone()),dj(c,7)&&(d.sloEtaViewAs=
vna[X(c,7,0)]),b.dateTimePreferences=d;if(c=m(a,ij,8))d={},dj(c,1)&&(d.density=wna[c.getDensity()]),b.themePreferences=d;if(c=a.getHomepagePreferences())d={},c.hasResourceType()&&(d.resourceType=xna(c.getResourceType())),c.hasResourceId()&&(d.resourceId=c.getResourceId()),b.homepagePreferences=d;if(c=m(a,jj,17))d={},dj(c,1)&&(d.enableAllHotkeys=W(c,1,!0)),b.keyboardPreferences=d;dj(a,16)&&(b.newFeaturesAcknowledgedMillis=kj(a,16));dj(a,18)&&(b.autoCcOnComment=W(a,18));lj(a,20)&&(d=m(a,mj,20),c=d.getCommentDisplayOverride(),
d=X(d,1,0),b.textDisplayPreferences={commentDisplayOverride:yna(c),lastPublishMode:yna(d)});lj(a,21)&&(c=m(a,nj,21),d={},dj(c,2)&&(d.announcementDismissed=W(c,2)),dj(c,1)&&(d.enableBugScreensaver=W(c,1)),b.bugScreensaverPreferences=d);lj(a,24)&&(c=m(a,oj,24),d={},dj(c,1)&&(d.announcementDismissedMillis=ej(c,1)),b.g3nPreferences=d);lj(a,22)&&(c=m(a,pj,22),d={},dj(c,1)&&(d.enableNewIssueDetailsPage=W(c,1)),dj(c,3)&&(d.newIdpOptOut=W(c,3)),dj(c,2)&&(d.onboardingDialogAcknowledgedMillis=ej(c,2)),b.newIssueDetailsPagePreferences=
d);if(c=m(a,qj,23))b.teamWarningPreferences={componentTeamWarnings:rb(c,rj,1).map(zna)};Zi(a,25,sj).size&&(b.dismissalTimestamps=Ana(Zi(a,25,sj)));return b},tna=function(a){var b={};a.hasType()&&(b.type=Cna[a.getType()]);a.hasCustomFieldId()&&(b.customFieldId=a.getCustomFieldId());return b},una=function(a){var b={};if(dj(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=mh(c,"Unknown sortOrder: "+c)}}b.order=c}if(a=a.getColumn())b.column=tna(a);
return b},yna=function(a){if(0!==a)return bj[a]},xna=function(a){switch(a){case 1:return"HOTLIST";case 2:return"SAVED_SEARCH";case 3:return"BOOKMARK_GROUP";default:return mh(a,"Unknown resourceType: "+a)}},zna=function(a){var b={};a.hasComponentId()&&(b.componentId=a.getComponentId());dj(a,2)&&(b.dismissMillis=ej(a,2));return b},Ana=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)},Kna=function(a){var b=
new tj;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=Dna(a.displayColumns);Bb(b,4,c)}null!=a.sortColumns&&(c=Ena(a.sortColumns),Bb(b,6,c));null!=a.bannerMessageId&&l(b,7,a.bannerMessageId);if(null!=a.notificationPreferences){c=a.notificationPreferences;var d=new fj;d=l(d,1,uj[c.reportedPriority]);d=l(d,2,uj[c.assignedPriority]);d=l(d,3,uj[c.verifiedPriority]);d=l(d,4,uj[c.ccdPriority]);
d=l(d,5,uj[c.starredPriority]);d=l(d,6,c.excludeChangesByMe);d=l(d,7,c.unsubscribeFromAll);c=l(d,8,c.unsubscribeFromAll);Bb(b,3,c)}null!=a.listViewPreferences&&(c=a.listViewPreferences,d=new hj,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),Bb(b,9,c));null!=a.layoutPreferences&&(c=a.layoutPreferences,d=new vj,null!=c.leftSidebarWidth&&l(d,1,c.leftSidebarWidth),null!=c.expandIssueSlo&&l(d,2,c.expandIssueSlo),null!=c.rightSidebarWidth&&
l(d,3,c.rightSidebarWidth),Bb(b,10,d));null!=a.dateTimePreferences&&(c=a.dateTimePreferences,d=new wj,d=l(d,1,c.calendarFormat),d=l(d,2,c.timeFormat).setTimeZone(c.timeZone),c=l(d,7,Fna[c.sloEtaViewAs]),Bb(b,11,c));null!=a.themePreferences&&(c=a.themePreferences,c=(new ij).setDensity(Gna[c.density]),Bb(b,8,c));null!=a.homepagePreferences&&(c=a.homepagePreferences,d=new xj,null!=c.resourceType&&d.setResourceType(Hna(c.resourceType)),null!=c.resourceId&&d.setResourceId(c.resourceId),Bb(b,13,d));null!=
a.keyboardPreferences&&(c=a.keyboardPreferences,d=new jj,c=l(d,1,c.enableAllHotkeys),Bb(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 mj,c.commentDisplayOverride&&d.setCommentDisplayOverride(Ina(c.commentDisplayOverride)),c.lastPublishMode&&l(d,1,Ina(c.lastPublishMode)),Bb(b,20,d));null!=a.bugScreensaverPreferences&&(c=a.bugScreensaverPreferences,
d=new nj,null!=c.enableBugScreensaver&&l(d,1,c.enableBugScreensaver),null!=c.announcementDismissed&&l(d,2,c.announcementDismissed),Bb(b,21,d));null!=a.g3nPreferences&&(c=a.g3nPreferences,d=new oj,null!=c.announcementDismissedMillis&&l(d,1,c.announcementDismissedMillis),Bb(b,24,d));null!=a.newIssueDetailsPagePreferences&&(c=a.newIssueDetailsPagePreferences,d=new pj,null!=c.enableNewIssueDetailsPage&&l(d,1,c.enableNewIssueDetailsPage),null!=c.newIdpOptOut&&l(d,3,c.newIdpOptOut),null!=c.onboardingDialogAcknowledgedMillis&&
l(d,2,c.onboardingDialogAcknowledgedMillis),Bb(b,22,d));null!=a.teamWarningPreferences&&(c=Jna(a.teamWarningPreferences),Bb(b,23,c));if(null!=a.dismissalTimestamps){c=Zi(b,25,sj);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 sj;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},Dna=function(a){return(new yj).setColumnList(a.column.map(function(b){return Lna(b)}))},
Lna=function(a){var b=new zj,c=b.setType,d=a.type;if(!Aj.hasOwnProperty(d))throw Error("fc`"+d);b=c.call(b,Mna[d]);null!=a.customFieldId&&b.setCustomFieldId(a.customFieldId);return b},Ena=function(a){return(new Bj).setColumnList(a.column.map(function(b){var c=(new Cj).setColumn(Lna(b.column));a:switch(b=b.order,b){case "ASCENDING":b=1;break a;case "DESCENDING":b=2;break a;default:b=mh(b,"Unknown sortOrder: "+b)}return l(c,2,b)}))},Hna=function(a){switch(a){case "HOTLIST":return 1;case "SAVED_SEARCH":return 2;
case "BOOKMARK_GROUP":return 3;default:return mh(a,"Unknown resourceType: "+a)}},Ina=function(a){switch(bj[a]){case 2:return 2;case 1:return 1;case 3:return 3;default:return 0}},Jna=function(a){var b=new qj;null!=a.componentTeamWarnings&&Nna(b,a.componentTeamWarnings.map(function(c){var d=new rj;c.componentId&&d.setComponentId(c.componentId);c.dismissMillis&&l(d,2,c.dismissMillis);return d}));return b},Dj=function(a){return a},Ej=function(a,b){var c={};return a.filter(function(d){d=String(b(d));return c[d]?
!1:c[d]=!0})},Fj=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},Ona=function(a){a=void 0===a?[]:a;return a.filter(function(b){return"number"===typeof b}).filter(function(b){return 0!==b})},Pna=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]})},Qna=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)})}},
Gj=function(a){a=void 0===a?{}:a;return Ona(Object.values(a)).sort(function(b,c){return b-c})},Rna=function(a,b){if(a&1){var c=x();F(0,"button",4);J("click",function(){var d=z(c).$implicit,e=K();return A(e.quickBulkEdit("PRIORITY",d))});O(1);G()}a&2&&(a=b.$implicit,b=K(),B(1),De(" ",b.constants.protoIssuePrioritiesDisplayNames.get(a)," "))},Sna=function(a,b){if(a&1){var c=x();F(0,"button",4);J("click",function(){var d=z(c).$implicit,e=K();return A(e.quickBulkEdit("SEVERITY",d))});O(1);G()}a&2&&(a=
b.$implicit,b=K(),B(1),De(" ",b.constants.protoIssueSeveritiesDisplayNames.get(a)," "))},Tna=function(a,b){if(a&1){var c=x();F(0,"button",4);J("click",function(){var d=z(c).$implicit,e=K();return A(e.quickBulkEdit("STATUS",d))});O(1);G()}a&2&&(a=b.$implicit,b=K(),B(1),De(" ",b.constants.protoIssueStatusesDisplayNames.get(a)," "))},Una=function(a,b){if(a&1){var c=x();F(0,"button",17);J("click",function(){var e=z(c).$implicit,f=K();return A(f.quickBulkEdit("TYPE",e))});O(1);G()}if(a&2){a=b.$implicit;
b=K();var d;C("matTooltip",null!==(d=b.constants.protoIssueTypesShortDescriptions.get(a))&&void 0!==d?d:"");B(1);De(" ",b.constants.protoIssueTypesDisplayNames.get(a)," ")}},Vna=function(a){if(a&1){var b=x();F(0,"button",4);J("click",function(){z(b);var c=K();return A(c.bulkEditIssueRelation("PARENT",!0))});O(1,"Add Parent");G()}},Wna=function(a){if(a&1){var b=x();F(0,"button",4);J("click",function(){z(b);var c=K();return A(c.bulkEditIssueRelation("PARENT",!1))});O(1,"Remove Parent");G()}},Xna=function(a){if(a&
1){var b=x();F(0,"button",5);J("click",function(){z(b);var c=K(2);return A(c.exportCsvClicked.emit())});O(1,"Export issues to CSV ");G()}},Yna=function(a){if(a&1){var b=x();F(0,"button",5);J("click",function(){z(b);var c=K(2);return A(c.flagAsSpamClicked.emit())});O(1,"Flag issues as spam ");G()}},Zna=function(a){a&1&&(qe(0),F(1,"button",1)(2,"span"),O(3,"More"),G(),H(4,"b-icon",2),G(),F(5,"mat-menu",null,3),M(7,Xna,2,0,"button",4),M(8,Yna,2,0,"button",4),G(),re());if(a&2){var b=Ce(6);a=K();B(1);
C("disabled",a.isAnonymous)("matMenuTriggerFor",b);B(6);C("ngIf",a.showExportCsv);B(1);C("ngIf",a.showFlagIssuesAsSpam)}},$na=function(a){a&1&&(qe(0),O(1," Network connection has been interrupted. "),re())},aoa=function(a){a&1&&O(0," Network connection has been interrupted or login credentials may have expired. ")},doa=function(a){if(a&1){var b=x();F(0,"button",5);J("click",function(c){z(b);K(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=Mja("undefined"!=typeof"/refreshSso".href?"/refreshSso".href:"/refreshSso")||ih;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("gc");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(",");na()&&c.navigator&&c.navigator.standalone&&f&&"_self"!=f?(d=Hj(document,"A"),e=e instanceof dh?e:Ij(e),d.href=fh(e),d.target=f,h&&(d.rel="noreferrer"),e=document.createEvent("MouseEvent"),e.initMouseEvent("click",!0,!0,c,1),d.dispatchEvent(e)):h?(c=boa("",c,f,q),e=fh(e),c&&(coa&&ea(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),c.opener=null,""===e&&(e="javascript:''"),e=kh('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+
Jj(e)+'">',null),(c=c.document)&&c.write&&(c.write(qh(e)),c.close()))):(c=boa(e,c,f,q))&&d.noopener&&(c.opener=null);return A()});O(1," Log in again ");G()}},eoa=function(a){a&1&&(F(0,"b-callout",1)(1,"b-callout-body"),M(2,$na,2,0,"ng-container",2),M(3,aoa,1,0,"ng-template",null,3,Jf),G(),F(5,"b-callout-actions"),M(6,doa,2,0,"button",4),G()());if(a&2){var b=Ce(4);a=K();C("messageType","error");B(2);C("ngIf",a.isAnonymous)("ngIfElse",b);B(4);C("ngIf",!a.isAnonymous)}},Kj=function(){return new foa},
goa=function(a){var b={};a=r(Zi(a,1,Lj).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},hoa=function(a,b){return a.map(function(c){return b[c]||null})},ioa=function(a){if(a)return a;a=new Lj;l(a,1,1);l(a,2,0);return a},joa=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("lc");}},koa=function(a){a&1&&(F(0,"a",1),O(1," Hiring!\n"),G())},loa=function(a){return a instanceof Mj?a:new Mj(a,{})},Nj=function(a){a=loa(a);return new Mj(a.char,Object.assign({},a.modifiers,{shift:!0}))},moa=function(a){a=loa(a);return new Mj(a.char,Object.assign({},a.modifiers,{ctrl:!0}))},noa=function(){var a=Nj("f");a=loa(a);return new Mj(a.char,Object.assign({},a.modifiers,{alt:!0}))},poa=function(a){if(a instanceof Mj){var b=ooa(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(poa).join(" "):ooa(a)},Oj=function(){return qc.apply(0,arguments)},ooa=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 mh(a)}},qoa=function(a){a=Error("mc`"+a);a.ngNavigationCancelingError=!0;return a},roa=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}},Pj=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],!soa(a[d],b[d]))return!1;return!0},soa=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},Qj=function(a,b){for(var c in a)a.hasOwnProperty(c)&&
b(a[c],c)},Rj=function(a){return Lea(a)?a:Zd(a)?(0,S.from)(Promise.resolve(a)):(0,S.of)(a)},voa=function(a,b,c){return toa[c.paths](a.root,b.root,c.matrixParams)&&uoa[c.queryParams](a.queryParams,b.queryParams)&&!("exact"===c.fragment&&a.fragment!==b.fragment)},woa=function(a,b){return Pj(a,b)},xoa=function(a,b,c){if(!Sj(a.segments,b.segments)||!Tj(a.segments,b.segments,c)||a.numberOfChildren!==b.numberOfChildren)return!1;for(var d in b.children)if(!a.children[d]||!xoa(a.children[d],b.children[d],
c))return!1;return!0},yoa=function(a,b){return Object.keys(b).length<=Object.keys(a).length&&Object.keys(b).every(function(c){return soa(a[c],b[c])})},Aoa=function(a,b,c){return zoa(a,b,b.segments,c)},zoa=function(a,b,c,d){if(a.segments.length>c.length)return a=a.segments.slice(0,c.length),Sj(a,c)&&!b.hasChildren()&&Tj(a,c,d)?!0:!1;if(a.segments.length===c.length){if(!Sj(a.segments,c)||!Tj(a.segments,c,d))return!1;for(var e in b.children)if(!a.children[e]||!Aoa(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 Sj(a.segments,e)&&Tj(a.segments,e,d)&&a.children.primary?zoa(a.children.primary,b,c,d):!1},Tj=function(a,b,c){return b.every(function(d,e){return uoa[c](a[e].parameters,d.parameters)})},Boa=function(a,b){return Sj(a,b)&&a.every(function(c,d){return Pj(c.parameters,b[d].parameters)})},Sj=function(a,b){return a.length!==b.length?!1:a.every(function(c,d){return c.path===b[d].path})},Coa=function(a,b){var c=[];Qj(a.children,function(d,
e){"primary"===e&&(c=c.concat(b(d,e)))});Qj(a.children,function(d,e){"primary"!==e&&(c=c.concat(b(d,e)))});return c},Vj=function(a){return a.segments.map(function(b){return Uj(b.path)+Doa(b.parameters)}).join("/")},Wj=function(a,b){if(!a.hasChildren())return Vj(a);if(b){b=a.children.primary?Wj(a.children.primary,!1):"";var c=[];Qj(a.children,function(d,e){"primary"!==e&&c.push(e+":"+Wj(d,!1))});return 0<c.length?b+"("+c.join("//")+")":b}b=Coa(a,function(d,e){return"primary"===e?[Wj(a.children.primary,
!1)]:[e+":"+Wj(d,!1)]});return 1===Object.keys(a.children).length&&null!=a.children.primary?Vj(a)+"/"+b[0]:Vj(a)+"/("+b.join("//")+")"},Eoa=function(a){return encodeURIComponent(a).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")},Xj=function(a){return Eoa(a).replace(/%3B/gi,";")},Uj=function(a){return Eoa(a).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")},Doa=function(a){return Object.keys(a).map(function(b){return";"+Uj(b)+"="+Uj(a[b])}).join("")},
Foa=function(a){var b=Object.keys(a).map(function(c){var d=a[c];return Array.isArray(d)?d.map(function(e){return Xj(c)+"="+Xj(e)}).join("&"):Xj(c)+"="+Xj(d)}).filter(function(c){return!!c});return b.length?"?"+b.join("&"):""},Yj=function(a){return(a=a.match(Goa))?a[0]:""},Hoa=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=Hoa(a,c.value))return c;return null},Ioa=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=
Ioa(a,d.value),d.length)return d.unshift(b),d;return[]},Zj=function(a){var b={};a&&a.children.forEach(function(c){return b[c.value.outlet]=c});return b},Joa=function(a,b){a=new ak("",new bk(new ck([],{},{},"",{},"primary",b,null,a.root,-1,{}),[]));b=new dk(new S.BehaviorSubject([new ek("",{})]),new S.BehaviorSubject({}),new S.BehaviorSubject({}),new S.BehaviorSubject(""),new S.BehaviorSubject({}),"primary",b,a.root);b.snapshot=a.root;return new fk(new bk(b,[]),a)},Loa=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 Koa(a.slice(c))},Koa=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:{}})},Moa=function(a,b){b.value._routerState=
a;b.children.forEach(function(c){return Moa(a,c)})},Noa=function(a){var b=0<a.children.length?" { "+a.children.map(Noa).join(", ")+" } ":"";return""+a.value+b},Ooa=function(a){if(a.snapshot){var b=a.snapshot,c=a._futureSnapshot;a.snapshot=c;Pj(b.queryParams,c.queryParams)||a.queryParams.next(c.queryParams);b.fragment!==c.fragment&&a.fragment.next(c.fragment);Pj(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(!Pj(d[f],
e[f])){d=!1;break a}d=!0}}d||a.url.next(c.url);Pj(b.data,c.data)||a.data.next(c.data)}else a.snapshot=a._futureSnapshot,a.data.next(a._futureSnapshot.data)},Poa=function(a,b){var c=Pj(a.params,b.params)&&Boa(a.url,b.url),d=!a.parent!==!b.parent;return c&&!d&&(!a.parent||Poa(a.parent,b.parent))},gk=function(a,b,c){if(c&&a.shouldReuseRoute(b.value,c.value.snapshot)){var d=c.value;d._futureSnapshot=b.value;b=Qoa(a,b,c);return new bk(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 gk(a,e)}),d;d=Roa(b.value);b=b.children.map(function(e){return gk(a,e)});return new bk(d,b)},Qoa=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 gk(a,d,f);return gk(a,d)})},Roa=function(a){return new dk(new S.BehaviorSubject(a.url),new S.BehaviorSubject(a.params),new S.BehaviorSubject(a.queryParams),new S.BehaviorSubject(a.fragment),
new S.BehaviorSubject(a.data),a.outlet,a.component,a)},hk=function(a){return"object"===typeof a&&null!=a&&!a.outlets&&!a.segmentPath},ik=function(a){return"object"===typeof a&&null!=a&&a.outlets},Toa=function(a,b,c,d,e){var f={};d&&Qj(d,function(h,k){f[k]=Array.isArray(h)?h.map(function(q){return""+q}):""+h});if(a===b)return new jk(c,f,e);a=Soa(a,b,c);return new jk(a,f,e)},Soa=function(a,b,c){var d={};Qj(a.children,function(e,f){d[f]=e===b?c:Soa(e,b,c)});return new kk(a.segments,d)},Voa=function(a){if("string"===
typeof a[0]&&1===a.length&&"/"===a[0])return new Uoa(!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={};Qj(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 Uoa(c,
b,a)},Woa=function(a){if(ik(a[0]))return a[0].outlets;var b={};return b.primary=a,b},Yoa=function(a,b,c){a||(a=new kk([],{}));if(0===a.segments.length&&a.hasChildren())return lk(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(ik(q))break;q=""+q;var v=e<c.length-1?c[e+1]:null;if(0<f&&void 0===q)break;if(q&&v&&"object"===typeof v&&void 0===v.outlets){if(q!=k.path||!Pj(v,k.parameters)){d=h;break a}e+=
2}else{v={};if(q!=k.path||!Pj(v,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 kk(a.segments.slice(0,d.pathIndex),{}),b.children.primary=new kk(a.segments.slice(d.pathIndex),a.children),lk(b,0,e)):d.match&&0===e.length?new kk(a.segments,{}):d.match&&!a.hasChildren()?Xoa(a,b,c):d.match?lk(a,0,e):Xoa(a,b,c)},lk=function(a,b,c){if(0===c.length)return new kk(a.segments,{});var d=Woa(c),e={};Qj(d,
function(f,h){"string"===typeof f&&(f=[f]);null!==f&&(e[h]=Yoa(a.children[h],b,f))});Qj(a.children,function(f,h){void 0===d[h]&&(e[h]=f)});return new kk(a.segments,e)},Xoa=function(a,b,c){for(var d=a.segments.slice(0,b),e=0;e<c.length;){var f=c[e];if(ik(f))return a=Zoa(f.outlets),new kk(d,a);if(0===e&&hk(c[0]))d.push(new ek(a.segments[b].path,$oa(c[0]))),e++;else{f=ik(f)?f.outlets.primary:""+f;var h=e<c.length-1?c[e+1]:null;f&&h&&hk(h)?(d.push(new ek(f,$oa(h))),e+=2):(d.push(new ek(f,{})),e++)}}return new kk(d,
{})},Zoa=function(a){var b={};Qj(a,function(c,d){"string"===typeof c&&(c=[c]);null!==c&&(b[d]=Xoa(new kk([],{}),0,c))});return b},$oa=function(a){var b={};Qj(a,function(c,d){return b[d]=""+c});return b},mk=function(a){var b=a.children&&a.children.map(mk);a=b?Object.assign({},a,{children:b}):Object.assign({},a);a.component||a.loadComponent||!b&&!a.loadChildren||!a.outlet||"primary"===a.outlet||(a.component=nk);return a},ok=function(a){return a.outlet||"primary"},apa=function(a,b){var c=a.filter(function(d){return ok(d)===
b});c.push.apply(c,u(a.filter(function(d){return ok(d)!==b})));return c},bpa=function(a){if(!a)return null;var b;if(null==(b=a.routeConfig)?0:b._injector)return a.routeConfig._injector;for(a=a.parent;a;a=a.parent){b=a.routeConfig;var c=void 0;if(null==(c=b)?0:c._loadedInjector)return b._loadedInjector;c=void 0;if(null==(c=b)?0:c._injector)return b._injector}return null},pk=function(a){return"function"===typeof a},qk=function(a){return a instanceof jk},sk=function(){return bg(function(a){return(0,S.combineLatest)(a.map(function(b){return b.pipe(Qf(),
ag(rk))})).pipe(Vf(function(b,c){var d=!1;return c.reduce(function(e,f,h){if(e!==rk)return e;f===rk&&(d=!0);if(!d){if(!1===f)return f;if(h===c.length-1||qk(f))return f}return e},b)},rk),rf(function(b){return b!==rk}),R(function(b){return qk(b)?b:!0===b}),Qf())})},tk=function(a,b,c){if(""===b.path)return"full"===b.pathMatch&&(a.hasChildren()||0<c.length)?Object.assign({},cpa):{matched:!0,consumedSegments:[],remainingSegments:c,parameters:{},positionalParamSegments:{}};a=(b.matcher||roa)(c,a,b);if(!a)return Object.assign({},
cpa);var d={};Qj(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:{}}},vk=function(a,b,c,d,e){e=void 0===e?"corrected":e;if(0<c.length&&dpa(a,c,d)){var f=new kk(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"!==ok(h)&&(e=new kk([],{}),e._sourceSegment=a,e._segmentIndexShift=b.length,c[ok(h)]=e);c=new kk(b,c);c._sourceSegment=a;c._segmentIndexShift=b.length;return{segmentGroup:c,slicedSegments:[]}}if(0===c.length&&epa(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,uk(a,c,q)&&!h[ok(q)]){var v=new kk([],{});v._sourceSegment=a;v._segmentIndexShift="legacy"===e?a.segments.length:b.length;k[ok(q)]=v}h=Object.assign({},
h,k);f=new kk(f,h);f._sourceSegment=a;f._segmentIndexShift=b.length;return{segmentGroup:f,slicedSegments:c}}f=new kk(a.segments,a.children);f._sourceSegment=a;f._segmentIndexShift=b.length;return{segmentGroup:f,slicedSegments:c}},dpa=function(a,b,c){return c.some(function(d){return uk(a,b,d)&&"primary"!==ok(d)})},epa=function(a,b,c){return c.some(function(d){return uk(a,b,d)})},uk=function(a,b,c){return(a.hasChildren()||0<b.length)&&"full"===c.pathMatch?!1:""===c.path},fpa=function(a,b,c,d){return ok(a)===
d||"primary"!==d&&uk(b,c,a)?"**"===a.path?!0:tk(b,a,c).matched:!1},xk=function(a){return(0,S.throwError)(new wk(a))},gpa=function(a){for(var b={},c=r(Object.keys(a.children)),d=c.next();!d.done;d=c.next()){d=d.value;var e=gpa(a.children[d]);if(0<e.segments.length||e.hasChildren())b[d]=e}a=new kk(a.segments,b);1===a.numberOfChildren&&a.children.primary&&(b=a.children.primary,a=new kk(a.segments.concat(b.segments),b.children));return a},hpa=function(a,b,c,d){return bg(function(e){return(new yk(a,b,
c,e.extractedUrl,d)).apply().pipe(R(function(f){return Object.assign({},e,{urlAfterRedirects:f})}))})},zk=function(a,b,c){var d;return(null!=(d=bpa(b))?d:c).get(a)},Ak=function(a,b,c,d,e){e=void 0===e?{canDeactivateChecks:[],canActivateChecks:[]}:e;var f=Zj(b);a.children.forEach(function(h){var k=f[h.value.outlet],q=d.concat([h.value]),v=e;v=void 0===v?{canDeactivateChecks:[],canActivateChecks:[]}:v;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=
ipa(E,y,y.routeConfig.runGuardsAndResolvers);N?v.canActivateChecks.push(new jpa(q)):(y.data=E.data,y._resolvedData=E._resolvedData);y.component?Ak(h,k,I?I.children:null,q,v):Ak(h,k,c,q,v);N&&I&&I.outlet&&I.outlet.isActivated&&v.canDeactivateChecks.push(new Bk(I.outlet.component,E))}else E&&Ck(k,I,v),v.canActivateChecks.push(new jpa(q)),y.component?Ak(h,null,I?I.children:null,q,v):Ak(h,null,c,q,v);delete f[h.value.outlet]});Qj(f,function(h,k){return Ck(h,c.getContext(k),e)});return e},ipa=function(a,
b,c){if("function"===typeof c)return c(a,b);switch(c){case "pathParamsChange":return!Sj(a.url,b.url);case "pathParamsOrQueryParamsChange":return!Sj(a.url,b.url)||!Pj(a.queryParams,b.queryParams);case "always":return!0;case "paramsOrQueryParamsChange":return!Poa(a,b)||!Pj(a.queryParams,b.queryParams);default:return!Poa(a,b)}},Ck=function(a,b,c){var d=Zj(a),e=a.value;Qj(d,function(f,h){e.component?b?Ck(f,b.children.getContext(h),c):Ck(f,null,c):Ck(f,b,c)});e.component?b&&b.outlet&&b.outlet.isActivated?
c.canDeactivateChecks.push(new Bk(b.outlet.component,e)):c.canDeactivateChecks.push(new Bk(null,e)):c.canDeactivateChecks.push(new Bk(null,e))},mpa=function(a,b){return kf(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,S.of)(Object.assign({},c,{guardsResult:!0})):kpa(f,d,e,a).pipe(kf(function(k){return k&&"boolean"===typeof k?lpa(d,h,a,b):(0,S.of)(k)}),R(function(k){return Object.assign({},c,{guardsResult:k})}))})},
kpa=function(a,b,c,d){return(0,S.from)(a).pipe(kf(function(e){return npa(e.component,e.route,c,b,d)}),Tf(function(e){return!0!==e},!0))},lpa=function(a,b,c,d){return(0,S.from)(b).pipe(kf(function(e){var f=S.concat;var h=e.route.parent;null!==h&&d&&d(new opa(h));h=(0,S.of)(!0);var k=e.route;null!==k&&d&&d(new Dk(k));k=(0,S.of)(!0);return f.call(S,h,k,ppa(a,e.path,c),qpa(a,e.route,c))},1),Tf(function(e){return!0!==e},!0))},qpa=function(a,b,c){var d=b.routeConfig?b.routeConfig.canActivate:null;if(!d||
0===d.length)return(0,S.of)(!0);d=d.map(function(e){return(0,S.defer)(function(){var f=zk(e,b,c);if(f&&pk(f.canActivate))f=Rj(f.canActivate(b,a));else if(pk(f))f=Rj(f(b,a));else throw Error("Ac");return f.pipe(Tf())})});return(0,S.of)(d).pipe(sk())},ppa=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,S.defer)(function(){var f=
e.guards.map(function(h){if((h=zk(h,e.node,c))&&pk(h.canActivateChild))h=Rj(h.canActivateChild(d,a));else if(pk(h))h=Rj(h(d,a));else throw Error("Bc");return h.pipe(Tf())});return(0,S.of)(f).pipe(sk())})});return(0,S.of)(b).pipe(sk())},npa=function(a,b,c,d,e){var f=b&&b.routeConfig?b.routeConfig.canDeactivate:null;if(!f||0===f.length)return(0,S.of)(!0);f=f.map(function(h){if((h=zk(h,b,e))&&pk(h.canDeactivate))h=Rj(h.canDeactivate(a,b,c,d));else if(pk(h))h=Rj(h(a,b,c,d));else throw Error("Cc");return h.pipe(Tf())});
return(0,S.of)(f).pipe(sk())},rpa=function(a){return new S.Observable(function(b){return b.error(a)})},upa=function(a,b,c,d,e,f){try{var h=(new spa(a,b,c,d,void 0===e?"emptyOnly":e,void 0===f?"legacy":f)).recognize();return null===h?rpa(new tpa):(0,S.of)(h)}catch(k){return rpa(k)}},vpa=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)})},wpa=function(a){return(a=a.value.routeConfig)&&""===a.path&&void 0===
a.redirectTo},xpa=function(a){var b=[],c=new Set,d={};a=r(a);for(var e=a.next();!e.done;d={$jscomp$loop$prop$node$1645:d.$jscomp$loop$prop$node$1645},e=a.next())d.$jscomp$loop$prop$node$1645=e.value,wpa(d.$jscomp$loop$prop$node$1645)?(e=b.find(function(f){return function(h){return f.$jscomp$loop$prop$node$1645.value.routeConfig===h.value.routeConfig}}(d)),void 0!==e?(e.children.push.apply(e.children,u(d.$jscomp$loop$prop$node$1645.children)),c.add(e)):b.push(d.$jscomp$loop$prop$node$1645)):b.push(d.$jscomp$loop$prop$node$1645);
d=r(c);for(a=d.next();!a.done;a=d.next())a=a.value,e=xpa(a.children),b.push(new bk(a.value,e));return b.filter(function(f){return!c.has(f)})},ypa=function(a){for(;a._sourceSegment;)a=a._sourceSegment;return a},zpa=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},Apa=function(a,b,c,d,e){return kf(function(f){return upa(a,b,f.urlAfterRedirects,c(f.urlAfterRedirects),d,e).pipe(R(function(h){return Object.assign({},
f,{targetSnapshot:h})}))})},Cpa=function(a,b){return kf(function(c){var d=c.targetSnapshot,e=c.guards.canActivateChecks;if(!e.length)return(0,S.of)(c);var f=0;return(0,S.from)(e).pipe(kf(function(h){return Bpa(h.route,d,a,b)},1),dg(function(){return f++}),sha(),kf(function(){return f===e.length?(0,S.of)(c):S.EMPTY}))})},Bpa=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[Dpa]=e.title);return Epa(f,a,b,d).pipe(R(function(h){a._resolvedData=
h;a.data=Loa(a,c).resolve;!e||"string"!==typeof e.title&&null!==e.title||(a.data[Dpa]=e.title);return null}))},Epa=function(a,b,c,d){var e=Fpa(a);if(0===e.length)return(0,S.of)({});var f={};return(0,S.from)(e).pipe(kf(function(h){return Gpa(a[h],b,c,d).pipe(Tf(),dg(function(k){f[h]=k}))}),sha(),Uf(f),Mf(function(h){return h instanceof S.EmptyError?S.EMPTY:(0,S.throwError)(h)}))},Fpa=function(a){return[].concat(u(Object.keys(a)),u(Object.getOwnPropertySymbols(a)))},Gpa=function(a,b,c,d){a=zk(a,b,d);
return a.resolve?Rj(a.resolve(b,c)):Rj(a(b,c))},Ek=function(a){return bg(function(b){var c=a(b);return c?(0,S.from)(c).pipe(R(function(){return b})):(0,S.of)(b)})},Hpa=function(a){throw a;},Ipa=function(a,b){return b.parse("/")},Jpa=function(){return(0,S.of)(null)},Kpa=function(a,b,c,d,e,f,h,k,q,v,y){h=void 0===h?{}:h;a=new Fk(null,a,b,c,d,e,Array.prototype.concat.apply([],f));v&&(a.urlHandlingStrategy=v);y&&(a.routeReuseStrategy=y);a.titleStrategy=null!=q?q:k;h.errorHandler&&(a.errorHandler=h.errorHandler);
h.malformedUriErrorHandler&&(a.malformedUriErrorHandler=h.malformedUriErrorHandler);h.onSameUrlNavigation&&(a.onSameUrlNavigation=h.onSameUrlNavigation);h.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=h.paramsInheritanceStrategy);h.relativeLinkResolution&&(a.relativeLinkResolution=h.relativeLinkResolution);h.urlUpdateStrategy&&(a.urlUpdateStrategy=h.urlUpdateStrategy);h.canceledNavigationResolution&&(a.canceledNavigationResolution=h.canceledNavigationResolution);return a},Lpa=function(a){return a.routerState.root},
Mpa=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,S.concat)((0,S.of)(b),(0,S.timer)(c,c).pipe(Vf(function(e){return e+b},b),Gha(function(e){return e<d})),(0,S.of)(a.length)).pipe(Pf()).pipe(R(function(e){return a.slice(0,Math.min(e,d))}))},Gk=function(a,b){b=new S.BehaviorSubject(b);a.subscribe(b);return b},Hk=function(a){var b;a.subscribe(function(c){b=c}).unsubscribe();return b},Ik=function(){return Pf(function(a,b){return Ei(a,b)})},Npa=function(){return function(a){return a.pipe(R(function(b){return{event:b,
timestamp:Date.now()}}),Zga(a.pipe(Nf(1E4,S.asapScheduler))))}},Opa=function(a){return a.keys.join("-")+"-"+a.description+"-"+a.displayAs},Ppa=function(a,b){a&1&&(F(0,"tr")(1,"td",5),O(2),G(),F(3,"td"),O(4,":"),G(),F(5,"td",6),O(6),G()());a&2&&(a=b.$implicit,B(2),Ee(a.displayAs),B(4),Ee(a.description))},Qpa=function(a,b){a&1&&(F(0,"thead")(1,"tr"),H(2,"th",3),F(3,"th",4),O(4),G()(),M(5,Ppa,7,2,"tr",1),G());a&2&&(a=b.$implicit,B(4),Ee(a.title),B(1),C("ngForOf",a.hotkeys))},Jk=function(a){return void 0!==
a.user},Kk=function(a){return void 0!==a.group},Rpa=function(a){switch(a){case "public_non_google":return"Public (non-google.com)";case "googlers_unrestricted":return"Full-time Googlers";default:return Lk(a.replace(/_/g," ").toLowerCase())}},Mk=function(a){return new Ji(a.year,a.month-1,a.day)},Nk=function(a){return{month:a.getMonth()+1,day:a.getDate(),year:a.getFullYear()}},Spa=function(a){return!(!a||null==a.day||null==a.month||null==a.year)},Upa=function(a){if(a)return{accessLevel:Tpa[a.getAccessLevel()]}},
Wpa=function(a){a=Vpa[a.accessLevel];var b=new Pk;b.setAccessLevel(a);return b},Qk=function(a){return null==console?!1:"function"===typeof console[a]},Rk=function(){Qk("debug")&&console.debug.apply(console,qc.apply(0,arguments))},Xpa=function(){Qk("info")&&console.info.apply(console,qc.apply(0,arguments))},Ypa=function(){Qk("log")&&console.log.apply(console,qc.apply(0,arguments))},Sk=function(){Qk("warn")&&console.warn.apply(console,qc.apply(0,arguments))},Zpa=function(){Qk("error")&&console.error.apply(console,
qc.apply(0,arguments))},$pa=function(a){if(null!=a){var b=a.toObject();a=b.year;var c=b.day;b=b.month;if(null==a)Sk("No year. dateToJs");else if(null==c)Sk("No day. dateToJs");else if(null==b)Sk("No month. dateToJs");else return{year:a,day:c,month:b}}},aqa=function(a){var b=new Tk;Uk(b,3,a.day);b.setMonth(a.month);b.setYear(a.year);return b},Vk=function(a){if(null!=a){var b=a.getSeconds();a=a.getNanos();return{seconds:b,nanos:a}}},Wk=function(a){var b=new sj;b.setSeconds(a.seconds);b.setNanos(a.nanos);
return b},bqa=function(a){if(null!=a)return Number(a.toDate())},Xk=function(a){if(null!=a&&(a=String(a),""!==a.trim()))return a=Number(a),isNaN(a)?void 0:a},Yk=function(a){if(null!=a)return String(a)},Zk=function(a){return null==a?void 0:a},$k=function(a){return null==a?null:a},al=function(a){return function(b){return null==b?a:b}},bl=function(a){return null!=a},cl=function(a,b){return null==a?b[0]:b[a]},dl=function(a,b){if(null!=a)return b[a]},el=function(a){return String(a)},fl=function(a){a=Xk(a);
return void 0===a?NaN:a},dqa=function(a){if(null!=a)return a=a.toObject(),{customFieldId:Zk(a.customFieldId),standardField:cl(a.standardField,cqa)}},fqa=function(a){var b=new gl;a.customFieldId?b.setCustomFieldId(a.customFieldId):a.standardField&&b.setStandardField(eqa[a.standardField]);return b},hqa=function(a){if(a&&(a=gqa(a)))return hl(a)},gqa=function(a){if(null!=a){var b=a.toObject(),c=b.name,d=b.description,e=b.required,f=b.enabledOnIssues,h=Xk(b.customFieldId),k=Xk(b.componentId),q=Zk(b.allowedValueList);
a=iqa(a.getTypedDefaultValue());if(null==c)Sk("No name. customFieldToJs");else if(null==h)Sk("No customFieldId. customFieldToJs");else if(null==b.type)Sk("No type. customFieldToJs");else{var v=b.type,y=al(0)(b.stateOnIssues);b=al(0)(b.fieldSignificance);return{name:c,description:Zk(d),required:Zk(e),enabledOnIssues:!!f,type:jqa[v],customFieldId:h,componentId:k,allowedValue:q,stateOnIssues:kqa[y],fieldSignificance:lqa[b],typedDefaultValue:a}}}},iqa=function(a){if(null!=a){var b=a.toObject(),c=Xk(b.customFieldId),
d=Zk(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,v,y;e=(e=null==(q=a.getRepeatedDateValue())?void 0:null==(v=q.getValuesList())?void 0:null==(y=v.map($pa))?void 0:y.filter(bl))?{values:e}:void 0;a=$pa(a.getDateValue());if(null==c)Sk("No customFieldId. customFieldValueToJs");else return{customFieldId:c,
displayValues:d,textValue:Zk(b.textValue),enumValue:Zk(b.enumValue),numericValue:Zk(b.numericValue),dateValue:a,repeatedTextValue:f,repeatedEnumValue:h,repeatedNumericValue:k,repeatedDateValue:e}}},mqa=function(a){var b=new il;a.customFieldId&&b.setCustomFieldId(String(a.customFieldId));a.displayValues&&jl(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(aqa(a.dateValue));else if(void 0!==a.repeatedTextValue){var c=new kl;c.setValuesList(a.repeatedTextValue.values);b.setRepeatedTextValue(c)}else void 0!==a.repeatedEnumValue?(c=new kl,c.setValuesList(a.repeatedEnumValue.values),b.setRepeatedEnumValue(c)):void 0!==a.repeatedNumericValue?(c=new ll,c.setValuesList(a.repeatedNumericValue.values),b.setRepeatedNumericValue(c)):void 0!==a.repeatedDateValue&&(c=new ml,c.setValuesList(a.repeatedDateValue.values.map(aqa)),
b.setRepeatedDateValue(c));return b},nqa=function(a){return hqa(a.getCustomField())},qqa=function(a){var b=new nl;a.customFieldId&&b.setCustomFieldId(String(a.customFieldId));b.setComponentId(String(a.componentId));b.setType(oqa[a.type]);b.setRequired(a.required);b.setName(a.name);b.setDescription(a.description);a.typedDefaultValue&&b.setTypedDefaultValue(mqa(a.typedDefaultValue));a.allowedValue&&jl(b,8,a.allowedValue);b.setFieldSignificance(pqa[a.fieldSignificance]);b.setStateOnIssues(a.stateOnIssues);
b.setEnabledOnIssues(a.enabledOnIssues);return b},tl=function(a){var b=new ol;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&&rqa(b,sqa(new pl,a.numericSpec.multiplier));if(a.enumSpec){var c;tqa(b,(new ql).setOptionsList((null!=(c=a.enumSpec.options)?c:[]).map(function(d){return(new rl).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}sl(b,6,a)}return b},uqa=function(a){var b=new ul;a.specId&&Uk(b,1,a.specId);a.estimate&&vl(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},vqa=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(wl(a,4,xl)){var f=yl(a,pl,4,xl);f&&(b.numericSpec={multiplier:zl(f,1)})}else if(wl(a,5,xl)&&(a=Al(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},Bl=function(a){switch(a){case 2:return"PII";case 3:return"SPII";case 0:case 1:return"NONE_DETECTED";default:return mh(a,"Unexpected pii severity")}},
Cl=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 mh(a,"Unexpected pii severity")}},Dl=function(a){return a&&a.piiVerdict?a.piiVerdict.severity:"NONE_DETECTED"},El=function(a){switch(a){case "NONE_DETECTED":return 1;case "PII":return 2;case "SPII":return 3;default:return 1}},wqa=function(a){switch(a){case "PII":return"Restricted";case "SPII":return"Restricted+";default:return""}},xqa=function(a){var b=
dj(a,1)?kj(a,1):void 0,c=a.hasResourcePath()?a.getResourcePath():void 0,d=Bl(a.getSeverity()),e=a.getJudgementReason();a=V(a,5);return{contentJudgementId:b,resourcePath:c,severity:d,judgementReason:e,contentJudge:a}},yqa=function(a){var b=new Fl;b.setJudgementReason(a.judgementReason);b.setSeverity(Cl(a.severity));return b},Aqa=function(a){var b=new Gl;l(b,1,zqa[a.retentionSelection]);null!==a.retentionPeriodDays&&l(b,2,a.retentionPeriodDays);l(b,3,zqa[a.piiRetentionSelection]);null!==a.piiRetentionPeriodDays&&
l(b,4,a.piiRetentionPeriodDays);null!==a.spiiRetentionPeriodDays&&l(b,5,a.spiiRetentionPeriodDays);return b},Hl=function(a){if(null!=a){var b=$k(Vk(a.getRetentionPeriod()));a=$k(Vk(a.getScheduledDeletionTime()));return{retentionPeriod:b,scheduledDeletionTime:a}}},Jl=function(a){if(null!=a){a:{a=m(a,Il,1);if(null!=a)if(a=a.toObject(),null==a.severity)Sk("No severity. piiVerdictToJs");else{a={severity:Bqa[a.severity]};break a}a=void 0}return{piiVerdict:a}}},Cqa=function(a){if(null!=a)return{startTime:Vk(a.getStartTime()),
endTime:Vk(a.getEndTime()),targetTime:Vk(a.getTargetTime())}},Dqa=function(a){var b=new Kl;a.startTime&&b.setStartTime(Wk(a.startTime));a.endTime&&b.setEndTime(Wk(a.endTime));a.targetTime&&b.setTargetTime(Wk(a.targetTime));return b},Fqa=function(a){var b=new Ll;b.setInherit(a.inherit);b.setSource(Eqa[a.source]);b.setId(a.id);b.setComment(a.comment);l(b,6,a.sourceComponentId);b.setSourceTeamId(a.sourceTeamId);return b},Gqa=function(a){var b;return 1===(null==(b=a.getTeamSloEditPolicy())?void 0:X(b,
2,0))},Hqa=function(a){var b;return 1===(null==(b=m(a,Ml,1))?void 0:b.getEffectiveSloEditPolicy())},Iqa=function(a){if(!a)return!1;a=a.userGaiaStatus;return!a||"ACTIVE"===a||"UNSPECIFIED"===a},Ol=function(a){return a?a.map(Nl):[]},Jqa=function(a){a=Ol(a);a.sort();return a},Nl=function(a){return a&&a.getUserGaiaStatus?Kqa(Pl(a)):Kqa(a)},Kqa=function(a){return a?"DELETED"===a.userGaiaStatus?"[Deleted User]":"UNAVAILABLE"===a.userGaiaStatus?"[Unavailable User]":Iqa(a)?Lqa(a)||"[No Data]":"[No Data]":
""},Ql=function(a){return a&&a.getUserGaiaStatus?Lqa(Pl(a)):Lqa(a)},Lqa=function(a){if(a)return a.emailAddress||a.obfuscatedEmailAddress||""},Pl=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=Mqa[c];(c=a.getAliasesList())&&0<c.length&&(b.aliases=c);return b}},Rl=function(a){if(!a)return null;var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())(c=Pl(c.value))&&b.push(c);
return b},Tl=function(a){var b=a.emailAddress,c=a.obfuscatedEmailAddress,d=a.aliases;a=a.userGaiaStatus;var e=new Sl;b&&e.setEmailAddress(b);c&&e.setObfuscatedEmailAddress(c);d&&e.setAliasesList(d);a&&e.setUserGaiaStatus(Nqa[a]);return e},Ul=function(a){return a?{emailAddress:a.trim(),userGaiaStatus:"ACTIVE"}:null},Oqa=function(a){if(null!=a)return{tag:a.getTag(),text:V(a,2)}},Uqa=function(a){if(null!=a){var b=a.toObject(),c,d,e,f,h,k,q,v,y,E;return{title:b.title||"",comment:$k(b.comment),snapshotNumber:$k(b.snapshotNumber),
version:$k(b.version),createdTimeMicros:$k(b.createdTimeMicros),isArchived:!!b.isArchived,inProd:!!b.inProd,isDeleted:$k(b.isDeleted),changelist:$k(b.changelistList),postmortems:$k(b.postmortemsList),foundInVersion:$k(b.foundInVersionList),targetedToVersion:$k(b.targetedToVersionList),verifiedInVersion:$k(b.verifiedInVersionList),componentId:$k(Xk(b.componentId)),duplicateOfIssueId:$k(Xk(b.duplicateOfIssueId)),attachmentId:$k(null==(c=b.attachmentIdList)?void 0:c.map(Xk).filter(bl)),blockedByIssueId:$k(null==
(d=b.blockedByIssueIdList)?void 0:d.map(Xk).filter(bl)),blockingIssueId:$k(null==(e=b.blockingIssueIdList)?void 0:e.map(Xk).filter(bl)),hotlistId:$k(null==(f=b.hotlistIdList)?void 0:f.map(Xk).filter(bl)),duplicateIssueId:$k(null==(h=b.duplicateIssueIdList)?void 0:h.map(Xk).filter(bl)),sloSnoozeUntil:a.getSloSnoozeUntil(),authorUser:$k(Pl(m(a,Sl,36))),reporterUser:$k(Pl(m(a,Sl,37))),assigneeUser:$k(Pl(m(a,Sl,38))),verifierUser:$k(Pl(m(a,Sl,39))),ccUsers:$k(Rl(rb(a,Sl,40))),commentContentVerdict:Jl(a.getCommentContentVerdict()),
customField:rb(a,il,24).map(iqa).filter(bl),retention:cl(b.retention,Wl),significanceOverride:cl(b.significanceOverride,lqa),deletionReason:cl(b.deletionReason,Pqa),type:null!=(k=dl(b.type,Qqa))?k:null,priority:null!=(q=dl(b.priority,Rqa))?q:null,severity:null!=(v=dl(b.severity,Sqa))?v:null,status:null!=(y=dl(b.status,Tqa))?y:null,effort:null!=(E=a.getEffort())?E:void 0}}},ara=function(a){var b=new Xl;if(a.authorUser){var c=Tl(a.authorUser);Bb(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(Vqa[a.type]);a.status&&b.setStatus(Yl[a.status]);a.priority&&b.setPriority(Wqa[a.priority]);a.severity&&b.setSeverity(Xqa[a.severity]);void 0!==a.title&&b.setTitle(a.title);a.reporterUser&&(c=Tl(a.reporterUser),Bb(b,37,c));a.assigneeUser&&(c=Tl(a.assigneeUser),Bb(b,38,c));a.verifierUser&&(c=Tl(a.verifierUser),Bb(b,39,c));a.ccUsers&&(c=a.ccUsers.map(Tl),Ab(b,40,c));a.attachmentId&&(c=a.attachmentId.map(el),
jl(b,14,c));a.duplicateOfIssueId&&l(b,15,String(a.duplicateOfIssueId));a.blockedByIssueId&&(c=a.blockedByIssueId.map(el),jl(b,16,c));a.blockingIssueId&&(c=a.blockingIssueId.map(el),jl(b,17,c));a.changelist&&jl(b,18,a.changelist);a.postmortems&&b.setPostmortemsList(a.postmortems);a.foundInVersion&&jl(b,19,a.foundInVersion);a.targetedToVersion&&jl(b,20,a.targetedToVersion);a.verifiedInVersion&&jl(b,21,a.verifiedInVersion);a.hotlistId&&b.setHotlistIdList(a.hotlistId.map(el));a.customField&&(c=a.customField.map(mqa),
Ab(b,24,c));a.comment&&b.setComment(a.comment);a.formattingMode&&b.setFormattingMode(Zl[a.formattingMode]);if(a.commentContentVerdict){c=b.setCommentContentVerdict;var d=a.commentContentVerdict,e=new $l;if(d.piiVerdict){d=d.piiVerdict;var f=new Il;f.setSeverity(Yqa[d.severity]);Bb(e,1,f)}c.call(b,e)}a.snapshotNumber&&l(b,26,a.snapshotNumber);a.retention&&b.setRetention(Zqa[a.retention]);a.isDeleted&&b.setIsDeleted(a.isDeleted);a.deletionReason&&b.setDeletionReason($qa[a.deletionReason]);a.significanceOverride&&
b.setSignificanceOverride(pqa[a.significanceOverride]);a.duplicateIssueId&&(c=a.duplicateIssueId.map(el),jl(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},bra=function(a){var b={targetIssueId:String(ej(a,1))};if(a=ej(a,2))b.afterIssueId=Yk(a);return b},cra=function(a){var b=new am;b.setIssueId(String(a));return b},era=function(a){var b=new dra;b.setIssueId(String(a.issueId));
b.setComponentId(String(a.componentId));return b},gra=function(a){var b=new fra;b.setIssueId(String(a.issueId));b.setComponentId(String(a.componentId));return b},hra=function(a){return{issueId:Number(a.getIssueId()),status:Tqa[a.getStatus()],title:a.getTitle()}},kra=function(a){var b=new bm;ira(b,a.fieldName);a.value&&b.setValue(a.value);a.actionType&&b.setActionType(jra[a.actionType]);a.customFieldValue&&b.setCustomFieldValue(mqa(a.customFieldValue));return b},lra=function(a){var b=new cm;b.setIssueId(String(a.issueId));
b.setActionsList(a.actions.map(kra));return b},ora=function(a){var b=new dm;b.setAddHotlistIdsList(a.addHotlistIds.map(String));b.setRemoveHotlistIdsList(a.removeHotlistIds.map(String));var c=a.hotlistIssue;a=new em;a.setIssueId(String(c.issueId));c.position&&a.setPosition(c.position);var d=a.setIssue;c=c.issue;var e=new fm;e.setIssueId(String(c.issueId));var f,h=(null!=(f=c.snapshot)?f:[]).map(ara);Ab(e,2,h);if(c.userData){f=e.setUserData;h=c.userData;var k=new gm;h.voted&&k.setVoted(h.voted);h.starred&&
k.setStarred(h.starred);h.notificationSubscription&&k.setNotificationSubscription(mra[h.notificationSubscription]);void 0!==h.lastViewedTimeMicros&&l(k,5,h.lastViewedTimeMicros);f.call(e,k)}if(c.aggregatedData){h=c.aggregatedData;f=new hm;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,v=new im;if(q.retentionPeriod){var y=v.setRetentionPeriod,E=q.retentionPeriod,I=new jm;I.setSeconds(E.seconds);I.setNanos(E.nanos);y.call(v,I)}q.scheduledDeletionTime&&v.setScheduledDeletionTime(Wk(q.scheduledDeletionTime));k.call(f,v)}h.sloStatus&&(k=f.setSloStatus,h=h.sloStatus,q=new km,h.assignmentBounds&&q.setAssignmentBounds(Dqa(h.assignmentBounds)),h.responseBounds&&q.setResponseBounds(Dqa(h.responseBounds)),h.closureBounds&&q.setClosureBounds(Dqa(h.closureBounds)),k.call(f,
q));Bb(e,4,f)}c.accessLimit&&e.setAccessLimit(Wpa(c.accessLimit));var N;e.setVisibleFieldsList((null!=(N=c.visibleFields)?N:[]).map(fqa));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,v=q.set,y=new lm,y.setSourceIssueIdsList(k.sourceIssueIds),v.call(q,h,y);e.setChildIssueCount(c.childIssueCount);e.setIsArchived(c.isArchived);
d.call(a,e);nra(b,a);return b},pra=function(a){var b;return{issueDigests:(null!=(b=a.getIssueDigestsList())?b:[]).map(hra),numTotalResults:a.getNumTotalResults()}},rra=function(a){var b=new mm;b.setIssueId(String(a.issueId));var c=a.targetIds.map(String);jl(b,2,c);b.setRelation(qra[a.relation]);b.setActionType(jra[a.actionType]);a.commentDisplayOverride&&b.setCommentDisplayOverride(Zl[a.commentDisplayOverride]);return b},tra=function(a){var b=new sra;b.setIssueId(String(a.issueId));b.setRetention(Zqa[a.retention]);
a.significanceOverride&&b.setSignificanceOverride(pqa[a.significanceOverride]);a.commentDisplayOverride&&b.setCommentDisplayOverride(Zl[a.commentDisplayOverride]);return b},ura=function(a){return{issueId:Number(a.getIssueId())}},vra=function(a){return{teamId:a.getTeamId(),score:zl(a,2)}},wra=function(a){var b=new nm;b.setTeamId(a.teamId);nb(b,2,a.score,0);return b},xra=function(a){var b=new om;b.setInherit(a.inherit);b.setId(String(a.id));return b},qm=function(a){if(a.hasRetentionSettings()){var b=
a.getRetentionSettings();b={retentionSelection:yra[X(b,1,0)],retentionPeriodDays:ej(b,2),piiRetentionSelection:yra[X(b,3,0)],piiRetentionPeriodDays:ej(b,4),spiiRetentionPeriodDays:ej(b,5)}}else b=void 0;if(lj(a,10)){var c=m(a,pm,10),d,e;var f=(null!=(d=jb(c,1))?d:[]).map(fl);d=jb(c,2);var h=rb(c,nl,4);if(h){c=[];h=r(h);for(var k=h.next();!k.done;k=h.next())(k=hqa(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:zra[f.getSource()],id:f.getId(),sourceComponentId:kj(f,6),sourceTeamId:f.getSourceTeamId(),comment:f.getComment()}):f=void 0;d=lj(a,24)?vqa(a.getEffortSpec()):void 0;a.hasTeam()?(c=a.getTeam(),c={inherit:c.getInherit(),id:c.getId()}):c=void 0;var q,v;h=fl(a.getComponentId());k=fl(kj(a,2));var y=a.getName(),E=a.getDescription(),I=a.getArchived(),N=(null!=(q=jb(a,7))?q:[]).map(fl);q=Upa(a.getAccessLimit());var L=V(a,13),T=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:T,commentEditState:Y,slo:f,bugscopeSloId:kj(a,20),retentionSettings:b,fieldOrdering:Ara[X(a,23,0)],effortSpec:d,team:c,teamSuggestions:(null!=(v=a.getTeamSuggestionsList())?v:[]).map(vra)}},Bra=function(a){var b=new rm;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(Aqa(a.retentionSettings));return b},Cra=function(a){var b;return(null!=(b=rb(a,rm,1))?b:[]).map(qm)},Dra=function(a){return{warningHeader:V(a,1),warning:V(a,2),isAllowed:W(a,3),isExternalMove:W(a,4)}},Era=function(a){return{templateId:a.getTemplateId(),componentId:fl(a.getComponentId()),default:!!a.getDefault(),name:a.getName(),description:a.getDescription(),snapshot:Uqa(a.getSnapshot())}},Fra=function(a){var b=new sm;b.setTemplateId(a.templateId);
b.setComponentId(String(a.componentId));b.setDefault(a.default);b.setName(a.name);b.setDescription(a.description);b.setSnapshot(ara(a.snapshot));return b},Gra=function(a){var b={},c=Zi(a,2,nl).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=hqa(e))&&(b[fl(d)]=e)}return{snapshot:Uqa(a.getSnapshot()),customFieldMap:b}},Hra=function(a){a=Fi(a);a.componentPathInfo&&(a.componentPathInfo.allCustomField=null);return a},tm=function(a){var b=Fi(a);
b.componentPathInfo&&a.componentPathInfo&&(b.componentPathInfo.allCustomField=(a.componentPathInfo.allCustomField||[]).map(function(c){return hl(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},Ira=function(a){var b;return(null!=(b=rb(a,rm,1))?b:[]).map(qm)},um=function(a){return null==
a||null==a.componentId?!1:!0},vm=function(a){if(um(a))return a;Sk("This object doesn't appear to be a 'Component'",a)},Jra=function(a){var b=vm(a);if(null==b)throw Error("Fc`"+JSON.stringify(a,null,2));return b},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 wm({fromObject:c});var d;return new xm(a.method,a.url,null!=(d=a.data)?d:null,{params:b,headers:new ym(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)}},zm=function(a){return 0<Object.values(a).length},Mra=function(a,b){a.next(Object.freeze(Object.assign({},a.getValue(),b)))},Am=function(a,b){var c=a.getValue();c=Object.assign({},c);b=(delete c[b],c);a.next(Object.freeze(b))},Nra=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))},
Bm=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)},Ora=function(a,b,c){c=a.get(b)||c;a.has(b)||a.set(b,c);return c},Pra=function(a){a=void 0===a?{}:a;return ana(a)},Qra=function(a){var b=new S.Subject,c=a.subscribe(b);a=(0,S.firstValueFrom)(b);a.finally(function(){c.unsubscribe()});return a},Rra=function(a){return null==a?new Promise(function(){}):Promise.resolve(a)},Tra=function(){var a;return Sra[(null==(a=Yi().getConfig()||
void 0)?void 0:a.getEnvironmentType())||""]},Ura=function(a){if(!a||!a.seconds&&!a.nanos)return null;var b=new jm;a.seconds&&b.setSeconds(a.seconds);a.nanos&&b.setNanos(a.nanos);return b},Cm=function(a){if(!a||!a.seconds&&!a.nanos)return null;var b=new sj;a.seconds&&b.setSeconds(a.seconds);a.nanos&&b.setNanos(a.nanos);return b},Vra=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=Cm(b.sloSnoozeUntil))}},Dm=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,"+")},Wra=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 v=b;q=(null==v?0:v.hasOwnProperty(q))?v[q]:void 0;(q=null===q||void 0===q?"":q.toString())&&d.push(Dm(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]},Xra=function(a){return!!a.data&&void 0!==a.data.message},Yra=function(a){var b;return void 0!==(null==(b=a.error)?void 0:b.message)},Em=function(a){return!!a&&Fa(a)&&(Xra(a)||Yra(a))},Fm=function(a){return Xra(a)&&a.data&&a.data.message?a.data.message:Yra(a)&&a.error&&a.error.message?a.error.message:
""},Zra=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})},$ra=function(a){return Era(m(a,sm,1))},asa=function(a){return(rb(a,sm,1)||[]).map(Era)},bsa=function(a){return{encryptedMedia:gb(Gm(a,1)),errorMessage:a.getErrorMessage()}},csa=function(a){var b=new Hm;l(b,1,a.attachment);void 0!==a.contentJudgement&&b.setContentJudgement(yqa(a.contentJudgement));return b},dsa=function(a){var b;return{attachments:(null!=(b=a.getAttachmentsList())?
b:[]).map(Im)}},Im=function(a){if(null!=a){var b=a.toObject(),c=Xk(b.attachmentId),d=Zk(b.filecompUrl),e=Zk(b.etag),f=Zk(b.contentType),h=Zk(b.description),k=Zk(b.filename),q=Zk(b.length);b=Wl[al(0)(b.piiRetention)];var v=Hl(a.getPiiRetentionState()),y=esa(a.getEntityStatus()),E=Jl(a.getContentVerdict());a=m(a,Jm,3);null!=a?(a=a.toObject(),a={filename:Zk(a.filename),length:Zk(a.length),contentType:Zk(a.contentType)}):a=void 0;return{attachmentId:c,filecompUrl:d,etag:e,contentType:f,description:h,
filename:k,length:q,piiRetention:b,piiRetentionState:v,entityStatus:y,contentVerdict:E,media:a}}},esa=function(a){if(null!=a){var b=a.toObject();a=al(0)(b.reason);b=al(0)(b.status);return{reason:fsa[a],status:gsa[b]}}},jsa=function(a){if(null!=a){var b=a.toObject(),c=b.name,d=b.displayName,e=b.important;if(null==c)Sk("No name. eventDiffToJs");else{d=Zk(d);e=!!e;var f=al(0)(b.type);c={name:c,displayName:d,timestamp:bqa(a.getTimestamp()),important:e,type:hsa[f]};if(wl(a,6,Km)){var h=yl(a,Lm,6,Km);wl(h,
1,Mm)&&(a=yl(h,Nm,1,Mm),c.isUser=!0,c.oldValue=al("<none>")(Ql(null==a?void 0:m(a,Sl,1))),c.newValue=al("<none>")(Ql(null==a?void 0:m(a,Sl,2))));if(wl(h,2,Mm)){var k,q;c.oldValue=Zk(null==(k=b.singleValueDiff)?void 0:null==(q=k.stringDiff)?void 0:q.oldValue);var v,y;c.newValue=Zk(null==(v=b.singleValueDiff)?void 0:null==(y=v.stringDiff)?void 0:y.newValue)}}else if(wl(a,9,Km)){var E;c.customFieldId=Zk(null==(E=b.customFieldDiff)?void 0:E.customFieldId);var I;c.oldValue=Zk(null==(I=b.customFieldDiff)?
void 0:I.oldValue);var N;c.newValue=Zk(null==(N=b.customFieldDiff)?void 0:N.newValue)}else if(wl(a,10,Km))k=yl(a,Om,10,Km),c.isUser=!0,b=(null==k?void 0:k.getAddedList())||[],k=(null==k?void 0:k.getRemovedList())||[],c.added=b.map(function(ka){return Ql(ka)}).map(al("<none>")),c.removed=k.map(function(ka){return Ql(ka)}).map(al("<none>"));else if(wl(a,7,Km)){var L;c.added=(null==(L=b.collectionDiff)?void 0:L.addedList)||[];var T;c.removed=(null==(T=b.collectionDiff)?void 0:T.removedList)||[]}else if(wl(a,
8,Km)){var Y;b=(null==(Y=yl(a,Pm,8,Km))?void 0:Y.getAddedList())||[];k=(null==(h=yl(a,Pm,8,Km))?void 0:h.getRemovedList())||[];c.added=b.map(isa).filter(bl);c.removed=k.map(isa).filter(bl)}return c}}},isa=function(a){if(null!=a){var b=a.toObject();a=b.value;b=b.href;if(null==a)Sk("No value. linkedItemToJs");else if(null==b)Sk("No href. linkedItemToJs");else return{value:a,href:b}}},ksa=function(a){a=rh(a).toString();var b=new Qm;l(b,2,a);return b},Rm=function(a){if(null!=a){var b=a.toObject();b=Xk(b.issueId);
if(null==b)Sk("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,v;d=a.getUserData();if(null!=d){d=d.toObject();var y;d={voted:$k(d.voted),starred:$k(d.starred),notificationSubscription:cl(d.notificationSubscription,lsa),lastViewedTimeMicros:null!=(y=d.lastViewedTimeMicros)?y:0}}else d=void 0;y=Upa(a.getAccessLimit());e=rb(a,
Xl,2).map(Uqa).filter(bl);f=a.getVisibleFieldsList().map(dqa).filter(bl);var E;var I=m(a,hm,4);if(null!=I){var N=I.toObject(),L=N.createdTimeMicros,T=N.resolvedTimeMicros,Y=N.verifiedTimeMicros,ka=N.modifiedTimeMicros,ha=null!=(E=N.voteCount)?E:0;E=Xk(N.sloId);N=Xk(N.teamId);var ra=Hl(I.getRetentionState());I=I.getSloStatus();I=null!=I?{assignmentBounds:Cqa(I.getAssignmentBounds()),responseBounds:Cqa(I.getResponseBounds()),closureBounds:Cqa(I.getClosureBounds())}:void 0;E={voteCount:ha,createdTimeMicros:null!=
L?L:0,resolvedTimeMicros:null!=T?T:0,verifiedTimeMicros:null!=Y?Y:0,modifiedTimeMicros:null!=ka?ka:0,sloId:E,teamId:N,retentionState:ra,sloStatus:I}}else E=void 0;return{issueId:b,userData:d,accessLimit:y,snapshot:e,visibleFields:f,aggregatedData:E,majorModifiedTimeMicros:null!=(h=ej(a,7))?h:0,parentIssueIds:null!=(k=a.getParentIssueIdsList())?k:[],ancestors:c,childIssueCount:null!=(q=a.getChildIssueCount())?q:0,isArchived:a.getIsArchived(),relatedLinks:(null!=(v=a.getRelatedLinksList())?v:[]).map(msa)}}}},
nsa=function(a){if(null!=a){var b=a.toObject(),c=bqa(m(a,sj,4)),d=!!b.isMajorEvent,e=b.addedAttachmentIdsList||[],f,h=null!=(f=Sm(a.getComment()))?f:{},k;f=null==(k=rb(a,Tm,2))?void 0:k.map(jsa).filter(bl);var q;k=null==(q=rb(a,Tm,3))?void 0:q.map(jsa).filter(bl);var v;q=null==(v=rb(a,Um,9))?void 0:v.map(Oqa).filter(bl);v=a.getAttachmentsList().map(Im).filter(bl);var y=Ql(m(a,Sl,5));y=al("<none>")(y);a=Pl(m(a,Sl,5));if(null==c)Sk("No modifiedDate. issueEventToJs");else return Object.assign({},h,{attachments:v,
version:b.version,modifiedDate:c,preDiffs:f,postDiffs:k,isMajorEvent:d,addedAttachmentIds:e,taggedSummary:q,userPerformingAction:y,userPerformingActionUser:a})}},Sm=function(a){if(null==a)return{};var b=a.toObject(),c=$k(dl(b.piiRetention,Wl)),d=dl(b.formattingMode,Vm),e,f=dl(null==(e=b.entityStatus)?void 0:e.status,gsa);e=b.lastModified;return{version:b.version,unlinkifiedComment:b.unlinkifiedComment,commentNumber:b.commentId,commentVersion:b.version,commentLastModifiedAtDate:null!=e?e/1E3:void 0,
commentRedacted:Zk(b.redacted),commentContentVerdict:Jl(a.getCommentContentVerdict()),commentRetentionState:Hl(a.getPiiRetentionState()),commentDeletionStatus:f,commentRetention:c,lastCommentEditorUser:Pl(m(a,Sl,8)),formattingMode:d,formattedComment:Zk(a.getFormattedComment()),commentEtag:b.etag}},Ym=function(a){if(null!=a){var b=Rm(a.getIssue());if(null==b)Sk("No issue. issueFetchResponseToJs");else{var c={},d=Zi(a,4,Wm).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=Im(f))&&(c[e]=f)}d=nsa(m(a,Xm,5));return{issue:b,events:rb(a,Xm,2).map(nsa).filter(bl),customFields:a.getCustomFieldsList().map(gqa).filter(bl),attachmentMap:c,firstEvent:d}}}},osa=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(bra),totalChildCount:d.getTotalSize()})}return b},psa=function(a){var b=new Zm;b.setIssueIdsList(a.issueIds.map(String));
b.setActionsList(a.actions.map(kra));return b},qsa=function(a){return{issueId:Number(a.getIssueId()),message:a.getMessage()}},rsa=function(a){for(var b={},c=r(Zi(a,1,fm).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)]=Rm(e)}c={};d=r(Zi(a,3,rm).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)]=qm(f)}var h;a=(null!=(h=rb(a,$m,2))?h:[]).map(qsa);return{affectedIssues:b,componentMap:c,
errors:a}},ssa=function(a){var b;return(null!=(b=a.getIssueCommentsList())?b:[]).map(Sm)},msa=function(a){var b=pb(a,an);switch(b){case 2:return a=yl(a,bn,2,an),0!==a.getCommentNumber()?{type:"issueReference",issueId:String(a.getIssueId()),commentNumber:a.getCommentNumber()}:{type:"issueReference",issueId:String(a.getIssueId())};case 1:return{type:"hyperlink",href:yl(a,cn,1,an).getHref()};case 0:throw Error("Rc");default:return mh(b)}},tsa=function(a){return a?"string"!==typeof a?a:Zl[a]:0},usa=function(a){return{readTimestamp:ej(a,
1)}},vsa=function(a){var b=a.getIssueState();b={componentId:b.getComponentId(),type:Qqa[b.getType()],status:Tqa[b.getStatus()],priority:Rqa[b.getPriority()],severity:Sqa[b.getSeverity()]};return{issueId:a.getIssueId(),issueState:b,modifiedTime:Vk(a.getModifiedTime()),teamId:a.getTeamId()}},wsa=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 mh(a,"Unexpected formatting mode")}},xsa=function(a){var b=
void 0;a.hasCommentContentVerdict()&&(b=Jl(a.getCommentContentVerdict()));return{issueId:a.getIssueId(),commentNumber:a.getCommentId(),comment:a.getComment(),commentContentVerdict:b,formattingMode:Vm[a.getFormattingMode()],lastEditorUser:Pl(m(a,Sl,8)),lastModified:String(a.getLastModified()),version:a.getVersion(),unlinkifiedComment:V(a,7),entityStatus:esa(a.getEntityStatus()),piiRetentionState:Hl(a.getPiiRetentionState()),piiRetention:Wl[a.getPiiRetention()],etag:a.getEtag()}},ysa=function(a){var b;
return(null!=(b=a.getIssueCommentsList())?b:[]).map(xsa)},zsa=function(a){var b=new dn,c=new en;c.setContent(ksa(lh(a)));b.setLiteralFormat(c);return b},Asa=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=Rm(d))&&c.push(d)}else c=[];b=a.getNumTotalResults();var e=Zi(a,3,rm);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)]=qm(h)}f=Zi(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()}},Bsa=function(a){var b={};if(null==a)return b;a=r(rb(a,fn,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},Csa=function(a){switch(a){case 1:return"admin";case 2:return"writer";case 3:return"appender";case 4:return"reader"}},Dsa=function(a){var b={};a=r(rb(a,fn,1));for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=Csa(c.getRelation());if(d){var e=void 0,f=null!=(e=b[c.getResource()])?e:{};f[d]=!0;b[c.getResource()]=f}}return b},Esa=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})},Fsa=function(){},Gsa=function(a){if(a&1){var b=x();F(0,"div",2)(1,"button",3);J("click",function(){z(b);var c=K();return A(c.action())});O(2);G()()}a&2&&(a=K(),B(2),Ee(a.data.action))},Hsa=function(){return new gn},Isa=function(a){a&1&&(F(0,"span",6),O(1),G());a&2&&(a=K(),B(1),Ee(a.data.message))},Jsa=function(a){a&1&&H(0,"span",7);a&2&&(a=K(),C("innerHtml",a.data.htmlMessage,Ld))},Lsa=function(a){if(a&1){var b=x();F(0,"button",8);J("click",function(){z(b);var c=K();return A(Ksa(c.snackBarRef))});
O(1);G()}a&2&&(a=K(),B(1),De(" ",a.data.actionLabel," "))},Msa=function(a){if(a&1){var b=x();F(0,"button",8);J("click",function(){z(b);var c=K();return A(c.snackBarRef.dismiss())});O(1);G()}a&2&&(a=K(),B(1),De(" ",a.data.dismissLabel," "))},Nsa=function(a){if(a&1){var b=x();F(0,"button",9);J("click",function(){z(b);var c=K();return A(c.snackBarRef.dismiss())});H(1,"mat-icon",10);G()}},Psa=function(){var a=window.defrostedResourcesJspb;if(a&&Array.isArray(a)&&(a=rb(new Osa(a),hn,1))&&1===a.length)return Ym(a[0])},
kn=function(a,b){return jn("issues/:issueId",{id:a,params:b})},mn=function(a){return ln("issues",{params:a})},Qsa=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null},Rsa=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null},Ssa=function(a,b){return jn("components/:componentId/manage",{id:a,tab:b})},Tsa=function(a){return a?ln("settings/:settingsTab?",{id:a,token:":settingsTab?"}):ln("settings")},jn=function(a,b){b=void 0===
b?{}:b;return null==b.id?"":ln(a,b)},ln=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=Usa(f,d));e&&(f=f+"#"+e);return f},nn=function(a,b){b=(void 0===b?{}:b).comment;return{path:"/issues/"+a,fragment:b?"comment"+b:void 0}},on=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},Vsa=function(a){return{path:"/components/"+a}},Wsa=function(a){var b={};a&&(b.componentId=a);return{path:"/components",queryParams:b}},pn=function(a){return{path:"/slos/"+a+"/edit"}},Xsa=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},Zsa=function(a){if(!a.getType())throw Error("Wc");return{type:Ysa[a.getType()],customFieldId:Xk(a.getCustomFieldId()),customFieldName:Zk(a.getCustomFieldName())}},ata=function(a){var b=
new qn;void 0!==a.customFieldId&&b.setCustomFieldId(String(a.customFieldId));void 0!==a.customFieldName&&l(b,3,a.customFieldName);void 0!==a.type&&b.setType($sa[a.type]);return b},bta=function(a){var b=a.getField();if(!b)throw Error("Xc");if(!a.getDirection())throw Error("Yc");return{field:Zsa(b),direction:1===a.getDirection()?"ASCENDING":"DESCENDING"}},cta=function(a){var b=new rn;b.setField(ata(a.field));b.setDirection("ASCENDING"===a.direction?1:2);return b},dta=function(a){var b=new sn;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(ata));var d;b.setSortOrderList((null!=(d=a.sortOrder)?d:[]).map(cta));void 0!==a.etag&&b.setEtag(a.etag);null!==a.ownerUser&&b.setOwnerUser(Tl(a.ownerUser));var e;b.setAdminUsersList((null!=(e=a.adminUsers)?e:[]).map(Tl));return b},tn=function(a){if(!a.getHotlistId())throw Error("Zc");
if(!a.getName())throw Error("$c");if(!a.getCreatedTimeMicros())throw Error("ad");if(!a.getModifiedTimeMicros())throw Error("bd");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(Zsa),sortOrder:(null!=(e=a.getSortOrderList())?e:[]).map(bta),etag:a.getEtag(),
ownerUser:Pl(a.getOwnerUser())||null,adminUsers:Rl(a.getAdminUsersList())}},eta=function(a){var b;return(null!=(b=a.getHotlistsList())?b:[]).map(tn)},fta=function(a){var b;return(null!=(b=rb(a,sn,1))?b:[]).map(tn)},hta=function(a){a=a.getFavorite();return{user:Pl(a.getUser()),resourceType:gta[a.getResourceType()],resourceId:Number(a.getResourceId()),name:a.getName()}},ita=function(a){var b,c;return{searchId:Number(kj(a,1)),ownerUser:Pl(a.getOwnerUser()),name:a.getName(),description:a.getDescription(),
query:a.getQuery(),sortOrder:(null!=(b=a.getSortOrderList())?b:[]).map(bta),displayColumn:(null!=(c=a.getDisplayColumnList())?c:[]).map(Zsa),adminUsers:Rl(a.getAdminUsersList())}},jta=function(a){var b;return(null!=(b=rb(a,un,1))?b:[]).map(ita)},kta=function(a){var b;return{id:a.getId(),name:a.getName(),description:a.getDescription(),ownerUser:null!=(b=Pl(a.getOwnerUser()))?b:null,starred:a.getStarred(),resourceType:a.getResourceType()}},lta=function(a){var b;return{id:a.getId(),name:a.getName(),
description:a.getDescription(),ownerUser:Pl(a.getOwnerUser()),starred:a.getStarred(),sublinks:(null!=(b=rb(a,vn,6))?b:[]).map(kta)}},mta=function(a){var b,c,d,e;return{hotlists:(null!=(b=a.getHotlistsList())?b:[]).map(kta),bookmarkGroups:(null!=(c=a.getBookmarkGroupsList())?c:[]).map(lta),archivedHotlists:(null!=(d=rb(a,vn,3))?d:[]).map(kta),archivedBookmarkGroups:(null!=(e=rb(a,wn,4))?e:[]).map(lta)}},nta=function(a){return null==a.searchId||null==a.name||null==a.query?!1:!0},xn=function(a){a=void 0===
a?{}:a;return{headers:a.headers||{},params:Object.assign({},a.params,ota)}},pta=function(a){var b=Object.assign({},a);a=a.issue;b=(delete b.issue,b);return Object.assign({},b,{issueId:String(a.issueId)})},qta=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$1657:c.$jscomp$loop$prop$customField$1657},d=a.next())if(c.$jscomp$loop$prop$customField$1657=d.value,c.$jscomp$loop$prop$customField$1657.required){d=
!!c.$jscomp$loop$prop$customField$1657.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$1657.customFieldId}}(c));if(!d&&!h)return!1}return!0},rta=function(a){return"component"===(null==a?void 0:a.name)},tta=function(a){return null==a?!1:sta.has(a.name)},uta=function(a){return"hotlist"===(null==a?void 0:a.name)},vta=function(a){return null==a?!1:null!=a.href&&
null!=a.value},wta=function(a){return Array.isArray(a)?a.every(vta):!1},xta=function(a){var b=new Set;if(null==a||!uta(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,vta(c)&&b.add(String(c.value));return b},yn=function(a,b){return function(c,d){return yta(c,a,b,d)}},yta=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})},zta=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},Ata=function(a,b){return null==a||null==b?null==a&&null==b?0:null==a?1:null==b?-1:0:a.localeCompare(b)},zn=function(a){return!(null==a||!a.commentNumber)},Bta=function(a){var b;return 0<(null==(b=a.attachments)?void 0:b.length)},Cta=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(rta);a=r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,c(d.oldValue),c(d.newValue);return b},Dta=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)))},Eta=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(xta);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},Fta=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},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||null==a.componentId)return b;
b.add(String(a.componentId));return b},An=function(a){var b,c;return null==a?void 0:null==(b=a.issue)?void 0:null==(c=b.snapshot)?void 0:c[0]},Hta=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("-")},Ita=function(a){if(null==a)return"";var b=a.attachments.map(Hta).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("-")},Jta=function(a){return a.map(function(b){return b.commentNumber}).filter(bl).reduce(function(b,c){return Math.max(b,c)},1)},Kta=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||Ita(d)!==Ita(e)))return!1}return!0},Cn=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=Bn[a])?void 0:d.open)?e:!1},Dn=function(a){return null==a.isArchived?!1:!a.isArchived},Mta=function(a){return yn(function(b){var c,d;return null!=(d=Lta[Yl[null==
(c=a(b))?void 0:c.snapshot[0].status]])?d:0},zta)},Nta=function(a){return yn(function(b){var c,d;return null==(c=a(b))?void 0:null==(d=c.snapshot[0].assigneeUser)?void 0:d.emailAddress},Ata)},Ota=function(a){return yn(function(b){var c;return null==(c=a(b))?void 0:c.snapshot[0].type},Ata)},Pta=function(a){return yn(function(b){var c,d;return null==(c=a(b))?void 0:null==(d=c.snapshot[0].reporterUser)?void 0:d.emailAddress},Ata)},Qta=function(a){return yn(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},zta)},Rta=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},Sta=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"}},Tta=function(a){var b=a.newEditors,c=a.newImplicitUsers,
d=a.isExternalSession,e=a.issueId,f=a.actionIssueId;a=Rta(a.userPrincipals);return{title:"Allow "+(1===a?"members of the group to ":Sta(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)+"."}},Uta=function(a){return{noAccessEmails:jb(a,1),unknownEmails:jb(a,2)}},Vta=function(a){if(null!=a){var b={},c;if(c=a.getUser())b.user=Pl(c);if(c=
a.getGroup())b.group=Pl(c);if(c=a.getAlias())b.alias=c;return b}},Fn=function(a){var b=new En;if(Jk(a))return b.setUser(Tl(a.user)),b;if(Kk(a))return b.setGroup(Tl(a.group)),b;void 0!==a.alias&&b.setAlias(a.alias);return b},Hn=function(a){var b=Wta[a.getInheritance()],c=Xta[a.getImplicitAccess()],d,e,f,h,k,q,v,y,E,I;return{inheritance:b,admins:Gn(null!=(d=a.getAdminsList())?d:[]),appenders:Gn(null!=(e=a.getAppendersList())?e:[]),editors:Gn(null!=(f=a.getEditorsList())?f:[]),readers:Gn(null!=(h=a.getReadersList())?
h:[]),restrictedReaders:Gn(null!=(k=a.getRestrictedReadersList())?k:[]),restrictedPlusReaders:Gn(null!=(q=a.getRestrictedPlusReadersList())?q:[]),inheritedAdmins:Gn(null!=(v=a.getInheritedAdminsList())?v:[]),implicitAppenders:Gn(null!=(y=a.getImplicitAppendersList())?y:[]),implicitEditors:Gn(null!=(E=a.getImplicitEditorsList())?E:[]),implicitReaders:Gn(null!=(I=a.getImplicitReadersList())?I:[]),implicitAccess:c}},$ta=function(a){var b=new In,c=a.inheritance;b.setInheritance(Yta[null!=c?c:"INHERITANCE_UNSPECIFIED"]);
var d;b.setAdminsList((null!=(d=a.admins)?d:[]).map(Fn));var e;b.setAppendersList((null!=(e=a.appenders)?e:[]).map(Fn));var f;b.setEditorsList((null!=(f=a.editors)?f:[]).map(Fn));var h;b.setReadersList((null!=(h=a.readers)?h:[]).map(Fn));var k;b.setRestrictedReadersList((null!=(k=a.restrictedReaders)?k:[]).map(Fn));var q;b.setRestrictedPlusReadersList((null!=(q=a.restrictedPlusReaders)?q:[]).map(Fn));a.implicitAccess&&b.setImplicitAccess(Zta[a.implicitAccess]);return b},Gn=function(a){return a.map(Vta).filter(bl)},
Jn=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?(Zpa("Invalid principal: ",a),""):e+":"+f},aua=function(a){return(null!=a?a:[]).map(Jn)},cua=function(a){return(null!=a?a:[]).map(bua)},bua=function(a){var b=r(a.split(":"));a=b.next().value;b=b.next().value;if(!a||!b)throw Error("cd`"+b);switch(Number(a)){case 2:return{user:{emailAddress:b}};
case 3:return{group:{emailAddress:b}};case 4:return{alias:b};default:throw Error("dd`"+b);}},dua=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)}},eua=function(a){function b(){var e,f,h,k;return bf(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,cf(q,b(),0);k=h.value;return cf(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=qc.apply(0,arguments),f=new foa;c.push({args:e,returnValue:f});b();return f.promise}},fua=function(a){var b=!1;return function(){var c=qc.apply(0,arguments);if(!b)return b=!0,a.apply(null,u(c))}},gua=function(a){return!(null==a||!a.relatedChildren.length)},iua=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$1663:d.$jscomp$loop$prop$newItem$1663},e=b.next())if(d.$jscomp$loop$prop$newItem$1663=e.value,!a.has(d.$jscomp$loop$prop$newItem$1663.targetIssueId)){e=c.findIndex(function(h){return function(k){return k.targetIssueId===h.$jscomp$loop$prop$newItem$1663.afterIssueId}}(d));var f=void 0;f=d.$jscomp$loop$prop$newItem$1663.afterIssueId?-1===e?c.length:e+1:0;c.splice(f,0,d.$jscomp$loop$prop$newItem$1663);a.add(d.$jscomp$loop$prop$newItem$1663.targetIssueId)}return hua(c)},
jua=function(a,b){return hua(a.filter(function(c){return c.targetIssueId!==b}))},hua=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},kua=function(a){var b=new Map,c={};a=r(a);for(var d=a.next();!d.done;c={$jscomp$loop$prop$previousOperation$1665:c.$jscomp$loop$prop$previousOperation$1665},
d=a.next()){var e=d.value;d=e.issues.map(function(f){return f.issueId}).join(",");c.$jscomp$loop$prop$previousOperation$1665=b.get(d);c.$jscomp$loop$prop$previousOperation$1665?(e={newParentId:e.newParentId,newRelations:e.newRelations,issues:c.$jscomp$loop$prop$previousOperation$1665.issues,eventTimestamps:[].concat(u(c.$jscomp$loop$prop$previousOperation$1665.eventTimestamps),u(e.eventTimestamps)),newParentChildrenSnapshot:e.newParentChildrenSnapshot,done:e.done},e.done.promise.then(c.$jscomp$loop$prop$previousOperation$1665.done.resolve).catch(function(f){return function(h){f.$jscomp$loop$prop$previousOperation$1665.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$1432$1667:c.$jscomp$loop$prop$operation$1432$1667},d=a.next())c.$jscomp$loop$prop$operation$1432$1667=d.value,c.$jscomp$loop$prop$operation$1432$1667.newRelations=c.$jscomp$loop$prop$operation$1432$1667.newRelations.map(function(f){return function(h){return f.$jscomp$loop$prop$operation$1432$1667.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(v){return k.findIndex(function(y){return y.targetIssueId===v.issueId})})));h=Math.min.apply(Math,u(h.issues.map(function(v){return q.findIndex(function(y){return y.targetIssueId===v.issueId})})));return f===h?0:f<h?-1:1})},Mn=function(a){var b=a.getTrackerId(),c=a.getName(),d=a.getComponentId(),e=jb(a,4);a=m(a,Ln,5);a=null!=a?{logoUrl:a.getLogoUrl(),theme:lua[a.getTheme()]}:
void 0;return{trackerId:b,name:c,componentId:d,associatedTrackerIds:e,branding:null!=a?a:null}},mua=function(a){var b;return(null!=(b=a.getTrackersList())?b:[]).map(Mn)},nua=function(a){return{trackers:a.getTrackersList().map(Mn),nextPageToken:a.getNextPageToken(),totalSize:a.getTotalSize()}},oua=function(a){return a.endsWith("?")?a.slice(0,a.length-1):a},pua=function(a){var b;return null!=(b=Xk(a))?b:null},Nn=function(a){return!!a&&qua.test(a)&&!rua.test(a)},On=function(a){a=void 0===a?"":a;return a.endsWith("@prod.google.com")||
a.endsWith("-robots@google.com")||sua(a)},sua=function(a){return tua.some(function(b){return a.endsWith(b)})},uua=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}},vua=function(a){return a?Lk(a.replace(/_/g," ").toLowerCase()):""},wua=function(a){return a?a.join(", "):""},xua=function(a,b){if(!a)return Pn("");
if(!b)return Pn(a);b=b.split(" ").map(gna);b=b.filter(function(h){return!!h});b=b.map(Qn);if(0===b.length)return Pn(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(Rn("b",{},f));c.push(d);a=a.substring(e+f.length+d.length)}return Sn(c)},yua=function(a){return a?"Yes":"No"},zua=function(a){var b;a?b=Array.isArray(a)&&a.every(bna)?a.join(" > "):a.componentPathInfo&&a.componentPathInfo.componentPathName?
a.componentPathInfo.componentPathName.join(" > "):"":b="";return b},Aua=function(a){return a?a.pathNames?a.pathNames.join(" > "):"":""},Bua=function(a){var b;return(null==(b=Bn[a])?void 0:b.displayValue)||""},Cua=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=Bn[c.status])?0:d.open)&&!c.archived&&b++}return b},Dua=function(a){return null!=a?a:"-"},Eua=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},Fua=function(a){switch(a){case "EXTERNAL_PARTNER":return"Visible to Partners";case "EXTERNAL_PUBLIC":return"Visible to Public";default:return""}},Gua=function(a){if(a&&Nn(a))return a},Tn=function(a){return null==a?"":String(a)},Hua=function(a){var b;return null!=(b=null==a?void 0:a.filter(function(c){return!!c.trim()}).join(", "))?b:""},Iua=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}}},Kua=function(a){a=a.sort(function(d,e){return d.startTime-e.startTime});var b=a.find(Jua);if(null!=b){var c=b.name.split(" -> ")[1];return a.find(function(d){return d.name===c})}},Oua=function(){var a=window.performance.getEntries(),b=Kua(a);if(null==b)return[];var c=
b.startTime;return a.filter(Lua).filter(Mua).filter(Nua).filter(function(d){return d.startTime<=c})},Jua=function(a){var b=a.name;return"measure"===a.entryType&&0===b.indexOf("browserStart")},Lua=function(a){return 0!==a.name.indexOf("Zone")},Nua=function(a){return"resource"===a.entryType},Pua=function(a){return"xmlhttprequest"===a.initiatorType},Mua=function(a){return null==a.name.match(/\.html$/)},Qua=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}},Rua=function(a){if(null!=a&&!(3E4<=a.duration))return{hitType:"event",eventCategory:"cf",eventAction:a.from,eventLabel:a.to,eventValue:a.duration}},Uua=function(){if(!Sua){var a=Oua(),b=a.filter(function(c){return!Pua(c)}).reduce(Qua,Tua());Un("r-until-cf","asset","count",b.count);Un("r-until-cf","asset","transferSize",b.transferSize);Un("r-until-cf","asset","duration",b.duration);Un("r-until-cf","asset","cacheHitRate",b.cacheHitRate);
a=a.filter(Pua).reduce(Qua,Tua());Un("r-until-cf","xhr","count",a.count);Un("r-until-cf","xhr","transferSize",a.transferSize);Un("r-until-cf","xhr","duration",a.duration);Sua=!0}},Vn=function(a,b){Vua({hitType:"event",eventCategory:a,eventAction:b})},Un=function(a,b,c,d){Vua({hitType:"event",eventCategory:a,eventAction:b,eventLabel:c,eventValue:d})},Vua=function(a){null!=a&&("function"===typeof Wn.ga?Wn.ga("send",a):Wua&&Xpa("[stub ga.ts] ga('send')",a))},Xn=function(a,b){"function"===typeof Wn.ga?
Wn.ga("set",a,b):Wua&&Xpa("[stub ga.ts] ga('set', '"+a+"', "+b+")")},Xua=function(a,b){if(a&1){var c=x();F(0,"a",8);J("click",function(){var d=z(c).$implicit,e=K(2);return A(e.clickSegment.emit(d.name||d.path))});O(1);G()}a&2&&(a=b.$implicit,C("href",a.path,Md),B(1),De(" ",a.name||a.path," "))},Yua=function(a){a&1&&(qe(0),F(1,"button",4),H(2,"mat-icon",5),G(),F(3,"mat-menu",null,6),M(5,Xua,2,2,"a",7),G(),re());if(a&2){var b=Ce(4);a=K();B(1);C("matMenuTriggerFor",b);B(4);C("ngForOf",a.segments)}},
Zua=function(a,b){if(a&1){var c=x();qe(0);F(1,"b-fab-segmented",1);J("clickMain",function(f){z(c);var h=K(3);return A(h.trackClick(f))})("clickSegment",function(f){z(c);var h=K(3);return A(h.trackClick(f))});G();re()}if(a&2){a=b.ngIf;b=K().ngIf;var d=K().ngIf,e=K();B(1);C("label",b)("icon",a)("href",e.createIssuePath)("segments",d)}},$ua=function(a){a&1&&(qe(0),M(1,Zua,2,4,"ng-container",0),P(2,"async"),re());a&2&&(a=K(2),B(1),C("ngIf",Q(2,1,a.buttonIcon$)))},ava=function(a){a&1&&(qe(0),M(1,$ua,3,
3,"ng-container",0),P(2,"async"),re());a&2&&(a=K(),B(1),C("ngIf",Q(2,1,a.buttonLabel$)))},fva=function(){var a=void 0===a?Vn:a;var b=Date.now(),c=Yn(b);Yn(bva())!==c?a("retention","first-visit"):(c=Yn(b),Yn(bva())===c&&1===cva()&&a("retention","second-visit"));a=Yn(b);Yn(bva())!==a?dva(1):(a=cva()||0,dva(a+1));eva(b)},Yn=function(a){if(null!=a)return(new Date(a)).toLocaleDateString()},gva=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},hva=function(a){if(!a)return null;var b=new Kl;a.startTime&&b.setStartTime(Cm(a.startTime));a.targetTime&&b.setTargetTime(Cm(a.targetTime));a.endTime&&b.setEndTime(Cm(a.endTime));return b},iva=function(a){if(!a)return null;var b=new km;a.assignmentBounds&&b.setAssignmentBounds(hva(a.assignmentBounds));a.responseBounds&&b.setResponseBounds(hva(a.responseBounds));a.closureBounds&&b.setClosureBounds(hva(a.closureBounds));return b},Zn=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},jva=function(a){return a.map(Zn)},kva=function(a){var b={name:a.getName(),description:a.getDescription()};1===pb(a,$n)?b.hotlistId=Number(a.getHotlistId()):4===pb(a,$n)&&(b.savedSearchId=Number(kj(a,qb(a,$n,4))));return b},ao=function(a){var b,c;return{bookmarkGroupId:Number(a.getBookmarkGroupId()),name:a.getName(),description:a.getDescription(),ownerUser:null!=(b=Pl(a.getOwnerUser()))?
b:null,archived:a.getArchived(),item:(null!=(c=a.getItemList())?c:[]).map(kva),adminUsers:Rl(a.getAdminUsersList())}},lva=function(a){var b=new bo;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&&co(b,4,$n,String(a.savedSearchId));return b},mva=function(a){var b;return(null!=(b=a.getBookmarkGroupsList())?b:[]).map(ao)},nva=function(a){if(a&1){var b=x();F(0,"button",5);J("click",function(){z(b);
var c=K();return A(c.dialogRef.close(!1))});O(1);G()}a&2&&(a=K(),B(1),De(" ",a.cancelButtonText," "))},ova=function(a){a&1&&ue(0)},pva=function(a){a&1&&ue(0)},qva=function(a){a&1&&(qe(0),M(1,pva,1,0,"ng-container",1),re());a&2&&(a=K(),B(1),C("ngTemplateOutlet",a.content))},rva=function(a){a&1&&O(0," Archived ")},sva=function(a){a&1&&(F(0,"button",15),J("click",function(c){return c.stopPropagation()}),H(1,"mat-icon",16),G());if(a&2){K();var b=Ce(5);C("matMenuTriggerFor",b)}},tva=function(a){if(a&1){var b=
x();F(0,"button",17);J("click",function(){z(b);var c=K(3).$implicit;return A(c.unstar())});O(1," Unstar ");G()}},uva=function(a){if(a&1){var b=x();F(0,"button",17);J("click",function(){z(b);var c=K(3).$implicit;return A(c.unarchive())});O(1," Unarchive ");G()}},vva=function(a){if(a&1){var b=x();F(0,"button",17);J("click",function(){z(b);var c=K(2).$implicit,d=K(3);return A(d.handleBookmarkGroupOpen(c.id))});O(1," Open ");G();F(2,"button",17);J("click",function(){z(b);var c=K(2).$implicit,d=K(3);return A(d.handleBookmarkGroupDashboard(c.id))});
O(3," Dashboard ");G();F(4,"button",17);J("click",function(){z(b);var c=K(2).$implicit,d=K(3);return A(d.openEditBookmarkGroup(c.id))});O(5," Settings ");G();M(6,tva,2,0,"button",18);M(7,uva,2,0,"button",18)}a&2&&(a=K(2).$implicit,B(6),C("ngIf",a.isUnstarable()),B(1),C("ngIf",a.isEditable()))},wva=function(a){a&1&&(F(0,"div",10)(1,"span",11),O(2),G(),M(3,sva,2,1,"button",12),F(4,"mat-menu",null,13),M(6,vva,8,2,"ng-template",14),G()());a&2&&(a=K().$implicit,ie("id","bv2-user-archived-bookmarkgroup-item-",
a.id,""),B(2),Ee(a.name),B(1),C("ngIf",a))},xva=function(a,b){if(a&1){var c=x();F(0,"li",21)(1,"a",22);J("click",function(d){var e=z(c).$implicit,f=K(5);return A(f.onAnchorClick(e.href,d))});F(2,"span",11);O(3);G()()()}a&2&&(a=b.$implicit,b=K(2).$implicit,le("selected-indented",a.isSelected())("bv2-bookmark-group-hotlist-item","HOTLIST"==a.type)("bv2-bookmark-group-saved-search-item","SAVED_SEARCH"==a.type),afa("id","bv2-user-hotlists-bg-",b.id,"-",a.type,"-",a.id,""),C("title",a.name),B(1),C("href",
a.href,Md),B(2),De(" ",a.name," "))},yva=function(a){a&1&&(F(0,"ul",19),M(1,xva,4,12,"li",20),G());a&2&&(a=K().$implicit,B(1),C("ngForOf",a.items))},zva=function(a,b){a&1&&(F(0,"li",7)(1,"sidebar-zippy",1),M(2,wva,7,3,"ng-template",null,8,Jf),M(4,yva,2,1,"ng-template",null,9,Jf),G()());if(a&2){a=b.$implicit;var c=Ce(3),d=Ce(5);C("title",a.name);B(1);C("header",c)("content",d)}},Ava=function(a){a&1&&(F(0,"button",27),H(1,"mat-icon",16),G());if(a&2){K();var b=Ce(6);C("matMenuTriggerFor",b)}},Bva=function(a){if(a&
1){var b=x();F(0,"button",17);J("click",function(){z(b);var c=K(2).$implicit;return A(c.unstar())});O(1," Unstar ");G()}},Cva=function(a){if(a&1){var b=x();F(0,"button",17);J("click",function(){z(b);var c=K(2).$implicit;return A(c.unarchive())});O(1," Unarchive ");G()}},Dva=function(a){if(a&1){var b=x();F(0,"button",17);J("click",function(){z(b);var c=K().$implicit,d=K(3);return A(d.openEditHotlist(c.id))});O(1," Settings ");G();M(2,Bva,2,0,"button",18);M(3,Cva,2,0,"button",18)}a&2&&(a=K().$implicit,
B(2),C("ngIf",a.isUnstarable()),B(1),C("ngIf",a.isEditable()))},Eva=function(a,b){if(a&1){var c=x();F(0,"li",23)(1,"a",24);J("click",function(d){var e=z(c).$implicit,f=K(3);return A(f.onAnchorClick(e.href,d))});F(2,"span",11);O(3);G()();M(4,Ava,2,1,"button",25);F(5,"mat-menu",null,26);M(7,Dva,4,2,"ng-template",14);G()()}a&2&&(a=b.$implicit,le("selected",a.isSelected()),ze("id","bv2-user-hotlists-archived-hotlist-item-",a.id,""),C("title",a.name),B(1),C("href",a.href,Md),B(2),Ee(a.name),B(1),C("ngIf",
a))},Fva=function(a){a&1&&(F(0,"ul",4),M(1,zva,6,3,"li",5),M(2,Eva,8,7,"li",6),G());a&2&&(a=K(2),B(1),C("ngForOf",a.bookmarkGroups),B(1),C("ngForOf",a.hotlists))},Gva=function(a){a&1&&(F(0,"div"),H(1,"hr"),F(2,"sidebar-zippy",1),M(3,rva,1,0,"ng-template",null,2,Jf),M(5,Fva,3,2,"ng-template",null,3,Jf),G()());if(a&2){var b=Ce(4),c=Ce(6);B(2);C("header",b)("content",c)}},Hva=function(a){a&1&&(Nc(),H(0,"circle",4));if(a&2){a=K();var b=Ce(1);ke("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));ge("r",a._getCircleRadius())}},Iva=function(a){a&1&&(Nc(),H(0,"circle",4));if(a&2){a=K();var b=Ce(1);ke("stroke-dashoffset",a._getStrokeDashOffset(),"px")("stroke-dasharray",a._getStrokeCircumference(),"px")("stroke-width",a._getCircleStrokeWidth(),"%")("transform-origin",a._getCircleTransformOrigin(b));ge("r",a._getCircleRadius())}},
Jva=function(){return{diameter:100}},Kva=function(a){a&1&&H(0,"mat-spinner",2);a&2&&C("diameter",36)},Lva=function(a){a&1&&H(0,"mat-spinner",3);a&2&&C("diameter",16)("strokeWidth",2)},Nva=function(a){if(null==Mva){var b="undefined"!==typeof document?document.head:null;Mva=!(!b||!b.createShadowRoot&&!b.attachShadow)}return Mva&&(a=a.getRootNode?a.getRootNode():null,"undefined"!==typeof ShadowRoot&&ShadowRoot&&a instanceof ShadowRoot)?a:null},Ova=function(a){if(a&1){var b=x();F(0,"div",0);J("clickOutside",
function(){z(b);var c=K();return A(c.closeHovercard$.next())})("mouseenter",function(){z(b);K().isOnHover$.next(!0);return A()})("mouseleave",function(){z(b);K().isOnHover$.next(!1);return A()});ye(1);G()}a&2&&(a=K(),me(a.className),C("cdkTrapFocusAutoCapture",a.wasTriggeredByKeyboard))},Pva=function(a,b){a&1&&(F(0,"div",0,1),ye(2),G());a&2&&(a=b.id,b=K(),C("id",b.id)("ngClass",b._classList),ge("aria-label",b.ariaLabel||null)("aria-labelledby",b._getPanelAriaLabelledby(a)))},Qva=function(){return{autoActiveFirstOption:!1,
autoSelectActiveOption:!1}},Rva=function(a){a&1&&H(0,"b-spinner")},Sva=function(a){if(a&1){var b=x();F(0,"b-star-toggle",15);J("starClicked",function(){z(b);var c=K().$implicit,d=K();return A(d.toggleStar(c))});G()}a&2&&(a=K().$implicit,C("starMessage","Star this item")("unStarMessage","Un-star this item")("starred",a.isStarred))},Tva=function(a){a&1&&H(0,"b-hotlist-card",16);a&2&&(a=K().$implicit,C("hotlist",a))},Uva=function(a){a&1&&H(0,"b-bookmark-group-card",17);a&2&&(a=K().$implicit,C("bookmarkGroup",
a))},Vva=function(a,b){a&1&&(F(0,"mat-option",8)(1,"div",9),M(2,Sva,1,3,"b-star-toggle",10),F(3,"onedev-hovercard",null,11),M(5,Tva,1,1,"b-hotlist-card",12),M(6,Uva,1,1,"b-bookmark-group-card",13),G(),F(7,"span",14),O(8),G()()());if(a&2){a=b.$implicit;var c=Ce(4);b=K();C("value",a);B(1);le("bv2-bookmark-group",b.showHotlists&&a.isGroup);B(1);C("ngIf",b.shouldShowStar(a));B(3);C("ngIf",!a.isGroup);B(1);C("ngIf",!!a.isGroup);B(1);C("onedevHovercardTrigger",c);B(1);Ee(a.name)}},Wva=function(){return cha(function(){return(0,S.from)(Promise.resolve(void 0))})},
Xva=function(a){a&1&&H(0,"a",1)},Yva=function(a){if(a&1){var b=x();F(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"b-hotlist-search",3);J("itemSelect",function(c){z(b);var d=K();d.itemSelect.emit(c);d.dialog.disabled=!0;d.dialog.disabled=!1;return A()});G()()()}a&2&&(a=K(),B(2),C("showGroups",a.showGroups)("showHotlists",a.showHotlists)("allowStarring",a.allowStarring)("focusOnInit",!0))},Zva=function(a){if(a&1){var b=x();F(0,"span");O(1,"Bookmark groups");G();F(2,"b-hotlist-search-popup",
4);J("itemSelect",function(c){z(b);var d=K();c.isGroup&&d.handleBookmarkGroupOpen(c.bookmarkGroupId);return A()});G()}a&2&&(B(2),C("showHotlists",!1))},$va=function(a){a&1&&(F(0,"button",17),J("click",function(c){return c.stopPropagation()}),H(1,"mat-icon",18),G());if(a&2){K();var b=Ce(5);C("matMenuTriggerFor",b)}},awa=function(a){if(a&1){var b=x();F(0,"button",19);J("click",function(){z(b);var c=K(3).$implicit;return A(c.unstar())});O(1," Unstar ");G()}},bwa=function(a){if(a&1){var b=x();F(0,"button",
19);J("click",function(){z(b);var c=K(3).$implicit;return A(c.archive())});O(1," Archive ");G()}},cwa=function(a){if(a&1){var b=x();F(0,"button",19);J("click",function(){z(b);var c=K(3).$implicit;return A(c.setAsPreferredHomepage())});O(1," Set as homepage ");G()}},dwa=function(a){if(a&1){var b=x();F(0,"button",19);J("click",function(){z(b);var c=K(2).$implicit,d=K(3);return A(d.handleBookmarkGroupOpen(c.id))});O(1," Open ");G();F(2,"button",19);J("click",function(){z(b);var c=K(2).$implicit,d=K(3);
return A(d.handleBookmarkGroupDashboard(c.id))});O(3," Dashboard ");G();F(4,"button",19);J("click",function(){z(b);var c=K(2).$implicit,d=K(3);return A(d.editBookmarkGroup(c.id))});O(5," Settings ");G();M(6,awa,2,0,"button",20);M(7,bwa,2,0,"button",20);M(8,cwa,2,0,"button",20)}a&2&&(a=K(2).$implicit,B(6),C("ngIf",a.isUnstarable()),B(1),C("ngIf",a.isEditable()),B(1),C("ngIf",!a.isPreferredHomepage()))},ewa=function(a){a&1&&(F(0,"div",12)(1,"span",13),O(2),G(),M(3,$va,2,1,"button",14),F(4,"mat-menu",
null,15),M(6,dwa,9,3,"ng-template",16),G()());a&2&&(a=K().$implicit,ie("id","bv2-user-bookmarkgroup-item-",a.id,""),B(2),Ee(a.name),B(1),C("ngIf",a))},fwa=function(a){a&1&&(F(0,"button",27),H(1,"mat-icon",18),G());if(a&2){K();var b=Ce(6);C("matMenuTriggerFor",b)}},gwa=function(a){if(a&1){var b=x();F(0,"button",19);J("click",function(){z(b);var c=K(2).$implicit;return A(c.unstar())});O(1," Unstar ");G()}},hwa=function(a){if(a&1){var b=x();F(0,"button",19);J("click",function(){z(b);var c=K(2).$implicit;
return A(c.setAsPreferredHomepage())});O(1," Set as homepage ");G()}},iwa=function(a){if(a&1){var b=x();F(0,"button",19);J("click",function(){z(b);var c=K().$implicit,d=K(5);"HOTLIST"===c.type?d.location.url(d.paths.editHotlist(c.id)):d.location.url(d.paths.editSavedSearch(c.id));return A()});O(1," Settings ");G();M(2,gwa,2,0,"button",20);M(3,hwa,2,0,"button",20)}a&2&&(a=K().$implicit,B(2),C("ngIf",a.isUnstarable()),B(1),C("ngIf",!a.isPreferredHomepage()))},jwa=function(a,b){if(a&1){var c=x();F(0,
"li",23)(1,"a",24);J("click",function(d){var e=z(c).$implicit,f=K(5);return A(f.onAnchorClick(e.href,d))});F(2,"span",13);O(3);G()();M(4,fwa,2,1,"button",25);F(5,"mat-menu",null,26);M(7,iwa,4,2,"ng-template",16);G()()}a&2&&(a=b.$implicit,b=K(2).$implicit,le("selected-indented",a.isSelected())("bv2-bookmark-group-hotlist-item","HOTLIST"==a.type)("bv2-bookmark-group-saved-search-item","SAVED_SEARCH"==a.type),afa("id","bv2-user-hotlists-bg-",b.id,"-",a.type,"-",a.id,""),C("title",a.name),B(1),C("href",
a.href,Md),B(2),De(" ",a.name," "),B(1),C("ngIf",b))},kwa=function(a){a&1&&(F(0,"ul",21),M(1,jwa,8,13,"li",22),G());a&2&&(a=K().$implicit,B(1),C("ngForOf",a.items))},lwa=function(a,b){a&1&&(F(0,"li",8)(1,"sidebar-zippy",9),M(2,ewa,7,3,"ng-template",null,10,Jf),M(4,kwa,2,1,"ng-template",null,11,Jf),G()());if(a&2){a=b.$implicit;var c=Ce(3),d=Ce(5);C("title",a.name);B(1);C("header",c)("content",d)}},mwa=function(a){a&1&&(F(0,"ul",6),M(1,lwa,6,3,"li",7),G());a&2&&(a=K(2),B(1),C("ngForOf",a.bookmarkGroups))},
nwa=function(a){a&1&&M(0,mwa,2,1,"ul",5);a&2&&(a=K(),C("ngIf",a.bookmarkGroups))},owa=function(a){if(a&1){var b=x();F(0,"span");O(1,"Hotlists");G();F(2,"b-hotlist-search-popup",4);J("itemSelect",function(c){z(b);var d=K();eo(d.analytics,"hotlistSearch","goToHotlist");d.location.url(c.href);return A()});G()}a&2&&(B(2),C("showGroups",!1))},pwa=function(a){a&1&&(F(0,"button",14),H(1,"mat-icon",15),G());if(a&2){K();var b=Ce(6);C("matMenuTriggerFor",b)}},qwa=function(a){if(a&1){var b=x();F(0,"button",
16);J("click",function(){z(b);var c=K(2).$implicit;return A(c.unstar())});O(1," Unstar ");G()}},rwa=function(a){if(a&1){var b=x();F(0,"button",16);J("click",function(){z(b);var c=K(2).$implicit;return A(c.setAsPreferredHomepage())});O(1," Set as homepage ");G()}},swa=function(a){if(a&1){var b=x();F(0,"button",16);J("click",function(){z(b);var c=K().$implicit,d=K(3);return A(d.openEditHotlist(c.id))});O(1," Settings ");G();M(2,qwa,2,0,"button",17);M(3,rwa,2,0,"button",17)}a&2&&(a=K().$implicit,B(2),
C("ngIf",a.isUnstarable()),B(1),C("ngIf",!a.isPreferredHomepage()))},twa=function(a,b){if(a&1){var c=x();F(0,"li",8)(1,"a",9);J("click",function(d){var e=z(c).$implicit,f=K(3);return A(f.onAnchorClick(e.href,d))});F(2,"span",10);O(3);G()();M(4,pwa,2,1,"button",11);F(5,"mat-menu",null,12);M(7,swa,4,2,"ng-template",13);G()()}a&2&&(a=b.$implicit,le("selected",a.isSelected()),ze("id","bv2-user-hotlists-hotlist-item-",a.id,""),C("title",a.name),B(1),C("href",a.href,Md),B(2),Ee(a.name),B(1),C("ngIf",a))},
uwa=function(a){a&1&&(F(0,"ul",6),M(1,twa,8,7,"li",7),G());a&2&&(a=K(2),B(1),C("ngForOf",a.hotlists))},vwa=function(a){a&1&&M(0,uwa,2,1,"ul",5);a&2&&(a=K(),C("ngIf",a.hotlists))},wwa=function(a){return ita(a.getSearch())},xwa=function(a){a&1&&(F(0,"span"),O(1,"Saved searches"),G())},ywa=function(a){if(a&1){var b=x();F(0,"button",14);J("click",function(){z(b);var c=K(2).$implicit;return A(c.setAsPreferredHomepage())});O(1," Set as homepage ");G()}},Awa=function(a){if(a&1){var b=x();F(0,"button",14);
J("click",function(){z(b);var c=K().$implicit,d=K(3);return A(d.openEditSavedSearch(c.id))});O(1," Settings ");G();M(2,ywa,2,0,"button",15);F(3,"button",14);J("click",function(){z(b);var c=K().$implicit,d=K(3);return A(zwa(d,c))});O(4," Delete ");G()}a&2&&(a=K().$implicit,B(2),C("ngIf",!a.isPreferredHomepage()))},Bwa=function(a,b){if(a&1){var c=x();F(0,"li",7)(1,"a",8);J("click",function(e){var f=z(c).$implicit,h=K(3);return A(h.onAnchorClick(f.href,e))});F(2,"span",9);O(3);G()();F(4,"button",10);
H(5,"mat-icon",11);G();F(6,"mat-menu",null,12);M(8,Awa,5,1,"ng-template",13);G()()}if(a&2){a=b.$implicit;var d=Ce(7);le("selected",a.isSelected());ie("id","bv2-saved-searches-search-item-",a.id,"");C("title",a.name);B(1);C("href",a.href,Md);B(2);Ee(a.name);B(1);C("matMenuTriggerFor",d)}},Cwa=function(a){a&1&&(F(0,"ul",5),M(1,Bwa,9,7,"li",6),G());a&2&&(a=K(2),B(1),C("ngForOf",a.searches))},Dwa=function(a){a&1&&M(0,Cwa,2,1,"ul",4);a&2&&(a=K(),C("ngIf",a.searches))},Ewa=function(a,b){for(a.has(b)&&a.delete(b);25<=
a.size;)a.delete(a.keys().next().value);a.set(b,void 0)},Fwa=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)},Gwa=function(a){a&1&&(qe(0),F(1,"button",21),H(2,"mat-icon",22),G(),re());if(a&2){K();var b=Ce(12);B(1);C("matMenuTriggerFor",b)}},Iwa=function(a){if(a&1){var b=x();F(0,"button",23);J("click",function(){z(b);var c=K();return A(Hwa(c))});O(1," Set as homepage ");G()}},Kwa=function(a){if(a&1){var b=x();
F(0,"li")(1,"a",5);J("click",function(c){z(b);var d=K();return A(d.onAnchorClick(d.votedPath,c))});H(2,"mat-icon",24);O(3," Upvoted by me ");G()()}a&2&&(a=K(),le("selected",Jwa(a.currentSearch)),B(1),C("href",a.votedPath,Md))},Lwa=function(a,b){if(a&1){var c=x();F(0,"li")(1,"a",5);J("click",function(d){var e=z(c).$implicit,f=K();return A(f.onAnchorClick(e,d))});H(2,"mat-icon",25);O(3," Recently Viewed ");G()()}a&2&&(a=b.$implicit,b=K(),le("selected",!!b.location.path().match(/^\/recent\b/)),B(1),
C("href",a,Md))},go=function(a,b){switch(a){case "HOTLIST":return fo(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("hd`"+a);}},Mwa=function(a){var b=new nm;a.teamId&&b.setTeamId(a.teamId);a.score&&nb(b,2,a.score,0);return b},ho=function(a){var b,
c;return null==a?void 0:null==(b=a.issue)?void 0:null==(c=b.snapshot)?void 0:c[0]},Nwa=function(a){var b;return null==a?void 0:null==(b=a.snapshot)?void 0:b[0]},Owa=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},Pwa=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},Qwa=function(a){var b;return null==(b=ho(a))?void 0:b.title},Rwa=function(a){var b,c;return null!=
(c=null==(b=ho(a))?void 0:b.status)?c:void 0},Swa=function(a){var b,c;return null!=(c=null==(b=ho(a))?void 0:b.priority)?c:void 0},Twa=function(a){var b,c;return null!=(c=null==(b=ho(a))?void 0:b.assigneeUser)?c:void 0},Uwa=function(a){var b,c;return null!=(c=null==(b=ho(a))?void 0:b.reporterUser)?c:void 0},Vwa=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 Yk(a)},Wwa=function(a){var b;a=null==(b=ho(a))?void 0:b.componentId;return Yk(a)},
Xwa=function(a){var b,c;return null!=(c=null==(b=ho(a))?void 0:b.ccUsers)?c:[]},Ywa=function(a){var b,c;return null!=(c=null==(b=ho(a))?void 0:b.type)?c:void 0},Zwa=function(a){var b,c;return null!=(c=null==(b=ho(a))?void 0:b.foundInVersion)?c:[]},$wa=function(a){var b,c;return null!=(c=null==(b=ho(a))?void 0:b.targetedToVersion)?c:[]},axa=function(a){var b,c;return null!=(c=null==(b=ho(a))?void 0:b.changelist)?c:[]},bxa=function(a){var b,c;return null!=(c=null==(b=ho(a))?void 0:b.postmortems)?c:
[]},cxa=function(a){var b;return(null==(b=ho(a))?void 0:b.inProd)||!1},dxa=function(a){var b;return null==(b=ho(a))?void 0:b.effort},exa=function(a){var b;return null!=(b=null==a?void 0:a.customFields)?b:[]},fxa=function(a){var b,c;return null!=(c=null==(b=ho(a))?void 0:b.customField)?c:[]},gxa=function(a){var b,c;return null!=(c=null==a?void 0:null==(b=a.issue)?void 0:b.visibleFields)?c:[]},hxa=function(a){var b,c;return null==a?void 0:null==(b=a.issue)?void 0:null==(c=b.aggregatedData)?void 0:c.voteCount},
ixa=function(a){var b;return null!=(b=null==a?void 0:a.attachmentMap)?b:{}},jxa=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},lxa=function(a){return kxa(null==a?void 0:a.issue)},kxa=function(a){var b,c;return null!=(c=null==(b=Nwa(a))?void 0:b.isDeleted)?c:!1},nxa=function(a){return mxa(null==a?void 0:a.issue)},mxa=function(a){var b;return null==a?void 0:null==(b=a.accessLimit)?void 0:b.accessLevel},oxa=function(a){var b;return(a=null==
a?void 0:null==(b=a.issue)?void 0:b.aggregatedData)&&Math.round(a.modifiedTimeMicros/1E3)},qxa=function(a){return pxa(null==a?void 0:a.issue)},pxa=function(a){var b,c;return null!=(c=null==(b=Nwa(a))?void 0:b.retention)?c:void 0},rxa=function(a){var b,c;return null!=(c=null==(b=ho(a))?void 0:b.duplicateOfIssueId)?c:void 0},txa=function(a){return sxa(null==a?void 0:a.issue)},sxa=function(a){var b,c;return null!=(c=null==a?void 0:null==(b=a.aggregatedData)?void 0:b.retentionState)?c:void 0},uxa=function(a){var b,
c;return null!=(c=iva(null==a?void 0:null==(b=a.issue.aggregatedData)?void 0:b.sloStatus))?c:void 0},vxa=function(a){var b;return Yk(null==a?void 0:null==(b=a.issue.aggregatedData)?void 0:b.sloId)},wxa=function(a){var b;return null==a?void 0:null==(b=a.issue.aggregatedData)?void 0:b.createdTimeMicros},xxa=function(a){var b,c;return null!=(c=null==a?void 0:null==(b=a.teamSuggestions)?void 0:b.map(Mwa))?c:[]},yxa=function(a){return(null==a?void 0:a.effortSpec)&&tl(a.effortSpec)},zxa=function(a){a=yxa(a);
return!(!a||!a.getName()&&!a.getInherit())},Axa=function(a){return null==a?void 0:a.componentPathInfo},Bxa=function(a){a=a.filter(function(b){return null!=b.customFieldId}).map(function(b){return String(b.customFieldId)});return new Set(a)},Cxa=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:Xk(b),commentVersion:Xk(d)}},
Dxa=function(a){a&1&&H(0,"bug-screensaver")},Exa=function(a){a&1&&ye(0)},Fxa=function(a){a&1&&ue(0)},Gxa=function(a){if(a&1){var b=x();F(0,"button",7,8);J("click",function(e){z(b);var f=K();return A(f.onClick(e))})("keydown.enter",function(e){z(b);K().onClick(e);return A(e.stopPropagation())})("keydown.space",function(e){z(b);K().onClick(e);return A(e.stopPropagation())});M(2,Fxa,1,0,"ng-container",9);G()}if(a&2){a=K();var c=Ce(1),d;C("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",
null!==(d=a.tooltip)&&void 0!==d?d:"");ge("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);C("ngTemplateOutlet",c)}},Hxa=function(a){a&1&&ue(0)},Ixa=function(a){if(a&1){var b=x();F(0,"button",10,8);J("click",function(e){z(b);var f=K();return A(f.onClick(e))})("keydown.enter",function(e){z(b);K().onClick(e);return A(e.stopPropagation())})("keydown.space",function(e){z(b);K().onClick(e);return A(e.stopPropagation())});M(2,Hxa,1,0,"ng-container",9);G()}if(a&2){a=K();var c=Ce(1),d;C("color",
a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",null!==(d=a.tooltip)&&void 0!==d?d:"");ge("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);C("ngTemplateOutlet",c)}},Jxa=function(a){a&1&&ue(0)},Kxa=function(a){if(a&1){var b=x();F(0,"button",11,8);J("click",function(e){z(b);var f=K();return A(f.onClick(e))})("keydown.enter",function(e){z(b);K().onClick(e);return A(e.stopPropagation())})("keydown.space",function(e){z(b);K().onClick(e);return A(e.stopPropagation())});M(2,
Jxa,1,0,"ng-container",9);G()}if(a&2){a=K();var c=Ce(1),d;C("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",null!==(d=a.tooltip)&&void 0!==d?d:"");ge("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);C("ngTemplateOutlet",c)}},Lxa=function(a){a&1&&ue(0)},Mxa=function(a){if(a&1){var b=x();F(0,"button",12,8);J("click",function(e){z(b);var f=K();return A(f.onClick(e))})("keydown.enter",function(e){z(b);K().onClick(e);return A(e.stopPropagation())})("keydown.space",
function(e){z(b);K().onClick(e);return A(e.stopPropagation())});M(2,Lxa,1,0,"ng-container",9);G()}if(a&2){a=K();var c=Ce(1),d;C("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",null!==(d=a.tooltip)&&void 0!==d?d:"");ge("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);C("ngTemplateOutlet",c)}},Nxa=function(a){a&1&&ue(0)},Oxa=function(a){if(a&1){var b=x();F(0,"button",7,8);J("click",function(e){z(b);var f=K();return A(f.onClick(e))})("keydown.enter",function(e){z(b);
K().onClick(e);return A(e.stopPropagation())})("keydown.space",function(e){z(b);K().onClick(e);return A(e.stopPropagation())});M(2,Nxa,1,0,"ng-container",9);G()}if(a&2){a=K();var c=Ce(1),d;C("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",null!==(d=a.tooltip)&&void 0!==d?d:"");ge("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);C("ngTemplateOutlet",c)}},Pxa=function(a){if(a&1){var b=x();F(0,"b-callout",1)(1,"b-callout-body");O(2," You can now enable real time notifications in ");
F(3,"a",2);J("click",function(){z(b);var c=K();eo(c.analytics,io.G3N,"linkout","announcement");return A()});O(4,"G3N");G();O(5," settings. ");G();F(6,"b-callout-actions")(7,"button",3);J("click",function(){z(b);var c=K();return A(c.dismiss())});O(8,"Dismiss");G()()()}},Qxa=function(){return{color:"accent",clickAction:"check-indeterminate"}},Rxa=function(a,b){if(a&1){var c=x();qe(0);F(1,"iframe",6);J("load",function(){z(c);var d=K();return A(d.contentLoaded=!0)});G();re()}a&2&&(a=b.$implicit,b=K(),
B(1),le("loading",!b.contentLoaded),C("src",a,kea))},Sxa=function(a){a&1&&H(0,"mat-spinner",7)},Txa=function(a){var b;return null==(b=a.formContent)?void 0:b.locale},Wxa=function(a){var b=Txa(a);b=(b&&Uxa.includes(b)?Txa(a):"en").replaceAll("-","_").toLowerCase();var c;a=(null==(c=a.initializationData)?0:c.useNightlyRelease)?"nightly":"live";return zh(Vxa,a,b)},Yxa=function(a,b,c){if(Xxa)return Xxa;var d=Wxa(a);return Xxa=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(e,
f){var h=c.createElement("script");wh(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)})},Zxa=function(a,b,c,d,e){e=void 0===e?!0:e;var f,h,k,q,v;return bf(function(y){switch(y.nextAddress){case 1:return f=Date.now(),cf(y,Yxa(a,c,d),2);case 2:h=y.yieldResult;if(!(e||(null==(q=a.initializationData)?0:q.useNightlyRelease)||
(null==(v=a.initializationData)?0:v.isLocalServer))){k=h.initializeFeedbackClient(a,f,b);y.jumpTo(3);break}return cf(y,h.initializeFeedbackClientAsync(a,f,b),4);case 4:k=y.yieldResult;case 3:return k.initiateAloha(),y.return(k)}})},$xa=function(a,b,c){var d=!0;d=void 0===d?!0:d;var e,f,h,k;bf(function(q){f=e=c||ca;if(f.isFormOpened)throw h=Error("id"),h.name="DuplicateFormError",h;f.isFormOpened=!0;a.callbacks=a.callbacks||{};k=a.callbacks.onClose||function(){};a.callbacks.onClose=function(v){f.isFormOpened=
!1;k(v)};try{return q.return(Zxa(a,b,f,e.document,d))}catch(v){throw f.isFormOpened=!1,v;}})},bya=function(a,b){return bf(function(c){return c.return(new Promise(function(d){var e=aya(null!=b?b:"")+"/aloha_form_properties?productId="+a;wi(e,function(f){f=f.target;var h=null;try{h=jo(ko,JSON.stringify(f.getResponseJson(")]}'\n")))}catch(k){f=new ko,h=new lo,h=mo(h,5,!1),h=mo(h,2,!1),h=mo(h,4,!1),h=mo(h,7,!1),h=Bb(f,1,h)}d(h)},"GET","",{},2E3,!0)}))})},aya=function(a){return cya.includes(a)?a:"https://www.google.com/tools/feedback"},
eya=function(){var a=Object.values(no),b=a.map(function(c){return c-1}).reduce(dya,0);a=a.reduce(dya,0);return{total:a,redundant:b,redundancyRatio:Math.round(b/a*100)/100}},fya=function(a){a=void 0===a?!1:a;var b=eya(),c=b.total,d=b.redundancyRatio;Un("after-60s","xhr","redundant",b.redundant);Un("after-60s","xhr","total",c);Un("after-60s","xhr","redundancyRatio",d);if(a){a=console;c=a.table;d={};for(var e=r(Object.entries(no)),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)}},gya=function(a){if(a&1){var b=x();F(0,"button",4);J("click",function(){z(b);var c=K();return A(c.toggle())});H(1,"mat-icon",5);G()}a&2&&(a=K(),le("isClosed",a.isClosed),C("ngClass",a.direction)("matTooltip",a.toggleButtonLabel),ge("aria-label",a.toggleButtonLabel),B(1),C("svgIcon",a.isLTR?"chevron-left":"chevron-right"))},hya=function(a){a=a.getBoundingClientRect();return 0<=a.top&&a.bottom<=window.innerHeight},iya=function(a){a=a.getBoundingClientRect();
return 0<a.bottom&&a.top<window.innerHeight},jya=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 S.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(Pf())},kya=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,S.merge)((0,S.of)(void 0),(0,S.fromEvent)(window,
"scroll").pipe(Nf(500))).pipe(R(function(){return d(a)}),Pf())},lya=function(a){a=void 0===a?"":a;var b=void 0===b?48:b;var c=void 0===c?"...":c;var d=[].concat(u(a));if(d.length<=b)return a;a=b-[].concat(u(c)).length;d=d.slice(0,a).join("");null!=String.prototype.trimEnd&&(d=d.trimEnd());return d+c},mya=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)},nya=function(a){return a.split("").every(function(b){return 1===b.length&&0<=b.charCodeAt(0)&&255>=b.charCodeAt(0)})},oya=function(a){a&1&&(qe(0),H(1,"img",3),P(2,"async"),re());if(a&2){a=K(2);var b;B(1);C("src",Q(2,2,a.srcRedirected$),Md);ge("alt",null!==(b=a.alt)&&void 0!==b?b:"user provided image")}},pya=function(a){a&1&&(qe(0),M(1,oya,3,4,"ng-container",0),P(2,"async"),re());if(a&2){a=K();var b=Ce(3);B(1);C("ngIf",Q(2,2,a.showImage$))("ngIfElse",b)}},qya=function(a){if(a&1){var b=
x();F(0,"a",4);J("click",function(c){z(b);var d=K();return A(d.trigger(c))})("keydown.enter",function(c){z(b);var d=K();return A(d.trigger(c))});P(1,"async");P(2,"async");F(3,"b-glue");H(4,"mat-icon",5);G();qe(5);O(6);P(7,"async");re();G()}a&2&&(a=K(),C("href",Q(1,3,a.src$),Md)("title",Q(2,5,a.src$)),B(6),Ee(Q(7,7,a.srcTruncated$)))},rya=function(a){a&1&&(H(0,"mat-icon",6),P(1,"async"));a&2&&(a=K(),ze("matTooltip","Unable to load image ",Q(1,1,a.srcTruncated$),""))},tya=function(a){if(a&1){var b=
x();F(0,"a",9);J("keydown.enter",function(){z(b);var c=K(2);return A(sya(c))})("keydown.space",function(){z(b);var c=K(2);return A(sya(c))})("click",function(){z(b);var c=K(2);return A(sya(c))});O(1," Dismiss");G()}},uya=function(a){a&1&&(F(0,"div",5)(1,"div",6),H(2,"span",7),M(3,tya,2,0,"a",8),G()());a&2&&(a=K(),B(2),C("innerHtml",a.announcement.message,Ld),B(1),C("ngIf",a.announcement.dismissible))},vya=function(a){if(a&1){var b=x();F(0,"b-callout",10)(1,"b-callout-body");O(2," This version of the Issue Details page will be turned down in May 2022 (");
F(3,"a",11);O(4,"info");G();O(5,"). Please ");F(6,"a",12);J("click",function(){z(b);var c=K();return A(c.toggleNewIssueDetailsPage(!0))});O(7,"switch to the new version");G();O(8,".");H(9,"br");O(10," If there are issues preventing you from switching, please let us know by filing feedback. ");G();F(11,"b-callout-actions")(12,"button",13);J("click",function(){z(b);var c=K();return A(c.startFeedback())});O(13,"Send Feedback");G();F(14,"button",14);J("click",function(){z(b);var c=K();window.sessionStorage.setItem("idpDeprecationDismissTime",
String(new Date));c.showIdpDeprecationBanner=!1;return A()});H(15,"mat-icon",15);G()()()}},xya=function(a){if(a&1){var b=x();F(0,"b-resizable-sidebar",16);J("widthChanged",function(c){z(b);var d=K();c!==d.matSidebarWidth&&(d.matSidebarWidth=c,wya(d,c));return A()});H(1,"b-sidebar");G()}a&2&&(a=K(),C("size",a.matSidebarWidth)("disableToggleBtn",!0))},yya=function(a){switch(a){case "COMFORTABLE":return"d-comfort";case "COZY":return"d-cozy";case "COMPACT":return"d-compact";default:return"d-comfort"}},
zya=function(a){a&1&&(F(0,"div",2),O(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. "),F(2,"a",13),O(3," Learn more "),G()());a&2&&(a=K(2),B(2),C("href",a.getRestrictedAccessHelpLink(),Md))},Bya=function(a){a&1&&(qe(0),M(1,zya,4,1,"div",8),re());a&2&&(a=K(),B(1),C("ngIf",Aya(a)))},Cya=function(a){a&1&&(F(0,"div",2)(1,"span",14),O(2," You do not have access to view this attachment. "),
G()())},Dya=function(a){a&1&&H(0,"mat-spinner",15)},Eya=function(a){return oo({id:a.getId(),std_offset:p(a,3),names:jb(a,2),transitions:jb(a,4)||[]})},Fya=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 po("m",a)),e=Math.floor((d.getTime()-c.getTime())/864E5));d=new po(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"},Gya=function(a,b){a&1&&(qe(0),F(1,"time",1),P(2,"async"),O(3),G(),re());a&2&&(a=b.ngIf,b=K(),B(1),C("title",a.title),ge("datetime",Q(2,3,b.timestampIso$)),B(2),Ee(a.formatted))},qo=function(a){if(!a)return 0;
if(a instanceof sj){var b=a.getSeconds();a=a.getNanos()||0}else b=a.seconds,a=a.nanos;return 1E3*b+a/1E6},ro=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":""))+")"},Iya=function(a){if(a&1){var b=x();F(0,"button",10);J("click",function(){z(b);var c=K(2),d=new Ji;c.date=d;c.dateSelectionChange.emit(d);Hya(c);c.dateChange.emit(c.date);return A(c.saveClicked.emit())});O(1,"Today");G()}},Jya=function(a){if(a&1){var b=x();F(0,"button",
11);J("click",function(){z(b);var c=K(2);c.date=void 0;c.dateSelectionChange.emit(void 0);c.dateChange.emit(c.date);return A(c.saveClicked.emit())});O(1,"None");G()}},Kya=function(a){a&1&&(F(0,"div",7),M(1,Iya,2,0,"button",8),M(2,Jya,2,0,"button",9),H(3,"mat-divider"),G());a&2&&(a=K(),B(1),C("ngIf",a.todayButtonEnabled),B(1),C("ngIf",a.noneButtonEnabled&&!a.required))},Lya=function(a){a&1&&H(0,"b-formatted-date-time",4);a&2&&(a=K(),C("date",a.value))},Mya=function(a){a&1&&(qe(0),O(1,"---"),re())},
Nya=function(a){a&1&&H(0,"mat-pseudo-checkbox",5);a&2&&(a=K(),C("state",a.selected?"checked":"unchecked")("disabled",a.disabled))},Oya=function(a,b){if(a&1){var c=x();F(0,"div",8)(1,"mat-checkbox",9);J("change",function(){var d=z(c).$implicit,e=K();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()});
O(2);G()()}a&2&&(a=b.$implicit,b=K(),C("title",b.getDisplayString(a)),B(1),C("checked",!!b.valueMap.get(a))("indeterminate",null===b.valueMap.get(a)),B(1),De(" ",b.getDisplayString(a)," "))},Qya=function(a){if(a&1){var b=x();F(0,"input",10,11);J("keydown",function(c){z(b);var d=K();"Enter"===c.key&&(Pya(d)&&d.addValue(),c.preventDefault());return A()})("click",function(c){return c.stopPropagation()})("ngModelChange",function(c){z(b);var d=K();return A(d.filterValue=c)});G()}a&2&&(a=K(),C("type","REPEATED_NUMERIC"===
a.type?"number":"text")("ngModel",a.filterValue)("placeholder","REPEATED_ENUM"===a.type?"Filter values":"Add or filter values"))},Rya=function(a){a&1&&H(0,"mat-divider")},Sya=function(a){if(a&1){var b=x();F(0,"div",12);J("click",function(c){z(b);var d=K();c.stopPropagation();return A(d.addValue())});O(1," Add ");G()}},Tya=function(a){if(a&1){var b=x();F(0,"div")(1,"b-date-time-input",13);J("valueChange",function(c){z(b);var d=K();return A(d.currentSelectedDate=c)});G();F(2,"div",14);J("click",function(c){z(b);
var d=K();c.stopPropagation();if(c=d.currentSelectedDate)d.filterValue=c?c.getMonth()+1+"/"+c.getDate()+"/"+c.getFullYear():"",d.addValue(),d.currentSelectedDate=void 0;return A()});O(3," Add ");G()()}a&2&&(a=K(),B(1),C("value",a.currentSelectedDate))},Uya=function(a){if(a&1){var b=x();F(0,"div",0);J("keydown",function(c){z(b);var d=K();return A(d.processKeydown(c))});ye(1);G()}a&2&&(a=K(),ge("id",a.id))},Vya=function(a){a&1&&ue(0)},Xya=function(a){if(a&1){var b=x();F(0,"div",3);J("click",function(){z(b);
var d=K();return A(d.select(void 0))});M(1,Vya,1,0,"ng-container",4);G()}if(a&2){a=K();var c=Ce(3);C("option",void 0);ge("aria-selected",a.isSelected(void 0));B(1);C("ngTemplateOutlet",c)("ngTemplateOutletContext",He(4,Wya))}},Yya=function(a){a&1&&ue(0)},$ya=function(a){if(a&1){var b=x();F(0,"div",3);J("click",function(){z(b);var e=K().$implicit,f=K();return A(f.select(e))});M(1,Yya,1,0,"ng-container",4);G()}if(a&2){a=K().$implicit;var c=K(),d=Ce(3);C("option",a);ge("aria-selected",c.isSelected(a));
B(1);C("ngTemplateOutlet",d)("ngTemplateOutletContext",Ie(4,Zya,a))}},aza=function(a,b){a&1&&(qe(0),M(1,$ya,2,6,"div",0),re());a&2&&(a=b.$implicit,B(1),C("ngIf",a))},bza=function(a){a&1&&(qe(0),O(1),re());a&2&&(a=K(2).$implicit,B(1),De(" ",a," "))},cza=function(a){a&1&&(F(0,"span",8),O(1,"--"),G())},dza=function(a){a&1&&(qe(0),M(1,bza,2,1,"ng-container",5),M(2,cza,2,0,"ng-template",null,7,Jf),re());if(a&2){var b=Ce(3);a=K().$implicit;B(1);C("ngIf",null!=a)("ngIfElse",b)}},eza=function(a){a&1&&ue(0)},
fza=function(a){a&1&&M(0,eza,1,0,"ng-container",4);if(a&2){a=K().$implicit;var b=K();C("ngTemplateOutlet",b.optionTemplate)("ngTemplateOutletContext",Ie(2,Zya,a))}},gza=function(a){a&1&&(M(0,dza,4,2,"ng-container",5),M(1,fza,1,4,"ng-template",null,6,Jf));if(a&2){var b=Ce(2);a=K();C("ngIf",!a.optionTemplate)("ngIfElse",b)}},hza=function(a){a&1&&ue(0)},jza=function(a){a&1&&(qe(0),M(1,hza,1,0,"ng-container",10),re());a&2&&(a=K(),B(1),C("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",Ie(2,
iza,a.value)))},kza=function(a){a&1&&ue(0)},lza=function(a){a&1&&(qe(0),M(1,kza,1,0,"ng-container",10),re());a&2&&(a=K(2),B(1),C("ngTemplateOutlet",a.optionTemplate)("ngTemplateOutletContext",Ie(2,iza,a.value)))},mza=function(a){a&1&&M(0,lza,2,4,"ng-container",3);if(a&2){a=K();var b=Ce(8);C("ngIf",a.optionTemplate)("ngIfElse",b)}},nza=function(a){a&1&&(qe(0),O(1),re());a&2&&(a=K(2),B(1),De(" ",a.value," "))},oza=function(a){a&1&&(F(0,"span",12),O(1,"--"),G())},pza=function(a){a&1&&(M(0,nza,2,1,"ng-container",
3),M(1,oza,2,0,"ng-template",null,11,Jf));if(a&2){var b=Ce(2);a=K();C("ngIf",null!=a.value)("ngIfElse",b)}},qza=function(a){a&1&&(Nc(),F(0,"svg",13),H(1,"path",14),G())},rza=function(a){a&1&&(F(0,"div"),O(1," The selected issues have no custom fields in common. "),G())},sza=function(a){a&1&&(F(0,"span"),O(1,"*"),G())},tza=function(a){if(a&1){var b=x();F(0,"input",16);J("ngModelChange",function(c){z(b);var d=K(2).$implicit;return A(d.textValue=c)});G()}a&2&&(a=K(2).$implicit,K(),C("ngModel",a.textValue),
ge("aria-labelledby",so(a)))},uza=function(a){if(a&1){var b=x();F(0,"input",17);J("ngModelChange",function(c){z(b);var d=K(2).$implicit;return A(d.numericValue=c)});G()}a&2&&(a=K(2).$implicit,K(),C("ngModel",a.numericValue),ge("aria-labelledby",so(a)))},wza=function(a){if(a&1){var b=x();F(0,"div")(1,"b-date-time-input",18);J("valueChange",function(e){z(b);var f=K(2).$implicit;K();return A(f.dateValue=e?Nk(e):void 0)});G()()}if(a&2){a=K(2).$implicit;var c=K(),d;B(1);C("value",null!==(d=vza(a.dateValue))&&
void 0!==d?d:void 0)("required",c.isCustomFieldRequired(a))("customAriaLabelledBy",so(a))("customFormId","bv2-custom-field-"+a.customFieldId)}},yza=function(a){if(a&1){var b=x();F(0,"onedev-single-select",19);J("valueChange",function(d){z(b);var e=K(2).$implicit;return A(e.enumValue=d)});G()}if(a&2){a=K(2).$implicit;K();var c;C("value",a.enumValue)("options",null!==(c=a.allowedValue)&&void 0!==c?c:He(3,xza));ge("aria-labelledby",so(a))}},Aza=function(a){if(a&1){var b=x();F(0,"b-bulk-repeated-field-picker",
20);J("onSave",function(e){z(b);var f=K(2).$implicit,h=K();return A(zza(h,f.customFieldId,e))});G()}if(a&2){a=K(2).$implicit;var c=K(),d;C("type",c.getCustomFieldType(a))("originalValueMap",c.repeatedCustomFieldsMap.get(a.customFieldId))("enumChoices",null!==(d=a.allowedValue)&&void 0!==d?d:He(3,xza))}},Bza=function(a){a&1&&(qe(0,10),M(1,tza,1,2,"input",11),M(2,uza,1,2,"input",12),M(3,wza,2,4,"div",13),M(4,yza,1,4,"onedev-single-select",14),M(5,Aza,1,4,"b-bulk-repeated-field-picker",15),re());if(a&
2){a=K().$implicit;var b=K();C("ngSwitch",b.getCustomFieldType(a));B(1);C("ngSwitchCase","TEXT");B(1);C("ngSwitchCase","NUMERIC");B(1);C("ngSwitchCase","DATE");B(1);C("ngSwitchCase","ENUM")}},Cza=function(a){if(a&1){var b=x();F(0,"span");O(1," Multiple values ");G();F(2,"a",21);J("click",function(){z(b);var c=K().$implicit,d=K();return A(d.clearCustomFieldValue(c))});O(3,"X");G()}},Dza=function(a,b){a&1&&(F(0,"div",5)(1,"div",6)(2,"label",7),O(3),M(4,sza,2,0,"span",1),G()(),M(5,Bza,6,5,"ng-template",
8),M(6,Cza,4,0,"ng-template",null,9,Jf),G());if(a&2){a=b.$implicit;var c=Ce(7);K();B(2);C("matTooltip",(a.description||"")+" [ID: "+a.customFieldId+"]");ge("id",so(a));B(1);De(" ",a.name," ");B(1);C("ngIf",a.required);B(1);C("ngIf",!a.hasMultipleValues)("ngIfElse",c)}},Eza=function(a){a&1&&H(0,"img",9);a&2&&(a=K(),C("src",a.person.imageUrl,Md)("alt",a.person.name+"'s profile picture"))},Fza=function(a){a&1&&(F(0,"div",10),O(1),G());a&2&&(a=K(),B(1),De(" ",a.person.email," "))},Gza=function(a){a&1&&
(F(0,"div",11)(1,"onedev-chip",12),H(2,"mat-icon",13),O(3),G()());a&2&&(a=K(),B(3),De("",a.outOfOfficeDescription," "))},Hza=function(a){a&1&&(F(0,"li"),O(1),G());a&2&&(a=K(2),B(1),Ee(a.person.title))},Iza=function(a){a&1&&H(0,"li",18)},Jza=function(a){a&1&&(F(0,"li"),O(1),G());a&2&&(a=K(2),B(1),Ee(a.person.department))},Kza=function(a){a&1&&(qe(0),H(1,"mat-icon",14),F(2,"div",15)(3,"ul",16),M(4,Hza,2,1,"li",8),M(5,Iza,1,0,"li",17),M(6,Jza,2,1,"li",8),G()(),re());a&2&&(a=K(),B(4),C("ngIf",a.person.title),
B(1),C("ngIf",a.person.title&&a.person.department),B(1),C("ngIf",a.person.department))},Lza=function(a){a&1&&(qe(0),H(1,"mat-icon",19),F(2,"div",15),O(3),G(),re());a&2&&(a=K(),B(3),Ee(a.person.location))},Mza=function(a){a&1&&(qe(0),H(1,"mat-icon",20),F(2,"div",15)(3,"ul",16)(4,"li")(5,"a",21),O(6,"Teams"),G()(),H(7,"li",18),F(8,"li")(9,"a",21),O(10,"Calendar"),G()(),H(11,"li",18),F(12,"li")(13,"a",21),O(14,"CLs"),G()(),H(15,"li",18),F(16,"li")(17,"a",21),O(18,"Readability"),G()()()(),re());a&2&&
(a=K(),B(5),C("href","https://teams.googleplex.com/"+a.person.ldap,Md),B(4),C("href","https://www.google.com/calendar/embed?src="+a.person.email+"&mode=WEEK&showCalendars=0",Md),B(4),C("href","https://critique.corp.google.com/"+a.person.ldap,Md),B(4),C("href","https://icanread.corp.google.com/s/"+a.person.ldap,Md))},Nza=function(a,b){if(null==a)return null;a=a.getRequestHook(b);return null==a?null:a},Oza=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}},Pza=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},Qza=function(a){return Object.assign({},{arrays:{},descriptions:{},keys:[],objectMaps:{},objects:{},enums:{},emptyArrayIsUnset:!1},a)},Rza=function(a,b){return to(b,a)},Sza=function(a,b,c){b[a]=c},Tza=function(){return{}},Xza=function(a,b){var c=new a;return null==b?c:uo(b,Uza,
Vza,Wza,a)},Uza=function(a,b){return b[a]},Vza=function(a,b,c){b.Serializable$values[a]=c},Wza=function(a){if(null==a)throw Error("Dd");return new a},uo=function(a,b,c,d,e){e=d(e);for(var f=Yza(a,e),h=f.arrays||{},k=f.objects||{},q=f.objectMaps||{},v={},y=r(f.keys||[]),E=y.next();!E.done;v={$jscomp$loop$prop$mapMetadata$1672:v.$jscomp$loop$prop$mapMetadata$1672},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=vo(I,
b,c,d,!0,!0,h[E])}else if(k.hasOwnProperty(E))N=vo(I,b,c,d,!1,!0,k[E]);else if(q.hasOwnProperty(E))v.$jscomp$loop$prop$mapMetadata$1672=q[E],N=v.$jscomp$loop$prop$mapMetadata$1672.isPropertyArray?I.map(function(L){return function(T){return Zza(T,L.$jscomp$loop$prop$mapMetadata$1672,b,c,d)}}(v)):Zza(I,v.$jscomp$loop$prop$mapMetadata$1672,b,c,d);else if(Array.isArray(I)){if(f.emptyArrayIsUnset&&0===I.length)continue;N=vo(I,b,c,d,!0,!1)}else N=I;c(E,e,N)}}return e},Zza=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]=vo(q,c,d,e,b.isValueArray,b.isSerializable,b.ctor))}return f},vo=function(a,b,c,d,e,f,h){if(f&&null==h)throw Error("Ed");if(null==a)return a;var k;e&&f?k=a.map(function(q){return uo(q,b,c,d,h)}):e&&!f?k=a.map(function(q){return q}):k=!e&&f?uo(a,b,c,d,h):"object"===typeof a?JSON.parse(JSON.stringify(a)):a;return k},Yza=function(a,b){if(b instanceof wo)a=Qza(b.getPartialClassMetadata());else if(a instanceof wo)a=
Qza(a.getPartialClassMetadata());else throw Error("Fd");return a},bAa=function(a){return a&&aAa.test(a)?a.split("@")[0]:""},cAa=function(a){return a?a.find(function(b){var c;return"DOMAIN_PROFILE"===(null==(c=b.metadata)?void 0:c.container)}):null},dAa=function(a){return a?a.find(function(b){var c;return"DOMAIN_PROFILE"===(null==(c=b.metadata)?void 0:c.container)}):null},eAa=function(a,b){a&1&&(F(0,"onedev-person-hovercard-body",1),P(1,"async"),ye(2,0,["ngProjectAs","onedev-hovercard-action",5,["onedev-hovercard-action"]]),
ye(3,1,["ngProjectAs","[onedev-additional-content]",5,["","onedev-additional-content",""]]),G());a&2&&(a=b.ngIf,b=K(),C("person",a)("outOfOfficeDescription",Q(1,2,b.outOfOfficeDescription$)))},fAa=function(a){a&1&&(F(0,"onedev-person-hovercard",1,2),ye(2,0,["ngProjectAs","onedev-hovercard-action",5,["onedev-hovercard-action"]]),G());if(a&2){var b=Ce(1);a=K();C("email",a.email)("enableWaldo",!0)("onedevIsHovercardReady",b.init)}},gAa=function(a){a&1&&ue(0)},hAa=function(a){a&1&&(qe(0),F(1,"span",2),
M(2,gAa,1,0,"ng-container",3),G(),F(3,"onedev-hovercard",null,4),H(5,"b-person-card",5),G(),re());if(a&2){var b=Ce(4);a=K();var c=Ce(2);B(1);C("onedevHovercardTrigger",b)("onedevHovercardActive",!!a.email);B(1);C("ngTemplateOutlet",c);B(3);C("email",a.email)}},iAa=function(a){a&1&&ye(0)},jAa=function(a,b){a&1&&(F(0,"div",1),Nc(),F(1,"svg",2)(2,"g"),H(3,"path",3),G()(),Oc(),F(4,"span",4),O(5),G()());a&2&&(a=b.ngIf,ge("aria-label",a)("title",a),B(5),Ee(a))},kAa=function(a){a&1&&H(0,"waldo-availability-chip",
1);a&2&&(a=K(),C("user",a.user),ge("coinonly",a.coinonly))},lAa=function(a){return a.retentionPeriod&&(a=Ura(a.retentionPeriod))?ro(Math.floor(1E3*a.getSeconds()/864E5)):"indefinite"},xo=function(a){return"number"===typeof a?"buganizer.drafts."+a:"buganizer.drafts.labeled."+a.label},mAa=function(a,b){a&1&&(F(0,"li"),O(1),G());a&2&&(a=b.$implicit,B(1),Ee(a))},nAa=function(a,b,c,d){c&&c.hasTargetTime()&&(c.hasEndTime()?b.push({sloBounds:c,sloMetric:d}):a.push({sloBounds:c,sloMetric:d}))},oAa=function(a,
b){a=a.sloBounds.getTargetTime().getSeconds();b=b.sloBounds.getTargetTime().getSeconds();return a-b},yo=function(a,b){return function(c){if(a.has(c))return a.get(c);var d=b(c);a.set(c,d);return d}},pAa=function(){return{startTime:Date.now(),firstActionSeen:!1,editCount:0}},zo=function(a){return a?ea(a,"@")?a:"[Deleted User]"===a?a:a+"@google.com":""},Ao=function(a){return a.customFieldValue?String(a.customFieldValue.customFieldId):a.fieldName},sAa=function(a){if(a&1){var b=x();qe(0,3);F(1,"onedev-hovercard-action",
4);J("onAction",function(){z(b);var e=K();return A(qAa(e))});P(2,"async");F(3,"span");O(4);G()();F(5,"onedev-hovercard-action",4);J("onAction",function(){z(b);var e=K();return A(rAa(e))});P(6,"async");F(7,"span");O(8);G()();re()}if(a&2){a=K();var c,d;B(1);C("disabled",null!==(c=Q(2,4,a.actionService.assigneeUpdating$))&&void 0!==c?c:!1);B(3);Ee(a.email!==a.currentAssignee?"Set as assignee":"Remove assignee");B(1);C("disabled",null!==(d=Q(6,6,a.actionService.ccUpdating$))&&void 0!==d?d:!1);B(3);Ee(a.currentCc.includes(a.email)?
"Remove from CCs":"Add to CCs")}},tAa=function(a){a&1&&(qe(0),H(1,"b-availability-chip",3),re());a&2&&(a=K(2).ngIf,B(1),C("user",a.email))},uAa=function(a){a&1&&(qe(0),O(1),re(),M(2,tAa,2,1,"ng-container",0));if(a&2){a=K().ngIf;var b=K();B(1);Ee(a.content);B(1);C("ngIf",b.enableWaldoAvailability&&b.availabilityChipEnabled)}},vAa=function(a){a&1&&ue(0)},wAa=function(a){a&1&&(qe(0),F(1,"span",4),M(2,vAa,1,0,"ng-container",5),G(),F(3,"onedev-hovercard",null,6),H(5,"b-issue-person-card",7),G(),re());
if(a&2){var b=Ce(4);a=K().ngIf;var c=Ce(2),d=K();B(1);C("onedevHovercardTrigger",b);ge("tabindex",d.hovercardEnabled&&d.hovercardFocusEnabled?"0":null);B(1);C("ngTemplateOutlet",c);B(3);C("email",a.email)}},xAa=function(a,b){a&1&&(qe(0),M(1,uAa,3,2,"ng-template",null,1,Jf),M(3,wAa,6,4,"ng-container",2),re());if(a&2){a=b.ngIf;var c=Ce(2);b=K();B(3);C("ngIf",b.hovercardEnabled&&b.isNonObfuscatedEmail(a.email))("ngIfElse",c)}},yAa=function(a){a&1&&H(0,"b-user-display-name",2);a&2&&(a=K(),C("email",a.getEmailAddress())("hovercardEnabled",
!1)("availabilityChipEnabled",a.availabilityChipEnabled)("hovercardFocusEnabled",a.hovercardFocusEnabled))},zAa=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K(),B(1),Ee(a.getDisplayString()))},AAa=function(a){a&1&&ue(0)},BAa=function(a){a&1&&(qe(0),F(1,"span",3),M(2,AAa,1,0,"ng-container",4),G(),F(3,"onedev-hovercard",null,5),H(5,"b-issue-person-card",6),G(),re());if(a&2){var b=Ce(4);a=K().ngIf;var c=Ce(3);B(1);C("onedevHovercardTrigger",b);B(1);C("ngTemplateOutlet",c);B(3);C("email",a.email)}},
CAa=function(a){a&1&&H(0,"img",9);a&2&&(a=K(2).ngIf,C("src",a.src,Md)("srcset",a.srcset,Md))},DAa=function(a){a&1&&(F(0,"span",7),M(1,CAa,1,2,"img",8),G());a&2&&(a=K().ngIf,le("anonymous",!a.showImage),B(1),C("ngIf",a.showImage))},EAa=function(a,b){a&1&&(qe(0),M(1,BAa,6,3,"ng-container",1),M(2,DAa,2,3,"ng-template",null,2,Jf),re());if(a&2){a=b.ngIf;var c=Ce(3);b=K();B(1);C("ngIf",b.isNonObfuscatedEmail(a.email))("ngIfElse",c)}},FAa=function(a){a&1&&(F(0,"div",8),H(1,"b-spinner"),G())},GAa=function(a){a&
1&&H(0,"code",22);a&2&&(a=K(2).$implicit,K(2),C("innerHtml",qh(a.formattingModeDiff),Ld))},HAa=function(a){a&1&&(F(0,"code",23),O(1),G());a&2&&(a=K(2).$implicit,B(1),De(" ",a.formattingMode," "))},IAa=function(a){a&1&&(F(0,"p",19),O(1," Formatting: "),M(2,GAa,1,1,"code",20),M(3,HAa,2,1,"code",21),G());a&2&&(a=K(3),B(2),C("ngIf",a.diffView),B(1),C("ngIf",!a.diffView))},JAa=function(a){if(a&1){var b=x();F(0,"div")(1,"span",24)(2,"b-person-hovercard",25);P(3,"omitObfuscatedEmail");O(4);P(5,"appendDomain");
G()();F(6,"a",26);J("click",function(c){z(b);var d=K().$implicit,e=K(2);d=d.version;c.stopPropagation();c=e.paths.editIssue(e.issueId)+("#comment"+e.commentNumber+"version"+d);e.location.replaceState(c);return A()});O(7);G()()}a&2&&(a=K().$implicit,K(2),B(2),C("email",Q(3,5,Ql(a.lastEditorUser))),B(2),De(" <",Q(5,7,Ql(a.lastEditorUser)),"> "),B(2),ie("aria-label","Comment version ",a.version,""),ze("id","bv2-edit-issue-comment-",a.version,""),B(1),De(" #",a.version,""))},KAa=function(a){a&1&&(F(0,
"div",30),O(1),G());a&2&&(a=K(2).$implicit,B(1),Ee(a.preview))},LAa=function(a){a&1&&(F(0,"div",31),O(1,"Comment deleted."),G())},MAa=function(a){a&1&&(F(0,"div",32),O(1,"Comment history restricted."),G())},NAa=function(a){a&1&&(qe(0),M(1,KAa,2,1,"div",27),M(2,LAa,2,0,"div",28),M(3,MAa,2,0,"div",29),re());a&2&&(a=K().$implicit,B(1),C("ngIf",!a.restricted&&!a.deleted),B(1),C("ngIf",!a.restricted&&a.deleted),B(1),C("ngIf",a.restricted))},OAa=function(a){a&1&&(F(0,"div",35),O(1,"Comment deleted."),G())},
PAa=function(a){a&1&&(F(0,"div",36),P(1,"async"),G());if(a&2){a=K(2).$implicit;var b=K(2);le("codefont",Q(1,3,b.codefont.codefont$));C("innerHtml",a.comment,Ld)}},QAa=function(a){a&1&&(F(0,"div",36),P(1,"async"),G());if(a&2){a=K(2).$implicit;var b=K(2);le("codefont",Q(1,3,b.codefont.codefont$));C("innerHtml",qh(a.diff),Ld)}},RAa=function(a){a&1&&(F(0,"div",32),O(1," This comment is not available due to present or past restrictions on the comment. "),G())},SAa=function(a){a&1&&(qe(0),M(1,OAa,2,0,"div",
33),M(2,PAa,2,5,"div",34),M(3,QAa,2,5,"div",34),M(4,RAa,2,0,"div",29),re());if(a&2){a=K().$implicit;var b=K(2);B(1);C("ngIf",!a.restricted&&a.deleted);B(1);C("ngIf",!b.diffView&&!a.restricted&&!a.deleted);B(1);C("ngIf",b.diffView&&!a.restricted&&!a.deleted);B(1);C("ngIf",a.restricted)}},TAa=function(a,b){if(a&1){var c=x();F(0,"li",11)(1,"div",12);H(2,"b-user-image",13);G();F(3,"div",14);J("click",function(){var d=z(c).$implicit;return A(d.open=!d.open)});H(4,"b-user-display",15)(5,"b-formatted-date-time",
16);M(6,IAa,4,2,"p",17);M(7,JAa,8,9,"div",18);M(8,NAa,4,3,"ng-container",18);G();M(9,SAa,5,4,"ng-container",18);G()}a&2&&(a=b.$implicit,K(2),le("comment-version-open",a.open),B(2),C("email",Ql(a.lastEditorUser)),B(2),C("model",a.lastEditorUser),B(1),C("timestamp",a.lastModified),B(1),C("ngIf",!a.deleted),B(1),C("ngIf",a.open),B(1),C("ngIf",!a.open),B(1),C("ngIf",a.open))},UAa=function(a){a&1&&(F(0,"ul",9),M(1,TAa,10,9,"li",10),G());a&2&&(a=K(),B(1),C("ngForOf",a.history)("ngForTrackBy",a.trackByIndex))},
VAa=function(){},YAa=function(){var a={timeout:5E3};a=void 0===a?{}:a;return null!=WAa?WAa:WAa=XAa(a)},ZAa=function(){return new Promise(function(a,b){window.gapi.load("client",{callback:a,onerror:b})})},XAa=function(a){a=void 0===a?{}:a;var b;return bf(function(c){if(1==c.nextAddress)return(b=window.gapi)&&b.client&&b.client.load?c.return(b):cf(c,$Aa(Bo(Co("https://apis.google.com/js/api.js")),a),2);if(3!=c.nextAddress){b=window.gapi;if(!b)throw Error("Jd");return b.client&&b.client.load?c.jumpTo(3):
cf(c,ZAa(),3)}return c.return(b)})},aBa=function(a,b,c){var d=a.config.get(b);c!==d&&a.config.update(b,c)},bBa=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(Do.has(a))return Do.get(a);b=Promise.resolve(c.reloadAuthResponse()).finally(function(){Do.delete(a)});Do.set(a,b);return b}return Promise.resolve()},cBa=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})},dBa=function(a){a&1&&H(0,"b-user-image",5);a&2&&(a=K(),C("email",a.email))},eBa=function(a){a&1&&ue(0)},fBa=function(a){a&1&&(qe(0),F(1,"span",6),M(2,eBa,1,0,"ng-container",7),G(),F(3,"onedev-hovercard",null,8),H(5,"b-issue-person-card",9),G(),re());if(a&2){var b=Ce(4);a=K();var c=Ce(4);B(1);C("onedevHovercardTrigger",b);B(1);C("ngTemplateOutlet",c);B(3);C("email",a.email)}},gBa=function(a){a&1&&(F(0,"span"),O(1),
G());a&2&&(a=K(),B(1),Ee(a.email))},hBa=function(a){a&1&&(F(0,"span",10),H(1,"b-availability-chip",11),G());a&2&&(a=K(),B(1),C("user",a.email))},iBa=function(a){a&1&&H(0,"b-user-image",6);a&2&&(a=K(),C("email",a.email))},jBa=function(a){a&1&&H(0,"b-user-display-name",7);a&2&&(a=K(),C("email",a.email)("hovercardFocusEnabled",!0)("availabilityChipEnabled",!1))},kBa=function(a){a&1&&ue(0)},lBa=function(a){a&1&&(qe(0),F(1,"span",10),M(2,kBa,1,0,"ng-container",11),G(),F(3,"onedev-hovercard",null,12),H(5,
"b-issue-person-card",13),G(),re());if(a&2){var b=Ce(4);K();var c=Ce(2);a=K();B(1);C("onedevHovercardTrigger",b);B(1);C("ngTemplateOutlet",c);B(3);C("email",a.email)}},mBa=function(a){a&1&&(F(0,"span",14),O(1),G());a&2&&(a=K(2),B(1),Ee(a.email))},nBa=function(a){a&1&&(M(0,lBa,6,3,"ng-container",8),M(1,mBa,2,1,"ng-template",null,9,Jf));if(a&2){var b=Ce(2);a=K();C("ngIf",a.isNonObfuscatedEmail(a.email))("ngIfElse",b)}},oBa=function(a){a&1&&(H(0,"mat-icon",15),P(1,"async"),P(2,"async"));if(a&2){a=K();
var b,c;C("svgIcon",null!==(b=Q(1,2,a.iconName$))&&void 0!==b?b:"")("matTooltip",null!==(c=Q(2,4,a.iconToolTip$))&&void 0!==c?c:"")}},pBa=function(a){a&1&&(qe(0),H(1,"b-availability-chip",16),re());a&2&&(a=K(),B(1),C("user",a.email))},sBa=function(a,b){var c=new qBa;a=Eo(c,a,b);rBa(c,a);c=a.map(function(d){var e=d[0];d=d[1];switch(e){case -1:return Rn("SPAN",{"class":"diff-removed"},d);case 1:return Rn("SPAN",{"class":"diff-added"},d);case 0:return Rn("SPAN",{"class":null},d);default:throw Error("Ld`"+
e);}});return Sn(c)},tBa=function(a){var b;return"DELETED"===(null==(b=a.entityStatus)?void 0:b.status)},uBa=function(a){a&1&&ue(0)},vBa=function(a){if(a&1){var b=x();F(0,"div",3);J("mouseenter",function(){z(b);var c=K();return A(c.toggle(!0))})("mouseleave",function(){z(b);var c=K();return A(c.toggle(!1))})("mousemove",function(){z(b);K().activity.next();return A()});M(1,uBa,1,0,"ng-container",4);G()}a&2&&(a=K(),C("ngClass",a.bubbleStyle)("@fade",void 0),B(1),C("ngTemplateOutlet",a.panelTemplate))},
wBa=function(a){a&1&&(qe(0),F(1,"span",3),O(2),P(3,"toAccessLevelLabel"),G(),re());a&2&&(a=K(2),B(1),le("compact-chip",a.compactMode),C("ngClass",a.chipClass),B(1),De(" ",Me(3,4,a.accessLevel,a.compactMode)," "))},xBa=function(a){a&1&&(F(0,"div",6),O(1),F(2,"a",7),O(3," Learn more"),G()());a&2&&(a=K(3),B(1),De(" ",a.bubbleText," "),B(1),C("href",Fo(a.documentationLinks),Md))},yBa=function(a){a&1&&(F(0,"xap-bubble",4)(1,"span",3),O(2),P(3,"toAccessLevelLabel"),G(),M(4,xBa,4,2,"ng-template",null,5,
Jf),G());if(a&2){var b=Ce(5);a=K(2);C("panelTemplate",b);B(1);le("compact-chip",a.compactMode);C("ngClass",a.chipClass);B(1);De(" ",Me(3,5,a.accessLevel,a.compactMode)," ")}},zBa=function(a){a&1&&(qe(0),M(1,wBa,4,7,"ng-container",1),M(2,yBa,6,8,"ng-template",null,2,Jf),re());if(a&2){var b=Ce(3);a=K();B(1);C("ngIf",a.labelOnlyMode)("ngIfElse",b)}},ABa=function(a){a&1&&(F(0,"li")(1,"a",4),O(2," Create an issue in this component"),G()());a&2&&(a=K(2),B(1),C("href",a.createIssueUrl,Md))},BBa=function(a,
b){a&1&&(qe(0),F(1,"h3"),O(2),G(),F(3,"p"),O(4),G(),H(5,"b-access-level-indicator",3),F(6,"p"),O(7),G(),F(8,"ul")(9,"li")(10,"a",4),O(11," View recent open issues"),G()(),M(12,ABa,3,1,"li",2),F(13,"li")(14,"a",4),O(15," View component"),G()()(),re());a&2&&(a=b.ngIf,b=K(),B(2),Ee(a.name),B(2),De("ID: ",b.componentId,""),B(1),C("accessLevel",null==a.accessLimit?null:a.accessLimit.accessLevel)("labelOnlyMode",!0),B(2),Ee(a.description),B(3),C("href",b.recentIssuesUrl,Md),B(2),C("ngIf",!b.isAnonymous),
B(2),C("href",b.viewComponentUrl,Md))},CBa=function(a){a&1&&(F(0,"span",8),O(1),G());a&2&&(a=K(),B(1),Ee(a.placeholder))},DBa=function(a){a&1&&(F(0,"span",12),O(1),G());a&2&&(a=K(2),B(1),Ee(a.triggerValue))},EBa=function(a){a&1&&ye(0,0,["*ngSwitchCase","true"])},FBa=function(a){a&1&&(F(0,"span",9),M(1,DBa,2,1,"span",10),M(2,EBa,1,0,"ng-content",11),G());a&2&&(a=K(),C("ngSwitch",!!a.customTrigger),B(2),C("ngSwitchCase",!0))},GBa=function(a){if(a&1){var b=x();F(0,"div",13)(1,"div",14,15);J("@transformPanel.done",
function(c){z(b);var d=K();return A(d._panelDoneAnimatingStream.next(c.toState))})("keydown",function(c){z(b);var d=K();return A(d._handleKeydown(c))});ye(3,1);G()()}a&2&&(a=K(),C("@transformPanelWrap",void 0),B(1),oe("mat-select-panel ",a._getPanelTheme(),""),ke("transform-origin",a._transformOrigin)("font-size",a._triggerFontSize,"px"),C("ngClass",a.panelClass)("@transformPanel",a.multiple?"showing-multiple":"showing"),ge("id",a.id+"-panel")("aria-multiselectable",a.multiple)("aria-label",a.ariaLabel||
null)("aria-labelledby",a._getPanelAriaLabelledby()))},HBa=function(a,b){a&1&&(F(0,"mat-option",19),O(1),G());a&2&&(a=b.$implicit,C("value",a),B(1),De(" ",a," "))},IBa=function(a){if(a&1){var b=x();F(0,"mat-form-field",16)(1,"mat-select",17);J("selectionChange",function(c){z(b);var d=K(2);return A(d._changePageSize(c.value))});M(2,HBa,2,2,"mat-option",18);G()()}a&2&&(a=K(2),C("appearance",a._formFieldAppearance)("color",a.color),B(1),C("value",a.pageSize)("disabled",a.disabled)("panelClass",a.selectConfig.panelClass||
"")("disableOptionCentering",a.selectConfig.disableOptionCentering)("aria-label",a._intl.itemsPerPageLabel),B(1),C("ngForOf",a._displayedPageSizeOptions))},JBa=function(a){a&1&&(F(0,"div",20),O(1),G());a&2&&(a=K(2),B(1),Ee(a.pageSize))},KBa=function(a){a&1&&(F(0,"div",12)(1,"div",13),O(2),G(),M(3,IBa,3,8,"mat-form-field",14),M(4,JBa,2,1,"div",15),G());a&2&&(a=K(),B(2),De(" ",a._intl.itemsPerPageLabel," "),B(1),C("ngIf",1<a._displayedPageSizeOptions.length),B(1),C("ngIf",1>=a._displayedPageSizeOptions.length))},
LBa=function(a){if(a&1){var b=x();F(0,"button",21);J("click",function(){z(b);var c=K();if(c.hasPreviousPage()){var d=c.pageIndex;c.pageIndex=0;c._emitPageEvent(d)}return A()});Nc();F(1,"svg",7);H(2,"path",22);G()()}a&2&&(a=K(),C("matTooltip",a._intl.firstPageLabel)("matTooltipDisabled",a._previousButtonsDisabled())("matTooltipPosition","above")("disabled",a._previousButtonsDisabled()),ge("aria-label",a._intl.firstPageLabel))},MBa=function(a){if(a&1){var b=x();Nc();Oc();F(0,"button",23);J("click",
function(){z(b);var c=K();if(c.hasNextPage()){var d=c.pageIndex;c.pageIndex=(c.pageSize?Math.ceil(c.length/c.pageSize):0)-1;c._emitPageEvent(d)}return A()});Nc();F(1,"svg",7);H(2,"path",24);G()()}a&2&&(a=K(),C("matTooltip",a._intl.lastPageLabel)("matTooltipDisabled",a._nextButtonsDisabled())("matTooltipPosition","above")("disabled",a._nextButtonsDisabled()),ge("aria-label",a._intl.lastPageLabel))},NBa=function(a){if(a&1){var b=x();F(0,"mat-paginator",3);J("page",function(c){z(b);var d=K(),e=c.pageIndex*
c.pageSize;d.childrenOnPage=d.children.slice(e,e+c.pageSize);return A()});G()}a&2&&(a=K(),C("length",a.children.length)("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions))},OBa=function(a,b){if(a&1){var c=x();F(0,"li")(1,"a",4);J("click",function(){var e=z(c).$implicit,f=K();return A(f.onVisit.emit(e))});O(2);G();F(3,"onedev-hovercard",null,5);H(5,"b-component-card",6);G()()}if(a&2){a=b.$implicit;var d=Ce(4);b=K();B(1);C("onedevHovercardTrigger",d)("href",b.paths.manageComponent(a.componentId),
Md);B(1);De(" ",a.name," ");B(3);C("componentId",a.componentId.toString())}},PBa=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K(),le("muted",a.isGreyedOut),B(1),De(" ",a.displayName,""))},QBa=function(a){if(a&1){var b=x();F(0,"a",2);J("click",function(c){z(b);var d=K();return A(d.handleClick(c))});O(1);G()}a&2&&(a=K(),C("href",a.linkUrl,Md),B(1),De(" ",a.displayName,""))},RBa=function(a){if(a&1){var b=x();F(0,"button",6);J("click",function(){z(b);var c=K();return A(c.onClickCopyIssueShortLinks.emit())});
O(1);G()}a&2&&(a=K(),B(1),De(" Copy '",a.shortLinkPrefix,"'' links "))},SBa=function(a,b){a&1&&(F(0,"span",5)(1,"a",6),O(2),G(),F(3,"onedev-hovercard",null,7),H(5,"b-component-card",8),G()());if(a&2){a=b.$implicit;var c=Ce(4);B(1);C("onedevHovercardTrigger",c)("routerLinkObj",a.route);B(1);Ee(a.name);B(3);C("componentId",a.id.toString())}},TBa=function(a){a&1&&(F(0,"span",9),O(1,"[Archived]"),G())},Go=function(a,b){b=void 0===b?on: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}})},UBa=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K().$implicit,B(1),Ee(a.text))},VBa=function(a){a&1&&(F(0,"span"),H(1,"b-access-level-indicator",2),G());a&2&&(a=K().$implicit,B(1),C("accessLevel",a.accessLevel))},WBa=function(a,b){a&1&&(F(0,"span"),M(1,UBa,2,1,"span",1),M(2,VBa,2,1,"span",1),G());a&2&&(a=b.$implicit,b=K(),B(1),C("ngIf",b.isText(a)),B(1),
C("ngIf",!b.isText(a)))},XBa=function(a){if(a&1){var b=x();F(0,"div");H(1,"br");F(2,"mat-checkbox",8);J("ngModelChange",function(c){z(b);var d=K();return A(d.acknowledged=c)});G();F(3,"span");O(4,"All information in this issue is suitable for external sharing.");G()()}a&2&&(a=K(),B(2),C("ngModel",a.acknowledged))},YBa=function(a){if(a&1){var b=x();F(0,"button",9);J("click",function(){z(b);var c=K();return A(c.allow())});O(1," Move Issue ");G()}a&2&&(a=K(),C("disabled",!a.acknowledged))},Ho=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]]}))})},Io=function(){var a=0;a=void 0===a?0:a;return new Promise(function(b){setTimeout(b,a)})},ZBa=function(a){if(a&1){var b=x();F(0,"a",17);J("click",function(){z(b);var c=K().$implicit,d=K();return A(d.showChildren(c))});H(1,"mat-icon",18);G()}},$Ba=function(a){if(a&1){var b=x();F(0,"a",19);J("click",function(){z(b);var c=K().$implicit;return A(c.showChildren=!1)});H(1,
"mat-icon",20);G()}},bCa=function(a){a&1&&(F(0,"a",21),O(1," (Recent Issues) "),G());if(a&2){a=K().$implicit;var b=K();C("href",b.paths.listIssues(Ie(1,aCa,"status:open componentid:"+a.componentId)),Md)}},cCa=function(a){a&1&&(F(0,"span"),O(1,"[Archived]"),G())},dCa=function(a){a&1&&(F(0,"a",22),O(1," Create issue "),G());if(a&2){a=K().$implicit;var b=K();C("href",b.paths.createIssue()+"?component="+a.componentId,Md)}},eCa=function(a){a&1&&(F(0,"div",27),O(1," No child components found. "),G())},
fCa=function(a){a&1&&(F(0,"div",28),H(1,"b-spinner"),G())},gCa=function(a){if(a&1){var b=x();F(0,"component-subtree-list",29);J("childClosed",function(d){z(b);var e=K(3);return A(e.onSubtreeChildClosed(d))});G()}if(a&2){a=K(2).$implicit;var c=K();C("components",a.children)("parentComponent",a)("rootController",c.rootController)("includeArchived",c.includeArchived)}},hCa=function(a){a&1&&(F(0,"div",23),M(1,eCa,2,0,"div",24),M(2,fCa,2,0,"div",25),M(3,gCa,1,4,"component-subtree-list",26),G());a&2&&(a=
K().$implicit,B(1),C("ngIf",a.noChildren),B(1),C("ngIf",!(a.noChildren||a.children)),B(1),C("ngIf",a.children))},iCa=function(a,b){if(a&1){var c=x();F(0,"li",2);J("click",function(d){var e=z(c).$implicit,f=K();return A(f.setSelected(e.componentId,d))});F(1,"div",3);H(2,"div",4);F(3,"div",5);M(4,ZBa,2,0,"a",6);M(5,$Ba,2,0,"a",7);G();F(6,"div",8)(7,"div")(8,"a",9);O(9);G();M(10,bCa,2,3,"a",10);M(11,cCa,2,0,"span",11);H(12,"b-access-level-indicator",12);G();F(13,"div",13);O(14);G()();F(15,"div",14);
M(16,dCa,2,1,"a",15);G()();M(17,hCa,4,3,"div",16);G()}a&2&&(a=b.$implicit,b=K(),ze("id","component-",a.componentId,""),B(4),C("ngIf",!a.showChildren),B(1),C("ngIf",a.showChildren),B(3),C("href",b.paths.viewComponent(a.componentId),Md),B(1),De(" ",a.name," "),B(1),C("ngIf",!a.archived),B(1),C("ngIf",a.archived),B(1),C("accessLevel",null==a.accessLimit?null:a.accessLimit.accessLevel),B(2),Ee(a.description),B(2),C("ngIf",!a.archived),B(1),C("ngIf",a.showChildren))},jCa=function(a){if(a&1){var b=x();
F(0,"a",17);J("click",function(){z(b);var c=K().$implicit,d=K();return A(d.showChildren(c))});H(1,"mat-icon",18);G()}},kCa=function(a){if(a&1){var b=x();F(0,"a",19);J("click",function(){z(b);var c=K().$implicit;return A(c.showChildren=!1)});H(1,"mat-icon",20);G()}},mCa=function(a){a&1&&(F(0,"a",21),O(1," (Recent Issues) "),G());if(a&2){a=K().$implicit;var b=K();C("href",b.paths.listIssues(Ie(1,lCa,"status:open componentid:"+a.componentId)),Md)}},nCa=function(a){a&1&&(F(0,"span"),O(1,"[Archived]"),
G())},oCa=function(a){a&1&&(F(0,"a",22),O(1," Create issue "),G());if(a&2){a=K().$implicit;var b=K();C("href",b.paths.createIssue()+"?component="+a.componentId,Md)}},pCa=function(a){a&1&&(F(0,"div",27),O(1," No child components found. "),G())},qCa=function(a){a&1&&(F(0,"div",28),H(1,"b-spinner"),G())},rCa=function(a){if(a&1){var b=x();F(0,"component-subtree-list",29);J("childClosed",function(d){z(b);var e=K(3);return A(e.onSubtreeChildClosed(d))});G()}if(a&2){a=K(2).$implicit;var c=K();C("components",
a.children)("parentComponent",a)("rootController",c.rootController)("includeArchived",c.includeArchived)}},sCa=function(a){a&1&&(F(0,"div",23),M(1,pCa,2,0,"div",24),M(2,qCa,2,0,"div",25),M(3,rCa,1,4,"component-subtree-list",26),G());a&2&&(a=K().$implicit,B(1),C("ngIf",a.noChildren),B(1),C("ngIf",!(a.noChildren||a.children)),B(1),C("ngIf",a.children))},tCa=function(a,b){if(a&1){var c=x();F(0,"li",2);J("click",function(d){var e=z(c).$implicit,f=K();return A(f.setSelected(e.componentId,d))});F(1,"div",
3);H(2,"div",4);F(3,"div",5);M(4,jCa,2,0,"a",6);M(5,kCa,2,0,"a",7);G();F(6,"div",8)(7,"div")(8,"a",9);O(9);G();M(10,mCa,2,3,"a",10);M(11,nCa,2,0,"span",11);H(12,"b-access-level-indicator",12);G();F(13,"div",13);O(14);G()();F(15,"div",14);M(16,oCa,2,1,"a",15);G()();M(17,sCa,4,3,"div",16);G()}a&2&&(a=b.$implicit,b=K(),C("id","component-"+a.componentId),B(4),C("ngIf",!a.showChildren),B(1),C("ngIf",a.showChildren),B(3),C("href",b.paths.viewComponent(a.componentId),Md),B(1),De(" ",a.name," "),B(1),C("ngIf",
!a.archived),B(1),C("ngIf",a.archived),B(1),C("accessLevel",null==a.accessLimit?null:a.accessLimit.accessLevel),B(2),Ee(a.description),B(2),C("ngIf",!a.archived),B(1),C("ngIf",a.showChildren))},Jo=function(a){return(null!=a?a:[]).map(Jn)},uCa=function(a){return bua(a)},Ko=function(a){return(null!=a?a:[]).map(uCa)},Lo=function(a){return null==a?"":"number"===typeof a?isFinite(a)?String(a):"":a&&(a=String(a),254>=a.length)?a:""},No=function(){var a=Mo("gapi.config.get");if((a=Lo(a&&a("googleapis.config/sessionIndex")))||
(a=Lo(ca.__X_GOOG_AUTHUSER))||(a=Lo(Mo("google.authuser"))))return a;var b=ca.location.href||"",c=vCa.exec(b);try{a=Lo(c&&decodeURIComponent(c[2]))}catch(d){}if(a)return a;c=wCa.exec(b);try{a=Lo(c&&decodeURIComponent(c[2]))}catch(d){}if(a)return a;a=xCa.exec(b);return(a=Lo(a&&a[1]))?a:""},yCa=function(){var a=Mo("gapi.auth.getToken");a=(a=a?a():null)&&a.access_token;var b=null;if(!a){a=(a=Mo("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}},zCa=function(a){a=void 0===a?"":a;var b;if(!(b=yCa())){b=a;var c=void 0===c?No():c;a={};var d=Oo([]);d&&(a.Authorization=d);b||(b=(b=Mo("gapi.config.get"))&&b("client/apiKey"));b&&(a["X-Goog-Api-Key"]=b);c&&(a["X-Goog-AuthUser"]=String(c));b=a}return b},ACa=function(a,b){b=void 0===b?0:b;var c;if(c=0===b)c=(c=Mo("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=Mo("gapi.config.get"))&&b("client/rewrite"))&&b[a]&&(a=String(b[a]));return a},CCa=function(a,b){return 1>a||!isFinite(a)?Promise.reject("gapi.client missing"):(new Promise(function(c){return ca.setTimeout(c,b)})).then(function(){return BCa(a-1,2*b)})},BCa=function(a,
b){a=void 0===a?0:a;b=void 0===b?5E3:b;var c=ca;try{do var d=c.gapi;while(!d&&c!==c.top&&(c=c.parent))}catch(e){}if(!d)return CCa(a,b);ca.gapi||(ca.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")})})},DCa=function(){var a=void 0===a?"":a;var b=void 0===b?No():b;var c=Mo("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)},ECa=function(a){return(new Po).setEventType(2).setRpcType(2).setLookupType(a)},FCa=function(a){a=Math.round(1E3*a);return isFinite(a)?a:null},So=function(a,b,c,d){Qo.call(this);this.initialized_=!1;this.title_=null;this.cache_=b;this.id_=c;this.transport_=a;GCa(this.transport_,this.id_);d&&Ro(d.getEventTarget(),"a",this.onContactsChange_,!1,this)},HCa=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},JCa=function(a){return a.extendedData&&a.extendedData.contactPreferences?a.extendedData.contactPreferences.map(function(b){return ICa(b.name,b.email)}).join(", "):""},MCa=function(a,b,c){var d=[];a&&(KCa("name",a.name,b,d,c),KCa("phone",a.phone,b,d,c),KCa("photo",a.photo,b,d,c));return d.map(function(e){return new LCa(e)})},KCa=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"!==Mo("metadata.containerType",f)){var h=c,k=d,q=
e,v=Mo("metadata.encodedContainerId",f),y=Mo("metadata.containerType",f);if(h.contains(v,y))var E=h.get(v,y)||0;else E=k.length,h.set(v,y,E),k.push({}),q.push(v);E=k[E];E[a]=E[a]||[];E[a].push(f)}}},OCa=function(a,b){if(a){a=NCa(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},PCa=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},
QCa=function(a){this.query_=a;this.error_=0},XCa=function(a){var b=a.getClientInfo(),c=To(b,10)||W(a.getExperiments(),5,!0),d=c?new Uo(void 0,RCa(a)):new Vo(void 0,RCa(a)),e=Wo(new SCa(a,1)),f=a.getUserInfo().getEnvType()||1;var h=TCa.get(f)||4;h=ACa("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),v=p(a.getClientInfo(),6)||"",y=a.getClientInfo().getAffinityType()||"",E=a.getUserInfo().getDelegatorId(),
I=a.getAuthErrorHandler(),N=ej(a.getClientInfo(),8,3E4),L=W(a.getClientInfo(),17,!1);e=new UCa(e,h,f,k,q,v,y,E,N,I,ej(a.getClientInfo(),13,15),ej(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 Xo(e,VCa(a));e=new WCa(a);e.configure(null,"Personal Contacts");d.addAddressBook(e,!0);c&&(b=new Yo(a,
null,!!To(b,11)),b.configure(null,"Domain Contacts"),d.addAddressBook(b,!0));return d},ap=function(a,b){b=a(b||YCa,void 0);a=Zo().createElement("DIV");b=ZCa(b);$o(a,b);1==a.childNodes.length&&(b=a.firstChild,1==b.nodeType&&(a=b));return a},ZCa=function(a){if(Fa(a))if(a instanceof bp){if(a.contentKind!==cp)throw Error("Qd");a=kh(a.toString(),null)}else a=Pn("zSoyz");else a=Pn(String(a));return a},ep=function(a,b,c,d,e,f,h){this.serverBase_="string"===typeof a?new dp(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},$Ca=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},dDa=function(a,b,c,d){a=a.filter(aDa());if(!d)return a;d=d.map(function(e){return{contact:e,toString:function(){return e.text}}});
b=bDa(new cDa(d),b,d.length);return a.concat(b.map(function(e){return e.contact}))},eDa=function(a){a&1&&(H(0,"div"),P(1,"lowercase"));a&2&&(a=K(3),oe("bv2-edit-icon ",Q(1,3,a.type),""))},fDa=function(a){a&1&&(F(0,"div")(1,"label"),O(2),G(),M(3,eDa,2,5,"div",10),G());a&2&&(a=K(2),oe("bv2-editable-title bv2-editable-title-",a.name," flex-kids-x"),B(2),De(" ",a.title," "),B(1),C("ngIf",!a.readonly&&!a.disabled))},gDa=function(a){a&1&&ue(0)},hDa=function(a){if(a&1){var b=x();F(0,"div",14);J("menuClosed",
function(){z(b);var e=K(2);return A(fp(e,null,!1,!0))});M(1,gDa,1,0,"ng-container",15);G()}if(a&2){K();var c=Ce(6);K();var d=Ce(7);C("matMenuTriggerFor",d);B(1);C("ngTemplateOutlet",c)}},iDa=function(a){a&1&&ue(0)},jDa=function(a){a&1&&(F(0,"div",16),M(1,iDa,1,0,"ng-container",15),G());if(a&2){K();var b=Ce(6);B(1);C("ngTemplateOutlet",b)}},kDa=function(a){a&1&&H(0,"b-user-membership-chip",26);a&2&&(a=K(4),C("user",a.user)("email",a.value)("teamId",a.teamId)("enableSmallChip",!0))},lDa=function(a){a&
1&&H(0,"b-user-image",27);a&2&&(a=K(4),C("email",a.value))},mDa=function(a){a&1&&(F(0,"span",28)(1,"b-person-hovercard",29),O(2),G()());a&2&&(a=K(4),B(1),C("email",a.value),B(1),De(" ",a.getDisplayValue("--")," "))},nDa=function(a){a&1&&(F(0,"div")(1,"div",22),M(2,kDa,1,4,"b-user-membership-chip",23),M(3,lDa,1,1,"b-user-image",24),M(4,mDa,3,2,"span",25),G()());a&2&&(a=K(3),B(2),C("ngIf",a.enableTeamAnnotations&&!!a.value),B(1),C("ngIf",!a.enableTeamAnnotations&&!!a.value),B(1),C("ngIf",!a.enableTeamAnnotations))},
oDa=function(a){a&1&&H(0,"b-truncated-span",33);a&2&&(a=K(4),C("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},pDa=function(a){a&1&&H(0,"b-truncated-span",34);a&2&&(a=K(4),C("ngClass",a.getPriority(a.value))("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},qDa=function(a){a&1&&H(0,"div",35)},rDa=function(a){a&1&&(F(0,"div"),M(1,oDa,1,3,"b-truncated-span",30),M(2,pDa,1,4,"b-truncated-span",31),M(3,qDa,1,0,"div",32),G());a&2&&(a=K(3),B(1),
C("ngIf","Priority"!==a.title),B(1),C("ngIf","Priority"===a.title),B(1),C("ngIf",!a.title&&!a.readonly&&!a.disabled))},sDa=function(a){a&1&&(F(0,"div",36),H(1,"mat-icon",37),G())},tDa=function(a){a&1&&(F(0,"div",38),H(1,"mat-icon",39),G())},vDa=function(a){if(a&1){var b=x();F(0,"div",17,18);J("keydown",function(c){z(b);var d=K(2);return A(uDa(d,c))})("click",function(c){z(b);var d=K(2);return A(fp(d,c,!0,!1))});M(2,nDa,5,3,"div",19);M(3,rDa,4,3,"div",19);M(4,sDa,2,0,"div",20);M(5,tDa,2,0,"div",21);
G()}a&2&&(a=K(2),le("edit-field-user-container",a.isUser)("edit-field-activated",a.isActive),B(2),C("ngIf",a.isUser),B(1),C("ngIf",!a.isUser),B(1),C("ngIf","ENUM"!=a.type),B(1),C("ngIf","ENUM"==a.type))},wDa=function(a){if(a&1){var b=x();F(0,"div",8,9);J("click",function(c){z(b);var d=K();return A(fp(d,c,!0,!1))})("keydown",function(c){z(b);var d=K();return A(uDa(d,c))});M(2,fDa,4,5,"div",10);M(3,hDa,2,2,"div",11);M(4,jDa,2,1,"div",12);M(5,vDa,6,8,"ng-template",null,13,Jf);G()}a&2&&(a=K(),oe("bv2-issue-metadata-field-inner bv2-issue-metadata-field-",
a.name,""),le("bv2-disabled",a.disabled)("bv2-readonly",a.readonly),je("aria-label","",a.title," value is ",a.getDisplayValue("empty"),""),C("matTooltip",a.getTooltip()),ge("aria-disabled",!1),B(2),C("ngIf",a.title),B(1),C("ngIf","ENUM"===a.type),B(1),C("ngIf","ENUM"!==a.type))},xDa=function(a){if(a&1){var b=x();F(0,"div",43);J("click",function(){z(b);var c=K(2);return A(c.setFieldValue(!c.value))});F(1,"label");O(2);G()()}a&2&&(a=K(2),oe("bv2-editable-title bv2-editable-title-",a.name," flex-kids-x"),
B(2),Ee(a.title))},zDa=function(a){if(a&1){var b=x();F(0,"div",40);M(1,xDa,3,4,"div",41);F(2,"b-slide-toggle",42);J("modelChange",function(){z(b);var d=K();return A(d.setFieldValue(!d.value))});G()()}if(a&2){a=K();var c;oe("bv2-issue-metadata-field-inner bv2-issue-metadata-field-",a.name,"");C("ngClass",Je(10,yDa,a.disabled,a.readonly))("matTooltip",a.getTooltip());ge("aria-disabled",!1);B(1);C("ngIf",a.title);B(1);C("disabled",a.disabled||a.readonly)("aria-label",a.name)("model",null!==(c=a.value)&&
void 0!==c?c:void 0)}},ADa=function(a){a&1&&H(0,"b-availability-chip",44);a&2&&(a=K(),C("user",a.value))},BDa=function(a){if(a&1){var b=x();F(0,"button",47);J("click",function(){z(b);var c=K(2);return A(c.clearFieldValue())});F(1,"span",48);H(2,"mat-icon",49);G();O(3," \u00a0 ");G()}a&2&&(a=K(2),le("b-menu-item-checked",null==a.value),C("disabled",null==a.value))},CDa=function(a,b){if(a&1){var c=x();F(0,"button",50);J("click",function(){var d=z(c).$implicit,e=K(2);return A(e.setFieldValue(d.value))});
F(1,"span",48);H(2,"mat-icon",49);G();O(3);G()}a&2&&(a=b.$implicit,b=K(2),le("b-menu-item-checked",b.value==a.value),C("disabled",b.value==a.value)("matTooltip",a.altText||""),ge("aria-label",a.displayText)("title",!b.showEnumTitle||a.altText?"":a.displayText),B(3),De(" ",a.displayText," "))},DDa=function(a){a&1&&(M(0,BDa,4,3,"button",45),M(1,CDa,4,7,"button",46));a&2&&(a=K(),C("ngIf",a.clearable),B(1),C("ngForOf",a.choices))},EDa=function(a){a&1&&ue(0)},FDa=function(a){a&1&&ue(0)},GDa=function(a){if(a&
1){var b=x();F(0,"div",43);J("click",function(d){return d.stopPropagation()});F(1,"b-date-time-picker-content",56);J("dateSelectionChange",function(d){z(b);var e=K(2);return A(e.googDateValue=null!==d&&void 0!==d?d:null)})("saveClicked",function(){z(b);var d=K(2);return A(d.setFieldValue(d.googDateValue))})("cancelClicked",function(){z(b);var d=K(2);return A(fp(d,null,!1,!1))});G()()}if(a&2){a=K(2);var c;B(1);C("required",!(a.clearable&&"DATE"===a.type))("date",null!==(c=a.googDateValue)&&void 0!==
c?c:void 0)}},IDa=function(a){if(a&1){var b=x();F(0,"textarea",65);J("ngModelChange",function(c){z(b);var d=K(4);return A(d.textBuffer=c)})("keydown",function(c){z(b);var d=K(4);return A(HDa(d,c))});G()}a&2&&(a=K(4),C("ngModel",a.textBuffer),ge("aria-label",a.title))},KDa=function(a){if(a&1){var b=x();F(0,"input",66);J("ngModelChange",function(c){z(b);var d=K(4);return A(d.textBuffer=c)})("keydown",function(c){z(b);var d=K(4);return A(JDa(d,c))});G()}a&2&&(a=K(4),C("ngModel",a.textBuffer),ge("type",
"NUMERIC"===a.type?"number":"text")("aria-label",a.title))},LDa=function(a){a&1&&(F(0,"div"),M(1,IDa,1,2,"textarea",63),M(2,KDa,1,3,"input",64),G());a&2&&(a=K(3),B(1),C("ngIf",a.multiline),B(1),C("ngIf",!a.multiline))},MDa=function(a){if(a&1){var b=x();F(0,"textarea",69);J("ngModelChange",function(c){z(b);var d=K(4);return A(d.textBuffer=c)})("keydown",function(c){z(b);var d=K(4);return A(HDa(d,c))})("autocompleteActive",function(c){z(b);var d=K(4);return A(d.autocompleteActive=c)});G()}a&2&&(a=K(4),
C("ngModel",a.textBuffer)("bContactAutocomplete","MULTI"),ge("aria-label",a.title))},NDa=function(a){if(a&1){var b=x();F(0,"input",70);J("ngModelChange",function(c){z(b);var d=K(4);return A(d.textBuffer=c)})("keydown",function(c){z(b);var d=K(4);return A(JDa(d,c))})("autocompleteActive",function(c){z(b);var d=K(4);return A(d.autocompleteActive=c)});G()}a&2&&(a=K(4),C("ngModel",a.textBuffer)("bContactAutocomplete","SINGLE"),ge("type","NUMERIC"===a.type?"number":"text")("aria-label",a.title))},ODa=
function(a){a&1&&(F(0,"div"),M(1,MDa,1,3,"textarea",67),M(2,NDa,1,4,"input",68),G());a&2&&(a=K(3),B(1),C("ngIf",a.multiline),B(1),C("ngIf",!a.multiline))},QDa=function(a){if(a&1){var b=x();F(0,"div",57);J("click",function(c){return c.stopPropagation()});M(1,LDa,3,2,"div",19);M(2,ODa,3,2,"div",19);F(3,"div",58)(4,"button",59);J("click",function(){z(b);var c=K(2);return A(PDa(c))});H(5,"mat-icon",60);G();F(6,"button",61);J("click",function(c){z(b);var d=K(2);return A(fp(d,c,!1,!0))});H(7,"mat-icon",
62);G()();F(8,"div",36);H(9,"mat-icon",37);G()()}a&2&&(a=K(2),B(1),C("ngIf",!a.isUser),B(1),C("ngIf",a.isUser),B(2),ie("aria-label","Apply change to ",a.title,""),ze("matTooltip","Apply change to ",a.title,""),C("disabled",a.value==a.textBuffer),B(2),ie("aria-label","Discard change to ",a.title,""),ze("matTooltip","Discard change to ",a.title,""))},RDa=function(a){a&1&&(F(0,"div",51,52),M(2,EDa,1,0,"ng-container",53),M(3,FDa,1,0,"ng-container",53),M(4,GDa,2,2,"div",54),M(5,QDa,10,7,"div",55),G());
a&2&&(a=K(),oe("bv2-issue-metadata-field-edit bv2-issue-metadata-field-",a.name,"-edit"),C("ngSwitch",a.type),B(2),C("ngSwitchCase","ENUM"),B(1),C("ngSwitchCase","BOOL"),B(1),C("ngSwitchCase","DATE"))},SDa=function(a){var b;return{changelistNumbers:null!=(b=jb(a,1))?b:[]}},TDa=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:[]}},UDa=function(a,b){a&1&&(F(0,"span",9),O(1," by "),H(2,"b-user-display-name",
10),G());a&2&&(a=b.ngIf,B(2),C("email",a)("hovercardEnabled",!1))},VDa=function(a,b){a&1&&(F(0,"div")(1,"span"),O(2),G(),H(3,"b-formatted-date-time",11),G());a&2&&(a=b.ngIf,b=K().ngIf,B(2),Ee(b.pending?"Created on: ":"Submitted on: "),B(1),C("timestamp",a))},WDa=function(a,b){a&1&&(qe(0),H(1,"br"),O(2),re());a&2&&(a=b.$implicit,B(2),De("",a," "))},XDa=function(a,b){a&1&&(qe(0),F(1,"div",3)(2,"a",4),O(3," CL "),F(4,"span"),O(5),G()(),M(6,UDa,3,2,"span",5),H(7,"br")(8,"br"),M(9,VDa,4,2,"div",2),F(10,
"div",6),H(11,"div",7)(12,"br"),F(13,"div"),O(14," Affected files: "),M(15,WDa,3,1,"ng-container",8),G()()(),re());a&2&&(a=b.ngIf,b=K(),B(2),C("href","http://critique.corp.google.com/"+b.changelistId,Md),B(3),Ee(b.changelistId),B(1),C("ngIf",a.author),B(3),C("ngIf",a.timestamp),B(2),C("innerHTML",a.description,Ld),B(4),C("ngForOf",a.affectedFiles))},YDa=function(a){a&1&&H(0,"b-changelist-card",3,4);if(a&2){var b=Ce(1);a=K();C("onedevIsHovercardReady",b.init)("changelistId",a.changelistId)}},ZDa=function(a){if(a&
1){var b=x();F(0,"a",15);J("click",function(){z(b);var c=K();return A(c.trackClick("viewTeamAssociationOnComponent"))});F(1,"button",11);O(2,"View team association on component");G()()}a&2&&(a=K(),C("href",a.manageComponentLink(),Md))},$Da=function(a){if(a&1){var b=x();F(0,"a",6);J("click",function(){z(b);var d=K(2);return A(d.trackClick("viewTeamInMoma"))});F(1,"span");O(2);H(3,"mat-icon",7);G()()}if(a&2){a=K(2);var c=Ce(3);ze("href","https://moma.corp.google.com/team/",a.teamId,"",Md);C("onedevHovercardTrigger",
c);ge("aria-labelledby",a.linkAriaLabelledBy())("aria-label",(a.teamName?a.teamName:a.teamId)+" - link opens in a new tab");B(1);ge("id",a.teamLinkId);B(1);De("",a.teamName?a.teamName:a.teamId," ")}},aEa=function(a){a&1&&(F(0,"span",8),O(1),G());if(a&2){a=K(2);var b=Ce(3);C("onedevHovercardTrigger",b);B(1);Ee(a.teamName?a.teamName:a.teamId)}},bEa=function(a){a&1&&(qe(0),M(1,$Da,4,6,"a",4),M(2,aEa,2,2,"span",5),re());a&2&&(a=K(),B(1),C("ngIf",a.anchorLinkEnabled),B(1),C("ngIf",!a.anchorLinkEnabled))},
cEa=function(a){a&1&&H(0,"span",11)},dEa=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K(2),B(1),Ee(a.teamNotAssignedMessage))},eEa=function(a){a&1&&(M(0,cEa,1,0,"span",9),M(1,dEa,2,1,"span",10));a&2&&(a=K(),C("ngIf","0"!=a.teamId),B(1),C("ngIf","0"==a.teamId))},fEa=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}},gEa=function(a,b,c){var d=a.bottom,e=a.left,f=a.right;return c>=a.top&&c<=d&&b>=e&&b<=f},
gp=function(a,b,c){a.top+=b;a.bottom=a.top+a.height;a.left+=c;a.right=a.left+a.width},hEa=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},lEa=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?iEa(a,b):("input"===d||"select"===d||"textarea"===d)&&jEa(a,b);kEa("canvas",a,b,iEa);kEa("input, textarea, select",
a,b,jEa);return b},kEa=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])},jEa=function(a,b){"file"!==b.type&&(b.value=a.value);"radio"===b.type&&b.name&&(b.name="mat-clone-"+b.name+"-"+mEa++)},iEa=function(a,b){if(b=b.getContext("2d"))try{b.drawImage(a,0,0)}catch(c){}},nEa=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)}},
hp=function(a,b){var c=b?"":"none";nEa(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})},pEa=function(a,b){nEa(a.style,{position:b?"":"fixed",top:b?"":"0",opacity:b?"":"0",left:b?"":"-999em"},oEa)},ip=function(a,b){return b&&"none"!=b?a+" "+b:a},qEa=function(a){var b=-1<a.toLowerCase().indexOf("ms")?1:1E3;return parseFloat(a)*b},sEa=function(a){a=getComputedStyle(a);
var b=rEa(a,"transition-property"),c=b.find(function(d){return"transform"===d||"all"===d});if(!c)return 0;b=b.indexOf(c);c=rEa(a,"transition-duration");a=rEa(a,"transition-delay");return qEa(c[b])+qEa(a[b])},rEa=function(a,b){return a.getPropertyValue(b).split(",").map(function(c){return c.trim()})},jp=function(a,b){return"translate3d("+Math.round(a)+"px, "+Math.round(b)+"px, 0)"},kp=function(a){return"t"===a.type[0]},tEa=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},uEa=function(a,b){a.style.width=b.width+"px";a.style.height=b.height+"px";a.style.transform=jp(b.left,b.top)},lp=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}},vEa=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},wEa=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},xEa=function(a){a&1&&(F(0,"label",15),O(1),G());a&2&&(a=K(),ge("aria-label",a.title),B(1),De(" ",a.title," "))},yEa=function(a){a&1&&(F(0,"div"),H(1,"b-changelist-link",27),G());if(a&2){a=K(2).$implicit;var b=K();B(1);C("changelistId",b.asNumber(a))}},zEa=function(a){a&1&&(F(0,"div")(1,"a",28),O(2),G()());if(a&2){a=K(3).$implicit;var b=K();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"}C("href",b+"/"+a.workspaceId+"/work_item/b/"+a.issueId,Md);ge("aria-label","Workspace"+a.workspaceId);B(1);De(" ",a.workspaceName," ")}},AEa=function(a){a&1&&M(0,zEa,3,3,"div",20);if(a&2){K();var b=Ce(6);K();a=K();C("ngIf","WORKSPACES"===a.type)("ngIfElse",b)}},BEa=function(a){a&1&&(F(0,"div"),H(1,"b-team-display",29),G());a&2&&(a=K(3).$implicit,B(1),C("teamId",a.teamId)("componentId",a.componentId))},CEa=function(a){a&1&&M(0,
BEa,2,2,"div",20);if(a&2){K();var b=Ce(8);K();a=K();C("ngIf","TEAM"===a.type)("ngIfElse",b)}},DEa=function(a){if(a&1){var b=x();F(0,"div")(1,"a",30);J("click",function(){z(b);var c=K(4);return A(c.trackClick("postmortem"))});O(2);G()()}a&2&&(a=K(3).$implicit,B(1),ze("href","https://pm.corp.google.com/",a,"",Md),ie("aria-label","Postmortem ",a,""),B(1),De(" ",a," "))},EEa=function(a){a&1&&M(0,DEa,3,3,"div",20);if(a&2){K();var b=Ce(10);K();a=K();C("ngIf","POSTMORTEMS"===a.type)("ngIfElse",b)}},FEa=
function(a){a&1&&(F(0,"div"),H(1,"b-truncated-span",32),G());if(a&2){a=K(3).$implicit;var b=K();B(1);C("maxWidth",150)("modelValue",a)("disabled",!b.truncate)}},GEa=function(a){a&1&&H(0,"b-user-membership-chip",36);if(a&2){a=K(4).$implicit;var b=K();C("user",b.getUser(a))("email",a)("teamId",b.teamId)("enableSmallChip",!0)}},HEa=function(a){a&1&&(F(0,"b-person-hovercard",37),O(1),G());a&2&&(a=K(4).$implicit,C("email",a),B(1),De(" ",a," "))},IEa=function(a){a&1&&(F(0,"div",33),M(1,GEa,1,4,"b-user-membership-chip",
34),M(2,HEa,2,2,"b-person-hovercard",35),G());a&2&&(a=K(4),B(1),C("ngIf",a.enableTeamAnnotations),B(1),C("ngIf",!a.enableTeamAnnotations))},JEa=function(a){a&1&&(M(0,FEa,2,3,"div",7),M(1,IEa,3,2,"div",31));if(a&2){a=K(2).$implicit;var b=K();C("ngIf",!b.isUser&&b.isString(a));B(1);C("ngIf",b.isUser&&b.isString(a))}},KEa=function(a){if(a&1){var b=x();F(0,"button",38,39);J("click",function(){z(b);var d=K(2).index,e=K();return A(e.removeItem(d))});G()}if(a&2){a=K(2).$implicit;var c=K();je("aria-label",
"Remove ",a," from ",c.title,"");C("disabled",c.listFieldDisabled)("matTooltip","Remove item")}},LEa=function(a){a&1&&(F(0,"div",18)(1,"div",19),M(2,yEa,2,1,"div",20),M(3,AEa,1,2,"ng-template",null,21,Jf),M(5,CEa,1,2,"ng-template",null,22,Jf),M(7,EEa,1,2,"ng-template",null,23,Jf),M(9,JEa,2,2,"ng-template",null,24,Jf),G(),M(11,KEa,2,4,"button",25),H(12,"div",26),G());if(a&2){var b=Ce(4);K();a=K();B(2);C("ngIf","CHANGELISTS"===a.type)("ngIfElse",b);B(9);C("ngIf",!a.readonly&&"REPEATED_ENUM"!==a.type)}},
MEa=function(a,b){a&1&&(F(0,"div",16),M(1,LEa,13,3,"div",17),G());a&2&&(a=b.index,b=K(),B(1),C("ngIf",b.showingAll||a<b.defaultLineCount||!!b.values&&b.values.length===b.defaultLineCount+1))},NEa=function(a){if(a&1){var b=x();F(0,"div",40,41);J("click",function(c){z(b);var d=K();return A(mp(d,!1,c))})("keydown.enter",function(c){z(b);var d=K();return A(mp(d,!1,c))})("keydown.space",function(c){z(b);var d=K();return A(mp(d,!1,c))});O(2," (show fewer) ");G()}a&2&&(a=K(),je("aria-label","Show at most ",
a.defaultLineCount," ",a.title," items"),ze("matTooltip","Show a truncated list of at most ",a.defaultLineCount," items"))},OEa=function(a){if(a&1){var b=x();F(0,"div")(1,"div",42);O(2);F(3,"span",43,44);J("click",function(c){z(b);var d=K();return A(mp(d,!0,c))})("keydown.enter",function(c){z(b);var d=K();return A(mp(d,!0,c))})("keydown.space",function(c){z(b);var d=K();return A(mp(d,!0,c))});O(5," (show all) ");G()()()}a&2&&(a=K(),B(2),De(" ... and ",a.values.length-a.defaultLineCount," more "),
B(1),je("aria-label","Show all ",null==a.values?null:a.values.length," ",a.title," items"),ze("matTooltip","Show all ",null==a.values?null:a.values.length," items in the list"))},PEa=function(a){a&1&&(F(0,"div"),O(1,"--"),G())},SEa=function(a){if(a&1){var b=x();F(0,"button",49);J("menuOpened",function(){z(b);var d=K(2);QEa(d);d.enumPendingValues=new Set(d.values||[]);return A()})("menuClosed",function(){z(b);var d=K(2);return A(REa(d))});O(1,"Edit ");G()}if(a&2){a=K(2);var c=Ce(15);ie("aria-label",
"Add item to ",a.title,"");C("matMenuTriggerFor",c)}},TEa=function(a){a&1&&(F(0,"button",50),O(1,"Add "),G());if(a&2){a=K(2);var b=Ce(20);ie("aria-label","Add item to ",a.title,"");C("xapInlineDialogClick",b)("overlayPositions",a.OVERLAY_POSITION_LIST)}},UEa=function(a){a&1&&(F(0,"button",51),O(1,"Add "),G());if(a&2){a=K(2);var b=Ce(18);ie("aria-label","Add item to ",a.title,"");C("xapInlineDialogClick",b)("overlayPositions",a.OVERLAY_POSITION_LIST)}},VEa=function(a){a&1&&(qe(0,45),M(1,SEa,2,2,"button",
46),M(2,TEa,2,3,"button",47),M(3,UEa,2,3,"button",48),re());a&2&&(a=K(),C("ngSwitch",a.type),B(1),C("ngSwitchCase","REPEATED_ENUM"),B(1),C("ngSwitchCase","REPEATED_DATE"))},WEa=function(a){a&1&&ye(0,1,["*ngIf","!readonly"])},XEa=function(a,b){if(a&1){var c=x();F(0,"button",53);J("click",function(d){var e=z(c).$implicit,f=K(2);e=e.value;f.enumPendingValues.has(e)?f.enumPendingValues.delete(e):f.enumPendingValues.add(e);null==d||d.stopPropagation();return A()});F(1,"span",54);H(2,"mat-icon",55);G();
O(3);G()}a&2&&(a=b.$implicit,b=K(2),le("b-menu-item-checked",b.enumPendingValues.has(a.value)),C("disabled",b.listFieldDisabled),ge("aria-label",a.displayText),B(3),De(" ",a.displayText," "))},YEa=function(a){a&1&&M(0,XEa,4,5,"button",52);a&2&&(a=K(),C("ngForOf",a.sortedEnumChoices)("ngForTrackBy",a.trackByIndex))},ZEa=function(a){a&1&&H(0,"input",65);a&2&&(a=K(2),ie("aria-label","Addition to ",a.title,""),C("bContactAutocomplete","MULTI"))},$Ea=function(a){a&1&&H(0,"input",66);a&2&&(a=K(2),ie("aria-label",
"Addition to ",a.title,""),C("type","REPEATED_NUMERIC"===a.type?"number":"text"))},bFa=function(a){if(a&1){var b=x();F(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"form",56,57);J("ngSubmit",function(){z(b);var d=Ce(3),e=Ce(4),f=K();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()});M(5,ZEa,1,2,"input",58);M(6,$Ea,1,2,"input",59);F(7,"div",60)(8,"button",61);H(9,"mat-icon",62);G();F(10,"button",63);J("click",
function(){z(b);var d=K();return A(aFa(d,!0))});H(11,"mat-icon",64);G()()()()()}if(a&2){var c=Ce(3);a=K();B(5);C("ngIf",a.isUser);B(1);C("ngIf",!a.isUser);B(2);ie("aria-label","Apply addition to ",a.title,"");C("disabled",!c.valid||a.listFieldDisabled);B(2);ie("aria-label","Discard addition to ",a.title,"")}},cFa=function(a){if(a&1){var b=x();F(0,"b-date-time-picker-content",67);J("dateChange",function(c){z(b);var d=K();return A(c&&d.addItems(c))})("cancelClicked",function(){z(b);var c=K();return A(aFa(c,
!1))});G()}a&2&&C("required",!0)("renderPanel",!1)},np=function(a,b){return{originX:a,originY:b}},op=function(a,b){return{overlayX:a,overlayY:b}},fFa=function(a){if(a&1){var b=x();F(0,"b-edit-field",3);J("valueChange",function(e){z(b);var f=K(2);return A(f.save.emit(e))});G()}if(a&2){a=K().ngIf;var c=K(),d;C("readonly",c.readonly)("name","customField"+c.field.customFieldId)("title",c.field.name)("type",c.field.type)("tooltip",c.getTooltip())("clearable",!c.field.required)("value",dFa(c))("displayValueOverride",
c.getDisplayValue())("choices",null!==(d=a.choices)&&void 0!==d?d:He(11,eFa))("showEnumTitle",!0)("disabled",c.disabled)}},hFa=function(a){if(a&1){var b=x();F(0,"b-list-field",4);J("valuesChange",function(d){z(b);var e=K(2);return A(e.save.emit(d.values))});G()}if(a&2){a=K().ngIf;var c=K();C("readonly",c.readonly)("defaultLineCount",3)("title",c.field.name)("type",c.field.type)("tooltip",c.getTooltip())("values",gFa(c))("displayValuesOverride",a.displayValues)("enumChoices",a.choices)("listFieldDisabled",
c.disabled)}},iFa=function(a,b){a&1&&(qe(0),M(1,fFa,1,12,"b-edit-field",1),M(2,hFa,1,9,"b-list-field",2),re());a&2&&(a=b.ngIf,B(1),C("ngIf",!a.isRepeated()),B(1),C("ngIf",a.isRepeated()))},jFa=function(a){a&1&&(qe(0),H(1,"mat-icon",9),re())},kFa=function(a){if(a&1){var b=x();qe(0);F(1,"button",10);J("mousedown",function(c){z(b);var d=K();return A(d.back(c))});H(2,"mat-icon",11);G();re()}},lFa=function(a){if(a&1){var b=x();qe(0);F(1,"button",12);J("mousedown",function(c){z(b);var d=K();return A(d.expand(d.componentOption,
c))});H(2,"mat-icon",13);G();re()}a&2&&(a=K(),B(1),C("matTooltip","View child components of "+a.componentOption.name),ge("aria-label","View child components of "+a.componentOption.name))},mFa=function(a){if(a&1){var b=x();qe(0);F(1,"a",17);J("mousedown",function(d){z(b);var e=K().$implicit;K(2).selectComponentId.emit(e.id);d.preventDefault();d.stopPropagation();return A()});P(2,"boldPrefixMatches");P(3,"toString");G();re()}if(a&2){a=K().$implicit;var c=K(2);B(1);C("innerHtml",Me(2,1,Q(3,4,a.name),
c.query),Ld)}},nFa=function(a){a&1&&O(0);a&2&&(a=K().$implicit,De(" ",a.name," "))},oFa=function(a){a&1&&(qe(0),O(1,"\u00a0>\u00a0"),re())},pFa=function(a,b){a&1&&(qe(0),M(1,mFa,4,6,"ng-container",5),M(2,nFa,1,1,"ng-template",null,15,Jf),M(4,oFa,2,0,"ng-container",16),re());if(a&2){a=b.$implicit;b=b.last;var c=Ce(3);B(1);C("ngIf",a.name!=a.id)("ngIfElse",c);B(3);C("ngIf",!b)}},qFa=function(a){a&1&&(qe(0),M(1,pFa,5,3,"ng-container",14),re());a&2&&(a=K(),B(1),C("ngForOf",a.componentOption.componentPath))},
rFa=function(a,b){if(a&1){var c=x();qe(0);F(1,"a",18);J("mousedown",function(d){var e=z(c).ngIf;K(2).selectComponentId.emit(e.id);d.preventDefault();d.stopPropagation();return A()});O(2);G();re()}a&2&&(a=b.ngIf,B(2),De(" ",a.name," "))},sFa=function(a){a&1&&M(0,rFa,3,1,"ng-container",16);a&2&&(a=K(),C("ngIf",a.componentOption.componentPath[a.componentOption.componentPath.length-1]))},tFa=function(a){a&1&&(F(0,"span",19),O(1," [Archived] "),G())},uFa=function(a){a&1&&H(0,"img",5);a&2&&(a=K(),ge("src",
a.getLogoUrl(),Md))},vFa=function(a){a&1&&(F(0,"span",9),O(1,"no components"),G())},wFa=function(a){a&1&&(F(0,"div",6),H(1,"div",7),P(2,"boldPrefixMatches"),M(3,vFa,2,0,"span",8),G());a&2&&(a=K(),B(1),C("innerHtml",Me(2,2,a.teamOption.name,a.query),Ld),B(2),C("ngIf",a.hasNoComponent))},xFa=function(a){if(a&1){var b=x();qe(0);F(1,"a",15);J("mousedown",function(c){z(b);var d=K(2).index,e=K(2);d=null==e.teamOption.pathIds?null:e.teamOption.pathIds[d];c.preventDefault();c.stopPropagation();d&&e.selectTeamId.emit(d);
return A()});O(2);G();re()}a&2&&(a=K(2).$implicit,B(2),Ee(a))},yFa=function(a){a&1&&O(0);a&2&&(a=K(2).$implicit,Ee(a))},zFa=function(a){a&1&&(qe(0),M(1,xFa,3,1,"ng-container",12),M(2,yFa,1,1,"ng-template",null,14,Jf),qe(4),O(5," \u00b7 "),re()());if(a&2){var b=Ce(3);a=K(3);B(1);C("ngIf",a.allowSegmentSelection)("ngIfElse",b)}},AFa=function(a){a&1&&(qe(0),F(1,"strong",17),O(2),G(),re());a&2&&(a=K(2).$implicit,B(2),Ee(a))},BFa=function(a){a&1&&O(0);a&2&&(a=K(2).$implicit,Ee(a))},CFa=function(a){a&1&&
(M(0,AFa,3,1,"ng-container",12),M(1,BFa,1,1,"ng-template",null,16,Jf));if(a&2){var b=Ce(2);a=K(3);C("ngIf",a.compact)("ngIfElse",b)}},DFa=function(a,b){a&1&&(qe(0),M(1,zFa,6,2,"ng-container",12),M(2,CFa,3,2,"ng-template",null,13,Jf),re());if(a&2){a=b.last;var c=Ce(3);B(1);C("ngIf",!a)("ngIfElse",c)}},EFa=function(a){a&1&&(F(0,"div",10),M(1,DFa,4,2,"ng-container",11),G());a&2&&(a=K(),B(1),C("ngForOf",a.teamOption.pathNames))},FFa=function(a){return{type:"team",id:a.getId(),name:a.getName(),description:a.getDescription(),
pathNames:a.getPathNamesList(),pathIds:a.getPathIdsList(),expanded:!1}},GFa=function(a){return{type:"team",id:a.getId(),name:a.getName(),description:a.getDescription(),expanded:!1}},pp=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}},HFa=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(GFa)]}))},IFa=function(){var a=t(ji),b=a?a.location:null;return{getPathname:function(){return b?b.pathname+b.search:""}}},JFa=function(a){if(a&1){var b=x();F(0,"button",9);J("mousedown",function(c){z(b);K().clearQuery();return A(qp(c))});H(1,"mat-icon",10);G()}},KFa=function(a){a&1&&(F(0,"div",13),O(1," Checking for admin access... "),
G())},LFa=function(a){a&1&&(F(0,"div",15),O(1," You do not have admin access to this component. "),F(2,"a",16),O(3,"View component admins"),G()());a&2&&(a=K(3),B(2),C("href",a.paths.manageComponent(a.selectedComponent.componentId,"access"),Md))},MFa=function(a){a&1&&M(0,LFa,4,1,"div",14);a&2&&(a=K(2),C("ngIf",!a.hasAccess&&a.selectedComponent))},NFa=function(a){a&1&&(F(0,"div"),M(1,KFa,2,0,"div",11),M(2,MFa,1,1,"ng-template",null,12,Jf),G());if(a&2){var b=Ce(3);a=K();B(1);C("ngIf",a.checkingAccess)("ngIfElse",
b)}},OFa=function(a){a&1&&H(0,"mat-progress-bar",24)},PFa=function(a){a&1&&(qe(0),O(1,"s"),re())},RFa=function(a,b){if(a&1){var c=x();qe(0);F(1,"div",30);J("mousedown",function(e){var f=z(c).$implicit,h=K(5);QFa(h.searchState,f);return A(qp(e))});F(2,"team-row",31);J("selectTeamId",function(e){z(c);var f=K(5);return A(rp(f.searchState,e))});G()();re()}if(a&2){a=b.$implicit;b=K(5);var d=Ce(3);B(1);C("data",a);B(1);C("teamOption",a)("query",d.value)("hasNoComponent",b.searchState.hasNoComponent(a.id))}},
SFa=function(a){a&1&&(F(0,"div",27)(1,"div",28),O(2," Filter components by my teams "),F(3,"span"),O(4),M(5,PFa,2,0,"ng-container",5),G()(),M(6,RFa,3,4,"ng-container",29),H(7,"mat-divider"),G());a&2&&(a=K().ngIf,B(4),De("",a.length," team"),B(1),C("ngIf",1<a.length),B(1),C("ngForOf",a))},TFa=function(a,b){a&1&&(qe(0),M(1,SFa,8,3,"div",26),re());a&2&&(a=b.ngIf,B(1),C("ngIf",a.length))},UFa=function(a){a&1&&ue(0)},WFa=function(a){a&1&&(qe(0),M(1,TFa,2,1,"ng-container",5),P(2,"async"),M(3,UFa,1,0,"ng-container",
25),re());if(a&2){a=K(2);var b=Ce(12);B(1);C("ngIf",Q(2,3,a.searchState.myTeams$));B(2);C("ngTemplateOutlet",b)("ngTemplateOutletContext",Ie(5,VFa,a.searchState.recentComponents))}},XFa=function(a){a&1&&(qe(0),O(1,"s"),re())},YFa=function(a){a&1&&ue(0)},aGa=function(a,b){a&1&&(qe(0),M(1,YFa,1,0,"ng-container",25),re());if(a&2){a=b.$implicit;b=b.index;K(5);var c=Ce(10);B(1);C("ngTemplateOutlet",c)("ngTemplateOutletContext",Je(4,ZFa,a,Ie(2,$Fa,b)))}},bGa=function(a){if(a&1){var b=x();F(0,"button",33);
J("mousedown",function(){z(b);var c=K(5);return A(c.searchState.showAllTeams$.next(!0))});H(1,"mat-icon",34);O(2," Show all teams ");G()}},cGa=function(a,b){a&1&&(F(0,"div",27)(1,"div",28),O(2," Filter components by teams "),F(3,"span"),O(4),M(5,XFa,2,0,"ng-container",5),G()(),M(6,aGa,2,7,"ng-container",29),P(7,"async"),M(8,bGa,3,0,"button",32),P(9,"async"),H(10,"mat-divider"),G());a&2&&(a=b.ngIf,b=K(4),B(4),De("",a," team"),B(1),C("ngIf",1<a),B(1),C("ngForOf",Q(7,4,b.searchState.filteredTeamOptions$)),
B(2),C("ngIf",Q(9,6,b.searchState.hasHiddenTeams$)))},dGa=function(a,b){a&1&&(qe(0),M(1,cGa,11,8,"div",26),re());a&2&&(a=b.ngIf,B(1),C("ngIf",a.length))},eGa=function(a){a&1&&ue(0)},gGa=function(a){a&1&&(qe(0),M(1,dGa,2,1,"ng-container",5),P(2,"async"),M(3,eGa,1,0,"ng-container",25),re());if(a&2){a=K(2);var b=Ce(12);B(1);C("ngIf",Q(2,3,a.searchState.teamOptions$));B(2);C("ngTemplateOutlet",b)("ngTemplateOutletContext",Ie(5,fGa,a.searchState.componentOptions))}},hGa=function(a){a&1&&ue(0)},jGa=function(a,
b){a&1&&(qe(0),M(1,hGa,1,0,"ng-container",25),re());if(a&2){a=b.$implicit;b=b.index;K(7);var c=Ce(10);B(1);C("ngTemplateOutlet",c)("ngTemplateOutletContext",Je(4,ZFa,a,Ie(2,iGa,b)))}},kGa=function(a){a&1&&(F(0,"div",42),M(1,jGa,2,7,"ng-container",29),G());a&2&&(a=K(2).ngIf,B(1),C("ngForOf",a))},nGa=function(a){if(a&1){var b=x();qe(0);M(1,kGa,2,1,"div",41);F(2,"button",33);J("mousedown",function(c){z(b);var d=K(5),e=d.searchState.teamScope$.value;e.expanded?lGa(d.searchState,e):mGa(d.searchState,e);
return A(qp(c))});H(3,"mat-icon",34);O(4);G();re()}a&2&&(a=K(5),B(1),C("ngIf",a.searchState.teamScope$.value.expanded),B(2),le("expanded",a.searchState.teamScope$.value.expanded),B(1),De(" ",a.searchState.teamScope$.value.expanded?"Hide":"Show"," child teams "))},oGa=function(a,b){a&1&&(qe(0),M(1,nGa,5,4,"ng-container",5),re());a&2&&(a=b.ngIf,B(1),C("ngIf",a.length))},qGa=function(a){if(a&1){var b=x();F(0,"div",36)(1,"div",28);O(2," Filtering by team: ");G();F(3,"div",37)(4,"team-row",38);J("selectTeamId",
function(d){z(b);var e=K(3);return A(rp(e.searchState,d))});G();F(5,"button",39);J("mousedown",function(d){z(b);var e=K(3);sp(e.searchState);return A(qp(d))});H(6,"mat-icon",40);G()();M(7,oGa,2,1,"ng-container",5);G()}if(a&2){a=K(3);var c=Ce(3);B(3);C("data",a.searchState.teamScope$.value)("listOrder",He(7,pGa));B(1);C("teamOption",a.searchState.teamScope$.value)("query",c.value)("compact",!0)("allowSegmentSelection",!0);B(3);C("ngIf",a.searchState.getChildTeams(a.searchState.teamScope$.value.id))}},
rGa=function(a){a&1&&ue(0)},tGa=function(a){a&1&&(qe(0),M(1,qGa,8,8,"div",35),M(2,rGa,1,0,"ng-container",25),re());if(a&2){a=K(2);var b=Ce(12);B(1);C("ngIf",a.searchState.teamScope$.value);B(1);C("ngTemplateOutlet",b)("ngTemplateOutletContext",Je(3,sGa,a.searchState.componentOptions,a.searchState.teamScope$.value))}},wGa=function(a){if(a&1){var b=x();F(0,"div",44)(1,"div",45);O(2,"Component Tree Browser");G();F(3,"component-row",46);J("goBack",function(){z(b);var c=K(3);return A(uGa(c.searchState))})("selectComponentId",
function(c){z(b);var d=K(3);return A(vGa(d.searchState,c))});G()()}a&2&&(a=K(3),B(3),C("componentOption",a.searchState.componentScope))},xGa=function(a){a&1&&ue(0)},zGa=function(a){a&1&&(qe(0),M(1,wGa,4,1,"div",43),M(2,xGa,1,0,"ng-container",25),re());if(a&2){a=K(2);var b=Ce(12);B(1);C("ngIf",a.searchState.componentScope);B(1);C("ngTemplateOutlet",b)("ngTemplateOutletContext",Ie(3,yGa,a.searchState.componentOptions))}},AGa=function(a){if(a&1){var b=x();F(0,"div",17,18);J("mousedown",function(c){z(b);
K();return A(qp(c))});F(2,"div",19);M(3,OFa,1,0,"mat-progress-bar",20);G();F(4,"div",21);qe(5,22);P(6,"async");M(7,WFa,4,7,"ng-container",23);M(8,gGa,4,7,"ng-container",23);M(9,tGa,3,6,"ng-container",23);M(10,zGa,3,5,"ng-container",23);re();G()()}a&2&&(a=K(),B(3),C("ngIf",a.isLoading()),B(2),C("ngSwitch",Q(6,6,a.searchState.state$)),B(2),C("ngSwitchCase","default"),B(1),C("ngSwitchCase","global"),B(1),C("ngSwitchCase","team_scope"),B(1),C("ngSwitchCase","component_scope"))},BGa=function(a){if(a&1){var b=
x();F(0,"button",50);J("mousedown",function(c){z(b);var d=K().team,e=K();d.expanded?lGa(e.searchState,d):mGa(e.searchState,d);return A(qp(c))});H(1,"mat-icon",51);G()}a&2&&(a=K().team,B(1),le("expanded",a.expanded))},CGa=function(a){a&1&&ue(0)},EGa=function(a,b){a&1&&(qe(0),M(1,CGa,1,0,"ng-container",25),re());if(a&2){a=b.$implicit;b=b.index;var c=K(2),d=c.level;c=c.order;K();var e=Ce(10);B(1);C("ngTemplateOutlet",e)("ngTemplateOutletContext",Ke(DGa,a,d+1,c.concat(b)))}},FGa=function(a){a&1&&(qe(0),
M(1,EGa,2,6,"ng-container",29),re());if(a&2){a=K().team;var b=K();B(1);C("ngForOf",b.searchState.getChildTeams(a.id))}},GGa=function(a,b){if(a&1){var c=x();F(0,"div",47);J("mousedown",function(h){var k=z(c).team,q=K();QFa(q.searchState,k);return A(qp(h))});F(1,"div",48);M(2,BGa,2,2,"button",49);F(3,"team-row",31);J("selectTeamId",function(h){z(c);var k=K();return A(rp(k.searchState,h))});G()()();M(4,FGa,2,1,"ng-container",5)}if(a&2){a=b.team;var d=b.level;b=b.order;var e=K(),f=Ce(3);C("listOrder",
b)("data",a);B(1);ke("margin-left",28*d,"px");B(1);C("ngIf",e.searchState.getChildTeams(a.id).length);B(1);le("indent",!e.searchState.getChildTeams(a.id).length);C("teamOption",a)("query",f.value)("hasNoComponent",e.searchState.hasNoComponent(a.id));B(1);C("ngIf",a.expanded)}},HGa=function(a){a&1&&(qe(0),O(1,"s"),re())},JGa=function(a,b){if(a&1){var c=x();F(0,"div",56);J("mousedown",function(e){var f=z(c).$implicit,h=K(3);IGa(h.searchState,f.id);return A(qp(e))});F(1,"component-row",57);J("selectComponentId",
function(e){z(c);var f=K(3);return A(IGa(f.searchState,e))})("expandComponent",function(e){z(c);var f=K(3);return A(f.searchState.expandComponent(e))});G()()}if(a&2){a=b.$implicit;b=K(2).mode;K();var d=Ce(3);C("data",a);B(1);C("componentOption",a)("query",d.value)("mode",b)}},KGa=function(a,b){a&1&&(F(0,"div",54)(1,"div",28),O(2),F(3,"span"),O(4),M(5,HGa,2,0,"ng-container",5),G()(),M(6,JGa,2,4,"div",55),G());if(a&2){a=b.ngIf;var c=K();b=c.mode;c=c.$implicit;B(2);De(" ","recent"===b?"Select recent component":
"Select component"," ");B(2);De("",a," component");B(1);C("ngIf",1<a);B(1);C("ngForOf",c)}},LGa=function(a){a&1&&(qe(0),O(1," No recent components "),re())},MGa=function(a){a&1&&(qe(0),O(1," No child components "),re())},NGa=function(a){a&1&&(qe(0),O(1),H(2,"mat-icon",61),O(3," above ("),F(4,"a",62),O(5,"learn more "),H(6,"mat-icon",63),G(),O(7," about team associations)"),re());a&2&&(a=K(4).teamScope,B(1),De(" for ",a.name,". Remove the team filter by clicking on the "))},OGa=function(a){a&1&&(qe(0),
O(1," No components found "),M(2,NGa,8,1,"ng-container",5),re());a&2&&(a=K(3).teamScope,B(2),C("ngIf",a))},PGa=function(a){a&1&&(F(0,"div",59),qe(1,22),M(2,LGa,2,0,"ng-container",23),M(3,MGa,2,0,"ng-container",23),M(4,OGa,3,1,"ng-container",60),re(),G());a&2&&(a=K(2).mode,B(1),C("ngSwitch",a),B(1),C("ngSwitchCase","recent"),B(1),C("ngSwitchCase","leaf"))},QGa=function(a){a&1&&M(0,PGa,5,3,"div",58);a&2&&(a=K(2),C("ngIf",!(a.componentLoading||a.searchState.componentsLoading)))},RGa=function(a,b){a&
1&&(M(0,KGa,7,4,"div",52),M(1,QGa,1,1,"ng-template",null,53,Jf));if(a&2){a=b.$implicit;var c=Ce(2);C("ngIf",a.length)("ngIfElse",c)}},SGa=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},TGa=function(a){a&1&&(F(0,"div"),O(1," Loading custom fields... "),G())},UGa=function(a){a&1&&(F(0,"div"),O(1),G());a&2&&(a=K(2),B(1),De(" There are no custom fields in component ",
a.selectedComponent.name,". "))},VGa=function(a,b){a&1&&(F(0,"mat-option",9),O(1),G());a&2&&(a=b.$implicit,C("value",a),B(1),De(" ",a.name," "))},WGa=function(a){if(a&1){var b=x();F(0,"div")(1,"mat-form-field",6)(2,"mat-label");O(3,"Custom field");G();F(4,"mat-select",7);J("selectionChange",function(c){z(b);var d=K(2);return A(d.fieldSelected.emit(c.value))});M(5,VGa,2,2,"mat-option",8);G()()()}a&2&&(a=K(2),B(5),C("ngForOf",a.customFields))},XGa=function(a){a&1&&(F(0,"div",4),M(1,TGa,2,0,"div",5),
M(2,UGa,2,1,"div",5),M(3,WGa,6,1,"div",5),G());a&2&&(a=K(),B(1),C("ngIf",null==a.customFields),B(1),C("ngIf",a.customFields&&!a.customFields.length),B(1),C("ngIf",null==a.customFields?null:a.customFields.length))},YGa=function(a){a&1&&ue(0)},ZGa=function(){},$Ga=function(a){a&1&&(qe(0),O(1),re());a&2&&(a=K().value,B(1),Ee(a.textValue))},aHa=function(a){a&1&&(qe(0),H(1,"b-formatted-date-time",5),re());if(a&2){a=K().value;var b=K();B(1);C("date",b.toDate(a.dateValue))}},bHa=function(a){a&1&&(qe(0),
O(1),re());a&2&&(a=K().value,B(1),Ee(a.enumValue))},cHa=function(a){a&1&&(qe(0),O(1),re());a&2&&(a=K().value,B(1),Ee(a.numericValue))},dHa=function(a,b){a&1&&(qe(0),O(1),re());a&2&&(a=b.$implicit,b=b.last,B(1),Fe("",a,"",b?"":", ",""))},eHa=function(a){a&1&&(qe(0),M(1,dHa,2,2,"ng-container",6),re());a&2&&(a=K().value,B(1),C("ngForOf",a.repeatedTextValue.values))},fHa=function(a,b){a&1&&(qe(0),H(1,"b-formatted-date-time",5),O(2),re());if(a&2){a=b.$implicit;b=b.last;var c=K(3);B(1);C("date",c.toDate(a));
B(1);Ee(b?"":", ")}},gHa=function(a){a&1&&(qe(0),M(1,fHa,3,2,"ng-container",6),re());a&2&&(a=K().value,B(1),C("ngForOf",a.repeatedDateValue.values))},hHa=function(a,b){a&1&&(qe(0),O(1),re());a&2&&(a=b.$implicit,b=b.last,B(1),Fe("",a,"",b?"":", ",""))},iHa=function(a){a&1&&(qe(0),M(1,hHa,2,2,"ng-container",6),re());a&2&&(a=K().value,B(1),C("ngForOf",a.repeatedEnumValue.values))},jHa=function(a,b){a&1&&(qe(0),O(1),re());a&2&&(a=b.$implicit,b=b.last,B(1),Fe("",a,"",b?"":", ",""))},kHa=function(a){a&
1&&(qe(0),M(1,jHa,2,2,"ng-container",6),re());a&2&&(a=K().value,B(1),C("ngForOf",a.repeatedNumericValue.values))},lHa=function(a,b){a&1&&(M(0,$Ga,2,1,"ng-container",4),M(1,aHa,2,1,"ng-container",4),M(2,bHa,2,1,"ng-container",4),M(3,cHa,2,1,"ng-container",4),M(4,eHa,2,1,"ng-container",4),M(5,gHa,2,1,"ng-container",4),M(6,iHa,2,1,"ng-container",4),M(7,kHa,2,1,"ng-container",4));a&2&&(a=b.value,b=K(),C("ngIf",null!=a.textValue),B(1),C("ngIf",b.isNonemptyJsonDateValue(a.dateValue)),B(1),C("ngIf",null!=
a.enumValue),B(1),C("ngIf",null!=a.numericValue),B(1),C("ngIf",null!=a.repeatedTextValue),B(1),C("ngIf",null!=a.repeatedDateValue),B(1),C("ngIf",null!=a.repeatedEnumValue),B(1),C("ngIf",null!=a.repeatedNumericValue))},tp=function(a){var b=void 0===b?mHa:b;var c=Ga(a),d=function(f){f=r(f);f.next();f=qf(f);return b(c,f)},e=function(f){var h=r(f);f=h.next().value;h=qf(h);return a.apply(f,h)};return function(){var f=qc.apply(0,arguments),h=this||ca,k=nHa.get(h);k||(k={},nHa.set(h,k));return oHa(k,[this].concat(u(f)),
e,d)}},up=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},vp=function(a,b){for(var c in a)if(c.toLowerCase()===b.toLowerCase())return a[c]},pHa=function(a,b){for(var c in a)if(c.toLowerCase()===b.toLowerCase()){delete a[c];break}},rHa=function(a){a=ch(a);for(var b=0;b<qHa.length;++b){var c=qHa[b],d=vp(a,c);d&&(a["X-Goog-Upload-Header-"+c]=d,pHa(a,c))}return a},sHa=function(a){a=
ch(a);pHa(a,"X-Goog-Upload-Status");return a},tHa=function(a){a&1&&(F(0,"span"),O(1),P(2,"humanFileSize"),P(3,"humanFileSize"),G());if(a&2){a=K().$implicit;var b;B(1);Fe(" ",Q(2,2,a.transferredBytes)," of ",Q(3,4,null!==(b=a.size)&&void 0!==b?b:0)," ")}},uHa=function(a){a&1&&(F(0,"span",11),O(1),G());a&2&&(a=K().$implicit,B(1),De(" ",a.errorMessage," "))},vHa=function(a){a&1&&(F(0,"span",11),O(1),P(2,"humanFileSize"),G());if(a&2){a=K().$implicit;var b;B(1);De(" ",Q(2,1,null!==(b=a.size)&&void 0!==
b?b:0)," ")}},xHa=function(a,b){if(a&1){var c=x();F(0,"div",3)(1,"div",4);H(2,"mat-icon",5);F(3,"span",6);O(4);G();F(5,"span",7);M(6,tHa,4,6,"span",8);M(7,uHa,2,1,"span",9);M(8,vHa,3,3,"span",9);G()();F(9,"button",10);J("click",function(){var d=z(c).$implicit,e=K(2);return A(e.cancel(d))});G()()}a&2&&(a=b.$implicit,b=K(2),C("ngClass",Ie(8,wHa,a.state===b.uploadStates.ERROR)),B(3),C("matTooltip",a.name),B(1),Ee(a.name),B(2),C("ngIf",a.state===b.uploadStates.UPLOADING),B(1),C("ngIf",a.state===b.uploadStates.ERROR),
B(1),C("ngIf",a.state===b.uploadStates.COMPLETE),B(1),C("matTooltip",a.state===b.uploadStates.UPLOADING?"Cancel upload":"Remove attachment"),ge("aria-label","Remove attachment"+a.name))},yHa=function(a){a&1&&(F(0,"div",1),M(1,xHa,10,10,"div",2),G());a&2&&(a=K(),B(1),C("ngForOf",a.uploads))},wp=function(a){this.action=a;this.wfv=!1},AHa=function(){var a=new xp,b=new yp;b.setParentId("root");var c=zHa();Bb(b,3,c);sl(b,4,1);Bb(a,3,b);a.setSourceId(2);a.setName("My Drive");return a},BHa=function(){var a=
new xp,b=new yp;mo(b,5,!0);var c=zHa();c.setType(7);c.setDirection(2);Bb(b,3,c);sl(b,4,1);Bb(a,3,b);a.setSourceId(2);a.setName("Shared with me");return a},CHa=function(){var a=new xp,b=new yp,c=new zp;c.setType(10);c.setDirection(2);Bb(b,3,c);sl(b,4,1);Bb(a,3,b);a.setSourceId(2);a.setName("Recent");return a},DHa=function(){var a=new xp,b=new yp;b.setStarred(!0);var c=zHa();Bb(b,3,c);sl(b,4,1);Bb(a,3,b);a.setSourceId(2);a.setName("Starred");return a},EHa=function(){var a=new xp,b=new yp;mo(b,11,!0);
Bb(a,3,b);a.setSourceId(2);a.setName("Shared drives");return a},zHa=function(){var a=new zp;a.setType(4);a.setDirection(1);return a},HHa=function(){var a=new Ap;a.addSource(FHa());a.addSource(GHa());return a},FHa=function(){var a=new xp,b=new Bp;b.setViewMode(1);sl(b,2,1);mo(b,5,!0);mo(b,6,!1);Bb(a,6,b);a.setSourceId(3);a.setName("Photos");return a},GHa=function(){var a=new xp,b=new Bp;b.setViewMode(2);mo(b,5,!0);mo(b,6,!1);Bb(a,6,b);a.setSourceId(3);a.setName("Albums");return a},IHa=function(){var a=
new xp,b=new Bp;b.setViewMode(1);sl(b,2,1);mo(b,5,!1);mo(b,6,!0);Bb(a,6,b);a.setSourceId(3);a.setName("Videos");return a},JHa=function(a,b){wp.call(this,"set-drive-options");this.appId=a;this.appOrigin=b},KHa=function(a){a=a&&a.getWindow()||window;return a.gadgets&&a.gadgets.rpc},LHa=function(a,b){var c=b&&b.getWindow()||window;if(KHa(b))a();else if(Cp)Cp.push(a);else var d=Cp=[a],e=c.setInterval(function(){if(KHa(b)){c.clearInterval(e);for(var f=0;f<d.length;f++)d[f]();Cp=null}},100)},NHa=function(a,
b){var c;a:{for(c=b.target;c;){if(1==c.nodeType){var d=Dp(c,"overflowY");if("auto"==d||"scroll"==d)break a}c=c.parentNode}c=null}(!c||!MHa(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()},Ep=function(a,b){if(b)if(b?(b=p(b,2),b=null===b||void 0===b?null:kh(b,null)):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=rh(b)}else OHa(a);else OHa(a)},OHa=function(a){for(;a.lastChild;)a.lastChild.remove()},Fp=function(a){return a.endsWith("px")?Math.floor(Number(a.substr(0,a.length-2))):Number.NaN},PHa=function(a){return a.ctrlKey||a.metaKey||a.shiftKey||a.altKey},QHa=function(a){if(a&1){var b=x();F(0,"div",5);J("clickOutside",function(){z(b);var c=K();return A(c.hide())});O(1);F(2,"button",6);J("click",function(){z(b);var c=K();return A(c.copyToClipboard())});H(3,"mat-icon",7);G()()}a&2&&(a=K(),B(1),
De(" Link may be malformed: ",a.originalHref," "))},RHa=function(a){a&1&&(F(0,"b-glue"),H(1,"mat-icon",5),G())},VHa=function(a){if(a&1){var b=x();F(0,"div",6);J("clickOutside",function(){z(b);var c=K();return A(c.hide())});F(1,"span",7)(2,"a",8);J("click",function(c){z(b);var d=K();return A(SHa(d,c))})("keydown",function(c){z(b);var d=K();return A(THa(d,c))});O(3);G()();F(4,"button",9);J("keydown.Tab",function(c){z(b);var d=K();return A(UHa(d,c))})("click",function(){z(b);var c=K();return A(c.copyToClipboard())});
H(5,"mat-icon",10);G()()}a&2&&(a=K(),B(2),C("href",a.originalHref,Md),B(1),Ee(a.originalHref))},WHa=function(a){for(;a.firstChild;)a.removeChild(a.firstChild)},XHa=function(a,b){a&1&&(qe(0),H(1,"b-plain-format-section",2),re());a&2&&(a=b.$implicit,B(1),C("section",a))},YHa=function(a){a&1&&H(0,"b-plain-format-quoted-section",1);a&2&&(a=K(),C("section",a.section))},ZHa=function(a){a&1&&H(0,"b-plain-format-unquoted-section",1);a&2&&(a=K(),C("section",a.section))},aIa=function(a){if(a&1){var b=x();F(0,
"a",4);J("click",function(){z(b);var c=K();c.showQuote=!0;$Ha(c);return A()});O(1," - Show quoted text - ");G()}a&2&&(a=K(),ge("aria-controls",a.childId))},bIa=function(a){if(a&1){var b=x();F(0,"a",5);J("click",function(){z(b);var c=K();c.showQuote=!1;$Ha(c);return A()});O(1," - Hide quoted text - ");G()}a&2&&(a=K(),ge("aria-controls",a.childId))},cIa=function(a,b){a&1&&(qe(0),H(1,"b-literal-format-presenter",1),re());a&2&&(a=b.ngIf,B(1),C("content",a))},dIa=function(a,b){a&1&&(qe(0),H(1,"b-markdown-format-presenter",
1),re());a&2&&(a=b.ngIf,B(1),C("content",a))},eIa=function(a,b){a&1&&(qe(0),H(1,"b-plain-format-presenter",1),re());a&2&&(a=b.ngIf,B(1),C("content",a))},fIa=function(a){switch(a.formattingMode){case 3:return(0,S.of)(zsa(a.comment));case 2:var b=new dn,c=new Gp,d=ksa(lh(""));c.setContent(d);b.setMarkdownFormat(c);return(0,S.of)(b);case void 0:case 1:case 0:return b=new dn,c=new Hp,d=new Ip,a=ksa(lh(a.comment)),d.setContent(a),c.addPlainSection(d),b.setPlainFormat(c),(0,S.of)(b);default:return mh(a.formattingMode,
"Unknown formatting mode: "+a.formattingMode)}},gIa=function(a,b){a&1&&(qe(0),F(1,"div",1),H(2,"b-formatted-comment-presenter",2),G(),re());a&2&&(a=b.$implicit,b=K(),B(1),le("invisible",""===(b.comment||"").trim())("error",a.isFallback),B(1),C("formattedComment",a.formattedComment))},hIa=function(a){a&1&&(F(0,"a",2),H(1,"mat-icon",3),G());a&2&&(a=K(),C("href",a.mdHelpLink,Md)("disableRipple",!0))},iIa=function(a){a&1&&H(0,"b-formatted-comment-presenter",4);a&2&&(a=K(),C("formattedComment",a.note.formattedComment))},
jIa=function(a){a&1&&H(0,"b-live-preview",5);a&2&&(a=K(),C("comment",a.rawComment)("issueId",a.issueId)("audience",a.audience)("formattingMode",a.formattingModeOverride||a.formattingMode)("idPrefix",a.idPrefix))},kIa=function(){return function(a){return{left:a?(a.offsetLeft||0)+"px":"0",width:a?(a.offsetWidth||0)+"px":"0"}}},lIa=function(){},mIa=function(a){a&1&&ye(0)},nIa=function(){},oIa=function(a){a&1&&M(0,nIa,0,0,"ng-template",10);a&2&&(a=K().$implicit,C("cdkPortalOutlet",a.templateLabel))},
pIa=function(a){a&1&&O(0);a&2&&(a=K().$implicit,Ee(a.textLabel))},qIa=function(a,b){if(a&1){var c=x();F(0,"div",6);J("click",function(){var f=z(c),h=f.$implicit;f=f.index;var k=K(),q=Ce(1);return A(k._handleClick(h,q,f))})("cdkFocusChange",function(f){var h=z(c).index,k=K();return A(k._tabFocusChanged(f,h))});F(1,"div",7);M(2,oIa,1,1,"ng-template",8);M(3,pIa,1,1,"ng-template",null,9,Jf);G()()}if(a&2){a=b.$implicit;b=b.index;var d=Ce(4),e=K();le("mat-tab-label-active",e.selectedIndex===b);C("id",e._getTabLabelId(b))("ngClass",
a.labelClass)("disabled",a.disabled)("matRippleDisabled",a.disabled||e.disableRipple);ge("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);C("ngIf",a.templateLabel)("ngIfElse",d)}},rIa=function(a,b){if(a&1){var c=x();F(0,"mat-tab-body",11);J("_onCentered",function(){z(c);var e=K();
return A(e._removeTabBodyWrapperHeight())})("_onCentering",function(e){z(c);var f=K();return A(f._setTabBodyWrapperHeight(e))});G()}if(a&2){a=b.$implicit;b=b.index;var d=K();le("mat-tab-body-active",d.selectedIndex===b);C("id",d._getTabContentId(b))("ngClass",a.bodyClass)("content",a.content)("position",a.position)("origin",a.origin)("animationDuration",d.animationDuration)("preserveContent",d.preserveContent);ge("tabindex",null!=d.contentTabIndex&&d.selectedIndex===b?d.contentTabIndex:null)("aria-labelledby",
d._getTabLabelId(b))}},tIa=function(a){if(a&1){var b=x();F(0,"input",7,8);J("change",function(){z(b);var c=K();if(Jp(c)){var d=Kp(c);Lp(c);sIa(c,!0);Kp(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=K();document.activeElement===Mp(d)&&("Enter"===c.key||"Tab"===c.key?(d.taggingInProgress=!1,sIa(d,!0),Kp(d).focus()):sIa(d));return A()});G()}a&
2&&(a=K(),C("value",a.autocompleteUserName))},uIa=function(a){a&1&&H(0,"div",9,10)},vIa=function(a){a&1&&ue(0)},wIa=function(a){a&1&&ue(0)},xIa=function(a){if(a&1){var b=x();qe(0);F(1,"button",13);J("click",function(){z(b);var c=K(2);return A(c.onRestrict.emit())});H(2,"mat-icon",14);G();re()}a&2&&(a=K(2),B(1),C("disabled",a.attachmentsDisabled))},yIa=function(a){if(a&1){var b=x();F(0,"button",15);J("click",function(){z(b);var c=K(2);return A(c.onRestrict.emit())});H(1,"mat-icon",14);O(2);G()}a&2&&
(a=K(2),B(2),De(" ",a.getRestrictedLabel()," "))},zIa=function(a){if(a&1){var b=x();F(0,"div",7);ye(1,0,["class","goog-inline-block"]);F(2,"b-attachment-selector",8);J("onSelect",function(d){z(b);var e=K();d=e.attachmentUploader.upload(d);e.comment&&e.comment.uploads.push(d);return A()});G();F(3,"b-drive-attachment",9);J("onPickDoc",function(d){z(b);var e=K();e.comment&&(e.comment.value+="\n\n"+d.url+" ("+d.name+")");return A()})("onCloneBlob",function(d){z(b);var e=K();e.comment&&e.comment.uploads.push(d);
return A()});G();F(4,"div",10);M(5,xIa,3,1,"ng-container",11);M(6,yIa,3,1,"ng-template",null,12,Jf);G()()}if(a&2){var c=Ce(7);a=K();B(2);C("disabled",a.attachmentsDisabled);B(1);C("disabled",a.attachmentsDisabled);B(2);C("ngIf",!a.isRestricted())("ngIfElse",c)}},AIa=function(a){a&1&&(F(0,"div"),H(1,"b-live-preview",16),G());a&2&&(a=K(),B(1),C("comment",a.comment.value)("issueId",a.issueId||0)("audience",a.audience)("formattingMode",a.comment.formattingMode))},CIa=function(a,b){if(a&1){var c=x();F(0,
"button",12);J("click",function(){var d=z(c).$implicit,e=K(3);return A(BIa(e.issueEditBuilder,d))});O(1);G()}a&2&&(a=b.$implicit,b=K(3),C("disabled",b.issueEditBuilder.issueState==a),B(1),De(" ",a.displayValue," "))},DIa=function(a){if(a&1){var b=x();F(0,"div",26)(1,"span");O(2,"Multiple");G();F(3,"a",27);J("click",function(){z(b);var c=K(4);return A(c.issueEditBuilder.clearAssignee())});O(4,"X");G()()}},EIa=function(a){if(a&1){var b=x();F(0,"div",26)(1,"span");O(2,"Possibly multiple");G();F(3,"a",
27);J("click",function(){z(b);var c=K(4);return A(c.issueEditBuilder.clearAssignee())});O(4,"X");G()()}},GIa=function(a){if(a&1){var b=x();F(0,"div")(1,"input",28);J("ngModelChange",function(c){z(b);var d=K(4);return A(d.issueEditBuilder.commonAssignee=c)})("ngModelChange",function(){z(b);var c=K(4);return A(FIa(c.issueEditBuilder))});G()()}a&2&&(a=K(4),B(1),C("ngModel",a.issueEditBuilder.commonAssignee)("bContactAutocomplete","SINGLE"),ge("cdkFocusInitial",a.focus===a.FocusableField.ASSIGNEE||null))},
HIa=function(a){if(a&1){var b=x();F(0,"div",26)(1,"span");O(2);G();F(3,"a",29);J("click",function(){z(b);var c=K(4);return A(c.issueEditBuilder.clearVerifier())});O(4,"X");G()()}a&2&&(a=K(4),le("bv2-invalid-multiple-user-chip",!Np(a.issueEditBuilder)),B(2),De(" Multiple ",Np(a.issueEditBuilder)?"":"(some unset)"," "))},IIa=function(a){if(a&1){var b=x();F(0,"div",26)(1,"span");O(2);G();F(3,"a",29);J("click",function(){z(b);var c=K(4);return A(c.issueEditBuilder.clearVerifier())});O(4,"X");G()()}a&
2&&(a=K(4),le("bv2-invalid-multiple-user-chip",!Np(a.issueEditBuilder)),B(2),De(" Possibly multiple ",Np(a.issueEditBuilder)?"":"(some unset)"," "))},JIa=function(a){if(a&1){var b=x();F(0,"div")(1,"input",30);J("ngModelChange",function(c){z(b);var d=K(4);return A(d.issueEditBuilder.commonVerifier=c)});G()()}a&2&&(a=K(4),B(1),C("ngModel",a.issueEditBuilder.commonVerifier)("required","VERIFIED"==(null==a.issueEditBuilder.issueState?null:a.issueEditBuilder.issueState.status))("bContactAutocomplete",
"SINGLE"),ge("cdkFocusInitial",a.focus===a.FocusableField.VERIFIER||null))},KIa=function(a){a&1&&(F(0,"div")(1,"div",20)(2,"label",21),O(3," Assignee "),G(),F(4,"div",14),M(5,DIa,5,0,"div",22),M(6,EIa,5,0,"div",22),M(7,GIa,2,3,"div",23),G()(),F(8,"div",20)(9,"label",24),O(10," Verifier "),G(),F(11,"div",14),M(12,HIa,5,3,"div",25),M(13,IIa,5,3,"div",25),M(14,JIa,2,4,"div",23),G()()());a&2&&(a=K(3),B(4),C("ngSwitch",a.issueEditBuilder.selectedAssigneesStatus),B(1),C("ngSwitchCase","MULTIPLE"),B(1),
C("ngSwitchCase","POSSIBLY_MULTIPLE"),B(5),C("ngSwitch",a.issueEditBuilder.selectedVerifiersStatus),B(1),C("ngSwitchCase","MULTIPLE"),B(1),C("ngSwitchCase","POSSIBLY_MULTIPLE"))},LIa=function(a){if(a&1){var b=x();F(0,"div",20)(1,"label",31);O(2," Issue ID ");G();F(3,"input",32);J("ngModelChange",function(c){z(b);var d=K(3);return A(d.issueEditBuilder.commonDuplicateOf=c.trim())});G()()}a&2&&(a=K(3),B(3),C("ngModel",a.issueEditBuilder.commonDuplicateOf),ge("cdkFocusInitial",a.focus===a.FocusableField.DUPE_ID||
null))},MIa=function(a,b){a&1&&(F(0,"li"),O(1),H(2,"b-access-level-indicator",35),G());a&2&&(a=b.$implicit,B(1),De(" ",a.path," "),B(1),C("accessLevel",a.accessLevel))},NIa=function(a){a&1&&(F(0,"div",33)(1,"div")(2,"strong"),O(3,"You are editing issues in components that have external viewers:"),G()(),F(4,"ul"),M(5,MIa,3,2,"li",34),G()());a&2&&(a=K(3),B(5),C("ngForOf",a.externalWarnings))},OIa=function(a){if(a&1){var b=x();F(0,"div",8)(1,"button",9)(2,"span");O(3);G();H(4,"b-icon",10);G();F(5,"mat-menu",
null,11)(7,"button",12);J("click",function(){z(b);var d=K(2);return A(d.issueEditBuilder.issueState=void 0)});O(8,"No change ");G();M(9,CIa,2,2,"button",13);G();F(10,"div",14);M(11,KIa,15,6,"div",15);M(12,LIa,4,2,"div",16);G();F(13,"div")(14,"b-comment-box",17);J("onSubmit",function(){z(b);var d;null==(d=K(2).matDialogRef)||d.close(!0);return A()});G()();H(15,"div",18);M(16,NIa,6,1,"div",19);G()}if(a&2){var c=Ce(6);a=K(2);B(1);C("matMenuTriggerFor",c);B(2);Ee(a.issueEditBuilder.issueState?a.issueEditBuilder.issueState.displayValue:
"No change");B(4);C("disabled",!a.issueEditBuilder.issueState);B(2);C("ngForOf",a.issueStates);B(1);C("ngSwitch",!a.issueEditBuilder.issueState||"DUPLICATE"!==a.issueEditBuilder.issueState.status);B(1);C("ngSwitchCase",!0);B(3);C("comment",a.comment)("showToolbar",!1);B(2);C("ngIf",0<a.externalWarnings.length)}},QIa=function(a){a&1&&(F(0,"form",null,1)(2,"h1",2),O(3,"Change issue status"),G(),F(4,"div",3)(5,"span"),O(6,"Enter updated issue status information below"),G(),M(7,OIa,17,9,"div",4),G(),
F(8,"div",5)(9,"button",6),O(10," Cancel "),G(),F(11,"button",7),O(12," Save "),G()()());if(a&2){var b=Ce(1);a=K();B(7);C("ngIf",a.issueEditBuilder);B(2);C("mat-dialog-close",!1);B(2);var c=C("mat-dialog-close",!0),d;if(!(d=b.invalid))a:{if(null!=a.issueEditBuilder){d=PIa(a.issueEditBuilder);var e=d.get("status");if("DUPLICATE"===e){d=!d.get("duplicateOfIssueId");break a}if("VERIFIED"===e){d=!Np(a.issueEditBuilder)&&!d.get("verifier");break a}}d=!1}c("disabled",d)}},RIa=function(a){a&1&&(F(0,"div")(1,
"p"),O(2),G()());a&2&&(a=K(),B(2),Fe(" Checking if you have permissions to mark these issues as spam. Checked ",a.issuesChecked," of ",a.issuesToFlag.length,"... "))},SIa=function(a,b){a&1&&(F(0,"li"),O(1),G());a&2&&(a=b.$implicit,B(1),Fe(" ",a.issueId," - ",a.title," "))},TIa=function(a){a&1&&(F(0,"div")(1,"p"),O(2),G(),F(3,"ul"),M(4,SIa,2,2,"li",8),G()());a&2&&(a=K(),B(2),De(" You do not have permissions to mark ",a.protectedIssues.length," issues. These will not be flagged as spam. "),B(2),C("ngForOf",
a.protectedIssues))},XIa=function(a,b){if(a&1){var c=x();F(0,"div",18,19);J("click",function(){var e=z(c).$implicit,f=K(2);Op(f,e)||Pp(f,e);return A()});F(2,"mat-pseudo-checkbox",20);J("click",function(e){var f=z(c).$implicit,h=K(2);e.stopPropagation();return A(UIa(h,f))});G();F(3,"span");O(4);G()()}if(a&2){a=b.$implicit;b=b.index;var d=K(2);ke("display",d.shouldShowHotlist[a.hotlistId]?"block":"none");le("focused",b===d.focusedRowIndex);Ae("title",a.name);ge("id","hotlist-item-"+a.hotlistId)("aria-checked",
VIa(d.selectedHotlistMap[a.hotlistId]))("aria-disabled",Op(d,a));B(2);C("state",WIa(d.selectedHotlistMap[a.hotlistId]))("disabled",Op(d,a));B(2);De(" ",a.name," ")}},YIa=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K(2),B(1),De(" (",a.filterText,")"))},ZIa=function(a){if(a&1){var b=x();F(0,"div",21,22);J("click",function(){z(b);var c=K(2);return A(c.loadHotlist())})("keydown.enter",function(){z(b);var c=K(2);return A(c.loadHotlist())});O(2,"Load hotlist from id ");F(3,"span");O(4);G()()}a&2&&(a=
K(2),le("focused",a.focusedRowIndex===a.choices.length+1),ge("aria-label","Load hotlist from"+a.filterText),B(4),De("(",a.filterText,")"))},$Ia=function(a){if(a&1){var b=x();F(0,"div",23,24);J("click",function(){z(b);var c=K(2);return A(Qp(c))})("keydown.enter",function(){z(b);var c=K(2);return A(Qp(c))});O(2,"Apply");G()}a&2&&(a=K(2),le("focused",a.focusedRowIndex===a.choices.length+2))},aJa=function(a){if(a&1){var b=x();F(0,"div",5)(1,"div",10,11);M(3,XIa,5,11,"div",12);G()();H(4,"mat-divider");
F(5,"div",13,14);J("click",function(){z(b);var c=K();return A(c.createHotlist())})("keydown.enter",function(){z(b);var c=K();return A(c.createHotlist())});O(7,"Create new hotlist ");M(8,YIa,2,1,"span",15);G();M(9,ZIa,5,4,"div",16);M(10,$Ia,3,2,"div",17)}a&2&&(a=K(),B(3),C("ngForOf",a.choices),B(2),le("focused",a.focusedRowIndex===a.choices.length),C("disabled",!a.canCreate),ge("aria-label","Create new hotlist"+a.filterText),B(3),C("ngIf",!!a.filterText),B(1),C("ngIf",a.canLoad),B(1),C("ngIf",a.pendingChanges))},
bJa=function(a){a&1&&(qe(0),O(1,"Un-"),re())},cJa=function(a){a&1&&(H(0,"span",4),P(1,"async"));if(a&2){a=K();var b;C("ngClass",null!==(b=Q(1,1,a.colorClass$))&&void 0!==b?b:"")}},dJa=function(a){a&1&&(H(0,"mat-icon",5),P(1,"async"));if(a&2){a=K();var b;C("svgIcon",null!==(b=Q(1,1,a.iconName$))&&void 0!==b?b:"")}},eJa=function(a){a&1&&(F(0,"span",6),O(1),P(2,"async"),G());a&2&&(a=K(),B(1),Ee(Q(2,1,a.statusText$)))},fJa=function(a){if(a&1){var b=x();F(0,"button",2);J("click",function(){z(b);var c=
K();return A(c.onClick())});O(1);G()}a&2&&(a=K(),le("mat-flat-button",a.upvoted)("mat-stroked-button",!a.upvoted),C("matTooltip",a.tooltip)("disabled",a.disabled),ge("aria-pressed",a.upvoted)("aria-label",a.getAriaLabel()),B(1),De(" +1 (",a.voteCount,")\n"))},gJa=function(a){if(a&1){var b=x();F(0,"button",3);J("click",function(){z(b);var c=K();return A(c.onClick())});F(1,"span");O(2,"+1");G();F(3,"span",4);O(4);G()()}a&2&&(a=K(),le("mat-flat-button",a.upvoted)("mat-button",!a.upvoted),C("matTooltip",
a.tooltip)("disabled",a.disabled),ge("aria-pressed",a.upvoted)("aria-label",a.getAriaLabel()),B(4),De("(",a.voteCount,")"))},hJa=function(a){a&1&&(F(0,"span"),O(1," Assigned to "),H(2,"b-user-display",17),G());a&2&&(a=K(2).ngIf,B(2),C("model",a.assigneeUser)("hovercardEnabled",!1))},iJa=function(a){a&1&&(F(0,"span"),O(1," Accepted by "),H(2,"b-user-display",17),G());a&2&&(a=K(2).ngIf,B(2),C("model",a.assigneeUser)("hovercardEnabled",!1))},jJa=function(a){a&1&&(F(0,"span"),O(1," Duplicate of "),F(2,
"a",4),O(3),G()());if(a&2){a=K(2).ngIf;var b=K(),c;B(2);ie("aria-label","Go to issue ",a.duplicateOfIssueId,"");C("href",b.editIssue(null!==(c=a.duplicateOfIssueId)&&void 0!==c?c:void 0),Md);B(1);De(" ",a.duplicateOfIssueId," ")}},kJa=function(a){a&1&&(F(0,"span"),H(1,"b-issue-status-display",18),G());a&2&&(a=K().ngIf,B(1),C("issueStatusJs",a))},lJa=function(a,b){a&1&&(qe(0,14),M(1,hJa,3,2,"span",15),M(2,iJa,3,2,"span",15),M(3,jJa,4,3,"span",15),M(4,kJa,2,1,"span",16),re());a&2&&(C("ngSwitch",b.ngIf),
B(1),C("ngSwitchCase","ASSIGNED"),B(1),C("ngSwitchCase","ACCEPTED"),B(1),C("ngSwitchCase","DUPLICATE"))},mJa=function(a,b){if(a&1){var c=x();qe(0);F(1,"b-app-vote-button",19);J("onVote",function(f){z(c);var h=K(3);h.location&&f&&eo(h.analytics,h.location+"_"+io.ISSUE_CARD,"add","upvote",f);return A()});G();re()}if(a&2){a=b.ngIf;b=K().ngIf;var d=K(2),e;B(1);C("issueId",d.issueId)("voteCount",b.voteCount)("upvoted",null!==(e=a.voted)&&void 0!==e?e:!1)}},nJa=function(a){a&1&&(qe(0),M(1,mJa,2,3,"ng-container",
1),re());a&2&&(a=K(2),B(1),C("ngIf",a.issue.userData))},pJa=function(a){if(a&1){var b=x();qe(0);F(1,"button",20);J("click",function(){z(b);var c=K(2);return A(oJa(c,c.childContextId))});O(2," Unlink parent ");G();re()}},qJa=function(a,b){a&1&&(F(0,"li"),O(1," Last updated by "),H(2,"b-user-display",17),O(3," on: "),H(4,"b-formatted-date-time",21),G());a&2&&(a=b.ngIf,b=K().ngIf,B(2),C("model",a)("hovercardEnabled",!1),B(2),C("timestamp",b.modifiedTimeMicros/1E3))},rJa=function(a,b){a&1&&(qe(0),M(1,
qJa,5,3,"li",1),F(2,"li"),O(3," Reported by "),H(4,"b-user-display",17),O(5," on: "),H(6,"b-formatted-date-time",21),G(),re());if(a&2){a=b.ngIf;b=K().ngIf;var c=K();B(1);C("ngIf",c.events[c.events.length-1].userPerformingActionUser);B(3);C("model",b.reporterUser)("hovercardEnabled",!1);B(2);C("timestamp",a.createdTimeMicros/1E3)}},sJa=function(a){a&1&&(F(0,"li",22),H(1,"b-note-container",23),G());a&2&&(a=K(2),B(1),C("issueId",a.issueId)("issueAccessLevel",null==a.issue.accessLimit?null:a.issue.accessLimit.accessLevel)("formattingMode",
a.normalizeFormattingModeToJspb(a.events[0].formattingMode))("note",a.getNote()))},vJa=function(a,b){if(a&1){var c=x();qe(0);F(1,"div",2)(2,"h3");H(3,"b-issue-status-display",3);F(4,"a",4);O(5);G();O(6," \u00a0 ");F(7,"span",5);O(8);G()();F(9,"ul")(10,"li",6);H(11,"b-access-level-indicator",7);G();F(12,"li",8)(13,"span",9);O(14);G();O(15," \u00a0 ");M(16,lJa,5,4,"ng-container",10);G()();F(17,"div",11)(18,"b-cc-button",12);J("onCc",function(e){z(c);var f=K();f.location&&e&&eo(f.analytics,f.location+
"_"+io.ISSUE_CARD,"add","CC");return A()});G();M(19,nJa,2,1,"ng-container",1);M(20,pJa,3,0,"ng-container",1);G();F(21,"ul");M(22,rJa,7,4,"ng-container",1);M(23,sJa,2,4,"li",13);G()();re()}if(a&2){a=b.ngIf;b=K();var d;B(3);C("issueStatusJs",a.status);B(1);ie("aria-label","Go to issue ",b.issueId,"");C("href",b.editIssue(b.issueId),Md);B(1);Ee(b.issueId);B(3);Ee(a.title);B(3);C("labelOnlyMode",!0)("accessLevel",null==b.issue.accessLimit?null:b.issue.accessLimit.accessLevel);B(2);C("ngClass",b.priorityClass(a.priority));
B(1);Ee(b.priority(a.priority));B(2);C("ngIf",a.status);B(2);C("issueId",b.issueId)("ccState",tJa(b,null!==(d=a.ccUsers)&&void 0!==d?d:He(16,uJa)));B(1);C("ngIf",b.issue.aggregatedData);B(1);C("ngIf",b.childContextId);B(2);C("ngIf",b.issue.aggregatedData);B(1);C("ngIf",b.events[0].unlinkifiedComment)}},wJa=function(a){a&1&&(F(0,"div")(1,"div",9),O(2," An issue cannot reference itself. "),G()())},xJa=function(a){a&1&&(F(0,"mat-option",10)(1,"div",11),H(2,"b-spinner",12),G()());a&2&&(B(2),C("large",
!0))},yJa=function(a){a&1&&(F(0,"mat-option",13),O(1," No issues found. "),G())},zJa=function(a){a&1&&H(0,"b-issue-status-display",25);a&2&&(a=K().$implicit,C("issueStatusJs",a.status))},AJa=function(a){a&1&&H(0,"b-issue-card",26,27);if(a&2){var b=Ce(1);a=K().$implicit;C("onedevIsHovercardReady",b.init)("issueId",a.resourceId)}},CJa=function(a,b){a&1&&(F(0,"mat-option",14)(1,"div",15)(2,"div",16),M(3,zJa,1,1,"b-issue-status-display",17),F(4,"strong",18),O(5),G()(),F(6,"onedev-hovercard",null,19),
M(8,AJa,2,2,"b-issue-card",20),G(),F(9,"a",21),J("click",function(d){return d.stopPropagation()}),H(10,"mat-icon",22),G(),F(11,"span",23),O(12),G(),H(13,"div",24),P(14,"boldPrefixMatches"),G()());if(a&2){a=b.$implicit;var c=Ce(7);b=K();C("value",a);B(1);ge("aria-label",a.resourceId+", "+a.displayText+", click ALT RightArrow to open the issue in a new tab.");B(2);C("ngIf",a.status);B(1);Ae("title",a.resourceId);B(1);De(" ",a.resourceId," ");B(4);C("onedevHovercardTrigger",c)("href",b.getIssueLink(a),
Md);B(3);Ee(BJa(a));B(1);Ae("title",a.displayText);C("innerHTML",Me(14,10,a.displayText,b.query),Ld)}},DJa=function(a,b){a&1&&(F(0,"a",13),O(1),G());a&2&&(a=b.$implicit,b=b.last,ze("href","issues/",a.resourceId,"",Md),B(1),Fe(" ",a.resourceId,"",b?"":","," "))},EJa=function(a){a&1&&(F(0,"div",11),M(1,DJa,2,3,"a",12),G());a&2&&(a=K(),B(1),C("ngForOf",a.selectedIssues))},FJa=function(a){a&1&&(F(0,"div",11)(1,"a",14),O(2),G()());a&2&&(a=K(),B(1),ze("href","issues/",a.selectedIssues[0].resourceId,"",
Md),B(1),De(" ",a.selectedIssues[0].displayText," "))},HJa=function(a){if(a&1){var b=x();F(0,"div",15)(1,"div",16);J("click",function(){z(b);var c=K();return A(GJa(c))})("keyup.space",function(){z(b);var c=K();return A(GJa(c))});G()()}a&2&&(a=K(),B(1),C("matTooltip",a.isQueryRestricted?"Searching in current component tree":"Click to search in current component tree"),ge("aria-checked",a.isQueryRestricted))},JJa=function(a){if(a&1){var b=x();F(0,"b-app-bar-bulk-edit-menus",6);J("onBulkEdit",function(c){z(b);
var d=K();return A(d.bulkEdit(c))})("onQuickBulkEdit",function(c){z(b);var d=K();return A(d.quickBulkEdit(c))})("onBulkEditIssueRelation",function(c){z(b);var d=K();return A(d.bulkEditIssueRelation(c))})("onBulkMarkIssueRead",function(){z(b);var c=K();return A(c.bulkMarkIssueRead())});G()}a&2&&(a=K(),C("readStatePrompt",IJa(a)))},NJa=function(a){if(a&1){var b=x();F(0,"b-copy-issue-id-button",7);J("onClickCopyIssueIds",function(){z(b);var c=K();return A(KJa(c.copyIssueIdService,Rp(c)))})("onClickCopyIssueShortLinks",
function(){z(b);var c=K();return A(LJa(c.copyIssueIdService,Rp(c)))})("onClickCopyAsIssueSearch",function(){z(b);var c=K();return A(MJa(c.copyIssueIdService,Rp(c)))});G()}a&2&&(a=K(),C("shortLinkPrefix",a.copyIssueIdService.shortLinkPrefix)("shouldShowCopyIssueShortLinks",a.activeSession.isInternalSession()))},OJa=function(a){if(a&1){var b=x();F(0,"div",8)(1,"b-hotlist-picker",9);J("onApply",function(c){z(b);var d=K();return A(d.handleHotlistPickerSave(c))})("onCreate",function(c){z(b);var d=K();
return A(d.onCreateHotlist.emit(c))})("onLoad",function(c){z(b);var d=K();return A(d.onLoadHotlist.emit(c))});G()()}a&2&&(a=K(),B(1),C("selectedHotlistIds",a.hotlistIdMatrix)("choices",a.hotlistChoices))},PJa=function(a,b){a&1&&(F(0,"li"),O(1),H(2,"b-access-level-indicator",17),G());a&2&&(a=b.$implicit,B(1),De(" ",a.path," "),B(1),C("accessLevel",a.accessLevel))},QJa=function(a){a&1&&(F(0,"div",15)(1,"div")(2,"strong"),O(3,"You are commenting on issues in components that have external viewers:"),
G()(),F(4,"ul"),M(5,PJa,3,2,"li",16),G()());a&2&&(a=K(2),B(5),C("ngForOf",a.externalWarnings))},SJa=function(a){if(a&1){var b=x();F(0,"h1",10);O(1,"Add comment");G();F(2,"mat-dialog-content")(3,"b-comment-box",11);J("commentChange",function(c){z(b);var d=K();return A(d.comment=c)})("onSubmit",function(){z(b);var c=K();return A(RJa(c))});G();M(4,QJa,6,1,"div",12);G();F(5,"mat-dialog-actions")(6,"button",13);O(7," Cancel ");G();F(8,"button",14);O(9," Save ");G()()}a&2&&(a=K(),B(3),C("comment",a.comment)("showToolbar",
!1),B(1),C("ngIf",0<a.externalWarnings.length),B(2),C("mat-dialog-close",!1),B(2),C("mat-dialog-close",!0))},TJa=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null},Up=function(a,b){b=void 0===b?{}:b;return null==b.id?"":Sp(a,b)},Sp=function(a,b){var c=b=void 0===b?{}:b;b=c.params;c=c.tab;b&&(a=Usa(a,b));c&&(a=a+"#"+c);return a},UJa=function(a){if(a&1){var b=x();F(0,"button",7);J("click",function(){z(b);var c=K(2);return A(c.removeHotlist.emit())});H(1,"mat-icon",
8);G()}a&2&&(a=K(2),le("invisible",a.disabled),ge("aria-disabled",a.disabled)("aria-label","Remove the hotlist "+a.hotlist.name))},VJa=function(a){a&1&&(qe(0),F(1,"span",1)(2,"span",2)(3,"a",3),O(4),G()(),M(5,UJa,2,4,"button",4),G(),F(6,"onedev-hovercard",null,5),H(8,"b-hotlist-card",6),G(),re());if(a&2){var b=Ce(7);a=K();B(1);ke("padding-right",a.removable?0:"10px");le("muted",a.disabled);C("onedevHovercardTrigger",b)("onedevHovercardActive",a.showHovercard);B(2);C("href",a.pathBuilder.viewHotlist(a.hotlist.hotlistId),
Md);ge("aria-label",a.getAriaLabel(a.hotlist));B(1);Ee(a.hotlist.name);B(1);C("ngIf",a.removable);B(3);C("hotlist",a.hotlist)}},WJa=function(){return{color:"accent"}},XJa=function(a){a&1&&(F(0,"span"),O(1,"Edit"),G())},YJa=function(a){a&1&&(F(0,"span"),O(1,"Cancel"),G())},cKa=function(a){if(a&1){var b=x();qe(0);F(1,"td")(2,"div")(3,"div",11);O(4);G();F(5,"div",12)(6,"a",13);O(7);G()()()();F(8,"td",3)(9,"mat-radio-button",14);J("change",function(d){z(b);var e=K(2);return A(ZJa(e,d.value))});G()();
F(10,"td",3)(11,"b-button",15);J("onAction",function(){z(b);var d=K().$implicit,e=K();return A($Ja(e,d))});M(12,XJa,2,0,"span",9);M(13,YJa,2,0,"span",9);G()();F(14,"td",3)(15,"b-button",16);J("onAction",function(){z(b);var d=K().$implicit,e=K();return A(aKa(e,d))});O(16," Delete ");G()();re()}if(a&2){a=K().$implicit;var c=K();B(3);le("selected",Vp(c,a));B(1);De(" ",a.name," ");B(2);C("href",bKa(c,a),Md);ge("aria-label",a.name+"- Click to create a new issue");B(1);De(" ",bKa(c,a)," ");B(2);ze("id",
"template-default-radio-",a.index,"");C("checked",c.defaultIndex===a.index)("aria-label","Make template "+a.name+" as default template")("value",a.index);B(2);C("bAriaLabel",Vp(c,a)?"Cancel editing "+a.name:"Edit "+a.name);B(1);C("ngIf",!Vp(c,a));B(1);C("ngIf",Vp(c,a));B(2);C("bAriaLabel","Delete "+a.name)("disabled",!(0<=a.index&&!c.templates[a.index].default))}},dKa=function(a){a&1&&(F(0,"h2",64),O(1," Create Template "),G())},eKa=function(a){a&1&&(F(0,"h2",64),O(1),G());a&2&&(a=K(2).$implicit,
B(1),Fe(' Edit template "',a.name,'" ',a.editableTemplate.isDirty()?"(changed)":""," "))},gKa=function(a,b){if(a&1){var c=x();F(0,"button",65);J("click",function(){var e=z(c).$implicit,f=K(2).$implicit,h=K();f.issueType=e.value;return A(fKa(h))});O(1);G()}if(a&2){a=b.$implicit;b=K(2).$implicit;var d;C("disabled",b.issueType===a.value)("matTooltip",null!==(d=a.altText)&&void 0!==d?d:"");B(1);De(" ",a.displayText," ")}},hKa=function(a,b){if(a&1){var c=x();F(0,"button",66);J("click",function(){var d=
z(c).$implicit,e=K(2).$implicit;e.editableTemplate.priority=d.value;e.editableTemplate.dirty=!0;return A()});O(1);G()}a&2&&(a=b.$implicit,b=K(2).$implicit,C("disabled",b.editableTemplate.priority===a.value),B(1),De(" ",a.displayText," "))},iKa=function(a,b){if(a&1){var c=x();F(0,"button",66);J("click",function(){var d=z(c).$implicit,e=K(2).$implicit;e.editableTemplate.severity=d.value;e.editableTemplate.dirty=!0;return A()});O(1);G()}a&2&&(a=b.$implicit,b=K(2).$implicit,C("disabled",b.editableTemplate.severity===
a.value),B(1),De(" ",a.displayText," "))},jKa=function(a,b){if(a&1){var c=x();F(0,"div",67)(1,"b-hotlist-chip",68);J("removeHotlist",function(){var d=z(c).$implicit,e=K(3);return A(e.removeHotlist(d.hotlistId))});G()()}a&2&&(a=b.$implicit,B(1),C("hotlist",a))},kKa=function(a){a&1&&(F(0,"h3"),O(1,"Custom issue fields"),G())},lKa=function(a){if(a&1){var b=x();F(0,"input",76);J("ngModelChange",function(d){z(b);var e=K().$implicit,f=K(2).$implicit;return A(f.editableTemplate.customFieldValues[e.id].textValue=
d)})("ngModelChange",function(){z(b);K(3).$implicit.editableTemplate.dirty=!0;return A()});G()}if(a&2){a=K().$implicit;var c=K(2).$implicit;ie("id","template-cf-",a.id,"");C("ngModel",c.editableTemplate.customFieldValues[a.id].textValue)}},mKa=function(a){if(a&1){var b=x();F(0,"input",77);J("ngModelChange",function(d){z(b);var e=K().$implicit,f=K(2).$implicit;return A(f.editableTemplate.customFieldValues[e.id].numericValue=d)})("ngModelChange",function(){z(b);K(3).$implicit.editableTemplate.dirty=
!0;return A()});G()}if(a&2){a=K().$implicit;var c=K(2).$implicit;ie("id","template-cf-",a.id,"");C("ngModel",c.editableTemplate.customFieldValues[a.id].numericValue)}},oKa=function(a){if(a&1){var b=x();F(0,"b-edit-field",78);J("valueChange",function(h){z(b);var k=K().$implicit,q=K(2).$implicit,v=K();return A(v.setCustomField(q,k.id,h))});G()}if(a&2){a=K().$implicit;var c=K(2).$implicit,d=K(),e,f;ie("id","template-cf-",a.id,"");C("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:He(6,nKa))}},pKa=function(a){if(a&1){var b=x();F(0,"bv2-input-date-picker",79);J("boundValueChange",function(e){z(b);var f=K().$implicit,h=K(2).$implicit,k=K();return A(h.editableTemplate.customFieldValues[f.id].dateValue=k.getDateValue(e))})("boundValueChange",function(){z(b);K(3).$implicit.editableTemplate.dirty=!0;return A()});
G()}if(a&2){a=K().$implicit;var c=K(2).$implicit,d;ie("id","template-cf-",a.id,"");C("boundValue",null!==(d=c.editableTemplate.customFieldValues[a.id].dateValue)&&void 0!==d?d:void 0)}},rKa=function(a){if(a&1){var b=x();F(0,"b-list-field",80);J("valuesChange",function(e){z(b);var f=K().$implicit,h=K(2).$implicit,k=K();return A(k.setCustomField(h,f.id,e.values))});G()}if(a&2){a=K().$implicit;var c=K(2).$implicit,d=K();ie("id","template-cf-",a.id,"");C("defaultLineCount",2)("type",d.getListFieldType(a.type))("values",
qKa(c.editableTemplate.customFieldValues[a.id]))("enumChoices",a.enumFields)("truncate",!0)}},sKa=function(a,b){a&1&&(F(0,"div")(1,"div",21)(2,"label",69),O(3),G()(),F(4,"div",70),M(5,lKa,1,2,"input",71),M(6,mKa,1,2,"input",72),M(7,oKa,1,7,"b-edit-field",73),M(8,pKa,1,2,"bv2-input-date-picker",74),M(9,rKa,1,6,"b-list-field",75),G()());a&2&&(a=b.$implicit,oe("cell-",a.cellType,""),B(2),ze("for","template-cf-",a.id,""),B(1),Fe("",a.name," (id=",a.id,")"),B(1),C("ngSwitch",a.type),B(1),C("ngSwitchCase",
"TEXT"),B(1),C("ngSwitchCase","NUMERIC"),B(1),C("ngSwitchCase","ENUM"),B(1),C("ngSwitchCase","DATE"))},vKa=function(a){if(a&1){var b=x();F(0,"td",17)(1,"div",18);M(2,dKa,2,0,"h2",19);M(3,eKa,2,2,"h2",19);F(4,"div",20)(5,"div",21)(6,"label",22);O(7,"Template Name");G()();F(8,"input",23);J("ngModelChange",function(h){z(b);var k=K().$implicit;return A(k.editableTemplate.name=h)})("ngModelChange",function(){z(b);K().$implicit.editableTemplate.dirty=!0;return A()});G()();F(9,"div",20)(10,"div",21)(11,
"label",24);O(12,"Description of Template");G()();F(13,"input",25);J("ngModelChange",function(h){z(b);var k=K().$implicit;return A(k.editableTemplate.description=h)})("ngModelChange",function(){z(b);K().$implicit.editableTemplate.dirty=!0;return A()});G()();F(14,"div",26)(15,"h3");O(16," Standard issue fields ");G();F(17,"div",20)(18,"div",21)(19,"label",27);O(20,"Title");G()();F(21,"input",28);J("ngModelChange",function(h){z(b);var k=K().$implicit;return A(k.editableTemplate.title=h)})("ngModelChange",
function(){z(b);K().$implicit.editableTemplate.dirty=!0;return A()});G()();F(22,"div",29)(23,"div",21)(24,"label",30);O(25,"Type");G()();F(26,"button",31)(27,"span");O(28);G();H(29,"b-icon",32);G();F(30,"mat-menu",33,34);M(32,gKa,2,3,"button",35);G()();F(33,"div",29)(34,"div",21)(35,"label",36);O(36,"Priority");G()();F(37,"button",37)(38,"span");O(39);G();H(40,"b-icon",32);G();F(41,"mat-menu",33,38);M(43,hKa,2,2,"button",39);G()();F(44,"div",29)(45,"div",21)(46,"label",40);O(47,"Severity");G()();
F(48,"button",41)(49,"span");O(50);G();H(51,"b-icon",32);G();F(52,"mat-menu",33,42);M(54,iKa,2,2,"button",39);G()();F(55,"div",43)(56,"div",21)(57,"label",44);O(58,"Default Hotlists");G()();F(59,"b-hotlist-picker",45);J("onApply",function(h){z(b);var k=K(2);return A(k.handleHotlistPickerSave(h))})("onCreate",function(h){z(b);var k=K(2);return A(k.createHotlist(h))})("onLoad",function(h){z(b);var k=K(2);return A(k.loadHotlist(h))});G();M(60,jKa,2,1,"div",46);G();H(61,"div",47);F(62,"div",48)(63,"div",
21)(64,"label",49);O(65,"Assignee");G()();F(66,"input",50);J("ngModelChange",function(h){z(b);var k=K().$implicit;return A(k.editableTemplate.assignee=h)})("ngModelChange",function(){z(b);K().$implicit.editableTemplate.dirty=!0;return A()});G()();F(67,"div",48)(68,"div",21)(69,"label",51);O(70,"Verifier");G()();F(71,"input",52);J("ngModelChange",function(h){z(b);var k=K().$implicit;return A(k.editableTemplate.verifier=h)})("ngModelChange",function(){z(b);K().$implicit.editableTemplate.dirty=!0;return A()});
G()();F(72,"div",20)(73,"div",21)(74,"label",53);O(75,"CC");G()();F(76,"input",54);J("ngModelChange",function(h){z(b);var k=K().$implicit;return A(tKa(k.editableTemplate,h))});G()();F(77,"div",20)(78,"div",21)(79,"label",55);O(80,"Initial Comment");G()();F(81,"textarea",56);J("ngModelChange",function(h){z(b);var k=K().$implicit;return A(k.editableTemplate.comment=h)})("ngModelChange",function(){z(b);K().$implicit.editableTemplate.dirty=!0;return A()});O(82,"              ");G()();F(83,"div",20)(84,
"div",21)(85,"label",57);O(86,"In Prod");G()();F(87,"b-slide-toggle",58);J("modelChange",function(){z(b);var h=K().$implicit.editableTemplate;h.inProd=!h.inProd;h.dirty=!0;return A()});G()()();F(88,"div",59);M(89,kKa,2,0,"h3",9);M(90,sKa,10,11,"div",60);G();F(91,"div",61)(92,"b-button",62);J("onAction",function(){z(b);var h=K(2);return A(uKa(h))});O(93," Save ");G();F(94,"b-button",63);J("onAction",function(){z(b);var h=K(2);return A(Wp(h))});O(95," Cancel ");G()()()()}if(a&2){var c=Ce(31),d=Ce(42),
e=Ce(53);a=K().$implicit;var f=K();B(2);C("ngIf",a.editableTemplate.new_);B(1);C("ngIf",!a.editableTemplate.new_);B(5);C("ngModel",a.editableTemplate.name);B(5);C("ngModel",a.editableTemplate.description);B(8);C("ngModel",a.editableTemplate.title);B(5);C("matMenuTriggerFor",c);B(2);Ee(a.issueType);B(2);C("overlapTrigger",!0);B(2);C("ngForOf",f.issueTypeChoices);B(5);C("matMenuTriggerFor",d);B(2);Ee(a.editableTemplate.priority);B(2);C("overlapTrigger",!0);B(2);C("ngForOf",f.priorityChoices);B(5);C("matMenuTriggerFor",
e);B(2);Ee(a.editableTemplate.severity);B(2);C("overlapTrigger",!0);B(2);C("ngForOf",f.severityChoices);B(5);C("selectedHotlistIds",f.selectedHotlistIds)("choices",f.hotlists);B(1);C("ngForOf",f.selectedHotlists);B(6);C("bContactAutocomplete","SINGLE")("ngModel",a.editableTemplate.assignee);B(5);C("bContactAutocomplete","SINGLE")("ngModel",a.editableTemplate.verifier);B(5);C("bContactAutocomplete","MULTI")("ngModel",a.editableTemplate.cc.join(", "));B(5);C("ngModel",a.editableTemplate.comment);B(6);
C("model",a.editableTemplate.inProd);B(2);C("ngIf",0<f.customFieldRows.length);B(1);C("ngForOf",f.customFieldRows);B(2);C("disabled",!a.editableTemplate.isDirty())}},wKa=function(a,b){a&1&&(F(0,"tr"),M(1,cKa,17,15,"ng-container",9),M(2,vKa,96,31,"td",10),G());a&2&&(a=b.$implicit,B(1),C("ngIf",!a.editableTemplate),B(1),C("ngIf",!!a.editableTemplate))},xKa=function(a,b){a&1&&(F(0,"div",81),O(1),G(),F(2,"div",82)(3,"button",83),O(4," Cancel "),G(),F(5,"button",84),O(6," Confirm "),G()());a&2&&(a=b.$implicit,
B(1),De(' Are you sure you want to delete the template "',a.name,'"? '),B(2),C("mat-dialog-close",!1),B(2),C("mat-dialog-close",!0))},yKa=function(a,b){a&1&&(F(0,"div",81),O(1),G(),F(2,"div",82)(3,"button",85),O(4," Cancel "),G(),F(5,"button",85),O(6," Don't Save "),G(),F(7,"button",86),O(8," Save "),G()());a&2&&(a=b.$implicit,B(1),De(' Do you want to save changes to template "',a.name,'" before closing? '),B(2),C("mat-dialog-close",void 0),B(2),C("mat-dialog-close",!1),B(2),C("mat-dialog-close",
!0))},zKa=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K(),B(1),De(" (",a.objectiveDisplayText," total) "))},AKa=function(a){a&1&&(F(0,"div"),H(1,"b-slo-time-indicator",1),G());a&2&&(a=K(),B(1),C("sloSnoozeUntil",a.sloSnoozeUntil)("sloBounds",a.assignmentSlo)("includeObjective",!0))},BKa=function(a){a&1&&(F(0,"div"),H(1,"b-slo-time-indicator",2),G());a&2&&(a=K(),B(1),C("sloSnoozeUntil",a.sloSnoozeUntil)("sloBounds",a.responseSlo)("includeObjective",!0))},CKa=function(a){a&1&&(F(0,"div"),H(1,"b-slo-time-indicator",
3),G());a&2&&(a=K(),B(1),C("sloSnoozeUntil",a.sloSnoozeUntil)("sloBounds",a.closureSlo)("includeObjective",!0))},DKa=function(a){a&1&&(F(0,"div",8),H(1,"b-slo-status-summary",9),G());a&2&&(a=K(),B(1),C("sloStatus",a.sloStatus)("sloSnoozeUntil",a.sloSnoozeUntil)("onlyShowMetric",a.onlyShowMetric))},EKa=function(a){a&1&&(qe(0),O(1," No applicable SLO rules "),re())},FKa=function(a){a&1&&(qe(0),O(1," No SLO set on issue component "),re())},GKa=function(a){a&1&&(F(0,"div",10),M(1,EKa,2,0,"ng-container",
7),M(2,FKa,2,0,"ng-container",7),G());a&2&&(a=K(),B(1),C("ngIf",a.editSloLink),B(1),C("ngIf",!a.editSloLink))},HKa=function(a){if(a&1){var b=x();F(0,"a",12);J("click",function(){z(b);var c=K(2);return A(c.trackOpenSlo())});O(1);G()}a&2&&(a=K(2),C("href",a.editSloLink,Md),B(1),De(" ",a.sloName," "))},IKa=function(a){a&1&&(F(0,"span"),O(1," (private) "),G())},JKa=function(a){a&1&&(F(0,"span"),O(1," SLO definition: "),M(2,HKa,2,2,"a",11),M(3,IKa,2,0,"span",7),G());a&2&&(a=K(),B(2),C("ngIf",a.sloName),
B(1),C("ngIf",!a.sloName))},Xp=function(a,b){b=void 0===b?document.documentElement:b;return(0,S.concat)((0,S.defer)(function(){return(0,S.of)(b.querySelector(a))}),KKa(b,{childList:!0,subtree:!0}).pipe(rf(function(c){return c.some(function(d){return 0<d.addedNodes.length})}),R(function(){return b.querySelector(a)}))).pipe(rf(bl),Qf(),R(function(c){return c}))},KKa=function(a,b){return new S.Observable(function(c){var d=new MutationObserver(function(e){c.next(e)});d.observe(a,b);return function(){d.disconnect()}})},
Yp=function(a,b){return function(c){var d=c.target.closest(a);d&&c.currentTarget.contains(d)&&b(c,d)}},LKa=function(a,b){a&1&&H(0,"col");a&2&&oe("",b.$implicit.name,"-col")},MKa=function(a){a&1&&ue(0)},OKa=function(a,b){a&1&&(qe(0),M(1,MKa,1,0,"ng-container",8),re());a&2&&(a=b.$implicit,b=K(),B(1),C("ngTemplateOutlet",b.headerCellTemplates[a.name]||b.defaultHeaderCellTemplate)("ngTemplateOutletContext",Ie(2,NKa,a)))},PKa=function(a){a&1&&ue(0)},RKa=function(a,b){a&1&&(qe(0),M(1,PKa,1,0,"ng-container",
8),re());if(a&2){a=b.$implicit;b=b.index;var c=K(),d=c.$implicit;c=c.index;var e=K().ngIf;B(1);C("ngTemplateOutlet",e[b])("ngTemplateOutletContext",Ke(QKa,d,a,c))}},SKa=function(a,b){if(a&1){var c=x();F(0,"tr",10,11);J("click",function(){var e=z(c).index,f=K(2);f.focusedRowIndex!==e&&(f.focusedRowIndex=e,f.focusedRowIndexChange.emit(e));return A()})("focus",function(){var e=z(c).index,f=K(2);f.focusedRowIndex!==e&&(f.focusedRowIndex=e,f.focusedRowIndexChange.emit(e));return A()});M(2,RKa,2,6,"ng-container",
4);G()}if(a&2){a=b.$implicit;b=b.index;var d=K(2);le("selected",a.selected)("unread",!d.readUnreadOptOut&&!a.isRead&&!a.isClosed)("closed",a.isClosed)("grid-focus",d.focusedRowIndex===b);ge("data-row-id",a.id)("data-is-read",a.isRead)("aria-label",d.renderRowLabel(a,b)+(a.selected?", row starred":""));B(2);C("ngForOf",d.columns)}},TKa=function(a){a&1&&(qe(0),M(1,SKa,3,12,"tr",9),re());a&2&&(a=K(),B(1),C("ngForOf",a.list))},UKa=function(a,b){a&1&&(F(0,"th"),H(1,"pop-grid-default-th",12),G());a&2&&
(a=b.column,B(1),C("column",a))},VKa=function(a,b){a&1&&(F(0,"td"),H(1,"pop-grid-default-cell",13),G());a&2&&(a=b.row,b=b.column,B(1),C("row",a)("column",b))},WKa=function(a){if(a&1){var b=x();F(0,"b-sortable-header",3);J("sortChanged",function(c){z(b);var d=K();d.grid&&d.grid.sortChange.emit(c);return A()});G()}a&2&&(a=K(),C("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||
""))},XKa=function(a){a&1&&(F(0,"div",4),O(1),G());a&2&&(a=K(),ge("aria-label",a.column.label),B(1),De(" ",a.column.label," "))},YKa=function(a){if(a&1){var b=x();F(0,"div",13,14);J("menuOpened",function(){z(b);var d=K();return A(d.menuOpen=!0)})("menuClosed",function(){z(b);var d=K();return A(d.menuOpen=!1)})("keydown.enter",function(d){z(b);zi(Ce(1));d.preventDefault();return A(d.stopPropagation())})("keydown.space",function(){z(b);var d=Ce(1);return A(zi(d))});G()}if(a&2){a=K();var c=Ce(5);le("columnpicker-button-active",
a.menuOpen);ie("aria-label","",a.column.fullLabel," column configuration");C("matMenuTriggerFor",c)}},$Ka=function(a,b){if(a&1){var c=x();F(0,"button",15);J("click",function(){var d=z(c).$implicit,e=K();return A(ZKa(e,d.name))});H(1,"b-icon",16);F(2,"span",17);O(3);G()()}a&2&&(a=b.$implicit,b=K(),le("b-menu-item-checked",sna(a.name).get(b.listViewPrefs)),B(3),De(" ",a.menuItem," "))},aLa=function(a){a&1&&H(0,"mat-divider")},bLa=function(a){if(a&1){var b=x();F(0,"button",22);J("click",function(){z(b);
var c=K().$implicit,d=K().before,e=K();return A(e.add(c,d))});O(1);G()}a&2&&(a=K().$implicit,C("matTooltip",a.tooltip),B(1),De(" ",a.fullLabel," "))},dLa=function(a){a&1&&(F(0,"button",9)(1,"span"),O(2),G()());if(a&2){a=K().$implicit;var b=K().before;K();var c=Ce(18);C("matMenuTriggerFor",c)("matMenuTriggerData",Je(3,cLa,a.columns,b));B(2);Ee(a.label)}},eLa=function(a,b){a&1&&(qe(0),M(1,bLa,2,2,"button",20),M(2,dLa,3,6,"button",21),re());a&2&&(a=b.$implicit,b=K(2),B(1),C("ngIf",b.isIssueGridColumn(a)),
B(1),C("ngIf",!b.isIssueGridColumn(a)))},gLa=function(a){if(a&1){var b=x();F(0,"button",18);J("click",function(){var c=z(b).before,d=K();return A(fLa(d,c))});O(1," Custom Field ");G();H(2,"mat-divider");M(3,eLa,3,2,"ng-container",19)}a&2&&(a=K(),B(3),C("ngForOf",a.currentAvailableItems))},hLa=function(a,b){if(a&1){var c=x();F(0,"button",18);J("click",function(){var d=z(c).$implicit,e=K().before,f=K();return A(f.add(d,e))});O(1);G()}a&2&&(a=b.$implicit,B(1),De(" ",a.fullLabel," "))},iLa=function(a,
b){a&1&&M(0,hLa,2,1,"button",23);a&2&&C("ngForOf",b.columns)},jLa=function(a){a&1&&(qe(0),O(1," This issue has not been modified since "),H(2,"b-formatted-date-time",1),O(3," and is scheduled for deletion on "),F(4,"strong"),H(5,"b-formatted-date-time",1),G(),O(6,". "),F(7,"a",2),O(8,"Learn more"),G(),re());a&2&&(a=K(),B(2),C("mode","date")("timestamp",a.modifiedTime),B(3),C("mode","date")("timestamp",a.retentionExpireTime),B(2),C("href",a.documentationLink,Md))},kLa=function(a){a&1&&(F(0,"b-base-chip",
1)(1,"div",2),H(2,"retention-text",3),G(),F(3,"div",4),H(4,"retention-help-text",5),G()());a&2&&(a=K(),C("compactMode",a.compactMode)("labelClass",a.dangerZone?"danger":"expiring")("labelOnlyMode",a.labelOnlyMode),B(2),C("retentionState",a.retentionState)("compactMode",a.compactMode),B(2),C("retentionState",a.retentionState)("modifiedTime",a.modifiedTime))},lLa=function(a){var b=void 0===b?new Date:b;var c=qo(Cm(a.scheduledDeletionTime));b=b.getTime();a=(a=Ura(a.retentionPeriod))?1E3*a.getSeconds()+
(a.getNanos()||0)/1E6:0;return b>=c-Math.max(12096E5,.2*a)},mLa=function(a,b){return a.size!==b.size?!1:[].concat(u(a)).every(function(c){return b.has(c)})},nLa=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},oLa=function(a,b){if(!mLa(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}}},pLa=function(a){a&
1&&ue(0)},qLa=function(a,b){a&1&&(F(0,"th",22),M(1,pLa,1,0,"ng-container",23),G());a&2&&(a=b.column,b=K(),ge("data-stable-column-name",a.name),B(1),C("ngIf",b.isIssueGridColumn(a)))},rLa=function(a){a&1&&ue(0)},sLa=function(a,b){a&1&&(F(0,"th",24),M(1,rLa,1,0,"ng-container",23),G());a&2&&(a=b.column,b=K(),ge("data-stable-column-name",a.name),B(1),C("ngIf",b.isIssueGridColumn(a)))},wLa=function(a){if(a&1){var b=x();qe(0);F(1,"mat-pseudo-checkbox",26);J("click",function(c){z(b);var d=K(2);c.stopPropagation();
return A(tLa(d))})("keydown.enter",function(c){z(b);var d=K(2);c.stopPropagation();return A(tLa(d))})("keydown.space",function(c){z(b);var d=K(2);c.stopPropagation();return A(tLa(d))});G();re()}a&2&&(a=K(2),B(1),C("state",uLa(a)),ge("aria-checked",vLa(a)))},xLa=function(a,b){a&1&&(F(0,"th",25),M(1,wLa,2,2,"ng-container",23),G());a&2&&(a=b.column,b=K(),ge("data-stable-column-name",a.name),B(1),C("ngIf",b.isIssueGridColumn(a)))},yLa=function(a){a&1&&ue(0)},zLa=function(a,b){a&1&&(F(0,"th"),M(1,yLa,
1,0,"ng-container",23),G());a&2&&(a=b.column,b=K(),ge("data-stable-column-name",a.name),B(1),C("ngIf",b.isIssueGridColumn(a)))},ALa=function(a){a&1&&(qe(0),H(1,"pop-grid-default-th",27),re());a&2&&(a=K().column,B(1),C("column",a))},BLa=function(a,b){a&1&&(F(0,"th"),M(1,ALa,2,1,"ng-container",23),G());a&2&&(a=b.column,b=K(),ge("data-stable-column-name",a.name),B(1),C("ngIf",b.isIssueGridColumn(a)))},CLa=function(a){if(a&1){var b=x();F(0,"b-column-picker",30);J("selectedColumnsChange",function(d){z(b);
var e=K(3);e.columns=d;e.columnsChange.emit(d);e.cdr.detectChanges();return A()});G()}if(a&2){a=K(2).column;var c=K();C("column",a)("availableColumns",c.availableColumns)("selectedColumns",c.columns)}},DLa=function(a){a&1&&H(0,"pop-grid-default-th",27);a&2&&(a=K(2).column,C("column",a))},ELa=function(a){a&1&&(qe(0),M(1,CLa,1,3,"b-column-picker",28),M(2,DLa,1,1,"pop-grid-default-th",29),re());a&2&&(a=K(2),B(1),C("ngIf",a.enableColumnSaving),B(1),C("ngIf",!a.enableColumnSaving))},FLa=function(a,b){a&
1&&(F(0,"th"),M(1,ELa,3,2,"ng-container",23),G());a&2&&(a=b.column,b=K(),ge("data-stable-column-name",a.name),B(1),C("ngIf",b.isIssueGridColumn(a)))},GLa=function(a){a&1&&ue(0)},HLa=function(a){a&1&&(F(0,"td",22),M(1,GLa,1,0,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},ILa=function(a){a&1&&ue(0)},JLa=function(a){a&1&&(F(0,"td",31),M(1,ILa,1,0,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},KLa=function(a){if(a&1){var b=x();qe(0);F(1,"mat-pseudo-checkbox",32);J("click",function(c){z(b);
var d=K(),e=d.index;d=d.row;var f=K();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;Zp(f)}d.selected=!d.selected;f.lastCheckedIndex=e;Zp(f);return A()});G();re()}a&2&&(a=K().row,B(1),C("state",a.selected?"checked":"unchecked"),ge("aria-label","Select issue "+a.issueId)("aria-checked",
a.selected))},LLa=function(a){a&1&&(F(0,"td",25),M(1,KLa,2,3,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},MLa=function(a){if(a&1){var b=x();qe(0);F(1,"b-star-toggle",34);J("starClicked",function(){z(b);var d=K().row,e=K();return A(e.toggleStar(d))});G();re()}if(a&2){a=K().row;var c=K();B(1);C("starred",a.starred)("disabled",c.starInProgress[a.issueId])("starMessage","Star this issue")("unStarMessage","Un-star this issue")}},NLa=function(a){a&1&&(F(0,"td",33),M(1,MLa,2,4,"ng-container",23),
G());a&2&&(K(),B(1),C("ngIf",!0))},OLa=function(a){a&1&&(qe(0),F(1,"span"),O(2),G(),re());a&2&&(a=K().row,B(1),ge("title",a.position),B(1),De(" ",a.position," "))},PLa=function(a){a&1&&(F(0,"td"),M(1,OLa,3,2,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},QLa=function(a){a&1&&(qe(0),F(1,"a",36),O(2),G(),re());if(a&2){a=K().row;var b=K();B(1);C("href",b.paths.editIssue(a.issueId),Md);ge("title",a.title);B(1);De(" ",a.issueId," ")}},RLa=function(a){a&1&&(F(0,"td",35),M(1,QLa,3,3,"ng-container",
23),G());a&2&&(K(),B(1),C("ngIf",!0))},SLa=function(a){a&1&&H(0,"archived-issue-indicator")},TLa=function(a,b){a&1&&H(0,"b-hotlist-chip-smart",46);a&2&&C("id",b.$implicit)("removable",!1)},ULa=function(a){a&1&&(F(0,"div",44),M(1,TLa,1,2,"b-hotlist-chip-smart",45),G());a&2&&(a=K(2).row,B(1),C("ngForOf",a.hotlistId))},VLa=function(a){a&1&&(qe(0),F(1,"div",38),M(2,SLa,1,0,"archived-issue-indicator",23),H(3,"b-access-level-indicator",39)(4,"b-retention-chip",40),F(5,"div",41)(6,"a",42),O(7),G()(),M(8,
ULa,2,1,"div",43),G(),re());if(a&2){a=K().row;var b=K();B(1);le("bv2-grid-cell-flex-wrap",b.listViewPrefs&&b.listViewPrefs.wrapTitles);B(1);C("ngIf",a.archived);B(1);C("accessLevel",a.accessLevel)("compactMode",!0);B(1);C("retentionState",a.retentionState)("showOnlyInDangerZone",!0)("compactMode",!0)("modifiedTime",a.modifiedTime);B(2);C("href",b.paths.editIssue(a.issueId),Md);ge("title",a.title);B(1);De(" ",a.title," ");B(1);C("ngIf",b.listViewPrefs&&b.listViewPrefs.showHotlists)}},WLa=function(a){a&
1&&(F(0,"td",37),M(1,VLa,9,13,"ng-container",23),G());a&2&&(a=K(),le("bv2-grid-cell-variable-height",a.listViewPrefs&&a.listViewPrefs.wrapTitles),B(1),C("ngIf",!0))},YLa=function(a){a&1&&(qe(0),F(1,"div",48),O(2),G(),re());a&2&&(a=K().row,K(),B(1),C("ngClass",Ke(XLa,2<=Number(a.priority),2>Number(a.priority),0===Number(a.priority))),B(1),De(" P",a.priority," "))},ZLa=function(a){a&1&&(F(0,"td",47),M(1,YLa,3,6,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},$La=function(a){a&1&&(qe(0),F(1,"div",
48),O(2),G(),re());a&2&&(a=K().row,K(),B(1),C("ngClass",Ke(XLa,2<=Number(a.severity),2>Number(a.severity),0===Number(a.severity))),B(1),De(" S",a.severity," "))},aMa=function(a){a&1&&(F(0,"td",49),M(1,$La,3,6,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},bMa=function(a){a&1&&H(0,"b-issue-status-display",52);a&2&&(a=K(2).row,C("issueStatusJs",a.status)("displayMode","ICON"))},cMa=function(a){a&1&&(F(0,"span"),O(1),P(2,"v2StatusToHuman"),G());a&2&&(a=K(2).row,B(1),De(" ",Q(2,1,a.status)," "))},
dMa=function(a){a&1&&(qe(0),M(1,bMa,1,2,"b-issue-status-display",51),M(2,cMa,3,3,"span",23),re());if(a&2){a=K().row;var b=K();B(1);C("ngIf",b.listViewPrefs&&b.listViewPrefs.showStatusIcons&&a.status);B(1);C("ngIf",b.listViewPrefs&&!b.listViewPrefs.showStatusIcons)}},eMa=function(a){a&1&&(F(0,"td",50),M(1,dMa,3,2,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},fMa=function(a){a&1&&(qe(0),O(1),P(2,"enumToHuman"),re());a&2&&(a=K().row,B(1),De(" ",Q(2,1,a.type)," "))},gMa=function(a){a&1&&(F(0,
"td",53),M(1,fMa,3,3,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},hMa=function(a){a&1&&(F(0,"b-person-hovercard",56),P(1,"omitObfuscatedEmail"),O(2),G());a&2&&(a=K(2).row,C("email",Q(1,2,a.reporter)),B(2),De(" ",a.reporter," "))},iMa=function(a){a&1&&(F(0,"span"),O(1,"--"),G())},jMa=function(a){a&1&&(qe(0),M(1,hMa,3,4,"b-person-hovercard",55),P(2,"omitObfuscatedEmail"),M(3,iMa,2,0,"span",23),re());a&2&&(a=K().row,B(1),C("ngIf",Q(2,2,a.reporter)),B(2),C("ngIf",!a.reporter))},kMa=function(a){a&
1&&(F(0,"td",54),M(1,jMa,4,4,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},lMa=function(a){a&1&&(F(0,"b-person-hovercard",56),P(1,"omitObfuscatedEmail"),O(2),G());a&2&&(a=K(2).row,C("email",Q(1,2,a.assignee)),B(2),De(" ",a.assignee," "))},mMa=function(a){a&1&&(F(0,"span"),O(1,"--"),G())},nMa=function(a){a&1&&(qe(0),M(1,lMa,3,4,"b-person-hovercard",55),P(2,"omitObfuscatedEmail"),M(3,mMa,2,0,"span",23),re());a&2&&(a=K().row,B(1),C("ngIf",Q(2,2,a.assignee)),B(2),C("ngIf",!a.assignee))},oMa=function(a){a&
1&&(F(0,"td",54),M(1,nMa,4,4,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},pMa=function(a){a&1&&(F(0,"b-person-hovercard",56),P(1,"omitObfuscatedEmail"),O(2),G());a&2&&(a=K(2).row,C("email",Q(1,2,a.verifier)),B(2),De(" ",a.verifier," "))},qMa=function(a){a&1&&(F(0,"span"),O(1,"--"),G())},rMa=function(a){a&1&&(qe(0),M(1,pMa,3,4,"b-person-hovercard",55),P(2,"omitObfuscatedEmail"),M(3,qMa,2,0,"span",23),re());a&2&&(a=K().row,B(1),C("ngIf",Q(2,2,a.verifier)),B(2),C("ngIf",!a.verifier))},sMa=function(a){a&
1&&(F(0,"td",54),M(1,rMa,4,4,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},tMa=function(a){a&1&&(qe(0),F(1,"span"),P(2,"arrayToHuman"),O(3),P(4,"arrayToHuman"),G(),re());a&2&&(a=K().row,B(1),ge("title",Q(2,2,a.cc)),B(2),De(" ",Q(4,4,a.cc)," "))},uMa=function(a){a&1&&(F(0,"td",54),M(1,tMa,5,6,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},vMa=function(a){a&1&&(qe(0),F(1,"span"),P(2,"arrayToHuman"),O(3),P(4,"arrayToHuman"),G(),re());a&2&&(a=K().row,B(1),ge("title",Q(2,2,a.changelist)),
B(2),De(" ",Q(4,4,a.changelist)," "))},wMa=function(a){a&1&&(F(0,"td",54),M(1,vMa,5,6,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},xMa=function(a){a&1&&(qe(0),F(1,"span"),P(2,"arrayToHuman"),O(3),P(4,"arrayToHuman"),G(),re());a&2&&(a=K().row,B(1),ge("title",Q(2,2,a.postmortem)),B(2),De(" ",Q(4,4,a.postmortem)," "))},yMa=function(a){a&1&&(F(0,"td",54),M(1,xMa,5,6,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},zMa=function(a){a&1&&ue(0)},AMa=function(a){a&1&&(F(0,"span"),O(1,", "),G())},
CMa=function(a,b){a&1&&(qe(0),M(1,zMa,1,0,"ng-container",58),M(2,AMa,2,0,"span",23),re());if(a&2){a=b.$implicit;b=b.last;K(3);var c=Ce(48);B(1);C("ngTemplateOutlet",c)("ngTemplateOutletContext",Ie(3,BMa,a));B(1);C("ngIf",!b)}},DMa=function(a){a&1&&(qe(0),M(1,CMa,3,5,"ng-container",57),re());a&2&&(a=K().row,B(1),C("ngForOf",a.blockingIssueId))},EMa=function(a){a&1&&(F(0,"td",54),M(1,DMa,2,1,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},FMa=function(a){a&1&&ue(0)},GMa=function(a){a&1&&(F(0,
"span"),O(1,", "),G())},HMa=function(a,b){a&1&&(qe(0),M(1,FMa,1,0,"ng-container",58),M(2,GMa,2,0,"span",23),re());if(a&2){a=b.$implicit;b=b.last;K(3);var c=Ce(48);B(1);C("ngTemplateOutlet",c)("ngTemplateOutletContext",Ie(3,BMa,a));B(1);C("ngIf",!b)}},IMa=function(a){a&1&&(qe(0),M(1,HMa,3,5,"ng-container",57),re());a&2&&(a=K().row,B(1),C("ngForOf",a.blockedByIssueId))},JMa=function(a){a&1&&(F(0,"td",54),M(1,IMa,2,1,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},KMa=function(a){a&1&&ue(0)},LMa=
function(a){a&1&&(qe(0),M(1,KMa,1,0,"ng-container",58),re());if(a&2){a=K(2).row;K();var b=Ce(48);B(1);C("ngTemplateOutlet",b)("ngTemplateOutletContext",Ie(2,BMa,a.duplicateOfIssueId))}},MMa=function(a){a&1&&(qe(0),M(1,LMa,2,4,"ng-container",23),re());a&2&&(a=K().row,B(1),C("ngIf",a.duplicateOfIssueId))},NMa=function(a){a&1&&(F(0,"td",54),M(1,MMa,2,1,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},OMa=function(a){a&1&&(qe(0),H(1,"b-formatted-date-time",60),re());a&2&&(a=K().row,B(1),C("timestamp",
a.createdTime))},PMa=function(a){a&1&&(F(0,"td",59),M(1,OMa,2,1,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},QMa=function(a){a&1&&(qe(0),H(1,"b-formatted-date-time",60),re());a&2&&(a=K().row,B(1),C("timestamp",a.modifiedTime))},RMa=function(a){a&1&&(F(0,"td",59),M(1,QMa,2,1,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},SMa=function(a){a&1&&(qe(0),H(1,"b-formatted-date-time",60),re());a&2&&(a=K().row,B(1),C("timestamp",a.resolvedTime))},TMa=function(a){a&1&&(F(0,"td",59),M(1,SMa,2,
1,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},UMa=function(a){a&1&&(qe(0),H(1,"b-formatted-date-time",60),re());a&2&&(a=K().row,B(1),C("timestamp",a.verifiedTime))},VMa=function(a){a&1&&(F(0,"td",59),M(1,UMa,2,1,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},WMa=function(a){a&1&&(qe(0),F(1,"span"),P(2,"arrayToHuman"),O(3),P(4,"arrayToHuman"),G(),re());a&2&&(a=K().row,B(1),ge("title",Q(2,2,a.foundInVersion)),B(2),De(" ",Q(4,4,a.foundInVersion)," "))},XMa=function(a){a&1&&(F(0,"td",
54),M(1,WMa,5,6,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},YMa=function(a){a&1&&(qe(0),F(1,"span"),P(2,"arrayToHuman"),O(3),P(4,"arrayToHuman"),G(),re());a&2&&(a=K().row,B(1),ge("title",Q(2,2,a.targetedToVersion)),B(2),De(" ",Q(4,4,a.targetedToVersion)," "))},ZMa=function(a){a&1&&(F(0,"td",54),M(1,YMa,5,6,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},$Ma=function(a){a&1&&(qe(0),F(1,"span"),P(2,"arrayToHuman"),O(3),P(4,"arrayToHuman"),G(),re());a&2&&(a=K().row,B(1),ge("title",Q(2,
2,a.verifiedInVersion)),B(2),De(" ",Q(4,4,a.verifiedInVersion)," "))},aNa=function(a){a&1&&(F(0,"td",54),M(1,$Ma,5,6,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},bNa=function(a){a&1&&(qe(0),O(1),P(2,"yesNo"),re());a&2&&(a=K().row,B(1),De(" ",Q(2,1,a.inProd)," "))},cNa=function(a){a&1&&(F(0,"td",54),M(1,bNa,3,3,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},dNa=function(a){a&1&&(qe(0),O(1),P(2,"yesNo"),re());a&2&&(a=K().row,B(1),De(" ",Q(2,1,a.archived)," "))},eNa=function(a){a&1&&
(F(0,"td",54),M(1,dNa,3,3,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},fNa=function(a){a&1&&(qe(0),F(1,"div",38)(2,"div",41)(3,"span"),P(4,"componentPath"),O(5),P(6,"componentPath"),G()()(),re());a&2&&(a=K().row,B(3),ge("title",Q(4,2,a.componentPath)),B(2),Ee(Q(6,4,a.componentPath)))},hNa=function(a){a&1&&(F(0,"td",61),M(1,fNa,7,6,"ng-container",23),G());if(a&2){a=K();var b;var c=!(null==(b=a.listViewPrefs)||!b.rtlComponentPath);C("ngClass",Je(2,gNa,a.listViewPrefs&&a.listViewPrefs.wrapComponents,
c));B(1);C("ngIf",!0)}},iNa=function(a){a&1&&(F(0,"slo-status-card",64),H(1,"b-aggregated-slo-status-indicator",65),G());a&2&&(a=K(2).row,C("sloId",a.sloId)("sloStatus",a.sloStatus)("sloSnoozeUntil",a.sloSnoozeUntil),B(1),C("sloStatus",a.sloStatus)("sloSnoozeUntil",a.sloSnoozeUntil))},jNa=function(a){a&1&&(qe(0),M(1,iNa,2,5,"slo-status-card",63),re());a&2&&(a=K().row,B(1),C("ngIf",a.sloStatus))},kNa=function(a){a&1&&(F(0,"td",62),M(1,jNa,2,1,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},lNa=
function(a){a&1&&(F(0,"slo-status-card",67),H(1,"b-slo-time-indicator",68),G());a&2&&(a=K(2).row,C("sloId",a.sloId)("sloStatus",a.sloStatus)("sloSnoozeUntil",a.sloSnoozeUntil)("onlyShowMetric","RESPONSE"),B(1),C("sloBounds",a.sloStatus.getResponseBounds()))},mNa=function(a){a&1&&(qe(0),M(1,lNa,2,5,"slo-status-card",66),re());a&2&&(a=K().row,B(1),C("ngIf",a.sloStatus))},nNa=function(a){a&1&&(F(0,"td",62),M(1,mNa,2,1,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},oNa=function(a){a&1&&(F(0,"slo-status-card",
67),H(1,"b-slo-time-indicator",68),G());a&2&&(a=K(2).row,C("sloId",a.sloId)("sloStatus",a.sloStatus)("sloSnoozeUntil",a.sloSnoozeUntil)("onlyShowMetric","ASSIGNMENT"),B(1),C("sloBounds",a.sloStatus.getAssignmentBounds()))},pNa=function(a){a&1&&(qe(0),M(1,oNa,2,5,"slo-status-card",66),re());a&2&&(a=K().row,B(1),C("ngIf",a.sloStatus))},qNa=function(a){a&1&&(F(0,"td",62),M(1,pNa,2,1,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},rNa=function(a){a&1&&(F(0,"slo-status-card",67),H(1,"b-slo-time-indicator",
68),G());a&2&&(a=K(2).row,C("sloId",a.sloId)("sloStatus",a.sloStatus)("sloSnoozeUntil",a.sloSnoozeUntil)("onlyShowMetric","CLOSURE"),B(1),C("sloBounds",a.sloStatus.getClosureBounds()))},sNa=function(a){a&1&&(qe(0),M(1,rNa,2,5,"slo-status-card",66),re());a&2&&(a=K().row,B(1),C("ngIf",a.sloStatus))},tNa=function(a){a&1&&(F(0,"td",62),M(1,sNa,2,1,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},uNa=function(a,b){a&1&&H(0,"b-formatted-date-time",70);a&2&&(a=b.$implicit,K(3),C("timestamp",1E3*a.seconds))},
vNa=function(a){a&1&&(qe(0),M(1,uNa,1,1,"b-formatted-date-time",69),re());a&2&&(a=K().row,B(1),C("ngIf",null==a.retentionState?null:a.retentionState.scheduledDeletionTime))},wNa=function(a){a&1&&(F(0,"td",54),M(1,vNa,2,1,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},xNa=function(a){a&1&&H(0,"div",72)},yNa=function(a){a&1&&(F(0,"div"),H(1,"b-team-display",73),G());a&2&&(a=K(2).row,B(1),C("teamId",a.teamId.toString())("componentId",a.componentId.toString())("anchorLinkEnabled",!1))},zNa=function(a){a&
1&&(qe(0),M(1,xNa,1,0,"div",71),M(2,yNa,2,3,"div",23),re());a&2&&(a=K(2),B(1),C("ngIf",a.isLoadingTeams),B(1),C("ngIf",!a.isLoadingTeams))},ANa=function(a){a&1&&(F(0,"td",54),M(1,zNa,3,2,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},BNa=function(a){a&1&&(qe(0),O(1),re());a&2&&(a=K().row,B(1),De(" ",null==a.effort?null:V(a.effort,2)," "))},CNa=function(a){a&1&&(F(0,"td",54),M(1,BNa,2,1,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},DNa=function(a){a&1&&(qe(0),O(1),re());if(a&2){a=K().row;
var b=K();B(1);De(" ",b.isTotalEstimatesEnabled?(null==a.effort?null:zl(a.effort,4))||"":""," ")}},ENa=function(a){a&1&&(F(0,"td",54),M(1,DNa,2,1,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},FNa=function(a){a&1&&(qe(0),O(1),re());if(a&2){a=K().row;var b=K();B(1);De(" ",b.isTotalEstimatesEnabled?(null==a.effort?null:zl(a.effort,5))||"":""," ")}},GNa=function(a){a&1&&(F(0,"td",54),M(1,FNa,2,1,"ng-container",23),G());a&2&&(K(),B(1),C("ngIf",!0))},HNa=function(a){a&1&&H(0,"b-issue-card",77,78);
if(a&2){var b=Ce(1);a=K().id;C("onedevIsHovercardReady",b.init)("issueId",a)}},INa=function(a,b){a&1&&(F(0,"onedev-hovercard",null,74),M(2,HNa,2,2,"b-issue-card",75),G(),F(3,"span",76),O(4),G());if(a&2){a=b.id;var c=Ce(1);B(3);C("onedevHovercardTrigger",c);B(1);Ee(a)}},JNa=function(a){if(a&1){var b=x();F(0,"b-app-bar-bulk-edit-menus",10);J("onBulkEdit",function(c){z(b);var d=K();return A(d.bulkEdit(c))})("onQuickBulkEdit",function(c){z(b);var d=K();return A(d.quickBulkEdit(c))})("onBulkEditIssueRelation",
function(c){z(b);var d=K();return A(d.bulkEditIssueRelation(c))})("onBulkMarkIssueRead",function(){z(b);var c=K();return A(c.bulkMarkIssueRead())});G()}a&2&&(a=K(),C("readStatePrompt",IJa(a)))},KNa=function(a){if(a&1){var b=x();F(0,"b-copy-issue-id-button",11);J("onClickCopyIssueIds",function(){z(b);var c=K();return A(KJa(c.copyIssueIdService,Rp(c)))})("onClickCopyIssueShortLinks",function(){z(b);var c=K();return A(LJa(c.copyIssueIdService,Rp(c)))})("onClickCopyAsIssueSearch",function(){z(b);var c=
K();return A(MJa(c.copyIssueIdService,Rp(c)))});G()}a&2&&(a=K(),C("shortLinkPrefix",a.copyIssueIdService.shortLinkPrefix)("shouldShowCopyIssueShortLinks",a.activeSession.isInternalSession()))},LNa=function(a){if(a&1){var b=x();F(0,"div",12)(1,"b-hotlist-picker",13);J("onApply",function(c){z(b);var d=K();return A(d.handleHotlistPickerSave(c))})("onCreate",function(c){z(b);var d=K();return A(d.onCreateHotlist.emit(c))})("onLoad",function(c){z(b);var d=K();return A(d.onLoadHotlist.emit(c))});G()()}a&
2&&(a=K(),B(1),C("selectedHotlistIds",a.hotlistIdMatrix)("choices",a.hotlistChoices))},MNa=function(a){a&1&&H(0,"hotlist-archive-btn",16);a&2&&(a=K(2),C("hotlistId",a.currentHotlistId))},NNa=function(a){if(a&1){var b=x();qe(0);F(1,"hotlist-add-issue-btn",14);J("issueAddedToHotlist",function(){z(b);var c=K();return A(c.refresh())});G();M(2,MNa,1,1,"hotlist-archive-btn",15);re()}a&2&&(a=K(),B(1),C("hotlistId",a.currentHotlistId),B(1),C("ngIf",a.isHotlistAdmin))},ONa=function(a){a&1&&(F(0,"span",20),
O(1,"Reporting"),G())},PNa=function(a){if(a&1){var b=x();F(0,"b-button",17);J("onAction",function(){z(b);var c=K();return A(c.openInEstado())});H(1,"b-icon",18);M(2,ONa,2,0,"span",19);G()}a&2&&(a=K(),C("size",a.hasSelectedIssues()?"large":"medium")("format",a.hasSelectedIssues()?"icon":"flat"),B(2),C("ngIf",!a.hasSelectedIssues()))},QNa=function(a,b){a&1&&(F(0,"li"),O(1),H(2,"b-access-level-indicator",28),G());a&2&&(a=b.$implicit,B(1),De(" ",a.path," "),B(1),C("accessLevel",a.accessLevel))},RNa=function(a){a&
1&&(F(0,"div",26)(1,"div")(2,"strong"),O(3,"You are commenting on issues in components that have external viewers:"),G()(),F(4,"ul"),M(5,QNa,3,2,"li",27),G()());a&2&&(a=K(2),B(5),C("ngForOf",a.externalWarnings))},SNa=function(a){if(a&1){var b=x();F(0,"h1",21);O(1,"Add comment");G();F(2,"mat-dialog-content")(3,"b-comment-box",22);J("commentChange",function(c){z(b);var d=K();return A(d.comment=c)})("onSubmit",function(){z(b);var c=K();return A(RJa(c))});G();M(4,RNa,6,1,"div",23);G();F(5,"mat-dialog-actions")(6,
"button",24);O(7," Cancel ");G();F(8,"button",25);O(9," Save ");G()()}a&2&&(a=K(),B(3),C("comment",a.comment)("showToolbar",!1),B(1),C("ngIf",0<a.externalWarnings.length),B(2),C("mat-dialog-close",!1),B(2),C("mat-dialog-close",!0))},UNa=function(a,b){if(a&1){var c=x();F(0,"div",5)(1,"b-contact-chip",6);J("chipSelection",function(){var d=z(c).index,e=K();e.selectedChipIndex!==d&&$p(e,d)&&(TNa(e),e.selectedChipIndex=d,e.items[d].isSelected=!0);return A()})("chipClear",function(){z(c);var d=K();return A(TNa(d))})("chipRemove",
function(){var d=z(c).index,e=K();return A(e.removeItem(d))});G()()}a&2&&(a=b.$implicit,b=K(),B(1),C("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){if(a&1){var b=x();F(0,"input",7,8);J("autocompleteActive",function(){z(b);var c=K();return A(c.chipifyFn())})("ngModelChange",
function(c){z(b);var d=K();return A(d.typedText=c)})("focus",function(){z(b);var c=K();return A(VNa(c))})("blur",function(){z(b);var c=K();WNa(c,c.typedText.split(",")[0].trim());c.isFocused=!1;return A()});G()}a&2&&(a=K(),C("bContactAutocomplete","MULTI")("additionalContactsCallback",a.additionalContactsFn)("ngModel",a.typedText)("disabled",a.isWidgetDisabled()),ge("id",a.idForInputBox))},YNa=function(a){a&1&&(F(0,"span"),O(1," Groups cannot be granted Restricted+ reader permission. "),F(2,"a",9),
O(3,"Learn more"),G()());a&2&&(a=K(),B(2),ge("href",Fo(a.documentationLinks)+"#components",Md))},ZNa=function(a){a&1&&(F(0,"span"),O(1," Invalid user(s). "),G())},$Na=function(a){a&1&&(F(0,"span"),O(1,' "Public" or external users are not allowed for component designated as "internal access". '),G())},aOa=function(a){a&1&&(F(0,"span"),O(1,' "Public" is not allowed for components designated as "external partner access". '),G())},bOa=function(a){a&1&&(F(0,"span"),O(1," SLO lead can only be an actual user. "),
G())},cOa=function(a){if(a&1){var b=x();F(0,"div",7)(1,"button",8);J("click",function(){z(b);var c=K();return A(c.onPressSave())});O(2," Save ");G();F(3,"button",9);J("click",function(){z(b);var c=K();return A(c.onPressRevert())});O(4," Revert changes ");G()()}a&2&&(a=K(),B(1),C("disabled",a.hasNoChanges()||a.hotlistAccessPolicyFridge.isSaving()||a.isInvalid())("matTooltip",a.isInvalid()?"Invalid form data":a.hasNoChanges()?"No changes":"Save these changes"),B(2),C("disabled",a.hasNoChanges()||a.hotlistAccessPolicyFridge.isSaving())("matTooltip",
a.hasNoChanges()?"No changes":"Go back to the last saved state"))},dOa=function(a){if(a&1){var b=x();F(0,"div",7)(1,"button",8);J("click",function(){z(b);var d=K();return A(d.save())});O(2," Save ");G();F(3,"button",9);J("click",function(){z(b);var d=K();return A(d.revert())});O(4," Revert changes ");G();H(5,"hotlist-archive-btn",10);P(6,"async");G()}if(a&2){a=K();var c;B(1);C("disabled",a.hasNoChanges()||a.fridge.isSaving())("matTooltip",a.hasNoChanges()?"No changes":"Save these changes");B(2);C("disabled",
a.hasNoChanges()||a.fridge.isSaving())("matTooltip",a.hasNoChanges()?"No changes":"Go back to the last saved state");B(2);C("hotlistId",null!==(c=Q(6,5,a.id$))&&void 0!==c?c:void 0)}},eOa=function(a,b){a&1&&(qe(0),O(1),re());a&2&&(a=b.$implicit,B(1),De(" ",a.name," "))},fOa=function(a){a&1&&(F(0,"strong",4),O(1,"(archived)"),G())},gOa=function(a){a&1&&H(0,"b-spinner")},hOa=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"}},iOa=function(a){a&1&&(F(0,"p",8),O(1," This hotlist cannot be edited because you are not an administrator of it. "),
G())},jOa=function(a){a&1&&(qe(0),H(1,"b-edit-hotlist-toolbar",1),F(2,"div",2),H(3,"b-edit-hotlist-header",1),F(4,"mat-tab-group",3)(5,"mat-tab",4),H(6,"b-edit-hotlist-basic",5),P(7,"async"),G(),F(8,"mat-tab",6),H(9,"b-edit-hotlist-acl",5),P(10,"async"),G()(),M(11,iOa,2,0,"p",7),P(12,"async"),G(),re());a&2&&(a=K(),B(1),C("hotlistId",a.id),B(2),C("hotlistId",a.id),B(1),C("selectedIndex",a.tabIndex),B(2),C("hotlistId",a.id)("isReadOnly",!1===Q(7,8,a.isAdmin$)),B(3),C("hotlistId",a.id)("isReadOnly",
!1===Q(10,10,a.isAdmin$)),B(2),C("ngIf",!1===Q(12,12,a.isAdmin$)))},kOa=function(a,b){a&1&&(qe(0),H(1,"empty-toolbar"),F(2,"div",9)(3,"h2"),O(4,"Error"),G(),F(5,"p"),O(6),G()(),re());a&2&&(a=b.$implicit,B(6),Ee(a))},lOa=function(a){a&1&&(F(0,"b-callout",1)(1,"b-callout-body"),O(2),G()());a&2&&(a=K(),B(2),Ee(a.error))},mOa=function(a){a&1&&ue(0)},nOa=function(a){a&1&&(F(0,"span"),O(1,"Details"),G())},oOa=function(a){a&1&&(F(0,"span"),O(1,"Members"),G())},qOa=function(a){a&1&&(F(0,"div",13)(1,"a",14),
M(2,nOa,2,0,"span",15),M(3,oOa,2,0,"span",15),G()());if(a&2){a=K(2);B(1);if(void 0===a.email)var b="";else{b=encodeURIComponent(a.getName());var c=encodeURIComponent(a.email);b=pOa(a.email)?"https://ganpati2.corp.google.com/group/"+b+".corp":sua(a.email)?"https://twosync.corp.google.com/rosterz/"+c:"https://groups.google.com/a/google.com/forum/#!members/"+b}C("href",b,Md);B(1);C("ngIf",pOa(a.email));B(1);C("ngIf",!pOa(a.email))}},rOa=function(a){a&1&&(qe(0),F(1,"span",2),M(2,mOa,1,0,"ng-container",
3),G(),F(3,"onedev-hovercard",null,4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9)(10,"h3"),O(11),G()(),F(12,"div",10),H(13,"mat-icon",11),F(14,"span"),O(15),G()()(),M(16,qOa,4,3,"div",12),G()()()(),re());if(a&2){var b=Ce(4);a=K();var c=Ce(2);B(1);C("onedevHovercardTrigger",b);B(1);C("ngTemplateOutlet",c);B(9);Ee(a.getName());B(4);Ee(a.email);B(1);C("ngIf",!a.sessionIsExternal&&!!Nn(a.email))}},sOa=function(a){a&1&&ye(0)},tOa=function(a,b){a&1&&H(0,"mat-icon",8);a&2&&C("svgIcon",b.ngIf)},
uOa=function(a){a&1&&(F(0,"b-person-hovercard",9),O(1),G());a&2&&(a=K(),C("email",a.value),B(1),De(" ",a.displayText," "))},vOa=function(a){a&1&&(F(0,"b-group-email-card",9),O(1),G());a&2&&(a=K(),C("email",a.value),B(1),De(" ",a.displayText," "))},wOa=function(a){a&1&&(F(0,"div"),O(1),G());a&2&&(a=K(),B(1),De(" ",a.displayText," "))},xOa=function(a){if(a&1){var b=x();F(0,"div",10);J("click",function(){z(b);var c=K();return A(c.chipRemove.emit())});H(1,"mat-icon",11);G()}a&2&&(a=K(),ze("matTooltip",
"'Remove ",a.displayText,"'"),ge("aria-label","Remove "+a.displayText))},yOa=function(a,b){a&1&&(F(0,"div",19),H(1,"b-contact-chip",20),G());a&2&&(a=b.$implicit,b=K(2),B(1),C("value",a.value)("detailedUserType",a.detailedUserType)("principalType",a.principalType)("accessLevel",b.accessLevel)("displayText",a.displayText))},zOa=function(a){a&1&&(F(0,"div",12)(1,"div",13)(2,"div",14),M(3,yOa,2,5,"div",15),F(4,"div",16),H(5,"div",17)(6,"div",18),G()()()());a&2&&(a=K(),B(3),C("ngForOf",a.nestedChips))},
AOa=function(a,b){if(a&1){var c=x();F(0,"tr",7);J("click",function(){var e=z(c).$implicit,f=K();return A(f.editHotlist(e))})("focus",function(){var e=z(c).index,f=K();return A(f.setFocusOnIndex(e))});H(1,"td",2);F(2,"td",8)(3,"a",9);J("click",function(e){return e.stopPropagation()});O(4);G()();F(5,"td",10);O(6);G();F(7,"td",11);O(8);G();F(9,"td",12);O(10);G()()}if(a&2){a=b.$implicit;b=b.index;var d=K();le("grid-focus",d.isFocused(b));ge("aria-selected",d.isFocused(b))("aria-label",d.renderRowLabel(b));
B(3);C("href",d.paths.editHotlist(a.hotlistId),Md);B(1);De(" ",a.name," ");B(2);De(" ",a.description," ");B(2);De(" ",d.convertUserToString(a.ownerUser)," ");B(2);De(" ",a.hotlistId," ")}},BOa=function(a){if(a&1){var b=x();F(0,"button",9);J("click",function(){z(b);var c=K(2);return A(c.appEvents.dashboardPanels.moveToTop.next(c.panelId))});O(1," Move to top ");G()}},COa=function(a){if(a&1){var b=x();F(0,"button",10);J("click",function(){z(b);var c=K(2);return A(c.appEvents.dashboardPanels.moveUp.next(c.panelId))});
O(1," Move up ");G()}},DOa=function(a){if(a&1){var b=x();F(0,"button",11);J("click",function(){z(b);var c=K(2);return A(c.appEvents.dashboardPanels.moveDown.next(c.panelId))});O(1," Move down ");G()}},EOa=function(a){if(a&1){var b=x();F(0,"button",12);J("click",function(){z(b);var c=K(2);return A(c.appEvents.dashboardPanels.moveToBottom.next(c.panelId))});O(1," Move to bottom ");G()}},FOa=function(a){if(a&1){var b=x();M(0,BOa,2,0,"button",4);M(1,COa,2,0,"button",5);M(2,DOa,2,0,"button",6);M(3,EOa,
2,0,"button",7);F(4,"button",8);J("click",function(){z(b);var c=K();return A(c.removePanel())});O(5," Remove ");G()}a&2&&(a=K(),C("ngIf",!a.first),B(1),C("ngIf",!a.first),B(1),C("ngIf",!a.last),B(1),C("ngIf",!a.last))},GOa=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K(),ge("title",a.getValue()),B(1),De(" ",a.getValue(),"\n"))},HOa=function(a){a&1&&H(0,"b-custom-field-value-display",2);a&2&&(a=K(),C("customFieldValue",a.getCustomFieldValue()))},IOa=function(a){a&1&&(F(0,"button",5,6),H(2,"mat-icon",
7),G());if(a&2){a=K();var b=Ce(2);C("matMenuTriggerFor",b);ge("aria-label",a.buttonLabel);B(2);C("svgIcon",a.buttonIcon)}},JOa=function(a){a&1&&(F(0,"div",8),O(1),G());a&2&&(a=K(),B(1),Ee(a.header))},KOa=function(a){a&1&&H(0,"mat-icon",7);a&2&&(a=K(2).$implicit,C("svgIcon",a.icon))},LOa=function(a){a&1&&(F(0,"span",14),O(1),G());a&2&&(a=K(2).$implicit,B(1),Ee(a.hintText))},MOa=function(a){a&1&&H(0,"mat-icon",7);a&2&&(a=K(2).$implicit,C("svgIcon",a.icon))},NOa=function(a){a&1&&(F(0,"span",14),O(1),
G());a&2&&(a=K(2).$implicit,B(1),Ee(a.hintText))},OOa=function(a){if(a&1){var b=x();F(0,"button",17);J("click",function(c){z(b);var d=K().$implicit,e=K(3);return A(e.onAction(c,d))})("mouseup",function(c){z(b);var d=K().$implicit,e=K(3);return A(e.onAction(c,d))});M(1,MOa,1,1,"mat-icon",11);O(2);M(3,NOa,2,1,"span",12);G()}a&2&&(a=K().$implicit,C("disabled",a.disabled),ge("title",a.title),B(1),C("ngIf",a.icon),B(1),De(" ",a.label," "),B(1),C("ngIf",a.hintText))},POa=function(a){if(a&1){var b=x();F(0,
"button",18);J("click",function(c){z(b);var d=K().$implicit,e=K(3);return A(e.onAction(c,d))})("mouseup",function(c){z(b);var d=K().$implicit,e=K(3);return A(e.onAction(c,d))});F(1,"span",19);H(2,"mat-icon",20);G();O(3);G()}a&2&&(a=K().$implicit,le("b-menu-item-checked",a.selected),C("disabled",a.disabled),ge("title",a.title),B(3),De(" ",a.label," "))},QOa=function(a,b){a&1&&(qe(0),M(1,OOa,4,5,"button",15),M(2,POa,4,5,"button",16),re());a&2&&(a=b.$implicit,B(1),C("ngIf","action"===a.type),B(1),C("ngIf",
"select"===a.type))},ROa=function(a){a&1&&(qe(0),F(1,"button",10),M(2,KOa,1,1,"mat-icon",11),O(3),M(4,LOa,2,1,"span",12),G(),F(5,"mat-menu",null,13),M(7,QOa,3,2,"ng-container",4),G(),re());if(a&2){var b=Ce(6);a=K().$implicit;var c=K();B(1);C("matMenuTriggerFor",b);B(1);C("ngIf",a.icon);B(1);De(" ",a.label," ");B(1);C("ngIf",a.hintText);B(3);C("ngForOf",a.items)("ngForTrackBy",c.trackByIndex)}},SOa=function(a){a&1&&H(0,"mat-icon",7);a&2&&(a=K(3).$implicit,C("svgIcon",a.icon))},TOa=function(a){a&1&&
(F(0,"span",14),O(1),G());a&2&&(a=K(3).$implicit,B(1),Ee(a.hintText))},UOa=function(a){if(a&1){var b=x();F(0,"button",17);J("click",function(c){z(b);var d=K(2).$implicit,e=K();return A(e.onAction(c,d))})("mouseup",function(c){z(b);var d=K(2).$implicit,e=K();return A(e.onAction(c,d))});M(1,SOa,1,1,"mat-icon",11);O(2);M(3,TOa,2,1,"span",12);G()}a&2&&(a=K(2).$implicit,C("disabled",a.disabled),ge("title",a.title),B(1),C("ngIf",a.icon),B(1),De(" ",a.label," "),B(1),C("ngIf",a.hintText))},VOa=function(a){if(a&
1){var b=x();F(0,"button",18);J("click",function(c){z(b);var d=K(2).$implicit,e=K();return A(e.onAction(c,d))})("mouseup",function(c){z(b);var d=K(2).$implicit,e=K();return A(e.onAction(c,d))});F(1,"span",19);H(2,"mat-icon",20);G();O(3);G()}a&2&&(a=K(2).$implicit,le("b-menu-item-checked",a.selected),C("disabled",a.disabled),ge("title",a.title),B(3),De(" ",a.label," "))},WOa=function(a){a&1&&(qe(0),M(1,UOa,4,5,"button",15),M(2,VOa,4,5,"button",16),re());a&2&&(a=K().$implicit,B(1),C("ngIf","action"===
a.type),B(1),C("ngIf","select"===a.type))},XOa=function(a,b){a&1&&(qe(0),M(1,ROa,8,6,"ng-container",9),M(2,WOa,3,2,"ng-container",9),re());a&2&&(a=b.$implicit,B(1),C("ngIf","submenu"===a.type),B(1),C("ngIf","submenu"!==a.type))},YOa=function(a){a&1&&H(0,"b-actions-menu",7);a&2&&(a=K(),C("menuItems",a.menuItems))},ZOa=function(a){a&1&&(F(0,"span",8)(1,"strong"),O(2),G(),O(3,"\u00a0of\u00a0"),F(4,"strong"),O(5),G()());a&2&&(a=K(),B(2),Fe("",null==a.searchResults?null:a.searchResults.startIndex,"\u00a0-\u00a0",
null==a.searchResults?null:a.searchResults.endIndex,""),B(3),Ee(null==a.searchResults?null:a.searchResults.totalText))},$Oa=function(a){a&1&&(F(0,"div"),O(1," Hotlist not found. "),G())},aPa=function(a){a&1&&(F(0,"div"),O(1," Loading details... "),G())},bPa=function(a){a&1&&H(0,"b-panel-controls",11);a&2&&(a=K(2),C("panelId",a.panel.panelId))},cPa=function(a){a&1&&(F(0,"span",12),O(1," \u00a0(changed) "),G())},dPa=function(a){a&1&&(F(0,"div"),M(1,bPa,1,1,"b-panel-controls",6),F(2,"span",7),O(3," Hotlist: "),
F(4,"a",8)(5,"span",9),O(6),G()()(),M(7,cPa,2,0,"span",10),G());a&2&&(a=K(),B(1),C("ngIf",a.isDashboardEditable),B(3),C("href",a.paths.viewHotlist(a.hotlistId),Md),B(1),Ae("matTooltip",a.resource.description),B(1),Ee(a.resource.name),B(1),C("ngIf",a.hasParamChanges()))},ePa=function(a){if(a&1){var b=x();F(0,"div",13)(1,"button",14);J("click",function(){z(b);var c=K();return A(c.save())});O(2,"Save ");G();F(3,"button",15);J("click",function(){z(b);var c=K();return A(c.discardChanges())});O(4," Discard changes ");
G()()}},fPa=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K(3),B(1),De(" Searching for ",a.searchParams.query," ..."))},gPa=function(a){a&1&&(F(0,"div",19),H(1,"b-spinner",20),M(2,fPa,2,1,"span",3),G());a&2&&(a=K(2),B(1),C("large",!1),B(1),C("ngIf",a.searchParams&&(null==a.searchParams?null:a.searchParams.query)))},hPa=function(a){a&1&&(F(0,"div",21),O(1," No issues in hotlist. "),G())},jPa=function(a){if(a&1){var b=x();F(0,"div",22)(1,"b-issues-grid",23);J("init",function(c){z(b);var d=K(2);return A(iPa(d,
c))})("focusedRowIndexChange",function(c){z(b);var d=K(2);return A(d.focusedRowIndex=c)})("columnsChange",function(c){z(b);var d=K(2);return A(d.issueColumns=c)})("sortChange",function(c){z(b);var d=K(2);return A(d.setSort(c.field,c.direction))})("onRowDragDrop",function(c){z(b);var d=K(2);return A(d.repositionIssue(c.srcIndex,c.destIndex))})("rowClick",function(c){z(b);var d=K(2);return A(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){z(b);var c=K(2);return A(c.goToPage(c.page+1))})("onPrevPage",
function(){z(b);var c=K(2);return A(c.goToPage(c.page-1))});G()()}a&2&&(a=K(2),B(1),C("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",a.isColumnSaveEnabled)("sort",a.getSort()))},kPa=function(a){a&1&&(F(0,"div"),M(1,gPa,3,2,"div",16),M(2,hPa,2,0,"div",17),M(3,jPa,2,5,"div",18),G());a&2&&(a=K(),B(1),C("ngIf",a.isLoading),B(1),C("ngIf",!a.isLoading&&!(null==a.searchResults?0:null==a.searchResults.issues?0:a.searchResults.issues.length)),
B(1),C("ngIf",!a.isLoading&&(null==a.searchResults?null:null==a.searchResults.issues?null:a.searchResults.issues.length)))},lPa=function(a){a&1&&(Nc(),Oc(),ue(0))},nPa=function(a,b){a&1&&(qe(0),F(1,"div",11)(2,"span",12),Nc(),F(3,"svg",13),H(4,"path",14),G()(),M(5,lPa,1,0,"ng-container",15),G(),re());if(a&2){a=b.$implicit;b=b.index;var c=K(3),d=Ce(6);B(2);le("invisible",c.disabled);B(3);C("ngTemplateOutlet",d)("ngTemplateOutletContext",Je(4,mPa,a,b))}},oPa=function(a){a&1&&(qe(0),M(1,nPa,6,7,"ng-container",
10),re());a&2&&(a=K(2),B(1),C("ngForOf",a.items))},pPa=function(a){if(a&1){var b=x();qe(0);F(1,"div",8)(2,"div",9);J("cdkDropListDropped",function(d){z(b);var e=K();return A(e.onDrop(d))});M(3,oPa,2,1,"ng-container",2);G()();re()}if(a&2){a=K();var c=Ce(12);B(3);C("ngIf",a.items.length)("ngIfElse",c)}},qPa=function(a){a&1&&ue(0)},rPa=function(a,b){a&1&&(qe(0),F(1,"div",17),M(2,qPa,1,0,"ng-container",15),G(),re());if(a&2){a=b.$implicit;b=b.index;K(3);var c=Ce(6);B(2);C("ngTemplateOutlet",c)("ngTemplateOutletContext",
Je(2,mPa,a,b))}},sPa=function(a){a&1&&(qe(0),M(1,rPa,3,5,"ng-container",10),re());a&2&&(a=K(2),B(1),C("ngForOf",a.items))},tPa=function(a){a&1&&(F(0,"div",16),M(1,sPa,2,1,"ng-container",2),G());if(a&2){a=K();var b=Ce(12);B(1);C("ngIf",a.items.length)("ngIfElse",b)}},uPa=function(a){a&1&&ue(0)},vPa=function(a){if(a&1){var b=x();F(0,"button",19);J("click",function(){z(b);var d=K().index,e=K();return A(e.removeAtIndex(d))});Nc();F(1,"svg",13);H(2,"path",20);G()()}if(a&2){a=K().$implicit;var c=K();C("matTooltip",
"Remove "+(c.valueToTextFunc?c.valueToTextFunc(a):String(a)));ge("aria-label","Remove "+(c.valueToTextFunc?c.valueToTextFunc(a):String(a)))}},wPa=function(a,b){a&1&&(M(0,uPa,1,0,"ng-container",15),M(1,vPa,3,2,"button",18));if(a&2){a=b.$implicit;b=b.index;var c=K(),d=Ce(10),e=Ce(8);C("ngTemplateOutlet",c.listItemTemplate?d:e)("ngTemplateOutletContext",Je(3,mPa,a,b));B(1);C("ngIf",!c.disabled&&c.removable)}},xPa=function(a,b){a&1&&(F(0,"span",21),O(1),G());a&2&&(a=b.$implicit,B(1),Ee(a))},yPa=function(a,
b){a&1&&ue(0,22);if(a&2){a=b.$implicit;var c=b.index,d=K();b=C("ngTemplateOutlet",d.listItemTemplate);var e=d.disabled;d=d.removable;var f=x(),h=Kc()+2,k=fe(f,h,a,c);a=fe(f,h+2,e,d)||k?de(f,h+4,{$implicit:a,index:c,disabled:e,removable:d}):Le(f,h+4);b("ngTemplateOutletContext",a)}},zPa=function(a){a&1&&(F(0,"div",23),ye(1),G())},APa=function(a){a&1&&H(0,"b-issue-status-display",9);a&2&&(a=K().$implicit,C("issueStatusJs",a.status)("displayMode","ICON"))},BPa=function(a){a&1&&H(0,"b-issue-card",10,
11);if(a&2){var b=Ce(1);a=K().$implicit;C("onedevIsHovercardReady",b.init)("issueId",a.issueId)}},CPa=function(a){a&1&&(F(0,"a",12),O(1),G());if(a&2){a=K().$implicit;var b=K();C("href",b.getLink(a),Md);B(1);De(" ",a.title," ")}},DPa=function(a){a&1&&(F(0,"span"),O(1," Loading details... "),G())},EPa=function(a){a&1&&(F(0,"span"),O(1," [Details unavailable] "),G())},FPa=function(a,b){a&1&&(F(0,"span",2),M(1,APa,1,2,"b-issue-status-display",3),F(2,"span")(3,"onedev-hovercard",null,4),M(5,BPa,2,2,"b-issue-card",
5),G(),F(6,"a",6),O(7),G()(),M(8,CPa,2,2,"a",7),M(9,DPa,2,0,"span",8),M(10,EPa,2,0,"span",8),G());if(a&2){a=b.$implicit;var c=Ce(4);b=K();C("ngClass",b.getStatusTextStyle(a));B(1);C("ngIf",a.status);B(5);ie("aria-label","Open issue ID ",a.issueId,"");C("href",b.getLink(a),Md)("onedevHovercardTrigger",c);B(1);De(" ",a.issueId," ");B(1);C("ngIf",a.resolved&&a.title);B(1);C("ngIf",!a.resolved);B(1);C("ngIf",a.resolved&&!a.title)}},GPa=function(a){if(a&1){var b=x();F(0,"b-rel-issues-list",6);J("itemsChange",
function(c){z(b);var d=K(2);return A(d.itemsChange.emit(c))})("itemChange",function(c){z(b);var d=K(2);return A(d.itemChange.emit(c))})("itemMove",function(c){z(b);var d=K(2);return A(d.itemMove.emit(c))});G()}a&2&&(a=K(2),C("items",a.items)("orderByFn",a.orderByFn)("disabled",a.disabled)("reorderable",a.reorderable))},HPa=function(a){a&1&&(F(0,"div"),M(1,GPa,1,4,"b-rel-issues-list",5),G());a&2&&(a=K(),B(1),C("ngIf",a.items.length))},IPa=function(a){a&1&&H(0,"b-issue-status-display",18);a&2&&(a=K().$implicit,
C("issueStatusJs",a.status))},JPa=function(a){a&1&&H(0,"b-issue-card",19,20);if(a&2){var b=Ce(1);a=K().$implicit;C("onedevIsHovercardReady",b.init)("issueId",a.issueId)}},KPa=function(a){a&1&&(F(0,"span",10),O(1," Loading details... "),G())},LPa=function(a){a&1&&(F(0,"span",21),O(1),G());a&2&&(a=K().$implicit,B(1),De(" ",a.title," "))},MPa=function(a){a&1&&(F(0,"span"),O(1," [Details unavailable.] "),G())},NPa=function(a){if(a&1){var b=x();F(0,"button",22);J("click",function(){z(b);var d=K().$implicit,
e=K(2);return A(e.removeItem(d.issueId))});G()}if(a&2){a=K().$implicit;var c=K(2);C("disabled",c.disabled)("matTooltip",c.removeButtonTitle||"Remove issue");ge("aria-label",c.removeButtonTitle?c.removeButtonTitle+" ID "+a.issueId:"Remove issue ID "+a.issueId)}},OPa=function(a,b){a&1&&(F(0,"div",8),M(1,IPa,1,1,"b-issue-status-display",9),F(2,"span",10)(3,"onedev-hovercard",null,11),M(5,JPa,2,2,"b-issue-card",12),G(),F(6,"a",13),O(7),G()(),F(8,"a",14),M(9,KPa,2,0,"span",15),M(10,LPa,2,1,"span",16),
M(11,MPa,2,0,"span",3),G(),M(12,NPa,1,3,"button",17),G());if(a&2){a=b.$implicit;var c=Ce(4);b=K(2);C("ngClass",!b.hideStatus&&b.getStatusTextStyle(a)||"");B(1);C("ngIf",!b.hideStatus&&a.resolved&&a.status);B(5);ie("aria-label","Open issue ID ",a.issueId,"");C("href",b.getLink(a),Md)("onedevHovercardTrigger",c);B(1);De(" ",a.issueId," ");B(1);C("href",b.getLink(a),Md);B(1);C("ngIf",!a.resolved);B(1);C("ngIf",a.resolved&&a.title);B(1);C("ngIf",a.resolved&&!a.title);B(1);C("ngIf",b.removeButtonTitle)}},
PPa=function(a){a&1&&(F(0,"div"),M(1,OPa,13,11,"div",7),G());a&2&&(a=K(),B(1),C("ngForOf",a.items))},QPa=function(a){a&1&&(F(0,"div"),O(1,"--"),G())},RPa=function(a){a&1&&(F(0,"div",26)(1,"a",14),O(2,"View in issue list"),G()());a&2&&(a=K(2),B(1),C("href",a.searchLink,Md))},TPa=function(a){if(a&1){var b=x();F(0,"div",23)(1,"button",24);J("click",function(){z(b);var c=K();return A(SPa(c))});O(2);G();M(3,RPa,3,1,"div",25);ye(4);G()}a&2&&(a=K(),B(1),C("disabled",a.disabled),B(1),De(" ",a.addButtonTitle||
"Add issue"," "),B(1),C("ngIf",a.searchLink))},UPa=function(a){a&1&&(F(0,"div"),O(1," Saved search not found. "),G())},VPa=function(a){a&1&&(F(0,"div"),O(1," Loading details... "),G())},WPa=function(a){a&1&&H(0,"b-panel-controls",11);a&2&&(a=K(2),C("panelId",a.panel.panelId))},XPa=function(a){a&1&&(F(0,"span",12),O(1," \u00a0(changed) "),G())},YPa=function(a){a&1&&(F(0,"div",6),M(1,WPa,1,1,"b-panel-controls",7),F(2,"span",6),O(3," Saved search: "),F(4,"a",8)(5,"span",9),O(6),G()()(),M(7,XPa,2,0,"span",
10),G());a&2&&(a=K(),B(1),C("ngIf",a.isDashboardEditable),B(3),C("href",a.paths.viewSavedSearch(a.savedSearchId),Md),B(1),Ae("matTooltip",a.resource.description),B(1),Ee(a.resource.name),B(1),C("ngIf",a.hasParamChanges()))},ZPa=function(a,b){a&1&&(F(0,"span"),O(1),G());a&2&&(a=b.ngIf,B(1),De("Searching for ",a,"..."))},$Pa=function(a){a&1&&(F(0,"div",16),H(1,"b-spinner",17),M(2,ZPa,2,1,"span",3),G());a&2&&(a=K(2),B(1),C("large",!1),B(1),C("ngIf",null==a.searchParams?null:a.searchParams.query))},aQa=
function(a){a&1&&(F(0,"div",18),O(1," No issues in saved search. "),G())},bQa=function(a){if(a&1){var b=x();F(0,"div",19)(1,"b-issues-grid",20);J("init",function(c){z(b);var d=K(2);return A(iPa(d,c))})("focusedRowIndexChange",function(c){z(b);var d=K(2);return A(d.focusedRowIndex=c)})("columnsChange",function(c){z(b);var d=K(2);return A(d.columnsChange(c))})("sortChange",function(c){z(b);var d=K(2);return A(d.setSort(c.field,c.direction))})("rowClick",function(c){z(b);var d=K(2);return A(d.goToIssue(c.id,
c.isRead,c.event))})("onNextPage",function(){z(b);var c=K(2);return A(c.goToPage(c.page+1))})("onPrevPage",function(){z(b);var c=K(2);return A(c.goToPage(c.page-1))});G()()}a&2&&(a=K(2),B(1),C("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",a.isColumnSaveEnabled)("sort",a.getSort()))},cQa=function(a){a&1&&(F(0,"div"),M(1,$Pa,3,2,"div",13),M(2,aQa,2,0,"div",14),M(3,bQa,2,5,"div",15),G());a&2&&(a=K(),B(1),C("ngIf",a.isLoading),B(1),
C("ngIf",!a.isLoading&&a.searchResults&&0===a.searchResults.issues.length),B(1),C("ngIf",!a.isLoading&&a.searchResults&&0!==a.searchResults.issues.length))},dQa=function(a,b){a&1&&(F(0,"span",3)(1,"a",4),O(2),G()());a&2&&(a=b.$implicit,B(1),ze("routerLink","/teams/",a.id,"/edit"),C("preserveFragment",!0),B(1),Ee(a.name))},eQa=function(a){a&1&&(F(0,"p")(1,"span",6),O(2,"NOTE:"),G(),O(3),F(4,"a",7),O(5,"Learn more"),G()());a&2&&(a=K(),B(3),De(" ",a.data.noteText," "),B(1),C("href",a.getDisablingFieldsHelpLink(),
Md))},fQa=function(a){a&1&&(F(0,"span",15)(1,"strong"),O(2),G(),O(3," of "),F(4,"strong"),O(5),G()());a&2&&(a=K(5),B(2),Fe("",a.startIndex,"\u2013",a.endIndex,""),B(3),Ee(a.totalText))},gQa=function(a){if(a&1){var b=x();F(0,"div",9);M(1,fQa,6,3,"span",10);F(2,"b-button",11);J("onAction",function(){z(b);var c=K(4);return A(c.fetchIssues(c.page-1))});H(3,"b-icon",12);G();F(4,"b-button",13);J("onAction",function(){z(b);var c=K(4);return A(c.fetchIssues(c.page+1))});H(5,"b-icon",14);G()()}a&2&&(a=K(4),
B(1),C("ngIf",!a.isLoadingAsyncResults()),B(1),C("disabled",1>=a.page),B(2),C("disabled",a.page>=a.numPages))},hQa=function(a){if(a&1){var b=x();F(0,"button",16);J("click",function(){z(b);var c=K(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;aq(c.hatsService,"HFPx18aEL0g6pPHSLo10YtkWxxH9",
d).pipe(cg(c.destroyed$)).subscribe();return A()});H(1,"mat-icon",17);G()}},jQa=function(a){a&1&&(F(0,"li")(1,"h3"),O(2),G(),M(3,gQa,6,3,"div",7),M(4,hQa,2,0,"button",8),G());a&2&&(a=K(3),B(2),Ee(iQa(a)),B(1),C("ngIf",!a.enableSimilarIssues),B(1),C("ngIf",a.showSuggestedDupes))},kQa=function(a){a&1&&(F(0,"div",18),O(1,"There may already be issues opened on this topic. Please consider +1 to the canonical issue if that is the case."),G())},lQa=function(a){if(a&1){var b=x();F(0,"b-issue-card",24,25);
J("init",function(){z(b);var e=K(5);eo(e.analytics,io.MAGIC_BOX,"titleHoverOver",e.getGroupName());return A()});G()}if(a&2){var c=Ce(1);a=K().$implicit;var d=K(4);C("onedevIsHovercardReady",c.init)("issueId",a.id)("location",d.CATEGORIES.MAGIC_BOX+d.getGroupName())}},mQa=function(a,b){if(a&1){var c=x();F(0,"li",20)(1,"onedev-hovercard",null,21);M(3,lQa,2,3,"b-issue-card",22);G();F(4,"a",23);J("click",function(){z(c);var e=K(4);eo(e.analytics,io.MAGIC_BOX,"titleClick",e.getGroupName());return A()});
O(5);G()()}if(a&2){a=b.$implicit;var d=Ce(2);b=K(4);C("ngClass",b.enableSimilarIssues?"magic-box-item-new":"magic-box-item");B(4);ze("href","issues/",a.id,"",Md);C("onedevHovercardTrigger",d);B(1);De(" ",a.title," ")}},nQa=function(a){a&1&&(qe(0),M(1,mQa,6,4,"li",19),re());a&2&&(a=K(3),B(1),C("ngForOf",a.magicBoxIssues))},oQa=function(a){a&1&&(F(0,"li"),O(1),G());a&2&&(a=K(3),B(1),De(" No ",iQa(a).toLowerCase()," found. "))},pQa=function(a){a&1&&(F(0,"li",26)(1,"a",27),O(2," View All Issues \u2192 "),
G()());a&2&&(a=K(3),B(1),Ae("href",a.viewAllHref,Md))},qQa=function(a){if(a&1){var b=x();F(0,"li",28)(1,"button",29);J("click",function(){z(b);var c=K(3);c.fetchIssues(c.page+1);eo(c.analytics,io.MAGIC_BOX,"loadMore");return A()});H(2,"mat-icon",30);O(3," Load more ");G()()}},rQa=function(a){if(a&1){var b=x();F(0,"li",31)(1,"a",27)(2,"button",32);J("click",function(){z(b);var c=K(3);eo(c.analytics,io.MAGIC_BOX,"viewAll");return A()});O(3,"View all ");H(4,"mat-icon",33);G()()()}a&2&&(a=K(3),B(1),Ae("href",
a.viewAllHref,Md))},sQa=function(a){a&1&&(F(0,"li"),H(1,"b-spinner"),F(2,"span"),O(3,"Loading..."),G()())},tQa=function(a){a&1&&(F(0,"ul"),M(1,jQa,5,3,"li",2),M(2,kQa,2,0,"div",3),M(3,nQa,2,1,"ng-container",2),M(4,oQa,2,1,"li",2),M(5,pQa,3,1,"li",4),M(6,qQa,4,0,"li",5),M(7,rQa,5,1,"li",6),M(8,sQa,4,0,"li",2),G());a&2&&(a=K(2),B(1),C("ngIf",!a.hideHeader),B(1),C("ngIf",a.showSuggestedDupes),B(1),C("ngIf",!a.isLoadingAsyncResults()),B(1),C("ngIf",0==a.magicBoxIssues.length&&!a.isLoadingAsyncResults()),
B(1),C("ngIf",!a.isLoadingAsyncResults()&&1<a.numPages&&!a.enableSimilarIssues),B(1),C("ngIf",!a.isLoadingAsyncResults()&&a.endIndex<a.numTotalResults&&a.enableSimilarIssues),B(1),C("ngIf",!a.isLoadingAsyncResults()&&1<a.numPages&&a.enableSimilarIssues),B(1),C("ngIf",a.isLoadingAsyncResults()))},uQa=function(a){a&1&&(F(0,"div"),H(1,"b-spinner"),F(2,"span"),O(3,"Loading..."),G()())},vQa=function(a){a&1&&(F(0,"div",1),M(1,tQa,9,8,"ul",2),M(2,uQa,4,0,"div",2),G());a&2&&(a=K(),B(1),C("ngIf",!a.magicBoxLoading),
B(1),C("ngIf",a.magicBoxLoading))},wQa=function(a){a&1&&(qe(0),H(1,"span",26)(2,"b-icon",27),re());a&2&&(a=K(),B(1),C("innerHTML",a.menuLabel,Ld))},xQa=function(a){a&1&&(F(0,"div",28),O(1," This includes emails about major updates and: "),F(2,"ul",29)(3,"li"),O(4,"All title, hotlist, and status changes."),G(),F(5,"li"),O(6,"Blocking, Blocked By, or Duplicate changes."),G(),F(7,"li"),O(8,"Changes to Reporter, Verifier, and CCs."),G(),F(9,"li"),O(10,"Changes to Type, Found In, Targeted To, Verified In, and In Prod. "),
G(),F(11,"li"),O(12,"Changes to custom fields marked as minor."),G()()())},yQa=function(a){a&1&&(F(0,"div",30),O(1," This includes emails about: "),F(2,"ul",29)(3,"li"),O(4,"New comments."),G(),F(5,"li"),O(6,"Priority or Severity changes."),G(),F(7,"li"),O(8,"Assignee changes."),G(),F(9,"li"),O(10,"Component changes."),G(),F(11,"li"),O(12,"Issue closure or reopening."),G(),F(13,"li"),O(14,"Changes to custom fields marked as major."),G()()())},zQa=function(a,b){a&1&&(F(0,"mat-option",6),O(1),G());
a&2&&(a=b.$implicit,C("value",a),B(1),De(" ",a.getName()," "))},AQa=function(a){a&1&&(F(0,"span",11),O(1," (must be between 30 days and 10 years) "),G())},BQa=function(a){if(a&1){var b=x();F(0,"div",12)(1,"b-duration-picker",13);J("durationDaysChange",function(c){z(b);var d=K();d.model.retentionPeriodDays=null!==c&&void 0!==c?c:null;d.modelChange.emit(d.model);bq(d);return A()});G();F(2,"div",14);O(3);G()()}a&2&&(a=K(),B(1),C("disabled",a.issueRetentionDisabled)("durationDays",a.model.retentionPeriodDays),
B(2),De(" Issues will be marked for deletion when they have not been modified for ",cq(a.model.retentionPeriodDays),". "))},CQa=function(a){a&1&&(F(0,"div",15)(1,"p"),O(2,"Please note indefinite retention is not appropriate in many circumstances. Before selecting this option, you should make sure "),F(3,"b"),O(4,"one or more"),G(),O(5," of the following is true:"),G(),F(6,"ol")(7,"li"),O(8,"There is no personal data, user data, or any other forms of sensitive data being stored."),G(),F(9,"li"),O(10,
"You have a process in place to manually delete this data within an approved period of time."),G(),F(11,"li"),O(12,"Legal and Privacy have approved this non-standard retention period."),G()()())},DQa=function(a){a&1&&(F(0,"span",11),O(1," (Issue Retention is shorter than default Restricted Retention) "),G())},FQa=function(a){a&1&&(F(0,"span",11),O(1),G());a&2&&(a=K(),B(1),De(" ",EQa(a)," "))},GQa=function(a){a&1&&(F(0,"div",21)(1,"p"),O(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."),
G()())},IQa=function(a){if(a&1){var b=x();F(0,"div",12)(1,"div")(2,"span",16);O(3,"Restricted retention:");G();F(4,"b-duration-picker",17);J("durationDaysChange",function(c){z(b);var d=K();d.model.piiRetentionPeriodDays=null!==c&&void 0!==c?c:null;d.modelChange.emit(d.model);bq(d);return A()});G()();F(5,"div",18)(6,"p");O(7);G()();F(8,"div")(9,"span",16);O(10,"Restricted+ retention:");G();F(11,"b-duration-picker",19);J("durationDaysChange",function(c){z(b);var d=K();d.model.spiiRetentionPeriodDays=
null!==c&&void 0!==c?c:null;d.modelChange.emit(d.model);bq(d);return A()});G()();F(12,"div",18)(13,"p");O(14);G()();M(15,GQa,3,0,"div",20);G()}a&2&&(a=K(),B(4),C("disabled",!dq(a))("durationDays",a.model.piiRetentionPeriodDays),B(3),De(" Restricted comments and attachments will be marked for deletion when the containing issue has not been modified for ",cq(a.model.piiRetentionPeriodDays),". "),B(4),C("disabled",!dq(a))("durationDays",a.model.spiiRetentionPeriodDays),B(3),De(" Restricted+ comments and attachments will be marked for deletion when the containing issue has not been modified for ",
cq(a.model.spiiRetentionPeriodDays),". "),B(1),C("ngIf",a.model.piiRetentionSelection===a.RetentionSelection.CUSTOM_PERIOD&&HQa(a)))},JQa=function(a){a&1&&(F(0,"div",22)(1,"p"),O(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."),G()())},eq=function(a,b,c,
d){var e=KQa(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}},KQa=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},fq=function(a,b){return(void 0===b?0:b)?-1<a.search(/^\d+\+?$/):-1<a.search(/^\d+$/)},LQa=function(a){return"-"===a.charAt(0)?{negated:!0,token:a.slice(1)}:{negated:!1,token:a}},gq=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?Ni(q,e):ea(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},hq=function(a,b,c,d){return{trackId:b+":"+a,name:a,id:a,label:c,completionCfg:{enableShadowPlaceholder:!0,completionValue:a,type:d}}},OQa=function(a,b){if(a&1){var c=x();F(0,"div",9)(1,"div",10);J("click",function(d){var e=z(c).$implicit,f=K();e=e.key;if(d=
void 0===d?null:d)d.preventDefault(),d.stopPropagation();d=f.options.propertyValues[e];d.value=!d.value;MQa(f);NQa(f);f.optionsChange.emit(f.options);return A()});F(2,"b-checkbox",11);J("change",function(d){var e=z(c).$implicit,f=K();e.value.value=d;MQa(f);NQa(f);f.optionsChange.emit(f.options);return A()})("click",function(d){return d.stopPropagation()});G()()()}a&2&&(a=b.$implicit,ge("aria-checked",a.value.value),B(2),C("checked",a.value.value)("label",a.value.displayString))},PQa=function(a){a&
1&&(F(0,"div",12),O(1),G());a&2&&(a=K(),B(1),De(" ",a.errorString," "))},RQa=function(a){if(a&1){var b=x();F(0,"span",4)(1,"input",5);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.businessDayString=c)})("ngModelChange",function(){z(b);var c=K(2);return A(QQa(c))});G();F(2,"span",8);O(3,"days,");G()()}a&2&&(a=K(2),B(1),le("ng-invalid",!!a.errorString),C("ngModel",a.businessDayString))},TQa=function(a,b){a&1&&(F(0,"mat-option",9),O(1),G());a&2&&(a=b.$implicit,b=K(2),C("value",a),B(1),De(" ",
SQa(b,a)," "))},WQa=function(a){if(a&1){var b=x();F(0,"span",2);M(1,RQa,4,3,"span",3);F(2,"span",4)(3,"input",5);J("ngModelChange",function(c){z(b);var d=K();return A(d.intervalString=c)})("ngModelChange",function(){z(b);var c=K();return A(QQa(c))});G();F(4,"mat-select",6);J("ngModelChange",function(c){z(b);var d=K();return A(d.intervalUnit=c)})("selectionChange",function(){z(b);var c=K();UQa(c);VQa(c);return A()});M(5,TQa,2,2,"mat-option",7);G()()()}a&2&&(a=K(),B(1),C("ngIf",2==a.dayType),B(2),le("invalid",
!!a.errorString),C("ngModel",a.intervalString),B(1),C("ngModel",a.intervalUnit),B(1),C("ngForOf",2==a.dayType?[iq,jq]:[iq,jq,kq]))},XQa=function(a){a&1&&(F(0,"span",13),O(1),G());a&2&&(a=K(2),B(1),Fe(" ",a.objectiveBusinessDays," day",1!=a.objectiveBusinessDays?"s":""," "))},YQa=function(a){a&1&&(F(0,"span"),O(1,", "),G())},ZQa=function(a){a&1&&(F(0,"span"),M(1,YQa,2,0,"span",12),F(2,"span"),O(3),G()());a&2&&(a=K(2),B(1),C("ngIf",a.objectiveBusinessDays),B(2),Fe("",a.intervalString," ",SQa(a,a.intervalUnit),
""))},$Qa=function(a){a&1&&(F(0,"span",10),M(1,XQa,2,2,"span",11),M(2,ZQa,4,3,"span",12),G());a&2&&(a=K(),B(1),C("ngIf",a.objectiveBusinessDays),B(1),C("ngIf",a.intervalString&&"0"!=a.intervalString))},bRa=function(a){if(a&1){var b=x();F(0,"b-icon",22);J("click",function(){z(b);var c=K(2);return A(aRa(c,0))});G()}a&2&&C("name","add")("size","small")},dRa=function(a){if(a&1){var b=x();F(0,"span",17)(1,"span",18)(2,"span",19);M(3,bRa,1,2,"b-icon",20);G();F(4,"span",19)(5,"b-icon",21);J("click",function(c){z(b);
var d=K();return A(cRa(d,c))});G()()()()}a&2&&(a=K(),B(3),C("ngIf",a.canPerformActions),B(2),C("name","delete")("size","small"))},eRa=function(a){a&1&&H(0,"td",42)},fRa=function(a){if(a&1){var b=x();F(0,"td",43)(1,"slo-element-property-picker",44);J("optionsChange",function(c){z(b);var d=K().$implicit;return A(d.typePickerValues=c)});G()()}a&2&&(a=K().$implicit,B(1),C("selectAllText","Any type")("validator",a.validateTypePicker)("options",a.typePickerValues))},gRa=function(a){if(a&1){var b=x();F(0,
"td",45)(1,"slo-element-property-picker",46);J("optionsChange",function(c){z(b);var d=K().$implicit;return A(d.priorityPickerValues=c)});G()()}a&2&&(a=K().$implicit,B(1),C("selectAllText","Any priority")("validator",a.validatePriorityPicker)("options",a.priorityPickerValues))},hRa=function(a){if(a&1){var b=x();F(0,"td",47)(1,"slo-element-property-picker",48);J("optionsChange",function(d){z(b);var e=K().$implicit;return A(e.postmortemPickerValues=d)});G()()}if(a&2){a=K().$implicit;var c=K(2);B(1);
C("selectAllText",c.postmortemAllSummaryValue)("validator",a.validatePostmortemPicker)("options",a.postmortemPickerValues)}},jRa=function(a,b){a&1&&(F(0,"mat-option",53),O(1),G());a&2&&(a=b.$implicit,K(4),C("value",a),B(1),De(" ",0===a?" - ":iRa.get(a)," "))},kRa=function(a){if(a&1){var b=x();F(0,"td",49)(1,"mat-form-field",50)(2,"mat-select",51);J("ngModelChange",function(d){z(b);var e=K().$implicit;return A(e.selectedMetric=d)});M(3,jRa,2,2,"mat-option",52);G()()()}if(a&2){a=K().$implicit;var c=
K(2);B(2);C("ngModel",a.selectedMetric)("customValidators",a.metricValidators);B(1);C("ngForOf",c.metricChoices)}},lRa=function(a){if(a&1){var b=x();F(0,"td",54)(1,"slo-objective-selector",55);J("objectiveDurationChange",function(c){z(b);var d=K().$implicit;return A(d.selectedObjectiveDuration=c)})("objectiveBusinessDaysChange",function(c){z(b);var d=K().$implicit;return A(d.selectedObjectiveBusinessDays=c)});G()()}a&2&&(a=K().$implicit,B(1),C("dayType",a.selectedDayType)("objectiveDuration",a.selectedObjectiveDuration)("objectiveBusinessDays",
a.selectedObjectiveBusinessDays)("validator",a.validateObjective))},nRa=function(a,b){a&1&&(F(0,"mat-option",53),O(1),G());a&2&&(a=b.$implicit,K(4),C("value",a),B(1),De(" ",mRa.get(a||1)," "))},oRa=function(a){if(a&1){var b=x();F(0,"td",56)(1,"mat-form-field",57)(2,"mat-select",58);J("ngModelChange",function(d){z(b);var e=K().$implicit;return A(e.selectedDayType=d)})("selectionChange",function(){z(b);var d=K().$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()});M(3,nRa,2,2,"mat-option",52);G()()()}if(a&2){a=K().$implicit;var c=K(2);B(2);C("ngModel",a.selectedDayType);B(1);C("ngForOf",c.dayTypes)}},rRa=function(a){if(a&1){var b=x();F(0,"td",59)(1,"span",18)(2,"span",19)(3,"b-icon",60);J("click",function(){z(b);
var c=K(3);if(c.openRow)if(c.openRow.isValid())pRa(c.openRow.typePickerValues)&&pRa(c.openRow.priorityPickerValues)&&pRa(c.openRow.postmortemPickerValues)?c.confirmationDialogService.open({title:"SLO validation error",content:Pn("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}):lq(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:Pn('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()});G()();F(4,"span",19)(5,"b-icon",61);J("click",
function(){z(b);var c=K().$implicit,d=K(2);return A(qRa(d,c))});G()()()()}a&2&&(B(3),C("name","done")("size","small"),B(2),C("name","delete")("size","small"))},sRa=function(a){a&1&&H(0,"td",62)},tRa=function(a){a&1&&(F(0,"div"),O(1),G());a&2&&(a=K(2).$implicit,B(1),De("ERROR: ",a.parseResult.error,""))},uRa=function(a,b){a&1&&(F(0,"span",68)(1,"span",69),O(2),G()());a&2&&(a=b.$implicit,B(2),Ee(a))},wRa=function(a){a&1&&(F(0,"span",66),M(1,uRa,3,1,"span",67),G());if(a&2){a=K(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(vRa(a.controllerReference,d));a=b}C("ngForOf",a)}},xRa=function(a){a&1&&(F(0,"td",63),M(1,tRa,2,1,"div",64),M(2,wRa,2,1,"span",65),G());a&2&&(a=K().$implicit,B(1),C("ngIf",a.parseResult.error),B(1),C("ngIf",!a.parseResult.error))},yRa=function(a){a&1&&(F(0,"div"),O(1),G());a&2&&(a=K(2).$implicit,B(1),
De("ERROR: ",a.parseResult.error,""))},zRa=function(a,b){a&1&&(F(0,"span",68)(1,"span",69),O(2),G()());a&2&&(a=b.$implicit,B(2),Ee(a))},BRa=function(a){a&1&&(F(0,"span",66),M(1,zRa,3,1,"span",67),G());if(a&2){a=K(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(ARa(a.controllerReference,d));a=b}C("ngForOf",a)}},
CRa=function(a){a&1&&(F(0,"td",70),M(1,yRa,2,1,"div",64),M(2,BRa,2,1,"span",65),G());a&2&&(a=K().$implicit,B(1),C("ngIf",a.parseResult.error),B(1),C("ngIf",!a.parseResult.error))},DRa=function(a){a&1&&(F(0,"div"),O(1),G());a&2&&(a=K(2).$implicit,B(1),De("ERROR: ",a.parseResult.error,""))},ERa=function(a,b){a&1&&(F(0,"span",68)(1,"span",69),O(2),G()());a&2&&(a=b.$implicit,B(2),Ee(a))},FRa=function(a){a&1&&(F(0,"span",66),M(1,ERa,3,1,"span",67),G());if(a&2){a=K(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])];C("ngForOf",a)}},GRa=function(a){a&1&&(F(0,"td",71),M(1,DRa,2,1,"div",64),M(2,FRa,2,1,"span",65),G());a&2&&(a=K().$implicit,B(1),C("ngIf",a.parseResult.error),B(1),C("ngIf",!a.parseResult.error))},HRa=function(a){a&1&&(F(0,"td",72),O(1),G());a&2&&(a=K().$implicit,K(2),B(1),a=a.sloElement.getMetric(),a=0===a?" - ":iRa.get(a),De(" ",a," "))},IRa=function(a){if(a&
1){var b=x();F(0,"td",73)(1,"slo-objective-selector",74);J("objectiveDurationChange",function(c){z(b);var d=K().$implicit;return A(d.selectedObjectiveDuration=c)})("objectiveBusinessDaysChange",function(c){z(b);var d=K().$implicit;return A(d.selectedObjectiveBusinessDays=c)});G()()}a&2&&(a=K().$implicit,B(1),C("dayType",a.selectedDayType)("objectiveDuration",a.selectedObjectiveDuration)("objectiveBusinessDays",a.selectedObjectiveBusinessDays)("isDisabled",!a.isEditing_))},JRa=function(a){a&1&&(F(0,
"td",75),O(1),G());a&2&&(a=K().$implicit,K(2),B(1),a=X(a.sloElement,4,0),a=mRa.get(a||1),De(" ",a," "))},LRa=function(a){if(a&1){var b=x();F(0,"b-icon",85);J("click",function(c){z(b);var d=K(2).$implicit,e=K(2);return A(KRa(e,d,c))});G()}a&2&&C("name","edit")("size","small")},MRa=function(a){a&1&&H(0,"b-icon",86);if(a&2){K();var b=Ce(8);C("name","more-settings-vertical")("size","small")("matMenuTriggerFor",b)}},ORa=function(a){if(a&1){var b=x();F(0,"button",87);J("click",function(){z(b);var c=K(2).$implicit,
d=K(2);return A(NRa(d,c,1))});O(1," Move row down ");G()}},PRa=function(a){if(a&1){var b=x();F(0,"button",88);J("click",function(){z(b);var c=K(2).$implicit,d=K(2);return A(NRa(d,c,-1))});O(1," Move row up ");G()}},RRa=function(a){if(a&1){var b=x();F(0,"td",76)(1,"span",18)(2,"span",19);M(3,LRa,1,2,"b-icon",77);G();F(4,"span",19)(5,"span");M(6,MRa,1,3,"b-icon",78);G();F(7,"mat-menu",null,79);M(9,ORa,2,0,"button",80);M(10,PRa,2,0,"button",81);F(11,"button",82);J("click",function(){z(b);var d=K().$implicit,
e=K(2);aRa(e,e.collection.indexOf(d)+1);return A()});O(12," Add row below ");G();F(13,"button",83);J("click",function(){z(b);var d=K().$implicit,e=K(2);aRa(e,e.collection.indexOf(d));return A()});O(14," Add row above ");G();F(15,"button",84);J("click",function(){z(b);var d=K().$implicit,e=K(2);return A(qRa(e,d))});O(16," Remove ");G()()()()()}if(a&2){a=K().$implicit;var c=K(2);B(3);C("ngIf",a.canEdit);B(3);C("ngIf",a.canEdit);B(3);C("ngIf",QRa(c,a,1).valid);B(1);C("ngIf",QRa(c,a,-1).valid)}},SRa=
function(a,b){a&1&&(F(0,"tr",25),M(1,eRa,1,0,"td",26),M(2,fRa,2,3,"td",27),M(3,gRa,2,3,"td",28),M(4,hRa,2,3,"td",29),M(5,kRa,4,3,"td",30),M(6,lRa,2,4,"td",31),M(7,oRa,4,2,"td",32),M(8,rRa,6,4,"td",33),M(9,sRa,1,0,"td",34),M(10,xRa,3,2,"td",35),M(11,CRa,3,2,"td",36),M(12,GRa,3,2,"td",37),M(13,HRa,2,1,"td",38),M(14,IRa,2,4,"td",39),M(15,JRa,2,1,"td",40),M(16,RRa,17,4,"td",41),G());a&2&&(a=b.$implicit,b=K(2),le("draggable",!b.isDisabled&&null==b.openRow),B(1),C("ngIf",a.isEditing_),B(1),C("ngIf",a.isEditing_),
B(1),C("ngIf",a.isEditing_),B(1),C("ngIf",a.isEditing_),B(1),C("ngIf",a.isEditing_),B(1),C("ngIf",a.isEditing_),B(1),C("ngIf",a.isEditing_),B(1),C("ngIf",a.isEditing_),B(1),C("ngIf",!a.isEditing_),B(1),C("ngIf",!a.isEditing_),B(1),C("ngIf",!a.isEditing_),B(1),C("ngIf",!a.isEditing_),B(1),C("ngIf",!a.isEditing_),B(1),C("ngIf",!a.isEditing_),B(1),C("ngIf",!a.isEditing_),B(1),C("ngIf",!a.isEditing_))},TRa=function(a){if(a&1){var b=x();F(0,"tbody",23);J("cdkDropListDropped",function(c){z(b);var d=K();
return A(d.onDrop(c))});M(1,SRa,17,18,"tr",24);G()}a&2&&(a=K(),C("cdkDropListData",a.collection)("cdkDropListDisabled",a.isDisabled||null!=a.openRow),B(1),C("ngForOf",a.collection))},URa=function(a){a&1&&(F(0,"div",89),O(1," There are currently no rules for this SLO "),G())},VRa=function(a,b){if(a&1){var c=x();F(0,"tr",7);J("click",function(){var e=z(c).$implicit,f=K();return A(f.editSlo(e))})("focus",function(){var e=z(c).index,f=K();return A(f.setFocusOnIndex(e))});H(1,"td",2);F(2,"td",8)(3,"a",
9);J("click",function(e){return e.stopPropagation()});O(4);G()();F(5,"td",10);O(6);G()()}if(a&2){a=b.$implicit;b=b.index;var d=K();le("grid-focus",d.isFocused(b));ge("aria-selected",d.isFocused(b))("aria-label",d.renderRowLabel(b));B(3);C("href",d.paths.editSlo(a.getSloId()),Md);B(1);De(" ",a.getName()," ");B(2);De(" ",a.getDescription()," ")}},WRa=function(a){if(a&1){var b=x();F(0,"div")(1,"div",1);J("clickOutside",function(){z(b);K().isPickerVisible=!1;return A()});F(2,"b-date-time-picker-content",
2);J("dateSelectionChange",function(c){z(b);var d=K();return A(d.setDate(c))})("saveClicked",function(){z(b);var c=K();c.isPickerVisible=!1;c.snoozeUntilCommit.emit();return A()})("cancelClicked",function(){z(b);K().isPickerVisible=!1;return A()});G()()()}a&2&&(a=K(),B(2),C("date",a.currentPickerDate))},XRa=function(a,b){"string"===typeof a&&(a=a.trim())&&b(Ul(a))},mq=function(a,b){return $i("enableJspb")?a:b},nq=function(a,b,c){b=[b,c].map(function(d){return null!=d?d:""}).join(";");a.setAttribute("pkd-ac-state",
String(lh(b)))},YRa=function(a,b){b=[String(b.getId()),b.getValue()].join(";");a.setAttribute("pkd-target",String(lh(b)))},ZRa=function(a,b){a.setAttribute("pkd-ps-state",String(lh("1")));b.warmUpCache().then(function(){a.setAttribute("pkd-ps-state",String(lh("2")))},function(){a.setAttribute("pkd-ps-state",String(lh("3")))})},$Ra=function(a,b,c){var d=Math.max(b,c);return a>Math.min(b,c)&&a<d},oq=function(a,b){return a.querySelector('[peoplekit-id="'+b+'"]')},aSa=function(a){var b=new Image;b.src=
a;a=b.complete;b.src="";return a},qq=function(a,b,c,d,e){e=void 0===e?new pq:e;b=ap(bSa,{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:cSa()});e=new dSa(b,e);a.appendChild(b);return e},rq=function(a){switch(a){case 0:return 40;case 1:return 32;case 2:return 28;default:throw Error("Ae`"+a);}},sq=function(a){switch(a){case 0:return"googleMaterialDefaultDensity";case 1:return"workspaceMaterialComfortableDensity";
case 2:return"workspaceMaterialCompactDensity";default:throw Error("Ae`"+a);}},fSa=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 eSa(eSa(Jj(c),"#\ufe0f\u20e3\u20e31\ufe0f\u20e3\u20e3","<b>"),"2\ufe0f\u20e3\u20e3*\ufe0f\u20e3\u20e3","</b>")},gSa=function(a){var b=a.getDisplayName();
return b?fSa(b,a.getMatchInfo().getDisplayNameMatches()):""},hSa=function(a){var b=a.getDisplayValue();return b?fSa(b,a.getMatchInfo().getDisplayValueMatches()):""},iSa=function(a){var b=gSa(a),c=hSa(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()]}},tq=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},jSa=function(a){var b=a.getCaller(),c=a.getClient();a=a.getRequestType();return b&&c&&a?JSON.stringify([b.serialize(),c.serialize(),a]):null},kSa=function(a){var b=new uq;if(a instanceof vq)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},yq=function(a){a=void 0===a?null:a;var b=(new wq).setExperimentFlags(new xq).setSource(3);a&&b.setError(kSa(a));return b},sSa=function(a){var b=void 0===b?new lSa:b;if(mSa)return mSa;var c=new nSa(a),d=new oSa(a);b=b.isAvailable()?new zq(a,b):new Aq(a);b.clean();c=new pSa(new qSa(b,c),d);return mSa=new rSa(a,c)},uSa=function(a,b,c){var d=iSa(a);return tSa(a,d,b,c)},tSa=function(a,b,c,d){var e=[];W(Bq.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:Cq(vSa),hovercardId:b.hovercardId,label:b.label,sublabel:f?"":b.sublabel,photos:b.photos,densityClass:d,tags:e}},ySa=function(a,b,c){var d="",e="",f=!1,h=a.getTotalMemberCount();if(1<
h||a.getDisplayName())d=a.getMemberList().map(function(k){var q="";if(k.getPrimaryTarget().getName()){var v,y;(q=(q=null==(v=k.getPrimaryTarget())?void 0:null==(y=v.getName())?void 0:y.getGivenName())?fSa(q,k.getMatchInfo().getGivenNameMatches()):"")||(q=gSa(k))}q||(q=hSa(k));return q}),b&&(d=d.reverse()),d=gSa(a)||wSa({memberNames:d}),Dq.includes(a.getPrimaryTarget().getId().getType())?(e=a.getDescription(),e||c||(e=xSa({memberCount:h}),f=!0)):0<h&&!c&&(e=xSa({memberCount:h}),f=!0);else if(1===h)return e=
a.getMemberList()[0],f=iSa(e),Object.assign({},f,{type:a.getPrimaryTarget().getTargetType(),flatResult:e,allowSublabelTranslation:!1});b=a.getPhotoUrl();b=a.getDisplayName()&&b?[b]:a.getMemberList().map(function(k){return k.getPhotoUrl()});return{hovercardId:"",label:d,sublabel:e,type:a.getPrimaryTarget().getTargetType(),photos:b,allowSublabelTranslation:f}},ASa=function(a,b,c,d,e){c=ySa(a,c,d);if(c.flatResult)return Object.assign({},tSa(c.flatResult,c,b,e),{type:c.type,allowSublabelTranslation:!1});
d=!1;b.getShouldHideSuggestionSublabels()&&(d=(a=a.getPrimaryTarget().getLoggingToken().getSessionState())?!a.getQuery().length:!1);return{id:Cq(zSa),hovercardId:c.hovercardId,label:c.label,sublabel:d?"":c.sublabel,type:c.type,photos:c.photos,densityClass:e,tags:[],allowSublabelTranslation:c.allowSublabelTranslation}},Eq=function(a,b,c,d,e,f){return new BSa(a,b,c,d,e,f)},Gq=function(a,b,c){b=void 0===b?[]:b;return new Fq(new CSa(void 0===a?0:a,b,void 0===c?0:c))},ESa=function(a,b,c,d,e,f){var h=a.getPrimaryTarget().getId();
e=Hq(h)||Dq.includes(h.getType())?ASa(a,c,f,W(e.internal,6,!1),sq(d.getDensity())):uSa(a,c,sq(d.getDensity()));f=Object;h=f.assign;a:switch(b){case 1:b=Iq('<div class="'+Jq("peoplekitComponentsResultlistitemDisabledIconIndicator")+'" aria-label="'+Jq(". Already selected")+'">'+Iq('<svg xmlns="http://www.w3.org/2000/svg" height="18px" viewBox="0 0 24 24" width="18px" class="'+(Jq("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=Iq("");break a;default:b='<div class="'+Jq("peoplekitComponentsResultlistitemDisabledTextIndicator")+'">',b=Iq(b+"DISABLED</div>")}b=ap(DSa,h.call(f,{},e,{disableReason:b}));f=oq(b,"d6MZcd");h=rq(d.getDensity());d=qq(f,e.photos,h,h,d);return new Kq(b,a,c,e.tags,d)},FSa=function(a,b){b=b.ownerDocument.createEvent("CustomEvent");b.initEvent(a,!0,!0);return b},HSa=function(a,b){return new GSa(a,void 0===b?"":b)},Lq=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},Mq=function(a,b,c,d){d=void 0===d?[]:d;d=void 0===d?[]:d;b=[Cq(ISa),b,c.join(","),d.join(",")].join(";");b=lh(b);a.setAttribute("pk-log",String(b))},JSa=function(a){var b=-1;(a=Nq(a))&&dj(a,2)&&(b=ej(a,2,0));return"index:"+b},PSa=function(a,b,c,d,e,f,h){h=ap(KSa,{header:h||""});a.appendChild(h);a=oq(h,"tjneg");h=ap(LSa,{id:Cq(MSa)});a.appendChild(h);
a=new NSa(h);return{resultList:new OSa(a,b,c,d,e,f),list:a}},QSa=function(a,b,c,d,e,f,h,k,q){a=PSa(a,b,c,d,e,k,q);b=a.resultList;b=new Oq(b,a.list,h);return new Pq(b,f)},VSa=function(a,b,c,d,e){var f=RSa(c),h=Qq(a),k=Rq(a);k&&h.intersection(SSa(k));TSa(h,Zo(a),Zo(c));a=Sq(a,b);b=h.left;a&4&&(b+=h.width);h=new Tq(b,h.top+(a&1?h.height:0));h=Uq(h,f);a=Sq(c,d);h=USa(h,Vq(c),a).rect;c=Rq(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},YSa=function(a,b){Wq(a,new Tq(b.left,b.top));b=b.getSize();WSa(Vq(a),b)||XSa(a,b)},ZSa=function(a,b,c){return new Xq(a,b,c)},aTa=function(a,b){return new $Sa(a,b)},bTa=function(a){return a.map(function(b){return b.getLoggingToken()}).filter(Boolean)},Yq=function(a){return a.filter(function(b){return!b.isPlaceholder()}).map(function(b){return b.selectionToken().getLoggingToken()}).filter(Boolean)},
Zq=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)},cTa=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)},dTa=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},eTa=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})},gTa=function(a){if(fTa.has(a))return fTa.get(a);throw Error("Je`"+a);},iTa=function(a){if(hTa.has(a))return hTa.get(a);throw Error("Ke`"+a);},jTa=function(a){var b=new Map,c;for(c in a)b.set(a[c].string,a[c].googRequiredXid);return b},lTa=function(a){return a?a.__owner?a.__owner:a.parentNode&&11===a.parentNode.nodeType?a.parentNode.host:kTa(a):null},mTa=function(a,b){for(a=lTa(a);a&&!b(a);)a=lTa(a)},oTa=function(a,
b,c,d,e,f){var h=c.beginSession(function(){},f.sessionOptions||new $q);return nTa(a,b,c,h,d,e,f)},nTa=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(),v=q.experimentsConfig_.getProfileId();if(v)if(k.getExperiments().getIsEnabled()){var y=jo(ar,'[null,null,null,null,null,null,null,"AIzaSyBAMHkvD9gqERVdYmGsYLnAtfzigZdAqJQ"]');y=new br(y,7)}else y=new cr;else y=new cr;k=k.getExperiments();q=y.loadExperiments(k.getApplication(),
(new dr).setPeopleApiEnv(q.apiEnv_),v);Bq=new er(k,q);q=e.getTheme();v=r(["peoplekitThemeLight","peoplekitThemeDark"]);for(k=v.next();!k.done;k=v.next())a.classList.remove(k.value);(q=pTa.get(q))&&a.classList.add(q);Mq(a,64611,["impression"]);q=new fr;v=e.getEntryPoint();v=new qTa(d,q,v);k=f.internal.getClearcut();y=new rTa(k);y=Wo(y);k=k.getInterfaceType();k=new sTa(new tTa(y,k));var E=new uTa(h.intelligence);h=ap(vTa);a.appendChild(h);y=ap(wTa);Mq(y,85843,["impression"]);h.appendChild(y);var I=
oq(y,"tjneg");a:{var N=e.getAutocompleteHeader();switch(e.getAutocompleteGroupingType()){case 1:E=QSa(I,e,e,f,q,v,new gr(e.getAutocompleteGroupingLabel()),E,N);break a;case 2:E=QSa(I,e,e,f,q,v,new hr(e.getAutocompleteGroupingLabel()),E,N);break a;case 3:var L=e.getAutocompleteCustomGrouping();L?E=QSa(I,e,e,f,q,v,L,E,N):(E=PSa(I,e,e,f,q,E,N),E=new Pq(E.resultList,v));break a;default:E=PSa(I,e,e,f,q,E,N),E=new Pq(E.resultList,v)}}I=oq(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=ap(xTa),N=ap(yTa,N),I.append(N),y.append(I);d=new zTa(y,b,E,d,k,e);b=new ATa(h,b,d,q,e);ZRa(b.getRoot(),c);c=f.internal.getClearcut();f=e.getEntryPoint();d=Bq.getExperiments();W(d,2,!1)||W(c,6,!0)?(d=new ir,h=No(),f=(new BTa).setClientId(c.getClientId()).setApplication(c.getSocialApplication()).setEntryPoint(f).setVersionName("1.0").setBaselineCl(447859179),f=new CTa(d,1394,h,void 0,void 0,void 0,new DTa(f)),f.setClientSideLogOnlyForDevelopment(!c.getEnableClearcut()||
!1),c=new jr,d=Bq.getExperimentIds(),c=jl(c,3,d),f.clearcut_&&f.clearcut_.setClearExperimentIds(c),a.hasAttribute("pk-log")?(c=new ETa(new kr(a),f),a=new FTa(a,c),a=new GTa(a)):a=new lr):a=new lr;a.start();return new HTa(b,q,v,a,e)},ITa=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);mr.lastIndex=0;for(var d=mr.exec(a);d&&d.index<c;d=mr.exec(a))b.push(a.substring(Number(mr.lastIndex)));return b},or=function(a){return nr(JTa(a)).replace(KTa,
"").toUpperCase().toLowerCase()},MTa=function(a){a=Array.from(a).flatMap(function(f){return(f||"").split(LTa)}).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=or(c.value);c=r(ITa(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})},OTa=function(a){var b;return NTa(function(c){1==c.nextAddress&&(b=0);if(3!=c.nextAddress)return b<
a?cf(c,b,3):c.jumpTo(0);b++;return c.jumpTo(2)})},PTa=function(a,b){return isFinite(a.fieldAffinity)?a.fieldAffinity:b&&Hq(a.id)&&9!==a.id.getType()?isFinite(a.itemAffinity)?a.itemAffinity:-Infinity:-Infinity},STa=function(a,b,c){if(Hq(a.id)||Hq(b.id)){var d=QTa.has(a.id.getType()),e=QTa.has(b.id.getType());if(d!==e)return d?-1:1;if(Hq(a.id)&&Hq(b.id))return RTa(a,b,c,!1)}d=PTa(a,c);c=PTa(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},RTa=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?STa(a,b,c):0},UTa=function(a){return a?TTa.get(a)||0:0},VTa=function(a){switch(a.getValueCase()){case 2:return new pr(1,a.getEmail().getValue()||"");case 3:return a=a.getPhone(),new pr(2,p(a,2)||a.getDisplayValue()||"");case 4:a=yl(a,qr,4,rr);if(a.hasProfileId())return new pr(8,a.getProfileId()||"");switch(pb(a,sr)){case 2:return new pr(6,
a.getEmail()||"");case 3:return new pr(7,a.getPhone()||"")}}return tr},WTa=function(a){return rb(a,ur,5).map(function(b){switch(b.getIdCase()){case 1:return new pr(3,b.getProfileId()||"");default:return null}}).filter(Boolean)},XTa=function(a,b){return lj(a,3)&&m(a,vr,3).getIsPlaceholder()?3:To(b,8)?1:0},wr=function(a){return a&&a.hasAffinity()?Number(a.getAffinity().getValue()):-Infinity},YTa=function(a){return a.hasAffinity()?Number(a.getAffinity().getValue()):-Infinity},ZTa=function(a){return!!a&&
!!a.getPrimary()},aUa=function(a){if(!a.hasEmail()||!a.getEmail().getValue())return null;var b=void 0;m(a,xr,9)&&(b=yr(new zr,$Ta,m(a,xr,9)));a={id:new pr(1,a.getEmail().getValue()),containerIds:WTa(a),contactMethod:a,provenance:8,isMe:!1,dataSource:1,isPrimary:ZTa(a.getDisplayInfo()),itemAffinity:-Infinity,fieldAffinity:wr(a.getDisplayInfo())};b&&(a.targetExtendedData=b);return a},cUa=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"+bUa(a):""},fUa=function(a,b,c){c=void 0===c?!1:c;var d=[],e=void 0,f=void 0;m(a,vr,3)&&(e=e?e:new zr,yr(e,dUa,m(a,vr,3)));m(a,Ar,5)&&(e=e?e:new zr,yr(e,eUa,m(a,Ar,5)));for(var h=[],k=r(rb(a,Br,1)),q=k.next();!q.done;q=k.next()){q=q.value;var v=VTa(q);if(v.equals(tr)){if(!c)continue;v=cUa(q);if(!v)continue;v=new pr(18,v)}h.push(String(v));
m(q,xr,9)&&(f=f?f:new zr,yr(f,$Ta,m(q,xr,9)));q={id:v,containerIds:WTa(q),coalescedKeys:h,isMe:!!q.getIsSelf(),dataSource:XTa(a,q),provenance:b,isPrimary:ZTa(q.getDisplayInfo()),itemAffinity:YTa(a),fieldAffinity:wr(q.getDisplayInfo()),contactMethod:q,person:a};e&&(q.resultExtendedData=e);f&&(q.targetExtendedData=f);d.push(q)}d.length&&d.every(function(y){return!y.isPrimary})&&(d[0].isPrimary=!0);return d},hUa=function(a,b){var c=gUa(UTa(p(a,5)),a.getGroupId()||""),d=a.getMembersList().map(function(f){return fUa(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:wr(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},iUa=function(a,b){var c=new pr(9,a.getLabelId()||""),d=a.getMembersList().map(aUa).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:wr(a.getDisplayInfo()),fieldAffinity:-Infinity,isMe:!1,contactLabel:a}].concat(u(d))},jUa=function(a,b){switch(pb(a,Cr)){case 1:return fUa(yl(a,Dr,1,Cr),b);case 2:return hUa(a.getGroup(),b);case 3:return iUa(yl(a,Er,3,Cr),b);default:return[]}},kUa=function(a,b){return rb(a,Fr,1).flatMap(function(c){return jUa(c,b)})},mUa=function(a){var b=new Gr,c=a?2:1;lUa(b.setEventType(4),c).setToken(a);return b},oUa=function(a,
b){var c=new Hr;c=(new Gr).setLookupInfo(c);Ir(c.setEventType(6),9).setItemCount(a.length).setQueryScope(nUa.get(b)||0);return c},pUa=function(){var a=new Gr;Ir(a.setEventType(6),11);return a},qUa=function(){var a=new Gr;Ir(a.setEventType(6),10);return a},rUa=function(a,b){var c=new Gr;Ir(c.setEventType(6),6).setQueryLength(a.length).setQueryScope(nUa.get(b)||0);return c},sUa=function(a){var b=new Gr;Ir(b.setEventType(6),5).setQueryScope(nUa.get(a)||0);return b},tUa=function(a,b){switch(a){case 8:case 3:case 17:return(new Jr).setProfileId(b);
case 1:case 6:return(new Jr).setEmail(b);case 7:case 2:return(new Jr).setPhone(b);default:return null}},vUa=function(a){return((a=rb(a,Kr,2).find(function(b){return 1===p(b,1)}))?uUa.get(a.getState()):0)||0},zUa=function(a,b){b.hasAffinity()&&a.setFieldLoggingId(wUa(nba(p(b.getAffinity(),1))||""));if(b.hasName()){var c=b.getName(),d=a.setName,e=(new xUa).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 Lr).setUrl(b.getUrl()).setGlyph(b.getGlyph()).setType(yUa.get(b.getType())||0)))},AUa=function(a,b){if(b.hasProfileId())switch(pb(b,sr)){case 2:var c=b.getEmail()||"";return Mr(Nr(a.id).setValue(b.getProfileId()||""),(new Or).setType(1).setValue(c));case 3:return c=b.getPhone()||"",Mr(Nr(a.id).setValue(b.getProfileId()||""),(new Or).setType(2).setValue(c));default:return b=b.getProfileId()||
"",Nr(a.id).setValue(b)}switch(pb(b,sr)){case 2:return b=b.getEmail()||"",Mr(Nr(a.id).setValue(b),(new Or).setType(1).setValue(b));case 3:return b=b.getPhone()||"",Mr(Nr(a.id).setValue(b),(new Or).setType(2).setValue(b));default:return b=b.getProfileId()||"",Nr(a.id).setValue(b)}},CUa=function(a,b){var c=BUa(Nr(a.id),!!a.isMe);a.containerIds&&(c.sourceIds_=a.containerIds||[]);b&&zUa(c,b);a.group&&((b=rb(a.group,Pr,6).find(function(d){return 1===pb(d,Qr)}))?c.setValue(Rr(b,1,Qr)||""):a.group.hasGroupId()&&
c.setValue(a.group.getGroupId()||""));a.targetExtendedData&&(c.extendedData_=a.targetExtendedData);a.target=c},EUa=function(){return DUa},GUa=function(a){return new FUa(a)},JUa=function(a){if(8===a.getTargetType()){var b=a.getOriginatingField();if(b&&(b=b.getType(),b=HUa.get(b)))return b}return(b=IUa.get(a.getTargetType()))?b:Hq(a.getId())?8:0},LUa=function(a,b,c){var d=new Sr,e=new Tr;Bb(d,2,e);e.setProvenance(b);b=new Ur;Bb(d,1,b);l(b,9,1===c);b.setProfileId(a.getProfileId()||null);b.setContactId(a.getContactId()||
null);c=8===JUa(a)?8:a.getIsPersonalResult()?4:3;l(b,8,c);c=null;8===a.getTargetType()&&(e=a.getOriginatingField())&&HUa.has(e.getType())&&(c=e.getValue());c||(c=a.getValue());c&&b.setFieldValue(c);Hq(a.getId())||b.setName(a.getName()?a.getName().getDisplayName():null);c=JUa(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 KUa(a,
d)},NUa=function(a){a=MUa.indexOf(a.provenance);return 0>a?MUa.length:a},OUa=function(a){return a.containerIds&&a.containerIds.some(function(b){return 3===b.getType()})},PUa=function(a,b){var c=a.getPrimaryTarget(),d=a.getTargetList().map(function(e){return e===c?b:e});return new Fq(new Vr(a,d))},RUa=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=PUa(d,new QUa(f,e))}return[c,d]})));return a},SUa=function(){return new Wr(qc.apply(0,arguments))},Xr=function(){var a=qc.apply(0,arguments);return 1===a.length?a[0]:new TUa(a)},VUa=function(a,b,c,d){b=UUa(a,b).map(function(e){var f=r(e);e=f.next().value;f=f.next().value;return new Yr(e,f)});c=UUa(a,c).map(function(e){var f=r(e);e=f.next().value;f=f.next().value;return new Yr(e,f)});a=UUa(a,d).map(function(e){var f=
r(e);e=f.next().value;f=f.next().value;return new Yr(e,f)});return new Zr(b,c,a)},WUa=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}},XUa=function(a){return a.reduce(function(b,c){var d=WUa(c);if(b.has(d)){var e;null==(e=b.get(d))||e.push(c)}else b.set(d,[c]);return b},new Map)},YUa=function(a,b){b=void 0===b?new $r: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}},ZUa=function(a){return!a||a instanceof as?a:new as(a)},aVa=function(a){return $Ua.get(a)||0},bVa=function(a,b){var c=bs(cs(new ds,"PeopleStore").setLogSource(X(a,4,574)).setApplication(a.getSocialApplication()).setEnvironment(b.getPeopleApiEnv()).setVersion("1002").setBaselineCl(447859179).setEnableClearcut(a.getEnableClearcut()),[].concat(u(b.getExperiments().getExperimentIdsList()),u(es?es.getExperimentIds():[]))).setClientAgent(2);
b.getClearcutUrl()&&c.setClearcutUrl(b.getClearcutUrl());(a=rb(a,fs,5).find(function(d){return 0===d.getEntryPoint()}))&&c.setEventSource(p(a,4));return c},cVa=function(a){return(lj(a,12)?m(m(a,gs,12),fs,2):a.getSources())||new fs},dVa=function(a){return(lj(a,12)?m(m(a,gs,12),fs,3):a.getSources())||new fs},hs=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)},eVa=function(a){if(!a.hasSessionState())return"";a=a.getSessionState();return ej(a,
3,0)+":"+ej(a,4,0)+":"+ej(a,5,0)+":"+a.getInstanceId()},fVa=function(a){return lj(a,2)?Nq(a).getContext()||0:0},gVa=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?ej(d,3,0)+"-"+ej(d,4,0)+"-"+ej(d,5,0)+"-"+d.getInstanceId():"";b.has(d)?b.get(d).push(c):b.set(d,[c])}return Array.from(b.values())},js=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=gVa(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 is;f.setSessionState(e);f.setEventType(b);Ab(f,3,d);hVa(f,e.getSources());c.push(f)}return c},iVa=function(a){var b;a=a.getMetadata();a.hasCacheState()&&(a=a.getCacheState(),a.hasSource()&&(b=a.getSource()));
return b||new ks},jVa=function(a){a&1&&H(0,"div",2)},kVa=function(a){a&1&&(qe(0),ye(1),re())},lVa=function(a){a&1&&(F(0,"a",3),O(1),P(2,"async"),G());if(a&2){a=K();var b;C("href",a.manageComponentLink,Md);B(1);Ee(null==(b=Q(2,2,a.component$))?null:b.name)}},mVa=function(a){a&1&&(F(0,"output"),O(1),G());a&2&&(a=K(),B(1),Ee(a.componentId))},nVa=function(a){a&1&&(F(0,"li")(1,"label"),O(2,"Component"),G(),H(3,"b-async-component",6),G());a&2&&(a=K(2),B(3),C("componentId",a.issueComponentId))},oVa=function(a){a&
1&&(F(0,"li")(1,"label"),O(2,"Team"),G(),H(3,"b-team-display",7),G());a&2&&(a=K(2),B(3),C("teamId",a.issueTeamId))},pVa=function(a){a&1&&(F(0,"ol",3)(1,"li")(2,"label"),O(3,"ID"),G(),F(4,"output"),O(5),G()(),F(6,"li")(7,"label"),O(8,"Type"),G(),F(9,"output"),O(10),G()(),F(11,"li")(12,"label"),O(13,"Priority"),G(),H(14,"b-issue-priority-display",4),G(),F(15,"li")(16,"label"),O(17,"Severity"),G(),F(18,"output"),O(19),G()(),F(20,"li")(21,"label"),O(22,"Status"),G(),F(23,"output"),O(24),G()(),F(25,"li")(26,
"label"),O(27,"Last modified"),G(),F(28,"output"),O(29),P(30,"date"),G()(),M(31,nVa,4,1,"li",5),M(32,oVa,4,1,"li",5),G());a&2&&(a=K(),B(5),Ee(a.issueId),B(5),Ee(a.issueType),B(4),C("issuePriority",a.issuePriority),B(5),Ee(a.issueSeverity),B(5),Ee(a.issueStatus),B(5),Ee(Me(30,8,a.issueLastModified,"medium")),B(2),C("ngIf",a.issueComponentId),B(1),C("ngIf",a.issueTeamId))},rVa=function(a){if(a.customField)var b="DATE"===a.customField.type?new ls(a):"ENUM"===a.customField.type?new ms(a):"NUMERIC"===
a.customField.type?new ns(a):new os(a);else b=a.label.field,b=qVa()[b],b=new (b&&b.ruleCtor||ps)(a);b[qs](a);return b},sVa=function(a,b){return rVa({label:{field:a,customFieldId:b&&b.customFieldId||void 0},operator:"EQ",negated:!1,type:"",customField:b})},tVa=function(a){return a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'")?a.toLowerCase().substr(1,a.length-2):a.toLowerCase()},qVa=function(){if(!aj())return uVa;uVa.MENTION={ruleCtor:rs};return uVa},vVa=function(a){a.label||
(a=Fi(a),a.label={customFieldId:void 0,field:"_TEXT_"});return a},xVa=function(a){return{type:wVa[a.getType()],value:a.getValue()}},zVa=function(a){var b,c;return{type:yVa[a.getType()],values:(null!=(b=a.getValuesList())?b:[]).map(zVa),simpleValues:(null!=(c=rb(a,ss,3))?c:[]).map(xVa)}},DVa=function(a){var b,c=AVa[a.getType()],d=(null!=(b=a.getValuesList())?b:[]).map(zVa);b=W(a,3);if(a.hasLabel()){var e=a.getLabel();e={field:BVa[e.getField()],customFieldId:Number(e.getCustomFieldId())}}else e=void 0;
return{type:c,values:d,negated:b,label:e,operator:CVa[X(a,5,0)]}},FVa=function(a){switch(a.getKindCase()){case 2:return{syntaxErrorResponse:{syntaxError:V(yl(a,ts,2,us),1)},queryBuilderResponse:void 0};case 1:a=yl(a,vs,1,us);var b;return{syntaxErrorResponse:void 0,queryBuilderResponse:{type:EVa[a.getType()],expressions:(null!=(b=rb(a,ws,2))?b:[]).map(DVa)}};default:return{syntaxErrorResponse:void 0,queryBuilderResponse:void 0}}},GVa=function(a){a&1&&(F(0,"span",11),O(1," > "),G())},HVa=function(a,
b){if(a&1){var c=x();F(0,"span")(1,"a",9);J("click",function(d){var e=z(c).$implicit,f=K(2);e=new xs(e.pathIds,e.pathNames);f.onTeamSelect.emit(e);d.stopPropagation();d.preventDefault();ys(f.autocompleteTrigger);return A()});O(2);G();M(3,GVa,2,0,"span",10);G()}a&2&&(a=b.$implicit,b=b.last,B(1),C("matTooltip",a.pathNameText),B(1),Ee(a.name),B(1),C("ngIf",!b))},IVa=function(a,b){a&1&&(F(0,"mat-option",6)(1,"div"),M(2,HVa,4,3,"span",7),G(),F(3,"span",8),O(4),P(5,"slice"),G()());if(a&2){a=b.$implicit;
C("value",a);B(2);C("ngForOf",a.teamPath);B(1);C("matTooltip",a.description);B(1);a=a.description;b=x();var c=b[27];a=b[1].data[27].pure?Bfa(b,Kc(),4,c.transform,a,0,100,c):c.transform(a,0,100);De("",a," ")}},JVa=function(a){return a.getTeamSuggestionsList().map(function(b){return new xs(b.getPathIdsList(),b.getPathNamesList(),b.getDescription())})},KVa=function(a,b){a&1&&(F(0,"mat-option",12),O(1),G());a&2&&(a=b.$implicit,C("value",a.key),B(1),De(" ",a.value," "))},LVa=function(a){if(a&1){var b=
x();F(0,"mat-form-field",9)(1,"mat-select",10);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.expressionType=c)});M(2,KVa,2,2,"mat-option",11);P(3,"keyvalue");G()()}a&2&&(a=K(2),B(1),C("ngModel",a.expressionType),B(1),C("ngForOf",Q(3,2,a.globalTypeLabels)))},MVa=function(a,b){a&1&&(F(0,"mat-option",12),O(1),G());a&2&&(a=b.$implicit,C("value",a[0]),B(1),De(" ",a[1]," "))},NVa=function(a,b){a&1&&(F(0,"mat-option",12),O(1),G());if(a&2){a=b.$implicit;b=K(2).$implicit;var c=K(2);C("value",a);
B(1);De(" ",c.getTypeLabel(b,a)," ")}},OVa=function(a){if(a&1){var b=x();F(0,"mat-form-field",9)(1,"mat-select",20);J("ngModelChange",function(c){z(b);var d=K().$implicit;return A(d.type=c)});M(2,NVa,2,2,"mat-option",11);G()()}a&2&&(a=K().$implicit,B(1),C("ngModel",a.type),B(1),C("ngForOf",a.getLegalTypes()))},PVa=function(a,b){if(a&1){var c=x();F(0,"div",27)(1,"b-checkbox",28);J("change",function(d){var e=z(c).$implicit,f=K(3).$implicit;return A(f.enumValues[e.id]=d)});G()()}a&2&&(a=b.$implicit,
b=K(3).$implicit,B(1),C("checked",b.enumValues[a.id])("label",a.label||a.id))},QVa=function(a){a&1&&(F(0,"div",25),M(1,PVa,2,2,"div",26),G());a&2&&(a=K(2).$implicit,B(1),C("ngForOf",a.getOptions()))},RVa=function(a){if(a&1){var b=x();F(0,"div")(1,"input",29);J("ngModelChange",function(c){z(b);var d=K(3).$implicit;return A(d.csv=c)});G()()}a&2&&(a=K(3).$implicit,B(1),C("ngModel",a.csv)("bContactAutocomplete","MULTI"))},SVa=function(a){if(a&1){var b=x();F(0,"div",21)(1,"input",30);J("ngModelChange",
function(c){z(b);var d=K(3).$implicit;return A(d.csv=c)});G()()}a&2&&(a=K(3).$implicit,B(1),C("ngModel",a.csv))},TVa=function(a){if(a&1){var b=x();F(0,"div",21)(1,"input",31);J("ngModelChange",function(c){z(b);var d=K(3).$implicit;return A(d.csv=c)});G()()}a&2&&(a=K(3).$implicit,B(1),C("ngModel",a.csv))},UVa=function(a){if(a&1){var b=x();F(0,"div",21)(1,"input",32);J("ngModelChange",function(c){z(b);var d=K(3).$implicit;return A(d.csv=c)});G()()}a&2&&(a=K(3).$implicit,B(1),C("ngModel",a.csv))},VVa=
function(a){a&1&&(F(0,"div"),M(1,RVa,2,2,"div",23),M(2,SVa,2,1,"div",17),M(3,TVa,2,1,"div",17),M(4,UVa,2,1,"div",17),G());a&2&&(a=K(2).$implicit,B(1),C("ngIf","user"==a.getWidgetType()),B(1),C("ngIf","csv"==a.getWidgetType()),B(1),C("ngIf","id"==a.getWidgetType()),B(1),C("ngIf","number"==a.getWidgetType()))},WVa=function(a,b){if(a&1){var c=x();F(0,"div",36)(1,"div",37)(2,"input",32);J("ngModelChange",function(d){var e=z(c).$implicit;return A(e.value=d)});G()();F(3,"button",38);J("click",function(){var d=
z(c).$implicit,e=K(3).$implicit,f=K(2);return A(zs(f,e,d))});G()()}a&2&&(a=b.$implicit,B(2),C("ngModel",a.value))},XVa=function(a){if(a&1){var b=x();F(0,"button",39);J("click",function(){z(b);var c=K(3).$implicit,d=K(2);return A(As(d,c))});O(1);G()}a&2&&(a=K(3).$implicit,B(1),De(" + ","OR"==a.type||"NOR"==a.type?"OR":"AND",""))},YVa=function(a){a&1&&(F(0,"div",33),M(1,WVa,4,1,"div",34),M(2,XVa,2,1,"button",35),G());a&2&&(a=K(2).$implicit,B(1),C("ngForOf",a.values),B(1),C("ngIf",a.type))},$Va=function(a){if(a&
1){var b=x();F(0,"div",48);J("click",function(){z(b);var d=K(2).$implicit,e=K(5);return A(ZVa(e,d))});P(1,"componentPath");F(2,"span",49);O(3);P(4,"componentPath");G()()}if(a&2){a=K(2).$implicit;var c=K(5);C("title",Q(1,2,c.components[a.value]));B(3);De(" ",Q(4,4,c.components[a.value])," ")}},aWa=function(a){if(a&1){var b=x();F(0,"div",37)(1,"b-team-component-picker",50);J("selectedComponentChange",function(c){z(b);var d=K(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;Bs(d);return A()});G()()}a&2&&(a=K(7),B(1),C("selectedComponent",a.componentUnderEdit)("placeholder","Choose Component")("isRequired",!0))},bWa=function(a){if(a&1){var b=x();F(0,"div",42);M(1,$Va,5,6,"div",43);M(2,aWa,2,3,"div",44);F(3,"button",45);J("click",function(){z(b);var d=K().$implicit;K(5);d.includeSubs=!d.includeSubs;return A()});H(4,"mat-icon",
46);G();F(5,"button",47);J("click",function(){z(b);var d=K().$implicit,e=K(3).$implicit,f=K(2);return A(zs(f,e,d))});G()()}if(a&2){a=K().$implicit;var c=K(5);B(1);C("ngIf",c.chipUnderEdit!==a);B(1);C("ngIf",c.chipUnderEdit===a);B(1);C("title",a.includeSubs?"Subcomponents are included":"Subcomponents are not included");ge("aria-checked",a.includeSubs);B(1);C("svgIcon",a.includeSubs?"child-components-24px":"child-components-hide-24px")}},cWa=function(a,b){a&1&&(qe(0),M(1,bWa,6,5,"div",41),re());a&2&&
(a=b.$implicit,b=K(5),B(1),C("ngIf",b.chipUnderEdit===a||a.value))},dWa=function(a){if(a&1){var b=x();F(0,"button",39);J("click",function(){z(b);var c=K(3).$implicit,d=K(2);return A(As(d,c))});O(1);G()}a&2&&(a=K(3).$implicit,B(1),De(" + ","OR"==a.type||"NAND"==a.type?"OR":"AND",""))},eWa=function(a){a&1&&(F(0,"div",33),M(1,cWa,2,1,"ng-container",40),M(2,dWa,2,1,"button",35),G());a&2&&(a=K(2).$implicit,B(1),C("ngForOf",a.values),B(1),C("ngIf",a.type))},gWa=function(a){if(a&1){var b=x();F(0,"div",48);
J("click",function(){z(b);var d=K(2).$implicit,e=K(6);return A(fWa(e,d))});P(1,"teamPath");F(2,"span",49);O(3);P(4,"teamPath");G()()}if(a&2){a=K(2).$implicit;var c=K(6);C("title",Q(1,2,c.teams[a.value]));B(3);De(" ",Q(4,4,c.teams[a.value])," ")}},iWa=function(a){if(a&1){var b=x();F(0,"div",37)(1,"b-team-picker",54);J("onTeamSelect",function(c){z(b);var d=K(8);return A(hWa(d,c))});G()()}a&2&&(a=K(8),B(1),C("teamSelected",a.teamUnderEdit))},jWa=function(a){if(a&1){var b=x();F(0,"div",52);M(1,gWa,5,
6,"div",43);M(2,iWa,2,1,"div",44);F(3,"button",53);J("click",function(){z(b);var d=K().$implicit;K(6);d.includeSubs=!d.includeSubs;return A()});H(4,"mat-icon",46);G();F(5,"button",47);J("click",function(){z(b);var d=K().$implicit,e=K(4).$implicit,f=K(2);return A(zs(f,e,d))});G()()}if(a&2){a=K().$implicit;var c=K(6);B(1);C("ngIf",c.chipUnderEdit!==a);B(1);C("ngIf",c.chipUnderEdit===a);B(1);C("title",a.includeSubs?"Subteams are included":"Subteams are not included");ge("aria-checked",a.includeSubs);
B(1);C("svgIcon",a.includeSubs?"child-teams-24px":"child-teams-hide-24px")}},kWa=function(a,b){a&1&&(qe(0),M(1,jWa,6,5,"div",51),re());a&2&&(a=b.$implicit,b=K(6),B(1),C("ngIf",b.chipUnderEdit===a||a.value))},lWa=function(a){if(a&1){var b=x();F(0,"button",39);J("click",function(){z(b);var c=K(4).$implicit,d=K(2);return A(As(d,c))});O(1);G()}a&2&&(a=K(4).$implicit,B(1),De(" + ","OR"==a.type||"NAND"==a.type?"OR":"AND",""))},mWa=function(a){a&1&&(qe(0),M(1,kWa,2,1,"ng-container",40),M(2,lWa,2,1,"button",
35),re());a&2&&(a=K(3).$implicit,B(1),C("ngForOf",a.values),B(1),C("ngIf",a.type))},nWa=function(a){a&1&&(F(0,"div",33),M(1,mWa,3,2,"ng-container",23),G());a&2&&(a=K(4),B(1),C("ngIf",a.sessionIsInternal))},pWa=function(a){if(a&1){var b=x();F(0,"div")(1,"bv2-input-date-picker",55);J("boundValueChange",function(c){z(b);K(3).$implicit.dateFrom=oWa(c);return A()});G();O(2," and ");F(3,"bv2-input-date-picker",55);J("boundValueChange",function(c){z(b);K(3).$implicit.dateTo=oWa(c);return A()});G()()}a&2&&
(a=K(3).$implicit,B(1),C("boundValue",a.dateFrom)("isRequired",!0),B(2),C("boundValue",a.dateTo)("isRequired",!0))},qWa=function(a){if(a&1){var b=x();F(0,"div");O(1," the last ");F(2,"input",56);J("ngModelChange",function(c){z(b);var d=K(3).$implicit;return A(d.duration=c)});G();O(3," days. ");G()}a&2&&(a=K(3).$implicit,B(2),C("ngModel",a.duration))},rWa=function(a){if(a&1){var b=x();F(0,"div")(1,"bv2-input-date-picker",55);J("boundValueChange",function(c){z(b);K(3).$implicit.dateFrom=oWa(c);return A()});
G()()}a&2&&(a=K(3).$implicit,B(1),C("boundValue",a.dateFrom)("isRequired",!0))},sWa=function(a){a&1&&(F(0,"div"),M(1,pWa,4,4,"div",23),M(2,qWa,4,1,"div",23),M(3,rWa,2,2,"div",23),G());a&2&&(a=K(2).$implicit,B(1),C("ngIf","RANGE"==a.type||"NRANGE"==a.type),B(1),C("ngIf","DURATION"==a.type||"NDURATION"==a.type),B(1),C("ngIf","LE"==a.type||"LT"==a.type||"GE"==a.type||"GT"==a.type||"OR"==a.type))},tWa=function(a){if(a&1){var b=x();F(0,"div",48);J("click",function(){z(b);var d=K(2).$implicit,e=K(5);return A(Cs(e,
d))});F(1,"span",49);O(2);G()()}if(a&2){a=K(2).$implicit;var c=K(5);C("title",(null==c.hotlists[a.value]?null:c.hotlists[a.value].name)||a.value);B(2);De(" ",(null==c.hotlists[a.value]?null:c.hotlists[a.value].name)||a.value," ")}},uWa=function(a,b){a&1&&(F(0,"mat-option",12),O(1),G());a&2&&(a=b.$implicit,C("value",a.hotlistId),B(1),De(" ",a.name," "))},vWa=function(a){if(a&1){var b=x();F(0,"mat-form-field",60)(1,"mat-select",61);J("ngModelChange",function(d){z(b);var e=K(2).$implicit;return A(e.value=
d)})("selectionChange",function(){z(b);var d=K(7);return A(Bs(d))});M(2,uWa,2,2,"mat-option",11);G()()}if(a&2){a=K(2).$implicit;var c=K(5);B(1);C("ngModel",a.value);B(1);C("ngForOf",c.userHotlists)}},wWa=function(a){if(a&1){var b=x();F(0,"div",58);M(1,tWa,3,2,"div",43);M(2,vWa,3,2,"mat-form-field",59);F(3,"button",47);J("click",function(){z(b);var d=K().$implicit,e=K(3).$implicit,f=K(2);return A(zs(f,e,d))});G()()}if(a&2){a=K().$implicit;var c=K(5);B(1);C("ngIf",c.chipUnderEdit!==a);B(1);C("ngIf",
c.chipUnderEdit===a)}},xWa=function(a,b){a&1&&(qe(0),M(1,wWa,4,2,"div",57),re());a&2&&(a=b.$implicit,b=K(5),B(1),C("ngIf",b.chipUnderEdit===a||a.value))},yWa=function(a){if(a&1){var b=x();F(0,"button",39);J("click",function(){z(b);var c=K(3).$implicit,d=K(2);return A(As(d,c))});O(1);G()}a&2&&(a=K(3).$implicit,B(1),De(" + ","OR"==a.type||"NAND"==a.type?"OR":"AND",""))},zWa=function(a){a&1&&(F(0,"div",33),M(1,xWa,2,1,"ng-container",40),M(2,yWa,2,1,"button",35),G());a&2&&(a=K(2).$implicit,B(1),C("ngForOf",
a.values),B(1),C("ngIf",a.type))},AWa=function(a){if(a&1){var b=x();F(0,"div",48);J("click",function(){z(b);var d=K(2).$implicit,e=K(5);return A(Cs(e,d))});F(1,"span",49);O(2);G()()}if(a&2){a=K(2).$implicit;var c=K(5);C("title",(null==c.savedSearches[a.value]?null:c.savedSearches[a.value].name)||a.value);B(2);De(" ",(null==c.savedSearches[a.value]?null:c.savedSearches[a.value].name)||a.value," ")}},BWa=function(a,b){a&1&&(F(0,"mat-option",12),O(1),G());a&2&&(a=b.$implicit,C("value",a.searchId),B(1),
De(" ",a.name," "))},CWa=function(a){if(a&1){var b=x();F(0,"mat-form-field",60)(1,"mat-select",63);J("ngModelChange",function(d){z(b);var e=K(2).$implicit;return A(e.value=d)})("selectionChange",function(){z(b);var d=K(7);return A(Bs(d))});M(2,BWa,2,2,"mat-option",11);G()()}if(a&2){a=K(2).$implicit;var c=K(5);B(1);C("ngModel",a.value);B(1);C("ngForOf",c.userSavedSearches)}},DWa=function(a){if(a&1){var b=x();F(0,"div",58);M(1,AWa,3,2,"div",62);M(2,CWa,3,2,"mat-form-field",59);F(3,"button",47);J("click",
function(){z(b);var d=K().$implicit,e=K(3).$implicit,f=K(2);return A(zs(f,e,d))});G()()}if(a&2){a=K().$implicit;var c=K(5);B(1);C("ngIf",c.chipUnderEdit!==a);B(1);C("ngIf",c.chipUnderEdit===a)}},EWa=function(a,b){a&1&&(qe(0),M(1,DWa,4,2,"div",57),re());a&2&&(a=b.$implicit,b=K(5),B(1),C("ngIf",b.chipUnderEdit===a||a.value))},FWa=function(a){if(a&1){var b=x();F(0,"button",39);J("click",function(){z(b);var c=K(3).$implicit,d=K(2);return A(As(d,c))});O(1);G()}a&2&&(a=K(3).$implicit,B(1),De(" + ","OR"==
a.type||"NAND"==a.type?"OR":"AND",""))},GWa=function(a){a&1&&(F(0,"div",33),M(1,EWa,2,1,"ng-container",40),M(2,FWa,2,1,"button",35),G());a&2&&(a=K(2).$implicit,B(1),C("ngForOf",a.values),B(1),C("ngIf",a.type))},HWa=function(a){a&1&&(F(0,"div",21),M(1,QVa,2,1,"div",22),M(2,VVa,5,4,"div",23),M(3,YVa,3,2,"div",24),M(4,eWa,3,2,"div",24),M(5,nWa,2,1,"div",24),M(6,sWa,4,3,"div",23),M(7,zWa,3,2,"div",24),M(8,GWa,3,2,"div",24),G());a&2&&(a=K().$implicit,K(2),B(1),C("ngIf","enum"===a.getWidgetType()),B(1),
C("ngIf",a instanceof Ds),B(1),C("ngIf","text"==a.getWidgetType()),B(1),C("ngIf","component"==a.getWidgetType()),B(1),C("ngIf","team"==a.getWidgetType()),B(1),C("ngIf","date"===a.getWidgetType()),B(1),C("ngIf","hotlist"==a.getWidgetType()),B(1),C("ngIf","savedsearch"==a.getWidgetType()))},IWa=function(a){a&1&&(F(0,"div",64),O(1),G());if(a&2){a=K().$implicit;var b=K(2);B(1);De(" ",b.getCustomFieldName(a)," ")}},KWa=function(a){if(a&1){var b=x();F(0,"div",65)(1,"b-custom-field-picker",66);J("fieldSelected",
function(c){z(b);var d=K().index,e=K(2),f=c.customFieldId;e.customFields[f]=c;e.expressions[d]=sVa("CUSTOM_FIELD",e.customFields[f]);JWa(e,e.expressions[d]);return A()});G()()}},MWa=function(a,b){if(a&1){var c=x();F(0,"div",13)(1,"div",14)(2,"mat-form-field",9)(3,"mat-select",15);J("ngModelChange",function(d){var e=z(c).$implicit;return A(e.label.field=d)})("selectionChange",function(){var d=z(c).index,e=K(2);return A(LWa(e,d))});M(4,MVa,2,2,"mat-option",11);G()();M(5,OVa,3,2,"mat-form-field",2);
G();F(6,"button",16);J("click",function(){var d=z(c).$implicit,e=K(2);return A(e.removeExpression(d))});G();M(7,HWa,9,8,"div",17);M(8,IWa,2,1,"div",18);M(9,KWa,2,0,"div",19);G()}a&2&&(a=b.$implicit,b=K(2),B(3),C("ngModel",a.label.field),B(1),C("ngForOf",b.availableLabels),B(1),C("ngIf",!a.isPendingCustomField),B(2),C("ngIf",!a.isPendingCustomField),B(1),C("ngIf",a.label.customFieldId),B(1),C("ngIf",a.isPendingCustomField))},NWa=function(a,b){if(a&1){var c=x();F(0,"button",67);J("click",function(){var d=
z(c).$implicit,e=K(2);e.expressions.push({label:{field:d[0]}});LWa(e,e.expressions.length-1);return A()});O(1);G()}a&2&&(a=b.$implicit,B(1),De(" ",a[1]," "))},OWa=function(a){a&1&&(F(0,"div",1),M(1,LVa,4,4,"mat-form-field",2),M(2,MWa,10,6,"div",3),F(3,"div",4)(4,"button",5),O(5),G(),F(6,"mat-menu",6,7),M(8,NWa,2,1,"button",8),G()()());if(a&2){var b=Ce(7);a=K();B(1);C("ngIf",a.expressions.length);B(1);C("ngForOf",a.expressions)("ngForTrackBy",a.trackByIndex);B(2);C("matMenuTriggerFor",b);B(1);De(" ",
a.expressionType," ... ");B(3);C("ngForOf",a.availableLabels)}},PWa=function(a){a&1&&H(0,"div",3)},QWa=function(a){a&1&&H(0,"div",4)},SWa=function(a){if(a&1){var b=x();F(0,"button",2);J("click",function(){z(b);var c=K();return A(RWa(c))});H(1,"mat-icon",3);O(2);G()}a&2&&(a=K(),C("matTooltip","Open release notes"),B(1),C("svgIcon",a.alertMode?"release-notes-alert":"release-notes-default"),B(1),De(" ",a.buttonLabel," "))},TWa=function(a){if(a&1){var b=x();F(0,"button",4);J("click",function(){z(b);var c=
K();return A(RWa(c))});O(1);G()}a&2&&(a=K(),B(1),De(" ",a.buttonLabel," "))},UWa=function(a){if(a&1){var b=x();F(0,"button",9);J("click",function(c){z(b);var d=K();return A(d.manageSlos(c))});O(1,"Manage SLOs");G()}},VWa=function(a){a&1&&(F(0,"a",13),O(1,"Early Access "),H(2,"b-feature-stage-label",14),G())},WWa=function(a){a&1&&(qe(0),H(1,"mat-divider")(2,"b-whats-new-button",15),re());a&2&&(B(2),C("menuMode",!0))},XWa=function(a){if(a&1){var b=x();F(0,"a",6);J("click",function(){z(b);var c=K(2);
return A(c.toggleNewIssueDetailsPage(!0))});O(1,"Try new version");G()}},YWa=function(a){if(a&1){var b=x();F(0,"a",6);J("click",function(){z(b);var c=K(2);return A(c.toggleNewIssueDetailsPage(!1))});O(1,"Back to legacy version");G()}},ZWa=function(a){a&1&&(qe(0),M(1,XWa,2,0,"a",5),M(2,YWa,2,0,"a",5),re());a&2&&(a=K(),B(1),C("ngIf",!a.isNewVersion),B(1),C("ngIf",a.isNewVersion))},$Wa=function(a){a&1&&H(0,"b-whats-new-button",7);a&2&&(a=K(),C("alertMode",a.majorReleaseNotesUpdated))},aXa=function(a){if(a&
1){var b=x();F(0,"button",8);J("click",function(){z(b);K().userFeedback.startFeedback();return A()});H(1,"mat-icon",9);G()}},bXa=function(a,b){if(a&1){var c=x();F(0,"button",6);J("click",function(){var d=z(c).$implicit;K().currentTracker.setTrackerId(d.trackerId);return A()});H(1,"img",7);F(2,"span",8);O(3);G()()}a&2&&(a=b.$implicit,C("value",a.trackerId),ge("title",a.name),B(1),C("src",null==a.branding?null:a.branding.logoUrl,Md),B(2),Ee(a.name))},cXa=function(a){if(a&1){var b=x();F(0,"button",5);
J("click",function(){z(b);var c=K();return A(c.clickMenu.emit())});H(1,"mat-icon",6);G()}},fXa=function(a,b){a&1&&(F(0,"output",7),O(1),G());a&2&&(a=b.$implicit,C("ngClass",a.color?Ie(2,dXa,a.color):He(4,eXa)),B(1),Ee(a.name))},gXa=function(a){a&1&&H(0,"tracker-switcher",2);a&2&&(a=K(),C("associatedTrackers",a.associatedTrackers))},hXa=function(a){a&1&&(F(0,"span"),O(1," Currently selected hotlist: "),F(2,"strong"),O(3),G()());a&2&&(a=K(3),B(3),Ee(a.header.hotlist.name))},iXa=function(a){a&1&&O(0,
" Showing your subscribed hotlists. Start typing a hotlist name or ID to filter. ")},jXa=function(a){a&1&&(qe(0),M(1,hXa,4,1,"span",5),M(2,iXa,1,0,"ng-template",null,6,Jf),re());if(a&2){var b=Ce(3);a=K(2);B(1);C("ngIf",a.header.hotlist)("ngIfElse",b)}},kXa=function(a){a&1&&(F(0,"span"),O(1,"Currently selected saved search: "),F(2,"strong"),O(3),G()());a&2&&(a=K(3),B(3),Ee(a.header.savedSearch.name))},lXa=function(a){a&1&&O(0," Showing your saved searches. Start typing a saved search name or ID to filter. ")},
mXa=function(a){a&1&&(qe(0),M(1,kXa,4,1,"span",5),M(2,lXa,1,0,"ng-template",null,7,Jf),re());if(a&2){var b=Ce(3);a=K(2);B(1);C("ngIf",a.header.savedSearch)("ngIfElse",b)}},nXa=function(a){a&1&&(F(0,"span"),O(1," and "),F(2,"strong"),O(3,"subcomponents"),G()())},oXa=function(a){a&1&&(F(0,"span"),O(1," Currently selected component: "),F(2,"strong"),O(3),G(),H(4,"b-access-level-indicator",9),M(5,nXa,4,0,"span",4),G());if(a&2){a=K(3);B(3);var b=a.header.component;Ee(b.componentPathInfo&&b.componentPathInfo.componentPathName?
b.componentPathInfo.componentPathName.join(" > "):b.name);B(1);C("accessLevel",null==a.header.component.accessLimit?null:a.header.component.accessLimit.accessLevel);B(1);C("ngIf",a.header.includeChildren)}},pXa=function(a){a&1&&O(0," Start typing a component name or ID to see auto-complete suggestions. ")},qXa=function(a){a&1&&(qe(0),M(1,oXa,6,3,"span",5),M(2,pXa,1,0,"ng-template",null,8,Jf),re());if(a&2){var b=Ce(3);a=K(2);B(1);C("ngIf",a.header.component)("ngIfElse",b)}},rXa=function(a){a&1&&(F(0,
"span"),O(1," and "),F(2,"strong"),O(3,"subteams"),G()())},sXa=function(a){a&1&&(F(0,"span"),O(1," Currently selected team: "),F(2,"strong"),O(3),G(),M(4,rXa,4,0,"span",4),G());a&2&&(a=K(3),B(3),Ee(a.header.team.name),B(1),C("ngIf",a.header.includeChildren))},tXa=function(a){a&1&&O(0," Start typing a team name or ID to see auto-complete suggestions. ")},uXa=function(a){a&1&&(qe(0),M(1,sXa,5,2,"span",5),M(2,tXa,1,0,"ng-template",null,10,Jf),re());if(a&2){var b=Ce(3);a=K(2);B(1);C("ngIf",a.header.team)("ngIfElse",
b)}},vXa=function(a,b){a&1&&(F(0,"span"),O(1," Currently selected custom field: "),F(2,"strong"),O(3),G(),O(4," of type "),F(5,"strong"),O(6),P(7,"lowercase"),G(),O(8,". "),G());a&2&&(a=b.$implicit,B(3),Ee(a.name),B(3),Ee(Q(7,2,a.type)))},wXa=function(a){a&1&&O(0," customfield[id]: [value] ")},xXa=function(a){a&1&&(qe(0),M(1,vXa,9,4,"span",5),M(2,wXa,1,0,"ng-template",null,11,Jf),re());if(a&2){var b=Ce(3);a=K(2);B(1);C("ngIf",a.header.customField)("ngIfElse",b)}},yXa=function(a){a&1&&(F(0,"div",3),
M(1,jXa,4,2,"ng-container",4),M(2,mXa,4,2,"ng-container",4),M(3,qXa,4,2,"ng-container",4),M(4,uXa,4,2,"ng-container",4),M(5,xXa,4,2,"ng-container",4),G());a&2&&(a=K(),B(1),C("ngIf","hotlist"===a.header.type),B(1),C("ngIf","savedsearch"===a.header.type),B(1),C("ngIf","component"===a.header.type),B(1),C("ngIf","team"===a.header.type),B(1),C("ngIf","customfield"===a.header.type))},zXa=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K().$implicit,B(1),Fe(" ",a.id,": ",a.name," "))},AXa=function(a){a&
1&&(F(0,"span"),O(1),F(2,"span"),O(3),G()());a&2&&(a=K().$implicit,B(1),De(" Hotlist ",a.hotlistId,": "),B(2),Ee(a.name))},BXa=function(a){a&1&&(F(0,"span"),O(1),F(2,"span"),O(3),G(),H(4,"br"),F(5,"span",13),O(6),G()());a&2&&(a=K().$implicit,B(1),De(" Saved search ",a.searchId,": "),B(2),Ee(a.name),B(3),Ee(a.query))},CXa=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K().$implicit,B(1),De(" ",a.name," "))},DXa=function(a){a&1&&(F(0,"span"),O(1," > "),G())},FXa=function(a,b){if(a&1){var c=x();qe(0);
F(1,"span",16);J("click",function(d){var e=z(c).$implicit;EXa(e);return A(d.stopPropagation())});O(2);G();M(3,DXa,2,0,"span",4);re()}a&2&&(a=b.$implicit,b=b.last,B(1),Be("title","",a.id,": ",a.name,""),B(1),Ee(a.name),B(1),C("ngIf",!b))},GXa=function(a){a&1&&(F(0,"span"),O(1," Component "),F(2,"strong"),O(3),G(),H(4,"b-access-level-indicator",9),F(5,"span",14),M(6,FXa,4,4,"ng-container",15),G()());a&2&&(a=K().$implicit,B(3),Ee(a.componentId),B(1),C("accessLevel",null==a.accessLimit?null:a.accessLimit.accessLevel),
B(2),C("ngForOf",a.componentPath))},HXa=function(a){a&1&&(F(0,"span"),O(1," > "),G())},IXa=function(a,b){if(a&1){var c=x();qe(0);F(1,"span",16);J("click",function(d){var e=z(c).$implicit;EXa(e);return A(d.stopPropagation())});O(2);G();M(3,HXa,2,0,"span",4);re()}a&2&&(a=b.$implicit,b=b.last,B(1),Be("title","",a.id,": ",a.name,""),B(1),Ee(a.name),B(1),C("ngIf",!b))},JXa=function(a){a&1&&(F(0,"span"),O(1," Team "),F(2,"strong"),O(3),G(),F(4,"span",14),M(5,IXa,4,4,"ng-container",15),G()());a&2&&(a=K().$implicit,
B(3),Ee(a.id),B(2),C("ngForOf",a.teamPath))},KXa=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K().$implicit,B(1),Fe(" ",a.label,": ",a.name," "))},MXa=function(a,b){if(a&1){var c=x();F(0,"b-app-search-auto-complete-option",12);J("optionClicked",function(e){z(c);var f=K();0<=e&&e<f.items.length&&(e=f.items[e],e.id&&e.completionCfg&&LXa(e),f.itemSelected.emit(e));return A()});M(1,zXa,2,2,"span",4);M(2,AXa,4,2,"span",4);M(3,BXa,7,3,"span",4);M(4,CXa,2,1,"span",4);M(5,GXa,7,3,"span",4);M(6,JXa,6,2,
"span",4);M(7,KXa,2,2,"span",4);G()}if(a&2){a=b.$implicit;b=b.index;var d=K();ie("id","b-app-search-option-",b,"");C("index",b)("isActive",0<=b&&b<d.items.length?b===d.activeItemIndex:!1);B(1);C("ngIf","issue"===a.completionCfg.type);B(1);C("ngIf","hotlist"===a.completionCfg.type);B(1);C("ngIf","savedsearch"===a.completionCfg.type);B(1);C("ngIf","atom"===a.completionCfg.type);B(1);C("ngIf","component"===a.completionCfg.type);B(1);C("ngIf","team"===a.completionCfg.type);B(1);C("ngIf",!d.SPECIAL_ITEM_TYPES.includes(a.completionCfg.type))}},
NXa=function(a){a&1&&(qe(0),F(1,"span",10),O(2),G(),re());a&2&&(a=K(),B(1),le("muted",a.disabled),B(1),Ee(a.cardTitle))},OXa=function(a){a&1&&H(0,"mat-icon",11)},PXa=function(a){a&1&&H(0,"mat-icon",12)},QXa=function(a){a&1&&(F(0,"mat-select-trigger"),H(1,"mat-icon",20),F(2,"span"),O(3),G()());a&2&&(a=K(3),B(1),C("svgIcon",a.selectedOption.icon),B(2),Ee(a.selectedOption.displayText))},RXa=function(a){a&1&&H(0,"mat-icon",20);a&2&&(a=K().$implicit,C("svgIcon",a.icon))},SXa=function(a,b){a&1&&(F(0,"mat-option",
21),M(1,RXa,1,1,"mat-icon",22),O(2),G());a&2&&(a=b.$implicit,C("value",a),B(1),C("ngIf",a.icon),B(1),De("",a.displayText," "))},TXa=function(a){if(a&1){var b=x();F(0,"mat-form-field",16)(1,"mat-label");O(2," Choose type... ");G();F(3,"mat-select",17);J("valueChange",function(c){z(b);var d=K(2);return A(d.selectedOption=c)})("selectionChange",function(c){z(b);K(2).dropdownSelectionChanged.emit(c.value);return A()});M(4,QXa,4,2,"mat-select-trigger",18);M(5,SXa,3,3,"mat-option",19);G()()}a&2&&(a=K(2),
B(3),C("disabled",a.disabled)("value",a.selectedOption),B(1),C("ngIf",a.selectedOption&&a.selectedOption.icon),B(1),C("ngForOf",a.dropdownOptions))},UXa=function(a){if(a&1){var b=x();F(0,"mat-form-field",13)(1,"input",14);J("ngModelChange",function(c){z(b);var d=K();return A(d.cardTitleChange.emit(c))});G()();M(2,TXa,6,4,"mat-form-field",15)}a&2&&(a=K(),B(1),le("muted",a.disabled||!a.selected),C("placeholder",a.placeholderForCardTitle)("disabled",a.disabled||!a.selected)("ngModel",a.cardTitle),ge("aria-label",
a.ariaLabelForCardTitle),B(1),C("ngIf",a.dropdownOptions.length))},VXa=function(a){a&1&&(F(0,"div",23),ye(1),G())},WXa=function(a){a&1&&(F(0,"button",31),H(1,"mat-icon",32),G());a&2&&(a=K(2),C("disabled",a.disabled))},XXa=function(a){a&1&&H(0,"mat-divider",33);a&2&&C("vertical",!0)},YXa=function(a){a&1&&(F(0,"mat-slide-toggle",34),O(1," Required "),G());a&2&&(a=K(2),C("disabled",a.disabled))},ZXa=function(a){if(a&1){var b=x();F(0,"mat-slide-toggle",35);J("change",function(c){z(b);var d=K(2);return A(d.isInheritedChange.emit(c))});
O(1," Inherited ");G()}a&2&&(a=K(2),C("checked",a.isInherited)("disabled",a.inheritedDisabled)("matTooltip",a.inheritedDisabledTooltipText)("matTooltipDisabled",!a.inheritedDisabled))},$Xa=function(a){if(a&1){var b=x();F(0,"div",24)(1,"button",25);J("click",function(){z(b);var c=K();return A(c.onSave())});O(2," Save ");G();F(3,"button",26);J("click",function(){z(b);var c=K();c.collapse();c.onCancelButtonClicked.emit();return A()});O(4," Cancel ");G();M(5,WXa,2,1,"button",27);M(6,XXa,1,1,"mat-divider",
28);M(7,YXa,2,1,"mat-slide-toggle",29);M(8,ZXa,2,4,"mat-slide-toggle",30);G()}a&2&&(a=K(),B(1),C("disabled",a.isSaveButtonDisabled),B(2),C("disabled",a.disabled),B(2),C("ngIf",a.showDeleteButton),B(1),C("ngIf",a.showDeleteButton&&a.showRequiredToggle),B(1),C("ngIf",a.showRequiredToggle),B(1),C("ngIf",a.showInheritedToggle))},aYa=function(a){a&1&&(F(0,"h3"),O(1),G());a&2&&(a=K(2),B(1),De(" Edit Custom Field ",a.editableField.customFieldId," "))},bYa=function(a){a&1&&(F(0,"h3"),O(1," Create Custom Field "),
G())},cYa=function(a){a&1&&(F(0,"div",40),O(1),G());a&2&&(a=K(2),B(1),De(" ",a.serverError," "))},eYa=function(a,b){a&1&&(F(0,"button",41),O(1),P(2,"enumToHuman"),G());if(a&2){a=b.$implicit;K();var c=Ce(32);C("matMenuTriggerFor",c)("matMenuTriggerData",Ie(5,dYa,a));B(1);De(" ",Q(2,3,a)," ")}},fYa=function(a,b){if(a&1){var c=x();F(0,"button",43);J("click",function(){var d=z(c).$implicit,e=K().type,f=K(2);return A(f.setType(e,"Multiple"===d))});O(1);G()}a&2&&(a=b.$implicit,B(1),De(" ",a," "))},gYa=
function(a){a&1&&M(0,fYa,2,1,"button",42);a&2&&(a=K(2),C("ngForOf",a.secondaryTypes))},iYa=function(a){if(a&1){var b=x();F(0,"td",7)(1,"label",44);O(2," Allowed Values: ");G();F(3,"b-list-field",45);J("valuesChange",function(c){z(b);var d=K(2);return A(hYa(d,c.values))});G()()}a&2&&(a=K(2),B(3),C("defaultLineCount",3)("type",a.ListFieldType.REPEATED_TEXT)("values",a.editableField.allowedValue)("listFieldDisabled",a.isSaving)("preventDuplicates",!0)("isDefaultOrAllowedValues",!0)("truncate",!0))},
jYa=function(a){a&1&&(F(0,"label",46),O(1," Default Value: "),G())},mYa=function(a,b){if(a&1){var c=x();F(0,"b-edit-field",47);J("valueChange",function(d){z(c);var e=K(2);kYa(e,d);return A()});G()}a&2&&(a=b.ngIf,b=K(2),C("name","Default")("type",a)("tooltip","Set default value")("value",lYa(b))("choices",b.allowedValues)("showEnumTitle",!0)("disabled",b.isSaving)("truncate",!0)("clearable",!0))},nYa=function(a){a&1&&(F(0,"label",48),O(1," Default Values: "),G())},oYa=function(a,b){if(a&1){var c=x();
F(0,"b-list-field",49);J("valuesChange",function(d){z(c);var e=K(2);kYa(e,d.values);return A()});G()}a&2&&(a=b.ngIf,b=K(2),C("defaultLineCount",3)("type",a)("tooltip","Set default values")("values",b.getListFieldValues())("enumChoices",b.allowedValues)("isDefaultOrAllowedValues",!0)("listFieldDisabled",b.isSaving)("truncate",!0))},pYa=function(a,b){if(a&1){var c=x();F(0,"button",50);J("click",function(){var d=z(c).$implicit,e=K(2);return A(e.setFieldSignificance(d))});O(1);P(2,"enumToHuman");G()}a&
2&&(a=b.$implicit,B(1),De(" ",Q(2,1,a)," "))},qYa=function(a){if(a&1){var b=x();F(0,"div",4);M(1,aYa,2,1,"h3",3);M(2,bYa,2,0,"h3",3);M(3,cYa,2,1,"div",5);F(4,"form",6)(5,"div",7)(6,"label",8);O(7,"Name:");G();F(8,"input",9);J("ngModelChange",function(h){z(b);var k=K();return A(k.editableField.name=h)});G()();F(9,"div",7)(10,"label",10);O(11,"Description:");G();F(12,"textarea",11);J("ngModelChange",function(h){z(b);var k=K();return A(k.editableField.description=h)});G()();F(13,"table",12)(14,"tr")(15,
"td",7)(16,"div",13)(17,"label",14);O(18," Type: ");G();F(19,"onedev-hovercard",null,15)(21,"div",16)(22,"div",17);O(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. ");G()()()();F(24,"button",18);O(25);P(26,"enumToHuman");H(27,"b-icon",19);G();F(28,"mat-menu",null,20);M(30,eYa,3,7,"button",21);G();F(31,"mat-menu",null,22);M(33,gYa,1,1,"ng-template",23);G()();M(34,iYa,4,7,"td",24);F(35,"td",7);M(36,jYa,2,0,"label",
25);M(37,mYa,1,9,"b-edit-field",26);M(38,nYa,2,0,"label",27);M(39,oYa,1,8,"b-list-field",28);G();F(40,"td",7)(41,"label",29);O(42," Required: ");G();F(43,"b-edit-field",30);J("valueChange",function(h){z(b);var k=K();return A(k.editableField.required=!!h)});G()();F(44,"td",7)(45,"div",13)(46,"label",31);O(47," Field Significance: ");G();F(48,"onedev-hovercard",null,32)(50,"div",33)(51,"div",17);O(52," This affects whether users will receive notifications when changes are made to this field. ");H(53,
"br");O(54," See\u00a0 ");F(55,"a",34);O(56,"Email Settings ");G()()()()();F(57,"button",35);O(58);P(59,"enumToHuman");H(60,"b-icon",19);G();F(61,"mat-menu",null,36);M(63,pYa,3,3,"button",37);G()()()();F(64,"b-button",38);J("onAction",function(){z(b);var h=K();return A(h.save())});O(65," Save ");G();F(66,"b-button",39);J("onAction",function(){z(b);var h=K();return A(h.cancel())});O(67," Cancel ");G()()()}if(a&2){var c=Ce(20),d=Ce(29),e=Ce(49),f=Ce(62);a=K();B(1);C("ngIf",!!a.editableField.customFieldId);
B(1);C("ngIf",!a.editableField.customFieldId);B(1);C("ngIf",a.serverError);B(5);C("bFocus",a.editableField&&!a.isLoading)("ngModel",a.editableField.name)("disabled",a.isSaving);B(4);C("ngModel",a.editableField.description)("disabled",a.isSaving);B(5);C("onedevHovercardTrigger",c);B(7);C("matMenuTriggerFor",d)("disabled",!!a.editableField.customFieldId);B(1);De(" ",Q(26,28,a.editableField.type)," ");B(5);C("ngForOf",a.typeChoices);B(4);C("ngIf",["REPEATED_ENUM","ENUM"].includes(a.editableField.type));
B(2);C("ngIf",!a.editableField.isRepeated());B(1);C("ngIf",a.getSingleEditFieldType(a.editableField));B(1);C("ngIf",a.editableField.isRepeated());B(1);C("ngIf",a.getListFieldType(a.editableField));B(4);C("name","Required")("type",a.FieldType.BOOL)("tooltip","Whether the field is required")("value",a.editableField.required);B(3);C("onedevHovercardTrigger",e);B(9);C("href",a.documentationLinks.baseDocumentationUrl+"/concepts/settings#email",Md);B(2);C("matMenuTriggerFor",f);B(1);De(" ",Q(59,30,a.editableField.fieldSignificance),
" ");B(5);C("ngForOf",a.significanceChoices);B(1);C("disabled",!a.hasUnsavedChanges()||!a.editableField.name)}},rYa=function(a){a&1&&(F(0,"div",51),H(1,"b-spinner",52),G());a&2&&(B(1),C("large",!0))},sYa=function(a){a&1&&(F(0,"th"),O(1,"Actions"),G())},uYa=function(a){if(a&1){var b=x();F(0,"td",59)(1,"b-button",60);J("click",function(){z(b);var c=K().index,d=K(2);return A(d.editField(c))});O(2,"Edit");G();F(3,"b-button",60);J("click",function(){z(b);var c=K().index,d=K(2);return A(tYa(d,c))});O(4,
"Delete");G()()}},vYa=function(a,b){a&1&&(F(0,"tr",56)(1,"td"),O(2),G(),F(3,"td"),O(4),G(),F(5,"td"),O(6),P(7,"enumToHuman"),G(),F(8,"td"),O(9),G(),F(10,"td"),O(11),P(12,"yesNo"),G(),F(13,"td"),H(14,"b-custom-field-value-display",57),G(),F(15,"td"),O(16),P(17,"arrayToHuman"),G(),F(18,"td"),O(19),P(20,"enumToHuman"),G(),M(21,uYa,5,0,"td",58),G());a&2&&(a=b.$implicit,b=K(2),C("ngClass",a.enabledOnIssues?"enabled-field":"disabled-field"),B(2),Ee(a.name),B(2),Ee(a.customFieldId),B(2),Ee(Q(7,10,a.type)),
B(3),Ee(a.description),B(2),Ee(Q(12,12,a.required)),B(3),C("customFieldValue",a.typedDefaultValue),B(2),Ee(Q(17,14,a.allowedValue)),B(3),Ee(Q(20,16,a.fieldSignificance)),B(2),C("ngIf",b.editMode))},wYa=function(a){a&1&&(F(0,"tr")(1,"td",61),O(2," There are no custom fields defined on this component. "),G()())},xYa=function(a){a&1&&(F(0,"tr")(1,"td",62)(2,"strong"),O(3,"Fields inherited from parent components"),G()()())},yYa=function(a){a&1&&(qe(0),H(1,"b-component-card",69,70),re());if(a&2){var b=
Ce(2);a=K().$implicit;B(1);C("onedevIsHovercardReady",b.init)("componentId",a.componentId.toString())}},AYa=function(a){if(a&1){var b=x();F(0,"b-field-state-menu",71,72);J("fieldStateChange",function(d){z(b);var e=K(),f=e.$implicit;e=e.index;var h=K(3);return A(h.updateCustomFieldState(f,d,e))});G()}if(a&2){a=K().$implicit;var c=K(3);C("fieldName",a.name)("fieldState",a.stateOnIssues)("enabledOnParent",zYa(c,a.customFieldId))("disabled",!c.editMode)("matTooltip",c.msgFieldStateTip);ge("aria-label",
c.msgFieldStateTip)}},BYa=function(a,b){if(a&1){var c=x();F(0,"tr",56)(1,"td");O(2);G();F(3,"td");O(4);G();F(5,"td");O(6);P(7,"enumToHuman");G();F(8,"td");O(9);G();F(10,"td");O(11);P(12,"yesNo");G();F(13,"td");H(14,"b-custom-field-value-display",57);G();F(15,"td");O(16);P(17,"arrayToHuman");G();F(18,"td");O(19);P(20,"enumToHuman");G();F(21,"td",59)(22,"div",63)(23,"div",64);O(24,"Inherited From");G();F(25,"a",65);J("click",function(){z(c);var e=K(3);return A(e.trackClick("parentCustomFields"))});
O(26);G();F(27,"onedev-hovercard",null,66);M(29,yYa,3,2,"ng-container",67);G()();M(30,AYa,2,6,"b-field-state-menu",68);G()()}if(a&2){a=b.$implicit;var d=Ce(28);b=K(3);C("ngClass",a.enabledOnIssues?"enabled-field":"disabled-field");B(2);Ee(a.name);B(2);Ee(a.customFieldId);B(2);Ee(Q(7,13,a.type));B(3);Ee(a.description);B(2);Ee(Q(12,15,a.required));B(3);C("customFieldValue",a.typedDefaultValue);B(2);Ee(Q(17,17,a.allowedValue));B(3);Ee(Q(20,19,a.fieldSignificance));B(6);C("onedevHovercardTrigger",d)("href",
b.paths.manageComponent(a.componentId,"customFields"),Md);B(1);De(" ",b.componentIdsToNames[a.componentId]," ");B(4);C("ngIf",b.editMode)}},CYa=function(a){a&1&&(qe(0),M(1,BYa,31,21,"tr",54),re());a&2&&(a=K(2),B(1),C("ngForOf",a.inheritedCustomFields))},DYa=function(a){a&1&&(F(0,"tfoot")(1,"tr")(2,"td",62),O(3," Custom fields in this table are sorted alphabetically. To see or modify field ordering, go to the "),F(4,"a",73),O(5,"Field Ordering"),G(),O(6," tab."),H(7,"br"),O(8," Before removing custom fields or adding/changing required state, ensure that no automation depends on them. "),
G()()())},EYa=function(a){if(a&1){var b=x();F(0,"div",74)(1,"b-button",75);J("onAction",function(){z(b);var c=K(2);c.editableField=new Es;c.originalEditableFieldValue_=Fi(c.editableField);c.setType("TEXT");c.allowedValues=[];c.serverError=null;return A()});O(2," Add a Custom Field ");G()()}},FYa=function(a){a&1&&(F(0,"div")(1,"table",53)(2,"tr")(3,"th"),O(4,"Name"),G(),F(5,"th"),O(6,"ID"),G(),F(7,"th"),O(8,"Type"),G(),F(9,"th"),O(10,"Description"),G(),F(11,"th"),O(12,"Required?"),G(),F(13,"th"),O(14,
"Default Value"),G(),F(15,"th"),O(16,"Allowed Values"),G(),F(17,"th"),O(18,"Field Significance"),G(),M(19,sYa,2,0,"th",3),G(),M(20,vYa,22,18,"tr",54),M(21,wYa,3,0,"tr",3),M(22,xYa,4,0,"tr",3),M(23,CYa,2,1,"ng-container",3),M(24,DYa,9,0,"tfoot",3),G(),M(25,EYa,3,0,"div",55),G());a&2&&(a=K(),B(19),C("ngIf",a.editMode),B(1),C("ngForOf",a.customFields),B(1),C("ngIf",!a.customFields.length),B(1),C("ngIf",a.inheritedCustomFields.length),B(1),C("ngIf",a.inheritedCustomFields.length),B(1),C("ngIf",a.customFields.length),
B(1),C("ngIf",a.editMode))},GYa=function(a){if(a&1){var b=x();F(0,"button",18);J("click",function(){z(b);var c=K().index,d=K();return A(d.removeAtIndex.emit(c))});H(1,"mat-icon",19);G()}a&2&&(a=K().$implicit,ge("aria-label","Delete row "+a.label))},HYa=function(a,b){if(a&1){var c=x();F(0,"div",9)(1,"div",10);H(2,"mat-icon",11);F(3,"div",1)(4,"mat-form-field",12)(5,"input",13,14);J("change",function(f){var h=z(c).index,k=K();k.options[h].label=f.target.value;k.optionsChange.emit(k.options);return A()});
G()()();F(7,"div",1)(8,"mat-form-field",12)(9,"input",15,16);J("change",function(f){var h=z(c).index,k=K();return A(k.valueChange(f,h))});G()()();M(11,GYa,2,1,"button",17);G()()}if(a&2){a=b.$implicit;var d=Ce(6),e=Ce(10);b=K();B(4);C("appearance",d.focused||e.focused?"standard":"none");B(1);le("muted",b.disabled);C("value",a.label)("placeholder",null==a.label?"Dropdown value":"")("disabled",b.disabled);B(3);C("appearance",d.focused||e.focused?"standard":"none");B(1);le("muted",b.disabled);C("value",
a.value)("placeholder",null==a.value?"Average days":"")("disabled",b.disabled);B(2);C("ngIf",!b.disabled)}},IYa=function(a){if(a&1){var b=x();F(0,"button",20);J("click",function(){z(b);var c=K();return A(c.addRow.emit())});O(1," Add row\n");G()}},JYa=function(a){a&1&&ue(0)},KYa=function(a){a&1&&(qe(0),M(1,JYa,1,0,"ng-container",5),re());if(a&2){K();var b=Ce(7);B(1);C("ngTemplateOutlet",b)}},LYa=function(a){if(a&1){var b=x();qe(0);F(1,"b-numeric-config",6);J("valueChange",function(c){z(b);var d=K();
return A(d.numericSpecMultiplier=c)});G();re()}a&2&&(a=K(),B(1),C("disabled",a.disabled)("value",a.numericSpecMultiplier))},MYa=function(a){a&1&&ue(0)},NYa=function(a){if(a&1){var b=x();F(0,"div",7)(1,"label",8);O(2,"Aggregation Rule");G();F(3,"a",9);H(4,"mat-icon",10);G();H(5,"br");F(6,"mat-form-field",11)(7,"mat-select",12);J("valueChange",function(c){z(b);var d=K();return A(d.selectedAggregationRule=c)});F(8,"mat-select-trigger");O(9);P(10,"aggregationRuleText");G();F(11,"mat-option",13)(12,"div",
14);O(13);P(14,"aggregationRuleText");G();F(15,"div",15);O(16,"All parents and children are added to the total");G()();F(17,"mat-option",13)(18,"div",14);O(19);P(20,"aggregationRuleText");G();F(21,"div",15);O(22,"Take the assigned estimate if larger than total of all immediate children");G()()()()()}a&2&&(a=K(),B(7),C("value",a.selectedAggregationRule),B(2),De(" ",Q(10,6,a.selectedAggregationRule)," "),B(2),C("value",a.aggregationRules.SUM),B(2),Ee(Q(14,8,a.aggregationRules.SUM)),B(4),C("value",a.aggregationRules.MAX),
B(2),Ee(Q(20,10,a.aggregationRules.MAX)))},OYa=function(a){if(a&1){var b=x();F(0,"b-config-grid",16);J("optionsChange",function(c){z(b);var d=K();return A(d.enumSpecOptions=c)})("addRow",function(){z(b);var c=K();return A(c.addRow())})("removeAtIndex",function(c){z(b);K().enumSpecOptions.splice(c,1);return A()});G()}a&2&&(a=K(),C("options",a.enumSpecOptions)("disabled",a.disabled||a.inherit))},PYa=function(a){return a&&"0"!==a.getTeamId()?a.getDeleted()?"DELETED":"VALID":"MISSING"},QYa=function(a){if(a&
1){var b=x();F(0,"div",6);O(1," Select a team from the suggestions below, or edit in ");F(2,"a",7);J("click",function(){z(b);var c=K();return A(c.trackClick("viewTeamAssociationOnComponent"))});O(3,"component settings");G();O(4,".\n");G()}a&2&&(a=K(),B(2),C("href",a.componentSetting,Md))},RYa=function(a){a&1&&(F(0,"div",6),O(1," Assigned team no longer exists, select a different team from the suggestions below, or edit/opt out of team mapping in "),F(2,"a",8),O(3,"component settings"),G(),O(4,".\n"),
G());a&2&&(a=K(),B(2),C("href",a.componentSetting,Md))},SYa=function(a){if(a&1){var b=x();F(0,"mat-radio-group",9);J("ngModelChange",function(c){z(b);var d=K();return A(d.teamAction=c)});F(1,"p")(2,"mat-radio-button",10);O(3," Don't make any changes ");G()();F(4,"p")(5,"mat-radio-button",11);O(6," Map component to selected team ");G()()()}a&2&&(a=K(),C("ngModel",a.teamAction))},TYa=function(a){a&1&&(qe(0),F(1,"span",19),O(2),G(),re());a&2&&(a=K().$implicit,B(2),Ee(a.teamPath))},UYa=function(a){a&
1&&O(0," -- ")},VYa=function(a,b){a&1&&(M(0,TYa,3,1,"ng-container",17),M(1,UYa,1,0,"ng-template",null,18,Jf));if(a&2){a=b.$implicit;var c=Ce(2);C("ngIf",a)("ngIfElse",c)}},WYa=function(a){if(a&1){var b=x();F(0,"div",12)(1,"onedev-single-select",13);J("valueChange",function(d){z(b);var e=K();return A(e.selectedTeam=d)})("valueChange",function(d){z(b);var e=K();return A(e.selectOption(d))});G();M(2,VYa,3,2,"ng-template",null,14,Jf);F(4,"a",15);J("click",function(){z(b);var d=K();return A(d.trackClick("viewTeamInMoma"))});
H(5,"mat-icon",16);G()()}if(a&2){var c=Ce(3);a=K();B(1);C("disabled","NONE"===a.teamAction)("value",a.selectedTeam)("options",a.teamOptions)("includeEmptyOption",!1)("optionTemplate",c);B(3);ge("href",a.getMomaTeamLink(),Md)}},XYa=function(a){if(a&1){var b=x();F(0,"b-callout-actions")(1,"b-button",2);J("click",function(){z(b);var c=K();return A(c.openDialog())});O(2);G()()}a&2&&(a=K(),B(2),Ee(a.buttonName))},YYa=function(a){a&1&&(F(0,"div",8),H(1,"b-team-warning",9),G());a&2&&(a=K().ngIf,B(1),C("warningType",
a)("messageOnly",!0))},ZYa=function(a,b){a&1&&(qe(0),M(1,YYa,2,2,"div",7),re());a&2&&(a=b.ngIf,b=K(),B(1),C("ngIf",b.isAdmin&&("MISSING"===a||"DELETED"===a)))},$Ya=function(a){if(a&1){var b=x();F(0,"div",10)(1,"mat-checkbox",11);J("change",function(c){z(b);var d=K();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()});O(2," Inherit team from parent component ");
G()()}a&2&&(a=K(),B(1),C("disabled",!a.isAdmin)("checked",a.inherit))},aZa=function(a){if(a&1){var b=x();F(0,"a",13);J("click",function(){z(b);K(2);Un(io.MANAGE_COMPONENT,"navigate","to-internal-team-page");return A()});H(1,"mat-icon",14);G()}a&2&&(a=K(2),C("routerLink",Fs(a)?"/teams/"+a.model.id+"/edit":null)("target",a.anchorTarget))},bZa=function(a){a&1&&(qe(0),M(1,aZa,2,2,"a",12),re());a&2&&(a=K(),B(1),C("ngIf",Fs(a)))},cZa=function(a){if(a&1){var b=x();F(0,"a",16);J("click",function(){z(b);var c=
K(2);Un(io.MANAGE_COMPONENT,"linkout-moma","team",Number(c.model.id));return A()});H(1,"mat-icon",14);G()}a&2&&(a=K(2),ge("href",a.getMomaTeamLink(),Md))},dZa=function(a){a&1&&M(0,cZa,2,1,"a",15);a&2&&(a=K(),C("ngIf",Fs(a)))},eZa=function(){var a;return(a=void 0===a?aj():a)?"https://goto.corp.google.com/buganizer-delete":"https://issuetracker.google.com/issues/new?component=169992&template=543202"},fZa=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K().$implicit,B(1),De("(",a.disabledReason,")"))},
gZa=function(a,b){a&1&&(F(0,"mat-radio-button",8),O(1),M(2,fZa,2,1,"span",9),G());a&2&&(a=b.$implicit,C("value",a)("disabled",!a.enabled),B(1),De(" ",a.displayText," "),B(1),C("ngIf",!a.enabled))},hZa=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K().$implicit,B(1),De("(",a.disabledReason,")"))},iZa=function(a,b){a&1&&(F(0,"mat-radio-button",8),O(1),M(2,hZa,2,1,"span",9),G());a&2&&(a=b.$implicit,C("value",a)("disabled",!a.enabled),B(1),De(" ",a.displayText," "),B(1),C("ngIf",!a.enabled))},lZa=function(a,
b){if(a&1){var c=x();F(0,"li",11);J("keydown",function(e){var f=z(c).index,h=K();return A(h.onKeyDown(e,f))})("focus",function(){var e=z(c).index,f=K();return A(f.onFocus(e))});H(1,"mat-icon",12);F(2,"span");O(3);G();F(4,"div",13)(5,"button",14);J("click",function(){var e=z(c).index,f=K();return A(jZa(f,e))});H(6,"mat-icon",15);G();F(7,"button",16);J("click",function(){var e=z(c).index,f=K();return A(kZa(f,e))});H(8,"mat-icon",17);G()()()}if(a&2){a=b.$implicit;b=b.index;var d=K();ge("aria-label",
a.name)("aria-grabbed",b===d.grabbedIndex);B(3);Ee(a.name);B(2);le("invisible",0===b);B(2);le("invisible",b===d.fields.length-1)}},mZa=function(a){var b=function(){var c=a.apply(this,[].concat(u(qc.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};li.Object.defineProperties(b.prototype,{sticky:{configurable:!0,
enumerable:!0,get:function(){return this._sticky},set:function(c){var d=this._sticky;this._sticky=Vg(c);this._hasStickyChanged=d!==this._sticky}}});return b},Gs=function(a,b){return a.concat(Array.from(b))},nZa=function(a){a&1&&(F(0,"th",14),O(1," Order"),G())},oZa=function(a,b){a&1&&(F(0,"td",15),O(1),G());a&2&&(a=b.index,B(1),De(" ",a+1," "))},pZa=function(a){a&1&&(F(0,"th",14),O(1," Name"),G())},qZa=function(a,b){a&1&&(F(0,"td",15),O(1),G());a&2&&(a=b.$implicit,B(1),De(" ",a.name," "))},rZa=function(a){a&
1&&(F(0,"th",14),O(1," Type"),G())},sZa=function(a,b){a&1&&(F(0,"td",15),O(1),P(2,"toCustomFieldTypeDisplayValue"),G());a&2&&(a=b.$implicit,B(1),De(" ",Q(2,1,a.type)," "))},tZa=function(a){a&1&&(F(0,"th",14),O(1," Required"),G())},uZa=function(a,b){a&1&&(F(0,"td",15),O(1),G());a&2&&(a=b.$implicit,B(1),De(" ",a.required?"Yes":"No"," "))},vZa=function(a){a&1&&(F(0,"th",14),O(1," ID"),G())},wZa=function(a,b){a&1&&(F(0,"td",15),O(1),G());a&2&&(a=b.$implicit,B(1),De(" ",a.customFieldId," "))},xZa=function(a){a&
1&&H(0,"tr",16)},yZa=function(a){a&1&&H(0,"tr",17)},zZa=function(a){a&1&&(F(0,"div",18),O(1," There are no custom fields defined on this component. "),G())},CZa=function(a){if(a&1){var b=x();F(0,"div",19)(1,"div")(2,"button",20);J("click",function(){z(b);var c=K();return A(AZa(c))});O(3," Reorder fields ");G();F(4,"button",20);J("click",function(){z(b);var c=K();return A(BZa(c))});O(5," Reset ordering ");G()()()}a&2&&(a=K(),B(2),C("disabled",0===a.fields.length),B(2),C("disabled","CUSTOMIZED"!==a.fieldOrdering))},
DZa=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K(),B(1),a=a.lineNumbers.length,De(" (",a+(1==a?" TODO":" TODOs"),") "))},FZa=function(a,b){if(a&1){var c=x();F(0,"li",5)(1,"a",6);J("click",function(){z(c);var d=K(2);return A(d.trackClick("lineNumber"))});O(2);G()()}a&2&&(a=b.$implicit,b=K(2),B(1),C("href",EZa(b,a),Md),B(1),Ee(a))},GZa=function(a){a&1&&(F(0,"span"),O(1," ("),F(2,"ul",3),M(3,FZa,3,2,"li",4),G(),O(4,") "),G());a&2&&(a=K(),B(3),C("ngForOf",a.lineNumbers))},HZa=function(a){a&1&&H(0,
"div",2)},IZa=function(a){a&1&&(qe(0),ye(1),re())},JZa=function(a){a&1&&(Nc(),F(0,"svg",1),H(1,"path",2),G());a&2&&(a=K(),C("matTooltip",a.warning))},KZa=function(a){a&1&&ue(0)},NZa=function(a){if(a&1){var b=x();F(0,"div",1);J("keydown",function(c){z(b);var d=K();return A(d.processKeydown(c))});F(1,"div",2);M(2,KZa,1,0,"ng-container",3);G();F(3,"div",4)(4,"button",5);J("click",function(){z(b);var c=K();return A(LZa(c))});O(5,"Save");G();F(6,"button",6);J("click",function(){z(b);var c=K();return A(MZa(c))});
O(7,"Cancel");G()()()}a&2&&(a=K(),C("cdkTrapFocusAutoCapture",!0),B(2),C("ngTemplateOutlet",a.editorTemplate))},OZa=function(a){a&1&&ue(0)},QZa=function(a){a&1&&(qe(0),M(1,OZa,1,0,"ng-container",8),re());a&2&&(a=K(),B(1),C("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",Ie(2,PZa,a.value)))},RZa=function(a){a&1&&O(0);a&2&&(a=K(),Ee(null!=a.value?a.value:"--"))},SZa=function(a){a&1&&(Nc(),F(0,"svg",9),H(1,"path",10),G())},TZa=function(a){if(a&1){var b=x();F(0,"input",11);J("ngModelChange",
function(c){z(b);var d=K();return A(d.editingValue=c)});G()}a&2&&(a=K(),C("ngModel",a.editingValue))},UZa=function(a){return null!=a?Number(a):void 0},VZa=function(a){if(a&1){var b=x();qe(0);F(1,"onedev-numeric-field",7);J("valueChange",function(d){z(b);var e=K(2);e.selectedNumericEstimate=d;if(null==d)e.effortChange.emit(void 0);else{e=e.effortChange;var f=e.emit,h=new ul;d=vl(h,2,String(d));f.call(e,d)}return A()});G();re()}if(a&2){a=K(2);var c=Ce(2);B(1);C("value",a.selectedNumericEstimate)("valueTemplate",
c)}},WZa=function(a){a&1&&(qe(0),O(1),re());a&2&&(a=K().$implicit,B(1),De(" ",a.getLabel()," "))},XZa=function(a){a&1&&O(0," -- ")},YZa=function(a,b){a&1&&(M(0,WZa,2,1,"ng-container",10),M(1,XZa,1,0,"ng-template",null,11,Jf));if(a&2){a=b.$implicit;var c=Ce(2);C("ngIf",a)("ngIfElse",c)}},$Za=function(a){if(a&1){var b=x();qe(0);F(1,"onedev-single-select",8);J("valueChange",function(e){z(b);var f=K(2);return A(f.selectOption(e))});G();M(2,YZa,3,2,"ng-template",null,9,Jf);re()}if(a&2){var c=Ce(3);a=K(2);
var d;B(1);C("value",a.selectedOption)("options",null!==(d=null==(d=Al(a.effortSpec))?null:d.getOptionsList())&&void 0!==d?d:He(4,ZZa))("includeEmptyOption",!0)("optionTemplate",c)}},a_a=function(a){a&1&&(qe(0),O(1),re());a&2&&(a=K(2),B(1),De(" ",null==a.effort?null:V(a.effort,2)," "))},b_a=function(a){a&1&&(F(0,"onedev-edit-field")(1,"onedev-field-label",2),O(2),G(),F(3,"onedev-field-value",3),qe(4,4),M(5,VZa,2,2,"ng-container",5),M(6,$Za,4,5,"ng-container",5),M(7,a_a,2,1,"ng-container",6),re(),
G()());a&2&&(a=K(),B(1),C("thinking",a.thinking)("warning",a.isCompatibleValue?"":"Update estimate to resolve this warning")("labelTooltip",a.fieldName),B(1),De(" ",a.fieldName," "),B(1),C("thinking",a.thinking),B(1),C("ngSwitch",a.fieldType),B(1),C("ngSwitchCase","NUMERIC"),B(1),C("ngSwitchCase","DROPDOWN"))},c_a=function(a){a&1&&(qe(0),O(1),re());a&2&&(a=K(2),B(1),De(" ",null==a.effort?null:V(a.effort,2)," "))},d_a=function(a){a&1&&O(0);a&2&&(a=K().$implicit,De(" ",null!=a?a:"--"," "))},e_a=function(a,
b){a&1&&(M(0,c_a,2,1,"ng-container",10),M(1,d_a,1,1,"ng-template",null,12,Jf));if(a&2){a=b.$implicit;var c=Ce(2);b=K();C("ngIf",b.isNaN(a))("ngIfElse",c)}},f_a=function(a){if(a&1){var b=x();F(0,"div",7)(1,"label",8);O(2,"Issue email");G();F(3,"input",20,21);J("focus",function(){z(b);var d=Ce(4);return A(d.select())});G();F(5,"button",22);J("click",function(){z(b);var d=Ce(4),e=K();return A(Hs(e,d))});H(6,"mat-icon",12);G()()}if(a&2){var c=Ce(4);a=K();B(1);C("htmlFor",c.id);B(2);ge("value",a.getIssueEmail())}},
g_a=function(a){if(a&1){var b=x();F(0,"div",7)(1,"label",8);O(2,"TODO comment");G();F(3,"input",23,24);J("focus",function(){z(b);var d=Ce(4);return A(d.select())});G();F(5,"button",25);J("click",function(){z(b);var d=Ce(4),e=K();return A(Hs(e,d))});H(6,"mat-icon",12);G()()}if(a&2){var c=Ce(4);a=K();B(1);C("htmlFor",c.id);B(2);ge("value",a.getTodoComment())}},h_a=function(a){a&1&&(F(0,"span"),H(1,"b-formatted-date-time",18),G());a&2&&(a=K(2),B(1),C("timestamp",a.sloSnoozeUntil))},i_a=function(a){a&
1&&(F(0,"span"),H(1,"b-formatted-date-time",18),G());a&2&&(a=K(2),B(1),C("timestamp",a.issueCreationTimestamp/1E3))},k_a=function(a){if(a&1){var b=x();F(0,"div",12);O(1," SLO starts on: ");F(2,"div",14)(3,"a",15);J("click",function(){z(b);var c=K().snoozeDateTimePicker;j_a(c);c.isPickerVisible=!0;c.cdr.detectChanges();return A()});M(4,h_a,2,1,"span",16);M(5,i_a,2,1,"span",16);G();F(6,"a",17);H(7,"b-icon",3);G()()()}a&2&&(a=K(),B(4),C("ngIf",a.sloSnoozeUntil),B(1),C("ngIf",!a.sloSnoozeUntil),B(2),
C("name","help-outline")("size","small"))},l_a=function(a,b){if(a&1){var c=x();F(0,"a",20);J("click",function(){z(c);var d=K(2);return A(d.trackOpenSlo())});O(1);G()}a&2&&(a=b.ngIf,b=K(2),ge("href",b.editSloLink,Md),B(1),De(" ",a.getName()," "))},m_a=function(a){a&1&&(F(0,"div",12),O(1," SLO definition: "),M(2,l_a,2,2,"a",19),P(3,"async"),G());a&2&&(a=K(),B(2),C("ngIf",Q(3,1,a.slo$)))},n_a=function(a){if(a&1){var b=x();F(0,"a",21);J("click",function(){z(b);K();Un(io.MANAGE_COMPONENT,"open","fromIssueSloBox");
return A()});O(1,"Select an SLO");G()}a&2&&(a=K(),ge("href",a.componentSloLink,Md))},o_a=function(a){a&1&&(F(0,"a",10),O(1," Create Component "),G());a&2&&(a=K(),C("href",a.createComponentPath,Md))},p_a=function(a){if(a&1){var b=x();F(0,"xap-dialog-layout",11)(1,"xap-dialog-layout-content")(2,"b-team-component-picker",12);J("selectedComponentChange",function(c){z(b);var d=K();return A(d.viewComponent(null!==c&&void 0!==c?c:null,"openFromSearch"))});G()()()}a&2&&(a=K(),B(2),C("includeArchived",a.includeArchived)("placeholder",
"Choose Component to navigate to that component")("shouldFocus",!0)("isRequired",!1))},s_a=function(a){if(a&1){var b=x();F(0,"div",13)(1,"b-slide-toggle",14);J("modelChange",function(c){z(b);var d=K();d.includeArchived=c;c=q_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&&r_a(d,e,c);return A()});G()()}a&2&&(a=K(),B(1),C("model",a.includeArchived)("tooltip",a.includeArchived?
"Show archived components.":"Hide archived components."))},t_a=function(a){a&1&&(F(0,"div",15),H(1,"b-spinner",16),G())},u_a=function(a){a&1&&(F(0,"p",3),O(1),G());a&2&&(a=K(),B(1),Ee(a.packageMentionSet.packageName))},v_a=function(a,b){a&1&&(F(0,"li"),H(1,"b-file-mention",4),G());a&2&&(a=b.$implicit,b=K(),B(1),C("issueId",b.issueId)("packageName",b.packageMentionSet.packageName)("filename",a.filename)("lineNumbers",a.lineNumber)("changeNumber",a.changeNumber))},y_a=function(a){a&1&&(F(0,"span")(1,
"b"),O(2,"Retention:"),G(),O(3),F(4,"b"),O(5),G(),O(6),F(7,"b"),O(8),G(),O(9," on "),F(10,"b"),O(11),P(12,"date"),G(),O(13,". "),G());a&2&&(a=K(3),B(3),De(" This ",a.contentType," has a retention period of "),B(2),Ee(a.getRetentionPeriod()),B(1),De(" from the last modification of the issue. Currently, the ",a.contentType," is scheduled for deletion in "),B(2),Ee(w_a(x_a(a).getTime())),B(3),Ee(Me(12,5,x_a(a),"longDate")))},z_a=function(a){a&1&&(O(0),F(1,"b"),O(2,"overridden"),G(),O(3," retention period set to match the issue retention period. "));
a&2&&(a=K(3),De(" The ",a.contentType," has an "))},A_a=function(a){a&1&&(F(0,"p",8),M(1,y_a,14,8,"span",9),M(2,z_a,4,1,"ng-template",10),G());if(a&2){a=K(2);var b=Ce(7);C("ngSwitch",a.retention);B(1);C("ngIf",!(a.retentionState&&!a.retentionState.scheduledDeletionTime))("ngIfElse",b);B(1);C("ngSwitchCase",a.retentionModel.INDEFINITE)}},B_a=function(a){a&1&&(F(0,"div",5)(1,"p")(2,"b"),O(3,"Restricted Access:"),G(),O(4),F(5,"a",6),O(6," Learn More "),G()(),M(7,A_a,3,4,"p",7),G());a&2&&(a=K(),B(4),
De(" This ",a.contentType," is only available to users with the appropriate permissions. "),B(1),ge("href",a.documentationLinks.getRestrictedAccessHelpLink(),Md),B(2),C("ngIf",a.retentionState))},C_a=function(a){a&1&&(F(0,"b"),O(1,"Retention:"),G(),O(2));a&2&&(a=K(),B(2),De(" This ",a.contentType," has an indefinite retention period. "))},D_a=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K(),B(1),De("Retain ",a.resource," as long as issue?"))},E_a=function(a){a&1&&(F(0,"span"),O(1,"Apply component retention settings?"),
G())},F_a=function(a){a&1&&(F(0,"span")(1,"p"),O(2),G(),F(3,"p")(4,"b"),O(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."),G(),H(6,"br"),O(7," Before selecting this option, you should make sure that Legal and Privacy have approved this non-standard retention period."),G()());a&2&&(a=K(),B(2),De("Are you sure you want to override any component retention settings, and retain this ",a.resource," as long as issue?"))},
G_a=function(a){a&1&&(F(0,"span")(1,"p"),O(2),G()());a&2&&(a=K(),B(2),Fe("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."))},H_a=function(a){if(a&1){var b=x();F(0,"mat-checkbox",9);J("ngModelChange",function(c){z(b);var d=K();return A(d.acknowledgeToMatchIssueRetention=c)});O(1," I acknowledge ");G()}a&2&&(a=K(),C("ngModel",a.acknowledgeToMatchIssueRetention))},
I_a=function(a){a&1&&(F(0,"div",3),H(1,"b-spinner"),F(2,"span"),O(3,"Initializing query builder..."),G()())},J_a=function(a){a&1&&(F(0,"div",7),H(1,"mat-icon",8),F(2,"p"),O(3," The query is too complex to show in the query builder. You can still perform the search or save the search. "),G()())},K_a=function(a){a&1&&(F(0,"div"),O(1," We cannot understand your query because it seems to be incorrect (syntactically). Make sure all parentheses are balanced and all labels have values. "),G())},L_a=function(a){a&
1&&(F(0,"div",4),M(1,J_a,4,0,"div",5),M(2,K_a,2,0,"div",6),G());a&2&&(a=K(),B(1),C("ngIf","NOT_REPRESENTABLE"===(null==a.advancedSearchCtrl?null:a.advancedSearchCtrl.getState())),B(1),C("ngIf","SYNTAX_ERROR"===(null==a.advancedSearchCtrl?null:a.advancedSearchCtrl.getState())))},M_a=function(a){a&1&&(F(0,"div",4),O(1," We encountered a problem while retrieving the interpretation of the search query from the server. Please try again. "),G())},N_a=function(a){a&1&&(F(0,"span"),O(1),H(2,"span",16),G());
a&2&&(a=K(2).$implicit,B(1),De(" ",a.diff.oldValue," "))},O_a=function(a){a&1&&(F(0,"span")(1,"label"),O(2),G(),M(3,N_a,3,1,"span",15),O(4),G());a&2&&(a=K().$implicit,B(2),De("",a.fieldName,":"),B(1),C("ngIf",a.diff.oldValue),B(1),De(" ",a.diff.newValue," "))},P_a=function(a,b){a&1&&(F(0,"div")(1,"label"),O(2),G(),O(3),G());a&2&&(a=b.$implicit,b=K(3).$implicit,B(2),De("-",b.fieldName,":"),B(1),De(" ",a," "))},Q_a=function(a){a&1&&(qe(0),M(1,P_a,4,2,"div",17),re());a&2&&(a=K(2).$implicit,B(1),C("ngForOf",
a.diff.removed))},R_a=function(a,b){a&1&&(F(0,"div")(1,"label"),O(2),G(),O(3),G());a&2&&(a=b.$implicit,b=K(3).$implicit,B(2),De("+",b.fieldName,":"),B(1),De(" ",a," "))},S_a=function(a){a&1&&(qe(0),M(1,R_a,4,2,"div",17),re());a&2&&(a=K(2).$implicit,B(1),C("ngForOf",a.diff.added))},T_a=function(a){a&1&&(F(0,"div"),M(1,Q_a,2,1,"ng-container",15),M(2,S_a,2,1,"ng-container",15),G());a&2&&(a=K().$implicit,B(1),C("ngIf",a.diff.removed),B(1),C("ngIf",a.diff.added))},U_a=function(a,b){a&1&&(F(0,"div",14),
M(1,O_a,5,3,"span",15),M(2,T_a,3,2,"div",15),G());a&2&&(a=b.$implicit,B(1),C("ngIf","SINGLE_VALUE"==a.diffType),B(1),C("ngIf","COLLECTION"==a.diffType))},V_a=function(a,b){a&1&&(F(0,"li",5)(1,"div",6),H(2,"b-user-image",7),G(),F(3,"div",8)(4,"h4"),H(5,"b-user-display-name",9),F(6,"span",10),H(7,"b-formatted-date-time",11),G()(),F(8,"div",12),M(9,U_a,3,2,"div",13),G()()());a&2&&(a=b.$implicit,b=K(),B(2),C("email",b.userToDisplay(a.author)),B(3),C("email",b.userToDisplay(a.author)),B(2),C("timestamp",
a.timestamp),B(2),C("ngForOf",a.diffs))},W_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"}},Y_a=function(a){a&1&&(F(0,"a",25),O(1," Learn more "),G());a&2&&(K(),C("href",X_a(),Md))},Z_a=function(a){a&1&&ue(0)},a0a=function(a){a&1&&(qe(0),M(1,Z_a,1,0,"ng-container",
8),re());a&2&&(a=K(),B(1),C("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",Ie(2,$_a,a.value)))},b0a=function(a){a&1&&O(0);a&2&&(a=K(),Ee(a.value||"--"))},c0a=function(a){a&1&&(Nc(),F(0,"svg",9),H(1,"path",10),G());a&2&&(a=K(),le("centered",a.centerEditIcon))},d0a=function(a){if(a&1){var b=x();F(0,"textarea",14);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.editingValue=c)});G()}a&2&&(a=K(2),C("ngModel",a.editingValue)("cdkAutosizeMaxRows",a.multilineMaxLines))},e0a=function(a){if(a&
1){var b=x();F(0,"input",15);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.editingValue=c)});G()}a&2&&(a=K(2),C("ngModel",a.editingValue))},f0a=function(a){a&1&&(F(0,"div",11),M(1,d0a,1,2,"textarea",12),M(2,e0a,1,1,"ng-template",null,13,Jf),G());if(a&2){var b=Ce(3);a=K();B(1);C("ngIf",a.allowMultipleLines)("ngIfElse",b)}},g0a=function(){},h0a=function(a){a&1&&H(0,"span",2);a&2&&(a=K(),C("@indicatorRotate",a._getExpandedState()))},i0a=function(a){if(a&1){var b=x();F(0,"b-hotlist-picker",
24);J("onApply",function(c){z(b);var d=K();return A(d.handleHotlistPickerSave(c))})("onLoad",function(c){z(b);var d=K();return A(d.loadHotlist(c))})("onCreate",function(c){z(b);var d=K();return A(d.createHotlist(c))});G()}a&2&&(a=K(),C("selectedHotlistIds",a.selectedHotlistIds)("choices",a.hotlists))},l0a=function(a){a&1&&(F(0,"div",25),H(1,"b-icon",26),F(2,"span"),O(3),G(),F(4,"a",27),O(5,"View access settings"),G()());a&2&&(a=K(),C("ngClass",Je(5,j0a,Is(a),Js(a))),B(1),C("name","alert")("size",
"small"),B(2),De("",k0a(a),"\u00a0"),B(1),C("href",a.selectedComponent?a.paths.manageComponent(a.selectedComponent.componentId,"access"):"",Md))},o0a=function(a){a&1&&(F(0,"div",30),O(1),G());a&2&&(a=K(2),B(1),De(" Error: The following required field(s) have not been filled: ",m0a(a).concat(n0a(a)).join(", ")," "))},p0a=function(a){a&1&&(F(0,"div",30),O(1),G());if(a&2){a=K(2);B(1);var b=[];a.isBlockedByIssueIdValid||b.push('"Blocked by"');a.isBlockingIssueIdValid||b.push('"Blocking"');a.isParentIssueIdsValid||
b.push('"Parents"');De(" 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"):""," ")}},q0a=function(a){a&1&&(F(0,"div",30),O(1," Error: There is at least one upload ongoing. Please cancel or wait for it to be finished. "),G())},r0a=function(a){a&1&&(F(0,"div",28),M(1,o0a,2,1,"div",29),M(2,p0a,2,1,"div",29),M(3,q0a,2,0,"div",29),G());a&2&&(a=K(),B(1),C("ngIf",0!==m0a(a).length||0!==n0a(a).length),
B(1),C("ngIf",!a.isBlockedByIssueIdValid||!a.isBlockingIssueIdValid||!a.isParentIssueIdsValid),B(1),C("ngIf",Ks(a.comment)))},s0a=function(a,b){if(a&1){var c=x();F(0,"div",33)(1,"b-hotlist-chip",34);J("removeHotlist",function(){var d=z(c).$implicit,e=K(2);return A(e.removeHotlist(d.hotlistId))});G()()}a&2&&(a=b.$implicit,B(1),C("hotlist",a))},t0a=function(a){a&1&&(F(0,"div",31),M(1,s0a,2,1,"div",32),G());a&2&&(a=K(),B(1),C("ngForOf",a.selectedHotlists))},u0a=function(a,b){if(a&1){var c=x();F(0,"button",
43);J("click",function(){var d=z(c).$implicit,e=K(2);e.selectedTemplate=d;e.getIssueTemplate();return A()});O(1);G()}a&2&&(a=b.$implicit,B(1),Ee(a.name))},v0a=function(a){if(a&1){var b=x();F(0,"button",43);J("click",function(){z(b);var c=K(2);c.selectedTemplate=c.availableExistingIssueTemplate;c.getIssueTemplate();return A()});O(1);G()}a&2&&(a=K(2),B(1),Ee(a.availableExistingIssueTemplate.name))},w0a=function(a){a&1&&(F(0,"div",35)(1,"div",14)(2,"label",36),O(3,"Template"),G()(),F(4,"button",37),
O(5),H(6,"b-icon",38),G(),F(7,"mat-menu",39,40),M(9,u0a,2,1,"button",41),M(10,v0a,2,1,"button",42),G()());if(a&2){var b=Ce(8);a=K();var c;B(4);C("matMenuTriggerFor",b);B(1);Ee(null!==(c=null==a.selectedTemplate?null:a.selectedTemplate.name)&&void 0!==c?c:"");B(2);C("overlapTrigger",!0);B(2);C("ngForOf",a.availablePredefinedTemplates);B(1);C("ngIf",a.availableExistingIssueTemplate)}},x0a=function(a){a&1&&(F(0,"div",44)(1,"div",30),O(2," You do not have permission to create issues in this component. "),
G()())},y0a=function(a){if(a&1){var b=x();F(0,"div",66)(1,"b-magic-box",67);J("headerChange",function(c){z(b);var d=K(3);return A(d.magicBoxHeader=c)});G()()}a&2&&(a=K(3),B(1),C("componentId",a.issue.componentId)("hideHeader",!0)("showInline",a.showRecentIssuesInline)("issueTitle",a.issue.title)("issue",a.issue)("customFieldMap",a.customFieldMap))},A0a=function(a){if(a&1){var b=x();F(0,"div",62)(1,"div",63)(2,"a",64);J("click",function(){z(b);var c=K(2);return A(z0a(c))})("keydown.enter",function(){z(b);
var c=K(2);return A(z0a(c))})("keydown.space",function(){z(b);var c=K(2);return A(z0a(c))});O(3);G()();M(4,y0a,2,6,"div",65);G()}a&2&&(a=K(2),B(3),Fe(" ",a.showRecentIssuesInline?"Hide":"View"," ",a.magicBoxHeader.toLowerCase()," "),B(1),C("ngIf",!a.showRecentIssuesInline&&a.issue.componentId))},B0a=function(a,b){if(a&1){var c=x();F(0,"button",71);J("click",function(){var d=z(c).$implicit,e=K(3);return A(e.setPriority(d.value))});O(1);G()}a&2&&(a=b.$implicit,B(1),Ee(a.displayText))},C0a=function(a){if(a&
1){var b=x();F(0,"div",35)(1,"div",14)(2,"label",68);O(3,"Priority");G()();F(4,"button",69);O(5);H(6,"b-icon",38);G();F(7,"mat-menu",39,70)(9,"button",71);J("click",function(){z(b);var d=K(2);return A(d.setPriority())});O(10,"--");G();M(11,B0a,2,1,"button",72);G()()}if(a&2){var c=Ce(8);a=K(2);B(4);C("matMenuTriggerFor",c);ge("aria-label","Priority, required"+(a.issue.priority?", "+a.issue.priority:""));B(1);De("",a.issue.priority?a.issue.priority:"--"," ");B(2);C("overlapTrigger",!0);B(4);C("ngForOf",
a.priorityChoices)}},E0a=function(a,b){if(a&1){var c=x();F(0,"button",76);J("click",function(){var d=z(c).$implicit,e=K(3);return A(D0a(e,d.value))});O(1);G()}a&2&&(a=b.$implicit,Ae("title",a.altText||""),B(1),Ee(a.displayText))},F0a=function(a){if(a&1){var b=x();F(0,"div",35)(1,"div",14)(2,"label",73);O(3,"Type");G()();F(4,"button",69);P(5,"enumToHuman");O(6);P(7,"enumToHuman");H(8,"b-icon",38);G();F(9,"mat-menu",39,74)(11,"button",71);J("click",function(){z(b);var d=K(2);return A(D0a(d))});O(12,
"--");G();M(13,E0a,2,2,"button",75);G()()}if(a&2){var c=Ce(10);a=K(2);B(4);C("matMenuTriggerFor",c);ge("aria-label","Type, required"+(a.issue.type?Q(5,5,", "+a.issue.type):""));B(2);De("",Q(7,7,a.issue.type||"--")," ");B(3);C("overlapTrigger",!0);B(4);C("ngForOf",a.issueTypeChoices)}},G0a=function(a){if(a&1){var b=x();F(0,"div",77)(1,"div",14)(2,"label",78);O(3,"Assignee");G()();F(4,"div",79)(5,"input",80);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.assigneeText=c)});G()()()}a&2&&(a=
K(2),B(5),C("ngModel",a.assigneeText)("bContactAutocomplete","SINGLE"))},I0a=function(a){if(a&1){var b=x();F(0,"div",81)(1,"div",14)(2,"label",82);O(3,"CC");G()();F(4,"div",79)(5,"input",83);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.ccsText=H0a(c))});G()()()}a&2&&(a=K(2),B(5),C("ngModel",Ls(a.ccsText))("bContactAutocomplete","MULTI"))},J0a=function(a,b){if(a&1){var c=x();F(0,"button",71);J("click",function(){var d=z(c).$implicit,e=K(3);return A(e.issue.severity=e.toIssueSeverity(d.value))});
O(1);G()}a&2&&(a=b.$implicit,B(1),Ee(a.displayText))},K0a=function(a){a&1&&(F(0,"span"),O(1,"*"),G())},L0a=function(a){a&1&&(F(0,"span"),O(1,"*"),G())},M0a=function(a){a&1&&(F(0,"span"),O(1,"*"),G())},N0a=function(a){if(a&1){var b=x();F(0,"div",91)(1,"div",14)(2,"label",109);O(3," Parents ");M(4,M0a,2,0,"span",20);G()();F(5,"input",110);J("ngModelChange",function(c){z(b);var d=K(3);d.parentIssueIds=Ms(d,c).map(Tn);d.isParentIssueIdsValid=d.ISSUE_ID_LIST_PATTERN.test(Ls(d.parentIssueIds));return A()});
G()()}a&2&&(a=K(3),B(4),C("ngIf",!a.isParentIssueIdsValid),B(1),C("ngModel",Ls(a.parentIssueIds)))},O0a=function(a){a&1&&(F(0,"span"),O(1,"*"),G())},P0a=function(a){if(a&1){var b=x();F(0,"div",91)(1,"div",14)(2,"label",111);O(3," Children ");M(4,O0a,2,0,"span",20);G()();F(5,"input",112);J("ngModelChange",function(c){z(b);var d=K(3);d.childrenIssueIds=Ms(d,c).map(Tn);d.isChildIssueIdsValid=d.ISSUE_ID_LIST_PATTERN.test(Ls(d.childrenIssueIds));return A()});G()()}a&2&&(a=K(3),B(4),C("ngIf",!a.isChildIssueIdsValid),
B(1),C("ngModel",Ls(a.childrenIssueIds)))},Q0a=function(a){if(a&1){var b=x();F(0,"onedev-text-field",116);J("valueChange",function(d){z(b);var e=K(2).$implicit,f=K(3);return A(f.setCustomFieldValue(e,d))});G()}if(a&2){a=K(2).$implicit;var c=K(3);ze("id","bv2-custom-field-",a.customFieldId,"");C("value",a.textValue);ge("required",c.isCustomFieldRequired(a))("aria-labelledby","bv2-custom-field-"+a.customFieldId+"-label")}},R0a=function(a){if(a&1){var b=x();F(0,"onedev-numeric-field",116);J("valueChange",
function(d){z(b);var e=K(2).$implicit,f=K(3);return A(f.setCustomFieldValue(e,d))});G()}if(a&2){a=K(2).$implicit;var c=K(3);ze("id","bv2-custom-field-",a.customFieldId,"");C("value",a.numericValue);ge("required",c.isCustomFieldRequired(a))("aria-labelledby","bv2-custom-field-"+a.customFieldId+"-label")}},S0a=function(a){if(a&1){var b=x();F(0,"div")(1,"bv2-input-date-picker",117);J("boundValueChange",function(d){z(b);var e=K(2).$implicit,f=K(3);return A(f.setCustomFieldValue(e,d))});G()()}if(a&2){a=
K(2).$implicit;var c=K(3);B(1);Ae("bv2AriaLabelledby","bv2-custom-field-"+a.customFieldId+"-label");C("boundValue",a.dateValue)("isRequired",c.isCustomFieldRequired(a))("bv2Id","bv2-custom-field-"+a.customFieldId)}},T0a=function(a){if(a&1){var b=x();F(0,"onedev-single-select",118);J("valueChange",function(d){z(b);var e=K(2).$implicit,f=K(3);return A(f.setCustomFieldValue(e,d))});G()}if(a&2){a=K(2).$implicit;var c=K(3);C("value",a.enumValue)("options",c.getCustomFieldAllowedValues(a))("includeEmptyOption",
!0);ge("aria-labelledby","bv2-custom-field-"+a.customFieldId+"-label")}},U0a=function(a,b){a&1&&(F(0,"div"),M(1,Q0a,1,4,"onedev-text-field",114),M(2,R0a,1,4,"onedev-numeric-field",114),M(3,S0a,2,4,"div",20),M(4,T0a,1,4,"onedev-single-select",115),G());a&2&&(a=b.ngIf,b=K(4),B(1),C("ngIf",a===b.FieldType.TEXT),B(1),C("ngIf",a===b.FieldType.NUMERIC),B(1),C("ngIf",a===b.FieldType.DATE),B(1),C("ngIf",a===b.FieldType.ENUM))},V0a=function(a,b){if(a&1){var c=x();F(0,"div")(1,"b-list-field",119);J("valuesChange",
function(e){z(c);var f=K().$implicit,h=K(3);return A(h.setCustomFieldValue(f,e.values))});G()()}if(a&2){a=b.ngIf;b=K().$implicit;var d=K(3);B(1);C("defaultLineCount",2)("type",a)("values",d.getListFieldValues(b))("enumChoices",d.customFieldAllowedValuesMap[b.customFieldId]||null)("truncate",!0);ge("aria-labelledby","bv2-custom-field-"+b.customFieldId+"-label")}},X0a=function(a,b){a&1&&(F(0,"div",91)(1,"div",14)(2,"label",113),O(3),G()(),M(4,U0a,5,4,"div",20),M(5,V0a,2,6,"div",20),G());if(a&2){a=b.$implicit;
b=K(3);B(2);ze("id","bv2-custom-field-",a.customFieldId,"-label");var c=b.customFieldMap[a.customFieldId];Ae("title",(c&&c.description?c.description:"Custom Field")+" [ID: "+a.customFieldId+"]");C("ngClass",Ie(7,W0a,b.isCustomFieldRequired(a)));var d=(c=b.customFieldMap[a.customFieldId])?c.name:"";c&&b.canEditIssuesInComponent&&b.customFieldMap[a.customFieldId].required&&(d+=", required field");ge("aria-label",d);B(1);De(" ",b.getCustomFieldName(a)," ");B(1);C("ngIf",b.getSingleEditFieldType(b.customFieldMap[a.customFieldId]));
B(1);C("ngIf",b.getListFieldType(b.customFieldMap[a.customFieldId]))}},Y0a=function(a){if(a&1){var b=x();F(0,"mat-expansion-panel",84)(1,"mat-expansion-panel-header")(2,"mat-panel-title");O(3," Advanced fields (Required fields marked with");F(4,"span",85);O(5,"*");G();O(6,") ");G()();F(7,"div",86)(8,"div",87)(9,"div",14)(10,"label",88);O(11," Severity ");G()();F(12,"button",89);O(13);H(14,"b-icon",38);G();F(15,"mat-menu",39,90);M(17,J0a,2,1,"button",72);G()();F(18,"div",91)(19,"div",14)(20,"label",
92);O(21," Found in ");G()();F(22,"input",93);J("ngModelChange",function(d){z(b);var e=K(2);return A(e.issue.foundInVersion=H0a(d))});G()();F(23,"div",94)(24,"div",14)(25,"label",95);O(26," In prod ");G()();F(27,"mat-slide-toggle",96);J("ngModelChange",function(d){z(b);var e=K(2);return A(e.issue.inProd=d)});G()();H(28,"div",55);F(29,"div",91)(30,"div",14)(31,"label",97);O(32," Reporter ");G()();F(33,"input",98);J("ngModelChange",function(d){z(b);var e=K(2);return A(e.reporterText=d)});G()();F(34,
"div",91)(35,"div",14)(36,"label",99);O(37," Verifier ");G()();F(38,"input",100);J("ngModelChange",function(d){z(b);var e=K(2);return A(e.verifierText=d)});G()();F(39,"div",91)(40,"div",14)(41,"label",101);O(42," Targeted to ");G()();F(43,"input",102);J("ngModelChange",function(d){z(b);var e=K(2);return A(e.issue.targetedToVersion=H0a(d))});G()();H(44,"div",55);F(45,"div",91)(46,"div",14)(47,"label",103);O(48," Blocked by ");M(49,K0a,2,0,"span",20);G()();F(50,"input",104);J("ngModelChange",function(d){z(b);
var e=K(2);e.issue.blockedByIssueId=Ms(e,d);e.isBlockedByIssueIdValid=e.ISSUE_ID_LIST_PATTERN.test(Ls(e.issue.blockedByIssueId));return A()});G()();F(51,"div",91)(52,"div",14)(53,"label",105);O(54," Blocking ");M(55,L0a,2,0,"span",20);G()();F(56,"input",106);J("ngModelChange",function(d){z(b);var e=K(2);e.issue.blockingIssueId=Ms(e,d);e.isBlockingIssueIdValid=e.ISSUE_ID_LIST_PATTERN.test(Ls(e.issue.blockingIssueId));return A()});G()();M(57,N0a,6,2,"div",107);M(58,P0a,6,2,"div",107);H(59,"div",55);
M(60,X0a,6,9,"div",108);G()()}if(a&2){var c=Ce(16);a=K(2);B(12);C("matMenuTriggerFor",c);ge("aria-label","Severity"+(a.issue.severity?", "+a.issue.severity:""));B(1);Ee(a.issue.severity);B(2);C("overlapTrigger",!0);B(2);C("ngForOf",a.severityChoices);B(5);C("ngModel",Ls(a.originalIssueCopy.foundInVersion));B(5);C("ngModel",a.issue.inProd);B(6);C("ngModel",a.reporterText)("bContactAutocomplete","SINGLE");B(5);C("ngModel",a.verifierText)("bContactAutocomplete","SINGLE");B(5);C("ngModel",Ls(a.originalIssueCopy.targetedToVersion));
B(6);C("ngIf",!a.isBlockedByIssueIdValid);B(1);C("ngModel",Ls(a.issue.blockedByIssueId));B(5);C("ngIf",!a.isBlockingIssueIdValid);B(1);C("ngModel",Ls(a.issue.blockingIssueId));B(1);C("ngIf",a.enableWtdmMvpUi&&!a.sessionIsExternal);B(1);C("ngIf",a.enableWtdmMvpUi&&!a.sessionIsExternal);B(2);C("ngForOf",a.issue.customField)}},Z0a=function(a){a&1&&(F(0,"div",25),H(1,"b-icon",26),F(2,"span"),O(3),G(),F(4,"a",27),O(5,"View access settings"),G()());a&2&&(a=K(2),C("ngClass",Je(5,j0a,Is(a),Js(a))),B(1),C("name",
"alert")("size","small"),B(2),De("",k0a(a),"\u00a0"),B(1),C("href",a.selectedComponent?a.paths.manageComponent(a.selectedComponent.componentId,"access"):"",Md))},b1a=function(a){if(a&1){var b=x();F(0,"div");M(1,A0a,5,3,"div",45);F(2,"div",12)(3,"div",13)(4,"div",14)(5,"label",46);O(6,"Title");G()();F(7,"div",47)(8,"input",48);J("ngModelChange",function(c){z(b);var d=K();return A(d.setTitle(c))});G()()();M(9,C0a,12,5,"div",18);M(10,F0a,14,9,"div",18);G();F(11,"div",12);M(12,G0a,6,2,"div",49);M(13,
I0a,6,2,"div",50);G();F(14,"div",51)(15,"div",12)(16,"div",13)(17,"div",14)(18,"label",52);O(19,"Description");G()();F(20,"b-comment-box",53);J("commentChange",function(c){z(b);var d=K();return A(d.comment=c)})("onChange",function(){z(b);var c=K();return A(c.saveCommentDraft())})("onSubmit",function(c){z(b);var d=K();return A($0a(d,!c))})("onRestrict",function(){z(b);var c=K();return A(c.showNewContentJudgementDialog())});H(21,"b-markdown-toggle",54);G()()();H(22,"div",55);F(23,"div",56);M(24,Y0a,
61,19,"mat-expansion-panel",57);G();M(25,Z0a,6,8,"div",9);F(26,"div",58)(27,"b-button",59);J("onAction",function(){z(b);var c=K();return A($0a(c,!0))});O(28," Create ");G();F(29,"b-button",60);J("onAction",function(){z(b);var c=K();return A($0a(c,!1))});O(30," Create & Start Another ");G();F(31,"b-button",61);J("onAction",function(){z(b);var c=K();c.draftStore.$window.sessionStorage.removeItem(xo(0));c.$route.reload();return A()});O(32," Discard ");G()()()()}a&2&&(a=K(),B(1),C("ngIf",a.selectedComponent),
B(7),C("ngModel",a.issue.title)("bFocus",a.newIssueStarted),B(1),C("ngIf",a.canEditIssuesInComponent),B(1),C("ngIf",a.canEditIssuesInComponent),B(2),C("ngIf",a.canEditIssuesInComponent),B(1),C("ngIf",a.canEditIssuesInComponent),B(7),C("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",Ie(23,a1a,Ks(a.comment))),B(1),C("initialValue",a.comment.formattingMode),B(3),C("ngIf",a.canEditIssuesInComponent),B(1),C("ngIf",Is(a)||Js(a)),B(2),C("disabled",a.isSaving||a.isNavigatingAway||!a.canCreateNewIssuesInComponent),B(2),C("disabled",a.isSaving||a.isNavigatingAway||!a.canCreateNewIssuesInComponent),B(2),C("disabled",a.isSaving||a.isNavigatingAway||!a.canCreateNewIssuesInComponent))},c1a=function(a,b){a&1&&(F(0,"h2",120),O(1,"This component has a default description"),
G(),F(2,"mat-dialog-content"),O(3," You have already entered a description, but the component you chose has a default description: "),F(4,"div",121),O(5),G()(),F(6,"mat-dialog-actions")(7,"button",122),O(8,"Use component description"),G(),F(9,"button",123),O(10,"Keep my description"),G()());a&2&&(a=b.$implicit,B(5),Ee(a),B(2),C("mat-dialog-close",!0))},d1a=function(a,b){b.assigneeText=Nl(a.assigneeUser);b.reporterText=Nl(a.reporterUser);b.verifierText=Nl(a.verifierUser);b.ccsText=Ol(a.ccUsers)},e1a=
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=Ul(a.assigneeText));null!=a.reporterText&&(b.reporterUser=Ul(a.reporterText));null!=a.verifierText&&(b.verifierUser=Ul(a.verifierText));if(a.ccsText){c=[];a=r(a.ccsText);for(var d=a.next();!d.done;d=a.next())(d=Ul(d.value))&&c.push(d);c&&(b.ccUsers=c)}},f1a=function(a){a=Object.assign({},a);return delete a.hotlistId,a},g1a=function(a){if(a&
1){var b=x();F(0,"b-star-toggle",12);J("starClicked",function(){z(b);var c=K(2);return A(c.toggleStar())});G()}a&2&&(a=K(2),C("starMessage","Star this bookmark group")("unStarMessage","Un-star this bookmark group")("starred",a.isStarred))},h1a=function(a){a&1&&H(0,"b-star-toggle",13);a&2&&C("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)},i1a=function(a){if(a&
1){var b=x();F(0,"div")(1,"div",7);M(2,g1a,1,3,"b-star-toggle",8);M(3,h1a,1,4,"b-star-toggle",9);F(4,"span",10);O(5);F(6,"span")(7,"button",11);J("click",function(){z(b);var c=K();return A(c.editBookmarkGroup())});G()()()()()}a&2&&(a=K(),B(2),C("ngIf",!a.isAdmin),B(1),C("ngIf",a.isAdmin),B(2),De("",a.bookmarkGroup.name," "))},l1a=function(a){if(a&1){var b=x();F(0,"b-saved-search-panel",17);J("focusedRowIndexChange",function(f){z(b);var h=K().$implicit,k=K();return A(j1a(k,h,f))})("selectionChange",
function(f){z(b);var h=K(2);return A(k1a(h,f))})("resultsLoaded",function(f){z(b);var h=K(2);return A(h.loadHotlists(f))});G()}if(a&2){var c=K();a=c.$implicit;var d=c.first;c=c.last;var e=K();C("panel",a)("isDashboardEditable",e.isAdmin)("focusedRowIndex",a.focusedRowIndex)("savedSearchId",a.resourceId)("first",d)("last",c)}},m1a=function(a){if(a&1){var b=x();F(0,"b-hotlist-panel",18);J("focusedRowIndexChange",function(f){z(b);var h=K().$implicit,k=K();return A(j1a(k,h,f))})("selectionChange",function(f){z(b);
var h=K(2);return A(k1a(h,f))})("resultsLoaded",function(f){z(b);var h=K(2);return A(h.loadHotlists(f))});G()}if(a&2){var c=K();a=c.$implicit;var d=c.first;c=c.last;var e=K();C("panel",a)("isDashboardEditable",e.isAdmin)("focusedRowIndex",a.focusedRowIndex)("hotlistId",a.resourceId)("first",d)("last",c)}},n1a=function(a,b){a&1&&(F(0,"div",14),M(1,l1a,1,6,"b-saved-search-panel",15),M(2,m1a,1,6,"b-hotlist-panel",16),G());a&2&&(C("ngSwitch",b.$implicit.type),B(1),C("ngSwitchCase","SAVED_SEARCH"),B(1),
C("ngSwitchCase","HOTLIST"))},o1a=function(a){if(a&1){var b=x();F(0,"button",8);J("click",function(){z(b);var c=K();return A(c.archive())});O(1," Archive bookmark group ");G()}a&2&&(a=K(),C("disabled",a.hasUnsavedChanges()||a.isSaving()))},p1a=function(a){if(a&1){var b=x();F(0,"button",8);J("click",function(){z(b);var c=K();return A(c.unarchive())});O(1," Unarchive bookmark group ");G()}a&2&&(a=K(),C("disabled",a.hasUnsavedChanges()||a.isSaving()))},q1a=function(a){a&1&&(F(0,"span",32),O(1," (archived) "),
G())},s1a=function(a,b){if(a&1){var c=x();F(0,"div")(1,"b-hotlist-chip-smart",48);J("removeHotlist",function(){var d=z(c).ngIf,e=K(4);return A(r1a(e,d))});G()()}a&2&&(a=b.ngIf,B(1),C("id",a))},u1a=function(a,b){if(a&1){var c=x();F(0,"div",49)(1,"a",50);O(2);G();F(3,"span",51);J("click",function(){var e=z(c).ngIf,f=K(4);return A(t1a(f,e))})("keydown.enter",function(){var e=z(c).ngIf,f=K(4);return A(t1a(f,e))})("keydown.space",function(){var e=z(c).ngIf,f=K(4);return A(t1a(f,e))});O(4," \u00d7 ");G()()}if(a&
2){a=b.ngIf;b=K().$implicit;var d=K(3);B(1);C("href",d.paths.viewSavedSearch(a),Md)("matTooltip","Go to saved search: "+d.getDisplayName(b));B(1);De(" S: ",d.getDisplayName(b)," ");B(1);C("matTooltip","Remove item: "+d.getDisplayName(b));ge("aria-label","Remove item: "+d.getDisplayName(b))}},v1a=function(a){a&1&&(F(0,"span",52),O(1,"<None>"),G())},w1a=function(a,b){a&1&&(F(0,"div",45),M(1,s1a,2,1,"div",7),M(2,u1a,5,5,"div",46),M(3,v1a,2,0,"span",47),G());if(a&2){a=b.$implicit;b=K(3);B(1);var c;var d=
"HOTLIST"===a.resourceType?null==(c=a.hotlistId)?void 0:c.toString():void 0;C("ngIf",d);B(1);C("ngIf","SAVED_SEARCH"===a.resourceType?a.savedSearchId:void 0);B(1);C("ngIf",!(null==b.bookmarkGroupUnderEdit.item?0:b.bookmarkGroupUnderEdit.item.length))}},y1a=function(a,b){if(a&1){var c=x();F(0,"button",61);J("click",function(){var d=z(c).$implicit,e=K(5);return A(x1a(e,d))});O(1);G()}a&2&&(a=b.$implicit,B(1),De("",a.name," "))},z1a=function(a){a&1&&M(0,y1a,2,1,"button",60);a&2&&(a=K(4),C("ngForOf",
a.savedSearchChoices))},A1a=function(a){a&1&&(F(0,"div",53)(1,"label",54),O(2,"Add from saved searches:"),G(),F(3,"button",55)(4,"span",56),O(5,"Select"),G(),H(6,"mat-icon",57),G(),F(7,"mat-menu",null,58),M(9,z1a,1,1,"ng-template",59),G()());if(a&2){var b=Ce(8);B(3);C("matMenuTriggerFor",b)}},F1a=function(a){if(a&1){var b=x();qe(0);F(1,"div",30)(2,"label",33)(3,"span",18);O(4,"Selected items");G()();F(5,"div",34,35);M(7,w1a,4,3,"div",36);G()();F(8,"div",37)(9,"div",38)(10,"label",39);O(11,"Add hotlist from favorites:");
G();F(12,"b-hotlist-picker",40);J("onApply",function(c){z(b);var d=K(2);return A(B1a(d,c))})("onCreate",function(c){z(b);var d=K(2);return A(C1a(d,c))})("onLoad",function(c){z(b);var d=K(2);return A(D1a(d,c))});G()();F(13,"div",41)(14,"label",42);O(15,"Add hotlist by query:");G();F(16,"b-hotlist-search",43);J("itemSelect",function(c){z(b);var d=K(2);"hotlistId"in c&&!d.selectedHotlistIds[0].includes(c.hotlistId)&&(E1a(d,c.hotlistId),d.bookmarkGroupUnderEdit.item.push({name:c.name,resourceType:"HOTLIST",
hotlistId:c.hotlistId}));return A()});G()();M(17,A1a,10,1,"div",44);G();re()}a&2&&(a=K(2),B(7),C("ngForOf",a.bookmarkGroupUnderEdit.item),B(5),C("selectedHotlistIds",a.selectedHotlistIds)("choices",a.userHotlists)("checkEditAcl",!1),B(4),C("showGroups",!1)("allowStarring",!1),B(1),C("ngIf",0<a.savedSearchChoices.length))},H1a=function(a){a&1&&(F(0,"span"),O(1),F(2,"a",65),O(3),G()());if(a&2){a=K().$implicit;var b=K(3);B(1);De(" Hotlist ",a.hotlistId,": ");B(1);C("href",G1a(b,a),Md);B(1);De(" ",a.name||
"(name not available)"," ")}},I1a=function(a){a&1&&(F(0,"span"),O(1),F(2,"a",65),O(3),G()());if(a&2){a=K().$implicit;var b=K(3);B(1);De(" Saved search ",a.savedSearchId,": ");B(1);C("href",G1a(b,a),Md);B(1);De(" ",a.name||"(name not available)"," ")}},J1a=function(a,b){a&1&&(F(0,"li"),M(1,H1a,4,3,"span",7),M(2,I1a,4,3,"span",7),G());a&2&&(a=b.$implicit,B(1),C("ngIf","HOTLIST"===a.resourceType),B(1),C("ngIf","SAVED_SEARCH"===a.resourceType))},K1a=function(a){a&1&&(F(0,"div",62)(1,"label")(2,"span",
18),O(3,"Items"),G()(),F(4,"div",63)(5,"ul"),M(6,J1a,3,2,"li",64),G()()());a&2&&(a=K(2),B(6),C("ngForOf",a.bookmarkGroup.item))},L1a=function(a){if(a&1){var b=x();F(0,"div",66)(1,"button",67);J("click",function(){z(b);var c=K(2);return A(c.saveMetadata())});O(2," Update ");G();F(3,"button",68);J("click",function(){z(b);var c=K(2);return A(c.revertMetadataChanges())});O(4," Revert changes ");G()()}a&2&&(a=K(2),B(1),C("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()))},M1a=function(a){if(a&1){var b=
x();F(0,"div",66)(1,"button",67);J("click",function(){z(b);var c=K(2);return A(c.saveAccessPolicy())});O(2," Update ");G();F(3,"button",68);J("click",function(){z(b);var c=K(2);return A(c.revertAccessPolicyChanges())});O(4," Revert changes ");G()()}a&2&&(a=K(2),B(1),C("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||!a.isAdminsFieldValid||!a.isReaderFieldValid))},P1a=function(a){if(a&1){var b=x();qe(0);F(1,"div",9)(2,"h2");O(3);G();M(4,q1a,2,0,"span",10);F(5,"a",11);O(6," (View Dashboard)");
G()();F(7,"mat-tab-group",12);J("selectedIndexChange",function(d){z(b);var e=K();return A(e.selectedTabIndex=d)})("selectedIndexChange",function(d){z(b);var e=K();return A(e.tabChange(d))});F(8,"mat-tab",13)(9,"div",14);H(10,"b-error-banner",15);F(11,"div",16)(12,"label",17)(13,"span",18);O(14,"Name");G()();F(15,"input",19,20);J("ngModelChange",function(d){z(b);var e=K();return A(e.bookmarkGroupUnderEdit.name=d)});G()();F(17,"div",16)(18,"label",21)(19,"span",18);O(20,"Description");G()();F(21,"textarea",
22);J("ngModelChange",function(d){z(b);var e=K();return A(e.bookmarkGroupUnderEdit.description=d)});G()();M(22,F1a,18,7,"ng-container",23);M(23,K1a,7,1,"ng-template",null,24,Jf);M(25,L1a,5,1,"div",25);G()();F(26,"mat-tab",26)(27,"div",14)(28,"div",16)(29,"label")(30,"span",18);O(31,"Admins");G();F(32,"p",27);O(33," Edit access controls, edit name and description, reorder items, add/remove items ");G()();F(34,"b-multi-user-input",28);J("usersChange",function(d){z(b);var e=K();return A(e.accessPolicyUnderEdit.admins=
d)})("isValid",function(d){z(b);var e=K();return A(e.isAdminsFieldValid=d)});G()();F(35,"div",16)(36,"label")(37,"span",18);O(38,"View only");G();F(39,"p",27);O(40," View the bookmark group ");G();F(41,"b-multi-user-input",29);J("usersChange",function(d){z(b);var e=K();return A(e.accessPolicyUnderEdit.readers=d)})("isValid",function(d){z(b);var e=K();return A(e.isReaderFieldValid=d)});G()()();F(42,"div",30);O(43," See ");F(44,"a",31);O(45,"access control documentation");G();O(46," for an explanation of the settings. ");
G();M(47,M1a,5,1,"div",25);G()()();re()}if(a&2){var c=Ce(24);a=K();B(3);Fe(" Bookmark group ",a.bookmarkGroup.bookmarkGroupId,": ",a.bookmarkGroup.name," ");B(1);C("ngIf",a.isArchived());B(1);C("href",a.paths.dashboard(a.bookmarkGroup.bookmarkGroupId),Md);B(2);C("selectedIndex",a.selectedTabIndex);B(3);C("error",a.error);B(1);C("ngClass",Ie(28,Ns,a.isEditDisabled()));B(4);C("ngModel",a.bookmarkGroupUnderEdit.name)("disabled",a.isEditDisabled());B(2);C("ngClass",Ie(30,Ns,a.isEditDisabled()));B(4);
C("ngModel",a.bookmarkGroupUnderEdit.description)("disabled",a.isEditDisabled());B(1);C("ngIf",a.isAdmin)("ngIfElse",c);B(3);C("ngIf",a.isAdmin);B(3);C("ngClass",Ie(32,Ns,a.isEditDisabled()));B(6);le("disabled",a.isEditDisabled());C("users",a.accessPolicyUnderEdit.admins);B(1);C("ngClass",Ie(34,Ns,a.isEditDisabled()));B(6);le("disabled",a.isEditDisabled());C("users",a.accessPolicyUnderEdit.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Ie(38,N1a,Ie(36,O1a,a.accessPolicyUnderEdit.admins)));
B(3);C("href",Fo(a.documentationLinks)+"#bookmark-groups",Md);B(3);C("ngIf",a.isAdmin)}},Q1a=function(a,b){if(a&&a.length)return a.map(b)},R1a=function(a){return{filename:a.getFilename(),lineNumber:jb(a,2),changeNumber:ej(a,3)}},S1a=function(a){return{packageName:V(a,1),fileMentionSet:Q1a(rb(a,Os,2),R1a)}},T1a=function(a){return{totalMentions:ej(a,1),truncated:W(a,2),packageMentionSet:Q1a(rb(a,Ps,3),S1a)}},U1a=function(a){a&1&&H(0,"b-live-preview",10);a&2&&(a=K(),C("comment",a.newComment.text)("issueId",
a.origComment.issueId)("audience",a.origComment.audience)("formattingMode",a.newComment.formattingMode))},V1a=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},W1a=function(a){if(a&1){var b=x();F(0,"b-insights-graph-menu",28);J("openSidebar",function(c){z(b);K(4).issueInsightsSidebarService.openSidebar(c.panel);
return A()});G()}a&2&&(a=K().ngIf,C("availablePanels",a))},X1a=function(a){a&1&&(F(0,"onedev-feature-tooltip-controller")(1,"onedev-feature-tooltip",29)(2,"p",30),O(3,"Incident Context"),G(),O(4," Check incident context to learn more about this alert. "),G()());a&2&&(a=K(4),B(1),C("customPositions",a.insightsFeatureTooltipPositions))},Y1a=function(a,b){a&1&&(qe(0),M(1,W1a,1,1,"b-insights-graph-menu",27),P(2,"async"),M(3,X1a,5,1,"onedev-feature-tooltip-controller",12),re());a&2&&(a=b.ngIf,b=K(3),B(1),
C("ngIf",Q(2,2,b.issueInsightsSidebarService.shouldShowInsightsGraphMenu$)),B(2),C("ngIf",a.has("incidents")))},Z1a=function(a){if(a&1){var b=x();F(0,"g3c-widget-entry",31);J("userActionPerformed",function(c){z(b);var d=K(3);eo(d.analytics,io.G3C_WIDGET,c);return A()});G()}a&2&&(a=K(3),C("customWidgetClass","gmat-button medium")("taskId","b/"+a.issueId)("featureHighlightingEnabled",a.enableG3cFeatureHighlighting))},a2a=function(a){if(a&1){var b=x();F(0,"div",17)(1,"button",18);J("onHotkey",function(){z(b);
K(2).refreshMonitor.refreshRequest.next();return A()})("click",function(){z(b);K(2).refreshMonitor.refreshRequest.next();return A()});H(2,"mat-icon",19);G();H(3,"span",20);F(4,"div",21)(5,"edit-issue-controls",22);J("onHotkey",function(){z(b);var f=K(2);f.savingState.get("status")||(f.issue.duplicateOfIssueId?f.clearCanonicalIssue():$1a(f.issueMarkAsDuplicateDialogService,f.issueId));return A()})("onVote",function(){z(b);var f=K(2);return A(f.onVote())})("quickAction",function(f){z(b);var h=K(2);
return A(h.performQuickAction("appbar",f))})("markAsDuplicate",function(){z(b);var f=K(2);return A($1a(f.issueMarkAsDuplicateDialogService,f.issueId))})("clearCanonical",function(){z(b);var f=K(2);return A(f.clearCanonicalIssue())});P(6,"async");P(7,"async");P(8,"async");P(9,"async");G()();F(10,"b-hotlist-picker",23,24);J("onHotkey",function(){z(b);var f=Ce(11);return A(f.open())})("onApply",function(f){z(b);var h=K(2);return A(h.handleHotlistPickerSave(f))})("onCreate",function(f){z(b);var h=K(2);
return A(h.createHotlist(f))})("onLoad",function(f){z(b);var h=K(2);return A(h.loadHotlist(f))});G();F(12,"b-notification-menu",25);J("subscriptionChange",function(f){z(b);var h=K(2);return A(h.updateSubscription(f))})("showNotificationSettings",function(f){z(b);var h=K(2);return A(h.showNotificationSettings(f))});G();M(13,Y1a,4,4,"ng-container",12);P(14,"async");M(15,Z1a,1,3,"g3c-widget-entry",26);G()}if(a&2){a=K(2);var c,d,e;B(1);C("hotkey",a.HOTKEYS.REFRESH);B(4);C("issueId",a.issueId)("hasAclToEdit",
!!Q(6,18,a.issuePermissionService.hasAclToEdit$))("hasAclToComment",!!Q(7,20,a.issuePermissionService.hasAclToComment$))("issueStatusQuickAction",null!==(c=Q(8,22,a.issueStatusQuickAction$))&&void 0!==c?c:void 0)("statusIsSaving",!!Q(9,24,Qs(a.savingState.propertiesBeingSaved,Tn("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);C("choices",
a.hotlists)("hotkey",a.HOTKEYS.OPEN_HOTLIST_PICKER)("selectedHotlistIds",a.selectedHotlistIds);B(2);C("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);C("ngIf",Q(14,26,a.issueInsightsSidebarService.availablePanels$));B(2);C("ngIf",a.enableG3cWidgetIntegration&&a.frontendIsInternal)}},b2a=function(a){a&1&&(F(0,"span",33)(1,"strong"),O(2),G(),O(3,"\u00a0of\u00a0"),F(4,
"strong"),O(5),P(6,"async"),G()());if(a&2){a=K().ngIf;var b=K(2);B(2);Ee(a);B(3);Ee(Q(6,2,b.currentSearchResults.totalText$))}},c2a=function(a,b){a&1&&(qe(0),M(1,b2a,7,4,"span",32),re());a&2&&(a=b.ngIf,B(1),C("ngIf",-1!==a))},d2a=function(a){if(a&1){var b=x();F(0,"div",5)(1,"div",6)(2,"div",7)(3,"button",8);J("onHotkey",function(){z(b);var d=K();return A(Rs(d.currentSearchResults))})("click",function(){z(b);var d=K();return A(Rs(d.currentSearchResults))});P(4,"async");P(5,"async");H(6,"mat-icon",
9);G();M(7,a2a,16,28,"div",10);G();F(8,"div",11);M(9,c2a,2,1,"ng-container",12);P(10,"async");F(11,"button",13);J("onHotkey",function(){z(b);var d=K();return A(Ss(d.currentSearchResults))})("click",function(){z(b);var d=K();return A(Ss(d.currentSearchResults))});P(12,"async");H(13,"mat-icon",14);G();F(14,"button",15);J("onHotkey",function(){z(b);var d=K();return A(Ts(d.currentSearchResults))})("click",function(){z(b);var d=K();return A(Ts(d.currentSearchResults))});P(15,"async");H(16,"mat-icon",16);
G()()()()}if(a&2){a=K();var c;B(3);C("hotkey",a.HOTKEYS.GO_UP_TO_LIST)("matTooltip",null!==(c=Q(4,9,a.currentSearchResults.backNavigationLabel$))&&void 0!==c?c:"");ge("aria-label",Q(5,11,a.currentSearchResults.backNavigationLabel$));B(4);C("ngIf",a.issue);B(2);C("ngIf",Q(10,13,a.currentSearchResults.issueIndex$));B(2);C("hotkey",a.HOTKEYS.GO_TO_PREVIOUS_ISSUE)("disabled",!Q(12,15,a.currentSearchResults.hasPreviousIssue$));B(3);C("hotkey",a.HOTKEYS.GO_TO_NEXT_ISSUE)("disabled",!Q(15,17,a.currentSearchResults.hasNextIssue$))}},
e2a=function(a){a&1&&(F(0,"div",34),H(1,"b-access-denied-metadata",35),G());a&2&&(a=K(),B(1),C("issueMetadata",a.issueMetadata))},f2a=function(a){a&1&&(F(0,"a",63),O(1,"Learn more"),G())},g2a=function(a){if(a&1){var b=x();F(0,"b-button",64);J("onAction",function(){z(b);var c=K(3);return A(c.editIssueService.unarchive(c.issueIdString))});O(1,"Unarchive");G()}},h2a=function(a){a&1&&(F(0,"b-callout",60)(1,"b-callout-body"),O(2," This issue has been archived. "),M(3,f2a,2,0,"a",61),G(),F(4,"b-callout-actions"),
M(5,g2a,2,0,"b-button",62),P(6,"async"),G()());a&2&&(a=K(2),C("format","app")("iconOverride","archive_24px"),B(3),C("ngIf",a.frontendIsInternal),B(2),C("ngIf",Q(6,4,a.issuePermissionService.hasAclToEdit$)))},i2a=function(a){a&1&&(F(0,"a",66),O(1,"Learn more"),G())},j2a=function(a){a&1&&(F(0,"b-callout",60)(1,"b-callout-body"),O(2," This issue is in an archived component. "),M(3,i2a,2,0,"a",65),G()());a&2&&(a=K(2),C("format","app")("iconOverride","archive_24px"),B(3),C("ngIf",a.frontendIsInternal))},
k2a=function(a){a&1&&H(0,"b-issue-card",74,75);if(a&2){var b=Ce(1);a=K().ngIf;C("onedevIsHovercardReady",b.init)("issueId",a.issueId)}},l2a=function(a,b){a&1&&(F(0,"div",70),O(1," Duplicate of "),F(2,"a",71),O(3),P(4,"v2StatusToHuman"),G(),F(5,"onedev-hovercard",null,72),M(7,k2a,2,2,"b-issue-card",73),G()());if(a&2){a=b.ngIf;var c=Ce(6);b=K(3);B(2);C("href",b.paths.editIssue(a.issueId),Md)("onedevHovercardTrigger",c);B(1);sfa(" Issue ",a.issueId," [",Q(4,5,null==a.snapshot[0]?null:a.snapshot[0].status),
"] (",null==a.snapshot[0]?null:a.snapshot[0].title,") ")}},m2a=function(a){a&1&&(F(0,"div",70),O(1," Duplicate of "),F(2,"a",76),O(3),G(),O(4,". "),G());if(a&2){a=K().ngIf;var b=K(2);B(2);C("href",b.paths.editIssue(a),Md);B(1);De(" Issue ",a,"")}},n2a=function(a){a&1&&(F(0,"div",67),M(1,l2a,8,7,"div",68),P(2,"async"),M(3,m2a,5,2,"ng-template",null,69,Jf),G());if(a&2){var b=Ce(4);a=K(2);B(1);C("ngIf",Q(2,2,a.canonicalIssue$))("ngIfElse",b)}},o2a=function(a){if(a&1){var b=x();F(0,"div",77);J("click",
function(){z(b);var c=K(2);return A(Us(c,"PARENTS"))})("keydown.enter",function(){z(b);var c=K(2);return A(Us(c,"PARENTS"))})("keydown.space",function(){z(b);var c=K(2);return A(Us(c,"PARENTS"))});F(1,"span",47);O(2);G();H(3,"mat-icon",44);G()}a&2&&(a=K(2),le("expanded","PARENTS"==a.relatedIssuesTrayOpen),C("matTooltip","Parent issues"),ge("aria-expanded","PARENTS"==a.relatedIssuesTrayOpen)("aria-selected","PARENTS"==a.relatedIssuesTrayOpen),B(2),De("Parents (",Vs(a.parentIssues),")"))},p2a=function(a){if(a&
1){var b=x();F(0,"div",78);J("click",function(){z(b);var d=K(2);return A(Us(d,"CHILDREN"))})("keydown.enter",function(){z(b);var d=K(2);return A(Us(d,"CHILDREN"))})("keydown.space",function(){z(b);var d=K(2);return A(Us(d,"CHILDREN"))});F(1,"span",47);O(2);P(3,"async");G();H(4,"mat-icon",44);G()}if(a&2){a=K(2);var c;le("expanded","CHILDREN"==a.relatedIssuesTrayOpen);C("matTooltip","Child issues");ge("aria-expanded","CHILDREN"==a.relatedIssuesTrayOpen)("aria-selected","CHILDREN"==a.relatedIssuesTrayOpen);
B(2);De("Children (",null!==(c=Q(3,6,a.childIssuesCount$))&&void 0!==c?c:0,")")}},q2a=function(a,b){if(a&1){var c=x();F(0,"div",80);J("click",function(){z(c);var d=K(3);return A(Us(d,"MENTIONS"))})("keydown.enter",function(){z(c);var d=K(3);return A(Us(d,"MENTIONS"))})("keydown.space",function(){z(c);var d=K(3);return A(Us(d,"MENTIONS"))});F(1,"span",47);O(2);G();H(3,"mat-icon",44);G()}a&2&&(a=b.ngIf,b=K(3),le("expanded","MENTIONS"==b.relatedIssuesTrayOpen),C("matTooltip",b.mentionsLoadingStateTooltipText(a)),
ge("aria-expanded","MENTIONS"==b.relatedIssuesTrayOpen)("aria-selected","MENTIONS"==b.relatedIssuesTrayOpen),B(2),De("TODOs (","OK"===a.loadingState&&a.mentions?a.mentions.totalMentions:"?",")"))},r2a=function(a){a&1&&(qe(0),M(1,q2a,4,6,"div",79),P(2,"async"),re());a&2&&(a=K(2),B(1),C("ngIf",Q(2,1,a.codeMentionsState$)))},v2a=function(a){if(a&1){var b=x();F(0,"div",36);P(1,"async");M(2,h2a,7,6,"b-callout",37);M(3,j2a,4,3,"b-callout",37);M(4,n2a,5,4,"div",38);P(5,"async");F(6,"div",39)(7,"div",40)(8,
"div",41)(9,"div",42);J("click",function(){z(b);var c=K();return A(Us(c,"BLOCKED"))})("keydown.enter",function(){z(b);var c=K();return A(Us(c,"BLOCKED"))})("keydown.space",function(){z(b);var c=K();return A(Us(c,"BLOCKED"))});F(10,"span",43);P(11,"formatNumberOrUndef");P(12,"countOpenIssues");O(13);P(14,"formatNumberOrUndef");P(15,"countOpenIssues");G();H(16,"mat-icon",44);G();F(17,"div",45);J("click",function(){z(b);var c=K();return A(Us(c,"BLOCKING"))})("keydown.enter",function(){z(b);var c=K();
return A(Us(c,"BLOCKING"))})("keydown.space",function(){z(b);var c=K();return A(Us(c,"BLOCKING"))});F(18,"span",43);P(19,"formatNumberOrUndef");P(20,"countOpenIssues");O(21);P(22,"formatNumberOrUndef");P(23,"countOpenIssues");G();H(24,"mat-icon",44);G();F(25,"div",46);J("click",function(){z(b);var c=K();return A(Us(c,"DUPLICATES"))})("keydown.enter",function(){z(b);var c=K();return A(Us(c,"DUPLICATES"))})("keydown.space",function(){z(b);var c=K();return A(Us(c,"DUPLICATES"))});F(26,"span",47);O(27);
G();H(28,"mat-icon",44);G();M(29,o2a,4,6,"div",48);M(30,p2a,5,8,"div",49);M(31,r2a,3,3,"ng-container",12);G();F(32,"div",50)(33,"div",51)(34,"b-slide-toggle",52);J("modelChange",function(c){z(b);var d=K();return A(d.preferences.showFullHistory=c)})("modelChange",function(){z(b);var c=K();return A(s2a(c))});G()()()()();F(35,"div",53)(36,"div",54);H(37,"edit-issue-main-content",55);G();F(38,"h3",0);O(39,"Issue metadata");G();F(40,"b-resizable-sidebar",56);J("widthChanged",function(c){z(b);var d=K();
return A(t2a(d,c))});F(41,"div",57)(42,"div",58);H(43,"edit-issue-metadata",59);P(44,"toString");G()()()()()}a&2&&(a=K(),C("ngClass",Je(59,u2a,Q(1,37,a.canonicalIssueId$),a.issue.isArchived||a.inArchivedComponent)),B(2),C("ngIf",a.issue.isArchived),B(1),C("ngIf",!a.issue.isArchived&&a.inArchivedComponent),B(1),C("ngIf",Q(5,39,a.canonicalIssueId$)),B(5),le("expanded","BLOCKED"==a.relatedIssuesTrayOpen),ge("aria-expanded","BLOCKED"==a.relatedIssuesTrayOpen)("aria-selected","BLOCKED"==a.relatedIssuesTrayOpen),
B(1),Be("matTooltip","This issue is blocked by ",Q(11,41,Q(12,43,a.blockedByIssues))," open issue(s) (",a.blockedByIssues.length," total)"),B(3),Fe(" Blocked by ",Q(14,45,Q(15,47,a.blockedByIssues)),"/",Vs(a.blockedByIssues)," "),B(4),le("expanded","BLOCKING"==a.relatedIssuesTrayOpen),ge("aria-expanded","BLOCKING"==a.relatedIssuesTrayOpen)("aria-selected","BLOCKING"==a.relatedIssuesTrayOpen),B(1),Be("matTooltip","This issue is blocking ",Q(19,49,Q(20,51,a.blockingIssues))," open issue(s) (",a.blockingIssues.length,
" total)"),B(3),Fe(" Blocking ",Q(22,53,Q(23,55,a.blockingIssues)),"/",Vs(a.blockingIssues),""),B(4),le("expanded","DUPLICATES"==a.relatedIssuesTrayOpen),ze("matTooltip","This issue has ",a.duplicateIssues.length," duplicate(s)"),ge("aria-expanded","DUPLICATES"==a.relatedIssuesTrayOpen)("aria-selected","DUPLICATES"==a.relatedIssuesTrayOpen),B(2),De("Duplicates (",Vs(a.duplicateIssues),")"),B(2),C("ngIf",!a.sessionIsExternal&&a.enableWtdmMvpUi),B(1),C("ngIf",!a.sessionIsExternal&&a.enableWtdmMvpUi),
B(1),C("ngIf",a.codeMentionsEnabled),B(3),C("model",a.preferences.showFullHistory)("tooltip",a.preferences.showFullHistory?"Show abridged history (major events only)":"Show full history"),B(3),C("parent",a),B(3),C("disableToggleBtn",!1)("hideToggleBtnOnOpen",!0)("minWidth",a.rightSidebarMinWidth)("size",a.rightSidebarWidth),B(3),C("issueId",Q(44,57,a.issueId)))},w2a=function(a){if(a&1){var b=x();F(0,"button",8);J("click",function(){z(b);var c=K();return A(c.delete())});O(1," Delete saved search ");
G()}a&2&&(a=K(),C("disabled",a.hasUnsavedChanges()||a.isSaving()))},x2a=function(a){a&1&&(qe(0),F(1,"div",9)(2,"h2"),O(3," Saved search not found "),G()(),re())},y2a=function(a){if(a&1){var b=x();F(0,"div",34)(1,"button",35);J("click",function(){z(b);var c=K(2);return A(c.saveMetadata())});O(2," Update ");G();F(3,"button",36);J("click",function(){z(b);var c=K(2);return A(c.revertMetadataChanges())});O(4," Revert changes ");G()()}a&2&&(a=K(2),B(1),C("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()))},
z2a=function(a){if(a&1){var b=x();F(0,"div",34)(1,"button",35);J("click",function(){z(b);var c=K(2);return A(c.saveAccessPolicy())});O(2," Update ");G();F(3,"button",36);J("click",function(){z(b);var c=K(2);return A(c.revertAccessPolicyChanges())});O(4," Revert changes ");G()()}a&2&&(a=K(2),B(1),C("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||!a.isAdminsFieldValid||!a.isReaderFieldValid))},C2a=function(a){if(a&1){var b=x();qe(0);F(1,"div",9)(2,"h2");O(3);G();F(4,"a",10);O(5," (View Issues)");
G()();F(6,"mat-tab-group",11);J("selectedIndexChange",function(c){z(b);var d=K();return A(d.selectedTabIndex=c)})("selectedIndexChange",function(c){z(b);var d=K();return A(d.tabChange(c))});F(7,"mat-tab",12)(8,"div",13);H(9,"b-error-banner",14);F(10,"div",15)(11,"label",16)(12,"span",17);O(13,"Name");G()();F(14,"input",18,19);J("ngModelChange",function(c){z(b);var d=K();return A(d.savedSearchUnderEdit.name=c)});G()();F(16,"div",15)(17,"label",20)(18,"span",17);O(19,"Description");G()();F(20,"textarea",
21);J("ngModelChange",function(c){z(b);var d=K();return A(d.savedSearchUnderEdit.description=c)});O(21,"            ");G()();F(22,"div",22)(23,"label",23)(24,"span",17);O(25,"Query");G();F(26,"p",24);O(27," To modify query and display preferences, run the saved search and modify its parameters ");G();F(28,"div",25);O(29);G()()();M(30,y2a,5,1,"div",26);G()();F(31,"mat-tab",27)(32,"div",13)(33,"div",15)(34,"label",28)(35,"span",17);O(36,"Admins");G();F(37,"p",24);O(38," Edit access controls, edit name and description, edit query ");
G()();F(39,"b-multi-user-input",29);J("usersChange",function(c){z(b);var d=K();return A(d.accessPolicyUnderEdit.admins=c)})("isValid",function(c){z(b);var d=K();return A(d.isAdminsFieldValid=c)});G()();F(40,"div",15)(41,"label",30)(42,"span",17);O(43,"View and execute search");G()();F(44,"b-multi-user-input",31);J("usersChange",function(c){z(b);var d=K();return A(d.accessPolicyUnderEdit.readers=c)})("isValid",function(c){z(b);var d=K();return A(d.isReaderFieldValid=c)});G()();F(45,"div",32);O(46,
" See ");F(47,"a",33);O(48,"access control documentation");G();O(49," for an explanation of the settings. ");G();M(50,z2a,5,1,"div",26);G()()();re()}a&2&&(a=K(),B(3),Fe(" Saved search ",a.savedSearch.searchId,": ",a.savedSearch.name," "),B(1),C("href",a.paths.viewSavedSearch(a.savedSearch.searchId),Md),B(2),C("selectedIndex",a.selectedTabIndex),B(3),C("error",a.error),B(1),C("ngClass",Ie(26,Ws,a.isEditDisabled())),B(4),C("ngModel",a.savedSearchUnderEdit.name)("disabled",a.isEditDisabled()),B(2),C("ngClass",
Ie(28,Ws,a.isEditDisabled())),B(4),C("ngModel",a.savedSearchUnderEdit.description)("disabled",a.isEditDisabled()),B(9),De(" ",a.savedSearch.query," "),B(1),C("ngIf",a.isAdmin),B(3),C("ngClass",Ie(30,Ws,a.isEditDisabled())),B(6),le("disabled",a.isEditDisabled()),C("users",a.accessPolicyUnderEdit.admins),B(1),C("ngClass",Ie(32,Ws,a.isEditDisabled())),B(4),le("disabled",a.isEditDisabled()),C("users",a.accessPolicyUnderEdit.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Ie(36,
A2a,Ie(34,B2a,a.accessPolicyUnderEdit.admins))),B(3),C("href",Fo(a.documentationLinks)+"#saved-searches",Md),B(3),C("ngIf",a.isAdmin))},D2a=function(a){a&1&&(F(0,"div",7),H(1,"b-spinner"),G())},E2a=function(a){if(a&1){var b=x();F(0,"div",39)(1,"span",40)(2,"b-checkbox",41);J("change",function(c){z(b);var d=K(2);return A(d.alertState.setValue(c))});G()();F(3,"div")(4,"strong",42);O(5,"SLO Notifications");G();F(6,"div",43);O(7," When checked, admins will be notified when any component that would be automatically assigned this SLO overrides their SLO settings. ");
G()()()}a&2&&(a=K(2),le("bv2-edit-resource-readonly",a.isEditDisabled()),B(2),C("checked",a.alertState.getValue())("disabled",a.isEditDisabled()))},F2a=function(a){a&1&&(F(0,"div",44),O(1," Action is required to keep your SLO definitions in Buganizer and BugScope in sync. "),F(2,"a",45),O(3," Learn more "),G()())},H2a=function(a){if(a&1){var b=x();F(0,"b-button",50);J("onAction",function(){z(b);var c=K(3);return A(G2a(c,!0))});O(1," Archive ");G()}a&2&&(a=K(3),C("disabled",a.hasUnsavedMetadataChanges()||
a.isSaving()))},I2a=function(a){if(a&1){var b=x();F(0,"b-button",51);J("onAction",function(){z(b);var c=K(3);return A(G2a(c,!1))});O(1," Unarchive ");G()}a&2&&(a=K(3),C("disabled",a.hasUnsavedMetadataChanges()||a.isSaving()))},J2a=function(a){if(a&1){var b=x();F(0,"div",26)(1,"b-button",46);J("onAction",function(){z(b);var d=K(2);return A(d.saveMetadata())});O(2," Update ");G();F(3,"b-button",47);J("onAction",function(){z(b);var d=K(2);return A(d.revertMetadataChanges())});O(4," Revert changes ");
G();M(5,H2a,2,1,"b-button",48);M(6,I2a,2,1,"b-button",49);G()}if(a&2){K();var c=Ce(9);a=K();B(1);C("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()||!a.elementPickerIsValid||!!c.pending||!!c.invalid);B(2);C("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()||!!c.pending||!!c.invalid);B(2);C("ngIf",a.slo&&!a.slo.getIsArchived());B(1);C("ngIf",a.slo&&a.slo.getIsArchived())}},K2a=function(a){if(a&1){var b=x();F(0,"div",25)(1,"b-button",52);J("onAction",function(){z(b);var c=K(2);return A(c.saveAccessPolicy())});
O(2," Update ");G();F(3,"b-button",53);J("onAction",function(){z(b);var c=K(2);return A(c.revertAccessPolicyChanges())});O(4," Revert changes ");G()()}a&2&&(a=K(2),B(1),C("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||a.isInvalid()))},L2a=function(a){if(a&1){var b=x();F(0,"div")(1,"div",8)(2,"h2")(3,"span",9);O(4);G()()();F(5,"mat-tab-group",10);J("selectedIndexChange",function(c){z(b);var d=K();return A(d.selectedTabIndex=c)})("selectedIndexChange",function(c){z(b);var d=K();return A(d.tabChange(c))});
F(6,"mat-tab",11)(7,"div",12)(8,"form",13,14)(10,"div",15)(11,"label",16)(12,"span",17);O(13,"Name");G()();F(14,"input",18);J("ngModelChange",function(c){z(b);var d=K();return A(d.editableCopy.setName(c))});G()();F(15,"div",15)(16,"label",19)(17,"span",17);O(18,"Description");G()();F(19,"textarea",20);J("ngModelChange",function(c){z(b);var d=K();return A(d.editableCopy.setDescription(c))});O(20,"              ");G()();M(21,E2a,8,4,"div",21);G();M(22,F2a,4,0,"div",22);F(23,"div",15)(24,"slo-elements-picker",
23);J("onCollectionUpdate",function(c){z(b);var d=K();return A(d.updateCollection(c))})("onValidation",function(c){z(b);var d=K();return A(d.elementPickerIsValid=c)});G()();F(25,"div",24)(26,"div",25)(27,"div",26)(28,"b-button",27);J("onAction",function(){z(b);var c=K();return A(c.showUpdateHistoryModal())});O(29," View history ");G()()();F(30,"div",25);M(31,J2a,7,4,"div",28);G()()()();F(32,"mat-tab",29)(33,"div",30)(34,"form",31)(35,"div",15)(36,"label",32)(37,"span",17);O(38,"Admins");G();F(39,
"p",33);O(40," Edit name, description and metrics ");G()();F(41,"b-multi-user-input",34);J("usersChange",function(c){z(b);var d=K();return A(d.editableAccessPolicy.admins=c)})("isValid",function(c){z(b);var d=K();return A(d.validity.admins=c)});G()();F(42,"div",15)(43,"label",35)(44,"span",17);O(45,"Readers");G();F(46,"p",33);O(47," View the SLO definition (this is not required to see an issue's SLO status) ");G()();F(48,"b-multi-user-input",36);J("usersChange",function(c){z(b);var d=K();return A(d.editableAccessPolicy.readers=
c)})("isValid",function(c){z(b);var d=K();return A(d.validity.readers=c)});G()()();F(49,"div",15);O(50," See ");F(51,"a",37);O(52,"access control documentation");G();O(53," for an explanation of the settings. ");G();M(54,K2a,5,1,"div",38);G()()()()}a&2&&(a=K(),B(4),Fe(" SLO ",a.slo.getSloId(),": ",a.slo.getName()," "),B(1),C("selectedIndex",a.selectedTabIndex),B(5),le("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),C("required",!0)("ngModel",a.editableCopy.getName())("disabled",a.isEditDisabled()),
B(1),le("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),C("ngModel",a.editableCopy.getDescription())("disabled",a.isEditDisabled()),B(2),C("ngIf",a.isImportedFromBugScope||a.alertState.getSavedValue()),B(1),C("ngIf",a.isUneditedFromBugScope&&a.isAdmin()),B(1),le("bv2-edit-resource-readonly",a.isEditDisabled()),B(1),C("isDisabled",a.isEditDisabled())("collection",Xs(a.editableCopy)),B(7),C("ngIf",a.isAdmin()),B(4),le("bv2-edit-resource-readonly",a.isEditDisabled()),B(6),C("users",a.editableAccessPolicy.admins),
ge("disabled",a.isEditDisabled()?!0:null),B(1),le("bv2-edit-resource-readonly",a.isEditDisabled()),B(6),C("users",a.editableAccessPolicy.readers)("includeAliases",!0)("includeViewAliases",!0),ge("disabled",a.isEditDisabled()?!0:null),B(3),ze("href","",Fo(a.documentationLinks),"#slos",Md),B(3),C("ngIf",a.isAdmin()))},M2a=function(a){a&1&&(F(0,"b-person-hovercard",3),O(1),G());a&2&&(a=K(),C("email",a.assignee),B(1),De(" ",a.assignee," "))},N2a=function(a){a&1&&O(0,"--")},O2a=function(a){a&1&&H(0,"b-formatted-date-time",
3);a&2&&(a=K(),C("timestamp",a.createdTime))},P2a=function(a){a&1&&O(0,"--")},Q2a=function(a){a&1&&(F(0,"b-person-hovercard",3),O(1),G());a&2&&(a=K(),C("email",a.reporter),B(1),De(" ",a.reporter," "))},R2a=function(a){a&1&&O(0,"--")},S2a=function(a,b){a&1&&(F(0,"div",3),O(1),G());a&2&&(a=b.$implicit,b=K(),oe("b-chip xs squared status status",a,""),C("title",b.STATUS_FULL_TEXT[a]),B(1),De(" ",b.STATUS_TERSE[a]," "))},T2a=function(a){a&1&&O(0,"--")},U2a=function(a){a&1&&H(0,"b-team-display",3);a&2&&
(a=K(),C("teamId",a.teamId)("componentId",a.componentId)("anchorLinkEnabled",!1))},V2a=function(a){a&1&&O(0,"--")},W2a=function(a){a&1&&(qe(0),O(1),P(2,"enumToHuman"),re());a&2&&(a=K(),B(1),Ee(Q(2,1,a.type)))},X2a=function(a){a&1&&O(0,"--")},Y2a=function(a){if(a&1){var b=x();F(0,"div",3);J("@arrowPosition.start",function(){z(b);var c=K();return A(c._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){z(b);var c=K();return A(c._disableViewStateAnimation=!1)});H(1,"div",4);F(2,"div",5);
H(3,"div",6)(4,"div",7)(5,"div",8);G()()}a&2&&(a=K(),C("@arrowOpacity",a._getArrowViewState())("@arrowPosition",a._getArrowViewState())("@allowChildren",a._getArrowDirectionState()),B(2),C("@indicator",a._getArrowDirectionState()),B(1),C("@leftPointer",a._getArrowDirectionState()),B(1),C("@rightPointer",a._getArrowDirectionState()))},Z2a=function(a){a&1&&H(0,"th",21)},$2a=function(a){a&1&&H(0,"td",22)},a3a=function(a){a&1&&(F(0,"th",21),O(1," Id "),G())},b3a=function(a,b){a&1&&(F(0,"td",23),H(1,"b-issue-id-cell",
24),G());a&2&&(a=b.$implicit,B(1),C("id",a.id))},c3a=function(a){a&1&&(F(0,"th",21),O(1," Title "),G())},d3a=function(a,b){a&1&&(F(0,"td",23),H(1,"b-issue-title-cell",25),P(2,"async"),G());a&2&&(a=b.$implicit,B(1),C("issue",Q(2,1,a.issue$)))},e3a=function(a){a&1&&(F(0,"th",26),O(1," Type "),G())},f3a=function(a,b){a&1&&(F(0,"td",23),H(1,"b-issue-type-cell",25),P(2,"async"),G());a&2&&(a=b.$implicit,B(1),C("issue",Q(2,1,a.issue$)))},g3a=function(a){a&1&&(F(0,"th",27),O(1," Assignee "),G())},h3a=function(a,
b){a&1&&(F(0,"td",23),H(1,"b-issue-assignee-cell",25),P(2,"async"),G());a&2&&(a=b.$implicit,B(1),C("issue",Q(2,1,a.issue$)))},i3a=function(a){a&1&&(F(0,"th",28),O(1," Reporter "),G())},j3a=function(a,b){a&1&&(F(0,"td",23),H(1,"b-issue-reporter-cell",25),P(2,"async"),G());a&2&&(a=b.$implicit,B(1),C("issue",Q(2,1,a.issue$)))},k3a=function(a){a&1&&(F(0,"th",29),O(1," Status "),G())},l3a=function(a,b){a&1&&(F(0,"td",23),H(1,"b-issue-status-cell",25),P(2,"async"),G());a&2&&(a=b.$implicit,B(1),C("issue",
Q(2,1,a.issue$)))},m3a=function(a){a&1&&(F(0,"th",21),O(1," Team "),G())},n3a=function(a,b){a&1&&(F(0,"td",23),H(1,"b-issue-team-cell",25),P(2,"async"),G());a&2&&(a=b.$implicit,B(1),C("issue",Q(2,1,a.issue$)))},o3a=function(a){a&1&&(F(0,"th",30),O(1," Created "),G())},p3a=function(a,b){a&1&&(F(0,"td",23),H(1,"b-issue-created-time-cell",25),P(2,"async"),G());a&2&&(a=b.$implicit,B(1),C("issue",Q(2,1,a.issue$)))},q3a=function(a){a&1&&H(0,"th",21)},r3a=function(a,b){a&1&&(F(0,"td",23)(1,"b-actions-menu",
31),J("click",function(c){return c.stopPropagation()}),G()());a&2&&(a=b.$implicit,b=K(),B(1),C("menuItems",b.getMenuItems(a.id)))},s3a=function(a){a&1&&H(0,"tr",32)},t3a=function(a,b){if(a&1){var c=x();F(0,"tr",33);J("click",function(d){var e=z(c).$implicit,f=K();return A(f.navigateToIssue(d,e.id))})("mouseup",function(d){var e=z(c).$implicit,f=K();return A(f.navigateToIssue(d,e.id))})("focusin",function(){var d=z(c).$implicit,e=K();return A(Ys(e.focusManager,d))})("keydown",function(d){var e=z(c).$implicit,
f=K();return A(f.onRowKeydown(e,d))});G()}a&2&&C("row",b.$implicit)},u3a=function(a,b){return(null==a?void 0:a.id)===(null==b?void 0:b.id)},w3a=function(a){if(a&1){var b=x();F(0,"div",5);H(1,"img",6)(2,"img",7);F(3,"p",8);O(4," This issue is not blocking anything \u00a0\ud83e\udd73 ");G();F(5,"p",9);O(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. ');F(7,"a",10);O(8,"Learn more");G()();F(9,"button",11);
J("click",function(){z(b);var c=K(2);return A(v3a(c))});O(10," Add ");G()()}a&2&&(a=K(2),B(1),C("src",a.TEA_LIGHT,Md),B(1),C("src",a.TEA_DARK,Md))},x3a=function(a,b){a&1&&H(0,"b-issues-table",18);a&2&&(a=b.ngIf,b=K(6),C("issueIds",a)("menuItemFactory",b.getMenuItems))},y3a=function(a){a&1&&(qe(0),M(1,x3a,1,2,"b-issues-table",17),P(2,"async"),re());a&2&&(a=K(5),B(1),C("ngIf",Q(2,1,a.blockedAndOpenIds$)))},z3a=function(a){a&1&&(F(0,"p",19),O(1,"Not blocking any open issues \ud83e\udd73"),G())},A3a=
function(a,b){a&1&&(qe(0),F(1,"h4",15),O(2),G(),M(3,y3a,3,3,"ng-container",12),M(4,z3a,2,0,"ng-template",null,16,Jf),re());if(a&2){a=b.$implicit;var c=Ce(5);B(2);De("Open (",a.length,")");B(1);C("ngIf",0<a.length)("ngIfElse",c)}},B3a=function(a,b){a&1&&H(0,"b-issues-table",18);a&2&&(a=b.ngIf,b=K(6),C("issueIds",a)("menuItemFactory",b.getMenuItems))},C3a=function(a){a&1&&(qe(0),F(1,"h4",15),O(2),G(),M(3,B3a,1,2,"b-issues-table",17),P(4,"async"),re());if(a&2){a=K().$implicit;var b=K(4);B(2);De("Closed (",
a.length,")");B(1);C("ngIf",Q(4,2,b.blockedAndClosedIds$))}},D3a=function(a,b){a&1&&(qe(0),M(1,C3a,5,4,"ng-container",1),re());a&2&&(a=b.$implicit,B(1),C("ngIf",0<a.length))},E3a=function(a){a&1&&(qe(0),M(1,A3a,6,3,"ng-container",1),P(2,"async"),M(3,D3a,2,1,"ng-container",1),P(4,"async"),re());a&2&&(a=K(3),B(1),C("ngIf",Q(2,2,a.blockedAndOpen$)),B(2),C("ngIf",Q(4,4,a.blockedAndClosed$)))},F3a=function(a,b){a&1&&(F(0,"li")(1,"a",22)(2,"span",9),O(3),G(),F(4,"aside",23),H(5,"button",24),G()()());a&
2&&(a=b.$implicit,B(1),ze("routerLink","/issues/",a,""),ie("aria-label","Issue ",a,""),B(2),De("b/",a,""))},G3a=function(a){a&1&&(F(0,"h4",15),O(1,"Loading..."),G(),F(2,"ol",20),M(3,F3a,6,3,"li",21),G());a&2&&(a=K(2).$implicit,B(3),C("ngForOf",a))},H3a=function(a,b){a&1&&(qe(0),F(1,"a",25),O(2," View as search results "),G(),re());a&2&&(a=b.ngIf,B(1),C("routerLink",a.path)("queryParams",a.params))},I3a=function(a){if(a&1){var b=x();M(0,E3a,5,6,"ng-container",12);P(1,"async");M(2,G3a,4,1,"ng-template",
null,13,Jf);F(4,"aside",14)(5,"button",11);J("click",function(){z(b);var d=K(2);return A(v3a(d))});O(6," Add ");G();M(7,H3a,3,2,"ng-container",1);P(8,"async");G()}if(a&2){var c=Ce(3);a=K(2);C("ngIf",Q(1,3,a.issuesBeingBlocked$))("ngIfElse",c);B(7);C("ngIf",Q(8,5,a.searchUrl$))}},J3a=function(a,b){a&1&&(qe(0),M(1,w3a,11,2,"div",3),M(2,I3a,9,7,"ng-template",null,4,Jf),re());if(a&2){a=b.$implicit;var c=Ce(3);B(1);C("ngIf",0===a.length)("ngIfElse",c)}},K3a=function(a){a&1&&(F(0,"aside",26),H(1,"b-spinner"),
G())},L3a=function(a){if(a&1){var b=x();F(0,"button",4);J("click",function(c){z(b);K().expansionChange.emit();c.stopPropagation();return A()});H(1,"b-icon",5);G()}a&2&&(a=K(),le("collapsed",!a.expanded),ge("aria-label",a.expanded?"Collapse children":"Expand children"))},M3a=function(a){a&1&&H(0,"div",6)},N3a=function(a){a&1&&(F(0,"p",7),O(1,"none"),G())},O3a=function(a){a&1&&H(0,"b-issue-card",11,12);if(a&2){var b=Ce(1);a=K().$implicit;var c=K(2);C("onedevIsHovercardReady",b.init)("issueId",a)("childContextId",
c.issueId)}},P3a=function(a,b){a&1&&(qe(0),F(1,"a",8),O(2),G(),O(3),F(4,"onedev-hovercard",null,9),M(6,O3a,2,3,"b-issue-card",10),G(),re());if(a&2){a=b.$implicit;b=b.last;var c=Ce(5),d=K().$implicit,e=K();B(1);ie("aria-label","Open issue ",a,"");C("routerLink",e.issueDetailsRoute(a).path)("onedevHovercardTrigger",c);B(1);Ee(d[1][a]||a);B(1);De("",b?"":", "," ")}},Q3a=function(a,b){a&1&&(F(0,"section",4),M(1,N3a,2,0,"p",5),M(2,P3a,7,5,"ng-container",6),G());a&2&&(a=b.$implicit,B(1),C("ngIf",0===a[0].length),
B(1),C("ngForOf",a[0]))},R3a=function(a){a&1&&(F(0,"section",13),O(1,"loading..."),G())},S3a=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?lya(e):e}}return c},T3a=function(a,b){a&1&&(qe(0),H(1,"b-issues-table",1),re());a&2&&(a=b.ngIf,b=K(),B(1),C("issueIds",a)("tableColumns",b.tableColumns)("menuItemFactory",b.getMenuItems)("initialSort",b.initialSort))},Zs=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))},U3a=function(a){switch(a){case 0:return"Row moved up";case 1:return"Row moved down";case 2:return"Row indented";case 3:return"Row unindented";case 4:return"Row moved";default:mh(a)}},V3a=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=$s(b),f=b.nextElementSibling&&$s(b.nextElementSibling),h=b.previousElementSibling&&$s(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 v;if((null==(v=b.nextElementSibling)?0:v.classList.contains("dragging"))&&
e===f)return d="none",c();d="after";return c()}d="current";return c()},$s=function(a){return Number(a.dataset.level)},bt=function(a){var b;return at(null!=(b=a.dataset.ancestorchain)?b:"")},W3a=function(a){a&1&&H(0,"th",27)},X3a=function(a){if(a&1){var b=x();F(0,"td",28,29);J("click",function(c){z(b);Ce(1).focus();return A(c.stopPropagation())});G()}},Y3a=function(a){a&1&&H(0,"th",27)},Z3a=function(a){if(a&1){var b=x();F(0,"td",30,31);J("click",function(c){z(b);Ce(1).focus();return A(c.stopPropagation())})("dragstart",
function(c){z(b);var d=K();return A(d.handleDragStart(c))});H(2,"mat-icon",32);G()}},$3a=function(a){a&1&&(F(0,"th",27),O(1," Id "),G())},a4a=function(a,b){a&1&&(F(0,"td",33),H(1,"b-issue-id-cell",34),G());a&2&&(a=b.$implicit,B(1),C("id",a.id))},b4a=function(a){a&1&&(F(0,"th",27),O(1," Id "),G())},c4a=function(a){a&1&&(F(0,"td",33),O(1,"--"),G())},d4a=function(a){a&1&&(F(0,"th",27),O(1," Title "),G())},e4a=function(a,b){if(a&1){var c=x();F(0,"td",33)(1,"b-expandable-issue-title-cell",35);J("expansionChange",
function(){var d=z(c).$implicit,e=K();return A(e.toggleExpansion(d))});P(2,"async");P(3,"async");G()()}a&2&&(a=b.$implicit,B(1),C("issue",Q(2,4,a.issue$))("expandable",Q(3,6,a.hasChildren$))("expanded",!!a.expandedCount)("level",a.level))},f4a=function(a){a&1&&(F(0,"th",27),O(1," Type "),G())},g4a=function(a,b){a&1&&(F(0,"td",33),H(1,"b-issue-type-cell",36),P(2,"async"),G());a&2&&(a=b.$implicit,B(1),C("issue",Q(2,1,a.issue$)))},h4a=function(a){a&1&&(F(0,"th",27),O(1," Assignee "),G())},i4a=function(a,
b){a&1&&(F(0,"td",33),H(1,"b-issue-assignee-cell",36),P(2,"async"),G());a&2&&(a=b.$implicit,B(1),C("issue",Q(2,1,a.issue$)))},j4a=function(a){a&1&&(F(0,"th",27),O(1," Status "),G())},k4a=function(a,b){a&1&&(F(0,"td",33),H(1,"b-issue-status-cell",36),P(2,"async"),G());a&2&&(a=b.$implicit,B(1),C("issue",Q(2,1,a.issue$)))},l4a=function(a){a&1&&(F(0,"th",27),O(1," Team "),G())},m4a=function(a,b){a&1&&(F(0,"td",33),H(1,"b-issue-team-cell",36),P(2,"async"),G());a&2&&(a=b.$implicit,B(1),C("issue",Q(2,1,
a.issue$)))},n4a=function(a){a&1&&H(0,"th",27)},o4a=function(a,b){a&1&&(F(0,"td",33)(1,"b-actions-menu",37),J("click",function(c){return c.stopPropagation()}),G()());a&2&&(a=b.$implicit,b=K(),B(1),C("menuItems",b.getMenuItems(a)))},p4a=function(a){a&1&&H(0,"th",27)},q4a=function(a){if(a&1){var b=x();F(0,"button",41);J("click",function(){z(b);var c=K().$implicit,d=K();return A(d.saveDraft(c))});H(1,"mat-icon",42);G()}a&2&&C("matTooltip","Save issue (Enter)")},r4a=function(a){a&1&&H(0,"b-spinner")},
s4a=function(a,b){a&1&&(F(0,"td",38),M(1,q4a,2,1,"button",39),M(2,r4a,1,0,"ng-template",null,40,Jf),G());if(a&2){a=b.$implicit;var c=Ce(3);B(1);C("ngIf",!a.saving)("ngIfElse",c)}},u4a=function(a,b){if(a&1){var c=x();F(0,"td",33)(1,"b-async-data-placeholder",43);P(2,"async");F(3,"b-button",44);J("onAction",function(){var d=z(c).$implicit,e=K();return A(t4a(e,d))});F(4,"span",45);O(5);G()()()()}a&2&&(a=b.$implicit,b=K(),ke("padding-left",24*a.level+b.TITLE_FIXED_OFFSET_PX,"px"),ge("colspan",b.tableColumns.length),
B(1),C("isReady",!!Q(2,5,a.parentIssue$)),B(4),De("Display ",a.truncatedSiblingCount," more"))},v4a=function(a){a&1&&(F(0,"th",27),O(1," Title "),G())},w4a=function(a,b){if(a&1){var c=x();F(0,"td",33)(1,"b-text-input-cell",46);J("valueChange",function(d){var e=z(c).$implicit;return A(e.title=d)})("commit",function(){var d=z(c).$implicit,e=K();return A(e.saveDraft(d))});G()()}a&2&&(a=b.$implicit,ke("padding-left",24*(a.level+1),"px"),B(1),C("value",a.title)("readonly",a.saving))},x4a=function(a){a&
1&&H(0,"tr",47)},z4a=function(a,b){if(a&1){var c=x();F(0,"tr",48);J("click",function(d){var e=z(c).$implicit,f=K();return A(f.navigateToIssue(d,e))})("mouseup",function(d){var e=z(c).$implicit,f=K();return A(f.navigateToIssue(d,e))})("focusin",function(){var d=z(c).$implicit,e=K();return A(Ys(e.focusManager,d))})("keydown",function(d){var e=z(c).$implicit,f=K();return A(f.onRowKeydown(e,d))});P(1,"async");G()}a&2&&(a=b.$implicit,b=K(),le("selected",Q(1,6,y4a(b.selectionModel,a.ancestorChain))),C("row",
a),ge("data-level",a.level)("data-type",a.type)("data-ancestorchain",a.ancestorChain.hash()))},A4a=function(a,b){if(a&1){var c=x();F(0,"tr",49);J("focusin",function(){var d=z(c).$implicit,e=K();return A(Ys(e.focusManager,d))})("keydown",function(d){var e=z(c).$implicit,f=K();return A(f.onRowKeydown(e,d))});G()}a&2&&(a=b.$implicit,C("row",a),ge("data-level",a.level)("data-type",a.type)("data-ancestorchain",a.ancestorChain.hash()))},C4a=function(a,b){if(a&1){var c=x();F(0,"tr",50);J("keydown",function(d){var e=
z(c).$implicit,f=K();return A(f.onRowKeydown(e,d))})("keydown.escape",function(){var d=z(c).$implicit,e=K();return A(B4a(e,d))})("componentBlur",function(){var d=z(c).$implicit,e=K();return A(B4a(e,d))})("focusin",function(){var d=z(c).$implicit,e=K();return A(Ys(e.focusManager,d))});G()}a&2&&(a=b.$implicit,C("row",a),ge("data-type",a.type))},ct=function(a){var b=D4a(a.open);a=D4a(a.total);return b===a?"("+b+")":"("+b+"/"+a+")"},D4a=function(a){var b=a.count;a=a.exact;return 0===b||a?""+b:b+"+"},
dt=function(a){return"("+D4a(a)+")"},et=function(a){return{count:99<a?99:a,exact:99<a?!1:!0}},E4a=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:mh(b)}},F4a=function(a){a&1&&H(0,"b-spinner")},G4a=function(a){a&1&&ue(0)},H4a=function(a){a&1&&(qe(0),M(1,G4a,1,0,"ng-container",20),re());if(a&2){K();var b=Ce(43);B(1);C("ngTemplateOutlet",
b)}},I4a=function(a){a&1&&(H(0,"b-blockers-table",22),P(1,"async"));if(a&2){a=K().ngIf;var b=K();C("issueId",a)("blockerIds",Q(1,2,b.blockerIds$))}},J4a=function(a){a&1&&(qe(0),M(1,I4a,2,4,"b-blockers-table",21),P(2,"async"),re());if(a&2){a=K();var b=Ce(24);B(1);C("ngIf",Q(2,2,a.blockersCount$))("ngIfElse",b)}},K4a=function(a){a&1&&ue(0)},L4a=function(a){a&1&&(F(0,"div")(1,"span",23),O(2,"This issue is not blocked "),F(3,"span",24),O(4,"\ud83c\udf89"),G()(),M(5,K4a,1,0,"ng-container",20),G());if(a&
2){K();var b=Ce(43);B(5);C("ngTemplateOutlet",b)}},M4a=function(a){a&1&&ue(0)},N4a=function(a){a&1&&(qe(0),M(1,M4a,1,0,"ng-container",20),re());if(a&2){K();var b=Ce(45);B(1);C("ngTemplateOutlet",b)}},O4a=function(a){a&1&&(F(0,"div",25)(1,"section",26)(2,"div",27),O(3," Progress: "),G(),F(4,"div",27),O(5),P(6,"number"),P(7,"async"),P(8,"number"),P(9,"async"),G(),F(10,"div",28),P(11,"async"),F(12,"div",29)(13,"div",30),P(14,"async"),G(),F(15,"onedev-hovercard",null,31)(17,"div",32)(18,"div",33),O(19),
P(20,"async"),G()()()()(),H(21,"mat-icon",34),F(22,"onedev-hovercard",null,35)(24,"div",32)(25,"div",36)(26,"p"),O(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. "),G()()()()()());if(a&2){var b=Ce(16),c=Ce(23);a=K();B(5);Fe(" ",Me(6,8,Q(7,11,a.totalDaysComplete$),"1.0-2")," of ",Me(8,13,Q(9,16,a.totalDaysCount$),"1.0-2"),
" days complete ");B(5);ie("aria-label","",Q(11,18,a.totalDaysDisplayPercent$)," Percentage of effort completed");B(2);C("onedevHovercardTrigger",b);B(1);ke("width",Q(14,20,a.totalDaysDisplayPercent$),"%");B(6);De(" ",Q(20,22,a.progressHovercardContent$)," ");B(2);C("onedevHovercardTrigger",c)}},P4a=function(a,b){a&1&&(H(0,"b-issue-relations-table",37),P(1,"async"));if(a&2){a=b.ngIf;b=K();var c;le("hidden",0===((null==(c=Q(1,3,null==b.table?null:b.table.rows$))?null:c.length)||0));C("rootIssueId",
a)}},Q4a=function(a){a&1&&ue(0)},R4a=function(a){a&1&&(qe(0),F(1,"span",23),O(2,"This issue has no children"),G(),M(3,Q4a,1,0,"ng-container",20),re());if(a&2){K(2);var b=Ce(45);B(3);C("ngTemplateOutlet",b)}},S4a=function(a){a&1&&(qe(0),M(1,R4a,4,1,"ng-container",5),P(2,"async"),P(3,"async"),re());if(a&2){a=K();var b;B(1);C("ngIf",0===Q(2,1,a.unarchivedChildIssueCount$)&&0===((null==(b=Q(3,3,null==a.table?null:a.table.rows$))?null:b.length)||0))}},U4a=function(a){if(a&1){var b=x();F(0,"b-button",38);
J("onAction",function(){z(b);var c=K();return A(T4a(c))});P(1,"async");O(2," Add ");G()}a&2&&(a=K(),C("disabled",!Q(1,1,a.canEdit$)))},V4a=function(a){if(a&1){var b=x();F(0,"b-button",39);J("onAction",function(){z(b);var c=K();return A(c.createChild())});P(1,"async");O(2," Create ");G();F(3,"b-button",40);J("onAction",function(){z(b);var c=K();return A(c.addChild())});P(4,"async");O(5," Add ");G()}a&2&&(a=K(),C("disabled",!Q(1,2,a.canEdit$)),B(3),C("disabled",!Q(4,4,a.canEdit$)))},W4a=function(a,
b){return(0,S.combineLatest)([a,b]).pipe(R(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}))},X4a=function(a){return 1===a?a+" day":a+" days"},Y4a=function(a){a&1&&(Nc(),Oc(),qe(0),O(1),re());a&2&&(a=K(),B(1),De("Insights (",a.availablePanels.size,")"))},Z4a=function(a,b){if(a&1){var c=x();F(0,"button",19);J("click",function(){var d=z(c).$implicit;K().openSidebar.emit({panel:d.panel});return A()});O(1);G()}a&2&&(a=b.$implicit,b=K(),C("disabled",
!b.availablePanels.has(a.panel)),B(1),De(" ",a.label," "))},$4a=function(a){if(a&1){var b=x();F(0,"b-insights-graph-menu",2);J("openSidebar",function(d){z(b);var e=K(2);return A(e.openSidebar(d.panel))});G()}if(a&2){a=K().ngIf;var c=K();C("availablePanels",a)("iconOnly",c.iconOnly)("buttonClassname",c.buttonClassname)}},a5a=function(a){a&1&&(qe(0),M(1,$4a,1,3,"b-insights-graph-menu",1),P(2,"async"),re());a&2&&(a=K(),B(1),C("ngIf",Q(2,1,a.shouldShowInsightsGraphMenu$)))},c5a=function(a,b){if(a&1){var c=
x();F(0,"button",1);J("click",function(){z(c);var d=K();return A(b5a(d))});P(1,"async");O(2);G()}a&2&&(a=b.ngIf,b=K(),C("disabled",b.disabled||b.fridge.isSaving(b.internalIssueId)||!1===Q(1,3,b.canEdit$))("title",a.isDupe?b.TOOLTIP_UNMARK_DUPE:b.TOOLTIP_MARK_DUPE),B(2),De(" ",a.isDupe?"Unmark Duplicate":"Mark as Duplicate"," "))},d5a=function(a){a&1&&ue(0)},e5a=function(a){a&1&&(qe(0),M(1,d5a,1,0,"ng-container",5),re());a&2&&(a=K(),B(1),C("ngTemplateOutlet",a.content))},f5a=function(a,b){if(a&1){var c=
x();F(0,"button",12);J("click",function(e){var f=z(c).$implicit;return A(f.action(e))});H(1,"mat-icon",13);O(2);G()}if(a&2){a=b.$implicit;var d;C("disabled",a.disabled)("title",a.title);ge("aria-label",a.title);B(1);C("svgIcon",null!==(d=a.icon)&&void 0!==d?d:"");B(1);De(" ",a.label," ")}},g5a=function(a){if(a&1){var b=x();qe(0);F(1,"button",14);J("click",function(d){z(b);var e=K(2);d.stopPropagation();d.preventDefault();var f;null==(f=e.helpHover)||f.toggle();return A()});H(2,"mat-icon",15);O(3,
" Retention: ");H(4,"retention-text",16);O(5," \u00a0 ");H(6,"help-hover",17);G();re()}if(a&2){a=K().ngIf;var c=Ce(13);B(4);C("retentionState",a.retentionState);B(2);C("content",c)}},h5a=function(a){a&1&&(qe(0),H(1,"retention-help-text",18),re());a&2&&(a=K(2).ngIf,B(1),C("retentionState",a.retentionState)("modifiedTime",a.modifiedTimeMilliseconds))},i5a=function(a){a&1&&M(0,h5a,2,2,"ng-container",0);a&2&&(a=K().ngIf,C("ngIf",a.retentionState&&a.modifiedTimeMilliseconds))},j5a=function(a,b){if(a&1){var c=
x();qe(0);H(1,"b-app-vote-button",1);F(2,"smart-dupe-btn",2,3);J("onHotkey",function(){z(c);var e=Ce(3);return A(b5a(e))});G();F(4,"b-notification-menu",4);J("subscriptionChange",function(e){z(c);var f=K();return A(f.updateSubscription(e))})("showNotificationSettings",function(e){z(c);var f=K();return A(f.showNotificationSettings(e))});G();H(5,"insights-graph-menu-smart",5);F(6,"button",6);H(7,"mat-icon",7);G();F(8,"mat-menu",8,9);M(10,f5a,3,5,"button",10);M(11,g5a,7,2,"ng-container",0);G();M(12,
i5a,1,1,"ng-template",null,11,Jf);re()}if(a&2){a=b.ngIf;var d=Ce(9);b=K();B(1);C("issueId",a.issueId)("voteCount",a.voteCount)("upvoted",a.voted)("isNewVoteButton",!0);B(1);C("issueId",a.issueId)("hotkey",b.HOTKEYS.TOGGLE_MARK_AS_DUPLICATE);B(2);C("subscription",a.notificationSubscription)("issueId",a.issueId)("iconOnly",!0);B(1);C("iconOnly",!0);B(1);C("matMenuTriggerFor",d);B(4);C("ngForOf",a.menuItems);B(1);C("ngIf",null==a.retentionState?null:a.retentionState.scheduledDeletionTime)}},k5a=function(a){a&
1&&(F(0,"div",3),H(1,"mat-icon",4),F(2,"span",5),O(3),P(4,"async"),G()());if(a&2){a=K();var b;B(3);De("",null==(b=Q(4,1,a.issues$))?null:b.length," parent issues")}},l5a=function(a){a&1&&(F(0,"div",3),H(1,"mat-icon",6),F(2,"span",5),O(3),P(4,"async"),G()());if(a&2){a=K();var b;B(3);De("Blocked by ",null==(b=Q(4,1,a.issues$))?null:b.length," issues")}},m5a=function(a,b){a&1&&(qe(0),F(1,"div"),O(2),G(),re());a&2&&(a=b.$implicit,b=K(4),B(1),oe("b-chip xs squared status status",a,""),B(1),Ee(b.STATUS_TERSE[a]))},
n5a=function(a){a&1&&(qe(0),F(1,"a",8)(2,"div",9)(3,"div",10)(4,"div",11),O(5),G(),F(6,"div",12),O(7),G()(),F(8,"div",10)(9,"div",13),O(10),G(),M(11,m5a,3,4,"ng-container",2),G()()(),re());if(a&2){var b=K();a=b.$implicit;b=b.last;var c=K(2);B(1);ze("routerLink","/issues/",a.issueId,"");B(1);le("border-bottom",!b);B(3);Ee(a.issueId);B(2);Ee(a.snapshot[0].title);B(2);C("ngClass",c.priorityClass(a.snapshot[0].priority));B(1);Ee(a.snapshot[0].priority);B(1);C("ngIf",c.IssueStatus_strToTag[a.snapshot[0].status])}},
o5a=function(a,b){a&1&&(qe(0),M(1,n5a,12,8,"ng-container",2),re());a&2&&(a=b.index,B(1),C("ngIf",5>a))},q5a=function(a){if(a&1){var b=x();qe(0);F(1,"div",14)(2,"button",15);J("click",function(){z(b);var c=K(2);return A(p5a(c))});O(3,"View all parent issues");G()();re()}},r5a=function(a){if(a&1){var b=x();qe(0);F(1,"div",14)(2,"button",15);J("click",function(){z(b);var c=K(2),d;null==(d=c.hovercardInstance)||d.closeHovercard$.next();ft(c.router,"/issues/"+c.currentIssueId+"/dependencies");return A()});
O(3,"View all blockers");G()();re()}},s5a=function(a,b){a&1&&(F(0,"div"),M(1,o5a,2,1,"ng-container",7),M(2,q5a,4,0,"ng-container",2),M(3,r5a,4,0,"ng-container",2),G());a&2&&(a=b.$implicit,b=K(),B(1),C("ngForOf",a),B(1),C("ngIf",5<a.length&&b.mode===b.ListIssuesHovercardMode.PARENT_ISSUES),B(1),C("ngIf",5<a.length&&b.mode===b.ListIssuesHovercardMode.BLOCKED_BY_ISSUES))},t5a=function(a){a&1&&H(0,"mat-icon",7)},u5a=function(a){a&1&&(qe(0),H(1,"b-list-issues-card",8,9),re());if(a&2){var b=Ce(2);K();var c=
Ce(5);a=K();B(1);C("onedevIsHovercardReady",b.init)("hovercardInstance",c)("currentIssueId",a.issueId)("issueIds",a.multiParentIds)("mode",a.ListIssuesHovercardMode.PARENT_ISSUES)}},v5a=function(a){a&1&&(qe(0),F(1,"a",3),O(2),G(),M(3,t5a,1,0,"mat-icon",4),F(4,"onedev-hovercard",null,5),M(6,u5a,3,5,"ng-container",6),G(),re());if(a&2){var b=Ce(5);a=K();B(1);ze("title","",a.multiParentIds.length," parents at this position");C("onedevHovercardTrigger",b);B(1);De("",a.multiParentIds.length," Parents\u2026");
B(1);C("ngIf",1<a.multiParentIds.length)}},w5a=function(a){a&1&&H(0,"b-issue-card",13,9);if(a&2){var b=Ce(1);a=K().$implicit;C("onedevIsHovercardReady",b.init)("issueId",a)}},x5a=function(a,b){a&1&&(qe(0),F(1,"onedev-hovercard",null,10),M(3,w5a,2,2,"b-issue-card",11),G(),F(4,"b-issue-reference-widget",12),O(5),G(),H(6,"mat-icon",7),re());if(a&2){a=b.$implicit;b=b.last;var c=Ce(2),d=K();B(4);C("href",d.getIssueLink(a))("issueId",a)("onedevHovercardTrigger",c);B(1);d.issueIdToTitle.has(a)?(a=d.issueIdToTitle.get(a),
a=lya(a)):a=String(a);Ee(a);B(1);le("last",b)}},y5a=function(a){a&1&&(qe(0),O(1," > "),re())},z5a=function(a,b){a&1&&(qe(0),F(1,"a",7),O(2),G(),M(3,y5a,2,0,"ng-container",3),re());a&2&&(a=b.$implicit,b=b.last,B(1),ie("aria-label","View recent issues in ",a.name,""),C("routerLinkObj",a.route),B(1),Ee(a.name),B(1),C("ngIf",!b))},A5a=function(a){a&1&&(F(0,"span"),O(1," [Archived]"),G())},B5a=function(a){a&1&&(F(0,"div",5),M(1,z5a,4,4,"ng-container",6),P(2,"async"),M(3,A5a,2,0,"span",3),P(4,"async"),
G());a&2&&(a=K(),B(1),C("ngForOf",Q(2,2,a.componentPath$)),B(2),C("ngIf",Q(4,4,a.isArchived$)))},C5a=function(a,b){a&1&&(qe(0),F(1,"div",8),H(2,"mat-icon",9),F(3,"div",10),O(4),G()(),F(5,"p",11),O(6),G(),F(7,"p",10),O(8),G(),re());a&2&&(a=b.$implicit,B(4),Ee(a.name),B(2),De("Component ID: ",a.componentId,""),B(2),Ee(a.description))},D5a=function(a,b){a&1&&(F(0,"div",12)(1,"a",13),O(2,"View recent open issues"),G(),F(3,"a",14),O(4,"View component settings"),G(),F(5,"a",15),O(6,"Create issue in this component"),
G()());a&2&&(a=b.$implicit,B(1),C("routerLinkObj",a.recentIssues),B(2),C("routerLinkObj",a.componentSettings),B(2),C("routerLinkObj",a.createIssue))},E5a=function(a){a&1&&(qe(0),O(1,"\u2026 >"),re())},F5a=function(a){a&1&&(qe(0),O(1,"\u2026"),re())},G5a=function(a){if(a&1){var b=x();F(0,"a",15);J("click",function(){z(b);var c=K(4);return A(c.compactMode$.next(!1))});M(1,E5a,2,0,"ng-container",6);M(2,F5a,2,0,"ng-container",6);G()}a&2&&(a=K().$implicit,B(1),C("ngIf",a.isSpliced),B(1),C("ngIf",a.isTruncated))},
H5a=function(a){a&1&&(qe(0),O(1," > "),re())},I5a=function(a){a&1&&(qe(0),H(1,"b-component-path-card",16,17),re());if(a&2){var b=Ce(2);a=K().$implicit;B(1);C("onedevIsHovercardReady",b.init)("componentId",a.id)}},J5a=function(a,b){a&1&&(qe(0),M(1,G5a,3,2,"a",11),F(2,"a",12),O(3),G(),M(4,H5a,2,0,"ng-container",6),F(5,"onedev-hovercard",null,13),M(7,I5a,3,2,"ng-container",14),G(),re());if(a&2){a=b.$implicit;b=b.last;var c=Ce(6);B(1);C("ngIf",a.isSpliced||a.isTruncated);B(1);le("muted",a.name==a.id);
C("routerLinkObj",a.route)("onedevHovercardTrigger",c);B(1);Ee(a.name);B(1);C("ngIf",!b)}},K5a=function(a,b){a&1&&(F(0,"span",9),M(1,J5a,8,7,"ng-container",10),G());a&2&&(a=b.$implicit,B(1),C("ngForOf",a))},L5a=function(a){a&1&&(F(0,"span"),O(1,"[Archived]"),G())},M5a=function(a){if(a&1){var b=x();F(0,"b-async-data-placeholder",2);P(1,"async");F(2,"div",3);H(3,"mat-icon",4);M(4,K5a,2,1,"span",5);P(5,"async");M(6,L5a,2,0,"span",6);P(7,"async");F(8,"button",7);J("click",function(){z(b);K().editing=
!0;return A()});H(9,"mat-icon",8);G()()()}a&2&&(a=K(),C("isReady",Q(1,3,a.isReady$)),B(4),C("ngIf",Q(5,5,a.componentPath$)),B(2),C("ngIf",Q(7,7,a.isArchived$)))},O5a=function(a){if(a&1){var b=x();F(0,"b-team-component-picker",18);J("selectedComponentChange",function(c){z(b);var d=K();d.editing=!1;c&&N5a(d.issueEditComponentService,d.issueId,c);return A()})("dropdownClosed",function(){z(b);K().editing=!1;return A()});P(1,"async");G()}a&2&&(a=K(),C("selectedComponent",Q(1,3,a.component$))("isRequired",
!0)("shouldFocus",!0))},P5a=function(a){a&1&&(F(0,"h3",3,4),O(2),G());a&2&&(a=K(),ge("title",(null==a.title?0:200<=a.title.length)?a.title:""),B(2),De(" ",a.title,"\n"))},S5a=function(a){if(a&1){var b=x();F(0,"mat-form-field",5)(1,"input",6,7);J("keyup",function(c){z(b);var d=K();return A(Q5a(d,c))})("blur",function(){z(b);var c=K();return A(Q5a(c,null))});G()()}a&2&&(a=K(),C("ngStyle",Ie(2,R5a,a.editModeWidth)),B(1),C("value",a.title))},U5a=function(a){if(a&1){var b=x();F(0,"button",8);J("click",
function(){z(b);var c=K();return A(T5a(c))});H(1,"mat-icon",9);G()}a&2&&(a=K(),C("disabled",a.disabled))},V5a=function(a){a&1&&(F(0,"div",4),H(1,"mat-icon",5),O(2),P(3,"async"),G());if(a&2){a=K();var b=Ce(4);C("onedevHovercardTrigger",b);B(2);De("",Q(3,2,a.teamName$)," ")}},W5a=function(a){a&1&&ue(0)},X5a=function(a){a&1&&(qe(0),M(1,W5a,1,0,"ng-container",14),re());if(a&2){K();var b=Ce(21);B(1);C("ngTemplateOutlet",b)}},Y5a=function(a){a&1&&(qe(0),O(1),re());a&2&&(a=K().$implicit,B(1),De(" ",a," "))},
Z5a=function(a,b){a&1&&(F(0,"div",15),H(1,"mat-icon",16),M(2,Y5a,2,1,"ng-container",17),G());if(a&2){a=b.$implicit;K();var c=Ce(18);C("onedevHovercardTrigger",c);B(2);C("ngIf",2<=a)}},$5a=function(a){a&1&&(qe(0),H(1,"b-list-issues-card",18,19),P(3,"async"),re());if(a&2){var b=Ce(2);a=K();var c=Ce(18);B(1);C("onedevIsHovercardReady",b.init)("hovercardInstance",c)("currentIssueId",a.issueId)("issueIds",Q(3,5,a.blockedByids$))("mode",a.ListIssuesHovercardMode.BLOCKED_BY_ISSUES)}},a6a=function(a,b){a&
1&&H(0,"ancestors-breadcrumbs",25);a&2&&(a=b.ngIf,b=K(3),C("ancestors",a)("issueId",b.issueId))},b6a=function(a){a&1&&(qe(0),H(1,"b-component-breadcrumb-chip",21),P(2,"async"),F(3,"div",22),M(4,a6a,1,2,"ancestors-breadcrumbs",23),P(5,"async"),H(6,"b-issue-id-picker",24),P(7,"async"),P(8,"async"),P(9,"async"),G(),re());a&2&&(a=K(2),B(1),C("componentId",Q(2,8,a.componentId$))("compactMode",!0)("issueId",a.issueId),B(3),C("ngIf",Q(5,10,a.ancestors$)),B(2),C("issueId",a.issueId)("componentId",Q(7,12,
a.componentId$))("issueTitle",Q(8,14,a.issueTitle$))("isExternalIssue",!!Q(9,16,a.isWithinExternalComponent$)))},c6a=function(a){if(a&1){var b=x();F(0,"b-team-chip",20);J("onTeamLoaded",function(){z(b);var c=K();return A(c.isTeamLoaded=!0)});P(1,"async");P(2,"async");G();M(3,b6a,10,18,"ng-container",17)}a&2&&(a=K(),C("componentId",Q(1,3,a.componentId$))("teamId",Q(2,5,a.teamId$)),B(3),C("ngIf",a.isTeamLoaded))},d6a=function(a){a&1&&(qe(0),H(1,"b-component-breadcrumb-chip",26),P(2,"async"),F(3,"div",
27),H(4,"b-issue-id-picker",28),P(5,"async"),P(6,"async"),P(7,"async"),G(),re());a&2&&(a=K(2),B(1),C("componentId",Q(2,6,a.componentId$))("issueId",a.issueId),B(3),C("issueId",a.issueId)("componentId",Q(5,8,a.componentId$))("issueTitle",Q(6,10,a.issueTitle$))("isExternalIssue",!!Q(7,12,a.isWithinExternalComponent$)))},e6a=function(a){if(a&1){var b=x();F(0,"b-team-chip",20);J("onTeamLoaded",function(){z(b);var c=K();return A(c.isTeamLoaded=!0)});P(1,"async");P(2,"async");G();M(3,d6a,8,14,"ng-container",
17)}a&2&&(a=K(),C("componentId",Q(1,3,a.componentId$))("teamId",Q(2,5,a.teamId$)),B(3),C("ngIf",a.isTeamLoaded))},f6a=function(a){return 1===a?"Blocked":"Blocked by "+a+" issues"},g6a=function(a){if(0!==a.length)return 1===a.length?gt.ISSUE(a[0]):gt.ISSUE_LIST},h6a=function(a){a&1&&(F(0,"output"),O(1),P(2,"async"),G());if(a&2){a=K().ngIf;var b=K();B(1);Fe(" ",a," of ",Q(2,2,b.currentSearchResults.totalText$)," ")}},j6a=function(a,b){if(a&1){var c=x();qe(0);M(1,h6a,3,4,"output",0);F(2,"span",1)(3,
"button",2);J("onHotkey",function(){z(c);var d=K();return A(Ss(d.currentSearchResults))})("click",function(){z(c);var d=K();return A(Ss(d.currentSearchResults))});P(4,"async");H(5,"mat-icon",3);G();F(6,"button",4);J("onHotkey",function(){z(c);var d=K();return A(Ts(d.currentSearchResults))})("click",function(){z(c);var d=K();return A(Ts(d.currentSearchResults))});P(7,"async");H(8,"mat-icon",5);G()();re()}a&2&&(a=b.ngIf,b=K(),B(1),C("ngIf",-1!==a),B(1),C("ngClass",Ie(10,i6a,-1===a)),B(1),C("hotkey",
b.HOTKEYS.GO_TO_PREVIOUS_ISSUE)("disabled",!Q(4,6,b.currentSearchResults.hasPreviousIssue$)),B(3),C("hotkey",b.HOTKEYS.GO_TO_NEXT_ISSUE)("disabled",!Q(7,8,b.currentSearchResults.hasNextIssue$)))},k6a=function(a){a&1&&H(0,"b-access-level-indicator",5);a&2&&(a=K(2).$implicit,C("accessLevel",a.accessLevel))},l6a=function(a){a&1&&H(0,"b-retention-chip",6);a&2&&(a=K(2).$implicit,C("retentionState",a.retentionState)("compactMode",!1)("modifiedTime",a.modifiedTime))},m6a=function(a){a&1&&(F(0,"div",2),M(1,
k6a,1,1,"b-access-level-indicator",3),M(2,l6a,1,3,"b-retention-chip",4),G());a&2&&(a=K().$implicit,B(1),C("ngIf",a.isShowingPublicPartner),B(1),C("ngIf",a.isShowingRetention))},n6a=function(a,b){a&1&&(qe(0),M(1,m6a,3,2,"div",1),re());a&2&&(a=b.$implicit,B(1),C("ngIf",a.isShowingPublicPartner||a.isShowingRetention))},o6a=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))},
p6a=function(a){if(a&1){var b=x();F(0,"input",3,4);J("peoplekitAutocompleteSelectionChange",function(c){z(b);var d=K();0<c.length&&(d.inputValue=c[0].result().getPrimaryTarget().getValue());return A()})("ngModelChange",function(c){z(b);var d=K();return A(d.inputValue=c)});G()}a&2&&(a=K(),C("peoplekitAutocompleteConfig",a.mergedAutocompleteConfig)("peoplekitSearchSessionOptions",a.sessionOptions)("ngModel",a.inputValue))},q6a=function(a){a&1&&ue(0)},s6a=function(a){a&1&&(qe(0),M(1,q6a,1,0,"ng-container",
6),re());a&2&&(a=K(),B(1),C("ngTemplateOutlet",a.selectedUserTemplate)("ngTemplateOutletContext",Ie(2,r6a,a.email)))},t6a=function(a){a&1&&O(0);a&2&&(a=K(),De(" ",a.email," "))},u6a=function(a){a&1&&(Nc(),F(0,"svg",7),H(1,"path",8),G())},v6a=function(a){a&1&&H(0,"b-user-membership-chip",4);if(a&2){a=K().$implicit;var b=K(),c;C("email",a)("teamId",null!==(c=b.teamId)&&void 0!==c?c:"")("enableSmallChip",!0)}},w6a=function(a,b){a&1&&M(0,v6a,1,3,"b-user-membership-chip",3);a&2&&C("ngIf",b.$implicit)},
x6a=function(a){return function(b){return rb(b,ht,1).map(function(c){return{workspaceId:c.getWorkspaceId(),workspaceName:c.getName(),issueId:a}})}},y6a=function(a){a&1&&ue(0)},z6a=function(a){a&1&&(qe(0),M(1,y6a,1,0,"ng-container",33),re());if(a&2){K();var b=Ce(67);B(1);C("ngTemplateOutlet",b)}},B6a=function(a,b){a&1&&H(0,"b-list-field",35);a&2&&(a=b.ngIf,b=K(3),C("readonly",!0)("defaultLineCount",3)("title","Team")("type",b.ListFieldType.TEAM)("values",Ie(5,A6a,a)))},C6a=function(a){a&1&&(qe(0),
M(1,B6a,1,7,"b-list-field",34),P(2,"async"),re());a&2&&(a=K(2),B(1),C("ngIf",Q(2,1,a.teamHovercardInputs$)))},E6a=function(a){if(a&1){var b=x();F(0,"div",37)(1,"b-team-warning",38);J("updateTeam",function(){z(b);var h=K(3);it(h.issueFridge,h.issueId);return A()});P(2,"async");P(3,"async");G()()}if(a&2){a=K().ngIf;var c=K().ngIf,d=K(),e,f;B(1);C("warningType",a)("componentId",c.componentId)("parentComponentId",(null==(e=Q(2,4,d.component$))?null:e.parentComponentId)||0)("teamSuggestions",null!==(f=
Q(3,6,d.teamSuggestions$))&&void 0!==f?f:He(8,D6a))}},F6a=function(a){a&1&&(qe(0),M(1,E6a,4,9,"div",36),P(2,"async"),re());a&2&&(a=K(2),B(1),C("ngIf",Q(2,1,a.shouldDisplayTeamSuggestions$)))},H6a=function(a){if(a&1){var b=x();qe(0);F(1,"b-edit-field",39,40);J("valueChange",function(f){z(b);var h=Ce(2),k=K(2);return A(G6a(k,h,null!==f&&void 0!==f?f:""))});P(3,"async");P(4,"async");P(5,"async");G();re()}if(a&2){a=K().ngIf;var c=K(),d,e;B(1);C("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",!Q(3,10,c.hasAclToEdit$))("disabled",!!Q(4,12,c.isSaving$("reporter")))("showAvailability",!0)("teamId",null!==(e=Q(5,14,c.teamId$))&&void 0!==e?e:"")}},J6a=function(a){if(a&1){var b=x();F(0,"onedev-edit-field")(1,"onedev-field-label");O(2,"Reporter");G();F(3,"onedev-field-value",41);P(4,"async");F(5,"b-user-picker",42);J("emailChange",function(e){z(b);var f=K(2);return A(I6a(f.editIssueService,f.issueId,e))});
P(6,"async");P(7,"async");G()()()}if(a&2){a=K().ngIf;var c=K(),d;B(3);C("thinking",!!Q(4,4,c.isSaving$("reporter")));B(2);C("user",a.reporterUser)("teamId",null!==(d=Q(6,6,c.teamId$))&&void 0!==d?d:"")("disabled",!Q(7,8,c.hasAclToEdit$))}},K6a=function(a){a&1&&ue(0)},L6a=function(a){a&1&&(qe(0),M(1,K6a,1,0,"ng-container",33),re());if(a&2){K();var b=Ce(69);B(1);C("ngTemplateOutlet",b)}},M6a=function(a,b){if(a&1){var c=x();F(0,"div",44);H(1,"div",45);F(2,"span",46);J("click",function(){var d=z(c).ngIf,
e=K(3);return A(jt(e,d))})("keydown.enter",function(d){var e=z(c).ngIf;jt(K(3),e);d.stopPropagation();return A(d.preventDefault())})("keydown.space",function(d){var e=z(c).ngIf;jt(K(3),e);d.stopPropagation();return A(d.preventDefault())});P(3,"async");P(4,"async");O(5);G()()}a&2&&(a=b.ngIf,b=K(3),B(2),le("disabled",!!Q(3,6,b.isSaving$("status"))),C("matTooltip",a.description||""),ge("aria-disabled",!!Q(4,8,b.isSaving$("status")))("aria-label",a.displayText||null),B(3),De(" ",a.displayText," "))},
N6a=function(a){a&1&&(qe(0),M(1,M6a,6,10,"div",43),P(2,"async"),re());a&2&&(a=K(2),B(1),C("ngIf",Q(2,1,a.issueStatusQuickAction$)))},O6a=function(a){a&1&&(H(0,"b-issue-card",47,48),P(2,"async"));if(a&2){var b=Ce(1);a=K(2);C("onedevIsHovercardReady",b.init)("issueId",Q(2,2,a.canonicalIssueId$))}},Q6a=function(a){if(a&1){var b=x();F(0,"b-estimated-effort-row",49);J("effortChange",function(e){z(b);var f=K(2);return A(P6a(f.editIssueService,f.issueId,e))});P(1,"async");P(2,"async");G()}if(a&2){a=K(2);
var c,d;C("effort",null!==(c=Q(1,2,a.effort$))&&void 0!==c?c:void 0)("effortSpec",null!==(d=Q(2,4,a.effortSpec$))&&void 0!==d?d:void 0)}},S6a=function(a){a&1&&(F(0,"div"),O(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. "),F(2,"a",55),O(3,"Learn more"),G()());a&2&&(a=K(3),B(2),C("href",R6a(a.documentationLinks),Md))},T6a=function(a){a&1&&(F(0,"div",50)(1,"span",51),O(2,"Expanded Access"),G(),F(3,"xap-bubble",
52)(4,"xap-icon-trigger"),H(5,"mat-icon",53),G(),M(6,S6a,4,1,"ng-template",null,54,Jf),G()());if(a&2){var b=Ce(7);B(3);C("panelTemplate",b)}},U6a=function(a){a&1&&(F(0,"span",61),P(1,"async"),O(2),G());if(a&2){a=K().ngIf;var b=K(4);le("disabled",!!Q(1,3,b.isSaving$("assignee")));B(2);De(" ",a.displayText," ")}},V6a=function(a,b){if(a&1){var c=x();F(0,"div",59);J("onHotkey",function(){var d=z(c).ngIf,e=K(4);return A(jt(e,d))})("click",function(){var d=z(c).ngIf,e=K(4);return A(jt(e,d))})("keydown.enter",
function(d){var e=z(c).ngIf;jt(K(4),e);d.stopPropagation();return A(d.preventDefault())})("keydown.space",function(d){var e=z(c).ngIf;jt(K(4),e);d.stopPropagation();return A(d.preventDefault())});P(1,"async");H(2,"div",45);M(3,U6a,3,5,"span",60);P(4,"async");G()}a&2&&(a=b.ngIf,b=K(4),C("hotkey",b.HOTKEYS.ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE)("matTooltip",a.description),ge("aria-disabled",!!Q(1,5,b.isSaving$("assignee")))("aria-label",a.description),B(3),C("ngIf",Q(4,7,b.hasAclToEdit$)))},W6a=function(a){a&
1&&(qe(0),M(1,V6a,5,9,"div",58),P(2,"async"),re());a&2&&(a=K(3),B(1),C("ngIf",Q(2,1,a.issueAssigneeQuickAction$)))},Y6a=function(a){if(a&1){var b=x();qe(0);F(1,"b-edit-field",56,57);J("onHotkey",function(){z(b);var f=Ce(2);return A(fp(f,null,!0,!1))})("valueChange",function(f){z(b);var h=Ce(2),k=K(2);return A(X6a(k,h,null!==f&&void 0!==f?f:""))});P(3,"async");P(4,"async");P(5,"async");G();M(6,W6a,3,3,"ng-container",0);re()}if(a&2){a=K().ngIf;var c=K(),d,e;B(1);C("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",!Q(3,12,c.hasAclToEdit$))("disabled",!!Q(4,14,c.isSaving$("assignee")))("showAvailability",!0)("teamId",null!==(e=Q(5,16,c.teamId$))&&void 0!==e?e:"");B(5);C("ngIf",c.defaultAssigneeQuickActionEnabled)}},Z6a=function(a){if(a&1){var b=x();F(0,"div",66);J("click",function(){z(b);var c=K(3);return A(kt(c.editIssueService,c.issueId,""))});O(1," Un-assign ");
G()}},$6a=function(a,b){if(a&1){var c=x();F(0,"div",68);J("onHotkey",function(){var d=z(c).ngIf,e=K(4);return A(jt(e,d))})("click",function(){var d=z(c).ngIf,e=K(4);return A(jt(e,d))})("keydown.enter",function(d){var e=z(c).ngIf;jt(K(4),e);d.stopPropagation();return A(d.preventDefault())})("keydown.space",function(d){var e=z(c).ngIf;jt(K(4),e);d.stopPropagation();return A(d.preventDefault())});P(1,"async");P(2,"async");O(3);G()}a&2&&(a=b.ngIf,b=K(4),le("disabled",!!Q(1,7,b.isSaving$("assignee"))),
C("hotkey",b.HOTKEYS.ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE)("matTooltip",a.description),ge("aria-disabled",!!Q(2,9,b.isSaving$("assignee")))("aria-label",a.description),B(3),De(" ",a.displayText," "))},a7a=function(a){a&1&&(qe(0),M(1,$6a,4,11,"div",67),P(2,"async"),re());a&2&&(a=K(3),B(1),C("ngIf",Q(2,1,a.issueAssigneeQuickAction$)))},b7a=function(a){if(a&1){var b=x();F(0,"onedev-edit-field")(1,"onedev-field-label");O(2,"Assignee");G();F(3,"onedev-field-value",41);P(4,"async");F(5,"b-user-picker",62,63);
J("onHotkey",function(){z(b);var e=Ce(6);return A(e.openPopOver())})("emailChange",function(e){z(b);var f=K(2);return A(kt(f.editIssueService,f.issueId,e))});P(7,"async");P(8,"async");G();F(9,"div",64);M(10,Z6a,2,0,"div",65);P(11,"async");M(12,a7a,3,3,"ng-container",0);P(13,"async");G()()()}if(a&2){a=K().ngIf;var c=K(),d;B(3);C("thinking",!!Q(4,7,c.isSaving$("assignee")));B(2);C("hotkey",c.HOTKEYS.CHANGE_ASSIGNEE)("user",a.assigneeUser)("teamId",null!==(d=Q(7,9,c.teamId$))&&void 0!==d?d:"")("disabled",
!Q(8,11,c.hasAclToEdit$));B(5);C("ngIf",a.assigneeUser&&Q(11,13,c.hasAclToEdit$));B(2);C("ngIf",c.defaultAssigneeQuickActionEnabled&&Q(13,15,c.hasAclToEdit$))}},d7a=function(a){if(a&1){var b=x();qe(0);F(1,"b-edit-field",69,70);J("valueChange",function(f){z(b);var h=Ce(2),k=K(2);return A(c7a(k,h,null!==f&&void 0!==f?f:""))});P(3,"async");P(4,"async");P(5,"async");G();re()}if(a&2){a=K().ngIf;var c=K(),d,e;B(1);C("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",!Q(3,10,c.hasAclToEdit$))("disabled",!!Q(4,12,c.isSaving$("verifier")))("showAvailability",!0)("teamId",null!==(e=Q(5,14,c.teamId$))&&void 0!==e?e:"")}},f7a=function(a){if(a&1){var b=x();F(0,"onedev-edit-field")(1,"onedev-field-label");O(2,"Verifier");G();F(3,"onedev-field-value",41);P(4,"async");F(5,"b-user-picker",42);J("emailChange",function(e){z(b);var f=K(2);return A(e7a(f.editIssueService,f.issueId,e))});P(6,"async");P(7,
"async");G()()()}if(a&2){a=K().ngIf;var c=K(),d;B(3);C("thinking",!!Q(4,4,c.isSaving$("verifier")));B(2);C("user",a.verifierUser)("teamId",null!==(d=Q(6,6,c.teamId$))&&void 0!==d?d:"")("disabled",!Q(7,8,c.hasAclToEdit$))}},g7a=function(a){a&1&&(F(0,"span"),O(1," Un-CC me "),G())},h7a=function(a){a&1&&(F(0,"span"),O(1," CC me "),G())},j7a=function(a){if(a&1){var b=x();F(0,"div",71);J("click",function(){z(b);var c=K(2);return A(i7a(c))})("keydown.enter",function(c){z(b);i7a(K(2));c.stopPropagation();
return A(c.preventDefault())})("keydown.space",function(c){z(b);i7a(K(2));c.stopPropagation();return A(c.preventDefault())});P(1,"async");P(2,"async");P(3,"async");P(4,"async");M(5,g7a,2,0,"span",0);P(6,"async");M(7,h7a,2,0,"span",0);P(8,"async");P(9,"async");G()}a&2&&(a=K(2),le("disabled",!!Q(1,7,a.isSaving$("ccs"))),C("matTooltip",Q(4,13,a.isCurrentUserCCd$)?"Remove yourself from CC":"Add yourself to CC"),ge("aria-disabled",!!Q(2,9,a.isSaving$("ccs")))("aria-label",Q(3,11,a.isCurrentUserCCd$)?"Remove yourself from CC":
"Add yourself to CC"),B(5),C("ngIf",Q(6,15,a.isCurrentUserCCd$)),B(2),C("ngIf",!Q(8,17,a.isCurrentUserCCd$)&&Q(9,19,a.isAllowedToEditCC$)))},k7a=function(a){a&1&&ue(0)},l7a=function(a){a&1&&(qe(0),M(1,k7a,1,0,"ng-container",33),re());if(a&2){K();var b=Ce(71);B(1);C("ngTemplateOutlet",b)}},m7a=function(a){a&1&&H(0,"b-list-field",72);if(a&2){a=K().ngIf;var b=K(2);C("readonly",!0)("defaultLineCount",3)("title","TaskFlow Workspaces")("type",b.ListFieldType.WORKSPACES)("values",a)("tooltip","Links to TaskFlow workspaces this issue belongs to")}},
n7a=function(a,b){a&1&&(qe(0),M(1,m7a,1,6,"b-list-field",20),P(2,"async"),re());a&2&&(a=b.ngIf,b=K(2),B(1),C("ngIf",Q(2,1,b.shouldDisplayWtdmUi$)&&a.length))},o7a=function(a){a&1&&H(0,"b-list-field",72);if(a&2){a=K().ngIf;var b=K();C("readonly",!0)("defaultLineCount",3)("title","Postmortems")("type",b.ListFieldType.POSTMORTEMS)("values",a.postmortems)("tooltip","Postmortems (auto-populated from a daily dump of Requiem)")}},q7a=function(a,b){a&1&&(F(0,"div"),ue(1,73),G());if(a&2){a=b.$implicit;K();
var c=Ce(83);B(1);C("ngTemplateOutlet",c)("ngTemplateOutletContext",Ie(2,p7a,a))}},r7a=function(a){a&1&&ue(0)},s7a=function(a){a&1&&(qe(0),M(1,r7a,1,0,"ng-container",33),re());if(a&2){K();var b=Ce(81);B(1);C("ngTemplateOutlet",b)}},t7a=function(a){a&1&&H(0,"hr",74)},u7a=function(a){a&1&&ue(0)},v7a=function(a){a&1&&(qe(0),M(1,u7a,1,0,"ng-container",33),re());if(a&2){K(2);var b=Ce(67);B(1);C("ngTemplateOutlet",b)}},w7a=function(a){a&1&&ue(0)},x7a=function(a){a&1&&(qe(0),M(1,w7a,1,0,"ng-container",33),
re());if(a&2){K(2);var b=Ce(69);B(1);C("ngTemplateOutlet",b)}},y7a=function(a){a&1&&ue(0)},z7a=function(a){a&1&&(qe(0),M(1,y7a,1,0,"ng-container",33),re());if(a&2){K(2);var b=Ce(71);B(1);C("ngTemplateOutlet",b)}},A7a=function(a,b){a&1&&(F(0,"div"),ue(1,73),G());if(a&2){a=b.$implicit;K(2);var c=Ce(83);B(1);C("ngTemplateOutlet",c)("ngTemplateOutletContext",Ie(2,p7a,a))}},B7a=function(a){a&1&&ue(0)},C7a=function(a){a&1&&(qe(0),M(1,B7a,1,0,"ng-container",33),re());if(a&2){K(2);var b=Ce(81);B(1);C("ngTemplateOutlet",
b)}},D7a=function(a){a&1&&(F(0,"collapsible-panel",75),P(1,"async"),M(2,v7a,2,1,"ng-container",0),P(3,"async"),M(4,x7a,2,1,"ng-container",0),P(5,"async"),M(6,z7a,2,1,"ng-container",0),P(7,"async"),M(8,A7a,2,4,"div",21),P(9,"async"),M(10,C7a,2,1,"ng-container",0),P(11,"async"),G());if(a&2){a=K(2);var b;C("titleWhenCollapsed",null!==(b=Q(1,8,a.showHiddenFieldsLabel$))&&void 0!==b?b:"")("titleWhenExpanded","Hide additional fields");B(2);C("ngIf",a.showSloStatus&&!Q(3,10,a.isSloStatusPrimary$));B(2);
C("ngIf",!Q(5,12,a.isSeverityPrimary$));B(2);C("ngIf",a.showChangelists&&!Q(7,14,a.isChangelistPrimary$));B(2);C("ngForOf",Q(9,16,a.hiddenCustomFields$))("ngForTrackBy",a.trackCustomField);B(2);C("ngIf",!Q(11,18,a.isForgottenFourPrimary$))}},F7a=function(a){if(a&1){var b=x();F(0,"b-issue-slo-box",77);J("onSnoozeChange",function(h){z(b);var k=K(3);return A(E7a(k.editIssueService,k.issueId,h))});P(1,"async");P(2,"async");P(3,"async");P(4,"async");G()}if(a&2){a=K(2).ngIf;var c=K(),d,e,f;C("sloStatus",
null!==(d=Q(1,6,c.sloStatus$))&&void 0!==d?d:void 0)("sloSnoozeUntil",a.sloSnoozeUntil)("sloId",null!==(e=Q(2,8,c.sloId$))&&void 0!==e?e:void 0)("componentId",a.componentId)("isEditable",!!Q(3,10,c.hasAclToEdit$))("issueCreationTimestamp",null!==(f=Q(4,12,c.createdTimeMicros$))&&void 0!==f?f:0)}},G7a=function(a){a&1&&M(0,F7a,5,14,"ng-template",76);a&2&&(a=K(2),C("refreshable",a.refreshMonitor.getObservable()))},I7a=function(a){if(a&1){var b=x();F(0,"b-edit-field",78);J("valueChange",function(d){z(b);
var e=K(2);return A(H7a(e.editIssueService,e.issueId,null!==d&&void 0!==d?d:""))});P(1,"async");P(2,"async");G()}if(a&2){a=K().ngIf;var c=K();C("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",!Q(1,8,c.hasAclToEdit$))("disabled",!!Q(2,10,c.isSaving$("severity")))}},J7a=function(a){if(a&1){var b=x();F(0,"insights-graph-btn",82);J("pressed",
function(){z(b);var c=K(3).issueInsightsSidebarService;eo(c.analytics,io.SIDEBAR,"ingress-click");c.openSidebar("deployments");return A()});G()}},L7a=function(a){if(a&1){var b=x();F(0,"b-list-field",79);J("valuesChange",function(h){z(b);var k=K(2);return A(K7a(k.editIssueService,k.issueId,h.values))});P(1,"async");P(2,"async");F(3,"div",80);M(4,J7a,1,0,"insights-graph-btn",81);P(5,"async");G()();H(6,"b-list-field",72);P(7,"async");P(8,"async");P(9,"async")}if(a&2){a=K().ngIf;var c=K(),d,e,f;C("readonly",
!Q(1,15,c.hasAclToEdit$))("defaultLineCount",3)("title","Changelists")("type",c.ListFieldType.CHANGELISTS)("values",a.changelist)("listFieldDisabled",!!Q(2,17,c.isSaving$("changelists")));B(4);C("ngIf",Q(5,19,c.issueInsightsSidebarService.shouldShowInsightsGraphButton$));B(2);le("bv2-issue-metadata-error",null==(d=Q(7,21,c.pendingChangelists$))?null:d.hasError);C("readonly",!0)("defaultLineCount",3)("title","Pending Changelists")("type",c.ListFieldType.CHANGELISTS)("values",null!==(e=null==(e=Q(8,
23,c.pendingChangelists$))?null:e.cls)&&void 0!==e?e:He(27,D6a))("tooltip",(null==(f=Q(9,25,c.pendingChangelists$))?0:f.hasError)?"Error fetching pending CLs":"Pending changelists (auto-populated)")}},N7a=function(a){if(a&1){var b=x();F(0,"b-edit-field",83);J("valueChange",function(d){z(b);var e=K(2);return A(M7a(e.editIssueService,e.issueId,null!==d&&void 0!==d?d:""))});P(1,"csv");P(2,"async");P(3,"async");G()}if(a&2){a=K().ngIf;var c=K();C("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",Q(1,8,a.foundInVersion))("readonly",!Q(2,10,c.hasAclToEdit$))("disabled",!!Q(3,12,c.isSaving$("foundInVersion")))}},P7a=function(a){if(a&1){var b=x();F(0,"b-edit-field",84);J("valueChange",function(d){z(b);var e=K(2);return A(O7a(e.editIssueService,e.issueId,null!==d&&void 0!==d?d:""))});P(1,"csv");P(2,"async");P(3,"async");G()}if(a&2){a=K().ngIf;var c=K();C("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",Q(1,8,a.targetedToVersion))("readonly",!Q(2,10,c.hasAclToEdit$))("disabled",!!Q(3,12,c.isSaving$("targetedToVersion")))}},R7a=function(a){if(a&1){var b=x();F(0,"b-edit-field",83);J("valueChange",function(d){z(b);var e=K(2);return A(Q7a(e.editIssueService,e.issueId,null!==d&&void 0!==d?d:""))});P(1,"csv");P(2,"async");P(3,"async");
G()}if(a&2){a=K().ngIf;var c=K();C("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",Q(1,8,a.verifiedInVersion))("readonly",!Q(2,10,c.hasAclToEdit$))("disabled",!!Q(3,12,c.isSaving$("verifiedInVersion")))}},T7a=function(a){if(a&1){var b=x();F(0,"b-edit-field",85);J("valueChange",function(d){z(b);var e=K(2);return A(S7a(e.editIssueService,e.issueId,
null!==d&&void 0!==d?d:!1))});P(1,"async");P(2,"async");G()}if(a&2){a=K().ngIf;var c=K();C("name","inProd")("title","In Prod")("type",c.FieldType.BOOL)("value",a.inProd)("tooltip","Set if this issue occurs in production")("readonly",!Q(1,7,c.hasAclToEdit$))("disabled",!!Q(2,9,c.isSaving$("inProd")))}},U7a=function(a){a&1&&ue(0)},V7a=function(a){a&1&&ue(0)},W7a=function(a){a&1&&ue(0)},X7a=function(a){a&1&&ue(0)},Y7a=function(a){a&1&&(F(0,"div",4),M(1,U7a,1,0,"ng-container",33),M(2,V7a,1,0,"ng-container",
33),M(3,W7a,1,0,"ng-container",33),M(4,X7a,1,0,"ng-container",33),G());if(a&2){K();var b=Ce(73),c=Ce(75),d=Ce(77),e=Ce(79);B(1);C("ngTemplateOutlet",b);B(1);C("ngTemplateOutlet",c);B(1);C("ngTemplateOutlet",d);B(1);C("ngTemplateOutlet",e)}},$7a=function(a,b){if(a&1){var c=x();F(0,"b-custom-field-editor",86);J("save",function(e){var f=z(c).$implicit,h=K(2);return A(Z7a(h.editIssueService,h.issueId,f.customFieldId,e))});P(1,"async");P(2,"async");G()}if(a&2){a=b.$implicit;b=K().ngIf;var d=K();C("issue",
b)("field",a)("readonly",!Q(1,4,d.hasAclToEdit$))("disabled",!!Q(2,6,d.isSaving$(a.customFieldId)))}},f8a=function(a,b){if(a&1){var c=x();qe(0);M(1,z6a,2,1,"ng-container",0);P(2,"async");M(3,C6a,3,3,"ng-container",0);M(4,F6a,3,3,"ng-container",0);P(5,"async");M(6,H6a,6,16,"ng-container",1);M(7,J6a,8,10,"ng-template",null,2,Jf);F(9,"b-edit-field",3);J("valueChange",function(v){z(c);var y=K();return A(a8a(y.editIssueService,y.issueId,null!==v&&void 0!==v?v:""))});P(10,"async");P(11,"async");G();F(12,
"div",4)(13,"b-edit-field",5);J("onHotkey",function(v){z(c);var y=K();(v=b8a("P"+v))&&c8a(y.editIssueService,y.issueId,v);return A()})("valueChange",function(v){z(c);var y=K();return A(c8a(y.editIssueService,y.issueId,null!==v&&void 0!==v?v:""))});P(14,"async");P(15,"async");G();M(16,L6a,2,1,"ng-container",0);P(17,"async");G();F(18,"div",6)(19,"b-edit-field",7);J("valueChange",function(v){z(c);var y=K();return A(d8a(y,null!==v&&void 0!==v?v:""))});P(20,"async");P(21,"async");P(22,"async");P(23,"async");
G();M(24,N6a,3,3,"ng-container",0);P(25,"async");G();F(26,"onedev-hovercard",null,8);M(28,O6a,3,4,"b-issue-card",9);G();M(29,Q6a,3,6,"b-estimated-effort-row",10);P(30,"async");P(31,"async");F(32,"div",11);P(33,"async");M(34,T6a,8,1,"div",12);P(35,"async");F(36,"div",13);M(37,Y6a,7,18,"ng-container",1);M(38,b7a,14,17,"ng-template",null,14,Jf);G();M(40,d7a,6,16,"ng-container",1);M(41,f7a,8,10,"ng-template",null,15,Jf);F(43,"b-list-field",16,17);J("valuesChange",function(v){z(c);var y=Ce(44),E=K();return A(e8a(E,
y,v.values))});P(45,"async");P(46,"async");P(47,"async");F(48,"div",18);M(49,j7a,10,21,"div",19);P(50,"async");P(51,"async");P(52,"async");G()()();M(53,l7a,2,1,"ng-container",0);P(54,"async");M(55,n7a,3,3,"ng-container",0);P(56,"async");M(57,o7a,1,6,"b-list-field",20);M(58,q7a,2,4,"div",21);P(59,"async");M(60,s7a,2,1,"ng-container",0);P(61,"async");M(62,t7a,1,0,"hr",22);P(63,"async");M(64,D7a,12,20,"collapsible-panel",23);P(65,"async");M(66,G7a,1,1,"ng-template",null,24,Jf);M(68,I7a,3,12,"ng-template",
null,25,Jf);M(70,L7a,10,28,"ng-template",null,26,Jf);M(72,N7a,4,14,"ng-template",null,27,Jf);M(74,P7a,4,14,"ng-template",null,28,Jf);M(76,R7a,4,14,"ng-template",null,29,Jf);M(78,T7a,3,11,"ng-template",null,30,Jf);M(80,Y7a,5,4,"ng-template",null,31,Jf);M(82,$7a,3,8,"ng-template",null,32,Jf);re()}if(a&2){a=b.ngIf;var d=Ce(8),e=Ce(27),f=Ce(39),h=Ce(42);b=K();var k,q;B(1);C("ngIf",b.showSloStatus&&Q(2,58,b.isSloStatusPrimary$));B(2);C("ngIf",b.sessionIsInternal);B(1);C("ngIf",Q(5,60,b.teamWarningType$));
B(2);C("ngIf",!b.enablePeoplekitAc)("ngIfElse",d);B(3);C("name","type")("title","Type")("type",b.FieldType.ENUM)("value",a.type)("choices",b.typeChoices)("readonly",!Q(10,62,b.hasAclToEdit$))("disabled",!!Q(11,64,b.isSaving$("type")));B(4);C("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",!Q(14,66,b.hasAclToEdit$))("disabled",
!!Q(15,68,b.isSaving$("priority")));B(3);C("ngIf",Q(17,70,b.isSeverityPrimary$));B(3);C("name","status")("title","Status")("type",b.FieldType.ENUM)("value",a.status)("choices",null!==(k=Q(20,72,b.statusChoices$))&&void 0!==k?k:He(114,D6a))("readonly",!Q(21,74,b.hasAclToEdit$))("disabled",!!Q(22,76,b.isSaving$("status")))("onedevHovercardActive",!!Q(23,78,b.canonicalIssueId$))("onedevHovercardTrigger",e);B(5);C("ngIf",Q(25,80,b.hasAclToEdit$));B(5);C("ngIf",b.sessionIsInternal&&Q(30,82,b.isEffortEnabled$)&&
!Q(31,84,b.isWithinExternalComponent$));B(3);le("implicit-access-box",Q(33,86,b.showImplicitAccessIndicator$));B(2);C("ngIf",Q(35,88,b.showImplicitAccessIndicator$));B(3);C("ngIf",!b.enablePeoplekitAc)("ngIfElse",f);B(3);C("ngIf",!b.enablePeoplekitAc)("ngIfElse",h);B(3);C("defaultLineCount",5)("readonly",!Q(45,90,b.isAllowedToEditCC$))("title","CC")("type",b.ListFieldType.CCS)("isUser",!0)("values",a.cc)("users",a.ccUsers)("listFieldDisabled",!!Q(46,92,b.isSaving$("ccs")))("teamId",null!==(q=Q(47,
94,b.teamId$))&&void 0!==q?q:"");B(6);C("ngIf",Q(50,96,b.isCurrentUserCCd$)||!Q(51,98,b.isCurrentUserCCd$)&&Q(52,100,b.isAllowedToEditCC$));B(4);C("ngIf",b.showChangelists&&Q(54,102,b.isChangelistPrimary$));B(2);C("ngIf",Q(56,104,b.workspaces$));B(2);C("ngIf",!b.sessionIsExternal&&(null==a.postmortems?null:a.postmortems.length));B(1);C("ngForOf",Q(59,106,b.visibleCustomFields$))("ngForTrackBy",b.trackCustomField);B(2);C("ngIf",Q(61,108,b.isForgottenFourPrimary$));B(2);C("ngIf",Q(63,110,b.hasHiddenFields$));
B(2);C("ngIf",Q(65,112,b.hasHiddenFields$))}},g8a=function(a){a&1&&H(0,"edit-issue-metadata",5);a&2&&(a=K(),C("issueId",a.issueId))},h8a=function(a,b){a&1&&(F(0,"h2",3),O(1),G());a&2&&(a=b.ngIf,B(1),De("Issue ",a,""))},i8a=function(a){a&1&&(F(0,"a",15),O(1,"Learn more"),G())},j8a=function(a){if(a&1){var b=x();F(0,"button",16);J("click",function(){var c=z(b).ngIf,d=K(3);return A(d.editIssueService.unarchive(c))});O(1," Unarchive ");G()}},k8a=function(a){a&1&&(F(0,"b-callout",12)(1,"b-callout-body"),
O(2,"This issue has been archived. "),M(3,i8a,2,0,"a",13),G(),F(4,"b-callout-actions"),M(5,j8a,2,0,"button",14),P(6,"async"),G()());a&2&&(a=K(2),C("messageType","caution")("format","app")("iconOverride","archive_24px"),B(3),C("ngIf",a.activeSession.isInternalSession()),B(2),C("ngIf",Q(6,5,a.id$)))},l8a=function(a){a&1&&(F(0,"a",19),O(1,"Learn more"),G())},m8a=function(a){a&1&&(F(0,"b-callout",17)(1,"b-callout-body"),O(2," This issue is in an archived component. "),M(3,l8a,2,0,"a",18),G()());a&2&&
(a=K(2),C("format","app")("iconOverride","archive_24px"),B(3),C("ngIf",a.activeSession.isInternalSession()))},n8a=function(a,b){a&1&&(qe(0),O(1," Reason: "),F(2,"code"),O(3),G(),O(4,". "),re());a&2&&(a=b.$implicit,B(3),Ee(a))},o8a=function(a){a&1&&(F(0,"a",24),O(1,"Learn more"),G())},q8a=function(a){if(a&1){var b=x();F(0,"button",25);J("click",function(){var d=z(b).ngIf,e=K(3);return A(p8a(e.editIssueService,d))});P(1,"async");P(2,"async");O(3," Undelete ");G()}if(a&2){a=K(3);var c;C("matTooltip",
null!==(c=Q(1,2,a.undeleteButtonTooltip$))&&void 0!==c?c:"")("disabled",!Q(2,4,a.permissions.canUndeleteIssue$))}},r8a=function(a){a&1&&(F(0,"b-callout",20)(1,"b-callout-body"),O(2," This issue has been deleted. "),M(3,n8a,5,1,"ng-container",21),P(4,"async"),M(5,o8a,2,0,"a",22),G(),F(6,"b-callout-actions"),M(7,q8a,4,6,"button",23),P(8,"async"),G()());if(a&2){a=K(2);var b;B(3);C("ngIf",null==(b=Q(4,3,a.snapshot$))?null:b.deletionReason);B(2);C("ngIf",a.activeSession.isInternalSession());B(2);C("ngIf",
Q(8,5,a.id$))}},s8a=function(a,b){a&1&&(F(0,"output",37),O(1),G());a&2&&(a=b.$implicit,B(1),De(" ",a," "))},u8a=function(a,b){a&1&&(F(0,"a",34,35),O(2),M(3,s8a,2,1,"output",36),P(4,"async"),G());if(a&2){a=b.$implicit;var c=Ce(1);C("routerLink",a.link)("active",c.isActive)("routerLinkActiveOptions",He(7,t8a));B(2);De(" ",a.title," ");B(1);C("ngIf",Q(4,5,a.count$))}},v8a=function(a,b){a&1&&(F(0,"header",26),H(1,"aside",27),P(2,"async"),P(3,"async"),F(4,"div",28),P(5,"async"),P(6,"async"),P(7,"async"),
H(8,"issue-banner",29),F(9,"aside",30)(10,"div",31),H(11,"chip-indicators")(12,"b-pagination-one-issue"),G(),H(13,"issue-actions",29),G()(),F(14,"nav",32),M(15,u8a,5,8,"a",33),G()());a&2&&(a=b.$implicit,b=K(2),B(1),Be("title","[",Q(2,10,b.prettyStatus$),"] ",Q(3,12,b.title$),""),B(3),le("overline",b.STATUS_IS_FEATURED[Q(5,14,b.status$)])("color-field",b.STATUS_IS_FEATURED[Q(6,16,b.status$)]),ze("ngClass","status",Q(7,18,b.status$),""),B(4),C("issueId",a),B(5),C("issueId",a),B(2),C("ngForOf",b.tabs))},
w8a=function(a,b){a&1&&H(0,"issue-metadata-sidebar",29);a&2&&C("issueId",b.ngIf)},x8a=function(a){a&1&&(F(0,"div",4),P(1,"async"),M(2,k8a,7,7,"b-callout",5),P(3,"async"),M(4,m8a,4,3,"b-callout",6),P(5,"async"),M(6,r8a,9,7,"b-callout",7),P(7,"async"),M(8,v8a,16,20,"header",8),P(9,"async"),F(10,"div",9)(11,"article",10),H(12,"router-outlet"),G(),M(13,w8a,1,1,"issue-metadata-sidebar",11),P(14,"async"),G()());a&2&&(a=K(),le("issue-editor-false",!Q(1,7,a.permissions.hasAclToEdit$)),B(2),C("ngIf",Q(3,9,
a.archived$)),B(2),C("ngIf",Q(5,11,a.inArchivedComponent$)),B(2),C("ngIf",Q(7,13,a.deleted$)),B(2),C("ngIf",Q(9,15,a.id$)),B(5),C("ngIf",Q(14,17,a.id$)))},y8a=function(a){a&1&&(F(0,"div",38),H(1,"b-access-denied-metadata",39),P(2,"async"),G());a&2&&(a=K(),B(1),C("issueMetadata",Q(2,1,a.issueMetadata$)))},z8a=function(a,b){a&1&&(qe(0),H(1,"b-issues-table",1),re());a&2&&(a=b.ngIf,b=K(),B(1),C("issueIds",a)("menuItemFactory",b.getMenuItems)("tableColumns",b.tableColumns)("initialSort",b.initialSort))},
B8a=function(a){if(a&1){var b=x();F(0,"div",5);H(1,"img",6);F(2,"p",7);O(3," This issue has no duplicates ");G();F(4,"p",8);O(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"). ');F(6,"a",9);O(7,"Learn more");G()();F(8,"button",10);J("click",function(){z(b);var c=K(2);return A(A8a(c))});O(9," Add ");G()()}a&2&&(a=K(2),B(1),C("src",a.ROBOT_SLEEPING,Md))},C8a=function(a){a&
1&&H(0,"b-duplicates-table",15);if(a&2){a=K(2).$implicit;var b=K();C("issueId",b.lastKnownId)("duplicateIds",a)}},D8a=function(a,b){a&1&&(qe(0),F(1,"a",16),O(2," View as search results "),G(),re());a&2&&(a=b.ngIf,B(1),C("routerLink",a.path)("queryParams",a.params))},E8a=function(a){if(a&1){var b=x();F(0,"h4",11);O(1,"Duplicates ");F(2,"button",12);J("click",function(){z(b);var c=K(2);return A(A8a(c))});O(3," Add ");G()();M(4,C8a,1,2,"b-duplicates-table",13);F(5,"aside",14);M(6,D8a,3,2,"ng-container",
1);P(7,"async");G()}a&2&&(a=K(2),B(4),C("ngIf",a.lastKnownId),B(2),C("ngIf",Q(7,2,a.dupeUrl$)))},F8a=function(a,b){a&1&&(qe(0),M(1,B8a,10,1,"div",3),M(2,E8a,8,4,"ng-template",null,4,Jf),re());if(a&2){a=b.$implicit;var c=Ce(3);B(1);C("ngIf",0===a.length)("ngIfElse",c)}},G8a=function(a){a&1&&(F(0,"aside",17),H(1,"b-spinner"),G())},H8a=function(a){a&1&&(qe(0),H(1,"mat-icon",4),O(2,"Oldest first"),re())},I8a=function(a){a&1&&(qe(0),H(1,"mat-icon",5),O(2,"Newest first"),re())},J8a=function(a){switch(a){case 0:return"RETENTION_UNSPECIFIED";
case 1:return"COMPONENT_DEFAULT";case 2:return"INDEFINITE";default:return mh(a,"Unexpected retention model")}},K8a=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}},L8a=function(a){a&1&&H(0,"b-restricted-chip",10);a&2&&(a=K(),C("label",
a.getRestrictedLabel())("retentionState",null==a.attachment?null:a.attachment.piiRetentionState)("contentType","attachment"))},M8a=function(a){a&1&&(F(0,"span",11),H(1,"b-actions-menu",12),G());a&2&&(a=K(),B(1),C("menuItems",a.actionMenuItems)("buttonLabel","Attachment actions")("matTooltip","Attachment actions"))},P8a=function(a){if(a&1){var b=x();F(0,"span")(1,"b-conditional-link",13);J("customHandler",function(){z(b);var c=K();c.isRestricted()?N8a(c,!1):c.domSafe.openInNewTab(lt(c,!1));return A()});
G()()}a&2&&(a=K(),oe("bv2-issue-attachment-link ",O8a(a),""),B(1),C("isGreyedOut",!a.hasViewAccess)("displayName","View")("linkUrl",lt(a,!1))("linkEnabled",!0)("useCustomHandler",!0))},Q8a=function(a){if(a&1){var b=x();F(0,"span")(1,"b-conditional-link",13);J("customHandler",function(){z(b);var c=K();c.isRestricted()?N8a(c,!0):c.domSafe.openInNewTab(lt(c,!0));return A()});G()()}a&2&&(a=K(),oe("bv2-issue-attachment-link ",O8a(a),""),B(1),C("isGreyedOut",!a.hasViewAccess)("displayName","Download")("linkUrl",
lt(a,!0))("linkEnabled",!0)("useCustomHandler",!0))},R8a=function(a){a&1&&(F(0,"span",14)(1,"a",15),H(2,"mat-icon",16),G()());a&2&&(a=K(),B(1),C("href",a.documentationLinks.getRestrictedAccessHelpLink(),Md)("disableRipple",!0),B(1),C("svgIcon","help-outline"))},S8a=function(a){a&1&&(F(0,"div",17),O(1," You do not have access to this restricted attachment. "),F(2,"a",18),O(3,"Learn more"),G()());a&2&&(a=K(),B(2),C("href",a.documentationLinks.getRestrictedAccessHelpLink(),Md))},U8a=function(a){if(a&
1){var b=x();F(0,"button",18,19);J("click",function(){z(b);var c=K(2);return A(T8a(c))});H(2,"mat-icon",20);G()}},V8a=function(a){a&1&&(qe(0),O(1," on behalf of "),H(2,"b-user-display",6),P(3,"async"),F(4,"onedev-hovercard",null,21),H(6,"b-issue-person-card",8),P(7,"async"),G(),re());if(a&2){var b=Ce(5);a=K(2);B(2);C("onedevHovercardTrigger",b)("model",Q(3,3,a.reporterUser$));B(4);C("email",Q(7,5,a.reporterUserEmailAddress$))}},W8a=function(a,b){if(a&1){var c=x();F(0,"a",22);J("click",function(d){var e=
z(c).$implicit;K(2).issueReferenceResolver.visit({issueId:e,elementId:"comment1",event:d});return A()});O(1);G()}a&2&&(a=b.$implicit,b=K().$implicit,K(),C("routerLinkObj",nn(a,{comment:1})),ge("aria-label","Comment number"+b.commentNumber),B(1),De(" #",b.commentNumber,""))},Y8a=function(a){a&1&&(qe(0),F(1,"span",23),O(2," \u2022 Edited"),G(),re());if(a&2){a=K().$implicit;var b=K();B(1);C("matTooltip",X8a(b,a))}},Z8a=function(a){a&1&&(qe(0),F(1,"p",24),O(2," Comment has been deleted. "),G(),re())},
$8a=function(a){if(a&1){var b=x();F(0,"b-restricted-comment-placeholder",27);J("onConfirm",function(){z(b);var c=K().ngIf,d=K(3).$implicit,e=K();return A(e.loadRestrictedComment(c,d))});P(1,"async");G()}a&2&&(a=K(5),C("disabled",!Q(1,1,a.mayReadPii$)))},a9a=function(a){a&1&&(qe(0),M(1,$8a,2,3,"b-restricted-comment-placeholder",26),P(2,"async"),re());a&2&&(a=K(4),B(1),C("ngIf",Q(2,1,a.shouldShowRestrictedPlaceholder$)))},b9a=function(a){a&1&&(qe(0),M(1,a9a,3,3,"ng-container",9),P(2,"async"),re());
a&2&&(a=K(3),B(1),C("ngIf",Q(2,1,a.id$)))},c9a=function(a,b){a&1&&(H(0,"b-note-container",30),P(1,"async"),P(2,"async"));if(a&2){a=b.$implicit;b=K(4);var c;C("issueId",null!==(c=Q(1,4,b.idAsNumber$))&&void 0!==c?c:0)("issueAccessLevel",Q(2,6,b.accessLevel$))("note",a)("formattingMode",b.formattingMode)}},d9a=function(a){if(a&1){var b=x();F(0,"div",31)(1,"div",32);O(2,"This issue has no description, click the update button to add one.");G();F(3,"button",33);J("click",function(){z(b);var c=K(4);return A(T8a(c))});
H(4,"mat-icon",34);O(5,"Update");G()()}},e9a=function(a){a&1&&(M(0,c9a,3,8,"b-note-container",28),P(1,"async"),M(2,d9a,6,0,"div",29));if(a&2){a=K(2).$implicit;var b=K();C("ngIf",""!==a.unlinkifiedComment&&Q(1,2,b.firstNote$));B(2);C("ngIf",""===a.unlinkifiedComment)}},f9a=function(a){a&1&&(M(0,b9a,3,3,"ng-container",15),P(1,"async"),M(2,e9a,3,4,"ng-template",null,25,Jf));if(a&2){var b=Ce(3);a=K(2);C("ngIf",Q(1,2,a.isRedacted$))("ngIfElse",b)}},g9a=function(a,b){a&1&&(F(0,"div",37),H(1,"b-attachment-viewer",
38),P(2,"async"),G());if(a&2){a=b.$implicit;b=K(3);var c;ze("id","attachment",a.attachmentId,"");B(1);C("issueId",null!==(c=Q(2,4,b.idAsNumber$))&&void 0!==c?c:0)("attachment",a)("attachmentUploader",b.getUserEmailIfAvailable())}},h9a=function(a){a&1&&(F(0,"div",35),M(1,g9a,3,6,"div",36),G());a&2&&(a=K().$implicit,B(1),C("ngForOf",a.attachments))},j9a=function(a,b){a&1&&(F(0,"div",1)(1,"h4",2)(2,"div",3)(3,"span",4),O(4,"Description"),G(),M(5,U8a,3,0,"button",5),H(6,"b-user-display",6),F(7,"onedev-hovercard",
null,7),H(9,"b-issue-person-card",8),G(),O(10," created issue "),M(11,V8a,8,7,"ng-container",9),P(12,"async"),P(13,"async"),M(14,W8a,2,3,"a",10),P(15,"async"),M(16,Y8a,3,1,"ng-container",9),P(17,"async"),G(),F(18,"div",11),H(19,"b-formatted-date-time",12)(20,"b-actions-menu",13,14),P(22,"async"),G()(),M(23,Z8a,3,0,"ng-container",15),P(24,"async"),M(25,f9a,4,4,"ng-template",null,16,Jf),M(27,h9a,2,1,"div",17),G());if(a&2){a=b.$implicit;var c=Ce(8),d=Ce(26);b=K();var e;B(5);C("ngIf",b.canEditComment());
B(1);C("onedevHovercardTrigger",c)("model",a.userPerformingActionUser);B(3);C("email",b.getUserEmailIfAvailable());B(2);C("ngIf",Q(12,13,b.reporterUser$)&&Q(13,15,b.isAuthorNotReporter$));B(3);C("ngIf",a.commentNumber&&Q(15,17,b.idAsNumber$));B(2);C("ngIf",Q(17,19,b.isShowCommentHistoryActionInMenu$));B(3);C("timestamp",a.modifiedDate);B(1);C("buttonLabel","Description actions")("menuItems",null!==(e=Q(22,21,b.commentActionMenuItems$))&&void 0!==e?e:He(25,i9a));B(3);C("ngIf",Q(24,23,b.isDeleted$))("ngIfElse",
d);B(4);C("ngIf",null==a?null:null==a.attachments?null:a.attachments.length)}},k9a=function(a){a&1&&H(0,"mat-icon",3)},l9a=function(a){a&1&&H(0,"b-spinner")},m9a=function(a){a&1&&ue(0)},n9a=function(a){a&1&&(qe(0),M(1,m9a,1,0,"ng-container",7),re());if(a&2){K();var b=Ce(14);B(1);C("ngTemplateOutlet",b)}},o9a=function(a){a&1&&ue(0)},p9a=function(a){a&1&&(qe(0),M(1,o9a,1,0,"ng-container",7),re());if(a&2){K();var b=Ce(6);B(1);C("ngTemplateOutlet",b)}},s9a=function(a){if(a&1){var b=x();F(0,"button",8);
J("click",function(){z(b);var c=K();return A(q9a(c))});O(1," Create ");G()}a&2&&(a=K(),C("disabled",!(0<r9a(a).length)))},t9a=function(a){if(a&1){var b=x();F(0,"button",9);J("click",function(){z(b);var c=K();return A(mt(c))});O(1);G()}a&2&&(a=K(),C("mat-dialog-close",!0)("matTooltip",a.saveBtnTooltip)("disabled",a.pristine),ge("aria-label",a.saveBtnTooltip),B(1),De(" ",a.saveBtnLabel," "))},v9a=function(a,b){if(a&1){var c=x();qe(0);F(1,"div",26,27);P(3,"async");F(4,"mat-list-option",28);J("focus",
function(){z(c);var h=Ce(2);return A(h.show())})("blur",function(){z(c);var h=Ce(2);return A(h.hide())});P(5,"async");ue(6,29);G()();re()}if(a&2){a=b.$implicit;b=K(5);var d=Ce(12),e,f;B(1);C("matTooltip",!1===(null==(e=Q(3,8,a.permissions$))?null:e.appender)?b.NO_ACCESS_MESSAGE:"");B(3);ke("height",b.compactHotlistItemHeight,"px");C("selected",b.selectedHotlistIds.has(a.hotlistId))("disabled",!1===(null==(f=Q(5,10,a.permissions$))?null:f.appender))("value",a.hotlistId);B(2);C("ngTemplateOutlet",d)("ngTemplateOutletContext",
Ie(12,u9a,a))}},w9a=function(a,b){a&1&&(qe(0),F(1,"div",24),P(2,"async"),M(3,v9a,7,14,"ng-container",25),G(),re());a&2&&(a=b.$implicit,b=K(4),B(1),ke("overflow","auto")("height",Q(2,6,b.hotlistViewportContainerHeight$),"px"),B(2),C("ngForOf",a)("ngForTrackBy",b.trackByHotlistId))},x9a=function(a){a&1&&(qe(0),M(1,w9a,4,8,"ng-container",19),P(2,"async"),P(3,"stagedHotlistSlice"),re());a&2&&(a=K().$implicit,B(1),C("ngIf",Q(2,1,Q(3,3,a))))},z9a=function(a,b){if(a&1){var c=x();qe(0);F(1,"div",26,27);P(3,
"async");F(4,"mat-list-option",28);J("focus",function(){z(c);var h=Ce(2);return A(h.show())})("blur",function(){z(c);var h=Ce(2);return A(h.hide())});P(5,"async");ue(6,29);G()();re()}if(a&2){a=b.$implicit;b=K(4);var d=Ce(12),e,f;B(1);C("matTooltip",!1===(null==(e=Q(3,8,a.permissions$))?null:e.appender)?b.NO_ACCESS_MESSAGE:"");B(3);ke("height","auto");C("selected",b.selectedHotlistIds.has(a.hotlistId))("disabled",!1===(null==(f=Q(5,10,a.permissions$))?null:f.appender))("value",a.hotlistId);B(2);C("ngTemplateOutlet",
d)("ngTemplateOutletContext",Ie(12,y9a,a))}},A9a=function(a){a&1&&M(0,z9a,7,14,"ng-container",25);if(a&2){a=K().$implicit;var b=K(2);C("ngForOf",a)("ngForTrackBy",b.trackByHotlistId)}},B9a=function(a){a&1&&(qe(0),M(1,x9a,4,5,"ng-container",0),P(2,"async"),M(3,A9a,1,2,"ng-template",null,23,Jf),re());if(a&2){var b=Ce(4);a=K(2);B(1);C("ngIf",Q(2,2,a.isCompactMode$))("ngIfElse",b)}},C9a=function(a){a&1&&(F(0,"div",30),O(1," (The number of hotlists is large: presenting in compact form.) "),G())},E9a=function(a){if(a&
1){var b=x();F(0,"button",31);J("click",function(){z(b);var c=K(2),d=Ki(c.query$.value);c.allHotlistIds.has(d)?(c.selectedHotlistIds.add(d),mt(c)):D9a(c,d);return A()});O(1);P(2,"async");F(3,"span",32);O(4,"(add hotlist by ID)");G()()}a&2&&(a=K(2),B(1),De(" ",Q(2,1,a.query$)," "))},F9a=function(a){if(a&1){var b=x();F(0,"button",33);J("click",function(){z(b);K(2).showCreateNewPane=!0;return A()});O(1);P(2,"async");F(3,"span",32);O(4,"(create new)");G()()}a&2&&(a=K(2),B(1),De(" ",Q(2,1,a.query$)," "))},
H9a=function(a){if(a&1){var b=x();F(0,"header",10)(1,"h2");O(2,"Search for Hotlists");G();F(3,"div",11);H(4,"mat-icon",12);F(5,"input",13,14);J("input",function(){z(b);var c=Ce(6);K().query$.next(c.value);return A()});G()()();F(7,"section",15,16)(9,"mat-selection-list",17,18);J("selectionChange",function(c){z(b);var d=K();return A(G9a(d,c))});M(11,B9a,5,4,"ng-container",19);P(12,"async");G();M(13,C9a,2,0,"div",20);P(14,"async");M(15,E9a,5,3,"button",21);P(16,"async");M(17,F9a,5,3,"button",22);P(18,
"async");G()}a&2&&(a=K(),B(11),C("ngIf",Q(12,4,a.visibleHotlists$)),B(2),C("ngIf",Q(14,6,a.isCompactMode$)),B(2),C("ngIf",Q(16,8,a.showLoadById$)),B(2),C("ngIf",Q(18,10,a.showCreateNew$)))},I9a=function(a){if(a&1){var b=x();F(0,"b-star-toggle",41);J("starClicked",function(){z(b);var d=K(2).hotlist,e=K();return A(e.toggleStar(d.hotlistId))});P(1,"async");P(2,"async");G()}if(a&2){a=K(2).hotlist;var c=K();C("starMessage","Star this hotlist")("unStarMessage","Un-star this hotlist")("acceptInput",!Q(1,
4,Qs(c.isSavingStar,a.hotlistId)))("starred",Q(2,6,Qs(c.starredHotlists,a.hotlistId)))}},J9a=function(a){a&1&&(F(0,"p",42),O(1),G());a&2&&(a=K(2).hotlist,B(1),De(" ",a.description," "))},K9a=function(a){a&1&&(qe(0),F(1,"div",34)(2,"label",35),O(3),G(),F(4,"span",36),M(5,I9a,3,8,"b-star-toggle",37),F(6,"a",38),J("click",function(d){return d.stopPropagation()})("keydown.enter",function(d){return d.stopPropagation()}),H(7,"mat-icon",39),G()()(),M(8,J9a,2,1,"p",40),re());if(a&2){var b=K();a=b.hotlist;
b=b.isCompact;var c=K();B(3);De(" ",a.name," ");B(2);C("ngIf",c.shouldShowStar(a));B(1);C("routerLink",c.paths.viewHotlist(a.hotlistId));B(2);C("ngIf",!b&&a.description)}},L9a=function(a){a&1&&M(0,K9a,9,4,"ng-container",19);a&2&&(K(),C("ngIf",!0))},M9a=function(a){a&1&&(F(0,"header",10)(1,"h2"),O(2,"Create new hotlist"),G()(),F(3,"section",43)(4,"div",44)(5,"form",45)(6,"label",46),O(7,"Name"),G(),H(8,"input",47),F(9,"label",48),O(10,"Description"),G(),H(11,"textarea",49),F(12,"p",32),O(13," Note: Access controls can be adjusted after the hotlist is created. "),
G()()()());a&2&&(a=K(),B(5),C("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&&(F(0,"span",11),O(1," of "),F(2,"a",12),O(3),G()());if(a&2){a=b.$implicit;K(2);var c=Ce(13);B(2);ze("routerLink","/issues/",a,"");C("onedevHovercardTrigger",c);B(1);De(" ",a," ")}},R9a=function(a,b){a&1&&(F(0,"div")(1,"div",9),O(2),G(),M(3,Q9a,4,3,"span",10),P(4,"async"),G());a&2&&(a=b.$implicit,b=K(),B(1),oe("b-chip xs squared status status",a,""),C("title",b.STATUS_FULL_TEXT[a]),
B(1),De(" ",b.STATUS_TERSE[a]," "),B(1),C("ngIf",Q(4,6,b.canonicalId$)))},S9a=function(a,b){a&1&&(F(0,"span"),O(1),G());a&2&&(a=b.$implicit,b=K(),oe("b-chip squared issue-type-",a,""),B(1),De(" ",b.ISSUE_TYPE_TEXT.get(a)," "))},U9a=function(a,b){if(a&1){var c=x();F(0,"b-hotlist-chip-smart",17);J("removeHotlist",function(){var d=z(c).$implicit,e=K(2);return A(T9a(e,d))});G()}a&2&&C("id",b.$implicit)},W9a=function(a,b){if(a&1){var c=x();F(0,"div",13)(1,"button",14);J("onHotkey",function(){z(c);var d=
K();return A(V9a(d))})("click",function(){z(c);var d=K();return A(V9a(d))});H(2,"mat-icon",15);O(3);P(4,"async");G();M(5,U9a,1,1,"b-hotlist-chip-smart",16);G()}a&2&&(a=b.$implicit,b=K(),B(1),C("hotkey",b.HOTKEYS.OPEN_HOTLIST_PICKER),B(2),De(" ",Q(4,3,b.textOfHotlistBtn$)," "),B(2),C("ngForOf",a))},X9a=function(a){a&1&&(H(0,"b-issue-card",18,19),P(2,"async"));if(a&2){var b=Ce(1);a=K();C("onedevIsHovercardReady",b.init)("issueId",Q(2,2,a.canonicalId$))}},Y9a=function(a){return null==a?void 0:a.snapshot[0].hotlistId},
Z9a=function(a){a&1&&(qe(0),O(1),re());a&2&&(a=K(2),B(1),De(" by ",Nl(a.event.lastCommentEditorUser),""))},$9a=function(a){a&1&&(qe(0)(1),O(2,"Message last modified"),re(),M(3,Z9a,2,1,"ng-container",0),qe(4),O(5," on "),H(6,"b-formatted-date-time",1),re()());a&2&&(a=K(),B(3),C("ngIf",0===a.event.version&&!!a.event.lastCommentEditorUser),B(3),C("timestamp",a.event.commentLastModifiedAtDate))},a$a=function(a){a&1&&H(0,"b-user-email",5);a&2&&(a=K().$implicit,C("email",a.text)("withProfile",!0))},b$a=
function(a){a&1&&(F(0,"b-issue-reference-widget",6),qe(1),O(2),re(),G());if(a&2){a=K().$implicit;var b=K();C("href",kn(a.text))("issueId",b.getIssueId(a));B(2);Ee(a.text)}},c$a=function(a){a&1&&(qe(0),O(1),re());a&2&&(a=K().$implicit,B(1),Ee(a.text))},d$a=function(a,b){a&1&&(qe(0)(1,1),M(2,a$a,1,2,"b-user-email",2),M(3,b$a,3,3,"b-issue-reference-widget",3),M(4,c$a,2,1,"ng-container",4),re()());a&2&&(a=b.$implicit,B(1),C("ngSwitch",a.tag),B(1),C("ngSwitchCase","user"),B(1),C("ngSwitchCase","bug"))},
e$a=function(a){a&1&&(qe(0),H(1,"b-component-card",3,4),re());if(a&2){var b=Ce(2);a=K();B(1);C("onedevIsHovercardReady",b.init)("componentId",a.id)}},f$a=function(a){a&1&&(F(0,"span"),O(1),G());if(a&2){a=K(5);var b;B(1);Ee(null!==(b=a.effortSpecName)&&void 0!==b?b:"Estimated Effort")}},g$a=function(a){a&1&&(F(0,"label"),M(1,f$a,2,1,"span",9),O(2,":\u200b "),G());if(a&2){a=K(4);var b=Ce(5);B(1);C("ngIf",a.effortEnabled)("ngIfElse",b)}},h$a=function(a){a&1&&(F(0,"label"),O(1),G());a&2&&(a=K(3).$implicit,
B(1),De("",a.displayName,":\u200b"))},i$a=function(a){a&1&&(F(0,"span"),H(1,"b-user-display-name",12),G());a&2&&(a=K().$implicit,B(1),C("email",a)("showEmail",!0))},j$a=function(a){a&1&&(qe(0),H(1,"plain-component-path",13),re());a&2&&(a=K(4).$implicit,B(1),C("id",a.oldValue))},k$a=function(a){a&1&&H(0,"b-formatted-date-time",15);if(a&2){a=K(2).$implicit;var b=K(4);C("timestamp",1E3*b.asNumber(a))}},l$a=function(a){a&1&&(F(0,"span"),O(1,"[Issue creation date]"),G())},m$a=function(a){a&1&&(F(0,"span"),
M(1,k$a,1,1,"b-formatted-date-time",14),M(2,l$a,2,0,"span",5),G());a&2&&(a=K().$implicit,B(1),C("ngIf","<none>"!==a),B(1),C("ngIf","<none>"===a))},n$a=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K().$implicit,B(1),Ee(a))},o$a=function(a){a&1&&(qe(0),M(1,i$a,2,2,"span",5),M(2,j$a,2,1,"ng-container",5),M(3,m$a,3,2,"span",5),M(4,n$a,2,1,"span",5),O(5," \u00a0 "),H(6,"span",11),O(7," \u00a0 "),re());a&2&&(a=K(3).$implicit,B(1),C("ngIf",a.isUser),B(1),C("ngIf","component"===a.name),B(1),C("ngIf","sloSnoozeUntil"==
a.name),B(1),C("ngIf",!a.isUser&&"component"!==a.name&&"sloSnoozeUntil"!==a.name))},p$a=function(a){a&1&&H(0,"b-user-display-name",12);a&2&&(a=K().$implicit,C("email",a)("showEmail",!0))},q$a=function(a){a&1&&(F(0,"span"),H(1,"plain-component-path",13),G());a&2&&(a=K(4).$implicit,B(1),C("id",a.newValue))},r$a=function(a){a&1&&H(0,"b-formatted-date-time",15);if(a&2){a=K(2).$implicit;var b=K(4);C("timestamp",1E3*b.asNumber(a))}},s$a=function(a){a&1&&(F(0,"span"),O(1,"[Issue creation date]"),G())},t$a=
function(a){a&1&&(F(0,"span"),M(1,r$a,1,1,"b-formatted-date-time",14),M(2,s$a,2,0,"span",5),G());a&2&&(a=K().$implicit,B(1),C("ngIf","<none>"!==a),B(1),C("ngIf","<none>"===a))},v$a=function(a){a&1&&(F(0,"span",18),O(1),G());if(a&2){a=K().$implicit;var b=K(3).$implicit;C("ngClass",Ie(2,u$a,b.oldValue&&"title"==b.name));B(1);Ee(a)}},w$a=function(a){a&1&&(qe(0),M(1,p$a,1,2,"b-user-display-name",16),M(2,q$a,2,1,"span",5),M(3,t$a,3,2,"span",5),M(4,v$a,2,4,"span",17),re());a&2&&(a=K(3).$implicit,B(1),C("ngIf",
a.isUser),B(1),C("ngIf","component"===a.name),B(1),C("ngIf","sloSnoozeUntil"===a.name),B(1),C("ngIf",!a.isUser&&"component"!=a.name&&"sloSnoozeUntil"!=a.name))},x$a=function(a){a&1&&(F(0,"div",8),M(1,g$a,3,2,"label",9),M(2,h$a,2,1,"ng-template",null,10,Jf),M(4,o$a,8,4,"ng-container",5),M(5,w$a,5,4,"ng-container",5),G());if(a&2){var b=Ce(3);a=K(2).$implicit;B(1);C("ngIf","effort"===a.name)("ngIfElse",b);B(3);C("ngIf",a.oldValue);B(1);C("ngIf",a.newValue)}},y$a=function(a){a&1&&(F(0,"span"),O(1,", "),
G())},z$a=function(a,b){a&1&&(F(0,"span"),H(1,"b-user-display-name",12),M(2,y$a,2,0,"span",5),G());a&2&&(a=b.$implicit,b=b.last,B(1),C("email",a)("showEmail",!0),B(1),C("ngIf",!b))},A$a=function(a){a&1&&(F(0,"span"),M(1,z$a,3,3,"span",19),G());a&2&&(a=K(4).$implicit,B(1),C("ngForOf",a.added))},B$a=function(a){a&1&&(F(0,"span"),O(1,", "),G())},C$a=function(a,b){a&1&&(F(0,"span")(1,"span"),O(2),G(),M(3,B$a,2,0,"span",5),G());a&2&&(a=b.$implicit,b=b.last,B(2),Ee(a),B(1),C("ngIf",!b))},D$a=function(a){a&
1&&(F(0,"span"),M(1,C$a,4,2,"span",19),G());a&2&&(a=K(4).$implicit,B(1),C("ngForOf",a.added))},E$a=function(a){a&1&&(F(0,"div")(1,"label"),O(2),G(),M(3,A$a,2,1,"span",5),M(4,D$a,2,1,"span",5),G());a&2&&(a=K(3).$implicit,B(2),De("+",a.displayName,":\u200b"),B(1),C("ngIf",a.isUser),B(1),C("ngIf",!a.isUser))},F$a=function(a){a&1&&(F(0,"span"),O(1,", "),G())},G$a=function(a,b){a&1&&(F(0,"span"),H(1,"b-user-display-name",12),M(2,F$a,2,0,"span",5),G());a&2&&(a=b.$implicit,b=b.last,B(1),C("email",a)("showEmail",
!0),B(1),C("ngIf",!b))},H$a=function(a){a&1&&(F(0,"span"),M(1,G$a,3,3,"span",19),G());a&2&&(a=K(4).$implicit,B(1),C("ngForOf",a.removed))},I$a=function(a){a&1&&(F(0,"span"),O(1,", "),G())},J$a=function(a,b){a&1&&(F(0,"span")(1,"span"),O(2),G(),M(3,I$a,2,0,"span",5),G());a&2&&(a=b.$implicit,b=b.last,B(2),Ee(a),B(1),C("ngIf",!b))},K$a=function(a){a&1&&(F(0,"span"),M(1,J$a,4,2,"span",19),G());a&2&&(a=K(4).$implicit,B(1),C("ngForOf",a.removed))},L$a=function(a){a&1&&(F(0,"div")(1,"label"),O(2),G(),M(3,
H$a,2,1,"span",5),M(4,K$a,2,1,"span",5),G());a&2&&(a=K(3).$implicit,B(2),De("-",a.displayName,":\u200b"),B(1),C("ngIf",a.isUser),B(1),C("ngIf",!a.isUser))},M$a=function(a){a&1&&(F(0,"div",8),M(1,E$a,5,3,"div",5),M(2,L$a,5,3,"div",5),G());if(a&2){a=K(2).$implicit;var b=K();B(1);C("ngIf",a.added&&a.added.length&&b.isStringArray(a.added));B(1);C("ngIf",a.removed&&a.removed.length&&b.isStringArray(a.removed))}},N$a=function(a){a&1&&ue(0)},P$a=function(a,b){a&1&&(F(0,"span"),M(1,N$a,1,0,"ng-container",
20),G());if(a&2){a=b.$implicit;b=b.last;var c=K(4).$implicit;K();var d=Ce(3);B(1);C("ngTemplateOutlet",d)("ngTemplateOutletContext",Ke(O$a,c,a,b))}},Q$a=function(a){a&1&&(F(0,"div")(1,"label"),O(2),G(),M(3,P$a,2,6,"span",19),G());a&2&&(a=K(3).$implicit,B(2),De("+",a.displayName,":\u200b"),B(1),C("ngForOf",a.added))},R$a=function(a){a&1&&ue(0)},S$a=function(a,b){a&1&&(F(0,"span"),M(1,R$a,1,0,"ng-container",20),G());if(a&2){a=b.$implicit;b=b.last;var c=K(4).$implicit;K();var d=Ce(3);B(1);C("ngTemplateOutlet",
d)("ngTemplateOutletContext",Ke(O$a,c,a,b))}},T$a=function(a){a&1&&(F(0,"div")(1,"label"),O(2),G(),M(3,S$a,2,6,"span",19),G());a&2&&(a=K(3).$implicit,B(2),De("-",a.displayName,":\u200b"),B(1),C("ngForOf",a.removed))},U$a=function(a){a&1&&(F(0,"div",8),M(1,Q$a,4,2,"div",5),M(2,T$a,4,2,"div",5),G());if(a&2){a=K(2).$implicit;var b=K();B(1);C("ngIf",a.added&&a.added.length&&b.isLinkedItemArray(a.added));B(1);C("ngIf",a.removed&&a.removed.length&&b.isLinkedItemArray(a.removed))}},V$a=function(a){a&1&&
H(0,"b-formatted-date-time",15);a&2&&(a=K().$implicit,C("timestamp",a))},W$a=function(a){a&1&&(F(0,"span"),O(1," - "),G())},X$a=function(a,b){a&1&&(F(0,"span"),H(1,"b-formatted-date-time",15),M(2,W$a,2,0,"span",5),G());a&2&&(a=b.$implicit,b=b.last,B(1),C("timestamp",a),B(1),C("ngIf",!b))},Y$a=function(a){a&1&&(F(0,"span"),M(1,X$a,3,2,"span",19),G());a&2&&(a=K(4).$implicit,B(1),C("ngForOf",a.oldValue.split(", ")))},Z$a=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K().$implicit,B(1),Ee(a))},$$a=
function(a){a&1&&(qe(0),M(1,V$a,1,1,"b-formatted-date-time",14),M(2,Y$a,2,1,"span",5),M(3,Z$a,2,1,"span",5),O(4," \u00a0 "),H(5,"span",11),O(6," \u00a0 "),re());if(a&2){a=K(3).$implicit;var b=K();B(1);C("ngIf",nt(b,a,"oldValue"));B(1);C("ngIf",ot(b,a,"oldValue"));B(1);C("ngIf",!nt(b,a,"oldValue")&&!ot(b,a,"oldValue"))}},aab=function(a){a&1&&H(0,"b-formatted-date-time",15);a&2&&(a=K().$implicit,C("timestamp",a))},bab=function(a){a&1&&(F(0,"span"),O(1," - "),G())},cab=function(a,b){a&1&&(F(0,"span"),
H(1,"b-formatted-date-time",15),M(2,bab,2,0,"span",5),G());a&2&&(a=b.$implicit,b=b.last,B(1),C("timestamp",a),B(1),C("ngIf",!b))},dab=function(a){a&1&&(F(0,"span"),M(1,cab,3,2,"span",19),G());a&2&&(a=K(4).$implicit,B(1),C("ngForOf",a.newValue.split(", ")))},eab=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K().$implicit,B(1),Ee(a))},fab=function(a){a&1&&(qe(0),M(1,aab,1,1,"b-formatted-date-time",14),M(2,dab,2,1,"span",5),M(3,eab,2,1,"span",5),re());if(a&2){a=K(3).$implicit;var b=K();B(1);C("ngIf",
nt(b,a,"newValue"));B(1);C("ngIf",ot(b,a,"newValue"));B(1);C("ngIf",!nt(b,a,"newValue")&&!ot(b,a,"newValue"))}},gab=function(a){a&1&&(F(0,"div",8)(1,"label"),O(2),G(),M(3,$$a,7,3,"ng-container",5),M(4,fab,4,3,"ng-container",5),G());if(a&2){a=K(2).$implicit;var b=K();B(1);ge("title",b.customFieldName(a));B(1);De("",b.customFieldName(a),":\u200b");B(1);C("ngIf",a.oldValue);B(1);C("ngIf",a.newValue)}},hab=function(a){a&1&&(qe(0),H(1,"b-formatted-date-time",6),M(2,x$a,6,4,"div",7),M(3,M$a,3,2,"div",7),
M(4,U$a,3,2,"div",7),M(5,gab,5,4,"div",7),re());a&2&&(a=K().$implicit,B(1),C("timestamp",a.timestamp),B(1),C("ngIf","SINGLE_VALUE"===a.type),B(1),C("ngIf","COLLECTION"===a.type||"USER_COLLECTION"===a.type),B(1),C("ngIf","LINKED_COLLECTION"===a.type),B(1),C("ngIf","CUSTOM_FIELD"===a.type))},iab=function(a,b){a&1&&(F(0,"div",4),M(1,hab,6,5,"ng-container",5),G());a&2&&(a=b.$implicit,b=K(),B(1),C("ngIf","sloSnoozeUntil"===(null==a?void 0:a.name)?b.activeSession.isInternalSession():!0))},jab=function(a){a&
1&&H(0,"b-issue-card",25,26);if(a&2){var b=Ce(1);a=K(2).$implicit;var c=K(2);C("onedevIsHovercardReady",b.init)("issueId",c.asNumber(a))}},kab=function(a){a&1&&(F(0,"span"),O(1,", "),G())},lab=function(a){a&1&&(F(0,"span")(1,"onedev-hovercard",null,22),M(3,jab,2,2,"b-issue-card",23),G(),F(4,"b-issue-reference-widget",24),O(5),G(),M(6,kab,2,0,"span",5),G());if(a&2){var b=Ce(2);a=K().$implicit;var c=K(),d=c.change;c=c.isLast;var e=K();B(4);C("href",d.href)("onedevHovercardTrigger",b)("issueId",e.asNumber(a));
B(1);Ee(a);B(1);C("ngIf",!c)}},mab=function(a){a&1&&(F(0,"span"),O(1,", "),G())},nab=function(a){a&1&&(qe(0),H(1,"hotlist-link",13),M(2,mab,2,0,"span",5),re());if(a&2){a=K(2).$implicit;var b=K().isLast;B(1);C("id",a);B(1);C("ngIf",!b)}},oab=function(a){a&1&&(F(0,"span"),O(1,", "),G())},pab=function(a){a&1&&(F(0,"a",28),O(1),G(),M(2,oab,2,0,"span",5));if(a&2){a=K(2).$implicit;var b=K(),c=b.isLast;C("href",b.change.href,Md);B(1);Ee(a);B(1);C("ngIf",!c)}},qab=function(a){a&1&&(M(0,nab,3,2,"ng-container",
9),M(1,pab,3,3,"ng-template",null,27,Jf));if(a&2){var b=Ce(2);a=K(2).diff;var c=K();C("ngIf",c.isHotlistDiff(a))("ngIfElse",b)}},rab=function(a){a&1&&(qe(0),M(1,lab,7,5,"span",9),M(2,qab,3,2,"ng-template",null,21,Jf),re());if(a&2){var b=Ce(3);a=K().diff;var c=K();B(1);C("ngIf",c.isIssueDiff(a))("ngIfElse",b)}},sab=function(a,b){a&1&&M(0,rab,4,2,"ng-container",5);a&2&&C("ngIf",b.change.value)},tab=function(a){a&1&&(F(0,"span"),O(1,"Estimated Effort (disabled)"),G())},uab=function(a,b){a&1&&(H(0,"b-user-membership-chip",
24),P(1,"async"));if(a&2){a=b.ngIf;b=K(2);var c;C("user",b.event.userPerformingActionUser)("email",a)("teamId",null!==(c=Q(1,3,b.teamId$))&&void 0!==c?c:"")}},vab=function(a){a&1&&H(0,"b-user-display",25);a&2&&(a=K(2),C("model",a.event.userPerformingActionUser))},wab=function(a){a&1&&ue(0)},xab=function(a){a&1&&(qe(0),F(1,"span",26),M(2,wab,1,0,"ng-container",27),G(),F(3,"onedev-hovercard",null,28),H(5,"b-issue-person-card",29),G(),re());if(a&2){var b=Ce(4);K();var c=Ce(11);a=K();B(1);C("onedevHovercardTrigger",
b);B(1);C("ngTemplateOutlet",c);B(3);C("email",a.getUserEmailIfAvailable())}},yab=function(a){a&1&&(F(0,"span",30),O(1),G());a&2&&(a=K(2),B(1),De(" <",Nl(a.event.userPerformingActionUser),"> "))},zab=function(a){if(a&1){var b=x();F(0,"span")(1,"a",31);J("click",function(c){z(b);var d=K(2);d.issueReferenceResolver.visit({issueId:d.issueId,elementId:"comment"+d.event.commentNumber,event:c});return A()});O(2);G()()}a&2&&(a=K(2),B(1),C("routerLinkObj",a.getCommentNumberLink(a.event.commentNumber)),ge("aria-label",
"Comment number"+a.event.commentNumber),B(1),De(" #",a.event.commentNumber,""))},Aab=function(a){if(a&1){var b=x();F(0,"button",32);J("click",function(){z(b);var c=K(2);return A(pt(c.issueCommentDialogsService,c.issueId,c.deobfuscatedEvent||c.event))});G()}},Bab=function(a){a&1&&H(0,"b-restricted-chip",33);if(a&2){a=K(2);var b,c;C("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&&(H(0,"b-actions-menu",34,35),P(2,"async"));if(a&2){a=K(2);var b;C("buttonLabel","Comment actions")("menuItems",null!==(b=Q(2,2,a.commentActionMenuItems$))&&void 0!==b?b:He(4,Cab))}},Eab=function(a){a&1&&(F(0,"div",36),H(1,"b-tagged-text",37),G());a&2&&(a=K(2),B(1),C("texts",a.event.taggedSummary))},Fab=function(a){a&1&&(H(0,"b-issue-event-details",38),P(1,"async"),P(2,"async"),P(3,"async"));if(a&2){a=K().ngIf;var b=K(),c,d;C("diffs",null!==(c=Q(1,4,b.preEventDiffs$))&&
void 0!==c?c:He(10,Cab))("customFieldMap",a.customFieldMap)("effortSpecName",null==(d=Q(2,6,b.effortSpec$))?null:d.getName())("effortEnabled",!!Q(3,8,b.isEffortEnabled$))}},Gab=function(a){a&1&&H(0,"b-formatted-date-time",39);a&2&&(a=K(2),C("timestamp",a.event.modifiedDate))},Hab=function(a){a&1&&(F(0,"div",40),O(1," Comment has been deleted. "),G())},Iab=function(a){if(a&1){var b=x();F(0,"b-restricted-comment-placeholder",41);J("onConfirm",function(){z(b);var c=K(2);return A(c.loadRestrictedComment())});
P(1,"async");G()}a&2&&(a=K(2),C("disabled",!Q(1,1,a.mayReadPii$)))},Jab=function(a){a&1&&H(0,"b-note-container",42);a&2&&(a=K(2),C("issueId",a.issueId)("issueAccessLevel",a.issueAccessLevel)("note",a.deobfuscatedEvent||a.event)("formattingMode",a.formattingMode))},Kab=function(a){if(a&1){var b=x();F(0,"a",46);J("click",function(){z(b);var c=K(3);return A(c.showCommentHistoryDialog(c.event.commentNumber))});O(1," Show History ");G()}},Lab=function(a){a&1&&(F(0,"div",43),H(1,"b-comment-edit-timestamp-message",
44),M(2,Kab,2,0,"a",45),G());a&2&&(a=K(2),B(1),C("event",a.event),B(1),C("ngIf",a.commentHistoryEnabled))},Mab=function(a){a&1&&(H(0,"b-issue-event-details",38),P(1,"async"),P(2,"async"),P(3,"async"));if(a&2){a=K().ngIf;var b=K(),c,d;C("diffs",null!==(c=Q(1,4,b.postEventDiffs$))&&void 0!==c?c:He(10,Cab))("customFieldMap",a.customFieldMap)("effortSpecName",null==(d=Q(2,6,b.effortSpec$))?null:d.getName())("effortEnabled",!!Q(3,8,b.isEffortEnabled$))}},Nab=function(a,b){a&1&&(F(0,"div",49),H(1,"b-attachment-viewer",
50),G());a&2&&(a=b.$implicit,b=K(3),ze("id","attachment",a.attachmentId,""),B(1),C("issueId",b.issueId)("attachment",a)("attachmentUploader",b.getUserEmailIfAvailable()))},Oab=function(a){a&1&&(F(0,"div",47),M(1,Nab,2,4,"div",48),G());a&2&&(a=K(2),B(1),C("ngForOf",a.event.attachments))},Pab=function(a){a&1&&(qe(0),F(1,"div",1),H(2,"b-user-image",2),G(),F(3,"div",3)(4,"h4",4),P(5,"async"),M(6,uab,2,5,"b-user-membership-chip",5),M(7,vab,1,1,"ng-template",null,6,Jf),M(9,xab,6,3,"ng-container",7),M(10,
yab,2,1,"ng-template",null,8,Jf),M(12,zab,3,3,"span",0),M(13,Aab,1,0,"button",9),P(14,"async"),F(15,"span",10),M(16,Bab,1,3,"b-restricted-chip",11),H(17,"b-formatted-date-time",12),M(18,Dab,3,5,"b-actions-menu",13),G()(),H(19,"div",14),M(20,Eab,2,1,"div",15),M(21,Fab,4,11,"b-issue-event-details",16),P(22,"async"),H(23,"div",14),F(24,"div",17)(25,"div"),M(26,Gab,1,1,"b-formatted-date-time",18),P(27,"async"),M(28,Hab,2,0,"div",19),M(29,Iab,2,3,"b-restricted-comment-placeholder",20),M(30,Jab,1,4,"b-note-container",
21),G(),M(31,Lab,3,2,"div",22),G(),M(32,Mab,4,11,"b-issue-event-details",16),P(33,"async"),H(34,"div",14),M(35,Oab,2,1,"div",23),H(36,"div",14),G(),re());if(a&2){var b=Ce(8),c=Ce(11);a=K();B(2);C("email",a.getUserEmailIfAvailable());B(2);ge("aria-label",Q(5,20,a.ariaLabelHeading$));B(2);C("ngIf",a.enableTeamAnnotations&&a.getUserEmailIfAvailable())("ngIfElse",b);B(3);C("ngIf",a.isNonObfuscatedEmail(a.getUserEmailIfAvailable()))("ngIfElse",c);B(3);C("ngIf",a.isCommentEvent(a.event));B(1);C("ngIf",
Q(14,22,a.canEditComment$)&&!qt(a));B(3);C("ngIf",a.isRestricted());B(1);C("timestamp",a.event.modifiedDate);B(1);C("ngIf",a.isCommentEvent(a.event));B(2);C("ngIf",a.event.taggedSummary&&a.event.taggedSummary.length);B(1);C("ngIf",Q(22,24,a.showFullHistory$));B(5);C("ngIf",Q(27,26,a.isShowingCommentTimestamp$));B(2);C("ngIf",a.isDeleted());B(1);C("ngIf",qt(a)&&!a.isDeleted());B(1);C("ngIf",zn(a.event)&&!!a.event.unlinkifiedComment&&!qt(a)&&!a.isDeleted());B(1);C("ngIf",a.isCommentEvent(a.event)&&
0<(a.event.commentVersion||0)&&!qt(a));B(1);C("ngIf",Q(33,28,a.showFullHistory$));B(3);C("ngIf",null==a.event?null:null==a.event.attachments?null:a.event.attachments.length)}},Qab=function(a){a&1&&(F(0,"aside",4),H(1,"b-spinner"),G())},Rab=function(a){a&1&&(F(0,"div",6),H(1,"b-history-event",7),G());if(a&2){a=K().$implicit;var b=K();B(1);C("issueId",b.internalIssueId)("issueAccessLevel",b.issueAccessLevel)("event",a)}},Sab=function(a,b){a&1&&(qe(0),M(1,Rab,2,3,"div",5),re());a&2&&(a=b.$implicit,b=
K(),B(1),C("ngIf",b.internalIssueId&&b.showEvent(a)))},Vab=function(a){a&1&&(H(0,"b-issue-event-details",9),P(1,"async"),P(2,"async"),P(3,"async"));if(a&2){a=K().ngIf;var b=K(),c,d;C("diffs",null!==(c=Q(1,4,b.firstEventPostDiffs$))&&void 0!==c?c:He(10,Uab))("customFieldMap",a.customFieldMap)("effortSpecName",null==(d=Q(2,6,b.effortSpec$))?null:d.getName())("effortEnabled",!!Q(3,8,b.isEffortEnabled$))}},Wab=function(a){a&1&&(qe(0),M(1,Vab,4,11,"b-issue-event-details",8),re());a&2&&(a=K(),B(1),C("ngIf",
0===a.allEventsToDisplay.length&&a.showFullHistory))},Xab=function(a){a&1&&(F(0,"aside",4),H(1,"b-spinner"),G())},Yab=function(a){a&1&&(F(0,"div",3),H(1,"b-history-event",4),G());if(a&2){a=K().$implicit;var b=K();B(1);C("issueId",b.issueId)("issueAccessLevel",b.issueAccessLevel)("event",a)}},Zab=function(a,b){a&1&&(qe(0),M(1,Yab,2,3,"div",2),re());a&2&&(a=b.$implicit,b=K(),B(1),C("ngIf",b.issueId&&b.showEvent(a)))},abb=function(a,b){a&1&&(H(0,"b-history-event-stream",4),P(1,"async"),P(2,"async"),
P(3,"async"));a&2&&(a=b.$implicit,b=K(),C("events",Ie(10,$ab,a))("issueId",Q(1,4,b.idNumber$))("issueAccessLevel",Q(2,6,b.accessLevel$))("showFullHistory",Q(3,8,b.preferences.showFullHistory$)))},bbb=function(a){a&1&&(H(0,"b-event-stream",5),P(1,"async"),P(2,"slice"),P(3,"async"),P(4,"async"),P(5,"async"),P(6,"async"));a&2&&(a=K(),C("issueId",Q(1,5,a.idNumber$))("events",Me(2,7,Q(3,10,a.events$),1))("firstEventPostDiffs",Q(4,12,a.firstEventPostDiffs$))("issueAccessLevel",Q(5,14,a.accessLevel$))("showFullHistory",
Q(6,16,a.preferences.showFullHistory$)))},cbb=function(a){a&1&&(H(0,"b-history-event-stream",6),P(1,"async"),P(2,"async"),P(3,"slice"),P(4,"async"),P(5,"async"));a&2&&(a=K(),C("issueId",Q(1,4,a.idNumber$))("issueAccessLevel",Q(2,6,a.accessLevel$))("events",Me(3,8,Q(4,11,a.events$),1))("showFullHistory",Q(5,13,a.preferences.showFullHistory$)))},dbb=function(a){a&1&&(F(0,"aside",7),H(1,"b-spinner"),G())},ebb=function(a){if(a&1){var b=x();F(0,"span")(1,"b-checkbox",9);J("change",function(){z(b);var c=
K(3);return A(c.toggleAutoCcOnComment())});P(2,"async");P(3,"async");G()()}a&2&&(a=K(3),B(1),C("checked",!!Q(2,2,a.autoCcOnComment$))("disabled",!!Q(3,4,a.isCurrentUserCCd$)))},fbb=function(a){a&1&&(H(0,"b-checkbox",12),P(1,"async"));a&2&&(a=K(4),C("checked",!0)("disabled",!0)("tooltip",Q(1,3,a.issuePermissionService.addMeToCcDisabledReason$)||""))},gbb=function(a){a&1&&(F(0,"span",10),M(1,fbb,2,5,"b-checkbox",11),P(2,"async"),G());a&2&&(a=K(3),B(1),C("ngIf",Q(2,1,a.isCurrentUserCCd$)))},hbb=function(a){a&
1&&H(0,"b-markdown-toggle")},kbb=function(a){if(a&1){var b=x();qe(0);F(1,"h3",1);O(2,"Add comment");G();F(3,"div",2);P(4,"async");F(5,"b-comment-box",3,4);J("onHotkey",function(){z(b);var h=Ce(6);return A(ibb(h,"editpage-hotkey"))})("onChange",function(){z(b);var h=K(2);return A(h.saveCommentDraft())})("onFocusEvent",function(){z(b);var h=K(2);return A(h.wasFocused=!0)})("onSubmit",function(){z(b);var h=K(2);return A(h.submitCommentBox())})("onRestrict",function(){z(b);var h=K(2);return A(h.showNewContentJudgementDialog())});
P(7,"async");P(8,"async");P(9,"async");P(10,"async");P(11,"async");F(12,"div",5)(13,"b-button",6);J("onAction",function(){z(b);var h=K(2);return A(h.submitCommentBox())})("click",function(){z(b);var h=K(2);return A(h.submitCommentBox())});P(14,"async");O(15," Comment ");G();F(16,"div",5);M(17,ebb,4,6,"span",0);P(18,"async");P(19,"async");M(20,gbb,3,3,"span",7);P(21,"async");P(22,"async");M(23,hbb,1,0,"b-markdown-toggle",0);P(24,"async");G();H(25,"b-access-level-indicator",8);P(26,"async");G()()();
re()}if(a&2){a=K().ngIf;var c=K(),d,e,f;B(3);C("ngClass",Je(41,jbb,Q(4,15,c.empty$),!c.wasFocused));B(2);C("hotkey",c.HOTKEYS.FOCUS_COMMENT_BOX)("supportsPreview",!0)("issueId",a.issueId)("comment",Q(7,17,c.comment$))("componentId",a.componentId)("placeholder",null!==(d=Q(8,19,c.commentPlaceholderText$))&&void 0!==d?d:void 0)("judgementForNewContent",null!==(e=Q(9,21,c.judgementForNewContent$))&&void 0!==e?e:void 0)("audience",null!==(f=Q(10,23,c.audience$))&&void 0!==f?f:void 0)("disabled",!1===
Q(11,25,c.commentBoxEnabled$));B(8);C("disabled",!1===Q(14,27,c.commentButtonEnabled$));B(4);C("ngIf",!Q(18,29,c.isCurrentUserCCd$)&&Q(19,31,c.hasAclToEdit$));B(3);C("ngIf",Q(21,33,c.isCurrentUserCCd$)||!Q(22,35,c.hasAclToEdit$));B(3);C("ngIf",Q(24,37,c.hasAclToComment$));B(2);C("accessLevel",Q(26,39,c.accessLevel$))}},lbb=function(a,b){a&1&&(qe(0),M(1,kbb,27,44,"ng-container",0),re());a&2&&(a=b.ngIf,B(1),C("ngIf",!a.isDeleted))},mbb=function(a,b){a&1&&(F(0,"div",2),H(1,"issue-description-area",3)(2,
"b-issue-description",4),G());a&2&&(a=b.$implicit,B(1),C("id",a),B(1),C("id",a))},nbb=function(a){a&1&&H(0,"issue-description-area",3);a&2&&(a=K().$implicit,C("id",a))},obb=function(a){a&1&&(qe(0),H(1,"b-event-stream-header"),re())},pbb=function(a){a&1&&H(0,"issue-event-list",4);a&2&&(a=K().$implicit,C("id",a))},qbb=function(a){a&1&&H(0,"issue-event-list",4);a&2&&(a=K().$implicit,C("id",a))},rbb=function(a,b){a&1&&(F(0,"div",5),M(1,nbb,1,1,"issue-description-area",6),M(2,obb,2,0,"ng-container",7),
M(3,pbb,1,1,"issue-event-list",8),H(4,"b-post-comment",9),M(5,qbb,1,1,"issue-event-list",8),G());a&2&&(a=b.$implicit,b=K(),le("recent-first",b.showRecentEventsFirst),C("bFocus",!0),B(1),C("ngIf",!b.enableEnhancedCommentThread),B(1),C("ngIf",b.enableEnhancedCommentThread),B(1),C("ngIf",!b.enableEnhancedCommentThread||!b.showRecentEventsFirst),B(1),C("issueId",a),B(1),C("ngIf",b.enableEnhancedCommentThread&&b.showRecentEventsFirst))},sbb=function(a){a&1&&(F(0,"div",4),H(1,"img",5),F(2,"p",6),O(3," This issue has no mentioned resources "),
G(),F(4,"p",7),O(5," If there were any links or bugs mentioned in the comments or description of the issue, they would appear here. "),F(6,"a",8),O(7,"Learn more"),G()()());a&2&&(a=K(2),B(1),C("src",a.ROBOT_SLEEPING,Md))},tbb=function(a){a&1&&(qe(0),F(1,"h2"),O(2),G(),H(3,"b-issues-table",13),re());a&2&&(a=K(2).ngIf,B(2),De("Mentioned issues (",a.ids.length,")"),B(1),C("issueIds",a.ids))},ubb=function(a){a&1&&(F(0,"h2"),O(1),G());a&2&&(a=K(2).ngIf,B(1),De("Other linked resources (",a.urls.length,
")"))},vbb=function(a,b){a&1&&(F(0,"ul")(1,"li")(2,"b-external-hyperlink-widget",14),O(3),G()()());a&2&&(a=b.$implicit,B(2),C("href",a)("originalHref",a),B(1),Ee(a))},wbb=function(a){a&1&&(F(0,"div",9),M(1,tbb,4,2,"ng-container",1),H(2,"br"),M(3,ubb,2,1,"h2",1),M(4,vbb,4,3,"ul",10),H(5,"br")(6,"hr",11),F(7,"p",7),H(8,"mat-icon",12),O(9," This page shows links or bugs mentioned in the comments or description of the issue. "),F(10,"a",8),O(11,"Learn more"),G()()());a&2&&(a=K().ngIf,B(1),C("ngIf",0<
a.ids.length),B(2),C("ngIf",0<a.urls.length),B(1),C("ngForOf",a.urls))},xbb=function(a,b){a&1&&(qe(0),M(1,sbb,8,1,"div",2),M(2,wbb,12,3,"ng-template",null,3,Jf),re());if(a&2){a=b.ngIf;var c=Ce(3);B(1);C("ngIf",a.hasNoResults)("ngIfElse",c)}},ybb=function(a){a&1&&(F(0,"div",4),H(1,"img",5),F(2,"p",6),O(3," This issue has no TODOs "),G(),F(4,"p",7),O(5," Buganizer uses a separate service to look for TODOs in the codebase. It didn't find any. "),F(6,"a",8),O(7,"Learn more"),G()()());a&2&&(a=K(3),B(1),
C("src",a.ROBOT_SLEEPING,Md))},zbb=function(a,b){a&1&&H(0,"b-package-mentions-listing",12);if(a&2){a=b.$implicit;b=K(3).ngIf;var c=K().ngIf,d=K();C("issueId",c)("packageMentionSet",a)("displayPackageName",d.displayPackageNames(b))}},Abb=function(a){if(a&1){var b=x();qe(0);M(1,zbb,1,3,"b-package-mentions-listing",9);F(2,"p",10)(3,"a",11);J("click",function(){z(b);var c=K(4);return A(c.trackSqueegeeClick())});O(4,"View in Squeegee");G()();re()}a&2&&(a=K(2).ngIf,B(1),C("ngForOf",a.mentions.packageMentionSet),
B(2),C("href",a.link,Md))},Bbb=function(a){a&1&&M(0,Abb,5,2,"ng-container",1);a&2&&(a=K().ngIf,C("ngIf",a.mentions))},Cbb=function(a,b){a&1&&(qe(0),M(1,ybb,8,1,"div",2),M(2,Bbb,1,1,"ng-template",null,3,Jf),re());if(a&2){a=b.ngIf;var c=Ce(3);K(2);B(1);C("ngIf",!(a.mentions&&0<a.mentions.totalMentions))("ngIfElse",c)}},Dbb=function(a){a&1&&(qe(0),M(1,Cbb,4,2,"ng-container",1),P(2,"async"),re());a&2&&(a=K(),B(1),C("ngIf",Q(2,1,a.codeMentionsState$)))},Ebb=function(a){a&1&&H(0,"b-spinner",6);a&2&&C("large",
!0)},Fbb=function(a){a&1&&H(0,"b-hotlist-grid",7);a&2&&(a=K(),C("hotlists",a.hotlists))},Gbb=function(a){a&1&&(F(0,"div",9),H(1,"b-spinner"),F(2,"span"),O(3),G()());a&2&&(a=K(),B(3),De(" Searching",a.query?" for "+a.query:"","..."))},Hbb=function(a){a&1&&(qe(0),O(1," No issues matched your search. "),re())},Ibb=function(a){a&1&&O(0," Use search box to find issues. ")},Jbb=function(a){a&1&&(F(0,"div",10),M(1,Hbb,2,0,"ng-container",11),M(2,Ibb,1,0,"ng-template",null,12,Jf),G());if(a&2){var b=Ce(3);
a=K();C("bFocus",!0);B(1);C("ngIf",a.query)("ngIfElse",b)}},Lbb=function(a){if(a&1){var b=x();F(0,"div",13)(1,"b-issues-grid",14);J("init",function(c){z(b);var d=K();return A(d.resultsGrid=c)})("columnsChange",function(c){z(b);var d=K();return A(d.issueColumns=c)})("columnsChange",function(){z(b);K();Kbb();return A()})("sortChange",function(c){z(b);var d=K();return A(d.setSort(c.field,c.direction))})("rowClick",function(c){z(b);var d=K();return A(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",
function(){z(b);var c=K();return A(rt(c,c.page,1))})("onPrevPage",function(){z(b);var c=K();return A(rt(c,c.page,-1))});G()()}a&2&&(a=K(),B(1),C("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort()))},Mbb=function(a){a&1&&(F(0,"div",9),H(1,"b-spinner"),O(2," Loading recent issues... "),G())},Nbb=function(a){a&1&&(F(0,"div",10),O(1," No recent issues found. "),G())},Obb=function(a){if(a&1){var b=
x();F(0,"div",11)(1,"b-issues-grid",12);J("init",function(c){z(b);var d=K();return A(d.resultsGrid=c)})("columnsChange",function(c){z(b);var d=K();return A(d.issueColumns=c)})("sortChange",function(c){z(b);var d=K();return A(d.setSort(c.field,c.direction))})("rowClick",function(c){z(b);var d=K();return A(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){z(b);var c=K(),d;return A(c.goToPage((null!==(d=c.page)&&void 0!==d?d:0)+1))})("onPrevPage",function(){z(b);var c=K(),d;return A(c.goToPage((null!==
(d=c.page)&&void 0!==d?d:0)-1))});G()()}a&2&&(a=K(),B(1),C("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort()))},Pbb=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})},Qbb=function(a){a&1&&(F(0,
"div",6)(1,"h2"),O(2,"Manage SLOs"),G(),F(3,"p",7),O(4,"You have admin rights for all SLOs listed below."),G()())},Rbb=function(a){a&1&&H(0,"b-spinner",8);a&2&&C("large",!0)},Sbb=function(a){a&1&&(F(0,"div",11),O(1,"You have no Active SLOs"),G())},Tbb=function(a){a&1&&H(0,"b-slo-grid",12);a&2&&(a=K(2),C("slos",a.activeSlos))},Ubb=function(a){a&1&&(qe(0),M(1,Sbb,2,0,"div",9),M(2,Tbb,1,1,"b-slo-grid",10),re());a&2&&(a=K(),B(1),C("ngIf",!a.activeSlos.length),B(1),C("ngIf",a.activeSlos.length))},Vbb=
function(a){a&1&&(F(0,"p",19),O(1," You have no archived SLOs. "),G())},Wbb=function(a){a&1&&H(0,"b-slo-grid",12);a&2&&(a=K(3),C("slos",a.archivedSlos))},Xbb=function(a){a&1&&(F(0,"div",17),M(1,Vbb,2,0,"p",18),M(2,Wbb,1,1,"b-slo-grid",10),G());a&2&&(a=K(2),B(1),C("ngIf",!a.archivedSlos.length),B(1),C("ngIf",a.archivedSlos.length))},Ybb=function(a){if(a&1){var b=x();qe(0);F(1,"button",13);J("click",function(){z(b);var c=K();c.areArchivedSlosExpanded=!c.areArchivedSlosExpanded;return A()});F(2,"h4",
14);H(3,"mat-icon",15);O(4);G()();M(5,Xbb,3,2,"div",16);re()}a&2&&(a=K(),B(3),le("rotate-180",a.areArchivedSlosExpanded),C("svgIcon","arrow-dropdown"),B(1),De(" Archived SLOs (",a.archivedSlos.length,") "),B(1),C("ngIf",a.areArchivedSlosExpanded))},Zbb=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},bcb=function(a){return{approximateSize:ej(a,2),groupEmail:V(a,1),sizeCategory:$bb[X(a,3,0)],permissionCategory:acb[X(a,5,0)]}},ccb=
function(a){var b;return{groupMetadata:(null!=(b=rb(a,st,1))?b:[]).map(bcb)}},dcb=function(a){a&1&&(qe(0),F(1,"p"),O(2,"Team inheritance path:"),G(),H(3,"b-team-breadcrumb",1),re());a&2&&(a=K(),B(3),C("teamPath",a.teamPath))},ecb=function(a){a&1&&(qe(0),F(1,"p"),O(2,"Component inheritance path:"),G(),H(3,"b-component-breadcrumb",2),re());a&2&&(a=K(),B(3),C("componentPathInfo",a.componentPath))},gcb=function(a,b){var c=[];if(!b||!a)return c;for(var d=r(fcb),e=d.next();!e.done;e=d.next()){e=e.value;
var f=Qi(e.accessor(b)||[],e.accessor(a)||[]);f.length&&c.push({field:e.field,addedPrincipals:f})}return c},icb=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,hcb.has(c)&&!b.appenders.includes(c))return!0;return!1},jcb=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},kcb=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"},lcb=function(a){if(0===a.size)return tt;for(var b=1===a.size?Rn("P",{},"The following large group is added: "):Rn("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(Rn("P",{},Sn(Rn("B",{},e)," has approximately ",Rn("B",{},f)," Googlers.")))}return Sn(b,c)},mcb=function(a){if(0===a.size)return tt;var b=1===a.size?Rn("P",{},"The following open group is added: "):Rn("P",{},"The following open groups are added: "),c=[];a=r(a.keys());for(var d=a.next();!d.done;d=a.next())c.push(Rn("P",{},Rn("B",{},d.value)));return Sn(b,c)},ncb=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},ocb=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},pcb=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},ut=function(a){var b=a.split(":");a=Number(b[0]);return 4===a?(b=b[1],{value:b,displayText:Rpa(b),principalType:a,detailedUserType:null}):{value:b[1],displayText:b[1],principalType:a,detailedUserType:null}},qcb=function(a,b){a&1&&H(0,"b-contact-chip",6);a&2&&(a=b.$implicit,b=K(2),C("value",a.value)("detailedUserType",a.detailedUserType)("principalType",a.principalType)("accessLevel",b.accessLevel)("displayText",a.displayText))},rcb=function(a,b){a&1&&(qe(0),F(1,
"tr",3)(2,"th",4),O(3),G(),F(4,"td"),M(5,qcb,1,5,"b-contact-chip",5),G()(),re());a&2&&(a=b.$implicit,B(3),Ee(a.permission),B(2),C("ngForOf",a.principals))},Dcb=function(a){return[scb,tcb,ucb,vcb,wcb,xcb,ycb,zcb,Acb,Bcb,Ccb].reduce(function(b,c){return c(b)},a).permissionsFromRoles},scb=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})})}},tcb=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})})}},ucb=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})})}},vcb=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})})}},wcb=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})})}},xcb=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})})}},ycb=
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})})}},zcb=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})})}},Acb=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})})}},Bcb=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})})}},Ccb=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})})}},Ecb=function(a,b){return b.reduce(function(c,d){return d(c)},a).rolesMap},vt=function(a){return[].concat(u(a.componentAdmin),u(a.componentAdminOnly),u(a.issueAdmin))},wt=function(a){var b=new Set(a);return function(c){return!b.has(c)}},
Fcb=function(){var a=qc.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()},Gcb=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()}},Hcb=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()},Icb=function(a){return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{componentAdmin:a.componentAccessPolicy.admins.sort()})})},Jcb=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=Gcb(a.rolesMap.componentAdmin,b);return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{componentAdmin:b.componentAdminsWithIssuesPermissions,
componentAdminOnly:b.componentAdminOnlyUsers})})},Kcb=function(a){var b=a.componentAccessPolicy.inheritedAdmins.sort();return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{inheritedComponentAdmin:b})})},Lcb=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})})},
Mcb=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})})},Ncb=function(a){var b=Fcb(a.componentAccessPolicy.appenders,a.issueAccessPolicy.editors),c=vt(a.rolesMap);b=b.filter(wt(c));return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{editor:b})})},Ocb=function(a){var b=Fcb(a.componentAccessPolicy.appenders,a.issueAccessPolicy.appenders),c=vt(a.rolesMap);c=wt([].concat(u(c),
u(a.issueAccessPolicy.editors)));b=b.filter(c);return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{contributor:b})})},Pcb=function(a){var b=a.issueAccessPolicy.readers,c=vt(a.rolesMap);c=wt([].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})})},Qcb=function(a){var b=a.issueAccessPolicy.editors,c=vt(a.rolesMap);c=wt([].concat(u(c),u(a.componentAccessPolicy.appenders)));
b=b.filter(c);return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{editExistingIssuesOnly:b})})},Rcb=function(a){var b=a.componentAccessPolicy.appenders,c=vt(a.rolesMap);c=wt([].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})})},Scb=function(a){var b=a.issueAccessPolicy.appenders,c=vt(a.rolesMap);c=wt([].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})})},Tcb=function(a){var b=a.issueAccessPolicy.restrictedReaders.sort();return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{viewRestricted:b})})},Ucb=function(a){var b=a.issueAccessPolicy.restrictedPlusReaders.sort();return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{viewRestrictedPlus:b})})},xt=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},Vcb=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},Wcb=function(a){if(a&1){var b=x();F(0,"input",17);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.rolesEditor.component.accessLimit.accessLevel=c)});G()}a&2&&(a=K(2),C("disabled",!a.rolesEditor.isAdmin)("ngModel",
a.rolesEditor.component.accessLimit.accessLevel))},Xcb=function(a){if(a&1){var b=x();F(0,"input",18);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.rolesEditor.component.accessLimit.accessLevel=c)});G()}a&2&&(a=K(2),C("disabled",!a.rolesEditor.isAdmin||!a.isParentPartner())("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},Ycb=function(a){if(a&1){var b=x();F(0,"input",19);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.rolesEditor.component.accessLimit.accessLevel=c)});
G()}a&2&&(a=K(2),C("disabled",!a.rolesEditor.isAdmin||!a.isParentPublic())("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},$cb=function(a){a&1&&(F(0,"div",3)(1,"div",4)(2,"span",5),O(3,"Component visibility: "),G()(),F(4,"div",6)(5,"div",7),M(6,Wcb,1,2,"input",8),F(7,"label",9),O(8),G()(),F(9,"div",7),M(10,Xcb,1,2,"input",10),F(11,"label",11),O(12),G()(),F(13,"div",12),M(14,Ycb,1,2,"input",13),F(15,"label",14),O(16),G()()(),F(17,"p",15)(18,"a",16),O(19," Learn more "),G()()());a&2&&(a=
K(),B(6),C("ngIf",a.rolesEditor.component&&a.rolesEditor.component.accessLimit),B(2),De(" ",a.getAccessLevelDescription(a.AccessLevelStrings.INTERNAL)," "),B(2),C("ngIf",a.rolesEditor.component&&a.rolesEditor.component.accessLimit),B(2),De(" ",a.getAccessLevelDescription(a.AccessLevelStrings.EXTERNAL_PARTNER)," "),B(2),C("ngIf",a.rolesEditor.component&&a.rolesEditor.component.accessLimit),B(2),De(" ",a.getAccessLevelDescription(a.AccessLevelStrings.EXTERNAL_PUBLIC)," "),B(2),C("href",Zcb(a.documentationLinks),
Md))},edb=function(a,b){if(a&1){var c=x();qe(0);F(1,"tr")(2,"td")(3,"div",2)(4,"div",3)(5,"label",4);O(6);G();F(7,"button",5);H(8,"mat-icon",6);G()();F(9,"b-multi-user-input",7);J("usersChange",function(e){var f=z(c).$implicit,h=K();return A(h.updateRolesMap(f.roleType,e))})("isValid",function(e){var f=z(c).$implicit,h=K();h.aclFormValidity.set(f.roleType,e);e=[].concat(u(h.aclFormValidity.values())).every(Boolean);h.formIsValid.emit(e);return A()});G()()();F(10,"td");H(11,"b-icon",8);G();F(12,"td");
H(13,"b-icon",8);G();F(14,"td");H(15,"b-icon",8);G();F(16,"td");H(17,"b-icon",8);G();F(18,"td");H(19,"b-icon",8);G();F(20,"td");H(21,"b-icon",8);G();F(22,"td");H(23,"b-icon",8);G();F(24,"td");H(25,"b-icon",8);G()();re()}if(a&2){a=b.$implicit;b=K();var d;B(3);le("bv2-edit-resource-readonly",b.canEdit);B(2);C("htmlFor",a.roleType);B(1);Ee(a.label);B(1);C("matTooltip",a.tooltip);B(2);C("idForInputBox",a.roleType)("users",a.users)("ariaLabel",a.ariaLabel)("accessLevel",b.accessLevel)("customValidators",
null!==(d=a.customValidators)&&void 0!==d?d:He(22,adb))("includeAliases",a.includeAliases)("includeViewAliases",a.includeViewAliases)("containerChips",(null==a.chips?0:a.chips.values)&&0<a.chips.values.length?Ie(26,bdb,Je(23,cdb,a.chips.displayText,a.chips.values)):He(28,ddb));ge("disabled",b.canEdit?null:!0);B(2);C("name",b.getIconName(a,"componentAdmin"));B(2);C("name",b.getIconName(a,"createIssues"));B(2);C("name",b.getIconName(a,"issueAdmin"));B(2);C("name",b.getIconName(a,"issueEditor"));B(2);
C("name",b.getIconName(a,"issueCommenter"));B(2);C("name",b.getIconName(a,"issueReader"));B(2);C("name",b.getIconName(a,"restrictedReader"));B(2);C("name",b.getIconName(a,"restrictedPlusReader"))}},fdb=function(a){a&1&&(F(0,"div",2),H(1,"b-spinner"),G())},hdb=function(a){if(a&1){var b=x();F(0,"div")(1,"div",3)(2,"mat-tab-group")(3,"mat-tab",4)(4,"roles-view",5);J("saveRolesMap",function(c){z(b);var d=K();gdb(d.rolesEditor,c);return A()});G()();F(5,"mat-tab",6);H(6,"permissions-view",7);G()()()()}a&
2&&(a=K(),B(4),C("rolesMap",a.rolesEditor.rolesMap)("isSaving",a.isSaving())("component",a.rolesEditor.component)("rolesEditor",a.rolesEditor),B(2),C("componentReaders",a.rolesEditor.componentReaders)("componentAccessPolicy",a.rolesEditor.componentFlattenedAccessPolicy)("issueAccessPolicy",a.rolesEditor.issueDefaultFlattenedAccessPolicy)("accessLevel",null==a.rolesEditor.component?null:null==a.rolesEditor.component.accessLimit?null:a.rolesEditor.component.accessLimit.accessLevel))},jdb=function(a){if(a&
1){var b=x();F(0,"b-button",12,13);J("onAction",function(){z(b);var c=K(2);return A(idb(c))});O(2);G()}a&2&&(a=K(2),C("disabled",a.isSaving()),B(2),De(" ",a.archiveAction," Component "))},kdb=function(a){if(a&1){var b=x();F(0,"b-button",14);J("onAction",function(){z(b);var c=K(2);return A(c.createIssue())});O(1," Create Issue ");G()}a&2&&(a=K(2),C("tooltip",a.isArchived()?"Cannot create issue in archived component":"")("disabled",a.isArchived()))},ldb=function(a){a&1&&(qe(0),F(1,"a",9),O(2," Browse Components "),
G(),M(3,jdb,3,2,"b-button",10),M(4,kdb,2,2,"b-button",11),re());a&2&&(a=K(),B(1),C("routerLinkObj",a.componentListRoute(a.component.componentId)),B(2),C("ngIf",a.isAdmin()),B(1),C("ngIf",!a.isAnonymous))},mdb=function(a){a&1&&(F(0,"div",15),H(1,"b-spinner"),G())},ndb=function(a){a&1&&(F(0,"span",35),O(1," (archived) "),G())},odb=function(a){a&1&&ue(0)},pdb=function(a){a&1&&ue(0)},qdb=function(a){a&1&&ue(0)},rdb=function(a){a&1&&ue(0)},sdb=function(a){a&1&&ue(0)},tdb=function(a){if(a&1){var b=x();
F(0,"div",74)(1,"div",45)(2,"label",75)(3,"span",42);O(4,"Parent Component");G()();F(5,"span",47)(6,"div",76)(7,"strong");O(8,"Careful!");G();O(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. ");F(10,"div",49);H(11,"div",50)(12,"div",51);G()()()();F(13,"b-team-component-picker",77);J("selectedComponentChange",
function(c){z(b);var d=K(3);return A(d.parentComponent=null!==c&&void 0!==c?c:null)});G()()}a&2&&(a=K(3),B(2),le("required",a.isParentComponentRequired),B(11),C("selectedComponent",a.parentComponent)("placeholder","Choose Component")("isRequired",a.isParentComponentRequired))},udb=function(a){a&1&&(F(0,"a",78),O(1," Learn more "),G());a&2&&(K(3),C("href",X_a(),Md))},vdb=function(a){if(a&1){var b=x();F(0,"div",79)(1,"label",80)(2,"span",42);O(3,"Retention Settings");G()();F(4,"div",81)(5,"p");O(6,
"Please choose a period of time to retain the data stored in this component.");H(7,"br");F(8,"a",82);O(9," Learn more ");G()()();F(10,"div",83)(11,"b-retention-settings-form",84);J("modelChange",function(c){z(b);var d=K(3);return A(d.component.retentionSettings=c)})("validChange",function(c){z(b);K(3).retentionIsValid=c;return A()});G()()()}a&2&&(a=K(3),le("bv2-edit-resource-readonly",!a.isAdmin()),B(8),C("href",yt(),Md),B(3),C("issueRetentionDisabled",a.isAccessEditDisabled())("isExternal",a.isExternal())("initialModel",
a.component.retentionSettings))},xdb=function(a){if(a&1){var b=x();F(0,"div",88)(1,"b-component-team-picker",89);J("modelChange",function(c){z(b);var d=K(4);d.component.team=c;d.componentTeam$.next(d.component.team);d.component.slo.inherit&&wdb(d);return A()});G()()}a&2&&(a=K(4),B(1),Ae("anchorTarget",a.hasUnsavedChanges()?"_blank":"_self"),C("isAdmin",a.isAdmin())("isTopLevel",!a.isParentComponentRequired)("parentModel",null==a.parentComponent?null:a.parentComponent.team)("useInternalLink",!0)("model",
a.component.team))},ydb=function(a){a&1&&(F(0,"div",85)(1,"label",86)(2,"span",42),O(3,"Team Configuration"),G()(),M(4,xdb,2,6,"div",87),G());a&2&&(a=K(3),le("bv2-edit-resource-readonly",!a.isAdmin()),B(4),C("ngIf",a.component.team))},zdb=function(a){a&1&&(F(0,"a",101),O(1),G());if(a&2){a=K().ngIf;var b=K(4),c;C("routerLinkObj",b.getSloManagementLink(a.id));B(1);De(" ",null!==(c=null==a.slo?null:a.slo.getName())&&void 0!==c?c:a.id," ")}},Adb=function(a){a&1&&O(0," None ")},Bdb=function(a,b){a&1&&
(F(0,"div",98),O(1," Inherited SLO Policy: "),M(2,zdb,2,2,"a",99),M(3,Adb,1,0,"ng-template",null,100,Jf),G());if(a&2){a=b.ngIf;var c=Ce(4);B(2);C("ngIf","0"!==a.id)("ngIfElse",c)}},Cdb=function(a){a&1&&(F(0,"a",106),O(1),P(2,"titlecase"),G());a&2&&(a=K().ngIf,C("routerLinkObj",a.link),B(1),Fe(" (",Q(2,3,a.type),") ",a.name," "))},Ddb=function(a){a&1&&O(0," None ")},Edb=function(a){a&1&&(F(0,"div",108),H(1,"slo-inheritance-breadcrumbs",109),G());a&2&&(a=K().ngIf,B(1),C("componentPath",a.componentPath)("teamPath",
a.teamPath))},Fdb=function(a){a&1&&(qe(0),M(1,Edb,2,2,"div",107),re());a&2&&(a=K(5),B(1),C("ngIf",a.showSloInheritancePath))},Gdb=function(a,b){if(a&1){var c=x();F(0,"div",102);O(1," Policy Source: ");M(2,Cdb,3,5,"a",103);M(3,Ddb,1,0,"ng-template",null,104,Jf);F(5,"button",105);J("click",function(){z(c);var e=K(4);return A(e.showSloInheritancePath=!e.showSloInheritancePath)});O(6);G();M(7,Fdb,2,1,"ng-container",5);P(8,"async");G()}if(a&2){a=b.ngIf;var d=Ce(4);b=K(4);B(2);C("ngIf",a.link)("ngIfElse",
d);B(3);ge("aria-expanded",b.showSloInheritancePath);B(1);De(" ",b.showSloInheritancePath?"Hide":"Show"," full path ");B(1);C("ngIf",Q(8,5,b.policySourcePath$))}},Hdb=function(a){a&1&&(qe(0),H(1,"mat-icon",112),O(2," on "),re())},Idb=function(a){a&1&&(H(0,"mat-icon",113),O(1," off "))},Jdb=function(a){a&1&&(qe(0),O(1," Lock: "),M(2,Hdb,3,0,"ng-container",110),P(3,"async"),M(4,Idb,2,0,"ng-template",null,111,Jf),re());if(a&2){var b=Ce(5);a=K(4);B(2);C("ngIf",Q(3,2,a.sloLocked$))("ngIfElse",b)}},Ldb=
function(a){if(a&1){var b=x();F(0,"div",114)(1,"mat-checkbox",115);J("change",function(c){z(b);var d=K(4);c=c.checked;d.component.slo.inherit=!c;c||wdb(d);return A()});F(2,"span");O(3,"Override the inherited SLO policy");G()()()}a&2&&(a=K(4),B(1),C("checked",!a.component.slo.inherit)("disabled",!Kdb(a)))},Mdb=function(a){if(a&1){var b=x();F(0,"div",122)(1,"label",123);O(2," Justification ");G();H(3,"mat-icon",124);F(4,"textarea",125);J("ngModelChange",function(c){z(b);var d=K(5);return A(d.component.slo.comment=
c)});G()()}a&2&&(a=K(5),B(4),C("ngModel",a.component.slo.comment))},Ndb=function(a){a&1&&(F(0,"a",126),H(1,"mat-icon",127),G());a&2&&(a=K(5),Ae("target",a.hasUnsavedChanges()?"_blank":"_self"),C("routerLinkObj",a.getSloManagementLink(a.component.slo.id)))},Rdb=function(a){if(a&1){var b=x();qe(0);M(1,Mdb,5,1,"div",116);F(2,"mat-slide-toggle",117);J("ngModelChange",function(c){z(b);var d=K(4);return A(d.isEnableSloChecked=c)})("change",function(c){z(b);var d=K(4);c=c.checked;d.isEnableSloChecked=c;
c||(d.component.slo.id="0");return A()});O(3," Enable SLO ");G();F(4,"div",118)(5,"label",119);O(6,"SLO policy");G();F(7,"slo-picker",120);J("onSloSelect",function(c){z(b);var d=K(4);return A(d.onSloChange(c))});G();M(8,Ndb,2,2,"a",121);G();re()}a&2&&(a=K(4),B(1),C("ngIf",Odb(a)),B(1),le("indented",Pdb(a)),C("ngModel",a.isEnableSloChecked)("disabled",!Qdb(a)),B(5),C("bv2Disabled",!a.isEnableSloChecked||!Qdb(a))("boundId",a.component.slo.id)("bv2Placeholder",a.isEnableSloChecked&&Qdb(a)?"Type to search for an SLO":
"SLO disabled"),B(1),C("ngIf",a.component.slo.id&&"0"!==a.component.slo.id))},Sdb=function(a){a&1&&(F(0,"div",90)(1,"div",45)(2,"label",91)(3,"span",42),O(4,"SLO Configuration"),G()(),F(5,"span",47)(6,"div",92)(7,"strong"),O(8,"Careful!"),G(),O(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. "),F(10,"div",49),H(11,"div",50)(12,"div",51),G()()()(),F(13,"div",93),M(14,Bdb,5,2,"div",94),
P(15,"async"),M(16,Gdb,9,7,"div",95),P(17,"async"),F(18,"div",96),M(19,Jdb,6,4,"ng-container",5),G()(),M(20,Ldb,4,2,"div",97),M(21,Rdb,9,9,"ng-container",5),G());if(a&2){a=K(3);le("bv2-edit-resource-readonly",!a.isAdmin());B(14);C("ngIf",Q(15,7,a.inheritedSlo$));B(2);C("ngIf",Q(17,9,a.sloPolicySource$));B(3);C("ngIf",a.enableSloLockingUi);B(1);C("ngIf",Pdb(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;C("ngIf",a)}},Tdb=function(a){if(a&1){var b=x();F(0,"div",70)(1,"b-button",128);J("onAction",function(){z(b);var c=K(3);return A(c.saveMetadata())});O(2," Update ");G();F(3,"b-button",129);J("onAction",function(){z(b);var c=K(3);return A(c.revertMetadataChanges())});O(4," Revert Changes ");G();F(5,"b-button",129);J("onAction",function(){z(b);var c=K(3);return A(c.createChild())});O(6," Create Child Component ");G()()}a&2&&(a=K(3),B(1),C("disabled",a.isSaving()||!a.hasUnsavedMetadataChanges()),
B(2),C("disabled",a.isSaving()||!a.hasUnsavedMetadataChanges()),B(2),C("disabled",a.hasUnsavedMetadataChanges()))},Udb=function(a){if(a&1){var b=x();F(0,"b-button",130);J("onAction",function(){z(b);var c=K(3);return A(c.showUpdateHistoryModal())});O(1," View History ");G()}},Vdb=function(a){a&1&&H(0,"b-spinner")},Wdb=function(a){if(a&1){var b=x();F(0,"b-component-children-list",131);J("onVisit",function(){z(b);var c=K(3);return A(c.trackClick("openChildComponent"))});G()}a&2&&(a=K(3),C("children",
a.childComponents))},Xdb=function(a){a&1&&(F(0,"span"),O(1," No child components. "),G())},Ydb=function(a){if(a&1){var b=x();F(0,"div",36)(1,"form",37,38);H(3,"b-error-banner",39);F(4,"div",40)(5,"label",41)(6,"span",42);O(7,"Name");G()();F(8,"input",43);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.component.name=c)});G()();F(9,"div",44)(10,"div",45)(11,"label",46)(12,"span",42);O(13,"Description");G()();F(14,"span",47)(15,"div",48);O(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. ");
F(17,"div",49);H(18,"div",50)(19,"div",51);G()()()();F(20,"textarea",52);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.component.description=c)});O(21,"            ");G()();M(22,tdb,14,5,"div",53);F(23,"div",54)(24,"div",55)(25,"b-checkbox",56);J("change",function(c){z(b);var d=K(2);d.commentEditsEnabled=c;return A(d.setCommentEditState())});G()();F(26,"div")(27,"strong",57);O(28,"Editable Comments");G();F(29,"div",58);O(30," When checked, users with comment access can modify their own issue comments, and editors can modify the first issue comment. ");
H(31,"br");M(32,udb,2,1,"a",59);G()()();M(33,vdb,12,6,"div",60);M(34,ydb,5,3,"div",61);M(35,Sdb,22,11,"div",62);F(36,"div",63)(37,"div",45)(38,"label",64)(39,"span",42);O(40,"Component Alias");G()();F(41,"span",47)(42,"div",65);O(43," You can create a new issue in this component by sending an email to this alias. ");H(44,"br");F(45,"a",66);O(46," Learn more ");G();F(47,"div",49);H(48,"div",50)(49,"div",51);G()()()();F(50,"div")(51,"a",67);O(52);G()()();F(53,"div",68);M(54,Tdb,7,3,"div",69);F(55,"div",
70);M(56,Udb,2,0,"b-button",71);G()();F(57,"div",72)(58,"label")(59,"span",42);O(60,"Child Components");G()();M(61,Vdb,1,0,"b-spinner",5);M(62,Wdb,1,1,"b-component-children-list",73);M(63,Xdb,2,0,"span",5);G()()()}a&2&&(a=K(2),B(1),le("show-errors",a.error),B(2),C("error",a.error),B(1),le("bv2-edit-resource-readonly",zt(a)),B(4),C("ngModel",a.component.name)("disabled",zt(a)),B(1),le("bv2-edit-resource-readonly",zt(a)),B(11),C("ngModel",a.component.description)("disabled",zt(a)),B(2),C("ngIf",a.isAdmin()),
B(1),le("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(2),C("checked",a.commentEditsEnabled)("disabled",zt(a)),B(7),C("ngIf",!a.sessionIsExternal),B(1),C("ngIf",!a.sessionIsExternal),B(1),C("ngIf",a.sessionIsInternal),B(1),C("ngIf",a.component.slo&&a.sessionIsInternal),B(10),C("href",a.documentationLinks.baseDocumentationUrl+"/guides/create-issue-email",Md),B(6),ze("href","mailto:",a.component.emailAlias,"",Md),ge("aria-label","Component Alias -"+a.component.emailAlias),B(1),Ee(a.component.emailAlias),
B(2),C("ngIf",a.isEditor_),B(2),C("ngIf",a.componentHistoryUiEnabled),B(5),C("ngIf",void 0===a.childComponents),B(1),C("ngIf",a.childComponents&&0<a.childComponents.length),B(1),C("ngIf",a.childComponents&&0===a.childComponents.length))},Zdb=function(a){a&1&&(F(0,"div",136),O(1," Standard Fields "),G())},aeb=function(a){if(a&1){var b=x();F(0,"b-component-standard-fields",137);J("updateComponent",function(c){z(b);var d=K(3);return A($db(d,c))});G()}a&2&&(a=K(3),C("effortSpec",null==a.component?null:
a.component.effortSpec)("parentEffortSpec",null==a.parentComponent?null:a.parentComponent.effortSpec))},beb=function(a){a&1&&(F(0,"div",138),O(1," Custom Fields "),G())},ceb=function(a){a&1&&(M(0,Zdb,2,0,"div",132),M(1,aeb,1,2,"b-component-standard-fields",133),M(2,beb,2,0,"div",134),H(3,"b-component-custom-fields",135));a&2&&(a=K(2),C("ngIf",a.sessionIsInternal&&!a.isExternal()),B(1),C("ngIf",a.sessionIsInternal&&!a.isExternal()),B(1),C("ngIf",a.sessionIsInternal&&!a.isExternal()),B(1),C("editMode",
a.isEditor_)("isSaving",a.isSaving())("component",a.component)("parentComponent",a.parentComponent))},eeb=function(a){a&1&&(F(0,"a",142),O(1," Learn more "),G());a&2&&(K(3),C("href",deb(),Md))},geb=function(a){if(a&1){var b=x();F(0,"div",36)(1,"div",139);O(2," Field ordering will be applied to all issues and templates in this component, including the right panel on the Issue Detail page. ");M(3,eeb,2,1,"a",140);G();F(4,"b-field-reorder",141);J("onReload",function(){z(b);var c=K(2);return A(feb(c))});
G()()}a&2&&(a=K(2),B(3),C("ngIf",a.sessionIsInternal),B(1),C("fields",a.effectiveCustomFields)("componentId",a.componentId)("fieldOrdering",a.component.fieldOrdering)("isAdmin",a.isAdmin()))},heb=function(a){a&1&&H(0,"b-edit-templates",144);a&2&&(a=K(3),C("componentId",a.componentId)("supportCustomFields",!0))},ieb=function(a){a&1&&(F(0,"div"),O(1),G());a&2&&(a=K().$implicit,B(1),Ee(a.description))},jeb=function(a,b){a&1&&(F(0,"div",146)(1,"label"),O(2),G(),M(3,ieb,2,1,"div",5),F(4,"div")(5,"a",67),
O(6),G()()());a&2&&(a=b.$implicit,B(2),Ee(a.name),B(1),C("ngIf",a.description),B(2),C("href",a.url,Md),ge("aria-label","Click to open the template "+a.name),B(1),Ee(a.url))},keb=function(a){a&1&&(qe(0),M(1,jeb,7,5,"div",145),re());a&2&&(a=K(3),B(1),C("ngForOf",a.templates))},leb=function(a){a&1&&(F(0,"div",36),M(1,heb,1,2,"b-edit-templates",143),M(2,keb,2,1,"ng-container",5),G());a&2&&(a=K(2),B(1),C("ngIf",a.isEditor_),B(1),C("ngIf",!a.isEditor_))},meb=function(a){a&1&&H(0,"role-based-permissions")},
neb=function(a){if(a&1){var b=x();F(0,"input",201);J("ngModelChange",function(c){z(b);var d=K(5);return A(d.component.accessLimit.accessLevel=c)});G()}a&2&&(a=K(5),C("disabled",!a.isAdmin())("ngModel",a.component.accessLimit.accessLevel))},oeb=function(a){if(a&1){var b=x();F(0,"input",202);J("ngModelChange",function(c){z(b);var d=K(5);return A(d.component.accessLimit.accessLevel=c)});G()}a&2&&(a=K(5),C("disabled",!a.isAdmin()||!a.isParentPartner())("ngModel",a.component.accessLimit.accessLevel))},
peb=function(a){if(a&1){var b=x();F(0,"input",203);J("ngModelChange",function(c){z(b);var d=K(5);return A(d.component.accessLimit.accessLevel=c)});G()}a&2&&(a=K(5),C("disabled",!a.isAdmin()||!a.isParentPublic())("ngModel",a.component.accessLimit.accessLevel))},qeb=function(a){a&1&&(F(0,"div",187)(1,"div",188)(2,"span",189),O(3,"Component visibility: "),G()(),F(4,"div",190)(5,"div",191),M(6,neb,1,2,"input",192),F(7,"label",193),O(8),G()(),F(9,"div",191),M(10,oeb,1,2,"input",194),F(11,"label",195),
O(12),G()(),F(13,"div",196),M(14,peb,1,2,"input",197),F(15,"label",198),O(16),G()()(),F(17,"p",199)(18,"a",200),O(19," Learn more "),G()()());a&2&&(a=K(4),B(6),C("ngIf",a.component&&a.component.accessLimit),B(2),De(" ",a.getAccessLevelDescription(a.AccessLevelStrings.INTERNAL)," "),B(2),C("ngIf",a.component&&a.component.accessLimit),B(2),De(" ",a.getAccessLevelDescription(a.AccessLevelStrings.EXTERNAL_PARTNER)," "),B(2),C("ngIf",a.component&&a.component.accessLimit),B(2),De(" ",a.getAccessLevelDescription(a.AccessLevelStrings.EXTERNAL_PUBLIC),
" "),B(2),C("href",Zcb(a.documentationLinks),Md))},reb=function(a){a&1&&(F(0,"a",204),O(1," Learn more "),G());a&2&&(a=K(4),C("href",a.documentationLinks.getRestrictedAccessHelpLink(),Md))},seb=function(a){a&1&&(F(0,"span",47)(1,"div",48),O(2,' Only individuals or group aliases may be granted issue edit permission for components designated as "Visible to Public". '),F(3,"div",49),H(4,"div",50)(5,"div",51),G()()())},teb=function(a){a&1&&(F(0,"a",205),O(1," Learn more "),G());a&2&&(a=K(4),C("href",
a.documentationLinks.getRestrictedAccessHelpLink(),Md))},ueb=function(a){a&1&&(F(0,"a",206),O(1," Learn more "),G());a&2&&(a=K(4),C("href",a.documentationLinks.getRestrictedAccessHelpLink(),Md))},veb=function(a){if(a&1){var b=x();F(0,"b-button",207);J("onAction",function(){z(b);var c=K(4);return A(c.revertAccessPolicyChanges())});O(1," Revert Changes ");G()}},Beb=function(a){if(a&1){var b=x();F(0,"div")(1,"div",36);M(2,qeb,20,7,"div",147);F(3,"div",139);O(4," Access to issues is granted per component using the settings below. All settings provide access to view the component. ");
F(5,"a",148);O(6,"Learn more");G()();F(7,"form",149)(8,"div",150)(9,"label",151)(10,"span",42);O(11,"Component Admins");G();F(12,"p",152);O(13," View component, edit component details and access controls, create issues (does not imply permission to view issues). ");G()();F(14,"b-multi-user-input",153);J("usersChange",function(c){z(b);var d=K(3);d.componentAccessPolicyUnderEdit=Object.assign({},d.componentAccessPolicyUnderEdit,{admins:c});return A()})("isValid",function(c){z(b);var d=K(3);return A(d.aclFormValidity["component-admins"]=
c)});G()();F(15,"div",154)(16,"label",155)(17,"span",42);O(18,"Create issues");G();F(19,"p",152);O(20," View component, create issues (does not imply permission to view issues). ");G()();F(21,"b-multi-user-input",156);J("usersChange",function(c){z(b);var d=K(3);d.componentAccessPolicyUnderEdit=Object.assign({},d.componentAccessPolicyUnderEdit,{appenders:c});return A()})("isValid",function(c){z(b);var d=K(3);return A(d.aclFormValidity["component-appenders"]=c)});G()();F(22,"div",157)(23,"label",158)(24,
"span",42);O(25,"Issue Admins");G();F(26,"p",152);O(27," View component, view issues, add comments and attachments, edit all issue data,");H(28,"br");O(29," mark issues as spam, delete and undelete issues, change restriction level of content. ");M(30,reb,2,1,"a",159);G()();F(31,"b-multi-user-input",160);J("usersChange",function(c){z(b);var d=K(3);return A(At(d,{admins:c}))})("isValid",function(c){z(b);var d=K(3);return A(d.aclFormValidity["issue-admins"]=c)});G()();F(32,"div",161)(33,"label",162)(34,
"div")(35,"span",42);O(36,"Edit issues");G();M(37,seb,6,0,"span",163);G();F(38,"p",152);O(39," View component, view issues, add comments and attachments, edit all issue data. ");G()();F(40,"b-multi-user-input",164);J("usersChange",function(c){z(b);var d=K(3);return A(At(d,{editors:c}))})("isValid",function(c){z(b);var d=K(3);return A(d.aclFormValidity["issue-editors"]=c)});G()();F(41,"div",165)(42,"label",166)(43,"span",42);O(44,"Comment on issues");G();F(45,"p",152);O(46," View component, view issues, add comments and attachments. ");
G()();F(47,"b-multi-user-input",167);J("usersChange",function(c){z(b);var d=K(3);return A(At(d,{appenders:c}))})("isValid",function(c){z(b);var d=K(3);return A(d.aclFormValidity["issue-appenders"]=c)});G()();F(48,"div",168)(49,"label",169)(50,"span",42);O(51,"View restricted+ content");G();F(52,"p",152);O(53," View component, view issues, view restricted content, view restricted+ content. This ACL does not accept groups. ");M(54,teb,2,1,"a",170);G()();F(55,"b-multi-user-input",171);J("usersChange",
function(c){z(b);var d=K(3);return A(At(d,{restrictedPlusReaders:c}))})("isValid",function(c){z(b);var d=K(3);return A(d.aclFormValidity["issue-restricted-plus-readers"]=c)});G()();F(56,"div",172)(57,"label",173)(58,"span",42);O(59,"View restricted content");G();F(60,"p",152);O(61," View component, view issues, view restricted content. This ACL accepts groups. ");M(62,ueb,2,1,"a",174);G()();F(63,"b-multi-user-input",175);J("usersChange",function(c){z(b);var d=K(3);return A(At(d,{restrictedReaders:c}))})("isValid",
function(c){z(b);var d=K(3);return A(d.aclFormValidity["issue-restricted-readers"]=c)});G()();F(64,"div",176)(65,"label",177)(66,"span",42);O(67,"View issues");G();F(68,"p",152);O(69," View component, view issues. ");G()();F(70,"b-multi-user-input",178);J("usersChange",function(c){z(b);var d=K(3);return A(At(d,{readers:c}))})("isValid",function(c){z(b);var d=K(3);return A(d.aclFormValidity["issue-readers"]=c)});G()();F(71,"div",179)(72,"label",180)(73,"span",42);O(74,"View Component (Auto-populated)");
G();F(75,"p",152);O(76," View component (view all settings for this component, view custom fields for this and all parent components). ");H(77,"br");O(78," This field is auto-populated with all users and groups listed in the above settings. ");G()();F(79,"b-multi-user-input",181);J("usersChange",function(c){z(b);var d=K(3);return A(d.componentReaders=c)})("isValid",function(c){z(b);var d=K(3);return A(d.aclFormValidity["component-readers"]=c)});G()();F(80,"div",182)(81,"span",55)(82,"b-checkbox",
183);J("change",function(c){z(b);var d=K(3);return A(d.implicitAccess.setValue(c))});G()();F(83,"div")(84,"strong",184);O(85,"Expanded access");G();F(86,"div",58);O(87," When checked, verifiers and assignees can edit issues for this component, and CC'd users can add comments. ");F(88,"a",185);O(89,"Learn more");G()()()()();F(90,"div",68)(91,"b-button",128);J("onAction",function(){z(b);var c=K(3);return A(c.saveAccessPolicy())});O(92," Update ");G();M(93,veb,2,0,"b-button",186);G()()()}a&2&&(a=K(3),
B(2),C("ngIf",a.shouldShowAccessLimitChangeUi()),B(3),ze("href","",Fo(a.documentationLinks),"#components",Md),B(3),le("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(6),C("users",a.componentAccessPolicyUnderEdit.admins)("accessLevel",a.getComponentAccessLevel())("containerChips",Ie(72,Bt,Ie(70,web,a.componentAccessPolicyUnderEdit.inheritedAdmins))),ge("disabled",a.isAccessEditDisabled()?!0:null),B(1),le("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(6),C("users",a.componentAccessPolicyUnderEdit.appenders)("accessLevel",
a.getComponentAccessLevel())("containerChips",Ie(76,Bt,Ie(74,xeb,a.componentAdmins)))("includeAliases",!0),ge("disabled",a.isAccessEditDisabled()?!0:null),B(1),le("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(8),C("ngIf",!a.sessionIsExternal),B(1),C("users",a.issueDefaultAccessPolicyUnderEdit.admins)("accessLevel",a.getComponentAccessLevel()),ge("disabled",a.isAccessEditDisabled()?!0:null),B(1),le("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(2),le("field-label-with-help",a.isPublic()),
B(3),C("ngIf",a.isPublic()),B(3),C("users",a.issueDefaultAccessPolicyUnderEdit.editors)("accessLevel",a.getComponentAccessLevel())("containerChips",Ie(80,Bt,Ie(78,yeb,a.issueDefaultAccessPolicyUnderEdit.admins)))("includeAliases",!a.isPublic()),ge("disabled",a.isAccessEditDisabled()?!0:null),B(1),le("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(6),C("users",a.issueDefaultAccessPolicyUnderEdit.appenders)("accessLevel",a.getComponentAccessLevel())("containerChips",Ie(84,Bt,Ie(82,zeb,a.issueCommenters)))("includeAliases",
!0),ge("disabled",a.isAccessEditDisabled()?!0:null),B(1),le("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(6),C("ngIf",!a.sessionIsExternal),B(1),C("users",a.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders)("accessLevel",a.getComponentAccessLevel())("customValidators",a.restrictedPlusReadersValidators),ge("disabled",a.isAccessEditDisabled()?!0:null),B(1),le("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(6),C("ngIf",!a.sessionIsExternal),B(1),C("users",a.issueDefaultAccessPolicyUnderEdit.restrictedReaders)("accessLevel",
a.getComponentAccessLevel())("containerChips",Ie(88,Bt,Ie(86,Aeb,a.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders))),ge("disabled",a.isAccessEditDisabled()?!0:null),B(1),le("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(6),C("users",a.issueDefaultAccessPolicyUnderEdit.readers)("accessLevel",a.getComponentAccessLevel())("containerChips",a.issueViewersChip)("includeAliases",!0)("includeViewAliases",!0),ge("disabled",a.isAccessEditDisabled()?!0:null),B(9),C("users",a.componentReaders)("accessLevel",
a.getComponentAccessLevel()),ge("disabled",!0),B(1),le("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(2),C("checked",a.implicitAccess.getValue())("disabled",a.isAccessEditDisabled()),B(6),C("href",Fo(a.documentationLinks),Md),B(3),C("disabled",!(Ct(a)||Dt(a))||a.isSaving()||a.aclFormIsInvalid()),B(2),C("ngIf",a.isAdmin()))},Ceb=function(a){a&1&&(M(0,meb,1,0,"role-based-permissions",5),M(1,Beb,94,90,"div",5));a&2&&(a=K(2),C("ngIf",a.enableRoleBasedPermissions),B(1),C("ngIf",!a.enableRoleBasedPermissions))},
Deb=function(a){if(a&1){var b=x();F(0,"div")(1,"div",16)(2,"h2");O(3);G();M(4,ndb,2,0,"span",17);F(5,"a",18);J("click",function(){z(b);var k=K();return A(k.trackClick("recentIssues"))});O(6," (Recent Issues)");G();H(7,"b-access-level-indicator",19);G();F(8,"div",20);H(9,"b-component-breadcrumb",21)(10,"div",22);G();F(11,"mat-tab-group",23);J("selectedIndexChange",function(k){z(b);var q=K();return A(q.tabChange(k))});F(12,"mat-tab",24);M(13,odb,1,0,"ng-container",25);G();F(14,"mat-tab",26);M(15,pdb,
1,0,"ng-container",25);G();F(16,"mat-tab",27);M(17,qdb,1,0,"ng-container",25);G();F(18,"mat-tab",28);M(19,rdb,1,0,"ng-container",25);G();F(20,"mat-tab",29);M(21,sdb,1,0,"ng-container",25);G()();M(22,Ydb,64,29,"ng-template",null,30,Jf);M(24,ceb,4,7,"ng-template",null,31,Jf);M(26,geb,5,5,"ng-template",null,32,Jf);M(28,leb,3,2,"ng-template",null,33,Jf);M(30,Ceb,2,2,"ng-template",null,34,Jf);G()}if(a&2){var c=Ce(23),d=Ce(25),e=Ce(27),f=Ce(29),h=Ce(31);a=K();B(3);Fe(" Component ",a.component.componentId,
": ",a.currentName," ");B(1);C("ngIf",a.isArchived());B(1);C("routerLinkObj",a.getRecentIssuesLink());B(2);C("accessLevel",a.getComponentAccessLevel());B(2);C("componentPathInfo",a.component.componentPathInfo)("isArchived",a.isArchived())("label","Parent Component");B(2);C("selectedIndex",a.selectedTabIndex);B(1);C("id",a.Tab.BASIC);B(1);C("ngTemplateOutlet",c);B(1);C("id",a.Tab.CUSTOM_FIELDS)("label",a.sessionIsInternal&&!a.isExternal()?"Fields":"Custom Fields");B(1);C("ngTemplateOutlet",d);B(1);
C("id",a.Tab.FIELD_ORDERING);B(1);C("ngTemplateOutlet",e);B(1);C("id",a.Tab.TEMPLATES);B(1);C("ngTemplateOutlet",f);B(1);C("id",a.Tab.ACCESS);B(1);C("ngTemplateOutlet",h)}},Eeb=function(a){a&1&&(F(0,"span")(1,"p"),O(2," Archiving a component causes it and its subcomponents and all issues in those components to be hidden from normal use."),H(3,"br"),F(4,"a",213),O(5," Learn more "),G()(),F(6,"p"),O(7," If you no longer have a reason to retain the data stored in these components, please change the retention period as needed "),
H(8,"br"),O(9," so they can be scheduled for deletion. "),F(10,"a",214),O(11," Learn more "),G()()());a&2&&(K(2),B(4),C("href","http://go/archived-components",Md),B(6),C("href",yt(),Md))},Feb=function(a){a&1&&(F(0,"span"),O(1," : "),F(2,"b"),O(3),G()());if(a&2){a=K().$implicit;var b=K(2),c;le("b-archive-warning-indef",!(null==(c=a.getRetentionSettings())?0:ej(c,2)));B(3);Ee(b.getRetentionPeriod(a))}},Geb=function(a,b){a&1&&(F(0,"span")(1,"span"),O(2),G(),M(3,Feb,4,3,"span",215),H(4,"br"),G());a&2&&
(a=b.$implicit,b=K(2),B(2),Ee(V(a,1)),B(1),C("ngIf","Archive"===b.archiveAction))},Heb=function(a){if(a&1){var b=x();F(0,"h2",208);O(1);G();F(2,"mat-dialog-content");M(3,Eeb,12,2,"span",5);F(4,"p");O(5," The following components will be affected: ");G();F(6,"div",209);M(7,Geb,5,2,"span",210);G()();F(8,"mat-dialog-actions")(9,"button",211);J("click",function(){z(b);var c=K();c.archive();c.isArchiving_=!1;return A()});O(10," Yes ");G();F(11,"button",212);J("click",function(){z(b);K().isArchiving_=!1;
return A()});O(12," No ");G()()}a&2&&(a=K(),B(1),Ee(a.component&&a.archiveAction?"Are you sure you want to "+a.archiveAction.toLowerCase()+' "'+a.component.name+'" and its subcomponents?':""),B(2),C("ngIf","Archive"===a.archiveAction),B(4),C("ngForOf",a.descendants))},Ieb=function(a){var b=null;if(a instanceof Et)var c=a.getSourceTeamId();else c=a.sourceTeamId,b=a.sourceComponentId;return{sourceTeamId:c,sourceComponentId:b}},Jeb=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)}},Keb=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},Leb=function(a,b){a&1&&(F(0,"div",39),H(1,"b-team-breadcrumb",40),G());a&2&&(a=b.ngIf,B(1),C("teamPath",a))},Meb=function(a,
b){a&1&&(qe(0),O(1),re());a&2&&(a=b.ngIf,B(1),Ee(a.trim()))},Neb=function(a){a&1&&O(0," No description ")},Oeb=function(a,b){a&1&&(qe(0),H(1,"b-multi-user-input",41),re());a&2&&(a=b.ngIf,B(1),C("users",a),ge("disabled",!0))},Peb=function(a){a&1&&(qe(0),F(1,"p"),O(2,"No child teams"),G(),re())},Qeb=function(a,b){a&1&&(qe(0),H(1,"br"),F(2,"a",44),O(3),G(),re());a&2&&(a=b.$implicit,B(2),ze("routerLink","/teams/",a.getId(),"/edit"),B(1),Ee(a.getName()))},Reb=function(a){a&1&&M(0,Qeb,4,2,"ng-container",
43);a&2&&(a=K().ngIf,C("ngForOf",a))},Seb=function(a,b){a&1&&(qe(0),M(1,Peb,3,0,"ng-container",18),M(2,Reb,1,1,"ng-template",null,42,Jf),re());if(a&2){a=b.ngIf;var c=Ce(3);B(1);C("ngIf",0===a.length)("ngIfElse",c)}},Teb=function(a){a&1&&(F(0,"a",48),O(1),G());if(a&2){a=K().ngIf;var b;C("routerLinkObj",a.link);B(1);De(" ",null!==(b=null==a.slo?null:a.slo.getName())&&void 0!==b?b:a.id," ")}},Ueb=function(a){a&1&&O(0," None ")},Veb=function(a,b){a&1&&(F(0,"div",45),O(1," Inherited SLO Policy: "),M(2,
Teb,2,2,"a",46),M(3,Ueb,1,0,"ng-template",null,47,Jf),G());if(a&2){a=b.ngIf;var c=Ce(4);B(2);C("ngIf",a.link)("ngIfElse",c)}},Web=function(a,b){a&1&&(F(0,"a",49),O(1),G());a&2&&(a=b.ngIf,C("routerLinkObj",a.link),B(1),De(" ",a.name," "))},Xeb=function(a){a&1&&O(0," None ")},Yeb=function(a){a&1&&(qe(0),H(1,"mat-icon",51),O(2," on "),re())},Zeb=function(a){a&1&&(H(0,"mat-icon",52),O(1," off "))},$eb=function(a){a&1&&(qe(0),O(1," Lock: "),M(2,Yeb,3,0,"ng-container",18),M(3,Zeb,2,0,"ng-template",null,
50,Jf),re());if(a&2){var b=Ce(4);a=K(2);B(2);C("ngIf",a.originalSloLock)("ngIfElse",b)}},afb=function(a){if(a&1){var b=x();F(0,"div",54)(1,"mat-checkbox",55);J("change",function(c){z(b);var d=K(3);d.isSloInheritEnabled=!c.checked;d.isSloInheritEnabled&&(d.sloId=d.parentTeam.getSlo().getSloId());return A()});F(2,"span");O(3,"Override the inherited SLO");G()()()}a&2&&(a=K(3),B(1),C("disabled",!a.hasEditAccess)("checked",!a.isSloInheritEnabled))},bfb=function(a){if(a&1){var b=x();F(0,"div",60)(1,"label",
61);O(2," Justification to override the org SLO ");G();H(3,"mat-icon",62);F(4,"textarea",63);J("ngModelChange",function(c){z(b);var d=K(4);return A(d.sloJustification$.next(c))});P(5,"async");G()()}a&2&&(a=K(4),B(3),C("matTooltip",a.justificationRequiredText),ge("aria-label",a.justificationRequiredText),B(1),C("ngModel",Q(5,4,a.sloJustification$))("disabled",!a.hasEditAccess))},cfb=function(a,b){a&1&&(F(0,"a",64),P(1,"async"),H(2,"mat-icon",9),G());a&2&&(a=b.ngIf,b=K(4),Ae("target",Q(1,2,b.hasUnsavedChanges$)?
"_blank":"_self"),C("routerLinkObj",a))},dfb=function(a){if(a&1){var b=x();qe(0);M(1,bfb,6,6,"div",56);F(2,"div",14)(3,"mat-slide-toggle",57);J("ngModelChange",function(d){z(b);var e=K(3);return A(e.enableSloChecked=d)})("change",function(d){z(b);var e=K(3);return A(e.enableSloChecked=d.checked)});O(4," Enable SLO ");G();F(5,"slo-picker",58);J("onSloSelect",function(d){z(b);var e=K(3);return A(e.onSloChange(d))});G();M(6,cfb,3,4,"a",59);P(7,"async");G();re()}if(a&2){a=K().ngIf;var c=K(2);B(1);C("ngIf",
!a.value);B(2);le("indented",!a.value);C("ngModel",c.enableSloChecked)("disabled",!c.hasEditAccess);B(2);C("boundId",c.sloId)("bv2Disabled",!c.hasEditAccess||!c.enableSloChecked||c.isSloInheritEnabled)("bv2Placeholder",c.enableSloChecked?"Type to search for an SLO":"SLO disabled");B(1);C("ngIf",Q(7,9,c.sloPickerLink$))}},efb=function(a,b){a&1&&(qe(0),M(1,afb,4,2,"div",53),M(2,dfb,8,11,"ng-container",6),re());a&2&&(a=b.ngIf,b=K(2),B(1),C("ngIf",!a.value),B(1),C("ngIf",!b.isSloInheritEnabled))},ffb=
function(a){if(a&1){var b=x();F(0,"div",14)(1,"mat-checkbox",65);J("change",function(c){z(b);var d=K(2);return A(d.sloLocked=c.checked)});F(2,"span");O(3,"Lock for all child teams");G()()()}a&2&&(a=K(2),B(1),C("checked",a.sloLocked)("disabled",!a.canEditSloLock))},ifb=function(a){if(a&1){var b=x();F(0,"div",14)(1,"div",20)(2,"label",21)(3,"span",16);O(4," SLO lead ");G()();F(5,"span",22)(6,"div",23);O(7," Single team lead receiving SLO reports of unassigned issues. ");F(8,"div",24);H(9,"div",25)(10,
"div",26);G()()()();F(11,"div");qe(12);F(13,"b-multi-user-input",66);J("usersChange",function(c){z(b);var d=K(2);1<c.length||(d.sloLead=1===c.length?c[0]:"");return A()})("isValid",function(c){z(b);var d=K(2);return A(d.isSloLeadValid=c)});G();re();G()()}a&2&&(a=K(2),B(13),C("users",a.sloLead?Ie(4,gfb,a.sloLead):He(6,hfb))("customValidators",a.sloLeadValidators)("maxUserAllowed",1),ge("disabled",a.hasEditAccess?null:!0))},lfb=function(a){if(a&1){var b=x();F(0,"div",67)(1,"div",68)(2,"button",69);
J("click",function(){z(b);var c=K().ngIf,d=K();return A(jfb(d,c))});P(3,"async");O(4," Update ");G();F(5,"button",70);J("click",function(){z(b);var c=K(2);return A(kfb(c))});P(6,"async");O(7," Revert changes ");G()()()}a&2&&(a=K(2),B(2),C("disabled",!Q(3,2,a.hasUnsavedChanges$)),B(3),C("disabled",!Q(6,4,a.hasUnsavedChanges$)))},mfb=function(a){a&1&&(qe(0),F(1,"p"),O(2,"No mapped components"),G(),re())},nfb=function(a,b){a&1&&(F(0,"ul")(1,"li")(2,"a",44),O(3),G()()());a&2&&(a=b.$implicit,B(2),ze("routerLink",
"/components/",a.componentId,"/manage"),B(1),De(" ",a.name," "))},ofb=function(a){a&1&&(M(0,nfb,4,2,"ul",43),P(1,"async"));a&2&&(a=K(3),C("ngForOf",Q(1,1,a.associatedComponents$)))},pfb=function(a,b){a&1&&(qe(0),M(1,mfb,3,0,"ng-container",18),M(2,ofb,2,3,"ng-template",null,71,Jf),re());if(a&2){a=b.ngIf;var c=Ce(3);B(1);C("ngIf",0===a.length)("ngIfElse",c)}},rfb=function(a,b){if(a&1){var c=x();qe(0);F(1,"div",7)(2,"h2");O(3);F(4,"a",8);O(5);H(6,"mat-icon",9);G()()();M(7,Leb,2,1,"div",10);P(8,"async");
F(9,"mat-tab-group",11);J("selectedIndexChange",function(f){z(c);var h=K();return A(h.selectedTabIndex=f)})("selectedIndexChange",function(f){z(c);var h=K();return A(h.tabChange(f))});F(10,"mat-tab",12)(11,"div",13);O(12," Team information on this page comes from ");F(13,"a",8);O(14," Team Graph ");H(15,"mat-icon",9);G();O(16," and is view only. ");F(17,"div",14)(18,"div",15)(19,"label")(20,"span",16);O(21,"Description");G()();F(22,"div",17);M(23,Meb,2,1,"ng-container",18);M(24,Neb,1,0,"ng-template",
null,19,Jf);G()()();F(26,"div",14)(27,"div",20)(28,"label",21)(29,"span",16);O(30," Team admins ");G();F(31,"span",22)(32,"div",23);O(33," Team admins are either team editors or team leads from Team Graph. ");F(34,"div",24);H(35,"div",25)(36,"div",26);G()()()();M(37,Oeb,2,2,"ng-container",6);P(38,"async");G()();F(39,"div",14)(40,"div",15)(41,"label")(42,"span",16);O(43,"Child team(s)");G()();M(44,Seb,4,2,"ng-container",6);P(45,"async");G()()()();F(46,"mat-tab",27)(47,"div",13)(48,"div",20)(49,"label",
21)(50,"span",16);O(51,"SLO configuration");G()();F(52,"span",22)(53,"div",28)(54,"strong");O(55,"Careful!");G();O(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. ");F(57,"div",24);H(58,"div",25)(59,"div",26);G()()()();F(60,"div",29);M(61,Veb,5,2,"div",30);P(62,"async");F(63,"div",31);O(64," Policy Source: ");M(65,Web,2,2,"a",32);P(66,"async");M(67,Xeb,1,0,"ng-template",null,33,Jf);G();F(69,
"div",34);M(70,$eb,5,2,"ng-container",6);G()();H(71,"b-error-banner",35);M(72,efb,3,2,"ng-container",6);P(73,"async");M(74,ffb,4,2,"div",36);M(75,ifb,14,7,"div",36);M(76,lfb,8,6,"div",37);G()();F(77,"mat-tab",38)(78,"div",13)(79,"div",14)(80,"div",15)(81,"label")(82,"span",16);O(83," Component(s) that have mapped to this team ");G()()();M(84,pfb,4,2,"ng-container",6);P(85,"async");G()()()();re()}if(a&2){a=b.ngIf;var d=Ce(25),e=Ce(68);b=K();B(3);De(" Team ",a.getTeamId(),": ");B(1);ze("href","https://moma.corp.google.com/team/",
a.getTeamId(),"",Md);B(1);De(" ",a.getName()," ");B(2);C("ngIf",Q(8,23,b.teamPath$));B(2);C("selectedIndex",b.selectedTabIndex);B(1);C("id",b.Tab.BASIC);B(3);ze("href","https://moma.corp.google.com/team/",a.getTeamId(),"",Md);B(10);C("ngIf",a.getDescription())("ngIfElse",d);B(14);C("ngIf",Q(38,25,b.adminsAndLeads$));B(7);C("ngIf",Q(45,27,b.childTeams$));B(2);C("id",b.Tab.SLO);B(15);C("ngIf",Q(62,29,b.inheritedSlo$));B(4);C("ngIf",Q(66,31,b.sloPolicySource$))("ngIfElse",e);B(5);C("ngIf",b.enableSloLockingUi);
B(1);C("error",b.error);B(1);C("ngIf",Ie(37,qfb,Q(73,33,b.isRootTeam$)));B(2);C("ngIf",b.enableSloLockingUi);B(1);C("ngIf",b.enableSloLead);B(1);C("ngIf",b.hasEditAccess);B(1);C("id",b.Tab.MAPPINGS);B(7);C("ngIf",Q(85,35,b.associatedComponents$))}},sfb=function(a){a&1&&ue(0)},ufb=function(a,b){a&1&&(qe(0),M(1,sfb,1,0,"ng-container",7),re());if(a&2){a=b.$implicit;K(3);var c=Ce(5);B(1);C("ngTemplateOutlet",c)("ngTemplateOutletContext",Ie(2,tfb,a))}},vfb=function(a){a&1&&(F(0,"div",4)(1,"div",5),O(2,
"TEAMFOOD"),G(),M(3,ufb,2,4,"ng-container",6),P(4,"async"),G());a&2&&(a=K(2),B(3),C("ngForOf",Q(4,1,a.beapFeaturesTF$)))},wfb=function(a){a&1&&ue(0)},xfb=function(a,b){a&1&&(qe(0),M(1,wfb,1,0,"ng-container",7),re());if(a&2){a=b.$implicit;K(3);var c=Ce(5);B(1);C("ngTemplateOutlet",c)("ngTemplateOutletContext",Ie(2,tfb,a))}},yfb=function(a){a&1&&(F(0,"div",4)(1,"div",5),O(2,"EARLY ACCESS"),G(),M(3,xfb,2,4,"ng-container",6),P(4,"async"),G());a&2&&(a=K(2),B(3),C("ngForOf",Q(4,1,a.beapFeaturesEA$)))},
zfb=function(a){a&1&&(qe(0),M(1,vfb,5,3,"div",3),P(2,"async"),M(3,yfb,5,3,"div",3),P(4,"async"),re());a&2&&(a=K(),B(1),C("ngIf",Q(2,2,a.hasFeaturesTF$)),B(2),C("ngIf",Q(4,4,a.hasFeaturesEA$)))},Afb=function(a){a&1&&(F(0,"div",8),O(1,"No available experiments"),G())},Bfb=function(a){a&1&&(F(0,"a",23),O(1," Learn more"),G());a&2&&(a=K().feature,ge("href",V(a,6),Md))},Cfb=function(a){a&1&&(F(0,"b-callout",24)(1,"b-callout-body"),O(2," Reload page to see changes. "),G()())},Efb=function(a,b){if(a&1){var c=
x();F(0,"div",9)(1,"div",10)(2,"div",11);H(3,"mat-slide-toggle",12);P(4,"featureState");P(5,"featureState");G();F(6,"div",13)(7,"div",14);O(8);G();F(9,"span",15);O(10);M(11,Bfb,2,1,"a",16);G();F(12,"div",17)(13,"a",18);J("click",function(){var d=z(c).feature,e=K();d=d.getExperimentId();e.linkClicked[d]=!0;return A()});H(14,"mat-icon",19);O(15);P(16,"featureState");G()();M(17,Cfb,3,0,"b-callout",20);G();F(18,"div",21);H(19,"b-app-beap-state-indicator",22);G()()()}a&2&&(a=b.feature,b=K(),B(3),C("checked",
Q(4,10,a.getState()))("matTooltip",Q(5,12,a.getState())?"Opted in":"Opted out")("disabled",!0),B(5),De(" ",a.getTitle()," "),B(2),De("",a.getDescription()," "),B(1),C("ngIf",V(a,6)),B(2),ge("href","https://webdog.corp.google.com/app/list;frontend=buganizer;id="+a.getExperimentId(),Md),B(2),De(" ",Q(16,14,a.getState())?"Opt out":"Opt in"," "),B(2),C("ngIf",Dfb(b,a.getExperimentId())),B(2),C("experimentId",a.getExperimentId()))},Ffb=function(a){a&1&&(F(0,"mat-option",28),O(1),G());a&2&&(a=K().$implicit,
C("value",a),B(1),De(" ",a.name," "))},Gfb=function(a,b){a&1&&(qe(0),M(1,Ffb,2,2,"mat-option",27),re());a&2&&(a=b.$implicit,B(1),C("ngIf",a.shouldDisplay()))},Hfb=function(a,b){a&1&&(F(0,"mat-option",31),O(1),G());a&2&&(a=b.$implicit,C("value",a.id),B(1),De(" ",a.name," "))},Jfb=function(a){if(a&1){var b=x();F(0,"mat-form-field",8)(1,"mat-select",29);J("ngModelChange",function(c){z(b);var d=K();return A(d.preferredHomepage.selectedOptionId=c)})("selectionChange",function(){z(b);var c=K();return A(Ifb(c.preferredHomepage))});
M(2,Hfb,2,2,"mat-option",30);G()()}a&2&&(a=K(),B(1),C("ngModel",a.preferredHomepage.selectedOptionId),B(1),C("ngForOf",a.preferredHomepage.selectedMainOption.options))},Kfb=function(a,b){a&1&&(F(0,"mat-option",32),O(1),G());a&2&&(a=b.$implicit,C("value",a.value),B(1),De(" ",a.label," "))},Lfb=function(a,b){a&1&&(F(0,"mat-option",32),O(1),G());a&2&&(a=b.$implicit,C("value",a.value),B(1),De(" ",a.label," "))},Mfb=function(a,b){a&1&&(F(0,"mat-option",32),O(1),G());a&2&&(a=b.$implicit,C("value",a.value),
B(1),De(" ",a.label," "))},Nfb=function(a){if(a&1){var b=x();F(0,"div");H(1,"hr");F(2,"div",1)(3,"div",2);O(4," Other ");G();F(5,"div",5)(6,"div",6)(7,"label",33);O(8," Enable bug screensaver? ");G();F(9,"b-slide-toggle",34);J("modelChange",function(c){z(b);var d=K();return A(d.userPreferences.bugScreensaverPreferences.enableBugScreensaver=c)})("modelChange",function(){z(b);var c=K(),d=c.userPreferences.bugScreensaverPreferences.enableBugScreensaver;return A(c.save("saveBugScreensaverPreferences",
void 0===d?"undefined":d.toString()))});G()()()()()}a&2&&(a=K(),B(9),C("model",a.userPreferences.bugScreensaverPreferences.enableBugScreensaver))},Ofb=function(a,b){a&1&&(F(0,"mat-option",20),O(1),P(2,"toNewEmailPreference"),G());a&2&&(a=b.$implicit,C("value",a),B(1),De(" ",Q(2,2,a)," "))},Pfb=function(a,b){a&1&&(F(0,"mat-option",20),O(1),P(2,"toNewEmailPreference"),G());a&2&&(a=b.$implicit,C("value",a),B(1),De(" ",Q(2,2,a)," "))},Qfb=function(a,b){a&1&&(F(0,"mat-option",20),O(1),P(2,"toNewEmailPreference"),
G());a&2&&(a=b.$implicit,C("value",a),B(1),De(" ",Q(2,2,a)," "))},Rfb=function(a,b){a&1&&(F(0,"mat-option",20),O(1),P(2,"toNewEmailPreference"),G());a&2&&(a=b.$implicit,C("value",a),B(1),De(" ",Q(2,2,a)," "))},Sfb=function(a,b){a&1&&(F(0,"mat-option",20),O(1),P(2,"toNewEmailPreference"),G());a&2&&(a=b.$implicit,C("value",a),B(1),De(" ",Q(2,2,a)," "))},Tfb=function(a){if(a&1){var b=x();F(0,"button",3);J("click",function(){z(b);var c=K();return A(c.onBack.emit())});H(1,"mat-icon",4);G()}a&2&&(a=K(),
C("matTooltip",a.backLabel))},Ufb=function(a){if(a&1){var b=x();F(0,"button",3);J("click",function(){z(b);var c=K();return A(c.onRefresh.emit())});H(1,"mat-icon",5);G()}a&2&&(a=K(),C("matTooltip",a.refreshLabel))},Vfb=function(a){a&1&&(F(0,"h2"),O(1),G());a&2&&(a=K(),B(1),Ee(a.title))},Wfb=function(a){a&1&&(F(0,"mat-tab",6)(1,"div",3),H(2,"b-beap-settings"),G()())},Xfb=function(a){if(a&1){var b=x();F(0,"b-star-toggle",13);J("starClicked",function(){z(b);var c=K(2);return A(c.toggleStar())});G()}a&
2&&(a=K(2),C("starMessage","Star this bookmark group")("unStarMessage","Un-star this bookmark group")("starred",a.isStarred))},Yfb=function(a){a&1&&H(0,"b-star-toggle",14);a&2&&C("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)},Zfb=function(a,b){a&1&&(F(0,"li")(1,"a",15),O(2),G()());a&2&&(a=b.$implicit,b=K(2),B(1),C("href",b.getUrl(a),Md)("title",
a.description),B(1),De(" ",b.getDisplayName(a)," "))},$fb=function(a){if(a&1){var b=x();F(0,"div")(1,"div",4)(2,"div",5);M(3,Xfb,1,3,"b-star-toggle",6);M(4,Yfb,1,4,"b-star-toggle",7);F(5,"span",8);O(6);G();F(7,"button",9);J("click",function(){z(b);var c=K();return A(c.openEditBookmarkGroup())});G()();F(8,"div",10);O(9);G()();F(10,"ul",11);M(11,Zfb,3,3,"li",12);G()()}a&2&&(a=K(),B(3),C("ngIf",!a.userIsOwner),B(1),C("ngIf",a.userIsOwner),B(2),De("Bookmark Group: ",a.bookmarkGroup.name," "),B(3),Ee(a.bookmarkGroup.description),
B(2),C("ngForOf",a.bookmarkGroup.item))},agb=function(a){if(a&1){var b=x();F(0,"b-star-toggle",16);J("starClicked",function(){z(b);var c=K(2);return A(c.toggleStar())})("keydown.space",function(c){return c.stopPropagation()})("keydown.enter",function(c){return c.stopPropagation()});G()}a&2&&(a=K(2),C("starMessage","Star this hotlist")("unStarMessage","Un-star this hotlist")("starred",a.isStarred))},bgb=function(a){a&1&&H(0,"b-star-toggle",17);a&2&&C("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)},cgb=function(a){a&1&&H(0,"b-star-toggle",17);a&2&&C("starMessage","")("unStarMessage","")("starred",!1)("disabled",!0)},dgb=function(a){a&1&&(F(0,"div",18),O(1," Hotlist not found. "),G());a&2&&C("bFocus",!0)},egb=function(a){a&1&&(F(0,"div"),O(1," Loading details... "),G())},fgb=function(a){a&1&&(F(0,"span",25),O(1," (archived) "),G())},ggb=function(a){a&1&&(F(0,"span",26),O(1," \u00a0(changed) "),G())},
igb=function(a){if(a&1){var b=x();F(0,"div")(1,"span",19);O(2," Hotlist: ");F(3,"span",20);O(4);G()();M(5,fgb,2,0,"span",21);F(6,"div",22)(7,"button",23);J("click",function(){z(b);var c=K(2);return A(c.openEditHotlist())});G()();M(8,ggb,2,0,"span",24);G()}a&2&&(a=K(2),B(3),C("matTooltip",a.hotlist.description),B(1),De(" ",a.hotlist.name," "),B(1),C("ngIf",a.hotlist.archived),B(3),C("ngIf",a.hasParamChanges()))},jgb=function(a){if(a&1){var b=x();F(0,"div",27)(1,"button",28);J("click",function(){z(b);
var c=K(2);return A(c.save())});O(2,"Save ");G();F(3,"button",29);J("click",function(){z(b);var c=K(2);return A(c.discardChanges())});O(4,"Discard changes ");G()()}},kgb=function(a){a&1&&(F(0,"div",9),M(1,agb,1,3,"b-star-toggle",10),M(2,bgb,1,4,"b-star-toggle",11),M(3,cgb,1,4,"b-star-toggle",11),F(4,"div",12),M(5,dgb,2,1,"div",13),M(6,egb,2,0,"div",14),M(7,igb,9,4,"div",14),G(),M(8,jgb,5,0,"div",15),G());a&2&&(a=K(),B(1),C("ngIf",!a.isDirectAdmin()&&a.hotlist&&!a.hotlist.archived),B(1),C("ngIf",a.isDirectAdmin()&&
a.hotlist&&!a.hotlist.archived),B(1),C("ngIf",!a.hotlist),B(2),C("ngIf",!a.hotlist&&!a.hotlistLoading),B(1),C("ngIf",a.hotlistLoading),B(1),C("ngIf",a.hotlist&&!a.hotlistLoading),B(1),C("ngIf",a.hasParamChanges()))},lgb=function(a){a&1&&(F(0,"div",30),H(1,"b-spinner"),F(2,"span"),O(3),G()());a&2&&(a=K(),B(3),De(" Loading hotlist: ",a.hotlistId,""))},mgb=function(a){a&1&&(F(0,"div",31),O(1),G());a&2&&(a=K(),C("bFocus",!0),B(1),De(" No issues in hotlist ",a.hotlistId,". "))},ngb=function(a){if(a&1){var b=
x();F(0,"div",32)(1,"b-issues-grid",33);J("init",function(c){z(b);var d=K();return A(d.resultsGrid=c)})("focusedRowIndexChange",function(c){z(b);var d=K();return A(d.focusedRowIndex=c)})("columnsChange",function(c){z(b);var d=K();return A(d.issueColumns=c)})("sortChange",function(c){z(b);var d=K();return A(d.setSort(c.field,c.direction))})("rowClick",function(c){z(b);var d=K();return A(d.goToIssue(c.id,c.isRead,c.event))})("onRowDragDrop",function(c){z(b);var d=K();return A(d.repositionIssue(c.srcIndex,
c.destIndex))})("onNextPage",function(){z(b);var c=K();return A(rt(c,c.page,1))})("onPrevPage",function(){z(b);var c=K();return A(rt(c,c.page,-1))});G()()}a&2&&(a=K(),B(1),C("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort()))},ogb=function(a){a&1&&(F(0,"div"),O(1," Loading details... "),G())},pgb=function(a){a&1&&(F(0,"div"),O(1," Saved search not found. "),G())},qgb=function(a){a&1&&(F(0,
"span",15),O(1," \u00a0(changed) "),G())},rgb=function(a){if(a&1){var b=x();F(0,"div",11);O(1," Saved search: ");F(2,"span",12);O(3);G();F(4,"button",13);J("click",function(){z(b);var c=K(2);return A(c.openEditSavedSearch())});G();M(5,qgb,2,0,"span",14);G()}a&2&&(a=K(2),B(2),C("matTooltip",a.savedSearch.description),B(1),De(" ",a.savedSearch.name," "),B(2),C("ngIf",a.hasParamChanges()))},sgb=function(a){a&1&&(F(0,"div",9),M(1,ogb,2,0,"div",8),M(2,pgb,2,0,"div",8),M(3,rgb,6,3,"div",10),G());a&2&&(a=
K(),B(1),C("ngIf",!a.savedSearch&&a.isLoading),B(1),C("ngIf",!a.savedSearch&&!a.isLoading),B(1),C("ngIf",a.savedSearch))},tgb=function(a){if(a&1){var b=x();F(0,"div",16)(1,"button",17);J("click",function(){z(b);var c=K();return A(c.save())});O(2,"Save ");G();F(3,"button",18);J("click",function(){z(b);var c=K();return A(c.discardChanges())});O(4,"Discard changes ");G();F(5,"span",19)(6,"a",20);J("click",function(){z(b);var c=K();eo(c.analytics,c.ANALYTICS_CATEGORY,"backToNormalSearch");return A()});
O(7," Back to normal search");G()()()}a&2&&(a=K(),B(6),C("href",a.exitLink,Md))},ugb=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K(3),B(1),De(" Searching",a.searchParams.query?" for "+a.searchParams.query:"","..."))},vgb=function(a){a&1&&(F(0,"div",24),H(1,"b-spinner"),M(2,ugb,2,1,"span",8),G());a&2&&(a=K(2),B(2),C("ngIf",a.searchParams))},wgb=function(a){a&1&&(F(0,"div",25),O(1," No issues in saved search. "),G());a&2&&C("bFocus",!0)},xgb=function(a){if(a&1){var b=x();F(0,"div",26)(1,"b-issues-grid",
27);J("init",function(c){z(b);var d=K(2);return A(d.resultsGrid=c)})("focusedRowIndexChange",function(c){z(b);var d=K(2);return A(d.focusedRowIndex=c)})("columnsChange",function(c){z(b);var d=K(2);return A(d.issueColumns=c)})("sortChange",function(c){z(b);var d=K(2);return A(d.setSort(c.field,c.direction))})("rowClick",function(c){z(b);var d=K(2);return A(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){z(b);var c=K(2);return A(rt(c,c.page,1))})("onPrevPage",function(){z(b);var c=K(2);
return A(rt(c,c.page,-1))});G()()}a&2&&(a=K(2),B(1),C("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort()))},ygb=function(a){a&1&&(F(0,"div"),M(1,vgb,3,1,"div",21),M(2,wgb,2,1,"div",22),M(3,xgb,2,5,"div",23),G());a&2&&(a=K(),B(1),C("ngIf",a.isLoading),B(1),C("ngIf",!a.isLoading&&!a.hasResults()),B(1),C("ngIf",!a.isLoading&&a.hasResults()))},zgb=function(a){if(a&1){var b=x();F(0,"div",7)(1,
"label",8);O(2,"Issue email");G();F(3,"input",20,21);J("focus",function(){z(b);var d=Ce(4);return A(d.select())});G();F(5,"button",22);J("click",function(){z(b);var d=Ce(4),e=K();return A(Ft(e,d))});H(6,"mat-icon",12);G()()}if(a&2){var c=Ce(4);a=K();B(1);C("htmlFor",c.id);B(2);ge("value",a.getIssueEmail())}},Agb=function(a){if(a&1){var b=x();F(0,"div",7)(1,"label",8);O(2,"TODO comment");G();F(3,"input",23,24);J("focus",function(){z(b);var d=Ce(4);return A(d.select())});G();F(5,"button",25);J("click",
function(){z(b);var d=Ce(4),e=K();return A(Ft(e,d))});H(6,"mat-icon",12);G()()}if(a&2){var c=Ce(4);a=K();B(1);C("htmlFor",c.id);B(2);ge("value",a.getTodoComment())}},Bgb=function(a){if(a&1){var b=x();F(0,"b-button",6);J("onAction",function(){z(b);var c=K();return A(c.markAsDuplicate.emit())});F(1,"span");O(2,"Mark as Duplicate");G()()}a&2&&(a=K(),C("disabled",!a.hasAclToEdit||a.statusIsSaving))},Cgb=function(a){if(a&1){var b=x();F(0,"b-button",7);J("onAction",function(){z(b);var c=K();return A(c.clearCanonical.emit())});
F(1,"span");O(2,"Unmark as Duplicate");G()()}a&2&&(a=K(),C("disabled",!a.hasAclToEdit||a.statusIsSaving))},Dgb=function(a){if(a&1){var b=x();F(0,"b-app-vote-button",8);J("onVote",function(){z(b);var c=K();return A(c.onVote.emit())});G()}a&2&&(a=K(),C("issueId",a.issueId)("upvoted",a.upvoted)("voteCount",a.voteCount))},Egb=function(a){a&1&&(H(0,"b-issue-id-picker-legacy",8),P(1,"async"));a&2&&(a=K(),C("issueId",a.parent.issueId)("componentId",(null==a.parent.currentComponent?null:a.parent.currentComponent.componentId)||
0)("issueTitle",a.parent.issue.title)("isExternalIssue",!!Q(1,4,a.isWithinExternalComponent$)))},Fgb=function(a){if(a&1){var b=x();F(0,"span",9);J("click",function(){z(b);var c=K();return A(Gt(c.parent))})("keydown.enter",function(){z(b);var c=K();return A(Gt(c.parent))});P(1,"async");P(2,"async");P(3,"async");P(4,"async");G()}a&2&&(a=K(),le("bv2-disabled",!Q(1,5,a.hasAclToEdit$)||!!Q(2,7,a.isSaving$(a.IssueSavingKey.TITLE))),C("matTooltip",Ht(a.parent)),ge("aria-label",Ht(a.parent))("aria-disabled",
!Q(3,9,a.hasAclToEdit$)||!!Q(4,11,a.isSaving$(a.IssueSavingKey.TITLE))))},Hgb=function(a){if(a&1){var b=x();F(0,"div",37)(1,"b-rel-issues-picker",38);J("itemsChange",function(c){z(b);var d=K(2);return A(Ggb(d.parent,c))});P(2,"async");P(3,"async");P(4,"async");P(5,"async");G()()}a&2&&(a=K(2),ge("aria-hidden","BLOCKED"!=a.parent.relatedIssuesTrayOpen),B(1),C("disabled",!!Q(2,8,a.isSaving$("blockedByIssueId"))||!Q(3,10,a.hasAclToEdit$))("removeButtonTitle",Q(4,12,a.hasAclToEdit$)?"Remove blocking issue":
"")("addButtonTitle",Q(5,14,a.hasAclToEdit$)?"Add blocking issue":"")("items",a.parent.blockedByIssues)("searchLink",a.parent.blockingIssuesSearchUrl)("currentResourceId",a.parent.issueId)("componentId",a.parent.issue.componentId))},Jgb=function(a){if(a&1){var b=x();F(0,"div",39)(1,"b-rel-issues-picker",40);J("itemsChange",function(c){z(b);var d=K(2);return A(Igb(d.parent,c))});P(2,"async");P(3,"async");P(4,"async");P(5,"async");G()()}a&2&&(a=K(2),ge("aria-hidden","BLOCKING"!=a.parent.relatedIssuesTrayOpen),
B(1),C("disabled",!!Q(2,8,a.isSaving$("blockingIssueId"))||!Q(3,10,a.hasAclToEdit$))("removeButtonTitle",Q(4,12,a.hasAclToEdit$)?"Remove blocked issue":"")("addButtonTitle",Q(5,14,a.hasAclToEdit$)?"Add blocked issue":"")("items",a.parent.blockingIssues)("searchLink",a.parent.blockedIssuesSearchUrl)("currentResourceId",a.parent.issueId)("componentId",a.parent.issue.componentId))},Kgb=function(a){a&1&&(F(0,"div",41),H(1,"b-rel-issues-picker",42),G());a&2&&(a=K(2),ge("aria-hidden","DUPLICATES"!=a.parent.relatedIssuesTrayOpen),
B(1),C("disabled",!0)("hideStatus",!0)("items",a.parent.duplicateIssues))},Lgb=function(a){a&1&&H(0,"b-wtdm-info-hovercard",46)},Ngb=function(a){if(a&1){var b=x();F(0,"div",43)(1,"b-rel-issues-picker",44);J("itemChange",function(c){z(b);var d=K(2);return A(Mgb(d.parent,c))});P(2,"async");P(3,"async");P(4,"async");P(5,"async");M(6,Lgb,1,0,"b-wtdm-info-hovercard",45);G()()}a&2&&(a=K(2),ge("aria-hidden","PARENTS"!=a.parent.relatedIssuesTrayOpen),B(1),C("disabled",!!Q(2,8,a.isSaving$(a.IssueSavingKey.PARENT_ISSUES))||
!Q(3,10,a.hasAclToEdit$))("removeButtonTitle",Q(4,12,a.hasAclToEdit$)?"Remove parent issue":"")("addButtonTitle",Q(5,14,a.hasAclToEdit$)?"Add parent issue":"")("items",a.parent.parentIssues)("currentResourceId",a.parent.issueId)("componentId",a.parent.issue.componentId),B(5),C("ngIf",!a.parent.sessionIsExternal))},Ogb=function(a){a&1&&H(0,"b-wtdm-info-hovercard",46)},Rgb=function(a){if(a&1){var b=x();F(0,"div",47)(1,"b-rel-issues-picker",48);J("itemChange",function(d){z(b);var e=K(2);return A(Pgb(e.parent,
d))})("itemMove",function(d){z(b);var e=K(2);return A(Pgb(e.parent,d))});P(2,"async");P(3,"async");P(4,"async");P(5,"async");P(6,"async");M(7,Ogb,1,0,"b-wtdm-info-hovercard",45);G()()}if(a&2){a=K(2);var c;ge("aria-hidden","CHILDREN"!=a.parent.relatedIssuesTrayOpen);B(1);C("disabled",!!Q(2,10,a.isSaving$("childIssues"))||!Q(3,12,a.hasAclToEdit$))("removeButtonTitle",Q(4,14,a.hasAclToEdit$)?"Remove child issue":"")("addButtonTitle",Q(5,16,a.hasAclToEdit$)?"Add child issue":"")("items",null!==(c=Q(6,
18,a.parent.childIssues$))&&void 0!==c?c:He(20,Qgb))("searchLink",a.parent.childIssuesSearchUrl)("currentResourceId",a.parent.issueId)("componentId",a.parent.issue.componentId)("reorderable",!0);B(6);C("ngIf",!a.parent.sessionIsExternal)}},Sgb=function(a,b){a&1&&H(0,"b-package-mentions-listing",53);if(a&2){a=b.$implicit;b=K(2).ngIf;var c=K(3);C("issueId",""+c.parent.issueId)("packageMentionSet",a)("displayPackageName",c.parent.displayPackageNames(b))}},Tgb=function(a){a&1&&(qe(0),M(1,Sgb,1,3,"b-package-mentions-listing",
52),re());a&2&&(a=K().ngIf,B(1),C("ngForOf",a.mentions.packageMentionSet))},Ugb=function(a,b){if(a&1){var c=x();qe(0);M(1,Tgb,2,1,"ng-container",36);F(2,"div",50)(3,"a",51);J("click",function(){z(c);var d=K(3);return A(d.parent.trackSqueegeeClick())});O(4,"View in Squeegee");G()();re()}a&2&&(a=b.ngIf,B(1),C("ngIf",a.mentions),B(2),C("href",a.link,Md))},Vgb=function(a){a&1&&(F(0,"div",49),M(1,Ugb,5,2,"ng-container",36),P(2,"async"),G());a&2&&(a=K(2),ge("aria-hidden","MENTIONS"!=a.parent.relatedIssuesTrayOpen),
B(1),C("ngIf",Q(2,2,a.parent.codeMentionsState$)))},Wgb=function(a){if(a&1){var b=x();F(0,"b-callout",54)(1,"b-callout-body");O(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. ");F(3,"a",55);O(4,"Learn more");G()();F(5,"b-callout-actions")(6,"b-button",56);J("onAction",function(){z(b);var c=K(2).wtdmEa;c.dismissalService.dismiss("wtdm-ea-announcement").pipe(cg(c.destroyed$)).subscribe();return A()});O(7,"Dismiss");
G();F(8,"a",57)(9,"b-button",58);O(10,"Opt in");G()()()()}a&2&&C("messageType","info")("format","app")},Xgb=function(a){a&1&&(H(0,"b-issue-id-picker-legacy",59),P(1,"async"));a&2&&(a=K(2),C("issueId",a.parent.issueId)("componentId",(null==a.parent.currentComponent?null:a.parent.currentComponent.componentId)||0)("issueTitle",a.parent.issue.title)("isExternalIssue",!!Q(1,4,a.isWithinExternalComponent$)))},Ygb=function(a){if(a&1){var b=x();F(0,"span",60,61);J("click",function(){z(b);var c=K(2);return A(Gt(c.parent))})("keydown",
function(c){z(b);var d=K(2);return A(Gt(d.parent,c))});P(2,"async");P(3,"async");P(4,"async");P(5,"async");G()}a&2&&(a=K(2),le("bv2-disabled",!Q(2,5,a.hasAclToEdit$)||!!Q(3,7,a.isSaving$(a.IssueSavingKey.TITLE))),C("matTooltip",Ht(a.parent)),ge("aria-label",Ht(a.parent))("aria-disabled",!Q(4,9,a.hasAclToEdit$)||!!Q(5,11,a.isSaving$(a.IssueSavingKey.TITLE))))},Zgb=function(a){a&1&&(F(0,"div"),O(1," You must have "),F(2,"strong"),O(3,"issue admin"),G(),O(4," access. "),G())},$gb=function(a){a&1&&(F(0,
"div"),O(1," You can change admin settings in the "),F(2,"a",66),O(3,"component management page"),G(),O(4,". "),G());a&2&&(a=K(4),B(2),C("href",a.paths.manageComponentAcl(a.parent.issue.componentId),Md))},ahb=function(a){a&1&&(F(0,"xap-dialog-layout")(1,"xap-dialog-layout-content"),O(2," Flag this issue as spam. "),M(3,Zgb,5,0,"div",36),P(4,"async"),M(5,$gb,5,1,"div",36),P(6,"async"),P(7,"async"),G()());a&2&&(a=K(3),B(3),C("ngIf",!Q(4,2,a.canDeleteIssue$)),B(2),C("ngIf",!Q(6,4,a.canDeleteIssue$)&&
Q(7,6,a.userIsComponentAdmin$)))},bhb=function(a){if(a&1){var b=x();F(0,"div",62)(1,"b-button",63);J("onAction",function(){z(b);var d=K(2);return A(d.parent.showFlagAsSpamDialog())});P(2,"async");H(3,"b-icon",64);G();M(4,ahb,8,8,"ng-template",null,65,Jf);G()}if(a&2){var c=Ce(5);a=K(2);C("xapInlineDialog",c);B(1);C("disabled",!Q(2,2,a.canDeleteIssue$))}},dhb=function(a,b){if(a&1){var c=x();F(0,"b-hotlist-chip-smart",67);J("removeHotlist",function(){var d=z(c).$implicit,e=K(2);return A(chb(e,d))});
G()}a&2&&C("id",""+b.$implicit)},ehb=function(a){a&1&&(F(0,"div",68)(1,"span"),O(2),G()());a&2&&(a=K(2),B(2),Fe("",a.parent.voteCount," ",1==a.parent.voteCount?"person has":"people have"," starred this issue."))},fhb=function(a){if(a&1){var b=x();F(0,"a",72);J("click",function(c){z(b);var d=K(3).parent;d.newComponent=d.currentComponent;d.editComponent=!0;d.hotkeys.pause();c.stopPropagation();return A()})("keydown.enter",function(c){z(b);var d=K(3).parent;d.newComponent=d.currentComponent;d.editComponent=
!0;d.hotkeys.pause();c.stopPropagation();return A()});G()}a&2&&C("matTooltip","Change component")},ghb=function(a){a&1&&(F(0,"div",69)(1,"b-async-data-placeholder",18),P(2,"async"),H(3,"b-component-breadcrumb",70),P(4,"async"),M(5,fhb,1,1,"a",71),P(6,"async"),G()());if(a&2){a=K(2);var b;B(1);C("isReady",!!Q(2,4,a.parent.componentPathInfo$));B(2);C("componentPathInfo",Q(4,6,a.parent.componentPathInfo$))("isArchived",null!==(b=null==a.parent.currentComponent?null:a.parent.currentComponent.archived)&&
void 0!==b?b:!1);B(2);C("ngIf",Q(6,8,a.hasAclToEdit$))}},hhb=function(a){if(a&1){var b=x();F(0,"b-team-component-picker",73);J("selectedComponentChange",function(c){z(b);var d=K(2);return A(N5a(d.issueEditComponentService,d.parent.issueId,null!==c&&void 0!==c?c:null))})("dropdownClosed",function(){z(b);var c=K(2).parent;c.editComponent=!1;c.hotkeys.unpause();return A()});G()}a&2&&(a=K(2),C("selectedComponent",a.parent.newComponent)("placeholder","Choose Component")("isRequired",!0)("shouldFocus",
!0))},lhb=function(a){a&1&&H(0,"b-actions-menu",74);if(a&2){a=K(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=[ihb(a,b),jhb(a,b),khb(a,b)].filter(bl);
C("menuItems",a)("buttonLabel","Issue actions")("matTooltip","Issue actions")}},mhb=function(a){if(a&1){var b=x();F(0,"div",75)(1,"p");O(2);G();F(3,"b-button",76);J("onAction",function(){z(b);var c=K(2);return A(c.parent.undelete())});P(4,"async");P(5,"async");O(6," Undelete Issue ");G()()}a&2&&(a=K(2),B(2),De(" 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),
C("tooltip",Q(4,3,a.undeleteButtonTooltip$)||"")("disabled",!Q(5,5,a.canUndeleteIssue$)))},ohb=function(a){a&1&&(H(0,"b-history-event-stream",77),P(1,"async"));a&2&&(a=K(2),C("issueId",a.parent.issueId)("issueAccessLevel",Q(1,3,a.accessLevel$))("events",Ie(5,nhb,a.parent.firstEvent)))},phb=function(a){a&1&&(H(0,"b-history-event-stream",78),P(1,"async"));a&2&&(a=K(2),C("issueId",a.parent.issueId)("issueAccessLevel",Q(1,4,a.accessLevel$))("events",a.parent.events)("showFullHistory",a.parent.preferences.showFullHistory))},
qhb=function(a){a&1&&(F(0,"div",79)(1,"div",80)(2,"p",81),H(3,"b-spinner"),O(4," Loading history and comments... "),G()()())},rhb=function(a){if(a&1){var b=x();F(0,"span")(1,"b-checkbox",89);J("change",function(){z(b);var d=K(3);return A(d.parent.toggleAutoCcOnComment())});P(2,"async");G()()}if(a&2){a=K(3);var c;B(1);C("checked",null!==(c=a.parent.preferences.autoCcOnComment)&&void 0!==c?c:!1)("disabled",!!Q(2,2,a.isCurrentUserCCd$))}},shb=function(a){a&1&&(H(0,"b-checkbox",92),P(1,"async"));a&2&&
(a=K(4),C("checked",!0)("disabled",!0)("tooltip",Q(1,3,a.issuePermissionService.addMeToCcDisabledReason$)||""))},thb=function(a){a&1&&(F(0,"span",90),M(1,shb,2,5,"b-checkbox",91),P(2,"async"),G());a&2&&(a=K(3),B(1),C("ngIf",Q(2,1,a.isCurrentUserCCd$)))},uhb=function(a){a&1&&H(0,"b-markdown-toggle")},yhb=function(a){if(a&1){var b=x();F(0,"div")(1,"h3",82);O(2,"Add comment");G();F(3,"div",83)(4,"b-comment-box",84,85);J("onHotkey",function(){z(b);var d=Ce(5);return A(ibb(d,"editpage-hotkey"))})("onChange",
function(){z(b);var d=K(2);return A(d.parent.saveCommentDraft())})("onSubmit",function(){z(b);var d=K(2);return A(d.parent.submitCommentBox())})("onRestrict",function(){z(b);var d=K(2);return A(d.parent.showNewContentJudgementDialog())});P(6,"async");P(7,"async");F(8,"div",86)(9,"b-button",87);J("onAction",function(){z(b);var d=K(2);return A(d.parent.submitCommentBox())});O(10," Comment ");G();F(11,"div",86);M(12,rhb,3,4,"span",36);P(13,"async");P(14,"async");M(15,thb,3,3,"span",88);P(16,"async");
P(17,"async");M(18,uhb,1,0,"b-markdown-toggle",36);P(19,"async");G();H(20,"b-access-level-indicator",16);P(21,"async");G()()()()}if(a&2){a=K(2);var c;B(4);C("hotkey",a.HOTKEYS.FOCUS_COMMENT_BOX)("supportsPreview",!0)("issueId",a.parent.issueId)("comment",a.parent.comment)("componentId",a.parent.issue.componentId)("placeholder",vhb(a.parent))("judgementForNewContent",a.parent.judgementForNewContent)("audience",null!==(c=Q(6,15,a.audience$))&&void 0!==c?c:void 0)("disabled",!whb(a.parent))("attachmentsDisabled",
!Q(7,17,a.hasAclToComment$));B(5);C("disabled",!xhb(a.parent));B(3);C("ngIf",!Q(13,19,a.isCurrentUserCCd$)&&Q(14,21,a.hasAclToEdit$));B(3);C("ngIf",Q(16,23,a.isCurrentUserCCd$)||!Q(17,25,a.hasAclToEdit$));B(3);C("ngIf",Q(19,27,a.hasAclToComment$));B(2);C("accessLevel",Q(21,29,a.accessLevel$))}},Bhb=function(a){if(a&1){var b=x();F(0,"div",1)(1,"div",2);M(2,Hgb,6,16,"div",3);M(3,Jgb,6,16,"div",4);M(4,Kgb,2,4,"div",5);M(5,Ngb,7,16,"div",6);M(6,Rgb,8,21,"div",7);M(7,Vgb,3,4,"div",8);G();M(8,Wgb,11,2,
"b-callout",9);P(9,"async");P(10,"async");F(11,"div",10)(12,"edit-issue-scroll-eclipse",11);J("eclipsing",function(e){z(b);var f=K();return A(f.scrollEclipseShowing=e)});G();F(13,"div",12)(14,"div",13)(15,"b-star-toggle",14);J("onHotkey",function(){z(b);var e=K();return A(e.parent.toggleStarDebounced())})("starClicked",function(){z(b);var e=K();return A(e.parent.toggleStar())});P(16,"async");G();M(17,Xgb,2,6,"b-issue-id-picker-legacy",15);H(18,"b-access-level-indicator",16);P(19,"async");F(20,"h3",
17)(21,"b-async-data-placeholder",18)(22,"span",19)(23,"span",19);O(24);G();M(25,Ygb,6,13,"span",20);P(26,"async");G()()();M(27,bhb,6,4,"div",21);F(28,"span");M(29,dhb,1,1,"b-hotlist-chip-smart",22);G()();H(30,"div",23);M(31,ehb,3,2,"div",24);F(32,"div",25)(33,"div",26);M(34,ghb,7,10,"div",27);M(35,hhb,1,4,"b-team-component-picker",28);G();F(36,"span",29);H(37,"b-retention-chip",30);P(38,"async");P(39,"async");G();M(40,lhb,1,3,"b-actions-menu",31);G()();M(41,mhb,7,7,"div",32);M(42,ohb,2,7,"b-history-event-stream",
33);M(43,phb,2,6,"b-history-event-stream",34);M(44,qhb,5,0,"div",35);M(45,yhb,22,31,"div",36);G()()}if(a&2){a=K();var c,d;B(2);C("ngIf","BLOCKED"==a.parent.relatedIssuesTrayOpen);B(1);C("ngIf","BLOCKING"==a.parent.relatedIssuesTrayOpen);B(1);C("ngIf","DUPLICATES"==a.parent.relatedIssuesTrayOpen);B(1);C("ngIf",!a.parent.sessionIsExternal&&a.parent.enableWtdmMvpUi&&"PARENTS"==a.parent.relatedIssuesTrayOpen);B(1);C("ngIf",!a.parent.sessionIsExternal&&a.parent.enableWtdmMvpUi&&"CHILDREN"==a.parent.relatedIssuesTrayOpen);
B(1);C("ngIf",!a.parent.sessionIsExternal&&"MENTIONS"==a.parent.relatedIssuesTrayOpen);B(1);C("ngIf",zhb(a.parent)&&!Q(9,35,a.isWithinExternalComponent$)&&Q(10,37,a.wtdmEa.shouldEnableEaCallout$));B(3);C("bFocus",!a.parent.isLoading);ge("aria-label",a.parent.issue.title);B(1);C("parent",a.parent);B(3);C("starMessage",a.parent.starTooltip)("unStarMessage",a.parent.unStarTooltip)("starred",null==a.parent.userData?null:a.parent.userData.starred)("hotkey",a.HOTKEYS.TOGGLE_STAR)("disabled",!!Q(16,39,a.isSaving$("star")));
B(2);C("ngIf",!a.scrollEclipseShowing);B(1);C("accessLevel",Q(19,41,a.accessLevel$));B(3);C("isReady",!!a.parent.issue.title);B(1);ge("aria-label",a.parent.ariaIssueTitle);B(2);Ee(a.parent.issue.title);B(1);C("ngIf",Q(26,43,a.hasAclToEdit$));B(2);C("ngIf",Ahb(a));B(2);C("ngForOf",a.parent.issue.hotlistId);B(2);C("ngIf",!a.parent.frontendIsInternalOrPartner);B(3);C("ngIf",!a.parent.editComponent);B(1);C("ngIf",a.parent.editComponent);B(2);C("retentionState",null!==(c=Q(38,45,a.retentionState$))&&void 0!==
c?c:void 0)("compactMode",!1)("modifiedTime",null!==(d=Q(39,47,a.modifiedTime$))&&void 0!==d?d:void 0);B(3);C("ngIf",!a.parent.issue.isDeleted);B(1);C("ngIf",a.parent.issue.isDeleted);B(1);C("ngIf",a.parent.firstEvent);B(1);C("ngIf",!a.parent.areEventsLoading);B(1);C("ngIf",a.parent.areEventsLoading);B(1);C("ngIf",!a.parent.issue.isDeleted)}},Chb=function(a){a&1&&(F(0,"output",1),O(1),G());a&2&&(a=K(),ke("background-color",a.entity.color)("color",a.entity.textColor||"inherit"),le("smallType",a.isMultiCharShortName())("uncoloredMultichar",
a.isMultiCharShortName()&&null==a.entity.color)("noShortName",!a.entity.shortName),C("title",a.getTooltip(a.entity)),B(1),De(" ",a.entity.shortName," "))},Dhb=function(a){return null==a?!1:1<Array.from(a.shortName||"").length},Ehb=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}},Fhb=function(a){if(a&1){var b=x();qe(0);F(1,"mat-form-field",1)(2,"input",2);J("ngModelChange",function(c){z(b);var d=K();return A(d.entity.color=
c)})("input",function(){z(b);var c=K();return A(c.update(c.entity))});G();F(3,"mat-hint");O(4,"The main color that represents this item");G()();F(5,"mat-form-field",3)(6,"input",4);J("ngModelChange",function(c){z(b);var d=K();return A(d.entity.shortName=c)})("input",function(){z(b);var c=K();return A(c.update(c.entity))});G();H(7,"mat-hint");G();F(8,"mat-form-field",1)(9,"input",5);J("ngModelChange",function(c){z(b);var d=K();return A(d.entity.textColor=c)})("input",function(){z(b);var c=K();return A(c.update(c.entity))});
G();F(10,"mat-hint");O(11,"Only needed if you choose a dark color");G()();re()}a&2&&(a=K(),B(2),C("ngModel",a.entity.color),B(4),C("ngModel",a.entity.shortName),B(3),C("ngModel",a.entity.textColor))},Ghb=function(){return new It(new Jt("https://people-pa.googleapis.com","AIzaSyClMyMjdjUv-Z9gej4bgUQoU3CSbak7a9s"))},Hhb=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},Kt="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},Ihb=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");},li=Ihb(this),Lt=function(a,b){if(b)a:{var c=li;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&&Kt(c,a,{configurable:!0,
writable:!0,value:b})}};Lt("Symbol",function(a){if(a)return a;var b=function(f,h){this.$jscomp$symbol$id_=f;Kt(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});
Lt("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=li[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&Kt(d.prototype,a,{configurable:!0,writable:!0,value:function(){return Jhb(Hhb(this))}})}return a});Lt("Symbol.asyncIterator",function(a){return a?a:Symbol("d")});
var Jhb=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a},Mt=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:Hhb(a)}},qf=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c},u=function(a){return a instanceof Array?a:qf(r(a))},Nt=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},Khb="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)Nt(d,e)&&(a[e]=d[e])}return a};Lt("Object.assign",function(a){return a||Khb});var Lhb="function"==typeof Object.create?Object.create:function(a){var b=function(){};b.prototype=a;return new b},Mhb;
if("function"==typeof Object.setPrototypeOf)Mhb=Object.setPrototypeOf;else{var Nhb;a:{var Ohb={a:!0},Phb={};try{Phb.__proto__=Ohb;Nhb=Phb.a;break a}catch(a){}Nhb=!1}Mhb=Nhb?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError("e`"+a);return a}:null}
var Ot=Mhb,U=function(a,b){a.prototype=Lhb(b.prototype);a.prototype.constructor=a;if(Ot)Ot(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},Pt=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};
Pt.prototype.start_=function(){if(this.isRunning_)throw new TypeError("g");this.isRunning_=!0};Pt.prototype.next_=function(a){this.yieldResult=a};Pt.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.nextAddress=this.catchAddress_||this.finallyAddress_};Pt.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};var cf=function(a,b,c){a.nextAddress=c;return{value:b}};Pt.prototype.jumpTo=function(a){this.nextAddress=a};
var df=function(a){a.nextAddress=0},Qt=function(a,b,c){a.catchAddress_=b;void 0!=c&&(a.finallyAddress_=c)},Rt=function(a,b){a.nextAddress=b;a.catchAddress_=0},St=function(a){a.catchAddress_=0;var b=a.abruptCompletion_.exception;a.abruptCompletion_=null;return b},Tt=function(a){a.finallyContexts_=[a.abruptCompletion_];a.catchAddress_=0;a.finallyAddress_=0},Ut=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},Vt=function(a){this.context_=new Pt;this.program_=a};Vt.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return Qhb(this,this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return Wt(this)};
var Rhb=function(a,b){a.context_.start_();var c=a.context_.yieldAllIterator_;if(c)return Qhb(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.context_.return);a.context_.return(b);return Wt(a)};Vt.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return Qhb(this,this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return Wt(this)};
var Qhb=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),Wt(a)}a.context_.yieldAllIterator_=null;d.call(a.context_,f);return Wt(a)},Wt=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}},Shb=function(a){this.next=function(b){return a.next_(b)};this.throw=function(b){return a.throw_(b)};this.return=function(b){return Rhb(a,b)};this[Symbol.iterator]=function(){return this}},NTa=function(a){var b=OTa;a=new Shb(new Vt(a));Ot&&b.prototype&&Ot(a,
b.prototype);return a},Thb=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())})},bf=function(a){return Thb(new Shb(new Vt(a)))},aga=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))})},qc=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};Lt("Reflect.setPrototypeOf",function(a){return a?a:Ot?function(b,c){try{return Ot(b,c),!0}catch(d){return!1}}:null});
Lt("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=li.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(v){this.asyncThrow_(v)}}}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(v){return function(y){q||(q=!0,v.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=li.console;"undefined"!==typeof k&&k.error(h.result_)}},1)};e.prototype.notifyUnhandledRejection_=
function(){if(this.isRejectionHandled_)return!1;var h=li.CustomEvent,k=li.Event,q=li.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=li.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(v){q.reject(v)}};e.prototype.then=function(h,k){function q(I,N){return"function"==typeof I?function(L){try{v(I(L))}catch(T){y(T)}}:
N}var v,y,E=new e(function(I,N){v=I;y=N});this.callWhenSettled_(q(h,v),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(v.state_){case 1:h(v.result_);break;case 2:k(v.result_);break;default:throw Error("j`"+v.state_);}}var v=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 v=r(h),y=v.next();!y.done;y=v.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(v,y){function E(L){return function(T){I[L]=T;N--;0==N&&v(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 Xt=function(a,b,c){if(null==a)throw new TypeError("k`"+c);if(b instanceof RegExp)throw new TypeError("l`"+c);return a+""};
Lt("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Xt(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 Uhb=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}};Lt("Array.prototype.find",function(a){return a?a:function(b,c){return Uhb(this,b,c).v}});
Lt("WeakMap",function(a){function b(){}function c(q){var v=typeof q;return"object"===v&&null!==q||"function"===v}function d(q){if(!Nt(q,f)){var v=new b;Kt(q,f,{value:v})}}function e(q){var v=Object[q];v&&(Object[q]=function(y){if(y instanceof b)return y;Object.isExtensible(y)&&d(y);return v(y)})}if(function(){if(!a||!Object.seal)return!1;try{var q=Object.seal({}),v=Object.seal({}),y=new a([[q,2],[v,3]]);if(2!=y.get(q)||3!=y.get(v))return!1;y.delete(q);y.set(v,4);return!y.has(q)&&4==y.get(v)}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 v;!(v=q.next()).done;)v=v.value,this.set(v[0],v[1])}};k.prototype.set=function(q,v){if(!c(q))throw Error("m");d(q);if(!Nt(q,f))throw Error("n`"+q);q[f][this.id_]=v;return this};k.prototype.get=function(q){return c(q)&&Nt(q,f)?q[f][this.id_]:void 0};k.prototype.has=function(q){return c(q)&&Nt(q,f)&&Nt(q[f],this.id_)};k.prototype.delete=
function(q){return c(q)&&Nt(q,f)&&Nt(q[f],this.id_)?delete q[f][this.id_]:!1};return k});
Lt("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 v=q.entries(),y=v.next();if(y.done||y.value[0]!=k||"s"!=y.value[1])return!1;y=v.next();return y.done||4!=y.value[0].x||"t"!=y.value[1]||!v.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 v=d(this,k);v.list||(v.list=this.data_[v.id]=[]);v.entry?v.entry.value=q:(v.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:k,value:q},v.list.push(v.entry),this.head_.previous.next=v.entry,this.head_.previous=v.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 v=this.entries(),y;!(y=v.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 v=q&&typeof q;"object"==v||"function"==v?b.has(q)?v=b.get(q):(v=""+ ++h,b.set(q,v)):v="p_"+q;var y=k.data_[v];if(y&&Nt(k.data_,v))for(k=0;k<y.length;k++){var E=y[k];if(q!==q&&E.key!==E.key||q===E.key)return{id:v,list:y,index:k,entry:E}}return{id:v,list:y,index:-1,
entry:void 0}},e=function(k,q){var v=k.head_;return Jhb(function(){if(v){for(;v.head!=k.head_;)v=v.previous;for(;v.next!=v.head;)return v=v.next,{done:!1,value:q(v)};v=null}return{done:!0,value:void 0}})},f=function(){var k={};return k.previous=k.next=k.head=k},h=0;return c});Lt("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
Lt("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});var Vhb=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};Lt("Array.prototype.entries",function(a){return a?a:function(){return Vhb(this,function(b,c){return[b,c]})}});
Lt("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});Lt("Object.setPrototypeOf",function(a){return a||Ot});Lt("Array.prototype.keys",function(a){return a?a:function(){return Vhb(this,function(b){return b})}});Lt("Object.getOwnPropertySymbols",function(a){return a?a:function(){return[]}});
Lt("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});Lt("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}});
Lt("Array.prototype.values",function(a){return a?a:function(){return Vhb(this,function(b,c){return c})}});Lt("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Xt(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}});
Lt("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 Yt=function(a){return a?a:Array.prototype.fill};Lt("Int8Array.prototype.fill",Yt);Lt("Uint8Array.prototype.fill",Yt);Lt("Uint8ClampedArray.prototype.fill",Yt);Lt("Int16Array.prototype.fill",Yt);Lt("Uint16Array.prototype.fill",Yt);Lt("Int32Array.prototype.fill",Yt);
Lt("Uint32Array.prototype.fill",Yt);Lt("Float32Array.prototype.fill",Yt);Lt("Float64Array.prototype.fill",Yt);Lt("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});Lt("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Uhb(this,b,c).i}});Lt("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}});
Lt("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}});Lt("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Xt(this,b,"includes").indexOf(b,c||0)}});Lt("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Nt(b,d)&&c.push([d,b[d]]);return c}});
Lt("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}});Lt("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Nt(b,d)&&c.push(b[d]);return c}});
Lt("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;})})}});Lt("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}});
Lt("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)}});
Lt("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)}});
Lt("String.prototype.codePointAt",function(a){return a?a:function(b){var c=Xt(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 Zt=Zt||{},ca=this||self,Mo=function(a,b){a=a.split(".");b=b||ca;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b},Na=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"},Ea=function(a){var b=Na(a);return"array"==b||"object"==b&&"number"==typeof a.length},Fa=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},Ga=function(a){return Object.prototype.hasOwnProperty.call(a,Whb)&&a[Whb]||(a[Whb]=++Xhb)},Whb="closure_uid_"+(1E9*Math.random()>>>
0),Xhb=0,Yhb=function(a,b,c){return a.call.apply(a.bind,arguments)},Zhb=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)}},$t=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?$t=Yhb:$t=Zhb;return $t.apply(null,arguments)},au=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)}},bu=function(){return Date.now()},$hb=function(a){(0,eval)(a)},cu=function(a,b){a=a.split(".");var c=ca;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},du=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)}},aib=function(a){return a};
var aaa={};
du(aa,Error);aa.prototype.name="CustomError";
var bib;
du(ba,aa);ba.prototype.name="AssertionError";
var Ni=function(a,b){return 0==a.lastIndexOf(b,0)},eu=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c},pOa=function(a){return 0==fu("@ldap.google.com",a.slice(a.length-16))},Wi=function(a){return/^[\s\xa0]*$/.test(a)},Ri=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},fu=function(a,b){a=String(a).toLowerCase();b=String(b).toLowerCase();return a<b?-1:a==b?0:1},jib=function(a){if(!cib.test(a))return a;-1!=a.indexOf("&")&&
(a=a.replace(dib,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(eib,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(fib,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(gib,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(hib,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(iib,"&#0;"));return a},dib=/&/g,eib=/</g,fib=/>/g,gib=/"/g,hib=/'/g,iib=/\x00/g,cib=/[\x00&<>"']/,ea=function(a,b){return-1!=a.indexOf(b)},oa=function(a,b){return ea(a.toLowerCase(),b.toLowerCase())},pa=function(a,b){var c=0;a=Ri(String(a)).split(".");
b=Ri(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=kib(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||kib(0==f[2].length,0==h[2].length)||kib(f[2],h[2]);f=f[3];h=h[3]}while(0==c)}return c},kib=function(a,b){return a<b?-1:a>b?1:0};
var ta=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},sa=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)},lib=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},gu=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},mib=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 nib=function(a){nib[" "](a);return a};nib[" "]=function(){};var oib=function(a,b){try{return nib(a[b]),!0}catch(c){}return!1},oHa=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};
var pib=fa("Opera"),hu=caa(),iu=fa("Edge"),coa=iu||hu,ju=fa("Gecko")&&!(oa(da(),"WebKit")&&!fa("Edge"))&&!(fa("Trident")||fa("MSIE"))&&!fa("Edge"),ku=oa(da(),"WebKit")&&!fa("Edge"),qib=ku&&fa("Mobile"),lu=fa("Macintosh"),rib=fa("Windows"),sib=fa("Linux")||fa("CrOS"),tib=ca.navigator||null;tib&&ea(tib.appVersion||"","X11");var uib=fa("Android"),vib=ma(),wib=fa("iPad"),xib=fa("iPod"),yib=na();oa(da(),"KaiOS");var zib=function(){var a=ca.document;return a?a.documentMode:void 0},Aib;
a:{var Bib="",Cib=function(){var a=da();if(ju)return/rv:([^\);]+)(\)|;)/.exec(a);if(iu)return/Edge\/([\d\.]+)/.exec(a);if(hu)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(ku)return/WebKit\/(\S+)/.exec(a);if(pib)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Cib&&(Bib=Cib?Cib[1]:"");if(hu){var Dib=zib();if(null!=Dib&&Dib>parseFloat(Bib)){Aib=String(Dib);break a}}Aib=Bib}var mu=Aib,Eib={},nu=function(a){return oHa(Eib,a,function(){return 0<=pa(mu,a)})},Fib;
if(ca.document&&hu){var Gib=zib();Fib=Gib?Gib:parseInt(mu,10)||void 0}else Fib=void 0;var ou=Fib;
var Hib=ia(),Iib=ma()||fa("iPod"),Jib=fa("iPad"),Kib=eaa(),Lib=ja(),Mib=daa()&&!na();
var Nib={},pu=null,Oib=ju||ku||!Mib&&!hu&&"function"==typeof ca.atob,db=function(a,b){void 0===b&&(b=0);Pib();b=Nib[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],v=b[h>>2];h=b[(h&3)<<4|k>>4];k=b[(k&15)<<2|q>>6];q=b[q&63];c[f++]=v+h+k+q}v=0;q=d;switch(a.length-e){case 2:v=a[e+1],q=b[(v&15)<<2]||d;case 1:a=a[e],c[f]=b[a>>2]+b[(a&3)<<4|v>>4]+q+d}return c.join("")},wUa=function(a){if(Oib)return ca.atob(a);var b="";Qib(a,function(c){b+=String.fromCharCode(c)});
return b},Rib=function(a){var b=[];Qib(a,function(c){b.push(c)});return b},saa=function(a){var b=a.length,c=3*b/4;c%3?c=Math.floor(c):ea("=.",a[b-1])&&(c=ea("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Qib(a,function(f){d[e++]=f});return e!==c?d.subarray(0,e):d},Qib=function(a,b){function c(q){for(;d<a.length;){var v=a.charAt(d++),y=pu[v];if(null!=y)return y;if(!Wi(v))throw Error("t`"+v);}return q}Pib();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))}},Pib=function(){if(!pu){pu={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Nib[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===pu[f]&&(pu[f]=e)}}}};
var Oa="undefined"!==typeof Uint8Array,sb,Pa={};
var Sib,Za=function(a,b){uaa(b);this.value_=a;if(null!==a&&0===a.length)throw Error("v");},Wa=function(){return Sib||(Sib=new Za(null,Pa))},gb=function(a){var b=a.value_;null!=b&&"string"!==typeof b&&(Oa&&b instanceof Uint8Array?b=db(b):(Na(b),b=null));return(a.value_=b)||""};Za.prototype.isEmpty=function(){return null==this.value_};Za.prototype.sizeBytes=function(){var a=Saa(this);return a?a.length:0};var Saa=function(a){uaa(Pa);return a.value_=taa(a.value_)};
var Qa="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol(void 0):void 0;
var Tib,qu=Object.freeze(Ra([])),lb=function(a){if(Ta(a.internalArray_))throw Error("x");},Uib="undefined"!=typeof Symbol&&"undefined"!=typeof Symbol.hasInstance;
var cb=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(Ta(a.arr_))throw Error("y");};cb.prototype.toArrayInternal=function(){if(!this.arrClean){var a=ru(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 Paa=function(a,b){var c=a.valueCtor,d=new cb(Ra([]),c),e;for(e in a.map){var f=a.map[e];c?d.set(f[0],b(su(a,f))):d.set(f[0],f[1])}return d};g=cb.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=ru(this);b.sort();for(var c=0;c<b.length;c++){var d=this.map[b[c]];a.push([d[0],su(this,d)])}return new tu(a)};g.keys=function(){var a=[],b=ru(this);b.sort();for(var c=0;c<b.length;c++)a.push(this.map[b[c]][0]);return new tu(a)};g.values=function(){var a=[],b=ru(this);b.sort();for(var c=0;c<b.length;c++)a.push(su(this,this.map[b[c]]));return new tu(a)};
g.forEach=function(a,b){var c=ru(this);c.sort();for(var d=0;d<c.length;d++){var e=this.map[c[d]];a.call(b,su(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 su=function(a,b){var c=b[1],d=a.valueCtor;if(d){var e=!1,f;if(f=null!=c&&"object"===typeof c&&!(e=Array.isArray(c)))f=Array.isArray(c.internalArray_)&&c.constructor!==Object;d=f?c:e?new d(c):new d;d!==c&&(b[1]=d,Ta(a.arr_)&&Ua(d.internalArray_));return d}return c};cb.prototype.get=function(a){if(a=this.map[a.toString()])return su(this,a)};cb.prototype.has=function(a){return a.toString()in this.map};
var ru=function(a){a=a.map;var b=[],c;for(c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.push(c);return b};cb.prototype[Symbol.iterator]=function(){return this.entries()};var tu=function(a){this.idx_=0;this.arr_=a};tu.prototype.next=function(){return this.idx_<this.arr_.length?{done:!1,value:this.arr_[this.idx_++]}:{done:!0,value:void 0}};tu.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},dj=
function(a,b){return null!=p(a,b)},lj=function(a,b){return Array.isArray(p(a,b))},wl=function(a,b,c){return Array.isArray(p(a,qb(a,c,b)))},jb=function(a,b,c,d){c=void 0===c?!0:c;var e=p(a,b,d);null==e&&(e=qu);if(Ta(a.internalArray_))c&&(Ua(e),Object.freeze(e));else if(e===qu||Ta(e))e=Ra(e.slice()),l(a,b,e,d);return e},uu=function(a,b){a=p(a,b);return null==a?a:+a},To=function(a,b){a=p(a,b);return null==a?a:!!a},vu=function(a,b){var c=p(a,b);if(null==c)return null;if(c instanceof Za)return c;c=ab(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=To(a,b);return null==a?c:a},zl=function(a,b,c){c=void 0===c?0:c;a=uu(a,b);return null==a?c:a},Gm=function(a,b){var c=void 0===c?"":c;a=vu(a,b);return null==a?c?new Za(c,Pa):Wa():a},Zi=function(a,b,c){a:{var d=p(a,b);if(null==d)d=[];else if(d.constructor===cb){a=d;break a}var e=Ta(a.internalArray_),f=Ta(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])&&Ua(q[1])}d=h}c=new cb(d,c);e&&!f&&Ua(c.arr_);l(a,b,c,!1,!0);a=c}return a},jl=function(a,b,c){return l(a,b,null==c?Ra([]):Array.isArray(c)?Ra(c):c)},mb=function(a,b,c){return l(a,b,void 0,!1,c)},wu=function(a,b,c){lb(a);null==c||(c instanceof Za?c.isEmpty():0===c.length)?mb(a,b):l(a,b,c);return a},co=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},xu=function(a,b,c){lb(a);a.internalWrappers_||(a.internalWrappers_={});var d=a.internalWrappers_[c];if(d)return b=d.toMutable(aaa),b!==d&&(l(a,c,b.toArrayInternal()),a.internalWrappers_[c]=b),b;d=p(a,c);b=Caa(d,b,!0).toMutable(aaa);d!==b.toArrayInternal()&&l(a,c,b.toArrayInternal());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;var h=p(a,c,e);b=Caa(h,b,d);if(void 0==b)return f;d&&b.toArrayInternal()!==h&&l(a,c,b.toArrayInternal(),e,!0);a.internalWrappers_[c]=b;Ta(a.internalArray_)&&Ua(b.internalArray_);return b},rb=function(a,b,c,d){a.internalWrappers_||(a.internalWrappers_={});var e=Ta(a.internalArray_),f=a.internalWrappers_[c];if(!f){d=jb(a,c,!0,d);f=[];e=e||Ta(d);for(var h=0;h<d.length;h++){var k=Caa(d[h],b);void 0!==k&&(f.push(k),e&&Ua(k.internalArray_))}e&&(Ua(f),Object.freeze(f));
a.internalWrappers_[c]=f}return f},Bb=function(a,b,c,d){lb(a);a.internalWrappers_||(a.internalWrappers_={});var e=null!=c?c.toArrayInternal():c;a.internalWrappers_[b]=c;return l(a,b,e,d)},yu=function(a,b,c,d){lb(a);a.internalWrappers_||(a.internalWrappers_={});var e=null!=d?d.toArrayInternal():d;a.internalWrappers_[b]=d;return co(a,b,c,e)},Ab=function(a,b,c,d){lb(a);if(c){var e=Ra([]);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=qu;return l(a,b,e,d)},zu=function(a,b,c,d,e){lb(a);var f=rb(a,c,b);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},ej=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)},Rr=function(a,b,c){return p(a,qb(a,c,b))},yl=function(a,b,c,d){return m(a,b,qb(a,d,
c))},mo=function(a,b,c){return nb(a,b,c,!1)},Uk=function(a,b,c){return nb(a,b,c,0)},vl=function(a,b,c){return nb(a,b,c,"")},sl=function(a,b,c){return nb(a,b,c,0)};
var Bu=function(a,b,c){a||(a=Au);Au=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],yaa(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)&&Ra(d):this.internalArray_[a]=qu;else{d=Wib(this);var e=d[a];e?Array.isArray(e)&&Ra(e):d[a]=qu}};Bu.prototype.toArray=function(){return this.toJSON()};Bu.prototype.toJSON=function(){var a=this.toArrayInternal();return Tib?a:ib(a,Naa)};Bu.prototype.toArrayInternal=function(){return this.internalArray_};
Bu.prototype.serialize=function(){Tib=!0;try{return JSON.stringify(this.toJSON(),Qaa)}finally{Tib=!1}};var jo=function(a,b){if(null==b||""==b)return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("B`"+Na(b)+"`"+b);Au=b;a=new a(b);Au=null;return a};g=Bu.prototype;g.getExtension=function(a){return a.getExtensionFn(this)};g.hasExtension=function(a){return dj(this,a.fieldIndex)};g.clone=function(){var a=ib(this.toArrayInternal());Au=a;a=new this.constructor(a);Au=null;Raa(a,this);return a};
g.isMutable=function(){baa();return!Ta(this.internalArray_)};g.isImmutable=function(a){baa(a);return Ta(this.internalArray_)};g.toString=function(){return this.toArrayInternal().toString()};var Au;
var Xib="function"===typeof Uint8Array.prototype.slice;
var Cu=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=Cu.prototype;g.init=function(a,b,c,d){d=void 0===d?{}:d;this.aliasBytesFields=void 0===d.aliasBytesFields?!1:d.aliasBytesFields;a&&(a=Taa(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>Du.length&&Du.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){Eu(this,this.cursor_+a)};
g.readSplitVarint64=function(a){var b=0,c=0,d=0,e=this.bytes_,f=this.cursor_;do{var h=e[f++];b|=(h&127)<<d;d+=7}while(32>d&&h&128);32<d&&(c|=(h&127)>>4);for(d=3;32>d&&h&128;d+=7)h=e[f++],c|=(h&127)<<d;Eu(this,f);if(128>h)return a(b>>>0,c>>>0);throw Error("H");};var Eu=function(a,b){a.cursor_=b;if(b>a.end_)throw Error("I`"+b+"`"+a.end_);};g=Cu.prototype;
g.readSignedVarint32=function(){var a=this.bytes_,b=this.cursor_,c=a[b++],d=c&127;if(c&128&&(c=a[b++],d|=(c&127)<<7,c&128&&(c=a[b++],d|=(c&127)<<14,c&128&&(c=a[b++],d|=(c&127)<<21,c&128&&(c=a[b++],d|=c<<28,c&128&&a[b++]&128&&a[b++]&128&&a[b++]&128&&a[b++]&128&&a[b++]&128)))))throw Error("H");Eu(this,b);return d};g.readUint32=function(){var a=this.bytes_,b=this.cursor_,c=a[b],d=a[b+1],e=a[b+2];a=a[b+3];this.advance(4);return(c<<0|d<<8|e<<16|a<<24)>>>0};
g.readUint64=function(){var a=this.readUint32(),b=this.readUint32();return Uaa(a,b)};g.readInt32=function(){var a=this.bytes_,b=this.cursor_,c=a[b],d=a[b+1],e=a[b+2];a=a[b+3];this.advance(4);return c<<0|d<<8|e<<16|a<<24};g.readInt64=function(){var a=this.readUint32(),b=this.readUint32();return Vaa(a,b)};g.readBool=function(){for(var a=0,b=this.cursor_,c=b+10,d=this.bytes_;b<c;){var e=d[b++];a|=e;if(0===(e&128))return Eu(this,b),!!(a&127)}throw Error("H");};
g.readByteString=function(a){if(0==a)return Wa();if(0>a)throw Error("J`"+a);var b=this.cursor_,c=b+a;if(c>this.end_)throw Error("I`"+(this.end_-b)+"`"+a);this.cursor_=c;this.aliasBytesFields&&this.bytesAreImmutable_?b=this.bytes_.subarray(b,b+a):(c=this.bytes_,a=b+a,b=b===a?sb||(sb=new Uint8Array(0)):Xib?c.slice(b,a):new Uint8Array(c.subarray(b,a)));return 0==b.length?Wa():new Za(b,Pa)};var Du=[];
var Yib=function(a){if(Du.length){var b=Du.pop();b.init(a,void 0,void 0,void 0);a=b}else a=new Cu(a);this.decoder_=a;this.fieldCursor_=this.decoder_.getCursor();this.nextWireType_=this.nextTag_=this.nextField_=-1;this.setOptions()};g=Yib.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>Fu.length&&Fu.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("D`"+d+"`"+a.fieldCursor_);if(1>c)throw Error("E`"+c+"`"+a.fieldCursor_);a.nextTag_=b;a.nextField_=c;a.nextWireType_=d;return!0},wb=function(a){switch(a.nextWireType_){case 0:0!=a.nextWireType_?wb(a):a.decoder_.readBool();break;case 1:a.decoder_.advance(8);break;case 2:if(2!=a.nextWireType_)wb(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("F");if(4==a.nextWireType_){if(a.nextField_!=b)throw Error("G");break}wb(a)}while(1);break;default:throw Error("D`"+a.nextWireType_+"`"+a.fieldCursor_);}};g=Yib.prototype;g.readInt32=function(){return this.decoder_.readSignedVarint32()};g.readInt64=function(){return this.decoder_.readSplitVarint64(Vaa)};g.readUint32=function(){return this.decoder_.readSignedVarint32()>>>0};
g.readUint64=function(){return this.decoder_.readSplitVarint64(Uaa)};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 Fu=[];
var Gu=function(){Bu.apply(this,arguments)};U(Gu,Bu);var yr=function(a,b,c){return b.setExtensionFn(a,c)};Gu.prototype.toMutable=function(){return this};if(Uib){var Zib={};Object.defineProperties(Gu,(Zib[Symbol.hasInstance]=Baa(function(){throw Error("L");}),Zib))}
;var tb=Symbol(),bba=Symbol(),ub=Symbol(),$ib=xb(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))}),Hu=xb(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))}),ajb=xb(function(a,b,c){if(0!==a.nextWireType_&&2!==a.nextWireType_)return!1;b=jb(b,c);if(2==a.nextWireType_){c=Cu.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))}),bjb=xb(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))}),cjb=xb(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))}),djb=xb(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))}),ejb=xb(function(a,b,c,d,e){if(2!==a.nextWireType_)return!1;b=xu(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,void 0,void 0,void 0),h=f-a.decoder_.getCursor());if(h)throw Error("C`"+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(){Gu.apply(this,arguments)};U(Z,Gu);
Z.prototype.toMutable=function(a){baa(a);if(Ta(this.internalArray_)){a={copyRepeatedFields:!0};var b=Ta(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&&yaa(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 fjb={};Object.defineProperties(Z,(fjb[Symbol.hasInstance]=Baa(Object[Symbol.hasInstance]),fjb))}
;var Iu=function(a){Z.call(this,a)};U(Iu,Z);Iu.prototype.getResourceKey=function(){return p(this,2)};Iu.prototype.toObject=function(){return gjb(void 0,this)};var gjb=function(a,b){if(null!=b){var c={resourceKey:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Ju=function(a){Z.call(this,a)};U(Ju,Z);Ju.prototype.getCustomerId=function(){return p(this,1)};Ju.prototype.toObject=function(){return hjb(void 0,this)};var hjb=function(a,b){if(null!=b){var c={customerId:n(p(b,1))};a&&(c.$jspbMessageInstance=b);return c}};
var ijb=function(a){Z.call(this,a)};U(ijb,Z);var jjb=function(a){Z.call(this,a)};U(jjb,Z);var Ku=function(a){Z.call(this,a)};U(Ku,Z);Ku.prototype.getCustomerId=function(){return m(this,Ju,1)};var kjb=[1,2];ijb.prototype.toObject=function(){return ljb(void 0,this)};var ljb=function(a,b){if(null!=b){var c={consumerInfo:mjb(a,yl(b,jjb,1,kjb)),customerInfo:njb(a,yl(b,Ku,2,kjb))};a&&(c.$jspbMessageInstance=b);return c}};jjb.prototype.toObject=function(){return mjb(void 0,this)};
var mjb=function(a,b){if(null!=b){var c={};a&&(c.$jspbMessageInstance=b);return c}};Ku.prototype.toObject=function(){return njb(void 0,this)};var njb=function(a,b){if(null!=b){var c={customerId:hjb(a,b.getCustomerId())};a&&(c.$jspbMessageInstance=b);return c}};
var Lu=function(a){Z.call(this,a)};U(Lu,Z);Lu.prototype.getIndex=function(){return ej(this,1)};Lu.prototype.setIndex=function(a){Uk(this,1,a)};Lu.prototype.toObject=function(){return ojb(void 0,this)};var ojb=function(a,b){if(null!=b){var c={index:ej(b,1),dataSourceIndex:ej(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Mu=function(a){Z.call(this,a)};U(Mu,Z);g=Mu.prototype;g.getId=function(){return V(this,1)};g.setId=function(a){return vl(this,1,a)};g.getSourceId=function(){return X(this,2,0)};g.setSourceId=function(a){return sl(this,2,a)};g.toObject=function(){return pjb(void 0,this)};var pjb=function(a,b){if(null!=b){var c={id:V(b,1),sourceId:X(b,2,0)};a&&(c.$jspbMessageInstance=b);return c}};
var Nu=function(a){Z.call(this,a)};U(Nu,Z);g=Nu.prototype;g.getUrl=function(){return V(this,1)};g.setUrl=function(a){return vl(this,1,a)};g.getHeight=function(){return ej(this,2)};g.setHeight=function(a){return Uk(this,2,a)};g.getWidth=function(){return ej(this,3)};g.setWidth=function(a){return Uk(this,3,a)};g.toObject=function(){return Ou(void 0,this)};var Ou=function(a,b){if(null!=b){var c={url:V(b,1),height:ej(b,2),width:ej(b,3),rotation:ej(b,4)};a&&(c.$jspbMessageInstance=b);return c}};
var jm=function(a){Z.call(this,a)};U(jm,Z);g=jm.prototype;g.getSeconds=function(){return ej(this,1)};g.setSeconds=function(a){return Uk(this,1,a)};g.getNanos=function(){return ej(this,2)};g.setNanos=function(a){Uk(this,2,a)};g.toObject=function(){return Pu(void 0,this)};var Pu=function(a,b){if(null!=b){var c={seconds:ej(b,1),nanos:ej(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Qu=function(a){Z.call(this,a)};U(Qu,Z);Qu.prototype.getDuration=function(){return m(this,jm,2)};Qu.prototype.toObject=function(){return qjb(void 0,this)};var qjb=function(a,b){if(null!=b){var c={aspectRatio:zl(b,1),duration:Pu(a,b.getDuration())};a&&(c.$jspbMessageInstance=b);return c}};
var rjb=function(a){Z.call(this,a)};U(rjb,Z);rjb.prototype.toObject=function(){return sjb(void 0,this)};var sjb=function(a,b){if(null!=b){var c={left:zl(b,1),top:zl(b,2),right:zl(b,3),bottom:zl(b,4)};a&&(c.$jspbMessageInstance=b);return c}};
var Ru=function(a){Z.call(this,a)};U(Ru,Z);Ru.prototype.getRotate=function(){return ej(this,2)};Ru.prototype.setRotate=function(a){return Uk(this,2,a)};Ru.prototype.toObject=function(){return tjb(void 0,this)};var tjb=function(a,b){if(null!=b){var c={cropCoordinates:sjb(a,m(b,rjb,1)),rotate:ej(b,2),caption:V(b,3)};a&&(c.$jspbMessageInstance=b);return c}};
var ujb=function(a){Z.call(this,a)};U(ujb,Z);g=ujb.prototype;g.getEmail=function(){return V(this,1)};g.setEmail=function(a){return vl(this,1,a)};g.getName=function(){return V(this,2)};g.setName=function(a){return vl(this,2,a)};g.getDisplayName=function(){return V(this,3)};g.setDisplayName=function(a){return vl(this,3,a)};g.toObject=function(){return vjb(void 0,this)};
var vjb=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:Ou(a,m(b,Nu,5))};a&&(c.$jspbMessageInstance=b);return c}};
var Su=function(a){Z.call(this,a)};U(Su,Z);Su.prototype.getBackgroundColor=function(){return V(this,2)};Su.prototype.setBackgroundColor=function(a){vl(this,2,a)};Su.prototype.setSelected=function(a){return mo(this,5,a)};Su.prototype.toObject=function(){return wjb(void 0,this)};var wjb=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:vjb(a,m(b,ujb,6))};a&&(c.$jspbMessageInstance=b);return c}};
var xjb=function(a){Z.call(this,a)};U(xjb,Z);xjb.prototype.toObject=function(){return yjb(void 0,this)};var yjb=function(a,b){if(null!=b){var c={rawBytes:Fb(Gm(b,1))};a&&(c.$jspbMessageInstance=b);return c}};
var Tu=function(a){Z.call(this,a,-1,zjb)};U(Tu,Z);var zjb=[1,2];Tu.prototype.toObject=function(){return Ajb(void 0,this)};var Ajb=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 Uu=function(a){Z.call(this,a)};U(Uu,Z);Uu.prototype.getCategory=function(){return X(this,1,0)};Uu.prototype.setCategory=function(a){sl(this,1,a)};Uu.prototype.toObject=function(){return Bjb(void 0,this)};var Bjb=function(a,b){if(null!=b){var c={category:X(b,1,0),categoryLabel:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var sj=function(a){Z.call(this,a)};U(sj,Z);g=sj.prototype;g.getSeconds=function(){return ej(this,1)};g.setSeconds=function(a){return Uk(this,1,a)};g.getNanos=function(){return ej(this,2)};g.setNanos=function(a){Uk(this,2,a)};g.toDate=function(){var a=this.getSeconds(),b=this.getNanos();return new Date(1E3*a+b/1E6)};g.toObject=function(){return Vu(void 0,this)};var Vu=function(a,b){if(null!=b){var c={seconds:ej(b,1),nanos:ej(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Wu=function(a){Z.call(this,a)};U(Wu,Z);Wu.prototype.getTotalItems=function(){return ej(this,1)};Wu.prototype.setTotalItems=function(a){return Uk(this,1,a)};Wu.prototype.toObject=function(){return Cjb(void 0,this)};var Cjb=function(a,b){if(null!=b){var c={totalItems:ej(b,1),startTimestamp:Vu(a,m(b,sj,2)),endTimestamp:Vu(a,m(b,sj,3))};a&&(c.$jspbMessageInstance=b);return c}};
var Djb=function(a){Z.call(this,a)};U(Djb,Z);Djb.prototype.toObject=function(){return Ejb(void 0,this)};var Ejb=function(a,b){if(null!=b){var c={albumMetadata:Cjb(a,m(b,Wu,1)),dedupKey:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Fjb=function(a){Z.call(this,a)};U(Fjb,Z);Fjb.prototype.toObject=function(){return Gjb(void 0,this)};var Gjb=function(a,b){if(null!=b){var c={dataUrl:V(b,1)};a&&(c.$jspbMessageInstance=b);return c}};
var Xu=function(a){Z.call(this,a)};U(Xu,Z);Xu.prototype.getCategory=function(){return V(this,1)};Xu.prototype.setCategory=function(a){vl(this,1,a)};Xu.prototype.toObject=function(){return Hjb(void 0,this)};var Hjb=function(a,b){if(null!=b){var c={category:V(b,1)};a&&(c.$jspbMessageInstance=b);return c}};
var Yu=function(a){Z.call(this,a)};U(Yu,Z);g=Yu.prototype;g.getWidth=function(){return ej(this,1)};g.setWidth=function(a){return Uk(this,1,a)};g.getHeight=function(){return ej(this,2)};g.setHeight=function(a){return Uk(this,2,a)};g.toObject=function(){return Ijb(void 0,this)};var Ijb=function(a,b){if(null!=b){var c={width:ej(b,1),height:ej(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Jjb=function(a){Z.call(this,a)};U(Jjb,Z);Jjb.prototype.toObject=function(){return Kjb(void 0,this)};var Kjb=function(a,b){if(null!=b){var c={imageSize:Ijb(a,m(b,Yu,1))};a&&(c.$jspbMessageInstance=b);return c}};
var Zu=function(a){Z.call(this,a)};U(Zu,Z);Zu.prototype.toObject=function(){return Ljb(void 0,this)};var Ljb=function(a,b){if(null!=b){var c={originalImage:Ou(a,m(b,Nu,1)),referrerUrl:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var $u=function(a){Z.call(this,a)};U($u,Z);$u.prototype.getVideoMetadata=function(){return m(this,Qu,1)};$u.prototype.toObject=function(){return Mjb(void 0,this)};var Mjb=function(a,b){if(null!=b){var c={videoMetadata:qjb(a,b.getVideoMetadata()),channelName:V(b,2),channelId:V(b,3),viewCount:ej(b,4)};a&&(c.$jspbMessageInstance=b);return c}};
var Njb=function(a){Z.call(this,a)};U(Njb,Z);Njb.prototype.toObject=function(){return Ojb(void 0,this)};var Ojb=function(a,b){if(null!=b){var c={youtubeVideoMetadata:Mjb(a,m(b,$u,1))};a&&(c.$jspbMessageInstance=b);return c}};
var av=function(a){Z.call(this,a)};U(av,Z);av.prototype.getVideoMetadata=function(){return m(this,Qu,3)};av.prototype.getResourceKey=function(){return V(this,11)};var bv=function(a){Z.call(this,a,-1,Pjb)};U(bv,Z);g=bv.prototype;g.getId=function(){return m(this,Mu,1)};g.setId=function(a){return Bb(this,1,a)};g.getName=function(){return V(this,2)};g.setName=function(a){return vl(this,2,a)};g.getDescription=function(){return V(this,3)};g.setDescription=function(a){return vl(this,3,a)};
g.getParentId=function(){return V(this,4)};g.setParentId=function(a){vl(this,4,a)};g.getType=function(){return X(this,6,0)};g.setType=function(a){return sl(this,6,a)};g.getMimeType=function(){return V(this,7)};g.setMimeType=function(a){vl(this,7,a)};g.getUrl=function(){return V(this,8)};g.setUrl=function(a){return vl(this,8,a)};g.getIconUrl=function(){return V(this,11)};var cv=function(a){return rb(a,Nu,10)};bv.prototype.getLastModifiedTimestamp=function(){return m(this,sj,12)};
var Qjb=function(a){Z.call(this,a)};U(Qjb,Z);av.prototype.toObject=function(){return Rjb(void 0,this)};var Rjb=function(a,b){if(null!=b){var c={shared:W(b,1),hasPrimarySyncParent:W(b,2),videoMetadata:qjb(a,b.getVideoMetadata()),recencyTimestamp:Vu(a,m(b,sj,4)),recencyReason:ej(b,5),sharedDriveId:V(b,6),hasOwnPermissions:W(b,7),shortcutDetails:Sjb(a,m(b,Qjb,8)),copyable:W(b,9),downloadUrl:V(b,10),resourceKey:V(b,11),isRecentUpload:W(b,12)};a&&(c.$jspbMessageInstance=b);return c}},Pjb=[5,10,22];
bv.prototype.toObject=function(){return dv(void 0,this)};
var dv=function(a,b){if(null!=b){var c={id:pjb(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:Cb(cv(b),Ou,a),internalThumbnailList:Cb(rb(b,Nu,22),Ou,a),lastModifiedTimestamp:Vu(a,b.getLastModifiedTimestamp()),creationTimestampMs:Vu(a,m(b,sj,16)),calendarMetadata:wjb(a,m(b,Su,14)),webMetadata:Ljb(a,m(b,Zu,15)),photosMetadata:Ejb(a,
m(b,Djb,18)),themesMetadata:Hjb(a,m(b,Xu,19)),driveMetadata:Rjb(a,m(b,av,21)),youtubeMetadata:Ojb(a,m(b,Njb,24)),cameraMetadata:yjb(a,m(b,xjb,26)),contactsMetadata:Ajb(a,m(b,Tu,27)),partyMetadata:Bjb(a,m(b,Uu,28)),urlMetadata:Kjb(a,m(b,Jjb,29)),uploadMetadata:Gjb(a,m(b,Fjb,30)),cropPhotoMetadata:tjb(a,m(b,Ru,32)),bucketId:V(b,17),sizeBytes:ej(b,23),itemDiagnosticsInfo:ojb(a,m(b,Lu,25)),isAttachment:W(b,31)};a&&(c.$jspbMessageInstance=b);return c}};
Qjb.prototype.toObject=function(){return Sjb(void 0,this)};var Sjb=function(a,b){if(null!=b){var c={targetId:V(b,1),targetMimeType:V(b,2),targetItem:dv(a,m(b,bv,3)),targetLookupStatus:X(b,4,0)};a&&(c.$jspbMessageInstance=b);return c}};
var ev=function(a){Z.call(this,a)};U(ev,Z);ev.prototype.setGmailDelegatorId=function(a){return vl(this,1,a)};ev.prototype.toObject=function(){return Tjb(this)};var Tjb=function(a){if(null!=a)return{gmailDelegatorId:V(a,1)}};
var fv=function(a){Z.call(this,a)};U(fv,Z);g=fv.prototype;g.getOrigin=function(){return V(this,1)};g.setOrigin=function(a){return vl(this,1,a)};g.getInstanceId=function(){return V(this,2)};g.setInstanceId=function(a){return vl(this,2,a)};g.getWidgetType=function(){return X(this,3,0)};g.getContainerType=function(){return X(this,4,0)};g.toObject=function(){return Ujb(this)};
var Ujb=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:Vu(void 0,m(a,sj,5)),gapiLoadStartTimestamp:Vu(void 0,m(a,sj,6)),gapiLoadEndTimestamp:Vu(void 0,m(a,sj,7))}};
var gv=function(a){Z.call(this,a)};U(gv,Z);g=gv.prototype;g.getAuthUser=function(){return ej(this,1)};g.setAuthUser=function(a){return Uk(this,1,a)};g.getEmail=function(){return V(this,2)};g.setEmail=function(a){return vl(this,2,a)};g.toObject=function(){return Vjb(this)};var Vjb=function(a){if(null!=a)return{authUser:ej(a,1),email:V(a,2),gaiaId:V(a,3)}};
var Wjb=function(a){Z.call(this,a)};U(Wjb,Z);Wjb.prototype.toObject=function(){return Xjb(this)};var Xjb=function(a){if(null!=a)return{top:zl(a,1),right:zl(a,2),bottom:zl(a,3),left:zl(a,4)}};
var Yjb=function(a){Z.call(this,a)};U(Yjb,Z);Yjb.prototype.toObject=function(){return Zjb(this)};var Zjb=function(a){if(null!=a)return{contentPadding:Xjb(m(a,Wjb,1)),gridElementHeight:zl(a,2)}};
var $jb=function(a){Z.call(this,a)};U($jb,Z);$jb.prototype.toObject=function(){return akb(this)};var akb=function(a){if(null!=a)return{chromeMode:X(a,1,0),modeSettings:Zjb(m(a,Yjb,4)),deprecatedWidgetType:X(a,2,0),deprecatedContainerType:X(a,3,0)}};
var bkb=function(a){Z.call(this,a)};U(bkb,Z);bkb.prototype.toObject=function(){return ckb(this)};var ckb=function(a){if(null!=a)return{jsDebug:V(a,1),forceDisableDriveIvdp:W(a,2),enableLiveImpressions:W(a,3)}};
var hv=function(a){Z.call(this,a)};U(hv,Z);g=hv.prototype;g.getWidth=function(){return ej(this,1)};g.setWidth=function(a){return Uk(this,1,a)};g.getHeight=function(){return ej(this,2)};g.setHeight=function(a){return Uk(this,2,a)};g.toObject=function(){return dkb(this)};var dkb=function(a){if(null!=a)return{width:ej(a,1),height:ej(a,2)}};
var iv=function(a){Z.call(this,a,-1,ekb)};U(iv,Z);var fkb=function(a,b){return jl(a,1,b)},jv=function(a,b){ob(a,1,b)};iv.prototype.getMaxSize=function(){return m(this,Yu,5)};iv.prototype.setMaxSize=function(a){Bb(this,5,a)};var ekb=[1,2,3,4];iv.prototype.toObject=function(){return gkb(this)};var gkb=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:Ijb(void 0,a.getMaxSize()),maxSizeBytes:ej(a,6)}};
var hkb=function(a){Z.call(this,a)};U(hkb,Z);hkb.prototype.toObject=function(){return ikb(this)};var ikb=function(a){if(null!=a)return{noDataFoundLabel:V(a,1),noDataFoundDescription:V(a,2)}};
var kv=function(a){Z.call(this,a)};U(kv,Z);kv.prototype.toObject=function(){return jkb(void 0,this)};var jkb=function(a,b){if(null!=b){var c={copyToTemporaryAlbum:W(b,1),hasCaption:W(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var kkb=function(a){Z.call(this,a)};U(kkb,Z);kkb.prototype.toObject=function(){return lkb(void 0,this)};var lkb=function(a,b){if(null!=b){var c={};a&&(c.$jspbMessageInstance=b);return c}};
var mkb=function(a){Z.call(this,a)};U(mkb,Z);mkb.prototype.toObject=function(){return nkb(void 0,this)};var nkb=function(a,b){if(null!=b){var c={};a&&(c.$jspbMessageInstance=b);return c}};
var lv=function(a){Z.call(this,a)};U(lv,Z);lv.prototype.getId=function(){return X(this,1,0)};lv.prototype.setId=function(a){return sl(this,1,a)};var mv=[2,3,4];lv.prototype.toObject=function(){return okb(void 0,this)};var okb=function(a,b){if(null!=b){var c={id:X(b,1,0),profilePhotoOptions:nkb(a,yl(b,mkb,2,mv)),cropPhotoOptions:jkb(a,yl(b,kv,3,mv)),photoSharingOptions:lkb(a,yl(b,kkb,4,mv))};a&&(c.$jspbMessageInstance=b);return c}};
var pkb=function(a){Z.call(this,a)};U(pkb,Z);pkb.prototype.toObject=function(){return qkb(this)};var qkb=function(a){if(null!=a)return{previewMode:X(a,1,0)}};
var nv=function(a){Z.call(this,a)};U(nv,Z);nv.prototype.toObject=function(){return rkb(this)};var rkb=function(a){if(null!=a)return{selectionMode:X(a,1,0),allowCollectionSelection:W(a,2)}};
var ov=function(a){Z.call(this,a,-1,skb)};U(ov,Z);g=ov.prototype;g.setHost=function(a){return sl(this,23,a)};g.getItemType=function(){return m(this,iv,2)};g.setItemType=function(a){Bb(this,2,a)};g.getAuthUser=function(){return m(this,gv,6)};g.setAuthUser=function(a){return Bb(this,6,a)};g.getBaseUrl=function(){return V(this,8)};var tkb=function(a,b){return vl(a,8,b)};g=ov.prototype;g.getTitle=function(){return V(this,9)};g.setTitle=function(a){return vl(this,9,a)};
g.getLocale=function(){return V(this,10)};g.setLocale=function(a){return vl(this,10,a)};g.setSecretToken=function(a){return vl(this,12,a)};var ukb=function(a){var b=new fv;var c=b.setOrigin,d=window.location.origin;d||(d=pv(qv(new dp,window.location.protocol),window.location.host).toString());b=c.call(b,d);b=sl(b,3,2);return Bb(a,20,b)};g=ov.prototype;g.addPostProcessor=function(a){zu(this,28,lv,a)};g.setBuildLabel=function(a){vl(this,31,a)};g.setMinSize=function(a){Bb(this,32,a)};
g.getMaxSize=function(){return m(this,hv,33)};g.setMaxSize=function(a){Bb(this,33,a)};g.setInitialView=function(a){sl(this,35,a)};var skb=[18,28];ov.prototype.toObject=function(){return vkb(this)};
var vkb=function(a){if(null!=a)return{host:X(a,23,0),hostUsecase:V(a,24),itemType:gkb(a.getItemType()),selectionStrategy:rkb(m(a,nv,3)),maxItemsToSelect:ej(a,5),previewStrategy:qkb(m(a,pkb,21)),authUser:Vjb(a.getAuthUser()),oauth:V(a,7),baseUrl:V(a,8),topOrigin:V(a,27),title:V(a,9),locale:V(a,10),containerSpec:akb(m(a,$jb,11)),secretToken:V(a,12),debugSpec:ckb(m(a,bkb,14)),clientEnabledExperimentsList:n(jb(a,18)),selectButtonLabel:V(a,19),additionalInfo:Ujb(m(a,fv,20)),messageTextOverrides:ikb(m(a,
hkb,22)),enableDragDrop:W(a,25),preloaded:W(a,26),postProcessorList:Cb(rb(a,lv,28),okb),accountDelegation:Tjb(m(a,ev,29)),initialViewLayout:X(a,30,0),buildLabel:V(a,31),minSize:dkb(m(a,hv,32)),maxSize:dkb(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 rv=function(a){Z.call(this,a)};U(rv,Z);rv.prototype.getEventType=function(){return X(this,1,0)};rv.prototype.setEventType=function(a){return sl(this,1,a)};rv.prototype.toObject=function(){return wkb(this)};var wkb=function(a){if(null!=a)return{eventType:X(a,1,0)}};
var sv=function(a){Z.call(this,a,-1,xkb)};U(sv,Z);sv.prototype.getItemList=function(){return rb(this,bv,1)};sv.prototype.setItemList=function(a){Ab(this,1,a)};sv.prototype.addItem=function(a,b){return zu(this,1,bv,a,b)};var xkb=[1];sv.prototype.toObject=function(){return ykb(this)};var ykb=function(a){if(null!=a)return{itemList:Cb(a.getItemList(),dv),currentItem:dv(void 0,m(a,bv,2)),currentItemIndex:ej(a,3)}};
var tv=function(a){Z.call(this,a,-1,zkb)};U(tv,Z);g=tv.prototype;g.getStatus=function(){return X(this,1,0)};g.setStatus=function(a){return sl(this,1,a)};g.getItemList=function(){return rb(this,bv,2)};g.setItemList=function(a){Ab(this,2,a)};g.addItem=function(a,b){return zu(this,2,bv,a,b)};g.getErrorCode=function(){return X(this,4,0)};var zkb=[2];tv.prototype.toObject=function(){return Akb(this)};
var Akb=function(a){if(null!=a)return{status:X(a,1,0),itemList:Cb(a.getItemList(),dv),action:X(a,3,0),errorCode:X(a,4,0)}};
var uv=function(a){Z.call(this,a)};U(uv,Z);uv.prototype.getQuery=function(){return V(this,1)};uv.prototype.setQuery=function(a){return vl(this,1,a)};uv.prototype.toObject=function(){return Bkb(void 0,this)};var Bkb=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 vv=function(a){Z.call(this,a)};U(vv,Z);vv.prototype.getUploadUrl=function(){return V(this,1)};vv.prototype.toObject=function(){return Ckb(void 0,this)};var Ckb=function(a,b){if(null!=b){var c={uploadUrl:V(b,1),metadataMap:Eb(Zi(b,2),a),agentId:X(b,3,0),configurationId:X(b,4,0),sendDataUrl:W(b,5)};a&&(c.$jspbMessageInstance=b);return c}};
var wv=function(a){Z.call(this,a)};U(wv,Z);wv.prototype.getUploadSourceOptions=function(){return m(this,vv,2)};wv.prototype.setUploadSourceOptions=function(a){return Bb(this,2,a)};wv.prototype.toObject=function(){return Dkb(void 0,this)};var Dkb=function(a,b){if(null!=b){var c={uploadMode:X(b,1,0),uploadSourceOptions:Ckb(a,b.getUploadSourceOptions())};a&&(c.$jspbMessageInstance=b);return c}};
var xv=function(a){Z.call(this,a)};U(xv,Z);xv.prototype.getQuery=function(){return V(this,1)};xv.prototype.setQuery=function(a){return vl(this,1,a)};xv.prototype.toObject=function(){return Ekb(void 0,this)};var Ekb=function(a,b){if(null!=b){var c={query:V(b,1)};a&&(c.$jspbMessageInstance=b);return c}};
var yv=function(a){Z.call(this,a,-1,Fkb)};U(yv,Z);var Fkb=[1,3];yv.prototype.toObject=function(){return Gkb(void 0,this)};var Gkb=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 zp=function(a){Z.call(this,a)};U(zp,Z);g=zp.prototype;g.getType=function(){return X(this,1,0)};g.setType=function(a){return sl(this,1,a)};g.getDirection=function(){return X(this,2,0)};g.setDirection=function(a){return sl(this,2,a)};g.toObject=function(){return Hkb(void 0,this)};var Hkb=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 yp=function(a){Z.call(this,a)};U(yp,Z);g=yp.prototype;g.getParentId=function(){return V(this,1)};g.setParentId=function(a){vl(this,1,a)};g.getQuery=function(){return V(this,2)};g.setQuery=function(a){return vl(this,2,a)};g.getStarred=function(){return W(this,7)};g.setStarred=function(a){mo(this,7,a)};g.setViewMode=function(a){sl(this,8,a)};g.getLastModified=function(){return m(this,sj,9)};g.toObject=function(){return Ikb(void 0,this)};
var Ikb=function(a,b){if(null!=b){var c={parentId:V(b,1),query:V(b,2),sortBy:Hkb(a,m(b,zp,3)),ownedBy:X(b,4,0),sharedWithMe:W(b,5),starred:W(b,7),viewMode:X(b,8,0),lastModified:Vu(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:Gkb(a,m(b,yv,15)),encryptedOnlyMode:W(b,16),includeEncryptedItems:W(b,17)};a&&(c.$jspbMessageInstance=b);return c}};
var zv=function(a){Z.call(this,a)};U(zv,Z);zv.prototype.getCategory=function(){return X(this,2,0)};zv.prototype.setCategory=function(a){sl(this,2,a)};zv.prototype.toObject=function(){return Jkb(void 0,this)};var Jkb=function(a,b){if(null!=b){var c={category:X(b,2,0),deprecatedCategory:V(b,1)};a&&(c.$jspbMessageInstance=b);return c}};
var Bp=function(a){Z.call(this,a,-1,Kkb)};U(Bp,Z);Bp.prototype.setViewMode=function(a){sl(this,3,a)};var Kkb=[8];Bp.prototype.toObject=function(){return Lkb(void 0,this)};var Lkb=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 Mkb=function(a){Z.call(this,a)};U(Mkb,Z);Mkb.prototype.toObject=function(){return Nkb(void 0,this)};var Nkb=function(a,b){if(null!=b){var c={themeSourceId:X(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};
var Av=function(a){Z.call(this,a)};U(Av,Z);Av.prototype.setMode=function(a){return sl(this,1,a)};Av.prototype.toObject=function(){return Okb(void 0,this)};var Okb=function(a,b){if(null!=b){var c={mode:X(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};
var Bv=function(a){Z.call(this,a)};U(Bv,Z);Bv.prototype.getQuery=function(){return V(this,1)};Bv.prototype.setQuery=function(a){return vl(this,1,a)};Bv.prototype.setViewMode=function(a){sl(this,4,a)};Bv.prototype.toObject=function(){return Pkb(void 0,this)};var Pkb=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 Cv=function(a){Z.call(this,a)};U(Cv,Z);Cv.prototype.setViewMode=function(a){sl(this,1,a)};Cv.prototype.getQuery=function(){return V(this,2)};Cv.prototype.setQuery=function(a){return vl(this,2,a)};Cv.prototype.toObject=function(){return Qkb(void 0,this)};var Qkb=function(a,b){if(null!=b){var c={viewMode:X(b,1,0),query:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var xp=function(a){Z.call(this,a,-1,Rkb)};U(xp,Z);g=xp.prototype;g.getSourceId=function(){return X(this,1,0)};g.setSourceId=function(a){return sl(this,1,a)};g.getName=function(){return V(this,8)};g.setName=function(a){return vl(this,8,a)};g.getUploadSourceOptions=function(){return m(this,vv,10)};g.setUploadSourceOptions=function(a){return Bb(this,10,a)};var Rkb=[14];xp.prototype.toObject=function(){return Dv(void 0,this)};
var Dv=function(a,b){if(null!=b){var c={sourceId:X(b,1,0),name:V(b,8),driveSourceOptions:Ikb(a,m(b,yp,3)),calendarSourceOptions:Bkb(a,m(b,uv,4)),webSourceOptions:Pkb(a,m(b,Bv,5)),photosSourceOptions:Lkb(a,m(b,Bp,6)),themesSourceOptions:Nkb(a,m(b,Mkb,7)),youtubeSourceOptions:Qkb(a,m(b,Cv,9)),uploadSourceOptions:Ckb(a,b.getUploadSourceOptions()),contactsSourceOptions:Ekb(a,m(b,xv,12)),partySourceOptions:Jkb(a,m(b,zv,13)),urlSourceOptions:Okb(a,m(b,Av,15)),cameraSourceOptions:Dkb(a,m(b,wv,16)),childSourceList:Cb(rb(b,
xp,14),Dv,a)};a&&(c.$jspbMessageInstance=b);return c}};
var Ap=function(a){Z.call(this,a,-1,Skb)};U(Ap,Z);Ap.prototype.getSourceList=function(){return rb(this,xp,1)};Ap.prototype.setSourceList=function(a){return Ab(this,1,a)};Ap.prototype.addSource=function(a){zu(this,1,xp,a)};var Skb=[1];Ap.prototype.toObject=function(){var a=null!=this?{sourceList:Cb(this.getSourceList(),Dv)}:void 0;return a};
var Ev=function(a){Z.call(this,a,-1,Tkb)};U(Ev,Z);g=Ev.prototype;g.getCommand=function(){return X(this,1,0)};g.setCommand=function(a){return sl(this,1,a)};g.getSource=function(){return m(this,xp,2)};g.setSource=function(a){return Bb(this,2,a)};g.hasSource=function(){return lj(this,2)};g.setVisible=function(a){return mo(this,5,a)};g.getItemList=function(){return rb(this,bv,7)};g.setItemList=function(a){Ab(this,7,a)};g.addItem=function(a,b){return zu(this,7,bv,a,b)};var Tkb=[3,7];
Ev.prototype.toObject=function(){var a=null!=this?{command:X(this,1,0),source:Dv(void 0,this.getSource()),itemIdList:Cb(rb(this,Mu,3),pjb),correlationId:V(this,4),visible:W(this,5),cssVisibilityChanged:W(this,6),itemList:Cb(this.getItemList(),dv)}:void 0;return a};
var Fv=function(a){Z.call(this,a,-1,Ukb)};U(Fv,Z);g=Fv.prototype;g.getCommand=function(){return X(this,1,0)};g.setCommand=function(a){return sl(this,1,a)};g.getItemList=function(){return rb(this,bv,4)};g.setItemList=function(a){Ab(this,4,a)};g.addItem=function(a,b){return zu(this,4,bv,a,b)};var Ukb=[4];
Fv.prototype.toObject=function(){var a=null!=this?{command:X(this,1,0),pickerResult:Akb(m(this,tv,2)),correlationId:V(this,3),itemList:Cb(this.getItemList(),dv),previewData:ykb(m(this,sv,5)),latencyData:wkb(m(this,rv,6))}:void 0;return a};
var Gv=function(a){Z.call(this,a,-1,Vkb)};U(Gv,Z);g=Gv.prototype;g.getConfig=function(){return m(this,ov,1)};g.setConfig=function(a){return Bb(this,1,a)};g.getSourceList=function(){return rb(this,xp,2)};g.setSourceList=function(a){return Ab(this,2,a)};g.addSource=function(a){zu(this,2,xp,a)};var Vkb=[2];Gv.prototype.toObject=function(){var a=null!=this?{config:vkb(this.getConfig()),sourceList:Cb(this.getSourceList(),Dv)}:void 0;return a};Gv.messageId="ireq";
var Tk=function(a){Z.call(this,a)};U(Tk,Z);g=Tk.prototype;g.getYear=function(){return ej(this,1)};g.setYear=function(a){return Uk(this,1,a)};g.getMonth=function(){return ej(this,2)};g.setMonth=function(a){return Uk(this,2,a)};g.getDay=function(){return ej(this,3)};g.toObject=function(){return Hv(void 0,this)};var Hv=function(a,b){if(null!=b){var c={year:ej(b,1),month:ej(b,2),day:ej(b,3)};a&&(c.$jspbMessageInstance=b);return c}};
var Iv=function(a){Z.call(this,a)};U(Iv,Z);Iv.prototype.getGroupId=function(){return V(this,1)};Iv.prototype.setGroupId=function(a){vl(this,1,a)};var Jv=function(a){Z.call(this,a)};U(Jv,Z);Jv.prototype.getResourceKey=function(){return m(this,Iu,2)};Iv.prototype.toObject=function(){return Wkb(void 0,this)};var Wkb=function(a,b){if(null!=b){var c={groupId:V(b,1)};a&&(c.$jspbMessageInstance=b);return c}};Jv.prototype.toObject=function(){return Xkb(void 0,this)};
var Xkb=function(a,b){if(null!=b){var c={documentId:V(b,1),resourceKey:gjb(a,b.getResourceKey())};a&&(c.$jspbMessageInstance=b);return c}};
/*

 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(va){q&&q.mark&&q.mark(va)}function c(va,Ca){q&&q.measure&&q.measure(va,Ca)}function d(va){return v+va}function e(va){Da||a[Y]&&(Da=a[Y].resolve(0));if(Da){var Ca=Da[ka];Ca||(Ca=Da.then);Ca.call(Da,va)}else a[T](va,0)}function f(va){0===Tb&&0===ha.length&&e(h);va&&ha.push(va)}function h(){if(!ra){for(ra=!0;ha.length;){var va=ha;ha=[];for(var Ca=0;Ca<va.length;Ca++){var Ia=va[Ca];try{Ia.zone.runTask(Ia,null,null)}catch(Xa){La.onUnhandledError(Xa)}}}La.microtaskDrainDone();ra=
!1}}function k(){}var q=a.performance;b("Zone");var v=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(va,Ca){this._parent=va;this._name=Ca?Ca.name||"unnamed":"<root>";this._properties=Ca&&Ca.properties||{};this._zoneDelegate=new N(this,this._parent&&this._parent._zoneDelegate,Ca)};E.assertZonePatched=function(){if(a.Promise!==Ba.ZoneAwarePromise)throw Error("S");};
E.__load_patch=function(va,Ca,Ia){Ia=void 0===Ia?!1:Ia;if(Ba.hasOwnProperty(va)){if(!Ia&&y)throw Error("T`"+va);}else a["__Zone_disable_"+va]||(Ia="Zone:"+va,b(Ia),Ba[va]=Ca(a,E,La),c(Ia,Ia))};E.prototype.get=function(va){var Ca=this.getZoneWith(va);if(Ca)return Ca._properties[va]};E.prototype.getZoneWith=function(va){for(var Ca=this;Ca;){if(Ca._properties.hasOwnProperty(va))return Ca;Ca=Ca._parent}return null};E.prototype.fork=function(va){if(!va)throw Error("U");return this._zoneDelegate.fork(this,
va)};E.prototype.wrap=function(va,Ca){if("function"!==typeof va)throw Error("V`"+va);var Ia=this._zoneDelegate.intercept(this,va,Ca),Xa=this;return function(){return Xa.runGuarded(Ia,this,arguments,Ca)}};E.prototype.run=function(va,Ca,Ia,Xa){hb={parent:hb,zone:this};try{return this._zoneDelegate.invoke(this,va,Ca,Ia,Xa)}finally{hb=hb.parent}};E.prototype.runGuarded=function(va,Ca,Ia,Xa){hb={parent:hb,zone:this};try{try{return this._zoneDelegate.invoke(this,va,void 0===Ca?null:Ca,Ia,Xa)}catch($a){if(this._zoneDelegate.handleError(this,
$a))throw $a;}}finally{hb=hb.parent}};E.prototype.runTask=function(va,Ca,Ia){if(va.zone!=this)throw Error("W`"+(va.zone||Ja).name+"`"+this.name);if("notScheduled"!==va.state||"eventTask"!==va.type&&"macroTask"!==va.type){var Xa="running"!=va.state;Xa&&va._transitionTo("running","scheduled");va.runCount++;var $a=fb;fb=va;hb={parent:hb,zone:this};try{"macroTask"==va.type&&va.data&&!va.data.isPeriodic&&(va.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,va,Ca,Ia)}catch(jc){if(this._zoneDelegate.handleError(this,
jc))throw jc;}}finally{"notScheduled"!==va.state&&"unknown"!==va.state&&("eventTask"==va.type||va.data&&va.data.isPeriodic?Xa&&va._transitionTo("scheduled","running"):(va.runCount=0,this._updateTaskCount(va,-1),Xa&&va._transitionTo("notScheduled","running","notScheduled"))),hb=hb.parent,fb=$a}}};E.prototype.scheduleTask=function(va){if(va.zone&&va.zone!==this)for(var Ca=this;Ca;){if(Ca===va.zone)throw Error("X`"+this.name+"`"+va.zone.name);Ca=Ca.parent}va._transitionTo("scheduling","notScheduled");
Ca=[];va._zoneDelegates=Ca;va._zone=this;try{va=this._zoneDelegate.scheduleTask(this,va)}catch(Ia){throw va._transitionTo("unknown","scheduling","notScheduled"),this._zoneDelegate.handleError(this,Ia),Ia;}va._zoneDelegates===Ca&&this._updateTaskCount(va,1);"scheduling"==va.state&&va._transitionTo("scheduled","scheduling");return va};E.prototype.scheduleMicroTask=function(va,Ca,Ia,Xa){return this.scheduleTask(new L("microTask",va,Ca,Ia,Xa,void 0))};E.prototype.scheduleMacroTask=function(va,Ca,Ia,Xa,
$a){return this.scheduleTask(new L("macroTask",va,Ca,Ia,Xa,$a))};E.prototype.scheduleEventTask=function(va,Ca,Ia,Xa,$a){return this.scheduleTask(new L("eventTask",va,Ca,Ia,Xa,$a))};E.prototype.cancelTask=function(va){if(va.zone!=this)throw Error("Y`"+(va.zone||Ja).name+"`"+this.name);va._transitionTo("canceling","scheduled","running");try{this._zoneDelegate.cancelTask(this,va)}catch(Ca){throw va._transitionTo("unknown","canceling"),this._zoneDelegate.handleError(this,Ca),Ca;}this._updateTaskCount(va,
-1);va._transitionTo("notScheduled","canceling");va.runCount=0;return va};E.prototype._updateTaskCount=function(va,Ca){var Ia=va._zoneDelegates;-1==Ca&&(va._zoneDelegates=null);for(var Xa=0;Xa<Ia.length;Xa++)Ia[Xa]._updateTaskCount(va.type,Ca)};li.Object.defineProperties(E.prototype,{parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},name:{configurable:!0,enumerable:!0,get:function(){return this._name}}});li.Object.defineProperties(E,{root:{configurable:!0,enumerable:!0,get:function(){for(var va=
E.current;va.parent;)va=va.parent;return va}},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(va,Ca,Ia,Xa){return va.hasTask(Ia,Xa)},onScheduleTask:function(va,Ca,Ia,Xa){return va.scheduleTask(Ia,Xa)},onInvokeTask:function(va,Ca,Ia,Xa,$a,jc){return va.invokeTask(Ia,Xa,$a,jc)},onCancelTask:function(va,Ca,Ia,Xa){return va.cancelTask(Ia,Xa)}},N=function(va,Ca,
Ia){this._taskCounts={microTask:0,macroTask:0,eventTask:0};this.zone=va;this._parentDelegate=Ca;this._forkZS=Ia&&(Ia&&Ia.onFork?Ia:Ca._forkZS);this._forkDlgt=Ia&&(Ia.onFork?Ca:Ca._forkDlgt);this._forkCurrZone=Ia&&(Ia.onFork?this.zone:Ca._forkCurrZone);this._interceptZS=Ia&&(Ia.onIntercept?Ia:Ca._interceptZS);this._interceptDlgt=Ia&&(Ia.onIntercept?Ca:Ca._interceptDlgt);this._interceptCurrZone=Ia&&(Ia.onIntercept?this.zone:Ca._interceptCurrZone);this._invokeZS=Ia&&(Ia.onInvoke?Ia:Ca._invokeZS);this._invokeDlgt=
Ia&&(Ia.onInvoke?Ca:Ca._invokeDlgt);this._invokeCurrZone=Ia&&(Ia.onInvoke?this.zone:Ca._invokeCurrZone);this._handleErrorZS=Ia&&(Ia.onHandleError?Ia:Ca._handleErrorZS);this._handleErrorDlgt=Ia&&(Ia.onHandleError?Ca:Ca._handleErrorDlgt);this._handleErrorCurrZone=Ia&&(Ia.onHandleError?this.zone:Ca._handleErrorCurrZone);this._scheduleTaskZS=Ia&&(Ia.onScheduleTask?Ia:Ca._scheduleTaskZS);this._scheduleTaskDlgt=Ia&&(Ia.onScheduleTask?Ca:Ca._scheduleTaskDlgt);this._scheduleTaskCurrZone=Ia&&(Ia.onScheduleTask?
this.zone:Ca._scheduleTaskCurrZone);this._invokeTaskZS=Ia&&(Ia.onInvokeTask?Ia:Ca._invokeTaskZS);this._invokeTaskDlgt=Ia&&(Ia.onInvokeTask?Ca:Ca._invokeTaskDlgt);this._invokeTaskCurrZone=Ia&&(Ia.onInvokeTask?this.zone:Ca._invokeTaskCurrZone);this._cancelTaskZS=Ia&&(Ia.onCancelTask?Ia:Ca._cancelTaskZS);this._cancelTaskDlgt=Ia&&(Ia.onCancelTask?Ca:Ca._cancelTaskDlgt);this._cancelTaskCurrZone=Ia&&(Ia.onCancelTask?this.zone:Ca._cancelTaskCurrZone);this._hasTaskCurrZone=this._hasTaskDlgtOwner=this._hasTaskDlgt=
this._hasTaskZS=null;var Xa=Ia&&Ia.onHasTask,$a=Ca&&Ca._hasTaskZS;if(Xa||$a)this._hasTaskZS=Xa?Ia:I,this._hasTaskDlgt=Ca,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=va,Ia.onScheduleTask||(this._scheduleTaskZS=I,this._scheduleTaskDlgt=Ca,this._scheduleTaskCurrZone=this.zone),Ia.onInvokeTask||(this._invokeTaskZS=I,this._invokeTaskDlgt=Ca,this._invokeTaskCurrZone=this.zone),Ia.onCancelTask||(this._cancelTaskZS=I,this._cancelTaskDlgt=Ca,this._cancelTaskCurrZone=this.zone)};N.prototype.fork=function(va,
Ca){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,va,Ca):new E(va,Ca)};N.prototype.intercept=function(va,Ca,Ia){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,va,Ca,Ia):Ca};N.prototype.invoke=function(va,Ca,Ia,Xa,$a){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,va,Ca,Ia,Xa,$a):Ca.apply(Ia,Xa)};N.prototype.handleError=function(va,Ca){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,
this._handleErrorCurrZone,va,Ca):!0};N.prototype.scheduleTask=function(va,Ca){var Ia=Ca;if(this._scheduleTaskZS)this._hasTaskZS&&Ia._zoneDelegates.push(this._hasTaskDlgtOwner),(Ia=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,va,Ca))||(Ia=Ca);else if(Ca.scheduleFn)Ca.scheduleFn(Ca);else if("microTask"==Ca.type)f(Ca);else throw Error("Z");return Ia};N.prototype.invokeTask=function(va,Ca,Ia,Xa){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,
this._invokeTaskCurrZone,va,Ca,Ia,Xa):Ca.callback.apply(Ia,Xa)};N.prototype.cancelTask=function(va,Ca){if(this._cancelTaskZS)va=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,va,Ca);else{if(!Ca.cancelFn)throw Error("$");va=Ca.cancelFn(Ca)}return va};N.prototype.hasTask=function(va,Ca){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,va,Ca)}catch(Ia){this.handleError(va,Ia)}};N.prototype._updateTaskCount=function(va,Ca){var Ia=this._taskCounts,
Xa=Ia[va];Ca=Ia[va]=Xa+Ca;if(0>Ca)throw Error("aa");0!=Xa&&0!=Ca||this.hasTask(this.zone,{microTask:0<Ia.microTask,macroTask:0<Ia.macroTask,eventTask:0<Ia.eventTask,change:va})};var L=function(va,Ca,Ia,Xa,$a,jc){this._zone=null;this.runCount=0;this._zoneDelegates=null;this._state="notScheduled";this.type=va;this.source=Ca;this.data=Xa;this.scheduleFn=$a;this.cancelFn=jc;if(!Ia)throw Error("ba");this.callback=Ia;var Va=this;"eventTask"===va&&Xa&&Xa.useG?this.invoke=L.invokeTask:this.invoke=function(){return L.invokeTask.call(a,
Va,this,arguments)}};L.invokeTask=function(va,Ca,Ia){va||(va=this);Tb++;try{return va.runCount++,va.zone.runTask(va,Ca,Ia)}finally{1==Tb&&h(),Tb--}};L.prototype._transitionTo=function(va,Ca,Ia){if(this._state===Ca||this._state===Ia)this._state=va,"notScheduled"==va&&(this._zoneDelegates=null);else throw Error("ca`"+this.type+"`"+this.source+"`"+va+"`"+Ca+"`"+(Ia?" or '"+Ia+"'":"")+"`"+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}};li.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 T=d("setTimeout"),Y=d("Promise"),ka=d("then"),ha=[],ra=!1,Da,Ja={name:"NO ZONE"},Ba={},La={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,Tb=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 ra={zoneName:ha.zone.name},Da=ra;ha.parent;){ha=ha.parent;var Ja={zoneName:ha.zone.name};ra=ra.parent=Ja}return Da}function e(ha,ra,Da){Da=void 0===Da?!0:Da;ha=ha.split("\n");for(var Ja=0;ha[Ja]!==v&&ha[Ja]!==y&&ha[Ja]!==E&&ha[Ja]!==I&&ha[Ja]!==N&&Ja<ha.length;)Ja++;for(;Ja<ha.length&&ra;Ja++){var Ba=ha[Ja];if(Ba.trim())switch(q[Ba]){case 0:ha.splice(Ja,1);Ja--;break;case 1:ra.parent?ra=ra.parent:ra=null;ha.splice(Ja,1);Ja--;break;default:ha[Ja]+=
Da?" ["+ra.zone.name+"]":" ["+ra.zoneName+"]"}}return ha.join("\n")}function f(){var ha=this,ra=k.apply(this,arguments),Da=ra.originalStack=ra.stack;if(f.stackRewrite&&Da){var Ja=c.currentZoneFrame();if("lazy"===L)ra[c.symbol("zoneFrameNames")]=d(Ja);else if("default"===L)try{ra.stack=ra.zoneAwareStack=e(Da,Ja)}catch(Ba){}}return this instanceof k&&this.constructor!=k?(Object.keys(ra).concat("stack","message").forEach(function(Ba){var La=ra[Ba];if(void 0!==La)try{ha[Ba]=La}catch(hb){}}),this):ra}
var h=c.symbol("zoneJsInternalStackFrames"),k=a[c.symbol("Error")]=a.Error,q={},v,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 T=c.symbol("zoneAwareStack");"lazy"===L&&Object.defineProperty(f.prototype,"zoneAwareStack",{configurable:!0,enumerable:!0,get:function(){this[T]||(this[T]=e(this.originalStack,this[c.symbol("zoneFrameNames")],!1));return this[T]},set:function(ha){this.originalStack=
ha;this[T]=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(ra){return ra===ha}).length&&Object.defineProperty(f,ha,{get:function(){return k[ha]},set:function(ra){k[ha]=ra}})});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,ra){k.captureStackTrace(ha,ra)}});Object.defineProperty(f,"prepareStackTrace",{get:function(){return k.prepareStackTrace},set:function(ha){return ha&&"function"===typeof ha?k.prepareStackTrace=function(ra,Da){if(Da)for(var Ja=0;Ja<Da.length;Ja++)if("zoneCaptureStackTrace"===Da[Ja].getFunctionName()){Da.splice(Ja,1);break}return ha.call(this,ra,Da)}:k.prepareStackTrace=ha}});if("disable"!==
L){var ka=b.current.fork({name:"detect",onHandleError:function(ha,ra,Da,Ja){if(Ja.originalStack&&Error===f)for(ha=Ja.originalStack.split(/\n/),Ja=Da=ra=!1;ha.length;){var Ba=ha.shift();if(/:\d+:\d+/.test(Ba)||"ZoneAwareError"===Ba){var La=Ba.split("(")[0].split("@")[0],hb=1;-1!==La.indexOf("ZoneAwareError")&&(-1!==La.indexOf("new ZoneAwareError")?(v=Ba,y=Ba.replace("new ZoneAwareError","new Error.ZoneAwareError")):(E=Ba,I=Ba.replace("Error.",""),-1===Ba.indexOf("Error.ZoneAwareError")&&(N=Ba.replace("ZoneAwareError",
"Error.ZoneAwareError"))),q[y]=0);-1!==La.indexOf("runGuarded")?Da=!0:-1!==La.indexOf("runTask")?Ja=!0:-1!==La.indexOf("run")?ra=!0:hb=0;q[Ba]=hb;if(ra&&Da&&Ja){f.stackRewrite=!0;break}}}return!1}}).fork({name:"child",onScheduleTask:function(ha,ra,Da,Ja){return ha.scheduleTask(Da,Ja)},onInvokeTask:function(ha,ra,Da,Ja,Ba,La){return ha.invokeTask(Da,Ja,Ba,La)},onCancelTask:function(ha,ra,Da,Ja){return ha.cancelTask(Da,Ja)},onInvoke:function(ha,ra,Da,Ja,Ba,La,hb){return ha.invoke(Da,Ja,Ba,La,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(ra){ra._transitionTo=ha;ra.invoke()});ka.scheduleMicroTask(h,function(){throw Error();},void 0,function(ra){ra._transitionTo=ha;ra.invoke()})},void 0,function(ra){ra._transitionTo=ha;ra.invoke()},function(){})},void 0,function(ra){ra._transitionTo=ha;ra.invoke()},
function(){})})});Error.stackTraceLimit=b}});
var Gb=Object.getOwnPropertyDescriptor,uba=Object.defineProperty,xba=Object.getPrototypeOf,Ykb=Object.create,Zkb=Array.prototype.slice,$kb=Zone.__symbol__("addEventListener"),alb=Zone.__symbol__("removeEventListener"),Qb=Zone.__symbol__(""),Jb=Zone.__symbol__,Kv="undefined"!==typeof window,Pb=Kv?window:void 0,Lb=Kv&&Pb||"object"===typeof self&&self||global,blb="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,Sb=!("nw"in Lb)&&"undefined"!==typeof Lb.process&&"[object process]"===
{}.toString.call(Lb.process),clb=!Sb&&!blb&&!(!Kv||!Pb.HTMLElement),dlb="undefined"!==typeof Lb.process&&"[object process]"==={}.toString.call(Lb.process)&&!blb&&!(!Kv||!Pb.HTMLElement),Kb={},tba=function(a){if(a=a||Lb.event){var b=Kb[a.type];b||(b=Kb[a.type]=Jb("ON_PROPERTY"+a.type));var c=this||a.target||Lb;b=c[b];clb&&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=Jb("originalInstance"),zba=!1,Aba=!1;
var Ub=!1;if("undefined"!==typeof window)try{var Lv=Object.defineProperty({},"passive",{get:function(){Ub=!0}});window.addEventListener("test",Lv,Lv);window.removeEventListener("test",Lv,Lv)}catch(a){Ub=!1}var Fba={useG:!0},Rb={},Eba={},Hba=new RegExp("^"+Qb+"(\\w+)(true|false)$"),Dba=Jb("propagationStopped");
Zone.__load_patch("ZoneAwarePromise",function(a,b,c){function d(Va){if(Va&&Va.toString===Object.prototype.toString){var Ya=Va.constructor&&Va.constructor.name;return(Ya?Ya:"")+": "+JSON.stringify(Va)}return Va?Va.toString():Object.prototype.toString.call(Va)}function e(Va){c.onUnhandledError(Va);try{var Ya=b[Da];"function"===typeof Ya&&Ya.call(this,Va)}catch(Sa){}}function f(Va){return Va}function h(Va){return $a.reject(Va)}function k(Va,Ya){return function(Sa){try{q(Va,Ya,Sa)}catch(vb){q(Va,!1,vb)}}}
function q(Va,Ya,Sa){var vb=Tb();if(Va===Sa)throw new TypeError("ea");if(null===Va[Ja]){var eb=null;try{if("object"===typeof Sa||"function"===typeof Sa)eb=Sa&&Sa.then}catch(yb){return vb(function(){q(Va,!1,yb)})(),Va}if(!1!==Ya&&Sa instanceof $a&&Sa.hasOwnProperty(Ja)&&Sa.hasOwnProperty(Ba)&&null!==Sa[Ja])v(Sa),q(Va,Sa[Ja],Sa[Ba]);else if(!1!==Ya&&"function"===typeof eb)try{eb.call(Sa,vb(k(Va,Ya)),vb(k(Va,!1)))}catch(yb){vb(function(){q(Va,!1,yb)})()}else{Va[Ja]=Ya;vb=Va[Ba];Va[Ba]=Sa;Va[La]===La&&
!0===Ya&&(Va[Ja]=Va[fb],Va[Ba]=Va[hb]);!1===Ya&&Sa instanceof Error&&(eb=b.currentTask&&b.currentTask.data&&b.currentTask.data.__creationTrace__)&&L(Sa,va,{configurable:!0,enumerable:!1,writable:!0,value:eb});for(eb=0;eb<vb.length;)y(Va,vb[eb++],vb[eb++],vb[eb++],vb[eb++]);if(0==vb.length&&0==Ya){Va[Ja]=0;Ya=Sa;try{throw Error("fa`"+d(Sa)+"`"+(Sa&&Sa.stack?"\n"+Sa.stack:""));}catch(yb){Ya=yb}ka&&(Ya.throwOriginal=!0);Ya.rejection=Sa;Ya.promise=Va;Ya.zone=b.current;Ya.task=b.currentTask;Y.push(Ya);
c.scheduleMicroTask()}}}return Va}function v(Va){if(0===Va[Ja]){try{var Ya=b[Ca];Ya&&"function"===typeof Ya&&Ya.call(this,{rejection:Va[Ba],promise:Va})}catch(Sa){}Va[Ja]=!1;for(Ya=0;Ya<Y.length;Ya++)Va===Y[Ya].promise&&Y.splice(Ya,1)}}function y(Va,Ya,Sa,vb,eb){v(Va);var yb=Va[Ja],Ib=yb?"function"===typeof vb?vb:f:"function"===typeof eb?eb:h;Ya.scheduleMicroTask("Promise.then",function(){try{var ec=Va[Ba],Ac=!!Sa&&La===Sa[La];Ac&&(Sa[hb]=ec,Sa[fb]=yb);var se=Ya.run(Ib,void 0,Ac&&Ib!==h&&Ib!==f?[]:
[ec]);q(Sa,!0,se)}catch(id){q(Sa,!1,id)}},Sa)}function E(Va){var Ya=Va.prototype,Sa=N(Ya,"then");if(!Sa||!1!==Sa.writable&&Sa.configurable){var vb=Ya.then;Ya[ra]=vb;Va.prototype.then=function(eb,yb){var Ib=this;return(new $a(function(ec,Ac){vb.call(Ib,ec,Ac)})).then(eb,yb)};Va[jc]=!0}}function I(Va){return function(Ya,Sa){Ya=Va.apply(Ya,Sa);if(Ya instanceof $a)return Ya;Sa=Ya.constructor;Sa[jc]||E(Sa);return Ya}}var N=Object.getOwnPropertyDescriptor,L=Object.defineProperty,T=c.symbol,Y=[],ka=!0===
a[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],ha=T("Promise"),ra=T("then");c.onUnhandledError=function(Va){if(c.showUncaughtError()){var Ya=Va&&Va.rejection;Ya?console.error("Unhandled Promise rejection:",Ya instanceof Error?Ya.message:Ya,"; Zone:",Va.zone.name,"; Task:",Va.task&&Va.task.source,"; Value:",Ya,Ya instanceof Error?Ya.stack:void 0):console.error(Va)}};c.microtaskDrainDone=function(){for(var Va={};Y.length;){Va.$jscomp$loop$prop$uncaughtPromiseError$1611=Y.shift();try{Va.$jscomp$loop$prop$uncaughtPromiseError$1611.zone.runGuarded(function(Ya){return function(){if(Ya.$jscomp$loop$prop$uncaughtPromiseError$1611.throwOriginal)throw Ya.$jscomp$loop$prop$uncaughtPromiseError$1611.rejection;
throw Ya.$jscomp$loop$prop$uncaughtPromiseError$1611;}}(Va))}catch(Ya){e(Ya)}Va={$jscomp$loop$prop$uncaughtPromiseError$1611:Va.$jscomp$loop$prop$uncaughtPromiseError$1611}}};var Da=T("unhandledPromiseRejectionHandler"),Ja=T("state"),Ba=T("value"),La=T("finally"),hb=T("parentPromiseValue"),fb=T("parentPromiseState"),Tb=function(){var Va=!1;return function(Ya){return function(){Va||(Va=!0,Ya.apply(null,arguments))}}},va=T("currentTaskTrace"),Ca=T("rejectionHandledHandler"),Ia=function(){},Xa=a.AggregateError,
$a=function(Va){if(!(this instanceof $a))throw Error("ga");this[Ja]=null;this[Ba]=[];try{var Ya=Tb();Va&&Va(Ya(k(this,!0)),Ya(k(this,!1)))}catch(Sa){q(this,!1,Sa)}};$a.toString=function(){return"function ZoneAwarePromise() { [native code] }"};$a.resolve=function(Va){return q(new this(null),!0,Va)};$a.reject=function(Va){return q(new this(null),!1,Va)};$a.any=function(Va){if(!Va||"function"!==typeof Va[Symbol.iterator])return Promise.reject(new Xa([],"All promises were rejected"));var Ya=[],Sa=0;try{for(var vb=
r(Va),eb=vb.next();!eb.done;eb=vb.next()){var yb=eb.value;Sa++;Ya.push($a.resolve(yb))}}catch(Ac){return Promise.reject(new Xa([],"All promises were rejected"))}if(0===Sa)return Promise.reject(new Xa([],"All promises were rejected"));var Ib=!1,ec=[];return new $a(function(Ac,se){for(var id=0;id<Ya.length;id++)Ya[id].then(function(Dd){Ib||(Ib=!0,Ac(Dd))},function(Dd){ec.push(Dd);Sa--;0===Sa&&(Ib=!0,se(new Xa(ec,"All promises were rejected")))})})};$a.race=function(Va){function Ya(ec){vb(ec)}function Sa(ec){eb(ec)}
var vb,eb,yb=new this(function(ec,Ac){vb=ec;eb=Ac});Va=r(Va);for(var Ib=Va.next();!Ib.done;Ib=Va.next())(Ib=Ib.value)&&Ib.then||(Ib=this.resolve(Ib)),Ib.then(Ya,Sa);return yb};$a.all=function(Va){return $a.allWithCallback(Va)};$a.allSettled=function(Va){return(this&&this.prototype instanceof $a?this:$a).allWithCallback(Va,{thenCallback:function(Ya){return{status:"fulfilled",value:Ya}},errorCallback:function(Ya){return{status:"rejected",reason:Ya}}})};$a.allWithCallback=function(Va,Ya){var Sa,vb,eb=
new this(function(id,Dd){Sa=id;vb=Dd}),yb=2,Ib=0,ec=[],Ac={};Va=r(Va);for(var se=Va.next();!se.done;Ac={$jscomp$loop$prop$curValueIndex$1614:Ac.$jscomp$loop$prop$curValueIndex$1614},se=Va.next()){(se=se.value)&&se.then||(se=this.resolve(se));Ac.$jscomp$loop$prop$curValueIndex$1614=Ib;try{se.then(function(id){return function(Dd){ec[id.$jscomp$loop$prop$curValueIndex$1614]=Ya?Ya.thenCallback(Dd):Dd;yb--;0===yb&&Sa(ec)}}(Ac),function(id){return function(Dd){Ya?(ec[id.$jscomp$loop$prop$curValueIndex$1614]=
Ya.errorCallback(Dd),yb--,0===yb&&Sa(ec)):vb(Dd)}}(Ac))}catch(id){vb(id)}yb++;Ib++}yb-=2;0===yb&&Sa(ec);return eb};li.Object.defineProperty($a.prototype,Symbol.toStringTag,{configurable:!0,enumerable:!0,get:function(){return"Promise"}});li.Object.defineProperty($a.prototype,Symbol.species,{configurable:!0,enumerable:!0,get:function(){return $a}});$a.prototype.then=function(Va,Ya){var Sa,vb=null==(Sa=this.constructor)?void 0:Sa[Symbol.species];vb&&"function"===typeof vb||(vb=this.constructor||$a);
Sa=new vb(Ia);vb=b.current;null==this[Ja]?this[Ba].push(vb,Sa,Va,Ya):y(this,vb,Sa,Va,Ya);return Sa};$a.prototype.catch=function(Va){return this.then(null,Va)};$a.prototype.finally=function(Va){var Ya,Sa=null==(Ya=this.constructor)?void 0:Ya[Symbol.species];Sa&&"function"===typeof Sa||(Sa=$a);Ya=new Sa(Ia);Ya[La]=La;Sa=b.current;null==this[Ja]?this[Ba].push(Sa,Ya,Va,Va):y(this,Sa,Ya,Va,Va);return Ya};$a.resolve=$a.resolve;$a.reject=$a.reject;$a.race=$a.race;$a.all=$a.all;ha=a[ha]=a.Promise;a.Promise=
$a;var jc=T("thenPatched");c.patchThen=E;ha&&(E(ha),Ob(a,"fetch",function(Va){return I(Va)}));Promise[b.__symbol__("uncaughtPromiseErrors")]=Y;return $a});
var Vb=Jb("zoneTask");
Zone.__load_patch("toString",function(a){var b=Function.prototype.toString,c=Jb("OriginalDelegate"),d=Jb("Promise"),e=Jb("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=Gb;c.ObjectCreate=Ykb;c.ArraySlice=Zkb;c.patchClass=Nb;c.wrapWithCurrentZone=pba;c.filterProperties=Lba;c.attachOriginToPatched=
Hb;c._redefineProperty=Object.defineProperty;c.patchCallbacks=Kba;c.getGlobalObjects=function(){return{globalSources:Eba,zoneSymbolEventNames:Rb,eventNames:d,isBrowser:clb,isMix:dlb,isNode:Sb,TRUE_STR:"true",FALSE_STR:"false",ZONE_SYMBOL_PREFIX:Qb,ADD_EVENT_LISTENER_STR:"addEventListener",REMOVE_EVENT_LISTENER_STR:"removeEventListener"}}});
var Xb,Yb,Nba,Oba,Zb;
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){Wb(a,"set","clear","Timeout");Wb(a,"set","clear","Interval");Wb(a,"set","clear","Immediate")});
Zone.__load_patch("requestAnimationFrame",function(a){Wb(a,"request","cancel","AnimationFrame");Wb(a,"mozRequest","mozCancel","AnimationFrame");Wb(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],v=d+(q+h),y=d+(q+f);e[q]={};e[q][h]=v;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||dlb)&&!Zone[c.symbol("patchEvents")]){b=a.__Zone_ignore_on_properties;c=[];if(clb){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 v(Da){var Ja=Da.data,Ba=Ja.target;Ba[f]=!1;Ba[k]=!1;var La=Ba[e];N||(N=Ba[$kb],L=Ba[alb]);La&&L.call(Ba,"readystatechange",La);La=Ba[e]=function(){if(Ba.readyState===Ba.DONE)if(!Ja.aborted&&Ba[f]&&"scheduled"===Da.state){var hb=Ba[b.__symbol__("loadfalse")];if(0!==Ba.status&&hb&&0<hb.length){var fb=Da.invoke;Da.invoke=function(){for(var Tb=Ba[b.__symbol__("loadfalse")],va=0;va<Tb.length;va++)Tb[va]===Da&&Tb.splice(va,1);Ja.aborted||"scheduled"!==
Da.state||fb.call(Da)};hb.push(Da)}else Da.invoke()}else Ja.aborted||!1!==Ba[f]||(Ba[k]=!0)};N.call(Ba,"readystatechange",La);Ba[c]||(Ba[c]=Da);ha.apply(Ba,Ja.args);Ba[f]=!0;return Da}function y(){}function E(Da){Da=Da.data;Da.aborted=!0;return ra.apply(Da.target,Da.args)}var I=q.XMLHttpRequest;if(I){I=I.prototype;var N=I[$kb],L=I[alb];!N&&(q=q.XMLHttpRequestEventTarget)&&(q=q.prototype,N=q[$kb],L=q[alb]);var T=Ob(I,"open",function(){return function(Da,Ja){Da[d]=0==Ja[2];Da[h]=Ja[1];return T.apply(Da,
Ja)}}),Y=Jb("fetchTaskAborting"),ka=Jb("fetchTaskScheduling"),ha=Ob(I,"send",function(){return function(Da,Ja){if(!0===b.current[ka]||Da[d])return ha.apply(Da,Ja);Ja={target:Da,url:Da[h],isPeriodic:!1,args:Ja,aborted:!1};var Ba=Zone.current.scheduleMacroTask("XMLHttpRequest.send",y,Ja,v,E);Da&&!0===Da[k]&&!Ja.aborted&&"scheduled"===Ba.state&&Ba.invoke()}}),ra=Ob(I,"abort",function(){return function(Da,Ja){var Ba=Da[c];if(Ba&&"string"==typeof Ba.type)null==Ba.cancelFn||Ba.data&&Ba.data.aborted||Ba.zone.cancelTask(Ba);
else if(!0===b.current[Y])return ra.apply(Da,Ja)}})}})(a);var c=Jb("xhrTask"),d=Jb("xhrSync"),e=Jb("xhrListener"),f=Jb("xhrScheduled"),h=Jb("xhrURL"),k=Jb("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[Jb("unhandledPromiseRejectionHandler")]=c("unhandledrejection"),b[Jb("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=$b({__forward_ref__:$b});
var bca=$b({"\u0275prov":$b}),fca=$b({"\u0275inj":$b}),cca=$b({ngInjectableDef:$b}),gca=$b({ngInjectorDef:$b});
var ld=function(a,b){this._desc=a;this.\u0275prov=void 0;"number"==typeof b?this.__NG_ELEMENT_ID__=b:void 0!==b&&(this.\u0275prov=dc({token:this,providedIn:b.providedIn||"root",factory:b.factory}))};ld.prototype.toString=function(){return"InjectionToken "+this._desc};li.Object.defineProperties(ld.prototype,{multi:{configurable:!0,enumerable:!0,get:function(){return this}}});
var gda=new ld("ENVIRONMENT_INITIALIZER");
var ud="undefined"!==typeof globalThis&&globalThis||"undefined"!==typeof global&&global||"undefined"!==typeof window&&window||"undefined"!==typeof self&&"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self;
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 Mv={},elb=/\n/gm,mc=void 0;
var flb=oc(rc(function(a){return{token:a}}),-1),Nv=oc(rc(),8);oc(rc(),2);var Ov=oc(rc(),4);oc(rc(),1);
var tc=$b({"\u0275cmp":$b}),vca=$b({"\u0275dir":$b}),wca=$b({"\u0275pipe":$b}),glb=$b({"\u0275mod":$b}),zc=$b({"\u0275fac":$b}),Wc=$b({__NG_ELEMENT_ID__:$b});
var vc={},sc=[];
var pca=0;
var Aca=function(a,b,c){this.previousValue=a;this.currentValue=b;this.firstChange=c};Aca.prototype.isFirstChange=function(){return this.firstChange};
Cc.ngInherit=!0;
var Bca=void 0;
var hlb={createRenderer:function(){return Cca()}};
var Hc=Ica(null);
var cd=function(a,b,c){this.factory=a;this.resolving=!1;this.canSeeViewProviders=b;this.injectImpl=c};
var Nca=!0,Oca=0,$c={},dd=function(a,b){this._tNode=a;this._lView=b};dd.prototype.get=function(a,b,c){return Wca(this._tNode,this._lView,a,c,b)};
$b({provide:String,useValue:$b});
var fda=new ld("INJECTOR_DEF_TYPES");
var hda=$b({provide:String,useValue:$b});
var ilb=new ld("INJECTOR",-1);
var kda=function(){};kda.prototype.get=function(a,b){b=void 0===b?Mv:b;if(b===Mv)throw a=Error("la`"+ac(a)),a.name="NullInjectorError",a;return b};
var Sha=new ld("Set Injector scope.");
var nd={},jlb={},jda=void 0,Pv=function(){},od=function(a,b,c,d){var e=this;this.parent=b;this.source=c;this.scopes=d;this.records=new Map;this._ngOnDestroyHooks=new Set;this._onDestroyHooks=[];this._destroyed=!1;qda(a,function(f){return klb(e,f)});this.records.set(ilb,md(void 0,this));d.has("environment")&&this.records.set(Pv,md(void 0,this));a=this.records.get(Sha);null!=a&&"string"===typeof a.value&&this.scopes.add(a.value);this.injectorDefTypes=new Set(this.get(fda.multi,sc,2))};U(od,Pv);
od.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}};od.prototype.onDestroy=function(a){this._onDestroyHooks.push(a)};
od.prototype.get=function(a,b,c){b=void 0===b?Mv:b;c=void 0===c?0:c;if(this._destroyed)throw new ic(205,!1);var d=nc(this),e=lc();try{if(!(c&4)){var f=this.records.get(a);if(void 0===f){var h=("function"===typeof a||"object"===typeof a&&a instanceof ld)&&dca(a),k;if(k=h)if(h.providedIn){var q=cc(h.providedIn);k="string"===typeof q?"any"===q||this.scopes.has(q):this.injectorDefTypes.has(q)}else k=!1;k?f=md(nda(a),nd):f=null;this.records.set(a,f)}if(null!=f){b=f;b.value===nd&&(b.value=jlb,b.value=b.factory());
var v;if(v="object"===typeof b.value&&b.value){var y=b.value;v=null!==y&&"object"===typeof y&&"function"===typeof y.ngOnDestroy}v&&this._ngOnDestroyHooks.add(b.value);return b.value}}var E=c&2?lda():this.parent;b=c&8&&b===Mv?null:b;return E.get(a,b)}catch(ra){if("NullInjectorError"===ra.name){(ra.ngTempTokenPath=ra.ngTempTokenPath||[]).unshift(ac(a));if(d)throw ra;v=ra;var I=this.source,N=v.ngTempTokenPath;a.__source&&N.unshift(a.__source);var L="\n"+v.message;a=I;a=void 0===a?null:a;L=L&&"\n"===
L.charAt(0)&&"\u0275"==L.charAt(1)?L.slice(2):L;var T=ac(N);if(Array.isArray(N))T=N.map(ac).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):ac(ka)))}T="{"+I.join(", ")+"}"}var ha="R3InjectorError"+(a?"("+a+")":"")+"["+T+"]: "+L.replace(elb,"\n  ");v.message=ha;v.ngTokenPath=N;v.ngTempTokenPath=null;throw v;}throw ra;}finally{lc(e),nc(d)}};
var sda=function(a){var b=nc(a),c=lc();try{for(var d=a.get(gda.multi,sc,2),e=r(d),f=e.next();!f.done;f=e.next()){var h=f.value;h()}}finally{nc(b),lc(c)}};od.prototype.toString=function(){for(var a=[],b=r(this.records.keys()),c=b.next();!c.done;c=b.next())a.push(ac(c.value));return"R3Injector["+a.join(", ")+"]"};
var klb=function(a,b){b=cc(b);var c=kd(b)?b:cc(b&&b.provide),d=pda(b);if(kd(b)||!0!==b.multi)a.records.get(c);else{var e=a.records.get(c);e||(e=md(void 0,nd,!0),e.factory=function(){return nca(e.multi)},a.records.set(c,e));c=b;e.multi.push(b)}a.records.set(c,d)};li.Object.defineProperties(od.prototype,{destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}}});
var Qv=function(){},hg=function(a){if(Array.isArray(a))return tda({name:""},void 0,a,"");var b,c=null!=(b=a.name)?b:"";return tda({name:c},a.parent,a.providers,c)},llb=new kda;Qv.\u0275prov=dc({token:Qv,providedIn:"any",factory:function(){return t(ilb)}});Qv.__NG_ELEMENT_ID__=-1;
var Rv=function(a,b){this.token=a;this.id=b;if(!a)throw Error("ma");this.displayName=ac(this.token)};li.Object.defineProperties(Rv,{numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return mlb.numberOfKeys}}});var nlb=function(){this._allKeys=new Map};nlb.prototype.get=function(a){if(a instanceof Rv)return a;if(this._allKeys.has(a))return this._allKeys.get(a);var b=new Rv(a,Rv.numberOfKeys);this._allKeys.set(a,b);return b};
li.Object.defineProperties(nlb.prototype,{numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});var mlb=new nlb;
mlb.get(cc(Qv));
var Sv=function(){};
var Tv=function(){},olb=function(){};
var plb=function(){},qlb=function(){};
var pd=function(a){this.nativeElement=a};pd.__NG_ELEMENT_ID__=function(){return qd(Ic(),x())};
new ld("Renderer2Interceptor");var Uv=function(){},Vv=function(){};Vv.__NG_ELEMENT_ID__=function(){var a=x(),b=Fc(Ic().index,a);return(xc(b)?b:a)[11]};
var wda=new Map,mea=0;
var Vd=function(){this._console=console};Vd.prototype.handleError=function(a){var b=this._findOriginalError(a),c=a&&a.ngErrorLogger||uda;c(this._console,"ERROR",a);b&&c(this._console,"ORIGINAL ERROR",b)};Vd.prototype._findOriginalError=function(a){for(a=a&&a.ngOriginalError;a&&a.ngOriginalError;)a=a.ngOriginalError;return a||null};
var rlb=("undefined"!==typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ud);
var td;
var Sd={};
var Cd=function(a){this.changingThisBreaksApplicationSecurity=a};Cd.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://g.co/ng/security#xss)"};var slb=function(){Cd.apply(this,arguments)};U(slb,Cd);slb.prototype.getTypeName=function(){return"HTML"};var tlb=function(){Cd.apply(this,arguments)};U(tlb,Cd);tlb.prototype.getTypeName=function(){return"URL"};var ulb=function(){Cd.apply(this,arguments)};U(ulb,Cd);
ulb.prototype.getTypeName=function(){return"ResourceURL"};
var Yda=function(a){this.inertDocumentHelper=a};Yda.prototype.getInertBodyElement=function(a){a="<body><remove></remove>"+a;try{var b=(new window.DOMParser).parseFromString(vd(a),"text/html").body;if(null===b)return this.inertDocumentHelper.getInertBodyElement(a);b.removeChild(b.firstChild);return b}catch(c){return null}};
var Xda=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)}};
Xda.prototype.getInertBodyElement=function(a){var b=this.inertDocument.createElement("template");if("content"in b)return b.innerHTML=vd(a),b;b=this.inertDocument.createElement("body");b.innerHTML=vd(a);this.defaultDoc.documentMode&&vlb(this,b);return b};var vlb=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&&vlb(a,b),b=b.nextSibling};
var Rda=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Sda=/^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 wlb=Hd("area,br,col,hr,img,wbr"),xlb=Hd("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ylb=Hd("rp,rt"),zlb=Id(ylb,xlb),Alb=Id(xlb,Hd("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")),Blb=Id(ylb,Hd("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")),
$da=Id(wlb,Alb,Blb,zlb),bea=Hd("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),cea=Hd("srcset"),Clb=Hd("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"),
Dlb=Hd("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"),
aea=Id(bea,cea,Clb,Dlb),dea=Hd("script,style,template"),Zda=function(){this.buf=[]};Zda.prototype.endElement=function(a){a=a.nodeName.toLowerCase();$da.hasOwnProperty(a)&&!wlb.hasOwnProperty(a)&&(this.buf.push("</"),this.buf.push(a),this.buf.push(">"))};var eea=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},Uda=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Vda=/([^#-~ |!])/g,Jd;
var Elb={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 Kd;
var Flb=Promise.resolve(null);
var lg=function(a,b){this._lView=a;this._cdRefInjectingView=b;this._appRef=null;this._attachedToViewContainer=!1};g=lg.prototype;g.destroy=function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var a=this._lView[3];if(yc(a)){var b=a[8],c=b?b.indexOf(this):-1;-1<c&&(Gda(a,c),gd(b,c))}this._attachedToViewContainer=!1}Ida(this._lView[1],this._lView)};g.onDestroy=function(a){vea(this._lView[1],this._lView,null,a)};
g.markForCheck=function(){Dea(this._cdRefInjectingView||this._lView)};g.detach=function(){this._lView[2]&=-65};g.detectChanges=function(){var a=this._lView[1],b=this._lView,c=this.context,d=b[10];d.begin&&d.begin();try{Qd(a,b,a.template,c)}catch(e){throw Fea(b,e),e;}finally{d.end&&d.end()}};
li.Object.defineProperties(lg.prototype,{rootNodes:{configurable:!0,enumerable:!0,get:function(){var a=this._lView,b=a[1];return Xd(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 128===(this._lView[2]&128)}}});var Wv=function(a){lg.call(this,a);this._view=a};U(Wv,lg);
Wv.prototype.detectChanges=function(){for(var a=this._view[8],b=0;b<a.components.length;b++){var c=a.components[b],d=xda(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&&Pd(e,d,c),Qd(e,d,f,c)}finally{k||!h.end||h.end()}}}};li.Object.defineProperties(Wv.prototype,{context:{configurable:!0,enumerable:!0,get:function(){return null}}});
var Xv=function(){};Xv.\u0275prov=dc({token:Xv,providedIn:"root",factory:function(){return null}});
var Glb=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 Hlb={};
var Yv=function(a){this.ngModule=a};U(Yv,Sv);Yv.prototype.resolveComponentFactory=function(a){return new Zv(a[tc]||null,this.ngModule)};var Ilb=function(a,b){this.injector=a;this.parentInjector=b};Ilb.prototype.get=function(a,b,c){var d=this.injector.get(a,Hlb,c);return d!==Hlb||b===Hlb?d:this.parentInjector.get(a,b,c)};
var Zv=function(a,b){this.componentDef=a;this.ngModule=b;this.componentType=a.type;this.selector=a.selectors.map(Qda).join(",");this.ngContentSelectors=a.ngContentSelectors?a.ngContentSelectors:[];this.isBoundToModule=!!b};U(Zv,qlb);
Zv.prototype.create=function(a,b,c,d){d=d||this.ngModule;var e;(d=d instanceof Pv?d:null==(e=d)?void 0:e.injector)&&null!==this.componentDef.getStandaloneInjector&&(d=this.componentDef.getStandaloneInjector(d)||d);var f=d?new Ilb(a,d):a;e=f.get(Uv,hlb);var h=f.get(Xv,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=Eda(k,d,"svg"===q?"svg":"math"===q?"math":null)}q=d;var v=this.componentDef.onPush?288:272;d={components:[],scheduler:rlb,clean:Flb,playerHandler:null,flags:0};k=uea(0,null,null,1,0,null,null,null,null,null);f=Nd(null,k,d,v,null,null,e,a,h,f,null);Hca(f);try{var y=this.componentDef,E=f[1];f[22]=q;var I=Od(E,22,2,"#host",null),N=I.mergedAttrs=y.hostAttrs;if(null!==N&&(Wd(I,N,!0),null!==q&&(Sc(a,q,N),null!==I.classes&&Mda(a,q,I.classes),null!==
I.styles))){var L=I.styles;a.listen?a.setAttribute(q,"style",L):q.style.cssText=L}var T=e.createRenderer(q,y),Y=Nd(f,rea(y),null,y.onPush?32:16,f[22],I,e,T,null,null,null);if(E.firstCreatePass){var ka=Yc(I,f);Xc(ka,E,y.type);Aea(E,I);var ha=f.length;I.flags|=1;I.directiveStart=ha;I.directiveEnd=ha+1;I.providerIndexes=ha}Rd(f,Y);var ra=f[22]=Y;if(q)if(c)Sc(a,q,["ng-version",Glb.full]);else{var Da=this.componentDef.selectors[0];c=[];y=[];E=1;for(I=2;E<Da.length;){var Ja=Da[E];if("string"===typeof Ja)2===
I?""!==Ja&&c.push(Ja,Da[++E]):8===I&&y.push(Ja);else{if(0!==(I&1))break;I=Ja}E++}c&&Sc(a,q,c);y&&0<y.length&&Mda(a,q,y.join(" "))}var Ba=k.data[22];if(void 0!==b){var La=Ba.projection=[];for(Da=0;Da<this.ngContentSelectors.length;Da++){var hb=b[Da];La.push(null!=hb?Array.from(hb):null)}}var fb=Iea(ra,this.componentDef,f,d);Pd(k,f,null)}finally{Kca()}return new $v(this.componentType,fb,qd(Ba,f),f,Ba)};
li.Object.defineProperties(Zv.prototype,{inputs:{configurable:!0,enumerable:!0,get:function(){return Jea(this.componentDef.inputs)}},outputs:{configurable:!0,enumerable:!0,get:function(){return Jea(this.componentDef.outputs)}}});var $v=function(a,b,c,d,e){this.location=c;this._rootLView=d;this._tNode=e;this.instance=b;this.hostView=this.changeDetectorRef=new Wv(d);this.componentType=a};U($v,plb);$v.prototype.destroy=function(){this.hostView.destroy()};$v.prototype.onDestroy=function(a){this.hostView.onDestroy(a)};
li.Object.defineProperties($v.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return new dd(this._tNode,this._rootLView)}}});
var aw=function(a,b){this._parent=b;this._bootstrapComponents=[];this.injector=this;this.destroyCbs=[];this.componentFactoryResolver=new Yv(this);var c=(a[glb]||null).bootstrap;this._bootstrapComponents=c instanceof Function?c():c;this._r3Injector=rda(a,b,[{provide:Tv,useValue:this},{provide:Sv,useValue:this.componentFactoryResolver}],ac(a),new Set(["environment"]));sda(this._r3Injector);this.instance=this.get(a)};U(aw,Tv);
aw.prototype.get=function(a,b,c){b=void 0===b?Mv:b;return a===Qv||a===Tv||a===ilb?this:this._r3Injector.get(a,b,void 0===c?0:c)};aw.prototype.destroy=function(){var a=this._r3Injector;!a.destroyed&&a.destroy();this.destroyCbs.forEach(function(b){return b()});this.destroyCbs=null};aw.prototype.onDestroy=function(a){this.destroyCbs.push(a)};var bw=function(a){this.moduleType=a};U(bw,olb);bw.prototype.create=function(a){return new aw(this.moduleType,a)};
var Yd=function(a,b,c){this.componentFactoryResolver=new Yv(this);this.instance=null;this.injector=a=new od([].concat(u(a),[{provide:Tv,useValue:this},{provide:Sv,useValue:this.componentFactoryResolver}]),b||lda(),c,new Set(["environment"]));sda(a)};U(Yd,Tv);Yd.prototype.destroy=function(){this.injector.destroy()};Yd.prototype.onDestroy=function(a){this.injector.onDestroy(a)};
var Jlb=new ld("Application Initializer"),cw=function(a){var b=this;this.appInits=a;this.reject=this.resolve=Mea;this.done=this.initialized=!1;this.donePromise=new Promise(function(c,d){b.resolve=c;b.reject=d})},Klb=function(a){if(!a.initialized){var b=[];if(a.appInits)for(var c={},d=0;d<a.appInits.length;c={$jscomp$loop$prop$initResult$1621:c.$jscomp$loop$prop$initResult$1621},d++)if(c.$jscomp$loop$prop$initResult$1621=a.appInits[d](),Zd(c.$jscomp$loop$prop$initResult$1621))b.push(c.$jscomp$loop$prop$initResult$1621);
else if(Lea(c.$jscomp$loop$prop$initResult$1621)){var e=new Promise(function(f){return function(h,k){f.$jscomp$loop$prop$initResult$1621.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}};cw.\u0275fac=function(a){return new (a||cw)(t(Jlb,8))};cw.\u0275prov=dc({token:cw,factory:cw.\u0275fac,providedIn:"root"});
var Llb=new ld("AppId",{providedIn:"root",factory:Oea}),Mha=new ld("Platform Initializer"),dw=new ld("Platform ID",{providedIn:"platform",factory:function(){return"unknown"}}),Mlb=new ld("appBootstrapListener");new ld("Application Packages Root URL");var ew=new ld("AnimationModuleType");
var fw=function(){};fw.prototype.log=function(a){console.log(a)};fw.prototype.warn=function(a){console.warn(a)};fw.\u0275fac=function(a){return new (a||fw)};fw.\u0275prov=dc({token:fw,factory:fw.\u0275fac,providedIn:"platform"});
var Qea=["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 Rea={};
var qi=new ld("LocaleId",{providedIn:"root",factory:function(){return t(qi,12)||("undefined"!==typeof Zt?"en-US":"undefined"!==typeof $localize&&$localize.locale||"en-US")}});new ld("DefaultCurrencyCode",{providedIn:"root",factory:function(){return"USD"}});new ld("Translations");new ld("TranslationsFormat");
var gw=function(){};gw.prototype.getModuleId=function(){};gw.\u0275fac=function(a){return new (a||gw)};gw.\u0275prov=dc({token:gw,factory:gw.\u0275fac,providedIn:"root"});new ld("compilerOptions");
var be=null;
var dfa=0,efa=0,ffa=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 Nlb=!1,Ue={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):Nlb&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Nlb=a},get useDeprecatedSynchronousErrorHandling(){return Nlb}};
var hf="function"===typeof Symbol&&Symbol.observable||"@@observable";
var hw={closed:!0,next:function(){},error:function(a){if(Ue.useDeprecatedSynchronousErrorHandling)throw a;Ne(a)},complete:function(){}};
var Re=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 $e=Array.isArray||function(a){return a&&"number"===typeof a.length};
var Qe=function(a){this.closed=!1;this._subscriptions=this._parentOrParents=null;a&&(this._ctorUnsubscribe=!0,this._unsubscribe=a)};
Qe.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 Qe)a.remove(this);else if(null!==a)for(var e=0;e<a.length;++e)a[e].remove(this);if(Oe(c)){b&&(this._unsubscribe=void 0);try{c.call(this)}catch(q){var f=q instanceof Re?Ffa(q.errors):[q]}}if($e(d)){e=-1;for(var h=d.length;++e<h;){var k=d[e];if(Pe(k))try{k.unsubscribe()}catch(q){f=
f||[],q instanceof Re?f=f.concat(Ffa(q.errors)):f.push(q)}}}if(f)throw new Re(f);}};
Qe.prototype.add=function(a){var b=a;if(!a)return Qe.EMPTY;switch(typeof a){case "function":b=new Qe(a);case "object":if(b===this||b.closed||"function"!==typeof b.unsubscribe)return b;if(this.closed)return b.unsubscribe(),b;b instanceof Qe||(a=b,b=new Qe,b._subscriptions=[a]);break;default:throw Error("sa`"+a);}var c=b._parentOrParents;if(null===c)b._parentOrParents=this;else if(c instanceof Qe){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};Qe.prototype.remove=function(a){var b=this._subscriptions;b&&(a=b.indexOf(a),-1!==a&&b.splice(a,1))};var Olb=new Qe;Olb.closed=!0;Qe.EMPTY=Olb;
var Se=function(a,b,c){Qe.call(this);this.syncErrorValue=null;this.isStopped=this.syncErrorThrowable=this.syncErrorThrown=!1;switch(arguments.length){case 0:this.destination=hw;break;case 1:if(!a){this.destination=hw;break}if("object"===typeof a){a instanceof Se?(this.syncErrorThrowable=a.syncErrorThrowable,this.destination=a,a.add(this)):(this.syncErrorThrowable=!0,this.destination=new iw(this,a));break}default:this.syncErrorThrowable=!0,this.destination=new iw(this,a,b,c)}};U(Se,Qe);Se.EMPTY=Qe.EMPTY;
Se.create=function(a,b,c){a=new Se(a,b,c);a.syncErrorThrowable=!1;return a};g=Se.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,Qe.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 iw=function(a,b,c,d){Se.call(this);this._parentSubscriber=a;var e=this;if(Oe(b))var f=b;else b&&(f=b.next,c=b.error,d=b.complete,b!==hw&&(e=Object.create(b),Efa(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(iw,Se);iw.EMPTY=Se.EMPTY;iw.create=Se.create;g=iw.prototype;
g.next=function(a){if(!this.isStopped&&this._next){var b=this._parentSubscriber;Ue.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=Ue.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):Ne(a),this.unsubscribe();else{this.unsubscribe();if(c)throw a;Ne(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)};Ue.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(Ue.useDeprecatedSynchronousErrorHandling)throw c;Ne(c)}};
g.__tryOrSetError=function(a,b,c){if(!Ue.useDeprecatedSynchronousErrorHandling)throw Error("ta");try{b.call(this._context,c)}catch(d){return Ue.useDeprecatedSynchronousErrorHandling?(a.syncErrorValue=d,a.syncErrorThrown=!0):Ne(d),!0}return!1};g._unsubscribe=function(){var a=this._parentSubscriber;this._parentSubscriber=this._context=null;a.unsubscribe()};
var jw=function(a){Se.call(this);this.destination=a};U(jw,Se);jw.EMPTY=Se.EMPTY;jw.create=Se.create;
var Ve=function(a){a&&(this._subscribe=a)};g=Ve.prototype;g.lift=function(a){var b=new Ve;b.source=this;b.operator=a;return b};
g.subscribe=function(a,b,c){var d=this.operator;a:{if(a){if(a instanceof Se||Ifa(a)&&Efa(a))break a;if(Ifa(a)){a=new jw(a);break a}}a=a||b||c?new Se(a,b,c):new Se(hw)}d?a.add(d.call(a,this.source)):a.add(this.source||Ue.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a));if(Ue.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a};
g._trySubscribe=function(a){try{return this._subscribe(a)}catch(b){Ue.useDeprecatedSynchronousErrorHandling&&(a.syncErrorThrown=!0,a.syncErrorValue=b),Gfa(a)?a.error(b):console.warn(b)}};g.forEach=function(a,b){var c=this;b=Jfa(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)};Ve.prototype[hf]=function(){return this};
Ve.prototype.pipe=function(){var a=qc.apply(0,arguments);return 0===a.length?this:Hfa(a)(this)};Ve.create=function(a){return new Ve(a)};
var kw=function(a,b){Qe.call(this);this.subject=a;this.subscriber=b;this.closed=!1};U(kw,Qe);kw.EMPTY=Qe.EMPTY;kw.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 lw=function(){function a(){this.message="object unsubscribed";this.name="ObjectUnsubscribedError";return this}a.prototype=Object.create(Error.prototype);return a}();
var Xf=function(){this.observers=[];this.hasError=this.isStopped=this.closed=!1;this.thrownError=null};U(Xf,Ve);g=Xf.prototype;g.lift=function(a){var b=new mw(this,this);b.operator=a;return b};g.next=function(a){if(this.closed)throw new lw;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 lw;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 lw;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 lw;return Ve.prototype._trySubscribe.call(this,a)};g._subscribe=function(a){if(this.closed)throw new lw;if(this.hasError)return a.error(this.thrownError),Qe.EMPTY;if(this.isStopped)return a.complete(),Qe.EMPTY;this.observers.push(a);return new kw(this,a)};var Plb=function(a){var b=new Ve;b.source=a;return b};
li.Object.defineProperties(Xf.prototype,{observed:{configurable:!0,enumerable:!0,get:function(){var a;return 0<(null==(a=this.observers)?void 0:a.length)}}});Xf.create=function(a,b){return new mw(a,b)};var mw=function(a,b){Xf.call(this);this.destination=a;this.source=b};U(mw,Xf);mw.create=Xf.create;mw.prototype.next=function(a){var b=this.destination;b&&b.next&&b.next(a)};mw.prototype.error=function(a){var b=this.destination;b&&b.error&&this.destination.error(a)};
mw.prototype.complete=function(){var a=this.destination;a&&a.complete&&this.destination.complete()};mw.prototype._subscribe=function(a){return this.source?this.source.subscribe(a):Qe.EMPTY};
var af=function(){Xf.apply(this,arguments);this.value=null;this.hasCompleted=this.hasNext=!1};U(af,Xf);af.create=Xf.create;af.prototype._subscribe=function(a){return this.hasError?(a.error(this.thrownError),Qe.EMPTY):this.hasCompleted&&this.hasNext?(a.next(this.value),a.complete(),Qe.EMPTY):Xf.prototype._subscribe.call(this,a)};af.prototype.next=function(a){this.hasCompleted||(this.value=a,this.hasNext=!0)};af.prototype.error=function(a){this.hasCompleted||Xf.prototype.error.call(this,a)};
af.prototype.complete=function(){this.hasCompleted=!0;this.hasNext&&Xf.prototype.next.call(this,this.value);Xf.prototype.complete.call(this)};
var nw=function(a){Xf.call(this);this._value=a};U(nw,Xf);nw.create=Xf.create;nw.prototype._subscribe=function(a){var b=Xf.prototype._subscribe.call(this,a);b&&!b.closed&&a.next(this._value);return b};nw.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new lw;return this._value};nw.prototype.next=function(a){Xf.prototype.next.call(this,this._value=a)};li.Object.defineProperties(nw.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});
var pf=new Ve(function(a){return a.complete()});
var Mfa=function(a){return function(b){for(var c=0,d=a.length;c<d&&!b.closed;c++)b.next(a[c]);b.complete()}};
var Qlb=function(a,b,c){this.kind=a;this.value=b;this.error=c;this.hasValue="N"===a};Qlb.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)}};
Qlb.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 ow={now:function(){return(ow.delegate||Date).now()},delegate:void 0};
var Wf=function(a,b,c){a=void 0===a?Infinity:a;b=void 0===b?Infinity:b;c=void 0===c?ow:c;Xf.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(Wf,Xf);Wf.create=Xf.create;g=Wf.prototype;
g.nextInfiniteTimeWindow=function(a){var b=this._events;b.push(a);b.length>this._bufferSize&&b.shift();Xf.prototype.next.call(this,a)};g.nextTimeWindow=function(a){this._events.push({time:this._getNow(),value:a});this._trimBufferThenGetEvents();Xf.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 lw;if(this.isStopped||this.hasError)var e=Qe.EMPTY;else this.observers.push(a),e=new kw(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():ow.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 pw=function(a,b){b=void 0===b?Rlb:b;this.SchedulerAction=a;this.now=b};pw.prototype.schedule=function(a,b,c){b=void 0===b?0:b;return(new this.SchedulerAction(this,a)).schedule(c,b)};var Rlb=ow.now;
var Rf=function(){function a(){this.message="no elements in sequence";this.name="EmptyError";return this}a.prototype=Object.create(Error.prototype);return a}();
var Pfa=function(){};Pfa.prototype.call=function(a,b){b._refCount++;a=new qw(a,b);var c=b.subscribe(a);a.closed||(a.connection=b.connect());return c};var qw=function(a,b){Se.call(this,a);this.connectable=b;this.connection=null};U(qw,Se);qw.EMPTY=Se.EMPTY;qw.create=Se.create;
qw.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 rw=function(a,b){this.source=a;this.subjectFactory=b;this._refCount=0;this._isComplete=!1};U(rw,Ve);rw.create=Ve.create;rw.prototype._subscribe=function(a){return this.getSubject().subscribe(a)};rw.prototype.getSubject=function(){var a=this._subject;if(!a||a.isStopped)this._subject=this.subjectFactory();return this._subject};
rw.prototype.connect=function(){var a=this._connection;a||(this._isComplete=!1,a=this._connection=new Qe,a.add(this.source.subscribe(new sw(this.getSubject(),this))),a.closed&&(this._connection=null,a=Qe.EMPTY));return a};rw.prototype.refCount=function(){return Ze()(this)};var wha,tw=rw.prototype;
wha={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:tw._subscribe},_isComplete:{value:tw._isComplete,writable:!0},getSubject:{value:tw.getSubject},connect:{value:tw.connect},refCount:{value:tw.refCount}};var sw=function(a,b){Se.call(this);this.destination=a;this.connectable=b};U(sw,Se);sw.EMPTY=Se.EMPTY;sw.create=Se.create;
sw.prototype._error=function(a){this._unsubscribe();Se.prototype._error.call(this,a)};sw.prototype._complete=function(){this.connectable._isComplete=!0;this._unsubscribe();Se.prototype._complete.call(this)};sw.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 Qfa=function(a){this.project=a;this.thisArg=void 0};Qfa.prototype.call=function(a,b){return b.subscribe(new uw(a,this.project,this.thisArg))};var uw=function(a,b,c){Se.call(this,a);this.project=b;this.count=0;this.thisArg=c||this};U(uw,Se);uw.EMPTY=Se.EMPTY;uw.create=Se.create;uw.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 gf="function"===typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";
var fga=function(a){return a&&"number"===typeof a.length&&"function"!==typeof a};
var Slb=function(a){return function(b){var c=a[gf]();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 Tlb=function(a){return function(b){var c=a[hf]();if("function"!==typeof c.subscribe)throw new TypeError("xa");return c.subscribe(b)}};
var Ulb=function(a){return function(b){a.then(function(c){b.closed||(b.next(c),b.complete())},function(c){return b.error(c)}).then(null,Ne);return b}};
var ef=function(a){if(a&&"function"===typeof a[hf])return Tlb(a);if(fga(a))return Mfa(a);if(Yfa(a))return Ulb(a);if(a&&"function"===typeof a[gf])return Slb(a);if(Symbol&&Symbol.asyncIterator&&a&&"function"===typeof a[Symbol.asyncIterator])return $fa(a);throw new TypeError("ya`"+(Pe(a)?"an invalid object":"'"+a+"'"));};
var vw=function(a){Se.call(this);this.parent=a};U(vw,Se);vw.EMPTY=Se.EMPTY;vw.create=Se.create;vw.prototype._next=function(a){this.parent.notifyNext(a)};vw.prototype._error=function(a){this.parent.notifyError(a);this.unsubscribe()};vw.prototype._complete=function(){this.parent.notifyComplete();this.unsubscribe()};var ww=function(a,b,c){Se.call(this);this.parent=a;this.outerValue=b;this.outerIndex=c};U(ww,Se);ww.EMPTY=Se.EMPTY;ww.create=Se.create;
ww.prototype._next=function(a){this.parent.notifyNext(this.outerValue,a,this.outerIndex)};ww.prototype._error=function(a){this.parent.notifyError(a);this.unsubscribe()};ww.prototype._complete=function(){this.parent.notifyComplete(this);this.unsubscribe()};var xw=function(){Se.apply(this,arguments)};U(xw,Se);xw.EMPTY=Se.EMPTY;xw.create=Se.create;xw.prototype.notifyNext=function(a){this.destination.next(a)};xw.prototype.notifyError=function(a){this.destination.error(a)};
xw.prototype.notifyComplete=function(){this.destination.complete()};var yw=function(){Se.apply(this,arguments)};U(yw,Se);yw.EMPTY=Se.EMPTY;yw.create=Se.create;yw.prototype.notifyNext=function(a,b){this.destination.next(b)};yw.prototype.notifyError=function(a){this.destination.error(a)};yw.prototype.notifyComplete=function(){this.destination.complete()};
var Vlb={},Wlb=function(a,b){this.resultSelector=a;this.keys=b};Wlb.prototype.call=function(a,b){return b.subscribe(new zw(a,this.resultSelector,this.keys))};var zw=function(a,b,c){yw.call(this,a);this.resultSelector=b;this.keys=c;this.active=0;this.values=[];this.observables=[]};U(zw,yw);zw.EMPTY=yw.EMPTY;zw.create=yw.create;g=zw.prototype;g._next=function(a){this.values.push(Vlb);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(ff(a[c],new ww(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===Vlb?--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 hga=function(a,b){b=void 0===b?Infinity:b;this.project=a;this.concurrent=b};hga.prototype.call=function(a,b){return b.subscribe(new Aw(a,this.project,this.concurrent))};var Aw=function(a,b,c){c=void 0===c?Infinity:c;xw.call(this,a);this.destination=a;this.project=b;this.concurrent=c;this.hasCompleted=!1;this.buffer=[];this.index=this.active=0};U(Aw,xw);Aw.EMPTY=xw.EMPTY;Aw.create=xw.create;
Aw.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 vw(this);this.destination.add(a);ff(c,a)}else this.buffer.push(a)};Aw.prototype._complete=function(){this.hasCompleted=!0;0===this.active&&0===this.buffer.length&&this.destination.complete();this.unsubscribe()};Aw.prototype.notifyNext=function(a){this.destination.next(a)};
Aw.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 jga={now:function(){return(jga.delegate||performance).now()},delegate:void 0};
var kga=function(a){var b=requestAnimationFrame,c=cancelAnimationFrame;Xlb&&(b=Xlb.requestAnimationFrame,c=Xlb.cancelAnimationFrame);var d=b(function(e){c=void 0;a(e)});return new Qe(function(){var e;return null==(e=c)?void 0:e(d)})},Xlb=void 0;
var Ylb=lga();
var Bw=function(){Qe.call(this)};U(Bw,Qe);Bw.EMPTY=Qe.EMPTY;Bw.prototype.schedule=function(){return this};
var Cw=function(a,b){Qe.call(this);this.scheduler=a;this.work=b;this.pending=!1};U(Cw,Bw);Cw.EMPTY=Bw.EMPTY;g=Cw.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("Ca");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 Dw=function(a,b){b=void 0===b?Rlb:b;pw.call(this,a,function(){return Dw.delegate&&Dw.delegate!==c?Dw.delegate.now():b()});var c=this;this.actions=[];this.active=!1;this.scheduled=void 0};U(Dw,pw);Dw.prototype.schedule=function(a,b,c){b=void 0===b?0:b;return Dw.delegate&&Dw.delegate!==this?Dw.delegate.schedule(a,b,c):pw.prototype.schedule.call(this,a,b,c)};
Dw.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 sf=new Dw(Cw);
var Zlb=new Ve(of);
var uga=function(a,b){this.predicate=a;this.thisArg=b};uga.prototype.call=function(a,b){return b.subscribe(new Ew(a,this.predicate,this.thisArg))};var Ew=function(a,b,c){Se.call(this,a);this.predicate=b;this.thisArg=c;this.count=0};U(Ew,Se);Ew.EMPTY=Se.EMPTY;Ew.create=Se.create;Ew.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 $lb=function(){};$lb.prototype.call=function(a,b){return b.subscribe(new Fw(a))};var Fw=function(a){yw.call(this,a);this.hasFirst=!1;this.observables=[];this.subscriptions=[]};U(Fw,yw);Fw.EMPTY=yw.EMPTY;Fw.create=yw.create;g=Fw.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=ff(a[c],new ww(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;yw.prototype.notifyComplete.call(this,a)};g.notifyError=function(a){this.hasFirst=!0;yw.prototype.notifyError.call(this,a)};
var amb=function(a){this.resultSelector=a};amb.prototype.call=function(a,b){return b.subscribe(new Gw(a,this.resultSelector))};var Gw=function(a,b,c){void 0===c&&Object.create(null);Se.call(this,a);this.iterators=[];this.active=0;this.resultSelector=b};U(Gw,Se);Gw.EMPTY=Se.EMPTY;Gw.create=Se.create;Gw.prototype._next=function(a){var b=this.iterators;$e(a)?b.push(new Hw(a)):"function"===typeof a[gf]?b.push(new Iw(a[gf]())):b.push(new Jw(this.destination,this,a))};
Gw.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--}}};Gw.prototype._tryresultSelector=function(a){try{var b=this.resultSelector.apply(this,a)}catch(c){this.destination.error(c);return}this.destination.next(b)};var Iw=function(a){this.iterator=a;this.nextResult=a.next()};Iw.prototype.hasValue=function(){return!0};
Iw.prototype.next=function(){var a=this.nextResult;this.nextResult=this.iterator.next();return a};Iw.prototype.hasCompleted=function(){var a=this.nextResult;return a&&!!a.done};var Hw=function(a){this.array=a;this.length=this.index=0;this.length=a.length};Hw.prototype[gf]=function(){return this};Hw.prototype.next=function(){var a=this.index++,b=this.array;return a<this.length?{value:b[a],done:!1}:{value:null,done:!0}};Hw.prototype.hasValue=function(){return this.array.length>this.index};
Hw.prototype.hasCompleted=function(){return this.array.length===this.index};var Jw=function(a,b,c){xw.call(this,a);this.parent=b;this.observable=c;this.stillUnsubscribed=!0;this.buffer=[];this.isComplete=!1};U(Jw,xw);Jw.EMPTY=xw.EMPTY;Jw.create=xw.create;Jw.prototype[gf]=function(){return this};g=Jw.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 ff(this.observable,new vw(this))};
var Kw=function(a,b,c){this.key=a;this.groupSubject=b;this.refCountSubscription=c};U(Kw,Ve);Kw.create=Ve.create;Kw.prototype._subscribe=function(a){var b=new Qe,c=this.refCountSubscription,d=this.groupSubject;c&&!c.closed&&b.add(new Lw(c));b.add(d.subscribe(a));return b};var Lw=function(a){Qe.call(this);this.parent=a;a.count++};U(Lw,Qe);Lw.EMPTY=Qe.EMPTY;
Lw.prototype.unsubscribe=function(){var a=this.parent;a.closed||this.closed||(Qe.prototype.unsubscribe.call(this),--a.count,0===a.count&&a.attemptedToUnsubscribe&&a.unsubscribe())};
var Cga=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}(),Bga=function(a,b,c,d,e){this.first=a;this.each=b;this._with=c;this.scheduler=d;this.meta=e};Bga.prototype.call=function(a,b){return b.subscribe(new Mw(a,this.first,this.each,this._with,this.scheduler,this.meta))};
var Mw=function(a,b,c,d,e,f){xw.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;bmb(this,a)};U(Mw,xw);Mw.EMPTY=xw.EMPTY;Mw.create=xw.create;var bmb=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(ff(f,new vw(a)))},b);a.add(a._timerSubscription)};
Mw.prototype._next=function(a){var b=this.each,c;null==(c=this._timerSubscription)||c.unsubscribe();this.seen++;this.lastValue=a;null!=b&&bmb(this,b);xw.prototype._next.call(this,a)};
var cmb=function(a,b){a=void 0===a?Nw:a;b=void 0===b?Infinity:b;Dw.call(this,a,function(){return c.frame});var c=this;this.maxFrames=b;this.frame=0;this.index=-1};U(cmb,Dw);cmb.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 Nw=function(a,b,c){c=void 0===c?a.index+=1:c;Cw.call(this,a,b);this.scheduler=a;this.work=b;this.index=c;this.active=!0;this.index=a.index=c};U(Nw,Cw);Nw.EMPTY=Cw.EMPTY;Nw.prototype.schedule=function(a,b){b=void 0===b?0:b;if(Number.isFinite(b)){if(!this.id)return Cw.prototype.schedule.call(this,a,b);this.active=!1;var c=new Nw(this.scheduler,this.work);this.add(c);return c.schedule(a,b)}return Qe.EMPTY};
Nw.prototype.requestAsyncId=function(a,b,c){this.delay=a.frame+(void 0===c?0:c);a=a.actions;a.push(this);a.sort(dmb);return!0};Nw.prototype.recycleAsyncId=function(){};Nw.prototype._execute=function(a,b){if(!0===this.active)return Cw.prototype._execute.call(this,a,b)};var dmb=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 Ow=function(a,b){Cw.call(this,a,b);this.scheduler=a;this.work=b};U(Ow,Cw);Ow.EMPTY=Cw.EMPTY;Ow.prototype.requestAsyncId=function(a,b,c){c=void 0===c?0:c;if(null!==c&&0<c)return Cw.prototype.requestAsyncId.call(this,a,b,c);a.actions.push(this);return a.scheduled||(a.scheduled=requestAnimationFrame(function(){return a.flush(void 0)}))};
Ow.prototype.recycleAsyncId=function(a,b,c){c=void 0===c?0:c;if(null!==c&&0<c||null===c&&0<this.delay)return Cw.prototype.recycleAsyncId.call(this,a,b,c);0===a.actions.length&&(cancelAnimationFrame(b),a.scheduled=void 0)};
var emb=function(){Dw.apply(this,arguments)};U(emb,Dw);emb.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 fmb=new emb(Ow);
var gmb=1,hmb,Dga={},imb=function(a){var b=gmb++;Dga[b]=!0;hmb||(hmb=Promise.resolve());hmb.then(function(){return Ega(b)&&a()});return b};
var Pw=function(a,b){Cw.call(this,a,b);this.scheduler=a;this.work=b};U(Pw,Cw);Pw.EMPTY=Cw.EMPTY;Pw.prototype.requestAsyncId=function(a,b,c){c=void 0===c?0:c;if(null!==c&&0<c)return Cw.prototype.requestAsyncId.call(this,a,b,c);a.actions.push(this);return a.scheduled||(a.scheduled=imb(a.flush.bind(a,void 0)))};
Pw.prototype.recycleAsyncId=function(a,b,c){c=void 0===c?0:c;if(null!==c&&0<c||null===c&&0<this.delay)return Cw.prototype.recycleAsyncId.call(this,a,b,c);0===a.actions.length&&(Ega(b),a.scheduled=void 0)};
var jmb=function(){Dw.apply(this,arguments)};U(jmb,Dw);jmb.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 kmb=new jmb(Pw);
var Qw=function(a,b){Cw.call(this,a,b);this.scheduler=a;this.work=b};U(Qw,Cw);Qw.EMPTY=Cw.EMPTY;Qw.prototype.schedule=function(a,b){b=void 0===b?0:b;if(0<b)return Cw.prototype.schedule.call(this,a,b);this.delay=b;this.state=a;this.scheduler.flush(this);return this};Qw.prototype.execute=function(a,b){return 0<b||this.closed?Cw.prototype.execute.call(this,a,b):this._execute(a,b)};
Qw.prototype.requestAsyncId=function(a,b,c){c=void 0===c?0:c;return null!==c&&0<c||null===c&&0<this.delay?Cw.prototype.requestAsyncId.call(this,a,b,c):a.flush(this)};
var lmb=function(){Dw.apply(this,arguments)};U(lmb,Dw);
var mmb=new lmb(Qw);
var nmb=function(){function a(){this.message="argument out of range";this.name="ArgumentOutOfRangeError";return this}a.prototype=Object.create(Error.prototype);return a}();
var omb=function(){function a(b){this.message=b;this.name="NotFoundError";return this}a.prototype=Object.create(Error.prototype);return a}();
var pmb=function(){function a(b){this.message=b;this.name="SequenceError";return this}a.prototype=Object.create(Error.prototype);return a}();
var S={};S.Observable=Ve;S.ConnectableObservable=rw;S.GroupedObservable=Kw;S.observable=hf;S.animationFrames=function(a){return a?lga(a):Ylb};S.Subject=Xf;S.BehaviorSubject=nw;S.ReplaySubject=Wf;S.AsyncSubject=af;S.asap=kmb;S.asapScheduler=kmb;S.async=sf;S.asyncScheduler=sf;S.queue=mmb;S.queueScheduler=mmb;S.animationFrame=fmb;S.animationFrameScheduler=fmb;S.VirtualTimeScheduler=cmb;S.VirtualAction=Nw;S.Scheduler=pw;S.Subscription=Qe;S.Subscriber=Se;S.Notification=Qlb;
S.NotificationKind={NEXT:"N",ERROR:"E",COMPLETE:"C"};S.pipe=function(){return Hfa(qc.apply(0,arguments))};S.noop=of;S.identity=Te;S.isObservable=function(a){return!!a&&(a instanceof Ve||"function"===typeof a.lift&&"function"===typeof a.subscribe)};S.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 Rf)}})})};
S.firstValueFrom=function(a){return new Promise(function(b,c){var d=new Qe;d.add(a.subscribe({next:function(e){b(e);d.unsubscribe()},error:c,complete:function(){c(new Rf)}}))})};S.ArgumentOutOfRangeError=nmb;S.EmptyError=Rf;S.NotFoundError=omb;S.ObjectUnsubscribedError=lw;S.SequenceError=pmb;S.TimeoutError=Cga;S.UnsubscriptionError=Re;S.bindCallback=Rfa;S.bindNodeCallback=Ufa;
S.combineLatest=function(){var a=qc.apply(0,arguments),b=void 0,c=void 0,d=void 0;Xe(a[a.length-1])&&(c=a.pop());"function"===typeof a[a.length-1]&&(b=a.pop());if(1===a.length){var e=a[0];$e(e)&&(a=e);Pe(e)&&Object.getPrototypeOf(e)===Object.prototype&&(d=Object.keys(e),a=d.map(function(f){return e[f]}))}return Ye(We(a,c),new Wlb(b,d))};S.concat=mf;S.defer=iga;S.empty=function(a){return a?Kfa(a):pf};
S.forkJoin=function(){var a=qc.apply(0,arguments);if(1===a.length){var b=a[0];if($e(b))return nf(b,null);if(Pe(b)&&Object.getPrototypeOf(b)===Object.prototype)return a=Object.keys(b),nf(a.map(function(d){return b[d]}),a)}if("function"===typeof a[a.length-1]){var c=a.pop();a=1===a.length&&$e(a[0])?a[0]:a;return nf(a,null).pipe(R(function(d){return c.apply(null,u(d))}))}return nf(a,null)};S.from=jf;S.fromEvent=mga;S.fromEventPattern=oga;
S.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||Te;e=a.scheduler}else void 0===d||Xe(d)?(f=a,h=Te,e=d):(f=a,h=d);return new Ve(function(k){var q=f;if(e)return e.schedule(pga,0,{subscriber:k,iterate:c,condition:b,resultSelector:h,state:q});do{if(b){var v=void 0;try{v=b(q)}catch(y){k.error(y);break}if(!v){k.complete();break}}v=void 0;try{v=h(q)}catch(y){k.error(y);break}k.next(v);if(k.closed)break;try{q=c(q)}catch(y){k.error(y);
break}}while(1)})};S.iif=function(a,b){var c=(0,S.of)(!1);b=void 0===b?pf:b;c=void 0===c?pf:c;return iga(function(){return a()?b:c})};S.interval=function(a,b){a=void 0===a?0:a;b=void 0===b?sf:b;if(!qga(a)||0>a)a=0;b&&"function"===typeof b.schedule||(b=sf);return new Ve(function(c){c.add(b.schedule(rga,a,{subscriber:c,counter:0,period:a}));return c})};
S.merge=function(){var a=qc.apply(0,arguments),b=Infinity,c=void 0,d=a[a.length-1];Xe(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 Ve?a[0]:lf(b)(We(a,c))};S.never=function(){return Zlb};S.of=Nfa;S.onErrorResumeNext=sga;
S.pairs=function(a,b){return b?new Ve(function(c){var d=Object.keys(a),e=new Qe;e.add(b.schedule(tga,0,{keys:d,index:0,subscriber:c,subscription:e,obj:a}));return e}):new Ve(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()})};S.partition=function(a,b,c){return[rf(b,c)(new Ve(ef(a))),rf(vga(b,c))(new Ve(ef(a)))]};
S.race=function(){var a=qc.apply(0,arguments);if(1===a.length)if($e(a[0]))a=a[0];else return jf(a[0]);return Ye(We(a),new $lb)};S.range=function(a,b,c){a=void 0===a?0:a;return new Ve(function(d){void 0===b&&(b=a,a=0);var e=0,f=a;if(c)return c.schedule(wga,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)})};S.throwError=function(a,b){return b?new Ve(function(c){return b.schedule(Ofa,0,{error:a,subscriber:c})}):new Ve(function(c){return c.error(a)})};
S.timer=zga;S.using=function(a,b){return new Ve(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?jf(e):pf).subscribe(c);return function(){f.unsubscribe();d&&d.unsubscribe()}})};S.zip=function(){var a=qc.apply(0,arguments),b=void 0;"function"===typeof a[a.length-1]&&(b=a.pop());return Ye(We(a),new amb(b))};S.scheduled=gga;S.EMPTY=pf;S.NEVER=Zlb;S.config=Ue;
var Rw=function(a){a=void 0===a?!1:a;S.Subject.call(this);this.__isAsync=a};U(Rw,S.Subject);Rw.create=S.Subject.create;Rw.prototype.emit=function(a){S.Subject.prototype.next.call(this,a)};
Rw.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=Fga(b),d&&(d=Fga(d)),c&&(c=Fga(c)));d=S.Subject.prototype.subscribe.call(this,{next:d,error:b,complete:c});a instanceof S.Subscription&&a.add(d);return d};
var Ef=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=ce(),c=Ef.prototype;c[b]||(c[b]=Gga)};g=Ef.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=Zca(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 zf=function(a){!a._changes||!a._changesDetected&&a._emitDistinctChangesOnly||a._changes.emit(a)};Ef.prototype.setDirty=function(){this.dirty=!0};
Ef.prototype.destroy=function(){this.changes.complete();this.changes.unsubscribe()};li.Object.defineProperties(Ef.prototype,{changes:{configurable:!0,enumerable:!0,get:function(){return this._changes||(this._changes=new Rw)}}});Symbol.iterator;
var xf=function(){};xf.__NG_ELEMENT_ID__=Hga;var vf=function(a,b,c){this._declarationLView=a;this._declarationTContainer=b;this.elementRef=c};U(vf,xf);vf.__NG_ELEMENT_ID__=xf.__NG_ELEMENT_ID__;
vf.prototype.createEmbeddedView=function(a,b){var c=this._declarationTContainer.tViews;b=Nd(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));Pd(c,b,a);return new lg(b)};
var yf=function(){};yf.__NG_ELEMENT_ID__=Jga;var wf=function(a,b,c){this._lContainer=a;this._hostTNode=b;this._hostLView=c};U(wf,yf);wf.__NG_ELEMENT_ID__=yf.__NG_ELEMENT_ID__;g=wf.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 Zv(a[tc]||null);c=c||this.parentInjector;e||null!=a.ngModule||(d=(d?c:this.parentInjector).get(Pv,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(yc(c[3])){var e=this.indexOf(a);-1!==e?this.detach(e):(e=c[3],e=new wf(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&&qmb(f,d);c[2]|=64;f=Kda(b,e);h=c[11];var k=Dda(h,e[7]);if(null!==
k){var q=e[6];c[0]=k;c[6]=q;zd(h,1,d.firstChild,c,k,f,!1)}if(a._appRef)throw new ic(902,"");a._attachedToViewContainer=!0;c=Kga(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=Gda(this._lContainer,a);b&&(gd(Kga(this._lContainer),a),Ida(b[1],b))};
g.detach=function(a){a=this._adjustIndex(a,-1);var b=Gda(this._lContainer,a);return b&&null!=gd(Kga(this._lContainer),a)?new lg(b):null};g._adjustIndex=function(a,b){return null==a?this.length+(void 0===b?0:b):a};
li.Object.defineProperties(wf.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return qd(this._hostTNode,this._hostLView)}},injector:{configurable:!0,enumerable:!0,get:function(){return new dd(this._hostTNode,this._hostLView)}},parentInjector:{configurable:!0,enumerable:!0,get:function(){var a=Rca(this._hostTNode,this._hostLView);if(-1!==a){var b=Uc(a,this._hostLView);return new dd(b[1].data[(a&32767)+8],b)}return new dd(null,this._hostLView)}},length:{configurable:!0,enumerable:!0,
get:function(){return this._lContainer.length-10}}});
var Gf=function(a){this.queryList=a;this.matches=null};Gf.prototype.clone=function(){return new Gf(this.queryList)};Gf.prototype.setDirty=function(){this.queryList.setDirty()};var Ff=function(a){this.queries=a=void 0===a?[]:a};Ff.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 Ff(c)}return null};
Ff.prototype.detachView=function(a){qmb(this,a)};var qmb=function(a,b){for(var c=0;c<a.queries.length;c++)null!==b.queries.queries[c].matches&&a.queries[c].setDirty()},Oga=function(a,b,c){this.predicate=a;this.flags=b;this.read=void 0===c?null:c},Hf=function(a){this.queries=a=void 0===a?[]:a};g=Hf.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 Hf(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)};li.Object.defineProperties(Hf.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.queries.length}}});
var If=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};
If.prototype.elementStart=function(a,b){if(rmb(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}Sw(this,a,b,f);Sw(this,a,b,ad(b,a,e,!1,!1))}else c===xf?b.type&4&&Sw(this,a,b,-1):Sw(this,a,b,ad(b,a,c,!1,!1))}};If.prototype.elementEnd=function(a){this._declarationNodeIndex===a.index&&(this._appliesToNextNode=!1)};
If.prototype.template=function(a,b){this.elementStart(a,b)};If.prototype.embeddedTView=function(a,b){return rmb(this,a)?(this.crossesNgTemplate=!0,Tw(this,-a.index,b),new If(this.metadata)):null};
var rmb=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},Sw=function(a,b,c,d){if(null!==d){var e=a.metadata.read;null!==e?e===pd||e===yf||e===xf&&c.type&4?Tw(a,c.index,-2):(b=ad(c,b,e,!1,!1),null!==b&&Tw(a,c.index,b)):Tw(a,c.index,d)}},Tw=function(a,b,c){null===a.matches?a.matches=[b,c]:a.matches.push(b,c)};
var Qga=Promise.resolve(0);
var jg=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 Rw(!1);this.onMicrotaskEmpty=new Rw(!1);this.onStable=new Rw(!1);this.onError=new Rw(!1);if("undefined"==typeof Zone)throw Error("Ea");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=ud.requestAnimationFrame;c=ud.cancelAnimationFrame;"undefined"!==typeof Zone&&b&&c&&((c=b[Zone.__symbol__("OriginalDelegate")])&&(b=c),Zone.__symbol__("OriginalDelegate"));
this.nativeRequestAnimationFrame=b;Vga(this)},Uw=function(){return"undefined"!==typeof Zone&&!0===Zone.current.get("isAngularZone")};jg.prototype.run=function(a,b,c){return this._inner.run(a,b,c)};jg.prototype.runTask=function(a,b,c){var d=this._inner;a=d.scheduleEventTask("NgZoneEvent: undefined",a,smb,Mea,Mea);try{return d.runTask(a,b,c)}finally{d.cancelTask(a)}};jg.prototype.runGuarded=function(a,b,c){return this._inner.runGuarded(a,b,c)};jg.prototype.runOutsideAngular=function(a){return this._outer.run(a)};
var smb={},ig=function(){this.hasPendingMacrotasks=this.hasPendingMicrotasks=!1;this.isStable=!0;this.onUnstable=new Rw;this.onMicrotaskEmpty=new Rw;this.onStable=new Rw;this.onError=new Rw};ig.prototype.run=function(a,b,c){return a.apply(b,c)};ig.prototype.runGuarded=function(a,b,c){return a.apply(b,c)};ig.prototype.runOutsideAngular=function(a){return a()};ig.prototype.runTask=function(a,b,c){return a.apply(b,c)};
var tmb=new ld(""),Vw=new ld(""),Ww=function(a,b,c){var d=this;this._ngZone=a;this.registry=b;this._pendingCount=0;this._isZoneStable=!0;this._didWork=!1;this._callbacks=[];this.taskTrackingZone=null;umb||(umb=c,vmb(b));this._watchAngularEvents();a.run(function(){d.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})};
Ww.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(Uw())throw Error("Ga");Rga(function(){a._isZoneStable=!0;a._runCallbacksIfReady()})}})})};Ww.prototype.isStable=function(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks};
Ww.prototype._runCallbacksIfReady=function(){var a=this;if(this.isStable())Rga(function(){for(;0!==a._callbacks.length;){var c=a._callbacks.pop();clearTimeout(c.timeoutId);c.doneCb(a._didWork)}a._didWork=!1});else{var b=wmb(this);this._callbacks=this._callbacks.filter(function(c){return c.updateCb&&c.updateCb(b)?(clearTimeout(c.timeoutId),!1):!0});this._didWork=!0}};
var wmb=function(a){return a.taskTrackingZone?a.taskTrackingZone.macroTasks.map(function(b){return{source:b.source,creationLocation:b.creationLocation,data:b.data}}):[]};g=Ww.prototype;g.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,wmb(d))},b));this._callbacks.push({doneCb:a,timeoutId:e,updateCb:c})};
g.whenStable=function(a,b,c){if(c&&!this.taskTrackingZone)throw Error("Ha");this.addCallback(a,b,c);this._runCallbacksIfReady()};g.registerApplication=function(a){this.registry.registerApplication(a,this)};g.unregisterApplication=function(a){this.registry.unregisterApplication(a)};g.findProviders=function(){return[]};Ww.\u0275fac=function(a){return new (a||Ww)(t(jg),t(Xw),t(Vw))};Ww.\u0275prov=dc({token:Ww,factory:Ww.\u0275fac});var Xw=function(){this._applications=new Map};
Xw.prototype.registerApplication=function(a,b){this._applications.set(a,b)};Xw.prototype.unregisterApplication=function(a){this._applications.delete(a)};Xw.prototype.findTestabilityInTree=function(a,b){var c,d;return null!=(d=null==(c=umb)?void 0:c.findTestabilityInTree(this,a,void 0===b?!0:b))?d:null};Xw.\u0275fac=function(a){return new (a||Xw)};Xw.\u0275prov=dc({token:Xw,factory:Xw.\u0275fac,providedIn:"platform"});var umb;
var Wga=function(a){this.durationSelector=a};Wga.prototype.call=function(a,b){return b.subscribe(new Yw(a,this.durationSelector))};var Yw=function(a,b){xw.call(this,a);this.durationSelector=b;this.value=null;this.hasValue=!1;this.throttled=null};U(Yw,xw);Yw.EMPTY=xw.EMPTY;Yw.create=xw.create;
Yw.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=ff(c,new vw(this));!a||a.closed?xmb(this):this.add(this.throttled=a)}};var xmb=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))};Yw.prototype.notifyNext=function(){xmb(this)};Yw.prototype.notifyComplete=function(){xmb(this)};
var Yga=function(a){this.closingNotifier=a};Yga.prototype.call=function(a,b){return b.subscribe(new Zw(a,this.closingNotifier))};var Zw=function(a,b){xw.call(this,a);this.buffer=[];this.add(ff(b,new vw(this)))};U(Zw,xw);Zw.EMPTY=xw.EMPTY;Zw.create=xw.create;Zw.prototype._next=function(a){this.buffer.push(a)};Zw.prototype.notifyNext=function(){var a=this.buffer;this.buffer=[];this.destination.next(a)};
var $ga=function(a){this.selector=a};$ga.prototype.call=function(a,b){return b.subscribe(new $w(a,this.selector,this.caught))};var $w=function(a,b,c){xw.call(this,a);this.selector=b;this.caught=c};U($w,xw);$w.EMPTY=xw.EMPTY;$w.create=xw.create;$w.prototype.error=function(a){if(!this.isStopped){try{var b=this.selector(a,this.caught)}catch(c){xw.prototype.error.call(this,c);return}this._unsubscribeAndRecycle();a=new vw(this);this.add(a);ff(b,a)}};
var bha=function(a){this.durationSelector=a};bha.prototype.call=function(a,b){return b.subscribe(new ax(a,this.durationSelector))};var ax=function(a,b){xw.call(this,a);this.durationSelector=b;this.value=null;this.hasValue=!1;this.durationSubscription=null};U(ax,xw);ax.EMPTY=xw.EMPTY;ax.create=xw.create;g=ax.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(){ymb(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=ff(b,new vw(this)))&&!c.closed&&this.add(this.durationSubscription=c)};g.notifyNext=function(){ymb(this)};g.notifyComplete=function(){ymb(this)};var ymb=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;xw.prototype._next.call(a,b)}};
var dha=function(a,b){this.dueTime=a;this.scheduler=b};dha.prototype.call=function(a,b){return b.subscribe(new bx(a,this.dueTime,this.scheduler))};var bx=function(a,b,c){Se.call(this,a);this.dueTime=b;this.scheduler=c;this.lastValue=this.debouncedSubscription=null;this.hasValue=!1};U(bx,Se);bx.EMPTY=Se.EMPTY;bx.create=Se.create;bx.prototype._next=function(a){zmb(this);this.lastValue=a;this.hasValue=!0;this.add(this.debouncedSubscription=this.scheduler.schedule(fha,this.dueTime,this))};
bx.prototype._complete=function(){eha(this);this.destination.complete()};var eha=function(a){zmb(a);if(a.hasValue){var b=a.lastValue;a.lastValue=null;a.hasValue=!1;a.destination.next(b)}},zmb=function(a){var b=a.debouncedSubscription;null!==b&&(a.remove(b),b.unsubscribe(),a.debouncedSubscription=null)};
var gha=function(a){this.defaultValue=a};gha.prototype.call=function(a,b){return b.subscribe(new cx(a,this.defaultValue))};var cx=function(a,b){Se.call(this,a);this.defaultValue=b;this.isEmpty=!0};U(cx,Se);cx.EMPTY=Se.EMPTY;cx.create=Se.create;cx.prototype._next=function(a){this.isEmpty=!1;this.destination.next(a)};cx.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue);this.destination.complete()};
var iha=function(a,b){this.delay=a;this.scheduler=b};iha.prototype.call=function(a,b){return b.subscribe(new dx(a,this.delay,this.scheduler))};var dx=function(a,b,c){Se.call(this,a);this.destination=a;this.delay=b;this.scheduler=c;this.queue=[];this.active=!1};U(dx,Se);dx.EMPTY=Se.EMPTY;dx.create=Se.create;
var Amb=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)};dx.prototype._schedule=function(a){this.active=!0;var b=this.destination;b.add(a.schedule(Amb,this.delay,{source:this,destination:b,scheduler:a}))};
dx.prototype._next=function(a){var b=this.scheduler;a=new Bmb(b.now()+this.delay,a);this.queue.push(a);!1===this.active&&this._schedule(b)};dx.prototype._error=function(a){this.queue.length=0;this.destination.error(a);this.unsubscribe()};dx.prototype._complete=function(){0===this.queue.length&&this.destination.complete();this.unsubscribe()};var Bmb=function(a,b){this.time=a;this.value=b};
var jha=function(a){this.compare=a;this.keySelector=void 0};jha.prototype.call=function(a,b){return b.subscribe(new ex(a,this.compare,this.keySelector))};var ex=function(a,b,c){Se.call(this,a);this.keySelector=c;this.hasKey=!1;"function"===typeof b&&(this.compare=b)};U(ex,Se);ex.EMPTY=Se.EMPTY;ex.create=Se.create;ex.prototype.compare=function(a,b){return a===b};
ex.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 kha=function(){this.count=1};kha.prototype.call=function(a,b){return b.subscribe(new fx(a,this.count))};var fx=function(a,b){Se.call(this,a);this.count=b;this._valueCount=0};U(fx,Se);fx.EMPTY=Se.EMPTY;fx.create=Se.create;fx.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 mha=function(a){this.errorFactory=a};mha.prototype.call=function(a,b){return b.subscribe(new gx(a,this.errorFactory))};var gx=function(a,b){Se.call(this,a);this.errorFactory=b;this.hasValue=!1};U(gx,Se);gx.EMPTY=Se.EMPTY;gx.create=Se.create;gx.prototype._next=function(a){this.hasValue=!0;this.destination.next(a)};gx.prototype._complete=function(){if(this.hasValue)return this.destination.complete();try{var a=this.errorFactory()}catch(b){a=b}this.destination.error(a)};
var oha=function(a){this.callback=a};oha.prototype.call=function(a,b){a=b.subscribe(a);a.add(this.callback);return a};
var pha=function(){};pha.prototype.call=function(a,b){return b.subscribe(new hx(a))};var hx=function(){Se.apply(this,arguments)};U(hx,Se);hx.EMPTY=Se.EMPTY;hx.create=Se.create;hx.prototype._next=function(){};
var rha=function(){this.total=1};rha.prototype.call=function(a,b){return b.subscribe(new ix(a,this.total))};var ix=function(a,b){Se.call(this,a);this.total=b;this.ring=[];this.count=0};U(ix,Se);ix.EMPTY=Se.EMPTY;ix.create=Se.create;ix.prototype._next=function(a){var b=this.ring,c=this.total,d=this.count++;b.length<c?b.push(a):b[d%c]=a};
ix.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 uha=function(a){this.value=a};uha.prototype.call=function(a,b){return b.subscribe(new jx(a,this.value))};var jx=function(a,b){Se.call(this,a);this.value=b};U(jx,Se);jx.EMPTY=Se.EMPTY;jx.create=Se.create;jx.prototype._next=function(){this.destination.next(this.value)};
var vha=function(a,b,c){this.accumulator=a;this.seed=b;this.hasSeed=void 0===c?!1:c};vha.prototype.call=function(a,b){return b.subscribe(new kx(a,this.accumulator,this.seed,this.hasSeed))};var kx=function(a,b,c,d){Se.call(this,a);this.accumulator=b;this._state=c;this._hasState=d;this.index=0};U(kx,Se);kx.EMPTY=Se.EMPTY;kx.create=Se.create;
kx.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 Bha=function(a){this.total=a};Bha.prototype.call=function(a,b){return b.subscribe(new lx(a,this.total))};var lx=function(a,b){Se.call(this,a);this.total=b;this.count=0};U(lx,Se);lx.EMPTY=Se.EMPTY;lx.create=Se.create;lx.prototype._next=function(a){++this.count>this.total&&this.destination.next(a)};
var Cha=function(a){this.project=a};Cha.prototype.call=function(a,b){return b.subscribe(new mx(a,this.project))};var mx=function(a,b){xw.call(this,a);this.destination=a;this.project=b;this.index=0};U(mx,xw);mx.EMPTY=xw.EMPTY;mx.create=xw.create;g=mx.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 vw(this);this.destination.add(a);this.innerSubscription=a;ff(c,a)};
g._complete=function(){var a=this.innerSubscription;a&&!a.closed||xw.prototype._complete.call(this);this.unsubscribe()};g._unsubscribe=function(){this.innerSubscription=void 0};g.notifyComplete=function(){this.innerSubscription=void 0;this.isStopped&&xw.prototype._complete.call(this)};g.notifyNext=function(a){this.destination.next(a)};
var Eha=function(a){this.notifier=a};Eha.prototype.call=function(a,b){a=new nx(a);var c=ff(this.notifier,new vw(a));return c&&!a.notifierHasNotified?(a.add(c),b.subscribe(a)):a};var nx=function(a){xw.call(this,a);this.notifierHasNotified=!1};U(nx,xw);nx.EMPTY=xw.EMPTY;nx.create=xw.create;nx.prototype.notifyNext=function(){this.notifierHasNotified=!0;this.complete()};nx.prototype.notifyComplete=function(){};
var Fha=function(a,b){this.predicate=a;this.inclusive=b};Fha.prototype.call=function(a,b){return b.subscribe(new ox(a,this.predicate,this.inclusive))};var ox=function(a,b,c){Se.call(this,a);this.predicate=b;this.inclusive=c;this.index=0};U(ox,Se);ox.EMPTY=Se.EMPTY;ox.create=Se.create;ox.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 Hha=function(a,b){this.nextOrObserver=a;this.error=b;this.complete=void 0};Hha.prototype.call=function(a,b){return b.subscribe(new px(a,this.nextOrObserver,this.error,this.complete))};var px=function(a,b,c,d){Se.call(this,a);this._tapComplete=this._tapError=this._tapNext=of;this._tapError=c||of;this._tapComplete=d||of;Oe(b)?(this._context=this,this._tapNext=b):b&&(this._context=b,this._tapNext=b.next||of,this._tapError=b.error||of,this._tapComplete=b.complete||of)};U(px,Se);px.EMPTY=Se.EMPTY;
px.create=Se.create;px.prototype._next=function(a){try{this._tapNext.call(this._context,a)}catch(b){this.destination.error(b);return}this.destination.next(a)};px.prototype._error=function(a){try{this._tapError.call(this._context,a)}catch(b){this.destination.error(b);return}this.destination.error(a)};px.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(a){this.destination.error(a);return}return this.destination.complete()};
var Iha={leading:!0,trailing:!1},Jha=function(a,b,c){this.durationSelector=a;this.leading=b;this.trailing=c};Jha.prototype.call=function(a,b){return b.subscribe(new qx(a,this.durationSelector,this.leading,this.trailing))};var qx=function(a,b,c,d){xw.call(this,a);this.destination=a;this.durationSelector=b;this._leading=c;this._trailing=d;this._sendValue=null;this._hasValue=!1};U(qx,xw);qx.EMPTY=xw.EMPTY;qx.create=xw.create;
qx.prototype._next=function(a){this._hasValue=!0;this._sendValue=a;this._throttled||(this._leading?this.send():Cmb(this,a))};qx.prototype.send=function(){var a=this._sendValue;this._hasValue&&(this.destination.next(a),Cmb(this,a));this._hasValue=!1;this._sendValue=null};var Cmb=function(a,b){try{var c=a.durationSelector(b)}catch(d){a.destination.error(d);return}a.add(a._throttled=ff(c,new vw(a)))},Dmb=function(a){var b=a._throttled,c=a._trailing;b&&b.unsubscribe();a._throttled=null;c&&a.send()};
qx.prototype.notifyNext=function(){Dmb(this)};qx.prototype.notifyComplete=function(){Dmb(this)};
var Lha=function(a,b){this.observables=a;this.project=b};Lha.prototype.call=function(a,b){return b.subscribe(new rx(a,this.observables,this.project))};var rx=function(a,b,c){yw.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(ff(b[c],new ww(this,void 0,c)))};U(rx,yw);rx.EMPTY=yw.EMPTY;rx.create=yw.create;
rx.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))};rx.prototype.notifyComplete=function(){};rx.prototype._next=function(a){0===this.toRespond.length&&(a=[a].concat(u(this.values)),this.project?this._tryProject(a):this.destination.next(a))};rx.prototype._tryProject=function(a){try{var b=this.project.apply(this,a)}catch(c){this.destination.error(c);return}this.destination.next(b)};
var fg=null,Pha=new ld("AllowMultipleToken"),Tha=new ld("PlatformOnDestroy"),Emb=function(a,b){this.name=a;this.token=b},gg=function(a){this._injector=a;this._modules=[];this._destroyListeners=[];this._destroyed=!1},Fmb=function(a,b,c){var d=Uha(null==c?void 0:c.ngZone,{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!c||!c.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!c||!c.ngZoneRunCoalescing)||!1}),e=[{provide:jg,useValue:d}];return d.run(function(){var f=hg({providers:e,
parent:a.injector,name:b.moduleType.name}),h=b.create(f),k=h.injector.get(Vd,null);if(!k)throw new ic(402,"");d.runOutsideAngular(function(){var q=d.onError.subscribe({next:function(v){k.handleError(v)}});h.onDestroy(function(){kg(a._modules,h);q.unsubscribe()})});return Vha(k,d,function(){var q=h.injector.get(cw);Klb(q);return q.donePromise.then(function(){var v=h.injector.get(qi,"en-US")||"en-US";if(null==v)throw Error("ja`Expected localeId to be defined` [Expected=> null != "+(v+" <=Actual]"));
a._moduleDoBootstrap(h);return h})})})},Hmb=function(){var a=Gmb(),b=sx;var c=void 0===c?[]:c;var d=Wha({},c);Promise.resolve(new bw(b)).then(function(e){return Fmb(a,e,d)})};gg.prototype._moduleDoBootstrap=function(a){var b=a.injector.get(tx);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)};gg.prototype.onDestroy=function(a){this._destroyListeners.push(a)};
gg.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(Tha,null))||a();this._destroyed=!0};li.Object.defineProperties(gg.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return this._injector}},destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}}});
gg.\u0275fac=function(a){return new (a||gg)(t(Qv))};gg.\u0275prov=dc({token:gg,factory:gg.\u0275fac,providedIn:"platform"});
var tx=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(){Imb(e)})}});this.isStable=(0,S.merge)(new S.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 S.Observable(function(f){var h;e._zone.runOutsideAngular(function(){h=e._zone.onStable.subscribe(function(){if(Uw())throw Error("Ga");Rga(function(){e._stable||e._zone.hasPendingMacrotasks||e._zone.hasPendingMicrotasks||(e._stable=!0,f.next(!0))})})});var k=e._zone.onUnstable.subscribe(function(){if(!Uw())throw Error("Fa");e._stable&&(e._stable=!1,e._zone.runOutsideAngular(function(){f.next(!1)}))});
return function(){h.unsubscribe();k.unsubscribe()}})).pipe(Yf()))};
tx.prototype.bootstrap=function(a,b){var c=this,d=a instanceof qlb;if(!this._initStatus.done)throw new ic(405,!1);var e;d?e=a:e=this._injector.get(Sv).resolveComponentFactory(a);this.componentTypes.push(e.componentType);a=e.isBoundToModule?void 0:this._injector.get(Tv);var f=e.create(llb,[],b||e.selector,a),h=f.location.nativeElement,k=f.injector.get(tmb,null);null==k||k.registerApplication(h);f.onDestroy(function(){c.detachView(f.hostView);kg(c.components,f);null==k||k.unregisterApplication(h)});
this._loadComponent(f);return f};var Imb=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}},Jmb=function(a,b){a._views.push(b);if(b._attachedToViewContainer)throw new ic(902,"");b._appRef=a};g=tx.prototype;
g.detachView=function(a){kg(this._views,a);a._appRef=null;var b=a._lView;zd(b[11],2,a._lView[1].firstChild,b,null,null,!1)};g._loadComponent=function(a){Jmb(this,a.hostView);Imb(this);this.components.push(a);this._injector.get(Mlb,[]).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 kg(b._destroyListeners,a)}};
g.destroy=function(){if(this._destroyed)throw new ic(406,!1);var a=this._injector;a.destroy&&!a.destroyed&&a.destroy()};li.Object.defineProperties(tx.prototype,{destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}},injector:{configurable:!0,enumerable:!0,get:function(){return this._injector}},viewCount:{configurable:!0,enumerable:!0,get:function(){return this._views.length}}});tx.\u0275fac=function(a){return new (a||tx)(t(jg),t(Qv),t(Vd),t(cw))};
tx.\u0275prov=dc({token:tx,factory:tx.\u0275fac,providedIn:"root"});
var Kmb=new ld("AnalyzeForEntryComponents");
var ux=function(){};ux.\u0275fac=function(a){return new (a||ux)(t(tx))};ux.\u0275mod=uc({type:ux});ux.\u0275inj=gc({});
var vx=function(){};vx.__NG_ELEMENT_ID__=Xha;
var Lmb=function(){};Lmb.prototype.supports=function(a){return Xea(a)};Lmb.prototype.create=function(a){return new wx(a)};var Mmb=function(a,b){return b},wx=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||Mmb};
wx.prototype.forEachItem=function(a){var b;for(b=this._itHead;null!==b;b=b._next)a(b)};var Nmb=function(a,b){var c=a._itHead;a=a._removalsHead;for(var d=0,e=null;c||a;){var f=!a||c&&c.currentIndex<Yha(a,d,e)?c:a,h=Yha(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,v=k-d;if(q!=v){for(var y=0;y<q;y++){var E=y<e.length?e[y]:e[y]=0,I=E+y;v<=I&&I<q&&(e[y]=E+1)}e[f.previousIndex]=v-q}}h!==k&&b(f,h,k)}};
wx.prototype.forEachAddedItem=function(a){var b;for(b=this._additionsHead;null!==b;b=b._nextAdded)a(b)};wx.prototype.forEachRemovedItem=function(a){var b;for(b=this._removalsHead;null!==b;b=b._nextRemoved)a(b)};var Omb=function(a,b){for(a=a._identityChangesHead;null!==a;a=a._nextIdentityChange)b(a)};g=wx.prototype;g.diff=function(a){null==a&&(a=[]);if(!Xea(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;Yea(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 Pmb(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 xx);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 xx);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};li.Object.defineProperties(wx.prototype,{isDirty:{configurable:!0,enumerable:!0,get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}}});
var Pmb=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},yx=function(){this._tail=this._head=null};yx.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)};
yx.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};yx.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 xx=function(){this.map=new Map};xx.prototype.put=function(a){var b=a.trackById,c=this.map.get(b);c||(c=new yx,this.map.set(b,c));c.add(a)};
xx.prototype.get=function(a,b){var c=this.map.get(a);return c?c.get(a,b):null};xx.prototype.remove=function(a){var b=a.trackById;this.map.get(b).remove(a)&&this.map.delete(b);return a};xx.prototype.clear=function(){this.map.clear()};li.Object.defineProperties(xx.prototype,{isEmpty:{configurable:!0,enumerable:!0,get:function(){return 0===this.map.size}}});
var Qmb=function(){};Qmb.prototype.supports=function(a){return a instanceof Map||Wea(a)};Qmb.prototype.create=function(){return new zx};var zx=function(){this._records=new Map;this._removalsTail=this._removalsHead=this._additionsTail=this._additionsHead=this._changesTail=this._changesHead=this._previousMapHead=this._appendAfter=this._mapHead=null};zx.prototype.forEachItem=function(a){var b;for(b=this._mapHead;null!==b;b=b._next)a(b)};var Rmb=function(a,b){for(a=a._changesHead;null!==a;a=a._nextChanged)b(a)};
g=zx.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||Wea(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 Smb(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)})};li.Object.defineProperties(zx.prototype,{isDirty:{configurable:!0,enumerable:!0,get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}}});var Smb=function(a){this.key=a;this._nextChanged=this._nextRemoved=this._nextAdded=this._prev=this._next=this._nextPrevious=this.currentValue=this.previousValue=null};
var Ax=function(a){this.factories=a};Ax.prototype.find=function(a){var b=this.factories.find(function(c){return c.supports(a)});if(null!=b)return b;throw new ic(901,"");};Ax.\u0275prov=dc({token:Ax,providedIn:"root",factory:function(){return new Ax([new Lmb])}});
var Bx=function(a){this.factories=a};Bx.prototype.find=function(a){var b=this.factories.find(function(c){return c.supports(a)});if(b)return b;throw new ic(901,"");};Bx.\u0275prov=dc({token:Bx,providedIn:"root",factory:function(){return new Bx([new Qmb])}});
var Tmb=function(){};
var Umb=Rha(null,"core",[]);
var Cx=function(a,b){this._viewContainer=a;this._context=new Vmb;this._elseViewRef=this._thenViewRef=this._elseTemplateRef=null;this._thenTemplateRef=b};
Cx.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)))};
li.Object.defineProperties(Cx.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){Zha("ngIfThen",a);this._thenTemplateRef=a;this._thenViewRef=null;this._updateView()}},ngIfElse:{configurable:!0,enumerable:!0,set:function(a){Zha("ngIfElse",a);this._elseTemplateRef=a;this._elseViewRef=null;this._updateView()}}});Cx.\u0275fac=function(a){return new (a||Cx)(D(yf),D(xf))};
Cx.\u0275dir=w({type:Cx,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}});var Vmb=function(){this.ngIf=this.$implicit=null};
var Dx=function(a,b){this._renderer=a;this._elementRef=b;this.onChange=function(){};this.onTouched=function(){}};Dx.prototype.setProperty=function(a,b){this._renderer.setProperty(this._elementRef.nativeElement,a,b)};Dx.prototype.registerOnTouched=function(a){this.onTouched=a};Dx.prototype.registerOnChange=function(a){this.onChange=a};Dx.prototype.setDisabledState=function(a){this.setProperty("disabled",a)};Dx.\u0275fac=function(a){return new (a||Dx)(D(Vv),D(pd))};Dx.\u0275dir=w({type:Dx});
var Kg=function(){Dx.apply(this,arguments)};U(Kg,Dx);Kg.\u0275fac=function(){var a;return function(b){return(a||(a=ed(Kg)))(b||Kg)}}();Kg.\u0275dir=w({type:Kg,features:[ae]});var Ex=new ld("NgValueAccessor");
var Fx=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=Fx.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)});Rmb(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`"+ac(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)})};
li.Object.defineProperties(Fx.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)Xea(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create()}}});Fx.\u0275fac=function(a){return new (a||Fx)(D(Ax),D(Bx),D(pd),D(Vv))};Fx.\u0275dir=w({type:Fx,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}});
var Wmb=function(a,b,c,d){this.$implicit=a;this.ngForOf=b;this.index=c;this.count=d};li.Object.defineProperties(Wmb.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 Gx=function(a,b,c){this._viewContainer=a;this._template=b;this._differs=c;this._ngForOf=null;this._ngForOfDirty=!0;this._differ=null};Gx.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)};
Gx.prototype._applyChanges=function(a){var b=this,c=this._viewContainer;Nmb(a,function(h,k,q){null==h.previousIndex?c.createEmbeddedView(b._template,new Wmb(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}Omb(a,function(h){c.get(h.currentIndex).context.$implicit=h.item})};
li.Object.defineProperties(Gx.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)}}});Gx.\u0275fac=function(a){return new (a||Gx)(D(yf),D(xf),D(Ax))};
Gx.\u0275dir=w({type:Gx,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}});
var Hx=function(a,b){this._viewContainerRef=a;this._templateRef=b;this._created=!1};Hx.prototype.create=function(){this._created=!0;this._viewContainerRef.createEmbeddedView(this._templateRef)};Hx.prototype.destroy=function(){this._created=!1;this._viewContainerRef.clear()};var Ix=function(){this._defaultUsed=!1;this._lastCaseCheckIndex=this._caseCount=0;this._lastCasesMatched=!1};Ix.prototype._addCase=function(){return this._caseCount++};
Ix.prototype._addDefault=function(a){this._defaultViews||(this._defaultViews=[]);this._defaultViews.push(a)};Ix.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};
Ix.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()}}};li.Object.defineProperties(Ix.prototype,{ngSwitch:{configurable:!0,enumerable:!0,set:function(a){this._ngSwitch=a;0===this._caseCount&&this._updateDefaultCases(!0)}}});Ix.\u0275fac=function(a){return new (a||Ix)};
Ix.\u0275dir=w({type:Ix,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}});var Jx=function(a,b,c){this.ngSwitch=c;c._addCase();this._view=new Hx(a,b)};Jx.prototype.ngDoCheck=function(){var a=this._view,b=this.ngSwitch._matchCase(this.ngSwitchCase);b&&!a._created?a.create():!b&&a._created&&a.destroy()};Jx.\u0275fac=function(a){return new (a||Jx)(D(yf),D(xf),D(Ix,9))};Jx.\u0275dir=w({type:Jx,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}});
var Kx=function(a,b,c){c._addDefault(new Hx(a,b))};Kx.\u0275fac=function(a){return new (a||Kx)(D(yf),D(xf),D(Ix,9))};Kx.\u0275dir=w({type:Kx,selectors:[["","ngSwitchDefault",""]]});
var Lx=function(a,b,c){this._ngEl=a;this._differs=b;this._renderer=c;this._differ=this._ngStyle=null};Lx.prototype.ngDoCheck=function(){if(this._differ){var a=this._differ.diff(this._ngStyle);a&&this._applyChanges(a)}};Lx.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)};
Lx.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)});Rmb(a,function(c){return b._setStyle(c.key,c.currentValue)})};li.Object.defineProperties(Lx.prototype,{ngStyle:{configurable:!0,enumerable:!0,set:function(a){this._ngStyle=a;!this._differ&&a&&(this._differ=this._differs.find(a).create())}}});Lx.\u0275fac=function(a){return new (a||Lx)(D(pd),D(Bx),D(Vv))};
Lx.\u0275dir=w({type:Lx,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}});
var Mx=function(a){this._viewContainerRef=a;this.ngTemplateOutletInjector=this.ngTemplateOutlet=this.ngTemplateOutletContext=this._viewRef=null};
Mx.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)};
Mx.\u0275fac=function(a){return new (a||Mx)(D(yf))};Mx.\u0275dir=w({type:Mx,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Cc]});
var Nx=function(){};Nx.prototype.createSubscription=function(a,b){return a.subscribe({next:b,error:function(c){throw c;}})};Nx.prototype.dispose=function(a){a.unsubscribe()};Nx.prototype.onDestroy=function(a){a.unsubscribe()};var Ox=function(){};Ox.prototype.createSubscription=function(a,b){return a.then(b,function(c){throw c;})};Ox.prototype.dispose=function(){};Ox.prototype.onDestroy=function(){};
var Xmb=new Ox,Ymb=new Nx,Px=function(a){this._ref=a;this._strategy=this._obj=this._subscription=this._latestValue=null};g=Px.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(Zd(a))return Xmb;if(Lea(a))return Ymb;throw sg();};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())};
Px.\u0275fac=function(a){return new (a||Px)(D(vx,16))};Px.\u0275pipe=wc({name:"async",type:Px,pure:!1});
var Qx=function(){};Qx.prototype.transform=function(a){if(null==a)return null;if("string"!==typeof a)throw sg();return a.toLowerCase()};Qx.\u0275fac=function(a){return new (a||Qx)};Qx.\u0275pipe=wc({name:"lowercase",type:Qx,pure:!0});
var Zmb=/(?:[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,Rx=
function(){};Rx.prototype.transform=function(a){if(null==a)return null;if("string"!==typeof a)throw sg();return a.replace(Zmb,function(b){return b[0].toUpperCase()+b.slice(1).toLowerCase()})};Rx.\u0275fac=function(a){return new (a||Rx)};Rx.\u0275pipe=wc({name:"titlecase",type:Rx,pure:!0});
var ria=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,zg={},iia=/((?:[^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]*)/,lia={};
var $mb=new ld("DATE_PIPE_DEFAULT_TIMEZONE"),Sx=function(a,b){this.locale=a;this.defaultTimezone=b};Sx.prototype.transform=function(a,b,c,d){if(null==a||""===a||a!==a)return null;try{var e;return nia(a,void 0===b?"mediumDate":b,d||this.locale,null!=(e=null!=c?c:this.defaultTimezone)?e:void 0)}catch(f){throw sg();}};Sx.\u0275fac=function(a){return new (a||Sx)(D(qi,16),D($mb,24))};Sx.\u0275pipe=wc({name:"date",type:Sx,pure:!0});
var Tx=function(a){this.differs=a;this.keyValues=[];this.compareFn=tia};Tx.prototype.transform=function(a,b){var c=this;b=void 0===b?tia: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};
Tx.\u0275fac=function(a){return new (a||Tx)(D(Bx,16))};Tx.\u0275pipe=wc({name:"keyvalue",type:Tx,pure:!1});
var wia=/^(\d+)?\.((\d+)(-(\d+))?)?$/;
var Ux=function(a){this._locale=a};
Ux.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=$d(c)[14][0],f=rg(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],v=-1!==k.indexOf(".")?k.split("."):[k.substring(0,k.lastIndexOf("0")+1),k.substring(k.lastIndexOf("0")+
1)],y=v[0],E=v[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,T=q.indexOf("#");d.negPre=q.substring(0,T).replace(/'/g,"");d.negSuf=q.slice(T+L).replace(/'/g,"")}else d.negPre=f+d.posPre,d.negSuf=d.posSuf;return zia(a,d,c,b)}catch(Y){throw sg();}};
Ux.\u0275fac=function(a){return new (a||Ux)(D(qi,16))};Ux.\u0275pipe=wc({name:"number",type:Ux,pure:!0});
var Vx=function(){};Vx.prototype.transform=function(a,b,c){if(null==a)return null;if(!this.supports(a))throw sg();return a.slice(b,c)};Vx.prototype.supports=function(a){return"string"===typeof a||Array.isArray(a)};Vx.\u0275fac=function(a){return new (a||Vx)};Vx.\u0275pipe=wc({name:"slice",type:Vx,pure:!1});
var Wx=function(){};Wx.\u0275fac=function(a){return new (a||Wx)};Wx.\u0275mod=uc({type:Wx});Wx.\u0275inj=gc({});
var ji=new ld("DocumentToken");
var Ah=null,anb=function(){};
var Xx=function(){};Xx.prototype.historyGo=function(){throw Error("Va");};Xx.\u0275fac=function(a){return new (a||Xx)};Xx.\u0275prov=dc({token:Xx,factory:function(){return t(Yx)},providedIn:"platform"});var bnb=new ld("Location Initialized"),Yx=function(a){this._doc=a;this._init()};U(Yx,Xx);Yx.prototype._init=function(){this.location=window.location;this._history=window.history};
Yx.prototype.onPopState=function(a){var b=cnb(this._doc,"window");b.addEventListener("popstate",a,!1);return function(){return b.removeEventListener("popstate",a)}};var dnb=function(a,b){var c=cnb(a._doc,"window");c.addEventListener("hashchange",b,!1);return function(){return c.removeEventListener("hashchange",b)}};g=Yx.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};
li.Object.defineProperties(Yx.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}}});Yx.\u0275fac=function(a){return new (a||Yx)(t(ji))};Yx.\u0275prov=dc({token:Yx,factory:function(){return new Yx(t(ji))},providedIn:"platform"});
var Zx=function(){};Zx.prototype.historyGo=function(){throw Error("Va");};Zx.\u0275fac=function(a){return new (a||Zx)};Zx.\u0275prov=dc({token:Zx,factory:function(){var a=t(ji).location;return new ay(t(Xx),a&&a.origin||"")},providedIn:"root"});var by=new ld("appBaseHref"),ay=function(a,b){this._platformLocation=a;this._removeListenerFns=[];null==b&&(b=Ah.getBaseHref());if(null==b)throw Error("Wa");this._baseHref=b};U(ay,Zx);g=ay.prototype;g.ngOnDestroy=function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()};
g.onPopState=function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),dnb(this._platformLocation,a))};g.getBaseHref=function(){return this._baseHref};g.prepareExternalUrl=function(a){return Aia(this._baseHref,a)};g.path=function(a){var b=this._platformLocation.pathname+Cg(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+Cg(d)))};
g.replaceState=function(a,b,c,d){this._platformLocation.replaceState(a,b,this.prepareExternalUrl(c+Cg(d)))};g.forward=function(){this._platformLocation.forward()};g.back=function(){this._platformLocation.back()};g.getState=function(){return this._platformLocation.getState()};g.historyGo=function(a){var b,c;null==(c=(b=this._platformLocation).historyGo)||c.call(b,void 0===a?0:a)};ay.\u0275fac=function(a){return new (a||ay)(t(Xx),t(by,8))};ay.\u0275prov=dc({token:ay,factory:ay.\u0275fac});
var cy=function(a,b){this._platformLocation=a;this._baseHref="";this._removeListenerFns=[];null!=b&&(this._baseHref=b)};U(cy,Zx);g=cy.prototype;g.ngOnDestroy=function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()};g.onPopState=function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),dnb(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=Aia(this._baseHref,a);return 0<a.length?"#"+a:a};g.pushState=function(a,b,c,d){c=this.prepareExternalUrl(c+Cg(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+Cg(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.getState=function(){return this._platformLocation.getState()};g.historyGo=function(a){var b,c;null==(c=(b=this._platformLocation).historyGo)||c.call(b,void 0===a?0:a)};cy.\u0275fac=function(a){return new (a||cy)(t(Xx),t(by,8))};
cy.\u0275prov=dc({token:cy,factory:cy.\u0275fac});
var dy=function(a){var b=this;this._subject=new Rw;this._urlChangeListeners=[];this._urlChangeSubscription=null;this._locationStrategy=a;a=this._locationStrategy.getBaseHref();this._baseHref=Bia(a.replace(/\/index.html$/,""));this._locationStrategy.onPopState(function(c){b._subject.emit({url:b.path(!0),pop:!0,state:c.state,type:c.type})})};g=dy.prototype;g.ngOnDestroy=function(){var a;null==(a=this._urlChangeSubscription)||a.unsubscribe();this._urlChangeListeners=[]};
g.path=function(a){return this.normalize(this._locationStrategy.path(void 0===a?!1:a))};g.getState=function(){return this._locationStrategy.getState()};g.normalize=function(a){var b=this._baseHref;a=a.replace(/\/index.html$/,"");return Bia(b&&a.startsWith(b)?a.substring(b.length):a)};g.prepareExternalUrl=function(a){a&&"/"!==a[0]&&(a="/"+a);return this._locationStrategy.prepareExternalUrl(a)};
g.go=function(a,b,c){b=void 0===b?"":b;c=void 0===c?null:c;this._locationStrategy.pushState(c,"",a,b);this._notifyUrlChangeListeners(this.prepareExternalUrl(a+Cg(b)),c)};g.replaceState=function(a,b,c){b=void 0===b?"":b;c=void 0===c?null:c;this._locationStrategy.replaceState(c,"",a,b);this._notifyUrlChangeListeners(this.prepareExternalUrl(a+Cg(b)),c)};g.forward=function(){this._locationStrategy.forward()};g.back=function(){this._locationStrategy.back()};
g.historyGo=function(a){var b,c;null==(c=(b=this._locationStrategy).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})};dy.\u0275fac=function(a){return new (a||dy)(t(Zx))};dy.\u0275prov=dc({token:dy,factory:function(){return new dy(t(Zx))},providedIn:"root"});
var enb=function(){};enb.\u0275prov=dc({token:enb,providedIn:"root",factory:function(){return new fnb}});var fnb=function(){var a=t(ji),b=window;this.document=a;this.window=b;this.offset=function(){return[0,0]}};fnb.prototype.setOffset=function(a){Array.isArray(a)?this.offset=function(){return a}:this.offset=a};fnb.prototype.getScrollPosition=function(){return ey(this)?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]};
var gnb=function(a,b){ey(a)&&a.window.scrollTo(b[0],b[1])},ey=function(a){try{return!!a.window&&!!a.window.scrollTo&&"pageXOffset"in a.window}catch(b){return!1}};
var hnb=function(){};
var inb={provide:Ex,useExisting:bc(function(){return Jg}),multi:!0},jnb=new ld("CompositionEventMode"),Jg=function(a,b,c){Dx.call(this,a,b);this._compositionMode=c;this._composing=!1;null==this._compositionMode&&(this._compositionMode=!/android (\d+)/.test((Ah?window.navigator.userAgent:"").toLowerCase()))};U(Jg,Dx);Jg.prototype.writeValue=function(a){this.setProperty("value",null==a?"":a)};Jg.prototype._handleInput=function(a){if(!this._compositionMode||this._compositionMode&&!this._composing)this.onChange(a)};
Jg.prototype._compositionStart=function(){this._composing=!0};Jg.prototype._compositionEnd=function(a){this._composing=!1;this._compositionMode&&this.onChange(a)};Jg.\u0275fac=function(a){return new (a||Jg)(D(Vv),D(pd),D(jnb,8))};
Jg.\u0275dir=w({type:Jg,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&&J("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:[Ge([inb]),ae]});
var fy=new ld("NgValidators"),gy=new ld("NgAsyncValidators"),hy=function(a){return Dia(a)};
var iy=function(){this._rawValidators=[];this._rawAsyncValidators=[];this._onDestroyCallbacks=[]};g=iy.prototype;g._setValidators=function(a){this._rawValidators=a||[];this._composedValidatorFn=Nia(this._rawValidators)};g._setAsyncValidators=function(a){this._rawAsyncValidators=a||[];this._composedAsyncValidatorFn=Pia(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};
li.Object.defineProperties(iy.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 jy=function(){iy.apply(this,arguments);this.valueAccessor=this.name=this._parent=null};U(jy,iy);
var ky=function(){iy.apply(this,arguments)};U(ky,iy);li.Object.defineProperties(ky.prototype,{formDirective:{configurable:!0,enumerable:!0,get:function(){return null}},path:{configurable:!0,enumerable:!0,get:function(){return null}}});
var knb=function(a){this._cd=a};
li.Object.defineProperties(knb.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 ly=function(a){this._cd=a};U(ly,knb);ly.\u0275fac=function(a){return new (a||ly)(D(jy,2))};
ly.\u0275dir=w({type:ly,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(a,b){a&2&&le("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:[ae]});var my=function(a){this._cd=a};U(my,knb);my.\u0275fac=function(a){return new (a||my)(D(ky,10))};
my.\u0275dir=w({type:my,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(a,b){a&2&&le("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:[ae]});
var ny=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=fja(this._rawValidators);this._composedAsyncValidatorFn=gja(this._rawAsyncValidators)},Xia=function(a,b){a._rawValidators=b;a._composedValidatorFn=fja(b)},Yia=function(a,b){a._rawAsyncValidators=b;a._composedAsyncValidatorFn=
gja(b)},lnb=function(a){a=a._rawValidators;return Array.isArray(a)?a.includes(hy):a===hy},$ia=function(a,b){b=void 0===b?{}:b;a.touched=!0;a._parent&&!b.onlySelf&&$ia(a._parent,b)},mnb=function(a,b){b=void 0===b?{}:b;a.touched=!1;a._pendingTouched=!1;a._forEachChild(function(c){mnb(c,{onlySelf:!0})});a._parent&&!b.onlySelf&&a._parent._updateTouched(b)},aja=function(a,b){b=void 0===b?{}:b;a.pristine=!1;a._parent&&!b.onlySelf&&aja(a._parent,b)},nnb=function(a,b){b=void 0===b?{}:b;a.pristine=!0;a._pendingDirty=
!1;a._forEachChild(function(c){nnb(c,{onlySelf:!0})});a._parent&&!b.onlySelf&&a._parent._updatePristine(b)};g=ny.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}))});Ig(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&&(Ig(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 Ig=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&&Ig(a._parent,b)};g=ny.prototype;
g._updateTreeValidity=function(a){a=void 0===a?{emitEvent:!0}:a;this._forEachChild(function(b){return b._updateTreeValidity(a)});Ig(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=Iia(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 Rw;this.statusChanges=new Rw};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){Lg(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};
li.Object.defineProperties(ny.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 oy=function(a,b,c){var d=ny.call,e=eja(b);c=(Lg(b)?b.asyncValidators:c)||null;d.call(ny,this,e,c);this.controls=a;this._initObservables();this._setUpdateStrategy(b);this._setUpControls();Ig(this,{onlySelf:!0,emitEvent:!!this.asyncValidator})};U(oy,ny);var onb=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=oy.prototype;
g.addControl=function(a){var b=void 0===b?{}:b;onb(this,a);Ig(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];Ig(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;hja(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})});Ig(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);Ig(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&&Ig(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 pnb={provide:ky,useExisting:bc(function(){return py})},qnb=Promise.resolve(null),py=function(a,b){ky.call(this);this.submitted=!1;this._directives=new Set;this.ngSubmit=new Rw;this.form=new oy({},Nia(a),Pia(b))};U(py,ky);g=py.prototype;g.ngAfterViewInit=function(){this._setUpdateStrategy()};g.addControl=function(a){var b=this;qnb.then(function(){var c=b._findContainer(a.path);a.control=onb(c,a.name,a.control);Eg(a.control,a);Ig(a.control,{emitEvent:!1});b._directives.add(a)})};
g.removeControl=function(a){var b=this;qnb.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;qnb.then(function(){c.form.get(a.path).setValue(b)})};g.setValue=function(a){this.control.setValue(a)};g.onSubmit=function(a){this.submitted=!0;cja(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};li.Object.defineProperties(py.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}}});
py.\u0275fac=function(a){return new (a||py)(D(fy,10),D(gy,10))};py.\u0275dir=w({type:py,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(a,b){a&1&&J("submit",function(c){return b.onSubmit(c)})("reset",function(){return b.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ge([pnb]),ae]});
var qy=function(a,b,c){a=void 0===a?null:a;var d=ny.call,e=eja(b);c=(Lg(b)?b.asyncValidators:c)||null;d.call(ny,this,e,c);this.defaultValue=null;this._onChange=[];this._pendingChange=!1;this._applyFormState(a);this._setUpdateStrategy(b);this._initObservables();Ig(this,{onlySelf:!0,emitEvent:!!this.asyncValidator});Lg(b)&&b.initialValueIsDefault&&(ija(a)?this.defaultValue=a.value:this.defaultValue=a)};U(qy,ny);g=qy.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)});Ig(this,b)};g.reset=function(a,b){a=void 0===a?this.defaultValue:a;b=void 0===b?{}:b;this._applyFormState(a);nnb(this,b);mnb(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&&aja(this),this._pendingTouched&&$ia(this),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1};g._applyFormState=function(a){ija(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 rnb={provide:jy,useExisting:bc(function(){return ry})},snb=Promise.resolve(null),ry=function(a,b,c,d,e){jy.call(this);this._changeDetectorRef=e;this.control=new qy;this._registered=!1;this.update=new Rw;this._parent=a;this._setValidators(b);this._setAsyncValidators(c);this.valueAccessor=dja(d)};U(ry,jy);g=ry.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);bja(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(){Eg(this.control,this);Ig(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;snb.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&&mg(a);snb.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?Ria(a,this._parent):[a]};
li.Object.defineProperties(ry.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}}});ry.\u0275fac=function(a){return new (a||ry)(D(ky,9),D(fy,10),D(gy,10),D(Ex,10),D(vx,8))};
ry.\u0275dir=w({type:ry,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ge([rnb]),ae,Cc]});
var sy=function(){};sy.\u0275fac=function(a){return new (a||sy)};sy.\u0275dir=w({type:sy,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});
var tnb={provide:Ex,useExisting:bc(function(){return ty}),multi:!0},ty=function(){Kg.apply(this,arguments)};U(ty,Kg);ty.prototype.writeValue=function(a){this.setProperty("value",null==a?"":a)};ty.prototype.registerOnChange=function(a){this.onChange=function(b){a(""==b?null:parseFloat(b))}};ty.\u0275fac=function(){var a;return function(b){return(a||(a=ed(ty)))(b||ty)}}();
ty.\u0275dir=w({type:ty,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(a,b){a&1&&J("input",function(c){return b.onChange(c.target.value)})("blur",function(){return b.onTouched()})},features:[Ge([tnb]),ae]});
var unb={provide:Ex,useExisting:bc(function(){return uy}),multi:!0},vy=function(){};vy.\u0275fac=function(a){return new (a||vy)};vy.\u0275mod=uc({type:vy});vy.\u0275inj=gc({});var wy=function(){this._accessors=[]};wy.prototype.add=function(a,b){this._accessors.push([a,b])};wy.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}};
wy.prototype.select=function(a){var b=this;this._accessors.forEach(function(c){b._isSameGroup(c,a)&&c[1]!==a&&c[1].writeValue(a.value)})};wy.prototype._isSameGroup=function(a,b){return a[0].control?a[0]._parent===b._control._parent&&a[1].name===b.name:!1};wy.\u0275fac=function(a){return new (a||wy)};wy.\u0275prov=dc({token:wy,factory:wy.\u0275fac,providedIn:vy});var uy=function(a,b,c,d){Kg.call(this,a,b);this._registry=c;this._injector=d;this.onChange=function(){}};U(uy,Kg);g=uy.prototype;
g.ngOnInit=function(){this._control=this._injector.get(jy);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)};
uy.\u0275fac=function(a){return new (a||uy)(D(Vv),D(pd),D(wy),D(Qv))};uy.\u0275dir=w({type:uy,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(a,b){a&1&&J("change",function(){return b.onChange()})("blur",function(){return b.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Ge([unb]),ae]});
var vnb=new ld("NgModelWithFormControlWarning"),wnb={provide:jy,useExisting:bc(function(){return xy})},xy=function(a,b,c,d){jy.call(this);this._ngModelWarningConfig=d;this.update=new Rw;this._ngModelWarningSent=!1;this._setValidators(a);this._setAsyncValidators(b);this.valueAccessor=dja(c)};U(xy,jy);
xy.prototype.ngOnChanges=function(a){if(this._isControlChanged(a)){var b=a.form.previousValue;b&&Gg(b,this);Eg(this.form,this);Ig(this.form,{emitEvent:!1})}bja(a,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)};xy.prototype.ngOnDestroy=function(){this.form&&Gg(this.form,this)};xy.prototype.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};xy.prototype._isControlChanged=function(a){return a.hasOwnProperty("form")};
li.Object.defineProperties(xy.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}}});xy.\u0275fac=function(a){return new (a||xy)(D(fy,10),D(gy,10),D(Ex,10),D(vnb,8))};
xy.\u0275dir=w({type:xy,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Ge([wnb]),ae,Cc]});
var xnb={provide:ky,useExisting:bc(function(){return yy})},yy=function(a,b){ky.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 Rw;this._setValidators(a);this._setAsyncValidators(b)};U(yy,ky);g=yy.prototype;g.ngOnChanges=function(a){a.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)};
g.ngOnDestroy=function(){this.form&&(Fg(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))};g.addControl=function(a){var b=this.form.get(a.path);Eg(b,a);Ig(b,{emitEvent:!1});this.directives.push(a);return b};g.removeControl=function(a){Gg(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;cja(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&&(Gg(c||null,b),d instanceof qy&&(Eg(d,b),b.control=d))});this.form._updateTreeValidity({emitEvent:!1})};
g._setUpFormContainer=function(a){var b=this.form.get(a.path);Sia(b,a);Ig(b,{emitEvent:!1})};g._cleanUpFormContainer=function(a){if(this.form){var b=this.form.get(a.path);b&&Fg(b,a)&&Ig(b,{emitEvent:!1})}};g._updateRegistrations=function(){this.form._registerOnCollectionChange(this._onCollectionChange);this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})};g._updateValidators=function(){Sia(this.form,this);this._oldForm&&Fg(this._oldForm,this)};g._checkFormPresent=function(){};
li.Object.defineProperties(yy.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[]}}});yy.\u0275fac=function(a){return new (a||yy)(D(fy,10),D(gy,10))};
yy.\u0275dir=w({type:yy,selectors:[["","formGroup",""]],hostBindings:function(a,b){a&1&&J("submit",function(c){return b.onSubmit(c)})("reset",function(){return b.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ge([xnb]),ae,Cc]});
var ynb={provide:jy,useExisting:bc(function(){return zy})},zy=function(a,b,c,d,e){jy.call(this);this._ngModelWarningConfig=e;this._added=!1;this.update=new Rw;this._ngModelWarningSent=!1;this._parent=a;this._setValidators(b);this._setAsyncValidators(c);this.valueAccessor=dja(d)};U(zy,jy);g=zy.prototype;g.ngOnChanges=function(a){this._added||this._setUpControl();bja(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};
li.Object.defineProperties(zy.prototype,{isDisabled:{configurable:!0,enumerable:!0,set:function(){}},path:{configurable:!0,enumerable:!0,get:function(){return Ria(null==this.name?this.name:this.name.toString(),this._parent)}},formDirective:{configurable:!0,enumerable:!0,get:function(){return this._parent?this._parent.formDirective:null}}});zy.\u0275fac=function(a){return new (a||zy)(D(ky,13),D(fy,10),D(gy,10),D(Ex,10),D(vnb,8))};
zy.\u0275dir=w({type:zy,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Ge([ynb]),ae,Cc]});
var Ay=function(){this._validator=Fia};Ay.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):Fia,this._onChange&&this._onChange())};Ay.prototype.validate=function(a){return this._validator(a)};Ay.prototype.registerOnValidatorChange=function(a){this._onChange=a};Ay.prototype.enabled=function(a){return null!=a};Ay.\u0275fac=function(a){return new (a||Ay)};
Ay.\u0275dir=w({type:Ay,features:[Cc]});var znb={provide:fy,useExisting:bc(function(){return By}),multi:!0},By=function(){Ay.apply(this,arguments);this.inputName="min";this.normalizeInput=function(a){return"number"===typeof a?a:parseFloat(a)};this.createValidator=function(a){return Cia(a)}};U(By,Ay);By.\u0275fac=function(){var a;return function(b){return(a||(a=ed(By)))(b||By)}}();
By.\u0275dir=w({type:By,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&&ge("min",b._enabled?b.min:null)},inputs:{min:"min"},features:[Ge([znb]),ae]});var Anb={provide:fy,useExisting:bc(function(){return Cy}),multi:!0},Cy=function(){Ay.apply(this,arguments);this.inputName="required";this.normalizeInput=mg;this.createValidator=function(){return Dia}};
U(Cy,Ay);Cy.prototype.enabled=function(a){return a};Cy.\u0275fac=function(){var a;return function(b){return(a||(a=ed(Cy)))(b||Cy)}}();Cy.\u0275dir=w({type:Cy,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(a,b){a&2&&ge("required",b._enabled?"":null)},inputs:{required:"required"},features:[Ge([Anb]),ae]});
var Bnb={provide:fy,useExisting:bc(function(){return Dy}),multi:!0},Dy=function(){Ay.apply(this,arguments);this.inputName="maxlength";this.normalizeInput=function(a){return"number"===typeof a?a:parseInt(a,10)};this.createValidator=function(a){return Eia(a)}};U(Dy,Ay);Dy.\u0275fac=function(){var a;return function(b){return(a||(a=ed(Dy)))(b||Dy)}}();
Dy.\u0275dir=w({type:Dy,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(a,b){a&2&&ge("maxlength",b._enabled?b.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Ge([Bnb]),ae]});var Cnb={provide:fy,useExisting:bc(function(){return Ey}),multi:!0},Ey=function(){Ay.apply(this,arguments);this.inputName="pattern";this.normalizeInput=function(a){return a};this.createValidator=function(a){return Gia(a)}};
U(Ey,Ay);Ey.\u0275fac=function(){var a;return function(b){return(a||(a=ed(Ey)))(b||Ey)}}();Ey.\u0275dir=w({type:Ey,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(a,b){a&2&&ge("pattern",b._enabled?b.pattern:null)},inputs:{pattern:"pattern"},features:[Ge([Cnb]),ae]});
var Fy=function(){};Fy.\u0275fac=function(a){return new (a||Fy)};Fy.\u0275mod=uc({type:Fy});Fy.\u0275inj=gc({imports:[vy]});
var Gy=function(){};Gy.\u0275fac=function(a){return new (a||Gy)};Gy.\u0275mod=uc({type:Gy});Gy.\u0275inj=gc({imports:[Fy]});var Hy=function(){};Hy.\u0275fac=function(a){return new (a||Hy)};Hy.\u0275mod=uc({type:Hy});Hy.\u0275inj=gc({imports:[Fy]});
var Mg,jja="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 Ng;
var Qg,Pg;
var oja;
var Dnb;try{Dnb="undefined"!==typeof Intl&&Intl.v8BreakIterator}catch(a){Dnb=!1}
var Iy=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&&!Dnb)&&"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};Iy.\u0275fac=function(a){return new (a||Iy)(t(dw))};Iy.\u0275prov=dc({token:Iy,factory:Iy.\u0275fac,providedIn:"root"});
var Jy=function(a){this._platform=a};Jy.prototype.isDisabled=function(a){return a.hasAttribute("disabled")};Jy.prototype.isVisible=function(a){return!!(a.offsetWidth||a.offsetHeight||"function"===typeof a.getClientRects&&a.getClientRects().length)&&"visible"===getComputedStyle(a).visibility};
var Enb=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===rja(c)||!a.isVisible(c)))return!1;c=b.nodeName.toLowerCase();var d=rja(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};Jy.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")||qja(a);return b&&!this.isDisabled(a)&&this.isVisible(a)};
Jy.\u0275fac=function(a){return new (a||Jy)(t(Iy))};Jy.\u0275prov=dc({token:Jy,factory:Jy.\u0275fac,providedIn:"root"});
var My=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 Fnb(f)};this.endAnchorListener=function(){return Ky(f)};this._enabled=!0;(void 0===e?0:e)||Ly(this)};
My.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 Ly=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))},Ny=function(a){return new Promise(function(b){a._executeOnStable(function(){return b(Gnb(a))})})};
My.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 Gnb=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 Ky(a)},Ky=function(a){(a=a._getRegionBoundary("start"))&&a.focus(void 0);return!!a},Fnb=function(a){(a=a._getRegionBoundary("end"))&&a.focus(void 0);return!!a};g=My.prototype;g.hasAttached=function(){return this._hasAttached};
g._getFirstTabbableElement=function(a){if(this._checker.isFocusable(a)&&Enb(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)&&Enb(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 Hnb=function(a,b){a._startAnchor&&a._endAnchor&&(a._toggleAnchorTabIndex(b,a._startAnchor),a._toggleAnchorTabIndex(b,a._endAnchor))};
My.prototype._executeOnStable=function(a){this._ngZone.isStable?a():this._ngZone.onStable.pipe(Qf()).subscribe(a)};li.Object.defineProperties(My.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 Oy=function(a,b,c){this._checker=a;this._ngZone=b;this._document=c};
Oy.prototype.create=function(a,b){return new My(a,this._checker,this._ngZone,this._document,void 0===b?!1:b)};Oy.\u0275fac=function(a){return new (a||Oy)(t(Jy),t(jg),t(ji))};Oy.\u0275prov=dc({token:Oy,factory:Oy.\u0275fac,providedIn:"root"});var Py=function(a,b){this._elementRef=a;this._focusTrapFactory=b;this._previouslyFocusedElement=null;this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)};g=Py.prototype;
g.ngOnDestroy=function(){this.focusTrap.destroy();this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)};g.ngAfterContentInit=function(){Ly(this.focusTrap);this.autoCapture&&this._captureFocus()};g.ngDoCheck=function(){this.focusTrap.hasAttached()||Ly(this.focusTrap)};g.ngOnChanges=function(a){(a=a.autoCapture)&&!a.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()};
g._captureFocus=function(){this._previouslyFocusedElement=Sg();Ny(this.focusTrap)};li.Object.defineProperties(Py.prototype,{enabled:{configurable:!0,enumerable:!0,get:function(){return this.focusTrap.enabled},set:function(a){this.focusTrap.enabled=Vg(a)}},autoCapture:{configurable:!0,enumerable:!0,get:function(){return this._autoCapture},set:function(a){this._autoCapture=Vg(a)}}});Py.\u0275fac=function(a){return new (a||Py)(D(pd),D(Oy),D(ji))};
Py.\u0275dir=w({type:Py,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[Cc]});
/*

 SPDX-License-Identifier: Apache-2.0
*/
var Oja={};
var Cja="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
var Inb={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 Qy,Nja=function(){if(void 0===Qy){var a=null,b=ca.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:aib,createScript:aib,createScriptURL:aib})}catch(c){ca.console&&ca.console.error(c.message)}Qy=a}else Qy=a}return Qy};
var gh=function(a,b){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=a===Jnb&&b||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=Knb};gh.prototype.implementsGoogStringTypedString=!0;gh.prototype.getTypedStringValue=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var hh=function(a){return a instanceof gh&&a.constructor===gh&&a.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===Knb?a.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},Co=function(a){return new gh(Jnb,a)},Knb={},Jnb={};
var Ry=function(a,b){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_=b===Lnb?a:""};g=Ry.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 vh=function(a){return Uja(a).toString()},Uja=function(a){if(a instanceof Ry&&a.constructor===Ry)return a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_;Na(a);return"type_error:TrustedResourceUrl"},Bo=function(a){return Mnb(hh(a))},Lnb={},Mnb=function(a){var b=Nja();a=b?b.createScriptURL(a):a;return new Ry(a,Lnb)};
var dh=function(a,b){this.privateDoNotAccessOrElseSafeUrlWrappedValue_=b===Nnb?a:""};g=dh.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 fh=function(a){if(a instanceof dh&&a.constructor===dh)return a.privateDoNotAccessOrElseSafeUrlWrappedValue_;Na(a);return"type_error:SafeUrl"},Onb=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Pnb=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");return a.match(Onb)?Sy(a):null},Qnb=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Mja=function(a){if(a instanceof dh)return a;a="object"==typeof a&&a.implementsGoogStringTypedString?a.getTypedStringValue():String(a);return Qnb.test(a)?Sy(a):Pnb(a)},Ij=
function(a,b){if(a instanceof dh)return a;a="object"==typeof a&&a.implementsGoogStringTypedString?a.getTypedStringValue():String(a);if(b&&/^data:/i.test(a)&&(b=Pnb(a)||ih,b.getTypedStringValue()==a))return b;Qnb.test(a)||(a="about:invalid#zClosurez");return Sy(a)},Nnb={},Sy=function(a){return new dh(a,Nnb)},ih=Sy("about:invalid#zClosurez");
var Rnb={},Ty=function(a,b){this.privateDoNotAccessOrElseSafeStyleWrappedValue_=b===Rnb?a:"";this.implementsGoogStringTypedString=!0};Ty.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_};Ty.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_.toString()};
var Snb=function(a){if(a instanceof Ty&&a.constructor===Ty)return a.privateDoNotAccessOrElseSafeStyleWrappedValue_;Na(a);return"type_error:SafeStyle"},Tnb=new Ty("",Rnb),Hja=RegExp("^[-,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),Gja=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),Fja=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"),Ija=/\/\*/;
var Unb={},Uy=function(a,b){this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_=b===Unb?a:"";this.implementsGoogStringTypedString=!0};Uy.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_};Uy.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_.toString()};
var Vnb={},ph=function(a,b,c){this.privateDoNotAccessOrElseSafeHtmlWrappedValue_=c===Vnb?a:"";this.dir_=b;this.implementsGoogStringTypedString=this.implementsGoogI18nBidiDirectionalString=!0};ph.prototype.getDirection=function(){return this.dir_};ph.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString()};ph.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString()};
var Vy=function(a){return qh(a).toString()},qh=function(a){if(a instanceof ph&&a.constructor===ph)return a.privateDoNotAccessOrElseSafeHtmlWrappedValue_;Na(a);return"type_error:SafeHtml"},Pn=function(a){if(a instanceof ph)return a;var b="object"==typeof a,c=null;b&&a.implementsGoogI18nBidiDirectionalString&&(c=a.getDirection());return kh(jib(b&&a.implementsGoogStringTypedString?a.getTypedStringValue():String(a)),c)},Wy=function(a){if(a instanceof ph)return a;a=Pn(a);var b=Vy(a).replace(/(\r\n|\r|\n)/g,
"<br>");return kh(b,a.getDirection())},Rn=function(a,b,c){var d=String(a);if(!Wnb.test(d))throw Error("Za");if(d.toUpperCase()in Xnb)throw Error("Za");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(!Wnb.test(E))throw Error("Za");var h=b[E];if(null!=h){var k=E;var q=h;if(q instanceof gh)q=hh(q);else if("style"==k.toLowerCase()){h=void 0;if(!Fa(q))throw Error("Za");if(!(q instanceof Ty)){var v="";for(h in q)if(Object.prototype.hasOwnProperty.call(q,
h)){if(!/^[-_a-zA-Z0-9]+$/.test(h))throw Error("Ya`"+h);var y=q[h];null!=y&&(y=Array.isArray(y)?y.map(Lja).join(" "):Lja(y),v+=h+":"+y+";")}q=v?new Ty(v,Rnb):Tnb}q=Snb(q)}else{if(/^on/i.test(k))throw Error("Za");if(k.toLowerCase()in Ynb)if(q instanceof Ry)q=vh(q);else if(q instanceof dh)q=fh(q);else if("string"===typeof q)q=(Mja(q)||ih).getTypedStringValue();else throw Error("Za");}q.implementsGoogStringTypedString&&(q=q.getTypedStringValue());k=k+'="'+jib(String(q))+'"';f+=" "+k}}var E=e+f;null==
d?d=[]:Array.isArray(d)||(d=[d]);!0===Inb[a.toLowerCase()]?E+=">":(c=Sn(d),E+=">"+Vy(c)+"</"+a+">",c=c.getDirection());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);return kh(E,c)},Znb=function(a){var b=Pn(tt),c=b.getDirection(),d=[],e=function(f){Array.isArray(f)?f.forEach(e):(f=Pn(f),d.push(Vy(f)),f=f.getDirection(),0==c?c=f:0!=f&&c!=f&&(c=null))};a.forEach(e);return kh(d.join(Vy(b)),c)},Sn=function(a){return Znb(Array.prototype.slice.call(arguments))},kh=function(a,b){var c=Nja();a=c?
c.createHTML(a):a;return new ph(a,b,Vnb)},Wnb=/^[a-zA-Z0-9-]+$/,Ynb={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},Xnb={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},tt=new ph(ca.trustedTypes&&ca.trustedTypes.emptyHTML||"",0,Vnb);
var uh=function(){},jh=function(a){this.privateDoNotAccessOrElseWrappedResourceUrl=a};U(jh,uh);jh.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl.toString()};
var sh=function(){},nh=function(a){this.privateDoNotAccessOrElseWrappedUrl=a};U(nh,sh);nh.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};var Xja=new nh("about:invalid#zTSz",Oja);
var $nb="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=[xh("data"),xh("http"),xh("https"),xh("mailto"),xh("ftp"),new Vja(function(a){return/^[^:]*([/?#]|$)/.test(a)})];
var aob=function(){};U(aob,anb);
var Xy=function(){};U(Xy,aob);var bob=function(a,b,c){a.addEventListener(b,c,!1);return function(){a.removeEventListener(b,c,!1)}};Xy.prototype.dispatchEvent=function(a,b){a.dispatchEvent(b)};Xy.prototype.remove=function(a){a.parentNode&&a.parentNode.removeChild(a)};Xy.prototype.createElement=function(a,b){b=b||document;return b.createElement(a)};var cnb=function(a,b){return"window"===b?window:"document"===b?a:"body"===b?a.body:null};
Xy.prototype.getBaseHref=function(){var a=(cob=cob||document.querySelector("base"))?cob.getAttribute("href"):null;null==a?a=null:(Yy=Yy||document.createElement("a"),Yy.setAttribute("href",a),a=Yy.pathname,a="/"===a.charAt(0)?a:"/"+a);return a};var cob=null,Yy;
new ld("TRANSITION_ID");
var dob=function(){},vmb=function(a){ud.getAngularTestability=function(b,c){b=a.findTestabilityInTree(b,void 0===c?!0:c);if(null==b)throw Error("cb");return b};ud.getAllAngularTestabilities=function(){return Array.from(a._applications.values())};ud.getAllAngularRootElements=function(){return Array.from(a._applications.keys())};ud.frameworkStabilizers||(ud.frameworkStabilizers=[]);ud.frameworkStabilizers.push(function(b){var c=ud.getAllAngularTestabilities(),d=c.length,e=!1,f=function(h){e=e||h;d--;
0==d&&b(e)};c.forEach(function(h){h.whenStable(f)})})};dob.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 Zy=function(){};Zy.prototype.build=function(){return new XMLHttpRequest};Zy.\u0275fac=function(a){return new (a||Zy)};Zy.\u0275prov=dc({token:Zy,factory:Zy.\u0275fac});
var $y=new ld("EventManagerPlugins"),az=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()};az.prototype.addEventListener=function(a,b,c){return this._findPluginFor(b).addEventListener(a,b,c)};az.prototype.addGlobalEventListener=function(a,b,c){return this._findPluginFor(b).addGlobalEventListener(a,b,c)};
az.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);};az.\u0275fac=function(a){return new (a||az)(t($y),t(jg))};az.\u0275prov=dc({token:az,factory:az.\u0275fac});var eob=function(a){this._doc=a};
eob.prototype.addGlobalEventListener=function(a,b,c){a=cnb(this._doc,a);if(!a)throw Error("eb`"+a+"`"+b);return this.addEventListener(a,b,c)};
var bz=function(){this._stylesSet=new Set},fob=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)};bz.prototype.onStylesAdded=function(){};bz.\u0275fac=function(a){return new (a||bz)};bz.\u0275prov=dc({token:bz,factory:bz.\u0275fac});var cz=function(a){this._stylesSet=new Set;this._doc=a;this._hostNodes=new Map;this._hostNodes.set(a.head,[])};U(cz,bz);
cz.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))})};cz.prototype.onStylesAdded=function(a){var b=this;this._hostNodes.forEach(function(c,d){b._addStylesToHost(a,d,c)})};cz.prototype.ngOnDestroy=function(){this._hostNodes.forEach(function(a){return a.forEach(Yja)})};cz.\u0275fac=function(a){return new (a||cz)(t(ji))};cz.\u0275prov=dc({token:cz,factory:cz.\u0275fac});
var gob={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,ez=function(a,b,c){this.eventManager=a;this.sharedStylesHost=b;this.appId=c;this.rendererByCompId=new Map;this.defaultRenderer=new dz(a)};
ez.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 hob(this.eventManager,this.sharedStylesHost,b,this.appId),this.rendererByCompId.set(b.id,c));dz.prototype.setAttribute.call(c,a,c.hostAttr,"");return c;case 1:case 3:return new iob(this.eventManager,this.sharedStylesHost,a,b);default:return this.rendererByCompId.has(b.id)||(a=Bh(b.id,b.styles,[]),fob(this.sharedStylesHost,a),this.rendererByCompId.set(b.id,
this.defaultRenderer)),this.defaultRenderer}};ez.prototype.begin=function(){};ez.prototype.end=function(){};ez.\u0275fac=function(a){return new (a||ez)(t(az),t(cz),t(Llb))};ez.\u0275prov=dc({token:ez,factory:ez.\u0275fac});var dz=function(a){this.eventManager=a;this.data=Object.create(null);this.destroyNode=null};g=dz.prototype;g.destroy=function(){};g.createElement=function(a,b){return b?document.createElementNS(gob[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=gob[d])?a.setAttributeNS(d,b,c):a.setAttribute(b,c)):a.setAttribute(b,c)};g.removeAttribute=function(a,b,c){if(c){var d=gob[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 hob=function(a,b,c,d){dz.call(this,a);this.component=c;a=Bh(d+"-"+c.id,c.styles,[]);fob(b,a);this.contentAttr="_ngcontent-%COMP%".replace(Zja,d+"-"+c.id);this.hostAttr="_nghost-%COMP%".replace(Zja,d+"-"+c.id)};U(hob,dz);hob.prototype.createElement=function(a,b){a=dz.prototype.createElement.call(this,a,b);dz.prototype.setAttribute.call(this,a,this.contentAttr,"");return a};
var iob=function(a,b,c,d){dz.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=Bh(d.id,d.styles,[]);for(a=0;a<d.length;a++)b=document.createElement("style"),b.textContent=d[a],this.shadowRoot.appendChild(b)};U(iob,dz);var fz=function(a,b){return b===a.hostEl?a.shadowRoot:b};g=iob.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 dz.prototype.appendChild.call(this,fz(this,a),b)};g.insertBefore=function(a,b,c){return dz.prototype.insertBefore.call(this,fz(this,a),b,c)};g.removeChild=function(a,b){return dz.prototype.removeChild.call(this,fz(this,a),b)};g.parentNode=function(a){return fz(this,dz.prototype.parentNode.call(this,fz(this,a)))};
var gz=function(a){this._doc=a};U(gz,eob);gz.prototype.supports=function(){return!0};gz.prototype.addEventListener=function(a,b,c){var d=this;a.addEventListener(b,c,!1);return function(){return d.removeEventListener(a,b,c)}};gz.prototype.removeEventListener=function(a,b,c){return a.removeEventListener(b,c)};gz.\u0275fac=function(a){return new (a||gz)(t(ji))};gz.\u0275prov=dc({token:gz,factory:gz.\u0275fac});
var job=["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"},kob={alt:function(a){return a.altKey},control:function(a){return a.ctrlKey},meta:function(a){return a.metaKey},shift:function(a){return a.shiftKey}},
hz=function(a){this._doc=a};U(hz,eob);hz.prototype.supports=function(a){return null!=lob(a)};hz.prototype.addEventListener=function(a,b,c){var d=lob(b),e=mob(d.fullKey,c,this.manager._zone);return this.manager._zone.runOutsideAngular(function(){return bob(a,d.domEventName,e)})};
var lob=function(a){var b=a.toLowerCase().split(".");a=b.shift();if(0===b.length||"keydown"!==a&&"keyup"!==a)return null;var c=nob(b.pop()),d="";job.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},oob=function(a){var b="",c=cka(a);c=c.toLowerCase();" "===c?c="space":"."===c&&(c="dot");job.forEach(function(d){d!=c&&(0,kob[d])(a)&&(b+=d+".")});return b+=c},mob=function(a,b,c){return function(d){oob(d)===
a&&c.runGuarded(function(){return b(d)})}},nob=function(a){switch(a){case "esc":return"escape";default:return a}};hz.\u0275fac=function(a){return new (a||hz)(t(ji))};hz.\u0275prov=dc({token:hz,factory:hz.\u0275fac});
var Gmb=Rha(Umb,"browser",[{provide:dw,useValue:"browser"},{provide:Mha,useValue:function(){var a=new Xy;Ah||(Ah=a)},multi:!0},{provide:ji,useFactory:function(){return Bca=document},deps:[]}]),pob=new ld(""),qob=[{provide:Vw,useClass:dob,deps:[]},{provide:tmb,useClass:Ww,deps:[jg,Xw,Vw]},{provide:Ww,useClass:Ww,deps:[jg,Xw,Vw]}],rob=[{provide:Sha,useValue:"root"},{provide:Vd,useFactory:function(){return new Vd},deps:[]},{provide:$y,useClass:gz,multi:!0,deps:[ji,jg,dw]},{provide:$y,useClass:hz,multi:!0,
deps:[ji]},{provide:ez,useClass:ez,deps:[az,cz,Llb]},{provide:Uv,useExisting:ez},{provide:bz,useExisting:cz},{provide:cz,useClass:cz,deps:[ji]},{provide:az,useClass:az,deps:[$y,jg]},{provide:hnb,useClass:Zy,deps:[]},[]],iz=function(){};[].concat(u(rob),u(qob));iz.\u0275fac=function(a){return new (a||iz)(t(pob,12))};iz.\u0275mod=uc({type:iz});iz.\u0275inj=gc({providers:[].concat(u(rob),u(qob)),imports:[Wx,ux]});
var jz=function(a){this._doc=a};jz.prototype.getTitle=function(){return this._doc.title};jz.prototype.setTitle=function(a){this._doc.title=a||""};jz.\u0275fac=function(a){return new (a||jz)(t(ji))};jz.\u0275prov=dc({token:jz,factory:function(a){var b=null;a?b=new a:b=new jz(t(ji));return b},providedIn:"root"});
new ld("HammerGestureConfig");new ld("HammerLoader");new Nv;new Nv;
var kz=function(){};kz.\u0275fac=function(a){return new (a||kz)};kz.\u0275prov=dc({token:kz,factory:function(a){return a?new (a||kz):t(lz)},providedIn:"root"});var lz=function(a){this._doc=a};U(lz,kz);
lz.prototype.sanitize=function(a,b){if(null==b)return null;switch(a){case 0:return b;case 1:return Fd(b,"HTML")?Ed(b):fea(this._doc,String(b)).toString();case 2:return Fd(b,"Style")?Ed(b):b;case 3:if(Fd(b,"Script"))return Ed(b);throw Error("gb");case 4:return b instanceof Cd&&b.getTypeName(),Fd(b,"URL")?Ed(b):Gd(String(b));case 5:if(Fd(b,"ResourceURL"))return Ed(b);throw Error("hb");default:throw Error("ib`"+a);}};lz.prototype.bypassSecurityTrustHtml=function(a){return new slb(a)};
lz.prototype.bypassSecurityTrustUrl=function(a){return new tlb(a)};lz.prototype.bypassSecurityTrustResourceUrl=function(a){return new ulb(a)};lz.\u0275fac=function(a){return new (a||lz)(t(ji))};lz.\u0275prov=dc({token:lz,factory:function(a){a?a=new a:(a=t(Qv),a=new lz(a.get(ji)));return a},providedIn:"root"});
var mz=function(a){this.decorated=new lz(a)};U(mz,kz);mz.prototype.sanitize=function(a,b){if(null==b)return null;if(b instanceof uh||b instanceof sh||b instanceof ph){if(sob(b,a))return this.decorated.sanitize(a,tob(this,b));throw Error("jb`"+Elb[a]+"`"+b);}return this.decorated.sanitize(a,b)};mz.prototype.bypassSecurityTrustHtml=function(){throw Error("kb");};mz.prototype.bypassSecurityTrustUrl=function(){throw Error("kb");};
mz.prototype.bypassSecurityTrustResourceUrl=function(){throw Error("kb");};var tob=function(a,b){if(null!=b){if(b instanceof ph)return a.decorated.bypassSecurityTrustHtml(Vy(b));if(b instanceof sh)return a.decorated.bypassSecurityTrustUrl(oh(b));if(b instanceof uh)return a.decorated.bypassSecurityTrustResourceUrl(Rja(b))}return null},sob=function(a,b){switch(b){case 1:return a instanceof ph;case 4:return a instanceof sh||a instanceof uh;case 5:return a instanceof uh;case 3:return!1;default:return!1}};
mz.\u0275fac=function(a){return new (a||mz)(t(ji))};mz.\u0275prov=dc({token:mz,factory:mz.\u0275fac});
var nz=function(){};nz.\u0275fac=function(a){return new (a||nz)};nz.\u0275mod=uc({type:nz});nz.\u0275inj=gc({providers:[{provide:Xv,useExisting:kz},{provide:kz,useClass:mz}],imports:[iz]});
var Ch=new Set(["true","1"]),Dh=new Set(["false","0"]);
var uob=function(){},vob=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 Lh=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=Lh.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(),wob(this));this._started=!0};var wob=function(a){Promise.resolve(null).then(function(){return a._onFinish()})};g=Lh.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 oz=function(){return!1},xob=function(){return[]},oka=null;if(gka()||"undefined"!==typeof Element)"undefined"!==typeof window&&"undefined"!==typeof window.document?(oka=document.documentElement,oz=function(a,b){for(;b;){if(b===a)return!0;b=pka(b)}return!1}):oz=function(a,b){return a.contains(b)},xob=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"),yob=function(a){this._driver=a};g=yob.prototype;g.build=function(a,b){b=new zob(b);this._resetContextStyleTimingState(b);return Yh(this,Vh(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(v){k.name=v;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&&(Xh(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=Yh(this,Vh(a.animation),b);return{type:1,matchers:fka(a.expr,b.errors),animation:c,queryCount:b.queryCount,depCount:b.depCount,options:Zh(a.options)}};g.visitSequence=function(a,b){var c=this;return{type:2,steps:a.steps.map(function(d){return Yh(c,d,b)}),options:Zh(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=Yh(c,h,b);e=Math.max(e,b.currentTime);return h});b.currentTime=e;return{type:3,steps:f,options:Zh(a.options)}};
g.visitAnimate=function(a,b){var c=Cka(a.timings,b.errors);b.currentAnimateTimings=c;var d=a.styles?a.styles:Gh({});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=Gh(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),v=q.get(k),y=!0;v&&(e!=d&&e>=v.startTime&&d<=v.endTime&&(b.errors.push(new ic(3010,!1)),y=!1),e=v.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,v=a.steps.map(function(T){T=c._makeStyleAst(T,b);var Y=null!=T.offset?T.offset:Bka(T.styles),ka=0;null!=Y&&(e++,ka=T.offset=Y);k=k||0>ka||1<ka;h=h||ka<q;q=ka;f.push(ka);return T});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;v.forEach(function(T,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(T,b);T.offset=Y;d.styles.push(T)});return d};g.visitReference=function(a,b){return{type:8,animation:Yh(this,Vh(a.animation),b),options:Zh(a.options)}};g.visitAnimateChild=function(a,b){b.depCount++;return{type:9,options:Zh(a.options)}};
g.visitAnimateRef=function(a,b){return{type:10,animation:this.visitReference(a.animation,b),options:Zh(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;Oh(b.collectedStyles,b.currentQuerySelector,new Map);var h=Yh(this,Vh(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:Zh(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"}:Qh(a.timings,b.errors,!0);return{type:12,animation:Yh(this,Vh(a.animation),b),timings:c,options:null}};var zob=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 pz=function(){this._map=new Map};pz.prototype.get=function(a){return this._map.get(a)||[]};pz.prototype.append=function(a,b){var c=this._map.get(a);c||this._map.set(a,c=[]);c.push.apply(c,u(b))};pz.prototype.has=function(a){return this._map.has(a)};pz.prototype.clear=function(){this._map.clear()};
var Aob=RegExp(":enter","g"),Bob=RegExp(":leave","g"),Eka=function(){};g=Eka.prototype;
g.buildKeyframes=function(a,b,c,d,e,f,h,k,q,v){v=void 0===v?[]:v;q=q||new pz;a=new qz(a,b,q,d,e,v,[]);a.options=k;d=k.delay?Ph(k.delay):0;a.currentTimeline.delayNextStep(d);rz(a.currentTimeline,[f],null,a.errors,k);Yh(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&&rz(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=sz(b,a.options),e=b.currentTimeline.currentTime;c=this._visitSubInstructions(c,d,d.options);e!=c&&tz(b,c)}b.previousNode=a};g.visitAnimateRef=function(a,b){var c=sz(b,a.options);tz(c);this.visitReference(a.animation,c);tz(b,c.currentTimeline.currentTime);b.previousNode=a};
g._visitSubInstructions=function(a,b,c){var d=b.currentTimeline.currentTime,e=null!=c.duration?Ph(c.duration):null,f=null!=c.delay?Ph(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 uz(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){Cob(b,a.options,!0);Yh(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=sz(b,f),tz(e),null!=f.delay&&(6==e.previousNode.type&&(vz(e.currentTimeline),e.previousNode=wz),e.delayNextStep(Ph(f.delay))));a.steps.length&&(a.steps.forEach(function(h){return Yh(c,h,e)}),xz(e.currentTimeline),e.subContextCount>d&&tz(e));b.previousNode=a};
g.visitGroup=function(a,b){var c=this,d=[],e=b.currentTimeline.currentTime,f=a.options&&a.options.delay?Ph(a.options.delay):0;a.steps.forEach(function(h){var k=sz(b,a.options);f&&k.delayNextStep(f);Yh(c,h,k);e=Math.max(e,k.currentTimeline.currentTime);d.push(k.currentTimeline)});d.forEach(function(h){return Dob(b.currentTimeline,h)});tz(b,e);b.previousNode=a};
g._visitTiming=function(a,b){return a.dynamic?(a=a.strValue,a=b.params?Wh(a,b.params,b.errors):a,Qh(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&&(yz(b.currentTimeline,b.currentTimeline.duration+c.delay),vz(d));var e=a.style;5==e.type?this.visitKeyframes(e,b):(yz(b.currentTimeline,b.currentTimeline.duration+c.duration),this.visitStyle(e,b),xz(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 rz(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=sz(b).currentTimeline;f.easing=c.easing;a.styles.forEach(function(h){yz(f,(h.offset||0)*e);rz(f,h.styles,h.easing,b.errors,b.options);xz(f)});Dob(b.currentTimeline,f);tz(b,d+e);b.previousNode=a};
g.visitQuery=function(a,b){var c=this,d=b.currentTimeline.currentTime,e=a.options||{},f=e.delay?Ph(e.delay):0;f&&(6===b.previousNode.type||0==d&&0<b.currentTimeline._currentKeyframe.size)&&(vz(b.currentTimeline),b.previousNode=wz);var h=d;d=Eob(b,a.selector,a.limit,a.includeSelf,e.optional?!0:!1,b.errors);b.currentQueryTotal=d.length;var k=null;d.forEach(function(q,v){b.currentQueryIndex=v;v=sz(b,a.options,q);f&&v.delayNextStep(f);q===b.element&&(k=v.currentTimeline);Yh(c,a.animation,v);xz(v.currentTimeline);
h=Math.max(h,v.currentTimeline.currentTime)});b.currentQueryIndex=0;b.currentQueryTotal=0;tz(b,h);k&&(Dob(b.currentTimeline,k),vz(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;Yh(this,a.animation,b);b.previousNode=a;c.currentStaggerTime=d.currentTime-e+(d.startTime-c.currentTimeline.startTime)};
var wz={},qz=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=wz;this.subContextCount=0;this.options={};this.currentStaggerTime=this.currentQueryTotal=this.currentQueryIndex=0;this.currentTimeline=k||new zz(this._driver,b,0);h.push(this.currentTimeline)},Cob=function(a,b,c){if(b){var d=a.options;null!=b.duration&&(d.duration=
Ph(b.duration));null!=b.delay&&(d.delay=Ph(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]=Wh(e[h],f,a.errors))})}}};qz.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 sz=function(a,b,c){b=void 0===b?null:b;c=c||a.element;c=new qz(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();Cob(c,b);c.currentQueryIndex=a.currentQueryIndex;c.currentQueryTotal=a.currentQueryTotal;c.parentContext=a;a.subContextCount++;return c},tz=function(a,b){a.previousNode=wz;a.currentTimeline=a.currentTimeline.fork(a.element,
b);a.timelines.push(a.currentTimeline)};qz.prototype.delayNextStep=function(a){0<a&&this.currentTimeline.delayNextStep(a)};var Eob=function(a,b,c,d,e,f){var h=[];d&&h.push(a.element);0<b.length&&(b=b.replace(Aob,"."+a._enterClassName),b=b.replace(Bob,"."+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};
li.Object.defineProperties(qz.prototype,{params:{configurable:!0,enumerable:!0,get:function(){return this.options.params}}});
var zz=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()};zz.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return 0<this._currentKeyframe.size;default:return!0}};zz.prototype.delayNextStep=function(a){var b=1===this._keyframes.size&&this._pendingStyles.size;this.duration||b?(yz(this,this.currentTime+a),b&&vz(this)):this.startTime+=a};
zz.prototype.fork=function(a,b){xz(this);return new zz(this._driver,a,b||this.currentTime,this._elementTimelineStylesLookup)};zz.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 yz=function(a,b){xz(a);a.duration=b;a._loadKeyframe()};
zz.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 rz=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=Wh(f,c,d);a._pendingStyles.set(e,f);a._localTimelineStyles.has(e)||a._backFill.set(e,a._globalTimelineStyles.get(e)||"*");a._updateStyle(e,f)}},xz=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)}))},vz=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)}},Dob=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)})};
zz.prototype.buildKeyframes=function(){var a=this;xz(this);var b=new Set,c=new Set,d=1===this._keyframes.size&&0===this.duration,e=[];this._keyframes.forEach(function(v,y){v=Sh(v,new Map,a._backFill);v.forEach(function(E,I){"!"===E?b.add(I):"*"===E&&c.add(I)});d||v.set("offset",y/a.duration);e.push(v)});var f=b.size?Xh(b.values()):[],h=c.size?Xh(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)};li.Object.defineProperties(zz.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 uz=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;zz.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(uz,zz);uz.prototype.containsAnimation=function(){return 1<this.keyframes.length};
uz.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=Sh(a[0]);h.set("offset",0);b.push(h);h=Sh(a[0]);h.set("offset",Gka(f));b.push(h);f=a.length-1;for(h=1;h<=f;h++){var k=Sh(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 Fob=function(){};
var Gob=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(" ")),Hob=function(){};U(Hob,Fob);
var ika=function(a,b,c){var d="",e=b.toString().trim();Gob.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 Az=function(){};g=Az.prototype;g.containsElement=function(a,b){return oz(a,b)};g.getParentElement=function(a){return pka(a)};g.query=function(a,b,c){return xob(a,b,c)};g.computeStyle=function(a,b,c){return c||""};g.animate=function(a,b,c,d){return new Lh(c,d)};Az.\u0275fac=function(a){return new (a||Az)};Az.\u0275prov=dc({token:Az,factory:Az.\u0275fac});var Iob=function(){};
var Job={},$h=function(a,b,c){this._triggerName=a;this.ast=b;this._stateStyles=c};$h.prototype.match=function(a,b,c,d){return Jka(this.ast.matchers,a,b,c,d)};$h.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};
$h.prototype.build=function(a,b,c,d,e,f,h,k,q,v){var y=[],E=this.ast.options&&this.ast.options.params||Job;h=this.buildStyles(c,h&&h.params||Job,y);var I=k&&k.params||Job;k=this.buildStyles(d,I,y);var N=new Set,L=new Map,T=new Map,Y="void"===d,ka;E={params:Kka(I,E),delay:null==(ka=this.ast.options)?void 0:ka.delay};a=v?[]:Fka(a,b,this.ast.animation,e,f,h,k,E,q,y);var ha=0;a.forEach(function(ra){ha=Math.max(ra.duration+ra.delay,ha)});if(y.length)return Ika(b,this._triggerName,c,d,Y,h,k,[],[],L,T,ha,
y);a.forEach(function(ra){var Da=ra.element,Ja=Oh(L,Da,new Set);ra.preStyleProps.forEach(function(La){return Ja.add(La)});var Ba=Oh(T,Da,new Set);ra.postStyleProps.forEach(function(La){return Ba.add(La)});Da!==b&&N.add(Da)});y=Xh(N.values());return Ika(b,this._triggerName,c,d,Y,h,k,a,y,L,T,ha)};var Kob=function(a,b){this.styles=a;this.defaultParams=b};
Kob.prototype.buildStyles=function(a,b){var c=new Map,d=Rh(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=Wh(f,d,b));h=Nh(h);f=ika(h,f,b);c.set(h,f)})});return c};
var Lob=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 Kob(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 $h(a,e,d.states))});this.fallbackTransition=Lka(a,this.states)},Mob=function(a,b,c,d,e){return a.transitionFactories.find(function(f){return f.match(b,c,
d,e)})||null};
var Nob=new pz,Oob=function(a,b,c){this.bodyNode=a;this._driver=b;this._normalizer=c;this._animations=new Map;this._playersById=new Map;this.players=[]};g=Oob.prototype;g.register=function(a,b){var c=[];b=(new yob(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,Nob,e),b.forEach(function(k){var q=Oh(h,k.element,new Map);k.postStyleProps.forEach(function(v){return q.set(v,null)})})):(e.push(new ic(3300,!1)),b=[]);if(e.length)throw new ic(3504,!1);h.forEach(function(k,q){k.forEach(function(v,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=Mh(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 Pob=[],Qob={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Oka={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Bz=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=Rh(a),delete a.value,this.options=a):this.options={};this.options.params||(this.options.params={})},Rob=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])})}};li.Object.defineProperties(Bz.prototype,{params:{configurable:!0,enumerable:!0,get:function(){return this.options.params}}});var Sob=new Bz("void"),Cz=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;bi(b,this._hostClassName)};g=Cz.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=Oh(this._elementListeners,a,[]),h={name:b,phase:c,callback:d};f.push(h);var k=Oh(this._engine.statesByElement,a,new Map);k.has(b)||(bi(a,"ng-trigger"),bi(a,"ng-trigger-"+b),k.set(b,Sob));return function(){Dz(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 Ez(this.id,b,a),k=this._engine.statesByElement.get(a);k||(bi(a,"ng-trigger"),bi(a,"ng-trigger-"+b),this._engine.statesByElement.set(a,k=new Map));var q=k.get(b),v=new Bz(c,this.id);c&&c.hasOwnProperty("value")||!q||Rob(v,q.options);k.set(b,v);q||(q=Sob);if("void"!==v.value&&q.value===v.value){if(!Uka(q.params,v.params)){d=[];var y=f.fallbackTransition.buildStyles(q.value,q.params,d),E=f.fallbackTransition.buildStyles(v.value,
v.params,d);d.length?this._engine.reportError(d):Dz(this._engine,function(){Uh(a,y);Th(a,E)})}}else{c=Oh(this._engine.playersByElement,a,[]);c.forEach(function(N){N.namespaceId==e.id&&N.triggerName==b&&N.queued&&N.destroy()});k=Mob(f,q.value,v.value,a,v.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:v,player:h,isFallbackTransition:I});I||(bi(a,"ng-animate-queued"),h.onStart(function(){ci(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 Fz=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))};
Cz.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=Tob(c._engine,e);f.size?f.forEach(function(h){return Uob(h,e,b,!1,!0)}):Fz(c,e)}});Vob(this._engine,function(){return d.forEach(function(e){return Fz(c,e)})})};
var Uob=function(a,b,c,d,e){var f=a._engine.statesByElement.get(b),h=new Map;if(f){var k=[];f.forEach(function(q,v){h.set(v,q.value);a._triggers.has(v)&&(q=a.trigger(b,v,"void",e))&&k.push(q)});if(k.length){Wob(a._engine,a.id,b,!0,c,h);if(d)Mh(k).onDone(function(){return di(a._engine,b)});return!0}}return!1},Xob=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)||Sob,q=new Bz("void"),v=new Ez(a.id,f,b);a._engine.totalQueuedPlayers++;a._queue.push({element:b,triggerName:f,transition:h,fromState:k,toState:q,player:v,isFallbackTransition:!0})}})}};
Cz.prototype.removeNode=function(a,b){var c=this,d=this._engine;a.childElementCount&&this._signalRemovalForInnerTriggers(a,b);if(!Uob(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}}Xob(this,a);e?Wob(d,this.id,a,!1,b):(e=a.__ng_removed,e&&e!==Qob||(Dz(d,function(){return Fz(c,a)}),Yob(d,a),d._onRemovalComplete(a,b)))}};
Cz.prototype.insertNode=function(a){bi(a,this._hostClassName)};
var Zob=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?Dz(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})};Cz.prototype.destroy=function(a){this.players.forEach(function(b){return b.destroy()});this._signalRemovalForInnerTriggers(this.hostElement,a)};
var Gz=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=Gz.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 Cz(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);Dz(this,function(){c.namespacesByHostElement.delete(d.hostElement);delete c._namespaceLookup[a];var e=c._namespaceList.indexOf(d);0<=e&&c._namespaceList.splice(e,1)});Vob(this,function(){return d.destroy(b)})}};g._fetchNamespace=function(a){return this._namespaceLookup[a]};
var Tob=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};Gz.prototype.trigger=function(a,b,c,d){return ai(b)&&(a=this._fetchNamespace(a))?(a.trigger(b,c,d),!0):!1};
Gz.prototype.insertNode=function(a,b,c,d){if(ai(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 $ob=function(a,b,c){c?a.disabledNodes.has(b)||(a.disabledNodes.add(b),bi(b,"ng-animate-disabled")):a.disabledNodes.has(b)&&(a.disabledNodes.delete(b),ci(b,"ng-animate-disabled"))};
Gz.prototype.removeNode=function(a,b,c,d){if(ai(b)){var e=a?this._fetchNamespace(a):null;e?e.removeNode(b,d):Wob(this,a,b,!1,d);c&&(c=this.namespacesByHostElement.get(b))&&c.id!==a&&c.removeNode(b,d)}else this._onRemovalComplete(b,d)};var Wob=function(a,b,c,d,e,f){a.collectedLeaveElements.push(c);c.__ng_removed={namespaceId:b,setForRemoval:e,hasAnimation:d,removedBeforeQueried:!1,previousTriggersValues:f}};
Gz.prototype.listen=function(a,b,c,d,e){return ai(b)?this._fetchNamespace(a).listen(b,c,d,e):function(){}};Gz.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 Yob=function(a,b){var c=a.driver.query(b,".ng-trigger",!0);c.forEach(function(d){return apb(a,d)});0!=a.playersByQueriedElement.size&&(c=a.driver.query(b,".ng-animating",!0),c.forEach(function(d){return bpb(a,d)}))},apb=function(a,b){(a=a.playersByElement.get(b))&&a.forEach(function(c){c.queued?c.markedForDestroy=!0:c.destroy()})},bpb=function(a,b){(a=a.playersByQueriedElement.get(b))&&a.forEach(function(c){return c.finish()})},di=function(a,b){var c=b.__ng_removed;if(c&&c.setForRemoval){b.__ng_removed=
Qob;if(c.namespaceId){Yob(a,b);var d=a._fetchNamespace(c.namespaceId);d&&Fz(d,b)}a._onRemovalComplete(b,c.setForRemoval)}var e;(null==(e=b.classList)?0:e.contains("ng-animate-disabled"))&&$ob(a,b,!1);a.driver.query(b,".ng-animate-disabled",!0).forEach(function(f){$ob(a,f,!1)})};
Gz.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++)bi(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++)di(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)Mh(c).onDone(function(){e.forEach(function(f){return f()})});else e.forEach(function(f){return f()})}};
Gz.prototype.reportError=function(){throw new ic(3402,!1);};
Gz.prototype._flushAnimations=function(a,b){var c=this,d=new pz,e=[],f=new Map,h=[],k=new Map,q=new Map,v=new Map,y=new Set;this.disabledNodes.forEach(function(Sa){y.add(Sa);Sa=c.driver.query(Sa,".ng-animate-queued",!0);for(var vb=0;vb<Sa.length;vb++)y.add(Sa[vb])});var E=this.bodyNode,I=Array.from(this.statesByElement.keys()),N=Qka(I,this.collectedEnterElements),L=new Map,T=0;N.forEach(function(Sa,vb){var eb="ng-enter"+T++;L.set(vb,eb);Sa.forEach(function(yb){return bi(yb,eb)})});for(var Y=[],ka=
new Set,ha=new Set,ra=0;ra<this.collectedLeaveElements.length;ra++){var Da=this.collectedLeaveElements[ra],Ja=Da.__ng_removed;Ja&&Ja.setForRemoval&&(Y.push(Da),ka.add(Da),Ja.hasAnimation?this.driver.query(Da,".ng-star-inserted",!0).forEach(function(Sa){return ka.add(Sa)}):ha.add(Da))}var Ba=new Map,La=Qka(I,Array.from(ka));La.forEach(function(Sa,vb){var eb="ng-leave"+T++;Ba.set(vb,eb);Sa.forEach(function(yb){return bi(yb,eb)})});a.push(function(){N.forEach(function(Sa,vb){var eb=L.get(vb);Sa.forEach(function(yb){return ci(yb,
eb)})});La.forEach(function(Sa,vb){var eb=Ba.get(vb);Sa.forEach(function(yb){return ci(yb,eb)})});Y.forEach(function(Sa){di(c,Sa)})});var hb=[],fb=[];for(a=this._namespaceList.length-1;0<=a;a--)Zob(this._namespaceList[a],b).forEach(function(Sa){var vb=Sa.player,eb=Sa.element;hb.push(vb);if(c.collectedEnterElements.length){var yb=eb.__ng_removed;if(yb&&yb.setForMove){if(yb.previousTriggersValues&&yb.previousTriggersValues.has(Sa.triggerName)){yb=yb.previousTriggersValues.get(Sa.triggerName);var Ib=
c.statesByElement.get(Sa.element);if(Ib&&Ib.has(Sa.triggerName)){var ec=Ib.get(Sa.triggerName);ec.value=yb;Ib.set(Sa.triggerName,ec)}}vb.destroy();return}}yb=!E||!c.driver.containsElement(E,eb);Ib=Ba.get(eb);ec=L.get(eb);var Ac=c._buildInstruction(Sa,d,ec,Ib,yb);if(Ac.errors&&Ac.errors.length)fb.push(Ac);else if(yb)vb.onStart(function(){return Uh(eb,Ac.fromStyles)}),vb.onDestroy(function(){return Th(eb,Ac.toStyles)}),e.push(vb);else if(Sa.isFallbackTransition)vb.onStart(function(){return Uh(eb,Ac.fromStyles)}),
vb.onDestroy(function(){return Th(eb,Ac.toStyles)}),e.push(vb);else{var se=[];Ac.timelines.forEach(function(id){id.stretchStartingKeyframe=!0;c.disabledNodes.has(id.element)||se.push(id)});Ac.timelines=se;d.append(eb,Ac.timelines);h.push({instruction:Ac,player:vb,element:eb});Ac.queriedElements.forEach(function(id){return Oh(k,id,[]).push(vb)});Ac.preStyleProps.forEach(function(id,Dd){if(id.size){var eh=q.get(Dd);eh||q.set(Dd,eh=new Set);id.forEach(function(EK,Vl){return eh.add(Vl)})}});Ac.postStyleProps.forEach(function(id,
Dd){var eh=v.get(Dd);eh||v.set(Dd,eh=new Set);id.forEach(function(EK,Vl){return eh.add(Vl)})})}});if(fb.length){var Tb=[];fb.forEach(function(){Tb.push(new ic(3505,!1))});hb.forEach(function(Sa){return Sa.destroy()});this.reportError(Tb)}var va=new Map,Ca=new Map;h.forEach(function(Sa){var vb=Sa.element;d.has(vb)&&(Ca.set(vb,vb),c._beforeAnimationBuild(Sa.player.namespaceId,Sa.instruction,va))});e.forEach(function(Sa){var vb=Sa.element;c._getPreviousPlayers(vb,!1,Sa.namespaceId,Sa.triggerName,null).forEach(function(eb){Oh(va,
vb,[]).push(eb);eb.destroy()})});var Ia=Y.filter(function(Sa){return Vka(Sa,q,v)}),Xa=new Map;Pka(Xa,this.driver,ha,v,"*").forEach(function(Sa){Vka(Sa,q,v)&&Ia.push(Sa)});var $a=new Map;N.forEach(function(Sa){Pka($a,c.driver,new Set(Sa),q,"!")});Ia.forEach(function(Sa){var vb=Xa.get(Sa),eb=$a.get(Sa),yb,Ib;Xa.set(Sa,new Map([].concat(u(Array.from(null!=(yb=null==vb?void 0:vb.entries())?yb:[])),u(Array.from(null!=(Ib=null==eb?void 0:eb.entries())?Ib:[])))))});var jc=[],Va=[],Ya={};h.forEach(function(Sa){var vb=
Sa.element,eb=Sa.player,yb=Sa.instruction;if(d.has(vb))if(y.has(vb))eb.onDestroy(function(){return Th(vb,yb.toStyles)}),eb.disabled=!0,eb.totalTime=yb.totalTime,e.push(eb);else{var Ib=Ya;if(1<Ca.size){Sa=vb;for(var ec=[];Sa=Sa.parentNode;){var Ac=Ca.get(Sa);if(Ac){Ib=Ac;break}ec.push(Sa)}ec.forEach(function(se){return Ca.set(se,Ib)})}Sa=c._buildAnimation(eb.namespaceId,yb,va,f,$a,Xa);cpb(eb,Sa);Ib===Ya?jc.push(eb):((Sa=c.playersByElement.get(Ib))&&Sa.length&&(eb.parentPlayer=Mh(Sa)),e.push(eb))}else Uh(vb,
yb.fromStyles),eb.onDestroy(function(){return Th(vb,yb.toStyles)}),Va.push(eb),y.has(vb)&&e.push(eb)});Va.forEach(function(Sa){var vb=f.get(Sa.element);vb&&vb.length&&(vb=Mh(vb),cpb(Sa,vb))});e.forEach(function(Sa){Sa.parentPlayer?dpb(Sa,Sa.parentPlayer):Sa.destroy()});for(b=0;b<Y.length;b++)if(ha=Y[b],a=ha.__ng_removed,ci(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),ra=0;ra<I.length;ra++)(Da=k.get(I[ra]))&&
Da.length&&a.push.apply(a,u(Da));a=a.filter(function(Sa){return!Sa.destroyed});a.length?Rka(this,ha,a):di(this,ha)}Y.length=0;jc.forEach(function(Sa){c.players.push(Sa);Sa.onDone(function(){Sa.destroy();var vb=c.players.indexOf(Sa);c.players.splice(vb,1)});Sa.play()});return jc};var Dz=function(a,b){a._flushFns.push(b)},Vob=function(a,b){a._whenQuietFns.push(b)};
Gz.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};
Gz.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$1632:f.$jscomp$loop$prop$players$1632},k=h.next()){k=k.value.element;var q=k!==e;f.$jscomp$loop$prop$players$1632=Oh(c,k,[]);this._getPreviousPlayers(k,q,a,d,b.toState).forEach(function(v){return function(y){var E=y._player;E.beforeDestroy&&E.beforeDestroy();y.destroy();v.$jscomp$loop$prop$players$1632.push(y)}}(f))}Uh(e,
b.fromStyles)};
Gz.prototype._buildAnimation=function(a,b,c,d,e,f){var h=this,k=b.triggerName,q=b.element,v=[],y=new Set,E=new Set,I=b.timelines.map(function(L){var T=L.element;y.add(T);var Y=T.__ng_removed;if(Y&&Y.removedBeforeQueried)return new Lh(L.duration,L.delay);Y=T!==q;var ka=Tka((c.get(T)||Pob).map(function(Da){return Da._player})).filter(function(Da){return Da.element?Da.element===T:!1}),ha=e.get(T),ra=f.get(T);ha=jka(L.keyframes,ha,ra);ka=h._buildPlayer(L,ha,ka);L.subTimeline&&d&&E.add(T);Y&&(L=new Ez(a,
k,T),cpb(L,ka),v.push(L));return ka});v.forEach(function(L){Oh(h.playersByQueriedElement,L.element,[]).push(L);L.onDone(function(){var T=h.playersByQueriedElement,Y=L.element,ka=T.get(Y);if(ka){if(ka.length){var ha=ka.indexOf(L);ka.splice(ha,1)}0==ka.length&&T.delete(Y)}return ka})});y.forEach(function(L){return bi(L,"ng-animating")});var N=Mh(I);N.onDestroy(function(){y.forEach(function(L){return ci(L,"ng-animating")});Th(q,b.toStyles)});E.forEach(function(L){Oh(d,L,[]).push(N)});return N};
Gz.prototype._buildPlayer=function(a,b,c){return 0<b.length?this.driver.animate(a.element,b,a.duration,a.delay,a.easing,c):new Lh(a.duration,a.delay)};
var Ez=function(a,b,c){this.namespaceId=a;this.triggerName=b;this.element=c;this._player=new Lh;this._containsRealPlayer=!1;this._queuedCallbacks=new Map;this.disabled=this.markedForDestroy=this.destroyed=!1;this.queued=!0;this.totalTime=0},cpb=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)},dpb=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=Ez.prototype;g._queueEvent=function(a,b){Oh(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 Hz=function(a,b,c){var d=this;this.bodyNode=a;this._driver=b;this._normalizer=c;this._triggerCache={};this.onRemovalComplete=function(){};this._transitionEngine=new Gz(a,b,c);this._timelineEngine=new Oob(a,b,c);this._transitionEngine.onRemovalComplete=function(e,f){return d.onRemovalComplete(e,f)}};g=Hz.prototype;
g.registerTrigger=function(a,b,c,d,e){a=a+"-"+d;c=this._triggerCache[a];if(!c){c=[];e=(new yob(this._driver)).build(e,c,[]);if(c.length)throw new ic(3404,!1);c=new Lob(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){$ob(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)};li.Object.defineProperties(Hz.prototype,{players:{configurable:!0,enumerable:!0,get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}});
var ei=function(a,b,c){this._element=a;this._startStyles=b;this._endStyles=c;this._state=0;var d=epb.get(a);d||epb.set(a,d=new Map);this._initialStyles=d};ei.prototype.start=function(){1>this._state&&(this._startStyles&&Th(this._element,this._startStyles,this._initialStyles),this._state=1)};ei.prototype.finish=function(){this.start();2>this._state&&(Th(this._element,this._initialStyles),this._endStyles&&(Th(this._element,this._endStyles),this._endStyles=null),this._state=1)};
ei.prototype.destroy=function(){this.finish();3>this._state&&(epb.delete(this._element),this._startStyles&&(Uh(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Uh(this._element,this._endStyles),this._endStyles=null),Th(this._element,this._initialStyles),this._state=3)};var epb=new WeakMap;
var Iz=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=Iz.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};
li.Object.defineProperties(Iz.prototype,{totalTime:{configurable:!0,enumerable:!0,get:function(){return this._delay+this._duration}}});
var fpb=function(){};g=fpb.prototype;g.containsElement=function(a,b){return oz(a,b)};g.getParentElement=function(a){return pka(a)};g.query=function(a,b,c){return xob(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(v){return v instanceof Iz});0!==c&&0!==d||e.forEach(function(v){v.currentSnapshot.forEach(function(y,E){return k.set(E,y)})});var q=ska(b).map(function(v){return Sh(v)});q=yka(a,q,k);b=Xka(a,q);return new Iz(a,q,h,b)};
var Jz=function(a,b){this._nextAnimationId=0;this._renderer=a.createRenderer(b.body,{id:"0",encapsulation:2,styles:[],data:{animation:[]}})};U(Jz,uob);Jz.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 gpb(b,this._renderer)};Jz.\u0275fac=function(a){return new (a||Jz)(t(Uv),t(ji))};Jz.\u0275prov=dc({token:Jz,factory:Jz.\u0275fac});
var gpb=function(a,b){this._id=a;this._renderer=b};U(gpb,vob);gpb.prototype.create=function(a,b){return new hpb(this._id,a,b||{},this._renderer)};var hpb=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=hpb.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,qc.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 Kz=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)}};
Kz.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 Lz("",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 Mz(this,f,d,this.engine)};
Kz.prototype.begin=function(){this._cdRecurDepth++;this.delegate.begin&&this.delegate.begin()};Kz.prototype._scheduleCountTask=function(){var a=this;this.promise.then(function(){a._microtaskId++})};
var ipb=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]))};
Kz.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()};Kz.\u0275fac=function(a){return new (a||Kz)(t(Uv),t(Hz),t(jg))};Kz.\u0275prov=dc({token:Kz,factory:Kz.\u0275fac});var Lz=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=Lz.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)};li.Object.defineProperties(Lz.prototype,{data:{configurable:!0,enumerable:!0,get:function(){return this.delegate.data}}});
var Mz=function(a,b,c,d){Lz.call(this,b,c,d);this.factory=a;this.namespaceId=b};U(Mz,Lz);Mz.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)};
Mz.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){ipb(d.factory,f._data||-1,c,f)})}return this.delegate.listen(a,b,c)};
var Nz=function(a,b,c){Hz.call(this,a.body,b,c)};U(Nz,Hz);Nz.prototype.ngOnDestroy=function(){this.flush()};Nz.\u0275fac=function(a){return new (a||Nz)(t(ji),t(Iob),t(Fob))};Nz.\u0275prov=dc({token:Nz,factory:Nz.\u0275fac});var jpb=[{provide:uob,useClass:Jz},{provide:Fob,useFactory:function(){return new Hob}},{provide:Hz,useClass:Nz},{provide:Uv,useFactory:function(a,b,c){return new Kz(a,b,c)},deps:[ez,Hz,jg]}],kpb=[{provide:Iob,useFactory:function(){return new fpb}},{provide:ew,useValue:"BrowserAnimations"}].concat(u(jpb));
[{provide:Iob,useClass:Az},{provide:ew,useValue:"NoopAnimations"}].concat(u(jpb));
var Oz=function(){};Oz.\u0275fac=function(a){return new (a||Oz)};Oz.\u0275mod=uc({type:Oz});Oz.\u0275inj=gc({providers:kpb,imports:[nz]});
var lpb=new ld("cdk-input-modality-detector-options"),mpb={ignoreKeys:[18,17,224,91,16]},Pz=Og({passive:!0,capture:!0}),Qz=function(a,b,c,d){var e=this;this._platform=a;this._mostRecentTarget=null;this._modality=new S.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=Tg(f))};this._onMousedown=function(f){650>Date.now()-e._lastTouchMs||
(e._modality.next(fi(f)?"keyboard":"mouse"),e._mostRecentTarget=Tg(f))};this._onTouchstart=function(f){gi(f)?e._modality.next("keyboard"):(e._lastTouchMs=Date.now(),e._modality.next("touch"),e._mostRecentTarget=Tg(f))};this._options=Object.assign({},mpb,d);this.modalityDetected=this._modality.pipe($f(1));this.modalityDetected.pipe(Pf());a.isBrowser&&b.runOutsideAngular(function(){c.addEventListener("keydown",e._onKeydown,Pz);c.addEventListener("mousedown",e._onMousedown,Pz);c.addEventListener("touchstart",
e._onTouchstart,Pz)})};Qz.prototype.ngOnDestroy=function(){this._modality.complete();this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Pz),document.removeEventListener("mousedown",this._onMousedown,Pz),document.removeEventListener("touchstart",this._onTouchstart,Pz))};Qz.\u0275fac=function(a){return new (a||Qz)(t(Iy),t(jg),t(ji),t(lpb,8))};Qz.\u0275prov=dc({token:Qz,factory:Qz.\u0275fac,providedIn:"root"});
var npb=new ld("cdk-focus-monitor-default-options"),Rz=Og({passive:!0,capture:!0}),Sz=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 S.Subject;this._rootNodeFocusAndBlurListener=function(h){for(var k=Tg(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};
Sz.prototype.monitor=function(a,b){b=void 0===b?!1:b;a=Xg(a);if(!this._platform.isBrowser||1!==a.nodeType)return(0,S.of)(null);var c=Rg(a)||this._getDocument(),d=this._elementInfo.get(a);if(d)return b&&(d.checkChildren=!0),d.subject;b={checkChildren:b,subject:new S.Subject,rootNode:c};this._elementInfo.set(a,b);this._registerGlobalListeners(b);return b.subject};
Sz.prototype.stopMonitoring=function(a){a=Xg(a);var b=this._elementInfo.get(a);b&&(b.subject.complete(),this._setClasses(a),this._elementInfo.delete(a),this._removeGlobalListeners(b))};var Tz=function(a,b,c,d){b=Xg(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=Sz.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=Tg(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,Rz);c.addEventListener("blur",b._rootNodeFocusAndBlurListener,Rz)});this._rootNodeFocusListenerCount.set(c,a+1);1===++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){b._getWindow().addEventListener("focus",b._windowFocusListener)}),
this._inputModalityDetector.modalityDetected.pipe(cg(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,Rz),a.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Rz),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};Sz.\u0275fac=function(a){return new (a||Sz)(t(jg),t(Iy),t(Qz),t(ji,8),t(npb,8))};Sz.\u0275prov=dc({token:Sz,factory:Sz.\u0275fac,providedIn:"root"});
var Uz=function(a,b){this._elementRef=a;this._focusMonitor=b;this.cdkFocusChange=new Rw};Uz.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)})};Uz.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef);this._monitorSubscription&&this._monitorSubscription.unsubscribe()};
Uz.\u0275fac=function(a){return new (a||Uz)(D(pd),D(Sz))};Uz.\u0275dir=w({type:Uz,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}});
var Vz=function(a,b){this._platform=a;this._document=b},opb=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};
Vz.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=opb(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")}};
Vz.\u0275fac=function(a){return new (a||Vz)(t(Iy),t(ji))};Vz.\u0275prov=dc({token:Vz,factory:Vz.\u0275fac,providedIn:"root"});
var ppb=new ld("liveAnnouncerElement",{providedIn:"root",factory:$ka}),qpb=new ld("LIVE_ANNOUNCER_DEFAULT_OPTIONS");
var Wz=function(){};Wz.prototype.create=function(a){return"undefined"===typeof MutationObserver?null:new MutationObserver(a)};Wz.\u0275fac=function(a){return new (a||Wz)};Wz.\u0275prov=dc({token:Wz,factory:Wz.\u0275fac,providedIn:"root"});var Xz=function(a){this._mutationObserverFactory=a;this._observedElements=new Map};g=Xz.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=Xg(a);return new S.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 S.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)}};Xz.\u0275fac=function(a){return new (a||Xz)(t(Wz))};Xz.\u0275prov=dc({token:Xz,factory:Xz.\u0275fac,providedIn:"root"});
var Yz=function(a,b,c){this._contentObserver=a;this._elementRef=b;this._ngZone=c;this.event=new Rw;this._disabled=!1;this._currentSubscription=null};Yz.prototype.ngAfterContentInit=function(){this._currentSubscription||this.disabled||this._subscribe()};Yz.prototype.ngOnDestroy=function(){this._unsubscribe()};
Yz.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(Nf(a.debounce)):b).subscribe(a.event)})};Yz.prototype._unsubscribe=function(){var a;null==(a=this._currentSubscription)||a.unsubscribe()};
li.Object.defineProperties(Yz.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){(this._disabled=Vg(a))?this._unsubscribe():this._subscribe()}},debounce:{configurable:!0,enumerable:!0,get:function(){return this._debounce},set:function(a){this._debounce=Yg(a);this._subscribe()}}});Yz.\u0275fac=function(a){return new (a||Yz)(D(Xz),D(pd),D(jg))};
Yz.\u0275dir=w({type:Yz,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]});var Zz=function(){};Zz.\u0275fac=function(a){return new (a||Zz)};Zz.\u0275mod=uc({type:Zz});Zz.\u0275inj=gc({providers:[Wz]});
var $z=function(a,b,c,d){this._ngZone=b;this._defaultOptions=d;this._document=c;this._liveElement=a||this._createLiveElement()};
$z.prototype.announce=function(a){var b=qc.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})};$z.prototype.clear=function(){this._liveElement&&(this._liveElement.textContent="")};
$z.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};
$z.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};$z.\u0275fac=function(a){return new (a||$z)(t(ppb,8),t(jg),t(ji),t(qpb,8))};
$z.\u0275prov=dc({token:$z,factory:$z.\u0275fac,providedIn:"root"});
var aA=function(a){a._applyBodyHighContrastModeCssClasses()};aA.\u0275fac=function(a){return new (a||aA)(t(Vz))};aA.\u0275mod=uc({type:aA});aA.\u0275inj=gc({imports:[Zz]});
var dla=0,bA=function(a,b){this._platform=b;this._messageRegistry=new Map;this._messagesContainer=null;this._id=""+dla++;this._document=a},rpb=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)}},spb=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=bA.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=ii(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=ii(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};bA.\u0275fac=function(a){return new (a||bA)(t(ji),t(Iy))};
bA.\u0275prov=dc({token:bA,factory:bA.\u0275fac,providedIn:"root"});
var cA=function(a,b,c,d,e,f,h){My.call(this,a,b,c,d,h.defer);this._focusTrapManager=e;this._inertStrategy=f;this._focusTrapManager.register(this)};U(cA,My);cA.prototype.destroy=function(){this._focusTrapManager.deregister(this);My.prototype.destroy.call(this)};cA.prototype._enable=function(){this._inertStrategy.preventFocus(this);Hnb(this,!0)};cA.prototype._disable=function(){this._inertStrategy.allowFocus(this);Hnb(this,!1)};
li.Object.defineProperties(cA.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 dA=function(){this._listener=null};dA.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)})};dA.prototype.allowFocus=function(a){this._listener&&(a._document.removeEventListener("focus",this._listener,!0),this._listener=null)};
dA.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)&&Ky(a)})};
var tpb=new ld("FOCUS_TRAP_INERT_STRATEGY");
var eA=function(){this._focusTrapStack=[]};eA.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()};eA.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())};eA.\u0275fac=function(a){return new (a||eA)};eA.\u0275prov=dc({token:eA,factory:eA.\u0275fac,providedIn:"root"});
var fA=function(a,b,c,d,e){this._checker=a;this._ngZone=b;this._focusTrapManager=c;this._document=d;this._inertStrategy=e||new dA};fA.prototype.create=function(a,b){b=void 0===b?{defer:!1}:b;var c;"boolean"===typeof b?c={defer:b}:c=b;return new cA(a,this._checker,this._ngZone,this._document,this._focusTrapManager,this._inertStrategy,c)};fA.\u0275fac=function(a){return new (a||fA)(t(Jy),t(jg),t(eA),t(ji),t(tpb,8))};fA.\u0275prov=dc({token:fA,factory:fA.\u0275fac,providedIn:"root"});
var gA=function(a){var b=this;this._items=a;this._activeItemIndex=-1;this._activeItem=null;this._wrap=!1;this._letterKeyStream=new S.Subject;this._typeaheadSubscription=S.Subscription.EMPTY;this._vertical=!0;this._allowedModifierKeys=[];this._homeAndEnd=!1;this._skipPredicateFn=function(c){return c.disabled};this._pressedLetters=[];this.tabOut=new S.Subject;this.change=new S.Subject;a instanceof Ef&&a.changes.subscribe(function(c){b._activeItem&&(c=c.toArray().indexOf(b._activeItem),-1<c&&c!==b._activeItemIndex&&
(b._activeItemIndex=c))})},upb=function(a,b){a._skipPredicateFn=b;return a},hA=function(a){a._wrap=!0;return a},iA=function(a){a._vertical=!0;return a},jA=function(a,b){a._horizontal=b;return a},vpb=function(a){a._allowedModifierKeys=["shiftKey"];return a},kA=function(a,b){b=void 0===b?200:b;a._typeaheadSubscription.unsubscribe();a._typeaheadSubscription=a._letterKeyStream.pipe(dg(function(c){return a._pressedLetters.push(c)}),Nf(b),rf(function(){return 0<a._pressedLetters.length}),R(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},lA=function(a){a._homeAndEnd=!0;return a};gA.prototype.setActiveItem=function(a){var b=this._activeItem;mA(this,a);this._activeItem!==b&&this.change.next(this._activeItemIndex)};
gA.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){nA(this);break}else return;case 35:if(this._homeAndEnd&&d){oA(this);break}else return;default:if(d||hi(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 nA=function(a){a._setActiveItemByIndex(0,1)},oA=function(a){a._setActiveItemByIndex(a._items.length-1,-1)};gA.prototype.setNextItemActive=function(){0>this._activeItemIndex?nA(this):this._setActiveItemByDelta(1)};gA.prototype.setPreviousItemActive=function(){0>this._activeItemIndex&&this._wrap?oA(this):this._setActiveItemByDelta(-1)};var mA=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=gA.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 Ef?this._items.toArray():this._items};li.Object.defineProperties(gA.prototype,{activeItemIndex:{configurable:!0,enumerable:!0,get:function(){return this._activeItemIndex}},activeItem:{configurable:!0,enumerable:!0,get:function(){return this._activeItem}}});
var pA=function(){gA.apply(this,arguments)};U(pA,gA);pA.prototype.setActiveItem=function(a){this.activeItem&&this.activeItem.setInactiveStyles();gA.prototype.setActiveItem.call(this,a);this.activeItem&&this.activeItem.setActiveStyles()};
var qA=function(){gA.apply(this,arguments);this._origin="program"};U(qA,gA);qA.prototype.setActiveItem=function(a){gA.prototype.setActiveItem.call(this,a);this.activeItem&&this.activeItem.focus(this._origin)};
var wpb=new ld("cdk-dir-doc",{providedIn:"root",factory:fla});
var xpb=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,rA=function(a){this.value="ltr";this.change=new Rw;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)?xpb.test(navigator.language)?"rtl":"ltr":"rtl"===b?"rtl":"ltr"}};rA.prototype.ngOnDestroy=function(){this.change.complete()};
rA.\u0275fac=function(a){return new (a||rA)(t(wpb,8))};rA.\u0275prov=dc({token:rA,factory:rA.\u0275fac,providedIn:"root"});
var sA=function(){};sA.\u0275fac=function(a){return new (a||sA)};sA.\u0275mod=uc({type:sA});sA.\u0275inj=gc({});
var tA=function(a){this._attachedOverlays=[];this._document=a};tA.prototype.ngOnDestroy=function(){this.detach()};tA.prototype.add=function(a){this.remove(a);this._attachedOverlays.push(a)};tA.prototype.remove=function(a){a=this._attachedOverlays.indexOf(a);-1<a&&this._attachedOverlays.splice(a,1);0===this._attachedOverlays.length&&this.detach()};tA.\u0275fac=function(a){return new (a||tA)(t(ji))};tA.\u0275prov=dc({token:tA,factory:tA.\u0275fac,providedIn:"root"});
var uA=function(a,b){tA.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$1634:f.$jscomp$loop$prop$keydownEvents$1634},h--)if(0<e[h]._keydownEvents.observers.length){f.$jscomp$loop$prop$keydownEvents$1634=e[h]._keydownEvents;c._ngZone?c._ngZone.run(function(k){return function(){return k.$jscomp$loop$prop$keydownEvents$1634.next(d)}}(f)):f.$jscomp$loop$prop$keydownEvents$1634.next(d);break}}};
U(uA,tA);uA.prototype.add=function(a){var b=this;tA.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)};uA.prototype.detach=function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)};
uA.\u0275fac=function(a){return new (a||uA)(t(ji),t(jg,8))};uA.\u0275prov=dc({token:uA,factory:uA.\u0275fac,providedIn:"root"});
var vA=function(a,b,c){tA.call(this,a);var d=this;this._platform=b;this._ngZone=c;this._cursorStyleIsSet=!1;this._pointerDownListener=function(e){d._pointerDownEventTarget=Tg(e)};this._clickListener=function(e){var f=Tg(e),h="click"===e.type&&d._pointerDownEventTarget?d._pointerDownEventTarget:f;d._pointerDownEventTarget=null;for(var k=d._attachedOverlays.slice(),q={},v=k.length-1;-1<v;q={$jscomp$loop$prop$outsidePointerEvents$1636:q.$jscomp$loop$prop$outsidePointerEvents$1636},v--){var y=k[v];if(!(1>
y._outsidePointerEvents.observers.length)&&y.hasAttached()){if(y.overlayElement.contains(f)||y.overlayElement.contains(h))break;q.$jscomp$loop$prop$outsidePointerEvents$1636=y._outsidePointerEvents;d._ngZone?d._ngZone.run(function(E){return function(){return E.$jscomp$loop$prop$outsidePointerEvents$1636.next(e)}}(q)):q.$jscomp$loop$prop$outsidePointerEvents$1636.next(e)}}}};U(vA,tA);
vA.prototype.add=function(a){var b=this;tA.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}};
vA.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}};
vA.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)};vA.\u0275fac=function(a){return new (a||vA)(t(ji),t(Iy),t(jg,8))};vA.\u0275prov=dc({token:vA,factory:vA.\u0275fac,providedIn:"root"});
var wA=function(a,b){this._platform=b;this._document=a};wA.prototype.ngOnDestroy=function(){var a;null==(a=this._containerElement)||a.remove()};var xA=function(a){a._containerElement||a._createContainer();return a._containerElement};
wA.prototype._createContainer=function(){if(this._platform.isBrowser||pja())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");pja()?a.setAttribute("platform","test"):this._platform.isBrowser||a.setAttribute("platform","server");this._document.body.appendChild(a);this._containerElement=a};
wA.\u0275fac=function(a){return new (a||wA)(t(ji),t(Iy))};wA.\u0275prov=dc({token:wA,factory:wA.\u0275fac,providedIn:"root"});
var ypb=mja(),yA=function(a,b){this._viewportRuler=a;this._previousHTMLStyles={top:"",left:""};this._isEnabled=!1;this._document=b};yA.prototype.attach=function(){};
yA.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=Wg(-this._previousScrollPosition.left);a.style.top=Wg(-this._previousScrollPosition.top);a.classList.add("cdk-global-scrollblock");this._isEnabled=!0}};
yA.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");ypb&&(b.scrollBehavior=c.scrollBehavior="auto");window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top);ypb&&(b.scrollBehavior=d,c.scrollBehavior=e)}};
yA.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 zA=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()})}};zA.prototype.attach=function(a){this._overlayRef=a};
zA.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)}};
zA.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)};zA.prototype.detach=function(){this.disable();this._overlayRef=null};
var AA=function(){};AA.prototype.enable=function(){};AA.prototype.disable=function(){};AA.prototype.attach=function(){};
var BA=function(a,b,c,d){this._scrollDispatcher=a;this._viewportRuler=b;this._ngZone=c;this._config=d;this._scrollSubscription=null};BA.prototype.attach=function(a){this._overlayRef=a};
BA.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()}))}}))};
BA.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)};BA.prototype.detach=function(){this.disable();this._overlayRef=null};
new ld("VIRTUAL_SCROLL_STRATEGY");
var CA=function(a,b,c){this._ngZone=a;this._platform=b;this._scrolled=new S.Subject;this._globalSubscription=null;this._scrolledCount=0;this.scrollContainers=new Map;this._document=c};CA.prototype.register=function(a){var b=this;this.scrollContainers.has(a)||this.scrollContainers.set(a,a._elementScrolled.subscribe(function(){return b._scrolled.next(a)}))};CA.prototype.deregister=function(a){var b=this.scrollContainers.get(a);b&&(b.unsubscribe(),this.scrollContainers.delete(a))};
CA.prototype.scrolled=function(a){var b=this;a=void 0===a?20:a;return this._platform.isBrowser?new S.Observable(function(c){b._globalSubscription||b._addGlobalListener();var d=0<a?b._scrolled.pipe(Lf(a)).subscribe(c):b._scrolled.subscribe(c);b._scrolledCount++;return function(){d.unsubscribe();b._scrolledCount--;b._scrolledCount||b._removeGlobalListener()}}):(0,S.of)()};
CA.prototype.ngOnDestroy=function(){var a=this;this._removeGlobalListener();this.scrollContainers.forEach(function(b,c){return a.deregister(c)});this._scrolled.complete()};var zpb=function(a,b){var c=[];a.scrollContainers.forEach(function(d,e){a._scrollableContainsElement(e,b)&&c.push(e)});return c};CA.prototype._getWindow=function(){return this._document.defaultView||window};
CA.prototype._scrollableContainsElement=function(a,b){b=Xg(b);a=a.elementRef.nativeElement;do if(b==a)return!0;while(b=b.parentElement);return!1};CA.prototype._addGlobalListener=function(){var a=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return(0,S.fromEvent)(a._getWindow().document,"scroll").subscribe(function(){return a._scrolled.next()})})};
CA.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)};CA.\u0275fac=function(a){return new (a||CA)(t(jg),t(Iy),t(ji,8))};CA.\u0275prov=dc({token:CA,factory:CA.\u0275fac,providedIn:"root"});
var DA=function(a,b,c,d){var e=this;this.elementRef=a;this.scrollDispatcher=b;this.ngZone=c;this.dir=d;this._destroyed=new S.Subject;this._elementScrolled=new S.Observable(function(f){return e.ngZone.runOutsideAngular(function(){return(0,S.fromEvent)(e.elementRef.nativeElement,"scroll").pipe(cg(e._destroyed)).subscribe(f)})})};DA.prototype.ngOnInit=function(){this.scrollDispatcher.register(this)};DA.prototype.ngOnDestroy=function(){this.scrollDispatcher.deregister(this);this._destroyed.next();this._destroyed.complete()};
DA.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!=nja()?(null!=a.left&&(a.right=b.scrollWidth-b.clientWidth-a.left),2==nja()?a.left=a.right:1==nja()&&(a.left=a.right?-a.right:a.right)):null!=a.right&&(a.left=b.scrollWidth-b.clientWidth-a.right);this._applyScrollToOptions(a)};
DA.prototype._applyScrollToOptions=function(a){var b=this.elementRef.nativeElement;mja()?b.scrollTo(a):(null!=a.top&&(b.scrollTop=a.top),null!=a.left&&(b.scrollLeft=a.left))};DA.\u0275fac=function(a){return new (a||DA)(D(pd),D(CA),D(jg),D(rA,8))};DA.\u0275dir=w({type:DA,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]});
var Apb=function(){},Bpb=function(a,b,c,d){Nmb(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})}})};Apb.prototype.detach=function(){};
var EA=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 S.Subject;b&&b.length&&(a?b.forEach(function(e){return d._markSelected(e)}):this._markSelected(b[0]),this._selectedToEmit.length=0)};g=EA.prototype;g.select=function(){var a=this;qc.apply(0,arguments).forEach(function(b){return a._markSelected(b)});this._emitChangeEvent()};
g.deselect=function(){var a=this;qc.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(){};li.Object.defineProperties(EA.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){this._selected||(this._selected=Array.from(this._selection.values()));return this._selected}}});
var FA=function(){this._listeners=[]};FA.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)};FA.prototype.listen=function(a){var b=this;this._listeners.push(a);return function(){b._listeners=b._listeners.filter(function(c){return a!==c})}};FA.prototype.ngOnDestroy=function(){this._listeners=[]};FA.\u0275fac=function(a){return new (a||FA)};FA.\u0275prov=dc({token:FA,factory:FA.\u0275fac,providedIn:"root"});
var Cpb=new ld("_ViewRepeater");
var GA=function(a,b,c){var d=this;this._platform=a;this._change=new S.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=GA.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(Lf(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}};GA.\u0275fac=function(a){return new (a||GA)(t(Iy),t(jg),t(ji,8))};GA.\u0275prov=dc({token:GA,factory:GA.\u0275fac,providedIn:"root"});
var HA=function(){};HA.\u0275fac=function(a){return new (a||HA)};HA.\u0275mod=uc({type:HA});HA.\u0275inj=gc({});var IA=function(){};IA.\u0275fac=function(a){return new (a||IA)};IA.\u0275mod=uc({type:IA});IA.\u0275inj=gc({imports:[sA,HA,sA,HA]});
var JA=function(a,b,c,d){var e=this;this._scrollDispatcher=a;this._viewportRuler=b;this._ngZone=c;this.noop=function(){return new AA};this.close=function(f){return new zA(e._scrollDispatcher,e._ngZone,e._viewportRuler,f)};this.block=function(){return new yA(e._viewportRuler,e._document)};this.reposition=function(f){return new BA(e._scrollDispatcher,e._viewportRuler,e._ngZone,f)};this._document=d};JA.\u0275fac=function(a){return new (a||JA)(t(CA),t(GA),t(jg),t(ji))};
JA.\u0275prov=dc({token:JA,factory:JA.\u0275fac,providedIn:"root"});
var KA=function(a){this.scrollStrategy=new AA;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 LA=function(a,b,c,d,e,f,h,k,q,v){var y=this;v=void 0===v?!1:v;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=v;this._backdropElement=null;this._backdropClick=new S.Subject;this._attachments=new S.Subject;this._detachments=new S.Subject;this._locationChanges=S.Subscription.EMPTY;this._backdropClickHandler=function(E){return y._backdropClick.next(E)};
this._backdropTransitionendHandler=function(E){y._disposeBackdrop(E.target)};this._keydownEvents=new S.Subject;this._outsidePointerEvents=new S.Subject;d.scrollStrategy&&(this._scrollStrategy=d.scrollStrategy,this._scrollStrategy.attach(this));this._positionStrategy=d.positionStrategy};g=LA.prototype;
g.attach=function(a){var b=this;!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);a=this._portalOutlet.attach(a);this._positionStrategy&&this._positionStrategy.attach(this);this._updateStackingOrder();this._updateElementSize();this._updateElementDirection();this._scrollStrategy&&this._scrollStrategy.enable();this._ngZone.onStable.pipe(Qf()).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()){Dpb(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.outsidePointerEvents=function(){return this._outsidePointerEvents};g.getConfig=function(){return this._config};g.updatePosition=function(){this._positionStrategy&&this._positionStrategy.apply()};
var Epb=function(a,b){b!==a._positionStrategy&&(a._positionStrategy&&a._positionStrategy.dispose(),a._positionStrategy=b,a.hasAttached()&&(b.attach(a),a.updatePosition()))};g=LA.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=Wg(this._config.width);a.height=Wg(this._config.height);a.minWidth=Wg(this._config.minWidth);a.minHeight=Wg(this._config.minHeight);a.maxWidth=Wg(this._config.maxWidth);a.maxHeight=Wg(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 Dpb=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)})))};
LA.prototype._toggleClasses=function(a,b,c){b=Ug(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)))};
LA.prototype._detachContentWhenStable=function(){var a=this;this._ngZone.runOutsideAngular(function(){var b=a._ngZone.onStable.pipe(cg((0,S.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())})})};
LA.prototype._disposeScrollStrategy=function(){var a=this._scrollStrategy;a&&(a.disable(),a.detach&&a.detach())};LA.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)};
li.Object.defineProperties(LA.prototype,{overlayElement:{configurable:!0,enumerable:!0,get:function(){return this._pane}},hostElement:{configurable:!0,enumerable:!0,get:function(){return this._host}}});
var Fpb=function(a,b){this.connectionPair=a;this.scrollableViewProperties=b};
var jla=/([A-Za-z%]+)$/,MA=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 S.Subject;this._resizeSubscription=S.Subscription.EMPTY;this._offsetY=this._offsetX=0;this._appliedPanelClasses=[];this.positionChanges=
this._positionChanges;this.setOrigin(a)};MA.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()})};
MA.prototype.apply=function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)Gpb(this);else{this._clearPanelClasses();this._resetOverlayElementStyles();this._resetBoundingBoxStyles();this._viewportRect=this._getNarrowedViewportRect();this._originRect=this._getOriginRect();this._overlayRect=this._pane.getBoundingClientRect();this._containerRect=xA(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),v=this._getOverlayPoint(q,b,k),y=this._getOverlayFit(v,b,c,k);if(y.isCompletelyWithinViewport){this._isPushed=!1;this._applyPosition(k,q);return}if(this._canFitWithFlexibleDimensions(y,v,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:v,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)}};MA.prototype.detach=function(){this._clearPanelClasses();this._previousPushAmount=this._lastPosition=null;this._resizeSubscription.unsubscribe()};
MA.prototype.dispose=function(){this._isDisposed||(this._boundingBox&&ki(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 Gpb=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=xA(a._overlayContainer).getBoundingClientRect();var c=a._getOriginPoint(a._originRect,a._containerRect,b);a._applyPosition(b,c)}else a.apply()}},Hpb=function(a,b){a._scrollables=b;return a},NA=function(a,b){a._preferredPositions=b;-1===b.indexOf(a._lastPosition)&&(a._lastPosition=
null);return a},OA=function(a,b){a._viewportMargin=b;return a},PA=function(a,b){a._hasFlexibleDimensions=void 0===b?!0:b;return a},Ipb=function(a,b){a._growAfterOpen=void 0===b?!0:b;return a},QA=function(a,b){a._canPush=void 0===b?!0:b;return a},RA=function(a,b){a._positionLocked=void 0===b?!0:b;return a};MA.prototype.setOrigin=function(a){this._origin=a;return this};var Jpb=function(a,b){a._transformOriginSelector=b;return a};g=MA.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 Fpb(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 v=a.x;b=c.right-a.x}else v=Math.min(c.right-a.x+c.left,a.x),c=this._lastBoundingBoxSize.width,b=2*v,v=a.x-v,b>c&&!this._isInitialRender&&!this._growAfterOpen&&(v=a.x-c/2);return{top:e,left:v,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=Wg(a.height);c.top=Wg(a.top);c.bottom=Wg(a.bottom);
c.width=Wg(a.width);c.left=Wg(a.left);c.right=Wg(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=Wg(d));e&&(c.maxWidth=Wg(e))}this._lastBoundingBoxSize=a;ki(this._boundingBox.style,c)};g._resetBoundingBoxStyles=function(){ki(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})};
g._resetOverlayElementStyles=function(){ki(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();ki(c,this._getExactOverlayY(b,a,h));ki(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=Wg(f.maxHeight):e&&(c.maxHeight=""));f.maxWidth&&
(d?c.maxWidth=Wg(f.maxWidth):e&&(c.maxWidth=""));ki(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=Wg(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=Wg(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 qc.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&&Ug(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 pd)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}};
li.Object.defineProperties(MA.prototype,{positions:{configurable:!0,enumerable:!0,get:function(){return this._preferredPositions}}});
var SA=function(){this._cssPosition="static";this._height=this._width=this._xOffset=this._xPosition=this._alignItems=this._bottomOffset=this._topOffset="";this._isDisposed=!1};g=SA.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};var TA=function(a){a.left("");a._xPosition="center";return a},Kpb=function(a){a.top("");a._alignItems="center";return a};
SA.prototype.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="",v="";if(d)v="flex-start";else if("center"===
f)v="center",h?q=c:k=c;else if(h)if("left"===f||"end"===f)v="flex-end",k=c;else{if("right"===f||"start"===f)v="flex-start",q=c}else if("left"===f||"start"===f)v="flex-start",k=c;else if("right"===f||"end"===f)v="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=v;b.alignItems=e?"flex-start":this._alignItems}};
SA.prototype.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 UA=function(a,b,c,d){this._viewportRuler=a;this._document=b;this._platform=c;this._overlayContainer=d};UA.prototype.global=function(){return new SA};var VA=function(a,b){return new MA(b,a._viewportRuler,a._document,a._platform,a._overlayContainer)};UA.\u0275fac=function(a){return new (a||UA)(t(GA),t(ji),t(Iy),t(wA))};UA.\u0275prov=dc({token:UA,factory:UA.\u0275fac,providedIn:"root"});
var WA=function(){};WA.prototype.attach=function(a){this._attachedHost=a;return a.attach(this)};WA.prototype.detach=function(){var a=this._attachedHost;null!=a&&(this._attachedHost=null,a.detach())};li.Object.defineProperties(WA.prototype,{isAttached:{configurable:!0,enumerable:!0,get:function(){return null!=this._attachedHost}}});var XA=function(a,b,c,d){this.component=a;this.viewContainerRef=b;this.injector=c;this.componentFactoryResolver=d};U(XA,WA);
var YA=function(a,b,c,d){this.templateRef=a;this.viewContainerRef=b;this.context=c;this.injector=d};U(YA,WA);YA.prototype.attach=function(a,b){this.context=b=void 0===b?this.context:b;return WA.prototype.attach.call(this,a)};YA.prototype.detach=function(){this.context=void 0;return WA.prototype.detach.call(this)};li.Object.defineProperties(YA.prototype,{origin:{configurable:!0,enumerable:!0,get:function(){return this.templateRef.elementRef}}});var ZA=function(){this._isDisposed=!1};g=ZA.prototype;
g.hasAttached=function(){return!!this._attachedPortal};g.attach=function(a){if(a instanceof XA)return this._attachedPortal=a,this.attachComponentPortal(a);if(a instanceof YA)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 $A=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($A,ZA);
$A.prototype.attachComponentPortal=function(a){var b=this,c=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(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||llb),Jmb(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};$A.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};
$A.prototype.dispose=function(){ZA.prototype.dispose.call(this);this.outletElement.remove()};$A.prototype._getComponentRootNode=function(a){return a.hostView.rootNodes[0]};
var aB=function(a,b,c){this._isDisposed=!1;this._componentFactoryResolver=a;this._viewContainerRef=b;this._isInitialized=!1;this.attached=new Rw;this._document=c};U(aB,ZA);g=aB.prototype;g.ngOnInit=function(){this._isInitialized=!0};g.ngOnDestroy=function(){ZA.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=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(a.component),d=b.createComponent(c,b.length,a.injector||b.injector);b!==this._viewContainerRef&&this._getRootNode().appendChild(d.hostView.rootNodes[0]);ZA.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});ZA.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};
li.Object.defineProperties(aB.prototype,{portal:{configurable:!0,enumerable:!0,get:function(){return this._attachedPortal},set:function(a){if(!this.hasAttached()||a||this._isInitialized)this.hasAttached()&&ZA.prototype.detach.call(this),a&&ZA.prototype.attach.call(this,a),this._attachedPortal=a||null}}});aB.\u0275fac=function(a){return new (a||aB)(D(Sv),D(yf),D(ji))};
aB.\u0275dir=w({type:aB,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ae]});var bB=function(){};bB.\u0275fac=function(a){return new (a||bB)};bB.\u0275mod=uc({type:bB});bB.\u0275inj=gc({});
var Lpb=0,cB=function(a,b,c,d,e,f,h,k,q,v,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=v;this._outsideClickDispatcher=y;this._animationsModuleType=E};g=cB.prototype;
g.create=function(a){var b=this._createHostElement(),c=this._createPaneElement(b),d=this._createPortalOutlet(c);a=new KA(a);a.direction=a.direction||this._directionality.value;return new LA(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-"+Lpb++;b.classList.add("cdk-overlay-pane");a.appendChild(b);return b};g._createHostElement=function(){var a=this._document.createElement("div");xA(this._overlayContainer).appendChild(a);return a};g._createPortalOutlet=function(a){this._appRef||(this._appRef=this._injector.get(tx));return new $A(a,this._componentFactoryResolver,this._appRef,this._injector,this._document)};
cB.\u0275fac=function(a){return new (a||cB)(t(JA),t(wA),t(Sv),t(UA),t(uA),t(Qv),t(jg),t(ji),t(rA),t(dy),t(vA),t(ew,8))};cB.\u0275prov=dc({token:cB,factory:cB.\u0275fac});
var Mpb=[{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"}],Npb=new ld("cdk-connected-overlay-scroll-strategy"),dB=function(a){this.elementRef=a};dB.\u0275fac=function(a){return new (a||dB)(D(pd))};
dB.\u0275dir=w({type:dB,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]});
var eB=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=S.Subscription.EMPTY;this.viewportMargin=0;this.disableClose=this.open=!1;this.backdropClick=new Rw;this.positionChange=new Rw;this.attach=new Rw;this.detach=new Rw;this.overlayKeydown=new Rw;this.overlayOutsideClick=new Rw;this._templatePortal=new YA(b,
c);this._scrollStrategyFactory=d;this.scrollStrategy=this._scrollStrategyFactory()};g=eB.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=Mpb);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||hi(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 KA({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 Jpb(RA(OA(Ipb(QA(PA(NA(a.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()),c),this.flexibleDimensions),this.push),this.growAfterOpen),this.viewportMargin),this.lockPosition),this.transformOriginSelector)};
g._createPositionStrategy=function(){var a=VA(this._overlay.position(),this._getFlexibleConnectedPositionStrategyOrigin());this._updatePositionStrategy(a);return a};g._getFlexibleConnectedPositionStrategyOrigin=function(){return this.origin instanceof dB?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(Gha(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()};
li.Object.defineProperties(eB.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=
Vg(a)}},lockPosition:{configurable:!0,enumerable:!0,get:function(){return this._lockPosition},set:function(a){this._lockPosition=Vg(a)}},flexibleDimensions:{configurable:!0,enumerable:!0,get:function(){return this._flexibleDimensions},set:function(a){this._flexibleDimensions=Vg(a)}},growAfterOpen:{configurable:!0,enumerable:!0,get:function(){return this._growAfterOpen},set:function(a){this._growAfterOpen=Vg(a)}},push:{configurable:!0,enumerable:!0,get:function(){return this._push},set:function(a){this._push=
Vg(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"}}});eB.\u0275fac=function(a){return new (a||eB)(D(cB),D(xf),D(yf),D(Npb),D(rA,8))};
eB.\u0275dir=w({type:eB,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:[Cc]});var Opb={provide:Npb,deps:[cB],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}};
var fB=function(){};fB.\u0275fac=function(a){return new (a||fB)};fB.\u0275mod=uc({type:fB});fB.\u0275inj=gc({providers:[cB,Opb],imports:[sA,bB,IA,IA]});
var Ppb=new ld("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),gB=function(a,b,c){this._sanityChecks=b;this._document=c;this._hasDoneGlobalChecks=!1;a._applyBodyHighContrastModeCssClasses();this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)};gB.prototype._checkIsEnabled=function(a){return pja()?!1:"boolean"===typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[a]};gB.\u0275fac=function(a){return new (a||gB)(t(Vz),t(Ppb,8),t(ji))};gB.\u0275mod=uc({type:gB});
gB.\u0275inj=gc({imports:[sA,sA]});
var Qpb=new ld("MAT_DATE_LOCALE",{providedIn:"root",factory:ola}),hB=function(){this.localeChanges=this._localeChanges=new S.Subject},iB=function(a,b){return a.isDateInstance(b)&&a.isValid(b)?b:null};hB.prototype.deserialize=function(a){return null==a||this.isDateInstance(a)&&this.isValid(a)?a:this.invalid()};hB.prototype.setLocale=function(a){this.locale=a;this._localeChanges.next()};var jB=function(a,b,c){return a.getYear(b)-a.getYear(c)||a.getMonth(b)-a.getMonth(c)||a.getDate(b)-a.getDate(c)};
hB.prototype.sameDate=function(a,b){if(a&&b){var c=this.isValid(a),d=this.isValid(b);return c&&d?!jB(this,a,b):c==d}return a==b};var kB=function(a,b,c,d){return c&&0>jB(a,b,c)?c:d&&0<jB(a,b,d)?d:b};
var lB=new ld("mat-date-formats");
var Rpb=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,mB=function(a){hB.call(this);hB.prototype.setLocale.call(this,a)};U(mB,hB);g=mB.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("lb");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(Rpb.test(a)){var b=new Date(a);if(this.isValid(b))return b}}return hB.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)};mB.\u0275fac=function(a){return new (a||mB)(t(Qpb,8),t(Iy))};mB.\u0275prov=dc({token:mB,factory:mB.\u0275fac});
var nB=function(){};nB.\u0275fac=function(a){return new (a||nB)};nB.\u0275mod=uc({type:nB});nB.\u0275inj=gc({providers:[{provide:hB,useClass:mB}]});var oB=function(){};oB.\u0275fac=function(a){return new (a||oB)};oB.\u0275mod=uc({type:oB});
oB.\u0275inj=gc({providers:[{provide:lB,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:[nB]});
var pB=function(){};pB.\u0275fac=function(a){return new (a||pB)};pB.\u0275prov=dc({token:pB,factory:pB.\u0275fac,providedIn:"root"});
new ld("MAT_HAMMER_OPTIONS");
var qB=function(){};qB.\u0275fac=function(a){return new (a||qB)};qB.\u0275dir=w({type:qB,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]});var rB=function(){};rB.\u0275fac=function(a){return new (a||rB)};rB.\u0275mod=uc({type:rB});rB.\u0275inj=gc({imports:[gB,gB]});
var Spb=new ld("MAT_OPTION_PARENT_COMPONENT");
oi(function(){});var Tpb=new ld("MatOptgroup");
var Upb=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 Vpb={enterDuration:225,exitDuration:150},Wpb=Og({passive:!0}),Xpb=["mousedown","touchstart"],Ypb=["mouseup","mouseleave","touchend","touchcancel"],sB=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=Xg(c))},tB=function(a,b,c,d){d=void 0===d?{}:d;var e=a._containerRect=a._containerRect||a._containerElement.getBoundingClientRect(),f=Object.assign({},Vpb,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 Upb(a,k,d,h);k.style.transform="scale3d(1, 1, 1)";q.state=0;d.persistent||(a._mostRecentTransientRipple=q);var v=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);v={onTransitionEnd:y,onTransitionCancel:E}});a._activeRipples.set(q,v);!h&&c||a._finishRippleTransition(q);return q},Zpb=function(a,b){if(2!==
b.state&&3!==b.state){var c=b.element,d=Object.assign({},Vpb,b.config.animation);c.style.transitionDuration=d.exitDuration+"ms";c.style.opacity="0";b.state=2;!b._animationForciblyDisabledThroughCss&&d.exitDuration||a._finishRippleTransition(b)}};sB.prototype.fadeOutAllNonPersistent=function(){this._getActiveRipples().forEach(function(a){a.config.persistent||Zpb(a._renderer,a)})};var $pb=function(a,b){(b=Xg(b))&&b!==a._triggerElement&&(a._removeTriggerEvents(),a._triggerElement=b,a._registerEvents(Xpb))};
g=sB.prototype;g.handleEvent=function(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp();this._pointerUpEventsRegistered||(this._registerEvents(Ypb),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||Zpb(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=fi(a),c=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||b||c||(this._isPointerDown=!0,tB(this,a.clientX,a.clientY,this._target.rippleConfig))};g._onTouchStart=function(a){if(!this._target.rippleDisabled&&!gi(a)){this._lastTouchStartEvent=Date.now();this._isPointerDown=!0;a=a.changedTouches;for(var b=0;b<a.length;b++)tB(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&&Zpb(a._renderer,a)}))};g._registerEvents=function(a){var b=this;this._ngZone.runOutsideAngular(function(){a.forEach(function(c){b._triggerElement.addEventListener(c,b,Wpb)})})};g._getActiveRipples=function(){return Array.from(this._activeRipples.keys())};
g._removeTriggerEvents=function(){var a=this;this._triggerElement&&(Xpb.forEach(function(b){a._triggerElement.removeEventListener(b,a,Wpb)}),this._pointerUpEventsRegistered&&Ypb.forEach(function(b){a._triggerElement.removeEventListener(b,a,Wpb)}))};
var aqb=new ld("mat-ripple-global-options"),uB=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 sB(this,b,a,c)};g=uB.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&&$pb(this._rippleRenderer,this.trigger)};g.launch=function(a,b,c){return"number"===typeof a?tB(this._rippleRenderer,a,void 0===b?0:b,Object.assign({},this.rippleConfig,c)):tB(this._rippleRenderer,0,0,Object.assign({},this.rippleConfig,a))};
li.Object.defineProperties(uB.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}}});uB.\u0275fac=function(a){return new (a||uB)(D(pd),D(jg),D(Iy),D(aqb,8),D(ew,8))};
uB.\u0275dir=w({type:uB,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(a,b){a&2&&le("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 vB=function(a){this._animationMode=a;this.state="unchecked";this.disabled=!1};vB.\u0275fac=function(a){return new (a||vB)(D(ew,8))};
vB.\u0275cmp=w({type:vB,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(a,b){a&2&&le("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 bqb=0,cqb=function(a,b){this.source=a;this.isUserInput=void 0===b?!1:b},wB=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-"+bqb++;this.onSelectionChange=new Rw;this._stateChanges=new S.Subject};g=wB.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||hi(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 cqb(this,void 0===a?!1:a))};
li.Object.defineProperties(wB.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=Vg(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()}}});wB.\u0275fac=function(){pe()};wB.\u0275dir=w({type:wB,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}});var xB=function(a,b,c,d){wB.call(this,a,b,c,d)};U(xB,wB);xB.\u0275dir=wB.\u0275dir;xB.\u0275fac=function(a){return new (a||xB)(D(pd),D(vx),D(Spb,8),D(Tpb,8))};
xB.\u0275cmp=w({type:xB,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(a,b){a&1&&J("click",function(){return b._selectViaInteraction()})("keydown",function(c){return b._handleKeydown(c)});a&2&&(ve("id",b.id),ge("tabindex",b._getTabIndex())("aria-selected",b._getAriaSelected())("aria-disabled",b.disabled.toString()),le("mat-selected",b.selected)("mat-option-multiple",b.multiple)("mat-active",b.active)("mat-option-disabled",
b.disabled))},exportAs:["matOption"],features:[ae],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&&(xe(),M(0,sla,1,2,"mat-pseudo-checkbox",0),F(1,"span",1),ye(2),G(),M(3,tla,2,1,"span",
2),H(4,"div",3));a&2&&(C("ngIf",b.multiple),B(3),C("ngIf",b.group&&b.group._inert),B(1),C("matRippleTrigger",b._getHostElement())("matRippleDisabled",b.disabled||b.disableRipple))},dependencies:[uB,Cx,vB],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 yB=function(){};yB.\u0275fac=function(a){return new (a||yB)};yB.\u0275mod=uc({type:yB});yB.\u0275inj=gc({imports:[gB,gB]});
var zB=function(){};zB.\u0275fac=function(a){return new (a||zB)};zB.\u0275mod=uc({type:zB});zB.\u0275inj=gc({imports:[gB]});
var AB=function(){};AB.\u0275fac=function(a){return new (a||AB)};AB.\u0275mod=uc({type:AB});AB.\u0275inj=gc({imports:[yB,Wx,gB,zB]});
/*

 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 dqb=["mat-button",""],eqb=["*"],fqb=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"},
gqb="mat-button mat-flat-button mat-icon-button mat-raised-button mat-stroked-button mat-mini-fab mat-fab".split(" "),hqb=mi(oi(ni(function(a){this._elementRef=a}))),BB=function(a,b,c){var d=hqb.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(gqb),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(BB,hqb);g=BB.prototype;g.ngAfterViewInit=function(){this._focusMonitor.monitor(this._elementRef,!0)};g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)};g.focus=function(a,b){a?Tz(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 qc.apply(0,arguments).some(function(b){return a._getHostElement().hasAttribute(b)})};BB.\u0275fac=function(a){return new (a||BB)(D(pd),D(Sz),D(ew,8))};
BB.\u0275cmp=w({type:BB,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&&Bf(uB,5);if(a&2){var c;Af(c=Df())&&(b.ripple=c.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(a,b){a&2&&(ge("disabled",b.disabled||null),le("_mat-animation-noopable","NoopAnimations"===b._animationMode)("mat-button-disabled",
b.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ae],attrs:dqb,ngContentSelectors:eqb,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&&(xe(),F(0,"span",0),ye(1),G(),H(2,"span",1)(3,"span",2));a&2&&(B(2),le("mat-button-ripple-round",b.isRoundButton||b.isIconButton),C("matRippleDisabled",
b._isRippleDisabled())("matRippleCentered",b.isIconButton)("matRippleTrigger",b._getHostElement()))},dependencies:[uB],styles:[fqb()],encapsulation:2,changeDetection:0});var CB=function(a,b,c,d){var e=BB.call(this,b,a,c)||this;e._ngZone=d;e._haltDisabledEvents=function(f){e.disabled&&(f.preventDefault(),f.stopImmediatePropagation())};return e};U(CB,BB);
CB.prototype.ngAfterViewInit=function(){var a=this;BB.prototype.ngAfterViewInit.call(this);this._ngZone?this._ngZone.runOutsideAngular(function(){a._elementRef.nativeElement.addEventListener("click",a._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)};CB.prototype.ngOnDestroy=function(){BB.prototype.ngOnDestroy.call(this);this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)};
CB.\u0275fac=function(a){return new (a||CB)(D(Sz),D(pd),D(ew,8),D(jg,8))};
CB.\u0275cmp=w({type:CB,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&&(ge("tabindex",b.disabled?-1:b.tabIndex)("disabled",b.disabled||null)("aria-disabled",b.disabled.toString()),le("_mat-animation-noopable","NoopAnimations"===b._animationMode)("mat-button-disabled",b.disabled))},
inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[ae],attrs:dqb,ngContentSelectors:eqb,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&&(xe(),F(0,"span",0),ye(1),G(),H(2,"span",1)(3,"span",2));a&2&&(B(2),le("mat-button-ripple-round",b.isRoundButton||b.isIconButton),
C("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",b.isIconButton)("matRippleTrigger",b._getHostElement()))},dependencies:[uB],styles:[fqb()],encapsulation:2,changeDetection:0});
var DB=function(a,b){this.selection=a;this._adapter=b;this.selectionChanged=this._selectionChanged=new S.Subject;this.selection=a};DB.prototype.updateSelection=function(a,b){var c=this.selection;this.selection=a;this._selectionChanged.next({selection:a,source:b,oldValue:c})};DB.prototype.ngOnDestroy=function(){this._selectionChanged.complete()};DB.prototype._isValidDateInstance=function(a){return this._adapter.isDateInstance(a)&&this._adapter.isValid(a)};DB.\u0275fac=function(){pe()};
DB.\u0275prov=dc({token:DB,factory:DB.\u0275fac});var EB=function(a){DB.call(this,null,a)};U(EB,DB);EB.prototype.add=function(a){DB.prototype.updateSelection.call(this,a,this)};EB.prototype.isValid=function(){return null!=this.selection&&this._isValidDateInstance(this.selection)};EB.prototype.isComplete=function(){return null!=this.selection};EB.prototype.clone=function(){var a=new EB(this._adapter);a.updateSelection(this.selection,this);return a};EB.\u0275fac=function(a){return new (a||EB)(t(hB))};
EB.\u0275prov=dc({token:EB,factory:EB.\u0275fac});var iqb={provide:DB,deps:[[new Nv,new Ov,DB],hB],useFactory:function(a,b){return a||new EB(b)}};new Nv;new Ov;
var FB=function(){this.changes=new S.Subject};FB.\u0275fac=function(a){return new (a||FB)};FB.\u0275prov=dc({token:FB,factory:FB.\u0275fac,providedIn:"root"});
var jqb=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},GB=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 Rw;this.previewChange=new Rw;this.activeDateChange=new Rw;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=GB.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(Qf()).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};
GB.\u0275fac=function(a){return new (a||GB)(D(pd),D(jg))};
GB.\u0275cmp=w({type:GB,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:[Cc],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&&(M(0,wla,3,6,"tr",0),M(1,zla,3,2,"tr",1));a&2&&(C("ngIf",b._firstRowOffset<b.labelMinRequiredCells),B(1),C("ngForOf",b.rows))},dependencies:[Fx,Gx,Cx],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 kqb=new ld("MAT_DATE_RANGE_SELECTION_STRATEGY");new Nv;new Ov;
var HB=function(a,b,c,d,e){this._changeDetectorRef=a;this._dateFormats=b;this._dateAdapter=c;this._dir=d;this._rangeStrategy=e;this._rerenderSubscription=S.Subscription.EMPTY;this.selectedChange=new Rw;this._userSelection=new Rw;this.activeDateChange=new Rw;this._activeDate=this._dateAdapter.today()};g=HB.prototype;g.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(ag(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);jB(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||hi(a)||(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:a}),a.preventDefault(),a.stopPropagation());return;default:return}jB(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 jqb(c+1,b[c],h,f,k,this._getCellCompareValue(e),e))}};g._shouldEnableDate=function(a){return!!a&&(!this.minDate||0<=jB(this._dateAdapter,a,this.minDate))&&(!this.maxDate||0>=jB(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)};
li.Object.defineProperties(HB.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=iB(this._dateAdapter,this._dateAdapter.deserialize(a))||this._dateAdapter.today();this._activeDate=kB(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=iB(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=iB(this._dateAdapter,this._dateAdapter.deserialize(a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=iB(this._dateAdapter,this._dateAdapter.deserialize(a))}}});HB.\u0275fac=function(a){return new (a||HB)(D(vx),D(lB,8),D(hB,8),D(rA,8),D(kqb,8))};
HB.\u0275cmp=w({type:HB,selectors:[["mat-month-view"]],viewQuery:function(a,b){a&1&&Bf(GB,5);if(a&2){var c;Af(c=Df())&&(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:[Cc],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&&(F(0,"table",0)(1,"thead",1)(2,"tr"),M(3,Dla,5,2,"th",2),G(),F(4,"tr"),H(5,"th",3),G()(),F(6,"tbody",4),J("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)}),G()());a&2&&(B(3),C("ngForOf",b._weekdays),
B(3),C("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:[Gx,GB],encapsulation:2,changeDetection:0});
var IB=function(a,b,c){this._changeDetectorRef=a;this._dateAdapter=b;this._dir=c;this._rerenderSubscription=S.Subscription.EMPTY;this.selectedChange=new Rw;this.yearSelected=new Rw;this.activeDateChange=new Rw;this._activeDate=this._dateAdapter.today()};g=IB.prototype;g.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(ag(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)-ri(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);jB(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,
-ri(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-ri(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}jB(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 ri(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 jqb(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))};
li.Object.defineProperties(IB.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=iB(this._dateAdapter,this._dateAdapter.deserialize(a))||this._dateAdapter.today();this._activeDate=kB(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=
iB(this._dateAdapter,this._dateAdapter.deserialize(a));this._setSelectedYear(a)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=iB(this._dateAdapter,this._dateAdapter.deserialize(a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=iB(this._dateAdapter,this._dateAdapter.deserialize(a))}}});IB.\u0275fac=function(a){return new (a||IB)(D(vx),D(hB,8),D(rA,8))};
IB.\u0275cmp=w({type:IB,selectors:[["mat-multi-year-view"]],viewQuery:function(a,b){a&1&&Bf(GB,5);if(a&2){var c;Af(c=Df())&&(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&&(F(0,"table",0)(1,"thead",1)(2,"tr"),H(3,"th",2),G()(),F(4,"tbody",3),J("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)}),G()());a&2&&(B(4),C("rows",b._years)("todayValue",b._todayYear)("startValue",b._selectedYear)("endValue",b._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",b._getActiveCell()))},dependencies:[GB],encapsulation:2,changeDetection:0});
var JB=function(a,b,c,d){this._changeDetectorRef=a;this._dateFormats=b;this._dateAdapter=c;this._dir=d;this._rerenderSubscription=S.Subscription.EMPTY;this.selectedChange=new Rw;this.monthSelected=new Rw;this.activeDateChange=new Rw;this._activeDate=this._dateAdapter.today()};g=JB.prototype;g.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(ag(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);jB(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}jB(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 jqb(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)};
li.Object.defineProperties(JB.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=iB(this._dateAdapter,this._dateAdapter.deserialize(a))||this._dateAdapter.today();this._activeDate=kB(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=
iB(this._dateAdapter,this._dateAdapter.deserialize(a));this._setSelectedMonth(a)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=iB(this._dateAdapter,this._dateAdapter.deserialize(a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=iB(this._dateAdapter,this._dateAdapter.deserialize(a))}}});JB.\u0275fac=function(a){return new (a||JB)(D(vx),D(lB,8),D(hB,8),D(rA,8))};
JB.\u0275cmp=w({type:JB,selectors:[["mat-year-view"]],viewQuery:function(a,b){a&1&&Bf(GB,5);if(a&2){var c;Af(c=Df())&&(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&&(F(0,"table",0)(1,"thead",1)(2,"tr"),H(3,"th",2),G()(),F(4,"tbody",3),J("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)}),G()());a&2&&(B(4),C("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:[GB],encapsulation:2,changeDetection:0});
var lqb=0,KB=function(a,b,c,d,e){this._intl=a;this.calendar=b;this._dateAdapter=c;this._dateFormats=d;this._buttonDescriptionId="mat-calendar-button-"+lqb++;this.calendar.stateChanges.subscribe(function(){return e.markForCheck()})};
KB.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)};
li.Object.defineProperties(KB.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)-ri(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]}}});KB.\u0275fac=function(a){return new (a||KB)(D(FB),D(bc(function(){return LB})),D(hB,8),D(lB,8),D(vx))};
KB.\u0275cmp=w({type:KB,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&&(xe(),F(0,"div",0)(1,"div",1)(2,"button",2),J("click",function(){b.calendar.currentView="month"==b.calendar.currentView?"multi-year":"month"}),F(3,"span"),O(4),G(),Nc(),F(5,"svg",3),H(6,"polygon",4),G()(),Oc(),H(7,"div",5),ye(8),F(9,"button",6),J("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)}),G(),F(10,"button",7),J("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)}),G()()());a&2&&(B(2),ge("aria-label",b.periodButtonLabel)("aria-describedby",b._buttonDescriptionId),B(1),ge("id",b._buttonDescriptionId),B(1),Ee(b.periodButtonText),B(1),le("mat-calendar-invert","month"!==b.calendar.currentView),
B(4),C("disabled",!(b.calendar.minDate?!b.calendar.minDate||!b._isSameView(b.calendar.activeDate,b.calendar.minDate):1)),ge("aria-label",b.prevButtonLabel),B(1),C("disabled",!(!b.calendar.maxDate||!b._isSameView(b.calendar.activeDate,b.calendar.maxDate))),ge("aria-label",b.nextButtonLabel))},dependencies:[BB],encapsulation:2,changeDetection:0});
var LB=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 Rw;this.yearSelected=new Rw;this.monthSelected=new Rw;this.viewChanged=new Rw(!0);this._userSelection=new Rw;this.stateChanges=new S.Subject;this._intlChanges=a.changes.subscribe(function(){d.markForCheck();e.stateChanges.next()})};g=LB.prototype;
g.ngAfterContentInit=function(){this._calendarHeaderPortal=new XA(this.headerComponent||KB);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};
li.Object.defineProperties(LB.prototype,{startAt:{configurable:!0,enumerable:!0,get:function(){return this._startAt},set:function(a){this._startAt=iB(this._dateAdapter,this._dateAdapter.deserialize(a))}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected},set:function(a){this._selected=iB(this._dateAdapter,this._dateAdapter.deserialize(a))}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=iB(this._dateAdapter,this._dateAdapter.deserialize(a))}},
maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=iB(this._dateAdapter,this._dateAdapter.deserialize(a))}},activeDate:{configurable:!0,enumerable:!0,get:function(){return this._clampedActiveDate},set:function(a){this._clampedActiveDate=kB(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)}}});LB.\u0275fac=function(a){return new (a||LB)(D(FB),D(hB,8),D(lB,8),D(vx))};
LB.\u0275cmp=w({type:LB,selectors:[["mat-calendar"]],viewQuery:function(a,b){a&1&&(Bf(HB,5),Bf(JB,5),Bf(IB,5));if(a&2){var c;Af(c=Df())&&(b.monthView=c.first);Af(c=Df())&&(b.yearView=c.first);Af(c=Df())&&(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:[Ge([iqb]),Cc],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&&(M(0,Gla,0,0,"ng-template",0),F(1,"div",1),M(2,Hla,1,8,"mat-month-view",2),M(3,Ila,1,6,"mat-year-view",3),M(4,Jla,1,6,"mat-multi-year-view",4),G());a&2&&(C("cdkPortalOutlet",b._calendarHeaderPortal),B(1),C("ngSwitch",b.currentView),B(1),C("ngSwitchCase","month"),B(1),C("ngSwitchCase","year"),B(1),C("ngSwitchCase",
"multi-year"))},dependencies:[Ix,Jx,Uz,aB,HB,JB,IB],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 MB=function(a,b,c){var d=this;this._ref=a;this._containerInstance=c;this._afterOpened=new S.Subject;this._beforeClosed=new S.Subject;this._state=0;this.disableClose=b.disableClose;this.id=a.id;c._animationStateChanged.pipe(rf(function(e){return"opened"===e.state}),Qf()).subscribe(function(){d._afterOpened.next();d._afterOpened.complete()});c._animationStateChanged.pipe(rf(function(e){return"closed"===e.state}),Qf()).subscribe(function(){clearTimeout(d._closeFallbackTimeout);d._finishDialogClose()});
a.overlayRef._detachments.subscribe(function(){d._beforeClosed.next(d._result);d._beforeClosed.complete();d._finishDialogClose()});(0,S.merge)(this.backdropClick(),this.keydownEvents().pipe(rf(function(e){return 27===e.keyCode&&!d.disableClose&&!hi(e)}))).subscribe(function(e){d.disableClose||(e.preventDefault(),d._closeInteractionType="keydown"===e.type?"keyboard":"mouse",d.close(void 0))})};
MB.prototype.close=function(a){var b=this;this._result=a;this._containerInstance._animationStateChanged.pipe(rf(function(c){return"closing"===c.state}),Qf()).subscribe(function(c){b._beforeClosed.next(a);b._beforeClosed.complete();Dpb(b._ref.overlayRef);b._closeFallbackTimeout=setTimeout(function(){return b._finishDialogClose()},c.totalTime+100)});this._state=1;this._containerInstance._startExitAnimation()};MB.prototype.afterOpened=function(){return this._afterOpened};var NB=function(a){return a._ref.closed};
g=MB.prototype;g.backdropClick=function(){return this._ref.backdropClick};g.keydownEvents=function(){return this._ref.keydownEvents};g.updatePosition=function(a){var b=this._ref.config.positionStrategy;a&&(a.left||a.right)?a.left?b.left(a.left):b.right(a.right):TA(b);a&&(a.top||a.bottom)?a.top?b.top(a.top):b.bottom(a.bottom):Kpb(b);this._ref.updatePosition()};g.updateSize=function(a,b){this._ref.updateSize(void 0===a?"":a,void 0===b?"":b)};g.addPanelClass=function(a){this._ref.addPanelClass(a)};
g.removePanelClass=function(a){this._ref.removePanelClass(a)};g.getState=function(){return this._state};g._finishDialogClose=function(){this._state=2;this._ref.close(this._result,{focusOrigin:this._closeInteractionType});this.componentInstance=null};
var OB=function(){this.role="dialog";this.panelClass="";this.hasBackdrop=!0;this.backdropClass="";this.disableClose=!1;this.height=this.width="";this.ariaLabel=this.ariaLabelledBy=this.ariaDescribedBy=this.data=null;this.ariaModal=!0;this.autoFocus="first-tabbable";this.closeOnDestroy=this.closeOnNavigation=this.restoreFocus=!0};
var PB=function(a,b,c,d,e,f,h,k){this._isDisposed=!1;this._elementRef=a;this._focusTrapFactory=b;this._config=d;this._interactivityChecker=e;this._ngZone=f;this._overlayRef=h;this._focusMonitor=k;this._closeInteractionType=this._elementFocusedBeforeDialogWasOpened=null;this._ariaLabelledBy=this._config.ariaLabelledBy||null;this._document=c};U(PB,ZA);g=PB.prototype;g._contentAttached=function(){this._initializeFocusTrap();this._handleBackdropClicks();this._captureInitialFocus()};
g._captureInitialFocus=function(){this._trapFocus()};g.ngOnDestroy=function(){this._restoreFocus()};g.attachComponentPortal=function(a){a=this._portalOutlet.attachComponentPortal(a);this._contentAttached();return a};g.attachTemplatePortal=function(a){a=this._portalOutlet.attachTemplatePortal(a);this._contentAttached();return 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":Ny(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._config.restoreFocus,b=null;"string"===typeof a?b=this._document.querySelector(a):"boolean"===typeof a?b=a?this._elementFocusedBeforeDialogWasOpened:null:a&&(b=a);if(this._config.restoreFocus&&b&&"function"===typeof b.focus){a=Sg();var c=this._elementRef.nativeElement;if(!a||a===this._document.body||a===c||c.contains(a))this._focusMonitor?(Tz(this._focusMonitor,b,this._closeInteractionType),this._closeInteractionType=null):b.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=Sg();return a===b||a.contains(b)};g._initializeFocusTrap=function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement);this._document&&(this._elementFocusedBeforeDialogWasOpened=Sg())};
g._handleBackdropClicks=function(){var a=this;this._overlayRef.backdropClick().subscribe(function(){a._config.disableClose&&a._recaptureFocus()})};PB.\u0275fac=function(a){return new (a||PB)(D(pd),D(Oy),D(ji,8),D(OB),D(Jy),D(jg),D(LA),D(Sz))};
PB.\u0275cmp=w({type:PB,selectors:[["cdk-dialog-container"]],viewQuery:function(a,b){a&1&&Bf(aB,7);if(a&2){var c;Af(c=Df())&&(b._portalOutlet=c.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(a,b){a&2&&ge("id",b._config.id||null)("role",b._config.role)("aria-modal",b._config.ariaModal)("aria-labelledby",b._config.ariaLabel?null:b._ariaLabelledBy)("aria-label",b._config.ariaLabel)("aria-describedby",b._config.ariaDescribedBy||null)},features:[ae],decls:1,
vars:0,consts:[["cdkPortalOutlet",""]],template:function(a){a&1&&M(0,Kla,0,0,"ng-template",0)},dependencies:[aB],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}\n"],encapsulation:2});
var mqb=new ld("DialogScrollStrategy"),nqb=new ld("DialogData"),oqb=new ld("DefaultDialogConfig"),pqb={provide:mqb,deps:[cB],useFactory:function(a){return function(){return a.scrollStrategies.block()}}};
var QB=function(a,b){var c=this;this.overlayRef=a;this.config=b;this.closed=new S.Subject;this.disableClose=b.disableClose;this.backdropClick=a.backdropClick();this.keydownEvents=a.keydownEvents();this.outsidePointerEvents=a.outsidePointerEvents();this.id=b.id;this.keydownEvents.subscribe(function(d){27!==d.keyCode||c.disableClose||hi(d)||(d.preventDefault(),c.close(void 0,{focusOrigin:"keyboard"}))});this.backdropClick.subscribe(function(){c.disableClose||c.close(void 0,{focusOrigin:"mouse"})})};
g=QB.prototype;g.close=function(a,b){if(this.containerInstance){var c=this.closed;this.containerInstance._closeInteractionType=(null==b?void 0:b.focusOrigin)||"program";this.overlayRef.dispose();c.next(a);c.complete();this.componentInstance=this.containerInstance=null}};g.updatePosition=function(){this.overlayRef.updatePosition()};g.updateSize=function(a,b){this.overlayRef.updateSize({width:void 0===a?"":a,height:void 0===b?"":b})};g.addPanelClass=function(a){this.overlayRef.addPanelClass(a)};
g.removePanelClass=function(a){this.overlayRef.removePanelClass(a)};
var qqb=0,RB=function(a,b,c,d,e,f){var h=this;this._overlay=a;this._injector=b;this._defaultOptions=c;this._parentDialog=d;this._overlayContainer=e;this._openDialogsAtThisLevel=[];this._afterAllClosedAtThisLevel=new S.Subject;this._afterOpenedAtThisLevel=new S.Subject;this._ariaHiddenElements=new Map;(0,S.defer)(function(){return h.openDialogs.length?h._getAfterAllClosed():h._getAfterAllClosed().pipe(ag(void 0))});this._scrollStrategy=f};g=RB.prototype;
g.open=function(a,b){var c=this;b=Object.assign({},this._defaultOptions||new OB,b);b.id=b.id||"cdk-dialog-"+qqb++;b.id&&this.getDialogById(b.id);var d=this._getOverlayConfig(b);d=this._overlay.create(d);var e=new QB(d,b);d=this._attachContainer(d,e,b);e.containerInstance=d;this._attachDialogContent(a,e,d,b);this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology();this.openDialogs.push(e);e.closed.subscribe(function(){return c._removeOpenDialog(e,!0)});this.afterOpened.next(e);
return e};g.getDialogById=function(a){this.openDialogs.find(function(b){return b.id===a})};g.ngOnDestroy=function(){var a=this;Lla(this._openDialogsAtThisLevel,function(b){!1===b.config.closeOnDestroy&&a._removeOpenDialog(b,!1)});Lla(this._openDialogsAtThisLevel,function(b){return b.close()});this._afterAllClosedAtThisLevel.complete();this._afterOpenedAtThisLevel.complete();this._openDialogsAtThisLevel=[]};
g._getOverlayConfig=function(a){var b=new KA({positionStrategy:a.positionStrategy||Kpb(TA(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,width:a.width,height:a.height,disposeOnNavigation:a.closeOnNavigation});a.backdropClass&&(b.backdropClass=a.backdropClass);return b};
g._attachContainer=function(a,b,c){var d,e,f=null!=(e=c.injector)?e:null==(d=c.viewContainerRef)?void 0:d.injector;b=[{provide:OB,useValue:c},{provide:QB,useValue:b},{provide:LA,useValue:a}];c.container?"function"===typeof c.container?d=c.container:(d=c.container.type,b.push.apply(b,u(c.container.providers(c)))):d=PB;c=new XA(d,c.viewContainerRef,hg({parent:f||this._injector,providers:b}),c.componentFactoryResolver);return a.attach(c).instance};
g._attachDialogContent=function(a,b,c,d){var e=this._createInjector(d,b,c);a instanceof xf?(b={$implicit:d.data,dialogRef:b},d.templateContext&&(b=Object.assign({},b,"function"===typeof d.templateContext?d.templateContext():d.templateContext)),c.attachTemplatePortal(new YA(a,null,b,e))):(a=c.attachComponentPortal(new XA(a,d.viewContainerRef,e,d.componentFactoryResolver)),b.componentInstance=a.instance)};
g._createInjector=function(a,b,c){var d=a&&a.viewContainerRef&&a.viewContainerRef.injector,e=[{provide:nqb,useValue:a.data},{provide:QB,useValue:b}];a.providers&&("function"===typeof a.providers?e.push.apply(e,u(a.providers(b,a,c))):e.push.apply(e,u(a.providers)));!a.direction||d&&d.get(rA,null,8)||e.push({provide:rA,useValue:{value:a.direction,change:(0,S.of)()}});return hg({parent:d||this._injector,providers:e})};
g._removeOpenDialog=function(a,b){a=this.openDialogs.indexOf(a);-1<a&&(this.openDialogs.splice(a,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(c,d){c?d.setAttribute("aria-hidden",c):d.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),b&&this._getAfterAllClosed().next()))};
g._hideNonDialogContentFromAssistiveTechnology=function(){var a=xA(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._getAfterAllClosed=function(){var a=this._parentDialog;return a?a._getAfterAllClosed():this._afterAllClosedAtThisLevel};
li.Object.defineProperties(RB.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}}});RB.\u0275fac=function(a){return new (a||RB)(t(cB),t(Qv),t(oqb,8),t(RB,12),t(wA),t(mqb))};RB.\u0275prov=dc({token:RB,factory:RB.\u0275fac});
var SB=function(){};SB.\u0275fac=function(a){return new (a||SB)};SB.\u0275mod=uc({type:SB});SB.\u0275inj=gc({providers:[RB,pqb],imports:[fB,bB,aA,bB]});
var TB={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},rqb=Eh("dialogContainer",[Hh("void, exit",Gh({opacity:0,transform:"scale(0.7)"})),Hh("enter",Gh({transform:"none"})),Ih("* => enter",{type:3,steps:[Fh("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Gh({transform:"none",opacity:1})),Kh("@*",Jh())],options:null},TB),Ih("* => void, * => exit",{type:3,steps:[Fh("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Gh({opacity:0})),Kh("@*",Jh())],options:null},
TB)]);
var UB=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=TB.params.enterAnimationDuration;this.exitAnimationDuration=TB.params.exitAnimationDuration};
var VB=function(a,b,c,d,e,f,h,k){PB.call(this,a,b,c,d,e,f,h,k);this._animationStateChanged=new Rw};U(VB,PB);VB.prototype._captureInitialFocus=function(){this._config.delayFocusTrap||this._trapFocus()};VB.prototype._openAnimationDone=function(a){this._config.delayFocusTrap&&this._trapFocus();this._animationStateChanged.next({state:"opened",totalTime:a})};VB.\u0275fac=function(a){return new (a||VB)(D(pd),D(Oy),D(ji,8),D(UB),D(Jy),D(jg),D(LA),D(Sz))};
VB.\u0275cmp=w({type:VB,selectors:[["ng-component"]],features:[ae],decls:0,vars:0,template:function(){},encapsulation:2});var WB=function(a,b,c,d,e,f,h,k,q){VB.call(this,a,b,c,d,e,f,h,q);this._changeDetectorRef=k;this._state="enter"};U(WB,VB);WB.prototype._onAnimationDone=function(a){var b=a.toState;a=a.totalTime;"enter"===b?this._openAnimationDone(a):"exit"===b&&this._animationStateChanged.next({state:"closed",totalTime:a})};
WB.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})};WB.prototype._startExitAnimation=function(){this._state="exit";this._changeDetectorRef.markForCheck()};
WB.prototype._getAnimationState=function(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||TB.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||TB.params.exitAnimationDuration}}};WB.\u0275fac=function(a){return new (a||WB)(D(pd),D(Oy),D(ji,8),D(UB),D(Jy),D(jg),D(LA),D(vx),D(Sz))};
WB.\u0275cmp=w({type:WB,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(a,b){a&1&&ofa("@dialogContainer.start",function(c){return b._onAnimationStart(c)})("@dialogContainer.done",function(c){return b._onAnimationDone(c)});a&2&&(ve("id",b._config.id),ge("aria-modal",b._config.ariaModal)("role",b._config.role)("aria-labelledby",b._config.ariaLabel?null:b._ariaLabelledBy)("aria-label",b._config.ariaLabel)("aria-describedby",b._config.ariaDescribedBy||
null),we("@dialogContainer",b._getAnimationState()))},features:[ae],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(a){a&1&&M(0,Mla,0,0,"ng-template",0)},dependencies:[aB],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:[rqb]}});
var XB=new ld("MatDialogData"),sqb=new ld("mat-dialog-default-options"),tqb=new ld("mat-dialog-scroll-strategy"),uqb={provide:tqb,deps:[cB],useFactory:function(a){return function(){return a.scrollStrategies.block()}}},vqb=0,YB=function(a,b,c,d,e,f,h,k,q){var v=this;this._overlay=a;this._defaultOptions=c;this._parentDialog=d;this._dialogRefConstructor=h;this._dialogContainerType=k;this._dialogDataToken=q;this._openDialogsAtThisLevel=[];this._afterAllClosedAtThisLevel=new S.Subject;this._afterOpenedAtThisLevel=
new S.Subject;this._idPrefix="mat-dialog-";(0,S.defer)(function(){return v.openDialogs.length?v._getAfterAllClosed():v._getAfterAllClosed().pipe(ag(void 0))});this._scrollStrategy=f;this._dialog=b.get(RB)};g=YB.prototype;g._getAfterAllClosed=function(){var a=this._parentDialog;return a?a._getAfterAllClosed():this._afterAllClosedAtThisLevel};
g.open=function(a,b){var c=this,d;b=Object.assign({},this._defaultOptions||new UB,b);b.id=b.id||"mat-dialog-"+vqb++;b.scrollStrategy=b.scrollStrategy||this._scrollStrategy();a=this._dialog.open(a,Object.assign({},b,{positionStrategy:Kpb(TA(this._overlay.position().global())),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:function(){return[{provide:UB,useValue:b},{provide:OB,useValue:b}]}},templateContext:function(){return{dialogRef:d}},providers:function(e,f,
h){d=new c._dialogRefConstructor(e,b,h);var k;d.updatePosition(null==(k=b)?void 0:k.position);return[{provide:c._dialogContainerType,useValue:h},{provide:c._dialogDataToken,useValue:f.data},{provide:c._dialogRefConstructor,useValue:d}]}}));d.componentInstance=a.componentInstance;this.openDialogs.push(d);this.afterOpened.next(d);NB(d).subscribe(function(){var e=c.openDialogs.indexOf(d);-1<e&&(c.openDialogs.splice(e,1),c.openDialogs.length||c._getAfterAllClosed().next())});return d};
g.getDialogById=function(a){this.openDialogs.find(function(b){return b.id===a})};g.ngOnDestroy=function(){this._closeDialogs(this._openDialogsAtThisLevel);this._afterAllClosedAtThisLevel.complete();this._afterOpenedAtThisLevel.complete()};g._closeDialogs=function(a){for(var b=a.length;b--;)a[b].close()};
li.Object.defineProperties(YB.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}}});YB.\u0275fac=function(){pe()};YB.\u0275prov=dc({token:YB,factory:YB.\u0275fac});var ZB=function(a,b,c,d,e,f,h,k){YB.call(this,a,b,d,f,h,e,MB,WB,XB,k)};U(ZB,YB);
ZB.\u0275fac=function(a){return new (a||ZB)(t(cB),t(Qv),t(dy,8),t(sqb,8),t(tqb),t(ZB,12),t(wA),t(ew,8))};ZB.\u0275prov=dc({token:ZB,factory:ZB.\u0275fac});
var wqb=0,$B=function(a,b,c){this.dialogRef=a;this._elementRef=b;this._dialog=c;this.type="button"};$B.prototype.ngOnInit=function(){this.dialogRef||(this.dialogRef=Nla(this._elementRef,this._dialog.openDialogs))};$B.prototype.ngOnChanges=function(a){if(a=a._matDialogClose||a._matDialogCloseResult)this.dialogResult=a.currentValue};$B.prototype._onButtonClick=function(a){var b=this.dialogRef,c=this.dialogResult;b._closeInteractionType=0===a.screenX&&0===a.screenY?"keyboard":"mouse";b.close(c)};
$B.\u0275fac=function(a){return new (a||$B)(D(MB,8),D(pd),D(ZB))};$B.\u0275dir=w({type:$B,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(a,b){a&1&&J("click",function(c){return b._onButtonClick(c)});a&2&&ge("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:[Cc]});
var aC=function(a,b,c){this._dialogRef=a;this._elementRef=b;this._dialog=c;this.id="mat-dialog-title-"+wqb++};aC.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)})};aC.\u0275fac=function(a){return new (a||aC)(D(MB,8),D(pd),D(ZB))};
aC.\u0275dir=w({type:aC,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(a,b){a&2&&ve("id",b.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]});var bC=function(){};bC.\u0275fac=function(a){return new (a||bC)};bC.\u0275dir=w({type:bC,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]});var cC=function(){this.align="start"};
cC.\u0275fac=function(a){return new (a||cC)};cC.\u0275dir=w({type:cC,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(a,b){a&2&&le("mat-dialog-actions-align-center","center"===b.align)("mat-dialog-actions-align-end","end"===b.align)},inputs:{align:"align"}});
var dC=function(){};dC.\u0275fac=function(a){return new (a||dC)};dC.\u0275mod=uc({type:dC});dC.\u0275inj=gc({providers:[ZB,uqb],imports:[SB,fB,bB,gB,gB]});
var xqb=Og({passive:!0}),eC=function(a,b){this._platform=a;this._ngZone=b;this._monitoredElements=new Map};
eC.prototype.monitor=function(a){var b=this;if(!this._platform.isBrowser)return S.EMPTY;var c=Xg(a);if(a=this._monitoredElements.get(c))return a.subject;var d=new S.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,xqb);c.classList.add("cdk-text-field-autofill-monitored")});this._monitoredElements.set(c,{subject:d,unlisten:function(){c.removeEventListener("animationstart",e,xqb)}});return d};
eC.prototype.stopMonitoring=function(a){a=Xg(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))};eC.prototype.ngOnDestroy=function(){var a=this;this._monitoredElements.forEach(function(b,c){return a.stopMonitoring(c)})};eC.\u0275fac=function(a){return new (a||eC)(t(Iy),t(jg))};eC.\u0275prov=dc({token:eC,factory:eC.\u0275fac,providedIn:"root"});
var fC=function(a,b,c,d){var e=this;this._elementRef=a;this._platform=b;this._ngZone=c;this._destroyed=new S.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=fC.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,gC(this),this._ngZone.runOutsideAngular(function(){(0,S.fromEvent)(a._getWindow(),"resize").pipe(Lf(16),cg(a._destroyed)).subscribe(function(){return gC(a,!0)});a._textareaElement.addEventListener("focus",a._handleFocusEvent);a._textareaElement.addEventListener("blur",a._handleFocusEvent)}),this._isViewInited=!0,gC(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&&gC(this)};
var gC=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=fC.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)};
li.Object.defineProperties(fC.prototype,{minRows:{configurable:!0,enumerable:!0,get:function(){return this._minRows},set:function(a){this._minRows=Yg(a);this._setMinHeight()}},maxRows:{configurable:!0,enumerable:!0,get:function(){return this._maxRows},set:function(a){this._maxRows=Yg(a);this._setMaxHeight()}},enabled:{configurable:!0,enumerable:!0,get:function(){return this._enabled},set:function(a){a=Vg(a);this._enabled!==a&&((this._enabled=a)?gC(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()}}});fC.\u0275fac=function(a){return new (a||fC)(D(pd),D(Iy),D(jg),D(ji,8))};
fC.\u0275dir=w({type:fC,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(a){a&1&&J("input",function(){})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]});
var hC=function(){};hC.\u0275fac=function(a){return new (a||hC)};hC.\u0275mod=uc({type:hC});hC.\u0275inj=gc({});
var yqb=0,zqb=new ld("MatError"),iC=function(a,b){this.id="mat-error-"+yqb++;a||b.nativeElement.setAttribute("aria-live","polite")};iC.\u0275fac=function(a){return new (a||iC)(Zc("aria-live"),D(pd))};iC.\u0275dir=w({type:iC,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(a,b){a&2&&ge("id",b.id)},inputs:{id:"id"},features:[Ge([{provide:zqb,useExisting:iC}])]});
var Aqb=Eh("transitionMessages",[Hh("enter",Gh({opacity:1,transform:"translateY(0%)"})),Ih("void => enter",[Gh({opacity:0,transform:"translateY(-5px)"}),Fh("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])]);
var jC=function(){};jC.\u0275fac=function(a){return new (a||jC)};jC.\u0275dir=w({type:jC});
var Bqb=0,Cqb=new ld("MatHint"),kC=function(){this.align="start";this.id="mat-hint-"+Bqb++};kC.\u0275fac=function(a){return new (a||kC)};kC.\u0275dir=w({type:kC,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(a,b){a&2&&(ge("id",b.id)("align",null),le("mat-form-field-hint-end","end"===b.align))},inputs:{align:"align",id:"id"},features:[Ge([{provide:Cqb,useExisting:kC}])]});
var lC=function(){};lC.\u0275fac=function(a){return new (a||lC)};lC.\u0275dir=w({type:lC,selectors:[["mat-label"]]});
var mC=function(){};mC.\u0275fac=function(a){return new (a||mC)};mC.\u0275dir=w({type:mC,selectors:[["mat-placeholder"]]});
var Dqb=new ld("MatPrefix");
var Eqb=new ld("MatSuffix");
var Fqb=["connectionContainer"],Gqb=["inputContainer"],Hqb=["label"],Iqb=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Jqb=0,Kqb=mi(function(a){this._elementRef=a},"primary"),Lqb=new ld("MAT_FORM_FIELD_DEFAULT_OPTIONS"),nC=new ld("MatFormField"),oC=function(a,b,c,d,e,f,h){a=Kqb.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 S.Subject;a._hideRequiredMarker=!1;a._showAlwaysAnimate=!1;a._subscriptAnimationState="";a._hintLabel="";a._hintLabelId="mat-hint-"+Jqb++;a._labelId="mat-form-field-label-"+Jqb++;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(oC,Kqb);g=oC.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(ag(null)).subscribe(function(){a._syncDescribedByIds();a._changeDetectorRef.markForCheck()});b.ngControl&&b.ngControl.valueChanges&&b.ngControl.valueChanges.pipe(cg(this._destroyed)).subscribe(function(){return a._changeDetectorRef.markForCheck()});this._ngZone.runOutsideAngular(function(){a._ngZone.onStable.pipe(cg(a._destroyed)).subscribe(function(){a._outlineGapCalculationNeededOnStable&&
si(a)})});(0,S.merge)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){a._outlineGapCalculationNeededOnStable=!0;a._changeDetectorRef.markForCheck()});this._hintChildren.changes.pipe(ag(null)).subscribe(function(){a._processHints();a._changeDetectorRef.markForCheck()});this._errorChildren.changes.pipe(ag(null)).subscribe(function(){a._syncDescribedByIds();a._changeDetectorRef.markForCheck()});this._dir&&this._dir.change.pipe(cg(this._destroyed)).subscribe(function(){"function"===
typeof requestAnimationFrame?a._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return si(a)})}):si(a)})};g.ngAfterContentChecked=function(){this._outlineGapCalculationNeededImmediately&&si(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,S.fromEvent)(this._label.nativeElement,"transitionend").pipe(Qf()).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 si=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"};oC.prototype._getStartEnd=function(a){return this._dir&&"rtl"===this._dir.value?a.right:a.left};oC.prototype._isAttachedToDOM=function(){var a=this._elementRef.nativeElement;if(a.getRootNode){var b=a.getRootNode();return b&&b!==a}return document.documentElement.contains(a)};
li.Object.defineProperties(oC.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=Vg(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}}});oC.\u0275fac=function(a){return new (a||oC)(D(pd),D(vx),D(rA,8),D(Lqb,8),D(Iy),D(jg),D(ew,8))};
oC.\u0275cmp=w({type:oC,selectors:[["mat-form-field"]],contentQueries:function(a,b,c){a&1&&(Cf(c,jC,5),Cf(c,jC,7),Cf(c,lC,5),Cf(c,lC,7),Cf(c,mC,5),Cf(c,zqb,5),Cf(c,Cqb,5),Cf(c,Dqb,5),Cf(c,Eqb,5));if(a&2){var d;Af(d=Df())&&(b._controlNonStatic=d.first);Af(d=Df())&&(b._controlStatic=d.first);Af(d=Df())&&(b._labelChildNonStatic=d.first);Af(d=Df())&&(b._labelChildStatic=d.first);Af(d=Df())&&(b._placeholderChild=d.first);Af(d=Df())&&(b._errorChildren=d);Af(d=Df())&&(b._hintChildren=d);Af(d=Df())&&(b._prefixChildren=
d);Af(d=Df())&&(b._suffixChildren=d)}},viewQuery:function(a,b){a&1&&(Bf(Fqb,7),Bf(Gqb,5),Bf(Hqb,5));if(a&2){var c;Af(c=Df())&&(b._connectionContainerRef=c.first);Af(c=Df())&&(b._inputContainerRef=c.first);Af(c=Df())&&(b._label=c.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(a,b){a&2&&le("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:[Ge([{provide:nC,useExisting:oC}]),ae],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&&(xe(Iqb),F(0,"div",0)(1,"div",
1,2),J("click",function(c){return b._control.onContainerClick&&b._control.onContainerClick(c)}),M(3,Ola,9,0,"ng-container",3),M(4,Pla,2,1,"div",4),F(5,"div",5,6),ye(7),F(8,"span",7),M(9,Tla,5,16,"label",8),G()(),M(10,Ula,2,0,"div",9),G(),M(11,Vla,2,4,"div",10),F(12,"div",11),M(13,Wla,2,1,"div",12),M(14,Yla,5,2,"div",13),G()());a&2&&(B(3),C("ngIf","outline"==b.appearance),B(1),C("ngIf",b._prefixChildren.length),B(5),C("ngIf",b._hasFloatingLabel()),B(1),C("ngIf",b._suffixChildren.length),B(1),C("ngIf",
"outline"!=b.appearance),B(1),C("ngSwitch",b._getDisplayedMessages()),B(1),C("ngSwitchCase","error"),B(1),C("ngSwitchCase","hint"))},dependencies:[Cx,Ix,Jx,Yz],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:[Aqb]},changeDetection:0});
var pC=function(){};pC.\u0275fac=function(a){return new (a||pC)};pC.\u0275mod=uc({type:pC});pC.\u0275inj=gc({imports:[Wx,gB,Zz,gB]});
var Mqb=new ld("MAT_INPUT_VALUE_ACCESSOR");
var Nqb="button checkbox file hidden image radio range reset submit".split(" "),Oqb=0,Pqb=mla(function(a,b,c,d){this._defaultErrorStateMatcher=a;this._parentForm=b;this._parentFormGroup=c;this.ngControl=d;this.stateChanges=new S.Subject}),qC=function(a,b,c,d,e,f,h,k,q,v){var y=Pqb.call(this,f,d,e,c)||this;y._elementRef=a;y._platform=b;y._autofillMonitor=k;y._formField=v;y._uid="mat-input-"+Oqb++;y.focused=!1;y.stateChanges=new S.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 kja().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=!!v;y._isNativeSelect&&(y.controlType=c.multiple?"mat-native-select-multiple":"mat-native-select");return y};U(qC,Pqb);g=qC.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(){Nqb.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)};
li.Object.defineProperties(qC.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=Vg(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:lnb(b))?d:!1},set:function(a){this._required=Vg(a)}},type:{configurable:!0,enumerable:!0,get:function(){return this._type},set:function(a){this._type=a||"text";this._validateType();!this._isTextarea&&kja().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=Vg(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}}});qC.\u0275fac=function(a){return new (a||qC)(D(pd),D(Iy),D(jy,10),D(py,8),D(yy,8),D(pB),D(Mqb,10),D(eC),D(jg),D(nC,8))};
qC.\u0275dir=w({type:qC,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&&J("focus",function(){return b._focusChanged(!0)})("blur",function(){return b._focusChanged(!1)})("input",function(){return b._onInput()});a&2&&(ve("disabled",b.disabled)("required",b.required),ge("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),le("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:[Ge([{provide:jC,useExisting:qC}]),ae,Cc]});
var rC=function(){};rC.\u0275fac=function(a){return new (a||rC)};rC.\u0275mod=uc({type:rC});rC.\u0275inj=gc({providers:[pB],imports:[hC,pC,gB,hC,pC]});
var Qqb={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},sC=Qqb;sC=Qqb;
var tC=function(a){return function(){return a}},uC=function(){},jaa=function(a){return a},aDa=function(){var a=$Ca;return function(){return!a.apply(this,arguments)}},vC=function(a,b){var c=0;return function(d){ca.clearTimeout(c);var e=arguments;c=ca.setTimeout(function(){a.apply(void 0,e)},b)}},Rqb=function(a){var b=0,c=!1,d=[],e=function(){b=0;c&&(c=!1,f())},f=function(){b=ca.setTimeout(e,10);var h=d;d=[];a.apply(void 0,h)};return function(h){d=arguments;b?c=!0:f()}};
var Sqb=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=qh(tt);return!b.parentElement}),$o=function(a,b){if(Sqb())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=qh(b)},Tqb=function(a,b){b=b instanceof dh?b:Ij(b);a.action=fh(b)},Vqb=function(a,b){var c=Uqb(a.ownerDocument&&a.ownerDocument.defaultView);
c&&a.setAttribute("nonce",c);a.src=Uja(b)},boa=function(a,b,c,d){a=a instanceof dh?a:Ij(a);b=b||ca;c=c instanceof gh?hh(c):c||"";return void 0!==d?b.open(fh(a),c,d):b.open(fh(a),c)},Wqb=/^[\w+/_-]+[=]{0,2}$/,Uqb=function(a){a=(a||ca).document;return a.querySelector?(a=a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&Wqb.test(a)?a:"":""};
var Xqb=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")},wC=function(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},Jj=function(a){return a=jib(a)},Yqb=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},eSa=function(a,b,c){return a.replace(new RegExp(Qn(b),"g"),c.replace(/\$/g,
"$$$$"))},Qn=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},xC=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)},yC=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+xC("0",Math.max(0,b-c))+a},Vi=function(a){return null==a?"":String(a)},zC=function(){return Math.floor(2147483648*Math.random()).toString(36)+
Math.abs(Math.floor(2147483648*Math.random())^bu()).toString(36)},AC=function(a){var b=Number(a);return 0==b&&Wi(a)?NaN:b},Lk=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},Zqb=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 $qb=RegExp("^((?:[-+]\\d*)?\\d{4})(?:(?:-?(\\d{2})(?:-?(\\d{2}))?)|(?:-?(\\d{3}))|(?:-?W(\\d{2})(?:-?([1-7]))?))?$"),arb=/^(\d{2})(?::?(\d{2})(?::?(\d{2})(\.\d+)?)?)?$/,brb=/Z|(?:([-+])(\d{2})(?::?(\d{2}))?)$/,crb=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},drb=function(a){var b=new Date(bu()),c;if(c=a.getDate()==b.getDate())if(b=b||new Date(bu()),c=a.getMonth()==b.getMonth())b=b||new Date(bu()),c=a.getFullYear()==b.getFullYear();
return c},erb=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)},po=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)};
po.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("")};po.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};po.prototype.clone=function(){return new po(this.years,this.months,this.days,this.hours,this.minutes,this.seconds)};
po.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=frb(a,b||0,c||1),BC(this,c||1)):Fa(a)?(this.date=frb(a.getFullYear(),a.getMonth(),a.getDate()),BC(this,a.getDate())):(this.date=new Date(bu()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),BC(this,a))},frb=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_=sC.FIRSTDAYOFWEEK;
g.firstWeekCutOffDay_=sC.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(crb(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()),BC(this,a.getDate()))};
g.toIsoString=function(a){var b=this.getFullYear(),c=0>b?"-":1E4<=b?"+":"";return[c+yC(Math.abs(b),c?6:4),yC(this.getMonth()+1,2),yC(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 BC=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 CC=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():bu())};du(CC,Ji);g=CC.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"+yC(this.getHours(),2)+":"+yC(this.getMinutes(),2)+":"+yC(this.getSeconds(),2):b+"T"+yC(this.getHours(),2)+yC(this.getMinutes(),2)+yC(this.getSeconds(),2)};g.equals=function(a){return this.getTime()==a.getTime()};g.toString=function(){return this.toIsoString()};g.clone=function(){var a=new CC(this.date);a.firstDayOfWeek_=this.getFirstDayOfWeek();a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};
var grb=function(){},oo=function(a){if("number"==typeof a){var b=new grb;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(":",yC(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=hrb(a);b.tzNames_=[c,c];b.tzNamesExt_={STD_LONG_NAME_GMT:a,STD_GENERIC_LOCATION:a};b.transitions_=[];return b}b=new grb;
b.timeZoneId_=a.id;b.standardOffset_=-a.std_offset;b.tzNames_=a.names;b.tzNamesExt_=a.names_ext;b.transitions_=a.transitions;return b},hrb=function(a){var b=["GMT"];b.push(0>=a?"+":"-");a=Math.abs(a);b.push(yC(Math.floor(a/60)%100,2),":",yC(a%60,2));return b.join("")},DC=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]};
grb.prototype.getOffset=function(a){a=this.standardOffset_-DC(this,a);return-1440===a?0:a};
var ui=function(a){this.patternParts_=[];this.dateTimeSymbols_=sC;"number"==typeof a?this.applyStandardPattern_(a):this.applyPattern_(a)},irb=[/^'(?:[^']|'')*('|$)/,/^(?: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]+/],EC=function(a){return a.getHours?a.getHours():0};
ui.prototype.applyPattern_=function(a){for(jrb&&(a=a.replace(/\u200f/g,""));a;){for(var b=a,c=0;c<irb.length;++c){var d=a.match(irb[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("mb`"+a);}};
ui.prototype.format=function(a,b){if(!a)throw Error("nb");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(krb(this,h,a,d,e,b)):c.push(h)}return c.join("")};
ui.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 GC=function(a,b){return FC(b,a.dateTimeSymbols_)},jrb=!1,FC=function(a,b){a=String(a);b=b||sC;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("")},HC=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("ob");},krb=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),GC(a,yC(c,h));case "Y":return c=d.getMonth(),e=d.getDate(),c=erb(d.getFullYear(),c,e,a.dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.dateTimeSymbols_.FIRSTDAYOFWEEK),c=(new Date(c)).getFullYear(),0>c&&(c=-c),2==h&&(c%=100),GC(a,yC(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=GC(a,yC(c+1,h))}return a;
case "k":return HC(e),GC(a,yC(EC(e)||24,h));case "S":return GC(a,(e.getMilliseconds()/1E3).toFixed(Math.min(3,h)).slice(2)+(3<h?yC(0,h-3):""));case "E":return c=d.getDay(),4<=h?a.dateTimeSymbols_.WEEKDAYS[c]:a.dateTimeSymbols_.SHORTWEEKDAYS[c];case "a":return HC(e),h=EC(e),a.dateTimeSymbols_.AMPMS[12<=h&&24>h?1:0];case "b":return HC(e),h=EC(e),a.dateTimeSymbols_.AMPMS[12<=h&&24>h?1:0];case "B":return HC(e),h=EC(e),a.dateTimeSymbols_.AMPMS[12<=h&&24>h?1:0];case "h":return HC(e),GC(a,yC(EC(e)%12||12,
h));case "K":return HC(e),GC(a,yC(EC(e)%12,h));case "H":return HC(e),GC(a,yC(EC(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=GC(a,yC(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=GC(a,yC(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 GC(a,yC(d.getDate(),h));case "m":return HC(e),GC(a,yC(e.getMinutes(),h));case "s":return HC(e),GC(a,yC(e.getSeconds(),h));case "v":return(f||oo(c.getTimezoneOffset())).timeZoneId_;case "V":return a=f||oo(c.getTimezoneOffset()),2>=h?a.timeZoneId_:0<DC(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=erb(e.getFullYear(),c,d,a.dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.dateTimeSymbols_.FIRSTDAYOFWEEK),GC(a,yC(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,h));case "z":return a=f||oo(c.getTimezoneOffset()),4>h?a.tzNames_[0<DC(a,
c)?2:0]:a.tzNames_[0<DC(a,c)?3:1];case "Z":return d=f||oo(c.getTimezoneOffset()),4>h?(a=-d.getOffset(c),h=[0>a?"-":"+"],a=Math.abs(a),h.push(yC(Math.floor(a/60)%100,2),yC(a%60,2)),a=h.join("")):a=GC(a,hrb(d.getOffset(c))),a;default:return""}};
var ti=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 qy(b.initialTime,{validators:[hy,this.dateTimeMustBeInTheFuture.bind(this)]});this.dateAdapter.setLocale(navigator.languages&&navigator.languages[0]||"en-US")};ti.prototype.onSaveClick=function(){var a=lrb(this.inputDate,this.timeFormControl.value).getTime();this.dialogRef.close(a)};
ti.prototype.dateTimeMustBeInTheFuture=function(a){var b=new Date;return lrb(this.inputDate,a.value)<=b?(a={},a.dateTimeMustBeInTheFuture=!0,a):null};var lrb=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))};ti.prototype.getDate=function(a){return new Date(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getMilliseconds())};
li.Object.defineProperties(ti.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":""}}});ti.\u0275fac=function(a){return new (a||ti)(D(MB),D(XB),D(hB))};
ti.\u0275cmp=w({type:ti,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&&(F(0,"div",0)(1,"h4",1),O(2),G(),F(3,"mat-dialog-content")(4,"mat-calendar",2),J("selectedChange",function(c){return b.inputDate=c})("selectedChange",function(){if(!b.hideTimePicker){var c=new Date;!drb(b.inputDate)&&b.timeFormControl.pristine&&b.timeFormControl.setValue(b.initialTime);if(drb(b.inputDate)&&
lrb(b.inputDate,b.timeFormControl.value)<=c){23===c.getHours()?c.setMinutes(59):c.setHours(c.getHours()+1);var d=new ui("HH:mm");b.timeFormControl.setValue(d.format(c))}}Ig(b.timeFormControl)}),G(),M(5,Zla,1,1,"input",3),M(6,$la,2,1,"mat-error",4),G(),F(7,"mat-dialog-actions",5)(8,"button",6),J("click",function(){b.dialogRef.close()}),O(9,"Cancel"),G(),F(10,"button",7),J("click",function(){return b.onSaveClick()}),O(11," Save "),G()()());a&2&&(B(2),Ee(b.hideTimePicker?"Pick date":"Pick date & time"),
B(2),C("startAt",b.inputDate)("selected",b.inputDate)("minDate",b.minDate),B(1),C("ngIf",!b.hideTimePicker),B(1),C("ngIf",b.hasFormError),B(4),C("disabled",b.hasFormError))},dependencies:[Cx,Jg,ly,Cy,BB,LB,aC,bC,cC,iC,qC,xy,Py],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 mrb={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"},nrb={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"},orb={G3C_WIDGET_WITHOUT_TASK_ACTIONS:"g3cWidgetWithoutTaskActions",G3C_WIDGET_WITH_TASK_ACTIONS:"g3cWidgetWithTaskActions"};
var prb={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 IC=function(a,b,c){var d=this;this.document=a;this.focusTrapFactory=b;this.elementRef=c;this.dismiss=new Rw;this.action=new Rw;this.pointerPosition=2;this.color="blue";this.actionBtnText="";this.Position=prb;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)};IC.prototype.ngAfterContentInit=function(){Ly(this.focusTrap);this.setPreviouslyFocusedElement();Ny(this.focusTrap)};
IC.prototype.ngOnDestroy=function(){this.document.removeEventListener("keydown",this.dismissIfEscape);this.document.removeEventListener("focusin",this.setPreviouslyFocusedElement);this.focusTrap.destroy()};
IC.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)};li.Object.defineProperties(IC.prototype,{widthOffset:{configurable:!0,enumerable:!0,set:function(a){this.width=272+64*a}}});
IC.\u0275fac=function(a){return new (a||IC)(D(ji),D(fA),D(pd))};
IC.\u0275cmp=w({type:IC,selectors:[["onedev-feature-tooltip-body"]],hostVars:16,hostBindings:function(a,b){a&2&&le("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:[Ge([{provide:tpb,useValue:{preventFocus:function(){},allowFocus:function(){}}},fA])],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&&(xe(),F(0,"div",0)(1,"div",1),H(2,"div",2),G(),ye(3),F(4,"div",3),M(5,dma,2,1,"button",4),F(6,"button",5),J("click",function(){return b.dismissTooltip()}),O(7," Got it "),G()()());a&2&&(ke("width",b.width,
"px"),C("ngClass",b.color),B(5),C("ngIf",b.actionBtnText),B(1),C("color","white"===b.color?"primary":""))},dependencies:[Py,Fx,Cx,BB],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 JC=function(){};JC.\u0275fac=function(a){return new (a||JC)};JC.\u0275mod=uc({type:JC});JC.\u0275inj=gc({});
var KC=function(){this.anchorMap=new Map},LC=function(a,b){if(a.anchorMap.has(b))return a.anchorMap.get(b);var c={created$:new S.ReplaySubject(1),destroyed$:new S.Subject,dismissTooltip$:new S.Subject};a.anchorMap.set(b,c);return c},qrb=function(a,b,c){LC(a,b).created$.next(c)},rrb=function(a,b){LC(a,b).destroyed$.next();LC(a,b).created$.next(void 0)};KC.prototype.dismissTooltip=function(a){LC(this,a).dismissTooltip$.next()};KC.\u0275fac=function(a){return new (a||KC)};
KC.\u0275prov=dc({token:KC,factory:KC.\u0275fac,providedIn:JC});
var srb={pointerPosition:0,connectedPosition:{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetX:-12}},trb=[{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}}],urb=[{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}},srb,{pointerPosition:1,connectedPosition:{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top",offsetX:12}}],vrb=[{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}}],wrb=[{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 MC=function(){};MC.\u0275fac=function(a){return new (a||MC)};MC.\u0275mod=uc({type:MC});MC.\u0275inj=gc({});
var NC=function(){},yrb=function(a,b){return xrb(a,b).map(function(c){return c.connectedPosition})},zrb=function(a,b,c){a=xrb(a,b).find(function(d){return d.connectedPosition===c});if(!a)throw Error("pb`"+JSON.stringify(c));return a.pointerPosition},xrb=function(a,b){b=Arb(b).filter(function(c){return!a.includes(c)});return a.concat(b)},Arb=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?trb:urb).concat(void 0!==a&&60>a?vrb:wrb)};NC.\u0275fac=function(a){return new (a||NC)};NC.\u0275prov=dc({token:NC,factory:NC.\u0275fac,providedIn:MC});
var OC={};OC.AssertionError=ba;OC.ENABLE_ASSERTS=!1;OC.assert=function(a){return a};OC.assertArray=function(a){return a};OC.assertBoolean=function(a){return a};OC.assertElement=function(a){return a};OC.assertExists=function(a){return a};OC.assertFinite=function(a){return a};OC.assertFunction=function(a){return a};OC.assertInstanceof=function(a){return a};OC.assertNumber=function(a){return a};OC.assertObject=function(a){return a};OC.assertString=function(a){return a};OC.fail=function(){};
var Brb=["template"],PC=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 S.Subject;this.customPositions=[];this.widthOffset=0;this.color="blue";this.hasBackdrop=!1;this.actionBtnText="";this.dismiss=new Rw;this.beforeShown=new Rw;this.action=new Rw;this.pointerPosition=0;this.destroyed$=new S.ReplaySubject;this.init$=new S.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}};PC.prototype.ngOnChanges=function(a){if(a.customPositions){var b;null==(b=this.overlayRef)||Epb(b,Crb(this))}};
PC.prototype.ngOnInit=function(){var a=LC(this.anchorService,this.tooltipId),b=a.destroyed$,c=a.dismissTooltip$;Drb(this,a.created$);b.pipe(cg(this.destroyed$)).subscribe(this.hideFeatureTooltip);Erb(this,c)};PC.prototype.ngAfterViewInit=function(){this.init$.next()};PC.prototype.ngOnDestroy=function(){this.hideFeatureTooltip();this.destroyed$.next()};
var Drb=function(a,b){a.open$.pipe(Dha(a.init$),dg(function(){a.beforeShown.emit()}),bg(function(){return b.pipe(cg(a.dismiss))}),cg(a.destroyed$),rf(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:Crb(a),scrollStrategy:a.getScrollStrategy(),
minWidth:"fit-content",hasBackdrop:a.hasBackdrop});var f;null==(f=a.overlayRef)||f.attach(new YA(a.templateRef,a.containerRef))})},Erb=function(a,b){b.pipe(cg(a.destroyed$),rf(function(){return a.isVisible()})).subscribe(function(){a.hideFeatureTooltip();a.dismiss.emit()})};PC.prototype.getScrollStrategy=function(){var a=this.overlay.scrollStrategies;return this.hasBackdrop?a.block():a.reposition()};
PC.prototype.getPositionStrategy=function(){if(!this.anchor)throw Error("qb");return NA(VA(this.overlay.position(),this.anchor),yrb(this.customPositions,this.anchor))};var Crb=function(a){var b=a.getPositionStrategy();b.positionChanges.subscribe(function(c){a.ngZone.run(function(){a.pointerPosition=zrb(a.customPositions,a.anchor,c.connectionPair);a.changeDetectorRef.markForCheck()})});return b};PC.prototype.isVisible=function(){return!!this.overlayRef};
PC.\u0275fac=function(a){return new (a||PC)(D(KC),D(cB),D(yf),D(jg),D(vx),D(NC))};
PC.\u0275cmp=w({type:PC,selectors:[["onedev-feature-tooltip"]],viewQuery:function(a,b){a&1&&Bf(Brb,5);if(a&2){var c;Af(c=Df())&&(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:[Cc],ngContentSelectors:["*"],decls:2,vars:0,consts:[["template",""],[3,"actionBtnText","color",
"pointerPosition","widthOffset","action","dismiss"]],template:function(a){a&1&&(xe(),M(0,ema,2,4,"ng-template",null,0,Jf))},dependencies:[IC],encapsulation:2,changeDetection:0});
var QC=function(){};QC.\u0275fac=function(a){return new (a||QC)};QC.\u0275mod=uc({type:QC});QC.\u0275inj=gc({});
var RC=function(){};RC.\u0275fac=function(a){return new (a||RC)};RC.\u0275mod=uc({type:RC});RC.\u0275inj=gc({imports:[QC]});
var SC=function(){};SC.prototype.getValue=function(a){a=window.localStorage.getItem(a);return(0,S.of)(a?JSON.parse(a):null)};SC.prototype.getValues=function(a){return(0,S.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))};SC.prototype.setValue=function(a,b){window.localStorage.setItem(a,JSON.stringify(b));return(0,S.of)(void 0)};SC.\u0275fac=function(a){return new (a||SC)};
SC.\u0275prov=dc({token:SC,factory:SC.\u0275fac,providedIn:QC});
var Frb=function(a){this.cellValue_=a};
var TC=function(a,b,c){this.metricName_=a;this.cellType_=b;this.fields_=c||[];this.cellMap_=new Map};g=TC.prototype;g.addCell=function(a){var b=qc.apply(1,arguments),c=this.getCells(b);c?c.push(new Frb(a)):this.setCell(a,b)};g.setCell=function(a){this.cellMap_.set(this.getKey_(qc.apply(1,arguments)),[new Frb(a)])};g.getCells=function(){var a=this.getKey_(qc.apply(0,arguments));return this.cellMap_.has(a)?this.cellMap_.get(a):void 0};
g.getCell=function(){var a=this.getCells(qc.apply(0,arguments));return a&&a.length?a[0]:void 0};g.clear=function(){this.cellMap_.clear()};g.getKey_=function(){var a=qc.apply(0,arguments);return a?a.join(","):"key"};
var UC=function(a,b){TC.call(this,a,3,b)};U(UC,TC);UC.prototype.incrementCounter=function(){this.incrementCounterBy(1,qc.apply(0,arguments))};UC.prototype.incrementCounterBy=function(a){var b=qc.apply(1,arguments),c=0,d=this.getCell(b);d&&(c=d.cellValue_);this.setCell(c+a,b)};
var VC=function(a,b){TC.call(this,a,2,b)};U(VC,TC);VC.prototype.record=function(a){this.addCell(a,qc.apply(1,arguments))};
var WC=function(){this.disposed_=this.disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};WC.prototype.disposed_=!1;WC.prototype.isDisposed=function(){return this.disposed_};WC.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())};var XC=function(a,b){b=au(vi,b);a.disposed_?b():(a.onDisposeCallbacks_||(a.onDisposeCallbacks_=[]),a.onDisposeCallbacks_.push(b))};WC.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};
var YC=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.propagationStopped_=!1};YC.prototype.stopPropagation=function(){this.propagationStopped_=!0};YC.prototype.preventDefault=function(){this.defaultPrevented=!0};
var ZC=[],$C=[],Grb=!1,aD=function(a){ZC[ZC.length]=a;if(Grb)for(var b=0;b<$C.length;b++)a($t($C[b].wrap,$C[b]))};
var Hrb=function(a){var b=ca.onerror;ca.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}},Jrb=function(a){var b=Mo("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||ca.$googDebugFname||b}catch(h){e="Not available",c=!0}b=Irb(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,bD[c])c=bD[c];else{c=String(c);if(!bD[c]){var f=/function\s+([^\(]+)/m.exec(c);bD[c]=f?f[1]:"[Anonymous]"}c=bD[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}},Irb=function(a,b){b||(b={});b[Krb(a)]=!0;var c=a.stack||"";(a=a.cause)&&!b[Krb(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=Irb(a,b));return c},Krb=function(a){var b="";
"function"===typeof a.toString&&(b=""+a);return b+a.stack},bD={};
var Lrb=function(){if(!ca.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{ca.addEventListener("test",function(){},b),ca.removeEventListener("test",function(){},b)}catch(c){}return a}();
var cD=function(a,b){YC.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)};du(cD,YC);var Mrb={2:"touch",3:"pen",4:"mouse"};
cD.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)?ju&&(oib(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=ku||void 0!==a.offsetX?
a.offsetX:a.layerX,this.offsetY=ku||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:Mrb[a.pointerType]||"";this.state=a.state;this.event_=a;a.defaultPrevented&&cD.superClass_.preventDefault.call(this)};cD.prototype.stopPropagation=function(){cD.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};cD.prototype.preventDefault=function(){cD.superClass_.preventDefault.call(this);var a=this.event_;a.preventDefault?a.preventDefault():a.returnValue=!1};
var Nrb="closure_listenable_"+(1E6*Math.random()|0),dD=function(a){return!(!a||!a[Nrb])};
var Orb=0;
var Prb=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=++Orb;this.removed=this.callOnce=!1},eD=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.handler=null};
var fD=function(a){this.src=a;this.listeners={};this.typeCount_=0};fD.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=Qrb(a,b,d,e);-1<h?(b=a[h],c||(b.callOnce=!1)):(b=new Prb(b,this.src,f,!!d,e),b.callOnce=c,a.push(b));return b};
fD.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Qrb(e,b,c,d);return-1<b?(eD(e[b]),xa(e,b),0==e.length&&(delete this.listeners[a],this.typeCount_--),!0):!1};var Rrb=function(a,b){var c=b.type;if(!(c in a.listeners))return!1;var d=ya(a.listeners[c],b);d&&(eD(b),0==a.listeners[c].length&&(delete a.listeners[c],a.typeCount_--));return d};
fD.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,eD(d[e]);delete this.listeners[c];this.typeCount_--}return b};fD.prototype.getListener=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=Qrb(a,b,c,d));return-1<e?a[e]:null};
fD.prototype.hasListener=function(a,b){var c=void 0!==a,d=c?a.toString():"",e=void 0!==b;return uja(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 Qrb=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 Srb="closure_lm_"+(1E6*Math.random()|0),Trb={},Urb=0,Ro=function(a,b,c,d,e){if(d&&d.once)return gD(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)Ro(a,b[f],c,d,e);return null}c=hD(c);return dD(a)?a.listen(b,c,Fa(d)?!!d.capture:!!d,e):Vrb(a,b,c,!1,d,e)},Vrb=function(a,b,c,d,e,f){if(!b)throw Error("rb");var h=Fa(e)?!!e.capture:!!e,k=iD(a);k||(a[Srb]=k=new fD(a));c=k.add(b,c,d,h,f);if(c.proxy)return c;d=Wrb();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)Lrb||(e=h),void 0===e&&
(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(Xrb(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("sb");Urb++;return c},Wrb=function(){var a=Yrb,b=function(c){return a.call(b.src,b.listener,c)};return b},gD=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)gD(a,b[f],c,d,e);return null}c=hD(c);return dD(a)?a.listenOnce(b,c,Fa(d)?!!d.capture:!!d,e):Vrb(a,b,c,!0,d,e)},jD=function(a,b,c,d,e){if(Array.isArray(b))for(var f=
0;f<b.length;f++)jD(a,b[f],c,d,e);else d=Fa(d)?!!d.capture:!!d,c=hD(c),dD(a)?a.unlisten(b,c,d,e):a&&(a=iD(a))&&(b=a.getListener(b,c,d,e))&&kD(b)},kD=function(a){if("number"===typeof a||!a||a.removed)return!1;var b=a.src;if(dD(b))return b.unlistenByKey(a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Xrb(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Urb--;(c=iD(b))?(Rrb(c,a),0==c.typeCount_&&(c.src=null,b[Srb]=null)):eD(a);
return!0},Xrb=function(a){return a in Trb?Trb[a]:Trb[a]="on"+a},Yrb=function(a,b){if(a.removed)a=!0;else{b=new cD(b,this);var c=a.listener,d=a.handler||a.src;a.callOnce&&kD(a);a=c.call(d,b)}return a},iD=function(a){a=a[Srb];return a instanceof fD?a:null},Zrb="__closure_events_fn_"+(1E9*Math.random()>>>0),hD=function(a){if("function"===typeof a)return a;a[Zrb]||(a[Zrb]=function(b){return a.handleEvent(b)});return a[Zrb]};aD(function(a){Yrb=a(Yrb)});
var Qo=function(){WC.call(this);this.eventTargetListeners_=new fD(this);this.actualEventTarget_=this;this.parentEventTarget_=null};du(Qo,WC);Qo.prototype[Nrb]=!0;g=Qo.prototype;g.getParentEventTarget=function(){return this.parentEventTarget_};g.setParentEventTarget=function(a){this.parentEventTarget_=a};g.addEventListener=function(a,b,c,d){Ro(this,a,b,c,d)};g.removeEventListener=function(a,b,c,d){jD(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 YC(a,c);else if(a instanceof YC)a.target=a.target||c;else{var e=a;a=new YC(d,c);Dja(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(){Qo.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 Rrb(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 lD=function(a,b){this.limit_=100;this.create_=a;this.reset_=b;this.occupants_=0;this.head_=null};lD.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};lD.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 $rb=hu||ku;
var asb=function(a,b){return a+Math.random()*(b-a)};
var Tq=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};Tq.prototype.clone=function(){return new Tq(this.x,this.y)};Tq.prototype.equals=function(a){return a instanceof Tq&&(this==a?!0:this&&a?this.x==a.x&&this.y==a.y:!1)};var Uq=function(a,b){return new Tq(a.x-b.x,a.y-b.y)};g=Tq.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 Tq?(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 mD=function(a,b){this.width=a;this.height=b},WSa=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};g=mD.prototype;g.clone=function(){return new mD(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 Zo=function(a){return a?new nD(oD(a)):bib||(bib=new nD)},pD=function(a,b){return"string"===typeof b?a.getElementById(b):b},qD=function(a,b){return(b||document).getElementsByTagName(String(a))},csb=function(a,b){Zg(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:bsb.hasOwnProperty(d)?a.setAttribute(bsb[d],c):Ni(d,"aria-")||Ni(d,"data-")?a.setAttribute(d,c):a[d]=c})},
bsb={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"},sD=function(a){a=(a||window).document;a=rD(a)?a.documentElement:a.body;return new mD(a.clientWidth,a.clientHeight)},uD=function(a){var b=tD(a);a=a.parentWindow||a.defaultView;return hu&&nu("10")&&a.pageYOffset!=b.scrollTop?new Tq(b.scrollLeft,b.scrollTop):new Tq(a.pageXOffset||
b.scrollLeft,a.pageYOffset||b.scrollTop)},tD=function(a){return a.scrollingElement?a.scrollingElement:!ku&&rD(a)?a.documentElement:a.body||a.documentElement},vD=function(a){return a?a.parentWindow||a.defaultView:window},esb=function(a,b,c){return dsb(document,arguments)},dsb=function(a,b){var c=b[1],d=Hj(a,String(b[0]));c&&("string"===typeof c?d.className=c:Array.isArray(c)?d.className=c.join(" "):csb(d,c));2<b.length&&fsb(a,d,b,2);return d},fsb=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(!Ea(f)||Fa(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(Fa(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}sa(h?Aa(f):f,e)}}},Hj=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)},rD=function(a){return"CSS1Compat"==a.compatMode},gsb=function(a,b){fsb(oD(a),a,arguments,
1)},wD=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},xD=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null},yD=function(a){return Fa(a)&&1==a.nodeType},kTa=function(a){var b;if($rb&&!(hu&&nu("9")&&!nu("10")&&ca.SVGElement&&a instanceof ca.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return yD(b)?b:null},MHa=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},oD=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document},zD=function(a){return a.contentDocument||a.contentWindow.document},AD=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 wD(a),a.appendChild(oD(a).createTextNode(String(b)))},hsb={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,
OBJECT:1},isb={IMG:" ",BR:"\n"},jsb=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a},ksb=function(a,b,c){if(!(a.nodeName in hsb))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 isb)b.push(isb[a.nodeName]);else for(a=a.firstChild;a;)ksb(a,b,c),a=a.nextSibling},cSa=function(){var a=vD();return void 0!==a.devicePixelRatio?a.devicePixelRatio:a.matchMedia?BD(3)||BD(2)||BD(1.5)||BD(1)||.75:1},BD=function(a){return vD().matchMedia("(min-resolution: "+
a+"dppx),(min--moz-device-pixel-ratio: "+a+"),(min-resolution: "+96*a+"dpi)").matches?a:0},nD=function(a){this.document_=a||ca.document||document};g=nD.prototype;g.getDomHelper=Zo;g.getElement=function(a){return pD(this.document_,a)};g.$=nD.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&&ua(a.split(/\s+/),b)&&(d[e++]=h);d.length=e;
b=d}else b=c;return b};g.$$=nD.prototype.getElementsByTagNameAndClass;g.setProperties=csb;g.getViewportSize=function(){return sD(this.getWindow())};g.createDom=function(a,b,c){return dsb(this.document_,arguments)};g.createElement=function(a){return Hj(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=gsb;
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=wD;g.removeNode=xD;
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=yD;g.getParentElement=kTa;g.contains=MHa;
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")||jsb(a)):b=a.hasAttribute("tabindex")&&jsb(a);if(b&&hu){var c;"function"!==typeof a.getBoundingClientRect||hu&&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 lsb,msb=function(){var a=ca.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!fa("Presto")&&(a=function(){var e=Hj(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=$t(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&&!caa()){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){ca.setTimeout(e,0)}},nsb=jaa;aD(function(a){nsb=a});
var osb=function(){this.workTail_=this.workHead_=null};osb.prototype.add=function(a,b){var c=psb.get();c.set(a,b);this.workTail_?this.workTail_.next=c:this.workHead_=c;this.workTail_=c};osb.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 psb=new lD(function(){return new qsb},function(a){return a.reset()}),qsb=function(){this.next=this.scope=this.fn=null};
qsb.prototype.set=function(a,b){this.fn=a;this.scope=b;this.next=null};qsb.prototype.reset=function(){this.next=this.scope=this.fn=null};
var DD=function(a,b){CD||rsb();ssb||(CD(),ssb=!0);tsb.add(a,b)},CD,rsb=function(){if(ca.Promise&&ca.Promise.resolve){var a=ca.Promise.resolve(void 0);CD=function(){a.then(usb)}}else CD=function(){var b=usb;b=nsb(b);"function"!==typeof ca.setImmediate||ca.Window&&ca.Window.prototype&&!fa("Edge")&&ca.Window.prototype.setImmediate==ca.setImmediate?(lsb||(lsb=msb()),lsb(b)):ca.setImmediate(b)}},ssb=!1,tsb=new osb,usb=function(){for(var a;a=tsb.remove();){try{a.fn.call(a.scope)}catch(b){bb(b)}psb.put(a)}ssb=
!1};
var vsb=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
var FD=function(a){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(a!=uC)try{var b=this;a.call(void 0,function(c){ED(b,2,c)},function(c){ED(b,3,c)})}catch(c){ED(this,3,c)}},wsb=function(){this.next=this.context=this.onRejected=this.onFulfilled=this.child=null;this.always=!1};wsb.prototype.reset=function(){this.context=this.onRejected=this.onFulfilled=this.child=null;this.always=!1};
var xsb=new lD(function(){return new wsb},function(a){a.reset()}),ysb=function(a,b,c){var d=xsb.get();d.onFulfilled=a;d.onRejected=b;d.context=c;return d},GD=function(a){if(a instanceof FD)return a;var b=new FD(uC);ED(b,2,a);return b},zsb=function(a){return new FD(function(b,c){c(a)})},Bsb=function(a,b,c){Asb(a,b,c,null)||DD(au(b,a))},Csb=function(a){return new FD(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],Bsb(e,b,c)})},Dsb=function(a){return new FD(function(b,c){var d=
a.length,e=[];if(d)for(var f=function(v,y){d--;e[v]=y;0==d&&b(e)},h=function(v){c(v)},k=0,q;k<a.length;k++)q=a[k],Bsb(q,au(f,k),h);else b(e)})},Esb=function(a){return new FD(function(b,c){var d=a.length,e=[];if(d)for(var f=function(v){b(v)},h=function(v,y){d--;e[v]=y;0==d&&c(e)},k=0,q;k<a.length;k++)q=a[k],Bsb(q,f,au(h,k));else b(void 0)})},Gsb=function(){var a,b,c=new FD(function(d,e){a=d;b=e});return new Fsb(c,a,b)};
FD.prototype.then=function(a,b,c){return Hsb(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};FD.prototype.$goog_Thenable=!0;var Jsb=function(a,b){b=ysb(b,b);b.always=!0;Isb(a,b);return a};FD.prototype.thenCatch=function(a,b){return Hsb(this,null,a,b)};FD.prototype.catch=FD.prototype.thenCatch;FD.prototype.cancel=function(a){if(0==this.state_){var b=new HD(a);DD(function(){Ksb(this,b)},this)}};
var Ksb=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?Ksb(c,b):(f?(d=f,d.next==c.callbackEntriesTail_&&(c.callbackEntriesTail_=d),d.next=d.next.next):Lsb(c),Msb(c,e,3,b)))}a.parent_=null}else ED(a,3,b)},Isb=function(a,b){a.callbackEntries_||2!=a.state_&&3!=a.state_||Nsb(a);a.callbackEntriesTail_?a.callbackEntriesTail_.next=b:a.callbackEntries_=
b;a.callbackEntriesTail_=b},Hsb=function(a,b,c,d){var e=ysb(null,null,null);e.child=new FD(function(f,h){e.onFulfilled=b?function(k){try{var q=b.call(d,k);f(q)}catch(v){h(v)}}:f;e.onRejected=c?function(k){try{var q=c.call(d,k);void 0===q&&k instanceof HD?h(k):f(q)}catch(v){h(v)}}:h});e.child.parent_=a;Isb(a,e);return e.child};FD.prototype.unblockAndFulfill_=function(a){this.state_=0;ED(this,2,a)};FD.prototype.unblockAndReject_=function(a){this.state_=0;ED(this,3,a)};
var ED=function(a,b,c){0==a.state_&&(a===c&&(b=3,c=new TypeError("tb")),a.state_=1,Asb(c,a.unblockAndFulfill_,a.unblockAndReject_,a)||(a.result_=c,a.state_=b,a.parent_=null,Nsb(a),3!=b||c instanceof HD||Osb(a,c)))},Asb=function(a,b,c,d){if(a instanceof FD)return Isb(a,ysb(b||uC,c||null,d)),!0;if(vsb(a))return a.then(b,c,d),!0;if(Fa(a))try{var e=a.then;if("function"===typeof e)return Psb(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1},Psb=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)}},Nsb=function(a){a.executing_||(a.executing_=!0,DD(a.executeCallbacks_,a))},Lsb=function(a){var b=null;a.callbackEntries_&&(b=a.callbackEntries_,a.callbackEntries_=b.next,b.next=null);a.callbackEntries_||(a.callbackEntriesTail_=null);return b};FD.prototype.executeCallbacks_=function(){for(var a;a=Lsb(this);)Msb(this,a,this.state_,this.result_);this.executing_=!1};
var Msb=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,Qsb(b,c,d);else try{b.always?b.onFulfilled.call(b.context):Qsb(b,c,d)}catch(e){Rsb.call(null,e)}xsb.put(b)},Qsb=function(a,b,c){2==b?a.onFulfilled.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)},Osb=function(a,b){a.hadUnhandledRejection_=!0;DD(function(){a.hadUnhandledRejection_&&Rsb.call(null,b)})},Rsb=bb,HD=function(a){aa.call(this,
a);this.reportErrorToServer=!1};du(HD,aa);HD.prototype.name="cancel";var Fsb=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};
var ID=function(a,b){Qo.call(this);this.interval_=a||1;this.timerObject_=b||ca;this.boundTick_=$t(this.tick_,this);this.last_=bu()};du(ID,Qo);g=ID.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=bu()-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_=bu())};
g.stop=function(){this.enabled=!1;this.timer_&&(this.timerObject_.clearTimeout(this.timer_),this.timer_=null)};g.disposeInternal=function(){ID.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
var JD=function(a,b,c){if("function"===typeof a)c&&(a=$t(a,c));else if(a&&"function"==typeof a.handleEvent)a=$t(a.handleEvent,a);else throw Error("ub");return 2147483647<Number(b)?-1:ca.setTimeout(a,b||0)},KD=function(a){ca.clearTimeout(a)},Ssb=function(a,b){var c=null;return(new FD(function(d,e){c=JD(function(){d(b)},a);-1==c&&e(Error("vb"))})).thenCatch(function(d){KD(c);throw d;})};
var Tsb=function(a){this.streamzLogger_=a;this.metricMap=new Map;this.disabledMetrics_=new Set;this.invocationCount=0;this.flushInterval=3E4;this.flushTimer=new ID(this.flushInterval);this.flushTimer.listen("tick",this.snapshotAndFlush,!1,this)},Usb=function(a){a.flushTimer.enabled||a.flushTimer.start();a.invocationCount++;100<=a.invocationCount&&a.snapshotAndFlush()};g=Tsb.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);Vsb(a);this.invocationCount=0;this.flushTimer.enabled&&this.flushTimer.stop()};g.addNewCounter=function(a){var b=qc.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new UC(a,b))};g.addNewEventMetric=function(a){var b=qc.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new VC(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(qc.apply(1,arguments))))};g.incrementCounterBy=function(a,b){var c=qc.apply(2,arguments),d=this.getMetric(a);d&&d instanceof UC&&(d.incrementCounterBy(b,c),Usb(this))};g.record=function(a,b){var c=qc.apply(2,arguments),d=this.getMetric(a);d&&d instanceof VC&&(d.record(b,c),Usb(this))};var Vsb=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
var Wsb=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"})};Wsb.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};Wsb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var Xsb=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"})};Xsb.prototype.record=function(a,b,c){this.streamzService_.record(this.metricName_,a,b,c)};Xsb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var Ysb=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"})};Ysb.prototype.increment=function(a,b){this.streamzService_.incrementCounter(this.metricName_,a,b)};Ysb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var Zsb=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"})};Zsb.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};Zsb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var atb=function(a){Z.call(this,a,-1,$sb)};U(atb,Z);var LD=function(a){Z.call(this,a)};U(LD,Z);LD.prototype.getCount=function(){return p(this,2)};LD.prototype.setCount=function(a){l(this,2,a)};var $sb=[1];atb.prototype.toObject=function(){return btb(void 0,this)};var btb=function(a,b){if(null!=b){var c={entryList:Cb(rb(b,LD,1),ctb,a)};a&&(c.$jspbMessageInstance=b);return c}};LD.prototype.toObject=function(){return ctb(void 0,this)};
var ctb=function(a,b){if(null!=b){var c={valueOrBucket:n(uu(b,1)),count:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var MD=function(a){Z.call(this,a,-1,dtb)};U(MD,Z);var ND=function(a){Z.call(this,a)};U(ND,Z);ND.prototype.getMobile=function(){return yl(this,OD,1,etb)};var OD=function(a){Z.call(this,a)};U(OD,Z);OD.prototype.getAppName=function(){return p(this,1)};var PD=function(a){Z.call(this,a)};U(PD,Z);PD.prototype.getAppName=function(){return p(this,1)};PD.prototype.getExperimentId=function(){return p(this,3)};var QD=function(a){Z.call(this,a,-1,ftb)};U(QD,Z);var RD=function(a){Z.call(this,a)};U(RD,Z);
RD.prototype.getValueCase=function(){return pb(this,SD)};var TD=function(a){Z.call(this,a)};U(TD,Z);TD.prototype.getValueCase=function(){return pb(this,UD)};var dtb=[3,6,4];MD.prototype.toObject=function(){return gtb(void 0,this)};var gtb=function(a,b){if(null!=b){var c={streamzName:n(p(b,1)),hashedStreamzName:n(p(b,5)),rootSpec:htb(a,m(b,ND,2)),fieldNameList:n(jb(b,3)),hashedFieldNameList:n(jb(b,6)),incList:Cb(rb(b,QD,4),itb,a)};a&&(c.$jspbMessageInstance=b);return c}},etb=[1,2];
ND.prototype.toObject=function(){return htb(void 0,this)};var htb=function(a,b){if(null!=b){var c={mobile:jtb(a,b.getMobile()),mobileExp:ktb(a,yl(b,PD,2,etb))};a&&(c.$jspbMessageInstance=b);return c}};OD.prototype.toObject=function(){return jtb(void 0,this)};var jtb=function(a,b){if(null!=b){var c={appName:n(p(b,1)),appVersion:n(p(b,2)),useMobilespec:n(To(b,3))};a&&(c.$jspbMessageInstance=b);return c}};PD.prototype.toObject=function(){return ktb(void 0,this)};
var ktb=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(To(b,4))};a&&(c.$jspbMessageInstance=b);return c}},ftb=[1];QD.prototype.toObject=function(){return itb(void 0,this)};var itb=function(a,b){if(null!=b){var c={fieldList:Cb(rb(b,RD,1),ltb,a),incBy:mtb(a,m(b,TD,2))};a&&(c.$jspbMessageInstance=b);return c}},SD=[1,2,3];RD.prototype.toObject=function(){return ltb(void 0,this)};
var ltb=function(a,b){if(null!=b){var c={strVal:n(Rr(b,1,SD)),intVal:n(Rr(b,2,SD)),boolVal:n(To(b,qb(b,SD,3)))};a&&(c.$jspbMessageInstance=b);return c}},UD=[1,2,3];TD.prototype.toObject=function(){return mtb(void 0,this)};var mtb=function(a,b){if(null!=b){var c={int64Val:n(Rr(b,1,UD)),doubleVal:n(uu(b,qb(b,UD,2))),histogramVal:btb(a,yl(b,atb,3,UD))};a&&(c.$jspbMessageInstance=b);return c}};
var VD=function(a){Z.call(this,a)};U(VD,Z);VD.prototype.getKey=function(){return p(this,1)};VD.prototype.hasKey=function(){return dj(this,1)};VD.prototype.toObject=function(){return ntb(this)};var ntb=function(a){if(null!=a)return{key:n(p(a,1))}};
var ptb=function(a){Z.call(this,a,-1,otb)};U(ptb,Z);var otb=[1];ptb.prototype.toObject=function(){var a=null!=this?{batchList:Cb(rb(this,MD,1),gtb),slicerMetadata:ntb(m(this,VD,2))}:void 0;return a};
var qtb=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("wb`"+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("xb`"+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 stb=function(a,b,c){var d=String(ca.location.href);return d&&a&&b?[b,rtb(qtb(d),a,c||null)].join(" "):null},rtb=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],sa(d,function(k){e.push(k)}),ttb(e.join(" "));var f=[],h=[];sa(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];sa(d,function(k){e.push(k)});a=ttb(e.join(" "));a=[c,a];0==h.length||a.push(h.join(""));return a.join("_")},ttb=function(a){var b=
gma();b.update(a);return b.digestString().toLowerCase()};
var utb={};
var WD=function(){this.document_=document||{cookie:""}};g=WD.prototype;g.isEnabled=function(){if(!ca.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("yb`"+a);if(/[;\r\n]/.test(b))throw Error("zb`"+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=Ri(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 XD(this).keys};g.getValues=function(){return XD(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=XD(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};g.clear=function(){for(var a=XD(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var XD=function(a){a=(a.document_.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=Ri(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 vtb=function(a){return!!utb.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)},wtb=function(a,b,c,d){(a=ca[a])||(a=(new WD).get(b));return a?stb(a,c,d):null},Oo=function(a,b){b=void 0===b?!1:b;var c=qtb(String(ca.location.href)),d=[];var e=b;e=void 0===e?!1:e;var f=ca.__SAPISID||ca.__APISID||ca.__3PSAPISID||ca.__OVERRIDE_SID;vtb(e)&&(f=f||ca.__1PSAPISID);if(f)e=!0;else{var h=new WD;f=h.get("SAPISID")||h.get("APISID")||h.get("__Secure-3PAPISID")||h.get("SID");vtb(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:"))?ca.__SAPISID:ca.__APISID,e||(e=new WD,e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID")),(e=e?stb(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e),c&&vtb(b)&&((b=wtb("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=wtb("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&d.push(a)));return 0==d.length?null:d.join(" ")};
var YD=function(a){Z.call(this,a,-1,xtb)};U(YD,Z);var xtb=[2];YD.prototype.toObject=function(){return ytb(void 0,this)};var ytb=function(a,b){if(null!=b){var c={clearBlob:Fb(vu(b,1)),clearBlobJs:n(p(b,4)),encryptedBlobList:Fb(kb(b,2,ab)),usersMatch:n(To(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var ZD=function(a){this.currBaseValue_=this.currValue_=this.initialValue_=a};ZD.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_};ZD.prototype.getValue=function(){return this.currValue_};
var ztb=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,""))},Atb=function(a){try{return ca.JSON.parse(a)}catch(b){}a=String(a);if(ztb(a))try{return eval("("+a+")")}catch(b){}throw Error("Ab`"+a);},$D=function(a,b){return(new Btb(b)).serialize(a)},Btb=function(a){this.replacer_=
a};Btb.prototype.serialize=function(a){var b=[];Ctb(this,a,b);return b.join("")};
var Ctb=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],Ctb(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),Dtb(d,c),c.push(":"),Ctb(a,a.replacer_?a.replacer_.call(b,
d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":Dtb(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("Bb`"+typeof b);}}},Etb={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Ftb=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g,Dtb=function(a,b){b.push('"',a.replace(Ftb,
function(c){var d=Etb[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),Etb[c]=d);return d}),'"')};
var Gtb=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 aE=function(){};aE.prototype.cachedOptions_=null;aE.prototype.getOptions=function(){return this.cachedOptions_||(this.cachedOptions_=this.internalGetOptions())};
var Htb,bE=function(){};du(bE,aE);bE.prototype.createInstance=function(){var a=Itb(this);return a?new ActiveXObject(a):new XMLHttpRequest};bE.prototype.internalGetOptions=function(){var a={};Itb(this)&&(a[0]=!0,a[1]=!0);return a};
var Itb=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("Cb");}return a.ieProgId_};Htb=new bE;
var Jtb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Ktb=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," ")):"")}}},Ltb=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]},Mtb=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)Mtb(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+encodeURIComponent(String(b))))},Ntb=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)Mtb(a[b],a[b+1],c);return c.join("&")},Otb=function(a){var b=[],c;for(c in a)Mtb(c,a[c],b);return b.join("&")},cE=function(a,b){var c=2==arguments.length?Ntb(arguments[1],0):Ntb(arguments,
1);return Ltb(a,c)},Usa=function(a,b){b=Otb(b);return Ltb(a,b)},dE=function(a,b,c){c=null!=c?"="+encodeURIComponent(String(c)):"";return Ltb(a,b+c)},Ptb=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},Qtb=/#|$/,Rtb=function(a,b){var c=a.search(Qtb),d=Ptb(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," "))},Stb=/[?&]($|#)/;
var eE=function(a){Qo.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};du(eE,Qo);
var Ttb=/^https?$/i,Utb=["POST","PUT"],Vtb=[],wi=function(a,b,c,d,e,f,h){var k=new eE;Vtb.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};eE.prototype.cleanupSend_=function(){this.dispose();ya(Vtb,this)};eE.prototype.setTrustToken=function(a){this.trustToken_=a};
eE.prototype.send=function(a,b,c,d){if(this.xhr_)throw Error("Db`"+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():Htb.getOptions();this.xhr_.onreadystatechange=$t(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("Eb`"+String(d));d=Array.from(c.keys()).find(function(h){return"content-type"==h.toLowerCase()});e=ca.FormData&&a instanceof ca.FormData;!ua(Utb,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{Wtb(this),0<this.timeoutInterval_&&((this.useXhr2Timeout_=Xtb(this.xhr_))?(this.xhr_.timeout=
this.timeoutInterval_,this.xhr_.ontimeout=$t(this.timeout_,this)):this.timeoutId_=JD(this.timeout_,this.timeoutInterval_,this)),this.inSend_=!0,this.xhr_.send(a),this.inSend_=!1}catch(h){this.error_(5,h)}};var Xtb=function(a){return hu&&nu(9)&&"number"===typeof a.timeout&&void 0!==a.ontimeout};eE.prototype.createXhr=function(){return this.xmlHttpFactory_?this.xmlHttpFactory_.createInstance():Htb.createInstance()};
eE.prototype.timeout_=function(){"undefined"!=typeof Zt&&this.xhr_&&(this.lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};eE.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;Ytb(this);fE(this)};var Ytb=function(a){a.errorDispatched_||(a.errorDispatched_=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
eE.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"),fE(this))};eE.prototype.disposeInternal=function(){this.xhr_&&(this.active_&&(this.active_=!1,this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1),fE(this,!0));eE.superClass_.disposeInternal.call(this)};
eE.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)Ztb(this);else this.onReadyStateChangeEntryPoint_()};eE.prototype.onReadyStateChangeEntryPoint_=function(){Ztb(this)};
var Ztb=function(a){if(a.active_&&"undefined"!=typeof Zt&&(!a.xhrOptions_[1]||4!=a.getReadyState()||2!=a.getStatus()))if(a.inSend_&&4==a.getReadyState())JD(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()+"]";Ytb(a)}}finally{fE(a)}}},fE=function(a,b){if(a.xhr_){Wtb(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){}}},Wtb=function(a){a.xhr_&&a.useXhr2Timeout_&&(a.xhr_.ontimeout=null);a.timeoutId_&&(KD(a.timeoutId_),a.timeoutId_=null)};g=eE.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(Jtb)[1]||null,!a&&ca.self&&ca.self.location&&(a=ca.self.location.protocol.slice(0,-1)),a=!Ttb.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(ca.JSON)try{var c=ca.JSON.parse(a);break a}catch(d){}c=Atb(a)}return c}};
var $tb=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=eE.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(!Wi(b[c])){var d=Zqb(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 tja(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_)};aD(function(a){eE.prototype.onReadyStateChangeEntryPoint_=a(eE.prototype.onReadyStateChangeEntryPoint_)});
var gE=function(a){Z.call(this,a)};U(gE,Z);gE.prototype.getLocale=function(){return p(this,5)};gE.prototype.setLocale=function(a){return l(this,5,a)};gE.prototype.setBuildLabel=function(a){l(this,7,a)};var hE=function(a){Z.call(this,a,-1,aub)};U(hE,Z);hE.prototype.getMobile=function(){return To(this,2)};var iE=function(a){Z.call(this,a)};U(iE,Z);iE.prototype.getVersion=function(){return p(this,2)};iE.prototype.setVersion=function(a){return l(this,2,a)};gE.prototype.toObject=function(){return bub(this)};
var bub=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:cub(m(a,hE,9))}},aub=[1];hE.prototype.toObject=function(){return cub(this)};var cub=function(a){if(null!=a)return{uaListList:Cb(rb(a,iE,1),dub),mobile:n(To(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))}};
iE.prototype.toObject=function(){return dub(void 0,this)};var dub=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 eub=["platform","platformVersion","architecture","model","uaFullVersion"];new hE;
var jE=function(a){Z.call(this,a)};U(jE,Z);var fub=function(a){Z.call(this,a)};U(fub,Z);jE.prototype.toObject=function(){return gub(this)};var gub=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:hub(m(a,fub,3)),battlestarMachineTier:n(p(a,6))}};fub.prototype.toObject=function(){return hub(this)};var hub=function(a){if(null!=a)return{guestAngle:n(To(a,1))}};
var kE=function(a){Z.call(this,a)};U(kE,Z);kE.prototype.getClientType=function(){return p(this,1)};kE.prototype.setClientType=function(a){return l(this,1,a)};kE.prototype.setBuildLabel=function(a){l(this,2,a)};kE.prototype.toObject=function(){return iub(this)};var iub=function(a){if(null!=a)return{clientType:n(p(a,1)),buildLabel:n(p(a,2)),birdsongBuildLabel:n(p(a,3))}};
var lE=function(a){Z.call(this,a)};U(lE,Z);lE.prototype.getLocale=function(){return p(this,1)};lE.prototype.setLocale=function(a){return l(this,1,a)};lE.prototype.toObject=function(){return jub(this)};var jub=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 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,2)};g.setLoggingId=function(a){l(this,2,a)};g.toObject=function(){return lub(this)};
var lub=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 mE=function(a){Z.call(this,a)};U(mE,Z);mE.prototype.toObject=function(){return mub(this)};var mub=function(a){if(null!=a)return{buildVersion:n(p(a,1)),driveDesktopClientType:n(p(a,2))}};
var nE=function(a){Z.call(this,a)};U(nE,Z);nE.prototype.toObject=function(){return nub(this)};var nub=function(a){if(null!=a)return{buildVersion:n(p(a,1)),g1DesktopClientType:n(p(a,2))}};
var oE=function(a){Z.call(this,a)};U(oE,Z);oE.prototype.getLocale=function(){return p(this,11)};oE.prototype.setLocale=function(a){return l(this,11,a)};oE.prototype.toObject=function(){return oub(this)};
var oub=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(To(a,12)),surfaceType:n(p(a,13)),osType:n(p(a,14)),optedInMetricsLogging:n(To(a,15))}};
var pE=function(a){Z.call(this,a)};U(pE,Z);pE.prototype.getLocale=function(){return p(this,5)};pE.prototype.setLocale=function(a){return l(this,5,a)};pE.prototype.toObject=function(){return pub(this)};var pub=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 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{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 qE=function(a){Z.call(this,a)};U(qE,Z);qE.prototype.getAppId=function(){return p(this,3)};qE.prototype.setAppId=function(a){l(this,3,a)};qE.prototype.toObject=function(){return sub(this)};var sub=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 tub=function(a){Z.call(this,a)};U(tub,Z);g=tub.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 uub(this)};var uub=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 rE=function(a){Z.call(this,a)};U(rE,Z);rE.prototype.getBattlestarClientInfo=function(){return yl(this,jE,1,vub)};rE.prototype.getDriveDesktopClientInfo=function(){return yl(this,mE,2,vub)};rE.prototype.getG1DesktopClientInfo=function(){return yl(this,nE,3,vub)};var vub=[1,2,3];rE.prototype.toObject=function(){return wub(this)};var wub=function(a){if(null!=a)return{battlestarClientInfo:gub(a.getBattlestarClientInfo()),driveDesktopClientInfo:mub(a.getDriveDesktopClientInfo()),g1DesktopClientInfo:nub(a.getG1DesktopClientInfo())}};
var xub=function(a){Z.call(this,a)};U(xub,Z);xub.prototype.toObject=function(){return yub(this)};var yub=function(a){if(null!=a)return{machineClass:n(p(a,1))}};
var zub=function(a){Z.call(this,a)};U(zub,Z);zub.prototype.toObject=function(){return Aub(this)};var Aub=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 sE=function(a){Z.call(this,a)};U(sE,Z);sE.prototype.setBuildLabel=function(a){l(this,1,a)};sE.prototype.getEnvironment=function(){return p(this,3)};sE.prototype.setEnvironment=function(a){return l(this,3,a)};sE.prototype.toObject=function(){return Bub(this)};
var Bub=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 tE=function(a){Z.call(this,a)};U(tE,Z);g=tE.prototype;g.getClientType=function(){return p(this,1)};g.setClientType=function(a){return l(this,1,a)};g.getBattlestarClientInfo=function(){return m(this,jE,22)};g.getDriveDesktopClientInfo=function(){return m(this,mE,24)};g.getG1DesktopClientInfo=function(){return m(this,nE,25)};g.getMutableJsClientInfo=function(){return xu(this,gE,11)};g.toObject=function(){return Cub(this)};
var Cub=function(a){if(null!=a)return{clientType:n(p(a,1)),remoteHost:n(p(a,6)),remoteHost6:n(p(a,7)),battlestarClientInfo:gub(a.getBattlestarClientInfo()),birdsongClientInfo:iub(m(a,kE,14)),desktopClientInfo:lub(m(a,kub,3)),driveDesktopClientInfo:mub(a.getDriveDesktopClientInfo()),g1DesktopClientInfo:nub(a.getG1DesktopClientInfo()),googleHomeClientInfo:oub(m(a,oE,16)),jsClientInfo:bub(m(a,gE,11)),kaiosClientInfo:pub(m(a,pE,20)),macClientInfo:rub(m(a,qub,13)),pancettaClientInfo:sub(m(a,qE,10)),playCeClientInfo:uub(m(a,
tub,5)),portablePhenotypeLibraryClientInfo:wub(m(a,rE,23)),sparklightClientInfo:yub(m(a,xub,18)),vrClientInfo:Aub(m(a,zub,8)),yetiClientInfo:Bub(m(a,sE,15)),browserInfo:jub(m(a,lE,9)),heterodyneConfigVersion:n(p(a,12))}};
var Eub=function(a){Z.call(this,a,-1,Dub)};U(Eub,Z);var Dub=[1,2,3,4,5];Eub.prototype.toObject=function(){return Fub(void 0,this)};var Fub=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 uE=function(a){Z.call(this,a)};U(uE,Z);uE.prototype.getVersion=function(){return p(this,3)};uE.prototype.setVersion=function(a){return l(this,3,a)};uE.prototype.toObject=function(){return Gub(void 0,this)};var Gub=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 vE=function(a){Z.call(this,a)};U(vE,Z);g=vE.prototype;g.getKey=function(){return p(this,1)};g.hasKey=function(){return dj(this,1)};g.getValue=function(){return p(this,2)};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return dj(this,2)};g.toObject=function(){return Hub(void 0,this)};var Hub=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 Iub=function(a){Z.call(this,a)};U(Iub,Z);Iub.prototype.toObject=function(){return Jub(void 0,this)};var Jub=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 wE=function(a){Z.call(this,a,31,Kub)};U(wE,Z);g=wE.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 dj(this,26)};g.addValue=function(){return zu(this,3,vE)};var xE=function(a,b){return l(a,8,b)};wE.prototype.getExperimentIds=function(){return m(this,YD,16)};var yE=function(a,b){l(a,24,b)},Lub={},Kub=[3,20,27];wE.prototype.toObject=function(){return Mub(void 0,this)};
var Mub=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(To(b,10)),valueList:Cb(rb(b,vE,3),Hub,a),store:Fb(vu(b,4)),appUsage1p:Gub(a,m(b,uE,9)),sourceExtension:Fb(vu(b,6)),sourceExtensionJs:n(p(b,8)),sourceExtensionJson:n(p(b,13)),sourceExtensionJsonProto3:n(p(b,29)),exp:Fub(a,m(b,Eub,7)),testId:n(p(b,14)),timezoneOffsetSeconds:ej(b,15,18E4),
experimentIds:ytb(a,b.getExperimentIds()),clientVe:Fb(vu(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:Jub(a,m(b,Iub,23)),inDirectBootMode:n(To(b,25)),zwiebackCookieOverride:n(p(b,28)),appliedSamplingRate:n(uu(b,30))};Db(b,c,Lub,a);a&&(c.$jspbMessageInstance=b);return c}};
var Nub=function(a){Z.call(this,a)};U(Nub,Z);Nub.prototype.toObject=function(){return Oub(this)};var Oub=function(a){if(null!=a)return{collectStartMs:n(p(a,3)),collectUntilMs:n(p(a,1)),skipPersistentLogStorage:n(To(a,2))}};
var Pub=function(a){Z.call(this,a)};U(Pub,Z);Pub.prototype.toObject=function(){return Qub(this)};var Qub=function(a){if(null!=a)return{isUnmetered:n(To(a,1)),isCharging:n(To(a,2)),autoTimeStatus:n(p(a,3)),isGooglerDevice:n(To(a,4))}};
var zE=function(a){Z.call(this,a)};U(zE,Z);zE.prototype.getSource=function(){return p(this,3)};zE.prototype.setSource=function(a){return l(this,3,a)};zE.prototype.hasSource=function(){return dj(this,3)};zE.prototype.toObject=function(){return Rub(this)};var Rub=function(a){if(null!=a)return{timeMs:n(p(a,1)),uptimeMs:n(p(a,2)),source:n(p(a,3))}};
var AE=function(a){Z.call(this,a,17,Sub)};U(AE,Z);g=AE.prototype;g.getClientInfo=function(){return m(this,tE,1)};g.getMutableClientInfo=function(){return xu(this,tE,1)};g.setClientInfo=function(a){Bb(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 Tub={},Sub=[3,5];
AE.prototype.toObject=function(){if(null!=this){var a={requestTimeMs:n(p(this,4)),requestUptimeMs:n(p(this,8)),clientInfo:Cub(this.getClientInfo()),logSource:X(this,2,-1),logSourceName:n(p(this,6)),zwiebackCookie:n(p(this,7)),logEventList:Cb(rb(this,wE,3),Mub),serializedLogEventsList:Fb(kb(this,5,ab)),logEventDroppedCount:n(p(this,14)),qosTier:X(this,9,0),scheduler:n(p(this,10)),deviceStatus:Qub(m(this,Pub,11)),externalTimestamp:Rub(m(this,zE,12)),collectForDebug:Oub(m(this,Nub,13)),appMobilespecId:n(p(this,
16))};Db(this,a,Tub)}else a=void 0;return a};
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{idList:n(jb(a,1))}};
var Xub=function(a){Z.call(this,a)};U(Xub,Z);Xub.prototype.toObject=function(){return Yub(void 0,this)};var Yub=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 $ub=function(a){Z.call(this,a,-1,Zub)};U($ub,Z);var Zub=[1];$ub.prototype.toObject=function(){return avb(this)};var avb=function(a){if(null!=a)return{logSourceNameList:n(jb(a,1))}};
var BE=function(a){Z.call(this,a)};U(BE,Z);BE.prototype.getQosTier=function(){return p(this,2)};BE.prototype.getLogSource=function(){return X(this,3,-1)};BE.prototype.setLogSource=function(a){return l(this,3,a)};BE.prototype.toObject=function(){return bvb(void 0,this)};var bvb=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 dvb=function(a){Z.call(this,a,-1,cvb)};U(dvb,Z);var cvb=[1];dvb.prototype.toObject=function(){return evb(this)};var evb=function(a){if(null!=a)return{qosTierConfigurationList:Cb(rb(a,BE,1),bvb),qosTierFingerprint:n(p(a,2))}};
var CE=function(a){Z.call(this,a,6,fvb)};U(CE,Z);CE.prototype.getExperiments=function(){return m(this,Vub,2)};CE.prototype.setExperiments=function(a){Bb(this,2,a)};CE.prototype.hasExperiments=function(){return lj(this,2)};CE.prototype.getQosTier=function(){return m(this,dvb,3)};var gvb={},fvb=[5];
CE.prototype.toObject=function(){if(null!=this){var a={nextRequestWaitMillis:kj(this,1,"-1"),experiments:Wub(this.getExperiments()),qosTier:evb(this.getQosTier()),logSourceBatchingBlacklist:avb(m(this,$ub,4)),logResponseDetailsList:Cb(rb(this,Xub,5),Yub)};Db(this,a,gvb)}else a=void 0;return a};
var hvb=function(a){Z.call(this,a)};U(hvb,Z);hvb.prototype.toObject=function(){return ivb(void 0,this)};var ivb=function(a,b){if(null!=b){var c={suggestedFlushIntervalMillis:ej(b,1,-1)};a&&(c.$jspbMessageInstance=b);return c}};
var jvb=zb(175237375,{jsExtension:0},hvb,ivb);gvb[175237375]=jvb;
var EE=function(a,b,c,d,e,f,h,k,q,v,y){Qo.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;Qo.call(this);this.logSource_=
a;this.getAuthHeaderValue=b||function(){};this.logRequestBuilder=new DE(a,f);this.networkIOSend_=d;this.network_=y;this.bufferSize=1E3;this.uniformRandomFunction=au(asb,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<=la("Chromium")||45<=la("Firefox")||12<=la("Safari")||na()&&haa())&&!!vD()&&!!vD().navigator&&
!!vD().navigator.sendBeacon;a=(new tE).setClientType(1);this.logRequestBuilder.setClientInfo(a);this.flushBackoff=new ZD(1E4);this.flushTimer=new ID(this.flushBackoff.getValue());XC(this,this.flushTimer);v=kvb(this,v);Ro(this.flushTimer,"tick",v,!1,this);this.backupTimer=new ID(6E5);XC(this,this.backupTimer);Ro(this.backupTimer,"tick",v,!1,this);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(Ro(document,"visibilitychange",function(){"hidden"===document.visibilityState&&
E.finalFlush()}),Ro(document,"pagehide",this.finalFlush,!1,this))};U(EE,Qo);var kvb=function(a,b){return b?function(){b().then(function(){a.flush()})}:function(){a.flush()}};EE.prototype.disposeInternal=function(){this.finalFlush();Qo.prototype.disposeInternal.call(this)};EE.prototype.setClearcutUrl=function(a){this.clearcutUrl_=a};
var lvb=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=EE.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 YD);jl(this.experimentIds_,2,a)};
g.setClearExperimentIds=function(a){a?(this.experimentIds_||(this.experimentIds_=new YD),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 mvb=function(a,b){a.useSendBeaconForFinalFlush=b&&a.isSendBeaconSupported};EE.prototype.setBuildLabel=function(a){this.logRequestBuilder.setBuildLabel(a)};
EE.prototype.setFlushIntervalMs=function(a){this.clientSpecifiedFlushInterval=!0;nvb(this,a)};var nvb=function(a,b){a.flushBackoff=new ZD(1>b?1:b);a.flushTimer.setInterval(a.flushBackoff.getValue())};
EE.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)}dj(a,15)||l(a,15,60*(new Date).getTimezoneOffset());this.experimentIds_&&(b=this.experimentIds_.clone(),Bb(a,16,b));for(;this.pendingEvents_.length>=this.bufferSize;)this.pendingEvents_.shift(),++this.numLogsDroppedSinceLastFlush;this.pendingEvents_.push(a);this.dispatchEvent(new ovb(a));this.disableAutomaticFlush||
this.flushTimer.enabled||this.flushTimer.start()};
EE.prototype.flush=function(a,b){var c=this;if(0===this.pendingEvents_.length)a&&a();else if(this.sendBeaconApiEnabled)pvb(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=lvb(this);this.sessionIndex_&&(d["X-Goog-AuthUser"]=this.sessionIndex_,h=dE(h,"authuser",this.sessionIndex_));this.pageId&&
(d["X-Goog-PageId"]=this.pageId,h=dE(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 v={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 T=JSON.parse(N.replace(")]}'\n",""));L=new CE(T)}catch(Y){}L&&(N=Number(kj(L,1,"-1")),0<N&&(c.startWaitingMs=Date.now(),c.noFlushUntilMs=c.startWaitingMs+N),L=L.getExtension(jvb))&&(L=ej(L,1,-1),-1!=L&&(c.clientSpecifiedFlushInterval||nvb(c,L)))}a&&a()},E=function(N,L){var T=rb(e,wE,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_=T.concat(c.pendingEvents_),c.disableAutomaticFlush||c.flushTimer.enabled||c.flushTimer.start());b&&b("net-send-failed",N)},I=function(){c.network_?c.network_.send(v,y,E):c.networkIOSend_(v,y,E)};q?q.then(function(N){v.requestHeaders["Content-Encoding"]=
"gzip";v.requestHeaders["Content-Type"]="application/binary";v.body=N;v.bodyType=2;I()},function(){I()}):I()}}}};EE.prototype.finalFlush=function(){this.clientSideLogOnlyForDevelopment_||(this.useSendBeaconForFinalFlush&&pvb(this),this.useGetRequestForFinalFlush&&qvb(this),this.flush())};
var pvb=function(a){rvb(a,32,10,function(b,c){b=dE(b,"format","json");b=vD().navigator.sendBeacon(b,c.serialize());a.sendBeaconApiEnabled&&!b&&(a.sendBeaconApiEnabled=!1);return b})},qvb=function(a){rvb(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=db(d,3);c=cE(b,"format","base64json","p",c);if(15360<c.length)return!1;b=new Image;c=c instanceof dh?c:Ij(c,/^data:image\//i.test(c));b.src=fh(c);return!0})},rvb=function(a,
b,c,d){if(0!==a.pendingEvents_.length){var e=lvb(a);for(var f=e.search(Qtb),h=0,k,q=[];0<=(k=Ptb(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(Stb,"$1");e=cE(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()}},ovb=function(){YC.call(this,"event-logged",void 0)};U(ovb,YC);var DE=function(a,b){this.isServiceWorkerScope=b=void 0===b?!1:b;this.uach=this.locale=null;this.logRequest=new AE;this.logRequest.setLogSource(a);b||(this.locale=document.documentElement.getAttribute("lang"));this.setClientInfo(new tE)};DE.prototype.setLogSource=function(a){this.logRequest.setLogSource(a);return this};
DE.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,hE,9)||Bb(a,9,this.uach))};DE.prototype.setBuildLabel=function(a){this.getMutableJsClientInfo().setBuildLabel(a)};DE.prototype.getMutableClientInfo=function(){return this.logRequest.getClientInfo()};
var svb=function(a,b){var c=void 0===c?eub:c;b(vD(),c).then(function(d){a.uach=d;d=a.getMutableJsClientInfo();Bb(d,9,a.uach);return!0}).catch(function(){return!1})};DE.prototype.getMutableJsClientInfo=function(){var a=this.getMutableClientInfo(),b=m(a,gE,11);b||(b=new gE,Bb(a,11,b));return b};DE.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=Ab(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 EE(this.logSource_,this.getAuthHeaderValue_?this.getAuthHeaderValue_:Oo,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_&&mvb(a,this.useSendBeaconForFinalFlush_);this.useGetRequestForFinalFlush_&&(a.useGetRequestForFinalFlush=this.useGetRequestForFinalFlush_);this.flushIntervalMs_&&a.setFlushIntervalMs(this.flushIntervalMs_);this.userAgentClientHintsProvider_&&svb(a.logRequestBuilder,this.userAgentClientHintsProvider_);return a};
var FE=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};FE.prototype.getLogSource=function(){return this.logSource_};FE.prototype.getComponentId=function(){return this.componentId_};
FE.prototype.flush=function(a){var b=a||[];if(b.length){a=new ptb;for(var c=[],d=0;d<b.length;d++){var e=b[d],f=e;var h=new MD;h=l(h,1,f.metricName_);for(var k=f,q=[],v=0;v<k.fields_.length;v++)q.push(k.fields_[v].field_name);h=jl(h,3,q);k=[];q=[];v=r(f.cellMap_.keys());for(var y=v.next();!y.done;y=v.next())q.push(y.value.split(","));for(v=0;v<q.length;v++){y=q[v];var E=f.cellType_;for(var I=f.getCells(y)||[],N=[],L=0;L<I.length;L++){var T=I[L];T=T&&T.cellValue_;var Y=new TD;switch(E){case 3:co(Y,
1,UD,Number(T));break;case 2:co(Y,2,UD,Number(T))}N.push(Y)}E=N;for(I=0;I<E.length;I++){N=E[I];L=new QD;N=Bb(L,2,N);L=y;T=[];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 ra=L[ka],Da=new RD;switch(ha){case 3:co(Da,1,SD,String(ra));break;case 2:co(Da,2,SD,Number(ra));break;case 1:co(Da,3,SD,"true"==ra)}T.push(Da)}Ab(N,1,T);k.push(N)}}Ab(h,4,k);c.push(h);e.clear()}Ab(a,1,c);b=this.transport_;a instanceof wE?b.log(a):(a=
xE(new wE,a.serialize()),b.log(a));this.transport_.flush()}};
var tvb=new ld("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(" ")}}),
uvb=new ld("STREAMZ_PRODUCT_IDENTIFIER"),vvb=new ld("one_developer_workflow.streamz_service",{providedIn:"root",factory:function(){return t(jg).runOutsideAngular(function(){var a=new FE(1503);a=new Tsb(a);a.flushInterval=1E4;a.flushTimer.setInterval(1E4);return a})}}),GE=function(a,b,c,d){this.streamzService=a;this.zone=b;this.productionWhitelist=c;this.oneDeveloperWorkflowUsageMetrics=new Wsb(this.streamzService);new Xsb(this.streamzService);new Ysb(this.streamzService);new Zsb(this.streamzService);
this.productIdentifier=d||window.location.hostname},HE=function(a,b,c){a.zone.runOutsideAngular(function(){wvb(a)&&a.oneDeveloperWorkflowUsageMetrics.increment(b,a.productIdentifier,c)})},wvb=function(a){return a.productionWhitelist.some(function(b){return a.productIdentifier.includes(b)})};GE.\u0275fac=function(a){return new (a||GE)(t(vvb),t(jg),t(tvb),t(uvb,8))};GE.\u0275prov=dc({token:GE,factory:GE.\u0275fac,providedIn:"root"});
var xvb=new ld("Feature Tooltip Controller Config"),IE=function(a,b,c){this.config=a;this.keyValueStore=b;this.injector=c;this.clientStreamzService=this.config.enableUsageTracking?this.injector.get(GE):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"},yvb=function(a){return a.keyValueStore.getValue(a.lastTooltipKey).pipe(R(function(b){return null===
b?!0:(new Date).getTime()-b>=a.config.cooldownMilliseconds}))},zvb=function(a,b){a.keyValueStore.getValue(JE(a,b)).pipe(rf(function(c){return"SHOWING"!==c})).subscribe(function(){a.keyValueStore.setValue(JE(a,b),"HIDDEN")})},Bvb=function(a,b,c){var d=c.map(function(e){return JE(a,e)});return a.keyValueStore.getValues(d).pipe(R(function(e){return Avb(a,b,c,e)}))},Avb=function(a,b,c,d){return c.filter(function(e){e=d.get(JE(a,e));return e===b||"UNSEEN"===b&&null===e})},JE=function(a,b){return"onedev.tooltips."+
a.config.productName+"."+b};IE.\u0275fac=function(a){return new (a||IE)(t(xvb),t(SC),t(Qv))};IE.\u0275prov=dc({token:IE,factory:IE.\u0275fac,providedIn:RC});
var KE=function(a){var b=this;this.featureTooltipService=a;this.showTooltip$=(0,S.of)(void 0);this.destroyed$=new S.ReplaySubject;this.getCurrentlyShowingTooltips=function(){return Bvb(b.featureTooltipService,"SHOWING",Cvb(b))}};
KE.prototype.ngAfterContentInit=function(){var a=this,b=this.showTooltip$.pipe(bg(this.getCurrentlyShowingTooltips),bg(function(c){return 0<c.length?(0,S.of)(c[0]):(0,S.of)(void 0).pipe(Dvb(a),Evb(a))}),R(function(c){return Fvb(a,c)}),rf(function(c){return!!c}),R(function(c){return c}),Zf({bufferSize:1,refCount:!0}));Gvb(this,b);b.pipe(cg(this.destroyed$)).subscribe(function(c){c.open$.next();var d=a.featureTooltipService;c=c.tooltipId;var e;null==(e=d.clientStreamzService)||HE(e,d.config.shownMetricName,
!0);(0,S.forkJoin)([d.keyValueStore.setValue(d.lastTooltipKey,(new Date).getTime()),d.keyValueStore.setValue(JE(d,c),"SHOWING")]).pipe(Uf())})};KE.prototype.ngOnDestroy=function(){this.destroyed$.next()};
var Dvb=function(a){return(0,S.pipe)(bg(function(){return yvb(a.featureTooltipService)}),rf(S.identity))},Evb=function(a){return(0,S.pipe)(bg(function(){return Bvb(a.featureTooltipService,"UNSEEN",Cvb(a))}),rf(function(b){return 0<b.length}),R(function(b){return b[0]}))},Gvb=function(a,b){b.pipe(bg(function(c){return c.dismiss.pipe(Uf(c.tooltipId))}),cg(a.destroyed$)).subscribe(function(c){var d=a.featureTooltipService,e;null==(e=d.clientStreamzService)||HE(e,d.config.hiddenMetricName,!0);(0,S.forkJoin)([d.keyValueStore.setValue(d.lastTooltipKey,
(new Date).getTime()),d.keyValueStore.setValue(JE(d,c),"HIDDEN")]).pipe(Uf())})},Cvb=function(a){return a.tooltips.map(function(b){return b.tooltipId})},Fvb=function(a,b){return a.tooltips.find(function(c){return c.tooltipId===b})};KE.\u0275fac=function(a){return new (a||KE)(D(IE))};
KE.\u0275cmp=w({type:KE,selectors:[["onedev-feature-tooltip-controller"]],contentQueries:function(a,b,c){a&1&&Cf(c,PC,4);if(a&2){var d;Af(d=Df())&&(b.tooltips=d)}},inputs:{showTooltip$:"showTooltip$"},decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});
var LE=function(a,b){this.anchorService=a;this.element=b;this.hideTooltipWhenAnchorNotVisible=!1};LE.prototype.ngOnInit=function(){var a=this;this.hideTooltipWhenAnchorNotVisible?(this.intersectionObserver=new IntersectionObserver(function(b){r(b).next().value.isIntersecting?qrb(a.anchorService,a.tooltipId,a.element):rrb(a.anchorService,a.tooltipId)}),this.intersectionObserver.observe(this.element.nativeElement)):qrb(this.anchorService,this.tooltipId,this.element)};
LE.prototype.ngOnDestroy=function(){rrb(this.anchorService,this.tooltipId);var a;null==(a=this.intersectionObserver)||a.disconnect()};LE.\u0275fac=function(a){return new (a||LE)(D(KC),D(pd))};LE.\u0275dir=w({type:LE,selectors:[["","onedevTooltipAnchor",""]],inputs:{tooltipId:["onedevTooltipAnchor","tooltipId"],hideTooltipWhenAnchorNotVisible:"hideTooltipWhenAnchorNotVisible"}});
var ME=function(a,b,c){var d=this;this.featureTooltipService=a;this.renderer=b;this.elementRef=c;this.preventTooltipFromShowing=function(){zvb(d.featureTooltipService,d.tooltipId)}};ME.prototype.ngOnInit=function(){this.unsubscribeFromEvent||(this.event="click")};ME.prototype.ngOnDestroy=function(){var a;null==(a=this.unsubscribeFromEvent)||a.call(this)};
li.Object.defineProperties(ME.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)}}});ME.\u0275fac=function(a){return new (a||ME)(D(IE),D(Vv),D(pd))};ME.\u0275dir=w({type:ME,selectors:[["","onedevTooltipPreventer",""]],inputs:{tooltipId:["onedevTooltipPreventer","tooltipId"],event:["onedevPreventTooltipOn","event"]}});
var Hvb=new ld("TooltipAnchor"),Ivb=new ld("TooltipPeventer"),NE=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)};NE.prototype.ngOnInit=function(){this.tooltipPreventer.ngOnInit();this.tooltipAnchor.ngOnInit()};
NE.prototype.ngOnDestroy=function(){this.tooltipPreventer.ngOnDestroy();this.tooltipAnchor.ngOnDestroy()};li.Object.defineProperties(NE.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}}});
NE.\u0275fac=function(a){return new (a||NE)(D(IE),D(KC),D(pd),D(Vv),D(Hvb),D(Ivb))};NE.\u0275dir=w({type:NE,selectors:[["","onedevFeatureTooltip",""]],inputs:{tooltipId:["onedevFeatureTooltip","tooltipId"],hideTooltipWhenAnchorNotVisible:"hideTooltipWhenAnchorNotVisible",event:["onedevPreventTooltipOn","event"]},features:[Ge([{provide:Hvb,useValue:LE},{provide:Ivb,useValue:ME}])]});
var OE=function(a,b,c){this.anchorService=a;this.renderer=b;this.elementRef=c};OE.prototype.ngOnInit=function(){this.unsubscribeFromEvent||(this.event="click")};OE.prototype.ngOnDestroy=function(){var a;null==(a=this.unsubscribeFromEvent)||a.call(this)};li.Object.defineProperties(OE.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)})}}});
OE.\u0275fac=function(a){return new (a||OE)(D(KC),D(Vv),D(pd))};OE.\u0275dir=w({type:OE,selectors:[["","onedevTooltipDismisser",""]],inputs:{tooltipId:["onedevTooltipDismisser","tooltipId"],event:["onedevDismissOn","event"]}});
var PE=function(){this.className="gmat-subtitle-1 tooltip-title"};PE.\u0275fac=function(a){return new (a||PE)};PE.\u0275dir=w({type:PE,selectors:[["","onedevTooltipTitle",""]],hostVars:2,hostBindings:function(a,b){a&2&&me(b.className)}});
var Jvb=function(){},Kvb=function(){};
var ym=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();Lvb(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),Lvb(b,
c,e))})}:this.headers=new Map};g=ym.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 Lvb=function(a,b,c){a.normalizedNames.has(c)||a.normalizedNames.set(c,b)};ym.prototype.init=function(){var a=this;this.lazyInit&&(this.lazyInit instanceof ym?Mvb(this,this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(b){return Nvb(a,b)}),this.lazyUpdate=null))};
var Mvb=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))})};ym.prototype.clone=function(a){var b=new ym;b.lazyInit=this.lazyInit&&this.lazyInit instanceof ym?this.lazyInit:this;b.lazyUpdate=(this.lazyUpdate||[]).concat([a]);return b};
var Nvb=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;Lvb(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)}};
ym.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 Ovb=function(){},kma=/%(\d[a-f0-9])/gi,lma={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"},wm=function(a){var b=this;a=void 0===a?{}:a;this.cloneFrom=this.updates=null;this.encoder=a.encoder||new Ovb;if(a.fromString){if(a.fromObject)throw Error("Fb");this.map=jma(a.fromString)}else a.fromObject?(this.map=new Map,Object.keys(a.fromObject).forEach(function(c){var d=a.fromObject[c];d=Array.isArray(d)?d.map(nma):[""+d];b.map.set(c,d)})):this.map=null};g=wm.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 wm({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 Pvb=function(){this.map=new Map};g=Pvb.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 xm=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 ym);this.context||(this.context=new Pvb);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 wm,this.urlWithParams=b)},Qvb=function(a){return null===a.body?null:oma(a.body)||pma(a.body)||qma(a.body)||"undefined"!==typeof URLSearchParams&&a.body instanceof URLSearchParams||"string"===typeof a.body?a.body:a.body instanceof
wm?a.body.toString():"object"===typeof a.body||"boolean"===typeof a.body||Array.isArray(a.body)?JSON.stringify(a.body):a.body.toString()};
xm.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,v,y=null!=(v=a.context)?v: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 xm(b,c,e,{params:q,headers:k,context:y,reportProgress:h,responseType:d,withCredentials:f})};
var QE=function(a,b,c){this.headers=a.headers||new ym;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},RE=function(a){a=void 0===a?{}:a;QE.call(this,a);this.type=2};U(RE,QE);RE.prototype.clone=function(a){a=void 0===a?{}:a;return new RE({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 SE=function(a){a=void 0===a?{}:a;QE.call(this,a);this.type=4;this.body=void 0!==a.body?a.body:null};U(SE,QE);SE.prototype.clone=function(a){a=void 0===a?{}:a;return new SE({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 Rvb=function(a){QE.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(Rvb,QE);
var TE=function(a){this.handler=a};g=TE.prototype;
g.request=function(a,b,c){var d=this;c=void 0===c?{}:c;if(a instanceof xm)b=a;else{var e=void 0;e=c.headers instanceof ym?c.headers:new ym(c.headers);var f=void 0;c.params&&(f=c.params instanceof wm?c.params:new wm({fromObject:c.params}));b=new xm(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,S.of)(b).pipe(kf(function(h){return d.handler.handle(h)},1));if(a instanceof
xm||"events"===c.observe)return e;a=e.pipe(rf(function(h){return h instanceof SE}));switch(c.observe||"body"){case "body":switch(b.responseType){case "arraybuffer":return a.pipe(R(function(h){if(null!==h.body&&!(h.body instanceof ArrayBuffer))throw Error("Gb");return h.body}));case "blob":return a.pipe(R(function(h){if(null!==h.body&&!(h.body instanceof Blob))throw Error("Hb");return h.body}));case "text":return a.pipe(R(function(h){if(null!==h.body&&"string"!==typeof h.body)throw Error("Ib");return h.body}));
default:return a.pipe(R(function(h){return h.body}))}case "response":return a;default:throw Error("Jb`"+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 wm).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,rma(c,b))};g.post=function(a,b,c){c=void 0===c?{}:c;return this.request("POST",a,rma(c,b))};g.put=function(a,b,c){c=void 0===c?{}:c;return this.request("PUT",a,rma(c,b))};TE.\u0275fac=function(a){return new (a||TE)(t(Jvb))};TE.\u0275prov=dc({token:TE,factory:TE.\u0275fac});
var Svb=function(a,b){this.next=a;this.interceptor=b};Svb.prototype.handle=function(a){return this.interceptor.intercept(a,this.next)};var UE=new ld("HTTP_INTERCEPTORS");
var Tvb=/^\)\]\}',?\n/,VE=function(a){this.xhrFactory=a};
VE.prototype.handle=function(a){var b=this;if("JSONP"===a.method)throw Error("Kb");return new S.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||qma(a.body)?null:pma(a.body)?a.body.type||null:oma(a.body)?
null:"string"===typeof a.body?"text/plain":a.body instanceof wm?"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=Qvb(a),h=null,k=function(){if(null!==h)return h;var N=d.statusText||"OK",L=new ym(d.getAllResponseHeaders()),T=("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 RE({headers:L,status:d.status,statusText:N,url:T})},q=function(){var N=k(),L=N.headers,T=N.status,Y=N.statusText;N=N.url;var ka=null;204!==T&&(ka="undefined"===typeof d.response?d.responseText:d.response);0===T&&(T=ka?200:0);var ha=200<=T&&300>T;if("json"===a.responseType&&"string"===typeof ka){var ra=ka;ka=ka.replace(Tvb,"");try{ka=""!==ka?JSON.parse(ka):null}catch(Da){ka=ra,ha&&(ha=
!1,ka={error:Da,text:ka})}}ha?(c.next(new SE({body:ka,headers:L,status:T,statusText:Y,url:N||void 0})),c.complete()):c.error(new Rvb({error:ka,headers:L,status:T,statusText:Y,url:N||void 0}))},v=function(N){var L=k().url;c.error(new Rvb({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",v);d.addEventListener("timeout",v);d.addEventListener("abort",v);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",v);d.removeEventListener("abort",v);d.removeEventListener("load",q);d.removeEventListener("timeout",
v);a.reportProgress&&(d.removeEventListener("progress",E),null!==f&&d.upload&&d.upload.removeEventListener("progress",I));d.readyState!==d.DONE&&d.abort()}})};VE.\u0275fac=function(a){return new (a||VE)(t(hnb))};VE.\u0275prov=dc({token:VE,factory:VE.\u0275fac});
var Uvb=new ld("XSRF_COOKIE_NAME"),Vvb=new ld("XSRF_HEADER_NAME"),Wvb=function(){},WE=function(a,b,c){this.doc=a;this.platform=b;this.cookieName=c;this.lastCookieString="";this.lastToken=null};
WE.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};
WE.\u0275fac=function(a){return new (a||WE)(t(ji),t(dw),t(Uvb))};WE.\u0275prov=dc({token:WE,factory:WE.\u0275fac});var XE=function(a,b){this.tokenService=a;this.headerName=b};XE.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)};
XE.\u0275fac=function(a){return new (a||XE)(t(Wvb),t(Vvb))};XE.\u0275prov=dc({token:XE,factory:XE.\u0275fac});
var YE=function(a,b){this.backend=a;this.injector=b;this.chain=null};YE.prototype.handle=function(a){null===this.chain&&(this.chain=this.injector.get(UE,[]).reduceRight(function(b,c){return new Svb(b,c)},this.backend));return this.chain.handle(a)};YE.\u0275fac=function(a){return new (a||YE)(t(Kvb),t(Qv))};YE.\u0275prov=dc({token:YE,factory:YE.\u0275fac});var ZE=function(){};ZE.\u0275fac=function(a){return new (a||ZE)};ZE.\u0275mod=uc({type:ZE});
ZE.\u0275inj=gc({providers:[XE,{provide:UE,useExisting:XE,multi:!0},{provide:Wvb,useClass:WE},{provide:Uvb,useValue:"XSRF-TOKEN"},{provide:Vvb,useValue:"X-XSRF-TOKEN"}]});var $E=function(){};$E.\u0275fac=function(a){return new (a||$E)};$E.\u0275mod=uc({type:$E});var aF={cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"};aF=void 0===aF?{}:aF;
$E.\u0275inj=gc({providers:[TE,{provide:Jvb,useClass:YE},VE,{provide:Kvb,useExisting:VE}],imports:[{ngModule:ZE,providers:[aF.cookieName?{provide:Uvb,useValue:aF.cookieName}:[],aF.headerName?{provide:Vvb,useValue:aF.headerName}:[]]}]});
var xi;
var bF=function(a,b){this.url=a;this.svgText=null;this.options=b},cF=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},Xvb=function(a,b){return a._fontCssClassesByAlias.get(b)||b},Yvb=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,S.throwError)(Error("Lb`"+d))};g=cF.prototype;g.ngOnDestroy=function(){this._resolvers=[];this._svgIconConfigs.clear();this._iconSetConfigs.clear();this._cachedIconsByUrl.clear()};g._getSvgFromConfig=function(a){return a.svgText?(0,S.of)(this._svgElementFromConfig(a).cloneNode(!0)):this._loadSvgIconFromConfig(a).pipe(R(function(b){return b.cloneNode(!0)}))};
g._getSvgFromIconSetConfigs=function(a,b){var c=this,d=this._extractIconWithNameFromAnySet(a,b);if(d)return(0,S.of)(d);d=b.filter(function(e){return!e.svgText}).map(function(e){return c._loadSvgIconSetFromConfig(e).pipe(Mf(function(f){f="Loading icon set URL: "+c._sanitizer.sanitize(5,e.url)+" failed: "+f.message;c._errorHandler.handleError(Error(f));return(0,S.of)(null)}))});return(0,S.forkJoin)(d).pipe(R(function(){var e=c._extractIconWithNameFromAnySet(a,b);if(!e)throw Error("Lb`"+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(dg(function(c){return a.svgText=c}),R(function(){return b._svgElementFromConfig(a)}))};
g._loadSvgIconSetFromConfig=function(a){return a.svgText?(0,S.of)(null):this._fetchIcon(a).pipe(dg(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(tma("<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("Ob");return a};g._toSvgElement=function(a){for(var b=this._svgElementFromString(tma("<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("Mb");if(null==c)throw Error("Pb`"+c);var f=this._sanitizer.sanitize(5,c);if(!f)throw Error("Nb`"+c);if(c=this._inProgressUrlFetches.get(f))return c;c=this._httpClient.get(f,{responseType:"text",withCredentials:a}).pipe(R(function(h){return tma(h)}),Sf(function(){return b._inProgressUrlFetches.delete(f)}),Yf());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 bF(d.url,d.options):new bF(d)}};cF.\u0275fac=function(a){return new (a||cF)(t(TE,8),t(kz),t(ji,8),t(Vd))};cF.\u0275prov=dc({token:cF,factory:cF.\u0275fac,providedIn:"root"});new Nv;new Ov;new Nv;new Nv;
var Zvb=mi(function(a){this._elementRef=a}),$vb=new ld("MAT_ICON_DEFAULT_OPTIONS"),awb=new ld("mat-icon-location",{providedIn:"root",factory:uma}),bwb="clip-path color-profile src cursor fill filter marker marker-start marker-mid marker-end mask stroke".split(" "),cwb=bwb.map(function(a){return"["+a+"]"}).join(", "),dwb=/^url\(['"]?#(.*?)['"]?\)$/,dF=function(a,b,c,d,e,f){var h=Zvb.call(this,a)||this;h._iconRegistry=b;h._location=d;h._errorHandler=e;h._inline=!1;h._previousFontSetClass=[];h._currentIconFetch=
S.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(dF,Zvb);g=dF.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("Qb`"+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?[Xvb(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(cwb),c=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(a={$jscomp$loop$prop$i$1638:0};a.$jscomp$loop$prop$i$1638<b.length;a={$jscomp$loop$prop$i$1638:a.$jscomp$loop$prop$i$1638},a.$jscomp$loop$prop$i$1638++)bwb.forEach(function(d){return function(e){var f=b[d.$jscomp$loop$prop$i$1638],h=f.getAttribute(e);if(h=h?h.match(dwb):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=Yvb(this._iconRegistry,d,c).pipe(Qf()).subscribe(function(e){return b._setSvgElement(e)},function(e){b._errorHandler.handleError(Error("Rb`"+c+"`"+d+"`"+e.message))})}};
li.Object.defineProperties(dF.prototype,{inline:{configurable:!0,enumerable:!0,get:function(){return this._inline},set:function(a){this._inline=Vg(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())}}});dF.\u0275fac=function(a){return new (a||dF)(D(pd),D(cF),Zc("aria-hidden"),D(awb),D(Vd),D($vb,8))};
dF.\u0275cmp=w({type:dF,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(a,b){a&2&&(ge("data-mat-icon-type",b._usingFontIcon()?"font":"svg")("data-mat-icon-name",b._svgName||b.fontIcon)("data-mat-icon-namespace",b._svgNamespace||b.fontSet),le("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:[ae],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(xe(),ye(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 ewb=Eh("transformMenu",[Hh("void",Gh({opacity:0,transform:"scale(0.8)"})),Ih("void => enter",Fh("120ms cubic-bezier(0, 0, 0.2, 1)",Gh({opacity:1,transform:"scale(1)"}))),Ih("* => void",Fh("100ms 25ms linear",Gh({opacity:0})))]),fwb=Eh("fadeInItems",[Hh("showing",Gh({opacity:1})),Ih("void => *",[Gh({opacity:0}),Fh("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])]);
var gwb=new ld("MatMenuContent"),eF=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 S.Subject};
eF.prototype.attach=function(a){a=void 0===a?{}:a;this._portal||(this._portal=new YA(this._template,this._viewContainerRef));this.detach();this._outlet||(this._outlet=new $A(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()};
eF.prototype.detach=function(){this._portal.isAttached&&this._portal.detach()};eF.prototype.ngOnDestroy=function(){this._outlet&&this._outlet.dispose()};eF.\u0275fac=function(a){return new (a||eF)(D(xf),D(Sv),D(tx),D(Qv),D(yf),D(ji),D(vx))};eF.\u0275dir=w({type:eF});var fF=function(){eF.apply(this,arguments)};U(fF,eF);fF.\u0275fac=function(){var a;return function(b){return(a||(a=ed(fF)))(b||fF)}}();
fF.\u0275dir=w({type:fF,selectors:[["ng-template","matMenuContent",""]],features:[Ge([{provide:gwb,useExisting:fF}]),ae]});
var hwb=new ld("MAT_MENU_PANEL");
var iwb=ni(oi(function(){})),gF=function(a,b,c,d,e){var f=iwb.call(this)||this;f._elementRef=a;f._document=b;f._focusMonitor=c;f._parentMenu=d;f._changeDetectorRef=e;f.role="menuitem";f._hovered=new S.Subject;f._focused=new S.Subject;f._highlighted=!1;f._triggersSubmenu=!1;var h;null==d||null==(h=d.addItem)||h.call(d,f);return f};U(gF,iwb);g=gF.prototype;g.focus=function(a,b){this._focusMonitor&&a?Tz(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()};gF.\u0275fac=function(a){return new (a||gF)(D(pd),D(ji),D(Sz),D(hwb,8),D(vx))};
gF.\u0275cmp=w({type:gF,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(a,b){a&1&&J("click",function(c){return b._checkDisabled(c)})("mouseenter",function(){return b._handleMouseEnter()});a&2&&(ge("role",b.role)("tabindex",b._getTabIndex())("aria-disabled",b.disabled.toString())("disabled",b.disabled||null),le("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:[ae],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&&(xe(),ye(0),H(1,"div",0),M(2,vma,2,0,"svg",1));a&2&&(B(1),
C("matRippleDisabled",b.disableRipple||b.disabled)("matRippleTrigger",b._getHostElement()),B(1),C("ngIf",b._triggersSubmenu))},dependencies:[Cx,uB],encapsulation:2,changeDetection:0});
var jwb=new ld("mat-menu-default-options",{providedIn:"root",factory:xma}),kwb=0,hF=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 Ef;this._tabSubscription=S.Subscription.EMPTY;this._classList={};this._panelAnimationState="void";this._animationDone=new S.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 Rw;this.panelId="mat-menu-panel-"+kwb++};g=hF.prototype;g.ngOnInit=function(){this.setPositionClasses()};
g.ngAfterContentInit=function(){var a=this;this._updateDirectDescendants();this._keyManager=lA(kA(hA(new qA(this._directDescendantItems))));this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return a.closed.emit("tab")});this._directDescendantItems.changes.pipe(ag(this._directDescendantItems),bg(function(b){return S.merge.apply(null,u(b.map(function(c){return c._focused})))})).subscribe(function(b){return mA(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(ag(this._directDescendantItems),bg(function(a){return S.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:hi(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 lwb=function(a,b){b=void 0===b?"program":b;a._ngZone.onStable.pipe(Qf()).subscribe(function(){var c=null;a._directDescendantItems.length&&(c=a._directDescendantItems.first._getHostElement().closest('[role="menu"]'));if(!c||!c.contains(document.activeElement)){var d=a._keyManager;d._origin=b;nA(d);!d.activeItem&&c&&c.focus()}})};g=hF.prototype;
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(ag(this._allItems)).subscribe(function(b){a._directDescendantItems.reset(b.filter(function(c){return c._parentMenu===a}));zf(a._directDescendantItems)})};
li.Object.defineProperties(hF.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=Vg(a)}},hasBackdrop:{configurable:!0,enumerable:!0,
get:function(){return this._hasBackdrop},set:function(a){this._hasBackdrop=Vg(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}}});
hF.\u0275fac=function(a){return new (a||hF)(D(pd),D(jg),D(jwb),D(vx))};
hF.\u0275dir=w({type:hF,contentQueries:function(a,b,c){a&1&&(Cf(c,gwb,5),Cf(c,gF,5),Cf(c,gF,4));if(a&2){var d;Af(d=Df())&&(b.lazyContent=d.first);Af(d=Df())&&(b._allItems=d);Af(d=Df())&&(b.items=d)}},viewQuery:function(a,b){a&1&&Bf(xf,5);if(a&2){var c;Af(c=Df())&&(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 iF=function(a,b,c,d){hF.call(this,a,b,c,d);this._elevationPrefix="mat-elevation-z";this._baseElevation=4};U(iF,hF);iF.\u0275dir=hF.\u0275dir;iF.\u0275fac=function(a){return new (a||iF)(D(pd),D(jg),D(jwb),D(vx))};
iF.\u0275cmp=w({type:iF,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(a){a&2&&ge("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Ge([{provide:hwb,useExisting:iF}]),ae],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&&(xe(),M(0,wma,3,6,"ng-template"))},dependencies:[Fx],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:[ewb,fwb]},changeDetection:0});
var mwb=new ld("mat-menu-scroll-strategy"),nwb={provide:mwb,deps:[cB],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}},owb=Og({passive:!0}),kF=function(a,b,c,d,e,f,h,k,q){var v=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=S.Subscription.EMPTY;this._handleTouchStart=
function(y){gi(y)||(v._openedBy="touch")};this._openedBy=void 0;this.restoreFocus=!0;this.onMenuOpen=this.menuOpened=new Rw;this.onMenuClose=this.menuClosed=new Rw;this._scrollStrategy=d;this._parentMaterialMenu=e instanceof hF?e:void 0;b.nativeElement.addEventListener("touchstart",this._handleTouchStart,owb);f&&(f._triggersSubmenu=jF(this))};kF.prototype.ngAfterContentInit=function(){this._handleHover()};
kF.prototype.ngOnDestroy=function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null);this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,owb);this._menuCloseSubscription.unsubscribe();this._closingActionsSubscription.unsubscribe();this._hoverSubscription.unsubscribe()};
var jF=function(a){return!(!a._menuItemInstance||!a._parentMaterialMenu)},zi=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?!jF(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 hF&&(b._startAnimation(),b._directDescendantItems.changes.pipe(cg(b.close)).subscribe(function(){Gpb(RA(e,
!1));RA(e,!0)}))}};g=kF.prototype;g.closeMenu=function(){var a;null==(a=this.menu)||a.close.emit()};g.focus=function(a,b){this._focusMonitor&&a?Tz(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&&jF(this)||this.focus(this._openedBy);this._openedBy=void 0;if(c instanceof hF)c._resetAnimation(),c.lazyContent?c._animationDone.pipe(rf(function(e){return"void"===e.toState}),Qf(),cg(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=jF(this)?this._parentMaterialMenu:void 0;a.direction=this.dir;this._setMenuElevation(a);lwb(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();jF(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 KA({positionStrategy:Jpb(Ipb(RA(VA(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]),v=q.next().value;q=q.next().value;var y=0;jF(this)?(q=d="before"===a.xPosition?"start":"end",c=v="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");NA(b,[{originX:d,originY:k,overlayX:v,overlayY:f,offsetY:y},{originX:c,originY:k,overlayX:q,overlayY:f,offsetY:y},{originX:d,originY:h,overlayX:v,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,S.of)(),e=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(rf(function(f){return f!==a._menuItemInstance}),rf(function(){return a._menuOpen})):(0,S.of)();return(0,S.merge)(b,d,e,c)};g._handleMousedown=function(a){fi(a)||(this._openedBy=0===a.button?"mouse":void 0,jF(this)&&a.preventDefault())};
g._handleKeydown=function(a){a=a.keyCode;if(13===a||32===a)this._openedBy="keyboard";jF(this)&&(39===a&&"ltr"===this.dir||37===a&&"rtl"===this.dir)&&(this._openedBy="keyboard",zi(this))};g._handleClick=function(a){jF(this)?(a.stopPropagation(),zi(this)):this._menuOpen?this.closeMenu():zi(this)};
g._handleHover=function(){var a=this;jF(this)&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(rf(function(b){return b===a._menuItemInstance&&!b.disabled}),Of(0,S.asapScheduler)).subscribe(function(){a._openedBy="mouse";a.menu instanceof hF&&a.menu._isAnimating?a.menu._animationDone.pipe(Qf(),Of(0,S.asapScheduler),cg(a._parentMaterialMenu._hovered())).subscribe(function(){return zi(a)}):zi(a)}))};
g._getPortal=function(a){this._portal&&this._portal.templateRef===a.templateRef||(this._portal=new YA(a.templateRef,this._viewContainerRef));return this._portal};
li.Object.defineProperties(kF.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"}}});kF.\u0275fac=function(a){return new (a||kF)(D(cB),D(pd),D(yf),D(mwb),D(hwb,8),D(gF,10),D(rA,8),D(Sz),D(jg))};
kF.\u0275dir=w({type:kF,hostVars:3,hostBindings:function(a,b){a&1&&J("click",function(c){return b._handleClick(c)})("mousedown",function(c){return b._handleMousedown(c)})("keydown",function(c){return b._handleKeydown(c)});a&2&&ge("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 lF=function(){kF.apply(this,arguments)};U(lF,kF);lF.\u0275fac=function(){var a;return function(b){return(a||(a=ed(lF)))(b||lF)}}();lF.\u0275dir=w({type:lF,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[ae]});
var mF=function(){};mF.\u0275fac=function(a){return new (a||mF)};mF.\u0275mod=uc({type:mF});mF.\u0275inj=gc({providers:[nwb],imports:[Wx,gB,yB,fB,HA,gB]});
var pwb=new Set,nF,oF=function(a){this._platform=a;this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):yma};oF.prototype.matchMedia=function(a){if((this._platform.WEBKIT||this._platform.BLINK)&&!pwb.has(a))try{nF||(nF=document.createElement("style"),nF.setAttribute("type","text/css"),document.head.appendChild(nF)),nF.sheet&&(nF.sheet.insertRule("@media "+a+" {body{ }}",0),pwb.add(a))}catch(b){console.error(b)}return this._matchMedia(a)};
oF.\u0275fac=function(a){return new (a||oF)(t(Iy))};oF.\u0275prov=dc({token:oF,factory:oF.\u0275fac,providedIn:"root"});
var pF=function(a,b){this._mediaMatcher=a;this._zone=b;this._queries=new Map;this._destroySubject=new S.Subject};pF.prototype.ngOnDestroy=function(){this._destroySubject.next();this._destroySubject.complete()};
pF.prototype.observe=function(a){var b=this;a=zma(Ug(a)).map(function(c){return b._registerQuery(c).observable});a=(0,S.combineLatest)(a);a=(0,S.concat)(a.pipe(Qf()),a.pipe($f(1),Nf(0)));return a.pipe(R(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}))};
pF.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 S.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(ag(c),R(function(e){return{query:a,matches:e.matches}}),cg(this._destroySubject)),mql:c};this._queries.set(a,d);return d};pF.\u0275fac=function(a){return new (a||pF)(t(oF),t(jg))};
pF.\u0275prov=dc({token:pF,factory:pF.\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 qwb=["tooltip"],rwb=Og({passive:!0}),swb=new ld("mat-tooltip-scroll-strategy"),twb={provide:swb,deps:[cB],useFactory:function(a){return function(){return a.scrollStrategies.reposition({scrollThrottle:20})}}},uwb=new ld("mat-tooltip-default-options",{providedIn:"root",factory:Ama}),qF=function(a,b,c,d,e,f,h,k,q,v,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=
v;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 S.Subject;this._scrollStrategy=q;this._document=E;y&&(y.position&&(this.position=y.position),y.touchGestures&&(this.touchGestures=y.touchGestures));
v.change.pipe(cg(this._destroyed)).subscribe(function(){I._overlayRef&&I._updatePosition(I._overlayRef)})};g=qF.prototype;g.ngAfterViewInit=function(){var a=this;this._viewInitialized=!0;this._setupPointerEnterEventsIfNeeded();this._focusMonitor.monitor(this._elementRef).pipe(cg(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,rwb)});this._passiveListeners.length=0;this._destroyed.next();this._destroyed.complete();spb(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 XA(this._tooltipComponent,this._viewContainerRef);c=this._tooltipInstance=c.attach(this._portal).instance;c._triggerElement=this._elementRef.nativeElement;c._mouseLeaveHideDelay=this._hideDelay;c._onHide.pipe(cg(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=zpb(this._scrollDispatcher,this._elementRef);b=Hpb(OA(PA(Jpb(VA(this._overlay.position(),this._elementRef),".mat-tooltip"),!1),this._viewportMargin),b);b.positionChanges.pipe(cg(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(cg(this._destroyed)).subscribe(function(){return a._detach()});this._overlayRef.outsidePointerEvents().pipe(cg(this._destroyed)).subscribe(function(){var d;return null==(d=a._tooltipInstance)?void 0:d._handleBodyInteraction()});this._overlayRef.keydownEvents().pipe(cg(this._destroyed)).subscribe(function(d){a._isTooltipVisible()&&
27===d.keyCode&&!hi(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();NA(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(Qf(),cg(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,rwb)})};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"}};
li.Object.defineProperties(qF.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=Vg(a))?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},showDelay:{configurable:!0,
enumerable:!0,get:function(){return this._showDelay},set:function(a){this._showDelay=Yg(a)}},hideDelay:{configurable:!0,enumerable:!0,get:function(){return this._hideDelay},set:function(a){this._hideDelay=Yg(a);this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}},message:{configurable:!0,enumerable:!0,get:function(){return this._message},set:function(a){var b=this;spb(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(){rpb(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)}}});
qF.\u0275fac=function(){pe()};qF.\u0275dir=w({type:qF,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}});var sF=function(a,b,c,d,e,f,h,k,q,v,y,E){qF.call(this,a,b,c,d,e,f,h,k,q,v,y,E);this._tooltipComponent=rF};U(sF,qF);
sF.\u0275fac=function(a){return new (a||sF)(D(cB),D(pd),D(CA),D(yf),D(jg),D(Iy),D(bA),D(Sz),D(swb),D(rA,8),D(uwb,8),D(ji))};sF.\u0275dir=w({type:sF,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[ae]});var tF=function(a,b){this._changeDetectorRef=a;this._visibility="initial";this._isVisible=this._closeOnInteraction=!1;this._onHide=new S.Subject;this._animationsDisabled="NoopAnimations"===b};g=tF.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))};
tF.\u0275fac=function(a){return new (a||tF)(D(vx),D(ew,8))};tF.\u0275dir=w({type:tF});var rF=function(a,b,c){tF.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(rF,tF);rF.\u0275dir=tF.\u0275dir;rF.\u0275fac=function(a){return new (a||rF)(D(vx),D(pF),D(ew,8))};
rF.\u0275cmp=w({type:rF,selectors:[["mat-tooltip-component"]],viewQuery:function(a,b){a&1&&Bf(qwb,7);if(a&2){var c;Af(c=Df())&&(b._tooltip=c.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(a,b){a&1&&J("mouseleave",function(c){return b._handleMouseLeave(c)});a&2&&ke("zoom",b.isVisible()?1:null)},features:[ae],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(a,b){a&1&&(F(0,"div",0,1),J("animationend",function(d){return b._handleAnimationEnd(d)}),
P(2,"async"),O(3),G());if(a&2){var c;le("mat-tooltip-handset",null==(c=Q(2,4,b._isHandset))?null:c.matches);C("ngClass",b.tooltipClass);B(3);Ee(b.message)}},dependencies:[Fx,Px],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 vwb=["widgetMenuTrigger"],wwb=["snoozeMenuTrigger"],xwb=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"}]]),uF=function(a){this.dialog=a;this.destroyed$=new S.Subject;this.TaskStatus=mrb;this.G3cWidgetFeatureTooltips=orb;this.G3cWidgetUserActionType=
nrb;this.snoozeUntilMsInternal=0;this.shouldShowAddToG3cButton=!1;this.pinnedTasksCount=0;this.menuXPosition="before";this.featureHighlightingEnabled=this.skipTasksActions=!1;this.customWidgetClass="";this.updateTaskStatus=new Rw;this.addTaskByUrl=new Rw;this.widgetMenuOpen=new Rw;this.openInG3cClicked=new Rw;this.featureTooltipActioned=new Rw};uF.prototype.ngOnDestroy=function(){this.destroyed$.complete()};uF.prototype.stopPropagation=function(a){a.stopPropagation()};
var yi=function(a,b,c){a.updateTaskStatus.emit({taskStatus:b,snoozeUntilMs:void 0===c?0:c})};uF.prototype.emitWidgetMenuOpen=function(){this.widgetMenuOpen.emit()};uF.prototype.emitOpenInG3cClicked=function(){this.openInG3cClicked.emit()};
var Ai=function(a,b){if(isNaN(b.getTime()))throw Error("Sb");yi(a,2,b.getTime())},ywb=function(a){try{a.snoozeMenuTrigger.closeMenu();var b=new CC,c=new CC;c.add(new po("d",1));var d=ama(a.dialog,{minDate:b,initialDate:c,initialTime:"08:00"});NB(d).pipe(Tf(),cg(a.destroyed$)).subscribe(function(e){e&&yi(a,2,e)});d.keydownEvents().pipe(cg(a.destroyed$)).subscribe(function(e){e.stopPropagation()})}catch(e){}},vF=function(a,b){a.setHours(b);a.setMinutes(0);a.setSeconds(0);a.setMilliseconds(0)};
li.Object.defineProperties(uF.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 xwb.get(this.taskStatusInternal).styleClass}catch(a){return""}}},subscriptIcon:{configurable:!0,enumerable:!0,get:function(){if(!this.taskStatusInternal)return"";try{return xwb.get(this.taskStatusInternal).svgIcon}catch(a){return""}}},now:{configurable:!0,enumerable:!0,get:function(){return new CC}},laterToday:{configurable:!0,
enumerable:!0,get:function(){var a=this.now;12<=a.getHours()?a.add(new po("h",3)):vF(a,15);return a}},tomorrow:{configurable:!0,enumerable:!0,get:function(){var a=this.now;a.add(new po("d",1));vF(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 po("d",2));vF(a,8);return a}},nextWeek:{configurable:!0,enumerable:!0,get:function(){var a=this.now;a.setDate(a.getDate()+(7-a.getDay())%7+1);vF(a,8);return a}},aMonthFromNow:{configurable:!0,
enumerable:!0,get:function(){var a=this.now;a.add(new po("d",30));vF(a,8);return a}}});uF.\u0275fac=function(a){return new (a||uF)(D(ZB))};
uF.\u0275cmp=w({type:uF,selectors:[["g3c-widget"]],viewQuery:function(a,b){a&1&&(Bf(vwb,5,lF),Bf(wwb,5,lF));if(a&2){var c;Af(c=Df())&&(b.widgetMenuTrigger=c.first);Af(c=Df())&&(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&&(F(0,"button",0,1),J("click",function(){return b.emitWidgetMenuOpen()}),M(2,Bma,1,0,"mat-icon",2),M(3,Cma,4,1,"ng-container",3),M(4,Dma,3,2,"ng-container",3),F(5,"span",4),O(6,"G3C"),G(),H(7,"mat-icon",5),G(),H(8,"button",6,7),F(10,"mat-menu",
8,9),M(12,Mma,15,18,"ng-container",3),F(13,"a",10),J("click",function(){return b.emitOpenInG3cClicked()}),O(14," Open G3 Console "),H(15,"mat-icon",11),G()(),F(16,"mat-menu",12,13)(18,"span",14),J("click",function(e){return b.stopPropagation(e)}),O(19," Snooze until... "),G(),F(20,"div",15)(21,"button",16),J("click",function(){Ai(b,b.laterToday)}),O(22," Later today "),F(23,"span",17),O(24),P(25,"date"),G()(),F(26,"button",16),J("click",function(){Ai(b,b.tomorrow)}),O(27," Tomorrow "),F(28,"span",
17),O(29),P(30,"date"),G()(),M(31,Nma,5,4,"button",18),F(32,"button",16),J("click",function(){Ai(b,b.nextWeek)}),O(33," Next week "),F(34,"span",17),O(35),P(36,"date"),G()(),F(37,"button",16),J("click",function(){Ai(b,b.aMonthFromNow)}),O(38," A month from now "),F(39,"span",17),O(40),P(41,"date"),G()()(),F(42,"div",19),M(43,Oma,3,0,"button",18),F(44,"button",20),J("click",function(){return ywb(b)}),H(45,"mat-icon",21),F(46,"span"),O(47,"Pick date & time"),G()()()(),M(48,Rma,3,2,"onedev-feature-tooltip-controller",
3));if(a&2){var c=Ce(11),d=Ce(17);C("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);ge("aria-label",b.pinnedTasksCount+" pinned tasks");B(2);C("ngIf",
!b.skipTasksActions&&void 0===b.taskStatusInternal);B(1);C("ngIf",b.skipTasksActions||b.taskStatusInternal===b.TaskStatus.INCOMING||b.taskStatusInternal===b.TaskStatus.TASK_STATUS_UNSPECIFIED);B(1);C("ngIf",!b.skipTasksActions&&void 0!==b.taskStatusInternal&&b.taskStatusInternal!==b.TaskStatus.INCOMING&&b.taskStatusInternal!==b.TaskStatus.TASK_STATUS_UNSPECIFIED);B(4);C("matMenuTriggerFor",d);B(2);C("xPosition",b.menuXPosition);B(2);C("ngIf",!b.skipTasksActions&&void 0!==b.taskStatusInternal);B(4);
C("xPosition",b.menuXPosition);B(2);C("disableRipple",!0);B(6);Ee(Me(25,21,b.laterToday,"EEE, MMM d, h:mm a"));B(5);Ee(Me(30,24,b.tomorrow,"EEE, MMM d, h:mm a"));B(2);C("ngIf",b.laterThisWeek.getTime()!==b.nextWeek.getTime());B(4);Ee(Me(36,27,b.nextWeek,"EEE, MMM d, h:mm a"));B(5);Ee(Me(41,30,b.aMonthFromNow,"EEE, MMM d, h:mm a"));B(3);C("ngIf",b.taskStatusInternal===b.TaskStatus.SNOOZED);B(5);C("ngIf",b.featureHighlightingEnabled)}},dependencies:[Fx,Cx,PC,KE,NE,OE,PE,BB,dF,iF,gF,lF,sF,Sx],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 wF=function(){};wF.\u0275fac=function(a){return new (a||wF)};wF.\u0275mod=uc({type:wF});wF.\u0275inj=gc({imports:[gB,gB]});
var zwb=Mt(["https://ssl.gstatic.com/devopsconsole/images/tasks/g3c_logo_outlined.svg"]),Awb=Mt(["https://www.gstatic.com/images/icons/material/system_gm/svg/","_24px.svg"]),Bwb=Mt(["https://www.gstatic.com/images/icons/material/system/svg/","_24px.svg"]),Cwb=Mt(["https://ssl.gstatic.com/devopsconsole/images/tasks/",".svg"]),Dwb="add arrow_drop_down highlight_off keep keep_off notifications_off open_in_new schedule".split(" "),Ewb=["archive","notifications","unarchive"],Fwb=["archive_outlined","pin_outlined",
"notifications_off_outlined","schedule_outlined"],xF=function(a){this.iconRegistry=a;this.isMatIconRegistered=!1};xF.\u0275fac=function(a){return new (a||xF)(t(cF))};xF.\u0275prov=dc({token:xF,factory:xF.\u0275fac,providedIn:"root"});
var Gwb=new ld("g3cWidgetTaskManagementServicePromiseClient"),Hwb=new ld("g3cWidgetUserPrefsServicePromiseClient"),yF=new ld("g3cWidgetServiceConfig");
var zF=function(a){Z.call(this,a)};U(zF,Z);zF.prototype.getDueDate=function(){return yl(this,Tk,1,Iwb)};var Iwb=[1,2];zF.prototype.toObject=function(){return Jwb(void 0,this)};var Jwb=function(a,b){if(null!=b){var c={dueDate:Hv(a,b.getDueDate()),dueTimeMs:n(Rr(b,2,Iwb)),dueType:X(b,3,0)};a&&(c.$jspbMessageInstance=b);return c}};
var AF=function(a){Z.call(this,a)};U(AF,Z);AF.prototype.getTaskStatus=function(){return X(this,1,0)};AF.prototype.setTaskStatus=function(a){return sl(this,1,a)};AF.prototype.toObject=function(){return Kwb(void 0,this)};var Kwb=function(a,b){if(null!=b){var c={taskStatus:X(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};
var Lwb=function(a){Z.call(this,a)};U(Lwb,Z);g=Lwb.prototype;g.getId=function(){return ej(this,1)};g.setId=function(a){return Uk(this,1,a)};g.getLabel=function(){return V(this,2)};g.setLabel=function(a){return vl(this,2,a)};g.toObject=function(){return Mwb(void 0,this)};var Mwb=function(a,b){if(null!=b){var c={id:ej(b,1),label:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Nwb=function(a){Z.call(this,a)};U(Nwb,Z);g=Nwb.prototype;g.getId=function(){return ej(this,2)};g.setId=function(a){return Uk(this,2,a)};g.getLabel=function(){return V(this,3)};g.setLabel=function(a){return vl(this,3,a)};g.toObject=function(){return Owb(void 0,this)};var Owb=function(a,b){if(null!=b){var c={deprecated:W(b,1),id:ej(b,2),label:V(b,3),helpText:V(b,4)};a&&(c.$jspbMessageInstance=b);return c}};
var Pwb=function(a){Z.call(this,a)};U(Pwb,Z);g=Pwb.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 vl(this,2,a)};g.getTeamId=function(){return ej(this,3)};g.setTeamId=function(a){return Uk(this,3,a)};g.toObject=function(){return Qwb(void 0,this)};
var Qwb=function(a,b){if(null!=b){var c={id:kj(b,1),label:V(b,2),teamId:ej(b,3)};a&&(c.$jspbMessageInstance=b);return c}};
var BF=function(a){Z.call(this,a,-1,Rwb)};U(BF,Z);g=BF.prototype;g.getId=function(){return ej(this,1)};g.setId=function(a){return Uk(this,1,a)};g.getLabel=function(){return V(this,2)};g.setLabel=function(a){return vl(this,2,a)};g.getType=function(){return X(this,3,0)};g.setType=function(a){return sl(this,3,a)};g.getOwner=function(){return W(this,9)};g.setOwner=function(a){return mo(this,9,a)};g.getOptionsList=function(){return rb(this,Nwb,16)};g.setOptionsList=function(a){return Ab(this,16,a)};
var Rwb=[16],Swb=[5,6];BF.prototype.toObject=function(){return Twb(void 0,this)};
var Twb=function(a,b){if(null!=b){var c={id:ej(b,1),label:V(b,2),type:X(b,3,0),helpText:V(b,4),productArea:Qwb(a,yl(b,Pwb,5,Swb)),approverDefinition:Mwb(a,yl(b,Lwb,6,Swb)),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:Cb(b.getOptionsList(),Owb,a)};a&&(c.$jspbMessageInstance=
b);return c}};
var CF=function(a){Z.call(this,a)};U(CF,Z);CF.prototype.getYear=function(){return ej(this,1)};CF.prototype.setYear=function(a){return Uk(this,1,a)};CF.prototype.toObject=function(){return Uwb(void 0,this)};var Uwb=function(a,b){if(null!=b){var c={year:ej(b,1),number:ej(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Vwb=function(a){Z.call(this,a)};U(Vwb,Z);var Wwb=[1,2,3];Vwb.prototype.toObject=function(){return Xwb(void 0,this)};var Xwb=function(a,b){if(null!=b){var c={specificDate:Hv(a,yl(b,Tk,1,Wwb)),quarter:Uwb(a,yl(b,CF,2,Wwb)),toBeDetermined:n(To(b,qb(b,Wwb,3)))};a&&(c.$jspbMessageInstance=b);return c}};
var DF=function(a){Z.call(this,a)};U(DF,Z);DF.prototype.getTypeName=function(){return V(this,1).split("/").pop()};DF.prototype.getValue=function(){if(Array.isArray(p(this,2)))throw Error("P");return Gm(this,2)};DF.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 Za||Ma(a))a=wu(this,2,a);else throw Error("Q`"+a);return a};DF.prototype.toObject=function(){return Ywb(void 0,this)};
var Ywb=function(a,b){if(null!=b){var c={typeUrl:V(b,1),value:oba(b)};a&&(c.$jspbMessageInstance=b);return c}};
var EF=function(a){Z.call(this,a,-1,Zwb)};U(EF,Z);g=EF.prototype;g.getDescription=function(){return V(this,1)};g.setDescription=function(a){return vl(this,1,a)};g.getStatus=function(){return X(this,3,0)};g.setStatus=function(a){return sl(this,3,a)};g.getVersion=function(){return ej(this,5)};g.setVersion=function(a){return Uk(this,5,a)};g.setOwnedByMe=function(a){return mo(this,7,a)};var FF=function(a){Z.call(this,a,-1,$wb)};U(FF,Z);FF.prototype.getLabel=function(){return V(this,1)};
FF.prototype.setLabel=function(a){return vl(this,1,a)};var GF=function(a){Z.call(this,a)};U(GF,Z);GF.prototype.getValue=function(){return m(this,DF,2)};GF.prototype.setValue=function(a){return Bb(this,2,a)};GF.prototype.hasValue=function(){return lj(this,2)};var Zwb=[4,6];EF.prototype.toObject=function(){return axb(void 0,this)};
var axb=function(a,b){if(null!=b){var c={description:V(b,1),launchDate:Xwb(a,m(b,Vwb,2)),status:X(b,3,0),approversList:Cb(rb(b,FF,4),bxb,a),version:ej(b,5),attributesList:Cb(rb(b,GF,6),cxb,a),ownedByMe:W(b,7),needBitApprovalFromMe:W(b,8),creatorEmail:V(b,9)};a&&(c.$jspbMessageInstance=b);return c}},$wb=[3];FF.prototype.toObject=function(){return bxb(void 0,this)};var bxb=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}};
GF.prototype.toObject=function(){return cxb(void 0,this)};var cxb=function(a,b){if(null!=b){var c={definition:Twb(a,m(b,BF,1)),value:Ywb(a,b.getValue())};a&&(c.$jspbMessageInstance=b);return c}};
var HF=function(a){Z.call(this,a)};U(HF,Z);HF.prototype.getAccessLevel=function(){return X(this,1,0)};HF.prototype.setAccessLevel=function(a){sl(this,1,a)};HF.prototype.toObject=function(){return dxb(void 0,this)};var dxb=function(a,b){if(null!=b){var c={accessLevel:X(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};
var IF=function(a){Z.call(this,a,-1,exb)};U(IF,Z);g=IF.prototype;g.getType=function(){return X(this,1,0)};g.setType=function(a){return sl(this,1,a)};g.getPriority=function(){return X(this,2,0)};g.setPriority=function(a){return sl(this,2,a)};g.getSeverity=function(){return X(this,3,0)};g.setSeverity=function(a){return sl(this,3,a)};g.getStatus=function(){return X(this,4,0)};g.setStatus=function(a){return sl(this,4,a)};g.getSloStatus=function(){return m(this,JF,20)};
g.setSloStatus=function(a){Bb(this,20,a)};g.getComponentId=function(){return ej(this,11)};g.setComponentId=function(a){return Uk(this,11,a)};g.getVersion=function(){return ej(this,16)};g.setVersion=function(a){return Uk(this,16,a)};g.getAccessLimit=function(){return m(this,HF,21)};g.setAccessLimit=function(a){return Bb(this,21,a)};g.getCommentsList=function(){return rb(this,KF,10)};var KF=function(a){Z.call(this,a)};U(KF,Z);g=KF.prototype;g.getContent=function(){return V(this,1)};
g.setContent=function(a){vl(this,1,a)};g.getCommentNumber=function(){return ej(this,4)};g.setCommentNumber=function(a){return Uk(this,4,a)};g.getFormattingMode=function(){return X(this,5,0)};g.setFormattingMode=function(a){return sl(this,5,a)};var JF=function(a){Z.call(this,a)};U(JF,Z);g=JF.prototype;g.getAssignmentBounds=function(){return m(this,LF,1)};g.setAssignmentBounds=function(a){Bb(this,1,a)};g.hasAssignmentBounds=function(){return lj(this,1)};
g.getResponseBounds=function(){return m(this,LF,2)};g.setResponseBounds=function(a){Bb(this,2,a)};g.hasResponseBounds=function(){return lj(this,2)};g.getClosureBounds=function(){return m(this,LF,3)};g.setClosureBounds=function(a){Bb(this,3,a)};g.hasClosureBounds=function(){return lj(this,3)};var LF=function(a){Z.call(this,a)};U(LF,Z);var exb=[7,10];IF.prototype.toObject=function(){return fxb(void 0,this)};
var fxb=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:gxb(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:ej(b,11),canonicalIssueId:ej(b,18),version:ej(b,16),majorModifiedTimestampMs:ej(b,19),reportedByMe:W(b,12),assignedToMe:W(b,13),ccIncludesMe:W(b,17),bugjugglerInCcList:W(b,15),accessLimit:dxb(a,b.getAccessLimit()),
commentsList:Cb(b.getCommentsList(),hxb,a)};a&&(c.$jspbMessageInstance=b);return c}};KF.prototype.toObject=function(){return hxb(void 0,this)};var hxb=function(a,b){if(null!=b){var c={content:V(b,1),authorEmail:V(b,2),modifiedTimestamp:ej(b,3),commentNumber:ej(b,4),formattingMode:X(b,5,0)};a&&(c.$jspbMessageInstance=b);return c}};JF.prototype.toObject=function(){return gxb(void 0,this)};
var gxb=function(a,b){if(null!=b){var c={assignmentBounds:MF(a,b.getAssignmentBounds()),responseBounds:MF(a,b.getResponseBounds()),closureBounds:MF(a,b.getClosureBounds())};a&&(c.$jspbMessageInstance=b);return c}};LF.prototype.toObject=function(){return MF(void 0,this)};var MF=function(a,b){if(null!=b){var c={startTimeMs:ej(b,1),endTimeMs:ej(b,2),targetTimeMs:ej(b,3)};a&&(c.$jspbMessageInstance=b);return c}};
var NF=function(a){Z.call(this,a,-1,ixb)};U(NF,Z);g=NF.prototype;g.getDescription=function(){return V(this,1)};g.setDescription=function(a){return vl(this,1,a)};g.getCategory=function(){return X(this,2,0)};g.setCategory=function(a){sl(this,2,a)};g.getStatus=function(){return X(this,3,0)};g.setStatus=function(a){return sl(this,3,a)};g.getCommentsList=function(){return rb(this,OF,7)};var PF=function(a){Z.call(this,a,-1,jxb)};U(PF,Z);PF.prototype.getType=function(){return X(this,1,0)};
PF.prototype.setType=function(a){return sl(this,1,a)};PF.prototype.getState=function(){return X(this,5,0)};var OF=function(a){Z.call(this,a,-1,kxb)};U(OF,Z);OF.prototype.getContent=function(){return V(this,3)};OF.prototype.setContent=function(a){vl(this,3,a)};OF.prototype.getRepliesList=function(){return rb(this,QF,5)};var QF=function(a){Z.call(this,a)};U(QF,Z);QF.prototype.getContent=function(){return V(this,4)};QF.prototype.setContent=function(a){vl(this,4,a)};var ixb=[5,6,7,11,17,13,14];
NF.prototype.toObject=function(){return lxb(void 0,this)};
var lxb=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:Cb(rb(b,PF,5),mxb,a),reviewerEmailsList:n(jb(b,6)),commentsList:Cb(b.getCommentsList(),nxb,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}},jxb=[3];PF.prototype.toObject=function(){return mxb(void 0,this)};var mxb=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}},kxb=[5];OF.prototype.toObject=function(){return nxb(void 0,this)};
var nxb=function(a,b){if(null!=b){var c={publishTimestamp:ej(b,1),authorEmail:V(b,2),content:V(b,3),resolved:W(b,4),repliesList:Cb(b.getRepliesList(),oxb,a),externalLink:V(b,6)};a&&(c.$jspbMessageInstance=b);return c}};QF.prototype.toObject=function(){return oxb(void 0,this)};var oxb=function(a,b){if(null!=b){var c={publishTimestamp:ej(b,2),authorEmail:V(b,3),content:V(b,4),resolved:W(b,8)};a&&(c.$jspbMessageInstance=b);return c}};
var RF=function(a){Z.call(this,a,-1,pxb)};U(RF,Z);RF.prototype.setOwnedByMe=function(a){return mo(this,3,a)};RF.prototype.getMimeType=function(){return V(this,15)};RF.prototype.setMimeType=function(a){vl(this,15,a)};RF.prototype.getCommentsList=function(){return rb(this,SF,6)};var SF=function(a){Z.call(this,a,-1,qxb)};U(SF,Z);g=SF.prototype;g.getCommentId=function(){return V(this,1)};g.getContent=function(){return V(this,8)};g.setContent=function(a){vl(this,8,a)};
g.getRepliesList=function(){return rb(this,TF,14)};g.getDueDate=function(){return m(this,Tk,18)};var TF=function(a){Z.call(this,a)};U(TF,Z);TF.prototype.getContent=function(){return V(this,3)};TF.prototype.setContent=function(a){vl(this,3,a)};var pxb=[17,6];RF.prototype.toObject=function(){return rxb(void 0,this)};
var rxb=function(a,b){if(null!=b){var c={createdTimestamp:ej(b,1),createdByMe:W(b,2),ownedByMe:W(b,3),recentlySharedWithMe:W(b,8),sharedWithMeTimestamp:ej(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:ej(b,21),commentsAssignedToMeCount:ej(b,22),commentsMentioningMeCount:ej(b,23),suggestionsCount:ej(b,24),isDocwrapIncoming:W(b,25),isDocwrapOutgoing:W(b,26),commentsList:Cb(b.getCommentsList(),
sxb,a),lastCommentedTimestamp:ej(b,7),lastCommentedByGaiaId:ej(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}},qxb=[14];SF.prototype.toObject=function(){return sxb(void 0,this)};
var sxb=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:ej(b,13),repliesList:Cb(b.getRepliesList(),txb,a),isDocwrapComment:W(b,15),assignedToMeTimestampMs:ej(b,16),mentioningMeTimestampMs:ej(b,17),dueDate:Hv(a,b.getDueDate())};a&&(c.$jspbMessageInstance=
b);return c}};TF.prototype.toObject=function(){return txb(void 0,this)};var txb=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:ej(b,5),action:X(b,6,0)};a&&(c.$jspbMessageInstance=b);return c}};
var vxb=function(a){Z.call(this,a,-1,uxb)};U(vxb,Z);var UF=function(a){Z.call(this,a)};U(UF,Z);UF.prototype.getTitle=function(){return V(this,2)};UF.prototype.setTitle=function(a){return vl(this,2,a)};var VF=function(a){Z.call(this,a)};U(VF,Z);VF.prototype.getId=function(){return V(this,1)};VF.prototype.setId=function(a){return vl(this,1,a)};VF.prototype.getTitle=function(){return V(this,2)};VF.prototype.setTitle=function(a){return vl(this,2,a)};var uxb=[5],wxb=[9,10];
vxb.prototype.toObject=function(){return xxb(void 0,this)};var xxb=function(a,b){if(null!=b){var c={isCompleted:W(b,4),details:V(b,1),dueDateTimestamp:ej(b,2),emailLink:V(b,3),subtasksList:Cb(rb(b,UF,5),yxb,a),isNewTask:W(b,7),taskList:zxb(a,m(b,VF,8)),sourceGroup:Wkb(a,yl(b,Iv,9,wxb)),sourceDocument:Xkb(a,yl(b,Jv,10,wxb))};a&&(c.$jspbMessageInstance=b);return c}};UF.prototype.toObject=function(){return yxb(void 0,this)};
var yxb=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:ej(b,5)};a&&(c.$jspbMessageInstance=b);return c}};VF.prototype.toObject=function(){return zxb(void 0,this)};var zxb=function(a,b){if(null!=b){var c={id:V(b,1),title:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var WF=function(a){Z.call(this,a)};U(WF,Z);WF.prototype.getMembership=function(){return yl(this,XF,2,Axb)};var YF=function(a){Z.call(this,a,-1,Bxb)};U(YF,Z);YF.prototype.getOriginal=function(){return m(this,ZF,2)};YF.prototype.getState=function(){return X(this,6,0)};var $F=function(a){Z.call(this,a)};U($F,Z);$F.prototype.getState=function(){return X(this,1,0)};var XF=function(a){Z.call(this,a)};U(XF,Z);XF.prototype.getParentId=function(){return ej(this,11)};
XF.prototype.setParentId=function(a){Uk(this,11,a)};var ZF=function(a){Z.call(this,a)};U(ZF,Z);ZF.prototype.getMembership=function(){return yl(this,XF,1,Cxb)};var Axb=[1,2];WF.prototype.toObject=function(){return Dxb(void 0,this)};var Dxb=function(a,b){if(null!=b){var c={proposal:Exb(a,yl(b,YF,1,Axb)),membership:Fxb(a,b.getMembership())};a&&(c.$jspbMessageInstance=b);return c}},Bxb=[7];YF.prototype.toObject=function(){return Exb(void 0,this)};
var Exb=function(a,b){if(null!=b){var c={upsert:Gxb(a,m(b,ZF,1)),original:Gxb(a,b.getOriginal()),changeType:X(b,3,0),createTimeMs:ej(b,4),state:X(b,6,0),proposalUpdatesList:Cb(rb(b,$F,7),Hxb,a)};a&&(c.$jspbMessageInstance=b);return c}};$F.prototype.toObject=function(){return Hxb(void 0,this)};var Hxb=function(a,b){if(null!=b){var c={state:X(b,1,0),updaterId:ej(b,2),updaterName:V(b,3),updaterEmail:V(b,4),updateTimeMs:ej(b,5),updateReason:V(b,6)};a&&(c.$jspbMessageInstance=b);return c}};
XF.prototype.toObject=function(){return Fxb(void 0,this)};var Fxb=function(a,b){if(null!=b){var c={membershipId:ej(b,1),childId:ej(b,10),childName:V(b,2),childEmail:V(b,3),parentId:ej(b,11),parentName:V(b,4),parentEmail:V(b,5),createTimeMs:ej(b,6),expireTimeMs:ej(b,7),membershipType:X(b,8,0),getEmail:W(b,9)};a&&(c.$jspbMessageInstance=b);return c}},Cxb=[1];ZF.prototype.toObject=function(){return Gxb(void 0,this)};
var Gxb=function(a,b){if(null!=b){var c={membership:Fxb(a,b.getMembership())};a&&(c.$jspbMessageInstance=b);return c}};
var aG=function(a){Z.call(this,a,-1,Ixb)};U(aG,Z);g=aG.prototype;g.getDescription=function(){return V(this,1)};g.setDescription=function(a){return vl(this,1,a)};g.getCategory=function(){return X(this,15,0)};g.setCategory=function(a){sl(this,15,a)};g.setHost=function(a){return vl(this,8,a)};g.getCommentsList=function(){return rb(this,bG,14)};var Kxb=function(a){Z.call(this,a,-1,Jxb)};U(Kxb,Z);var cG=function(a){Z.call(this,a)};U(cG,Z);cG.prototype.getValue=function(){return ej(this,1)};
cG.prototype.setValue=function(a){return Uk(this,1,a)};var bG=function(a){Z.call(this,a)};U(bG,Z);bG.prototype.getCommentId=function(){return V(this,1)};bG.prototype.getMessage=function(){return V(this,2)};var Ixb=[3,6,7,17,12,14];aG.prototype.toObject=function(){return Lxb(void 0,this)};
var Lxb=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:Cb(rb(b,Kxb,12),Mxb,a),isStarred:W(b,13),commentsList:Cb(b.getCommentsList(),Nxb,a),hostRepoBranchLink:V(b,16)};a&&(c.$jspbMessageInstance=b);
return c}},Jxb=[2];Kxb.prototype.toObject=function(){return Mxb(void 0,this)};var Mxb=function(a,b){if(null!=b){var c={labelName:V(b,1),votesList:Cb(rb(b,cG,2),Oxb,a),minVoteValue:ej(b,3),maxVoteValue:ej(b,4)};a&&(c.$jspbMessageInstance=b);return c}};cG.prototype.toObject=function(){return Oxb(void 0,this)};var Oxb=function(a,b){if(null!=b){var c={value:ej(b,1),voterEmail:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};bG.prototype.toObject=function(){return Nxb(void 0,this)};
var Nxb=function(a,b){if(null!=b){var c={commentId:V(b,1),message:V(b,2),authorEmail:V(b,3),updatedTimeMs:ej(b,4),unresolved:W(b,5),inReplyTo:V(b,6)};a&&(c.$jspbMessageInstance=b);return c}};
var dG=function(a){Z.call(this,a,-1,Pxb)};U(dG,Z);g=dG.prototype;g.getDescription=function(){return V(this,1)};g.setDescription=function(a){return vl(this,1,a)};g.getStatus=function(){return X(this,2,0)};g.setStatus=function(a){return sl(this,2,a)};g.getPriority=function(){return X(this,3,0)};g.setPriority=function(a){return sl(this,3,a)};g.getDueDate=function(){return m(this,Tk,13)};var Rxb=function(a){Z.call(this,a,-1,Qxb)};U(Rxb,Z);var eG=function(a){Z.call(this,a)};U(eG,Z);
eG.prototype.getDescription=function(){return V(this,3)};eG.prototype.setDescription=function(a){return vl(this,3,a)};var Pxb=[6];dG.prototype.toObject=function(){return Sxb(void 0,this)};
var Sxb=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:Txb(a,m(b,Rxb,8)),requestedByMe:W(b,9),assignedToMe:W(b,10),myApprovalNeeded:W(b,11),ccIncludesMe:W(b,12),dueDate:Hv(a,b.getDueDate())};a&&(c.$jspbMessageInstance=b);return c}},Qxb=[1];Rxb.prototype.toObject=function(){return Txb(void 0,this)};
var Txb=function(a,b){if(null!=b){var c={entriesList:Cb(rb(b,eG,1),Uxb,a)};a&&(c.$jspbMessageInstance=b);return c}};eG.prototype.toObject=function(){return Uxb(void 0,this)};var Uxb=function(a,b){if(null!=b){var c={eventLogTimestamp:Vu(a,m(b,sj,1)),updaterEmail:V(b,2),description:V(b,3)};a&&(c.$jspbMessageInstance=b);return c}};
var fG=function(a){Z.call(this,a,-1,Vxb)};U(fG,Z);fG.prototype.getTaskStatus=function(){return X(this,3,0)};fG.prototype.setTaskStatus=function(a){return sl(this,3,a)};var gG=function(a){Z.call(this,a,-1,Wxb)};U(gG,Z);g=gG.prototype;g.getStatus=function(){return X(this,3,0)};g.setStatus=function(a){return sl(this,3,a)};g.getPriority=function(){return X(this,4,0)};g.setPriority=function(a){return sl(this,4,a)};g.getDescription=function(){return V(this,10)};
g.setDescription=function(a){return vl(this,10,a)};var Vxb=[2],Xxb=[101];fG.prototype.toObject=function(){return Yxb(void 0,this)};var Yxb=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:Zxb(a,yl(b,gG,101,Xxb))};a&&(c.$jspbMessageInstance=b);return c}},Wxb=[7,8,11];gG.prototype.toObject=function(){return Zxb(void 0,this)};
var Zxb=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:Vu(a,m(b,sj,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:ej(b,12)};a&&(c.$jspbMessageInstance=b);return c}};
var hG=function(a){Z.call(this,a)};U(hG,Z);g=hG.prototype;g.getResourceId=function(){return V(this,17)};g.setResourceId=function(a){vl(this,17,a)};g.getTitle=function(){return V(this,2)};g.setTitle=function(a){return vl(this,2,a)};g.getLastModifiedTimestamp=function(){return ej(this,3)};g.getIconName=function(){return V(this,10)};g.setIsDeleted=function(a){mo(this,19,a)};var iG=[5,6,7,8,9,18,22,23,24];hG.prototype.toObject=function(){return $xb(void 0,this)};
var $xb=function(a,b){if(null!=b){var c={resourceId:V(b,17),taskSource:V(b,1),title:V(b,2),lastModifiedTimestamp:ej(b,3),fingerprint:V(b,4),iconName:V(b,10),itemTypeName:V(b,11),statusDescription:V(b,12),latestAction:V(b,13),latestActionTimestamp:ej(b,14),latestActionByUserEmail:V(b,20),hasDetails:W(b,15),externalLink:V(b,16),isDeleted:W(b,19),driveResource:rxb(a,yl(b,RF,5,iG)),buganizerResource:fxb(a,yl(b,IF,6,iG)),gtasksResource:xxb(a,yl(b,vxb,7,iG)),critiqueResource:lxb(a,yl(b,NF,8,iG)),arianeResource:axb(a,
yl(b,EF,9,iG)),gerritResource:Lxb(a,yl(b,aG,18,iG)),ganpatiResource:Dxb(a,yl(b,WF,22,iG)),gutsResource:Sxb(a,yl(b,dG,23,iG)),privacyResource:Yxb(a,yl(b,fG,24,iG))};a&&(c.$jspbMessageInstance=b);return c}};
var ayb=function(a){Z.call(this,a)};U(ayb,Z);g=ayb.prototype;g.getName=function(){return V(this,1)};g.setName=function(a){return vl(this,1,a)};g.getContent=function(){return V(this,2)};g.setContent=function(a){vl(this,2,a)};g.toObject=function(){return byb(void 0,this)};var byb=function(a,b){if(null!=b){var c={name:V(b,1),content:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var jG=function(a){Z.call(this,a)};U(jG,Z);g=jG.prototype;g.getTaskId=function(){return V(this,1)};g.setTaskId=function(a){return vl(this,1,a)};g.getTaskStatus=function(){return X(this,3,0)};g.setTaskStatus=function(a){return sl(this,3,a)};g.getResource=function(){return m(this,hG,6)};var cyb=function(a,b){return Uk(a,12,b)};jG.prototype.getNote=function(){return m(this,ayb,22)};jG.prototype.hasNote=function(){return lj(this,22)};jG.prototype.toObject=function(){return kG(void 0,this)};
var kG=function(a,b){if(null!=b){var c={taskId:V(b,1),gaiaId:ej(b,2),taskStatus:X(b,3,0),naturallyCompleted:W(b,4),hasNoActionItems:W(b,24),naturallyCompletedDescription:V(b,11),priorityOrder:zl(b,5),priorityOrderReservedUpper:zl(b,9),priorityOrderResetTimestampMs:ej(b,16),currentStatusSince:ej(b,10),currentStatusAutoUpdated:W(b,17),resource:$xb(a,b.getResource()),snoozeUntilMs:ej(b,12),autoUnsnoozeOnUpdate:W(b,18),prevStatusState:Kwb(a,m(b,AF,13)),note:byb(a,b.getNote()),readTimestampMs:ej(b,15),
createdTimestamp:ej(b,7),updatedTimestamp:ej(b,8),manuallyAdded:W(b,19),hasNote:W(b,20),dueInfo:Jwb(a,m(b,zF,23)),taskStatusRequiresAck:W(b,25),taskStatusRequiresAckReason:V(b,26)};a&&(c.$jspbMessageInstance=b);return c}};
var lG=function(a){Z.call(this,a)};U(lG,Z);lG.prototype.getWorkingHours=function(){return W(this,1)};lG.prototype.toObject=function(){return dyb(void 0,this)};var dyb=function(a,b){if(null!=b){var c={workingHours:W(b,1),workingHoursStart:ej(b,2),workingHoursEnd:ej(b,3)};a&&(c.$jspbMessageInstance=b);return c}};
var mG=function(a){Z.call(this,a)};U(mG,Z);mG.prototype.getAttention=function(){return W(this,2)};mG.prototype.getWorkingHours=function(){return m(this,lG,8)};mG.prototype.toObject=function(){return eyb(void 0,this)};
var eyb=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:dyb(a,b.getWorkingHours()),ignoreArchived:W(b,9)};a&&(c.$jspbMessageInstance=b);return c}};
var gyb=function(a){Z.call(this,a,-1,fyb)};U(gyb,Z);var fyb=[1];gyb.prototype.toObject=function(){return hyb(this)};var hyb=function(a){if(null!=a)return{critiquePrefsList:Cb(rb(a,mG,1),eyb)}};
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{autoArchiveInactive:X(a,1,0),launchDateAsDueDate:X(a,2,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{autoArchiveClosed:X(a,1,0),sloAsDueDate:X(a,2,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{autoArchiveSubmitted:X(a,1,0),dueAfterReceivingDays:ej(a,2),dueDateEnabled:X(a,3,0)}};
var oyb=function(a){Z.call(this,a)};U(oyb,Z);oyb.prototype.toObject=function(){return pyb(this)};var pyb=function(a){if(null!=a)return{invitationUserAction:X(a,2,0),autoArchiveSelfOwnedAllResolved:X(a,3,0),autoArchiveOthersOwnedAllResolved:X(a,4,0),dueAfterMentionReceivingDays:ej(a,5),dueAfterAssignmentReceivingDays:ej(a,6),mentionDueDateEnabled:X(a,7,0),assignmentDueDateEnabled:X(a,8,0),dueAfterReceivingDays:ej(a,9),dueDateEnabled:X(a,10,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),unsnoozedTasks:X(a,2,0)}};
var tyb=function(a){Z.call(this,a,-1,syb)};U(tyb,Z);var syb=[4];tyb.prototype.toObject=function(){return uyb(this)};var uyb=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 vyb=function(a){Z.call(this,a)};U(vyb,Z);vyb.prototype.toObject=function(){return wyb(this)};var wyb=function(a){if(null!=a)return{expirationAsDue:X(a,4,0),autoArchiveResolved:X(a,3,0)}};
var yyb=function(a){Z.call(this,a,-1,xyb)};U(yyb,Z);var xyb=[1];yyb.prototype.toObject=function(){return zyb(this)};var zyb=function(a){if(null!=a)return{gerritHostsList:n(jb(a,1)),autoArchiveSubmitted:X(a,2,0),invitationUserAction:X(a,3,0),dueAfterReceivingDays:ej(a,4),dueDateEnabled: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{invitationUserAction:X(a,1,0),autoArchiveClosed:X(a,2,0),dueDateEnabled:X(a,3,0)}};
var Cyb=function(a){Z.call(this,a)};U(Cyb,Z);Cyb.prototype.toObject=function(){return Dyb(void 0,this)};var Dyb=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 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{autoArchiveClosed:X(a,1,0),trackableDueDateEnabled:X(a,2,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{filterEnabled:W(a,1),arianeLaunches:X(a,2,0),arianeReviews:X(a,3,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),assignedToMe:W(a,2),reportedByMe:W(a,3),ccIncludesMe:W(a,6),bugjugglerInCcList:X(a,4,0),other:X(a,5,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: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 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: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:ej(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 Oyb=function(a){Z.call(this,a)};U(Oyb,Z);Oyb.prototype.toObject=function(){return Pyb(this)};var Pyb=function(a){if(null!=a)return{filterEnabled:W(a,1)}};
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{filterEnabled:X(a,1,0)}};
var Syb=function(a){Z.call(this,a)};U(Syb,Z);Syb.prototype.toObject=function(){return Tyb(this)};var Tyb=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 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{filterEnabled:X(a,1,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:X(a,1,0),inAttentionSet:X(a,2,0),other:X(a,3,0)}};
var nG=function(a){Z.call(this,a)};U(nG,Z);nG.prototype.toObject=function(){return oG(this)};var oG=function(a){if(null!=a)return{critiqueFilter:Lyb(m(a,Kyb,1)),driveFilter:Nyb(m(a,Myb,2)),buganizerFilter:Jyb(m(a,Iyb,3)),arianeFilter:Hyb(m(a,Gyb,4)),gtasksFilter:Pyb(m(a,Oyb,5)),gerritFilter:Tyb(m(a,Syb,7)),ganpatiFilter:Ryb(m(a,Qyb,8)),gutsFilter:Vyb(m(a,Uyb,10)),privacyFilter:Xyb(m(a,Wyb,11)),taskAgeInDays:ej(a,6),showPrivateNoteOnly:X(a,9,0)}};
var pG=function(a){Z.call(this,a)};U(pG,Z);pG.prototype.toObject=function(){return Yyb(this)};
var Yyb=function(a){if(null!=a){var b=V(a,1),c=jyb(m(a,iyb,15)),d=lyb(m(a,kyb,16)),e=nyb(m(a,myb,17)),f=pyb(m(a,oyb,3)),h=wyb(m(a,vyb,27)),k=zyb(m(a,yyb,23)),q=uyb(m(a,tyb,4)),v=Byb(m(a,Ayb,29)),y=Fyb(m(a,Eyb,32)),E=W(a,5),I=W(a,6),N=W(a,7),L=W(a,8),T=W(a,24),Y=X(a,28,0),ka=W(a,22),ha=W(a,9),ra=W(a,30),Da=X(a,31,0),Ja=oG(m(a,nG,10)),Ba=oG(m(a,nG,11)),La=oG(m(a,nG,12)),hb=oG(m(a,nG,13)),fb=oG(m(a,nG,14)),Tb=V(a,19),va=ej(a,20),Ca=ej(a,21);var Ia=Zi(a,25,Cyb);return{mostRecentWorkspaceId:b,arianeTaskPrefs:c,
buganizerTaskPrefs:d,critiqueTaskPrefs:e,driveTaskPrefs:f,ganpatiTaskPrefs:h,gerritTaskPrefs:k,gtasksTaskPrefs:q,gutsTaskPrefs:v,privacyTaskPrefs:y,arianeEnabled:E,buganizerEnabled:I,critiqueEnabled:N,driveEnabled:L,ganpatiEnabledDeprecated:T,ganpatiEnabled:Y,gerritEnabled:ka,gtasksEnabled:ha,gutsEnabled:ra,privacyEnabled:Da,pinnedTaskFilter:Ja,inboxFilter:Ba,snoozedTaskFilter:La,completedTaskFilter:hb,dismissedTaskFilter:fb,viewedLaunchVersion:Tb,hiringChipDismissedTimestampMs:va,latestVisitTimestampMs:Ca,
taskOrderingPrefsMap:Eb(Ia,void 0,Dyb),g3NotificationsPrefs:ryb(m(a,qyb,26))}}};
var qG=function(a){Z.call(this,a)};U(qG,Z);var Zyb=[2,6];qG.prototype.toObject=function(){return $yb(this)};var $yb=function(a){if(null!=a)return{prefsId:V(a,1),taskManagementPrefs:Yyb(yl(a,pG,2,Zyb)),notificationsPrefs:hyb(yl(a,gyb,6,Zyb)),initialized:W(a,5),createdTimestamp:ej(a,3),updatedTimestamp:ej(a,4)}};
var rG=function(a){Z.call(this,a)};U(rG,Z);g=rG.prototype;g.getTaskId=function(){return V(this,1)};g.setTaskId=function(a){return vl(this,1,a)};g.getClientId=function(){return ej(this,2)};g.setClientId=function(a){return Uk(this,2,a)};g.getWorkspaceId=function(){return V(this,3)};g.toObject=function(){var a=null!=this?{taskId:V(this,1),clientId:ej(this,2),workspaceId:V(this,3)}:void 0;return a};
var sG=function(a){Z.call(this,a,-1,azb)};U(sG,Z);var bzb=function(a,b){return jl(a,1,b)},azb=[1];sG.prototype.toObject=function(){var a=null!=this?{taskIdsList:n(jb(this,1))}:void 0;return a};
var tG=function(a){Z.call(this,a,-1,czb)};U(tG,Z);var dzb=function(){var a=new tG;return jl(a,1,[1])},czb=[1];tG.prototype.toObject=function(){var a=null!=this?{taskStatusesList:n(jb(this,1))}:void 0;return a};
var uG=function(a){Z.call(this,a)};U(uG,Z);g=uG.prototype;g.getId=function(){return V(this,1)};g.setId=function(a){return vl(this,1,a)};g.getVersion=function(){return V(this,2)};g.setVersion=function(a){return vl(this,2,a)};g.toObject=function(){return ezb(void 0,this)};var ezb=function(a,b){if(null!=b){var c={id:V(b,1),version:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var vG=function(a){Z.call(this,a)};U(vG,Z);g=vG.prototype;g.getTask=function(){return m(this,jG,8)};g.setTask=function(a){return Bb(this,8,a)};g.hasTask=function(){return lj(this,8)};g.setUndoToken=function(a){return vl(this,7,a)};g.getClientId=function(){return ej(this,9)};g.setClientId=function(a){return Uk(this,9,a)};
g.toObject=function(){var a=null!=this?{task:kG(void 0,this.getTask()),belowTaskId:V(this,3),undoToken:V(this,7),clientId:ej(this,9),clientTimeZone:ezb(void 0,m(this,uG,10))}:void 0;return a};
var wG=function(a){Z.call(this,a)};U(wG,Z);wG.prototype.getName=function(){return V(this,1)};wG.prototype.setName=function(a){return vl(this,1,a)};wG.prototype.toObject=function(){var a=null!=this?{name:V(this,1)}:void 0;return a};
var yG=function(a,b,c){var d=this;this.userPrefsApiPromiseClient=a;this.taskManagementApiPromiseClient=b;this.config=c;this.isActiveG3cUser$=(0,S.defer)(function(){var e=(new wG).setName("keys/2");return(0,S.from)(d.userPrefsApiPromiseClient.getUserPrefs(e,xG(d)))}).pipe(R(function(e){return(e=yl(e.getUserPrefs()||new qG,pG,2,Zyb))?12096E5>=Date.now()-ej(e,21):!1}),Zf(1))},gzb=function(a){var b=dzb();return(0,S.defer)(function(){var c=S.from;var d=a.taskManagementApiPromiseClient;var e=xG(a);d=zG(d.client_,
d.hostname_+"/$rpc/google.internal.devopsconsole.v1.TaskManagementService/ListTasksForStatuses",b,e||{},fzb);return c.call(S,d)}).pipe(R(function(c){return c.getTasksList().length}))};
yG.prototype.getTask=function(a){var b=this,c=bzb(new sG,[a]);return(0,S.defer)(function(){var d=S.from;var e=b.taskManagementApiPromiseClient;var f=xG(b);e=zG(e.client_,e.hostname_+"/$rpc/google.internal.devopsconsole.v1.TaskManagementService/ListTasksForIds",c,f||{},hzb);return d.call(S,e)}).pipe(R(function(d){return(d=d.getTasksList())&&0!==d.length?{taskId:a,taskStatus:izb(d[0].getTaskStatus()),snoozeUntilMs:Number(ej(d[0],12)||"")}:{taskId:a,taskStatus:0,snoozeUntilMs:0}}))};
yG.prototype.updateTaskStatus=function(a,b,c){var d=this;c=void 0===c?0:c;var e=(new vG).setTask(cyb((new jG).setTaskStatus(a).setTaskId(b),c||0)).setUndoToken("");return(0,S.defer)(function(){return(0,S.from)(d.taskManagementApiPromiseClient.updateTaskStatus(e,xG(d)))}).pipe(R(function(f){f=f.getTask();return{taskId:f.getTaskId(),taskStatus:izb(f.getTaskStatus()),snoozeUntilMs:Number(ej(f,12)||0)}}))};
yG.prototype.addTaskByUrl=function(a){var b=this,c=(new rG).setTaskId(a);return(0,S.defer)(function(){return(0,S.from)(b.taskManagementApiPromiseClient.addTaskByUrl(c,xG(b)))}).pipe(R(function(d){return!V(d,2)}))};
var xG=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:Oo([])||"","X-Goog-AuthUser":"0"}},izb=function(a){switch(a){case 0:case 6:case 2:case 3:case 5:case 1:return a;default:mh(a)}};yG.\u0275fac=function(a){return new (a||yG)(t(Hwb),t(Gwb),t(yF,8))};
yG.\u0275prov=dc({token:yG,factory:yG.\u0275fac,providedIn:"root"});
var AG=function(a,b){var c=this;this.g3cWidgetService=a;this.g3cWidgetIconRegistry=b;this.destroyed$=new S.Subject;this.taskId$=new S.ReplaySubject;this.forceLoadTaskData$=new S.BehaviorSubject(void 0);this.isActiveG3cUser$=this.g3cWidgetService.isActiveG3cUser$.pipe(Mf(function(){return(0,S.of)(!1)}),rf(function(d){return d}),dg(function(){var d=c.g3cWidgetIconRegistry;if(!d.isMatIconRegistered){var e=zh(zwb);d.iconRegistry._addSvgIconConfig("","g3c-console-logo-outlined",new bF(e));e=r(Dwb);for(var f=
e.next();!f.done;f=e.next()){var h=f.value;f="g3c-widget-"+h.replace(/_/g,"-");h=zh(Awb,h);d.iconRegistry._addSvgIconConfig("",f,new bF(h))}e=r(Ewb);for(f=e.next();!f.done;f=e.next())h=f.value,f="g3c-widget-"+h.replace(/_/g,"-"),h=zh(Bwb,h),d.iconRegistry._addSvgIconConfig("",f,new bF(h));e=r(Fwb);for(f=e.next();!f.done;f=e.next())h=f.value,f="g3c-widget-"+h.replace(/_/g,"-"),h=zh(Cwb,h),d.iconRegistry._addSvgIconConfig("",f,new bF(h));d.isMatIconRegistered=!0}c.userActionPerformed.emit("loaded")}),
cg(this.destroyed$));this.task$=(0,S.combineLatest)([this.taskId$,this.forceLoadTaskData$]).pipe(bg(function(d){d=r(d).next().value;return c.g3cWidgetService.getTask(d).pipe(Mf(function(){return(0,S.of)(void 0)}))}),cg(this.destroyed$));this.pinnedTasksCount$=(0,S.combineLatest)([this.taskId$,this.forceLoadTaskData$]).pipe(bg(function(){return gzb(c.g3cWidgetService).pipe(Mf(function(){return(0,S.of)(0)}))}),cg(this.destroyed$));this.taskIdInternal="";this.skipTasksActionsInternal=!1;this.menuXPosition=
"before";this.featureHighlightingEnabled=!1;this.customWidgetClass="";this.userActionPerformed=new Rw};g=AG.prototype;
g.updateTaskStatus=function(a){var b=this;this.g3cWidgetService.updateTaskStatus(a.taskStatus,this.taskIdInternal,a.snoozeUntilMs).pipe(R(function(){return!0}),Mf(function(){return(0,S.of)(!1)}),cg(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:mh(c)}b.forceLoadTaskData$.next()}})};g.addTaskByUrl=function(){var a=this;this.g3cWidgetService.addTaskByUrl(this.taskIdInternal).pipe(Mf(function(){return(0,S.of)(!1)}),cg(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()};li.Object.defineProperties(AG.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()}}});AG.\u0275fac=function(a){return new (a||AG)(D(yG),D(xF))};
AG.\u0275cmp=w({type:AG,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&&(M(0,Sma,4,10,"ng-container",0),P(1,"async"));a&2&&C("ngIf",Q(1,1,b.isActiveG3cUser$))},dependencies:[Cx,uF,Px],encapsulation:2});
var BG=function(){};BG.\u0275fac=function(a){return new (a||BG)};BG.\u0275mod=uc({type:BG});BG.\u0275inj=gc({imports:[yB,gB,gB]});
var CG=function(){};CG.\u0275fac=function(a){return new (a||CG)};CG.\u0275mod=uc({type:CG});CG.\u0275inj=gc({imports:[aA,JC,Wx,RC,BG,fB,MC]});
var jzb=function(a){Z.call(this,a)};U(jzb,Z);jzb.prototype.toObject=function(){var a=null!=this?{}:void 0;return a};
var kzb=function(a,b,c){this.requestMessage_=a;this.methodDescriptor_=b;this.metadata_=c};kzb.prototype.getMethodDescriptor=function(){return this.methodDescriptor_};kzb.prototype.getMetadata=function(){return this.metadata_};
var lzb=function(a,b,c){c=void 0===c?{}:c;this.responseMessage_=a;this.metadata_=c;this.methodDescriptor_=b;this.status_=null};lzb.prototype.getMetadata=function(){return this.metadata_};lzb.prototype.getMethodDescriptor=function(){return this.methodDescriptor_};lzb.prototype.getStatus=function(){return this.status_};
var DG=function(a,b,c,d,e){this.name=a;this.requestType=b;this.responseType=c;this.requestSerializeFn=d;this.responseDeserializeFn=e},mzb=function(a,b,c){c=void 0===c?{}:c;return new kzb(b,a,c)};DG.prototype.getName=function(){return this.name};
var EG=function(a){Z.call(this,a)};U(EG,Z);EG.prototype.getTask=function(){return m(this,jG,1)};EG.prototype.setTask=function(a){return Bb(this,1,a)};EG.prototype.hasTask=function(){return lj(this,1)};EG.prototype.toObject=function(){var a=null!=this?{task:kG(void 0,this.getTask()),addTaskFailureReason:V(this,2)}:void 0;return a};
var nzb=new DG("/google.internal.devopsconsole.v1.TaskManagementService/AddTaskByUrl",rG,EG,function(a){return a.serialize()},function(a){return jo(EG,a)});
var FG=function(a){Z.call(this,a,-1,ozb)};U(FG,Z);FG.prototype.getTasksList=function(){return rb(this,jG,1)};var ozb=[1];FG.prototype.toObject=function(){var a=null!=this?{tasksList:Cb(this.getTasksList(),kG)}:void 0;return a};
var hzb=new DG("/google.internal.devopsconsole.v1.TaskManagementService/ListTasksForIds",sG,FG,function(a){return a.serialize()},function(a){return jo(FG,a)});
var GG=function(a){Z.call(this,a,-1,pzb)};U(GG,Z);GG.prototype.getTasksList=function(){return rb(this,jG,1)};var pzb=[1];GG.prototype.toObject=function(){var a=null!=this?{tasksList:Cb(this.getTasksList(),kG)}:void 0;return a};
var fzb=new DG("/google.internal.devopsconsole.v1.TaskManagementService/ListTasksForStatuses",tG,GG,function(a){return a.serialize()},function(a){return jo(GG,a)});
var qzb=function(a){Z.call(this,a)};U(qzb,Z);g=qzb.prototype;g.getTask=function(){return m(this,jG,1)};g.setTask=function(a){return Bb(this,1,a)};g.hasTask=function(){return lj(this,1)};g.setUndoToken=function(a){return vl(this,4,a)};g.toObject=function(){var a=null!=this?{task:kG(void 0,this.getTask()),undoToken:V(this,4)}:void 0;return a};
var rzb=new DG("/google.internal.devopsconsole.v1.TaskManagementService/UpdateTaskStatus",vG,qzb,function(a){return a.serialize()},function(a){return jo(qzb,a)});
var szb=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 HG=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(HG,Error);HG.prototype.name="RpcError";
var tzb=Promise;
var IG=function(a){Z.call(this,a,-1,uzb)};U(IG,Z);IG.prototype.getCode=function(){return ej(this,1)};IG.prototype.setCode=function(a){return Uk(this,1,a)};IG.prototype.getMessage=function(){return V(this,2)};var uzb=[3];IG.prototype.toObject=function(){var a=null!=this?{code:ej(this,1),message:V(this,2),detailsList:Cb(rb(this,DF,3),Ywb)}:void 0;return a};
var JG=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_&&vzb(this)},Azb=function(a,b){Ro(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("Tb");c=atob(c)}try{var d=
a.grpcResponseDeserializeFn_(c)}catch(f){KG(a,new HG(13,"Error when deserializing response data; error: "+f+(", response: "+c)));return}c=szb(a.xhr_.getStatus());wzb(a,xzb(a));0==c?yzb(a,d):KG(a,new HG(c,"Xhr succeeded but the status code is not 200"))}else{d=a.xhr_.getResponseText();var e={};d?(e=zzb(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());wzb(a,xzb(a));KG(a,new HG(d,c,e))}})},vzb=function(a){a.xhrNodeReadableStream_.on("data",
function(b){if("1"in b){var c=b["1"];try{var d=a.grpcResponseDeserializeFn_(c)}catch(e){KG(a,new HG(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&yzb(a,d)}if("2"in b)for(b=zzb(a,b["2"]),c=0;c<a.onStatusCallbacks_.length;c++)a.onStatusCallbacks_[c](b)});a.xhrNodeReadableStream_.on("end",function(){wzb(a,xzb(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=szb(c);break;default:d=14}wzb(a,xzb(a));b=Gtb(b)+", error: "+a.xhr_.getLastError();-1!=c&&(b+=", http status code: "+c);KG(a,new HG(d,b))}})},xzb=function(a){var b={},c=a.xhr_.getResponseHeaders();Object.keys(c).forEach(function(d){b[d]=c[d]});return b},zzb=function(a,b){var c=2,d={};try{var e=jo(IG,b);c=e.getCode();var f=e.getMessage();rb(e,DF,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}};JG.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 LG=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
JG.prototype.removeListener=function(a,b){"data"==a?LG(this.onDataCallbacks_,b):"metadata"==a?LG(this.onMetadataCallbacks_,b):"status"==a?LG(this.onStatusCallbacks_,b):"end"==a?LG(this.onEndCallbacks_,b):"error"==a&&LG(this.onErrorCallbacks_,b);return this};JG.prototype.cancel=function(){this.xhr_.abort()};
var yzb=function(a,b){for(var c=0;c<a.onDataCallbacks_.length;c++)a.onDataCallbacks_[c](b)},wzb=function(a,b){for(var c=0;c<a.onMetadataCallbacks_.length;c++)a.onMetadataCallbacks_[c](b)},KG=function(a,b){for(var c=0;c<a.onErrorCallbacks_.length;c++)a.onErrorCallbacks_[c](b)};JG.prototype.cancel=JG.prototype.cancel;JG.prototype.removeListener=JG.prototype.removeListener;JG.prototype.on=JG.prototype.on;
var MG=function(a){this.worker_=a.worker||null;this.streamBinaryChunks_=a.streamBinaryChunks||!1;this.cacheMode_=this.credentialsMode_=void 0};du(MG,aE);MG.prototype.createInstance=function(){var a=new NG(this.worker_,this.streamBinaryChunks_);this.credentialsMode_&&a.setCredentialsMode(this.credentialsMode_);this.cacheMode_&&a.setCacheMode(this.cacheMode_);return a};MG.prototype.internalGetOptions=tC({});MG.prototype.setCredentialsMode=function(a){this.credentialsMode_=a};
MG.prototype.setCacheMode=function(a){this.cacheMode_=a};var NG=function(a,b){Qo.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};
du(NG,Qo);NG.prototype.open=function(a,b){if(0!=this.readyState)throw this.abort(),Error("Ub");this.method_=a;this.url_=b;this.readyState=1;OG(this)};NG.prototype.send=function(a){if(1!=this.readyState)throw this.abort(),Error("Vb");this.inProgress_=!0;var b={headers:this.requestHeaders_,method:this.method_,credentials:this.credentialsMode_,cache:this.cacheMode_};a&&(b.body=a);(this.worker_||ca).fetch(new Request(this.url_,b)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
NG.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,PG(this));this.readyState=0};
NG.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,OG(this)),this.inProgress_&&(this.readyState=3,OG(this),this.inProgress_)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if("undefined"!==typeof ca.ReadableStream&&
"body"in a){this.currentReader_=a.body.getReader();if(this.streamBinaryChunks_){if(this.responseType)throw Error("Wb");this.response=[]}else this.response=this.responseText="",this.textDecoder_=new TextDecoder;Bzb(this)}else a.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};var Bzb=function(a){a.currentReader_.read().then(a.handleDataFromStream_.bind(a)).catch(a.handleSendFailure_.bind(a))};
NG.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?PG(this):OG(this);3==this.readyState&&Bzb(this)}};NG.prototype.handleResponseText_=function(a){this.inProgress_&&(this.response=this.responseText=a,PG(this))};
NG.prototype.handleResponseArrayBuffer_=function(a){this.inProgress_&&(this.response=a,PG(this))};NG.prototype.handleSendFailure_=function(){this.inProgress_&&PG(this)};var PG=function(a){a.readyState=4;a.fetchResponse_=null;a.currentReader_=null;a.textDecoder_=null;OG(a)};g=NG.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 OG=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
Object.defineProperty(NG.prototype,"withCredentials",{get:function(){return"include"===this.credentialsMode_},set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});
var Czb=function(a){if(a.getCount&&"function"==typeof a.getCount)a=a.getCount();else if(Ea(a)||"string"===typeof a)a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a},QG=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(Ea(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return vja(a)},Dzb=
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(Ea(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}}},Ezb=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(Ea(a)||"string"===typeof a)Array.prototype.forEach.call(a,
b,c);else for(var d=Dzb(a),e=QG(a),f=e.length,h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)},Fzb=function(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(Ea(a)||"string"===typeof a)return Array.prototype.every.call(a,b,c);for(var d=Dzb(a),e=QG(a),f=e.length,h=0;h<f;h++)if(!b.call(c,e[h],d&&d[h],a))return!1;return!0};
var dp=function(a,b){this.domain_=this.userInfo_=this.scheme_="";this.port_=null;this.fragment_=this.path_="";this.ignoreCase_=!1;var c;a instanceof dp?(this.ignoreCase_=void 0!==b?b:a.ignoreCase_,qv(this,a.scheme_),this.setUserInfo(a.getUserInfo()),pv(this,a.getDomain()),Gzb(this,a.port_),this.setPath(a.getPath()),RG(this,a.queryData_.clone()),SG(this,a.fragment_)):a&&(c=String(a).match(Jtb))?(this.ignoreCase_=!!b,qv(this,c[1]||"",!0),this.setUserInfo(c[2]||"",!0),pv(this,c[3]||"",!0),Gzb(this,c[4]),
this.setPath(c[5]||"",!0),RG(this,c[6]||"",!0),SG(this,c[7]||"",!0)):(this.ignoreCase_=!!b,this.queryData_=new TG(null,this.ignoreCase_))};
dp.prototype.toString=function(){var a=[],b=this.scheme_;b&&a.push(UG(b,Hzb,!0),":");var c=this.getDomain();if(c||"file"==b)a.push("//"),(b=this.getUserInfo())&&a.push(UG(b,Hzb,!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(UG(c,"/"==c.charAt(0)?Izb:Jzb,!0));(c=this.queryData_.toString())&&a.push("?",c);(c=this.fragment_)&&a.push("#",UG(c,Kzb));return a.join("")};
dp.prototype.resolve=function(a){var b=this.clone(),c=!!a.scheme_;c?qv(b,a.scheme_):c=a.hasUserInfo();c?b.setUserInfo(a.getUserInfo()):c=!!a.domain_;c?pv(b,a.getDomain()):c=null!=a.port_;var d=a.getPath();if(c)Gzb(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(ea(e,"./")||ea(e,"/.")){d=Ni(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?RG(b,a.queryData_.clone()):c=!!a.fragment_;c&&SG(b,a.fragment_);return b};dp.prototype.clone=function(){return new dp(this)};var qv=function(a,b,c){a.scheme_=c?VG(b,!0):b;a.scheme_&&(a.scheme_=a.scheme_.replace(/:$/,""));return a};dp.prototype.getUserInfo=function(){return this.userInfo_};
dp.prototype.setUserInfo=function(a,b){this.userInfo_=b?VG(a):a;return this};dp.prototype.hasUserInfo=function(){return!!this.userInfo_};dp.prototype.getDomain=function(){return this.domain_};var pv=function(a,b,c){a.domain_=c?VG(b,!0):b;return a},Gzb=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Xb`"+b);a.port_=b}else a.port_=null;return a};dp.prototype.getPath=function(){return this.path_};dp.prototype.setPath=function(a,b){this.path_=b?VG(a,!0):a;return this};
dp.prototype.hasPath=function(){return!!this.path_};dp.prototype.hasQuery=function(){return""!==this.queryData_.toString()};var RG=function(a,b,c){b instanceof TG?(a.queryData_=b,a.queryData_.setIgnoreCase(a.ignoreCase_)):(c||(b=UG(b,Lzb)),a.queryData_=new TG(b,a.ignoreCase_));return a};dp.prototype.setQuery=function(a){return RG(this,a)};dp.prototype.getQuery=function(){return this.queryData_.toString()};
var WG=function(a,b,c){a.queryData_.set(b,c);return a},XG=function(a,b){return a.queryData_.get(b)},SG=function(a,b,c){a.fragment_=c?VG(b):b;return a};dp.prototype.removeParameter=function(a){this.queryData_.remove(a);return this};dp.prototype.isReadOnly=function(){return!1};dp.prototype.setIgnoreCase=function(a){this.ignoreCase_=a;this.queryData_&&this.queryData_.setIgnoreCase(a)};
var YG=function(a,b){return a instanceof dp?a.clone():new dp(a,b)},VG=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},UG=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Mzb),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},Mzb=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},Hzb=/[#\/\?@]/g,Jzb=/[#\?:]/g,Izb=/[#\?]/g,Lzb=/[#\?@]/g,Kzb=/#/g,TG=function(a,b){this.count_=this.keyMap_=null;this.encodedQuery_=
a||null;this.ignoreCase_=!!b},ZG=function(a){a.keyMap_||(a.keyMap_=new Map,a.count_=0,a.encodedQuery_&&Ktb(a.encodedQuery_,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};g=TG.prototype;g.getCount=function(){ZG(this);return this.count_};g.add=function(a,b){ZG(this);this.encodedQuery_=null;a=$G(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){ZG(this);a=$G(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(){ZG(this);return 0==this.count_};g.containsKey=function(a){ZG(this);a=$G(this,a);return this.keyMap_.has(a)};g.containsValue=function(a){var b=this.getValues();return ua(b,a)};
g.forEach=function(a,b){ZG(this);this.keyMap_.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};g.getKeys=function(){ZG(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){ZG(this);var b=[];if("string"===typeof a)this.containsKey(a)&&(b=b.concat(this.keyMap_.get($G(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){ZG(this);this.encodedQuery_=null;a=$G(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($G(this,a),Aa(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 TG;a.encodedQuery_=this.encodedQuery_;this.keyMap_&&(a.keyMap_=new Map(this.keyMap_),a.count_=this.count_);return a};var $G=function(a,b){b=String(b);a.ignoreCase_&&(b=b.toLowerCase());return b};TG.prototype.setIgnoreCase=function(a){a&&!this.ignoreCase_&&(ZG(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};
TG.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)Ezb(arguments[b],function(c,d){this.add(d,c)},this)};
var Nzb=function(a){var b="";Zg(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});return b};
var aH=function(a){WC.call(this);this.handler_=a;this.keys_={}};du(aH,WC);var Ozb=[];aH.prototype.listen=function(a,b,c,d){Array.isArray(b)||(b&&(Ozb[0]=b.toString()),b=Ozb);for(var e=0;e<b.length;e++){var f=Ro(a,b[e],c||this.handleEvent,d||!1,this.handler_||this);if(!f)break;this.keys_[f.key]=f}return this};aH.prototype.listenOnce=function(a,b,c,d){return Pzb(this,a,b,c,d)};
var Pzb=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)Pzb(a,b,c[h],d,e,f);else{b=gD(b,c,d||a.handleEvent,e,f||a.handler_||a);if(!b)return a;a.keys_[b.key]=b}return a};
aH.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=Fa(d)?!!d.capture:!!d,e=e||this.handler_||this,c=hD(c),d=!!d,b=dD(a)?a.getListener(b,c,d,e):a?(a=iD(a))?a.getListener(b,c,d,e):null:null,b&&(kD(b),delete this.keys_[b.key]);return this};aH.prototype.removeAll=function(){Zg(this.keys_,function(a,b){this.keys_.hasOwnProperty(b)&&kD(a)},this);this.keys_={}};
aH.prototype.disposeInternal=function(){aH.superClass_.disposeInternal.call(this);this.removeAll()};aH.prototype.handleEvent=function(){throw Error("Zb");};
var Qzb=function(){this.isInputValid_=!0;this.streamPos_=0;this.leftoverInput_=""};Qzb.prototype.error_=function(a,b){this.isInputValid_=!1;throw Error("$b`"+this.streamPos_+"`"+b+"`"+a);};
Qzb.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=Rib(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 Ci=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};Ci.prototype.getErrorMessage=function(){return this.errorMessage_};Ci.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_);};Ci.prototype.acceptsBinaryInput=function(){return!0};
Ci.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("ac`"+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 Qzb;this.pbParser_=new Ci};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 bH=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};
var Tma=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)},Rzb={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=Tma.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(bH(a[I]))I++,f.pos_++;else break;return I<v}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:bH(L)||f.error_(a,I);continue;case q.KEY_START:case q.OBJECT_OPEN:if(bH(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(bH(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(bH(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(bH(L))continue;else f.error_(a,I);continue;case q.STRING:var T=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-T;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=Rzb,v=a.length,y=0,E=-1,I=0;I<v;)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 Bi=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.streamPos_=0;this.result_=[];this.statusParsed_=!1};Bi.prototype.getErrorMessage=function(){return this.errorMessage_};Bi.prototype.acceptsBinaryInput=function(){return!1};
Bi.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 Tma({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}function d(q){if(q)for(var v=0;v<q.length;v++){var y={};y[1]=q[v];f.result_.push(y)}}function e(q){if(q){(f.statusParsed_||1<q.length)&&b("extra status: "+q);f.statusParsed_=!0;var v={};v[2]=q[0];f.result_.push(v)}}for(var f=
this,h=0;h<a.length;){var k;if(k=2!==f.state_){a:{for(;h<a.length;){if(!bH(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 Szb=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 aH(this);this.eventHandler_.listen(this.xhr_,"readystatechange",this.readyStateChangeHandler_)},cH=function(a,b){a.status_!=b&&(a.status_=b,a.statusHandler_&&a.statusHandler_())},dH=function(a){a.eventHandler_.removeAll();if(a.xhr_){var b=a.xhr_;a.xhr_=null;b.abort();b.dispose()}};Szb.prototype.getStatus=function(){return this.status_};
Szb.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($tb(this.xhr_)instanceof Array){var f=$tb(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?cH(this,7):7==c?cH(this,8):d||cH(this,3)),this.parser_||(this.parser_=Uma(this.xhr_),null==this.parser_&&
cH(this,5)),2<this.status_)dH(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("bc");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){cH(this,5);dH(this);break a}}else if(e.length>
this.pos_){k=e.slice(this.pos_);this.pos_=e.length;try{var v=this.parser_.parse(k);null!=v&&this.dataHandler_&&this.dataHandler_(v)}catch(y){cH(this,5);dH(this);break a}}4==b?(0!=e.length||this.hasStreamingResponseData_?cH(this,2):cH(this,4),dH(this)):cH(this,1)}}}catch(y){cH(this,6),dH(this)}};
var Tzb=function(a){this.xhrReader_=a;a=$t(this.onData_,this);this.xhrReader_.dataHandler_=a;a=$t(this.onStatusChange_,this);this.xhrReader_.statusHandler_=a;this.callbackMap_={};this.callbackOnceMap_={}};g=Tzb.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&&ya(c,b);(a=this.callbackOnceMap_[a])&&ya(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&&Uzb(this,a,b);(b=this.callbackOnceMap_.data)&&Uzb(this,a,b);this.callbackOnceMap_.data=[]};
var Uzb=function(a,b,c){for(var d={},e=0;e<b.length;d={$jscomp$loop$prop$message$1640:d.$jscomp$loop$prop$message$1640},e++)d.$jscomp$loop$prop$message$1640=b[e],c.forEach(function(f){return function(h){try{h(f.$jscomp$loop$prop$message$1640)}catch(k){a.handleError_("message-callback exception (ignored) "+k)}}}(d))};
Tzb.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:Vzb(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Vzb(this,"error");break;case 8:Vzb(this,"close");break;case 2:Vzb(this,"end")}};var Vzb=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]=[]};Tzb.prototype.handleError_=function(){};
var eH=function(a){a=void 0===a?{}:a;this.suppressCorsPreflight_=a.suppressCorsPreflight||Mo("suppressCorsPreflight",a)||!1;this.withCredentials_=a.withCredentials||Mo("withCredentials",a)||!1;this.streamInterceptors_=a.streamInterceptors||[];this.unaryInterceptors_=a.unaryInterceptors||[];this.workerScope_=a.workerScope;this.chunkedServerStreaming_=a.useFetchDownloadStreams||!1},Yzb=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return Wzb(function(h){return new tzb(function(k,q){var v=
{},y=Xzb(a,h,f);y.on("error",function(E){return q(E)});y.on("metadata",function(E){v=E});y.on("data",function(E){var I=v;I=void 0===I?{}:I;k(new lzb(E,h.getMethodDescriptor(),I))})})},a.unaryInterceptors_).call(a,mzb(e,c,d)).then(function(h){return h.responseMessage_})},zG=function(a,b,c,d,e){return Yzb(a,b,c,d,e)};
eH.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return Wzb(function(h){var k=h.getMethodDescriptor(),q=h.getMetadata(),v=Zzb(e,!1);q=$zb(e,q,v,f+k.getName());var y=aAb(v,k.responseDeserializeFn,!0);h=k.requestSerializeFn(h.requestMessage_);v.send(q,"POST",h);return y},this.streamInterceptors_).call(this,mzb(d,b,c))};
var Xzb=function(a,b,c){var d=b.getMethodDescriptor(),e=b.getMetadata(),f=Zzb(a,!0);a=$zb(a,e,f,c+d.getName());c=aAb(f,d.responseDeserializeFn,!1);Azb(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.requestSerializeFn(b.requestMessage_);f.send(a,"POST",b);return c},Zzb=function(a,b){b=a.chunkedServerStreaming_&&!b;return a.workerScope_||b?new eE(new MG({worker:a.workerScope_,streamBinaryChunks:b})):new eE},$zb=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,ah(b)?d=a:(b=Nzb(b),"string"===typeof a?d=dE(a,encodeURIComponent("$httpHeaders"),b):(WG(a,"$httpHeaders",b),d=a));else for(var f in b)c.headers.set(f,b[f]);return d},aAb=function(a,b,c){if(c)if(!hu||10<=Number(ou)){c=new Szb(a);var d=new Tzb(c)}else d=null;return new JG({xhr:a,nodeReadableStream:d},
b)},Wzb=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.intercept(f,e)}});return c};
var bAb=function(a){this.client_=new eH({format:"jspb"});this.hostname_=a};bAb.prototype.updateTaskStatus=function(a,b){return zG(this.client_,this.hostname_+"/$rpc/google.internal.devopsconsole.v1.TaskManagementService/UpdateTaskStatus",a,b||{},rzb)};bAb.prototype.addTaskByUrl=function(a,b){return zG(this.client_,this.hostname_+"/$rpc/google.internal.devopsconsole.v1.TaskManagementService/AddTaskByUrl",a,b||{},nzb)};
var fH=function(a){Z.call(this,a)};U(fH,Z);fH.prototype.getUserPrefs=function(){return m(this,qG,1)};fH.prototype.toObject=function(){var a=null!=this?{userPrefs:$yb(this.getUserPrefs())}:void 0;return a};
var cAb=new DG("/google.internal.devopsconsole.v1.UserPrefsTaskService/GetUserPrefs",wG,fH,function(a){return a.serialize()},function(a){return jo(fH,a)});
var gH=function(a){Z.call(this,a,-1,dAb)};U(gH,Z);var dAb=[1];gH.prototype.toObject=function(){return hH(void 0,this)};var hH=function(a,b){if(null!=b){var c={pathsList:n(jb(b,1))};a&&(c.$jspbMessageInstance=b);return c}};
var eAb=function(a){this.client_=new eH({format:"jspb"});this.hostname_=a};eAb.prototype.getUserPrefs=function(a,b){return zG(this.client_,this.hostname_+"/$rpc/google.internal.devopsconsole.v1.UserPrefsTaskService/GetUserPrefs",a,b||{},cAb)};
var fAb=function(a,b){this.target=a;this.targetElement=b;this.value=this.target.value},iH=function(a,b,c){var d=this;this._elementRef=a;this._dateAdapter=b;this._dateFormats=c;this.dateChange=new Rw;this.dateInput=new Rw;this.stateChanges=new S.Subject;this._onTouched=function(){};this._validatorOnChange=function(){};this._cvaOnChange=function(){};this._localeSubscription=this._valueChangesSubscription=S.Subscription.EMPTY;this._parseValidator=function(){return d._lastValueValid?null:{matDatepickerParse:{text:d._elementRef.nativeElement.value}}};
this._filterValidator=function(e){e=iB(d._dateAdapter,d._dateAdapter.deserialize(e.value));return!e||d._matchesFilter(e)?null:{matDatepickerFilter:!0}};this._minValidator=function(e){e=iB(d._dateAdapter,d._dateAdapter.deserialize(e.value));var f=d._rangeInput.min;return!f||!e||0>=jB(d._dateAdapter,f,e)?null:{matDatepickerMin:{min:f,actual:e}}};this._maxValidator=function(e){e=iB(d._dateAdapter,d._dateAdapter.deserialize(e.value));var f=d._rangeInput.max;return!f||!e||0<=jB(d._dateAdapter,f,e)?null:
{matDatepickerMax:{max:f,actual:e}}};this._lastValueValid=!1;this._localeSubscription=b.localeChanges.subscribe(function(){d._assignValueProgrammatically(d.value)})};g=iH.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 fAb(b,b._elementRef.nativeElement)),b.dateChange.emit(new fAb(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=iB(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 fAb(this,this._elementRef.nativeElement)))};g._onChange=function(){this.dateChange.emit(new fAb(this,this._elementRef.nativeElement))};
g._onBlur=function(){this.value&&this._formatValue(this.value);this._onTouched()};g._formatValue=function(a){this._elementRef.nativeElement.value=null!=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=iB(this._dateAdapter,a);this._assignValue(a);this._formatValue(a)};g._matchesFilter=function(a){var b=this._rangeInput.dateFilter;return!b||b(a)};
li.Object.defineProperties(iH.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=Vg(a);var b=this._elementRef.nativeElement;this._disabled!==a&&(this._disabled=a,this.stateChanges.next(void 0));a&&this._isInitialized&&b.blur&&b.blur()}}});
iH.\u0275fac=function(a){return new (a||iH)(D(pd),D(hB,8),D(lB,8))};iH.\u0275dir=w({type:iH,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Cc]});
var gAb=new ld("MAT_DATE_RANGE_INPUT_PARENT"),jH=function(a,b,c,d,e,f,h,k){iH.call(this,b,h,k);this._rangeInput=a;this._defaultErrorStateMatcher=c;this._injector=d;this._parentForm=e;this._parentFormGroup=f};U(jH,iH);g=jH.prototype;g.ngOnInit=function(){var a=this._injector.get(jy,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){iH.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){iH.prototype._assignValueProgrammatically.call(this,a);var b;null==(b=this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput)||b._validatorOnChange()};jH.\u0275fac=function(a){return new (a||jH)(D(gAb),D(pd),D(pB),D(Qv),D(py,8),D(yy,8),D(hB,8),D(lB,8))};jH.\u0275dir=w({type:jH,features:[ae]});mla(jH);
var hAb={provide:new ld("mat-datepicker-scroll-strategy"),deps:[cB],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}};mi(function(a){this._elementRef=a});
var kH=function(){};kH.\u0275fac=function(a){return new (a||kH)};kH.\u0275mod=uc({type:kH});kH.\u0275inj=gc({providers:[FB,hAb],imports:[Wx,BG,fB,aA,bB,gB,HA]});
var lH=function(){};lH.\u0275fac=function(a){return new (a||lH)};lH.\u0275mod=uc({type:lH});lH.\u0275inj=gc({providers:[twb],imports:[aA,Wx,fB,gB,gB,HA]});
var mH=function(){};mH.\u0275fac=function(a){return new (a||mH)};mH.\u0275mod=uc({type:mH});mH.\u0275inj=gc({providers:[{provide:Hwb,useFactory:function(a){return new eAb(Vma(a))},deps:[yF]},{provide:Gwb,useFactory:function(a){return new bAb(Vma(a))},deps:[yF]},yG],imports:[Wx,CG,BG,kH,dC,wF,rC,mF,lH]});
var iAb=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"})};iAb.prototype.record=function(a,b,c,d){this.streamzService_.record(this.metricName_,a,b,c,d)};iAb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var jAb=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"})};jAb.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};jAb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var kAb=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"})};kAb.prototype.record=function(a,b,c,d){this.streamzService_.record(this.metricName_,a,b,c,d)};kAb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var lAb=function(a){this.servicePromise_=a;a.then($t(function(){},this),function(){},this)},mAb=function(a,b,c){return a.servicePromise_.then(function(d){var e=d[b];if(!e)throw Error("cc`"+b);return e.apply(d,c)})},oAb=function(a,b,c){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];e=nAb(a,b).then(function(f){return f.apply(null,d)});return new lAb(e)},pAb={},nAb=function(a,b){var c=pAb[b];if(c)return c;c=(c=Mo(b))?GD(c):(new FD(function(d,e){var f=(new nD(document)).createElement("SCRIPT");
f.async=!0;wh(f,Bo(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=Mo(b);if(!d)throw Error("dc`"+b+"`"+a);return d});return pAb[b]=c};
var qAb=function(a){this.loader_=a};qAb.prototype.startFeedback=function(a){mAb(this.loader_,"startFeedback",arguments)};qAb.prototype.requestSurvey=function(a){mAb(this.loader_,"requestSurvey",arguments).thenCatch(function(){},this)};qAb.prototype.presentSurvey=function(a){mAb(this.loader_,"presentSurvey",arguments).thenCatch(function(){},this)};var rAb=Co("https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");nAb(rAb,"help.service.Lazy.create").thenCatch(function(){});
var nH=function(){this.roundCorners=this.showDividers=!1};nH.\u0275fac=function(a){return new (a||nH)};
nH.\u0275cmp=w({type:nH,selectors:[["b-button-group"]],hostVars:4,hostBindings:function(a,b){a&2&&le("show-dividers",b.showDividers)("round-corners",b.roundCorners)},inputs:{showDividers:"showDividers",roundCorners:"roundCorners"},ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(xe(),ye(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 sAb={ACCESS_LEVEL_UNSPECIFIED:"ACCESS_LEVEL_UNSPECIFIED",INTERNAL:"INTERNAL",EXTERNAL_PARTNER:"EXTERNAL_PARTNER",EXTERNAL_PUBLIC:"EXTERNAL_PUBLIC"},Tpa={0:"ACCESS_LEVEL_UNSPECIFIED",1:"INTERNAL",2:"EXTERNAL_PARTNER",3:"EXTERNAL_PUBLIC"},Vpa={ACCESS_LEVEL_UNSPECIFIED:0,INTERNAL:1,EXTERNAL_PARTNER:2,EXTERNAL_PUBLIC:3},jra={ACTION_TYPE_UNSPECIFIED:0,ADD:1,REMOVE:2},tAb={TEXT:"TEXT",DATE:"DATE",ENUM:"ENUM",NUMERIC:"NUMERIC",REPEATED_TEXT:"REPEATED_TEXT",REPEATED_DATE:"REPEATED_DATE",REPEATED_ENUM:"REPEATED_ENUM",
REPEATED_NUMERIC:"REPEATED_NUMERIC"},jqa={1:"TEXT",2:"DATE",3:"ENUM",4:"NUMERIC",5:"REPEATED_TEXT",6:"REPEATED_DATE",7:"REPEATED_ENUM",8:"REPEATED_NUMERIC"},oqa={TEXT:1,DATE:2,ENUM:3,NUMERIC:4,REPEATED_TEXT:5,REPEATED_DATE:6,REPEATED_ENUM:7,REPEATED_NUMERIC:8},Pqa={0:"DELETION_REASON_UNSPECIFIED",1:"USER_REQUEST",2:"ABUSE",3:"PII",4:"RETENTION"},$qa={DELETION_REASON_UNSPECIFIED:0,USER_REQUEST:1,ABUSE:2,PII:3,RETENTION:4},wna={1:"COMFORTABLE",2:"COZY",3:"COMPACT"},Gna={COMFORTABLE:1,COZY:2,COMPACT:3},
hsa={0:"UNKNOWN_DIFF_TYPE",1:"SINGLE_VALUE",2:"COLLECTION",5:"USER_COLLECTION",3:"LINKED_COLLECTION",4:"CUSTOM_FIELD"},lqa={0:"UNKNOWN",1:"SILENT",2:"MINOR",3:"MAJOR",4:"BULK",5:"CLOSING"},pqa={UNKNOWN:0,SILENT:1,MINOR:2,MAJOR:3,BULK:4,CLOSING:5},gj={0:"UNKNOWN_PRIORITY",4:"CLOSURE_ONLY",1:"MINIMAL",2:"IMPORTANT",3:"ALL"},uj={UNKNOWN_PRIORITY:0,CLOSURE_ONLY:4,MINIMAL:1,IMPORTANT:2,ALL:3},vna={0:"DEFAULT",1:"ASSIGNMENT",2:"RESPONSE",3:"CLOSURE"},Fna={DEFAULT:0,ASSIGNMENT:1,RESPONSE:2,CLOSURE:3},BVa=
{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",55:"COLLABORATOR",56:"COLLABORATOR_COUNT"},Ara={0:"FIELD_ORDERING_UNSPECIFIED",1:"INHERITED",2:"CUSTOMIZED"},uAb={FIELD_ORDERING_UNSPECIFIED:0,INHERITED:1,
CUSTOMIZED:2},kqa={0:"UNSPECIFIED",1:"INHERIT",2:"DISABLED",3:"ENABLED"},Vm={0:"UNSPECIFIED_FORMATTING_MODE",1:"PLAIN",2:"MARKDOWN",3:"LITERAL"},Zl={UNSPECIFIED_FORMATTING_MODE:0,PLAIN:1,MARKDOWN:2,LITERAL:3},Xta={0:"IMPLICIT_ACCESS_UNSPECIFIED",1:"ALLOW",2:"DENY"},Zta={IMPLICIT_ACCESS_UNSPECIFIED:0,ALLOW:1,DENY:2},Wta={0:"INHERITANCE_UNSPECIFIED",1:"INHERIT_ALL",2:"INHERIT_ADMINS",3:"INHERIT_NOTHING"},Yta={INHERITANCE_UNSPECIFIED:0,INHERIT_ALL:1,INHERIT_ADMINS:2,INHERIT_NOTHING:3},Aj={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"},
Cna={1:Aj.ISSUE_ID,2:Aj.COMPONENT_PATH,3:Aj.TYPE,4:Aj.STATUS,5:Aj.PRIORITY,6:Aj.SEVERITY,7:Aj.REPORTER,8:Aj.ASSIGNEE,9:Aj.VERIFIER,10:Aj.CC,11:Aj.CHANGELIST,32:Aj.POSTMORTEM,12:Aj.BLOCKING_ISSUE_ID,13:Aj.BLOCKED_BY_ISSUE_ID,14:Aj.CREATED_TIME,15:Aj.MODIFIED_TIME,16:Aj.RESOLVED_TIME,17:Aj.VERIFIED_TIME,38:Aj.DELETION_TIME,18:Aj.TITLE,19:Aj.FOUND_IN_VERSION,20:Aj.TARGETED_TO_VERSION,21:Aj.VERIFIED_IN_VERSION,22:Aj.IN_PROD,23:Aj.CANONICAL_ISSUE_ID,24:Aj.CUSTOM_FIELD,25:Aj.POSITION,26:Aj.VOTE_COUNT,27:Aj.DUPLICATE_COUNT,
28:Aj.CC_COUNT,29:Aj.MODIFIED_BY,30:Aj.LAST_MODIFIER,31:Aj.ARCHIVED,33:Aj.MIN_SLO,35:Aj.ASSIGNMENT_SLO,36:Aj.RESPONSE_SLO,37:Aj.CLOSURE_SLO,39:Aj.TEAM,40:Aj.ESTIMATE,41:Aj.ESTIMATE_TOTAL_OPEN,42:Aj.ESTIMATE_TOTAL_COMPLETE},Mna={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},qra={ISSUE_RELATION_UNSPECIFIED:0,BLOCKING:1,BLOCKED_BY:2,DUPLICATE:3,CANONICAL:4},Qqa={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"},Vqa={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},AVa={0:"NODE_JOIN_TYPE_UNSPECIFIED",1:"AND",2:"OR",3:"ERR",4:"NIL"},vAb={UNKNOWN_SUBSCRIPTION:"UNKNOWN_SUBSCRIPTION",UNSUBSCRIBED:"UNSUBSCRIBED",SUBSCRIBED_CLOSURE_ONLY:"SUBSCRIBED_CLOSURE_ONLY",SUBSCRIBED_MAJOR_UPDATES:"SUBSCRIBED_MAJOR_UPDATES",
SUBSCRIBED_ALL_UPDATES:"SUBSCRIBED_ALL_UPDATES"},lsa={0:"UNKNOWN_SUBSCRIPTION",1:"UNSUBSCRIBED",2:"SUBSCRIBED_CLOSURE_ONLY",3:"SUBSCRIBED_MAJOR_UPDATES",4:"SUBSCRIBED_ALL_UPDATES"},mra={UNKNOWN_SUBSCRIPTION:0,UNSUBSCRIBED:1,SUBSCRIBED_CLOSURE_ONLY:2,SUBSCRIBED_MAJOR_UPDATES:3,SUBSCRIBED_ALL_UPDATES:4},CVa={0:"OPERATOR_UNSPECIFIED",1:"EQ",2:"GT",3:"LT",4:"GE",5:"LE"},acb={0:"UNKNOWN_PERMISSION",1:"OPEN_TO_JOIN"},Bqa={0:"PII_SEVERITY_UNSPECIFIED",1:"NONE_DETECTED",2:"PII",3:"SPII"},Yqa={PII_SEVERITY_UNSPECIFIED:0,
NONE_DETECTED:1,PII:2,SPII:3},Rqa={0:"PRIORITY_UNSPECIFIED",1:"P0",2:"P1",3:"P2",4:"P3",5:"P4"},Wqa={PRIORITY_UNSPECIFIED:0,P0:1,P1:2,P2:3,P3:4,P4:5},fsa={0:"UNSPECIFIED",1:"USER_REQUEST",2:"ABUSE",3:"PII",4:"RETENTION"},gta={0:"UNKNOWN",1:"HOTLIST",2:"BOOKMARK_GROUP",3:"SAVED_SEARCH"},wAb={UNKNOWN:0,HOTLIST:1,BOOKMARK_GROUP:2,SAVED_SEARCH:3},xAb={RETENTION_UNSPECIFIED:"RETENTION_UNSPECIFIED",COMPONENT_DEFAULT:"COMPONENT_DEFAULT",INDEFINITE:"INDEFINITE"},Wl={0:"RETENTION_UNSPECIFIED",1:"COMPONENT_DEFAULT",
2:"INDEFINITE"},Zqa={RETENTION_UNSPECIFIED:0,COMPONENT_DEFAULT:1,INDEFINITE:2},yAb={UNSPECIFIED_RETENTION:"UNSPECIFIED_RETENTION",BUGANIZER_DEFAULT:"BUGANIZER_DEFAULT",CUSTOM_PERIOD:"CUSTOM_PERIOD",INDEFINITE_RETENTION:"INDEFINITE_RETENTION"},yra={0:"UNSPECIFIED_RETENTION",1:"BUGANIZER_DEFAULT",2:"CUSTOM_PERIOD",3:"INDEFINITE_RETENTION"},zqa={UNSPECIFIED_RETENTION:0,BUGANIZER_DEFAULT:1,CUSTOM_PERIOD:2,INDEFINITE_RETENTION:3},Sqa={0:"SEVERITY_UNSPECIFIED",1:"S0",2:"S1",3:"S2",4:"S3",5:"S4"},Xqa={SEVERITY_UNSPECIFIED:0,
S0:1,S1:2,S2:3,S3:4,S4:5},wVa={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"},$bb={0:"UNKNOWN",1:"NORMAL",2:"LARGE",3:"HUGE",4:"ENORMOUS"},zra={0:"SLO_SOURCE_UNSPECIFIED",1:"USER",2:"BUGSCOPE"},Eqa={SLO_SOURCE_UNSPECIFIED:0,USER:1,BUGSCOPE:2},cqa={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"},eqa={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},Tqa={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"},Yl={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},gsa={0:"ACTIVE",1:"DELETED",2:"PURGED"},lua={0:"THEME_UNSPECIFIED",1:"GOOGLE",2:"OPEN_SOURCE"},Ysa={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"},
$sa={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},EVa={0:"QUERY_BUILDER_RESPONSE_TYPE_UNSPECIFIED",1:"AND",2:"OR"},Mqa={0:"UNSPECIFIED",1:"ACTIVE",2:"DELETED",3:"UNAVAILABLE"},Nqa={UNSPECIFIED:0,ACTIVE:1,DELETED:2,UNAVAILABLE:3},yVa={0:"VALUE_TYPE_UNSPECIFIED",1:"NOT",2:"OR",3:"AND",4:"RANGE",5:"SIMPLE"};
var Wma=Object.prototype.hasOwnProperty,zAb=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)},AAb=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=zAb(a);null!=h?d(h):(setTimeout(f,c),c*=2)}f();setTimeout(function(){var h=zAb(a);null!=h?d(h):e("timeout: "+b)},b)})};
var Ti=function(a){this.type=a.type;this.customFieldId=a.customFieldId||void 0;this.customFieldName=a.customFieldName||void 0};Ti.prototype.isCustomField=function(){return"CUSTOM_FIELD"===this.type};Ti.prototype.toApiUrlParam=function(){return this.isCustomField()?this.type.toLowerCase()+"."+this.customFieldId:this.type.toLowerCase()};Ti.prototype.toString=function(){return this.toApiUrlParam()};
var Xi=function(a,b){this.fieldId=a;this.direction=b};Xi.prototype.toApiUrlParam=function(){return this.fieldId.toApiUrlParam()+":"+("ASCENDING"===this.direction?"asc":"desc")};Xi.prototype.toString=function(){return this.toApiUrlParam()};
var nj=function(a){Z.call(this,a)};U(nj,Z);nj.prototype.toObject=function(){return BAb(this)};var BAb=function(a){if(null!=a)return{announcementDismissed:n(To(a,2)),enableBugScreensaver:n(To(a,1))}};
var DAb=function(a){Z.call(this,a,-1,CAb)};U(DAb,Z);var CAb=[1];DAb.prototype.toObject=function(){return EAb(this)};var EAb=function(a){if(null!=a)return{recentComponentIdList:n(jb(a,1))}};
var wj=function(a){Z.call(this,a)};U(wj,Z);wj.prototype.getTimeZone=function(){return V(this,5)};wj.prototype.setTimeZone=function(a){return l(this,5,a)};wj.prototype.hasTimeZone=function(){return dj(this,5)};wj.prototype.toObject=function(){return FAb(this)};var FAb=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)),sloEtaViewAs:n(p(a,7))}};
var zj=function(a){Z.call(this,a)};U(zj,Z);g=zj.prototype;g.getType=function(){return X(this,1,1)};g.setType=function(a){return l(this,1,a)};g.hasType=function(){return dj(this,1)};g.getCustomFieldId=function(){return ej(this,2)};g.setCustomFieldId=function(a){return l(this,2,a)};g.hasCustomFieldId=function(){return dj(this,2)};g.toObject=function(){return GAb(void 0,this)};var GAb=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 yj=function(a){Z.call(this,a,-1,HAb)};U(yj,Z);yj.prototype.getColumnList=function(){return rb(this,zj,1)};yj.prototype.setColumnList=function(a){return Ab(this,1,a)};var HAb=[1];yj.prototype.toObject=function(){return IAb(this)};var IAb=function(a){if(null!=a)return{columnList:Cb(a.getColumnList(),GAb)}};
var vj=function(a){Z.call(this,a)};U(vj,Z);vj.prototype.toObject=function(){return JAb(this)};var JAb=function(a){if(null!=a)return{leftSidebarWidth:n(p(a,1)),expandIssueSlo:n(To(a,2)),rightSidebarWidth:n(p(a,3))}};
var hj=function(a){Z.call(this,a)};U(hj,Z);hj.prototype.toObject=function(){return KAb(this)};var KAb=function(a){if(null!=a)return{showHotlists:n(To(a,1)),wrapTitles:n(To(a,2)),wrapComponents:n(To(a,3)),showStatusIcons:n(To(a,4)),rtlComponentPath:n(To(a,5))}};
var Cj=function(a){Z.call(this,a)};U(Cj,Z);Cj.prototype.getColumn=function(){return m(this,zj,1)};Cj.prototype.setColumn=function(a){return Bb(this,1,a)};Cj.prototype.toObject=function(){return LAb(void 0,this)};var LAb=function(a,b){if(null!=b){var c={column:GAb(a,b.getColumn()),order:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Bj=function(a){Z.call(this,a,-1,MAb)};U(Bj,Z);Bj.prototype.getColumnList=function(){return rb(this,Cj,1)};Bj.prototype.setColumnList=function(a){return Ab(this,1,a)};var MAb=[1];Bj.prototype.toObject=function(){return NAb(this)};var NAb=function(a){if(null!=a)return{columnList:Cb(a.getColumnList(),LAb)}};
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 OAb(this)};var OAb=function(a){if(null!=a)return{density:n(p(a,1))}};
var oj=function(a){Z.call(this,a)};U(oj,Z);oj.prototype.toObject=function(){return PAb(this)};var PAb=function(a){if(null!=a)return{announcementDismissedMillis:n(p(a,1))}};
var xj=function(a){Z.call(this,a)};U(xj,Z);g=xj.prototype;g.getResourceType=function(){return X(this,1,1)};g.setResourceType=function(a){l(this,1,a)};g.hasResourceType=function(){return dj(this,1)};g.getResourceId=function(){return kj(this,2)};g.setResourceId=function(a){l(this,2,a)};g.hasResourceId=function(){return dj(this,2)};g.toObject=function(){return QAb(this)};var QAb=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 RAb(this)};var RAb=function(a){if(null!=a)return{enableAllHotkeys:W(a,1,!0)}};
var pj=function(a){Z.call(this,a)};U(pj,Z);pj.prototype.toObject=function(){return SAb(this)};var SAb=function(a){if(null!=a)return{enableNewIssueDetailsPage:n(To(a,1)),onboardingDialogAcknowledgedMillis:n(p(a,2)),newIdpOptOut:n(To(a,3))}};
var fj=function(a){Z.call(this,a)};U(fj,Z);fj.prototype.toObject=function(){return TAb(this)};var TAb=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(To(a,6)),unsubscribeFromAll:n(To(a,7)),enableV2Prefs:n(To(a,8))}};
var VAb=function(a){Z.call(this,a,-1,UAb)};U(VAb,Z);var UAb=[1];VAb.prototype.toObject=function(){return WAb(this)};var WAb=function(a){if(null!=a)return{hiddenSavedSearchList:n(jb(a,1))}};
var rj=function(a){Z.call(this,a)};U(rj,Z);rj.prototype.getComponentId=function(){return ej(this,1)};rj.prototype.setComponentId=function(a){return l(this,1,a)};rj.prototype.hasComponentId=function(){return dj(this,1)};rj.prototype.toObject=function(){return XAb(void 0,this)};var XAb=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 qj=function(a){Z.call(this,a,-1,YAb)};U(qj,Z);var Nna=function(a,b){Ab(a,1,b)},YAb=[1];qj.prototype.toObject=function(){return ZAb(this)};var ZAb=function(a){if(null!=a)return{componentTeamWarningsList:Cb(rb(a,rj,1),XAb)}};
var mj=function(a){Z.call(this,a)};U(mj,Z);mj.prototype.getCommentDisplayOverride=function(){return X(this,2,0)};mj.prototype.setCommentDisplayOverride=function(a){l(this,2,a)};mj.prototype.toObject=function(){return $Ab(this)};var $Ab=function(a){if(null!=a)return{lastPublishMode:n(p(a,1)),commentDisplayOverride:n(p(a,2))}};
var oH=function(a){Z.call(this,a)};U(oH,Z);oH.prototype.getValue=function(){return W(this,1)};oH.prototype.setValue=function(a){return mo(this,1,a)};oH.prototype.toObject=function(){return aBb(this)};var aBb=function(a){if(null!=a)return{value:W(a,1)}};
var tj=function(a){Z.call(this,a)};U(tj,Z);g=tj.prototype;g.getDisplayColumns=function(){return m(this,yj,4)};g.getSortColumns=function(){return m(this,Bj,6)};g.getLayoutPreferences=function(){return m(this,vj,10)};g.getDateTimePreferences=function(){return m(this,wj,11)};g.getHomepagePreferences=function(){return m(this,xj,13)};g.clearHomepagePreferences=function(){return Bb(this,13)};g.toObject=function(){return bBb(this)};
var bBb=function(a){if(null!=a)return{showFullHistory:n(To(a,1)),useCodefont:n(To(a,2)),notificationPreferences:TAb(m(a,fj,3)),displayColumns:IAb(a.getDisplayColumns()),resultsPerPage:n(p(a,5)),sortColumns:NAb(a.getSortColumns()),bannerMessageId:n(p(a,7)),themePreferences:OAb(m(a,ij,8)),listViewPreferences:KAb(m(a,hj,9)),layoutPreferences:JAb(a.getLayoutPreferences()),dateTimePreferences:FAb(a.getDateTimePreferences()),sidebarPreferences:WAb(m(a,VAb,12)),homepagePreferences:QAb(a.getHomepagePreferences()),
componentPreferences:EAb(m(a,DAb,14)),keyboardPreferences:RAb(m(a,jj,17)),termsAcknowledgedMillis:n(p(a,15)),newFeaturesAcknowledgedMillis:n(p(a,16)),autoCcOnComment:n(To(a,18)),enableMaterialStyles:aBb(m(a,oH,19)),textDisplayPreferences:$Ab(m(a,mj,20)),bugScreensaverPreferences:BAb(m(a,nj,21)),newIssueDetailsPagePreferences:SAb(m(a,pj,22)),teamWarningPreferences:ZAb(m(a,qj,23)),g3nPreferences:PAb(m(a,oj,24)),dismissalTimestampsMap:Eb(Zi(a,25,sj),void 0,Vu),showRecentEventsFirst:n(To(a,26))}};
var pH=function(a){Z.call(this,a,-1,cBb)};U(pH,Z);g=pH.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 ej(this,6)};g.getOnePickUrl=function(){return V(this,7)};g.getOnePickSecretToken=function(){return V(this,12)};g.getCommentNumberLimit=function(){return ej(this,8)};g.getCreateComponentRedirectDelay=function(){return zl(this,9)};
var cBb=[10,13,14,15];pH.prototype.toObject=function(){return dBb(this)};
var dBb=function(a){if(null!=a)return{analyticsId:n(p(a,1)),appName:n(p(a,2)),documentationBaseUrl:n(p(a,3)),enabledFlagsMap:Eb(Zi(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(uu(a,9)),whitelistedWhitelistDomainPartnerComponentIdsList:n(jb(a,10)),isDogfooder:n(To(a,11)),createRestrictedSubresourcesComponentWhitelistList:n(jb(a,13)),componentAllowlistList:n(jb(a,14)),
componentDenylistList:n(jb(a,15))}};
var eBb=function(a){Z.call(this,a)};U(eBb,Z);g=eBb.prototype;g.getEmail=function(){return V(this,1)};g.setEmail=function(a){return l(this,1,a)};g.hasEmail=function(){return dj(this,1)};g.getSessionIdentifier=function(){return V(this,3)};g.toObject=function(){return fBb(this)};var fBb=function(a){if(null!=a)return{anonymous:n(To(a,4)),email:n(p(a,1)),sessionIdentifier:n(p(a,3))}};
var qH=function(a){Z.call(this,a,-1,gBb)};U(qH,Z);qH.prototype.getId=function(){return p(this,1)};qH.prototype.setId=function(a){return l(this,1,a)};var gBb=[2,4];qH.prototype.toObject=function(){return hBb(void 0,this)};var hBb=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}};qH.messageId="b.TimeZoneData";
var rH=function(a){Z.call(this,a,-1,iBb)};U(rH,Z);rH.prototype.getMessage=function(){return V(this,1)};var iBb=[4];rH.prototype.toObject=function(){return jBb(this)};var jBb=function(a){if(null!=a)return{message:n(p(a,1)),messageId:n(p(a,2)),dismissible:n(To(a,3)),tagsList:n(jb(a,4))}};rH.messageId="b.Announcement";
var sH=function(a){Z.call(this,a,-1,kBb)};U(sH,Z);var kBb=[1];sH.prototype.toObject=function(){return lBb(this)};var lBb=function(a){if(null!=a)return{timezonesList:Cb(rb(a,qH,1),hBb),announcement:jBb(m(a,rH,2))}};
var Ln=function(a){Z.call(this,a)};U(Ln,Z);Ln.prototype.getLogoUrl=function(){return V(this,1)};Ln.prototype.getTheme=function(){return X(this,2,0)};Ln.prototype.setTheme=function(a){return l(this,2,a)};Ln.prototype.toObject=function(){return mBb(void 0,this)};var mBb=function(a,b){if(null!=b){var c={logoUrl:n(p(b,1)),theme:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};Ln.messageId="b.Branding";
var tH=function(a){Z.call(this,a,-1,nBb)};U(tH,Z);g=tH.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 dj(this,2)};g.getName=function(){return V(this,3)};g.setName=function(a){return l(this,3,a)};g.hasName=function(){return dj(this,3)};var nBb=[4];tH.prototype.toObject=function(){return oBb(void 0,this)};
var oBb=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:mBb(a,m(b,Ln,5))};a&&(c.$jspbMessageInstance=b);return c}};tH.messageId="b.Tracker";
var mna=function(a){Z.call(this,a)};U(mna,Z);g=mna.prototype;g.getUser=function(){return m(this,eBb,1)};g.setUser=function(a){Bb(this,1,a)};g.getConfig=function(){return m(this,pH,2)};g.setConfig=function(a){return Bb(this,2,a)};g.getXsrfToken=function(){return V(this,3)};g.getCspNonce=function(){return V(this,8)};g.getUserPreferences=function(){return m(this,tj,7)};
g.toObject=function(){var a=null!=this?{user:fBb(this.getUser()),config:dBb(this.getConfig()),xsrfToken:n(p(this,3)),cspNonce:n(p(this,8)),frontendAccessMode:n(p(this,4)),mustAcknowledgeTerms:n(To(this,5)),showNewFeaturesDialog:n(To(this,6)),userPreferences:bBb(this.getUserPreferences()),preload:lBb(m(this,sH,9)),appBaseHref:n(p(this,10)),tracker:oBb(void 0,m(this,tH,11))}:void 0;return a};
var lna=window,kna;
var bj={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"},pBb={},qBb=(pBb[3]="LITERAL_FORMATTING_MODE",pBb[1]="PLAIN_FORMATTING_MODE",pBb[2]="MARKDOWN_FORMATTING_MODE",pBb),rBb=qBb[2],sBb=qBb[1],uH={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:"",sloEtaViewAs:"DEFAULT"},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 vH=function(){this.session=Yi();this.user=this.session.getUser()||new eBb;this.config=this.session.getConfig()||new pH;this.userPreferences=Bna(Yi().getUserPreferences()||new tj);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)};vH.prototype.isExternalSession=function(){return"INTERNAL"!==this.frontendAccessMode};
vH.prototype.isInternalSession=function(){return"INTERNAL"===this.frontendAccessMode};var wH=function(a){return"PARTNER"===a.frontendAccessMode},xH=function(a,b){return!!Zi(a.config,4).get(b)};vH.prototype.isAnonymous=function(){return W(this.user,4)||!1};vH.prototype.getUserEmail=function(){return this.user.getEmail()||""};vH.prototype.getSessionIdentifier=function(){return this.user.getSessionIdentifier()||"0"};
vH.prototype.getEnvironmentType=function(){return this.config.getEnvironmentType()||"QA"};var tBb=function(a){a=a.getEnvironmentType();switch(a){case "QA":return!1;case "NIGHTLY":case "PROD":return!0;default:mh(a,"Unknown environment type.")}},yH=function(a,b){return(void 0===b?0:b)||!a.isInternalSession()?tBb(a)?"https://issuetracker.google.com/":"https://issuetracker.sandbox.google.com/":tBb(a)?"http://b/":"http://b-qa/"};g=vH.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()};vH.\u0275fac=function(a){return new (a||vH)};vH.\u0275prov=dc({token:vH,factory:vH.\u0275fac,providedIn:"root"});
var uBb=function(a,b){return[a,b]},zH=function(){this.size=this.name=""};zH.prototype.ngOnInit=function(){};zH.\u0275fac=function(a){return new (a||zH)};
zH.\u0275cmp=w({type:zH,selectors:[["b-icon"]],inputs:{name:"name",size:"size"},decls:1,vars:5,consts:[[3,"svgIcon","ngClass"]],template:function(a,b){a&1&&H(0,"mat-icon",0);a&2&&C("svgIcon",b.name)("ngClass",Je(2,uBb,b.name,b.size))},dependencies:[Fx,dF],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 b8a=function(a){switch(a){case "P0":case "P1":case "P2":case "P3":case "P4":return a;default:return null}},vBb=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}},wBb=function(a){switch(a){case "S0":case "S1":case "S2":case "S3":case "S4":return a;default:return null}},
xBb=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}},yBb=function(a){return Lk(a.replace(/_/g," ").toLowerCase())};
var zBb=function(a){return function(b){return Ej(b,a)}};
var ABb=function(a){Z.call(this,a)};U(ABb,Z);ABb.prototype.getBlobRef=function(){return Gm(this,2)};ABb.prototype.toObject=function(){return BBb(void 0,this)};var BBb=function(a,b){if(null!=b){var c={resourceName:V(b,1),blobRef:Fb(b.getBlobRef())};a&&(c.$jspbMessageInstance=b);return c}};
var AH=function(a){Z.call(this,a)};U(AH,Z);AH.prototype.getSeverity=function(){return X(this,1,0)};AH.prototype.setSeverity=function(a){return sl(this,1,a)};AH.prototype.toObject=function(){return CBb(void 0,this)};var CBb=function(a,b){if(null!=b){var c={severity:X(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};
var DBb=function(a){Z.call(this,a)};U(DBb,Z);DBb.prototype.toObject=function(){return EBb(void 0,this)};var EBb=function(a,b){if(null!=b){var c={restrictionVerdict:CBb(a,m(b,AH,1))};a&&(c.$jspbMessageInstance=b);return c}};
var BH=function(a){Z.call(this,a)};U(BH,Z);BH.prototype.getStatus=function(){return X(this,1,0)};BH.prototype.setStatus=function(a){return sl(this,1,a)};BH.prototype.setReason=function(a){sl(this,2,a)};BH.prototype.toObject=function(){return FBb(void 0,this)};var FBb=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 CH=function(a){Z.call(this,a)};U(CH,Z);g=CH.prototype;g.getRetentionPeriod=function(){return m(this,jm,1)};g.setRetentionPeriod=function(a){Bb(this,1,a)};g.hasRetentionPeriod=function(){return lj(this,1)};g.getScheduledDeletionTime=function(){return m(this,sj,2)};g.setScheduledDeletionTime=function(a){Bb(this,2,a)};g.hasScheduledDeletionTime=function(){return lj(this,2)};g.toObject=function(){return GBb(void 0,this)};
var GBb=function(a,b){if(null!=b){var c={retentionPeriod:Pu(a,b.getRetentionPeriod()),scheduledDeletionTime:Vu(a,b.getScheduledDeletionTime())};a&&(c.$jspbMessageInstance=b);return c}};
var HBb=function(a){Z.call(this,a)};U(HBb,Z);g=HBb.prototype;g.getAttachmentId=function(){return ej(this,1)};g.setAttachmentId=function(a){Uk(this,1,a)};g.getFilename=function(){return V(this,4)};g.setFilename=function(a){vl(this,4,a)};g.getEntityStatus=function(){return m(this,BH,6)};g.getEtag=function(){return Gm(this,7)};g.setEtag=function(a){wu(this,7,a)};g.getContentVerdict=function(){return m(this,DBb,10)};g.getRestrictedRetentionState=function(){return m(this,CH,11)};
g.toObject=function(){return IBb(void 0,this)};var IBb=function(a,b){if(null!=b){var c={attachmentId:ej(b,1),contentType:V(b,2),length:ej(b,3),filename:V(b,4),attachmentDataRef:BBb(a,m(b,ABb,5)),entityStatus:FBb(a,b.getEntityStatus()),etag:Fb(b.getEtag()),contentVerdict:EBb(a,b.getContentVerdict()),restrictedRetentionState:GBb(a,b.getRestrictedRetentionState()),restrictedRetention:X(b,12,0)};a&&(c.$jspbMessageInstance=b);return c}};
var DH=function(a){Z.call(this,a)};U(DH,Z);g=DH.prototype;g.getValueCase=function(){return pb(this,EH)};g.getCustomFieldId=function(){return ej(this,1)};g.setCustomFieldId=function(a){return Uk(this,1,a)};g.setTextValue=function(a){co(this,2,EH,a)};g.getDateValue=function(){return yl(this,Tk,3,EH)};g.setDateValue=function(a){yu(this,3,EH,a)};g.setEnumValue=function(a){co(this,4,EH,a)};g.setNumericValue=function(a){co(this,5,EH,a)};g.getRepeatedTextValue=function(){return yl(this,FH,6,EH)};
g.setRepeatedTextValue=function(a){yu(this,6,EH,a)};g.getRepeatedDateValue=function(){return yl(this,GH,7,EH)};g.setRepeatedDateValue=function(a){yu(this,7,EH,a)};g.getRepeatedEnumValue=function(){return yl(this,FH,8,EH)};g.setRepeatedEnumValue=function(a){yu(this,8,EH,a)};g.getRepeatedNumericValue=function(){return yl(this,HH,9,EH)};g.setRepeatedNumericValue=function(a){yu(this,9,EH,a)};g.getDisplayString=function(){return V(this,10)};var FH=function(a){Z.call(this,a,-1,JBb)};U(FH,Z);
FH.prototype.getValuesList=function(){return jb(this,1)};FH.prototype.setValuesList=function(a){jl(this,1,a)};var GH=function(a){Z.call(this,a,-1,KBb)};U(GH,Z);GH.prototype.getValuesList=function(){return rb(this,Tk,1)};GH.prototype.setValuesList=function(a){Ab(this,1,a)};var HH=function(a){Z.call(this,a,-1,LBb)};U(HH,Z);HH.prototype.getValuesList=function(){return kb(this,1,Number)};HH.prototype.setValuesList=function(a){jl(this,1,a)};var EH=[2,3,4,5,6,7,8,9];
DH.prototype.toObject=function(){return MBb(void 0,this)};
var MBb=function(a,b){if(null!=b){var c={customFieldId:ej(b,1),textValue:n(Rr(b,2,EH)),dateValue:Hv(a,b.getDateValue()),enumValue:n(Rr(b,4,EH)),numericValue:n(uu(b,qb(b,EH,5))),repeatedTextValue:NBb(a,b.getRepeatedTextValue()),repeatedDateValue:OBb(a,b.getRepeatedDateValue()),repeatedEnumValue:NBb(a,b.getRepeatedEnumValue()),repeatedNumericValue:PBb(a,b.getRepeatedNumericValue()),displayString:V(b,10)};a&&(c.$jspbMessageInstance=b);return c}},JBb=[1];
FH.prototype.toObject=function(){return NBb(void 0,this)};var NBb=function(a,b){if(null!=b){var c={valuesList:n(jb(b,1))};a&&(c.$jspbMessageInstance=b);return c}},KBb=[1];GH.prototype.toObject=function(){return OBb(void 0,this)};var OBb=function(a,b){if(null!=b){var c={valuesList:Cb(b.getValuesList(),Hv,a)};a&&(c.$jspbMessageInstance=b);return c}},LBb=[1];HH.prototype.toObject=function(){return PBb(void 0,this)};
var PBb=function(a,b){if(null!=b){var c={valuesList:n(kb(b,1,Number))};a&&(c.$jspbMessageInstance=b);return c}};
var RBb=function(a){Z.call(this,a,-1,QBb)};U(RBb,Z);g=RBb.prototype;g.getCustomFieldId=function(){return ej(this,1)};g.setCustomFieldId=function(a){return Uk(this,1,a)};g.getComponentId=function(){return ej(this,2)};g.setComponentId=function(a){return Uk(this,2,a)};g.getType=function(){return X(this,3,0)};g.setType=function(a){return sl(this,3,a)};g.setRequired=function(a){mo(this,4,a)};g.getName=function(){return V(this,5)};g.setName=function(a){return vl(this,5,a)};
g.getDescription=function(){return V(this,6)};g.setDescription=function(a){return vl(this,6,a)};g.getTypedDefaultValue=function(){return m(this,DH,10)};g.setTypedDefaultValue=function(a){Bb(this,10,a)};g.setFieldSignificance=function(a){return sl(this,9,a)};var QBb=[8];RBb.prototype.toObject=function(){return SBb(void 0,this)};
var SBb=function(a,b){if(null!=b){var c={customFieldId:ej(b,1),componentId:ej(b,2),type:X(b,3,0),required:W(b,4),name:V(b,5),description:V(b,6),defaultValue:V(b,7),typedDefaultValue:MBb(a,b.getTypedDefaultValue()),enumValuesList:n(jb(b,8)),fieldSignificance:X(b,9,0)};a&&(c.$jspbMessageInstance=b);return c}};
var IH=function(a){Z.call(this,a)};U(IH,Z);IH.prototype.getCustomFieldId=function(){return ej(this,qb(this,JH,1))};IH.prototype.setCustomFieldId=function(a){return co(this,1,JH,a)};IH.prototype.hasCustomFieldId=function(){return 1===pb(this,JH)};IH.prototype.setStandardField=function(a){co(this,2,JH,a)};var JH=[1,2];IH.prototype.toObject=function(){return TBb(void 0,this)};
var TBb=function(a,b){if(null!=b){var c={customFieldId:n(Rr(b,1,JH)),standardField:n(Rr(b,2,JH))};a&&(c.$jspbMessageInstance=b);return c}};
var Qm=function(a){Z.call(this,a)};U(Qm,Z);Qm.prototype.toObject=function(){return KH(void 0,this)};var KH=function(a,b){if(null!=b){var c={privateDoNotAccessOrElseSafeHtmlWrappedValue:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var LH=function(a){Z.call(this,a)};U(LH,Z);LH.prototype.getContent=function(){return m(this,Qm,1)};LH.prototype.setContent=function(a){Bb(this,1,a)};LH.prototype.hasContent=function(){return lj(this,1)};LH.prototype.toObject=function(){return UBb(void 0,this)};var UBb=function(a,b){if(null!=b){var c={content:KH(a,b.getContent())};a&&(c.$jspbMessageInstance=b);return c}};
var MH=function(a){Z.call(this,a)};U(MH,Z);MH.prototype.getContent=function(){return m(this,Qm,1)};MH.prototype.setContent=function(a){Bb(this,1,a)};MH.prototype.hasContent=function(){return lj(this,1)};MH.prototype.toObject=function(){return VBb(void 0,this)};var VBb=function(a,b){if(null!=b){var c={content:KH(a,b.getContent())};a&&(c.$jspbMessageInstance=b);return c}};
var WBb=function(a){Z.call(this,a)};U(WBb,Z);g=WBb.prototype;g.getIsQuoted=function(){return W(this,1)};g.getContent=function(){return m(this,Qm,2)};g.setContent=function(a){Bb(this,2,a)};g.hasContent=function(){return lj(this,2)};g.toObject=function(){return XBb(void 0,this)};var XBb=function(a,b){if(null!=b){var c={isQuoted:W(b,1),content:KH(a,b.getContent())};a&&(c.$jspbMessageInstance=b);return c}};
var NH=function(a){Z.call(this,a,-1,YBb)};U(NH,Z);NH.prototype.getPlainSectionList=function(){return rb(this,WBb,1)};NH.prototype.addPlainSection=function(a){zu(this,1,WBb,a)};var YBb=[1];NH.prototype.toObject=function(){return ZBb(void 0,this)};var ZBb=function(a,b){if(null!=b){var c={plainSectionList:Cb(b.getPlainSectionList(),XBb,a)};a&&(c.$jspbMessageInstance=b);return c}};
var $Bb=function(a){Z.call(this,a)};U($Bb,Z);g=$Bb.prototype;g.getKindCase=function(){return pb(this,OH)};g.getPlainFormat=function(){return yl(this,NH,1,OH)};g.setPlainFormat=function(a){yu(this,1,OH,a)};g.hasPlainFormat=function(){return wl(this,1,OH)};g.getMarkdownFormat=function(){return yl(this,MH,2,OH)};g.setMarkdownFormat=function(a){yu(this,2,OH,a)};g.hasMarkdownFormat=function(){return wl(this,2,OH)};g.getLiteralFormat=function(){return yl(this,LH,3,OH)};
g.setLiteralFormat=function(a){yu(this,3,OH,a)};g.hasLiteralFormat=function(){return wl(this,3,OH)};var OH=[1,2,3];$Bb.prototype.toObject=function(){return aCb(void 0,this)};var aCb=function(a,b){if(null!=b){var c={plainFormat:ZBb(a,b.getPlainFormat()),markdownFormat:VBb(a,b.getMarkdownFormat()),literalFormat:UBb(a,b.getLiteralFormat())};a&&(c.$jspbMessageInstance=b);return c}};
var PH=function(a){Z.call(this,a,-1,bCb)};U(PH,Z);g=PH.prototype;g.getEmailAddress=function(){return V(this,1)};g.setEmailAddress=function(a){return vl(this,1,a)};g.getObfuscatedEmailAddress=function(){return V(this,2)};g.setObfuscatedEmailAddress=function(a){vl(this,2,a)};g.getUserGaiaStatus=function(){return X(this,3,0)};g.setUserGaiaStatus=function(a){sl(this,3,a)};g.getAliasesList=function(){return jb(this,4)};g.setAliasesList=function(a){jl(this,4,a)};var bCb=[4];
PH.prototype.toObject=function(){return QH(void 0,this)};var QH=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 RH=function(a){Z.call(this,a,-1,cCb)};U(RH,Z);RH.prototype.getMentionedUser=function(){return m(this,PH,1)};RH.prototype.getState=function(){return X(this,2,0)};var cCb=[3];RH.prototype.toObject=function(){return dCb(void 0,this)};var dCb=function(a,b){if(null!=b){var c={mentionedUser:QH(a,b.getMentionedUser()),state:X(b,2,0),displayEmailList:n(jb(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var fCb=function(a){Z.call(this,a,-1,eCb)};U(fCb,Z);g=fCb.prototype;g.getIssueId=function(){return ej(this,6)};g.setIssueId=function(a){return Uk(this,6,a)};g.getCommentNumber=function(){return ej(this,7)};g.setCommentNumber=function(a){return Uk(this,7,a)};g.getComment=function(){return V(this,1)};g.setComment=function(a){return vl(this,1,a)};g.getFormattedComment=function(){return m(this,$Bb,16)};g.getMentionsList=function(){return rb(this,RH,14)};
g.getFormattingMode=function(){return X(this,9,0)};g.setFormattingMode=function(a){return sl(this,9,a)};g.getAttachmentsList=function(){return rb(this,HBb,2)};g.setAttachmentsList=function(a){Ab(this,2,a)};g.getModifiedTime=function(){return m(this,sj,4)};g.getEntityStatus=function(){return m(this,BH,5)};g.getVersion=function(){return ej(this,8)};g.setVersion=function(a){return Uk(this,8,a)};g.getContentVerdict=function(){return m(this,DBb,10)};
g.getRestrictedRetentionState=function(){return m(this,CH,11)};g.getEtag=function(){return Gm(this,15)};g.setEtag=function(a){wu(this,15,a)};var eCb=[14,2];fCb.prototype.toObject=function(){return gCb(void 0,this)};
var gCb=function(a,b){if(null!=b){var c={issueId:ej(b,6),commentNumber:ej(b,7),comment:V(b,1),formattedComment:aCb(a,b.getFormattedComment()),mentionsList:Cb(b.getMentionsList(),dCb,a),formattingMode:X(b,9,0),attachmentsList:Cb(b.getAttachmentsList(),IBb,a),lastEditor:QH(a,m(b,PH,3)),modifiedTime:Vu(a,b.getModifiedTime()),entityStatus:FBb(a,b.getEntityStatus()),version:ej(b,8),contentVerdict:EBb(a,b.getContentVerdict()),restrictedRetentionState:GBb(a,b.getRestrictedRetentionState()),restrictedRetention:X(b,
12,0),redacted:W(b,13),etag:Fb(b.getEtag())};a&&(c.$jspbMessageInstance=b);return c}};
var iCb=function(a){Z.call(this,a,-1,hCb)};U(iCb,Z);iCb.prototype.setNotificationSubscription=function(a){return sl(this,4,a)};var hCb=[3];iCb.prototype.toObject=function(){return jCb(void 0,this)};var jCb=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:Vu(a,m(b,sj,5))};a&&(c.$jspbMessageInstance=b);return c}};
var cn=function(a){Z.call(this,a)};U(cn,Z);cn.prototype.getHref=function(){return V(this,1)};cn.prototype.toObject=function(){return kCb(void 0,this)};var kCb=function(a,b){if(null!=b){var c={href:n(p(b,1))};a&&(c.$jspbMessageInstance=b);return c}};
var bn=function(a){Z.call(this,a)};U(bn,Z);g=bn.prototype;g.getIssueId=function(){return ej(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getCommentNumber=function(){return ej(this,2)};g.setCommentNumber=function(a){return l(this,2,a)};g.toObject=function(){return lCb(void 0,this)};var lCb=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 mCb=function(a){Z.call(this,a)};U(mCb,Z);var an=[1,2];mCb.prototype.toObject=function(){return nCb(void 0,this)};var nCb=function(a,b){if(null!=b){var c={hyperlink:kCb(a,yl(b,cn,1,an)),issueReference:lCb(a,yl(b,bn,2,an))};a&&(c.$jspbMessageInstance=b);return c}};
var pCb=function(a){Z.call(this,a,-1,oCb)};U(pCb,Z);g=pCb.prototype;g.getIssueId=function(){return ej(this,2)};g.setIssueId=function(a){return Uk(this,2,a)};g.getIssueState=function(){return m(this,qCb,3)};g.getAttachmentsList=function(){return rb(this,HBb,18)};g.setAttachmentsList=function(a){Ab(this,18,a)};g.getCreatedTime=function(){return m(this,sj,5)};g.getModifiedTime=function(){return m(this,sj,6)};g.getResolvedTime=function(){return m(this,sj,7)};
g.getVerifiedTime=function(){return m(this,sj,8)};g.getUserData=function(){return m(this,iCb,9)};g.setUserData=function(a){Bb(this,9,a)};g.setVoteCount=function(a){Uk(this,10,a)};g.getParentIssueIdsList=function(){return jb(this,37)};g.setParentIssueIdsList=function(a){jl(this,37,a)};g.getAccessLimit=function(){return m(this,HF,11)};g.setAccessLimit=function(a){return Bb(this,11,a)};g.getVersion=function(){return ej(this,12)};g.setVersion=function(a){return Uk(this,12,a)};
g.getEtag=function(){return Gm(this,13)};g.setEtag=function(a){wu(this,13,a)};g.getCustomFieldsList=function(){return rb(this,RBb,15)};g.getVisibleFieldsList=function(){return rb(this,IH,34)};g.setVisibleFieldsList=function(a){Ab(this,34,a)};g.getSloStatus=function(){return m(this,rCb,16)};g.setSloStatus=function(a){Bb(this,16,a)};g.getSloId=function(){return ej(this,17)};g.setSloId=function(a){return Uk(this,17,a)};g.getTeamId=function(){return ej(this,33)};
g.setTeamId=function(a){return Uk(this,33,a)};g.getRetentionState=function(){return m(this,CH,29)};g.setRetentionState=function(a){Bb(this,29,a)};g.getAncestorsMap=function(){return Zi(this,38,lm)};g.getChildIssueCount=function(){return ej(this,39)};g.setChildIssueCount=function(a){Uk(this,39,a)};g.getIsArchived=function(){return W(this,40)};g.setIsArchived=function(a){mo(this,40,a)};g.getRelatedLinksList=function(){return rb(this,mCb,41)};var rCb=function(a){Z.call(this,a)};U(rCb,Z);g=rCb.prototype;
g.getAssignmentBounds=function(){return m(this,SH,1)};g.setAssignmentBounds=function(a){Bb(this,1,a)};g.hasAssignmentBounds=function(){return lj(this,1)};g.getResponseBounds=function(){return m(this,SH,2)};g.setResponseBounds=function(a){Bb(this,2,a)};g.hasResponseBounds=function(){return lj(this,2)};g.getClosureBounds=function(){return m(this,SH,3)};g.setClosureBounds=function(a){Bb(this,3,a)};g.hasClosureBounds=function(){return lj(this,3)};var SH=function(a){Z.call(this,a)};U(SH,Z);g=SH.prototype;
g.getStartTime=function(){return m(this,sj,1)};g.setStartTime=function(a){Bb(this,1,a)};g.getEndTime=function(){return m(this,sj,2)};g.setEndTime=function(a){Bb(this,2,a)};g.hasEndTime=function(){return lj(this,2)};g.getTargetTime=function(){return m(this,sj,3)};g.setTargetTime=function(a){Bb(this,3,a)};g.hasTargetTime=function(){return lj(this,3)};var ul=function(a){Z.call(this,a)};U(ul,Z);var lm=function(a){Z.call(this,a,-1,sCb)};U(lm,Z);
lm.prototype.getSourceIssueIdsList=function(){return jb(this,1)};lm.prototype.setSourceIssueIdsList=function(a){return jl(this,1,a)};var qCb=function(a){Z.call(this,a,-1,tCb)};U(qCb,Z);g=qCb.prototype;g.getComponentId=function(){return ej(this,1)};g.setComponentId=function(a){return Uk(this,1,a)};g.getType=function(){return X(this,2,0)};g.setType=function(a){return sl(this,2,a)};g.getStatus=function(){return X(this,3,0)};g.setStatus=function(a){return sl(this,3,a)};
g.getPriority=function(){return X(this,4,0)};g.setPriority=function(a){return sl(this,4,a)};g.getSeverity=function(){return X(this,5,0)};g.setSeverity=function(a){return sl(this,5,a)};g.getTitle=function(){return V(this,6)};g.setTitle=function(a){return vl(this,6,a)};g.getReporter=function(){return m(this,PH,7)};g.setReporter=function(a){Bb(this,7,a)};g.getAssignee=function(){return m(this,PH,8)};g.setAssignee=function(a){Bb(this,8,a)};g.clearAssignee=function(){return Bb(this,8)};
g.getVerifier=function(){return m(this,PH,9)};g.setVerifier=function(a){Bb(this,9,a)};g.clearVerifier=function(){return Bb(this,9)};g.getCcsList=function(){return rb(this,PH,10)};g.addHotlistIds=function(a,b){return ob(this,14,a,b)};g.getCustomFieldsList=function(){return rb(this,DH,15)};g.setInProd=function(a){mo(this,20,a)};g.getIsArchived=function(){return W(this,21)};g.setIsArchived=function(a){mo(this,21,a)};g.setIsDeleted=function(a){mo(this,23,a)};
g.setDeletionReason=function(a){sl(this,24,a)};g.getEntityStatus=function(){return m(this,BH,25)};g.getSloSnoozeUntil=function(){return m(this,sj,26)};g.setSloSnoozeUntil=function(a){Bb(this,26,a)};g.setPostmortemsList=function(a){jl(this,27,a)};g.getRetention=function(){return X(this,28,0)};g.setRetention=function(a){sl(this,28,a)};g.getEffort=function(){return m(this,ul,29)};g.setEffort=function(a){Bb(this,29,a)};var oCb=[18,37,31,15,34,41];pCb.prototype.toObject=function(){return uCb(void 0,this)};
var uCb=function(a,b){if(null!=b){var c={issueId:ej(b,2),issueState:vCb(a,b.getIssueState()),issueComment:gCb(a,m(b,fCb,4)),attachmentsList:Cb(b.getAttachmentsList(),IBb,a),createdTime:Vu(a,b.getCreatedTime()),modifiedTime:Vu(a,b.getModifiedTime()),majorModifiedTime:Vu(a,m(b,sj,35)),minorModifiedTime:Vu(a,m(b,sj,36)),lastModifier:QH(a,m(b,PH,14)),resolvedTime:Vu(a,b.getResolvedTime()),verifiedTime:Vu(a,b.getVerifiedTime()),userData:jCb(a,b.getUserData()),voteCount:ej(b,10),parentIssueId:ej(b,30),
parentIssueIdsList:n(jb(b,37)),incomingDependencyIdsList:n(jb(b,31)),accessLimit:dxb(a,b.getAccessLimit()),version:ej(b,12),etag:Fb(b.getEtag()),customFieldsList:Cb(b.getCustomFieldsList(),SBb,a),visibleFieldsList:Cb(b.getVisibleFieldsList(),TBb,a),sloStatus:wCb(a,b.getSloStatus()),sloId:ej(b,17),teamId:ej(b,33),retentionState:GBb(a,b.getRetentionState()),ancestorsMap:Eb(b.getAncestorsMap(),a,xCb),childIssueCount:ej(b,39),isArchived:W(b,40),relatedLinksList:Cb(b.getRelatedLinksList(),nCb,a)};a&&(c.$jspbMessageInstance=
b);return c}};rCb.prototype.toObject=function(){return wCb(void 0,this)};var wCb=function(a,b){if(null!=b){var c={assignmentBounds:yCb(a,b.getAssignmentBounds()),responseBounds:yCb(a,b.getResponseBounds()),closureBounds:yCb(a,b.getClosureBounds())};a&&(c.$jspbMessageInstance=b);return c}};SH.prototype.toObject=function(){return yCb(void 0,this)};
var yCb=function(a,b){if(null!=b){var c={startTime:Vu(a,b.getStartTime()),endTime:Vu(a,b.getEndTime()),targetTime:Vu(a,b.getTargetTime())};a&&(c.$jspbMessageInstance=b);return c}};ul.prototype.toObject=function(){return zCb(void 0,this)};var zCb=function(a,b){if(null!=b){var c={specId:ej(b,1),estimate:V(b,2),averageDays:zl(b,3),totalOpen:zl(b,4),totalComplete:zl(b,5)};a&&(c.$jspbMessageInstance=b);return c}},sCb=[1];lm.prototype.toObject=function(){return xCb(void 0,this)};
var xCb=function(a,b){if(null!=b){var c={sourceIssueIdsList:n(jb(b,1))};a&&(c.$jspbMessageInstance=b);return c}},tCb=[10,12,13,14,15,16,17,18,19,22,27];qCb.prototype.toObject=function(){return vCb(void 0,this)};
var vCb=function(a,b){if(null!=b){var c={componentId:ej(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:QH(a,b.getReporter()),assignee:QH(a,b.getAssignee()),verifier:QH(a,b.getVerifier()),ccsList:Cb(b.getCcsList(),QH,a),canonicalIssueId:ej(b,11),blockedByIssueIdsList:n(jb(b,12)),blockingIssueIdsList:n(jb(b,13)),hotlistIdsList:n(jb(b,14)),customFieldsList:Cb(b.getCustomFieldsList(),MBb,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:FBb(a,b.getEntityStatus()),sloSnoozeUntil:Vu(a,b.getSloSnoozeUntil()),postmortemsList:n(jb(b,27)),retention:X(b,28,0),effort:zCb(a,b.getEffort())};a&&(c.$jspbMessageInstance=b);return c}};
var ACb="TYPE_UNSPECIFIED BUG FEATURE_REQUEST CUSTOMER_ISSUE INTERNAL_CLEANUP PROCESS VULNERABILITY PRIVACY_ISSUE PROJECT FEATURE MILESTONE EPIC STORY TASK".split(" "),BCb=Gj({PRIORITY_UNSPECIFIED:0,P0:1,P1:2,P2:3,P3:4,P4:5}),CCb=Gj({SEVERITY_UNSPECIFIED:0,S0:1,S1:2,S2:3,S3:4,S4:5}),DCb=Gj({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}),ECb=Gj({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}),FCb=ECb.slice(0,7),GCb="PRIORITY_UNSPECIFIED P0 P1 P2 P3 P4".split(" ").slice(1),HCb="SEVERITY_UNSPECIFIED S0 S1 S2 S3 S4".split(" ").slice(1),ICb="STATUS_UNSPECIFIED NEW ASSIGNED ACCEPTED FIXED VERIFIED NOT_REPRODUCIBLE INTENDED_BEHAVIOR OBSOLETE INFEASIBLE DUPLICATE".split(" ").slice(1),JCb=ACb.slice(1),KCb=ACb.slice(1,8),TH={},LCb=(TH.PRIORITY_UNSPECIFIED="(Unspecified Priority)",
TH.P0="P0",TH.P1="P1",TH.P2="P2",TH.P3="P3",TH.P4="P4",TH),UH={},MCb=(UH.SEVERITY_UNSPECIFIED="(Unspecified Severity)",UH.S0="S0",UH.S1="S1",UH.S2="S2",UH.S3="S3",UH.S4="S4",UH),VH={},NCb=(VH.TYPE_UNSPECIFIED="(Unspecified Issue Type)",VH.BUG="Bug",VH.FEATURE_REQUEST="Feature Request",VH.CUSTOMER_ISSUE="Customer Issue",VH.INTERNAL_CLEANUP="Internal Cleanup",VH.PROCESS="Process",VH.VULNERABILITY="Vulnerability",VH.PRIVACY_ISSUE="Privacy Issue",VH.PROJECT="Project",VH.FEATURE="Feature",VH.MILESTONE=
"Milestone",VH.EPIC="Epic",VH.STORY="Story",VH.TASK="Task",VH),WH={},OCb=(WH.STATUS_UNSPECIFIED="(Unspecified Status)",WH.NEW="New",WH.ASSIGNED="Assigned",WH.ACCEPTED="Accepted",WH.FIXED="Fixed",WH.DUPLICATE="Duplicate",WH.VERIFIED="Fixed (Verified)",WH.NOT_REPRODUCIBLE="Won't Fix (Not reproducible)",WH.INTENDED_BEHAVIOR="Won't Fix (Intended behavior)",WH.OBSOLETE="Won't Fix (Obsolete)",WH.INFEASIBLE="Won't Fix (Infeasible)",WH),PCb=GCb.map(function(a){return LCb[a]}),QCb=HCb.map(function(a){return MCb[a]}),
RCb=JCb.map(function(a){return NCb[a]}),SCb=ICb.map(function(a){return OCb[a]}),TCb=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"]]),UCb=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 VCb=new Map(Fj(BCb,PCb)),WCb=new Map(Fj(CCb,QCb)),XCb=new Map(Fj(DCb,SCb)),YCb=new Map(Fj(ECb,RCb)),ZCb=new Set("PROJECT FEATURE MILESTONE EPIC STORY TASK".split(" ")),$Cb=$i("enableWtdmMvpUi")?JCb:KCb,aDb=$Cb.map(function(a){return{value:a,displayText:yBb(a),altText:UCb.get(a)}}),XH=function(){this.protoPriorities=BCb;this.protoSeverities=CCb;this.protoStatuses=DCb;this.protoIssueTypes=$i("enableWtdmMvpUi")?ECb:FCb;this.protoIssuePrioritiesEnumStrings=new Map(Fj(BCb,GCb));this.protoIssueSeveritiesEnumStrings=
new Map(Fj(CCb,HCb));this.protoIssueTypesEnumStrings=new Map(Fj(ECb,JCb));this.protoIssueStatusesEnumStrings=new Map(Fj(DCb,ICb));this.priorities=GCb;this.severities=HCb;this.issueTypes=KCb;this.editIssueTypes=$Cb;this.editIssueTypeChoices=aDb;Fj(JCb,RCb);this.protoIssuePrioritiesDisplayNames=VCb;this.protoIssueSeveritiesDisplayNames=WCb;this.protoIssueStatusesDisplayNames=XCb;this.protoIssueTypesDisplayNames=YCb;this.protoIssueTypesShortDescriptions=TCb;this.issueTypesShortDescriptions=UCb;this.supportedTimeZones=
[{name:"Local time",id:""},{name:"UTC",id:"UTC"},{name:"America/Los_Angeles",id:"America/Los_Angeles"}]};XH.\u0275fac=function(a){return new (a||XH)};XH.\u0275prov=dc({token:XH,factory:XH.\u0275fac,providedIn:"root"});
var YH=function(){this._inset=this._vertical=!1};li.Object.defineProperties(YH.prototype,{vertical:{configurable:!0,enumerable:!0,get:function(){return this._vertical},set:function(a){this._vertical=Vg(a)}},inset:{configurable:!0,enumerable:!0,get:function(){return this._inset},set:function(a){this._inset=Vg(a)}}});YH.\u0275fac=function(a){return new (a||YH)};
YH.\u0275cmp=w({type:YH,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(a,b){a&2&&(ge("aria-orientation",b.vertical?"vertical":"horizontal"),le("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 ZH=function(a,b){this.constants=a;this.activeSession=b;this.onBulkEdit=new Rw;this.onQuickBulkEdit=new Rw;this.onBulkEditIssueRelation=new Rw;this.onBulkMarkIssueRead=new Rw;this.isAnonymous=this.activeSession.isAnonymous();this.enableBulkEditParentChildRelationship=xH(this.activeSession,"enableBulkEditParentChildRelationship")};ZH.prototype.bulkEdit=function(a){this.onBulkEdit.emit(a)};ZH.prototype.quickBulkEdit=function(a,b){this.onQuickBulkEdit.emit({field:a,newValue:b})};
ZH.prototype.bulkEditIssueRelation=function(a,b){this.onBulkEditIssueRelation.emit({issueRelation:a,isMarking:void 0===b?!0:b})};ZH.prototype.bulkMarkIssueRead=function(){this.onBulkMarkIssueRead.emit()};ZH.\u0275fac=function(a){return new (a||ZH)(D(XH),D(vH))};
ZH.\u0275cmp=w({type:ZH,selectors:[["b-app-bar-bulk-edit-menus"]],inputs:{readStatePrompt:"readStatePrompt"},outputs:{onBulkEdit:"onBulkEdit",onQuickBulkEdit:"onQuickBulkEdit",onBulkEditIssueRelation:"onBulkEditIssueRelation",onBulkMarkIssueRead:"onBulkMarkIssueRead"},decls:96,vars:20,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"],["mat-menu-item","",3,"click",4,"ngIf"],["emailMenu","matMenu"],["mat-menu-item","",3,"matTooltip","click"]],template:function(a,b){a&1&&
(F(0,"b-button-group")(1,"button",0)(2,"span"),O(3,"Edit"),G(),H(4,"b-icon",1),G(),F(5,"button",2),J("click",function(){return b.bulkMarkIssueRead()}),O(6),G(),F(7,"button",0)(8,"span"),O(9,"Link"),G(),H(10,"b-icon",1),G(),F(11,"button",0)(12,"span"),O(13,"Email"),G(),H(14,"b-icon",1),G()(),F(15,"mat-menu",null,3)(17,"button",4),J("click",function(){return b.bulkEdit("ASSIGNEE")}),O(18,"Assignee"),G(),F(19,"button",4),J("click",function(){return b.bulkEdit("COMPONENT")}),O(20,"Component"),G(),F(21,
"button",5),O(22,"Priority"),G(),F(23,"button",5),O(24,"Severity"),G(),F(25,"button",5),O(26,"Status"),G(),F(27,"button",5),O(28,"Type"),G(),F(29,"button",4),J("click",function(){return b.bulkEdit("VERIFIER")}),O(30,"Verifier"),G(),F(31,"button",4),J("click",function(){return b.bulkEdit("REPORTER")}),O(32,"Reporter"),G(),F(33,"button",4),J("click",function(){return b.bulkEdit("CHANGELIST")}),O(34,"Changelist"),G(),F(35,"button",4),J("click",function(){return b.bulkEdit("CUSTOM_FIELDS")}),O(36,"Custom Fields"),
G(),F(37,"button",5),O(38," Archival state "),G(),F(39,"button",4),J("click",function(){return b.bulkEdit("FOUND_IN")}),O(40,"Found In"),G(),F(41,"button",4),J("click",function(){return b.bulkEdit("VERIFIED_IN")}),O(42,"Verified In"),G(),F(43,"button",4),J("click",function(){return b.bulkEdit("TARGETED_TO")}),O(44,"Targeted To"),G(),F(45,"button",5),O(46,"In Prod"),G(),H(47,"mat-divider"),F(48,"button",4),J("click",function(){return b.bulkEdit("COMMENT")}),O(49,"Add Comment"),G()(),F(50,"mat-menu",
null,6),M(52,Rna,2,1,"button",7),G(),F(53,"mat-menu",null,8),M(55,Sna,2,1,"button",7),G(),F(56,"mat-menu",null,9),M(58,Tna,2,1,"button",7),G(),F(59,"mat-menu",null,10),M(61,Una,2,2,"button",11),G(),F(62,"mat-menu",null,12)(64,"button",4),J("click",function(){return b.quickBulkEdit("IS_ARCHIVED",!0)}),O(65,"Archive"),G(),F(66,"button",4),J("click",function(){return b.quickBulkEdit("IS_ARCHIVED",!1)}),O(67,"Unarchive"),G()(),F(68,"mat-menu",null,13)(70,"button",4),J("click",function(){return b.quickBulkEdit("IN_PROD",
!0)}),O(71,"In Prod"),G(),F(72,"button",4),J("click",function(){return b.quickBulkEdit("IN_PROD",!1)}),O(73,"Not in Prod"),G()(),F(74,"mat-menu",null,14)(76,"button",4),J("click",function(){return b.bulkEditIssueRelation("BLOCKED_BY",!0)}),O(77,"Mark as Blocked By"),G(),F(78,"button",4),J("click",function(){return b.bulkEditIssueRelation("BLOCKING",!0)}),O(79,"Mark as Blocking"),G(),M(80,Vna,2,0,"button",15),F(81,"button",4),J("click",function(){return b.bulkEditIssueRelation("DUPLICATE")}),O(82,
"Duplicate"),G(),F(83,"button",4),J("click",function(){return b.bulkEditIssueRelation("BLOCKED_BY",!1)}),O(84,"Unmark as Blocked By"),G(),F(85,"button",4),J("click",function(){return b.bulkEditIssueRelation("BLOCKING",!1)}),O(86,"Unmark as Blocking"),G(),M(87,Wna,2,0,"button",15),G(),F(88,"mat-menu",null,16)(90,"button",4),J("click",function(){return b.quickBulkEdit("CC",!0)}),O(91,"CC me"),G(),F(92,"button",4),J("click",function(){return b.quickBulkEdit("CC",!1)}),O(93,"Un-CC me"),G(),F(94,"button",
4),J("click",function(){return b.bulkEdit("CC")}),O(95,"Edit CC"),G()());if(a&2){var c=Ce(16),d=Ce(51),e=Ce(54),f=Ce(57),h=Ce(60),k=Ce(63),q=Ce(69),v=Ce(75),y=Ce(89);B(1);C("disabled",b.isAnonymous)("matMenuTriggerFor",c);B(4);C("disabled",b.isAnonymous);B(1);De(" ",b.readStatePrompt," ");B(1);C("disabled",b.isAnonymous)("matMenuTriggerFor",v);B(4);C("disabled",b.isAnonymous)("matMenuTriggerFor",y);B(10);C("matMenuTriggerFor",d);B(2);C("matMenuTriggerFor",e);B(2);C("matMenuTriggerFor",f);B(2);C("matMenuTriggerFor",
h);B(10);C("matMenuTriggerFor",k);B(8);C("matMenuTriggerFor",q);B(7);C("ngForOf",b.constants.protoPriorities);B(3);C("ngForOf",b.constants.protoSeverities);B(3);C("ngForOf",b.constants.protoStatuses);B(3);C("ngForOf",b.constants.protoIssueTypes);B(19);C("ngIf",b.enableBulkEditParentChildRelationship);B(7);C("ngIf",b.enableBulkEditParentChildRelationship)}},dependencies:[iF,gF,lF,Gx,Cx,zH,nH,BB,YH,sF],encapsulation:2,changeDetection:0});
var $H=function(a){this.activeSession=a;this.showFlagIssuesAsSpam=this.showExportCsv=!1;this.exportCsvClicked=new Rw;this.flagAsSpamClicked=new Rw;this.isAnonymous=this.activeSession.isAnonymous()};$H.\u0275fac=function(a){return new (a||$H)(D(vH))};
$H.\u0275cmp=w({type:$H,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&&
M(0,Zna,9,4,"ng-container",0);a&2&&C("ngIf",b.showExportCsv||b.showFlagIssuesAsSpam)},dependencies:[iF,gF,lF,Cx,zH,BB],encapsulation:2,changeDetection:0});
var aI=function(){};aI.\u0275fac=function(a){return new (a||aI)};aI.\u0275mod=uc({type:aI});aI.\u0275inj=gc({imports:[Wx]});
var bI=function(){};bI.\u0275fac=function(a){return new (a||bI)};bI.\u0275mod=uc({type:bI});bI.\u0275inj=gc({imports:[Wx,wF]});
var cI=function(){};cI.\u0275fac=function(a){return new (a||cI)};cI.\u0275mod=uc({type:cI});cI.\u0275inj=gc({imports:[gB,gB]});
var dI=function(){};dI.\u0275fac=function(a){return new (a||dI)};dI.\u0275mod=uc({type:dI});dI.\u0275inj=gc({imports:[mF,Wx,bI,aI,BG,cI,lH]});
var eI=function(a,b,c){var d=this;this.activeSession=a;this.connectionChecker=b;this.ssoInterceptorState=c;this.notifyUserAndWaitForGoodConnection$=new S.Observable(function(e){d.ssoInterceptorState.showRefreshSso$.next(!0);var f=d.watchForRestoredConnection$.subscribe(e),h=new S.ReplaySubject(1);d.watchForRestoredConnection$.pipe(cg(h)).subscribe(function(){d.ssoInterceptorState.showRefreshSso$.next(!1)});return function(){h.next();f.unsubscribe()}});this.watchForRestoredConnection$=(0,S.fromEvent)(window,
"focus").pipe(bg(function(){return d.connectionChecker.ok$}),rf(function(e){return e}),Qf(),R(function(){}),Yf())};eI.prototype.intercept=function(a,b){return xH(this.activeSession,"enableRefreshSsoPopup")&&a.url&&a.url.startsWith("action/")?bDb(this,b,a):b.handle(a)};
var bDb=function(a,b,c){return new S.Observable(function(d){var e=b.handle(c).subscribe({next:function(h){d.next(h)},complete:function(){d.complete()},error:function(h){cDb(a,b,c,h).pipe(cg(f)).subscribe(d)}}),f=new S.ReplaySubject(1);return function(){f.next();e.unsubscribe()}})},cDb=function(a,b,c,d){return 403===d.status||404===d.status||429===d.status?(0,S.throwError)(d):a.connectionChecker.ok$.pipe(bg(function(e){return e?(0,S.throwError)(d):a.notifyUserAndWaitForGoodConnection$.pipe(bg(function(){return b.handle(c)}))}))};
eI.\u0275fac=function(a){return new (a||eI)(t(vH),t(fI),t(gI))};eI.\u0275prov=dc({token:eI,factory:eI.\u0275fac,providedIn:"root"});var gI=function(){this.showRefreshSso$=new S.BehaviorSubject(!1)};gI.\u0275fac=function(a){return new (a||gI)};gI.\u0275prov=dc({token:gI,factory:gI.\u0275fac,providedIn:"root"});
var fI=function(a){var b=this;this.ngZone=a;this.ok$=new S.Observable(function(c){var d=wi("action/yes",function(){b.ngZone.run(function(){d.isSuccess()?c.next("yes"===d.getResponseText()):c.next(!1);c.complete()})});return function(){d.dispose()}})};fI.\u0275fac=function(a){return new (a||fI)(t(jg))};fI.\u0275prov=dc({token:fI,factory:fI.\u0275fac,providedIn:"root"});var dDb={provide:UE,useClass:eI,multi:!0};
var eDb=function(a,b){return[a,b]},fDb=[[["b-callout-body"]],[["b-callout-actions"]]],hI=function(){this.messageType="info";this.format="default"};hI.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"}};hI.\u0275fac=function(a){return new (a||hI)};
hI.\u0275cmp=w({type:hI,selectors:[["b-callout"]],hostVars:5,hostBindings:function(a,b){a&2&&me(Je(2,eDb,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&&(xe(fDb),F(0,"div",0),H(1,"mat-icon",1),F(2,"div",2),ye(3),G(),F(4,"div",3),ye(5,1),G()());a&2&&(B(1),
C("svgIcon",b.getIconName()))},dependencies:[dF],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 iI=function(){};iI.\u0275fac=function(a){return new (a||iI)};iI.\u0275dir=w({type:iI,selectors:[["b-callout-body"],["b-callout-actions"]]});
var jI=function(a,b){this.activeSession=a;this.isAnonymous=this.activeSession.isAnonymous();this.showRefreshSsoMessage$=b.showRefreshSso$};jI.\u0275fac=function(a){return new (a||jI)(D(vH),D(gI))};
jI.\u0275cmp=w({type:jI,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&&(M(0,eoa,7,4,"b-callout",0),P(1,"async"));a&2&&C("ngIf",Q(1,1,b.showRefreshSsoMessage$))},dependencies:[Cx,hI,iI,BB,Px],encapsulation:2,changeDetection:0});
var foa=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
var gDb=Symbol("hc"),hDb=Symbol("ic"),kI=Symbol("jc"),lI=function(){};lI.prototype.schedule=function(a,b){b=void 0===b?0:b;var c=Kj(),d=c.promise;b=setTimeout(function(){try{var e=a()}catch(f){c.reject(f);d[kI]=!0;return}c.resolve(e);d[kI]=!0},b);d[gDb]=b;d[hDb]=c.reject;d[kI]=!1;return c.promise};lI.prototype.cancel=function(a){var b=a[gDb];if(null==b||a[kI])return!1;clearTimeout(b);var c;null==(c=a[hDb])||c.call(a,Error("kc"));return a[kI]=!0};lI.\u0275fac=function(a){return new (a||lI)};
lI.\u0275prov=dc({token:lI,factory:lI.\u0275fac,providedIn:"root"});
var mI=function(a){this.timeout=a};mI.prototype.adapt=function(a){return new iDb(this.timeout,a)};mI.\u0275fac=function(a){return new (a||mI)(t(lI))};mI.\u0275prov=dc({token:mI,factory:mI.\u0275fac,providedIn:"root"});var iDb=function(a,b){this.timeout=a;this.bulkGet=b;this.batchedInputs=[[]];this.batchedDeferreds=[[]];this.isBatchScheduled=!1};
iDb.prototype.get=function(a){var b=Kj(),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||jDb(this);return b.promise};
var jDb=function(a){a.isBatchScheduled=!0;a.timeout.schedule(function(){for(var b={},c=0;c<a.batchedInputs.length;b={$jscomp$loop$prop$batchedDeferred$1643:b.$jscomp$loop$prop$batchedDeferred$1643},c++){var d=a.batchedInputs[c];b.$jscomp$loop$prop$batchedDeferred$1643=a.batchedDeferreds[c];a.bulkGet(d).then(function(e){return function(f){for(var h=0;h<e.$jscomp$loop$prop$batchedDeferred$1643.length;h++)e.$jscomp$loop$prop$batchedDeferred$1643[h].resolve(f[h])}}(b),function(e){return function(f){for(var h=
r(e.$jscomp$loop$prop$batchedDeferred$1643),k=h.next();!k.done;k=h.next())k.value.reject(f)}}(b))}a.batchedInputs=[[]];a.batchedDeferreds=[[]];a.isBatchScheduled=!1})};
var Lj=function(a){Z.call(this,a)};U(Lj,Z);Lj.prototype.toObject=function(){return kDb(void 0,this)};var kDb=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 nI=function(a){this.http=a};g=nI.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(R(joa(b.responseConstructor)))};nI.\u0275fac=function(a){return new (a||nI)(t(TE))};nI.\u0275prov=dc({token:nI,factory:nI.\u0275fac,providedIn:"root"});var oI=function(a){this.jspbExecutor=a};oI.prototype.get=function(a){return(0,S.firstValueFrom)(this.jspbExecutor.get(a))};
oI.prototype.delete=function(a){return(0,S.firstValueFrom)(this.jspbExecutor.delete(a))};oI.prototype.post=function(a){return(0,S.firstValueFrom)(this.jspbExecutor.post(a))};oI.prototype.put=function(a){return(0,S.firstValueFrom)(this.jspbExecutor.put(a))};oI.\u0275fac=function(a){return new (a||oI)(t(nI))};oI.\u0275prov=dc({token:oI,factory:oI.\u0275fac,providedIn:"root"});
var gt={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"},lDb={ISSUE_ID:"issueId",COMPONENT_ID:"componentId",GROUP_ID:"groupId",HOTLIST_ID:"hotlistId",SAVED_SEARCH_ID:"savedSearchId",SLO_ID:"sloId",TEAM_ID:"teamId"},fo=function(a){return"hotlists/"+a};
var mDb=function(a){Z.call(this,a)};U(mDb,Z);mDb.prototype.toObject=function(){var a=null!=this?{principalTypeInfoMap:Eb(Zi(this,1,Lj),void 0,kDb)}:void 0;return a};mDb.messageId="b.PrincipalTypeInfoBatchResponse";
var pI=function(a,b){this.principalResources=a;this.principalTypeGetter=b.adapt(nDb(this,!1));this.principalTypeWithDetailGetter=b.adapt(nDb(this,!0))},nDb=function(a,b){return function(c){return oDb(a.principalResources,c,b).then(function(d){return hoa(c,d)})}};pI.prototype.get=function(a){return qI(this,a,!1)};var qI=function(a,b,c){return(c?a.principalTypeWithDetailGetter.get(b):a.principalTypeGetter.get(b)).then(ioa)};pI.\u0275fac=function(a){return new (a||pI)(t(rI),t(mI))};
pI.\u0275prov=dc({token:pI,factory:pI.\u0275fac,providedIn:"root"});var rI=function(a){this.executor=a},oDb=function(a,b,c){var d={};d.email=Ej(b,Dj);c&&(d.includeDetailedUserType="true");return a.executor.get({url:"action/principal_types",options:{params:d},responseConstructor:mDb}).then(goa).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 v=new Lj;v=l(v,1,q.principalType);q=l(v,2,q.detailedUserType)}else q=null;f[k]=q}return f})};
rI.\u0275fac=function(a){return new (a||rI)(t(oI))};rI.\u0275prov=dc({token:rI,factory:rI.\u0275fac,providedIn:"root"});
var sI=function(a,b){this.cdr=a;this.zone=b;this.destroyed=!1};sI.prototype.ngOnDestroy=function(){this.destroyed=!0};sI.prototype.detectChanges=function(){var a=this;this.destroyed||this.zone.run(function(){a.cdr.detectChanges()})};sI.prototype.markForCheck=function(){var a=this;this.destroyed||this.zone.run(function(){a.cdr.markForCheck()})};sI.\u0275fac=function(a){return new (a||sI)(t(vx),t(jg))};sI.\u0275prov=dc({token:sI,factory:sI.\u0275fac});
var tI=function(a,b,c){var d=this;this.session=a;this.principalTypes=b;this.cdr=c;this.showHiringBanner=!1;xH(this.session,"weAreHiring")&&qI(this.principalTypes,this.session.getUserEmail(),!0).then(function(e){d.showHiringBanner=1===X(e,2,0);d.cdr.detectChanges()}).catch(function(){})};tI.\u0275fac=function(a){return new (a||tI)(D(vH),D(pI),D(sI,2))};
tI.\u0275cmp=w({type:tI,selectors:[["b-hiring-banner"]],features:[Ge([sI])],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&&M(0,koa,2,0,"a",0);a&2&&C("ngIf",b.showHiringBanner)},dependencies:[Cx],styles:[".hiring-banner[_ngcontent-%COMP%]{background:#a02160;color:#fff!important;display:block;font-size:.6875rem;left:50px;overflow:hidden;padding-bottom:3px;position:absolute;text-align:center;top:-85px;-webkit-transform:rotate(-45deg) translate(-100%);transform:rotate(-45deg) translate(-100%);-webkit-transform-origin:0 0;transform-origin:0 0;width:10em;z-index:1000}"],
changeDetection:0});var uI=function(){};uI.\u0275fac=function(a){return new (a||uI)};uI.\u0275mod=uc({type:uI});uI.\u0275inj=gc({imports:[Wx]});
var Mj=function(a,b){this.char=a;this.modifiers=b};
var pDb={category:"Edit Issue Page",keys:[Nj("r")],displayAs:"Shift + r",description:"Refresh"},vI={ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE:{category:"Edit Issue Page",keys:[Nj("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:[Oj("p","0"),Oj("p","1"),Oj("p","2"),Oj("p","3"),Oj("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:pDb,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,T,Y){L.addEventListener?L.addEventListener(T,Y,!1):L.attachEvent("on"+T,Y)}function e(L){if("keypress"==L.type){var T=String.fromCharCode(L.which);L.shiftKey||(T=T.toLowerCase());return T}return v[L.which]?v[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,T){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]);T&&"keypress"!=T&&E[ha]&&(ha=E[ha],ka.push("shift"));f(ha)&&ka.push(ha)}L=ha;Y=T;if(!Y){if(!N){N={};for(var ra in v)95<ra&&112>ra||v.hasOwnProperty(ra)&&(N[v[ra]]=ra)}Y=N[L]?"keydown":"keypress"}"keypress"==Y&&ka.length&&(Y="keydown");return{key:ha,modifiers:ka,action:Y}}function k(L,T){return null===L||L===b?!1:L===T?!0:k(L.parentNode,T)}function q(L){function T(va){va=va||{};var Ca=!1,Ia;for(Ia in Ba)va[Ia]?Ca=!0:Ba[Ia]=0;Ca||(Tb=!1)}function Y(va,Ca,Ia,Xa,$a,jc){var Va,Ya,Sa=
[],vb=Ia.type;if(!Ja._callbacks[va])return[];"keyup"==vb&&f(va)&&(Ca=[va]);for(Va=0;Va<Ja._callbacks[va].length;++Va)if(Ya=Ja._callbacks[va][Va],(Xa||!Ya.seq||Ba[Ya.seq]==Ya.level)&&vb==Ya.action){var eb;(eb="keypress"==vb&&!Ia.metaKey&&!Ia.ctrlKey)||(eb=Ya.modifiers,eb=Ca.sort().join(",")===eb.sort().join(","));eb&&(eb=Xa&&Ya.seq==Xa&&Ya.level==jc,(!Xa&&Ya.combo==$a||eb)&&Ja._callbacks[va].splice(Va,1),Sa.push(Ya))}return Sa}function ka(va,Ca,Ia,Xa){Ja.stopCallback(Ca,Ca.target||Ca.srcElement,Ia,
Xa)||!1!==va(Ca,Ia)||(Ca.preventDefault?Ca.preventDefault():Ca.returnValue=!1,Ca.stopPropagation?Ca.stopPropagation():Ca.cancelBubble=!0)}function ha(va){"number"!==typeof va.which&&(va.which=va.keyCode);var Ca=e(va);if(Ca)if("keyup"==va.type&&hb===Ca)hb=!1;else{var Ia=Ja,Xa=Ia.handleKey,$a=[];va.shiftKey&&$a.push("shift");va.altKey&&$a.push("alt");va.ctrlKey&&$a.push("ctrl");va.metaKey&&$a.push("meta");Xa.call(Ia,Ca,$a,va)}}function ra(va,Ca,Ia,Xa){function $a(Sa){return function(){Tb=Sa;++Ba[va];
clearTimeout(La);La=setTimeout(T,1E3)}}function jc(Sa){ka(Ia,Sa,va);"keyup"!==Xa&&(hb=e(Sa));setTimeout(T,10)}for(var Va=Ba[va]=0;Va<Ca.length;++Va){var Ya=Va+1===Ca.length?jc:$a(Xa||h(Ca[Va+1]).action);Da(Ca[Va],Ya,Xa,va,Va)}}function Da(va,Ca,Ia,Xa,$a){Ja._directMap[va+":"+Ia]=Ca;va=va.replace(/\s+/g," ");var jc=va.split(" ");1<jc.length?ra(va,jc,Ca,Ia):(Ia=h(va,Ia),Ja._callbacks[Ia.key]=Ja._callbacks[Ia.key]||[],Y(Ia.key,Ia.modifiers,{type:Ia.action},Xa,va,$a),Ja._callbacks[Ia.key][Xa?"unshift":
"push"]({callback:Ca,modifiers:Ia.modifiers,action:Ia.action,seq:Xa,level:$a,combo:va}))}var Ja=this;L=L||b;if(!(Ja instanceof q))return new q(L);Ja.target=L;Ja._callbacks={};Ja._directMap={};var Ba={},La,hb=!1,fb=!1,Tb=!1;Ja._handleKey=function(va,Ca,Ia){var Xa=Y(va,Ca,Ia),$a;Ca={};var jc=0,Va=!1;for($a=0;$a<Xa.length;++$a)Xa[$a].seq&&(jc=Math.max(jc,Xa[$a].level));for($a=0;$a<Xa.length;++$a)Xa[$a].seq?Xa[$a].level==jc&&(Va=!0,Ca[Xa[$a].seq]=1,ka(Xa[$a].callback,Ia,Xa[$a].combo,Xa[$a].seq)):Va||
ka(Xa[$a].callback,Ia,Xa[$a].combo);Xa="keypress"==Ia.type&&fb;Ia.type!=Tb||f(va)||Xa||T(Ca);fb=Va&&"keydown"==Ia.type};Ja._bindMultiple=function(va,Ca,Ia){for(var Xa=0;Xa<va.length;++Xa)Da(va[Xa],Ca,Ia)};d(L,"keypress",ha);d(L,"keydown",ha);d(L,"keyup",ha)}if(a){var v={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)v[111+c]="f"+c;for(c=0;9>=c;++c)v[c+96]=c;q.prototype.bind=
function(L,T,Y){L=L instanceof Array?L:[L];this._bindMultiple.call(this,L,T,Y);return this};q.prototype.unbind=function(L,T){return this.bind.call(this,L,function(){},T)};q.prototype.trigger=function(L,T){if(this._directMap[L+":"+T])this._directMap[L+":"+T]({},L);return this};q.prototype.reset=function(){this._callbacks={};this._directMap={};return this};q.prototype.stopCallback=function(L,T){return-1<(" "+T.className+" ").indexOf(" mousetrap ")||k(T,this.target)?!1:"INPUT"==T.tagName||"SELECT"==
T.tagName||"TEXTAREA"==T.tagName||T.isContentEditable};q.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)};q.addKeycodes=function(L){for(var T in L)L.hasOwnProperty(T)&&(v[T]=L[T]);N=null};q.init=function(){var L=q(b),T;for(T in L)"_"!==T.charAt(0)&&(q[T]=function(Y){return function(){return L[Y].apply(L,arguments)}}(T))};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 wI=function(){this.destroyed$=new S.ReplaySubject(1);this.subscriptions=new S.Subscription};wI.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete();this.subscriptions.unsubscribe()};wI.\u0275fac=function(a){return new (a||wI)};wI.\u0275dir=w({type:wI});
var xI=function(a,b){this.id=a;this.url=b},yI=function(a,b,c,d){c=void 0===c?"imperative":c;d=void 0===d?null:d;xI.call(this,a,b);this.type=0;this.navigationTrigger=c;this.restoredState=d};U(yI,xI);yI.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"};var zI=function(a,b,c){xI.call(this,a,b);this.urlAfterRedirects=c;this.type=1};U(zI,xI);
zI.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"};var AI=function(a,b,c){xI.call(this,a,b);this.reason=c;this.type=2};U(AI,xI);AI.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"};var qDb=function(a,b,c){xI.call(this,a,b);this.error=c;this.type=3};U(qDb,xI);
qDb.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"};var rDb=function(a,b,c,d){xI.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=4};U(rDb,xI);rDb.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};var sDb=function(a,b,c,d){xI.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=7};U(sDb,xI);
sDb.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};var tDb=function(a,b,c,d,e){xI.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.shouldActivate=e;this.type=8};U(tDb,xI);
tDb.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"};var uDb=function(a,b,c,d){xI.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=5};U(uDb,xI);uDb.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};
var vDb=function(a,b,c,d){xI.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=6};U(vDb,xI);vDb.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};var wDb=function(a){this.route=a;this.type=9};wDb.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"};var xDb=function(a){this.route=a;this.type=10};
xDb.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"};var opa=function(a){this.snapshot=a;this.type=11};opa.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var yDb=function(a){this.snapshot=a;this.type=12};yDb.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};
var Dk=function(a){this.snapshot=a;this.type=13};Dk.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var zDb=function(a){this.snapshot=a;this.type=14};zDb.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var ADb=function(a,b){this.position=a;this.anchor=b;this.type=15};
ADb.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"};
var BI=function(a){this.params=a||{}};BI.prototype.has=function(a){return Object.prototype.hasOwnProperty.call(this.params,a)};BI.prototype.get=function(a){return this.has(a)?(a=this.params[a],Array.isArray(a)?a[0]:a):null};BI.prototype.getAll=function(a){return this.has(a)?(a=this.params[a],Array.isArray(a)?a:[a]):[]};li.Object.defineProperties(BI.prototype,{keys:{configurable:!0,enumerable:!0,get:function(){return Object.keys(this.params)}}});
var toa={exact:xoa,subset:Aoa},uoa={exact:woa,subset:yoa,ignored:function(){return!0}},jk=function(a,b,c){this.root=a;this.queryParams=b;this.fragment=c};jk.prototype.toString=function(){return BDb.serialize(this)};li.Object.defineProperties(jk.prototype,{queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap||(this._queryParamMap=new BI(this.queryParams));return this._queryParamMap}}});
var kk=function(a,b){var c=this;this.segments=a;this.children=b;this.parent=null;Qj(b,function(d){return d.parent=c})};kk.prototype.hasChildren=function(){return 0<this.numberOfChildren};kk.prototype.toString=function(){return Vj(this)};li.Object.defineProperties(kk.prototype,{numberOfChildren:{configurable:!0,enumerable:!0,get:function(){return Object.keys(this.children).length}}});var ek=function(a,b){this.path=a;this.parameters=b};ek.prototype.toString=function(){return Uj(this.path)+Doa(this.parameters)};
var CDb=function(){},DDb=function(){};DDb.prototype.parse=function(a){a=new EDb(a);CI(a,"/");var b=""===a.remaining||a.remaining.startsWith("?")||a.remaining.startsWith("#")?new kk([],{}):new kk([],FDb(a));return new jk(b,a.parseQueryParams(),CI(a,"#")?decodeURIComponent(a.remaining):null)};DDb.prototype.serialize=function(a){var b="/"+Wj(a.root,!0),c=Foa(a.queryParams);a="string"===typeof a.fragment?"#"+encodeURI(a.fragment):"";return b+c+a};
var BDb=new DDb,Goa=/^[^\/()?;=#]+/,GDb=/^[^=?&#]+/,HDb=/^[^&#]+/,EDb=function(a){this.remaining=this.url=a};
EDb.prototype.parseQueryParams=function(){var a={};if(CI(this,"?")){do{var b,c=this.remaining.match(GDb);if(b=c?c[0]:""){this.capture(b);c="";if(CI(this,"=")){var d;if(d=(d=this.remaining.match(HDb))?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(CI(this,"&"))}return a};
var FDb=function(a){if(""===a.remaining)return{};CI(a,"/");var b=[];for(a.remaining.startsWith("(")||b.push(IDb(a));a.remaining.startsWith("/")&&!a.remaining.startsWith("//")&&!a.remaining.startsWith("/(");)a.capture("/"),b.push(IDb(a));var c={};a.remaining.startsWith("/(")&&(a.capture("/"),c=JDb(a,!0));var d={};a.remaining.startsWith("(")&&(d=JDb(a,!1));if(0<b.length||0<Object.keys(c).length)d.primary=new kk(b,c);return d},IDb=function(a){var b=Yj(a.remaining);if(""===b&&a.remaining.startsWith(";"))throw Error("nc`"+
a.remaining);a.capture(b);b=decodeURIComponent(b);for(var c={};CI(a,";");){var d=a,e=Yj(d.remaining);if(e){d.capture(e);var f="";if(CI(d,"=")){var h=Yj(d.remaining);h&&(f=h,d.capture(f))}c[decodeURIComponent(e)]=decodeURIComponent(f)}}return new ek(b,c)},JDb=function(a,b){var c={};for(a.capture("(");!CI(a,")")&&0<a.remaining.length;){var d=Yj(a.remaining),e=a.remaining[d.length];if("/"!==e&&")"!==e&&";"!==e)throw Error("oc`"+a.url);e=void 0;-1<d.indexOf(":")?(e=d.slice(0,d.indexOf(":")),a.capture(e),
a.capture(":")):b&&(e="primary");d=FDb(a);c[e]=1===Object.keys(d).length?d.primary:new kk([],d);CI(a,"//")}return c},CI=function(a,b){return a.remaining.startsWith(b)?(a.remaining=a.remaining.substring(b.length),!0):!1};EDb.prototype.capture=function(a){if(!CI(this,a))throw Error("pc`"+a);};
var DI=function(a){this._root=a};DI.prototype.parent=function(a){a=this.pathFromRoot(a);return 1<a.length?a[a.length-2]:null};DI.prototype.children=function(a){return(a=Hoa(a,this._root))?a.children.map(function(b){return b.value}):[]};DI.prototype.firstChild=function(a){return(a=Hoa(a,this._root))&&0<a.children.length?a.children[0].value:null};DI.prototype.pathFromRoot=function(a){return Ioa(a,this._root).map(function(b){return b.value})};
li.Object.defineProperties(DI.prototype,{root:{configurable:!0,enumerable:!0,get:function(){return this._root.value}}});var bk=function(a,b){this.value=a;this.children=b};bk.prototype.toString=function(){return"TreeNode("+this.value+")"};
var fk=function(a,b){this._root=a;this.snapshot=b;Moa(this,a)};U(fk,DI);fk.prototype.toString=function(){return this.snapshot.toString()};var dk=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};dk.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"};
li.Object.defineProperties(dk.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(R(function(a){return new BI(a)})));return this._paramMap}},queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(R(function(a){return new BI(a)})));return this._queryParamMap}}});
var ck=function(a,b,c,d,e,f,h,k,q,v,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=v;this._correctedLastPathIndex=null!=E?E:v;this._resolve=y};ck.prototype.toString=function(){return"Route(url:'"+this.url.map(function(a){return a.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"};
li.Object.defineProperties(ck.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 BI(this.params));return this._paramMap}},queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap||(this._queryParamMap=new BI(this.queryParams));return this._queryParamMap}}});var ak=function(a,b){this._root=b;this.url=a;Moa(this,b)};U(ak,DI);ak.prototype.toString=function(){return Noa(this._root)};
var Uoa=function(a,b,c){this.isAbsolute=a;this.numberOfDoubleDots=b;this.commands=c;if(a&&0<c.length&&hk(c[0]))throw Error("qc");if((a=c.find(ik))&&a!==(0<c.length?c[c.length-1]:null))throw Error("rc");},KDb=function(a,b,c){this.segmentGroup=a;this.processChildren=b;this.index=c};
var LDb=function(){this.injector=this.resolver=this.route=this.outlet=null;this.children=new EI;this.attachRef=null},EI=function(){this.contexts=new Map},MDb=function(a){var b=a.contexts;a.contexts=new Map;return b},NDb=function(a,b){var c=a.getContext(b);c||(c=new LDb,a.contexts.set(b,c));return c};EI.prototype.getContext=function(a){return this.contexts.get(a)||null};
var FI=function(a,b,c,d,e){this.parentContexts=a;this.location=b;this.changeDetector=d;this.environmentInjector=e;this._activatedRoute=this.activated=null;this.activateEvents=new Rw;this.deactivateEvents=new Rw;this.attachEvents=new Rw;this.detachEvents=new Rw;b=this.name=c||"primary";c=NDb(a,b);c.outlet=this;a.contexts.set(b,c)};g=FI.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):ODb(this,a.route,a.injector))}};g.detach=function(){if(!this.activated)throw Error("tc");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 ODb=function(a,b,c){if(a.isActivated)throw Error("uc");a._activatedRoute=b;var d=a.location,e=b._futureSnapshot.component,f=NDb(a.parentContexts,a.name).children;b=new PDb(b,f,d.injector);c&&c.resolveComponentFactory?(c=c.resolveComponentFactory(e),a.activated=d.createComponent(c,d.length,b)):a.activated=d.createComponent(e,{index:d.length,injector:b,environmentInjector:null!=c?c:a.environmentInjector});a.changeDetector.markForCheck();a.activateEvents.emit(a.activated.instance)};
li.Object.defineProperties(FI.prototype,{isActivated:{configurable:!0,enumerable:!0,get:function(){return!!this.activated}},component:{configurable:!0,enumerable:!0,get:function(){if(!this.activated)throw Error("tc");return this.activated.instance}},activatedRoute:{configurable:!0,enumerable:!0,get:function(){if(!this.activated)throw Error("tc");return this._activatedRoute}}});FI.\u0275fac=function(a){return new (a||FI)(D(EI),D(yf),Zc("name"),D(vx),D(Pv))};
FI.\u0275dir=w({type:FI,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]});var PDb=function(a,b,c){this.route=a;this.childContexts=b;this.parent=c};PDb.prototype.get=function(a,b){return a===dk?this.route:a===EI?this.childContexts:this.parent.get(a,b)};
var nk=function(){};nk.\u0275fac=function(a){return new (a||nk)};nk.\u0275cmp=w({type:nk,selectors:[["ng-component"]],decls:1,vars:0,template:function(a){a&1&&H(0,"router-outlet")},dependencies:[FI],encapsulation:2});
var RDb=function(a,b,c){return R(function(d){(new QDb(b,d.targetRouterState,d.currentRouterState,c)).activate(a);return d})},QDb=function(a,b,c,d){this.routeReuseStrategy=a;this.futureState=b;this.currState=c;this.forwardEvent=d};QDb.prototype.activate=function(a){var b=this.futureState._root,c=this.currState?this.currState._root:null;SDb(this,b,c,a);Ooa(this.futureState.root);GI(this,b,c,a)};
var SDb=function(a,b,c,d){var e=Zj(c);b.children.forEach(function(f){var h=f.value.outlet,k=e[h],q=f.value,v=k?k.value:null;q===v?q.component?(q=d.getContext(q.outlet))&&SDb(a,f,k,q.children):SDb(a,f,k,d):v&&TDb(a,k,d);delete e[h]});Qj(e,function(f){TDb(a,f,d)})},TDb=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=Zj(b),f=r(Object.keys(e)),h=f.next();!h.done;h=f.next())TDb(a,e[h.value],c);d&&
d.outlet&&(c=d.outlet.detach(),d=MDb(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=Zj(b);e=r(Object.keys(b));for(f=e.next();!f.done;f=e.next())TDb(a,b[f.value],c);d&&d.outlet&&(d.outlet.deactivate(),MDb(d.children),d.attachRef=null,d.resolver=null,d.route=null)}},GI=function(a,b,c,d){var e=Zj(c);b.children.forEach(function(f){var h=e[f.value.outlet],k=f.value,q=h?h.value:null;
Ooa(k);if(k===q)k.component?(k=NDb(d,k.outlet),GI(a,f,h,k.children)):GI(a,f,h,d);else if(k.component){h=NDb(d,k.outlet);if(a.routeReuseStrategy.shouldAttach()){var v=a.routeReuseStrategy.retrieve();a.routeReuseStrategy.store(k.snapshot,null);h.children.contexts=v.contexts;h.attachRef=v.componentRef;h.route=v.route.value;h.outlet&&h.outlet.attach(v.componentRef,v.route.value);Ooa(v.route.value)}else{q=bpa(k.snapshot);var y=null!=(v=null==q?void 0:q.get(Sv))?v:null;h.attachRef=null;h.route=k;h.resolver=
y;h.injector=q;h.outlet&&ODb(h.outlet,k,h.injector)}GI(a,f,null,h.children)}else GI(a,f,null,d);a.forwardEvent(new zDb(f.value.snapshot))});b.children.length&&a.forwardEvent(new yDb(b.value.snapshot))};
var rk=Symbol("vc");
var cpa={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};
var wk=function(a){this.segmentGroup=a||null},UDb=function(a){this.urlTree=a},yk=function(a,b,c,d,e){this.injector=a;this.configLoader=b;this.urlSerializer=c;this.urlTree=d;this.config=e;this.allowRedirects=!0};
yk.prototype.apply=function(){var a=this,b=vk(this.urlTree.root,[],[],this.config).segmentGroup;b=new kk(b.segments,b.children);return VDb(this,this.injector,this.config,b,"primary").pipe(R(function(c){return a.createUrlTree(gpa(c),a.urlTree.queryParams,a.urlTree.fragment)})).pipe(Mf(function(c){if(c instanceof UDb)return a.allowRedirects=!1,a.match(c.urlTree);if(c instanceof wk)throw Error("xc`"+c.segmentGroup);throw c;}))};
yk.prototype.match=function(a){var b=this;return VDb(this,this.injector,this.config,a.root,"primary").pipe(R(function(c){return b.createUrlTree(gpa(c),a.queryParams,a.fragment)})).pipe(Mf(function(c){if(c instanceof wk)throw Error("xc`"+c.segmentGroup);throw c;}))};yk.prototype.createUrlTree=function(a,b,c){var d={};a=0<a.segments.length?new kk([],(d.primary=a,d)):a;return new jk(a,b,c)};
var VDb=function(a,b,c,d,e){return 0===d.segments.length&&d.hasChildren()?WDb(a,b,c,d).pipe(R(function(f){return new kk([],f)})):XDb(a,b,d,c,d.segments,e,!0)},WDb=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,S.from)(e).pipe(kf(function(k){var q=d.children[k],v=apa(c,k);return VDb(a,b,v,q,k).pipe(R(function(y){return{segment:y,outlet:k}}))},1),Vf(function(k,q){k[q.outlet]=q.segment;return k},{}),tha())},
XDb=function(a,b,c,d,e,f,h){return(0,S.from)(d).pipe(kf(function(k){k.providers&&!k._injector&&(k._injector=Kea(k.providers,b,"Route: "+k.path));var q;return YDb(a,null!=(q=k._injector)?q:b,c,d,k,e,f,h).pipe(Mf(function(v){if(v instanceof wk)return(0,S.of)(null);throw v;}))},1),Tf(function(k){return!!k}),Mf(function(k){if(k instanceof S.EmptyError||"EmptyError"===k.name)return 0!==e.length||c.children[f]?xk(c):(0,S.of)(new kk([],{}));throw k;}))},YDb=function(a,b,c,d,e,f,h,k){if(fpa(e,c,f,h))if(void 0===
e.redirectTo)a=ZDb(a,b,c,e,f,h);else{var q;k&&a.allowRedirects?q="**"===e.path?$Db(a,b,d,e,h):aEb(a,b,c,d,e,f,h):q=xk(c);a=q}else a=xk(c);return a},$Db=function(a,b,c,d,e){var f=bEb(a,[],d.redirectTo,{});return d.redirectTo.startsWith("/")?(0,S.throwError)(new UDb(f)):cEb(d,f).pipe(kf(function(h){var k=new kk(h,{});return XDb(a,b,k,c,h,e,!1)}))},aEb=function(a,b,c,d,e,f,h){f=tk(c,e,f);var k=f.consumedSegments,q=f.remainingSegments,v=f.positionalParamSegments;if(!f.matched)return xk(c);f=bEb(a,k,e.redirectTo,
v);return e.redirectTo.startsWith("/")?(0,S.throwError)(new UDb(f)):cEb(e,f).pipe(kf(function(y){return XDb(a,b,c,d,y.concat(q),h,!1)}))},ZDb=function(a,b,c,d,e,f){if("**"===d.path)return d.loadChildren?(d._loadedRoutes?(0,S.of)({routes:d._loadedRoutes,injector:d._loadedInjector}):a.configLoader.loadChildren(b,d)).pipe(R(function(v){d._loadedRoutes=v.routes;d._loadedInjector=v.injector;return new kk(e,{})})):(0,S.of)(new kk(e,{}));var h=tk(c,d,e),k=h.consumedSegments,q=h.remainingSegments;return h.matched?
dEb(a,b,d,e).pipe(kf(function(v){var y,E=null!=(y=v.injector)?y:b;v=v.routes;var I=vk(c,k,q,v);y=I.segmentGroup;I=I.slicedSegments;y=new kk(y.segments,y.children);return 0===I.length&&y.hasChildren()?WDb(a,E,v,y).pipe(R(function(N){return new kk(k,N)})):0===v.length&&0===I.length?(0,S.of)(new kk(k,{})):XDb(a,E,y,v,I,ok(d)===f?"primary":f,!0).pipe(R(function(N){return new kk(k.concat(N.segments),N.children)}))})):xk(c)},dEb=function(a,b,c,d){return c.children?(0,S.of)({routes:c.children,injector:b}):
c.loadChildren?void 0!==c._loadedRoutes?(0,S.of)({routes:c._loadedRoutes,injector:c._loadedInjector}):eEb(a,b,c,d).pipe(kf(function(e){return e?a.configLoader.loadChildren(b,c).pipe(dg(function(f){c._loadedRoutes=f.routes;c._loadedInjector=f.injector})):(0,S.throwError)(qoa("Cannot load children because the guard of the route \"path: '"+c.path+"'\" returned false"))})):(0,S.of)({routes:[],injector:b})},eEb=function(a,b,c,d){var e=c.canLoad;if(!e||0===e.length)return(0,S.of)(!0);e=e.map(function(f){if((f=
b.get(f))&&pk(f.canLoad))f=f.canLoad(c,d);else if(pk(f))f=f(c,d);else throw Error("yc");return Rj(f)});return(0,S.of)(e).pipe(sk(),dg(function(f){if(qk(f)){var h=qoa('Redirecting to "'+a.urlSerializer.serialize(f)+'"');h.url=f;throw h;}}),R(function(f){return!0===f}))},cEb=function(a,b){var c=[];for(b=b.root;;){c=c.concat(b.segments);if(0===b.numberOfChildren)return(0,S.of)(c);if(1<b.numberOfChildren||!b.children.primary)return(0,S.throwError)(Error("wc`"+a.redirectTo));b=b.children.primary}},bEb=
function(a,b,c,d){var e=a.urlSerializer.parse(c);b=fEb(a,c,e.root,b,d);return new jk(b,gEb(e.queryParams,a.urlTree.queryParams),e.fragment)},gEb=function(a,b){var c={};Qj(a,function(d,e){c[e]="string"===typeof d&&d.startsWith(":")?b[d.substring(1)]:d});return c},fEb=function(a,b,c,d,e){var f=hEb(b,c.segments,d,e),h={};Qj(c.children,function(k,q){h[q]=fEb(a,b,k,d,e)});return new kk(f,h)},hEb=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("zc`"+
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 jpa=function(a){this.path=a;this.route=this.path[this.path.length-1]},Bk=function(a,b){this.component=a;this.route=b};
var tpa=function(){},spa=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};
spa.prototype.recognize=function(){var a=vk(this.urlTree.root,[],[],this.config.filter(function(c){return void 0===c.redirectTo}),this.relativeLinkResolution).segmentGroup;a=iEb(this,this.config,a,"primary");if(null===a)return null;var b=new ck([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{});a=new ak(this.url,new bk(b,a));jEb(this,a._root);return a};
var jEb=function(a,b){var c=b.value,d=Loa(c,a.paramsInheritanceStrategy);c.params=Object.freeze(d.params);c.data=Object.freeze(d.data);b.children.forEach(function(e){return jEb(a,e)})},iEb=function(a,b,c,d){return 0===c.segments.length&&c.hasChildren()?a.processChildren(b,c):kEb(a,b,c,c.segments,d)};
spa.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=apa(a,e);e=iEb(this,h,f,e);if(null===e)return null;c.push.apply(c,u(e))}a=xpa(c);vpa(a);return a};
var kEb=function(a,b,c,d,e){b=r(b);for(var f=b.next();!f.done;f=b.next())if(f=lEb(a,f.value,c,d,e),null!==f)return f;return 0!==d.length||c.children[e]?null:[]},lEb=function(a,b,c,d,e){if(b.redirectTo||!fpa(b,c,d,e))return null;var f=[],h=[];if("**"===b.path){var k=zpa(c)+d.length,q,v;d=new ck(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||{},ok(b),null!=(v=null!=(q=b.component)?q:b._loadedComponent)?v:null,
b,ypa(c),k,b.resolve||{},k)}else{d=tk(c,b,d);if(!d.matched)return null;f=d.consumedSegments;h=d.remainingSegments;q=zpa(c)+f.length;var y;d=new ck(f,d.parameters,Object.freeze(Object.assign({},a.urlTree.queryParams)),a.urlTree.fragment,b.data||{},ok(b),null!=(y=null!=(k=b.component)?k:b._loadedComponent)?y:null,b,ypa(c),q,b.resolve||{},q)}k=b.children?b.children:b.loadChildren?b._loadedRoutes:[];f=vk(c,f,h,k.filter(function(E){return void 0===E.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 bk(d,a)];if(0===k.length&&0===f.length)return[new bk(d,[])];a=kEb(a,k,c,f,ok(b)===e?"primary":e);return null===a?null:[new bk(d,a)]};
var Dpa=Symbol("Dc");
var mEb=function(){},nEb=function(){};g=nEb.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 oEb=function(){};U(oEb,nEb);
var pEb=new ld("ROUTES"),HI=function(a){this.injector=a;this.componentLoaders=new WeakMap;this.childrenLoaders=new WeakMap};
HI.prototype.loadComponent=function(a){var b=this;if(this.componentLoaders.get(a))return this.componentLoaders.get(a);if(a._loadedComponent)return(0,S.of)(a._loadedComponent);if(this.onLoadStartListener)this.onLoadStartListener(a);var c=Rj(a.loadComponent()).pipe(dg(function(d){if(b.onLoadEndListener)b.onLoadEndListener(a);a._loadedComponent=d}),Sf(function(){b.componentLoaders.delete(a)}));c=(new S.ConnectableObservable(c,function(){return new S.Subject})).pipe(Ze());this.componentLoaders.set(a,
c);return c};
HI.prototype.loadChildren=function(a,b){var c=this;if(this.childrenLoaders.get(b))return this.childrenLoaders.get(b);if(b._loadedRoutes)return(0,S.of)({routes:b._loadedRoutes,injector:b._loadedInjector});if(this.onLoadStartListener)this.onLoadStartListener(b);var d=qEb(this,b.loadChildren).pipe(R(function(e){if(c.onLoadEndListener)c.onLoadEndListener(b);if(!Array.isArray(e)){var f=e.create(a).injector;e=Array.prototype.concat.apply([],f.get(pEb,[],10))}return{routes:e.map(mk),injector:f}}),Sf(function(){c.childrenLoaders.delete(b)}));
d=(new S.ConnectableObservable(d,function(){return new S.Subject})).pipe(Ze());this.childrenLoaders.set(b,d);return d};var qEb=function(a,b){return"string"===typeof b?(0,S.from)(a.injector.get(Tmb).load(b)):Rj(b()).pipe(kf(function(c){return c instanceof olb||Array.isArray(c)?(0,S.of)(c):(0,S.from)(Promise.resolve(new bw(c)))}))};HI.\u0275fac=function(a){return new (a||HI)(t(Qv),t(gw))};HI.\u0275prov=dc({token:HI,factory:HI.\u0275fac});
var rEb=function(){};rEb.prototype.extract=function(a){return a};rEb.prototype.merge=function(a){return a};
var sEb={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},tEb={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Fk=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 S.Subject;this.errorHandler=Hpa;this.malformedUriErrorHandler=Ipa;this.navigated=
!1;this.lastSuccessfulId=-1;this.hooks={beforePreactivation:Jpa,afterPreactivation:Jpa};this.urlHandlingStrategy=new rEb;this.routeReuseStrategy=new oEb;this.onSameUrlNavigation="ignore";this.paramsInheritanceStrategy="emptyOnly";this.urlUpdateStrategy="deferred";this.relativeLinkResolution="corrected";this.canceledNavigationResolution="replace";this.configLoader=e.get(HI);this.configLoader.onLoadEndListener=function(q){k.events.next(new xDb(q))};this.configLoader.onLoadStartListener=function(q){k.events.next(new wDb(q))};
this.ngModule=e.get(Tv);this.console=e.get(fw);e.get(jg)instanceof jg&&Uw();this.config=h.map(mk);this.navigated=!1;this.lastSuccessfulId=-1;this.browserUrlTree=this.rawUrlTree=this.currentUrlTree=new jk(new kk([],{}),{},null);this.routerState=Joa(this.currentUrlTree,this.rootComponentType);this.transitions=new S.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=uEb(this,this.transitions);vEb(this)},uEb=function(a,b){var c=a.events;return b.pipe(rf(function(d){return 0!==d.id}),R(function(d){return Object.assign({},d,{extractedUrl:a.urlHandlingStrategy.extract(d.rawUrl)})}),
bg(function(d){var e=!1,f=!1;return(0,S.of)(d).pipe(dg(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}}),bg(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,S.of)(h).pipe(bg(function(E){var I=a.transitions.getValue();c.next(new yI(E.id,II(a,E.extractedUrl),E.source,E.restoredState));return I!==a.transitions.getValue()?S.EMPTY:Promise.resolve(E)}),hpa(a.ngModule.injector,a.configLoader,a.urlSerializer,a.config),dg(function(E){a.currentNavigation=Object.assign({},a.currentNavigation,{finalUrl:E.urlAfterRedirects})}),Apa(a.rootComponentType,a.config,function(E){return II(a,E)},a.paramsInheritanceStrategy,a.relativeLinkResolution),dg(function(E){if("eager"===
a.urlUpdateStrategy){if(!E.extras.skipLocationChange){var I=a.urlHandlingStrategy.merge(E.urlAfterRedirects,E.rawUrl);wEb(a,I,E)}a.browserUrlTree=E.urlAfterRedirects}E=new rDb(E.id,II(a,E.extractedUrl),II(a,E.urlAfterRedirects),E.targetSnapshot);c.next(E)}));if(k&&a.rawUrlTree){k=h.extractedUrl;var q=h.source,v=h.restoredState,y=h.extras;q=new yI(h.id,II(a,k),q,v);c.next(q);q=Joa(k,a.rootComponentType).snapshot;return(0,S.of)(Object.assign({},h,{targetSnapshot:q,urlAfterRedirects:k,extras:Object.assign({},
y,{skipLocationChange:!1,replaceUrl:!1})}))}a.rawUrlTree=h.rawUrl;h.resolve(null);return S.EMPTY}),Ek(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})}),dg(function(h){h=new sDb(h.id,II(a,h.extractedUrl),II(a,h.urlAfterRedirects),h.targetSnapshot);a.events.next(h)}),R(function(h){var k=Object,q=k.assign;var v=h.currentSnapshot;var y=
h.targetSnapshot._root;v=Ak(y,v?v._root:null,a.rootContexts,[y.value]);return q.call(k,{},h,{guards:v})}),mpa(a.ngModule.injector,function(h){a.events.next(h)}),dg(function(h){if(qk(h.guardsResult)){var k=qoa('Redirecting to "'+II(a,h.guardsResult)+'"');k.url=h.guardsResult;throw k;}h=new tDb(h.id,II(a,h.extractedUrl),II(a,h.urlAfterRedirects),h.targetSnapshot,!!h.guardsResult);a.events.next(h)}),rf(function(h){return h.guardsResult?!0:(xEb(a,h),yEb(a,h,""),!1)}),Ek(function(h){if(h.guards.canActivateChecks.length)return(0,S.of)(h).pipe(dg(function(k){k=
new uDb(k.id,II(a,k.extractedUrl),II(a,k.urlAfterRedirects),k.targetSnapshot);a.events.next(k)}),bg(function(k){var q=!1;return(0,S.of)(k).pipe(Cpa(a.paramsInheritanceStrategy,a.ngModule.injector),dg({next:function(){return q=!0},complete:function(){q||(xEb(a,k),yEb(a,k,"At least one route resolver didn't emit any value."))}}))}),dg(function(k){k=new vDb(k.id,II(a,k.extractedUrl),II(a,k.urlAfterRedirects),k.targetSnapshot);a.events.next(k)}))}),Ek(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})}),Ek(function(h){var k=function(q){var v=[],y;(null==(y=q.routeConfig)?0:y.loadComponent)&&!q.routeConfig._loadedComponent&&v.push(a.configLoader.loadComponent(q.routeConfig).pipe(dg(function(I){q.component=I}),R(function(){})));y=r(q.children);for(var E=y.next();!E.done;E=y.next())v.push.apply(v,u(k(E.value)));return v};return(0,S.combineLatest)(k(h.targetSnapshot.root)).pipe(hha(),
Qf())}),R(function(h){var k=h.targetSnapshot;var q=h.currentRouterState;q=gk(a.routeReuseStrategy,k._root,q?q._root:void 0);k=new fk(q,k);return Object.assign({},h,{targetRouterState:k})}),dg(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||wEb(a,a.rawUrlTree,h),a.browserUrlTree=h.urlAfterRedirects)}),RDb(a.rootContexts,a.routeReuseStrategy,
function(h){a.events.next(h)}),dg({next:function(){e=!0},complete:function(){e=!0}}),Sf(function(){e||f||yEb(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)}),Mf(function(h){f=!0;if(h&&h.ngNavigationCancelingError){var k=qk(h.url);k||(a.navigated=!0,xEb(a,d,!0));var q=new AI(d.id,II(a,d.extractedUrl),h.message);c.next(q);k?(h=a.urlHandlingStrategy.merge(h.url,a.rawUrlTree),
zEb(a,h,"imperative",null,{skipLocationChange:d.extras.skipLocationChange,replaceUrl:"eager"===a.urlUpdateStrategy||"imperative"!==d.source},{resolve:d.resolve,reject:d.reject,promise:d.promise})):d.resolve(!1)}else{xEb(a,d,!0);k=new qDb(d.id,II(a,d.extractedUrl),h);c.next(k);try{d.resolve(a.errorHandler(h))}catch(v){d.reject(v)}}return S.EMPTY}))}))};Fk.prototype.setTransition=function(a){this.transitions.next(Object.assign({},this.transitions.value,a))};
Fk.prototype.initialNavigation=function(){AEb(this);0===this.navigationId&&ft(this,this.location.path(!0),{replaceUrl:!0})};
var AEb=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=BEb(a,b.url);zEb(a,e,c,f,d)},0)}))};Fk.prototype.ngOnDestroy=function(){this.dispose()};
Fk.prototype.dispose=function(){this.transitions.complete();this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0);this.disposed=!0};
Fk.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=CEb(c));b=this.currentUrlTree;d=null!=d?d:null;if(0===a.length)b=Toa(b.root,b.root,b.root,c,d);else if(a=Voa(a),a.isAbsolute&&1===
a.commands.length&&"/"==a.commands[0])b=Toa(b.root,b.root,new kk([],{}),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 KDb(b.root,!0,0);else if(-1===h)k=new KDb(f,f===b.root,0);else{k=f;f=h+(hk(a.commands[0])?0:1);for(e=a.numberOfDoubleDots;e>f;){e-=f;k=k.parent;if(!k)throw Error("sc");f=k.segments.length}k=new KDb(k,!1,f-e)}a=k.processChildren?lk(k.segmentGroup,k.index,a.commands):Yoa(k.segmentGroup,k.index,a.commands);
b=Toa(b.root,k.segmentGroup,a,c,d)}return b};var ft=function(a,b,c){c=void 0===c?{skipLocationChange:!1}:c;b=qk(b)?b:BEb(a,b);b=a.urlHandlingStrategy.merge(b,a.rawUrlTree);return zEb(a,b,"imperative",null,c)};Fk.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("Ec`"+d+"`"+c);}return ft(this,this.createUrlTree(a,b),b)};
var II=function(a,b){return a.urlSerializer.serialize(b)},BEb=function(a,b){try{var c=a.urlSerializer.parse(b)}catch(d){c=a.malformedUriErrorHandler(d,a.urlSerializer,b)}return c};Fk.prototype.isActive=function(a,b){var c;!0===b?c=Object.assign({},sEb):!1===b?c=Object.assign({},tEb):c=b;if(qk(a))return voa(this.currentUrlTree,a,c);a=BEb(this,a);return voa(this.currentUrlTree,a,c)};
var CEb=function(a){return Object.keys(a).reduce(function(b,c){var d=a[c];null!==d&&void 0!==d&&(b[c]=d);return b},{})},vEb=function(a){a.navigations.subscribe(function(b){a.navigated=!0;a.lastSuccessfulId=b.id;a.currentPageId=b.targetPageId;a.events.next(new zI(b.id,II(a,b.extractedUrl),II(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)})},zEb=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 v=d.\u0275routerPageId;else if(e.replaceUrl||e.skipLocationChange){var y;v=null!=(y=a.browserPageId)?y:0}else{var E;v=(null!=(E=a.browserPageId)?E:0)+1}else v=0;a.setTransition({id:q,targetPageId:v,
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)})},wEb=function(a,b,c){b=a.urlSerializer.serialize(b);var d=Object.assign({},c.extras.state,DEb(a,c.id,c.targetPageId)),e=a.location;var f=void 0===f?"":f;e.path()==e.normalize(b+Cg(f))||c.extras.replaceUrl?a.location.replaceState(b,"",d):a.location.go(b,
"",d)},xEb=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,EEb(a))}else a.location.historyGo(c)}else"replace"===a.canceledNavigationResolution&&(c&&a.resetState(b),
EEb(a))};Fk.prototype.resetState=function(a){this.routerState=a.currentRouterState;this.currentUrlTree=a.currentUrlTree;this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,a.rawUrl)};
var EEb=function(a){a.location.replaceState(a.urlSerializer.serialize(a.rawUrlTree),"",DEb(a,a.lastSuccessfulId,a.currentPageId))},yEb=function(a,b,c){c=new AI(b.id,II(a,b.extractedUrl),c);a.events.next(c);b.resolve(!1)},DEb=function(a,b,c){return"computed"===a.canceledNavigationResolution?{navigationId:b,"\u0275routerPageId":c}:{navigationId:b}};
li.Object.defineProperties(Fk.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 II(this,this.currentUrlTree)}}});Fk.\u0275fac=function(){pe()};Fk.\u0275prov=dc({token:Fk,factory:Fk.\u0275fac});
var JI=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 S.Subject;FEb(this,"0")},FEb=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")}};JI.prototype.ngOnChanges=function(){this.onChanges.next(this)};
JI.prototype.onClick=function(){if(null===this.urlTree)return!0;ft(this.router,this.urlTree,{skipLocationChange:mg(this.skipLocationChange),replaceUrl:mg(this.replaceUrl),state:this.state});return!0};
li.Object.defineProperties(JI.prototype,{routerLink:{configurable:!0,enumerable:!0,set:function(a){null!=a?(this.commands=Array.isArray(a)?a:[a],FEb(this,"0")):(this.commands=null,FEb(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:mg(this.preserveFragment)})}}});
JI.\u0275fac=function(a){return new (a||JI)(D(Fk),D(dk),Zc("tabindex"),D(Vv),D(pd))};JI.\u0275dir=w({type:JI,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(a,b){a&1&&J("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:[Cc]});
var KI=function(a,b,c){var d=this;this.router=a;this.route=b;this.locationStrategy=c;this.href=this.commands=null;this.onChanges=new S.Subject;this.subscription=a.events.subscribe(function(e){e instanceof zI&&GEb(d)})};KI.prototype.ngOnChanges=function(){GEb(this);this.onChanges.next(this)};KI.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()};
KI.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;ft(this.router,this.urlTree,{skipLocationChange:mg(this.skipLocationChange),replaceUrl:mg(this.replaceUrl),state:this.state});return!1};var GEb=function(a){a.href=null!==a.urlTree?a.locationStrategy.prepareExternalUrl(II(a.router,a.urlTree)):null};
li.Object.defineProperties(KI.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:mg(this.preserveFragment)})}}});
KI.\u0275fac=function(a){return new (a||KI)(D(Fk),D(dk),D(Zx))};
KI.\u0275dir=w({type:KI,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(a,b){a&1&&J("click",function(c){return b.onClick(c.button,c.ctrlKey,c.shiftKey,c.altKey,c.metaKey)});a&2&&ge("target",b.target)("href",b.href,Md)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",
routerLink:"routerLink"},features:[Cc]});
var LI=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 Rw;this.routerEventsSubscription=a.events.subscribe(function(k){k instanceof zI&&h.update()})};LI.prototype.ngAfterContentInit=function(){var a=this;(0,S.of)(this.links.changes,this.linksWithHrefs.changes,(0,S.of)(null)).pipe(lf()).subscribe(function(){a.update();HEb(a)})};
var HEb=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,S.from)(b).pipe(lf()).subscribe(function(c){a.isActive!==IEb(a,a.router)(c)&&a.update()})};LI.prototype.ngOnChanges=function(){this.update()};
LI.prototype.ngOnDestroy=function(){this.routerEventsSubscription.unsubscribe();var a;null==(a=this.linkInputChangesSubscription)||a.unsubscribe()};
LI.prototype.update=function(){var a=this;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(function(){var b=JEb(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)}),b&&void 0!==a.ariaCurrentWhenActive?a.renderer.setAttribute(a.element.nativeElement,"aria-current",a.ariaCurrentWhenActive.toString()):a.renderer.removeAttribute(a.element.nativeElement,
"aria-current"),a.isActiveChange.emit(b))})};var IEb=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}},JEb=function(a){var b=IEb(a,a.router);return a.link&&b(a.link)||a.linkWithHref&&b(a.linkWithHref)||a.links.some(b)||a.linksWithHrefs.some(b)};
li.Object.defineProperties(LI.prototype,{routerLinkActive:{configurable:!0,enumerable:!0,set:function(a){this.classes=(Array.isArray(a)?a:a.split(" ")).filter(function(b){return!!b})}}});LI.\u0275fac=function(a){return new (a||LI)(D(Fk),D(pd),D(Vv),D(vx),D(JI,8),D(KI,8))};
LI.\u0275dir=w({type:LI,selectors:[["","routerLinkActive",""]],contentQueries:function(a,b,c){a&1&&(Cf(c,JI,5),Cf(c,KI,5));if(a&2){var d;Af(d=Df())&&(b.links=d);Af(d=Df())&&(b.linksWithHrefs=d)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Cc]});
var KEb=function(){},LEb=function(a){for(a=a.root;void 0!==a;){var b=void 0;var c=null!=(b=a.data[Dpa])?b:c;a=a.children.find(function(d){return"primary"===d.outlet})}return c},MI=function(a){this.title=a};U(MI,KEb);MI.prototype.updateTitle=function(a){a=LEb(a);void 0!==a&&this.title.setTitle(a)};MI.\u0275fac=function(a){return new (a||MI)(t(jz))};MI.\u0275prov=dc({token:MI,factory:MI.\u0275fac,providedIn:"root"});
var MEb=function(){},NEb=function(){};NEb.prototype.preload=function(a,b){return b().pipe(Mf(function(){return(0,S.of)(null)}))};var OEb=function(){};OEb.prototype.preload=function(){return(0,S.of)(null)};var NI=function(a,b,c,d,e){this.router=a;this.injector=c;this.preloadingStrategy=d;this.loader=e},PEb=function(a){a.subscription=a.router.events.pipe(rf(function(b){return b instanceof zI}),kf(function(){return a.preload()},1)).subscribe(function(){})};
NI.prototype.preload=function(){return QEb(this,this.injector,this.router.config)};NI.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()};
var QEb=function(a,b,c){var d=[];c=r(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;e.providers&&!e._injector&&(e._injector=Kea(e.providers,b,"Route: "+e.path));var f=void 0,h=null!=(f=e._injector)?f:b,k=void 0;f=null!=(k=e._loadedInjector)?k:h;if(e.loadChildren&&!e._loadedRoutes||e.loadComponent&&!e._loadedComponent)d.push(REb(a,h,e));else if(e.children||e._loadedRoutes)h=void 0,d.push(QEb(a,f,null!=(h=e.children)?h:e._loadedRoutes))}return(0,S.from)(d).pipe(lf())},REb=function(a,b,c){return a.preloadingStrategy.preload(c,
function(){var d=(c.loadChildren&&void 0===c.canLoad?a.loader.loadChildren(b,c):(0,S.of)(null)).pipe(kf(function(f){if(null===f)return(0,S.of)(void 0);c._loadedRoutes=f.routes;c._loadedInjector=f.injector;var h;return QEb(a,null!=(h=f.injector)?h:b,f.routes)}));if(c.loadComponent&&!c._loadedComponent){var e=a.loader.loadComponent(c);return(0,S.from)([d,e]).pipe(lf())}return d})};NI.\u0275fac=function(a){return new (a||NI)(t(Fk),t(gw),t(Pv),t(MEb),t(HI))};NI.\u0275prov=dc({token:NI,factory:NI.\u0275fac});
var OI=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"};
OI.prototype.init=function(){if("disabled"!==this.options.scrollPositionRestoration){var a=this.viewportScroller;try{if(ey(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=SEb(this);this.scrollEventsSubscription=
TEb(this)};
var SEb=function(a){return a.router.events.subscribe(function(b){b instanceof yI?(a.store[a.lastId]=a.viewportScroller.getScrollPosition(),a.lastSource=b.navigationTrigger,a.restoredId=b.restoredState?b.restoredState.navigationId:0):b instanceof zI&&(a.lastId=b.id,b=BEb(a.router,b.urlAfterRedirects).fragment,a.router.events.next(new ADb("popstate"===a.lastSource?a.store[a.restoredId]:null,b)))})},TEb=function(a){return a.router.events.subscribe(function(b){if(b instanceof ADb)if(b.position)"top"===a.options.scrollPositionRestoration?
gnb(a.viewportScroller,[0,0]):"enabled"===a.options.scrollPositionRestoration&&gnb(a.viewportScroller,b.position);else if(b.anchor&&"enabled"===a.options.anchorScrolling){var c=a.viewportScroller;if(ey(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&&gnb(a.viewportScroller,[0,0])})};OI.prototype.ngOnDestroy=function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe();this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()};
OI.\u0275fac=function(){pe()};OI.\u0275prov=dc({token:OI,factory:OI.\u0275fac});
var PI=new ld("ROUTER_CONFIGURATION"),UEb=new ld("ROUTER_FORROOT_GUARD"),VEb=[dy,{provide:CDb,useClass:DDb},{provide:Fk,useFactory:Kpa,deps:[CDb,EI,dy,Qv,gw,pEb,PI,MI,[KEb,new Nv],[function(){},new Nv],[mEb,new Nv]]},EI,{provide:dk,useFactory:Lpa,deps:[Fk]},NI,OEb,NEb,{provide:PI,useValue:{enableTracing:!1}},HI],QI=function(){};QI.\u0275fac=function(a){return new (a||QI)(t(UEb,8),t(Fk,8))};QI.\u0275mod=uc({type:QI});QI.\u0275inj=gc({});
var RI=function(a){this.injector=a;this.destroyed=this.initNavigation=!1;this.resultOfPreactivationDone=new S.Subject};
RI.prototype.appInitializer=function(){var a=this;return this.injector.get(bnb,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(Fk),e=a.injector.get(PI);"disabled"===e.initialNavigation?(AEb(d),b(!0)):"enabledBlocking"===e.initialNavigation?(d.hooks.afterPreactivation=function(){if(a.initNavigation)return(0,S.of)(null);a.initNavigation=!0;b(!0);return a.resultOfPreactivationDone},d.initialNavigation()):
b(!0);return c})};RI.prototype.bootstrapListener=function(a){var b=this.injector.get(PI),c=this.injector.get(NI),d=this.injector.get(OI),e=this.injector.get(Fk),f=this.injector.get(tx);a===f.components[0]&&("enabledNonBlocking"!==b.initialNavigation&&void 0!==b.initialNavigation||e.initialNavigation(),PEb(c),d.init(),e.rootComponentType=f.componentTypes[0],e.routerState.root.component=e.rootComponentType,this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())};
RI.prototype.ngOnDestroy=function(){this.destroyed=!0};RI.\u0275fac=function(a){return new (a||RI)(t(Qv))};RI.\u0275prov=dc({token:RI,factory:RI.\u0275fac});var WEb=new ld("Router Initializer");
var XEb=[zI,qDb,AI],TI=function(a,b){wI.call(this);var c=this;this.router=a;this.activatedRoute=b;this.routeChangeStart=new S.Subject;this.routeChangeSuccess=new S.Subject;this.locationChangeStart=new S.Subject;this.locationChangeSuccess=new S.Subject;this.routeUpdate=new S.Subject;this.viewContentLoaded=new S.Subject;SI(this,Dk).subscribe(function(d){c.routeChangeStart.next({params:Object.assign({},d.snapshot.queryParams,d.snapshot.params)})});a=this.router.events.pipe(rf(function(d){return XEb.some(function(e){return d instanceof
e})}),cg(this.destroyed$));b=SI(this,zDb);(0,S.merge)(a.pipe(Uf(S.NEVER)),this.routeChangeStart.pipe(Uf(b))).pipe(bg(Te),cg(this.destroyed$),rf(function(d){return d.snapshot.routeConfig.isRootRoute}),R(function(d){return{params:Object.assign({},d.snapshot.queryParams,d.snapshot.params)}})).subscribe(function(d){c.routeChangeSuccess.next(d)});SI(this,yI).pipe(R(function(d){return d.url}),Pf()).subscribe(function(){c.locationChangeStart.next()});SI(this,zI).pipe(R(function(d){return d.url}),Pf()).subscribe(function(){c.locationChangeSuccess.next()});
b=this.activatedRoute.queryParams.pipe(eg(SI(this,rDb)));(0,S.merge)(this.routeChangeStart.pipe(Uf(S.NEVER)),a.pipe(Uf(b))).pipe(bg(Te),cg(this.destroyed$)).subscribe(function(d){d=r(d);d.next();d=d.next().value;c.routeUpdate.next({params:d.state.root.params})});SI(this,zI).subscribe(function(){c.viewContentLoaded.next()})};U(TI,wI);TI.\u0275dir=wI.\u0275dir;var SI=function(a,b){return a.router.events.pipe(rf(function(c){return c instanceof b}),R(function(c){return c}),cg(a.destroyed$))};
TI.\u0275fac=function(a){return new (a||TI)(t(Fk),t(dk))};TI.\u0275prov=dc({token:TI,factory:TI.\u0275fac,providedIn:"root"});
var UI=function(a){this.executor=a},YEb=function(a,b){return a.executor.post({url:"action/current_user/preferences",responseConstructor:tj,body:Kna(b)}).pipe(R(function(c){return Bna(c)}))};UI.\u0275fac=function(a){return new (a||UI)(t(nI))};UI.\u0275prov=dc({token:UI,factory:UI.\u0275fac,providedIn:"root"});
var VI=function(a){this.userPreferencesManagerBase=a;this.destroyed$=new S.ReplaySubject(1);this.preferencesSubject$=this.userPreferencesManagerBase.preferences$;this.preferences$=this.preferencesSubject$.pipe(R(Fi));this.textDisplayPreferences$=this.preferences$.pipe(R(function(b){return b.textDisplayPreferences||{}}));this.textDisplayPreferencesSubject$=Gk(this.textDisplayPreferences$.pipe(cg(this.destroyed$)),{});this.lastPublishMode$=this.textDisplayPreferences$.pipe(R(function(b){return b.lastPublishMode}),
Pf());this.lastPublishModeProto$=this.lastPublishMode$.pipe(R(rna));this.themePreferences$=this.preferences$.pipe(R(function(b){var c;return null!=(c=b.themePreferences)?c:Fi(uH.themePreferences)}),Ik());this.listViewPreferences$=this.preferences$.pipe(R(function(b){var c;return null!=(c=b.listViewPreferences)?c:Fi(uH.listViewPreferences)}),Ik());this.layoutPreferences$=this.preferences$.pipe(R(this.getLayoutPreferences),Ik());this.dateTimePreferences$=this.preferences$.pipe(R(function(b){var c;return null!=
(c=b.dateTimePreferences)?c:Fi(uH.dateTimePreferences)}),Ik());this.homepagePreferences$=this.preferences$.pipe(R(this.getHomepagePreferences),Ik());this.keyboardPrefs$=this.preferences$.pipe(R(function(b){var c;return null!=(c=b.keyboardPreferences)?c:Fi(uH.keyboardPreferences)}),Ik());this.displayColumnsPreferences$=this.preferences$.pipe(R(function(b){var c,d;return null!=(d=null==(c=b.displayColumns)?void 0:c.column)?d:[]}),Ik());this.sortColumnsPreferences$=this.preferences$.pipe(R(function(b){var c,
d;return null!=(d=null==(c=b.sortColumns)?void 0:c.column)?d:[]}),Ik());this.bugScreensaverPreferences$=this.preferences$.pipe(R(function(b){var c;return null!=(c=b.bugScreensaverPreferences)?c:Fi(uH.bugScreensaverPreferences)}),Ik());this.bugScreensaverSubject$=Gk(this.bugScreensaverPreferences$.pipe(cg(this.destroyed$)),uH.bugScreensaverPreferences);this.g3nPreferences$=this.preferences$.pipe(R(function(b){var c;return null!=(c=b.g3nPreferences)?c:Fi(uH.g3nPreferences)}),Ik());this.g3nSubject$=
Gk(this.g3nPreferences$.pipe(cg(this.destroyed$)),uH.g3nPreferences);this.newIssueDetailsPagePreferences$=this.preferences$.pipe(R(function(b){var c;return null!=(c=b.newIssueDetailsPagePreferences)?c:Fi(uH.newIssueDetailsPagePreferences)}),Ik());this.newIssueDetailsPagePreferencesSubject$=Gk(this.newIssueDetailsPagePreferences$.pipe(cg(this.destroyed$)),uH.newIssueDetailsPagePreferences);this.teamWarningPreferences$=this.preferences$.pipe(R(function(b){var c;return null!=(c=b.teamWarningPreferences)?
c:Fi(uH.teamWarningPreferences)}),Ik());this.teamWarningPreferencesSubject$=Gk(this.teamWarningPreferences$.pipe(cg(this.destroyed$)),uH.teamWarningPreferences);this.codeFont$=this.preferences$.pipe(R(function(b){return!!b.useCodefont}),Pf());this.autoCcOnComment$=this.preferences$.pipe(R(function(b){var c;return null!=(c=b.autoCcOnComment)?c:!1}),Pf());this.showFullHistory$=this.preferences$.pipe(R(function(b){return!!b.showFullHistory}),Pf());this.showRecentEventsFirst$=this.preferences$.pipe(R(function(b){return!!b.showRecentEventsFirst}),
Pf())};VI.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};VI.prototype.save=function(a){return this.userPreferencesManagerBase.save(a)};var ZEb=function(a,b){b=Object.assign({},a.getLayoutPreferences(a.preferencesSubject$.value),b);return a.save({layoutPreferences:b}).pipe(R(a.getLayoutPreferences))},$Eb=function(a,b){return a.save({homepagePreferences:b}).pipe(R(a.getHomepagePreferences))};
VI.prototype.getDateTimePreferences=function(){var a;return null!=(a=(void 0).dateTimePreferences)?a:Fi(uH.dateTimePreferences)};VI.prototype.clearHomepagePreferences=function(){return $Eb(this,{})};var aFb=function(a,b){return a.save({displayColumns:{column:b}}).pipe(R(function(c){var d,e;return null!=(e=null==(d=c.displayColumns)?void 0:d.column)?e:[]}))};
VI.prototype.saveSortColumns=function(a){return this.save({sortColumns:{column:a}}).pipe(R(function(b){var c,d;return null!=(d=null==(c=b.sortColumns)?void 0:c.column)?d:[]}))};var bFb=function(a,b){return a.save({teamWarningPreferences:b}).pipe(R(function(c){var d;return null!=(d=c.teamWarningPreferences)?d:Fi(uH.teamWarningPreferences)}))};VI.prototype.getLayoutPreferences=function(a){var b;return null!=(b=a.layoutPreferences)?b:Fi(uH.layoutPreferences)};
VI.prototype.getHomepagePreferences=function(a){var b;return null!=(b=a.homepagePreferences)?b:Fi(uH.homepagePreferences)};VI.\u0275fac=function(a){return new (a||VI)(t(WI))};VI.\u0275prov=dc({token:VI,factory:VI.\u0275fac,providedIn:"root"});var WI=function(a,b){this.activeSession=a;this.userPreferencesResources=b;this.preferences$=new S.BehaviorSubject(Fi(uH));a=this.preferences$.value;if(b=this.activeSession.getUserPreferences())a=Object.assign({},a,b),cFb(a);this.preferences$.next(a)};
WI.prototype.save=function(a){var b=this;return this.activeSession.isAnonymous()?(0,S.of)(dFb(this,a)):YEb(this.userPreferencesResources,a).pipe(R(function(){return dFb(b,a)}))};
var dFb=function(a,b){var c=Fi(a.preferences$.value);c=Object.assign({},c,b);cFb(c);a.preferences$.next(c);return c},cFb=function(a){a.dateTimePreferences&&(a.dateTimePreferences.calendarFormat||(a.dateTimePreferences.calendarFormat=uH.dateTimePreferences.calendarFormat),a.dateTimePreferences.timeFormat||(a.dateTimePreferences.timeFormat=uH.dateTimePreferences.timeFormat),a.dateTimePreferences.sloEtaViewAs||(a.dateTimePreferences.sloEtaViewAs=uH.dateTimePreferences.sloEtaViewAs))};
WI.\u0275fac=function(a){return new (a||WI)(t(vH),t(UI))};WI.\u0275prov=dc({token:WI,factory:WI.\u0275fac,providedIn:"root"});
/*

 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 eFb=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||""};
li.Object.defineProperties(eFb.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 fFb=new ld("HotkeyOptions");
var XI=function(a){this.options=a;this.hotkeys=[];this.pausedHotkeys=[];this.cheatSheetToggle=new S.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 eFb(this.options.cheatSheetHotkey||"?",function(){this.cheatSheetToggle.next()}.bind(this),[],this.options.cheatSheetDescription||
"Show / hide this help menu"));this.options.cheatSheetCloseEsc&&this.add(new eFb("esc",function(){this.cheatSheetToggle.next(!1)}.bind(this),["HOTKEYS-CHEATSHEET"],this.options.cheatSheetCloseEscDescription||"Hide this help menu"))};g=XI.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 v=h.target,y=v.nodeName.toUpperCase();-1<(" "+v.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()};XI.\u0275fac=function(a){return new (a||XI)(t(fFb))};XI.\u0275prov=dc({token:XI,factory:XI.\u0275fac});
var YI=function(){};YI.\u0275fac=function(a){return new (a||YI)};YI.\u0275mod=uc({type:YI});YI.\u0275inj=gc({imports:[Wx]});
var gFb;
Eja("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));
var hFb="combobox grid group listbox menu menubar radiogroup row rowgroup tablist textbox toolbar tree treegrid".split(" "),ZI=function(a,b){b?a.setAttribute("role",b):a.removeAttribute("role")},$I=function(a,b,c){Array.isArray(c)&&(c=c.join(" "));var d="aria-"+b;""===c||void 0==c?(gFb||(c={},gFb=(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=gFb,b in c?a.setAttribute(d,c[b]):a.removeAttribute(d)):a.setAttribute(d,c)},aJ=function(a,b){var c="";b&&(c=b.id);$I(a,"activedescendant",c)};
var bJ=function(a,b,c,d){wI.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=ua(hFb,f);h=f||"true"===h.contentEditable||"INPUT"===h.tagName&&"text"===h.type||"SELECT"===h.tagName||"TEXTAREA"===h.tagName||iFb(h)?!0:!1}return h};b.keyboardPrefs$.pipe(cg(this.destroyed$)).subscribe(function(f){f&&
(e.enabled=!!f.enableAllHotkeys)});a.routeChangeStart.pipe(cg(this.destroyed$)).subscribe(function(){e.unpause()});this.rawHotkeysService.mousetrap.stopCallback=this.stopCallback;this.destroyed$.subscribe(function(){jFb(e)})};U(bJ,wI);bJ.\u0275dir=wI.\u0275dir;bJ.prototype.isEnabled=function(){return this.enabled};
var cJ=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)));kFb(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);kFb(a)}},jFb=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()},kFb=function(a){jFb(a);for(var b=r(a.hotkeyGroups.values()),c=b.next();!c.done;c=b.next()){var d=lFb(a,c.value);c={};d=r(d);for(var e=d.next();!e.done;c={$jscomp$loop$prop$binding$1647:c.$jscomp$loop$prop$binding$1647},e=d.next())c.$jscomp$loop$prop$binding$1647=e.value,e=new eFb(poa(c.$jscomp$loop$prop$binding$1647.key),function(f){return function(h){a.ngZone.run(function(){f.$jscomp$loop$prop$binding$1647.command()});h.stopPropagation();return!1}}(c)),a.rawHotkeysService.add(e)}},
iFb=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)})},lFb=function(a,b){var c=[],d={};b=r(b);for(var e=b.next();!e.done;d={$jscomp$loop$prop$hotkeySpec$1649:d.$jscomp$loop$prop$hotkeySpec$1649},e=b.next()){d.$jscomp$loop$prop$hotkeySpec$1649=e.value;e={};for(var f=r(d.$jscomp$loop$prop$hotkeySpec$1649.keys.entries()),h=f.next();!h.done;e={$jscomp$loop$prop$index$1651:e.$jscomp$loop$prop$index$1651},
h=f.next()){var k=r(h.value);h=k.next().value;k=k.next().value;e.$jscomp$loop$prop$index$1651=h;c.push(new mFb(k,function(q,v){return function(){a.ngZone.run(function(){q.$jscomp$loop$prop$hotkeySpec$1649.onPress(v.$jscomp$loop$prop$index$1651)})}}(d,e)))}}paa(c,function(q,v){return q.strokeLength>v.strokeLength?-1:q.strokeLength<v.strokeLength?1:0});return c};bJ.prototype.pause=function(){this.paused=!0};bJ.prototype.unpause=function(){this.paused=!1};
var nFb=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:Ej(c,Opa)}})};bJ.\u0275fac=function(a){return new (a||bJ)(t(TI),t(VI),t(XI),t(jg))};bJ.\u0275prov=dc({token:bJ,factory:bJ.\u0275fac,providedIn:"root"});var mFb=function(a,b){this.key=a;this.command=b;a instanceof Array&&(this.strokeLength=a.length);this.strokeLength=1};
var dJ=function(a,b){wI.call(this);this.hotkeys=a;this.tooltip=b;this.onHotkey=new Rw};U(dJ,wI);dJ.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+")"}};dJ.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(cJ(this.hotkeys,{title:this.hotkey.category,hotkeys:[Object.assign({},this.hotkey,{onPress:function(b){a.onHotkey.next(b)}})]}))};
dJ.\u0275fac=function(a){return new (a||dJ)(D(bJ),D(sF,8))};dJ.\u0275dir=w({type:dJ,selectors:[["","hotkey",""]],inputs:{hotkey:"hotkey",matTooltip:"matTooltip"},outputs:{onHotkey:"onHotkey"},features:[ae,Cc]});
var eJ=function(){};eJ.\u0275fac=function(a){return new (a||eJ)};eJ.\u0275mod=uc({type:eJ});eJ.\u0275inj=gc({providers:[]});
var fJ=function(a){this.hotkeys=a};fJ.prototype.ngOnInit=function(){this.hotkeys.pause()};fJ.prototype.ngOnDestroy=function(){this.hotkeys.unpause()};fJ.\u0275fac=function(a){return new (a||fJ)(D(bJ))};
fJ.\u0275cmp=w({type:fJ,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&&(F(0,"h1",0),O(1,"Keyboard shortcuts"),G(),F(2,"mat-dialog-content")(3,"table"),M(4,Qpa,6,2,"thead",1),G()(),F(5,"mat-dialog-actions")(6,"button",2),O(7,"Close"),G()());
a&2&&(B(4),C("ngForOf",nFb(b.hotkeys)))},dependencies:[Gx,BB,$B,aC,bC,cC],encapsulation:2});var gJ=function(){};gJ.\u0275fac=function(a){return new (a||gJ)};gJ.\u0275mod=uc({type:gJ});gJ.\u0275inj=gc({imports:[Wx,BG,dC]});
var hcb=new Set([{alias:"googlers_unrestricted"},{alias:"google_domain"}].map(function(a){return"4:"+a.alias}));
var hJ=function(){};hJ.prototype.adapt=function(a){var b,c=new oFb(a.call.bind(a),a.split.bind(a),null!=(b=a.bufferTimeMs)?b:500,a.maxBatchSize||100);return c.get.bind(c)};hJ.\u0275fac=function(a){return new (a||hJ)};hJ.\u0275prov=dc({token:hJ,factory:hJ.\u0275fac,providedIn:"root"});
var oFb=function(a,b,c,d){var e=this;this.batchCall=a;this.batchSplit=b;this.bufferTimeMs=c;this.maxBatchSize=d;this.inputSubject=new S.Subject;this.inputs$=this.inputSubject.pipe(Zga(this.inputSubject.pipe(Lf(this.bufferTimeMs,S.asapScheduler))));this.removeDuplicates=R(function(f){return[].concat(u(new Set(f)))});this.limitInputSize=R(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,S.pipe)(kf(function(f){try{return e.batchCall(f).pipe(Qf(),R(function(h){return{inputs:f,batchResponse:h,error:void 0}}),Mf(function(h){return(0,S.of)({inputs:f,batchResponse:void 0,error:h})}))}catch(h){return(0,S.of)({inputs:f,batchResponse:void 0,error:h})}}),Yf());this.batchResults$=this.inputs$.pipe(this.removeDuplicates,this.limitInputSize,this.makeBatchCalls)};
oFb.prototype.get=function(a){var b=this;return new S.Observable(function(c){c=b.batchResults$.pipe(rf(function(d){return d.inputs.has(a)}),Qf(),R(function(d){if(!d.error&&d.batchResponse)return b.batchSplit(a,d.batchResponse);throw new pFb(d.error,d.inputs);})).subscribe(c);b.inputSubject.next(a);return c})};var pFb=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,pFb.prototype)};
U(pFb,Error);
var iJ=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};
iJ.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};iJ.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 qFb=function(a){return a?Nk(Mi(a)):null},rFb=function(a){return a?(a=AC(a),isNaN(a)?null:a):null};
var gl=function(a){Z.call(this,a)};U(gl,Z);gl.prototype.getCustomFieldId=function(){return ej(this,qb(this,jJ,1))};gl.prototype.setCustomFieldId=function(a){return co(this,1,jJ,a)};gl.prototype.hasCustomFieldId=function(){return 1===pb(this,jJ)};gl.prototype.setStandardField=function(a){co(this,2,jJ,a)};var jJ=[1,2];gl.prototype.toObject=function(){return kJ(void 0,this)};
var kJ=function(a,b){if(null!=b){var c={customFieldId:n(Rr(b,1,jJ)),standardField:n(Rr(b,2,jJ))};a&&(c.$jspbMessageInstance=b);return c}};gl.messageId="b.FieldId";
var lJ=function(a){Z.call(this,a)};U(lJ,Z);lJ.prototype.setStateOnIssues=function(a){l(this,2,a)};lJ.prototype.setEnabledOnIssues=function(a){l(this,3,a)};lJ.prototype.toObject=function(){var a=null!=this?{fieldId:kJ(void 0,m(this,gl,1)),stateOnIssues:n(p(this,2)),enabledOnIssues:n(To(this,3))}:void 0;return a};var sFb={UNSPECIFIED:0,INHERIT:1,DISABLED:2,ENABLED:3};lJ.messageId="b.FieldConfig";
var Es=function(){this.required=!1;this.allowedValue=null;this.stateOnIssues=1;this.type="TEXT";this.fieldSignificance="MINOR"};Es.prototype.isDate=function(){return"DATE"===this.type};Es.prototype.isText=function(){return"TEXT"===this.type};Es.prototype.isRepeated=function(){return["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};
var hl=function(a){var b=new Es;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 iJ(a.typedDefaultValue));b.required=!!a.required;b.fieldSignificance=a.fieldSignificance||"MINOR";b.allowedValue=a.allowedValue||null;b.stateOnIssues=sFb[a.stateOnIssues]||1;a=a.enabledOnIssues;b.enabledOnIssues=null==a?!0:a;return b};
var Pk=function(a){Z.call(this,a)};U(Pk,Z);Pk.prototype.getAccessLevel=function(){return X(this,1,0)};Pk.prototype.setAccessLevel=function(a){l(this,1,a)};Pk.prototype.toObject=function(){return tFb(void 0,this)};var tFb=function(a,b){if(null!=b){var c={accessLevel:n(p(b,1))};a&&(c.$jspbMessageInstance=b);return c}};Pk.messageId="b.AccessLimit";
var il=function(a){Z.call(this,a,-1,uFb)};U(il,Z);g=il.prototype;g.getCustomFieldId=function(){return kj(this,1)};g.setCustomFieldId=function(a){return l(this,1,a)};g.hasCustomFieldId=function(){return dj(this,1)};g.setTextValue=function(a){co(this,4,mJ,a)};g.getDateValue=function(){return yl(this,Tk,5,mJ)};g.setDateValue=function(a){yu(this,5,mJ,a)};g.setEnumValue=function(a){co(this,6,mJ,a)};g.setNumericValue=function(a){co(this,7,mJ,a)};g.getRepeatedTextValue=function(){return yl(this,kl,8,mJ)};
g.setRepeatedTextValue=function(a){yu(this,8,mJ,a)};g.getRepeatedDateValue=function(){return yl(this,ml,9,mJ)};g.setRepeatedDateValue=function(a){yu(this,9,mJ,a)};g.getRepeatedEnumValue=function(){return yl(this,kl,10,mJ)};g.setRepeatedEnumValue=function(a){yu(this,10,mJ,a)};g.getRepeatedNumericValue=function(){return yl(this,ll,11,mJ)};g.setRepeatedNumericValue=function(a){yu(this,11,mJ,a)};var kl=function(a){Z.call(this,a,-1,vFb)};U(kl,Z);kl.prototype.getValuesList=function(){return jb(this,1)};
kl.prototype.setValuesList=function(a){jl(this,1,a)};var ml=function(a){Z.call(this,a,-1,wFb)};U(ml,Z);ml.prototype.getValuesList=function(){return rb(this,Tk,1)};ml.prototype.setValuesList=function(a){Ab(this,1,a)};var ll=function(a){Z.call(this,a,-1,xFb)};U(ll,Z);ll.prototype.getValuesList=function(){return kb(this,1,Number)};ll.prototype.setValuesList=function(a){jl(this,1,a)};var uFb=[12],mJ=[4,5,6,7,8,9,10,11];il.prototype.toObject=function(){return yFb(void 0,this)};
var yFb=function(a,b){if(null!=b){var c={customFieldId:n(p(b,1)),displayValuesList:n(jb(b,12)),textValue:n(Rr(b,4,mJ)),dateValue:Hv(a,b.getDateValue()),enumValue:n(Rr(b,6,mJ)),numericValue:n(uu(b,qb(b,mJ,7))),repeatedTextValue:zFb(a,b.getRepeatedTextValue()),repeatedDateValue:AFb(a,b.getRepeatedDateValue()),repeatedEnumValue:zFb(a,b.getRepeatedEnumValue()),repeatedNumericValue:BFb(a,b.getRepeatedNumericValue())};a&&(c.$jspbMessageInstance=b);return c}},vFb=[1];
kl.prototype.toObject=function(){return zFb(void 0,this)};var zFb=function(a,b){if(null!=b){var c={valuesList:n(jb(b,1))};a&&(c.$jspbMessageInstance=b);return c}},wFb=[1];ml.prototype.toObject=function(){return AFb(void 0,this)};var AFb=function(a,b){if(null!=b){var c={valuesList:Cb(b.getValuesList(),Hv,a)};a&&(c.$jspbMessageInstance=b);return c}},xFb=[1];ll.prototype.toObject=function(){return BFb(void 0,this)};
var BFb=function(a,b){if(null!=b){var c={valuesList:n(kb(b,1,Number))};a&&(c.$jspbMessageInstance=b);return c}};
var nl=function(a){Z.call(this,a,-1,CFb)};U(nl,Z);g=nl.prototype;g.getCustomFieldId=function(){return kj(this,1)};g.setCustomFieldId=function(a){return l(this,1,a)};g.hasCustomFieldId=function(){return dj(this,1)};g.getComponentId=function(){return kj(this,2)};g.setComponentId=function(a){return l(this,2,a)};g.hasComponentId=function(){return dj(this,2)};g.getType=function(){return X(this,3,0)};g.setType=function(a){return l(this,3,a)};g.hasType=function(){return dj(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 dj(this,5)};g.getDescription=function(){return V(this,6)};g.setDescription=function(a){return l(this,6,a)};g.getTypedDefaultValue=function(){return m(this,il,10)};g.setTypedDefaultValue=function(a){Bb(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 CFb=[8];nl.prototype.toObject=function(){return nJ(void 0,this)};var nJ=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(To(b,4)),name:n(p(b,5)),description:n(p(b,6)),typedDefaultValue:yFb(a,b.getTypedDefaultValue()),allowedValueList:n(jb(b,8)),fieldSignificance:n(p(b,9)),stateOnIssues:n(p(b,11)),enabledOnIssues:n(To(b,12))};a&&(c.$jspbMessageInstance=b);return c}};
var ol=function(a){Z.call(this,a)};U(ol,Z);g=ol.prototype;g.getInherit=function(){return W(this,1)};g.setInherit=function(a){return mo(this,1,a)};g.getId=function(){return ej(this,2)};g.setId=function(a){return Uk(this,2,a)};g.getName=function(){return V(this,3)};g.setName=function(a){return vl(this,3,a)};var rqa=function(a,b){yu(a,4,xl,b)},Al=function(a){return yl(a,ql,5,xl)},tqa=function(a,b){yu(a,5,xl,b)};ol.prototype.getCustomFieldId=function(){return ej(this,100)};
ol.prototype.setCustomFieldId=function(a){return Uk(this,100,a)};var pl=function(a){Z.call(this,a)};U(pl,Z);var sqa=function(a,b){return nb(a,1,b,0)},ql=function(a){Z.call(this,a,-1,DFb)};U(ql,Z);ql.prototype.getOptionsList=function(){return rb(this,rl,1)};ql.prototype.setOptionsList=function(a){return Ab(this,1,a)};var rl=function(a){Z.call(this,a)};U(rl,Z);rl.prototype.getLabel=function(){return V(this,1)};rl.prototype.setLabel=function(a){return vl(this,1,a)};
rl.prototype.getValue=function(){return zl(this,2)};rl.prototype.setValue=function(a){return nb(this,2,a,0)};var xl=[4,5];ol.prototype.toObject=function(){return EFb(void 0,this)};var EFb=function(a,b){if(null!=b){var c={inherit:W(b,1),id:ej(b,2),name:V(b,3),numericSpec:FFb(a,yl(b,pl,4,xl)),enumSpec:GFb(a,Al(b)),aggregationType:X(b,6,0),customFieldId:ej(b,100)};a&&(c.$jspbMessageInstance=b);return c}},HFb={AGGREGATION_TYPE_UNSPECIFIED:0,SUM:1,MAX:2};
pl.prototype.toObject=function(){return FFb(void 0,this)};var FFb=function(a,b){if(null!=b){var c={multiplier:zl(b,1)};a&&(c.$jspbMessageInstance=b);return c}},DFb=[1];ql.prototype.toObject=function(){return GFb(void 0,this)};var GFb=function(a,b){if(null!=b){var c={optionsList:Cb(b.getOptionsList(),IFb,a)};a&&(c.$jspbMessageInstance=b);return c}};rl.prototype.toObject=function(){return IFb(void 0,this)};
var IFb=function(a,b){if(null!=b){var c={label:V(b,1),value:zl(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Fl=function(a){Z.call(this,a)};U(Fl,Z);g=Fl.prototype;g.getResourcePath=function(){return V(this,2)};g.setResourcePath=function(a){return l(this,2,a)};g.hasResourcePath=function(){return dj(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 oJ(void 0,this)};
var oJ=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}};Fl.messageId="b.ContentJudgement";
var JFb={PII_SEVERITY_UNSPECIFIED:0,NONE_DETECTED:1,PII:2,SPII:3};
var Il=function(a){Z.call(this,a)};U(Il,Z);Il.prototype.getSeverity=function(){return X(this,1,0)};Il.prototype.setSeverity=function(a){return l(this,1,a)};Il.prototype.toObject=function(){return KFb(void 0,this)};var KFb=function(a,b){if(null!=b){var c={severity:n(p(b,1))};a&&(c.$jspbMessageInstance=b);return c}};
var $l=function(a){Z.call(this,a)};U($l,Z);$l.prototype.toObject=function(){return LFb(void 0,this)};var LFb=function(a,b){if(null!=b){var c={piiVerdict:KFb(a,m(b,Il,1))};a&&(c.$jspbMessageInstance=b);return c}};
var Gl=function(a){Z.call(this,a)};U(Gl,Z);Gl.prototype.hasRetentionSelection=function(){return dj(this,1)};Gl.prototype.toObject=function(){return MFb(void 0,this)};var MFb=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 im=function(a){Z.call(this,a)};U(im,Z);g=im.prototype;g.getRetentionPeriod=function(){return m(this,jm,1)};g.setRetentionPeriod=function(a){Bb(this,1,a)};g.hasRetentionPeriod=function(){return lj(this,1)};g.getScheduledDeletionTime=function(){return m(this,sj,2)};g.setScheduledDeletionTime=function(a){Bb(this,2,a)};g.hasScheduledDeletionTime=function(){return lj(this,2)};g.toObject=function(){return pJ(void 0,this)};
var pJ=function(a,b){if(null!=b){var c={retentionPeriod:Pu(a,b.getRetentionPeriod()),scheduledDeletionTime:Vu(a,b.getScheduledDeletionTime())};a&&(c.$jspbMessageInstance=b);return c}};im.messageId="b.RetentionState";
var qJ=function(a){Z.call(this,a)};U(qJ,Z);qJ.prototype.getTeamId=function(){return ej(this,1)};qJ.prototype.setTeamId=function(a){return Uk(this,1,a)};qJ.prototype.getEffectiveSloEditPolicy=function(){return X(this,3,0)};qJ.prototype.toObject=function(){return NFb(this)};var NFb=function(a){if(null!=a)return{teamId:ej(a,1),sloEditPolicy:X(a,2,0),effectiveSloEditPolicy:X(a,3,0)}};
var Ll=function(a){Z.call(this,a)};U(Ll,Z);g=Ll.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 dj(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 OFb(void 0,this)};var OFb=function(a,b){if(null!=b){var c={inherit:n(To(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 Kl=function(a){Z.call(this,a)};U(Kl,Z);g=Kl.prototype;g.getStartTime=function(){return m(this,sj,1)};g.setStartTime=function(a){Bb(this,1,a)};g.getEndTime=function(){return m(this,sj,2)};g.setEndTime=function(a){Bb(this,2,a)};g.hasEndTime=function(){return lj(this,2)};g.getTargetTime=function(){return m(this,sj,3)};g.setTargetTime=function(a){Bb(this,3,a)};g.hasTargetTime=function(){return lj(this,3)};g.toObject=function(){return PFb(void 0,this)};
var PFb=function(a,b){if(null!=b){var c={startTime:Vu(a,b.getStartTime()),endTime:Vu(a,b.getEndTime()),targetTime:Vu(a,b.getTargetTime())};a&&(c.$jspbMessageInstance=b);return c}};
var km=function(a){Z.call(this,a)};U(km,Z);g=km.prototype;g.getAssignmentBounds=function(){return m(this,Kl,1)};g.setAssignmentBounds=function(a){Bb(this,1,a)};g.hasAssignmentBounds=function(){return lj(this,1)};g.getResponseBounds=function(){return m(this,Kl,2)};g.setResponseBounds=function(a){Bb(this,2,a)};g.hasResponseBounds=function(){return lj(this,2)};g.getClosureBounds=function(){return m(this,Kl,3)};g.setClosureBounds=function(a){Bb(this,3,a)};
g.hasClosureBounds=function(){return lj(this,3)};g.toObject=function(){return QFb(void 0,this)};var QFb=function(a,b){if(null!=b){var c={assignmentBounds:PFb(a,b.getAssignmentBounds()),responseBounds:PFb(a,b.getResponseBounds()),closureBounds:PFb(a,b.getClosureBounds())};a&&(c.$jspbMessageInstance=b);return c}};
var Sl=function(a){Z.call(this,a,-1,RFb)};U(Sl,Z);g=Sl.prototype;g.getEmailAddress=function(){return V(this,1)};g.setEmailAddress=function(a){return 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){jl(this,4,a)};var RFb=[4];
Sl.prototype.toObject=function(){return rJ(void 0,this)};var rJ=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 sJ=function(a){Z.call(this,a)};U(sJ,Z);sJ.prototype.getIssueId=function(){return kj(this,1)};sJ.prototype.setIssueId=function(a){return l(this,1,a)};sJ.prototype.setReason=function(a){l(this,2,a)};sJ.prototype.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),reason:n(p(this,2))}:void 0;return a};sJ.messageId="b.DeleteIssueRequest";
var bm=function(a){Z.call(this,a)};U(bm,Z);bm.prototype.getFieldName=function(){return V(this,1)};var ira=function(a,b){return l(a,1,b)};g=bm.prototype;g.getValue=function(){return V(this,2)};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return dj(this,2)};g.getActionType=function(){return X(this,3,0)};g.setActionType=function(a){l(this,3,a)};g.getCustomFieldValue=function(){return m(this,il,5)};g.setCustomFieldValue=function(a){return Bb(this,5,a)};
g.clearCustomFieldValue=function(){return Bb(this,5)};g.hasCustomFieldValue=function(){return lj(this,5)};g.toObject=function(){return SFb(void 0,this)};var SFb=function(a,b){if(null!=b){var c={fieldName:n(p(b,1)),value:n(p(b,2)),actionType:n(p(b,3)),customFieldValue:yFb(a,b.getCustomFieldValue())};a&&(c.$jspbMessageInstance=b);return c}};
var hm=function(a){Z.call(this,a)};U(hm,Z);g=hm.prototype;g.setVoteCount=function(a){l(this,1,a)};g.getCreatedTimeMicros=function(){return ej(this,2)};g.setCreatedTimeMicros=function(a){l(this,2,a)};g.getModifiedTimeMicros=function(){return ej(this,3)};g.setModifiedTimeMicros=function(a){l(this,3,a)};g.getSloStatus=function(){return m(this,km,6)};g.setSloStatus=function(a){Bb(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,im,8)};g.setRetentionState=function(a){Bb(this,8,a)};g.toObject=function(){return TFb(void 0,this)};
var TFb=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:QFb(a,b.getSloStatus()),sloId:n(p(b,7)),teamId:n(p(b,9)),retentionState:pJ(a,b.getRetentionState())};a&&(c.$jspbMessageInstance=b);return c}};
var Xl=function(a){Z.call(this,a,-1,UFb)};U(Xl,Z);g=Xl.prototype;g.getCreatedTimeMicros=function(){return ej(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 dj(this,3)};g.getVersion=function(){return ej(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 dj(this,5)};g.getStatus=function(){return X(this,6,0)};g.setStatus=function(a){return l(this,6,a)};g.hasStatus=function(){return dj(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){jl(this,35,a)};
g.setInProd=function(a){l(this,22,a)};g.setHotlistIdList=function(a){jl(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,$l,46)};g.setCommentContentVerdict=function(a){Bb(this,46,a)};g.hasCommentContentVerdict=function(){return lj(this,46)};g.getSloSnoozeUntil=function(){return m(this,sj,34)};g.setSloSnoozeUntil=function(a){Bb(this,34,a)};g.getEffort=function(){return m(this,ul,50)};g.setEffort=function(a){Bb(this,50,a)};
var UFb=[40,14,16,17,18,35,19,20,21,23,24,30];Xl.prototype.toObject=function(){return tJ(void 0,this)};
var tJ=function(a,b){if(null!=b){var c={authorUser:rJ(a,m(b,Sl,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:rJ(a,m(b,Sl,37)),assigneeUser:rJ(a,m(b,Sl,38)),verifierUser:rJ(a,m(b,Sl,39)),ccUsersList:Cb(rb(b,Sl,40),rJ,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(To(b,22)),hotlistIdList:n(jb(b,23)),customFieldList:Cb(rb(b,il,24),yFb,a),retention:n(p(b,42)),isDeleted:n(To(b,27)),deletionReason:n(p(b,28)),significanceOverride:n(p(b,29)),duplicateIssueIdList:n(jb(b,30)),isArchived:n(To(b,31)),comment:n(p(b,25)),formattingMode:n(p(b,45)),commentRedacted:n(To(b,49)),snapshotNumber:n(p(b,26)),lastCommentEditorUser:rJ(a,m(b,Sl,41)),commentLastModifiedAtMicros:n(p(b,
33)),commentVersion:n(p(b,43)),commentDeletionStatus:n(p(b,44)),commentContentVerdict:LFb(a,b.getCommentContentVerdict()),commentRetention:n(p(b,47)),commentRetentionState:pJ(a,m(b,im,48)),sloSnoozeUntil:Vu(a,b.getSloSnoozeUntil()),effort:zCb(a,b.getEffort())};a&&(c.$jspbMessageInstance=b);return c}};
var gm=function(a){Z.call(this,a)};U(gm,Z);g=gm.prototype;g.getStarred=function(){return W(this,1)};g.setStarred=function(a){l(this,1,a)};g.hasStarred=function(){return dj(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 VFb(void 0,this)};
var VFb=function(a,b){if(null!=b){var c={starred:n(To(b,1)),voted:n(To(b,2)),notificationSubscription:n(p(b,4)),lastViewedTimeMicros:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}};gm.messageId="b.IssueUserData";
var fm=function(a){Z.call(this,a,-1,WFb)};U(fm,Z);g=fm.prototype;g.getIssueId=function(){return kj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getUserData=function(){return m(this,gm,3)};g.setUserData=function(a){Bb(this,3,a)};g.getParentIssueIdsList=function(){return jb(this,8)};g.setParentIssueIdsList=function(a){jl(this,8,a)};g.getAccessLimit=function(){return m(this,Pk,5)};g.setAccessLimit=function(a){return Bb(this,5,a)};g.getVisibleFieldsList=function(){return rb(this,gl,6)};
g.setVisibleFieldsList=function(a){Ab(this,6,a)};g.getAncestorsMap=function(){return Zi(this,9,lm)};g.getChildIssueCount=function(){return ej(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,mCb,12)};var WFb=[2,8,6,12];fm.prototype.toObject=function(){return uJ(void 0,this)};
var uJ=function(a,b){if(null!=b){var c={issueId:n(p(b,1)),snapshotList:Cb(rb(b,Xl,2),tJ,a),userData:VFb(a,b.getUserData()),aggregatedData:TFb(a,m(b,hm,4)),parentIssueIdsList:n(jb(b,8)),accessLimit:tFb(a,b.getAccessLimit()),visibleFieldsList:Cb(b.getVisibleFieldsList(),kJ,a),majorModifiedTimeMicros:n(p(b,7)),ancestorsMap:Eb(b.getAncestorsMap(),a,xCb),childIssueCount:n(p(b,10)),isArchived:n(To(b,11)),relatedLinksList:Cb(b.getRelatedLinksList(),nCb,a)};a&&(c.$jspbMessageInstance=b);return c}};
var em=function(a){Z.call(this,a)};U(em,Z);g=em.prototype;g.getIssueId=function(){return kj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getPosition=function(){return ej(this,2)};g.setPosition=function(a){return l(this,2,a)};g.getIssue=function(){return m(this,fm,3)};g.setIssue=function(a){Bb(this,3,a)};g.toObject=function(){return XFb(this)};var XFb=function(a){if(null!=a)return{issueId:n(p(a,1)),position:n(p(a,2)),issue:uJ(void 0,a.getIssue())}};em.messageId="b.HotlistIssue";
var ZFb=function(a){Z.call(this,a,-1,YFb)};U(ZFb,Z);g=ZFb.prototype;g.getSnapshot=function(){return m(this,Xl,1)};g.setSnapshot=function(a){Bb(this,1,a)};g.getAttachmentsList=function(){return kb(this,2,ab)};g.setAttachmentsList=function(a){jl(this,2,a)};g.getTemplateId=function(){return kj(this,4)};g.setTemplateId=function(a){l(this,4,a)};g.getContentJudgement=function(){return m(this,Fl,5)};g.setContentJudgement=function(a){return Bb(this,5,a)};var YFb=[2,3];
ZFb.prototype.toObject=function(){var a=null!=this?{snapshot:tJ(void 0,this.getSnapshot()),attachmentsList:Fb(this.getAttachmentsList()),attachmentStringsList:n(jb(this,3)),templateId:n(p(this,4)),contentJudgement:oJ(void 0,this.getContentJudgement())}:void 0;return a};
var cm=function(a){Z.call(this,a,-1,$Fb)};U(cm,Z);g=cm.prototype;g.getIssueId=function(){return kj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getActionsList=function(){return rb(this,bm,2)};g.setActionsList=function(a){Ab(this,2,a)};g.getAttachmentsList=function(){return kb(this,3,ab)};g.setAttachmentsList=function(a){jl(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 $Fb=[2,3,5];cm.prototype.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),actionsList:Cb(this.getActionsList(),SFb),attachmentsList:Fb(this.getAttachmentsList()),significanceOverride:n(p(this,4)),attachmentStringsList:n(jb(this,5)),commentDisplayOverride:n(p(this,6))}:void 0;return a};
var vJ=function(a){Z.call(this,a)};U(vJ,Z);vJ.prototype.getCount=function(){return ej(this,2)};vJ.prototype.setCount=function(a){l(this,2,a)};vJ.prototype.getNextPageToken=function(){return V(this,5)};vJ.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 fra=function(a){Z.call(this,a)};U(fra,Z);g=fra.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 dj(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 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 dj(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 mm=function(a){Z.call(this,a,-1,aGb)};U(mm,Z);g=mm.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 aGb=[2];
mm.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 am=function(a){Z.call(this,a)};U(am,Z);g=am.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};am.messageId="b.UnCcUserActionRequest";
var wJ=function(a){Z.call(this,a)};U(wJ,Z);wJ.prototype.getIssueId=function(){return kj(this,1)};wJ.prototype.setIssueId=function(a){return l(this,1,a)};wJ.prototype.toObject=function(){var a=null!=this?{issueId:n(p(this,1))}:void 0;return a};wJ.messageId="b.UndeleteIssueRequest";
var dm=function(a){Z.call(this,a,-1,bGb)};U(dm,Z);dm.prototype.setAddHotlistIdsList=function(a){jl(this,1,a)};dm.prototype.setRemoveHotlistIdsList=function(a){jl(this,2,a)};var nra=function(a,b){Bb(a,3,b)};dm.prototype.setSignificanceOverride=function(a){l(this,4,a)};dm.prototype.getCommentDisplayOverride=function(){return X(this,5,0)};dm.prototype.setCommentDisplayOverride=function(a){l(this,5,a)};var bGb=[1,2];
dm.prototype.toObject=function(){var a=null!=this?{addHotlistIdsList:n(jb(this,1)),removeHotlistIdsList:n(jb(this,2)),hotlistIssue:XFb(m(this,em,3)),significanceOverride:n(p(this,4)),commentDisplayOverride:n(p(this,5))}:void 0;return a};
var sra=function(a){Z.call(this,a)};U(sra,Z);g=sra.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 nm=function(a){Z.call(this,a)};U(nm,Z);nm.prototype.getTeamId=function(){return ej(this,1)};nm.prototype.setTeamId=function(a){return Uk(this,1,a)};nm.prototype.toObject=function(){return cGb(void 0,this)};var cGb=function(a,b){if(null!=b){var c={teamId:ej(b,1),score:zl(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var om=function(a){Z.call(this,a)};U(om,Z);g=om.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 dGb(void 0,this)};var dGb=function(a,b){if(null!=b){var c={inherit:n(To(b,1)),id:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var pm=function(a){Z.call(this,a,-1,eGb)};U(pm,Z);var eGb=[1,2,4];pm.prototype.toObject=function(){return fGb(void 0,this)};var fGb=function(a,b){if(null!=b){var c={componentPathIdList:n(jb(b,1)),componentPathNameList:n(jb(b,2)),allCustomFieldList:Cb(rb(b,nl,4),nJ,a)};a&&(c.$jspbMessageInstance=b);return c}};
var rm=function(a){Z.call(this,a,-1,gGb)};U(rm,Z);g=rm.prototype;g.getComponentId=function(){return kj(this,1)};g.setComponentId=function(a){return l(this,1,a)};g.hasComponentId=function(){return dj(this,1)};g.getName=function(){return V(this,3)};g.setName=function(a){return l(this,3,a)};g.hasName=function(){return dj(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){jl(this,8,a)};g.getAccessLimit=function(){return m(this,Pk,12)};g.setAccessLimit=function(a){return Bb(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,Ll,19)};g.setSlo=function(a){Bb(this,19,a)};g.hasSlo=function(){return lj(this,19)};g.getRetentionSettings=function(){return m(this,Gl,21)};
g.setRetentionSettings=function(a){Bb(this,21,a)};g.hasRetentionSettings=function(){return lj(this,21)};g.getTeam=function(){return m(this,om,22)};g.setTeam=function(a){Bb(this,22,a)};g.hasTeam=function(){return lj(this,22)};g.getEffortSpec=function(){return m(this,ol,24)};g.getTeamSuggestionsList=function(){return rb(this,nm,25)};g.setTeamSuggestionsList=function(a){Ab(this,25,a)};var gGb=[6,7,8,9,25];rm.prototype.toObject=function(){return xJ(void 0,this)};
var xJ=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(To(b,5)),codenameList:n(jb(b,6)),customFieldIdList:n(jb(b,7)),hotlistIdList:n(jb(b,8)),templateIdList:n(jb(b,9)),componentPathInfo:fGb(a,m(b,pm,10)),accessLimit:tFb(a,b.getAccessLimit()),emailAlias:n(p(b,13)),userHasEditAccess:n(To(b,14)),commentEditState:n(p(b,15)),sloId:n(p(b,16)),effectiveSloId:n(p(b,17)),defaultTemplateId:n(p(b,18)),slo:OFb(a,b.getSlo()),bugscopeSloId:n(p(b,
20)),retentionSettings:MFb(a,b.getRetentionSettings()),team:dGb(a,b.getTeam()),fieldOrdering:n(p(b,23)),effortSpec:EFb(a,b.getEffortSpec()),teamSuggestionsList:Cb(b.getTeamSuggestionsList(),cGb,a)};a&&(c.$jspbMessageInstance=b);return c}};rm.messageId="b.Component";
var sm=function(a){Z.call(this,a)};U(sm,Z);g=sm.prototype;g.getTemplateId=function(){return ej(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 dj(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 dj(this,3)};
g.getDescription=function(){return V(this,4)};g.setDescription=function(a){return l(this,4,a)};g.getSnapshot=function(){return m(this,Xl,5)};g.setSnapshot=function(a){Bb(this,5,a)};g.toObject=function(){return hGb(void 0,this)};var hGb=function(a,b){if(null!=b){var c={templateId:n(p(b,1)),componentId:n(p(b,2)),pb_default:n(To(b,6)),name:n(p(b,3)),description:n(p(b,4)),snapshot:tJ(a,b.getSnapshot())};a&&(c.$jspbMessageInstance=b);return c}};
var yJ=function(a){Z.call(this,a)};U(yJ,Z);yJ.prototype.getSlo=function(){return m(this,Ll,1)};yJ.prototype.setSlo=function(a){Bb(this,1,a)};yJ.prototype.hasSlo=function(){return lj(this,1)};yJ.prototype.toObject=function(){var a=null!=this?{slo:OFb(void 0,this.getSlo())}:void 0;return a};yJ.messageId="b.UpdateComponentSloRequest";
var zJ=function(a){Z.call(this,a)};U(zJ,Z);zJ.prototype.getTeam=function(){return m(this,om,1)};zJ.prototype.setTeam=function(a){Bb(this,1,a)};zJ.prototype.hasTeam=function(){return lj(this,1)};zJ.prototype.toObject=function(){var a=null!=this?{team:dGb(void 0,this.getTeam())}:void 0;return a};zJ.messageId="b.UpdateComponentTeamRequest";
var iGb=function(){};iGb.prototype.get=function(a,b){return this.request(Object.assign({},b||{},{method:"get",url:a}))};iGb.prototype.delete=function(a,b){return this.request(Object.assign({},b||{},{method:"delete",url:a}))};iGb.prototype.post=function(a,b,c){return this.request(Object.assign({},c||{},{method:"post",url:a,data:b}))};var AJ=function(a){this.http=a};U(AJ,iGb);
AJ.prototype.request=function(a){a=Kra(a);a=this.http.request(a).pipe(rf(function(b){return 4===b.type}),R(function(b){return b}));return(0,S.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})})};AJ.\u0275fac=function(a){return new (a||AJ)(t(TE))};
AJ.\u0275prov=dc({token:AJ,factory:AJ.\u0275fac,providedIn:"root"});
var jGb=function(a){Z.call(this,a)};U(jGb,Z);jGb.prototype.toObject=function(){var a=null!=this?{component:xJ(void 0,m(this,rm,1))}:void 0;return a};jGb.messageId="b.CreateComponentResponse";
var lGb=function(a){Z.call(this,a,-1,kGb)};U(lGb,Z);var kGb=[1];lGb.prototype.toObject=function(){var a=null!=this?{componentList:Cb(rb(this,rm,1),xJ)}:void 0;return a};lGb.messageId="b.ListComponentsResponse";
var mGb=function(){},nGb=function(){},BJ=function(a){this.http=a};U(BJ,nGb);BJ.prototype.fetchComponent=function(a,b){b=void 0===b?{}:b;if(b.checkEditAccess)throw Error("Gc");return this.http.get("action/components/"+a).pipe(R(Jra))};
BJ.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(R(function(c){return Array.isArray(c)?c.map(vm).filter(um):[]}));if(a.query){var b={params:{query:a.query}};a.includearchived&&(b.params.includearchived=!0);return this.http.get("action/components",b).pipe(R(function(c){return Array.isArray(c)?c.map(vm).filter(um):[]}))}return(0,S.of)([])};BJ.\u0275fac=function(a){return new (a||BJ)(t(TE))};
BJ.\u0275prov=dc({token:BJ,factory:BJ.\u0275fac,providedIn:"root"});var CJ=function(a){this.$http=a};U(CJ,mGb);g=CJ.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 tm(c.data)})};
g.query=function(a){return this.$http.get("action/components",{params:a}).then(function(b){return b.data.map(tm)})};g.create=function(a){return this.$http.post("action/components",a).then(function(b){return tm(b.data)})};g.update=function(a){var b=Hra(a);return this.$http.post("action/components/"+a.componentId,b).then(function(c){return tm(c.data)})};g.move=function(a,b){return this.$http.post("action/components/"+a+"/move",{},{params:{parentId:b}}).then(function(c){return tm(c.data)})};
g.updateSlo=function(a,b){return this.$http.post("action/components/"+a+"/updateSlo",{slo:b}).then(function(c){return tm(c.data)})};g.updateTeam=function(a,b){return this.$http.post("action/components/"+a+"/updateTeam",{team:b}).then(function(c){return tm(c.data)})};CJ.\u0275fac=function(a){return new (a||CJ)(t(AJ))};CJ.\u0275prov=dc({token:CJ,factory:CJ.\u0275fac,providedIn:"root"});var DJ=function(a){this.executor=a};U(DJ,nGb);g=DJ.prototype;
g.get=function(a){return this.query({id:[a]}).pipe(R(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:rm}).pipe(R(qm))};
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:lGb}).pipe(R(Ira))};g.create=function(a){a=Bra(a);return this.executor.post({url:"action/components",body:a,responseConstructor:jGb}).pipe(R(function(b){return qm(m(b,rm,1))}))};
g.update=function(a){var b=a.componentId,c=new rm;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);jl(c,7,d)}if(a.componentPathInfo){var e=a.componentPathInfo;d=new pm;if(e.componentPathId){var f=e.componentPathId.map(String);jl(d,1,f)}e.componentPathName&&(f=e.componentPathName.map(String),jl(d,2,f));e.allCustomField&&(e=e.allCustomField.map(qqa),
Ab(d,4,e));Bb(c,10,d)}a.accessLimit&&c.setAccessLimit(Wpa(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(Fqa(a.slo));l(c,20,a.bugscopeSloId);a.retentionSettings&&c.setRetentionSettings(Aqa(a.retentionSettings));a.fieldOrdering&&l(c,23,uAb[a.fieldOrdering]);a.effortSpec&&(d=tl(a.effortSpec),Bb(c,24,d));a.team&&c.setTeam(xra(a.team));var h;c.setTeamSuggestionsList((null!=
(h=a.teamSuggestions)?h:[]).map(wra));return this.executor.post({url:"action/components/"+b,body:c,responseConstructor:rm}).pipe(R(qm))};g.move=function(a,b){return this.executor.post({url:"action/components/"+a+"/move",body:null,options:{params:{parentId:String(b)}},responseConstructor:rm}).pipe(R(qm))};g.updateSlo=function(a,b){var c=new yJ;c.setSlo(Fqa(b));return this.executor.post({url:"action/components/"+a+"/updateSlo",body:c,responseConstructor:rm}).pipe(R(qm))};
g.updateTeam=function(a,b){var c=new zJ;c.setTeam(xra(b));return this.executor.post({url:"action/components/"+a+"/updateTeam",body:c,responseConstructor:rm}).pipe(R(qm))};DJ.\u0275fac=function(a){return new (a||DJ)(t(nI))};DJ.\u0275prov=dc({token:DJ,factory:DJ.\u0275fac,providedIn:"root"});var EJ=function(a){this.observableApi=a};U(EJ,mGb);g=EJ.prototype;g.get=function(a){return(0,S.firstValueFrom)(this.observableApi.get(a))};
g.getChildren=function(a,b){return(0,S.firstValueFrom)(this.observableApi.getChildren(a,void 0===b?!1:b))};g.fetchComponent=function(a,b){return(0,S.firstValueFrom)(this.observableApi.fetchComponent(a,b))};g.query=function(a){return(0,S.firstValueFrom)(this.observableApi.query(a))};g.create=function(a){return(0,S.firstValueFrom)(this.observableApi.create(a))};g.update=function(a){return(0,S.firstValueFrom)(this.observableApi.update(a))};
g.move=function(a,b){return(0,S.firstValueFrom)(this.observableApi.move(a,b))};g.updateSlo=function(a,b){return(0,S.firstValueFrom)(this.observableApi.updateSlo(a,b))};g.updateTeam=function(a,b){return(0,S.firstValueFrom)(this.observableApi.updateTeam(a,b))};EJ.\u0275fac=function(a){return new (a||EJ)(t(DJ))};EJ.\u0275prov=dc({token:EJ,factory:EJ.\u0275fac,providedIn:"root"});
var FJ=function(a,b){this.data=a;this.cfg=b;this.lastValidated=Date.now()},GJ=function(a){return Date.now()-a.lastValidated};FJ.prototype.isFresh=function(){return GJ(this)<this.cfg.freshUntil};FJ.prototype.isAncient=function(){return GJ(this)>this.cfg.ancientAfter};FJ.prototype.getStatus=function(){return this.isFresh()?"fresh":this.isAncient()?"ancient":"uncertain"};FJ.prototype.toString=function(){var a=String(this.data);return Math.ceil(GJ(this)/1E3)+"s old -- "+a};
var oGb=function(a){this.cfg=a;this.cache=new Map},pGb=function(a,b){a=HJ(a,b);return null==a?Infinity:a},HJ=function(a,b){return(a=a.get(b,!0))?GJ(a):void 0};oGb.prototype.isFresh=function(a){return pGb(this,a)<this.cfg.freshUntil};var qGb=function(a,b){return pGb(a,b)<=a.cfg.ancientAfter};g=oGb.prototype;g.isAncient=function(a){return GJ(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 FJ(b,this.cfg))};g.touch=function(a){var b=this.cache.get(a);b&&this.cache.set(a,new FJ(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 rGb=function(){},sGb={trustMemory:!0},tGb=function(){},$ma=["startIndex","totalSize","curPageToken","nextPageToken","prevPageToken"],uGb=function(a){this.ids=[];Object.assign(this,a)};U(uGb,tGb);uGb.prototype.toString=function(){return JSON.stringify(Object.assign({},this,{ids:"["+this.ids.join(",")+"]"}))};
var vGb={freshUntil:1E4,ancientAfter:792E5},JJ=function(a){var b=this;a=void 0===a?{}:a;this.error$=new S.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("Hc`"+b.idKey+"`"+c);throw Error("Ic`"+c);};this.vals$ById=new Map;this.collections$ById=new Map;this.sets$ByLabel=new Map;this.inFlightGets$=new S.BehaviorSubject(Object.freeze({}));
this.inFlightSaves$=new S.BehaviorSubject(Object.freeze({}));this.getting$=this.inFlightGets$.pipe(R(zm));this.saving$=this.inFlightSaves$.pipe(R(zm));this.thinking$=(0,S.combineLatest)(this.getting$,this.saving$).pipe(R(function(c){var d=r(c);c=d.next().value;d=d.next().value;return c||d}),Pf());this.gotOne=function(c){return function(d,e){e=void 0===e?{}:e;e=e.doNotTrack?rGb:IJ({label:c,value:HJ(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):Rk("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=wGb(b,c))?e.next(d):Sk("gotSet("+c+"), but no channel is set up")}};this.gotAll=function(c){return function(d){for(var e=IJ({label:c,value:HJ(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,Zma);b.collectiveMemory.set(c,f);e("all-isChanged");(e=b.collections$ById.get(c))?(d=xGb(b,f,d.results),e.next(d)):Ypa(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&&Sk("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?zm(b.inFlightSaves):!!b.inFlightSaves[c]};this.isSaving$=function(c){return b.inFlightSaves$.pipe(R(function(d){return!!d[c]}),Pf())};this.isGetting=function(c){return null==c?zm(b.inFlightGets):!!b.inFlightGets[c]};this.watchOne=this.watch;this.save=function(c){var d=b.idForRecord(c);if(null==d)throw Error("Jc");c=b.doSave(c).pipe(Of(0,S.asapScheduler),yha(),
Ze());b.setIsSaving(d);c.subscribe(b.gotOne(d),b.gotErr(d,b.inFlightSaves$),yGb(d,b.inFlightSaves$));return c};this.setIsSaving=function(c){var d={};Mra(b.inFlightSaves$,(d[c]=!0,d))};this.clearIsSaving=function(c){Am(b.inFlightSaves$,c)};this.setIsGetting=function(c){var d={};Mra(b.inFlightGets$,(d[c]=!0,d))};this.clearIsGetting=function(c){Am(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("Kc");b.gotOne(e)(c,Object.assign({},
{doNotTrack:!0},d))}};this.memory=new oGb(Object.assign({},vGb,a));this.collectiveMemory=new oGb(Object.assign({},vGb,a))};g=JJ.prototype;g.fetchOne=function(){throw Error("Lc");};g.fetchAll=function(){throw Error("Mc");};g.fetchSet=function(){throw Error("Nc");};g.doSave=function(){throw Error("Oc");};g.copy=function(){throw Error("Pc");};g.isEqual=function(a,b){return Zma(a,b,100)};
var AGb=function(a,b,c){c=void 0===c?{}:c;var d=c.trustMemory,e=c.trustUncertainMemory;c=IJ({label:b,value:HJ(a.memory,b)});d=d&&a.memory.isFresh(b);e=e&&qGb(a.memory,b);if(d||e)return c("one-trustMemory"),c=a.memory.getData(b),Rra(c);if(a.inFlightGets[b])return c("one-inFlight"),c=zGb(a,b),Qra(c).then(Rra);c("one-fetch");var f=a.fetchOne(b).pipe(Of(0,S.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)},yGb(b,a.inFlightGets$))})},DGb=function(a,b,c){c=(void 0===c?{}:c).trustMemory;var d=[].concat(u(b)).sort().join("-"),e=IJ({label:d});if(c&&BGb(a,b))e("set-trustMemory");else if(CGb(a,b))e("set-inFlight");else{e("set-fetch");c=a.fetchSet(b).pipe(Of(0,S.asapScheduler));e={};e=(e[d]=!0,e);for(var f=r(b),h=f.next();!h.done;h=f.next())e[h.value]=!0;Mra(a.inFlightGets$,e);c.subscribe(a.gotSet(b),function(k){Nra(a.inFlightGets$,b);a.gotErr(d,a.inFlightGets$)(k)},function(){Nra(a.inFlightGets$,[d].concat(u(b)))})}},
BGb=function(a,b){if(!b.every(function(d){return a.memory.isFresh(d)}))return!1;var c=EGb(a,b);if(c.length!==b.length)return Sk("broadcastFresh("+b+"): cached records ("+c.length+") !== ids ("+b.length+")"),!1;wGb(a,b).next(c);return!0},CGb=function(a,b){if(!b.every(function(d){return!!a.inFlightGets[d]}))return!1;var c=b.map(function(d){return zGb(a,d)});if(c.length!==b.length)return Sk("broadcastSetIfInFlight("+b+"): single-record channels ("+c.length+") !== ids ("+b.length+")"),!1;(0,S.combineLatest)(c).pipe(Qf()).subscribe(function(d){wGb(a,
b).next(d.filter(bl))});return!0};
JJ.prototype.getAll=function(a,b){var c=(void 0===b?{}:b).trustMemory;b=Bm(a);var d=IJ({label:b,value:HJ(this.collectiveMemory,b)});if(c&&this.collectiveMemory.isFresh(b))return d("all-trustMemory"),a=this.collectiveMemory.getData(b),b=EGb(this,a.ids),a=xGb(this,a,b),Promise.resolve(a);if(this.inFlightGets[b])return d("all-inFlight"),a=FGb(this,a),Qra(a);d("all-fetch");c=this.fetchAll(a).pipe(Of(0,S.asapScheduler));this.setIsGetting(b);c.subscribe(this.gotAll(b),this.gotErr(b,this.inFlightGets$),
yGb(b,this.inFlightGets$));a=FGb(this,a);return Qra(a)};JJ.prototype.gotErr=function(a,b){var c=this;return function(d){d=Object.assign({},{idOrKey:a},d);Zpa(a+" gotErr()",d);Am(b,a);JSON.stringify(d,null,2);c.error$.next(d)}};var yGb=function(a,b){return function(){Am(b,a)}};JJ.prototype.normalize=function(a){var b=a.results.map(this.idForRecord);return new uGb(Object.assign({},Pra(a),{ids:b}))};
var xGb=function(a,b,c){a=b.ids.map(a.dereferenceOne(c)).filter(Boolean);return Object.assign({},Pra(b),{results:a})},EGb=function(a,b){return b.map(function(c){return a.memory.getData(c)}).filter(bl)},FGb=function(a,b){b=Bm(b);return Ora(a.collections$ById,b,new S.ReplaySubject(1))},wGb=function(a,b){b=[].concat(u(b)).sort().join("-");return Ora(a.sets$ByLabel,b,new S.ReplaySubject(1))},zGb=function(a,b,c){var d=new S.ReplaySubject(1);null!=c&&d.next(c);return Ora(a.vals$ById,b,d)};
JJ.prototype.watch=function(a,b){b=void 0===b?sGb:b;if(null==a)return(0,S.of)();"number"===typeof a&&(a=String(a));var c=zGb(this,a,this.memory.getData(a));AGb(this,a,b).catch(function(){});return Plb(c)};
var KJ=function(a,b){var c=void 0===c?sGb:c;if(0===b.length)return(0,S.of)([]);b=b.map(function(e){return"number"===typeof e?String(e):e});var d=wGb(a,b);DGb(a,b,c);return d},GGb=function(a,b){var c=void 0===c?sGb:c;b=Object.assign({},a.defaultQuery,b);var d=FGb(a,b);a.getAll(b,c);return Plb(d)},it=function(a,b){return null==b?HGb():AGb(a,String(b))},LJ=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(Bm(b))};JJ.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(Bm(a))};var MJ=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)};
li.Object.defineProperties(JJ.prototype,{inFlightGets:{configurable:!0,enumerable:!0,get:function(){return this.inFlightGets$.getValue()}},inFlightSaves:{configurable:!0,enumerable:!0,get:function(){return this.inFlightSaves$.getValue()}}});var IJ=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(){}},HGb=function(){return new Promise(function(){})};
var NJ=function(a){JJ.call(this,{freshUntil:12E4,ancientAfter:6048E5});this.batchedComponentApi=a;this.recordType="component";this.idKey="componentId"};U(NJ,JJ);NJ.prototype.fetchOne=function(a){return this.batchedComponentApi.get(a)};NJ.prototype.fetchSet=function(a){var b=this;return(0,S.combineLatest)(a.map(function(c){return b.fetchOne(c)})).pipe(R(function(c){return c.filter(bl)}))};NJ.\u0275fac=function(a){return new (a||NJ)(t(OJ))};NJ.\u0275prov=dc({token:NJ,factory:NJ.\u0275fac,providedIn:"root"});
var Sra={QA:124156,NIGHTLY:190923,PROD:190923},OJ=function(a,b){var c=this;this.observableComponentApi=a;this.batchApiAdapter=b;this.get=this.batchApiAdapter.adapt({bufferTimeMs:0,call:function(d){return c.call(d)},split:function(d,e){return c.splitBatch(d,e)}})};
OJ.prototype.call=function(a){return 1===a.size?this.observableComponentApi.fetchComponent([].concat(u(a))[0],{}).pipe(R(function(b){return new Map(b?[[b.componentId,b]]:[])})):this.observableComponentApi.query({id:[].concat(u(a))}).pipe(R(function(b){return new Map(b.map(function(c){return[c.componentId,c]}))}))};OJ.prototype.splitBatch=function(a,b){return b.get(Number(a))};OJ.\u0275fac=function(a){return new (a||OJ)(t(nGb),t(hJ))};OJ.\u0275prov=dc({token:OJ,factory:OJ.\u0275fac,providedIn:"root"});
var JGb=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]=hl(a.customFieldMap[d]);a.customFieldMap=b;return a},KGb=function(a,b,c){if(!(200<=c&&299>=c&&a.issue&&a.issue.snapshot))return a;Vra(a.issue);return a},LGb=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())Vra(c.value);return a},MGb=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())Vra(b[d.value]);return a},NGb=function(a){var b=a.stateOnIssues;return Object.assign({},a,{stateOnIssues:b?kqa[b]:null})};
var PGb=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$1653:a.$jscomp$loop$prop$k$1653},b=c.next())a.$jscomp$loop$prop$k$1653=b.value,this[a.$jscomp$loop$prop$k$1653]=function(e){return function(f,h){return OGb(d,e.$jscomp$loop$prop$k$1653,f,h)}}(a)},QGb=function(a,b,c,d){b=a.actions[b];var e,f=null!=(e=b.url)?e:a.path;c=r(Wra(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}},OGb=function(a,b,c,d){var e=QGb(a,b,c,d);return a.http.request(Zra(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 RGb=function(a,b){this.http=a;this.path=b;this.actions={}};RGb.prototype.with=function(a,b){if(Object.keys(this.actions).includes(a))throw Error("Qc`"+a);this.actions[a]=b;return this};
var PJ=function(a,b){b=void 0===b?{}:b;return a.with("get",Object.assign({},{method:"GET"},b))},SGb=function(a){var b=void 0===b?{}:b;return a.with("query",Object.assign({},{method:"GET"},b))},TGb=function(a,b){b=void 0===b?{}:b;return a.with("save",Object.assign({},{method:"POST"},b))},UGb=function(a,b){b=void 0===b?{}:b;return a.with("update",Object.assign({},{method:"POST"},b))},VGb=function(a){var b=void 0===b?{}:b;return a.with("delete",Object.assign({},{method:"DELETE"},b))},WGb=function(a,
b){b=void 0===b?{}:b;return a.with("create",Object.assign({},{method:"POST"},b))};RGb.prototype.build=function(){return new PGb(this.http,this.path,this.actions)};var QJ=function(a){this.http=a},RJ=function(a,b){return new RGb(a.http,b)},SJ=function(a,b,c){return TGb(RJ(a,b),c).build()};QJ.prototype.only=function(a,b,c){return RJ(this,a).with(b,c).build()};QJ.\u0275fac=function(a){return new (a||QJ)(t(AJ))};QJ.\u0275prov=dc({token:QJ,factory:QJ.\u0275fac,providedIn:"root"});
var TJ=function(a){Z.call(this,a)};U(TJ,Z);TJ.prototype.getSnapshot=function(){return m(this,Xl,1)};TJ.prototype.setSnapshot=function(a){Bb(this,1,a)};TJ.prototype.toObject=function(){var a=null!=this?{snapshot:tJ(void 0,this.getSnapshot()),customFieldMapMap:Eb(Zi(this,2,nl),void 0,nJ)}:void 0;return a};TJ.messageId="b.IssueTemplateResponse";
var YGb=function(a){Z.call(this,a,-1,XGb)};U(YGb,Z);var XGb=[1];YGb.prototype.toObject=function(){var a=null!=this?{templatesList:Cb(rb(this,sm,1),hGb)}:void 0;return a};YGb.messageId="b.ListTemplatesResponse";
var UJ=function(a){Z.call(this,a)};U(UJ,Z);UJ.prototype.toObject=function(){var a=null!=this?{template:hGb(void 0,m(this,sm,1))}:void 0;return a};UJ.messageId="b.TemplateResponse";
var VJ=function(){},WJ=function(a){this.apiResourceFactory=a;this.templateApi=VGb(UGb(WGb(SGb(PJ(RJ(this.apiResourceFactory,"action/components/:componentId/templates/:templateId")))))).build();this.issueTemplateApi=PJ(RJ(this.apiResourceFactory,"action/components/:componentId/issue_template"),{transformResponse:JGb}).build()};U(WJ,VJ);g=WJ.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})};WJ.\u0275fac=function(a){return new (a||WJ)(t(QJ))};WJ.\u0275prov=dc({token:WJ,factory:WJ.\u0275fac,providedIn:"root"});
var XJ=function(a){this.executor=a};g=XJ.prototype;g.get=function(a,b){return this.executor.get({url:"action/components/"+a+"/templates/"+b,responseConstructor:UJ}).pipe(R($ra))};g.query=function(a){return this.executor.get({url:"action/components/"+a+"/templates",responseConstructor:YGb}).pipe(R(asa))};g.create=function(a,b){b=Fra(b);return this.executor.post({url:"action/components/"+a+"/templates",responseConstructor:UJ,body:b}).pipe(R($ra))};
g.update=function(a,b,c){c=Fra(c);return this.executor.post({url:"action/components/"+a+"/templates/"+b,responseConstructor:UJ,body:c}).pipe(R($ra))};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:TJ,options:{params:{templateId:String(b)}}}).pipe(R(Gra))};XJ.\u0275fac=function(a){return new (a||XJ)(t(nI))};
XJ.\u0275prov=dc({token:XJ,factory:XJ.\u0275fac,providedIn:"root"});var YJ=function(a){this.observableApi=a};U(YJ,VJ);g=YJ.prototype;g.get=function(a,b){return(0,S.firstValueFrom)(this.observableApi.get(a,b))};g.query=function(a){return(0,S.firstValueFrom)(this.observableApi.query(a))};g.create=function(a,b){return(0,S.firstValueFrom)(this.observableApi.create(a,b))};g.update=function(a,b,c){return(0,S.firstValueFrom)(this.observableApi.update(a,b,c))};
g.delete=function(a,b){return(0,S.firstValueFrom)(this.observableApi.delete(a,b))};g.getIssueTemplate=function(a,b){return(0,S.firstValueFrom)(this.observableApi.getIssueTemplate(a,b))};YJ.\u0275fac=function(a){return new (a||YJ)(t(XJ))};YJ.\u0275prov=dc({token:YJ,factory:YJ.\u0275fac,providedIn:"root"});
var ZJ=function(a){Z.call(this,a,-1,ZGb)};U(ZJ,Z);ZJ.prototype.getIssueId=function(){return kj(this,1)};ZJ.prototype.setIssueId=function(a){return l(this,1,a)};ZJ.prototype.getAttachmentsList=function(){return kb(this,2,ab)};ZJ.prototype.setAttachmentsList=function(a){jl(this,2,a)};var Hm=function(a){Z.call(this,a)};U(Hm,Z);Hm.prototype.getContentJudgement=function(){return m(this,Fl,2)};Hm.prototype.setContentJudgement=function(a){return Bb(this,2,a)};var ZGb=[2,3];
ZJ.prototype.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),attachmentsList:Fb(this.getAttachmentsList()),attachmentsWithJudgementsList:Cb(rb(this,Hm,3),$Gb)}:void 0;return a};Hm.prototype.toObject=function(){return $Gb(void 0,this)};var $Gb=function(a,b){if(null!=b){var c={attachment:Fb(Gm(b,1)),contentJudgement:oJ(a,b.getContentJudgement())};a&&(c.$jspbMessageInstance=b);return c}};
var aHb=function(a){Z.call(this,a)};U(aHb,Z);g=aHb.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 ej(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 cHb=function(a){Z.call(this,a,-1,bHb)};U(cHb,Z);g=cHb.prototype;g.setSignificanceOverride=function(a){l(this,3,a)};g.setIssueIdsList=function(a){jl(this,1,a)};g.addIssueIds=function(a){ob(this,1,a)};g.getActionsList=function(){return rb(this,bm,2)};g.setActionsList=function(a){Ab(this,2,a)};var Zm=function(a){Z.call(this,a,-1,dHb)};U(Zm,Z);Zm.prototype.getActionsList=function(){return rb(this,bm,1)};Zm.prototype.setActionsList=function(a){Ab(this,1,a)};
Zm.prototype.setIssueIdsList=function(a){jl(this,2,a)};Zm.prototype.addIssueIds=function(a){ob(this,2,a)};var bHb=[4,1,2];cHb.prototype.toObject=function(){var a=null!=this?{bulkEditOpsList:Cb(rb(this,Zm,4),eHb),significanceOverride:n(p(this,3)),issueIdsList:n(jb(this,1)),actionsList:Cb(this.getActionsList(),SFb)}:void 0;return a};var dHb=[1,2];Zm.prototype.toObject=function(){return eHb(void 0,this)};
var eHb=function(a,b){if(null!=b){var c={actionsList:Cb(b.getActionsList(),SFb,a),issueIdsList:n(jb(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var en=function(a){Z.call(this,a)};U(en,Z);en.prototype.getContent=function(){return m(this,Qm,1)};en.prototype.setContent=function(a){Bb(this,1,a)};en.prototype.hasContent=function(){return lj(this,1)};en.prototype.toObject=function(){return fHb(void 0,this)};var fHb=function(a,b){if(null!=b){var c={content:KH(a,b.getContent())};a&&(c.$jspbMessageInstance=b);return c}};
var Gp=function(a){Z.call(this,a)};U(Gp,Z);Gp.prototype.getContent=function(){return m(this,Qm,1)};Gp.prototype.setContent=function(a){Bb(this,1,a)};Gp.prototype.hasContent=function(){return lj(this,1)};Gp.prototype.toObject=function(){return gHb(void 0,this)};var gHb=function(a,b){if(null!=b){var c={content:KH(a,b.getContent())};a&&(c.$jspbMessageInstance=b);return c}};
var Ip=function(a){Z.call(this,a)};U(Ip,Z);g=Ip.prototype;g.getIsQuoted=function(){return W(this,1)};g.getContent=function(){return m(this,Qm,2)};g.setContent=function(a){Bb(this,2,a)};g.hasContent=function(){return lj(this,2)};g.toObject=function(){return hHb(void 0,this)};var hHb=function(a,b){if(null!=b){var c={isQuoted:n(To(b,1)),content:KH(a,b.getContent())};a&&(c.$jspbMessageInstance=b);return c}};
var Hp=function(a){Z.call(this,a,-1,iHb)};U(Hp,Z);Hp.prototype.getPlainSectionList=function(){return rb(this,Ip,1)};Hp.prototype.addPlainSection=function(a){zu(this,1,Ip,a)};var iHb=[1];Hp.prototype.toObject=function(){return jHb(void 0,this)};var jHb=function(a,b){if(null!=b){var c={plainSectionList:Cb(b.getPlainSectionList(),hHb,a)};a&&(c.$jspbMessageInstance=b);return c}};
var dn=function(a){Z.call(this,a)};U(dn,Z);g=dn.prototype;g.getKindCase=function(){return pb(this,$J)};g.getPlainFormat=function(){return yl(this,Hp,1,$J)};g.setPlainFormat=function(a){yu(this,1,$J,a)};g.hasPlainFormat=function(){return wl(this,1,$J)};g.getMarkdownFormat=function(){return yl(this,Gp,2,$J)};g.setMarkdownFormat=function(a){yu(this,2,$J,a)};g.hasMarkdownFormat=function(){return wl(this,2,$J)};g.getLiteralFormat=function(){return yl(this,en,3,$J)};
g.setLiteralFormat=function(a){yu(this,3,$J,a)};g.hasLiteralFormat=function(){return wl(this,3,$J)};var $J=[1,2,3];dn.prototype.toObject=function(){return kHb(void 0,this)};var kHb=function(a,b){if(null!=b){var c={plainFormat:jHb(a,b.getPlainFormat()),markdownFormat:gHb(a,b.getMarkdownFormat()),literalFormat:fHb(a,b.getLiteralFormat())};a&&(c.$jspbMessageInstance=b);return c}};
var $m=function(a){Z.call(this,a)};U($m,Z);$m.prototype.getIssueId=function(){return kj(this,1)};$m.prototype.setIssueId=function(a){return l(this,1,a)};$m.prototype.getMessage=function(){return V(this,2)};$m.prototype.toObject=function(){return lHb(void 0,this)};var lHb=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 nHb=function(a){Z.call(this,a,-1,mHb)};U(nHb,Z);var mHb=[2];nHb.prototype.toObject=function(){var a=null!=this?{affectedIssuesMap:Eb(Zi(this,1,fm),void 0,uJ),errorsList:Cb(rb(this,$m,2),lHb),componentMapMap:Eb(Zi(this,3,rm),void 0,xJ)}:void 0;return a};nHb.messageId="b.BulkEditResponse";
var aK=function(a){Z.call(this,a)};U(aK,Z);aK.prototype.getIssueId=function(){return kj(this,1)};aK.prototype.setIssueId=function(a){return l(this,1,a)};aK.prototype.toObject=function(){var a=null!=this?{issueId:n(p(this,1))}:void 0;return a};aK.messageId="b.IssueCreateResponse";
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={blobId:n(p(b,1)),blobGeneration:n(p(b,5)),readToken:n(p(b,2)),uploadMetadataContainer:Fb(vu(b,3)),downloadReadHandle:Fb(vu(b,4))};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={bucketName:n(p(b,1)),objectName:n(p(b,2)),generation:n(p(b,7))};a&&(c.$jspbMessageInstance=b);return c}};
var bK=function(a){Z.call(this,a)};U(bK,Z);g=bK.prototype;g.getPath=function(){return p(this,3)};g.setPath=function(a){return l(this,3,a)};g.hasPath=function(){return dj(this,3)};g.getBlobRef=function(){return vu(this,4)};g.getInline=function(){return vu(this,5)};g.getObjectId=function(){return m(this,qHb,6)};g.setObjectId=function(a){Bb(this,6,a)};g.getBlobstore2Info=function(){return m(this,oHb,7)};g.getCosmoBinaryReference=function(){return vu(this,8)};g.getMd5Hash=function(){return vu(this,10)};
g.getSha1Hash=function(){return vu(this,11)};g.toObject=function(){return cK(void 0,this)};var cK=function(a,b){if(null!=b){var c={length:n(p(b,1)),referenceType:n(p(b,2)),path:n(p(b,3)),blobRef:Fb(b.getBlobRef()),inline:Fb(b.getInline()),objectId:rHb(a,b.getObjectId()),blobstore2Info:pHb(a,b.getBlobstore2Info()),cosmoBinaryReference:Fb(b.getCosmoBinaryReference()),crc32cHash:n(p(b,9)),md5Hash:Fb(b.getMd5Hash()),sha1Hash:Fb(b.getSha1Hash())};a&&(c.$jspbMessageInstance=b);return c}};
var sHb=function(a){Z.call(this,a)};U(sHb,Z);sHb.prototype.toObject=function(){return tHb(void 0,this)};var tHb=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 uHb=function(a){Z.call(this,a)};U(uHb,Z);uHb.prototype.getObjectLocation=function(){return m(this,bK,5)};uHb.prototype.toObject=function(){return vHb(void 0,this)};var vHb=function(a,b){if(null!=b){var c={objectVersion:n(p(b,1)),objectSizeBytes:n(p(b,2)),chunkSizeBytes:n(p(b,3)),checksumsLocation:cK(a,m(b,bK,4)),objectLocation:cK(a,b.getObjectLocation())};a&&(c.$jspbMessageInstance=b);return c}};
var wHb=function(a){Z.call(this,a)};U(wHb,Z);wHb.prototype.getObjectLocation=function(){return m(this,bK,1,1)};wHb.prototype.toObject=function(){return xHb(void 0,this)};var xHb=function(a,b){if(null!=b){var c={objectLocation:cK(a,m(b,bK,1))};a&&(c.$jspbMessageInstance=b);return c}};
var yHb=function(a){Z.call(this,a)};U(yHb,Z);yHb.prototype.toObject=function(){return zHb(void 0,this)};var zHb=function(a,b){if(null!=b){var c={objectVersion:n(p(b,1)),objectInfo:cK(a,m(b,bK,2)),checksumsInfo:cK(a,m(b,bK,3))};a&&(c.$jspbMessageInstance=b);return c}};
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={objectVersion:n(p(b,1)),originalObject:cK(a,m(b,bK,2))};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={objectVersion:n(p(b,1)),objectSizeBytes:n(p(b,2))};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={allowGzipCompression:n(To(b,1)),ignoreRange:n(To(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Jm=function(a){Z.call(this,a,-1,GHb)};U(Jm,Z);g=Jm.prototype;g.getTimestamp=function(){return p(this,2)};g.setTimestamp=function(a){return l(this,2,a)};g.hasTimestamp=function(){return dj(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 dj(this,7)};
g.getBlobRef=function(){return vu(this,8)};g.getInline=function(){return vu(this,9)};g.getHash=function(){return p(this,11)};g.setHash=function(a){return l(this,11,a)};g.getObjectId=function(){return m(this,qHb,15)};g.setObjectId=function(a){Bb(this,15,a)};g.getBlobstore2Info=function(){return m(this,oHb,16)};g.getMd5Hash=function(){return vu(this,25)};g.getSha1Hash=function(){return vu(this,26)};g.getCosmoBinaryReference=function(){return vu(this,28)};var GHb=[13];
Jm.prototype.toObject=function(){return HHb(void 0,this)};
var HHb=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:Fb(b.getBlobRef()),inline:Fb(b.getInline()),mediaId:Fb(vu(b,10)),hash:n(p(b,11)),algorithm:n(p(b,12)),compositeMediaList:Cb(rb(b,bK,13),cK,a),bigstoreObjectRef:Fb(vu(b,14)),objectId:rHb(a,b.getObjectId()),blobstore2Info:pHb(a,b.getBlobstore2Info()),diffVersionResponse:DHb(a,m(b,CHb,17)),diffChecksumsResponse:vHb(a,m(b,
uHb,18)),diffDownloadResponse:xHb(a,m(b,wHb,19)),diffUploadRequest:zHb(a,m(b,yHb,20)),diffUploadResponse:BHb(a,m(b,AHb,21)),contentTypeInfo:tHb(a,m(b,sHb,22)),downloadParameters:FHb(a,m(b,EHb,23)),crc32cHash:n(p(b,24)),md5Hash:Fb(b.getMd5Hash()),sha1Hash:Fb(b.getSha1Hash()),sha256Hash:Fb(vu(b,30)),isPotentialRetry:W(b,27,!0),cosmoBinaryReference:Fb(b.getCosmoBinaryReference()),hashVerified:n(To(b,29))};a&&(c.$jspbMessageInstance=b);return c}};
var dK=function(a){Z.call(this,a)};U(dK,Z);g=dK.prototype;g.getStatus=function(){return X(this,1,0)};g.setStatus=function(a){return l(this,1,a)};g.hasStatus=function(){return dj(this,1)};g.setReason=function(a){l(this,2,a)};g.toObject=function(){return IHb(void 0,this)};var IHb=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 Wm=function(a){Z.call(this,a)};U(Wm,Z);g=Wm.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 dj(this,8)};g.getContentVerdict=function(){return m(this,$l,9)};
g.getEntityStatus=function(){return m(this,dK,10)};g.getPiiRetentionState=function(){return m(this,im,12)};g.hasPiiRetentionState=function(){return lj(this,12)};g.getPiiRetention=function(){return X(this,13,0)};g.setPiiRetention=function(a){return l(this,13,a)};g.toObject=function(){return JHb(void 0,this)};
var JHb=function(a,b){if(null!=b){var c={attachmentId:n(p(b,1)),description:n(p(b,2)),media:HHb(a,m(b,Jm,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:LFb(a,b.getContentVerdict()),entityStatus:IHb(a,b.getEntityStatus()),piiRetentionState:pJ(a,b.getPiiRetentionState()),piiRetention:n(p(b,13))};a&&(c.$jspbMessageInstance=b);return c}};Wm.messageId="b.Attachment";
var eK=function(a){Z.call(this,a)};U(eK,Z);eK.prototype.getCustomFieldId=function(){return ej(this,3)};eK.prototype.setCustomFieldId=function(a){return l(this,3,a)};eK.prototype.hasCustomFieldId=function(){return dj(this,3)};eK.prototype.toObject=function(){return KHb(void 0,this)};var KHb=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 LHb=function(a){Z.call(this,a)};U(LHb,Z);g=LHb.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 dj(this,2)};g.toObject=function(){return MHb(void 0,this)};var MHb=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 Pm=function(a){Z.call(this,a,-1,NHb)};U(Pm,Z);Pm.prototype.getAddedList=function(){return rb(this,LHb,1)};Pm.prototype.getRemovedList=function(){return rb(this,LHb,2)};var NHb=[1,2];Pm.prototype.toObject=function(){return OHb(void 0,this)};var OHb=function(a,b){if(null!=b){var c={addedList:Cb(b.getAddedList(),MHb,a),removedList:Cb(b.getRemovedList(),MHb,a)};a&&(c.$jspbMessageInstance=b);return c}};
var PHb=function(a){Z.call(this,a)};U(PHb,Z);PHb.prototype.toObject=function(){return QHb(void 0,this)};var QHb=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 Nm=function(a){Z.call(this,a)};U(Nm,Z);Nm.prototype.toObject=function(){return RHb(void 0,this)};var RHb=function(a,b){if(null!=b){var c={oldUser:rJ(a,m(b,Sl,1)),newUser:rJ(a,m(b,Sl,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Lm=function(a){Z.call(this,a)};U(Lm,Z);var Mm=[1,2];Lm.prototype.toObject=function(){return SHb(void 0,this)};var SHb=function(a,b){if(null!=b){var c={userDiff:RHb(a,yl(b,Nm,1,Mm)),stringDiff:QHb(a,yl(b,PHb,2,Mm))};a&&(c.$jspbMessageInstance=b);return c}};
var fK=function(a){Z.call(this,a,-1,THb)};U(fK,Z);fK.prototype.getAddedList=function(){return jb(this,1)};fK.prototype.getRemovedList=function(){return jb(this,2)};var THb=[1,2];fK.prototype.toObject=function(){return UHb(void 0,this)};var UHb=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 Om=function(a){Z.call(this,a,-1,VHb)};U(Om,Z);Om.prototype.getAddedList=function(){return rb(this,Sl,1)};Om.prototype.getRemovedList=function(){return rb(this,Sl,2)};var VHb=[1,2];Om.prototype.toObject=function(){return WHb(void 0,this)};var WHb=function(a,b){if(null!=b){var c={addedList:Cb(b.getAddedList(),rJ,a),removedList:Cb(b.getRemovedList(),rJ,a)};a&&(c.$jspbMessageInstance=b);return c}};
var Tm=function(a){Z.call(this,a)};U(Tm,Z);g=Tm.prototype;g.getName=function(){return V(this,1)};g.setName=function(a){return l(this,1,a)};g.hasName=function(){return dj(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 dj(this,3)};g.getTimestamp=function(){return m(this,sj,4)};g.setTimestamp=function(a){return Bb(this,4,a)};
g.hasTimestamp=function(){return lj(this,4)};var Km=[6,7,8,9,10];Tm.prototype.toObject=function(){return XHb(void 0,this)};var XHb=function(a,b){if(null!=b){var c={name:n(p(b,1)),displayName:n(p(b,2)),type:n(p(b,3)),timestamp:Vu(a,b.getTimestamp()),important:n(To(b,5)),singleValueDiff:SHb(a,yl(b,Lm,6,Km)),collectionDiff:UHb(a,yl(b,fK,7,Km)),linkedCollectionDiff:OHb(a,yl(b,Pm,8,Km)),customFieldDiff:KHb(a,yl(b,eK,9,Km)),userCollectionDiff:WHb(a,yl(b,Om,10,Km))};a&&(c.$jspbMessageInstance=b);return c}};
Tm.messageId="b.EventDiff";
var gK=function(a){Z.call(this,a,-1,YHb)};U(gK,Z);gK.prototype.getMentionedUser=function(){return m(this,Sl,1)};gK.prototype.getState=function(){return X(this,2,0)};var YHb=[3];gK.prototype.toObject=function(){return ZHb(void 0,this)};var ZHb=function(a,b){if(null!=b){var c={mentionedUser:rJ(a,b.getMentionedUser()),state:n(p(b,2)),displayEmailList:n(jb(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var hK=function(a){Z.call(this,a,-1,$Hb)};U(hK,Z);g=hK.prototype;g.getIssueId=function(){return kj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getCommentId=function(){return ej(this,2)};g.getComment=function(){return V(this,3)};g.setComment=function(a){return l(this,3,a)};g.getMentionsList=function(){return rb(this,gK,16)};g.getCommentContentVerdict=function(){return m(this,$l,14)};g.setCommentContentVerdict=function(a){Bb(this,14,a)};
g.hasCommentContentVerdict=function(){return lj(this,14)};g.getLastModified=function(){return ej(this,5)};g.getVersion=function(){return ej(this,6)};g.setVersion=function(a){return l(this,6,a)};g.getEntityStatus=function(){return m(this,dK,9)};g.getFormattingMode=function(){return X(this,10,0)};g.setFormattingMode=function(a){return l(this,10,a)};g.getFormattedComment=function(){return m(this,dn,13)};g.getPiiRetentionState=function(){return m(this,im,11)};
g.hasPiiRetentionState=function(){return lj(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 dj(this,17)};var $Hb=[16];hK.prototype.toObject=function(){return aIb(void 0,this)};
var aIb=function(a,b){if(null!=b){var c={issueId:n(p(b,1)),commentId:n(p(b,2)),comment:n(p(b,3)),mentionsList:Cb(b.getMentionsList(),ZHb,a),commentContentVerdict:LFb(a,b.getCommentContentVerdict()),lastEditorUser:rJ(a,m(b,Sl,8)),lastModified:n(p(b,5)),version:n(p(b,6)),unlinkifiedComment:n(p(b,7)),entityStatus:IHb(a,b.getEntityStatus()),formattingMode:n(p(b,10)),formattedComment:kHb(a,b.getFormattedComment()),piiRetentionState:pJ(a,b.getPiiRetentionState()),piiRetention:n(p(b,12)),redacted:n(To(b,
15)),etag:n(p(b,17))};a&&(c.$jspbMessageInstance=b);return c}};hK.messageId="b.IssueComment";
var Um=function(a){Z.call(this,a)};U(Um,Z);Um.prototype.getTag=function(){return V(this,1)};Um.prototype.toObject=function(){return bIb(void 0,this)};var bIb=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 Xm=function(a){Z.call(this,a,-1,cIb)};U(Xm,Z);g=Xm.prototype;g.getComment=function(){return m(this,hK,6)};g.setComment=function(a){return Bb(this,6,a)};g.getAttachmentsList=function(){return rb(this,Wm,10)};g.setAttachmentsList=function(a){Ab(this,10,a)};g.getVersion=function(){return ej(this,7)};g.setVersion=function(a){return l(this,7,a)};var cIb=[1,2,3,10,9];Xm.prototype.toObject=function(){return dIb(void 0,this)};
var dIb=function(a,b){if(null!=b){var c={addedAttachmentIdsList:n(jb(b,1)),preDiffsList:Cb(rb(b,Tm,2),XHb,a),postDiffsList:Cb(rb(b,Tm,3),XHb,a),modifiedDate:Vu(a,m(b,sj,4)),userPerformingAction:rJ(a,m(b,Sl,5)),isHumanAuthor:n(To(b,11)),isCollaboratorAuthor:n(To(b,12)),comment:aIb(a,b.getComment()),attachmentsList:Cb(b.getAttachmentsList(),JHb,a),version:n(p(b,7)),isMajorEvent:n(To(b,8)),taggedSummaryList:Cb(rb(b,Um,9),bIb,a)};a&&(c.$jspbMessageInstance=b);return c}};Xm.messageId="b.IssueEvent";
var hn=function(a){Z.call(this,a,-1,eIb)};U(hn,Z);hn.prototype.getIssue=function(){return m(this,fm,1)};hn.prototype.setIssue=function(a){Bb(this,1,a)};hn.prototype.getCustomFieldsList=function(){return rb(this,nl,3)};var eIb=[2,3];hn.prototype.toObject=function(){return fIb(void 0,this)};
var fIb=function(a,b){if(null!=b){var c={issue:uJ(a,b.getIssue()),eventsList:Cb(rb(b,Xm,2),dIb,a),firstEvent:dIb(a,m(b,Xm,5)),customFieldsList:Cb(b.getCustomFieldsList(),nJ,a),attachmentMapMap:Eb(Zi(b,4,Wm),a,JHb)};a&&(c.$jspbMessageInstance=b);return c}};hn.messageId="b.IssueFetchResponse";
var iK=function(a){Z.call(this,a,-1,gIb)};U(iK,Z);iK.prototype.getIssuesList=function(){return rb(this,fm,1)};iK.prototype.getNumTotalResults=function(){return ej(this,2)};iK.prototype.getNextPageToken=function(){return V(this,5)};var gIb=[1];iK.prototype.toObject=function(){var a=null!=this?{issuesList:Cb(this.getIssuesList(),uJ),numTotalResults:n(p(this,2)),componentsMap:Eb(Zi(this,3,rm),void 0,xJ),positionsMap:Eb(Zi(this,4)),nextPageToken:n(p(this,5))}:void 0;return a};iK.messageId="b.IssueSearchResponse";
var jK=function(a){Z.call(this,a)};U(jK,Z);g=jK.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 dj(this,2)};g.getTitle=function(){return V(this,3)};g.setTitle=function(a){return l(this,3,a)};g.getVersion=function(){return ej(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 hIb(void 0,this)};var hIb=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(To(b,5))};a&&(c.$jspbMessageInstance=b);return c}};
var kK=function(a){Z.call(this,a,-1,iIb)};U(kK,Z);kK.prototype.getIssueDigestsList=function(){return rb(this,jK,1)};kK.prototype.getNumTotalResults=function(){return ej(this,2)};var iIb=[1];kK.prototype.toObject=function(){var a=null!=this?{issueDigestsList:Cb(this.getIssueDigestsList(),hIb),numTotalResults:n(p(this,2))}:void 0;return a};kK.messageId="b.RelatedIssuesResponse";
var lK=function(){},nK=function(a){this.apiResourceFactory=a;this.issueResource=UGb(WGb(PJ(RJ(this.apiResourceFactory,"action/issues/:issueId"),{transformResponse:KGb})),{transformResponse:KGb}).build();this.issueExternalMoveResource=mK(this,"action/issues/:issueId/external_move");this.moveIssueResource=mK(this,"action/issues/:issueId/move");this.unCcUserResource=mK(this,"action/issues/:issueId/unccuser");this.relateIssueResource=mK(this,"action/issues/:issueId/relate");this.updateIssueHotlistsResource=
mK(this,"action/issues/:issueId/hotlists");this.updateIssueRetentionResource=mK(this,"action/issues/:issueId/update_retention");this.issueListResource=this.apiResourceFactory.only("action/issues/list","get",{method:"POST",transformResponse:LGb});this.issueBulkEditResource=SJ(this.apiResourceFactory,"action/issues/bulk_edit",{transformResponse:MGb});this.relatedIssuesResource=PJ(RJ(this.apiResourceFactory,"action/related/:resourceType/:resourceId")).build()};U(nK,lK);
var mK=function(a,b){return SJ(a.apiResourceFactory,b,{transformResponse:KGb})};g=nK.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))};nK.\u0275fac=function(a){return new (a||nK)(t(QJ))};nK.\u0275prov=dc({token:nK,factory:nK.\u0275fac,providedIn:"root"});var oK=function(a){this.executor=a};g=oK.prototype;
g.createIssue=function(a){var b=new ZFb;b.setSnapshot(ara(a.snapshot));a.attachments&&b.setAttachmentsList(a.attachments);a.templateId&&b.setTemplateId(String(a.templateId));a.contentJudgement&&b.setContentJudgement(yqa(a.contentJudgement));return this.executor.post({url:"action/issues",body:b,responseConstructor:aK}).pipe(R(ura))};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:hn}).pipe(R(function(d){return Ym(d)}))};
g.updateIssue=function(a,b){b=lra(b);return this.executor.post({url:"action/issues/"+a,body:b,responseConstructor:hn}).pipe(R(function(c){return Ym(c)}))};g.moveIssueExternal=function(a,b){b=gra(b);return this.executor.post({url:"action/issues/"+a+"/external_move",body:b,responseConstructor:hn}).pipe(R(function(c){return Ym(c)}))};g.moveIssue=function(a,b){b=era(b);return this.executor.post({url:"action/issues/"+a+"/move",body:b,responseConstructor:hn}).pipe(R(function(c){return Ym(c)}))};
g.unCcUser=function(a){var b=cra(a);return this.executor.post({url:"action/issues/"+a+"/unccuser",body:b,responseConstructor:hn}).pipe(R(function(c){return Ym(c)}))};g.relateIssue=function(a,b){b=rra(b);return this.executor.post({url:"action/issues/"+a+"/relate",body:b,responseConstructor:hn}).pipe(R(function(c){return Ym(c)}))};g.updateIssueHotlists=function(a,b){b=ora(b);return this.executor.post({url:"action/issues/"+a+"/hotlists",body:b,responseConstructor:hn}).pipe(R(function(c){return Ym(c)}))};
g.updateIssueRetention=function(a,b){b=tra(b);return this.executor.post({url:"action/issues/"+a+"/update_retention",body:b,responseConstructor:hn}).pipe(R(function(c){return Ym(c)}))};g.listIssues=function(a,b){b=void 0===b?{}:b;var c=new vJ;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:iK}).pipe(R(Asa))};
g.issueBulkEdit=function(a){var b=new cHb;if(void 0!==a.actions)b.setIssueIdsList(a.issueIds.map(String)),b.setActionsList(a.actions.map(kra));else{var c=a.bulkEditOps.map(psa);Ab(b,4,c);a.significanceOverride&&b.setSignificanceOverride(a.significanceOverride)}return this.executor.post({url:"action/issues/bulk_edit",body:b,responseConstructor:nHb}).pipe(R(rsa))};
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:kK}).pipe(R(pra))};oK.\u0275fac=function(a){return new (a||oK)(t(nI))};oK.\u0275prov=dc({token:oK,factory:oK.\u0275fac,providedIn:"root"});var pK=function(a){this.observableApi=a};U(pK,lK);g=pK.prototype;
g.createIssue=function(a){return(0,S.firstValueFrom)(this.observableApi.createIssue(a))};g.getIssue=function(a,b){return(0,S.firstValueFrom)(this.observableApi.getIssue(a,void 0===b?!1:b))};g.updateIssue=function(a,b){return(0,S.firstValueFrom)(this.observableApi.updateIssue(a,b))};g.moveIssueExternal=function(a,b){return(0,S.firstValueFrom)(this.observableApi.moveIssueExternal(a,b))};g.moveIssue=function(a,b){return(0,S.firstValueFrom)(this.observableApi.moveIssue(a,b))};g.unCcUser=function(a){return(0,S.firstValueFrom)(this.observableApi.unCcUser(a))};
g.relateIssue=function(a,b){return(0,S.firstValueFrom)(this.observableApi.relateIssue(a,b))};g.updateIssueHotlists=function(a,b){return(0,S.firstValueFrom)(this.observableApi.updateIssueHotlists(a,b))};g.updateIssueRetention=function(a,b){return(0,S.firstValueFrom)(this.observableApi.updateIssueRetention(a,b))};g.listIssues=function(a,b){b=void 0===b?{}:b;return(0,S.firstValueFrom)(this.observableApi.listIssues(a,b))};g.issueBulkEdit=function(a){return(0,S.firstValueFrom)(this.observableApi.issueBulkEdit(a))};
g.getRelatedIssues=function(a){return(0,S.firstValueFrom)(this.observableApi.getRelatedIssues(a))};pK.\u0275fac=function(a){return new (a||pK)(t(oK))};pK.\u0275prov=dc({token:pK,factory:pK.\u0275fac,providedIn:"root"});
var fn=function(a){Z.call(this,a)};U(fn,Z);fn.prototype.getResource=function(){return V(this,1)};fn.prototype.getRelation=function(){return X(this,2,0)};fn.prototype.setRelation=function(a){l(this,2,a)};fn.prototype.toObject=function(){return jIb(void 0,this)};var jIb=function(a,b){if(null!=b){var c={resource:n(p(b,1)),relation:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};fn.messageId="b.ResourceRelation";
var qK=function(a){Z.call(this,a,-1,kIb)};U(qK,Z);var kIb=[1];qK.prototype.toObject=function(){var a=null!=this?{grantedList:Cb(rb(this,fn,1),jIb)}:void 0;return a};qK.messageId="b.UserAccessBatchResponse";
var rK=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 lIb(c,d)})},lIb=function(a,b){return mIb(a,b).then(function(c){return Esa(b,c)})},sK=function(a,b,c){return a.resourceNamePattern.test(c)?nIb(a,b,c):Promise.reject("invalid resource name: "+
c)},mIb=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)},nIb=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]};rK.\u0275fac=function(a){return new (a||rK)(t(tK),t(mI))};
rK.\u0275prov=dc({token:rK,factory:rK.\u0275fac,providedIn:"root"});var uK=function(a){this.executor=a};uK.prototype.bulkGetUserAccess=function(a,b){return this.executor.get({url:"action/user_access",options:{params:{relations:a.join(","),resourceNames:b.join(",")}},responseConstructor:qK}).pipe(R(Dsa))};uK.\u0275fac=function(a){return new (a||uK)(t(nI))};uK.\u0275prov=dc({token:uK,factory:uK.\u0275fac,providedIn:"root"});var tK=function(a){this.observableApi=a};
tK.prototype.bulkGetUserAccess=function(a,b){return(0,S.firstValueFrom)(this.observableApi.bulkGetUserAccess(a,b))};tK.\u0275fac=function(a){return new (a||tK)(t(uK))};tK.\u0275prov=dc({token:tK,factory:tK.\u0275fac,providedIn:"root"});
var oIb=new ld("MatSnackBarData"),gn=function(){this.politeness="assertive";this.announcementMessage="";this.duration=0;this.data=null;this.horizontalPosition="center";this.verticalPosition="bottom"};
var pIb=Eh("state",[Hh("void, hidden",Gh({transform:"scale(0.8)",opacity:0})),Hh("visible",Gh({transform:"scale(1)",opacity:1})),Ih("* => visible",Fh("150ms cubic-bezier(0, 0, 0.2, 1)")),Ih("* => void, * => hidden",Fh("75ms cubic-bezier(0.4, 0.0, 1, 1)",Gh({opacity:0})))]);
var vK=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 S.Subject;this._onExit=new S.Subject;this._onEnter=new S.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(vK,ZA);vK.prototype.attachComponentPortal=function(a){this._applySnackBarClasses();return this._portalOutlet.attachComponentPortal(a)};vK.prototype.attachTemplatePortal=function(a){this._applySnackBarClasses();return this._portalOutlet.attachTemplatePortal(a)};var qIb=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=vK.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(Qf()).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)})};vK.\u0275fac=function(a){return new (a||vK)(D(jg),D(pd),D(vx),D(Iy),D(gn))};
vK.\u0275cmp=w({type:vK,selectors:[["snack-bar-container"]],viewQuery:function(a,b){a&1&&Bf(aB,7);if(a&2){var c;Af(c=Df())&&(b._portalOutlet=c.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(a,b){a&1&&ofa("@state.done",function(c){return qIb(b,c)});a&2&&we("@state",b._animationState)},features:[ae],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(a,b){a&1&&(F(0,"div",0),M(1,Fsa,0,0,"ng-template",1),G(),H(2,"div"));a&2&&(B(2),
ge("aria-live",b._live)("role",b._role))},dependencies:[aB],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:[pIb]}});
var rIb=Math.pow(2,31)-1,wK=function(a,b){var c=this;this._overlayRef=b;this._afterDismissed=new S.Subject;this._afterOpened=new S.Subject;this._onAction=new S.Subject;this._dismissedByAction=!1;this.containerInstance=a;a._onExit.subscribe(function(){return c._finishDismiss()})};wK.prototype.dismiss=function(){this._afterDismissed.closed||this.containerInstance.exit();clearTimeout(this._durationTimeoutId)};
var Ksa=function(a){a._onAction.closed||(a._dismissedByAction=!0,a._onAction.next(),a._onAction.complete(),a.dismiss());clearTimeout(a._durationTimeoutId)};g=wK.prototype;g._dismissAfter=function(a){var b=this;this._durationTimeoutId=setTimeout(function(){return b.dismiss()},Math.min(a,rIb))};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 xK=function(a,b){this.snackBarRef=a;this.data=b};xK.prototype.action=function(){Ksa(this.snackBarRef)};li.Object.defineProperties(xK.prototype,{hasAction:{configurable:!0,enumerable:!0,get:function(){return!!this.data.action}}});xK.\u0275fac=function(a){return new (a||xK)(D(wK),D(oIb))};
xK.\u0275cmp=w({type:xK,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&&(F(0,"span",0),O(1),G(),M(2,Gsa,3,1,"div",1));a&2&&(B(1),Ee(b.data.message),B(1),C("ngIf",b.hasAction))},dependencies:[Cx,BB],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 yK=function(){};yK.\u0275fac=function(a){return new (a||yK)};yK.\u0275mod=uc({type:yK});yK.\u0275inj=gc({imports:[fB,bB,Wx,BG,gB,gB]});
var sIb=new ld("mat-snack-bar-default-options",{providedIn:"root",factory:Hsa}),zK=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=zK.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=hg({parent:b&&b.viewContainerRef&&b.viewContainerRef.injector||this._injector,providers:[{provide:gn,useValue:b}]});a=a.attach(new XA(this.snackBarContainerComponent,b.viewContainerRef,c));a.instance.snackBarConfig=b;return a.instance};
g._attach=function(a,b){var c=this,d=Object.assign({},new gn,this._defaultConfig,b),e=this._createOverlay(d);b=this._attachSnackBarContainer(e,d);var f=new wK(b,e);if(a instanceof xf)f.instance=b.attachTemplatePortal(new YA(a,null,{$implicit:d.data,snackBarRef:f}));else{var h=this._createInjector(d,f);a=b.attachComponentPortal(new XA(a,void 0,h));f.instance=a.instance}this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(cg(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 KA;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"):TA(c);"top"===a.verticalPosition?c.top("0"):c.bottom("0");b.positionStrategy=c;return this._overlay.create(b)};
g._createInjector=function(a,b){return hg({parent:a&&a.viewContainerRef&&a.viewContainerRef.injector||this._injector,providers:[{provide:wK,useValue:b},{provide:oIb,useValue:a.data}]})};li.Object.defineProperties(zK.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}}});
zK.\u0275fac=function(a){return new (a||zK)(t(cB),t($z),t(Qv),t(pF),t(zK,12),t(sIb))};zK.\u0275prov=dc({token:zK,factory:zK.\u0275fac});var AK=function(a,b,c,d,e,f){zK.call(this,a,b,c,d,e,f);this.simpleSnackBarComponent=xK;this.snackBarContainerComponent=vK;this.handsetCssClass="mat-snack-bar-handset"};U(AK,zK);AK.\u0275fac=function(a){return new (a||AK)(t(cB),t($z),t(Qv),t(pF),t(AK,12),t(sIb))};AK.\u0275prov=dc({token:AK,factory:AK.\u0275fac,providedIn:yK});
var BK=function(a){this.snackBar=a};BK.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=kh(rh(b).toString(),null);switch(d){case "ERROR":b="error";break;default:b=void 0}b={data:a,panelClass:b};c&&(b.duration=c);return this.snackBar._attach(CK,b)};BK.\u0275fac=function(a){return new (a||BK)(t(AK))};BK.\u0275prov=dc({token:BK,factory:BK.\u0275fac,providedIn:"root"});
var CK=function(a,b){this.data=a;this.snackBarRef=b};CK.\u0275fac=function(a){return new (a||CK)(D(oIb),D(wK))};
CK.\u0275cmp=w({type:CK,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&&(F(0,"div",0),M(1,Isa,2,1,"span",1),M(2,
Jsa,1,1,"span",2),F(3,"div",3),M(4,Lsa,2,1,"button",4),M(5,Msa,2,1,"button",4),M(6,Nsa,2,0,"button",5),G()());a&2&&(B(1),C("ngIf",!b.data.htmlMessage),B(1),C("ngIf",b.data.htmlMessage),B(2),C("ngIf",b.data.actionLabel),B(1),C("ngIf",b.data.dismissLabel),B(1),C("ngIf",!b.data.dismissLabel))},dependencies:[Cx,BB,dF],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 DK=function(a){this.snackbar=a};DK.prototype.dismiss=function(){this.lastSnackbar&&this.lastSnackbar.dismiss()};var FK=function(a,b,c){a.open({message:b,duration:void 0===c?1E4:c})},tIb=function(a,b,c){a.open({message:b,duration:void 0===c?1E4:c})},GK=function(a,b,c){a.open({message:b,duration:void 0===c?0:c,snackbarType:"ERROR"})};DK.prototype.open=function(a){return this.lastSnackbar=a=this.snackbar.open(a)};DK.\u0275fac=function(a){return new (a||DK)(t(BK))};
DK.\u0275prov=dc({token:DK,factory:DK.\u0275fac,providedIn:"root"});
var HK=function(){};g=HK.prototype;g.debug=function(){Rk.apply(null,u(qc.apply(0,arguments)))};g.error=function(){Zpa.apply(null,u(qc.apply(0,arguments)))};g.info=function(){Xpa.apply(null,u(qc.apply(0,arguments)))};g.log=function(){Ypa.apply(null,u(qc.apply(0,arguments)))};g.warn=function(){Sk.apply(null,u(qc.apply(0,arguments)))};HK.\u0275fac=function(a){return new (a||HK)};HK.\u0275prov=dc({token:HK,factory:HK.\u0275fac,providedIn:"root"});
var IK=function(a,b,c,d){this.butterBar=a;this.activeSession=b;this.$log=c;this.timeout=d};
IK.prototype.errorHandler=function(a,b){var c=this,d=!1;-1===b.status&&(a=Xra(b)&&b.config&&b.config.timeout&&ena(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.":Fm(b)?Fm(b):404===b.status?"Invalid ID.":"Unknown HTTP error "+b.status+". Please copy your data and refresh the page.";
c.$log.error(e,b);GK(c.butterBar,e)}})};var JK=function(a,b){a.$log.warn(b);GK(a.butterBar,b)},KK=function(a,b){if(Em(b))a.errorHandler(null,b);else throw b;};IK.\u0275fac=function(a){return new (a||IK)(t(DK),t(vH),t(HK),t(lI))};IK.\u0275prov=dc({token:IK,factory:IK.\u0275fac,providedIn:"root"});
var LK=function(a,b,c,d){this.issueApi=a;this.templatesApi=b;this.errorHandler=c;this.userAccess=d},vIb=function(a,b){b=a.issueApi.getIssue(b).then(function(c){var d=qa(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 uIb(a,c)});b.catch(function(c){a.errorHandler.errorHandler(null,
c)});return b},uIb=function(a,b){var c=b.snapshot.hotlistId;if(!c)return b;var d=c.map(function(e){return sK(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})};LK.\u0275fac=function(a){return new (a||LK)(t(lK),t(VJ),t(IK),t(rK))};LK.\u0275prov=dc({token:LK,factory:LK.\u0275fac,providedIn:"root"});
var MK=function(){this.bookmarkGroupModified=new S.Subject;this.commentSubmitted=new S.Subject;this.commentRendered=new S.Subject;this.componentModified=new S.Subject;this.contactChipsRevertChanges=new S.Subject;this.customFieldsModified=new S.Subject;this.dashboardPanels={moveDown:new S.Subject,moveUp:new S.Subject,moveToTop:new S.Subject,moveToBottom:new S.Subject,remove:new S.Subject};this.favoritesModified=new S.Subject;this.hotlistCreated=new S.Subject;this.onClickAppMenuIcon=new S.Subject;this.openEditField=
new S.Subject;this.sidebarWidthChanged=new S.Subject;this.hotlistChanged=new S.Subject;this.savedSearchModified=new S.Subject;this.sidebarUpdated=new S.Subject;this.topBarEvents={browseComponents:new S.Subject,manageHotlists:new S.Subject,manageSlos:new S.Subject,setDensity:new S.Subject,openSettings:new S.Subject};this.templateModified=new S.Subject;this.issueViewed=new S.Subject;this.issueEdited=new S.Subject;this.focusCommentBox=new S.Subject;this.scrollToCommentBox=new S.Subject};
MK.\u0275fac=function(a){return new (a||MK)};MK.\u0275prov=dc({token:MK,factory:MK.\u0275fac,providedIn:"root"});
var NK=function(a,b){JJ.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(rf(bl),R(function(e){return e.templates}),R(function(e){var f;return null!=(f=e.find(function(h){return h.default}))?f:e[0]}))};this.appEvents.templateModified.pipe(rf(function(d){return!!d&&"0"!==d})).subscribe(function(d){it(c,d)})};U(NK,JJ);
NK.prototype.fetchOne=function(a){return(0,S.from)(this.template.templatesApi.query(Number(a)).then(function(b){return{componentId:a,templates:b}}))};NK.\u0275fac=function(a){return new (a||NK)(t(LK),t(MK))};NK.\u0275prov=dc({token:NK,factory:NK.\u0275fac,providedIn:"root"});
var Osa=function(a){Z.call(this,a,-1,wIb)};U(Osa,Z);var wIb=[1];Osa.prototype.toObject=function(){var a=null!=this?{issueDetailsList:Cb(rb(this,hn,1),fIb)}:void 0;return a};
var xIb=!1;
var zIb=function(a){Z.call(this,a,-1,yIb)};U(zIb,Z);g=zIb.prototype;g.getComponentId=function(){return ej(this,1)};g.setComponentId=function(a){return l(this,1,a)};g.hasComponentId=function(){return dj(this,1)};g.getType=function(){return X(this,2,0)};g.setType=function(a){return l(this,2,a)};g.hasType=function(){return dj(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 dj(this,5)};g.getReporter=function(){return m(this,Sl,6)};g.setReporter=function(a){Bb(this,6,a)};g.getAssignee=function(){return m(this,Sl,7)};g.setAssignee=function(a){Bb(this,7,a)};g.clearAssignee=function(){return Bb(this,7)};g.getVerifier=function(){return m(this,Sl,8)};g.setVerifier=function(a){Bb(this,8,a)};
g.clearVerifier=function(){return Bb(this,8)};g.getCcsList=function(){return rb(this,Sl,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,sj,16)};g.setSloSnoozeUntil=function(a){Bb(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,dK,18)};g.getIsArchived=function(){return W(this,19)};
g.setIsArchived=function(a){l(this,19,a)};var yIb=[9,10,11,12,14];zIb.prototype.toObject=function(){return AIb(this)};
var AIb=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:rJ(void 0,a.getReporter()),assignee:rJ(void 0,a.getAssignee()),verifier:rJ(void 0,a.getVerifier()),ccsList:Cb(a.getCcsList(),rJ),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(To(a,15)),sloSnoozeUntil:Vu(void 0,a.getSloSnoozeUntil()),retention:n(p(a,
17)),entityStatus:IHb(void 0,a.getEntityStatus()),isArchived:n(To(a,19))}};
var BIb=function(a){Z.call(this,a)};U(BIb,Z);g=BIb.prototype;g.getIssueId=function(){return ej(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getIssueState=function(){return m(this,zIb,2)};g.getVersion=function(){return ej(this,3)};g.setVersion=function(a){return l(this,3,a)};g.getCreatedTime=function(){return m(this,sj,4)};g.getModifiedTime=function(){return m(this,sj,5)};g.getResolvedTime=function(){return m(this,sj,6)};g.getVerifiedTime=function(){return m(this,sj,7)};
g.getSloId=function(){return ej(this,9)};g.setSloId=function(a){return l(this,9,a)};g.getSloStatus=function(){return m(this,km,10)};g.setSloStatus=function(a){Bb(this,10,a)};g.getRetentionState=function(){return m(this,im,11)};g.setRetentionState=function(a){Bb(this,11,a)};g.getAccessLimit=function(){return m(this,Pk,12)};g.setAccessLimit=function(a){return Bb(this,12,a)};g.getTeamId=function(){return ej(this,13)};g.setTeamId=function(a){return l(this,13,a)};
g.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),issueState:AIb(this.getIssueState()),version:n(p(this,3)),createdTime:Vu(void 0,this.getCreatedTime()),modifiedTime:Vu(void 0,this.getModifiedTime()),resolvedTime:Vu(void 0,this.getResolvedTime()),verifiedTime:Vu(void 0,this.getVerifiedTime()),sloId:n(p(this,9)),sloStatus:QFb(void 0,this.getSloStatus()),retentionState:pJ(void 0,this.getRetentionState()),accessLimit:tFb(void 0,this.getAccessLimit()),teamId:n(p(this,13))}:void 0;return a};
BIb.messageId="b.IssueMetadata";
var OK=function(a){Z.call(this,a,-1,CIb)};U(OK,Z);OK.prototype.setIssueIdsList=function(a){jl(this,1,a)};OK.prototype.addIssueIds=function(a){ob(this,1,a)};var CIb=[1];OK.prototype.toObject=function(){var a=null!=this?{issueIdsList:n(jb(this,1)),read:n(To(this,2))}:void 0;return a};
var DIb=function(a){Z.call(this,a)};U(DIb,Z);DIb.prototype.toObject=function(){var a=null!=this?{readTimestamp:n(p(this,1))}:void 0;return a};DIb.messageId="b.UpdateIssueReadTimestampResponse";
var PK=function(a){this.executor=a};PK.prototype.delete=function(a,b){var c=new sJ;c.setIssueId(String(a));c.setReason($qa[b]);return this.executor.post({url:"action/issues/"+a+"/delete",body:c,responseConstructor:null})};PK.prototype.undelete=function(a){var b=new wJ;b.setIssueId(String(a));return this.executor.post({url:"action/issues/"+a+"/undelete",body:b,responseConstructor:null})};PK.prototype.getMetadata=function(a){return this.executor.get({url:"action/issues/"+a+"/metadata",responseConstructor:BIb}).then(vsa)};
PK.prototype.markRead=function(a,b){b=void 0===b?!0:b;var c=new OK;c.setIssueIdsList(a.map(Number));l(c,2,b);return this.executor.post({url:"action/issues/read_timestamp",body:c,responseConstructor:DIb}).then(usa)};PK.\u0275fac=function(a){return new (a||PK)(t(oI))};PK.\u0275prov=dc({token:PK,factory:PK.\u0275fac,providedIn:"root"});
var QK=function(){};QK.\u0275fac=function(a){return new (a||QK)};QK.\u0275prov=dc({token:QK,factory:QK.\u0275fac,providedIn:"root"});
var EIb=function(a){this.allowExecution=a;this.queue=[]};EIb.prototype.addTask=function(a){this.queue.push(a);FIb(this)};var FIb=function(a){if(0!==a.queue.length)if(a.allowExecution()){var b=r(a.queue),c=b.next().value;a.queue=qf(b);c();FIb(a)}else setTimeout(function(){FIb(a)},0)};
var RK=function(a,b,c,d){var e=this;this.location=a;this.platformLocation=b;this.activatedRoute=c;this.router=d;this.scheduler=new EIb(function(){return!e.router.currentNavigation})};U(RK,QK);g=RK.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 GIb=function(a,b){a.path(b,!0)};g=RK.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 Xsa(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(){ft(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)};RK.\u0275fac=function(a){return new (a||RK)(t(dy),t(Xx),t(dk),t(Fk))};RK.\u0275prov=dc({token:RK,factory:RK.\u0275fac,providedIn:"root"});
var SK=new ld("BuganizerLocation",{factory:function(){return t(RK)}});
var TK=function(a){this.bLocation=a};TK.prototype.createIssue=function(a){return ln("issues/new",{params:a})};TK.prototype.editIssue=function(a,b){return kn(a,b)};TK.prototype.listIssues=function(a){return mn(a)};TK.prototype.viewSavedSearch=function(a){return jn("savedsearches/:savedSearchId",{id:a,params:void 0})};
var HIb=function(a,b){b="/"!==b.charAt(0)?"/"+b:b;return a.bLocation.path()===b},IIb=function(a,b){b="/"!==b.charAt(0)?"/"+b:b;a=a.bLocation.url();a=new dp(a);b=new dp(b);return a.getPath()===b.getPath()&&VG(a.queryData_.toString())===VG(b.queryData_.toString())};g=TK.prototype;g.viewHotlist=function(a){return jn("hotlists/:hotlistId",{id:a})};g.editHotlist=function(a){return ln("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 jn("bookmark-groups/:groupId",{id:a})};g.editBookmarkGroup=function(a){return ln("bookmark-groups/:groupId/edit",{id:a})};g.editSavedSearch=function(a){return ln("savedsearches/:savedSearchId/edit",{id:a})};g.dashboard=function(a){return ln("dashboard/:groupId",{id:a})};g.issuesCsvAction=function(a,b,c,d){b=Qsa(b);c=Rsa(c);return cE("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=Qsa(b);(c=Rsa(c))&&(c="position,"+c);return cE(a,"s",b,"c",c,"h",d)};g.toApiSortParamValue=function(a){return Qsa(a)};g.getAttachmentAction=function(a,b){return"action/issues/"+a.toString()+"/attachments/"+b.toString()};g.listComponents=function(){return ln("components",{params:void 0})};g.viewComponent=function(a,b){return jn("components/:componentId",{id:a,tab:b})};g.manageComponent=function(a,b){return Ssa(a,b)};
g.manageComponentAcl=function(a){return jn("components/:componentId/manage#access",{id:a,tab:void 0})};g.createComponent=function(a){return ln("components/new",{params:a})};g.editComponent=function(a,b){return ln("components/:componentId/edit",{id:a,tab:b})};g.createSlo=function(){return ln("slos/new",{params:void 0})};g.editSlo=function(a){return pn(a).path};g.listSlos=function(){return ln("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"};TK.\u0275fac=function(a){return new (a||TK)(t(SK))};TK.\u0275prov=dc({token:TK,factory:TK.\u0275fac,providedIn:"root"});
var JIb=function(a,b){this.childIterator_=a[ca.Symbol.iterator]();this.mapFn_=b};JIb.prototype[Symbol.iterator]=function(){return this};JIb.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 KIb=function(a,b){return new JIb(a,b)};
var UK=function(){};UK.prototype.next=function(){return LIb};var LIb={done:!0,value:void 0};UK.prototype.__iterator__=function(){return this};
var MIb=function(a){if(a instanceof VK||a instanceof WK||a instanceof XK)return a;if("function"==typeof a.next)return new VK(function(){return a});if("function"==typeof a[Symbol.iterator])return new VK(function(){return a[Symbol.iterator]()});if("function"==typeof a.__iterator__)return new VK(function(){return a.__iterator__()});throw Error("Sc");},VK=function(a){this.func_=a};VK.prototype.__iterator__=function(){return new WK(this.func_())};VK.prototype[Symbol.iterator]=function(){return new XK(this.func_())};
VK.prototype.toEs6=function(){return new XK(this.func_())};var WK=function(a){this.iter_=a};U(WK,UK);WK.prototype.next=function(){return this.iter_.next()};WK.prototype[Symbol.iterator]=function(){return new XK(this.iter_)};WK.prototype.toEs6=function(){return new XK(this.iter_)};var XK=function(a){VK.call(this,function(){return a});this.iter_=a};U(XK,VK);XK.prototype.next=function(){return this.iter_.next()};
var YK=function(a,b){this.map_={};this.keys_=[];this.version_=this.size=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Tc");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.addAll(a)};g=YK.prototype;g.getCount=function(){return this.size};g.getValues=function(){ZK(this);for(var a=[],b=0;b<this.keys_.length;b++)a.push(this.map_[this.keys_[b]]);return a};g.getKeys=function(){ZK(this);return this.keys_.concat()};g.containsKey=function(a){return this.has(a)};
g.has=function(a){return $K(this.map_,a)};g.containsValue=function(a){for(var b=0;b<this.keys_.length;b++){var c=this.keys_[b];if($K(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||NIb;ZK(this);for(var c,d=0;c=this.keys_[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};var NIb=function(a,b){return a===b};YK.prototype.isEmpty=function(){return 0==this.size};
YK.prototype.clear=function(){this.map_={};this.keys_.length=0;this.setSizeInternal_(0);this.version_=0};YK.prototype.remove=function(a){return this.delete(a)};YK.prototype.delete=function(a){return $K(this.map_,a)?(delete this.map_[a],this.setSizeInternal_(this.size-1),this.version_++,this.keys_.length>2*this.size&&ZK(this),!0):!1};
var ZK=function(a){if(a.size!=a.keys_.length){for(var b=0,c=0;b<a.keys_.length;){var d=a.keys_[b];$K(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],$K(e,d)||(a.keys_[c++]=d,e[d]=1),b++;a.keys_.length=c}};g=YK.prototype;g.get=function(a,b){return $K(this.map_,a)?this.map_[a]:b};g.set=function(a,b){$K(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 YK)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 YK(this)};g.toObject=function(){ZK(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 MIb(this.__iterator__(!0)).toEs6()};g.values=function(){return MIb(this.__iterator__(!1)).toEs6()};
g.entries=function(){var a=this;return KIb(this.keys(),function(b){return[b,a.get(b)]})};g.__iterator__=function(a){ZK(this);var b=0,c=this.version_,d=this,e=new UK;e.next=function(){if(c!=d.version_)throw Error("Uc");if(b>=d.keys_.length)return LIb;var f=d.keys_[b++];return{value:a?f:d.map_[f],done:!1}};return e};g.setSizeInternal_=function(a){this.size=a};var $K=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
var aL=function(a,b,c){this.maxCount_=a||null;this.cache_=!!b;this.evictionCallback_=c;this.map_=new YK;this.head_=new OIb("");this.head_.next=this.head_.prev=this.head_},QIb=function(a,b){(b=a.map_.get(b))&&a.cache_&&(b.remove(),PIb(a,b));return b};aL.prototype.get=function(a,b){return(a=QIb(this,a))?a.value:b};var RIb=function(a,b){return(a=a.map_.get(b))?a.value:void 0};g=aL.prototype;g.set=function(a,b){var c=QIb(this,a);c?c.value=b:(c=new OIb(a,b),this.map_.set(a,c),PIb(this,c))};
g.shift=function(){return SIb(this,this.head_.next)};g.pop=function(){return SIb(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(){TIb(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 PIb=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_&&TIb(a,a.maxCount_)},TIb=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)}},SIb=function(a,b){a.head_!=b&&a.removeNode(b);return b.value},OIb=function(a,b){this.key=a;this.value=b};
OIb.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};
var bL=function(){this.caches=new Map};bL.prototype.create=function(a,b){if(this.caches.has(a))throw Error("Vc`"+a);b=new cL(null==b?void 0:b.capacity);this.caches.set(a,b);return b};bL.prototype.get=function(a){return this.caches.get(a)};bL.\u0275fac=function(a){return new (a||bL)};bL.\u0275prov=dc({token:bL,factory:bL.\u0275fac,providedIn:"root"});var cL=function(a){this.lruCache=new aL(a,!0)};cL.prototype.get=function(a){return this.lruCache.get(a)};
cL.prototype.put=function(a,b){void 0!==b&&this.lruCache.set(a,b);return b};cL.prototype.remove=function(a){this.lruCache.remove(a)};cL.prototype.removeAll=function(){this.lruCache.clear()};
var qn=function(a){Z.call(this,a)};U(qn,Z);g=qn.prototype;g.getType=function(){return X(this,1,0)};g.setType=function(a){return l(this,1,a)};g.hasType=function(){return dj(this,1)};g.getCustomFieldId=function(){return kj(this,2)};g.setCustomFieldId=function(a){return l(this,2,a)};g.hasCustomFieldId=function(){return dj(this,2)};g.getCustomFieldName=function(){return V(this,3)};g.toObject=function(){return UIb(void 0,this)};
var UIb=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 rn=function(a){Z.call(this,a)};U(rn,Z);g=rn.prototype;g.getField=function(){return m(this,qn,1)};g.setField=function(a){Bb(this,1,a)};g.getDirection=function(){return X(this,2,0)};g.setDirection=function(a){return l(this,2,a)};g.toObject=function(){return VIb(void 0,this)};var VIb=function(a,b){if(null!=b){var c={field:UIb(a,b.getField()),direction:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var sn=function(a){Z.call(this,a,-1,WIb)};U(sn,Z);g=sn.prototype;g.getHotlistId=function(){return kj(this,1)};g.setHotlistId=function(a){l(this,1,a)};g.getOwnerUser=function(){return m(this,Sl,13)};g.setOwnerUser=function(a){Bb(this,13,a)};g.getName=function(){return V(this,3)};g.setName=function(a){return l(this,3,a)};g.hasName=function(){return dj(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,qn,8)};g.setDisplayColumnList=function(a){Ab(this,8,a)};g.getSortOrderList=function(){return rb(this,rn,9)};g.setSortOrderList=function(a){Ab(this,9,a)};g.getCreatedTimeMicros=function(){return ej(this,10)};g.setCreatedTimeMicros=function(a){l(this,10,a)};g.getModifiedTimeMicros=function(){return ej(this,11)};g.setModifiedTimeMicros=function(a){l(this,11,a)};g.getAdminUsersList=function(){return rb(this,Sl,14)};
g.setAdminUsersList=function(a){Ab(this,14,a)};g.getEtag=function(){return V(this,15)};g.setEtag=function(a){l(this,15,a)};g.hasEtag=function(){return dj(this,15)};var WIb=[8,9,14];sn.prototype.toObject=function(){return XIb(void 0,this)};
var XIb=function(a,b){if(null!=b){var c={hotlistId:n(p(b,1)),ownerUser:rJ(a,b.getOwnerUser()),name:n(p(b,3)),description:n(p(b,4)),archived:n(To(b,6)),displayColumnList:Cb(b.getDisplayColumnList(),UIb,a),sortOrderList:Cb(b.getSortOrderList(),VIb,a),createdTimeMicros:n(p(b,10)),modifiedTimeMicros:n(p(b,11)),adminUsersList:Cb(b.getAdminUsersList(),rJ,a),etag:n(p(b,15))};a&&(c.$jspbMessageInstance=b);return c}};sn.messageId="b.Hotlist";
var dL=function(a){Z.call(this,a,-1,YIb)};U(dL,Z);dL.prototype.getHotlistsList=function(){return rb(this,sn,1)};var YIb=[1];dL.prototype.toObject=function(){var a=null!=this?{hotlistsList:Cb(this.getHotlistsList(),XIb)}:void 0;return a};dL.messageId="b.ListHotlistsResponse";
var eL=function(a,b){this.hotlistApi=b;this.hotlistCache=a.get("hotlists-second-level-cache")||a.create("hotlists-second-level-cache",{capacity:250})};eL.prototype.get=function(a){var b=this.hotlistCache.get(String(a))||this.hotlistApi.get(a);return this.hotlistCache.put(String(a),b)};eL.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);ZIb(this,a,c);return c};
var ZIb=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$1655:d.$jscomp$loop$prop$id$1655},e=b.next())d.$jscomp$loop$prop$id$1655=e.value,a.hotlistCache.put(String(d.$jscomp$loop$prop$id$1655),c.then(function(f){return function(h){return h&&h[f.$jscomp$loop$prop$id$1655]?h[f.$jscomp$loop$prop$id$1655]:Promise.reject({data:{message:"Could not load hotlist "+
f.$jscomp$loop$prop$id$1655}})}}(d)))};g=eL.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)};eL.\u0275fac=function(a){return new (a||eL)(t(bL),t(fL))};eL.\u0275prov=dc({token:eL,factory:eL.\u0275fac,providedIn:"root"});var gL=function(a,b){this.paths=a;this.executor=b};g=gL.prototype;g.get=function(a){return this.executor.get({url:"action/hotlists/"+a,responseConstructor:sn}).pipe(R(tn))};g.bulkLoad=function(a){return this.executor.get({url:"action/hotlists",responseConstructor:dL,options:{params:{id:a.map(String)}}}).pipe(R(eta))};
g.repositionHotlistIssue=function(a,b,c){var d=new em;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 sn;c.setName(a);b&&c.setDescription(b);return this.executor.post({url:"action/hotlists",body:c,responseConstructor:sn}).pipe(R(tn))};
g.queryHotlists=function(a){return this.executor.get({url:"action/hotlists",responseConstructor:dL,options:{params:{q:a}}}).pipe(R(function(b){var c;return(null!=(c=b.getHotlistsList())?c:[]).map(tn)}))};g.archiveHotlist=function(a,b){return this.executor.post({url:"action/hotlists/"+a+"/archive",body:dta(b),responseConstructor:sn}).pipe(R(tn))};
g.updateMetadata=function(a,b){var c={};b.etag&&(c["If-Match"]=String(b.etag));return this.executor.post({url:"action/hotlists/"+a,body:dta(b),options:{headers:c},responseConstructor:sn}).pipe(R(tn))};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:iK}).pipe(R(Asa))};gL.\u0275fac=function(a){return new (a||gL)(t(TK),t(nI))};
gL.\u0275prov=dc({token:gL,factory:gL.\u0275fac,providedIn:"root"});var fL=function(a){this.observableApi=a};g=fL.prototype;g.get=function(a){return(0,S.firstValueFrom)(this.observableApi.get(a))};g.bulkLoad=function(a){return(0,S.firstValueFrom)(this.observableApi.bulkLoad(a))};g.repositionHotlistIssue=function(a,b,c){return(0,S.firstValueFrom)(this.observableApi.repositionHotlistIssue(a,b,c))};g.createHotlist=function(a,b){return(0,S.firstValueFrom)(this.observableApi.createHotlist(a,b))};
g.queryHotlists=function(a){return(0,S.firstValueFrom)(this.observableApi.queryHotlists(a))};g.archiveHotlist=function(a,b){return(0,S.firstValueFrom)(this.observableApi.archiveHotlist(a,b))};g.updateMetadata=function(a,b){return(0,S.firstValueFrom)(this.observableApi.updateMetadata(a,b))};g.getPagedHotlistContent=function(a,b,c,d){return(0,S.firstValueFrom)(this.observableApi.getPagedHotlistContent(a,b,c,d))};fL.\u0275fac=function(a){return new (a||fL)(t(gL))};
fL.\u0275prov=dc({token:fL,factory:fL.\u0275fac,providedIn:"root"});
var $Ib=function(a){Z.call(this,a)};U($Ib,Z);g=$Ib.prototype;g.getUser=function(){return m(this,Sl,5)};g.setUser=function(a){Bb(this,5,a)};g.getResourceType=function(){return X(this,2,0)};g.setResourceType=function(a){l(this,2,a)};g.hasResourceType=function(){return dj(this,2)};g.getResourceId=function(){return kj(this,3)};g.setResourceId=function(a){l(this,3,a)};g.hasResourceId=function(){return dj(this,3)};g.getName=function(){return V(this,4)};g.setName=function(a){return l(this,4,a)};
g.hasName=function(){return dj(this,4)};g.toObject=function(){return aJb(this)};var aJb=function(a){if(null!=a)return{user:rJ(void 0,a.getUser()),resourceType:n(p(a,2)),resourceId:n(p(a,3)),name:n(p(a,4))}};
var un=function(a){Z.call(this,a,-1,bJb)};U(un,Z);g=un.prototype;g.getOwnerUser=function(){return m(this,Sl,10)};g.setOwnerUser=function(a){Bb(this,10,a)};g.getName=function(){return V(this,3)};g.setName=function(a){return l(this,3,a)};g.hasName=function(){return dj(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 dj(this,7)};g.getSortOrderList=function(){return rb(this,rn,8)};g.setSortOrderList=function(a){Ab(this,8,a)};g.getDisplayColumnList=function(){return rb(this,qn,6)};g.setDisplayColumnList=function(a){Ab(this,6,a)};g.getAdminUsersList=function(){return rb(this,Sl,11)};g.setAdminUsersList=function(a){Ab(this,11,a)};var bJb=[8,6,11];un.prototype.toObject=function(){return cJb(void 0,this)};
var cJb=function(a,b){if(null!=b){var c={searchId:n(p(b,1)),ownerUser:rJ(a,b.getOwnerUser()),name:n(p(b,3)),description:n(p(b,4)),query:n(p(b,7)),sortOrderList:Cb(b.getSortOrderList(),VIb,a),displayColumnList:Cb(b.getDisplayColumnList(),UIb,a),adminUsersList:Cb(b.getAdminUsersList(),rJ,a)};a&&(c.$jspbMessageInstance=b);return c}};
var hL=function(a){Z.call(this,a)};U(hL,Z);hL.prototype.getFavorite=function(){return m(this,$Ib,1)};hL.prototype.toObject=function(){var a=null!=this?{favorite:aJb(this.getFavorite())}:void 0;return a};hL.messageId="b.Favorite";
var iL=function(a){Z.call(this,a,-1,dJb)};U(iL,Z);iL.prototype.addHotlist=function(a){zu(this,1,sn,a)};var dJb=[1];iL.prototype.toObject=function(){var a=null!=this?{hotlistList:Cb(rb(this,sn,1),XIb)}:void 0;return a};iL.messageId="b.HotlistBatchResponse";
var vn=function(a){Z.call(this,a)};U(vn,Z);g=vn.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 dj(this,2)};g.getDescription=function(){return V(this,3)};g.setDescription=function(a){return l(this,3,a)};g.getOwnerUser=function(){return m(this,Sl,7)};g.setOwnerUser=function(a){Bb(this,7,a)};g.getStarred=function(){return W(this,5)};
g.setStarred=function(a){l(this,5,a)};g.hasStarred=function(){return dj(this,5)};g.getResourceType=function(){return V(this,6)};g.setResourceType=function(a){l(this,6,a)};g.hasResourceType=function(){return dj(this,6)};g.toObject=function(){return eJb(void 0,this)};var eJb=function(a,b){if(null!=b){var c={id:n(p(b,1)),name:n(p(b,2)),description:n(p(b,3)),ownerUser:rJ(a,b.getOwnerUser()),starred:n(To(b,5)),resourceType:n(p(b,6))};a&&(c.$jspbMessageInstance=b);return c}};
var wn=function(a){Z.call(this,a,-1,fJb)};U(wn,Z);g=wn.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 dj(this,2)};g.getDescription=function(){return V(this,3)};g.setDescription=function(a){return l(this,3,a)};g.getOwnerUser=function(){return m(this,Sl,7)};g.setOwnerUser=function(a){Bb(this,7,a)};g.getStarred=function(){return W(this,5)};
g.setStarred=function(a){l(this,5,a)};g.hasStarred=function(){return dj(this,5)};var fJb=[6];wn.prototype.toObject=function(){return gJb(void 0,this)};var gJb=function(a,b){if(null!=b){var c={id:n(p(b,1)),name:n(p(b,2)),description:n(p(b,3)),ownerUser:rJ(a,b.getOwnerUser()),starred:n(To(b,5)),sublinksList:Cb(rb(b,vn,6),eJb,a)};a&&(c.$jspbMessageInstance=b);return c}};
var jL=function(a){Z.call(this,a,-1,hJb)};U(jL,Z);jL.prototype.getHotlistsList=function(){return rb(this,vn,1)};jL.prototype.getBookmarkGroupsList=function(){return rb(this,wn,2)};var hJb=[1,2,3,4];jL.prototype.toObject=function(){var a=null!=this?{hotlistsList:Cb(this.getHotlistsList(),eJb),bookmarkGroupsList:Cb(this.getBookmarkGroupsList(),gJb),archivedHotlistsList:Cb(rb(this,vn,3),eJb),archivedBookmarkGroupsList:Cb(rb(this,wn,4),gJb)}:void 0;return a};jL.messageId="b.SidebarInfo";
var jJb=function(a){Z.call(this,a,-1,iJb)};U(jJb,Z);var iJb=[1];jJb.prototype.toObject=function(){var a=null!=this?{componentsList:Cb(rb(this,rm,1),xJ)}:void 0;return a};jJb.messageId="b.UserRecentComponentResponse";
var lJb=function(a){Z.call(this,a,-1,kJb)};U(lJb,Z);var kJb=[1];lJb.prototype.toObject=function(){var a=null!=this?{searchesList:Cb(rb(this,un,1),cJb)}:void 0;return a};lJb.messageId="b.UserSavedSearchesResponse";
var kL=function(){},lL=function(a){this.apiResourceFactory=a;this.userHotlistsResource=SGb(RJ(this.apiResourceFactory,"action/current_user/hotlists")).build();this.userSidebarResource=PJ(RJ(this.apiResourceFactory,"action/current_user/sidebar")).build();this.recentComponentsResource=SGb(RJ(this.apiResourceFactory,"action/current_user/recent_components")).build();this.userSavedSearchesResource=SGb(RJ(this.apiResourceFactory,"action/current_user/searches")).build();this.favoritesResource=VGb(TGb(PJ(RJ(this.apiResourceFactory,
"action/favorites/:resourceType/:resourceId")))).build()};U(lL,kL);g=lL.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(){})};lL.\u0275fac=function(a){return new (a||lL)(t(QJ))};lL.\u0275prov=dc({token:lL,factory:lL.\u0275fac,providedIn:"root"});var mL=function(){};mL.\u0275fac=function(a){return new (a||mL)};mL.\u0275prov=dc({token:mL,factory:mL.\u0275fac,providedIn:"root"});var nL=function(a){this.http=a};U(nL,mL);
nL.prototype.getRecentComponents=function(){return this.http.get("action/current_user/recent_components").pipe(R(function(a){return Array.isArray(a)?a.map(vm).filter(um):[]}))};nL.prototype.getUserSavedSearches=function(){return this.http.get("action/current_user/searches",{}).pipe(R(function(a){return Array.isArray(a)?a.filter(nta):[]}))};nL.\u0275fac=function(a){return new (a||nL)(t(TE))};nL.\u0275prov=dc({token:nL,factory:nL.\u0275fac,providedIn:"root"});var oL=function(a){this.executor=a};
U(oL,mL);g=oL.prototype;g.getUserHotlists=function(){return this.executor.get({url:"action/current_user/hotlists",responseConstructor:iL}).pipe(R(fta))};g.getUserSidebar=function(){return this.executor.get({url:"action/current_user/sidebar",responseConstructor:jL}).pipe(R(mta))};g.getRecentComponents=function(){return this.executor.get({url:"action/current_user/recent_components",responseConstructor:jJb}).pipe(R(Cra))};
g.getUserSavedSearches=function(){return this.executor.get({url:"action/current_user/searches",responseConstructor:lJb}).pipe(R(jta))};g.getFavorite=function(a,b){return this.executor.get({url:"action/favorites/"+a+"/"+b,responseConstructor:hL}).pipe(R(hta))};g.saveFavorite=function(a){var b=new $Ib;b.setResourceType(wAb[a.resourceType]);b.setResourceId(String(a.resourceId));return this.executor.post({url:"action/favorites",body:b,responseConstructor:hL}).pipe(R(hta))};
g.deleteFavorite=function(a){return this.executor.delete({url:"action/favorites/"+a.resourceType+"/"+a.resourceId,responseConstructor:null})};oL.\u0275fac=function(a){return new (a||oL)(t(nI))};oL.\u0275prov=dc({token:oL,factory:oL.\u0275fac,providedIn:"root"});var pL=function(a){this.observableApi=a};U(pL,kL);g=pL.prototype;g.getUserHotlists=function(){return(0,S.firstValueFrom)(this.observableApi.getUserHotlists())};g.getUserSidebar=function(){return(0,S.firstValueFrom)(this.observableApi.getUserSidebar())};
g.getRecentComponents=function(){return(0,S.firstValueFrom)(this.observableApi.getRecentComponents())};g.getUserSavedSearches=function(){return(0,S.firstValueFrom)(this.observableApi.getUserSavedSearches())};g.getFavorite=function(a,b){return(0,S.firstValueFrom)(this.observableApi.getFavorite(a,b))};g.saveFavorite=function(a){return(0,S.firstValueFrom)(this.observableApi.saveFavorite(a))};g.deleteFavorite=function(a){return(0,S.firstValueFrom)(this.observableApi.deleteFavorite(a))};
pL.\u0275fac=function(a){return new (a||pL)(t(oL))};pL.\u0275prov=dc({token:pL,factory:pL.\u0275fac,providedIn:"root"});
var mJb={parent:"me"},qL=function(a,b,c){JJ.call(this,{freshUntil:3E5});var d=this;this.observableHotlistResources=a;this.observableUserResources=b;this.appEvents=c;this.recordType="hotlist";this.idKey="hotlistId";(0,S.merge)(this.appEvents.hotlistChanged,this.appEvents.hotlistCreated,this.appEvents.bookmarkGroupModified).subscribe(function(){LJ(d,mJb)})};U(qL,JJ);
qL.prototype.fetchOne=function(a){return this.observableHotlistResources.get(a).pipe(Mf(function(b){return 403===b.status?(0,S.of)(void 0):(0,S.throwError)(b)}))};qL.prototype.fetchAll=function(a){if("me"===a.parent)return this.observableUserResources.getUserHotlists().pipe(R(function(b){return{results:b}}));Sk("Unsupported query for Fridge['"+this.recordType+"']",a);return(0,S.of)({results:[]})};
qL.prototype.fetchSet=function(a){return this.observableHotlistResources.bulkLoad(a).pipe(R(function(b){return(null!=b?b:[]).filter(bl)}))};qL.prototype.doSave=function(a){return this.observableHotlistResources.updateMetadata(a.hotlistId,a)};var nJb=function(a){return GGb(a,mJb).pipe(R(function(b){return b.results}))};qL.\u0275fac=function(a){return new (a||qL)(t(gL),t(oL),t(MK))};qL.\u0275prov=dc({token:qL,factory:qL.\u0275fac,providedIn:"root"});
var ota={enable_jspb:"true"},rL=function(a){this.http=a};rL.prototype.get=function(a,b){return this.http.get(a,xn(b.httpOptions||{})).pipe(R(function(c){if(b.responseCtor)return new b.responseCtor(c[0])}))};rL.prototype.post=function(a,b){return this.http.post(a,b.request?b.request.toJSON():void 0,xn(b.httpOptions)).pipe(R(function(c){if(b.responseCtor)return jo(b.responseCtor,JSON.stringify(c[0]))}))};
rL.prototype.put=function(a,b){return this.http.put(a,b.request?b.request.toJSON():void 0,xn(b.httpOptions)).pipe(R(function(c){if(b.responseCtor)return jo(b.responseCtor,JSON.stringify(c[0]))}))};rL.prototype.delete=function(a,b){b=void 0===b?{}:b;return this.http.delete(a,xn(b))};rL.\u0275fac=function(a){return new (a||rL)(t(TE))};rL.\u0275prov=dc({token:rL,factory:rL.\u0275fac,providedIn:"root"});
var sL=function(){this.refreshRequest=new S.Subject};sL.prototype.getObservable=function(){return this.refreshRequest};var oJb=function(a,b){return a.getObservable().pipe(ag(void 0)).pipe(bg(function(){return b}))};sL.\u0275fac=function(a){return new (a||sL)};sL.\u0275prov=dc({token:sL,factory:sL.\u0275fac,providedIn:"root"});
var tL=function(a){Z.call(this,a)};U(tL,Z);tL.prototype.toObject=function(){var a=null!=this?{}:void 0;return a};tL.messageId="f.mt";
var uL=function(a){Z.call(this,a,-1,pJb)};U(uL,Z);uL.prototype.setIssueIdsList=function(a){jl(this,1,a)};uL.prototype.addIssueIds=function(a){ob(this,1,a)};var pJb=[1];uL.prototype.toObject=function(){var a=null!=this?{issueIdsList:n(jb(this,1))}:void 0;return a};uL.messageId="b.BatchGetIssuesRequest";
var vL=function(a){Z.call(this,a,-1,qJb)};U(vL,Z);vL.prototype.getIssuesList=function(){return rb(this,fm,1)};var qJb=[1];vL.prototype.toObject=function(){var a=null!=this?{issuesList:Cb(this.getIssuesList(),uJ)}:void 0;return a};vL.messageId="b.BatchGetIssuesResponse";
var wL=function(a,b,c,d,e,f){JJ.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 S.Subject;this.get=this.batchApiAdapter.adapt({bufferTimeMs:0,call:function(k){return h.call(k)},split:function(k,q){return h.splitBatch(k,q)}});this.refreshMonitor.getObservable().subscribe(function(){h.invalidate()})};
U(wL,JJ);wL.prototype.fetchOne=function(a){return this.get(Number(a)).pipe(R(Rm),Mf(function(){return(0,S.of)(void 0)}))};wL.prototype.fetchSet=function(a){var b=this;return(0,S.combineLatest)(a.map(function(c){return b.fetchOne(c)})).pipe(R(function(c){return c.filter(bl)}))};wL.prototype.copy=function(a){return a&&Fi(a)};
var rJb=function(a,b,c){var d={id:b,star:String(c)};pna()&&(d.vote=String(c));return a.jspbClient.post("action/current_user/issue_data",{responseCtor:tL,httpOptions:{params:d}}).pipe(dg(function(){MJ(a,b,function(e){e.userData&&(e.userData.starred=c,pna()&&(e.userData.voted=c))})}))};
wL.prototype.setVoted=function(a,b){var c=this;return this.jspbClient.post("action/current_user/issue_data",{responseCtor:tL,httpOptions:{params:{id:a,vote:String(b)}}}).pipe(dg(function(){MJ(c,a,function(d){d.userData&&(d.userData.voted=b)})}))};
wL.prototype.setNotificationSubscription=function(a,b){var c=this;return bf(function(d){if(1==d.nextAddress)return cf(d,(0,S.firstValueFrom)(c.jspbClient.post("action/current_user/issue_data",{responseCtor:tL,httpOptions:{params:{id:a,subscription:b}}})),2);MJ(c,a,function(e){e.userData&&(e.userData.notificationSubscription=b)});df(d)})};
var sJb=function(a,b,c){var d=new cm,e=ira(new bm,"title").setValue(c);d.setIssueId(b);d.setActionsList([e]);MJ(a,b,function(f){f.snapshot[0].title=c});return a.jspbClient.post("action/issues/"+b,{request:d,responseCtor:hn}).pipe(R(Ym),dg(function(f){f&&a.announce(f.issue)}))},tJb=function(a,b,c,d){var e,f,h,k,q,v,y,E,I;return bf(function(N){if(1==N.nextAddress){e="action/issues/"+b+"/hotlists";f=new dm;f.setRemoveHotlistIdsList(d);f.setAddHotlistIdsList(c);nra(f,(new em).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);Qt(N,2);return cf(N,(0,S.firstValueFrom)(a.jspbClient.post(e,{request:f,responseCtor:hn})).finally(function(){for(var L=r([].concat(u(c),u(d))),T=L.next();!T.done;T=L.next())a.hotlistFridge.clearIsSaving(T.value)}),4)}if(2!=N.nextAddress)return v=N.yieldResult,(y=Ym(v))&&a.announce(y.issue),N.return(null==(E=y)?void 0:E.issue);I=St(N);it(a,b);throw I;})},uJb=function(a,b,c){"number"===typeof b&&(b=String(b));return xL(a,
1,3,c,[b]).then(function(){return it(a,b)})};wL.prototype.removeDuplicate=function(a,b){var c=this;"number"===typeof a&&(a=String(a));return xL(this,2,3,b,[a]).then(function(){return it(c,a)})};
var xL=function(a,b,c,d,e){if(0===e.length||null==d)return Promise.resolve(void 0);d=String(d);var f=new mm;f.setActionType(b);f.setRelation(c);f.setIssueId(d);jl(f,2,e);vJb(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,S.firstValueFrom)(a.jspbClient.post("action/issues/"+d+"/relate",{request:f,responseCtor:hn})).then(Ym).then(function(k){k&&a.announce(k.issue)}).catch(function(k){it(a,d);throw k;}).finally(function(){for(var k=r(h),q=k.next();!q.done;q=
k.next())a.clearIsSaving(q.value)})},yL=function(a,b,c){c=void 0===c?{}:c;var d=void 0===c.markRead?!0:c.markRead,e=void 0===c.eagerUpdate?!0:c.eagerUpdate,f,h,k,q;return bf(function(v){if(1==v.nextAddress)return a.activeSession.isAnonymous()?v.return():cf(v,a.issueService.markRead(b.map(Number),d),2);f=v.yieldResult;if(e)for(h=r(b),k=h.next();!k.done;k=h.next())q=k.value,MJ(a,String(q),function(y){y.userData&&(y.userData.lastViewedTimeMicros=f.readTimestamp)});return v.return(f.readTimestamp?Math.round(f.readTimestamp/
1E3):void 0)})},vJb=function(a,b){MJ(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:[]}}})};
wL.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:hn,httpOptions:{params:{excludeEvents:"1"}}}).pipe(dg(function(f){b.issueFetchResponse$.next(f)}),R(function(f){return new Map([[c,f.getIssue()]])}))}var d=new uL;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:vL,request:d}).pipe(R(function(f){return new Map(f.getIssuesList().map(function(h){return[Number(h.getIssueId()),
h]}))}))};wL.prototype.splitBatch=function(a,b){return b.get(a)};wL.\u0275fac=function(a){return new (a||wL)(t(hJ),t(rL),t(sL),t(PK),t(vH),t(qL))};wL.\u0275prov=dc({token:wL,factory:wL.\u0275fac,providedIn:"root"});
var zL=function(a,b){JJ.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 S.ReplaySubject(1);xIb?a=void 0:(xIb=!0,a=Psa());a&&wJb(this,a);this.issueFridge.issueFetchResponse$.pipe(R(Ym),rf(bl),R(pta),cg(this.destroyed$)).subscribe(this.announce)};U(zL,JJ);
var AL=function(a,b){return a.watch(b).pipe(bg(function(c){return a.issueFridge.watch(b).pipe(R(function(d){return c&&d&&Object.assign({},c,{issue:d})}))}))},BL=function(a,b){return it(a,b).then(function(){return(0,S.firstValueFrom)(AL(a,b))})},wJb=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)};
zL.prototype.fetchOne=function(a){var b=this;this.issueFridge.setIsGetting(a);return this.jspb.get("action/issues/"+a,{responseCtor:hn,httpOptions:{params:{excludeEvents:"1"}}}).pipe(R(Ym),dg(function(c){(null==c?0:c.issue)&&b.issueFridge.announce(c.issue);b.issueFridge.clearIsGetting(a)}),R(function(c){return c&&pta(c)}),Mf(function(c){b.issueFridge.clearIsGetting(a);return(0,S.throwError)(c)}))};zL.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};
zL.prototype.copy=function(a){return a&&Object.assign({},a)};zL.\u0275fac=function(a){return new (a||zL)(t(rL),t(wL))};zL.\u0275prov=dc({token:zL,factory:zL.\u0275fac,providedIn:"root"});
var sta=new Set(["blockedById","blockingId","duplicateId","parentIssueIds","childIssueIds"]);
var CL=function(a,b,c,d,e){this.status=a;this.displayValue=b;this.open=c;this.assigneeRequirement=d;this.sortOrder=e},DL={},Bn=(DL.NEW=new CL("NEW","New",!0,"FORBIDDEN",10),DL.ASSIGNED=new CL("ASSIGNED","Assigned",!0,"REQUIRED",20),DL.ACCEPTED=new CL("ACCEPTED","Accepted",!0,"REQUIRED",30),DL.FIXED=new CL("FIXED","Fixed",!1,"REQUIRED",40),DL.VERIFIED=new CL("VERIFIED","Fixed (Verified)",!1,"REQUIRED",50),DL.DUPLICATE=new CL("DUPLICATE","Duplicate",!1,"ALLOWED",60),DL.INFEASIBLE=new CL("INFEASIBLE",
"Won't Fix (Infeasible)",!1,"ALLOWED",70),DL.NOT_REPRODUCIBLE=new CL("NOT_REPRODUCIBLE","Won't Fix (Not reproducible)",!1,"ALLOWED",80),DL.OBSOLETE=new CL("OBSOLETE","Won't Fix (Obsolete)",!1,"ALLOWED",90),DL.INTENDED_BEHAVIOR=new CL("INTENDED_BEHAVIOR","Won't Fix (Intended behavior)",!1,"ALLOWED",100),DL),xJb=[Bn.NEW,Bn.ASSIGNED,Bn.ACCEPTED,Bn.FIXED,Bn.VERIFIED,Bn.NOT_REPRODUCIBLE,Bn.INTENDED_BEHAVIOR,Bn.OBSOLETE,Bn.INFEASIBLE,Bn.DUPLICATE],yJb=xJb.map(function(a){return{value:a.status,displayText:a.displayValue}}),
zJb=new Set(Object.values($g(Bn,function(a){return"REQUIRED"===a.assigneeRequirement})));
var EL={},FL=(EL[0]="",EL[1]="New",EL[2]="Assigned",EL[3]="In Progress",EL[4]="Fixed",EL[5]="Verified",EL[10]="Duplicate",EL[9]="Infeasible",EL[6]="Can't Repro",EL[8]="Obsolete",EL[7]="WAI",EL[901]="Blocked",EL[902]="Archived",EL),GL={},Lta=(GL[0]=0,GL[1]=10,GL[2]=20,GL[3]=30,GL[4]=40,GL[5]=50,GL[10]=60,GL[9]=70,GL[6]=80,GL[8]=90,GL[7]=100,GL[901]=35,GL[902]=110,GL),HL={},AJb=(HL[4]=!0,HL[5]=!0,HL[10]=!0,HL[9]=!0,HL[6]=!0,HL[8]=!0,HL[7]=!0,HL[901]=!0,HL[902]=!0,HL),IL={},JL=Object.assign({},FL,(IL[3]=
"Accepted (In Progress)",IL[5]="Fixed (Verified)",IL[9]="Won't fix (Infeasible)",IL[6]="Won't fix (Not reproducible)",IL[8]="Won't fix (Obsolete)",IL[7]="Won't fix (Intended behavior)",IL)),BJb=new Map([[1,"P0"],[2,"P1"],[3,"P2"],[4,"P3"],[5,"P4"],[0,"--"]]),CJb=new Map([["P0","P0"],["P1","P1"],["P2","P2"],["P3","P3"],["P4","P4"],["PRIORITY_UNSPECIFIED","--"]]),DJb=new Map([["S0","S0"],["S1","S1"],["S2","S2"],["S3","S3"],["S4","S4"],["SEVERITY_UNSPECIFIED","--"]]),EJb=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 FJb=function(a){Z.call(this,a)};U(FJb,Z);g=FJb.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,Fl,4)};g.setContentJudgement=function(a){return Bb(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:oJ(void 0,this.getContentJudgement())}:void 0;return a};
var KL=function(a){Z.call(this,a,-1,GJb)};U(KL,Z);var GJb=[1];KL.prototype.toObject=function(){var a=null!=this?{issueEventsList:Cb(rb(this,Xm,1),dIb)}:void 0;return a};KL.messageId="b.ListIssueEventsResponse";
var HJb=function(a){return function(b){b=rb(b,Xm,1).map(nsa).filter(bl);return{id:a,events:b}}},LL=function(a,b){JJ.call(this);this.jspb=a;this.issueFetchResponseFridge=b;this.recordType="eventsForIssue"};U(LL,JJ);LL.prototype.isEqual=function(a,b){return(null==a?void 0:a.id)!==(null==b?void 0:b.id)?!1:Kta(null==a?void 0:a.events,null==b?void 0:b.events)};LL.prototype.copy=function(a){return a&&Fi(a)};LL.prototype.fetchOne=function(a){return this.jspb.get("action/issues/"+a+"/events",{responseCtor:KL}).pipe(R(HJb(a)))};
LL.\u0275fac=function(a){return new (a||LL)(t(rL),t(zL))};LL.\u0275prov=dc({token:LL,factory:LL.\u0275fac,providedIn:"root"});
var ML=function(a){Z.call(this,a,-1,IJb)};U(ML,Z);ML.prototype.getIssueId=function(){return ej(this,1)};ML.prototype.setIssueId=function(a){return l(this,1,a)};var IJb=[2];ML.prototype.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),commentNumbersList:n(jb(this,2))}:void 0;return a};ML.messageId="b.BatchGetIssueCommentsRequest";
var NL=function(a){Z.call(this,a,-1,JJb)};U(NL,Z);NL.prototype.getIssueCommentsList=function(){return rb(this,hK,1)};var JJb=[1];NL.prototype.toObject=function(){var a=null!=this?{issueCommentsList:Cb(this.getIssueCommentsList(),aIb)}:void 0;return a};NL.messageId="b.BatchGetIssueCommentsResponse";
var OL=function(a){this.jspbExecutor=a};OL.prototype.batchGet=function(a,b){a=(new ML).setIssueId(a);b=jl(a,2,b);return this.jspbExecutor.post({url:"action/comments/batch",responseConstructor:NL,body:b}).pipe(R(ssa))};OL.\u0275fac=function(a){return new (a||OL)(t(nI))};OL.\u0275prov=dc({token:OL,factory:OL.\u0275fac,providedIn:"root"});
var PL=function(a,b){JJ.call(this);var c=this;this.issueCommentsBatchApi=a;this.batchApiAdapter=b;this.recordType="formattedCommentsForIssue";this.idForRecord=function(d){return d.id.issueId+"-"+d.id.commentId};this.get=this.batchApiAdapter.adapt({bufferTimeMs:0,maxBatchSize:500,call:function(d){return c.call(d)},split:function(d,e){return c.splitBatch(d,e)}})};U(PL,JJ);
PL.prototype.fetchSet=function(a){var b=this,c=a[0].split("-")[0];return(0,S.combineLatest)(a.map(function(d){return b.get(d)})).pipe(R(function(d){var e=[];d=r(d);for(var f=d.next();!f.done;f=d.next())if(f=f.value){var h=void 0,k={issueId:Number(c),commentId:null!=(h=f.commentNumber)?h:0};e.push({id:k,formattedComment:f})}return e}))};
PL.prototype.call=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(R(function(f){var h=b,k=new Map;f=r(f);for(var q=f.next();!q.done;q=f.next()){q=q.value;var v=void 0,y=Number(h)+"-"+(null!=(v=q.commentNumber)?v:0);k.set(y,q)}return k}))};PL.prototype.splitBatch=function(a,b){return b.get(a)};
PL.\u0275fac=function(a){return new (a||PL)(t(OL),t(hJ))};PL.\u0275prov=dc({token:PL,factory:PL.\u0275fac,providedIn:"root"});
var En=function(a){Z.call(this,a)};U(En,Z);g=En.prototype;g.getUser=function(){return yl(this,Sl,1,QL)};g.setUser=function(a){yu(this,1,QL,a)};g.getGroup=function(){return yl(this,Sl,2,QL)};g.setGroup=function(a){yu(this,2,QL,a)};g.getAlias=function(){return V(this,qb(this,QL,3))};g.setAlias=function(a){co(this,3,QL,a)};var QL=[1,2,3];En.prototype.toObject=function(){return RL(void 0,this)};
var RL=function(a,b){if(null!=b){var c={user:rJ(a,b.getUser()),group:rJ(a,b.getGroup()),alias:n(Rr(b,3,QL))};a&&(c.$jspbMessageInstance=b);return c}};
var In=function(a){Z.call(this,a,-1,KJb)};U(In,Z);g=In.prototype;g.getInheritance=function(){return X(this,1,0)};g.setInheritance=function(a){l(this,1,a)};g.getAdminsList=function(){return rb(this,En,2)};g.setAdminsList=function(a){Ab(this,2,a)};g.getInheritedAdminsList=function(){return rb(this,En,3)};g.getEditorsList=function(){return rb(this,En,4)};g.setEditorsList=function(a){Ab(this,4,a)};g.getImplicitEditorsList=function(){return rb(this,En,5)};
g.getAppendersList=function(){return rb(this,En,6)};g.setAppendersList=function(a){Ab(this,6,a)};g.getImplicitAppendersList=function(){return rb(this,En,7)};g.getReadersList=function(){return rb(this,En,8)};g.setReadersList=function(a){Ab(this,8,a)};g.getImplicitReadersList=function(){return rb(this,En,9)};g.getRestrictedReadersList=function(){return rb(this,En,11)};g.setRestrictedReadersList=function(a){Ab(this,11,a)};g.getRestrictedPlusReadersList=function(){return rb(this,En,12)};
g.setRestrictedPlusReadersList=function(a){Ab(this,12,a)};g.getImplicitAccess=function(){return X(this,10,0)};g.setImplicitAccess=function(a){return l(this,10,a)};var KJb=[2,3,4,5,6,7,8,9,11,12];
In.prototype.toObject=function(){var a=null!=this?{inheritance:n(p(this,1)),adminsList:Cb(this.getAdminsList(),RL),inheritedAdminsList:Cb(this.getInheritedAdminsList(),RL),editorsList:Cb(this.getEditorsList(),RL),implicitEditorsList:Cb(this.getImplicitEditorsList(),RL),appendersList:Cb(this.getAppendersList(),RL),implicitAppendersList:Cb(this.getImplicitAppendersList(),RL),readersList:Cb(this.getReadersList(),RL),implicitReadersList:Cb(this.getImplicitReadersList(),RL),restrictedReadersList:Cb(this.getRestrictedReadersList(),
RL),restrictedPlusReadersList:Cb(this.getRestrictedPlusReadersList(),RL),implicitAccess:n(p(this,10))}:void 0;return a};In.messageId="b.AccessPolicy";
var SL=function(a){JJ.call(this);this.jspb=a;this.recordType="hotlistAccessPolicy";this.isEqual=Ei};U(SL,JJ);SL.prototype.fetchOne=function(a){return this.jspb.get("action/access_policies/"+encodeURIComponent(fo(a)),{responseCtor:In}).pipe(R(Hn),R(function(b){return Object.assign({},{id:a},b)}))};
SL.prototype.doSave=function(a){var b=a.id;a=$ta(a);return this.jspb.post("action/access_policies/"+encodeURIComponent(fo(b)),{request:a,responseCtor:In}).pipe(R(Hn),R(function(c){return Object.assign({},{id:b},c)}))};SL.\u0275fac=function(a){return new (a||SL)(t(rL))};SL.\u0275prov=dc({token:SL,factory:SL.\u0275fac,providedIn:"root"});
var TL=function(a){Z.call(this,a)};U(TL,Z);var UL=function(a,b){return Uk(a,1,b)},LJb=function(a,b){return Uk(a,2,b)};TL.prototype.toObject=function(){return VL(void 0,this)};var VL=function(a,b){if(null!=b){var c={targetIssueId:ej(b,1),afterIssueId:ej(b,2),targetIssue:uCb(a,m(b,pCb,3))};a&&(c.$jspbMessageInstance=b);return c}};
var WL=function(a){Z.call(this,a,-1,MJb)};U(WL,Z);WL.prototype.getSourceIssueIdsList=function(){return jb(this,1)};WL.prototype.setSourceIssueIdsList=function(a){return jl(this,1,a)};WL.prototype.setRelationshipType=function(a){return l(this,2,a)};WL.prototype.setIncludeArchived=function(a){return l(this,3,a)};var MJb=[1];WL.prototype.toObject=function(){var a=null!=this?{sourceIssueIdsList:n(jb(this,1)),relationshipType:n(p(this,2)),includeArchived:n(To(this,3))}:void 0;return a};WL.messageId="b.BatchGetIssueRelationshipsRequest";
var XL=function(a){Z.call(this,a,-1,NJb)};U(XL,Z);XL.prototype.getIssueRelationshipsList=function(){return rb(this,TL,1)};XL.prototype.getTotalSize=function(){return ej(this,2)};var NJb=[1];XL.prototype.toObject=function(){return OJb(void 0,this)};var OJb=function(a,b){if(null!=b){var c={sourceIssueId:ej(b,3),issueRelationshipsList:Cb(b.getIssueRelationshipsList(),VL,a),totalSize:ej(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var QJb=function(a){Z.call(this,a,-1,PJb)};U(QJb,Z);var PJb=[1];QJb.prototype.toObject=function(){var a=null!=this?{issueRelationshipsPrefixesList:Cb(rb(this,XL,1),OJb)}:void 0;return a};QJb.messageId="b.BatchGetIssueRelationshipsResponse";
var YL=function(a){Z.call(this,a)};U(YL,Z);YL.prototype.getIssueRelationship=function(){return m(this,TL,1)};YL.prototype.toObject=function(){var a=null!=this?{issueRelationship:VL(void 0,this.getIssueRelationship())}:void 0;return a};YL.messageId="b.CreateIssueRelationshipResponse";
var ZL=function(a){Z.call(this,a,-1,RJb)};U(ZL,Z);var SJb=function(a,b){return jl(a,1,b)};ZL.prototype.setRelationshipType=function(a){return l(this,2,a)};ZL.prototype.setIncludeArchived=function(a){return l(this,3,a)};var TJb=function(a,b){return l(a,4,b)},UJb=function(a,b){return l(a,5,b)},RJb=[1];
ZL.prototype.toObject=function(){var a=null!=this?{rootIssueIdsList:n(jb(this,1)),relationshipType:n(p(this,2)),includeArchived:n(To(this,3)),depthLimit:n(p(this,4)),prefixSizeLimit:n(p(this,5))}:void 0;return a};ZL.messageId="b.GetIssueDescendantsRequest";
var VJb=function(a){Z.call(this,a)};U(VJb,Z);VJb.prototype.toObject=function(){var a=null!=this?{issueRelationshipsPrefixesMap:Eb(Zi(this,1,XL),void 0,OJb)}:void 0;return a};VJb.messageId="b.GetIssueDescendantsResponse";
var $L=function(a){Z.call(this,a,-1,WJb)};U($L,Z);$L.prototype.getIssueRelationshipsList=function(){return rb(this,TL,1)};var WJb=[1];$L.prototype.toObject=function(){var a=null!=this?{issueRelationshipsList:Cb(this.getIssueRelationshipsList(),VL)}:void 0;return a};$L.messageId="b.ListIssueRelationshipsResponse";
var aM=function(a){Z.call(this,a)};U(aM,Z);aM.prototype.getIssueRelationship=function(){return m(this,TL,1)};aM.prototype.toObject=function(){var a=null!=this?{issueRelationship:VL(void 0,this.getIssueRelationship())}:void 0;return a};aM.messageId="b.UpdateIssueRelationshipResponse";
var bM=function(a){this.executor=a};g=bM.prototype;g.list=function(a,b){return this.executor.get({url:"action/issues/"+a+"/relationships?relationshipType="+b,responseConstructor:$L}).pipe(R(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:YL}).pipe(R(function(d){var e;return null!=(e=d.getIssueRelationship())?e:new TL}))};
g.update=function(a,b,c){return this.executor.put({url:"action/issues/"+a+"/relationships/"+ej(c,1)+"?relationshipType="+b,body:c,responseConstructor:aM}).pipe(R(function(d){var e;return null!=(e=d.getIssueRelationship())?e:new TL}))};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 WL).setSourceIssueIdsList(a).setRelationshipType(b).setIncludeArchived();return this.executor.post({url:"action/issues/batch_relationships",body:a,responseConstructor:QJb}).pipe(R(function(c){return rb(c,XL,1)}))};
g.getDescendants=function(a){var b=a.issueIds,c=a.relationshipType,d=a.includeArchived,e=a.depthLimit;a=a.prefixSizeLimit;b=UJb(TJb(SJb(new ZL,b).setRelationshipType(c).setIncludeArchived(d),e),a);return this.executor.post({url:"action/issues/descendants",body:b,responseConstructor:VJb}).pipe(R(function(f){var h=new Map;f=r(Zi(f,1,XL).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}))};
bM.\u0275fac=function(a){return new (a||bM)(t(nI))};bM.\u0275prov=dc({token:bM,factory:bM.\u0275fac,providedIn:"root"});
var cM=function(a,b,c){JJ.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 S.BehaviorSubject(new Set);this.assignParentToIssues=eua(function(e,f){return XJb(d,e,f)});this.assignParentToOneIssue=function(e,f){return XJb(d,String(e),[{issueId:String(f)}])};this.moveChildrenInAPI=dua(function(e){return d.moveChildrenInAPISequentially(e)});
this.moveChildrenInAPISequentially=eua(function(e){var f,h,k,q,v,y,E,I,N,L,T,Y,ka,ha,ra,Da,Ja,Ba,La,hb,fb,Tb,va,Ca,Ia,Xa;return bf(function($a){switch($a.nextAddress){case 1:h=kua(e);if(0===h.length)return $a.return();k=h.map(function(jc){return jc.issues.map(function(Va){return Va.parentId})}).flat();q=h.map(function(jc){return jc.newParentId});v=Ej([].concat(u(k),u(q)),Dj);y=r(v);for(E=y.next();!E.done;E=y.next())I=E.value,d.setIsSaving(I);Qt($a,2);N=r(h);L=N.next();case 4:if(L.done){Rt($a,3);break}T=
L.value;Y={};ka=r(T.newRelations);ha=ka.next();case 7:if(ha.done){L=N.next();$a.jumpTo(4);break}Y.$jscomp$loop$prop$newRelation$1659=ha.value;ra=T.issues.find(function(jc){return function(Va){return Va.issueId===jc.$jscomp$loop$prop$newRelation$1659.targetIssueId}}(Y)).parentId;if(T.newParentId===ra)return Ja=void 0,cf($a,(0,S.firstValueFrom)(d.issueRelationshipService.update(T.newParentId,1,UL(LJb(new TL,null!=(Ja=Xk(Y.$jscomp$loop$prop$newRelation$1659.afterIssueId))?Ja:0),Number(Y.$jscomp$loop$prop$newRelation$1659.targetIssueId)))),
8);Da=void 0;return cf($a,(0,S.firstValueFrom)(d.issueRelationshipService.create(T.newParentId,1,UL(LJb(new TL,null!=(Da=Xk(Y.$jscomp$loop$prop$newRelation$1659.afterIssueId))?Da:0),Number(Y.$jscomp$loop$prop$newRelation$1659.targetIssueId)))).catch(function(jc){var Va,Ya;if(!(null==jc?0:null==(Va=jc.error)?0:null==(Ya=Va.details)?0:Ya.includes("ALREADY_EXISTS")))throw jc;}),12);case 12:return cf($a,(0,S.firstValueFrom)(d.issueRelationshipService.delete(ra,1,Y.$jscomp$loop$prop$newRelation$1659.targetIssueId)),
8);case 8:Y={$jscomp$loop$prop$newRelation$1659:Y.$jscomp$loop$prop$newRelation$1659};ha=ka.next();$a.jumpTo(7);break;case 2:f=Ba=St($a);case 3:La=d.activeMoveOperation$.value;hb=r(e.map(function(jc){return jc.eventTimestamps}).flat());for(fb=hb.next();!fb.done;fb=hb.next())Tb=fb.value,La.delete(Tb);d.activeMoveOperation$.next(La);va=r(v);for(E=va.next();!E.done;E=va.next())Ca=E.value,d.clearIsSaving(Ca);Promise.all(v.map(function(jc){return it(d,jc)}));Ia=r(h);for(L=Ia.next();!L.done;L=Ia.next())Xa=
L.value,f&&Xa.done.reject(f),Xa.done.resolve();df($a)}})});this.refreshMonitor.getObservable().subscribe(function(){d.invalidate()})};U(cM,JJ);cM.prototype.fetchOne=function(a){var b=this;return YJb(this,function(){return b.issueRelationshipService.list(a,1).pipe(R(function(c){return{issueId:a,relatedChildren:c.map(bra),totalChildCount:c.length}}))})};
cM.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,S.of)({results:[]}):YJb(this,function(){return b.issueRelationshipService.getDescendants({issueIds:d,relationshipType:1,includeArchived:!!a.includeArchived,depthLimit:a.depth,prefixSizeLimit:500}).pipe(R(osa),R(function(e){return{results:e}}))});default:mh(a.type)}};cM.prototype.copy=function(a){return a&&Fi(a)};
var YJb=function(a,b){var c=function(){return a.activeMoveOperation$.pipe(rf(function(d){return 0===d.size}),bg(function(){return b()}),bg(function(d){return 0===a.activeMoveOperation$.value.size?(0,S.of)(d):c()}),Qf())};return c()},ZJb=function(a,b){return a.watch(b).pipe(bg(function(c){return c&&c.totalChildCount===c.relatedChildren.length?(0,S.of)(c):a.watch(b,{trustMemory:!1})}))},$Jb=function(a,b,c){return GGb(a,{type:"descendants",ids:new Set([b]),depth:void 0===c?100:c})};
cM.prototype.unlinkFromParent=function(a,b,c){c=void 0===c?!1:c;var d=this,e;return bf(function(f){switch(f.nextAddress){case 1:MJ(d.issueFridge,b,function(h){--h.childIssueCount});MJ(d,b,function(h){var k=h.relatedChildren;h.relatedChildren=jua(k,a);h.totalChildCount-=k.length-h.relatedChildren.length});if(c)return f.return();Qt(f,2);return cf(f,(0,S.firstValueFrom)(d.issueRelationshipService.delete(b,1,a)),4);case 4:Rt(f,0);break;case 2:return e=St(f),cf(f,it(d,b),5);case 5:throw e;}})};
var XJb=function(a,b,c){var d,e,f,h,k,q,v,y,E,I;return bf(function(N){switch(N.nextAddress){case 1:d=[];e=[];f=[];if(0===c.length)return N.return({added:d,notAdded:e});h=aKb(a,b);k=c.map(function(L,T){var Y="-1"===L.afterIssueId?h:L.afterIssueId;return{targetIssueId:L.issueId,afterIssueId:T?c[T-1].issueId:Y}});bKb(a,b,k);q=r(k);v=q.next();case 2:if(v.done){N.jumpTo(4);break}y=v.value;Qt(N,5);E=void 0;return cf(N,(0,S.firstValueFrom)(a.issueRelationshipService.create(b,1,UL(LJb(new TL,null!=(E=Xk(y.afterIssueId))?
E:0),Number(y.targetIssueId)))),7);case 7:d.push(y.targetIssueId);Rt(N,3);break;case 5:I=St(N);if(!Em(I))throw I;f.push(I);e.push(y.targetIssueId);case 3:v=q.next();N.jumpTo(2);break;case 4:return Promise.all([it(a,b),it(a.issueFridge,b)]),N.return(Object.assign({},{added:d,notAdded:e},f.length?{errors:f}:{}))}})},bKb=function(a,b,c){var d=0;MJ(a,b,function(e){var f=iua(e.relatedChildren,c);d=f.length-e.relatedChildren.length;e.relatedChildren=f;e.totalChildCount+=d},{evenWhenInFlight:!0});MJ(a.issueFridge,
b,function(e){e.childIssueCount+=d},{evenWhenInFlight:!0})},cKb=function(a,b,c){var d,e,f,h,k,q,v,y,E,I,N,L;return bf(function(T){if(1==T.nextAddress)return d=[],e=[],f=[],0===c.length?T.return({added:d,notAdded:e}):cf(T,Promise.allSettled(c.map(function(Y){return(0,S.firstValueFrom)(a.issueRelationshipService.create(Y,1,UL(LJb(new TL,Number(aKb(a,Y))),Number(b))))})),2);h=T.yieldResult;k=r(h.entries());for(q=k.next();!q.done;q=k.next())v=q.value,y=r(v),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 it(a,Y)}));return T.return({added:d,notAdded:e,errors:f})})},dKb=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$1661:f.$jscomp$loop$prop$issue$1661},k=h.next())f.$jscomp$loop$prop$issue$1661=k.value,MJ(a,f.$jscomp$loop$prop$issue$1661.parentId,function(ka){return function(ha){ha.relatedChildren=
jua(ha.relatedChildren,ka.$jscomp$loop$prop$issue$1661.issueId);--ha.totalChildCount}}(f));var q=void 0,v;if(null==(v=b.position)?0:v.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)?MJ(a,d,function(ka){ka.relatedChildren=iua(ka.relatedChildren,L);ka.totalChildCount+=L.length},{evenWhenInFlight:!0}):a.announce({issueId:d,relatedChildren:iua([],L),totalChildCount:L.length});b=new foa;var T,Y;a.moveChildrenInAPI({newParentId:d,newRelations:L,issues:c,eventTimestamps:[e],newParentChildrenSnapshot:null!=(Y=null==
(T=a.memory.getData(d))?void 0:T.relatedChildren)?Y:[],done:b});return b.promise},aKb=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"};cM.\u0275fac=function(a){return new (a||cM)(t(bM),t(wL),t(sL))};cM.\u0275prov=dc({token:cM,factory:cM.\u0275fac,providedIn:"root"});
var eKb=Object.values({ADMIN:"admin",EDITOR:"writer",APPENDER:"appender",READER:"reader"}),dM=function(a){JJ.call(this);this.jspb=a;this.recordType="permissions"};U(dM,JJ);dM.prototype.fetchOne=function(a){return this.fetchSet([a]).pipe(R(function(b){return r(b).next().value}))};
dM.prototype.fetchSet=function(a){var b=a.map(function(c){return encodeURIComponent(c)});b={params:{relations:b.flatMap(function(){return eKb}).join(","),resourceNames:b.flatMap(function(c){return eKb.map(function(){return c})}).join(",")}};return this.jspb.get("action/user_access",{responseCtor:qK,httpOptions:b}).pipe(R(Bsa),R(function(c){return a.map(function(d){return c[d]})}))};dM.\u0275fac=function(a){return new (a||dM)(t(rL))};dM.\u0275prov=dc({token:dM,factory:dM.\u0275fac,providedIn:"root"});
var fKb=function(a,b){this.rawGet=a;this.cacheSize=b;this.lruCache=new aL(this.cacheSize,!0,function(c,d){d.subscription.unsubscribe()})};fKb.prototype.get=function(a){var b=this;return new S.Observable(function(c){var d=b.lruCache.get(a);d||(d=gKb(b,a));return d.obs$.subscribe(c)})};
var gKb=function(a,b){var c=a.rawGet(b).pipe(Zf({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 hKb(c,d);a.lruCache.set(b,c);return c},hKb=function(a,b){this.obs$=a;this.subscription=b};
var jKb=function(a){Z.call(this,a,-1,iKb)};U(jKb,Z);var kKb=function(a,b){return jl(a,1,b)},iKb=[1];jKb.prototype.toObject=function(){var a=null!=this?{teamIdsList:n(jb(this,1))}:void 0;return a};jKb.messageId="b.BatchChildTeamsRequest";
var lKb=function(a){Z.call(this,a)};U(lKb,Z);g=lKb.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 dj(this,2)};g.getDescription=function(){return V(this,3)};g.setDescription=function(a){return l(this,3,a)};g.toObject=function(){return mKb(void 0,this)};
var mKb=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 oKb=function(a){Z.call(this,a,-1,nKb)};U(oKb,Z);var nKb=[1];oKb.prototype.toObject=function(){return pKb(void 0,this)};var pKb=function(a,b){if(null!=b){var c={teamSummariesList:Cb(rb(b,lKb,1),mKb,a)};a&&(c.$jspbMessageInstance=b);return c}};
var qKb=function(a){Z.call(this,a)};U(qKb,Z);qKb.prototype.toObject=function(){var a=null!=this?{childTeamsMap:Eb(Zi(this,1,oKb),void 0,pKb)}:void 0;return a};qKb.messageId="b.BatchChildTeamsResponse";
var eM=function(a){Z.call(this,a)};U(eM,Z);eM.prototype.getUser=function(){return m(this,Sl,1)};eM.prototype.setUser=function(a){Bb(this,1,a)};eM.prototype.toObject=function(){return rKb(void 0,this)};var rKb=function(a,b){if(null!=b){var c={user:rJ(a,b.getUser()),isLead:n(To(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Et=function(a){Z.call(this,a)};U(Et,Z);g=Et.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 sKb(void 0,this)};
var sKb=function(a,b){if(null!=b){var c={inherit:n(To(b,1)),sloId:n(p(b,2)),comment:n(p(b,3)),sourceTeamId:n(p(b,4))};a&&(c.$jspbMessageInstance=b);return c}};
var fM=function(a){Z.call(this,a,-1,tKb)};U(fM,Z);g=fM.prototype;g.getTeamId=function(){return kj(this,1)};g.setTeamId=function(a){return l(this,1,a)};g.getVersion=function(){return ej(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 dj(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,eM,7)};g.getDeleted=function(){return W(this,8)};g.getSlo=function(){return m(this,Et,11)};g.setSlo=function(a){Bb(this,11,a)};g.hasSlo=function(){return lj(this,11)};var tKb=[5,10,6,7];fM.prototype.toObject=function(){return uKb(void 0,this)};
var uKb=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:Cb(b.getMembersList(),rKb,a),deleted:n(To(b,8)),estimatedComponentCount:n(p(b,9)),slo:sKb(a,b.getSlo()),sloLead:rJ(a,m(b,Sl,12)),defaultSloLead:rJ(a,m(b,Sl,13))};a&&(c.$jspbMessageInstance=b);return c}};fM.messageId="b.TeamState";
var gM=function(a){Z.call(this,a)};U(gM,Z);gM.prototype.toObject=function(){var a=null!=this?{teamsMap:Eb(Zi(this,1,fM),void 0,uKb)}:void 0;return a};gM.messageId="b.BatchGetTeamsResponse";
var wKb=function(a){Z.call(this,a,-1,vKb)};U(wKb,Z);g=wKb.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 dj(this,4)};g.getDescription=function(){return V(this,5)};g.setDescription=function(a){return l(this,5,a)};var vKb=[1,2];
wKb.prototype.toObject=function(){return xKb(void 0,this)};var xKb=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 hM=function(a){Z.call(this,a,-1,yKb)};U(hM,Z);hM.prototype.getTeamSuggestionsList=function(){return rb(this,wKb,1)};hM.prototype.setTeamSuggestionsList=function(a){Ab(this,1,a)};var yKb=[1];hM.prototype.toObject=function(){var a=null!=this?{teamSuggestionsList:Cb(this.getTeamSuggestionsList(),xKb)}:void 0;return a};hM.messageId="b.TeamSuggestionResult";
var iM=function(a){Z.call(this,a)};U(iM,Z);iM.prototype.getTeamId=function(){return kj(this,1)};iM.prototype.setTeamId=function(a){return l(this,1,a)};iM.prototype.toObject=function(){var a=null!=this?{teamId:n(p(this,1)),sloMetadata:sKb(void 0,m(this,Et,2))}:void 0;return a};iM.messageId="b.UpdateTeamSloRequest";
var jM=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 fKb(function(e){return d.batchAdaptedGet(e)},100)};jM.prototype.get=function(a){return this.executor.get({url:"action/teams/"+a,responseConstructor:fM})};jM.prototype.getTeam=function(a){return this.memoizingTeamStateMap.get(a)};
var zKb=function(a,b){b=b.filter(function(c){return"0"!==c}).map(function(c){return a.getTeam(c)});return(0,S.forkJoin)(b).pipe(R(function(c){var d=new gM;c=r(c);for(var e=c.next();!e.done;e=c.next())e=e.value,Zi(d,1,fM).set(e.getTeamId(),e);return d}))};
jM.prototype.getChildTeams=function(a){a=kKb(new jKb,a);return this.executor.post({url:"action/child_teams",body:a,responseConstructor:qKb}).pipe(R(function(b){b=[].concat(u(Zi(b,1,oKb).entries()));return new Map(b.map(function(c){var d=r(c);c=d.next().value;d=d.next().value;return[c,rb(d,lKb,1)]}))}))};
var kM=function(a,b){return a.executor.get({url:"action/suggest_teams",options:{params:{query:b}},responseConstructor:hM})},AKb=function(a,b,c){return"0"===b?(0,S.of)(!1):a.memoizingTeamStateMap.get(b).pipe(R(function(d){return void 0!==d.getMembersList().find(function(e){return e&&Ql(e.getUser())===c})}))},BKb=function(a,b){return a.executor.get({url:"action/teams",options:{params:{teamIds:b.join(","),view:"full"}},responseConstructor:gM}).pipe(Mf(function(){return(0,S.of)(new gM)}),R(function(c){return new Map(Array.from(Zi(c,
1,fM).entries()).map(function(d){var e=r(d);d=e.next().value;e=e.next().value;return[d,ej(e,9)]}))}))};jM.prototype.updateTeam=function(a){return this.executor.post({url:"action/teams/"+a.getTeamId(),body:a,responseConstructor:fM})};jM.\u0275fac=function(a){return new (a||jM)(t(nI),t(lM),t(hJ))};jM.\u0275prov=dc({token:jM,factory:jM.\u0275fac,providedIn:"root"});var lM=function(a){this.executor=a};
lM.prototype.call=function(a){return this.executor.get({url:"action/teams",options:{params:{teamIds:[].concat(u(a)).join(",")}},responseConstructor:gM}).pipe(Mf(function(){return(0,S.of)(new gM)}))};lM.prototype.split=function(a,b){return Zi(b,1,fM).get(a)||new fM};lM.\u0275fac=function(a){return new (a||lM)(t(nI))};lM.\u0275prov=dc({token:lM,factory:lM.\u0275fac,providedIn:"root"});
var mM=function(a){JJ.call(this);this.teamsApi=a;this.recordType="team";this.idForRecord=function(b){return b.getTeamId()}};U(mM,JJ);mM.prototype.fetchOne=function(a){return"0"===a?(0,S.of)(void 0):this.teamsApi.getTeam(a).pipe(Mf(function(){return(0,S.of)(void 0)}))};mM.prototype.fetchSet=function(a){var b=this;return(0,S.combineLatest)(a.map(function(c){return b.fetchOne(c)})).pipe(R(function(c){return c.filter(bl)}))};mM.\u0275fac=function(a){return new (a||mM)(t(jM))};
mM.\u0275prov=dc({token:mM,factory:mM.\u0275fac,providedIn:"root"});
var nM=function(a){Z.call(this,a,-1,CKb)};U(nM,Z);nM.prototype.getTrackersList=function(){return rb(this,tH,1)};var CKb=[1];nM.prototype.toObject=function(){var a=null!=this?{trackersList:Cb(this.getTrackersList(),oBb)}:void 0;return a};nM.messageId="b.BatchGetTrackersResponse";
var oM=function(a){Z.call(this,a,-1,DKb)};U(oM,Z);oM.prototype.getTrackersList=function(){return rb(this,tH,1)};oM.prototype.getNextPageToken=function(){return V(this,2)};oM.prototype.getTotalSize=function(){return ej(this,3)};var DKb=[1];oM.prototype.toObject=function(){var a=null!=this?{trackersList:Cb(this.getTrackersList(),oBb),nextPageToken:n(p(this,2)),totalSize:n(p(this,3))}:void 0;return a};oM.messageId="b.ListTrackersResponse";
var pM=function(a){this.jspbExecutor=a};pM.prototype.get=function(a){return this.jspbExecutor.get({url:"action/trackers/"+a,responseConstructor:tH}).pipe(R(Mn))};pM.prototype.batchGet=function(a){return this.jspbExecutor.get({url:"action/trackers/batch",responseConstructor:nM,options:{params:{trackerIds:a}}}).pipe(R(mua))};
pM.prototype.query=function(a,b,c){return this.jspbExecutor.get({url:"action/trackers",responseConstructor:oM,options:{params:{query:a,pageSize:String(b),pageToken:void 0===c?"":c}}}).pipe(R(nua))};pM.\u0275fac=function(a){return new (a||pM)(t(nI))};pM.\u0275prov=dc({token:pM,factory:pM.\u0275fac,providedIn:"root"});
var qM=function(a){JJ.call(this);this.trackerApi=a;this.recordType="tracker";this.idKey="trackerId";if(a=m(Yi(),tH,11))a=Mn(a),this.announce(a)};U(qM,JJ);qM.prototype.fetchOne=function(a){return this.trackerApi.get(a)};qM.prototype.fetchSet=function(a){return this.trackerApi.batchGet(a)};qM.\u0275fac=function(a){return new (a||qM)(t(pM))};qM.\u0275prov=dc({token:qM,factory:qM.\u0275fac,providedIn:"root"});
var rM=function(a,b){wI.call(this);this.router=a;this.activatedRoute=b;this.params={};this.routeParams$=new S.BehaviorSubject({})};U(rM,wI);rM.\u0275dir=wI.\u0275dir;
var FKb=function(a){a.activatedRoute.queryParams.pipe(cg(a.destroyed$)).subscribe(function(b){EKb(a,a.routeParams$.value,b)});a.router.events.pipe(rf(function(b){return b instanceof Dk}),R(function(b){return b}),cg(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);EKb(a,c,b.queryParams)})},sM=function(a,b){return a.routeParams$.pipe(R(function(c){return c[b]}))},EKb=function(a,b,c){for(var d=r(Object.keys(a.params)),e=
d.next();!e.done;e=d.next())delete a.params[oua(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[oua(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[oua(c)]=d};rM.\u0275fac=function(a){return new (a||rM)(t(Fk),t(dk))};rM.\u0275prov=dc({token:rM,factory:rM.\u0275fac,providedIn:"root"});
var tM=function(a,b,c){wI.call(this);var d=this;this.paramsService=b;this.issueFetchResponseFridge=c;this.componentIdOverride$=new S.BehaviorSubject(null);this.hotlistIdOverride$=new S.BehaviorSubject(null);this.routeIssueId$=sM(this.paramsService,"issueId").pipe(Pf());this.routeComponentId$=sM(this.paramsService,"componentId").pipe(Pf());this.routeHotlistId$=sM(this.paramsService,"hotlistId").pipe(Pf());this.issueId$=this.routeIssueId$.pipe(R(pua),Zf({refCount:!0,bufferSize:1}));this.componentIdFromIssueId$=
this.issueId$.pipe(bg(function(e){return e?AL(d.issueFetchResponseFridge,e):(0,S.of)(void 0)}),R(function(e){var f;return null==e?void 0:null==(f=e.issue)?void 0:f.snapshot[0].componentId}));this.componentId$=(0,S.combineLatest)([this.componentIdOverride$,this.routeComponentId$,this.componentIdFromIssueId$]).pipe(R(function(e){var f=r(e);e=f.next().value;var h=f.next().value;f=f.next().value;return e||h||f}),R(pua),Pf(),Zf({refCount:!0,bufferSize:1}));this.hotlistId$=(0,S.combineLatest)([this.hotlistIdOverride$,
this.routeHotlistId$]).pipe(R(function(e){var f=r(e);e=f.next().value;f=f.next().value;return e||f}),R(pua),Pf(),Zf({refCount:!0,bufferSize:1}));this.subscriptions.add(a.routeChangeSuccess.subscribe(function(){d.componentIdOverride$.next(null);d.hotlistIdOverride$.next(null)}))};U(tM,wI);tM.\u0275dir=wI.\u0275dir;tM.prototype.getComponentId=function(){return this.componentId$};tM.prototype.getIssueId=function(){return this.issueId$};tM.prototype.getHotlistId=function(){return this.hotlistId$};
tM.\u0275fac=function(a){return new (a||tM)(t(TI),t(rM),t(zL))};tM.\u0275prov=dc({token:tM,factory:tM.\u0275fac,providedIn:"root"});
var uM=new ld("buganizerWindow",{factory:function(){return window}});
var vM=function(a,b,c,d){wI.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 S.BehaviorSubject(this.$window.sessionStorage.getItem("buganizer.current_tracker_id")||"");this.enableTrackers=xH(this.activeSession,"enableTrackers");this.tracker$=this.trackerId$.pipe(bg(function(f){return""===f?(0,S.of)(void 0):e.trackerFridge.watch(f).pipe(ag(void 0))}));this.associatedTrackers$=
this.tracker$.pipe(bg(function(f){var h;return KJ(e.trackerFridge,null!=(h=null==f?void 0:f.associatedTrackerIds)?h:[])}));this.enableTrackers&&GKb(this);this.trackerFridge.error$.pipe(cg(this.destroyed$)).subscribe(this.handleTrackerError)};U(vM,wI);vM.\u0275dir=wI.\u0275dir;vM.prototype.getTrackerId=function(){return this.trackerId$};var GKb=function(a){var b=(new URLSearchParams(a.$window.location.search)).get("tracker");b&&a.setTrackerId(b)};
vM.prototype.setTrackerId=function(a){this.trackerId$.next(a);this.$window.sessionStorage.setItem("buganizer.current_tracker_id",a)};vM.\u0275fac=function(a){return new (a||vM)(t(uM),t(vH),t(qM),t(IK))};vM.\u0275prov=dc({token:vM,factory:vM.\u0275fac,providedIn:"root"});
var rua=RegExp("^[^\\.\\s]{2}\\.{3}@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"),qua=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])?$"),tua=["@twosync.google.com","@twosync-src.google.com","@twosync-loas.google.com"];
var wM=function(){this.transform=uua};wM.\u0275fac=function(a){return new (a||wM)};wM.\u0275pipe=wc({name:"toNewEmailPreference",type:wM,pure:!0});var xM=function(){this.transform=vua};xM.\u0275fac=function(a){return new (a||xM)};xM.\u0275pipe=wc({name:"enumToHuman",type:xM,pure:!0});var yM=function(){this.transform=wua};yM.\u0275fac=function(a){return new (a||yM)};yM.\u0275pipe=wc({name:"arrayToHuman",type:yM,pure:!0});var zM=function(){};zM.prototype.transform=function(a,b){return Vy(xua(a,b))};
zM.\u0275fac=function(a){return new (a||zM)};zM.\u0275pipe=wc({name:"boldPrefixMatches",type:zM,pure:!0});var AM=function(){this.transform=yua};AM.\u0275fac=function(a){return new (a||AM)};AM.\u0275pipe=wc({name:"yesNo",type:AM,pure:!0});var BM=function(){this.transform=zua};BM.\u0275fac=function(a){return new (a||BM)};BM.\u0275pipe=wc({name:"componentPath",type:BM,pure:!0});var CM=function(){this.transform=Aua};CM.\u0275fac=function(a){return new (a||CM)};
CM.\u0275pipe=wc({name:"teamPath",type:CM,pure:!0});var DM=function(){this.transform=Bua};DM.\u0275fac=function(a){return new (a||DM)};DM.\u0275pipe=wc({name:"v2StatusToHuman",type:DM,pure:!0});var EM=function(){this.transform=Cua};EM.\u0275fac=function(a){return new (a||EM)};EM.\u0275pipe=wc({name:"countOpenIssues",type:EM,pure:!0});var FM=function(){this.transform=Dua};FM.\u0275fac=function(a){return new (a||FM)};FM.\u0275pipe=wc({name:"formatNumberOrUndef",type:FM,pure:!0});
var GM=function(){this.transform=Eua};GM.\u0275fac=function(a){return new (a||GM)};GM.\u0275pipe=wc({name:"humanFileSize",type:GM,pure:!0});var HKb=6E4*(420-(new Ji).getTimezoneOffset()),HM=function(){this.transform=Gua};HM.\u0275fac=function(a){return new (a||HM)};HM.\u0275pipe=wc({name:"omitObfuscatedEmail",type:HM,pure:!0});var IM=function(){this.transform=Tn};IM.\u0275fac=function(a){return new (a||IM)};IM.\u0275pipe=wc({name:"toString",type:IM,pure:!0});var JM=function(){this.transform=Hua};
JM.\u0275fac=function(a){return new (a||JM)};JM.\u0275pipe=wc({name:"csv",type:JM,pure:!0});var KM=function(){};KM.\u0275fac=function(a){return new (a||KM)};KM.\u0275mod=uc({type:KM});KM.\u0275inj=gc({});
var IKb={clear:function(){},getItem:function(){},removeItem:function(){},setItem:function(){}},LM=window.localStorage||IKb,MM={getNumberAt:function(a){return function(){var b=LM.getItem(a);if(null!=b)return b=Number(b),isNaN(b)?void 0:b}},setNumberAt:function(a){return function(b){null==b?LM.removeItem(a):LM.setItem(a,String(b))}},getStringAt:function(a){return function(){var b=LM.getItem(a);if(null!=b)return String(b)}},setStringAt:function(a){return function(b){null==b?LM.removeItem(a):LM.setItem(a,
b)}},getBooleanAt:function(a){return function(){var b=LM.getItem(a);return null==b?!1:!!JSON.parse(b)}},setBooleanAt:function(a){return function(b){!0===b?LM.setItem(a,"1"):LM.removeItem(a)}},clear:function(){LM.clear()}};
var JKb=window,NM=function(){return JKb.performance&&JKb.PerformanceObserver&&"function"===typeof window.performance.getEntriesByType&&"function"===typeof window.performance.mark&&"function"===typeof window.performance.measure},Tua=function(){return{count:0,duration:0,transferSize:0,cacheHits:0,cacheHitRate:0}},KKb=function(a){if(NM())try{window.performance.mark(a)}catch(b){console.warn("route_performance",b)}};
var Wua=MM.getBooleanAt("debug-logging")(),Wn=window,LKb,MKb=function(a){a=a.getEntries().map(Iua).map(Rua);a=r(a);for(var b=a.next();!b.done;b=a.next())Vua(b.value);setTimeout(Uua,100)},Sua=!1;
var OM=function(){this.segments=[];this.clickMain=new Rw;this.clickSegment=new Rw};OM.prototype.ngOnInit=function(){};li.Object.defineProperties(OM.prototype,{showMoreButton:{configurable:!0,enumerable:!0,get:function(){return 0<this.segments.length}}});OM.\u0275fac=function(a){return new (a||OM)};
OM.\u0275cmp=w({type:OM,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&&(F(0,"span",0)(1,"a",1),J("click",function(){return b.clickMain.emit(b.label)}),H(2,"mat-icon",2),O(3),G(),M(4,Yua,6,2,"ng-container",3),G());a&2&&(B(1),le("square-right",b.showMoreButton),ge("href",b.href||void 0,Md),B(1),C("svgIcon",b.icon),B(1),De(" ",b.label," "),B(1),C("ngIf",b.showMoreButton))},dependencies:[Gx,Cx,BB,CB,iF,gF,lF,dF],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 PM=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,S.combineLatest)([this.context.getComponentId().pipe(bg(function(f){return f?e.componentFridge.watch(f):(0,S.of)(null)}),R(function(f){return f&&!f.archived?f.componentId:null})),this.context.getIssueId(),this.context.getHotlistId()]).pipe(Of(0),R(function(f){var h=r(f);f=h.next().value;var k=h.next().value;h=h.next().value;
return NKb(e,f,k,h)}));this.buttonLabel$=this.visibleOptions$.pipe(R(function(f){return f.length?"Create":"Create Issue"}));this.buttonIcon$=this.currentTracker.tracker$.pipe(R(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"}))};PM.prototype.ngOnInit=function(){};PM.prototype.trackClick=function(a){Un("create","click",a)};
var NKb=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:vua(f),path:h}})};PM.\u0275fac=function(a){return new (a||PM)(D(TK),D(tM),D(vM),D(NJ))};
PM.\u0275cmp=w({type:PM,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&&(M(0,ava,3,3,"ng-container",0),P(1,"async"));a&2&&C("ngIf",Q(1,1,b.visibleOptions$))},dependencies:[Cx,OM,Px],encapsulation:2,changeDetection:0});
var io={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 bva=MM.getNumberAt("last-visit"),cva=MM.getNumberAt("last-visit-count"),eva=MM.setNumberAt("last-visit"),dva=MM.setNumberAt("last-visit-count");null==Date.now&&(Date.now=function(){return(new Date).getTime()});
var OKb=MM.getBooleanAt("debug-logging")(),PKb=MM.getBooleanAt("onedev-darkmode"),QKb=MM.getBooleanAt("hasClickedCommentSortBtn"),QM=function(a,b,c,d,e){wI.call(this);var f=this;this.$log=c;this.ga=null;this.preapply=function(){var q=RKb;return function(v){return function(y,E){eo(f,q,v,y,E)}}};fva();c=d.getUserPreferences();Xn("dimension7",PKb()?"dark":"default");var h;Xn("dimension3",null==(h=c.themePreferences)?void 0:h.density);Xn("dimension4",cj(c));Xn("dimension6",$i("readUnreadOptOut"));Xn("dimension8",
$i("enableEnhancedCommentThread"));Xn("dimension9",QKb());Xn("dimension2",c.showFullHistory?"fh":"comments");Xn("dimension5",c.showRecentEventsFirst?"newestFirst":"oldestFirst");if(a.ga){var k=a.ga;this.subscriptions.add(b.viewContentLoaded.subscribe(function(){setTimeout(function(){for(var q=[],v=e.snapshot;v;){var y=void 0,E=void 0;q.push(null!=(E=null==(y=v.routeConfig)?void 0:y.path)?E:"");v=v.children[0]}k("send","pageview",q.join("/"))},0)}));this.ga=k}};U(QM,wI);QM.\u0275dir=wI.\u0275dir;
var eo=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):OKb&&a.$log.debug("[stub analytics.ts] ga('send', 'event')",b,c,d,f)},SKb=function(a,b,c,d){a.ga?d?a.ga("send","timing","userAction",b,c,d):a.ga("send","timing","userAction",b,c):OKb&&a.$log.debug("[stub analytics.ts] ga('send', 'timing')","userAction",b,c,d)},TKb=function(a,b,c){eo(a,io.ISSUE_PICKER,c+" duration","<"+Math.min(2*Math.ceil(b/
2E3),600)+"s",b)};QM.\u0275fac=function(a){return new (a||QM)(t(uM),t(TI),t(HK),t(vH),t(dk))};QM.\u0275prov=dc({token:QM,factory:QM.\u0275fac,providedIn:"root"});
var UKb=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},VKb=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)},XKb=function(a,b){var c=new UKb;WKb(c,a,b);return c},WKb=function(a,b,c){var d=qa(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=Bn[d.status])?0:h.open)||b.isArchived}a.priority=d.priority.substr(1);a.severity=d.severity.substr(1);a.reporter=Nl(d.reporterUser);a.assignee=Nl(d.assigneeUser);
a.assigneeEmail=Ql(d.assigneeUser);a.verifier=Nl(d.verifierUser);a.verifierEmail=Ql(d.verifierUser);a.cc=Ol(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=VKb(b);a.duplicateCount=d.duplicateIssueId?d.duplicateIssueId.length:0;a.ccCount=d.ccUsers?d.ccUsers.length:0;a.lastModifier=Nl(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?iva(e.sloStatus)||null:null;a.sloSnoozeUntil=d.sloSnoozeUntil;a.isRead=!!a.lastViewedTime&&a.lastViewedTime>=a.majorModifiedTime;d.effort&&(a.effort=d.effort instanceof ul?d.effort:uqa(d.effort))};
var RM=function(a,b){this.params=a;this.searchResponse=b;this.internalIssues=[];var c=b.positionMap||{};this.internalIssues=b.issues.map(function(d){var e=XKb(d,b.componentMap[qa(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=YKb(a.sortColumns);this.totalText=this.getTotalText(b.numTotalResults,
a.page,a.resultsPerPage,this.isPreSort);this.numResults=b.numTotalResults;this.changed$=new S.BehaviorSubject(this)};RM.prototype.hasPreviousPage=function(){return 1<this.params.page};RM.prototype.hasNextPage=function(){return this.params.page<this.numPages};var SM=function(a,b){var c=a.issues.findIndex(function(d){return d.issueId===b});return-1!==c?c+a.startIndex:-1};
RM.prototype.getIssueIdFromIndex=function(a){return a>=this.startIndex&&a<=this.endIndex&&(a-=this.startIndex,a<this.issues.length)?this.issues[a].issueId:-1};
var ZKb=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=SM(a,c.issueId);-1!==e&&(e-=a.startIndex,WKb(a.issues[e],c,d),a.issues[e].selected=!1)}a.changed$.next(a)},$Kb=function(a,b,c,d){b=SM(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)};RM.prototype.clone=function(){var a=new RM(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 YKb=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};RM.prototype.getTotalText=function(a,b,c,d){return a<=b*c?a.toString():d?"many":a.toString()};
li.Object.defineProperties(RM.prototype,{issues:{configurable:!0,enumerable:!0,get:function(){return this.internalIssues},set:function(a){this.internalIssues=a;this.changed$.next(this)}}});
var aLb=function(a,b,c,d){this.issueApi=a;this.hotlistApi=b;this.paths=c;this.params=d;this.resultPromise_=this.searchResultsPage_=null};
aLb.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 RM(a.params,e));return a.searchResultsPage_},function(e){return Promise.reject(e)})};var bLb=function(a){return a.searchResultsPage_?a.searchResultsPage_.hasNextPage():!0};
var TM=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},eLb=function(a,b){var c=Kj();cLb(b.page)?(dLb(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},gLb=function(a){var b=Kj(),c=null;a.currentResultsFetcher_?
c=a.currentResultsFetcher_.params:c=fLb(a);c?(dLb(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},UM=function(a){a.currentResultsFetcher_=null;a.nextResultsFetcher_=null;a.previousResultsFetcher_=null;a.focusedIssueIndex_=-1},hLb=function(a,b){var c=Kj();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;dLb(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},iLb=
function(a){a.currentResultsFetcher_?a.currentResultsFetcher_.fetchIssues().then(function(b){b.getIssueIdFromIndex&&(a.focusedIssueIndex_=b.endIndex>=b.startIndex?b.startIndex:-1)}).catch(function(b){Sk("unexpected error fetching:",b)}):a.focusedIssueIndex_=-1},fLb=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 Xi(new Ti(b.fieldId),
b.direction)}));return a}return null},jLb=function(a,b,c){b=Fi(b);b.page=c;return new aLb(a.issueApi,a.hotlistApi,a.paths,b)},kLb=function(a,b){a.currentResultsFetcher_||(a.currentResultsFetcher_=jLb(a,b,b.page),a.currentResultsFetcher_.fetchIssues().catch(function(c){Sk("unexpected error fetching:",c)}));!a.previousResultsFetcher_&&1<b.page&&(a.previousResultsFetcher_=jLb(a,b,b.page-1),a.previousResultsFetcher_.fetchIssues().catch(function(c){Sk("unexpected error fetching:",c)}));!a.nextResultsFetcher_&&
bLb(a.currentResultsFetcher_)&&(a.nextResultsFetcher_=jLb(a,b,b.page+1),a.nextResultsFetcher_.fetchIssues().catch(function(c){Sk("unexpected error fetching:",c)}))},dLb=function(a,b){b.page=Ki(b.page);if(!b.resultsPerPage||isNaN(b.resultsPerPage))throw Error("ed");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:UM(a)}kLb(a,b);b=JSON.stringify(a.currentResultsFetcher_.params);a.$window.sessionStorage.setItem("buganizer.searchParams",b)},cLb=function(a){var b=Ki(""+
a);return isNaN(b)||b!=Number(a)||1>b||2147483647<b?!1:!0};TM.\u0275fac=function(a){return new (a||TM)(t(uM),t(lK),t(eL),t(TK))};TM.\u0275prov=dc({token:TM,factory:TM.\u0275fac,providedIn:"root"});
var bo=function(a){Z.call(this,a)};U(bo,Z);g=bo.prototype;g.getHotlistId=function(){return kj(this,qb(this,$n,1))};g.setHotlistId=function(a){co(this,1,$n,a)};g.getName=function(){return V(this,2)};g.setName=function(a){return l(this,2,a)};g.hasName=function(){return dj(this,2)};g.getDescription=function(){return V(this,3)};g.setDescription=function(a){return l(this,3,a)};var $n=[1,4];bo.prototype.toObject=function(){return lLb(void 0,this)};
var lLb=function(a,b){if(null!=b){var c={hotlistId:n(Rr(b,1,$n)),savedSearchId:n(Rr(b,4,$n)),name:n(p(b,2)),description:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var VM=function(a){Z.call(this,a,-1,mLb)};U(VM,Z);g=VM.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 dj(this,2)};g.getDescription=function(){return V(this,3)};g.setDescription=function(a){return l(this,3,a)};g.getOwnerUser=function(){return m(this,Sl,8)};g.setOwnerUser=function(a){Bb(this,8,a)};
g.getArchived=function(){return W(this,5)};g.setArchived=function(a){l(this,5,a)};g.getItemList=function(){return rb(this,bo,6)};g.setItemList=function(a){Ab(this,6,a)};g.addItem=function(a,b){return zu(this,6,bo,a,b)};g.getAdminUsersList=function(){return rb(this,Sl,9)};g.setAdminUsersList=function(a){Ab(this,9,a)};var mLb=[6,9];VM.prototype.toObject=function(){return nLb(void 0,this)};
var nLb=function(a,b){if(null!=b){var c={bookmarkGroupId:n(p(b,1)),name:n(p(b,2)),description:n(p(b,3)),ownerUser:rJ(a,b.getOwnerUser()),archived:n(To(b,5)),itemList:Cb(b.getItemList(),lLb,a),adminUsersList:Cb(b.getAdminUsersList(),rJ,a)};a&&(c.$jspbMessageInstance=b);return c}};VM.messageId="b.BookmarkGroup";
var WM=function(a){Z.call(this,a,-1,oLb)};U(WM,Z);WM.prototype.getBookmarkGroupsList=function(){return rb(this,VM,1)};var oLb=[1];WM.prototype.toObject=function(){var a=null!=this?{bookmarkGroupsList:Cb(this.getBookmarkGroupsList(),nLb)}:void 0;return a};WM.messageId="b.BookmarkGroupListResponse";
var XM=function(a){this.executor=a};XM.prototype.get=function(a){return this.executor.get({url:"action/bookmark_groups/"+a,responseConstructor:VM}).then(ao).then(Zn)};XM.prototype.query=function(a){return this.executor.get({url:"action/bookmark_groups",options:{params:{q:a}},responseConstructor:WM}).then(mva).then(jva)};XM.prototype.create=function(a){var b=new VM;b.setName(a.name);a.description&&b.setDescription(a.description);return this.executor.post({url:"action/bookmark_groups",body:b,responseConstructor:VM}).then(ao).then(Zn)};
XM.prototype.update=function(a){var b=new VM;b.setBookmarkGroupId(String(a.bookmarkGroupId));b.setName(a.name);a.description&&b.setDescription(a.description);a.ownerUser&&b.setOwnerUser(Tl(a.ownerUser));b.setArchived(a.archived);var c;b.setItemList((null!=(c=a.item)?c:[]).map(lva));var d;b.setAdminUsersList((null!=(d=a.adminUsers)?d:[]).map(Tl));return this.executor.post({url:"action/bookmark_groups/"+a.bookmarkGroupId,body:b,responseConstructor:VM}).then(ao).then(Zn)};
XM.\u0275fac=function(a){return new (a||XM)(t(oI))};XM.\u0275prov=dc({token:XM,factory:XM.\u0275fac,providedIn:"root"});
var YM=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};YM.\u0275fac=function(a){return new (a||YM)(D(MB),D(XB))};
YM.\u0275cmp=w({type:YM,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&&(F(0,"h1",0),O(1),G(),H(2,"div",1),F(3,"div",2),M(4,nva,2,1,"button",3),F(5,"button",4),J("click",
function(){return b.dialogRef.close(!0)}),O(6),G()());a&2&&(B(1),Ee(b.data.title),B(1),C("innerHTML",b.data.content,Ld),B(2),C("ngIf",b.showCancelButton),B(1),C("color",b.confirmButtonTheme),B(1),De(" ",b.confirmButtonText," "))},dependencies:[Cx,BB,aC,bC,cC],encapsulation:2});var ZM=function(a){this.dialog=a},pLb=function(a,b){return new Promise(function(c){a.open(Object.assign({},b,{onConfirm:function(){c(!0)},onDismiss:function(){c(!1)}}))})};
ZM.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=kh(rh(a.content).toString(),null);NB(this.dialog.open(YM,{data:{title:b,content:a,isDestructive:e,cancelButtonText:f,confirmButtonText:h,showCancelButton:k},maxWidth:"500px"})).subscribe(function(q){q?null==c||c():null==d||d()})};ZM.\u0275fac=function(a){return new (a||ZM)(t(ZB))};ZM.\u0275prov=dc({token:ZM,factory:ZM.\u0275fac,providedIn:"root"});
var qLb=function(){};
var $M=function(a,b){this.router=a;this.location=b};U($M,qLb);$M.prototype.reload=function(){var a=this,b=this.location.url();ft(this.router,"/",{skipLocationChange:!0}).then(function(){return ft(a.router,b,{skipLocationChange:!0})})};$M.\u0275fac=function(a){return new (a||$M)(t(Fk),t(SK))};$M.\u0275prov=dc({token:$M,factory:$M.\u0275fac,providedIn:"root"});
var rLb=new ld("Route",{factory:function(){return t($M)}});
var aN=function(a,b,c,d,e,f,h,k,q,v){wI.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=v;this.sidebarData={hotlists:[],bookmarkGroups:[],archivedHotlists:[],archivedBookmarkGroups:[],userSearches:[]};this.userSavedSearches_=[];this.userHotlists_=[];sLb(this);tLb(this);this.fetchUserHotlists();a=function(){sLb(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(){tLb(y)}));a=function(){y.fetchUserHotlists()};this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(a));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(a))};U(aN,wI);aN.\u0275dir=wI.\u0275dir;
var sLb=function(a){a.userApi.getUserSidebar().then(function(b){a.sidebarData.hotlists=uLb(a,b.hotlists);a.sidebarData.bookmarkGroups=vLb(a,b.bookmarkGroups);a.sidebarData.archivedHotlists=uLb(a,b.archivedHotlists);a.sidebarData.archivedBookmarkGroups=vLb(a,b.archivedBookmarkGroups);a.appEvents.sidebarUpdated.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})},tLb=function(a){a.userApi.getUserSavedSearches().then(function(b){b=wLb(a,b);a.sidebarData.userSearches=b;wa(a.userSavedSearches_);
laa(a.userSavedSearches_,b);a.appEvents.sidebarUpdated.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};aN.prototype.fetchUserHotlists=function(){var a=this;this.userApi.getUserHotlists().then(function(b){xLb(a,b);a.appEvents.sidebarUpdated.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
var uLb=function(a,b){return(b||[]).map(function(c){return yLb(a.sidebarItemFactory,c)}).sort(function(c,d){return c.name.localeCompare(d.name)})},vLb=function(a,b){return(b||[]).map(function(c){var d=a.sidebarItemFactory;return new zLb(c,d.activeSession,d.analytics,d.userApi,d.bookmarkGroupsApi,d.butterBar,d.paths,d.userPreferencesManager,d.errorHandler,d,d.confirmationDialogService,d.appEvents)})},wLb=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 ALb(a.sidebarItemFactory,c)})},xLb=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()!==Nl(c.ownerUser),resourceType:"HOTLIST"};return yLb(a.sidebarItemFactory,c)});wa(a.userHotlists_);laa(a.userHotlists_,b)};
aN.prototype.onAnchorClick=function(a,b){var c,d,e=null!=(d=null==(c=b.target)?void 0:c.innerText)?d:"";eo(this.analytics,"nav","click",e.trim());b.metaKey||b.ctrlKey||b.shiftKey||0!==b.button||(UM(this.issuePagination),IIb(this.paths,a)&&this.$route.reload(),this.bLocation.url(a),b.preventDefault(),b.stopPropagation())};aN.\u0275fac=function(a){return new (a||aN)(t(rLb),t(vH),t(kL),t(IK),t(SK),t(TK),t(TM),t(bN),t(MK),t(QM))};aN.\u0275prov=dc({token:aN,factory:aN.\u0275fac,providedIn:"root"});
var cN=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()};cN.prototype.isEditable=function(){return!!this.ownerUser&&Nl(this.ownerUser)===this.userEmail};cN.prototype.isSelected=function(){return HIb(this.paths,this.href)};
cN.prototype.isUnstarable=function(){return!(this.ownerUser&&Nl(this.ownerUser)===this.userEmail)&&this.starred};
var BLb=function(a,b){var c=Fi(a.userPreferencesManager.preferencesSubject$.getValue()).homepagePreferences;return(null==c?void 0:c.resourceId)===a.id&&c.resourceType===b},CLb=function(a,b){FK(a.butterBar,"Updating homepage...",0);$Eb(a.userPreferencesManager,{resourceType:b,resourceId:a.id}).pipe(Qf()).subscribe(function(){FK(a.butterBar,"Homepage updated")})},DLb=function(a,b,c,d,e,f,h,k,q,v,y,E){cN.call(this,a,b,c,d,e,h,k,q);this.hotlistApi=f;this.errorHandler=v;this.confirmationDialogService=
y;this.appEvents=E;this.href=k.viewHotlist(a.id);this.type="HOTLIST"};U(DLb,cN);g=DLb.prototype;g.isPreferredHomepage=function(){return BLb(this,"HOTLIST")};g.setAsPreferredHomepage=function(){CLb(this,"HOTLIST")};
g.archive=function(){var a=this;FK(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});FK(a.butterBar,'Archived hotlist "'+a.name+'".');eo(a.analytics,"sidebarItem","archived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.unarchive=function(){var a=this;FK(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});FK(a.butterBar,'Unarchived hotlist "'+a.name+'".');eo(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:Pn("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;FK(this.butterBar,"Unstarring hotlist ID "+this.id+"...");this.userApi.deleteFavorite({resourceType:"HOTLIST",resourceId:this.id}).then(function(){FK(a.butterBar,"Unstarred hotlist ID "+a.id);a.appEvents.hotlistChanged.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};var dN=function(a,b,c,d,e,f,h,k){cN.call(this,a,b,c,d,e,f,h,k);this.href=h.viewSavedSearch(a.id);this.type="SAVED_SEARCH"};U(dN,cN);dN.prototype.isUnstarable=function(){return!1};
dN.prototype.unstar=function(){};dN.prototype.isPreferredHomepage=function(){return BLb(this,"SAVED_SEARCH")};dN.prototype.setAsPreferredHomepage=function(){CLb(this,"SAVED_SEARCH")};
var zLb=function(a,b,c,d,e,f,h,k,q,v,y,E){cN.call(this,a,b,c,d,e,f,h,k);this.errorHandler=q;this.sidebarItemFactory=v;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(yLb(this.sidebarItemFactory,b));break;case "SAVED_SEARCH":this.items.push(ALb(this.sidebarItemFactory,b))}this.items.sort(function(I,N){return I.name.localeCompare(N.name)})};U(zLb,cN);g=zLb.prototype;
g.isPreferredHomepage=function(){return BLb(this,"BOOKMARK_GROUP")};g.setAsPreferredHomepage=function(){CLb(this,"BOOKMARK_GROUP")};
g.archive=function(){var a=this;FK(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});FK(a.butterBar,'Archived bookmark group "'+a.name+'".');eo(a.analytics,"sidebarItem","archived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.unarchive=function(){var a=this;FK(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});FK(a.butterBar,'Unarchived bookmark group "'+a.name+'".');eo(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:Pn("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;FK(this.butterBar,"Unstarring bookmark group ID "+this.id+"...");this.userApi.deleteFavorite({resourceType:"BOOKMARK_GROUP",resourceId:this.id}).then(function(){FK(a.butterBar,"Unstarred bookmark group ID "+a.id);a.appEvents.bookmarkGroupModified.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
var bN=function(a,b,c,d,e,f,h,k,q,v,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=v;this.appEvents=y},yLb=function(a,b){return new DLb(b,a.activeSession,a.analytics,a.userApi,a.bookmarkGroupsApi,a.hotlistApi,a.butterBar,a.paths,a.userPreferencesManager,a.errorHandler,a.confirmationDialogService,a.appEvents)},ALb=function(a,b){return new dN(b,
a.activeSession,a.analytics,a.userApi,a.bookmarkGroupsApi,a.butterBar,a.paths,a.userPreferencesManager)};bN.\u0275fac=function(a){return new (a||bN)(t(vH),t(kL),t(XM),t(eL),t(IK),t(TK),t(QM),t(DK),t(VI),t(ZM),t(MK))};bN.\u0275prov=dc({token:bN,factory:bN.\u0275fac,providedIn:"root"});
var eN=function(){this.expanded=!1;this.content=this.header=null};eN.\u0275fac=function(a){return new (a||eN)};
eN.\u0275cmp=w({type:eN,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&&(F(0,"div",0),J("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()}),M(1,ova,1,0,"ng-container",1),G(),M(2,qva,2,1,"ng-container",2));a&2&&(le("opened",b.expanded)("closed",!b.expanded),ge("aria-expanded",b.expanded),B(1),C("ngTemplateOutlet",b.header),B(1),C("ngIf",b.expanded))},dependencies:[Cx,Mx],encapsulation:2});
var fN=function(a,b,c,d){this.location=a;this.analytics=b;this.paths=c;this.sidebar=d;this.bookmarkGroups=[];this.hotlists=[]};g=fN.prototype;g.handleBookmarkGroupOpen=function(a){eo(this.analytics,"sidebarArchived","open");this.location.url(this.paths.viewBookmarkGroup(a))};g.handleBookmarkGroupDashboard=function(a){eo(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)};fN.\u0275fac=function(a){return new (a||fN)(D(SK),D(QM),D(TK),D(aN))};
fN.\u0275cmp=w({type:fN,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&&M(0,Gva,7,2,"div",0);a&2&&C("ngIf",b.hotlists.length||b.bookmarkGroups.length)},dependencies:[Gx,Cx,dF,BB,iF,gF,lF,fF,eN],encapsulation:2});
var gN=function(){this.admins=[]};gN.prototype.ngOnInit=function(){this.url="bookmark-groups/"+this.bookmarkGroup.bookmarkGroupId;this.admins=Ol(this.bookmarkGroup.adminUsers)};gN.\u0275fac=function(a){return new (a||gN)};
gN.\u0275cmp=w({type:gN,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&&(F(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3")(4,"a",3),O(5),G()(),F(6,"ul")(7,"li"),O(8),G(),F(9,"li"),O(10),G()(),F(11,"div")(12,"p"),O(13),G()()()()());a&2&&(B(4),C("href",b.url,
Md),B(1),Ee(b.bookmarkGroup.name),B(3),De("ID: ",b.bookmarkGroup.bookmarkGroupId,""),B(2),Fe("",1===b.admins.length?"Admin":"Admins",": ",b.admins.join(", "),""),B(3),Ee(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 hN=function(){this.admins=[]};hN.prototype.ngOnInit=function(){this.url="hotlists/"+this.hotlist.hotlistId;this.admins=Ol(this.hotlist.adminUsers)};hN.\u0275fac=function(a){return new (a||hN)};
hN.\u0275cmp=w({type:hN,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&&(F(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3")(4,"a",3),O(5),G()(),F(6,"ul")(7,"li"),O(8),G(),F(9,"li"),O(10),G()(),F(11,"div")(12,"p"),O(13),G()()()()());a&2&&(B(4),C("href",b.url,Md),B(1),Ee(b.hotlist.name),B(3),De("ID: ",b.hotlist.hotlistId,""),B(2),Fe("",1===
b.admins.length?"Admin":"Admins",": ",b.admins.join(", "),""),B(3),Ee(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 iN=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 Rw;this.isAnonymous=this.activeSession.isAnonymous()};g=iN.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};iN.\u0275fac=function(a){return new (a||iN)(D(vH),D(sI))};
iN.\u0275cmp=w({type:iN,selectors:[["b-star-toggle"]],inputs:{starred:"starred",disabled:"disabled",acceptInput:"acceptInput",starMessage:"starMessage",unStarMessage:"unStarMessage"},outputs:{starClicked:"starClicked"},features:[Ge([sI])],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();F(0,"div",
0,1)(2,"button",2);J("keydown.enter",function(d){return b.onEnter(d)})("click",function(d){return b.onClick(d)})("focus",function(){z(c);var d=Ce(1);return A(d.show())})("blur",function(){z(c);var d=Ce(1);return A(d.hide())});H(3,"mat-icon",3);G()()}a&2&&(C("matTooltip",b.getLabel()),B(2),le("starred",b.starred),C("disabled",b.isDisabled()),ge("aria-label",b.getAriaLabel())("aria-checked",b.starred),B(1),C("svgIcon",b.starred?"star-filled":"star-empty"))},dependencies:[BB,dF,sF],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 ELb=mi(function(a){this._elementRef=a},"primary"),FLb=new ld("mat-progress-spinner-default-options",{providedIn:"root",factory:Jva}),jN=function(a,b,c,d,e,f,h,k){var q=ELb.call(this,a)||this;q._document=c;q._diameter=100;q._value=0;q._resizeSubscription=S.Subscription.EMPTY;q.mode="determinate";q._spinnerAnimationLabel=q._getSpinnerAnimationLabel();GLb.has(c.head)||GLb.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(jN,ELb);g=jN.prototype;g.ngOnInit=function(){var a=this._elementRef.nativeElement;this._styleRoot=Rg(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=GLb.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,GLb.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(".","_")};
li.Object.defineProperties(jN.prototype,{diameter:{configurable:!0,enumerable:!0,get:function(){return this._diameter},set:function(a){this._diameter=Yg(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=Yg(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,Yg(a)))}}});var GLb=new WeakMap;jN.\u0275fac=function(a){return new (a||jN)(D(pd),D(Iy),D(ji,8),D(ew,8),D(FLb),D(vx),D(GA),D(jg))};
jN.\u0275cmp=w({type:jN,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&&(ge("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),ke("width",b.diameter,"px")("height",b.diameter,"px"),le("_mat-animation-noopable",b._noopAnimations))},inputs:{color:"color",
diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[ae],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&&(Nc(),F(0,"svg",0,1),M(2,Hva,1,11,"circle",2),M(3,Iva,1,9,"circle",3),G());a&2&&(ke("width",b.diameter,"px")("height",b.diameter,"px"),C("ngSwitch","indeterminate"===b.mode),ge("viewBox",b._getViewBox()),B(2),C("ngSwitchCase",!0),B(1),C("ngSwitchCase",!1))},dependencies:[Ix,Jx],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 kN=function(){};kN.\u0275fac=function(a){return new (a||kN)};kN.\u0275cmp=w({type:kN,selectors:[["b-spinner"]],inputs:{large:"large"},decls:2,vars:2,consts:[["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&&(M(0,Kva,1,1,"mat-spinner",0),M(1,Lva,1,2,"mat-spinner",1));a&2&&(C("ngIf",b.large),B(1),C("ngIf",!b.large))},dependencies:[Cx,jN],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)}.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}}\n/*# sourceMappingURL=spinner.css.map */"]});
var Mva;
var lN=function(a){var b=this;this.elementRef=a;this.eventType="click";this.clickOutside=new Rw;this.clickHandler=function(c){if(c instanceof MouseEvent){var d=c.target;d&&(b.elementRef.nativeElement.contains(d)||b.clickOutside.emit(c))}}};lN.prototype.ngOnInit=function(){this.getRoot().addEventListener(this.eventType,this.clickHandler,!0)};lN.prototype.ngOnDestroy=function(){this.getRoot().removeEventListener(this.eventType,this.clickHandler,!0)};
lN.prototype.getRoot=function(){var a;return null!=(a=Nva(this.elementRef.nativeElement))?a:document};lN.\u0275fac=function(a){return new (a||lN)(D(pd))};lN.\u0275dir=w({type:lN,selectors:[["","clickOutside",""]],inputs:{eventType:["clickOutsideEvent","eventType"]},outputs:{clickOutside:"clickOutside"}});var mN=function(){};mN.\u0275fac=function(a){return new (a||mN)};mN.\u0275mod=uc({type:mN});mN.\u0275inj=gc({});
var HLb,ILb=Symbol("fd"),JLb=Symbol("gd"),nN=function(a){this.viewContainerRef=a;this.className="onedev-hovercard";this.onHide=new Rw;this[HLb]=new S.ReplaySubject(1);this.wasTriggeredByKeyboard=!1;this.isOnHover$=new S.BehaviorSubject(!1);this.closeHovercard$=new S.Subject};nN.prototype.ngOnInit=function(){};var KLb=function(a){var b=a[JLb];return b?(b.loaded||(b.viewContainerRef.createEmbeddedView(b.templateRef),b.cdr.detectChanges(),b.loaded=!0),a[ILb].pipe(Of(0))):(0,S.of)(void 0)};HLb=ILb;
nN.\u0275fac=function(a){return new (a||nN)(D(yf))};
nN.\u0275cmp=w({type:nN,selectors:[["onedev-hovercard"]],viewQuery:function(a,b){a&1&&Bf(xf,7);if(a&2){var c;Af(c=Df())&&(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&&(xe(),M(0,Ova,2,3,"ng-template"))},dependencies:[Py,lN],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 oN=function(a,b,c,d){this.templateRef=a;this.viewContainerRef=b;this.cdr=c;this.loaded=!1;d[JLb]=this};oN.\u0275fac=function(a){return new (a||oN)(D(xf),D(yf),D(vx),D(nN))};oN.\u0275dir=w({type:oN,selectors:[["","onedevHovercardLazyBody",""]]});var pN=function(a){this.hovercard=a;this.destroyed$=new S.ReplaySubject(1)};pN.prototype.ngOnDestroy=function(){this.destroyed$.next()};pN.prototype.ngOnInit=function(){this.isHovercardReady$.pipe(cg(this.destroyed$)).subscribe(this.hovercard[ILb])};
pN.\u0275fac=function(a){return new (a||pN)(D(nN))};pN.\u0275dir=w({type:pN,selectors:[["","onedevIsHovercardReady",""]],inputs:{isHovercardReady$:["onedevIsHovercardReady","isHovercardReady$"]}});
var LLb=[{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 MLb=function(){this.delay=600;this.position=LLb},qN=function(a,b){var c=this;this.overlay=a;this.origin=b;this.waitFor$=void 0;this.enabled=!0;this.config=new MLb;this.active=!1;this.hovercardShown$=new S.ReplaySubject(1);this.hide$=new S.Subject;this.hovercard$=new S.BehaviorSubject(null);this.isHovered$=new S.BehaviorSubject(!1);this.isKeyboardActivated$=new S.BehaviorSubject(!1);this.destroyed$=new S.ReplaySubject(1);this.onDocumentKeyDown=function(d){"Escape"===d.key&&(NLb(c),d.stopPropagation(),
d.preventDefault())};OLb(this);PLb(this)},OLb=function(a){QLb(a).pipe(cg(a.destroyed$)).subscribe(function(b){(a.active=b)?a.show():a.hide()})},PLb=function(a){a.hovercard$.pipe(bg(function(b){return(null==b?void 0:b.closeHovercard$)||S.NEVER}),cg(a.destroyed$)).subscribe(function(){NLb(a)})};qN.prototype.dispose=function(){RLb(this);var a;null==(a=this.overlayRef)||a.dispose();this.destroyed$.next();this.destroyed$.complete()};
qN.prototype.isExpanded=function(){return this.hovercard$.getValue()?this.active:void 0};qN.prototype.toggle=function(a){this.isHovered$.next(a)};var NLb=function(a){a.isKeyboardActivated$.next(!1);a.isHovered$.next(!1);var b;null==(b=a.hovercard$.getValue())||b.isOnHover$.next(!1)};
qN.prototype.show=function(){var a=this;this.enabled&&this.overlayRef&&!this.overlayRef.hasAttached()&&this.hovercard$.getValue()&&(this.hovercard$.getValue().wasTriggeredByKeyboard=this.isKeyboardActivated$.value,KLb(this.hovercard$.getValue()).pipe(Qf(),cg(this.destroyed$)).subscribe(function(){a.overlayRef&&a.templatePortal&&a.overlayRef.attach(a.templatePortal);document.addEventListener("keydown",a.onDocumentKeyDown);a.hovercardShown$.next()}))};qN.prototype.hide=function(){RLb(this);this.hide$.next()};
var RLb=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()}};qN.prototype.getPositionStrategy=function(){return NA(OA(PA(VA(this.overlay.position(),this.origin)),8),this.config.position)};
var QLb=function(a){return(0,S.combineLatest)([SLb(a).pipe(ag(!1)),a.isKeyboardActivated$]).pipe($f(1),R(function(b){var c=r(b);b=c.next().value;c=c.next().value;return b||c}),bg(function(b){var c;return(null==(c=a.waitFor$)?void 0:c.pipe(Uf(b)))||(0,S.of)(b)}))},SLb=function(a){return a.hovercard$.pipe(bg(function(b){return(0,S.combineLatest)([a.isHovered$,(null==b?void 0:b.isOnHover$)||(0,S.of)(!1)]).pipe(R(function(c){var d=r(c);c=d.next().value;d=d.next().value;return c||d}),Nf(a.config.delay),
cg(a.destroyed$))}))};
var TLb=new ld("onedevHovercardLoggingOn"),rN=function(a,b,c,d,e){var f=this;this.viewContainerRef=c;this.injector=e;this.config=new MLb;this.destroyed$=new S.ReplaySubject(1);this.triggerControl=new qN(a,b);this.triggerControl.hovercardShown$.pipe(eg(d||(0,S.of)(!1)),cg(this.destroyed$)).subscribe(function(h){h=r(h);h.next();h.next().value&&(f.clientStreamzService||(f.clientStreamzService=f.injector.get(GE)),HE(f.clientStreamzService,"hovercardShown",!0))})};g=rN.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 YA(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()};li.Object.defineProperties(rN.prototype,{enabled:{configurable:!0,enumerable:!0,set:function(a){this.triggerControl.enabled=a}}});rN.\u0275fac=function(a){return new (a||rN)(D(cB),D(pd),D(yf),D(TLb,8),D(Qv))};
rN.\u0275dir=w({type:rN,selectors:[["","onedevHovercardTrigger",""]],hostVars:2,hostBindings:function(a,b){a&1&&J("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&&ge("aria-haspopup",b.hovercard?"true":void 0)("aria-expanded",b.isExpanded())},inputs:{hovercard:["onedevHovercardTrigger","hovercard"],enabled:["onedevHovercardActive",
"enabled"],config:["onedevHovercardConfig","config"]},features:[Cc]});
var ULb=["panel"],VLb=0,WLb=function(a,b){this.source=a;this.option=b},XLb=ni(function(){}),YLb=new ld("mat-autocomplete-default-options",{providedIn:"root",factory:Qva}),sN=function(a,b,c,d){var e=XLb.call(this)||this;e._changeDetectorRef=a;e._elementRef=b;e._activeOptionChanges=S.Subscription.EMPTY;e.showPanel=!1;e._isOpen=!1;e.displayWith=null;e.optionSelected=new Rw;e.opened=new Rw;e.closed=new Rw;e.optionActivated=new Rw;e._classList={};e.id="mat-autocomplete-"+VLb++;e.inertGroups=(null==d?void 0:
d.SAFARI)||!1;e._autoActiveFirstOption=!!c.autoActiveFirstOption;e._autoSelectActiveOption=!!c.autoSelectActiveOption;return e};U(sN,XLb);g=sN.prototype;g.ngAfterContentInit=function(){var a=this;this._keyManager=hA(new pA(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 WLb(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};
li.Object.defineProperties(sN.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=Vg(a)}},autoSelectActiveOption:{configurable:!0,enumerable:!0,get:function(){return this._autoSelectActiveOption},set:function(a){this._autoSelectActiveOption=Vg(a)}},classList:{configurable:!0,enumerable:!0,set:function(a){a&&
a.length?this._classList=sja(a).reduce(function(b,c){b[c]=!0;return b},{}):this._classList={};this._setVisibilityClasses(this._classList);this._elementRef.nativeElement.className=""}}});sN.\u0275fac=function(a){return new (a||sN)(D(vx),D(pd),D(YLb),D(Iy))};
sN.\u0275dir=w({type:sN,viewQuery:function(a,b){a&1&&(Bf(xf,7),Bf(ULb,5));if(a&2){var c;Af(c=Df())&&(b.template=c.first);Af(c=Df())&&(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:[ae]});var tN=function(){var a=sN.apply(this,arguments)||this;a._visibleClass="mat-autocomplete-visible";a._hiddenClass="mat-autocomplete-hidden";return a};U(tN,sN);tN.\u0275dir=sN.\u0275dir;tN.\u0275fac=function(){var a;return function(b){return(a||(a=ed(tN)))(b||tN)}}();
tN.\u0275cmp=w({type:tN,selectors:[["mat-autocomplete"]],contentQueries:function(a,b,c){a&1&&(Cf(c,Tpb,5),Cf(c,xB,5));if(a&2){var d;Af(d=Df())&&(b.optionGroups=d);Af(d=Df())&&(b.options=d)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[Ge([{provide:Spb,useExisting:tN}]),ae],ngContentSelectors:["*"],decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(a){a&1&&(xe(),M(0,
Pva,3,4,"ng-template"))},dependencies:[Fx],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 ZLb=new ld("mat-autocomplete-scroll-strategy"),$Lb={provide:ZLb,deps:[cB],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}},aMb={provide:Ex,useExisting:bc(function(){return uN}),multi:!0},vN=function(a,b,c,d,e,f,h,k,q,v,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=v;this._defaults=y;this._manuallyFloatingLabel=this._autocompleteDisabled=
this._componentDestroyed=!1;this._viewportSubscription=S.Subscription.EMPTY;this._canOpenOnNextFocus=!0;this._closeKeyEventStream=new S.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,S.defer)(function(){var I=E.autocomplete?E.autocomplete.options:null;return I?
I.changes.pipe(ag(I),bg(function(){return S.merge.apply(null,u(I.map(function(N){return N.onSelectionChange})))})):E._zone.onStable.pipe(Qf(),bg(function(){return E.optionSelections}))});this._scrollStrategy=f};vN.prototype.ngAfterViewInit=function(){var a=this,b=this._getWindow();"undefined"!==typeof b&&this._zone.runOutsideAngular(function(){return b.addEventListener("blur",a._windowBlurHandler)})};
vN.prototype.ngOnChanges=function(a){a.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())};vN.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 ys=function(a){a._resetLabel();a._overlayAttached&&(a.panelOpen&&a._zone.run(function(){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=vN.prototype;g.updatePosition=function(){this._overlayAttached&&this._overlayRef.updatePosition()};
g._getOutsideClickStream=function(){var a=this;return(0,S.merge)((0,S.fromEvent)(this._document,"click"),(0,S.fromEvent)(this._document,"auxclick"),(0,S.fromEvent)(this._document,"touchend")).pipe(rf(function(b){b=Tg(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=hi(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(Qf()),c=this.autocomplete.options.changes.pipe(dg(function(){return Gpb(a._positionStrategy)}),Of(0));return(0,S.merge)(b,c).pipe(bg(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}),
Qf()).subscribe(function(d){return a._setValueAndClose(d)})};g._destroyPanel=function(){this._overlayRef&&(ys(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();ys(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 YA(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 KA({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=QA(PA(VA(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));NA(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?nA(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&&!hi(c)||38===c.keyCode&&hi(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()}})};
li.Object.defineProperties(vN.prototype,{autocompleteDisabled:{configurable:!0,enumerable:!0,get:function(){return this._autocompleteDisabled},set:function(a){this._autocompleteDisabled=Vg(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,S.merge)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(rf(function(){return a._overlayAttached})),
this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef._detachments.pipe(rf(function(){return a._overlayAttached})):(0,S.of)()).pipe(R(function(b){return b instanceof cqb?b:null}))}},activeOption:{configurable:!0,enumerable:!0,get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}}});vN.\u0275fac=function(a){return new (a||vN)(D(pd),D(cB),D(yf),D(jg),D(vx),D(ZLb),D(rA,8),D(nC,9),D(ji,8),D(GA),D(YLb,8))};
vN.\u0275dir=w({type:vN,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[Cc]});var uN=function(){vN.apply(this,arguments);this._aboveClass="mat-autocomplete-panel-above"};U(uN,vN);
uN.\u0275fac=function(){var a;return function(b){return(a||(a=ed(uN)))(b||uN)}}();
uN.\u0275dir=w({type:uN,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(a,b){a&1&&J("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&&ge("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:[Ge([aMb]),ae]});
var wN=function(){};wN.\u0275fac=function(a){return new (a||wN)};wN.\u0275mod=uc({type:wN});wN.\u0275inj=gc({providers:[$Lb],imports:[fB,AB,gB,Wx,HA,AB,gB]});
var bMb=["searchBox"],xN=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 Rw;this.lastProcessedIndex=-1;this.nextRequestIndex=0;this.favoriteBookmarkGroups=new Set;this.favoriteHotlists=new Set;this.query="";this.matches=[];this.currentUserEmail=b.getUserEmail()};
xN.prototype.ngOnInit=function(){this.allowStarring&&cMb(this)};
var cMb=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=xN.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&&!Ol(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();cMb(b);b.cdr.detectChanges()};c={resourceId:c,resourceType:d};a.isStarred?(eo(this.analytics,"hotlistSearch","starItem"),this.userApi.saveFavorite(c).then(e)):(eo(this.analytics,"hotlistSearch","unstarItem"),this.userApi.deleteFavorite(c).then(e))};
xN.\u0275fac=function(a){return new (a||xN)(D(sI,2),D(vH),D(kL),D(XM),D(eL),D(TK),D(QM),D(IK),D(MK))};
xN.\u0275cmp=w({type:xN,selectors:[["b-hotlist-search"]],viewQuery:function(a,b){a&1&&(Bf(bMb,5),Bf(uN,5));if(a&2){var c;Af(c=Df())&&(b.searchBoxEl=c.first);Af(c=Df())&&(b.autocomplete=c.first)}},hostAttrs:[1,"'bv2-hotlist-search'"],inputs:{showGroups:"showGroups",showHotlists:"showHotlists",allowStarring:"allowStarring",focusOnInit:"focusOnInit"},outputs:{itemSelect:"itemSelect"},features:[Ge([sI])],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&&(F(0,"div",0)(1,"input",1,2),J("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()}),G(),M(3,Rva,1,0,"b-spinner",3),F(4,"mat-autocomplete",4,5),J("optionSelected",function(d){b.itemSelect.emit(d.option.value)}),M(6,Vva,9,8,"mat-option",6),G(),F(7,"div",7),O(8,' e.g., "foo bar admin:user@google.com" '),H(9,"br"),O(10,' or "foo bar admin:group@google.com" '),H(11,"br"),O(12," Only identities directly listed as Admins can be searched. "),G()());if(a&2){var c=Ce(5);B(1);C("ngModel",b.query)("matAutocomplete",c);ge("autofocus",b.focusOnInit)("aria-label","Add query for searching "+
(b.showGroups?"bookmark groups":"hotlists"));B(2);C("ngIf",b.isLoading());B(3);C("ngForOf",b.matches)}},dependencies:[Gx,Cx,gN,hN,nN,rN,kN,iN,Jg,ly,ry,tN,uN,xB],encapsulation:2});
var dMb=[[["xap-dialog-layout-title"]],[["xap-dialog-layout-subtitle"]],[["xap-dialog-layout-content"]],[["xap-dialog-layout-actions"]]],yN=function(){};yN.\u0275fac=function(a){return new (a||yN)};yN.\u0275dir=w({type:yN,selectors:[["xap-dialog-layout-subtitle"]]});var zN=function(a,b,c){this.el=a;this.cdRef=b;this.ngZone=c;this.destroyed=new S.ReplaySubject;this.internalScrollable=!1;this.internalScrollPosition="bottom"};
zN.prototype.ngOnInit=function(){var a=this;this.internalScrollPosition=this.getScrollPosition(this.el.nativeElement);this.ngZone.runOutsideAngular(function(){eMb(a).subscribe(function(b){a.ngZone.run(function(){a.internalScrollable=b;a.cdRef.markForCheck();a.cdRef.detectChanges()})});fMb(a).subscribe(function(b){a.ngZone.run(function(){a.internalScrollPosition=b;a.cdRef.markForCheck();a.cdRef.detectChanges()})})})};zN.prototype.ngOnDestroy=function(){this.destroyed.next();this.destroyed.complete()};
var eMb=function(a){if(!window.ResizeObserver)return(0,S.of)(gMb(a.el.nativeElement));var b;return(0,S.fromEventPattern)(function(c){b=new ResizeObserver(function(){c(gMb(a.el.nativeElement))});b.observe(a.el.nativeElement)},function(){b.disconnect()}).pipe(Pf(),cg(a.destroyed))},fMb=function(a){return(0,S.fromEvent)(a.el.nativeElement,"scroll").pipe(Wva(),R(function(){return a.getScrollPosition(a.el.nativeElement)}),Pf(),cg(a.destroyed))},gMb=function(a){return a.offsetHeight+a.scrollTop<=a.scrollHeight};
zN.prototype.getScrollPosition=function(a){return 0===a.scrollTop?"top":a.offsetHeight+a.scrollTop>=a.scrollHeight?"bottom":"center"};li.Object.defineProperties(zN.prototype,{scrollable:{configurable:!0,enumerable:!0,get:function(){return this.internalScrollable}},scrollPosition:{configurable:!0,enumerable:!0,get:function(){return this.internalScrollPosition}}});zN.\u0275fac=function(a){return new (a||zN)(D(pd),D(vx),D(jg))};
zN.\u0275dir=w({type:zN,selectors:[["xap-dialog-layout-content"]],hostAttrs:[1,"xap-dialog-layout-content"],hostVars:6,hostBindings:function(a,b){a&2&&le("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 AN=function(){};AN.\u0275fac=function(a){return new (a||AN)};
AN.\u0275cmp=w({type:AN,selectors:[["xap-dialog-layout"]],contentQueries:function(a,b,c){a&1&&Cf(c,yN,4);if(a&2){var d;Af(d=Df())&&(b.subtitle=d)}},hostAttrs:[1,"xap-dialog-layout"],hostVars:2,hostBindings:function(a,b){a&2&&le("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&&(xe(dMb),
F(0,"header",0),ye(1),ye(2,1),G(),ye(3,2),ye(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 hMb=Gh({opacity:0}),iMb=Gh({opacity:1}),jMb=Eh("dialogContainer",[Hh("void, hidden",hMb),Hh("visible",iMb),Ih("void => *, * => visible",Fh("200ms cubic-bezier(0.0,0.0,0.2,1)",iMb)),Ih("* => void, * => hidden",Fh("200ms cubic-bezier(0.4,0.0,0.2,1)",hMb))]);
var kMb=new ld("XAP_IDCO"),BN=function(a){this._isDisposed=!1;this.options=a;this.animationState="hidden"};U(BN,ZA);BN.prototype.ngAfterViewInit=function(){};BN.prototype.attachComponentPortal=function(a){return this.portalOutlet.attachComponentPortal(a)};BN.prototype.attachTemplatePortal=function(a){return this.portalOutlet.attachTemplatePortal(a)};BN.\u0275fac=function(a){return new (a||BN)(D(kMb))};
BN.\u0275cmp=w({type:BN,selectors:[["xap-inline-dialog-container"]],viewQuery:function(a,b){a&1&&Bf(aB,7);if(a&2){var c;Af(c=Df())&&(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&&(ge("aria-label",b.options.dialogLabel),we("@dialogContainer",b.animationState))},features:[ae],decls:2,vars:0,consts:[["cdkPortalOutlet",""],["cdkFocusInitial","","tabindex","0"]],template:function(a){a&1&&(F(0,
"div"),M(1,Xva,1,0,"ng-template",0),G())},dependencies:[aB],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:[jMb]},changeDetection:0});
var lMb=[{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}],mMb={minWidth:220,maxWidth:420,minHeight:64,maxHeight:420},CN=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 Rw;this.opened=new Rw;this.closed=new Rw;this.destroyed=new S.ReplaySubject;this.openStatusChange=new S.BehaviorSubject(!1);this.openings=this.openStatusChange.pipe(rf(function(v){return v&&!q.disabled}));this.elementFocusedBeforeDialogWasOpened=void 0;nMb(this,c.nativeElement);this.attachKeyboardCloseEventListeners(c.nativeElement);
oMb(this,c.nativeElement)};CN.prototype.ngOnInit=function(){var a=this.elementRef.nativeElement;a.hasAttribute("aria-haspopup")||a.setAttribute("aria-haspopup","dialog");a.hasAttribute("aria-describedby")||rpb(this.ariaDescriber,a,this.triggerDescription)};CN.prototype.ngOnDestroy=function(){DN(this);this.openStatusChange.complete();this.destroyed.next();this.destroyed.complete();this.overlayRef&&this.overlayRef.dispose()};
var nMb=function(a,b){a.ngZone.runOutsideAngular(function(){(0,S.fromEvent)(b,"keydown").pipe(cg(a.destroyed)).subscribe(function(c){switch(c.keyCode){case 13:a.openDialog();break;case 32:c.preventDefault()}});(0,S.fromEvent)(b,"keyup").pipe(cg(a.destroyed)).subscribe(function(c){switch(c.keyCode){case 32:a.openDialog()}})})},oMb=function(a,b){a.ngZone.runOutsideAngular(function(){(0,S.fromEvent)(b,"focus").pipe(rf(function(){return 0<a.beforeOpened.observers.length}),cg(a.destroyed)).subscribe(function(){a.ngZone.run(function(){a.beforeOpened.emit()})})})};
CN.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=pMb(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 DN=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))};
CN.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),Ly(this.focusTrap),Ny(this.focusTrap))};
CN.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)}};CN.prototype.createPositionStrategy=function(a){return NA(VA(this.overlay.position(),this.elementRef),a).setOrigin(this.elementRef)};
var pMb=function(a){var b=hg({parent:a.injector,providers:[{provide:kMb,useValue:{dialogLabel:a.dialogLabel}}]});b=new XA(BN,null,b);null==a.overlayRef&&(a.overlayRef=a.overlay.create(a.createOverlayConfig(lMb)));a.overlaySize&&a.overlayRef.updateSize(a.overlaySize);a.overlayPositions&&0<a.overlayPositions.length&&Epb(a.overlayRef,a.createPositionStrategy(a.overlayPositions));return a.overlayRef.attach(b)};
li.Object.defineProperties(CN.prototype,{dialog:{configurable:!0,enumerable:!0,set:function(a){a&&(this.portal=a instanceof xf?new YA(a,this.viewContainerRef):new XA(a,this.viewContainerRef))}},disabled:{configurable:!0,enumerable:!0,set:function(a){(this.disabledInternal=a)&&DN(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}}}});CN.\u0275fac=function(a){return new (a||CN)(D(jg),D(cB),D(pd),D(yf),D(Document),D(fA),D(bA),D(Qv))};CN.\u0275dir=w({type:CN,hostVars:1,hostBindings:function(a,b){a&2&&ge("data-disabled",b.disabled)},inputs:{dialogLabel:"dialogLabel",overlaySize:"overlaySize",overlayPositions:"overlayPositions",triggerDescription:"triggerDescription",panelClass:"panelClass"},outputs:{beforeOpened:"beforeOpened",opened:"opened",closed:"closed"}});
var EN=function(a,b,c,d,e,f,h,k){CN.call(this,a,b,c,d,e,f,h,k);this.attachMouseEventListeners(c.nativeElement)};U(EN,CN);g=EN.prototype;g.ngOnInit=function(){CN.prototype.ngOnInit.call(this);this.listenForOpenEvents()};g.listenForOpenEvents=function(){var a=this;this.openStatusChange.pipe(cg(this.destroyed)).subscribe(function(b){b?a.openDialog():DN(a)});this.openings.pipe(rf(function(b){return b&&0<a.beforeOpened.observers.length}),Kha(function(){return a.openStatusChange.pipe(rf(function(b){return!b}))}))};
g.attachMouseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){(0,S.fromEvent)(a,"mouseenter").pipe(cg(b.destroyed)).subscribe(function(){b.ngZone.run(function(){b.beforeOpened.emit()})});(0,S.fromEvent)(a,"click").pipe(cg(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(cg(b.destroyed)).subscribe(function(){b.openStatusChange.value&&
b.closingDialog()})})};g.attachKeyboardCloseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){(0,S.fromEvent)(a,"keyup").pipe(cg(b.destroyed)).subscribe(function(c){var d=c.target;switch(c.keyCode){case 27:DN(b);break;case 13:case 32:d.closest("[xapInlineDialogClose]")&&DN(b)}})})};g.openingDialog=function(){this.disabled||this.openStatusChange.next(!0)};g.closingDialog=function(){this.openStatusChange.next(!1)};
g.createOverlayConfig=function(a){return new KA(Object.assign({},mMb,{positionStrategy:CN.prototype.createPositionStrategy.call(this,a),scrollStrategy:this.overlay.scrollStrategies.close(),hasBackdrop:!0,backdropClass:"cdk-overlay-transparent-backdrop",panelClass:this.panelClassInternal}))};EN.\u0275fac=function(a){return new (a||EN)(D(jg),D(cB),D(pd),D(yf),D(ji),D(fA),D(bA),D(Qv))};
EN.\u0275dir=w({type:EN,selectors:[["","xapInlineDialogClick",""]],hostAttrs:[1,"xap-inline-dialog-click"],inputs:{dialog:["xapInlineDialogClick","dialog"],disabled:["xapInlineDialogDisabled","disabled"]},exportAs:["xapInlineDialogClick"],features:[ae]});
var qMb=["*"],rMb=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}"},FN=function(){this.disabled=!1};FN.\u0275fac=function(a){return new (a||FN)};
FN.\u0275cmp=w({type:FN,selectors:[["xap-text-trigger"]],hostAttrs:["role","button"],hostVars:3,hostBindings:function(a,b){a&2&&(ge("tabindex",b.disabled?-1:0),le("xap-text-trigger",!b.disabled))},inputs:{disabled:["xapInlineDialogDisabled","disabled"]},ngContentSelectors:qMb,decls:1,vars:0,template:function(a){a&1&&(xe(),ye(0))},styles:[rMb()],encapsulation:2});var GN=function(){this.disabled=!1};GN.\u0275fac=function(a){return new (a||GN)};
GN.\u0275cmp=w({type:GN,selectors:[["xap-icon-trigger"]],hostAttrs:["role","button","tabindex","0",1,"xap-icon-trigger"],inputs:{disabled:["xapInlineDialogDisabled","disabled"]},ngContentSelectors:qMb,decls:1,vars:0,template:function(a){a&1&&(xe(),ye(0))},styles:[rMb()],encapsulation:2});
var HN=function(){this.allowStarring=this.showHotlists=this.showGroups=!0;this.ariaLabel="";this.itemSelect=new Rw};HN.\u0275fac=function(a){return new (a||HN)};
HN.\u0275cmp=w({type:HN,selectors:[["b-hotlist-search-popup"]],viewQuery:function(a,b){a&1&&Bf(EN,5);if(a&2){var c;Af(c=Df())&&(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&&(F(0,"xap-icon-trigger",0),H(1,"mat-icon",1),G(),M(2,Yva,3,4,"ng-template",null,2,Jf));if(a&2){var c=Ce(3);C("xapInlineDialogClick",c);ge("aria-label",b.ariaLabel)}},dependencies:[AN,zN,sF,dF,EN,GN,xN],styles:["xap-dialog-layout[_ngcontent-%COMP%] { padding: 16px; }","xap-dialog-layout-content[_ngcontent-%COMP%] { padding: 0; }"]});
var IN=function(a,b,c,d){this.location=a;this.analytics=b;this.paths=c;this.sidebar=d;this.bookmarkGroups=[]};IN.prototype.handleBookmarkGroupOpen=function(a){eo(this.analytics,"sidebarBookmarkGroups","open");this.location.url(this.paths.viewBookmarkGroup(a))};IN.prototype.handleBookmarkGroupDashboard=function(a){eo(this.analytics,"sidebarBookmarkGroups","dashboard");this.location.url(this.paths.dashboard(a))};IN.prototype.editBookmarkGroup=function(a){this.location.url(this.paths.editBookmarkGroup(a))};
IN.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};IN.\u0275fac=function(a){return new (a||IN)(D(SK),D(QM),D(TK),D(aN))};
IN.\u0275cmp=w({type:IN,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&&(F(0,"div",0),H(1,"hr"),F(2,"sidebar-zippy",1),M(3,Zva,3,1,"ng-template",null,2,Jf),M(5,nwa,1,1,"ng-template",null,3,Jf),G()());if(a&2){var b=Ce(4),c=Ce(6);B(2);C("header",b)("content",c)("expanded",!0)}},dependencies:[Gx,Cx,HN,dF,BB,iF,gF,lF,fF,eN],encapsulation:2});
var JN=function(a,b,c,d,e){this.location=a;this.analytics=c;this.sidebar=d;this.paths=e;this.userEmail=b.getUserEmail()};JN.prototype.getUserEmail=function(){return this.userEmail};JN.prototype.openEditHotlist=function(a){this.location.url(this.paths.editHotlist(a))};JN.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};JN.\u0275fac=function(a){return new (a||JN)(D(SK),D(vH),D(QM),D(aN),D(TK))};
JN.\u0275cmp=w({type:JN,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&&(F(0,"div",0),H(1,"hr"),F(2,"sidebar-zippy",1),M(3,owa,3,1,"ng-template",null,2,Jf),M(5,vwa,1,1,"ng-template",null,3,Jf),G()());if(a&2){var b=Ce(4),c=Ce(6);B(2);C("header",b)("content",c)("expanded",!0)}},dependencies:[Gx,Cx,HN,dF,BB,iF,gF,lF,fF,eN],encapsulation:2});
var KN=function(a){Z.call(this,a)};U(KN,Z);KN.prototype.getSearch=function(){return m(this,un,1)};KN.prototype.setSearch=function(a){Bb(this,1,a)};KN.prototype.toObject=function(){var a=null!=this?{search:cJb(void 0,this.getSearch())}:void 0;return a};KN.messageId="b.SearchResponse";
var LN=function(a){this.jspbExecutor=a};LN.prototype.get=function(a){return this.jspbExecutor.get({url:"action/saved_searches/"+a,responseConstructor:KN}).pipe(R(wwa))};LN.prototype.create=function(a,b){var c=new un;c.setName(a);c.setQuery(b);return this.jspbExecutor.post({url:"action/saved_searches",body:c,responseConstructor:KN}).pipe(R(wwa))};
LN.prototype.update=function(a,b){var c=new un;l(c,1,String(b.searchId));c.setOwnerUser(Tl(b.ownerUser));c.setName(b.name);c.setDescription(b.description);c.setQuery(b.query);var d;c.setSortOrderList((null!=(d=b.sortOrder)?d:[]).map(cta));var e;c.setDisplayColumnList((null!=(e=b.displayColumn)?e:[]).map(ata));var f;c.setAdminUsersList((null!=(f=b.adminUsers)?f:[]).map(Tl));return this.jspbExecutor.post({url:"action/saved_searches/"+a,body:c,responseConstructor:KN}).pipe(R(wwa))};
LN.prototype.delete=function(a){return this.jspbExecutor.delete({url:"action/saved_searches/"+a,responseConstructor:null})};LN.\u0275fac=function(a){return new (a||LN)(t(nI))};LN.\u0275prov=dc({token:LN,factory:LN.\u0275fac,providedIn:"root"});var MN=function(a){this.observableResources=a};MN.prototype.get=function(a){return(0,S.firstValueFrom)(this.observableResources.get(a))};MN.prototype.create=function(a,b){return(0,S.firstValueFrom)(this.observableResources.create(a,b))};
MN.prototype.update=function(a,b){return(0,S.firstValueFrom)(this.observableResources.update(a,b))};MN.prototype.delete=function(a){return(0,S.firstValueFrom)(this.observableResources.delete(a))};MN.\u0275fac=function(a){return new (a||MN)(t(LN))};MN.\u0275prov=dc({token:MN,factory:MN.\u0275fac,providedIn:"root"});
var NN=function(a,b,c,d,e,f,h,k,q,v){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=v;this.searches=[]};NN.prototype.isSelected=function(a){return HIb(this.paths,a.href)};NN.prototype.openEditSavedSearch=function(a){this.location.url(this.paths.editSavedSearch(a))};
var zwa=function(a,b){a.confirmationDialogService.open({title:"Deleting saved search: "+b.name,content:Pn("Are you sure you want to delete this search?"),onConfirm:function(){sMb(a,b)}})},sMb=function(a,b){var c=b.id;FK(a.butterBar,'Deleting saved search "'+b.name+'"...');a.savedSearchApi.delete(c).then(function(){a.appEvents.savedSearchModified.next({savedSearchId:c,action:"delete"});FK(a.butterBar,'Deleted saved search "'+b.name+'".');eo(a.analytics,"sidebarSavedSearches","deleted");a.cdr.detectChanges()}).catch(function(d){a.errorHandler.errorHandler(null,
d)})};NN.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};NN.\u0275fac=function(a){return new (a||NN)(D(sI,2),D(SK),D(MN),D(TK),D(DK),D(QM),D(aN),D(IK),D(ZM),D(MK))};
NN.\u0275cmp=w({type:NN,selectors:[["sidebar-saved-searches"]],inputs:{searches:"searches"},features:[Ge([sI])],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&&(F(0,"div",0),H(1,"hr"),F(2,"sidebar-zippy",1),M(3,xwa,2,0,"ng-template",null,2,Jf),M(5,Dwa,1,1,"ng-template",null,3,Jf),G()());if(a&
2){var b=Ce(4),c=Ce(6);B(2);C("header",b)("content",c)("expanded",!0)}},dependencies:[Gx,Cx,dF,BB,iF,gF,lF,fF,eN],encapsulation:2});
var tMb=/^\s*hotlistid:(\d+)\s*$/i,ON=function(a,b){this.$log=a;this.contextSensitiveRegistry=b;this.currentSearch="";this.searchTextChange$=new S.Subject;this.searchHandlerStack=[]},uMb=function(a,b){return a.searchTextChange$.subscribe(b)};ON.prototype.clear=function(){PN(this,"")};
var PN=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(tMb))?a.contextSensitiveRegistry.hotlistIdOverride$.next(Ki(b[1])):a.contextSensitiveRegistry.hotlistIdOverride$.next(null);a.searchTextChange$.next(a.currentSearch)},vMb=function(a){return"assignee:"+a+" status:open"};ON.prototype.getStarred=function(){return"star:true"};
ON.prototype.isStarred=function(){return this.currentSearch===this.getStarred()};ON.prototype.getVoted=function(){return"vote:true"};
var Jwa=function(a){return a.currentSearch===a.getVoted()},wMb=function(a){return"verifier:"+a+" status:open | status:fixed"},xMb=function(a){return(a=a.currentSearch.match(tMb))?Ki(a[1]):0},yMb=function(a){return(a=a.currentSearch.match(/^\s*savedsearchid:(\d+)\s*$/i))?Ki(a[1]):0},zMb=function(a,b){a.searchHandlerStack.push(b);return function(){ya(a.searchHandlerStack,b)}};ON.\u0275fac=function(a){return new (a||ON)(t(HK),t(tM))};ON.\u0275prov=dc({token:ON,factory:ON.\u0275fac,providedIn:"root"});
var AMb=MM.setStringAt("edited-ids"),BMb=MM.getStringAt("edited-ids"),CMb=MM.setStringAt("viewed-ids"),DMb=MM.getStringAt("viewed-ids"),QN=function(a){var b=this;this.appEvents=a;this.stop$=new S.Subject;this.edited=new Map;this.viewed=new Map;this.addViewed=function(c){Ewa(b.viewed,c);CMb(Array.from(b.viewed.keys()).join(","))};this.addEdited=function(c){Ewa(b.edited,c);AMb(Array.from(b.edited.keys()).join(","))}};QN.\u0275fac=function(a){return new (a||QN)(t(MK))};
QN.\u0275prov=dc({token:QN,factory:QN.\u0275fac,providedIn:"root"});
var RN=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=xH(this.activeSession,"enableUpvotedInNav")&&this.activeSession.isInternalSession();this.votedPath=this.paths.listIssues({q:this.currentSearch.getVoted()});this.recentlyViewedPath=EMb(this)?"recent":void 0;this.destroyed$=new Rw;this.hasPreferredHomepage$=this.userPreferencesManager.preferences$.pipe(R(function(v){v=
(v||uH).homepagePreferences;return!(!v||!v.resourceType)}),Pf());this.appName=b.getAppName();this.userEmail=b.getUserEmail();this.environmentType=b.getEnvironmentType();this.assignedPath=e.listIssues({q:vMb(this.userEmail)});this.starredPath=e.listIssues({q:d.getStarred()});this.ccdPath=e.listIssues({q:"cc:"+this.userEmail});this.verifiedPath=e.listIssues({q:wMb(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};RN.prototype.ngOnInit=function(){var a=this;this.hasPreferredHomepage$.pipe(cg(this.destroyed$)).subscribe(function(){setTimeout(function(){a.cdr.detectChanges()})})};RN.prototype.ngOnDestroy=function(){this.destroyed$.next()};
var Hwa=function(a){FK(a.butterBar,"Updating homepage...",0);a.userPreferencesManager.clearHomepagePreferences().pipe(cg(a.destroyed$)).subscribe(function(){FK(a.butterBar,"Homepage updated")})};RN.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};var EMb=function(a){var b=xH(a.activeSession,"enableRecentlyViewedInNav");a=0<Array.from(a.issueLru.viewed.keys()).length;return b&&a};RN.\u0275fac=function(a){return new (a||RN)(D(sI,2),D(vH),D(DK),D(ON),D(TK),D(VI),D(aN),D(dy),D(QN))};
RN.\u0275cmp=w({type:RN,selectors:[["b-sidebar"]],features:[Ge([sI])],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&&(F(0,"div",0),H(1,"b-create-issue-button"),G(),F(2,"div",1)(3,"div",2)(4,"ul",3)(5,"li",4)(6,"a",5),J("click",function(c){return b.onAnchorClick(b.assignedPath,c)}),H(7,"mat-icon",6),O(8," Assigned to me "),G(),M(9,Gwa,3,1,"ng-container",7),P(10,"async"),F(11,"mat-menu",null,8),M(13,Iwa,2,0,"ng-template",9),G()(),F(14,"li")(15,"a",5),J("click",function(c){return b.onAnchorClick(b.starredPath,c)}),H(16,
"mat-icon",10),O(17," Starred by me "),G()(),F(18,"li")(19,"a",5),J("click",function(c){return b.onAnchorClick(b.ccdPath,c)}),H(20,"mat-icon",11),O(21," CC'd to me "),G()(),F(22,"li")(23,"a",5),J("click",function(c){return b.onAnchorClick(b.reportedPath,c)}),H(24,"mat-icon",12),O(25," Reported by me "),G()(),M(26,Kwa,4,3,"li",13),F(27,"li")(28,"a",5),J("click",function(c){return b.onAnchorClick(b.verifiedPath,c)}),H(29,"mat-icon",14),O(30," To be verified "),G()(),M(31,Lwa,4,3,"li",13),G(),H(32,"sidebar-bookmark-groups",
15)(33,"sidebar-saved-searches",16)(34,"sidebar-hotlists",17)(35,"sidebar-archived",18)(36,"hr"),F(37,"div",19)(38,"a",20),O(39," Create hotlist "),G()(),F(40,"div",19)(41,"a",20),O(42," Create bookmark group "),G()(),F(43,"div",19)(44,"a",20),O(45," Browse components "),G()()()());a&2&&(B(5),le("selected",b.currentSearch.currentSearch===vMb(b.userEmail)),B(1),C("href",b.assignedPath,Md),B(3),C("ngIf",Q(10,26,b.hasPreferredHomepage$)),B(5),le("selected",b.currentSearch.isStarred()),B(1),C("href",
b.starredPath,Md),B(3),le("selected",b.currentSearch.currentSearch==="cc:"+b.userEmail),B(1),C("href",b.ccdPath,Md),B(3),le("selected",b.currentSearch.currentSearch==="reporter:"+b.userEmail),B(1),C("href",b.reportedPath,Md),B(3),C("ngIf",b.enabledVotedNav),B(1),le("selected",b.currentSearch.currentSearch===wMb(b.userEmail)),B(1),C("href",b.verifiedPath,Md),B(3),C("ngIf",b.recentlyViewedPath),B(1),C("bookmarkGroups",b.sidebarData.bookmarkGroups),B(1),C("searches",b.sidebarData.userSearches),B(1),
C("hotlists",b.sidebarData.hotlists),B(1),C("hotlists",b.sidebarData.archivedHotlists)("bookmarkGroups",b.sidebarData.archivedBookmarkGroups),B(3),C("href",b.createHotlistPath,Md),B(3),C("href",b.createBookmarkGroupPath,Md),B(3),C("href",b.componentsPath,Md))},dependencies:[PM,Cx,dF,BB,iF,gF,lF,fF,fN,IN,JN,NN,Px],encapsulation:2});
var SN=function(){};SN.\u0275fac=function(a){return new (a||SN)};SN.\u0275mod=uc({type:SN});SN.\u0275inj=gc({imports:[Wx]});
var TN=function(){};TN.\u0275fac=function(a){return new (a||TN)};TN.\u0275mod=uc({type:TN});TN.\u0275inj=gc({imports:[Wx]});
var UN=function(){};UN.\u0275fac=function(a){return new (a||UN)};UN.\u0275mod=uc({type:UN});UN.\u0275inj=gc({imports:[Wx,bI,BG,wF,lH]});
var VN=function(){};VN.\u0275fac=function(a){return new (a||VN)};VN.\u0275mod=uc({type:VN});VN.\u0275inj=gc({imports:[gB,Wx,gB]});
var WN=function(){};WN.\u0275fac=function(a){return new (a||WN)};WN.\u0275mod=uc({type:WN});WN.\u0275inj=gc({imports:[Wx,VN]});
var XN=function(){this.onAction=new Rw;this.disabled=!1};XN.prototype.handleClick=function(){this.onAction.emit()};XN.\u0275fac=function(a){return new (a||XN)};
XN.\u0275cmp=w({type:XN,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&&(xe(),F(0,"button",0),J("click",function(){return b.handleClick()}),ye(1),G());a&2&&C("disabled",b.disabled)},dependencies:[BB],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 YN=function(){};YN.\u0275fac=function(a){return new (a||YN)};YN.\u0275mod=uc({type:YN});YN.\u0275inj=gc({imports:[aA,mN,Wx,BG,fB]});
var ZN=function(){};ZN.\u0275fac=function(a){return new (a||ZN)};ZN.\u0275mod=uc({type:ZN});ZN.\u0275inj=gc({imports:[Wx]});
var $N=function(a,b,c,d,e,f,h,k){CN.call(this,a,b,c,d,e,f,h,k);this.hoverDelayMs=500;this.activity=new S.Subject;this.attachMouseEventListeners(c.nativeElement)};U($N,CN);g=$N.prototype;g.ngOnInit=function(){CN.prototype.ngOnInit.call(this);this.listenForOpenEvents(this.hoverDelayMs)};
g.listenForOpenEvents=function(a){var b=this,c=this.openStatusChange.pipe(Xga(function(){return b.activity.pipe(Nf(a))}));c.pipe(cg(this.destroyed)).subscribe(function(d){d?b.openDialog():DN(b)});this.openings.pipe(rf(function(d){return d&&0<b.beforeOpened.observers.length}),Kha(function(){return c.pipe(rf(function(d){return!d}))}),cg(this.destroyed)).subscribe(function(){b.ngZone.run(function(){b.beforeOpened.emit()})})};
g.attachMouseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){(0,S.fromEvent)(a,"mouseenter").pipe(cg(b.destroyed)).subscribe(function(){b.openingDialog()});(0,S.fromEvent)(a,"click").pipe(cg(b.destroyed)).subscribe(function(){b.openingDialog();b.openDialog()});(0,S.fromEvent)(a,"mouseleave").pipe(cg(b.destroyed)).subscribe(function(){b.closingDialog()});(0,S.fromEvent)(a,"mousemove").pipe(cg(b.destroyed)).subscribe(function(){b.activity.next()})})};
g.attachKeyboardCloseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){(0,S.fromEvent)(a,"keydown").pipe(cg(b.destroyed)).subscribe(function(c){switch(c.keyCode){case 27:var d;(null==(d=b.overlayRef)?0:d.hasAttached())&&c.stopPropagation();DN(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 KA(Object.assign({},mMb,{positionStrategy:CN.prototype.createPositionStrategy.call(this,a),scrollStrategy:this.overlay.scrollStrategies.close(),panelClass:this.panelClassInternal}))};$N.\u0275fac=function(a){return new (a||$N)(D(jg),D(cB),D(pd),D(yf),D(ji),D(fA),D(bA),D(Qv))};
$N.\u0275dir=w({type:$N,selectors:[["","xapInlineDialog",""]],hostAttrs:[1,"xap-inline-dialog"],inputs:{dialog:["xapInlineDialog","dialog"],disabled:["xapInlineDialogDisabled","disabled"],hoverDelayMs:"hoverDelayMs"},exportAs:["xapInlineDialog"],features:[ae]});
[].concat(u([$N,EN,GN,FN]),[BN]);var aO=function(){};aO.\u0275fac=function(a){return new (a||aO)};aO.\u0275mod=uc({type:aO});aO.\u0275inj=gc({imports:[aA,Wx,fB,bB]});
var bO=function(){};bO.\u0275fac=function(a){return new (a||bO)};bO.\u0275mod=uc({type:bO});bO.\u0275inj=gc({imports:[Wx,SN,TN,YN,WN,UN,ZN,lH,wF,Gy,aO,wN]});
var FMb=[OM],cO=function(){};[].concat(u(FMb));[].concat(u(FMb));cO.\u0275fac=function(a){return new (a||cO)};cO.\u0275mod=uc({type:cO});cO.\u0275inj=gc({imports:[Wx,BG,mF,wF,lH]});
var dO=function(){};dO.\u0275fac=function(a){return new (a||dO)};dO.\u0275mod=uc({type:dO});dO.\u0275inj=gc({imports:[Wx,cO]});
var eO=function(){};eO.\u0275fac=function(a){return new (a||eO)};eO.\u0275mod=uc({type:eO});eO.\u0275inj=gc({imports:[dO,Wx,bO,wF,BG,mF]});
var fO=function(a,b){this.$window=a;this.activeSession=b};fO.prototype.setTitle=function(a){this.$window.document.title=a?a+" - "+this.activeSession.getAppName():this.activeSession.getAppName()};fO.\u0275fac=function(a){return new (a||fO)(t(uM),t(vH))};fO.\u0275prov=dc({token:fO,factory:fO.\u0275fac,providedIn:"root"});
var HMb=function(a){Z.call(this,a,-1,GMb)};U(HMb,Z);var GMb=[1,2];HMb.prototype.toObject=function(){var a=null!=this?{noAccessEmailsList:n(jb(this,1)),unknownEmailsList:n(jb(this,2))}:void 0;return a};HMb.messageId="b.CheckPermissionResponse";
var gO=function(){},hO=function(a){this.apiResourceFactory=a;this.accessPolicyResources=TGb(PJ(RJ(this.apiResourceFactory,"action/access_policies/:resourceName"))).build();this.checkAccessResource=PJ(RJ(this.apiResourceFactory,"action/check_permission/:emails/:relation/:resourceName")).build();this.accessLimitResource=SJ(this.apiResourceFactory,"action/access_limits/:resourceName")};U(hO,gO);g=hO.prototype;g.get=function(a,b){a=go(a,b);return this.accessPolicyResources.get({resourceName:a})};
g.update=function(a,b,c){a=go(a,b);return this.accessPolicyResources.save({resourceName:a},c)};g.checkPermission=function(a,b,c,d){c=go(c,d);return this.checkAccessResource.get({emails:a,relation:b,resourceName:c})};g.setAccessLimit=function(a,b,c){a=go(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})};hO.\u0275fac=function(a){return new (a||hO)(t(QJ))};
hO.\u0275prov=dc({token:hO,factory:hO.\u0275fac,providedIn:"root"});var iO=function(a){this.executor=a};g=iO.prototype;g.get=function(a,b){a=Dm(go(a,b));return this.executor.get({url:"action/access_policies/"+a,responseConstructor:In}).pipe(R(Hn))};g.update=function(a,b,c){a=Dm(go(a,b));c=$ta(c);return this.executor.post({url:"action/access_policies/"+a,body:c,responseConstructor:In}).pipe(R(Hn))};
g.checkPermission=function(a,b,c,d){a=Dm(a.join(","));b=Dm(b);c=Dm(go(c,d));return this.executor.get({url:"action/check_permission/"+a+"/"+b+"/"+c,responseConstructor:HMb}).pipe(R(Uta))};g.setAccessLimit=function(a,b,c){a=Dm(go(a,b));c=Wpa(c);return this.executor.post({url:"action/access_limits/"+a,body:c,responseConstructor:Pk}).pipe(R(Upa))};g.checkComponentImplicitAccessEnabled=function(a){return this.get("COMPONENT",a).pipe(R(function(b){return"ALLOW"===b.implicitAccess}))};
iO.\u0275fac=function(a){return new (a||iO)(t(nI))};iO.\u0275prov=dc({token:iO,factory:iO.\u0275fac,providedIn:"root"});var jO=function(a){this.observableApi=a};U(jO,gO);g=jO.prototype;g.get=function(a,b){return(0,S.firstValueFrom)(this.observableApi.get(a,b))};g.update=function(a,b,c){return(0,S.firstValueFrom)(this.observableApi.update(a,b,c))};g.checkPermission=function(a,b,c,d){return(0,S.firstValueFrom)(this.observableApi.checkPermission(a,b,c,d))};
g.setAccessLimit=function(a,b,c){return(0,S.firstValueFrom)(this.observableApi.setAccessLimit(a,b,c))};g.checkComponentImplicitAccessEnabled=function(a){return(0,S.firstValueFrom)(this.observableApi.checkComponentImplicitAccessEnabled(a))};jO.\u0275fac=function(a){return new (a||jO)(t(iO))};jO.\u0275prov=dc({token:jO,factory:jO.\u0275fac,providedIn:"root"});
var kO=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$=sM(this.paramsService,"issueId").pipe(Pf());this.urlComment$=this.activatedRoute.fragment.pipe(R(Cxa),Zf({refCount:!0,bufferSize:1}));this.issueJs$=this.id$.pipe(bg(function(q){return AL(k.issueFetchResponseFridge,q)}),Zf({refCount:!0,bufferSize:1}));this.issueJs$.pipe(R(function(q){return null==
q?void 0:q.firstEvent}));this.eventsJs$=this.id$.pipe(bg(function(q){return k.eventsForIssue.watch(q)}),R(function(q){var v;return null!=(v=null==q?void 0:q.events)?v:[]}));this.starred$=this.issueJs$.pipe(R(Owa));this.lastViewedTimeMicros$=this.issueJs$.pipe(R(Pwa));this.lastViewedTimeMicros$.pipe(R(function(q){return!q}));this.title$=this.issueJs$.pipe(R(Qwa));this.issueJs$.pipe(R(hxa));(0,S.merge)(this.issueJs$.pipe(R(function(q){return null==q?void 0:q.firstEvent}),rf(bl),R(function(q){return[q]})),
this.eventsJs$).pipe(Vf(function(q,v){v=v.flatMap(function(E){return E.attachments});v=r(v);for(var y=v.next();!y.done;y=v.next())y=y.value,null!=y.attachmentId&&(q[y.attachmentId]=y);return q},{}));this.issueJs$.pipe(R(ixa));this.issueJs$.pipe(R(jxa));this.status$=this.issueJs$.pipe(R(Rwa));this.priority$=this.issueJs$.pipe(R(Swa));this.assignee$=this.issueJs$.pipe(R(Twa));this.issueJs$.pipe(R(Uwa));this.teamId$=this.issueJs$.pipe(R(Vwa));this.team$=this.teamId$.pipe(bg(function(q){return k.teamFridge.watch(q)}),
Zf({refCount:!0,bufferSize:1}));this.ccUsers$=this.issueJs$.pipe(R(Xwa));this.issueJs$.pipe(R(function(q){var v,y;return null!=(y=null==(v=ho(q))?void 0:v.severity)?y:void 0}));this.type$=this.issueJs$.pipe(R(Ywa));this.issueJs$.pipe(R(Zwa));this.issueJs$.pipe(R($wa));this.issueJs$.pipe(R(axa));this.postmortems$=this.issueJs$.pipe(R(bxa));this.postmortems$.pipe(R(function(q){return 0<q.length}));this.issueJs$.pipe(R(cxa));this.effort$=this.issueJs$.pipe(R(dxa));this.isDeleted$=this.issueJs$.pipe(R(lxa));
this.accessLevel$=this.issueJs$.pipe(R(nxa));this.customFieldDefs$=this.issueJs$.pipe(R(exa));this.customFieldValues$=this.issueJs$.pipe(R(fxa));this.modifiedTime$=this.issueJs$.pipe(R(oxa));this.retention$=this.issueJs$.pipe(R(qxa));this.retention=function(){return Hk(k.retention$)};this.retentionState$=this.issueJs$.pipe(R(txa));this.retentionState=function(){return Hk(k.retentionState$)};this.canonicalIssueId$=this.issueJs$.pipe(R(rxa));this.canonicalIssue$=this.canonicalIssueId$.pipe(bg(function(q){return k.issueFridge.watch(q)}));
this.sloStatus$=this.issueJs$.pipe(R(uxa));this.sloId$=this.issueJs$.pipe(R(vxa));this.createdTimeMicros$=this.issueJs$.pipe(R(wxa));this.visibleFields$=this.issueJs$.pipe(R(gxa));this.visibleCustomFieldIds$=this.visibleFields$.pipe(R(Bxa));this.customFieldEntries$=(0,S.combineLatest)([this.customFieldDefs$,this.customFieldValues$]).pipe(R(function(q){var v=r(q);q=v.next().value;v=v.next().value;var y=new Map(v.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,S.combineLatest)([this.customFieldEntries$,this.visibleCustomFieldIds$]).pipe(R(function(q){q=r(q);var v=q.next().value,y=q.next().value;return v.filter(function(E){return y.has(String(E.def.customFieldId))})}));(0,S.combineLatest)([this.customFieldEntries$,this.visibleCustomFieldIds$]).pipe(R(function(q){q=r(q);var v=q.next().value,y=q.next().value;return v.filter(function(E){return!y.has(String(E.def.customFieldId))})}));
this.componentId$=this.issueJs$.pipe(R(Wwa));this.component$=this.componentId$.pipe(bg(function(q){return k.componentFridge.watch(q)}));this.teamSuggestions$=this.component$.pipe(R(xxa));this.effortSpec$=this.component$.pipe(R(yxa));this.isEffortEnabled$=this.component$.pipe(R(zxa));this.componentPathInfo$=this.component$.pipe(R(Axa));this.thinking$=this.issueFetchResponseFridge.thinking$};kO.\u0275fac=function(a){return new (a||kO)(t(zL),t(wL),t(mM),t(NJ),t(LL),t(rM),t(dk))};
kO.\u0275prov=dc({token:kO,factory:kO.\u0275fac,providedIn:"root"});
var IMb={id:"[loading]",admin:!1,writer:!0,appender:!0,reader:!0},mO=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("^"+Qn(this.currentUserEmail).replace("@","(\\+.*)?@")+"$");this.issueId$=this.issueDetailsBrain.id$;this.issuePermissions$=this.issueId$.pipe(bg(function(k){return k?h.permissionsFridge.watchOne("issues/"+
k):(0,S.of)(void 0)}),R(function(k){return null!=k?k:IMb}),ag(IMb),Zf({bufferSize:1,refCount:!1}));this.issuePermissions=function(){return Hk(h.issuePermissions$)};this.hasAclToEdit$=this.issuePermissions$.pipe(R(function(k){return!!k.writer}));this.hasAclToEdit=function(){return!!Hk(h.hasAclToEdit$)};this.hasAclToComment$=this.issuePermissions$.pipe(R(function(k){return!!k.appender}));this.hasAclToComment=function(){return!!Hk(h.hasAclToComment$)};this.hasAclToAdmin$=this.issuePermissions$.pipe(R(function(k){return!!k.admin}));
this.hasAclToAdmin=function(){return!!Hk(h.hasAclToAdmin$)};this.isCurrentUserCCd$=this.issueDetailsBrain.ccUsers$.pipe(R(function(k){return k.some(function(q){return lO(h,q.emailAddress)})}));this.isCurrentUserCCd=function(){return!!Hk(h.isCurrentUserCCd$)};this.isAllowedToEditCC$=this.hasAclToEdit$;this.addMeToCcDisabledReason$=(0,S.combineLatest)([this.hasAclToEdit$,this.isCurrentUserCCd$]).pipe(R(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(Pf(),bg(function(k){return k?h.accessPolicyApi.checkComponentImplicitAccessEnabled(Number(k)):(0,S.of)(!1)}),Mf(function(k){if(403===k.status)return(0,S.of)(!0);h.errorHandler.errorHandler(null,k);return(0,S.of)(!1)}),Zf({bufferSize:1,refCount:!1}));this.isImplicitAccessEnabled=function(){return!!Hk(h.isImplicitAccessEnabled$)};this.showImplicitAccessIndicator$=(0,S.combineLatest)([this.hasAclToEdit$,
this.isImplicitAccessEnabled$]).pipe(R(function(k){var q=r(k);k=q.next().value;q=q.next().value;return k&&q}));this.showImplicitAccessIndicator=function(){return!!Hk(h.showImplicitAccessIndicator$)};this.canDeleteIssue$=this.hasAclToAdmin$;this.canUndeleteIssue$=(0,S.combineLatest)([this.issueDetailsBrain.isDeleted$,this.canDeleteIssue$]).pipe(R(function(k){var q=r(k);k=q.next().value;q=q.next().value;return k&&q}));this.userIsComponentAdmin$=this.issueDetailsBrain.componentId$.pipe(Pf(),bg(function(k){return k?
sK(h.userAccess,"admin","components/"+k):(0,S.of)(!1)}),Mf(function(k){h.errorHandler.errorHandler(null,k);return(0,S.of)(!1)}),Zf({bufferSize:1,refCount:!1}));this.userIsComponentAdmin=function(){return!!Hk(h.userIsComponentAdmin$)};this.accessLevel$=this.issueDetailsBrain.accessLevel$;this.accessLevel=function(){return Hk(h.accessLevel$)};this.isWithinExternalComponent$=this.accessLevel$.pipe(R(function(k){return!(!k||"INTERNAL"===k)}));this.audience$=this.isWithinExternalComponent$.pipe(R(function(k){return k?
2:1}));this.audience=function(){return Hk(h.audience$)};this.canChangeCommentRetention$=this.hasAclToEdit$;this.canChangeCommentRetention=function(){return Hk(h.canChangeCommentRetention$)}},lO=function(a,b){return 0===(null==b?void 0:b.search(a.currentUserEmailPattern))},JMb=function(a,b){return zn(b)&&"DELETED"===b.commentDeletionStatus?a.hasAclToAdmin()||Nl(b.lastCommentEditorUser)===a.activeSession.getUserEmail()&&a.hasAclToComment()?!0:!1:!1},KMb=function(a,b){return zn(b)&&"ACTIVE"===b.commentDeletionStatus?
Ql(b.userPerformingActionUser)===a.activeSession.getUserEmail()?!0:a.hasAclToAdmin():!1};
mO.prototype.canEditComment$=function(a){var b=this;return(0,S.combineLatest)([this.issueDetailsBrain.component$,this.hasAclToEdit$,this.hasAclToComment$]).pipe(R(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&&Ql(a.userPerformingActionUser)===b.activeSession.getUserEmail():!1}))};
mO.\u0275fac=function(a){return new (a||mO)(t(kO),t(dM),t(vH),t(gO),t(IK),t(rK))};mO.\u0275prov=dc({token:mO,factory:mO.\u0275fac,providedIn:"root"});
var nO=function(a,b,c,d){wI.call(this);var e=this;this.paramsService=a;this.issueFetchResponseFridge=b;this.pageTitle=c;this.issuePermissionService=d;this.handlers$=this.paramsService.routeParams$.pipe(Pf(Ei),bg(function(f){return f.issueId?LMb(e,f.issueId):(0,S.of)()}));this.init=function(){e.subscriptions.add(e.handlers$.subscribe(function(){}))};this.initOnce=fua(this.init)};U(nO,wI);nO.\u0275dir=wI.\u0275dir;
var LMb=function(a,b){return(0,S.combineLatest)([AL(a.issueFetchResponseFridge,b),a.issuePermissionService.accessLevel$]).pipe(ag([]),R(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=Fua(c))&&(e=e+" - "+c),a.pageTitle.setTitle(e)):a.pageTitle.setTitle("View issue")}))};nO.\u0275fac=function(a){return new (a||nO)(t(rM),t(zL),t(fO),t(mO))};nO.\u0275prov=dc({token:nO,factory:nO.\u0275fac,providedIn:"root"});
var oO=function(a){Z.call(this,a,-1,MMb)};U(oO,Z);oO.prototype.getIssueCommentsList=function(){return rb(this,hK,1)};var MMb=[1];oO.prototype.toObject=function(){var a=null!=this?{issueCommentsList:Cb(this.getIssueCommentsList(),aIb)}:void 0;return a};oO.messageId="b.ListIssueCommentHistoryResponse";
var NMb=function(a){Z.call(this,a)};U(NMb,Z);g=NMb.prototype;g.getIssueId=function(){return kj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getCommentNumber=function(){return ej(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 pO=function(){};pO.\u0275fac=function(a){return new (a||pO)};pO.\u0275prov=dc({token:pO,factory:pO.\u0275fac,providedIn:"root"});var qO=function(a){this.$http=a};U(qO,pO);g=qO.prototype;g.get=function(a,b,c){return this.$http.get("action/issues/"+a+"/comment/"+b,{headers:c?{"X-Restricted-Content-Limit":String(El(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 FJb).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 NMb).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})};
qO.\u0275fac=function(a){return new (a||qO)(t(AJ))};qO.\u0275prov=dc({token:qO,factory:qO.\u0275fac,providedIn:"root"});var rO=function(a){this.executor=a};U(rO,pO);g=rO.prototype;g.get=function(a,b,c){var d={};c&&(d["X-Restricted-Content-Limit"]=String(El(c)));return this.executor.get({url:"action/issues/"+a+"/comment/"+b,options:{headers:d},responseConstructor:hK}).then(xsa)};
g.create=function(a,b,c,d){var e=new FJb;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 NMb;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:hK}).then(xsa)};g.listHistory=function(a,b){return this.executor.get({url:"action/issues/"+a+"/comment/"+b+"/history",responseConstructor:oO}).then(ysa)};
rO.\u0275fac=function(a){return new (a||rO)(t(oI))};rO.\u0275prov=dc({token:rO,factory:rO.\u0275fac,providedIn:"root"});
var sO=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(OMb(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(),
PMb(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);OMb(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();PMb(this);QMb(this)};sO.prototype.start=function(){this.parentElement.appendChild(this.element);requestAnimationFrame(this.animate)};
sO.prototype.stop=function(){this.state=2;PMb(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 QMb=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)}};
sO.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 PMb=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"},OMb=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};sO.prototype.transform=function(){this.element.style.transform="translate("+this.x+"px,"+this.y+"px) rotate("+(this.direction+90)%360+"deg) scaleX("+this.flip};
var RMb=function(a){this.element=a;this.bugs=[]};RMb.prototype.start=function(){for(var a=this,b=0;3>b;b++)SMb(this);this.intervalSubscription=(0,S.interval)(1E4).subscribe(function(){SMb(a);10<=a.bugs.length&&a.intervalSubscription&&a.intervalSubscription.unsubscribe()})};RMb.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 SMb=function(a){var b=new sO(a.element);b.start();a.bugs.push(b)};
var tO=function(a,b,c,d){var e=this;this.ngZone=a;this.userPreferencesManager=b;this.snackBar=c;this.destroyed$=new S.ReplaySubject(1);this.active$=new S.BehaviorSubject(!0);this.lastTimeoutResetTimestamp=Number.NEGATIVE_INFINITY;this.bugAnimation=new RMb(d.nativeElement);this.active$.pipe(cg(this.destroyed$),Pf()).subscribe(function(f){f?TMb(e):UMb(e)})};tO.prototype.ngOnInit=function(){"visible"===document.visibilityState&&VMb(this)};tO.prototype.ngOnDestroy=function(){this.destroyed$.next()};
var VMb=function(a){a.timeoutId=setTimeout(function(){a.active$.next(!1)},18E4)},uO=function(a){var b=Date.now();b<a.lastTimeoutResetTimestamp+1E4||(a.lastTimeoutResetTimestamp=b,a.active$.next(!0),clearTimeout(a.timeoutId),VMb(a))},UMb=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()})},TMb=function(a){a.ngZone.runOutsideAngular(function(){a.bugAnimation.stop()})};tO.\u0275fac=function(a){return new (a||tO)(D(jg),D(VI),D(AK),D(pd))};
tO.\u0275cmp=w({type:tO,selectors:[["bug-screensaver"]],hostBindings:function(a,b){a&1&&J("click",function(){return uO(b)},!1,sd)("keydown",function(){return uO(b)},!1,sd)("mousemove",function(){return uO(b)},!1,sd)("wheel",function(){return uO(b)},!1,sd)("touchstart",function(){return uO(b)},!1,sd)("focus",function(){return uO(b)},!1,sd)("visibilitychange",function(){uO(b);switch(document.visibilityState){case "hidden":clearTimeout(b.timeoutId),b.lastTimeoutResetTimestamp=Number.NEGATIVE_INFINITY}},
!1,yda)},decls:0,vars:0,template:function(){},encapsulation:2});
var vO=function(a,b){var c=b.isInternalSession();this.isEnabled$=a.bugScreensaverSubject$.pipe(R(function(d){return(d.enableBugScreensaver||!1)&&c}))};vO.\u0275fac=function(a){return new (a||vO)(D(VI),D(vH))};vO.\u0275cmp=w({type:vO,selectors:[["bug-screensaver-manager"]],decls:2,vars:3,consts:[[4,"ngIf"]],template:function(a,b){a&1&&(M(0,Dxa,1,0,"bug-screensaver",0),P(1,"async"));a&2&&C("ngIf",Q(1,1,b.isEnabled$))},dependencies:[Cx,tO,Px],encapsulation:2});
var WMb=["button"],wO=function(){this.color="primary";this.format="hairline";this.disabled=!1;this.size="medium";this.onAction=new Rw};wO.prototype.onClick=function(a){this.onAction.emit(a)};wO.prototype.focus=function(){this.nativeButton.focus()};wO.\u0275fac=function(a){return new (a||wO)};
wO.\u0275cmp=w({type:wO,selectors:[["b-button"]],viewQuery:function(a,b){a&1&&Bf(WMb,5);if(a&2){var c;Af(c=Df())&&(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&&(xe(),M(0,Exa,1,0,"ng-template",null,0,Jf),qe(2,1),M(3,Gxa,3,7,"button",2),M(4,Ixa,3,7,"button",3),M(5,Kxa,3,7,"button",4),M(6,Mxa,3,7,"button",5),M(7,Oxa,3,7,"button",6),re());a&2&&(B(2),C("ngSwitch",
b.format),B(1),C("ngSwitchCase","hairline"),B(1),C("ngSwitchCase","flat"),B(1),C("ngSwitchCase","fill"),B(1),C("ngSwitchCase","icon"))},dependencies:[BB,sF,Fx,Mx,Ix,Jx,Kx],encapsulation:2,changeDetection:0});
var xO=function(){};xO.\u0275fac=function(a){return new (a||xO)};xO.\u0275mod=uc({type:xO});xO.\u0275inj=gc({imports:[BG,lH,Wx]});
var yO=function(){};yO.\u0275fac=function(a){return new (a||yO)};yO.\u0275mod=uc({type:yO});yO.\u0275inj=gc({imports:[Wx,wF]});
var zO=function(){};zO.\u0275fac=function(a){return new (a||zO)};zO.\u0275mod=uc({type:zO});zO.\u0275inj=gc({imports:[Wx,yK,xO,yO]});
var AO=function(a){this.activeSession=a;var b;a=(null==(b=m(this.activeSession.session,sH,9))?void 0:m(b,rH,2))||new rH;this.announcement={messageId:V(a,2),message:a.getMessage(),dismissible:W(a,3),tags:jb(a,4)}};AO.\u0275fac=function(a){return new (a||AO)(t(vH))};AO.\u0275prov=dc({token:AO,factory:AO.\u0275fac,providedIn:"root"});
var XMb={type:"g3n-connect-response",messageType:"query-state",mode:"none",version:""};
var YMb=function(){this.chromeApi=self.chrome};YMb.prototype.getState=function(){return this.post({type:"g3n-connect-request",messageType:"query-state"}).catch(function(){return XMb})};YMb.prototype.setMode=function(a){return"none"===a?Promise.reject():this.post({type:"g3n-connect-request",messageType:"enable-g3n-mode"}).then(function(){})};YMb.prototype.post=function(a){var b=this;return ZMb(this,a,"mdkmkbpoljeogkhbjlehikpbpdmfaopg").catch(function(){return ZMb(b,a,"dcdkpimnclfoiknojhlfjhinjmiclmeo")})};
var ZMb=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"))}})})},$Mb=new YMb;
var BO=function(a,b,c,d){wI.call(this);var e=this;this.activeSession=a;this.userPreferencesManager=b;this.announcements=c;this.analytics=d;this.shownAnalyticsTracked=!1;this.g3nInstalled$=new S.ReplaySubject(1);this.isEnabled$=(0,S.combineLatest)([this.g3nInstalled$,this.userPreferencesManager.g3nSubject$]).pipe(R(function(f){var h=r(f);f=h.next().value;h=h.next().value;return!f&&e.isEnabled(h)}));$Mb.getState().then(function(f){e.g3nInstalled$.next("g3n"===f.mode)})};U(BO,wI);BO.\u0275dir=wI.\u0275dir;
BO.prototype.isEnabled=function(a){if(this.activeSession.isExternalSession()||!xH(this.activeSession,"enableG3nAnnouncement")||this.announcements.announcement.messageId||a.announcementDismissedMillis&&2592E6>Date.now()-a.announcementDismissedMillis)return!1;this.shownAnalyticsTracked||(this.shownAnalyticsTracked=!0,eo(this.analytics,io.G3N,"shown","announcement"));return!0};
BO.prototype.dismiss=function(){var a=this,b=Object.assign({},this.userPreferencesManager.g3nSubject$.value,{announcementDismissedMillis:Date.now()});this.userPreferencesManager.save({g3nPreferences:b}).pipe(cg(this.destroyed$)).subscribe(function(){eo(a.analytics,io.G3N,"dismiss","announcement")})};BO.\u0275fac=function(a){return new (a||BO)(D(vH),D(VI),D(AO),D(QM))};
BO.\u0275cmp=w({type:BO,selectors:[["g3n-announcement"]],features:[ae],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&&(M(0,Pxa,9,0,"b-callout",0),P(1,"async"));a&2&&C("ngIf",Q(1,1,b.isEnabled$))},dependencies:[Cx,BB,hI,iI,Px],encapsulation:2});
var CO=function(){};CO.\u0275fac=function(a){return new (a||CO)};CO.\u0275mod=uc({type:CO});CO.\u0275inj=gc({imports:[Wx,BG,yK,yO]});
var DO=function(){};DO.\u0275fac=function(a){return new (a||DO)};DO.\u0275cmp=w({type:DO,selectors:[["b-ng2-router-outlet"]],decls:1,vars:0,template:function(a){a&1&&H(0,"router-outlet")},dependencies:[FI],encapsulation:2});
var EO=function(){};EO.\u0275fac=function(a){return new (a||EO)};EO.\u0275cmp=w({type:EO,selectors:[["b-router-outlet"]],decls:1,vars:0,template:function(a){a&1&&H(0,"b-ng2-router-outlet")},dependencies:[DO],encapsulation:2});
var FO=function(){};FO.\u0275fac=function(a){return new (a||FO)};FO.\u0275mod=uc({type:FO});FO.\u0275inj=gc({imports:[Wx,QI]});
var GO=function(){};GO.\u0275fac=function(a){return new (a||GO)};GO.\u0275prov=dc({token:GO,factory:GO.\u0275fac,providedIn:"root"});var HO=function(a){this.httpClient=a};U(HO,GO);HO.prototype.handleAck=function(){return this.httpClient.post("action/terms_ack",{})};HO.\u0275fac=function(a){return new (a||HO)(t(TE))};HO.\u0275prov=dc({token:HO,factory:HO.\u0275fac,providedIn:"root"});var IO=function(a){this.executor=a};U(IO,GO);
IO.prototype.handleAck=function(){return this.executor.post({url:"action/terms_ack",body:null,responseConstructor:null})};IO.\u0275fac=function(a){return new (a||IO)(t(nI))};IO.\u0275prov=dc({token:IO,factory:IO.\u0275fac,providedIn:"root"});
var aNb=new ld("mat-checkbox-default-options",{providedIn:"root",factory:Qxa});
var bNb=["input"],cNb=function(a){return{enterDuration:a}},dNb=0,eNb=Qxa(),fNb={provide:Ex,useExisting:bc(function(){return JO}),multi:!0},gNb=function(){},hNb=pi(mi(ni(oi(function(a){this._elementRef=a})))),JO=function(a,b,c,d,e,f,h){a=hNb.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-"+ ++dNb;a.id=a._uniqueId;a.labelPosition="after";a.name=null;a.change=new Rw;a.indeterminateChange=
new Rw;a._onTouched=function(){};a._currentAnimationClass="";a._currentCheckState=0;a._controlValueAccessorChangeFn=function(){};a._checked=!1;a._disabled=!1;a._indeterminate=!1;a._options=a._options||eNb;a.color=a.defaultColor=a._options.color||eNb.color;a.tabIndex=parseInt(e)||0;return a};U(JO,hNb);g=JO.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 gNb;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?Tz(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)};
li.Object.defineProperties(JO.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=Vg(a)}},checked:{configurable:!0,enumerable:!0,get:function(){return this._checked},set:function(a){a=Vg(a);a!=this.checked&&(this._checked=a,this._changeDetectorRef.markForCheck())}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},
set:function(a){a=Vg(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=Vg(a);b&&(this._indeterminate?this._transitionCheckState(3):this._transitionCheckState(this.checked?1:2),this.indeterminateChange.emit(this._indeterminate));this._syncIndeterminate(this._indeterminate)}}});
JO.\u0275fac=function(a){return new (a||JO)(D(pd),D(vx),D(Sz),D(jg),Zc("tabindex"),D(ew,8),D(aNb,8))};
JO.\u0275cmp=w({type:JO,selectors:[["mat-checkbox"]],viewQuery:function(a,b){a&1&&(Bf(bNb,5),Bf(uB,5));if(a&2){var c;Af(c=Df())&&(b._inputElement=c.first);Af(c=Df())&&(b.ripple=c.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(a,b){a&2&&(ve("id",b.id),ge("tabindex",null)("aria-label",null)("aria-labelledby",null),le("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:[Ge([fNb]),ae],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&&(xe(),F(0,"label",0,1)(2,"span",2)(3,"input",3,4),J("change",function(e){return b._onInteractionEvent(e)})("click",
function(e){return b._onInputClick(e)}),G(),F(5,"span",5),H(6,"span",6),G(),H(7,"span",7),F(8,"span",8),Nc(),F(9,"svg",9),H(10,"path",10),G(),Oc(),H(11,"span",11),G()(),F(12,"span",12,13),J("cdkObserveContent",function(){return b._onLabelTextChange()}),F(14,"span",14),O(15,"\u00a0"),G(),ye(16),G()());if(a&2){var c=Ce(1),d=Ce(13);ge("for",b.inputId);B(2);le("mat-checkbox-inner-container-no-side-margin",!d.textContent||!d.textContent.trim());B(1);C("id",b.inputId)("required",b.required)("checked",b.checked)("disabled",
b.disabled)("tabIndex",b.tabIndex);ge("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);C("matRippleTrigger",c)("matRippleDisabled",b._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",Ie(19,cNb,"NoopAnimations"===b._animationMode?0:150))}},dependencies:[uB,Yz],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 KO=function(a,b){wI.call(this);this.dialogRef=a;this.tosApi=b;this.ackChecked=!1};U(KO,wI);KO.\u0275dir=wI.\u0275dir;KO.prototype.accept=function(){var a=this;this.tosApi.handleAck().pipe(cg(this.destroyed$)).subscribe(function(){a.dialogRef.close()})};KO.\u0275fac=function(a){return new (a||KO)(D(MB),D(GO))};
KO.\u0275cmp=w({type:KO,selectors:[["b-terms-of-service-dialog"]],features:[ae],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&&(F(0,"h1",0),O(1,"Google IssueTracker Terms of Service"),G(),F(2,"mat-dialog-content")(3,"div",1)(4,"mat-checkbox",
2),J("ngModelChange",function(c){return b.ackChecked=c}),G(),F(5,"span"),O(6," I acknowledge and agree to the "),F(7,"a",3),O(8,"Google Terms of Service"),G(),O(9," and the "),F(10,"a",4),O(11,"Google IssueTracker Conduct Policy"),G(),O(12,". "),G()()(),F(13,"mat-dialog-actions")(14,"button",5),J("click",function(){return b.accept()}),O(15," OK "),G()());a&2&&(B(4),C("ngModel",b.ackChecked),B(10),C("disabled",!b.ackChecked))},dependencies:[ly,ry,BB,JO,aC,bC,cC],styles:[".b-tos-content[_ngcontent-%COMP%]{padding-top:1em}.b-tos-content[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%]{padding-right:8px}"]});
var LO=function(a,b){wI.call(this);this.activeSession=a;this.matDialogService=b};U(LO,wI);LO.\u0275dir=wI.\u0275dir;LO.prototype.ngOnInit=function(){this.activeSession.mustAcknowledgeTerms&&NB(this.matDialogService.open(KO,{width:"400px",disableClose:!0})).pipe(cg(this.destroyed$))};LO.\u0275fac=function(a){return new (a||LO)(D(vH),D(ZB))};LO.\u0275cmp=w({type:LO,selectors:[["b-terms-of-service"]],features:[ae],decls:0,vars:0,template:function(){},encapsulation:2});
var MO=function(){};MO.\u0275fac=function(a){return new (a||MO)};MO.\u0275mod=uc({type:MO});MO.\u0275inj=gc({});var NO=function(){};NO.\u0275fac=function(a){return new (a||NO)};NO.\u0275mod=uc({type:NO});NO.\u0275inj=gc({imports:[yB,gB,Zz,MO,gB,MO]});
var OO=function(){};OO.\u0275fac=function(a){return new (a||OO)};OO.\u0275mod=uc({type:OO});OO.\u0275inj=gc({imports:[Gy,Wx,BG,NO,dC]});
var PO=function(){};PO.\u0275fac=function(a){return new (a||PO)};PO.\u0275mod=uc({type:PO});PO.\u0275inj=gc({imports:[Wx,OO]});
var QO=function(a){this.transport=new FE(852);var b=this.streamzService=new Tsb(this.transport);b.flushInterval=3E3;b.flushTimer.setInterval(3E3);this.pageLoadTime=new iAb(this.streamzService);this.userLatency=new kAb(this.streamzService);new jAb(this.streamzService);this.frontendAccessMode=a.frontendAccessMode;this.environmentType=a.getEnvironmentType()};QO.prototype.timePageLoad=function(a,b){this.pageLoadTime.record(a,b,this.frontendAccessMode,this.environmentType)};
QO.\u0275fac=function(a){return new (a||QO)(t(vH))};QO.\u0275prov=dc({token:QO,factory:QO.\u0275fac,providedIn:"root"});
var RO=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})))}},iNb=function(a){NM()&&(null!=a.observer&&a.observer.disconnect(),a.observer=new JKb.PerformanceObserver(a.onMeasurement),a.observer.observe({entryTypes:["measure"]}))};
RO.\u0275fac=function(a){return new (a||RO)(t(QO))};RO.\u0275prov=dc({token:RO,factory:RO.\u0275fac,providedIn:"root"});
var SO=function(a){var b=this;this.injector=a;this.clientDarkmode$=this.clientDarkmodeSubject=new S.BehaviorSubject(!1);this.localDarkmode=!1;this.clientStreamzService=null;this.loadLocalDarkmode=function(){b.localDarkmode=null!=window.localStorage.getItem("onedev-darkmode");jNb(b,b.localDarkmode);b.clientStreamzService&&HE(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")}};SO.prototype.enableUsageTracking=function(){this.clientStreamzService=this.injector.get(GE)};var jNb=function(a,b){a.clientDarkmodeSubject.next(b);document.body.classList.toggle("dark-mode",b)};SO.\u0275fac=function(a){return new (a||SO)(t(Qv))};SO.\u0275prov=dc({token:SO,factory:SO.\u0275fac});
var kNb=Mt(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/feedback-dark-mode.md"]),lNb=Mt(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/feedback.md"]),TO=function(a,b){this.dialogRef=a;this.darkmodeService=b;this.contentLoaded=!1;this.docUrl$=this.darkmodeService.clientDarkmode$.pipe(R(function(c){return c?zh(kNb):zh(lNb)}))};TO.\u0275fac=function(a){return new (a||TO)(D(MB),D(SO))};
TO.\u0275cmp=w({type:TO,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&&(F(0,"div",0),M(1,Rxa,2,3,"ng-container",1),P(2,"async"),M(3,Sxa,1,0,
"mat-spinner",2),G(),F(4,"div",3)(5,"button",4),J("click",function(){return b.dialogRef.close(!1)}),O(6," Cancel "),G(),F(7,"button",5),J("click",function(){return b.dialogRef.close(!0)}),O(8," File a new issue "),G()());a&2&&(B(1),C("ngIf",Q(2,2,b.docUrl$)),B(2),C("ngIf",!b.contentLoaded))},dependencies:[Cx,bC,cC,BB,jN,Px],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 lo=function(a){Z.call(this,a)};U(lo,Z);g=lo.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 mNb(this)};
var mNb=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 ko=function(a){Z.call(this,a)};U(ko,Z);ko.prototype.toObject=function(){var a=null!=this?{alohaFlags:mNb(m(this,lo,1))}:void 0;return a};
var cya=["https://sandbox.google.com/tools/feedback"];
var Uxa="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 Vxa=Mt(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);
var Xxa;
var nNb=function(a,b,c){a.timeOfStartCall=(new Date).getTime();var d=c||ca,e=d.document,f=a.nonce||Uqb(d);f&&!a.nonce&&(a.nonce=f);if("help"==a.flow){var h=Mo("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||Fa(b)||(d+=encodeURIComponent(q)+"="+encodeURIComponent(b)+"&");a=Zo(e).createElement("SCRIPT");f&&a.setAttribute("nonce",f);f=Mnb(d);wh(a,f);e.body.appendChild(a)}},oNb=function(a,b,c){try{"submit"===a.flow||"help"===a.flow||a.tinyNoPointer?nNb(a,b,c):bya(a.productId,a.serverUri).then(function(d){d=m(d,lo,1);if(null==d||!d.getAlohaAutoGaRollout()||qib&&!d.getEnableMweb())nNb(a,b,c);else{var e=c||ca,f="DEV"===a.serverEnvironment,h=c||ca;h=a.nonce||
Uqb(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);$xa(f,d,e)}},
function(d){d&&"DuplicateFormError"!==d.name&&nNb(a,b,c)})}catch(d){nNb(a,b,c)}};cu("userfeedback.api.startFeedback",oNb);
var UO=function(a,b){this.activeSession=a;this.matDialog=b};UO.prototype.startFeedback=function(){var a=this;this.activeSession.isInternalSession()?NB(this.matDialog.open(TO,{width:"500px",maxHeight:"80vh",height:"640px",autoFocus:!1})).subscribe(function(b){b&&pNb(a)}):pNb(this)};
var pNb=function(a){var b={productId:92912,nonce:a.activeSession.getCspNonce(),productVersion:"buganizer.frontend_20220511.06_p0",bucket:"buganizer3-feedback"},c=[];cj(a.activeSession.getUserPreferences())&&c.push("didChooseNewIdp");var d=[];var e=d.concat;c=u(c);var f=[];a=Zi(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(", ")};oNb(b,d)};UO.\u0275fac=function(a){return new (a||UO)(t(vH),t(ZB))};
UO.\u0275prov=dc({token:UO,factory:UO.\u0275fac,providedIn:"root"});
var VO=function(a){this.delegate_=a};VO.prototype.getDelegate=function(){return this.delegate_};
var qNb=function(a,b){this.delegate_=a;this.currentTarget_=b;this.target_=null};U(qNb,VO);qNb.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=rNb(b,a.pop());return this.target_=b};qNb.prototype.getType=function(){return this.getDelegate().xa};
var sNb=function(a){this.delegate_=a};U(sNb,VO);g=sNb.prototype;g.listen=function(a,b,c,d){var e=this;return this.getDelegate().za(a,function(f){return b.call(d||ca,new qNb(f,e))},c)};g.listenOnce=function(){throw Error("jd");};g.unlisten=function(){throw Error("jd");};g.unlistenByKey=function(){throw Error("jd");};g.dispatchEvent=function(){throw Error("jd");};g.removeAllListeners=function(){throw Error("jd");};g.getParentEventTarget=function(){throw Error("jd");};
g.fireListeners=function(){throw Error("jd");};g.getListener=function(){throw Error("jd");};g.hasListener=function(){throw Error("jd");};sNb.prototype[Nrb]=!0;
var WO=function(a){this.delegate_=a};U(WO,sNb);WO.prototype.getHeight=function(){return this.getDelegate().pa()};WO.prototype.setPageTitle=function(){this.getDelegate().pb(void 0)};WO.prototype.setBackgroundColor=function(a){this.getDelegate().pd(a)};WO.prototype.getBackgroundColor=function(){return this.getDelegate().pn()};
var tNb=function(a,b){this.delegate_=a;this.wrapperConstructor_=b||null};U(tNb,VO);tNb.prototype.then=function(a,b,c){var d;a&&(d=uNb(this,a));this.getDelegate().aa(d,b,c)};var uNb=function(a,b){var c=a.wrapperConstructor_;return c?function(d){b.call(this,new c(d))}:b};
var XO=function(a){this.delegate_=a||gbar.a;this.gapiPromise_=this.barPromise_=null};U(XO,VO);XO.prototype.getGapi=function(){this.gapiPromise_||(this.gapiPromise_=new tNb(this.getDelegate().bh()));return this.gapiPromise_};XO.getInstance=function(){if(XO.instance_&&XO.hasOwnProperty("instance_"))var a=XO.instance_;else a=new XO,XO.instance_=a;return a};
var YO=function(a,b){wI.call(this);this.router=a;this.window=b};U(YO,wI);YO.\u0275dir=wI.\u0275dir;YO.prototype.start=function(){var a=this;return(new Promise(function(b,c){var d=XO.getInstance();d.barPromise_||(d.barPromise_=new tNb(d.getDelegate().bf(),WO));d.barPromise_.then(b,c)})).then(function(b){vNb(a,b)})};var vNb=function(a,b){a.router.events.pipe(rf(function(c){return c instanceof zI}),cg(a.destroyed$)).subscribe(function(){b.getDelegate().pl(a.window.location.href)})};
YO.\u0275fac=function(a){return new (a||YO)(t(Fk),t(uM))};YO.\u0275prov=dc({token:YO,factory:YO.\u0275fac,providedIn:"root"});
var ZO=function(a){wI.call(this);var b=this;this.scrollTimingMap=new Map;a.routeChangeSuccess.pipe(cg(this.destroyed$)).subscribe(function(){b.scrollTimingMap.clear()})};U(ZO,wI);ZO.\u0275dir=wI.\u0275dir;ZO.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)};ZO.\u0275fac=function(a){return new (a||ZO)(t(TI))};
ZO.\u0275prov=dc({token:ZO,factory:ZO.\u0275fac,providedIn:"root"});
var no={},dya=function(a,b){return a+b};
var $O=function(){};$O.prototype.onPressBack=function(){var a;null==(a=window.history)||a.back()};$O.\u0275fac=function(a){return new (a||$O)};
$O.\u0275cmp=w({type:$O,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&&(F(0,"section",0)(1,"button",1),J("click",function(){return b.onPressBack()}),H(2,"mat-icon",2),G()())},dependencies:[BB,dF,sF],styles:[".button-bar[_ngcontent-%COMP%] {\n      height: 46px;\n      box-sizing: border-box;\n    }"]});
var aP=function(){};aP.\u0275fac=function(a){return new (a||aP)};aP.\u0275cmp=w({type:aP,selectors:[["b-glue"]],ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"no-wrapping"]],template:function(a){a&1&&(xe(),F(0,"span",0),ye(1),G())},styles:['.no-wrapping[_ngcontent-%COMP%] {\n  white-space: nowrap;\n}\n\n.no-wrapping[_ngcontent-%COMP%]::after {\n  content: "\\002060"\n}'],changeDetection:0});
var bP=function(a){this.elementRef=a;this.componentBlur=new Rw};bP.\u0275fac=function(a){return new (a||bP)(D(pd))};bP.\u0275dir=w({type:bP,selectors:[["","componentBlur",""]],hostBindings:function(a,b){a&1&&J("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 cP=function(a,b,c){wI.call(this);this.templateRef=a;this.viewContainer=b;this.cdr=c;this.viewContainer.createEmbeddedView(this.templateRef)};U(cP,wI);li.Object.defineProperties(cP.prototype,{refreshable:{configurable:!0,enumerable:!0,set:function(a){var b=this;a.pipe(cg(this.destroyed$)).subscribe(function(){b.viewContainer.clear();b.viewContainer.createEmbeddedView(b.templateRef);b.cdr.detectChanges()})}}});cP.\u0275fac=function(a){return new (a||cP)(D(xf),D(yf),D(vx))};
cP.\u0275dir=w({type:cP,selectors:[["","refreshable",""]],inputs:{refreshable:"refreshable"},features:[ae]});
var dP=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 Rw;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=vC(function(e){d.widthChanged.emit(e);d.events.sidebarWidthChanged.next(e)},400);this.trackKeyboardResizing=vC(function(){Vn(io.SIDEBAR,"resizeKeyboard")},2E3)};dP.prototype.ngOnInit=function(){var a=this;this.ngZone.runOutsideAngular(function(){document.addEventListener("mousemove",a.onMousemove)});document.addEventListener("mouseup",this.onMouseup,!0)};
dP.prototype.ngOnDestroy=function(){document.removeEventListener("mousemove",this.onMousemove);document.removeEventListener("mouseup",this.onMouseup,!0)};var wNb=function(a,b){var c=a.width+b;c<a.minSnapWidth&&(c=0>b?0:a.minSnapWidth);a.setWidth(c);a.trackKeyboardResizing()};dP.prototype.toggle=function(){this.setWidth(this.isClosed?this.lastOpenPosition:0)};
dP.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)};
li.Object.defineProperties(dP.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}}});dP.\u0275fac=function(a){return new (a||dP)(D(sI,2),D(MK),D(jg))};
dP.\u0275cmp=w({type:dP,selectors:[["b-resizable-sidebar"]],hostVars:2,hostBindings:function(a,b){a&2&&me(b.direction)},inputs:{minWidth:"minWidth",disableToggleBtn:"disableToggleBtn",hideToggleBtnOnOpen:"hideToggleBtnOnOpen",direction:"direction",size:"size"},outputs:{widthChanged:"widthChanged"},features:[Ge([sI])],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&&(xe(),F(0,"div",0)(1,"div",1),ye(2),G(),F(3,"div",2),J("mousedown",function(c){return b.startDragging(c.pageX)})("keyup.arrowleft",
function(){return wNb(b,-10)})("keyup.arrowright",function(){return wNb(b,10)})("keyup.space",function(){return b.toggle()})("keyup.enter",function(){return b.toggle()})("dblclick",function(){return b.toggle()}),G()(),M(4,gya,2,6,"button",3));a&2&&(ke("width",b.width+"px"),le("isDragging",b.isDragging)("isClosed",b.isClosed),C("ngClass",b.direction),B(1),ke("width",b.lastOpenPosition+"px"),B(2),ge("aria-valuenow",b.width)("aria-valuetext",b.width+" pixels"),B(1),C("ngIf",!b.disableToggleBtn&&!(b.hideToggleBtnOnOpen&&
!b.isClosed)))},dependencies:[Fx,Cx,BB,dF,sF,DA],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 xNb=new ld("intersectionObserverFactory",{factory:function(){return function(a,b){return new IntersectionObserver(a,b)}}}),yNb=new ld("isScrolledOnScreen",{factory:function(){return{fully:hya,partially:iya}}}),eP=function(a,b){this.intersectionObserverBuilder=a;this.isScrolledOnScreen=b};eP.prototype.getObservable=function(a,b){b=void 0===b?!1:b;return null!=window.IntersectionObserver?jya(a,this.intersectionObserverBuilder,this.isScrolledOnScreen,b):kya(a,this.isScrolledOnScreen,b)};
eP.\u0275fac=function(a){return new (a||eP)(t(xNb),t(yNb))};eP.\u0275prov=dc({token:eP,factory:eP.\u0275fac,providedIn:"root"});
var fP=function(a){Z.call(this,a)};U(fP,Z);fP.prototype.getUrl=function(){return V(this,1)};fP.prototype.setUrl=function(a){return l(this,1,a)};fP.prototype.hasUrl=function(){return dj(this,1)};fP.prototype.toObject=function(){var a=null!=this?{url:n(p(this,1))}:void 0;return a};fP.messageId="b.ImageRedirectRequest";
var gP=function(a){Z.call(this,a)};U(gP,Z);gP.prototype.getUrl=function(){return V(this,1)};gP.prototype.setUrl=function(a){return l(this,1,a)};gP.prototype.hasUrl=function(){return dj(this,1)};gP.prototype.toObject=function(){var a=null!=this?{url:n(p(this,1))}:void 0;return a};gP.messageId="b.ImageRedirectResponse";
var hP=function(a){this.executor=a},zNb=function(a,b){var c=new fP;c.setUrl(b);return a.executor.post({url:"action/imageRedirect",body:c,responseConstructor:gP}).pipe(R(function(d){return d.getUrl()}))};hP.\u0275fac=function(a){return new (a||hP)(t(nI))};hP.\u0275prov=dc({token:hP,factory:hP.\u0275fac,providedIn:"root"});
var iP=function(a){var b=this;this.imageRedirector=a;this.src$=new S.BehaviorSubject("");this.showImage$=new S.BehaviorSubject(!1);this.error$=new S.BehaviorSubject(!1);this.srcTruncated$=this.src$.pipe(R(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,S.combineLatest)([this.src$,this.showImage$]).pipe(rf(function(c){c=r(c);c.next();return c.next().value}),bg(function(c){c=r(c);var d=c.next().value;c.next();return zNb(b.imageRedirector,d).pipe(Mf(function(){b.error$.next(!0);return d}))}))};iP.prototype.trigger=function(a){a.preventDefault();a.stopPropagation();this.showImage$.next(!0)};
li.Object.defineProperties(iP.prototype,{src:{configurable:!0,enumerable:!0,set:function(a){this.src$.next(a);this.error$.next(!1)},get:function(){return this.src$.value}}});iP.\u0275fac=function(a){return new (a||iP)(D(hP))};
iP.\u0275cmp=w({type:iP,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&&(M(0,pya,3,4,"ng-container",0),P(1,"async"),M(2,qya,8,9,"ng-template",null,1,Jf),M(4,rya,2,3,"ng-template",null,2,Jf));if(a&2){var c=Ce(5);C("ngIf",
!1===Q(1,2,b.error$))("ngIfElse",c)}},dependencies:[Cx,dF,sF,aP,Px],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 jP=function(){};jP.prototype.onClick=function(a,b){ANb(b)&&a.preventDefault()};var ANb=function(a){if(window.getSelection){var b=window.getSelection();if(b&&!b.isCollapsed&&a.contains(b.focusNode))return!0}return!1};jP.\u0275fac=function(a){return new (a||jP)};jP.\u0275dir=w({type:jP,selectors:[["","selectionPreventsClick",""]],hostBindings:function(a,b){a&1&&J("click",function(c){return b.onClick(c,c.target)})}});
[].concat(u(FMb),[dP,aP]);var kP=function(){};kP.\u0275fac=function(a){return new (a||kP)};kP.\u0275mod=uc({type:kP});kP.\u0275inj=gc({imports:[Wx,BG,wF,lH,HA,cO]});
var mP=function(a,b,c,d,e,f,h,k,q,v,y,E,I,N,L,T,Y,ka,ha,ra,Da,Ja){wI.call(this);var Ba=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=T;this.renderer=ha;this.showIdpDeprecationBanner=BNb(this);this.announcement=this.dismissedMessageId=null;this.matSidebarWidth=220;this.isAnonymous=this.activeSession.isAnonymous();
this.sidebarDragSaver=this.sidebarDragOffset=null;iNb(E);this.subscriptions.add(y.onClickAppMenuIcon.subscribe(function(){Ba.matSidebarWidth=185>Ba.matSidebarWidth?"open":0}));k.homepagePreferences$.pipe(cg(this.destroyed$)).subscribe(function(La){Y.homepagePreferences=La});this.densityClass="d-comfort";this.renderer.addClass(document.body,this.densityClass);this.userPrefs.themePreferences$.pipe(cg(this.destroyed$)).subscribe(function(La){La=yya(La.density);La!==Ba.densityClass&&(Ba.renderer.addClass(document.body,
La),Ba.renderer.removeClass(document.body,Ba.densityClass),Ba.densityClass=La)});this.subscriptions.add(zMb(v,function(La){Ba.doSearch(La)}));this.createIssuePath=h.createIssue();this.assignedPath=h.listIssues({q:vMb(d.getUserEmail())});this.ccdPath=h.listIssues({q:"cc:"+d.getUserEmail()});this.verifiedPath=h.listIssues({q:wMb(d.getUserEmail())});this.reportedPath=h.listIssues({q:"reporter:"+d.getUserEmail()});this.starredPath=h.listIssues({q:v.getStarred()});this.votedPath=h.listIssues({q:v.getVoted()});
this.subscriptions.add(cJ(this.hotkeys,{title:"General",hotkeys:[{keys:["/","F3"],displayAs:"/ or F3",description:"Search",onPress:function(){var La=document.querySelector(".search-box-container .search-box");null==La||La.focus();null==La||La.select()}},{keys:[Nj("2"),noa()],displayAs:"@ or Alt+Shift+f",description:"Send feedback",onPress:function(){return Ba.startFeedback()}},{keys:["c"],displayAs:"c",description:"Create issue",onPress:function(){a.url(Ba.createIssuePath)}},{keys:[Oj("g","a")],displayAs:"g then a",
description:'Go to "Assigned to me"',onPress:function(){a.url(Ba.assignedPath)}},{keys:[Oj("g","c")],displayAs:"g then c",description:'Go to "CC\'d to me"',onPress:function(){a.url(Ba.ccdPath)}},{keys:[Oj("g","r")],displayAs:"g then r",description:'Go to "Reported by me"',onPress:function(){a.url(Ba.reportedPath)}},{keys:[Oj("g","s")],displayAs:"g then s",description:'Go to "Starred by me"',onPress:function(){a.url(Ba.starredPath)}},{keys:[Oj("g","1")],displayAs:"g then 1",description:'Go to "Upvoted by me"',
onPress:function(){a.url(Ba.votedPath)}},{keys:[Oj("g","v")],displayAs:"g then v",description:'Go to "To be verified"',onPress:function(){a.url(Ba.verifiedPath)}},{keys:[],displayAs:"Ctrl+Enter",description:"Submit entered text (while focused)",onPress:function(){}},{keys:["<",">"],displayAs:"< / >",description:"Collapse/expand sidebar",onPress:function(La){if(0===La&&20<Ba.sidebarDragPosition||1===La&&!(20<Ba.sidebarDragPosition))20<Ba.sidebarDragPosition?lP(Ba,20,1):lP(Ba,Ba.lastOpenPosition,1);
Ba.matSidebarWidth=0===La?0:"open"}},{keys:["?",moa("F1")],displayAs:"? or Ctrl+F1",description:"Display the keyboard shortcuts pop-up",onPress:function(){Ba.matDialogService.open(fJ,{minWidth:512})}}]}));this.lastOpenPosition=this.sidebarDragPosition=220;this.announcements.announcement.tags.includes("JFK")||(this.announcement=this.announcements.announcement);this.userPrefs.preferences$.pipe(Qf(),cg(this.destroyed$)).subscribe(function(La){Ba.dismissedMessageId=La.bannerMessageId||"";La=(La.layoutPreferences||
{}).leftSidebarWidth;Ba.matSidebarWidth=La||220;if(void 0===La)Ba.sidebarDragPosition=220;else if(90>La)Ba.sidebarDragPosition=20;else{if(220<La){var hb=CNb();La>hb&&(La=hb)}185>La&&(La=185);Ba.sidebarDragPosition=La}});(0,S.fromEvent)(document,"mouseup",{capture:!0}).pipe(cg(this.destroyed$)).subscribe(function(){Ba.sidebarDragOffset&&(Ba.sidebarDragOffset=null,lP(Ba,Ba.sidebarDragPosition,1))});(0,S.fromEvent)(Y,"resize").pipe(cg(this.destroyed$)).subscribe(function(){if(220<Ba.sidebarDragPosition){var La=
CNb();Ba.sidebarDragPosition>La&&lP(Ba,La,3E3)}});this.ngZone.runOutsideAngular(function(){(0,S.fromEvent)(document,"mousemove").pipe(cg(Ba.destroyed$)).subscribe(function(La){if(Ba.sidebarDragOffset){La=La.pageX-Ba.sidebarDragOffset;if(90>La)La=20;else if(185>La)La=185;else{var hb=CNb();La>hb&&(La=hb)}lP(Ba,La,0)}})});ra.start();NM()&&(null!=LKb&&LKb.disconnect(),LKb=new Wn.PerformanceObserver(MKb),LKb.observe({entryTypes:["measure"]}));setTimeout(fya,6E4);Da.start();Ja.initOnce();Y.emergencyBugjugglerWorkaround=
{session:d,issueComments:ka}};U(mP,wI);mP.\u0275dir=wI.\u0275dir;var BNb=function(a){var b=a.activeSession.isInternalSession(),c=!window.sessionStorage.getItem("idpDeprecationDismissTime");a=!cj(a.activeSession.getUserPreferences());return b&&c&&a};mP.prototype.startDragging=function(a){this.sidebarDragOffset=a.pageX-this.sidebarDragPosition;a.preventDefault()};mP.prototype.isDragging=function(){return null!==this.sidebarDragOffset};
var CNb=function(){var a=window.innerWidth;return 1075<=a?a-855:220},wya=function(a,b){a.userPrefs.layoutPreferences$.pipe(bg(function(c){return a.userPrefs.save({layoutPreferences:Object.assign({},c,{leftSidebarWidth:b})})})).pipe(Qf(),cg(a.destroyed$)).subscribe()},lP=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(){wya(a,20===a.sidebarDragPosition?
0:a.sidebarDragPosition);a.sidebarDragSaver=null},c).catch(function(){}))};mP.prototype.doSearch=function(a){a=this.paths.listIssues({q:a});var b=IIb(this.paths,a);UM(this.issuePagination);b&&this.$route.reload();this.bLocation.url(a);eo(this.analytics,"search","default-context")};var sya=function(a){null!==a.announcement&&(a.dismissedMessageId=a.announcement.messageId,a.userPrefs.save({bannerMessageId:a.dismissedMessageId}).pipe(Qf(),cg(a.destroyed$)).subscribe())};
mP.prototype.toggleNewIssueDetailsPage=function(a){var b=this,c,d;return bf(function(e){if(1==e.nextAddress)return c=b.userPrefs.newIssueDetailsPagePreferencesSubject$.value,cf(e,(0,S.firstValueFrom)(b.userPrefs.save({newIssueDetailsPagePreferences:Object.assign({},c,{enableNewIssueDetailsPage:a,newIdpOptOut:!a})})),2);d=a?"new-idp-on":"new-idp-off";eo(b.analytics,"prefs","change",d);window.location.reload();df(e)})};mP.prototype.startFeedback=function(){this.userFeedback.startFeedback()};
mP.\u0275fac=function(a){return new (a||mP)(D(SK),D(rLb),D(lI),D(vH),D(QM),D(bJ),D(TK),D(VI),D(TM),D(ON),D(MK),D(RO),D(UO),D(AO),D(jg),D(ZB),D(uM),D(pO),D(Vv),D(YO),D(ZO),D(nO))};
mP.\u0275cmp=w({type:mP,selectors:[["app-root"]],features:[ae],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&&(H(0,"b-hiring-banner")(1,"b-terms-of-service"),M(2,uya,4,2,"div",0),H(3,"g3n-announcement"),M(4,vya,16,0,"b-callout",1),H(5,"b-sso-expired-callout-outlet"),F(6,"div",2),M(7,xya,2,2,"b-resizable-sidebar",3),F(8,"div",4),H(9,"b-router-outlet"),G()(),H(10,"bug-screensaver-manager"));a&2&&(B(2),C("ngIf",b.announcement&&(b.announcement&&b.announcement.message?b.announcement.dismissible?null===b.dismissedMessageId?!1:b.announcement.messageId!==b.dismissedMessageId:!0:!1)),B(2),C("ngIf",b.showIdpDeprecationBanner),
B(3),C("ngIf",!b.isAnonymous))},dependencies:function(){return[Cx,EO,dP,RN,LO,tI,vO,BO,hI,iI,BB,dF,jI]},encapsulation:2});var nP=function(){};nP.\u0275fac=function(a){return new (a||nP)};nP.\u0275mod=uc({type:nP});nP.\u0275inj=gc({imports:[Wx,FO,kP,eO,PO,uI,zO,CO,yO,BG,wF,gJ]});
var oP=function(a){Z.call(this,a)};U(oP,Z);oP.prototype.getUrl=function(){return V(this,1)};oP.prototype.setUrl=function(a){return l(this,1,a)};oP.prototype.hasUrl=function(){return dj(this,1)};oP.prototype.toObject=function(){var a=null!=this?{url:n(p(this,1))}:void 0;return a};oP.messageId="b.AttachmentUrlResponse";
var pP=function(a){this.executor=a};pP.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(El(d)));return this.executor.get({url:"action/issues/"+a+"/attachments/"+b+"/url",options:{headers:e,params:{download:String(c)}},responseConstructor:oP}).then(function(f){return f.getUrl()})};pP.\u0275fac=function(a){return new (a||pP)(t(oI))};pP.\u0275prov=dc({token:pP,factory:pP.\u0275fac,providedIn:"root"});
var qP=function(a,b,c){this.templateRef=b;this.viewContainer=c;this.isInternal="INTERNAL"===a.frontendAccessMode};qP.prototype.ngOnInit=function(){this.isInternal&&this.viewContainer.createEmbeddedView(this.templateRef)};qP.\u0275fac=function(a){return new (a||qP)(D(vH),D(xf),D(yf))};qP.\u0275dir=w({type:qP,selectors:[["","internalOnly",""]]});
var rP=function(a){this.session=a;this.baseDocumentationUrl=a.getDocumentationBaseUrl()},Fo=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/access-control":a.baseDocumentationUrl+"/concepts/access-control"},sP=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/wtdm-home":""},DNb=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/automation-access":
Fo(a)},Zcb=function(a){return a.session.isExternalSession()?a.baseDocumentationUrl+"/concepts/external-access":"http://go/buganizer-external-access"},ENb=function(a){return a.session.isExternalSession()?a.baseDocumentationUrl+"/concepts/public-access":"http://go/buganizer-public-access"},FNb=function(a){return ENb(a)+"#recommended-access-settings"},R6a=function(a){return Fo(a)+"#expanded-access-on-components"},X_a=function(){return"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/guides/manage-component#enabling-comment-editing"},
GNb=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"},yt=function(){return"http://go/buganizer-retention"};rP.prototype.getRestrictedAccessHelpLink=function(){return this.session.isExternalSession()?"https://developers.google.com/issue-tracker/concepts/restricted-content":"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/restricted-access"};
var deb=function(){return"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/custom-fields"};rP.prototype.getDisablingFieldsHelpLink=function(){return deb()+"#hiding-inherited-fields"};var HNb=function(a){return a.session.isInternalSession()?"http://go/delete-comments-attachments":""};rP.\u0275fac=function(a){return new (a||rP)(t(vH))};rP.\u0275prov=dc({token:rP,factory:rP.\u0275fac,providedIn:"root"});
var tP=function(a){this.window=a};tP.prototype.openInNewTab=function(a){a=yh(a);this.window.open(th(a),"_blank",void 0)};var uP=function(a,b){b=yh(b);a.window.open(th(b),void 0,void 0)},vP=function(a,b){b=yh(b);a.window.location.href=th(b)};tP.\u0275fac=function(a){return new (a||tP)(t(uM))};tP.\u0275prov=dc({token:tP,factory:tP.\u0275fac,providedIn:"root"});
var wP=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};wP.prototype.ngOnInit=function(){this.changeDetectorRef.detectChanges();this.setHasViewAccess()};
wP.prototype.setHasViewAccess=function(){var a=this;this.isLoading=!0;Aya(this)?(this.hasViewAccess=!1,sK(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)};wP.prototype.getPiiSeverity=function(){var a=this.attachment.contentVerdict;if(a&&(a=a.piiVerdict))return a.severity};
var Aya=function(a){return(a=a.getPiiSeverity())?"NONE_DETECTED"!==a:!1},INb=function(a){var b=a.download&&hna(a.attachment.contentType);a.attachmentsUrl.get(a.issueId,a.attachment.attachmentId,b,a.getPiiSeverity()).then(function(c){b?vP(a.domSafe,c):a.domSafe.openInNewTab(c);a.close()},function(){GK(a.butterBar,"Failed to load attachment. Please refresh and try again.");a.close()})};wP.prototype.close=function(){this.dialogRef.close();this.changeDetectorRef.detectChanges()};
wP.prototype.getRestrictedAccessHelpLink=function(){return this.documentationLinks.getRestrictedAccessHelpLink()};wP.\u0275fac=function(a){return new (a||wP)(D(XB),D(MB),D(rK),D(pP),D(DK),D(tP),D(rP),D(sI,2))};
wP.\u0275cmp=w({type:wP,selectors:[["b-attachment-download-dialog"]],features:[Ge([sI])],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&&(F(0,"h1",0),O(1,"Access Attachment"),G(),F(2,"div",1)(3,"div",2),O(4," Are you sure you would like to access the following attachment? "),G(),H(5,"br"),F(6,"div",3)(7,"div",4),H(8,"mat-icon",5),G(),F(9,"div",6),O(10),G()(),H(11,"br"),M(12,Bya,2,1,"ng-container",
7),M(13,Cya,3,0,"div",8),G(),M(14,Dya,1,0,"mat-spinner",9),F(15,"div",10)(16,"button",11),J("click",function(){return b.close()}),O(17," Cancel "),G(),F(18,"button",12),J("click",function(){return INb(b)}),O(19," Continue "),G()());a&2&&(B(10),De(" ",b.attachment.filename," "),B(3),C("ngIf",!b.isLoading&&!b.hasViewAccess),B(1),C("ngIf",b.isLoading),B(4),C("disabled",!b.hasViewAccess))},dependencies:[Cx,aC,bC,cC,BB,dF,jN,qP],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 xP=function(){};xP.\u0275fac=function(a){return new (a||xP)};xP.\u0275mod=uc({type:xP});xP.\u0275inj=gc({imports:[Wx]});
var JNb=Object.assign({},new UB,{backdropClass:"gmat-dialog-backdrop",panelClass:"gmat-dialog-panel",hasBackdrop:!0}),yP=function(){};yP.\u0275fac=function(a){return new (a||yP)};yP.\u0275mod=uc({type:yP});yP.\u0275inj=gc({providers:[{provide:sqb,useValue:JNb}],imports:[dC,dC]});
var zP=function(){};zP.\u0275fac=function(a){return new (a||zP)};zP.\u0275mod=uc({type:zP});zP.\u0275inj=gc({imports:[Wx,yP,BG,dC,wF,VN,xO,aI,xP]});
var AP=function(a,b){var c=this;this.executor=a;this.activeSession=b;this.memoized=new fKb(function(d){var e;a:{if(e=m(c.activeSession.session,sH,9)){e=r(rb(e,qH,1));for(var f=e.next();!f.done;f=e.next())if(f=f.value,d===f.getId()){e=Eya(f);break a}}e=void 0}return e?(0,S.of)(e):c.executor.get({url:"action/timezone/"+encodeURIComponent(d),responseConstructor:qH}).pipe(R(Eya))},10)};AP.prototype.get=function(a){return this.memoized.get(a)};AP.\u0275fac=function(a){return new (a||AP)(t(nI),t(vH))};
AP.\u0275prov=dc({token:AP,factory:AP.\u0275fac,providedIn:"root"});
var KNb={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"}}},BP=KNb;BP=KNb;
var LNb={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 MNb={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"},CP=MNb;CP=MNb;
var DP=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_=CP.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)};
DP.prototype.applyPattern_=function(a){this.pattern_=a.replace(/ /g,"\u00a0");var b=[0];this.positivePrefix_=NNb(this,a,b);for(var c=b[0],d=-1,e=0,f=0,h=0,k=-1,q=a.length,v=!0;b[0]<q&&v;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("td`"+a);f++;0<=k&&0>d&&k++;break;case ",":0<k&&this.groupingArray_.push(k);k=0;break;case ".":if(0<=d)throw Error("ud`"+a);d=e+f+h;break;case "E":if(this.useExponentialNotation_)throw Error("vd`"+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("wd`"+a);v=!1;break;default:b[0]--,v=!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("xd`"+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_=NNb(this,a,b);b[0]<a.length&&";"==a.charAt(b[0])?(b[0]++,1!=this.multiplier_&&(this.negativePercentSignExpected_=!0),this.negativePrefix_=NNb(this,a,b),b[0]+=c,
this.negativeSuffix_=NNb(this,a,b)):(this.negativePrefix_+=this.positivePrefix_,this.negativeSuffix_+=this.positiveSuffix_)};
DP.prototype.applyStandardPattern_=function(a){switch(a){case 1:this.applyPattern_(CP.DECIMAL_PATTERN);break;case 2:this.applyPattern_(CP.SCIENTIFIC_PATTERN);break;case 3:this.applyPattern_(CP.PERCENT_PATTERN);break;case 4:a=this.applyPattern_;var b=CP.CURRENCY_PATTERN;var c=["0"],d=LNb[CP.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:ONb(this,1);break;case 6:ONb(this,2);break;default:throw Error("nd");
}};var ONb=function(a,b){a.compactStyle_=b;a.applyPattern_(CP.DECIMAL_PATTERN);a.minimumFractionDigits_=0;a.maximumFractionDigits_=2;if(0<a.minimumFractionDigits_)throw Error("ld");a.significantDigits_=2};
DP.prototype.parse=function(a,b){b=b||[0];if(0!==this.compactStyle_)throw Error("od");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(CP.INFINITY,b[0])==b[0]){b[0]+=CP.INFINITY.length;var e=Infinity}else{e=
a;var f=!1,h=!1,k=!1,q=-1,v=1,y=CP.DECIMAL_SEP,E=CP.GROUP_SEP,I=CP.EXP_SYMBOL;if(0!=this.compactStyle_)throw Error("pd");E=E.replace(/\u202f/g,"\u00a0");for(var N="";b[0]<e.length;b[0]++){var L=e.charAt(b[0]),T=PNb(L);if(0<=T&&9>=T)N+=T,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<=PNb(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==CP.PERCENT.charAt(0)){if(1!=v)break;v=100;if(k){b[0]++;break}}else if(1==this.multiplier_&&L==CP.PERMILL.charAt(0)){if(1!=v)break;v=1E3;if(k){b[0]++;break}}else break}1!=this.multiplier_&&(v=this.multiplier_);e=parseFloat(N)/v}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};
DP.prototype.format=function(a){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("qd");if(isNaN(a))return CP.NAN;var b=[];var c=a;if(0==this.compactStyle_)c=EP;else{c=Math.abs(c);var d=QNb(this,1>=c?0:RNb(c)).divisorBase;c=QNb(this,d+RNb(SNb(this,FP(c,-d)).intValue))}a=FP(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)TNb(this,e,this.minimumIntegerDigits_,b),UNb(this,0,b);else{var f=Math.floor(Math.log(e)/Math.log(10)+2E-15);e=FP(e,-f);var h=this.minimumIntegerDigits_;1<this.maximumIntegerDigits_&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(h=f%this.maximumIntegerDigits_,0>h&&(h=this.maximumIntegerDigits_+h),e=FP(e,h),f-=h,h=1):1>this.minimumIntegerDigits_?(f++,e=FP(e,-1)):(f-=this.minimumIntegerDigits_-1,e=FP(e,this.minimumIntegerDigits_-
1));TNb(this,e,h,b);UNb(this,f,b)}}else TNb(this,a,this.minimumIntegerDigits_,b);else b.push(CP.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 SNb=function(a,b){var c=FP(b,a.maximumFractionDigits_);0<a.significantDigits_&&(c=VNb(c,a.significantDigits_,a.maximumFractionDigits_));c=Math.round(c);isFinite(c)?(b=Math.floor(FP(c,-a.maximumFractionDigits_)),a=Math.floor(c-FP(b,a.maximumFractionDigits_))):a=0;return{intValue:b,fracValue:a}},TNb=function(a,b,c,d){if(a.minimumFractionDigits_>a.maximumFractionDigits_)throw Error("qd");d||(d=[]);b=SNb(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(FP(q,-1));k=q+k;var v=CP.DECIMAL_SEP;q=CP.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=CP.GROUP_SEP,L=k.length,T=0;T<L;T++)if(d.push(String.fromCharCode(q+Number(k.charAt(T)))),1<L-T)if(I=e[E],T<c){var Y=c-T;(1===I||0<I&&1===
Y%I)&&d.push(N)}else E<e.length&&(T===c?E+=1:I===T-c-y+1&&(d.push(N),y+=I,E+=1))}else{c=k;k=a.groupingArray_;e=CP.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(v);f=String(f);h=f.split("e+");2==h.length&&(f=String(VNb(parseFloat(h[0]),a.significantDigits_,1)),f=f.replace(".",
""),f+=xC("0",parseInt(h[1],10)-f.length+1));a.maximumFractionDigits_+1>f.length&&(f="1"+xC("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))))},UNb=function(a,b,c){c.push(CP.EXP_SYMBOL);0>b?(b=-b,c.push(CP.MINUS_SIGN)):a.useSignForPositiveExponent_&&c.push(CP.PLUS_SIGN);b=""+b;for(var d=CP.ZERO_DIGIT,e=b.length;e<a.minExponentDigits_;e++)c.push(d);c.push(b)},PNb=function(a){a=a.charCodeAt(0);if(48<=
a&&58>a)return a-48;var b=CP.ZERO_DIGIT.charCodeAt(0);return b<=a&&a<b+10?a-b:-1},NNb=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+=CP.DEF_CURRENCY_CODE):(h=CP.DEF_CURRENCY_CODE,d+=h in LNb?LNb[h][1]:h);break;case "%":if(!a.negativePercentSignExpected_&&1!=
a.multiplier_)throw Error("rd");if(a.negativePercentSignExpected_&&100!=a.multiplier_)throw Error("sd");a.multiplier_=100;a.negativePercentSignExpected_=!1;d+=CP.PERCENT;break;case "\u2030":if(!a.negativePercentSignExpected_&&1!=a.multiplier_)throw Error("rd");if(a.negativePercentSignExpected_&&1E3!=a.multiplier_)throw Error("sd");a.multiplier_=1E3;a.negativePercentSignExpected_=!1;d+=CP.PERMILL;break;default:d+=h}}return d},EP={divisorBase:0,negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},
QNb=function(a,b){a=1==a.compactStyle_?BP.COMPACT_DECIMAL_SHORT_PATTERN:BP.COMPACT_DECIMAL_LONG_PATTERN;null==a&&(a=BP.COMPACT_DECIMAL_SHORT_PATTERN);if(3>b)return EP;b=Math.min(14,b);var c=a[FP(1,b)];for(--b;!c&&3<=b;)c=a[FP(1,b)],b--;if(!c)return EP;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]}:EP:EP},RNb=function(a){if(!isFinite(a))return 0<a?a:0;for(var b=0;1<=(a/=10);)b++;return b},FP=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))},WNb=function(a,b){return a&&isFinite(a)?FP(Math.round(FP(a,b)),-b):a},VNb=function(a,b,c){if(!a)return a;b=b-RNb(a)-1;return b<-c?WNb(a,-c):WNb(a,b)};
var XNb=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"},YNb=XNb;YNb=XNb;
var ZNb=function(a,b){var c=a|0;if(void 0===b){b=Math;var d=b.min,e=a+"",f=e.indexOf(".");b=d.call(b,-1===f?0:e.length-f-1,3)}d=Math.pow(10,b);a={v:b,f:(a*d|0)%d};return 1==c&&0==a.v?"one":"other"},$Nb=ZNb;$Nb=ZNb;
var GP=function(a){this.pattern_=a;this.parsedPattern_=this.literals_=this.initialLiterals_=null;a=CP;var b=BP;if(aOb!==a||bOb!==b)aOb=a,bOb=b,cOb=new DP;this.numberFormatter_=cOb},aOb=null,bOb=null,cOb=null,dOb=RegExp("'([{}#].*?)'","g"),eOb=RegExp("''","g");GP.prototype.format=function(a){return this.format_(a,!1)};
GP.prototype.format_=function(a,b){if(this.pattern_){this.initialLiterals_=[];var c=fOb(this,this.pattern_);this.parsedPattern_=gOb(this,c);this.pattern_=null}if(!this.parsedPattern_||0==this.parsedPattern_.length)return"";this.literals_=Aa(this.initialLiterals_);c=[];hOb(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 hOb=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,v=c[h];void 0===v?q.push("Undefined parameter - "+h):(k.literals_.push(v),q.push(k.buildPlaceholder_(k.literals_)));break;case 2:h=b[f].value;k=a;q=c;v=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),hOb(k,E,q,v,y));break;case 0:h=b[f].value;iOb(a,h,c,$Nb,d,e);break;case 1:h=b[f].value,iOb(a,h,c,YNb,
d,e)}},iOb=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=[],hOb(a,h,c,e,b),c=b.join(""),e?f.push(c):(a=a.numberFormatter_.format(k),f.push(c.replace(/#/g,a))))},fOb=function(a,b){var c=a.initialLiterals_,d=$t(a.buildPlaceholder_,a);b=b.replace(eOb,function(){c.push("'");return d(c)});return b=b.replace(dOb,function(e,f){c.push(f);return d(c)})},
jOb=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},kOb=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,lOb=/^\s*(\w+)\s*,\s*selectordinal\s*,/,mOb=/^\s*(\w+)\s*,\s*select\s*,/,gOb=function(a,b){var c=[];b=jOb(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(kOb.test(f)?0:lOb.test(f)?1:mOb.test(f)?2:/^\s*\w+\s*/.test(f)?3:5){case 2:e.type=2;e.value=nOb(a,b[d].value);break;case 0:e.type=0;e.value=oOb(a,b[d].value);break;case 1:e.type=1;e.value=pOb(a,b[d].value);break;case 3:e.type=3,e.value=b[d].value}}c.push(e)}return c},nOb=function(a,b){var c="";b=b.replace(mOb,function(k,q){c=q;return""});var d={};d.argumentIndex=c;b=jOb(b);for(var e=0;e<
b.length;){var f=b[e].value;e++;var h;1==b[e].type&&(h=gOb(a,b[e].value));d[f.replace(/\s/g,"")]=h;e++}return d},oOb=function(a,b){var c="",d=0;b=b.replace(kOb,function(q,v,y){c=v;y&&(d=parseInt(y,10));return""});var e={};e.argumentIndex=c;e.argumentOffset=d;b=jOb(b);for(var f=0;f<b.length;){var h=b[f].value;f++;var k;1==b[f].type&&(k=gOb(a,b[f].value));e[h.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=k;f++}return e},pOb=function(a,b){var c="";b=b.replace(lOb,function(k,q){c=q;return""});var d={};d.argumentIndex=
c;d.argumentOffset=0;b=jOb(b);for(var e=0;e<b.length;){var f=b[e].value;e++;if(1==b[e].type)var h=gOb(a,b[e].value);d[f.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=h;e++}return d};GP.prototype.buildPlaceholder_=function(a){return"\ufddf_"+(a.length-1).toString(10)+"_"};
var rOb=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=FC(b),f=FC(c),h=FC(d);a=b*(c+d)?" ":"";var k=c*d?" ":"";b=qOb("{COUNT, plural, =0 {}=1 {{TEXT} day}other {{TEXT} days}}",b,e);c=qOb("{COUNT, plural, =0 {}=1 {{TEXT} hour}other {{TEXT} hours}}",c,f);d=qOb("{COUNT, plural, =0 {}=1 {{TEXT} minute}other {{TEXT} minutes}}",d,h);return b+a+c+k+d},qOb=function(a,b,c){return(new GP(a)).format({COUNT:b,TEXT:c})};
var HP=function(a,b,c,d,e){wI.call(this);var f=this;this.errorHandler=e;this.formatPrefChange$=new S.Subject;this.userTimeZone_=null;this.timeZones_={};this.cachedFormatters=a.get("bv2-date-format-formatters")||a.create("bv2-date-format-formatters",{capacity:25});this.userPrefs=uH.dateTimePreferences;Promise.all(d.supportedTimeZones.map(function(h){if(""===h.id)return Promise.resolve({name:"",timeZone:null});var k=c.get(h.id).pipe(cg(f.destroyed$));return(0,S.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(cg(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(HP,wI);HP.\u0275dir=wI.\u0275dir;
HP.prototype.format=function(a,b,c){var d=this.cachedFormatters.get(a);void 0===d&&(d=new ui(a),this.cachedFormatters.put(a,d));return b?d.format(c,b):d.format(c)};var sOb=function(a,b){return a.formatPrefChange$.subscribe(b)};HP.prototype.formatUserCalendar=function(a){return this.format(this.userPrefs.calendarFormat,this.userTimeZone_,a)};HP.prototype.formatUserTime=function(a){return this.format(this.userPrefs.timeFormat,this.userTimeZone_,a)};
HP.\u0275fac=function(a){return new (a||HP)(t(bL),t(VI),t(AP),t(XH),t(IK))};HP.\u0275prov=dc({token:HP,factory:HP.\u0275fac,providedIn:"root"});
var IP=function(a,b){var c=this;this.userPreferencesManager=a;this.timeZonesApi=b;this.cachedFormatters=new aL(100,!0);this.userDatePrefs$=this.userPreferencesManager.dateTimePreferences$;this.userCalendarFormat$=this.userDatePrefs$.pipe(R(function(d){return d.calendarFormat||"MMM d, yyyy"}));this.userTimeFormat$=this.userDatePrefs$.pipe(R(function(d){return d.timeFormat||"hh:mma"}));this.userTimeZone$=this.userDatePrefs$.pipe(bg(function(d){return d.timeZone?c.timeZonesApi.get(d.timeZone):(0,S.of)(void 0)}))};
IP.prototype.format=function(a,b,c){var d=this.cachedFormatters.get(a);void 0===d&&(d=new ui(a),this.cachedFormatters.set(a,d));return b?d.format(c,b):d.format(c)};IP.prototype.formatUserCalendar=function(a){var b=this;return(0,S.combineLatest)([this.userCalendarFormat$,this.userTimeZone$]).pipe(R(function(c){var d=r(c);c=d.next().value;d=d.next().value;return b.format(c,d,a)}))};
IP.prototype.formatUserTime=function(a){var b=this;return(0,S.combineLatest)([this.userTimeFormat$,this.userTimeZone$]).pipe(R(function(c){var d=r(c);c=d.next().value;d=d.next().value;return b.format(c,d,a)}))};
var tOb=function(a,b){return(0,S.combineLatest)([a.userCalendarFormat$,a.userTimeFormat$,a.userTimeZone$]).pipe(R(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)}))},uOb=function(a,b,c){return c?a.timeZonesApi.get(c).pipe(R(function(d){return a.format("yyyy-MM-dd HH:mm:ss Z",d,b)})):(0,S.of)(a.format("yyyy-MM-dd HH:mm:ss Z",void 0,b))},w_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 po("m",a)),e=Math.floor((b.getTime()-d.getTime())/864E5));d=new po(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"};IP.\u0275fac=function(a){return new (a||IP)(t(VI),t(AP))};IP.\u0275prov=dc({token:IP,factory:IP.\u0275fac,providedIn:"root"});
var vOb,wOb,xOb=[{name:"local",id:""},{name:"UTC",id:"UTC"},{name:"MTV",id:"America/Los_Angeles"}],yOb=Symbol("yd"),zOb=Symbol("yd"),JP=function(a){var b=this;this.dateFormatter=a;this.timestampMs$=new S.ReplaySubject(1);this.timestampIso$=this.timestampMs$.pipe(R(function(c){return c?(new Date(c)).toISOString():""}));this.timestampDate$=this.timestampMs$.pipe(R(function(c){if(void 0!==c)return new Date(c)}));this[vOb]=this.timestampDate$.pipe(bg(function(c){if(void 0===c)return(0,S.of)("");switch(b.mode){case "date":return b.dateFormatter.formatUserCalendar(c);
case "time":return b.dateFormatter.formatUserTime(c);case "datetime":return tOb(b.dateFormatter,c);default:return mh(b.mode)}}));this[wOb]=this.timestampDate$.pipe(bg(function(c){return void 0===c?(0,S.of)(""):(0,S.combineLatest)(xOb.map(function(d){return uOb(b.dateFormatter,c,d.id).pipe(R(function(e){return{formatted:e,tzName:d.name}}))})).pipe(AOb)}));this.vars$=(0,S.combineLatest)([this[yOb],this[zOb]]).pipe(R(function(c){var d=r(c);c=d.next().value;d=d.next().value;return{formatted:c,title:d}}))};
JP.prototype.ngOnInit=function(){};li.Object.defineProperties(JP.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 sj){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())}}});vOb=yOb;wOb=zOb;
JP.\u0275fac=function(a){return new (a||JP)(D(IP))};JP.\u0275cmp=w({type:JP,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&&(M(0,Gya,4,5,"ng-container",0),P(1,"async"));a&2&&C("ngIf",Q(1,1,b.vars$))},dependencies:[Cx,Px],encapsulation:2,changeDetection:0});
var AOb=(0,S.pipe)(R(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 BOb=function(a,b,c,d){My.call(this,a,b,c,d,!0);var e=this;this.escapeSubject$=new S.Subject;this.startAnchorListener=function(){e.escapeSubject$.next(0);return!0};this.endAnchorListener=function(){e.escapeSubject$.next(1);return!0};Ly(this)};U(BOb,My);var KP=function(a,b,c){this.checker=a;this.ngZone=b;this.document=c};KP.prototype.create=function(a){return new BOb(a,this.checker,this.ngZone,this.document)};KP.\u0275fac=function(a){return new (a||KP)(t(Jy),t(jg),t(ji))};
KP.\u0275prov=dc({token:KP,factory:KP.\u0275fac,providedIn:"root"});
var COb=["content"],LP=function(a){wI.call(this);this.focusEscapeNotifierFactory=a;this.trapFocus=this.required=!1;this.renderPanel=this.noneButtonEnabled=this.todayButtonEnabled=!0;this.dateChange=new Rw;this.cancelClicked=new Rw;this.saveClicked=new Rw;this.dateSelectionChange=new Rw;this.focusEscaped=new Rw};U(LP,wI);LP.\u0275dir=wI.\u0275dir;
LP.prototype.ngAfterViewInit=function(){var a=this;Hya(this);setTimeout(function(){Hya(a)});this.focusEscapeNotifier=this.focusEscapeNotifierFactory.create(this.content.nativeElement);this.focusEscapeNotifier.escapeSubject$.pipe(cg(this.destroyed$)).subscribe(function(b){if(a.trapFocus)if(0===b){var c;null==(c=a.focusEscapeNotifier)||Fnb(c)}else{var d;null==(d=a.focusEscapeNotifier)||Ky(d)}else a.focusEscaped.emit(b)})};
var Hya=function(a){var b;if(b=a.date){var c=new CC;c.setTime(b.getTime());b=c}else b=void 0;b&&(a.calendar.activeDate=b);a.calendar._getCurrentViewComponent()._focusActiveCell(!1)};LP.\u0275fac=function(a){return new (a||LP)(D(KP))};
LP.\u0275cmp=w({type:LP,selectors:[["b-date-time-picker-content"]],viewQuery:function(a,b){a&1&&(Bf(LB,7),Bf(COb,7));if(a&2){var c;Af(c=Df())&&(b.calendar=c.first);Af(c=Df())&&(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:[ae],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&&(F(0,"div",null,0)(2,"mat-calendar",1),J("selectedChange",function(c){b.date=c;b.dateSelectionChange.emit(c)}),G(),F(3,"div",2),M(4,Kya,4,2,"div",3),F(5,"div",4)(6,"button",5),J("click",function(){return b.cancelClicked.emit()}),O(7,"Cancel"),G(),F(8,"button",6),J("click",function(){b.dateChange.emit(b.date);return b.saveClicked.emit()}),O(9,"Save"),G()()()());a&2&&(le("container",b.renderPanel),B(2),C("selected",b.date)("startAt",b.date),B(2),C("ngIf",b.todayButtonEnabled||b.noneButtonEnabled))},
dependencies:[Cx,BB,LB,YH],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 DOb=[{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"}],MP=function(a,b,c,d){wI.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 Rw;this.dateSelectionChange=new Rw;
this.onClose=new Rw;this.opened=!1;this.destroyed$.subscribe(function(){var f;null==(f=e.overlayRef)||f.dispose()})};U(MP,wI);g=MP.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 XA(LP),c;this.pickerContent=null==(c=this.overlayRef)?void 0:c.attach(b).instance;var d;null==(d=this.overlayRef)||d.updatePosition();setTimeout(function(){EOb(a)})};
g.getPositionStrategy=function(){return NA(OA(PA(VA(this.overlay.position(),this.element)),8),DOb)};g.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
var EOb=function(a){if(a.pickerContent&&a.overlayRef){var b=(0,S.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(cg(b)).subscribe(function(){setTimeout(function(){return a.element.nativeElement.focus()})});a.pickerContent.dateChange.pipe(cg(b)).subscribe(function(c){a.selectedChange.emit(c)});a.pickerContent.dateSelectionChange.pipe(cg(b)).subscribe(function(c){a.dateSelectionChange.emit(c)});
(0,S.merge)(a.pickerContent.saveClicked,a.pickerContent.cancelClicked,a.overlayRef.backdropClick(),a.overlayRef.keydownEvents().pipe(rf(function(c){return"Escape"===c.code}))).pipe(cg(b)).subscribe(function(){a.close()})}};MP.\u0275fac=function(a){return new (a||MP)(D(cB),D(pd),D(jg),D(pd))};
MP.\u0275dir=w({type:MP,selectors:[["","bDateTimePickerToggle",""]],hostAttrs:["aria-haspopup","true"],hostVars:1,hostBindings:function(a,b){a&1&&J("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&&(Ky(b.pickerContent.focusEscapeNotifier),c.preventDefault())})("keydown.shift.tab",
function(c){b.focusTrapHost&&b.pickerContent&&b.pickerContent.focusEscapeNotifier&&(Fnb(b.pickerContent.focusEscapeNotifier),c.preventDefault())});a&2&&ge("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:[ae]});
var FOb=["pickerToggle"],NP=function(){this.customAriaLabelledBy=this.customFormId=void 0;this.required=!1;this.valueChange=new Rw;this.destroyed$=new S.ReplaySubject};NP.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};NP.\u0275fac=function(a){return new (a||NP)};
NP.\u0275cmp=w({type:NP,selectors:[["b-date-time-input"]],viewQuery:function(a,b){a&1&&Bf(FOb,7);if(a&2){var c;Af(c=Df())&&(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&&(F(0,"button",0,1),J("bDateTimePickerToggleSelectedChange",function(c){b.value=c;b.valueChange.emit(c)}),M(2,Lya,1,1,"b-formatted-date-time",2),M(3,Mya,2,0,"ng-container",3),G());a&2&&(C("id",b.customFormId)("bDateTimePickerToggleRequired",b.required)("bDateTimePickerToggleSelected",b.value)("bDateTimePickerToggleFocusTrapHost",
!1),ge("aria-labelledby",b.customAriaLabelledBy),B(2),C("ngIf",b.value),B(1),C("ngIf",!b.value))},dependencies:[MP,JP,BB,Cx],styles:["\n/*# sourceMappingURL=date_time_input.css.map */"]});
oi(ni(function(){}));ni(function(){});new ld("MatList");new ld("MatNavList");var OP=function(){};OP.\u0275fac=function(a){return new (a||OP)};OP.\u0275dir=w({type:OP,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]});var PP=function(){};PP.\u0275fac=function(a){return new (a||PP)};PP.\u0275dir=w({type:PP,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]});
var GOb=["text"],HOb=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],IOb=ni(function(){}),JOb=ni(function(){}),KOb={provide:Ex,useExisting:bc(function(){return QP}),multi:!0},LOb=function(a,b){this.source=a;this.options=b},RP=function(a,b,c){var d=JOb.call(this)||this;d._element=a;d._changeDetector=b;d.selectionList=c;d._selected=!1;d._disabled=!1;d._hasFocus=!1;d.selectedChange=new Rw;d.checkboxPosition="after";d._inputsInitialized=!1;return d};
U(RP,JOb);g=RP.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()};
li.Object.defineProperties(RP.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=Vg(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=Vg(a);a!==this._selected&&(this._setSelected(a),(a||this.selectionList.multiple)&&this.selectionList._reportValueChange())}}});RP.\u0275fac=function(a){return new (a||RP)(D(pd),D(vx),D(bc(function(){return QP})))};
RP.\u0275cmp=w({type:RP,selectors:[["mat-list-option"]],contentQueries:function(a,b,c){a&1&&(Cf(c,OP,5),Cf(c,PP,5),Cf(c,qB,5));if(a&2){var d;Af(d=Df())&&(b._avatar=d.first);Af(d=Df())&&(b._icon=d.first);Af(d=Df())&&(b._lines=d)}},viewQuery:function(a,b){a&1&&Bf(GOb,5);if(a&2){var c;Af(c=Df())&&(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&&J("focus",function(){return b._handleFocus()})("blur",function(){return b._handleBlur()})("click",
function(){return b._handleClick()});a&2&&(ge("aria-selected",b.selected)("aria-disabled",b.disabled)("tabindex",-1),le("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:[ae],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&&(xe(HOb),F(0,"div",0),H(1,"div",1),M(2,Nya,1,2,"mat-pseudo-checkbox",
2),F(3,"div",3,4),ye(5),G(),ye(6,1),G());a&2&&(le("mat-list-item-content-reverse","after"==b.checkboxPosition),B(1),C("matRippleTrigger",b._getHostElement())("matRippleDisabled",b._isRippleDisabled()),B(1),C("ngIf",b.selectionList.multiple))},dependencies:[uB,vB,Cx],encapsulation:2,changeDetection:0});
var QP=function(a,b,c){var d=IOb.call(this)||this;d._element=a;d._changeDetector=b;d._focusMonitor=c;d._multiple=!0;d._contentInitialized=!1;d.selectionChange=new Rw;d.color="accent";d.compareWith=function(e,f){return e===f};d._disabled=!1;d.selectedOptions=new EA(d._multiple);d._tabIndex=-1;d._onChange=function(){};d._destroyed=new S.Subject;d._onTouched=function(){};return d};U(QP,IOb);g=QP.prototype;
g.ngAfterContentInit=function(){var a=this;this._contentInitialized=!0;this._keyManager=vpb(upb(lA(kA(hA(new qA(this.options)))),function(){return!1}));this._value&&this._setOptionsFromValues(this._value);this._keyManager.tabOut.pipe(cg(this._destroyed)).subscribe(function(){a._allowFocusEscape()});this.options.changes.pipe(ag(null),cg(this._destroyed)).subscribe(function(){a._updateTabIndex()});this.selectedOptions.changed.pipe(cg(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(cg(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){mA(this._keyManager,a)};
g._removeOptionFromList=function(a){a=this._getOptionIndex(a);-1<a&&this._keyManager.activeItemIndex===a&&(0<a?mA(this._keyManager,a-1):0===a&&1<this.options.length&&mA(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=hi(a);switch(b){case 32:case 13:e||0<c._pressedLetters.length||(this._toggleFocusedOption(),a.preventDefault());break;default:if(65!==b||!this.multiple||!hi(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 LOb(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};
li.Object.defineProperties(QP.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=Vg(a);this._markOptionsForCheck()}},multiple:{configurable:!0,enumerable:!0,get:function(){return this._multiple},set:function(a){a=Vg(a);a!==this._multiple&&(this._multiple=a,this.selectedOptions=new EA(this._multiple,this.selectedOptions.selected))}}});QP.\u0275fac=function(a){return new (a||QP)(D(pd),D(vx),D(Sz))};
QP.\u0275cmp=w({type:QP,selectors:[["mat-selection-list"]],contentQueries:function(a,b,c){a&1&&Cf(c,RP,5);if(a&2){var d;Af(d=Df())&&(b.options=d)}},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(a,b){a&1&&J("keydown",function(c){return b._keydown(c)});a&2&&ge("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:[Ge([KOb]),ae,Cc],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(xe(),ye(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 SP=function(){};SP.\u0275fac=function(a){return new (a||SP)};SP.\u0275mod=uc({type:SP});SP.\u0275inj=gc({imports:[rB,yB,gB,zB,Wx,rB,gB,zB,cI]});
var MOb=["filterInput"],TP=function(a){wI.call(this);this.dateFormatter=a;this.enumChoices=[];this.onSave=new Rw;this.valueMap=new Map;this.sortedValues=[];this.filterValue=null;this.currentSelectedDate=void 0};U(TP,wI);TP.\u0275dir=wI.\u0275dir;g=TP.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(bg(function(){return(0,S.timer)(0)}),cg(this.destroyed$)).subscribe(function(){a.focusFilterBox()})};
g.showMenu=function(){zi(this.trigger)};g.closeMenu=function(){this.trigger.closeMenu()};g.focusFilterBox=function(){var a;null==(a=this.filterElement)||a.nativeElement.focus()};var NOb=function(a){return a.filterValue&&"REPEATED_DATE"!==a.type?a.sortedValues.filter(function(b){return a.getDisplayString(b).includes(String(a.filterValue))}):a.sortedValues};
TP.prototype.addValue=function(){var a=this.filterValue;this.filterValue=null;a&&!this.valueMap.get(a)&&(this.valueMap.set(a,!0),OOb(this),this.onSave.emit({valueMap:this.valueMap,valueChanged:this.valueChanged()}))};TP.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})};
TP.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);OOb(this)};
var OOb=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)})},Pya=function(a){return!!a.filterValue&&"REPEATED_ENUM"!==a.type&&"REPEATED_DATE"!==a.type};TP.prototype.getDisplayString=function(a){return"REPEATED_DATE"===this.type?this.dateFormatter.formatUserCalendar(Mi(a)):a};TP.prototype.getLabel=function(){return this.valueChanged()?"Changed":"Unchanged"};
TP.\u0275fac=function(a){return new (a||TP)(D(HP))};
TP.\u0275cmp=w({type:TP,selectors:[["b-bulk-repeated-field-picker"]],viewQuery:function(a,b){a&1&&(Bf(lF,5),Bf(MOb,5));if(a&2){var c;Af(c=Df())&&(b.trigger=c.first);Af(c=Df())&&(b.filterElement=c.first)}},inputs:{type:"type",originalValueMap:"originalValueMap",enumChoices:"enumChoices"},outputs:{onSave:"onSave"},features:[ae,Cc],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&&(F(0,"button",0)(1,"span"),O(2),G(),H(3,"b-icon",1),G(),F(4,"mat-menu",null,2),M(6,Oya,3,4,"div",3),H(7,"mat-divider"),F(8,"div",4),M(9,Qya,2,3,"input",5),G(),M(10,Rya,1,0,"mat-divider",6),M(11,Sya,2,0,"div",7),M(12,Tya,4,1,"div",6),G());if(a&2){var c=Ce(5);C("matMenuTriggerFor",c);B(2);Ee(b.getLabel());B(4);C("ngForOf",NOb(b));B(3);C("ngIf","REPEATED_DATE"!==
b.type);B(1);C("ngIf",Pya(b));B(1);C("ngIf",Pya(b));B(1);C("ngIf","REPEATED_DATE"===b.type)}},dependencies:[Gx,Cx,iF,gF,lF,YH,zH,BB,JO,Jg,ly,ry,NP],styles:[".multi-edit-menuitem[_ngcontent-%COMP%]{padding:0 5px}.filter[_ngcontent-%COMP%]{padding:0 5px}\n/*# sourceMappingURL=bulk_repeated_field_picker.css.map */"]});
var UP=function(){this.relayOnly=!1;this.keydown$=new S.Subject};UP.prototype.onKeydown=function(a){this.relayOnly||this.keydown$.next(a)};li.Object.defineProperties(UP.prototype,{tabindex:{configurable:!0,enumerable:!0,get:function(){return this.relayOnly?null:"0"}}});UP.\u0275fac=function(a){return new (a||UP)};
UP.\u0275dir=w({type:UP,selectors:[["","onedevKeyEventReceiver",""]],hostVars:1,hostBindings:function(a,b){a&1&&J("keydown",function(c){return b.onKeydown(c)});a&2&&ge("tabindex",b.tabindex)},inputs:{relayOnly:"relayOnly"}});
var POb=0,VP=function(a){this.keyEventReceiver=a;this.id="onedev-popup-panel-"+POb;this.closePanel$=new S.ReplaySubject(1);POb++};VP.prototype.processKeydown=function(a){this.keyEventReceiver&&this.keyEventReceiver.keydown$.next(a);var b=a.code;("Escape"===b||a.altKey&&"ArrowUp"===b)&&this.closePanel$.next()};VP.\u0275fac=function(a){return new (a||VP)(D(UP,8))};
VP.\u0275cmp=w({type:VP,selectors:[["onedev-popup-panel"]],viewQuery:function(a,b){a&1&&Bf(xf,7);if(a&2){var c;Af(c=Df())&&(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&&(xe(),M(0,Uya,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 WP=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 Rw;this.closed=new Rw;this.isOpen=!1;this.destroyed$=new S.ReplaySubject(1);this.closingActionsSubscription=S.Subscription.EMPTY};WP.prototype.ngOnDestroy=function(){this.close();this.destroyed$.next();this.destroyed$.complete()};
WP.prototype.open=function(){var a=this;this.disabled||this.isOpen||(this.overlayRef=this.createOverlay(),this.templatePortal=new YA(this.popupPanel.templateRef,this.viewContainerRef),this.overlayRef.attach(this.templatePortal),this.closingActionsSubscription=QOb(this).pipe(cg(this.destroyed$)).subscribe(function(){a.close()}),this.trapFocus(),this.isOpen=!0,this.opened.emit())};
WP.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()}};WP.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 QOb=function(a){var b=a.overlayRef.backdropClick(),c=a.overlayRef._detachments,d=a.popupPanel.closePanel$;return a.closeOnBackdropClick?(0,S.merge)(b,c,d):(0,S.merge)(c,d)};WP.prototype.trapFocus=function(){this.overlayRef&&(this.focusTrap=this.focusTrapFactory.create(this.overlayRef.hostElement),Gnb(this.focusTrap))};
WP.prototype.getPositionStrategy=function(){return NA(OA(PA(VA(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"}])};WP.prototype.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
li.Object.defineProperties(WP.prototype,{onedevPopupPanelTriggerFor:{configurable:!0,enumerable:!0,get:function(){return this.popupPanel},set:function(a){this.popupPanel=a}}});WP.\u0275fac=function(a){return new (a||WP)(D(cB),D(pd),D(yf),D(fA))};
WP.\u0275dir=w({type:WP,selectors:[["","onedevPopupPanelTrigger",""]],hostAttrs:["aria-haspopup","true"],hostVars:3,hostBindings:function(a,b){a&2&&ge("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 ROb=0,XP=function(a){this.changeDetectorRef=a;this.active=!1;this.id="b-list-option-"+ROb;ROb+=1};XP.prototype.setActiveStyles=function(){this.active=!0;this.changeDetectorRef.markForCheck()};XP.prototype.setInactiveStyles=function(){this.active=!1;this.changeDetectorRef.markForCheck()};XP.\u0275fac=function(a){return new (a||XP)(D(vx))};
XP.\u0275dir=w({type:XP,selectors:[["","onedevListOption",""]],hostVars:3,hostBindings:function(a,b){a&2&&(ve("id",b.id),le("active",b.active))},inputs:{option:"option"},exportAs:["onedevListOption"]});var YP=function(){};YP.\u0275fac=function(a){return new (a||YP)};YP.\u0275mod=uc({type:YP});YP.\u0275inj=gc({});
var Wya=function(){return{$implicit:void 0}},Zya=function(a){return{$implicit:a}},ZP=function(a){this.includeEmptyOption=this.disabled=!1;this.valueChange=new Rw;this.selected=new Rw;this.destroyed$=new S.ReplaySubject(1);a&&this.handleKeydown(a.keydown$)};g=ZP.prototype;g.ngOnInit=function(){};g.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};g.ngAfterViewInit=function(){this.keyManager=iA(new pA(this.viewOptions))};g.ngOnChanges=function(a){a.value&&SOb(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 SOb=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)}};ZP.prototype.clearActiveItem=function(){this.keyManager&&this.keyManager.activeItem&&this.keyManager.setActiveItem(-1)};
ZP.prototype.handleKeydown=function(a){var b=this;a.pipe(cg(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?nA(b.keyManager):oA(b.keyManager)):"Enter"!==d&&"Space"!==d||!b.keyManager.activeItem||(c.preventDefault(),b.select(b.keyManager.activeItem.option))}})};ZP.\u0275fac=function(a){return new (a||ZP)(D(UP,8))};
ZP.\u0275cmp=w({type:ZP,selectors:[["onedev-selectable-list"]],viewQuery:function(a,b){a&1&&Bf(XP,5);if(a&2){var c;Af(c=Df())&&(b.viewOptions=c)}},hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(a,b){a&1&&J("focus",function(){return SOb(b)})("blur",function(){return b.clearActiveItem()});a&2&&(a=b.keyManager&&b.keyManager.activeItem?b.keyManager.activeItem.id:void 0,ge("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:[Cc],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&&(M(0,Xya,2,5,"div",0),M(1,aza,2,1,"ng-container",1),M(2,gza,3,2,"ng-template",null,2,Jf));a&2&&(C("ngIf",b.includeEmptyOption),B(1),C("ngForOf",b.options))},dependencies:[Gx,Cx,Mx,XP],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 $P=function(){};
var TOb=["trigger"],iza=function(a){return{$implicit:a}},UOb=0,aQ=function(a){this.includeEmptyOption=this.disabled=!1;this.label="";this.valueChange=new Rw;this.displayArrowIcon=!0;this.focused=this.required=this.openPopupOnInit=!1;this.contentId="onedev-single-select-"+UOb;this.onChange=function(){};this.onTouched=function(){};if(""===a||"true"===a||"required"===a)this.required=!0;UOb++};U(aQ,$P);g=aQ.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 VOb=function(a){var b="";a.label&&(b+=a.label+", ");a.required&&(b+="required, ");return b};aQ.prototype.setDisabledState=function(a){this.disabled=a};li.Object.defineProperties(aQ.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});aQ.\u0275fac=function(a){return new (a||aQ)(Zc("required"))};
aQ.\u0275cmp=w({type:aQ,selectors:[["onedev-single-select"]],viewQuery:function(a,b){a&1&&Bf(TOb,7);if(a&2){var c;Af(c=Df())&&(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:[Ge([{provide:Ex,useExisting:bc(function(){return aQ}),
multi:!0},{provide:$P,useExisting:bc(function(){return aQ}),multi:!0}]),ae],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();F(0,"button",0,1);J("focus",function(){return b.focused=!0})("blur",function(){return b.focused=!1})("click",
function(){z(c);var f=Ce(1);return A(f.open())})("closed",function(){b.onTouched()});F(2,"span",2);O(3);G();M(4,jza,2,4,"ng-container",3);M(5,mza,1,2,"ng-template",null,4,Jf);M(7,pza,3,2,"ng-template",null,5,Jf);M(9,qza,2,0,"svg",6);G();F(10,"onedev-popup-panel",7,8)(12,"onedev-selectable-list",9);J("valueChange",function(f){return b.onSelectionChange(f)})("selected",function(){z(c);var f=Ce(1);return A(f.close())});G()()}if(a&2){var d=Ce(6),e=Ce(11);le("active",b.isActive());C("onedevPopupPanelTriggerDisabled",
b.disabled)("disabled",b.disabled)("onedevPopupPanelTriggerFor",e);ge("id",b.contentId)("aria-labelledby",b.contentAriaLabelledBy());B(3);Ee(VOb(b));B(1);C("ngIf",b.valueTemplate)("ngIfElse",d);B(5);C("ngIf",b.displayArrowIcon);B(1);C("relayOnly",!0);B(2);C("value",b.value)("includeEmptyOption",b.includeEmptyOption)("options",b.options)("optionTemplate",b.optionTemplate)("label",b.label)}},dependencies:[Cx,Mx,UP,ZP,VP,WP],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 xza=function(){return[]},bQ=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=bQ.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],v=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;v=WOb(v);y=Array.from(k.keys()).concat(v);y=r(y);for(E=y.next();!E.done;E=y.next())E=E.value,v.includes(E)?k.has(E)||k.set(E,q||null):k.set(E,null);this.repeatedCustomFieldsMap.set(h,k)}else(!v&&void 0!==k||v&&!Ei(v,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 so=function(a){return"bv2-custom-field-"+a.customFieldId+"-label"},WOb=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()}):[]},vza=function(a){return a?Mk(a):null},zza=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$1669:d.$jscomp$loop$prop$issueValues$1669,$jscomp$loop$prop$action$1670:d.$jscomp$loop$prop$action$1670},f=e.next()){f=f.value;var h=yja(f.customFieldValueMap,function(y){return y.customFieldId===b});d.$jscomp$loop$prop$issueValues$1669=WOb(h);c.valueMap.forEach(function(y){return function(E,I){E&&!y.$jscomp$loop$prop$issueValues$1669.includes(I)?
y.$jscomp$loop$prop$issueValues$1669.push(I):!1===E&&(y.$jscomp$loop$prop$issueValues$1669=y.$jscomp$loop$prop$issueValues$1669.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$1669.map(function(y){return Nk(Mi(y))}):"REPEATED_NUMERIC"==h&&(q=d.$jscomp$loop$prop$issueValues$1669.map(function(y){return Number(y)}));var v=new iJ({customFieldId:b});switch(h){case "REPEATED_TEXT":v.repeatedTextValue={values:d.$jscomp$loop$prop$issueValues$1669};
break;case "REPEATED_DATE":v.repeatedDateValue={values:k};break;case "REPEATED_ENUM":v.repeatedEnumValue={values:d.$jscomp$loop$prop$issueValues$1669};break;case "REPEATED_NUMERIC":v.repeatedNumericValue={values:q}}d.$jscomp$loop$prop$action$1670={fieldName:"customField",customFieldValue:v,actionType:v.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$1670,I)})}}(d));-1!==h?a.bulkEditOps[h].issueIds.push(f.issueId):
a.bulkEditOps.push({actions:[d.$jscomp$loop$prop$action$1670],issueIds:[f.issueId]})}}},XOb=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 iJ({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,Ea(f)&&Ea(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})}};
bQ.\u0275fac=function(a){return new (a||bQ)(D(XB),D(MB))};
bQ.\u0275cmp=w({type:bQ,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&&(F(0,"h2",0),O(1,"Update custom fields"),G(),F(2,"mat-dialog-content"),M(3,rza,2,0,"div",1),M(4,Dza,8,6,"div",2),G(),F(5,"mat-dialog-actions")(6,"button",3),J("class",function(){return b.dialogRef.close()}),O(7,"Cancel"),G(),F(8,"button",4),J("click",
function(){XOb(b);b.bulkEditOps.length?b.dialogRef.close(b.bulkEditOps):b.dialogRef.close()}),O(9," Save "),G()());a&2&&(B(3),C("ngIf",0===b.customFields.length),B(1),C("ngForOf",b.customFields))},dependencies:[Gx,Cx,Ix,Jx,Kx,$B,aC,bC,cC,aQ,TP,Jg,ty,ly,ry,NP,BB,sF],encapsulation:2});
var cQ=function(){};cQ.\u0275fac=function(a){return new (a||cQ)};cQ.\u0275mod=uc({type:cQ});cQ.\u0275inj=gc({imports:[Wx]});
var dQ=function(){};dQ.\u0275fac=function(a){return new (a||dQ)};dQ.\u0275mod=uc({type:dQ});dQ.\u0275inj=gc({imports:[Wx,wF,BG,kH,cI,aA]});
var YOb=function(a){this.patternParts_=[];this.dateTimeSymbols_=sC;"number"==typeof a?this.applyStandardPattern_(a):this.applyPattern_(a)};
YOb.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};YOb.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)};
YOb.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("zd`"+f.text.charAt(0));}f=new ZOb;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],v=d;if(" "==q.text.charAt(0)){if(q=c[0],$Ob(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(v&&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;v=h;var y=c[0],E=0;for(k=v;k<this.patternParts_.length&&0!=this.patternParts_[k].count;k++){var I=this.patternParts_[k].count;if(k==v&&(I-=E,E++,0==I)){k=0;break a}aPb(this,q,c,this.patternParts_[k],I,f,!1)||(k=v-1,c[0]=y)}k-=v}if(0>=k)return 0;h+=k-1}else if(!aPb(this,a,c,this.patternParts_[h],0,f,d))return 0}a:{a=
e;if(null==b)throw Error("Ad");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=crb(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 aPb=function(a,b,c,d,e,f,h){$Ob(b,c);if(d.numeric&&0<e&&c[0]+e>b.length)return!1;switch(d.text.charAt(0)){case "G":return eQ(b,c,[a.dateTimeSymbols_.ERAS],function(k){f.era=k}),!0;case "M":case "L":return bPb(a,b,c,e,d,f);case "E":return eQ(b,c,[a.dateTimeSymbols_.WEEKDAYS,a.dateTimeSymbols_.SHORTWEEKDAYS],function(k){f.dayOfWeek=k});case "B":case "b":case "a":return a=eQ(b,c,[a.dateTimeSymbols_.AMPMS],function(k){f.ampm=k},h),h?a:!0;case "y":return cPb(a,b,c,d,e,f);case "Q":return eQ(b,c,[a.dateTimeSymbols_.QUARTERS,
a.dateTimeSymbols_.SHORTQUARTERS],function(k){f.month=3*k;f.day=1});case "d":return fQ(a,b,c,d,e,function(k){f.day=k}),!0;case "S":return dPb(a,b,c,e,f);case "h":case "K":case "H":case "k":return a=fQ(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=fQ(a,b,c,d,e,function(k){f.minutes=k},h),h?a:!0;case "s":return fQ(a,b,c,d,e,function(k){f.seconds=k}),!0;case "z":case "Z":case "v":return ePb(a,b,c,f);default:return!1}},cPb=function(a,b,c,d,e,f){var h=c[0];
e=gQ(a,b,c,e);null===e&&(e=gQ(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},bPb=function(a,b,c,d,e,f){return e.numeric&&fQ(a,b,c,e,d,function(h){f.month=h-1})?!0:eQ(b,c,[a.dateTimeSymbols_.MONTHS,a.dateTimeSymbols_.STANDALONEMONTHS,a.dateTimeSymbols_.SHORTMONTHS,a.dateTimeSymbols_.STANDALONESHORTMONTHS],function(h){f.month=h})},dPb=function(a,b,c,d,e){var f=
c[0];a=gQ(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},ePb=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=gQ(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=gQ(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},fQ=function(a,b,c,d,e,f,h){h=h||!1;var k=c[0];a=gQ(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},eQ=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,v=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)){v=E.length;y=I;break}k[I].length>v&&0==E.indexOf(N)&&(v=k[I].length,y=I)}null!==y&&(f[0]+=v);f=y;if(null!==f)return d(f),!0}return!1},$Ob=function(a,b){(a=a.substring(b[0]).match(/^\s+/))&&
(b[0]+=a[0].length)},gQ=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)},ZOb=function(){};ZOb.prototype.ambiguousYear=!1;
var fPb=Array(31).fill(0).map(function(a,b){return""+(b+1)}),hQ=function(){var a=hB.apply(this,arguments)||this;a.locale=sC;return a};U(hQ,hB);g=hQ.prototype;g.setLocale=function(){throw Error("Bd");};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 fPb};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 crb(a.getFullYear(),a.getMonth())};g.clone=function(a){return a.clone()};g.createDate=function(a,b,c){return new CC(a,b,c)};
g.today=function(){return new CC};g.parse=function(a,b){if(""===a)return null;b=new YOb(b);var c=new CC(new Date(a));b.parse(a,c);return c};g.format=function(a,b){if(!this.isValid(a))throw Error("Cd");return(new ui(b)).format(a)};g.addCalendarYears=function(a,b){a=a.clone();a.add(new po(b));return a};g.addCalendarMonths=function(a,b){a=a.clone();a.add(new po(0,b));return a};g.addCalendarDays=function(a,b){a=a.clone();a.add(new po(0,0,b));return a};g.isDateInstance=function(a){return a instanceof CC};
g.isValid=function(a){return!isNaN(a.getTime())};g.invalid=function(){return new CC(NaN)};g.sameDate=function(a,b){return a&&b?(new Ji(a)).equals(b):!1};hQ.\u0275fac=function(){var a;return function(b){return(a||(a=ed(hQ)))(b||hQ)}}();hQ.\u0275prov=dc({token:hQ,factory:hQ.\u0275fac});
var gPb={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"},iQ=gPb;iQ=gPb;
var jQ=sC.DATEFORMATS[3];jQ=jQ.replace(/yyyy/,"yy").replace(/yy/,"yyyy");"M/d/yyyy"===jQ&&(jQ="MM/dd/yyyy");var hPb={parse:{dateInput:jQ},display:{dateInput:jQ,monthYearLabel:iQ.YEAR_MONTH_ABBR,dateA11yLabel:iQ.MONTH_DAY_YEAR_MEDIUM,monthYearA11yLabel:iQ.YEAR_MONTH_FULL}};
var kQ=function(){};kQ.\u0275fac=function(a){return new (a||kQ)};kQ.\u0275mod=uc({type:kQ});kQ.\u0275inj=gc({providers:[{provide:hB,useClass:hQ},{provide:lB,useValue:hPb}],imports:[dQ,cQ,wF,BG,Wx]});
var lQ=function(){};lQ.\u0275fac=function(a){return new (a||lQ)};lQ.\u0275mod=uc({type:lQ});lQ.\u0275inj=gc({imports:[Wx,mF,cI,SP,bI,BG,rC,NO,Gy,kQ]});
var mQ=function(){};mQ.\u0275fac=function(a){return new (a||mQ)};mQ.\u0275mod=uc({type:mQ});mQ.\u0275inj=gc({imports:[Wx]});
var nQ=function(){};nQ.\u0275fac=function(a){return new (a||nQ)};nQ.\u0275mod=uc({type:nQ});nQ.\u0275inj=gc({imports:[Wx,fB,bB,BG,lH,aA,mN]});
var oQ=function(){};oQ.\u0275fac=function(a){return new (a||oQ)};oQ.\u0275mod=uc({type:oQ});oQ.\u0275inj=gc({imports:[Wx,BG,YP]});
var pQ=function(){};pQ.\u0275fac=function(a){return new (a||pQ)};pQ.\u0275mod=uc({type:pQ});pQ.\u0275inj=gc({imports:[Wx,wF,BG,Gy,mQ,oQ,nQ]});
var qQ=function(){};qQ.\u0275fac=function(a){return new (a||qQ)};qQ.\u0275mod=uc({type:qQ});qQ.\u0275inj=gc({imports:[Wx,dC,pQ,lQ,Gy,kQ,BG,lH]});
var iPb=new ld("GMAT_CHECKBOX_OPTION");
var jPb=new Map([["primary","mat-primary"],["accent","mat-accent"],["warn","mat-warn"]]),rQ=function(a,b){this.elementRef=a;this.gmatCheckboxOption=b;this.color="primary";this.hasGmatAttribute=a.nativeElement.hasAttribute("gmat-checkbox")};rQ.prototype.ngOnInit=function(){this.isEnabled()&&(this.elementRef.nativeElement.classList.remove.apply(this.elementRef.nativeElement.classList,u(jPb.values())),this.elementRef.nativeElement.classList.add(jPb.get(this.color)))};
rQ.prototype.isEnabled=function(){return this.gmatCheckboxOption?this.hasGmatAttribute||this.gmatCheckboxOption.enabled:this.hasGmatAttribute};rQ.\u0275fac=function(a){return new (a||rQ)(D(pd),D(iPb,8))};rQ.\u0275dir=w({type:rQ,selectors:[["mat-checkbox","gmat-checkbox",""],["mat-checkbox"]],hostVars:2,hostBindings:function(a,b){a&2&&le("gmat-checkbox",b.isEnabled())},inputs:{color:"color"}});
var sQ=function(){};sQ.\u0275fac=function(a){return new (a||sQ)};sQ.\u0275mod=uc({type:sQ});sQ.\u0275inj=gc({});
var tQ=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 Rw;this.click=new Rw;this.labelClick=new Rw};tQ.prototype.onClick=function(a){this.click.emit(a)};tQ.\u0275fac=function(a){return new (a||tQ)};
tQ.\u0275cmp=w({type:tQ,selectors:[["b-checkbox"]],hostVars:2,hostBindings:function(a,b){a&2&&le("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&&(F(0,"mat-checkbox",0),J("click",function(c){return b.onClick(c)})("change",function(c){b.checked=c.checked;b.change.emit(c.checked)}),F(1,"span",1),J("click",function(c){b.labelClick.emit(c)}),O(2),G()());a&2&&(C("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),Ee(b.label))},
dependencies:[rQ,JO,sF],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 uQ=function(){};uQ.\u0275fac=function(a){return new (a||uQ)};
uQ.\u0275mod=uc({type:uQ});uQ.\u0275inj=gc({imports:[sQ,NO,lH]});
var vQ=function(a){var b=this;this.elementRef=a;this.eventType="click";this.clickOutside=new Rw;this.clickHandler=function(c){var d=c.target;d&&(b.elementRef.nativeElement.contains(d)||b.clickOutside.emit(c))}};vQ.prototype.ngOnInit=function(){document.addEventListener(this.eventType,this.clickHandler,!0)};vQ.prototype.ngOnDestroy=function(){document.removeEventListener(this.eventType,this.clickHandler,!0)};vQ.\u0275fac=function(a){return new (a||vQ)(D(pd))};
vQ.\u0275dir=w({type:vQ,selectors:[["","clickOutside",""]],inputs:{eventType:["clickOutsideEvent","eventType"]},outputs:{clickOutside:"clickOutside"}});var wQ=function(){};wQ.\u0275fac=function(a){return new (a||wQ)};wQ.\u0275mod=uc({type:wQ});wQ.\u0275inj=gc({});
var xQ=function(a){this.codefont$=a.codeFont$};xQ.\u0275fac=function(a){return new (a||xQ)(t(VI))};xQ.\u0275prov=dc({token:xQ,factory:xQ.\u0275fac,providedIn:"root"});
var kPb=function(a){return["chip","gmat-caption",a]},yQ=function(){this.variant="grey";this.isTall=!1};yQ.\u0275fac=function(a){return new (a||yQ)};
yQ.\u0275cmp=w({type:yQ,selectors:[["onedev-chip"]],hostVars:2,hostBindings:function(a,b){a&2&&le("tall",b.isTall)},inputs:{variant:"variant",isTall:"isTall"},ngContentSelectors:["*"],decls:3,vars:3,consts:[[3,"ngClass"],[1,"centering"]],template:function(a,b){a&1&&(xe(),F(0,"div",0)(1,"div",1),ye(2),G()());a&2&&C("ngClass",Ie(1,kPb,b.variant))},dependencies:[Fx],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 zQ=function(a){this.chip=a};zQ.\u0275fac=function(a){return new (a||zQ)(D(yQ))};zQ.\u0275dir=w({type:zQ,selectors:[["","onedevChipIcon",""]],hostVars:10,hostBindings:function(a,b){a&2&&ke("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 AQ=function(){};AQ.\u0275fac=function(a){return new (a||AQ)};AQ.\u0275cmp=w({type:AQ,selectors:[["","onedevDot",""]],hostVars:1,hostBindings:function(a){a&2&&ge("aria-hidden",!0)},attrs:["onedevDot",""],decls:1,vars:0,template:function(a){a&1&&O(0,"\u00a0\u00b7\u00a0")},encapsulation:2});
var lPb=[[["","onedev-additional-content",""]],[["onedev-hovercard-action"]]],mPb=function(a){return{"with-avatar":a}},BQ=function(){};BQ.prototype.ngOnInit=function(){};BQ.\u0275fac=function(a){return new (a||BQ)};
BQ.\u0275cmp=w({type:BQ,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&&(xe(lPb),F(0,"div",0)(1,"div",1)(2,"div",2),M(3,Eza,1,2,"img",3),F(4,"div",4),O(5),G(),M(6,Fza,2,1,"div",5),G(),M(7,Gza,4,1,"div",6),F(8,"div",7),M(9,Kza,7,3,"ng-container",8),M(10,Lza,4,1,"ng-container",8),M(11,Mza,19,4,"ng-container",8),ye(12),G()(),ye(13,1),G());a&2&&(B(2),C("ngClass",Ie(8,mPb,b.person.imageUrl)),B(1),C("ngIf",b.person.imageUrl),B(2),De(" ",b.person.name||b.person.email," "),B(1),C("ngIf",b.person.name),B(1),C("ngIf",b.outOfOfficeDescription),B(2),C("ngIf",b.person.title||
b.person.department),B(1),C("ngIf",b.person.location),B(1),C("ngIf",b.person.ldap))},dependencies:[yQ,zQ,Fx,Cx,AQ,dF],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 nPb=function(){};
var wo=function(){this.Serializable$values={}},to=function(a,b){return a.Serializable$values.hasOwnProperty(b)?a.Serializable$values[b]:null},CQ=function(a,b){return null!=a.Serializable$values[b]};
var oPb=function(){};
var pPb=function(a,b){this.requestService=a;this.hookFactory=void 0===b?null:b};U(pPb,oPb);
var qPb=function(a,b,c){var d=Nza(a.hookFactory,b);return null==d?c:S.EMPTY.pipe(dg({complete:function(){d.onBeforeSend()}}),aha(c.pipe(dg(function(e){d.onSuccess(e)},function(e){d.onError(e)}))))},rPb=function(a,b){var c=b.responseCtor||void 0,d=a.requestService,e=d.send,f=b.body instanceof wo?uo(b.body,Rza,Sza,Tza):b.body;return qPb(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 sPb=function(){};sPb.prototype.send=function(a,b){Oza(a);return this.makeRequest(a).pipe(R(function(c){return b?Xza(b,c):c}))};
var tPb=new ld("API_VERSION"),uPb=new ld("REQUEST_SERVICE"),DQ=function(){};DQ.\u0275fac=function(a){return new (a||DQ)};DQ.\u0275mod=uc({type:DQ});DQ.\u0275inj=gc({});
var vPb={$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"},EQ=function(a,b,c){this.gapiVersion=a;this.gapiVersion=null==a?"v2":a;this.$apiClient=new pPb(b,c)};EQ.prototype.list=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;return rPb(this.$apiClient,{body:null,httpMethod:"GET",methodId:"people_pa.people.lookup.list",path:"/"+this.gapiVersion+"/people/lookup",queryParams:Pza(a,vPb,b)})};EQ.\u0275fac=function(a){return new (a||EQ)(t(tPb,8),t(uPb),t(nPb,8))};
EQ.\u0275prov=dc({token:EQ,factory:EQ.\u0275fac});var FQ=function(){};FQ.\u0275fac=function(a){return new (a||FQ)};FQ.\u0275prov=dc({token:FQ,factory:function(a){return EQ.\u0275fac(a)},providedIn:DQ});var GQ=function(a,b,c){this.gapiVersion=a;this.gapiVersion=null==a?"v2":a;this.$apiClient=new pPb(b,c)};GQ.\u0275fac=function(a){return new (a||GQ)(t(tPb,8),t(uPb),t(nPb,8))};GQ.\u0275prov=dc({token:GQ,factory:GQ.\u0275fac});var HQ=function(){};HQ.\u0275fac=function(a){return new (a||HQ)};
HQ.\u0275prov=dc({token:HQ,factory:function(a){return GQ.\u0275fac(a)},providedIn:DQ});
var aAa=/.*@google.com/,wPb=new ld("onedevPeopleServiceConfig"),xPb={},IQ=function(a,b,c){var d=this;this.lookupApiClient=a;this.destroy$=new S.Subject;this.config=xPb;c&&c.pipe(dg(function(e){window.gapi&&e.accessToken&&window.gapi.auth.setToken({access_token:e.accessToken})}),cg(this.destroy$)).subscribe({next:function(e){d.config=e}})},yPb=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(R(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 v;k=null==(v=dAa(null==c?void 0:c.email))?void 0:v.value;var y,E;v=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=cAa(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:bAa(k),email:k||b||"",name:v||"",imageUrl:y,title:d,department:I,location:E}}else d={ldap:bAa(b),name:"",email:b};return d}))};IQ.prototype.ngOnDestroy=function(){this.destroy$.next()};IQ.\u0275fac=function(a){return new (a||IQ)(t(FQ),t(HQ),t(wPb,8))};IQ.\u0275prov=dc({token:IQ,factory:IQ.\u0275fac});
var zPb=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(zPb,wo);zPb.prototype.getPartialClassMetadata=function(){return{keys:["dayOfWeek","periodEndMinutes","periodStartMinutes"]}};
li.Object.defineProperties(zPb.prototype,{dayOfWeek:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"dayOfWeek")?to(this,"dayOfWeek"):0},set:function(a){this.Serializable$values.dayOfWeek=a}},periodEndMinutes:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"periodEndMinutes")?to(this,"periodEndMinutes"):0},set:function(a){this.Serializable$values.periodEndMinutes=a}},periodStartMinutes:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"periodStartMinutes")?to(this,
"periodStartMinutes"):0},set:function(a){this.Serializable$values.periodStartMinutes=a}}});var APb=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(APb,wo);APb.prototype.getPartialClassMetadata=function(){return{arrays:{userIds:JQ},keys:["debugOptions","userIds"],objects:{debugOptions:KQ}}};
li.Object.defineProperties(APb.prototype,{debugOptions:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"debugOptions")?to(this,"debugOptions"):this.debugOptions=new KQ},set:function(a){this.Serializable$values.debugOptions=a}},userIds:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"userIds")?to(this,"userIds"):this.userIds=[]},set:function(a){this.Serializable$values.userIds=a}}});
var BPb=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.results=null==a.results?null:a.results};U(BPb,wo);BPb.prototype.getPartialClassMetadata=function(){return{arrays:{results:CPb},keys:["results"]}};
li.Object.defineProperties(BPb.prototype,{hasResults:{configurable:!0,enumerable:!0,get:function(){return null!==to(this,"results")}},results:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"results")?to(this,"results"):this.results=[]},set:function(a){this.Serializable$values.results=a}}});
var LQ=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(LQ,wo);LQ.prototype.getPartialClassMetadata=function(){return{keys:["eventSummary","nextAvailable","occupiedUntil"]}};
li.Object.defineProperties(LQ.prototype,{eventSummary:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"eventSummary")?to(this,"eventSummary"):""},set:function(a){this.Serializable$values.eventSummary=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"nextAvailable")?to(this,"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"occupiedUntil")?to(this,"occupiedUntil"):
""},set:function(a){this.Serializable$values.occupiedUntil=a}}});var MQ=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(MQ,wo);MQ.prototype.getPartialClassMetadata=function(){return{keys:["geoCoordinates","location"],objects:{geoCoordinates:NQ}}};
li.Object.defineProperties(MQ.prototype,{geoCoordinates:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"geoCoordinates")?to(this,"geoCoordinates"):this.geoCoordinates=new NQ},set:function(a){this.Serializable$values.geoCoordinates=a}},location:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"location")?to(this,"location"):""},set:function(a){this.Serializable$values.location=a}}});
var OQ=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(OQ,wo);OQ.prototype.getPartialClassMetadata=function(){return{keys:["nextAvailable","occupiedUntil"]}};
li.Object.defineProperties(OQ.prototype,{nextAvailable:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"nextAvailable")?to(this,"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"occupiedUntil")?to(this,"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});var DPb=function(){this.Serializable$values={}};U(DPb,wo);DPb.prototype.getPartialClassMetadata=function(){return{keys:[]}};
var PQ=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(PQ,wo);
PQ.prototype.getPartialClassMetadata=function(){return{keys:["eventSummary","inMeetingsUntil","nextAvailable","occupiedUntil"]}};
li.Object.defineProperties(PQ.prototype,{eventSummary:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"eventSummary")?to(this,"eventSummary"):""},set:function(a){this.Serializable$values.eventSummary=a}},inMeetingsUntil:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"inMeetingsUntil")?to(this,"inMeetingsUntil"):""},set:function(a){this.Serializable$values.inMeetingsUntil=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"nextAvailable")?to(this,
"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"occupiedUntil")?to(this,"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});var EPb=function(){this.Serializable$values={}};U(EPb,wo);EPb.prototype.getPartialClassMetadata=function(){return{keys:[]}};
var NQ=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(NQ,wo);NQ.prototype.getPartialClassMetadata=function(){return{keys:["latitude","longitude"]}};
li.Object.defineProperties(NQ.prototype,{latitude:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"latitude")?to(this,"latitude"):0},set:function(a){this.Serializable$values.latitude=a}},longitude:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"longitude")?to(this,"longitude"):0},set:function(a){this.Serializable$values.longitude=a}}});var QQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.timeZone=null==a.timeZone?null:a.timeZone};
U(QQ,wo);QQ.prototype.getPartialClassMetadata=function(){return{keys:["timeZone"]}};li.Object.defineProperties(QQ.prototype,{timeZone:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"timeZone")?to(this,"timeZone"):""},set:function(a){this.Serializable$values.timeZone=a}}});
var RQ=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(RQ,wo);RQ.prototype.getPartialClassMetadata=function(){return{keys:["experimentalBuildingId","experimentalDeskId","experimentalFloorId"]}};
li.Object.defineProperties(RQ.prototype,{experimentalBuildingId:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"experimentalBuildingId")?to(this,"experimentalBuildingId"):""},set:function(a){this.Serializable$values.experimentalBuildingId=a}},experimentalDeskId:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"experimentalDeskId")?to(this,"experimentalDeskId"):""},set:function(a){this.Serializable$values.experimentalDeskId=a}},experimentalFloorId:{configurable:!0,enumerable:!0,
get:function(){return CQ(this,"experimentalFloorId")?to(this,"experimentalFloorId"):""},set:function(a){this.Serializable$values.experimentalFloorId=a}}});var SQ=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(SQ,wo);SQ.prototype.getPartialClassMetadata=function(){return{keys:["comeBackTime","eventSummary"]}};
li.Object.defineProperties(SQ.prototype,{comeBackTime:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"comeBackTime")?to(this,"comeBackTime"):""},set:function(a){this.Serializable$values.comeBackTime=a}},eventSummary:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"eventSummary")?to(this,"eventSummary"):""},set:function(a){this.Serializable$values.eventSummary=a}}});
var TQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.comeBackTime=null==a.comeBackTime?null:a.comeBackTime};U(TQ,wo);TQ.prototype.getPartialClassMetadata=function(){return{keys:["comeBackTime"]}};li.Object.defineProperties(TQ.prototype,{comeBackTime:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"comeBackTime")?to(this,"comeBackTime"):""},set:function(a){this.Serializable$values.comeBackTime=a}}});
var UQ=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(UQ,wo);UQ.prototype.getPartialClassMetadata=function(){return{keys:["code","details","message"],objectMaps:{details:{ctor:null,isPropertyArray:!0,isSerializable:!1,isValueArray:!1}}}};
li.Object.defineProperties(UQ.prototype,{code:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"code")?to(this,"code"):0},set:function(a){this.Serializable$values.code=a}},hasDetails:{configurable:!0,enumerable:!0,get:function(){return null!==to(this,"details")}},details:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"details")?to(this,"details"):this.details=[]},set:function(a){this.Serializable$values.details=a}},message:{configurable:!0,enumerable:!0,get:function(){return CQ(this,
"message")?to(this,"message"):""},set:function(a){this.Serializable$values.message=a}}});var VQ=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(VQ,wo);VQ.prototype.getPartialClassMetadata=function(){return{keys:["endTime","startTime"]}};
li.Object.defineProperties(VQ.prototype,{endTime:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"endTime")?to(this,"endTime"):""},set:function(a){this.Serializable$values.endTime=a}},startTime:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"startTime")?to(this,"startTime"):""},set:function(a){this.Serializable$values.startTime=a}}});
var WQ=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(WQ,wo);WQ.prototype.getPartialClassMetadata=function(){return{keys:["computationDuration","overrideCurrentTime"]}};
li.Object.defineProperties(WQ.prototype,{computationDuration:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"computationDuration")?to(this,"computationDuration"):""},set:function(a){this.Serializable$values.computationDuration=a}},overrideCurrentTime:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"overrideCurrentTime")?to(this,"overrideCurrentTime"):""},set:function(a){this.Serializable$values.overrideCurrentTime=a}}});
var XQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.timeRange=null==a.timeRange?null:a.timeRange};U(XQ,wo);XQ.prototype.getPartialClassMetadata=function(){return{keys:["timeRange"],objects:{timeRange:VQ}}};li.Object.defineProperties(XQ.prototype,{timeRange:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"timeRange")?to(this,"timeRange"):this.timeRange=new VQ},set:function(a){this.Serializable$values.timeRange=a}}});
var YQ=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(YQ,wo);YQ.prototype.getPartialClassMetadata=function(){return{arrays:{availabilities:FPb},keys:["availabilities","nextPollTime","workingHours"],objects:{workingHours:ZQ}}};
li.Object.defineProperties(YQ.prototype,{availabilities:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"availabilities")?to(this,"availabilities"):this.availabilities=[]},set:function(a){this.Serializable$values.availabilities=a}},nextPollTime:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"nextPollTime")?to(this,"nextPollTime"):""},set:function(a){this.Serializable$values.nextPollTime=a}},workingHours:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"workingHours")?
to(this,"workingHours"):this.workingHours=new ZQ},set:function(a){this.Serializable$values.workingHours=a}}});var KQ=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(KQ,wo);KQ.prototype.getPartialClassMetadata=function(){return{keys:["forceEnableUserStatusCache","timeSettings"],objects:{timeSettings:WQ}}};
li.Object.defineProperties(KQ.prototype,{forceEnableUserStatusCache:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"forceEnableUserStatusCache")?to(this,"forceEnableUserStatusCache"):!1},set:function(a){this.Serializable$values.forceEnableUserStatusCache=a}},timeSettings:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"timeSettings")?to(this,"timeSettings"):this.timeSettings=new WQ},set:function(a){this.Serializable$values.timeSettings=a}}});
var CPb=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(CPb,wo);CPb.prototype.getPartialClassMetadata=function(){return{keys:["status","userAvailabilities","userId"],objects:{status:UQ,userAvailabilities:YQ,userId:JQ}}};
li.Object.defineProperties(CPb.prototype,{hasStatus:{configurable:!0,enumerable:!0,get:function(){return null!==to(this,"status")}},status:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"status")?to(this,"status"):this.status=new UQ},set:function(a){this.Serializable$values.status=a}},hasUserAvailabilities:{configurable:!0,enumerable:!0,get:function(){return null!==to(this,"userAvailabilities")}},userAvailabilities:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"userAvailabilities")?
to(this,"userAvailabilities"):this.userAvailabilities=new YQ},set:function(a){this.Serializable$values.userAvailabilities=a}},hasUserId:{configurable:!0,enumerable:!0,get:function(){return null!==to(this,"userId")}},userId:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"userId")?to(this,"userId"):this.userId=new JQ},set:function(a){this.Serializable$values.userId=a}}});
var FPb=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(FPb,wo);FPb.prototype.getPartialClassMetadata=function(){return{keys:["contexts","status","timeRange"],objects:{contexts:$Q,status:aR,timeRange:VQ}}};
li.Object.defineProperties(FPb.prototype,{contexts:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"contexts")?to(this,"contexts"):this.contexts=new $Q},set:function(a){this.Serializable$values.contexts=a}},hasStatus:{configurable:!0,enumerable:!0,get:function(){return null!==to(this,"status")}},status:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"status")?to(this,"status"):this.status=new aR},set:function(a){this.Serializable$values.status=a}},timeRange:{configurable:!0,
enumerable:!0,get:function(){return CQ(this,"timeRange")?to(this,"timeRange"):this.timeRange=new VQ},set:function(a){this.Serializable$values.timeRange=a}}});var $Q=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($Q,wo);
$Q.prototype.getPartialClassMetadata=function(){return{keys:["localTime","upcomingOoo","workingElsewhere"],objects:{localTime:QQ,upcomingOoo:XQ,workingElsewhere:bR}}};
li.Object.defineProperties($Q.prototype,{localTime:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"localTime")?to(this,"localTime"):this.localTime=new QQ},set:function(a){this.Serializable$values.localTime=a}},upcomingOoo:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"upcomingOoo")?to(this,"upcomingOoo"):this.upcomingOoo=new XQ},set:function(a){this.Serializable$values.upcomingOoo=a}},workingElsewhere:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"workingElsewhere")?
to(this,"workingElsewhere"):this.workingElsewhere=new bR},set:function(a){this.Serializable$values.workingElsewhere=a}}});var JQ=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(JQ,wo);JQ.prototype.getPartialClassMetadata=function(){return{keys:["email","obfuscatedGaiaId"]}};
li.Object.defineProperties(JQ.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"email")?to(this,"email"):""},set:function(a){this.Serializable$values.email=a}},obfuscatedGaiaId:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"obfuscatedGaiaId")?to(this,"obfuscatedGaiaId"):""},set:function(a){this.Serializable$values.obfuscatedGaiaId=a}}});
var cR=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(cR,wo);cR.prototype.getPartialClassMetadata=function(){return{keys:["customLocation","homeLocation","officeLocation"],objects:{customLocation:MQ,homeLocation:DPb,officeLocation:RQ}}};
li.Object.defineProperties(cR.prototype,{customLocation:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"customLocation")?to(this,"customLocation"):this.customLocation=new MQ},set:function(a){this.Serializable$values.customLocation=a}},homeLocation:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"homeLocation")?to(this,"homeLocation"):this.homeLocation=new DPb},set:function(a){this.Serializable$values.homeLocation=a}},officeLocation:{configurable:!0,enumerable:!0,get:function(){return CQ(this,
"officeLocation")?to(this,"officeLocation"):this.officeLocation=new RQ},set:function(a){this.Serializable$values.officeLocation=a}}});
var aR=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(aR,wo);aR.prototype.getPartialClassMetadata=function(){return{keys:"calendarBusy doNotDisturb inMeeting inactive outOfOffice outsideWorkingHours".split(" "),objects:{calendarBusy:LQ,doNotDisturb:OQ,inMeeting:PQ,inactive:EPb,outOfOffice:SQ,outsideWorkingHours:TQ}}};
li.Object.defineProperties(aR.prototype,{calendarBusy:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"calendarBusy")?to(this,"calendarBusy"):this.calendarBusy=new LQ},set:function(a){this.Serializable$values.calendarBusy=a}},doNotDisturb:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"doNotDisturb")?to(this,"doNotDisturb"):this.doNotDisturb=new OQ},set:function(a){this.Serializable$values.doNotDisturb=a}},inMeeting:{configurable:!0,enumerable:!0,get:function(){return CQ(this,
"inMeeting")?to(this,"inMeeting"):this.inMeeting=new PQ},set:function(a){this.Serializable$values.inMeeting=a}},inactive:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"inactive")?to(this,"inactive"):this.inactive=new EPb},set:function(a){this.Serializable$values.inactive=a}},hasOutOfOffice:{configurable:!0,enumerable:!0,get:function(){return null!==to(this,"outOfOffice")}},outOfOffice:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"outOfOffice")?to(this,"outOfOffice"):
this.outOfOffice=new SQ},set:function(a){this.Serializable$values.outOfOffice=a}},outsideWorkingHours:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"outsideWorkingHours")?to(this,"outsideWorkingHours"):this.outsideWorkingHours=new TQ},set:function(a){this.Serializable$values.outsideWorkingHours=a}}});var bR=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.location=null==a.location?null:a.location};U(bR,wo);
bR.prototype.getPartialClassMetadata=function(){return{keys:["location"],objects:{location:cR}}};li.Object.defineProperties(bR.prototype,{location:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"location")?to(this,"location"):this.location=new cR},set:function(a){this.Serializable$values.location=a}}});var ZQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.availableTime=null==a.availableTime?null:a.availableTime};U(ZQ,wo);
ZQ.prototype.getPartialClassMetadata=function(){return{arrays:{availableTime:zPb},keys:["availableTime"]}};li.Object.defineProperties(ZQ.prototype,{availableTime:{configurable:!0,enumerable:!0,get:function(){return CQ(this,"availableTime")?to(this,"availableTime"):this.availableTime=[]},set:function(a){this.Serializable$values.availableTime=a}}});var GPb=new ld("API_VERSION"),HPb=new ld("REQUEST_SERVICE"),dR=function(){};dR.\u0275fac=function(a){return new (a||dR)};dR.\u0275mod=uc({type:dR});
dR.\u0275inj=gc({});var IPb={$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"},eR=function(a,b,c){this.gapiVersion=a;this.gapiVersion=null==a?"v1alpha":a;this.$apiClient=new pPb(b,c)};eR.\u0275fac=function(a){return new (a||eR)(t(GPb,8),t(HPb),t(nPb,8))};eR.\u0275prov=dc({token:eR,factory:eR.\u0275fac});var fR=function(){};
fR.\u0275fac=function(a){return new (a||fR)};fR.\u0275prov=dc({token:fR,factory:function(a){return eR.\u0275fac(a)},providedIn:dR});
var gR=function(a){var b=this;this.apiStub=a;this.result=new S.Subject;this.destroyed=new S.ReplaySubject(1);this.trigger=new S.Subject;this.batchedTrigger=this.trigger.pipe(Zga(this.trigger.pipe(Lf(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(cg(this.destroyed)).subscribe(function(c){c=[].concat(u(new Set(c)));JPb(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)})},JPb=function(a,b){var c,d;bf(function(e){for(var f=new APb,h=[],k=r(b),q=k.next();!q.done;q=k.next()){q=q.value;var v=new JQ;v.email=q;h.push(v)}f.userIds=h;c=f;f=a.apiStub;var y=void 0===y?{}:y;var E=void 0===E?{}:E;d=rPb(f.$apiClient,
{body:c,httpMethod:"POST",methodId:"waldo_service_api_from_stubby_sandbox.useravailabilities.batchget",path:"/"+f.gapiVersion+"/useravailabilities:batchget",queryParams:Pza(y,IPb,E),responseCtor:BPb});d.pipe(cg(a.destroyed)).subscribe(a.responseHandler);df(e)})},KPb=function(a,b){if(!b)return(0,S.of)("");a.trigger.next(b);return a.result.pipe(rf(function(c){return c.emailAddress===b})).pipe(R(function(c){return c.availability}))};gR.prototype.ngOnDestroy=function(){this.destroyed.next()};
gR.\u0275fac=function(a){return new (a||gR)(t(fR))};gR.\u0275prov=dc({token:gR,factory:gR.\u0275fac});
var LPb=function(a){Z.call(this,a)};U(LPb,Z);g=LPb.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 To(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(To(this,33)),crop:W(this,2,!1),circleCrop:n(To(this,51)),imageCrop:n(To(this,32)),smartCrop:W(this,19,!1),smartCropNoClip:W(this,52,!1),smartCropUseFace:W(this,67,!1),detectFaces:n(To(this,80)),centerCrop:W(this,20,!1),pad:n(To(this,60)),download:W(this,3,!1),html:W(this,4,!1),objectId:n(p(this,7)),looseFaceCrop:n(To(this,65)),faceCropVersion:n(p(this,94)),frameId:n(p(this,29)),imageUrlDomain:ej(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(To(this,17)),unfiltered:n(To(this,18)),unfilteredWithTransforms:n(To(this,45)),includeMetadata:n(To(this,22)),includePublicMetadata:n(To(this,54)),stripGoogleData:n(To(this,82)),preserveGoogleData:n(To(this,83)),stripMetadata:n(To(this,93)),stripGeoinfo:n(To(this,95)),
esPortraitApprovedOnly:n(To(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(To(this,30)),verticalFlip:n(To(this,31)),overlay:n(To(this,27)),queryString:n(p(this,28)),requestJpeg:n(To(this,57)),requestPng:n(To(this,58)),requestGif:n(To(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(To(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(To(this,40)),focusBlur:n(p(this,42)),focalPlane:n(p(this,43)),qualityLevel:n(p(this,44)),qualityBucket:n(p(this,62)),noUpscale:n(To(this,46)),preserveAspectRatio:n(To(this,61)),forceTransformation:n(To(this,50)),noDefaultImage:n(To(this,53)),noCorrectExifOrientation:n(To(this,
55)),selectFrameNumber:n(p(this,56)),videoFormat:n(p(this,63)),videoMultiFormat:n(p(this,81)),videoManifest:n(To(this,98)),downloadVideo:n(To(this,90)),videoBegin:n(p(this,68)),videoLength:n(p(this,69)),matchVersion:n(To(this,66)),imageDigest:n(To(this,70)),internalClient:n(p(this,71)),monogram:n(To(this,73)),forceMonogram:n(To(this,84)),monogramDogfood:n(To(this,91)),ignoreLowResProfilePhoto:n(To(this,96)),autoloop:n(To(this,74)),imageVersion:n(p(this,75)),pitchDegrees:n(uu(this,76)),yawDegrees:n(uu(this,
77)),rollDegrees:n(uu(this,78)),fovDegrees:n(uu(this,79)),badge:n(p(this,85)),colorProfile:n(p(this,92)),deepCrop:n(p(this,99)),requestVideoFast:n(To(this,100))}:void 0;return a};
var hR=function(a){this.value_=void 0;this.childNodes_={};a&&this.setAll(a)};hR.prototype.set=function(a,b){MPb(this,a,b,!1)};hR.prototype.add=function(a,b){MPb(this,a,b,!0)};var MPb=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 hR);a=a.childNodes_[f]}if(d&&void 0!==a.value_)throw Error("Gd`"+b);a.value_=c};hR.prototype.setAll=function(a){var b=Dzb(a);a=QG(a);for(var c=0;c<b.length;c++)this.set(b[c],a[c])};
var NPb=function(a,b){for(var c=0;c<b.length;c++)if(a=a.childNodes_[b.charAt(c)],!a)return;return a};hR.prototype.get=function(a){return(a=NPb(this,a))?a.value_:void 0};hR.prototype.getValues=function(){var a=[];OPb(this,a);return a};var OPb=function(a,b){void 0!==a.value_&&b.push(a.value_);for(var c in a.childNodes_)OPb(a.childNodes_[c],b)};
hR.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]}PPb(c,a,b)}else PPb(this,"",b);return b};var PPb=function(a,b,c){void 0!==a.value_&&c.push(b);for(var d in a.childNodes_)PPb(a.childNodes_[d],b+d,c)};g=hR.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("Hd`"+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 hR(this)};g.getCount=function(){return Czb(this.getValues())};g.isEmpty=function(){return void 0===this.value_&&ah(this.childNodes_)};
var SPb=function(){if(!QPb){var a=QPb=new hR,b;for(b in RPb)a.add(b,RPb[b])}},QPb,iR=function(a,b){this.types=a;this.setters=b},RPb={a:new iR([3,0],[function(a,b){a.setEsPortraitApprovedOnly(b)},function(a,b){a.setSelectFrameNumber(b)}]),al:new iR([3],[function(a,b){a.setAutoloop(b)}]),b:new iR([3,0],[function(a,b){a.setBypassTakedown(b)},function(a,b){a.setBorderSize(b)}]),ba:new iR([0],[function(a,b){a.setBadge(b)}]),bc:new iR([0],[function(a,b){a.setBackgroundColor(b)}]),br:new iR([0],[function(a,
b){a.setBorderRadius(b)}]),c:new iR([3,0],[function(a,b){a.setCrop(b)},function(a,b){a.setBorderColor(b)}]),cc:new iR([3],[function(a,b){a.setCircleCrop(b)}]),ci:new iR([3],[function(a,b){a.setImageCrop(b)}]),cp:new iR([0],[function(a,b){a.setColorProfile(b)}]),cv:new iR([0],[function(a,b){a.setFaceCropVersion(b)}]),d:new iR([3],[function(a,b){a.setDownload(b)}]),dc:new iR([5],[function(a,b){a.setDeepCrop(b)}]),df:new iR([3],[function(a,b){a.setDetectFaces(b)}]),dv:new iR([3],[function(a,b){a.setDownloadVideo(b)}]),
e:new iR([0],[function(a,b){a.setExpirationTime(b)}]),f:new iR([4],[function(a,b){a.setImageFilter(b)}]),fg:new iR([3],[function(a,b){a.setForceTileGeneration(b)}]),fh:new iR([3],[function(a,b){a.setHorizontalFlip(b)}]),fm:new iR([3],[function(a,b){a.setForceMonogram(b)}]),fo:new iR([2],[function(a,b){a.setFovDegrees(b)}]),ft:new iR([3],[function(a,b){a.setForceTransformation(b)}]),fv:new iR([3],[function(a,b){a.setVerticalFlip(b)}]),g:new iR([3],[function(a,b){a.setTileGeneration(b)}]),gd:new iR([3],
[function(a,b){a.setPreserveGoogleData(b)}]),h:new iR([3,0],[function(a,b){a.setHtml(b)},function(a,b){a.setHeight(b)}]),i:new iR([3],[function(a,b){a.setIncludeMetadata(b)}]),ic:new iR([0],[function(a,b){a.setInternalClient(b)}]),id:new iR([3],[function(a,b){a.setImageDigest(b)}]),il:new iR([3],[function(a,b){a.setIgnoreLowResProfilePhoto(b)}]),ip:new iR([3],[function(a,b){a.setIncludePublicMetadata(b)}]),iv:new iR([0],[function(a,b){a.setImageVersion(b)}]),j:new iR([1],[function(a,b){a.setFrameId(b)}]),
k:new iR([3,0],[function(a,b){a.setKillAnimation(b)},function(a,b){a.setFocusBlur(b)}]),l:new iR([0],[function(a,b){a.setQualityLevel(b)}]),lf:new iR([3],[function(a,b){a.setLooseFaceCrop(b)}]),lo:new iR([3],[function(a,b){a.setLossy(b)}]),m:new iR([0],[function(a,b){a.setVideoFormat(b)}]),md:new iR([3],[function(a,b){a.setMonogramDogfood(b)}]),mm:new iR([4],[function(a,b){a.setVideoMultiFormat(b)}]),mo:new iR([3],[function(a,b){a.setMonogram(b)}]),mv:new iR([3],[function(a,b){a.setMatchVersion(b)}]),
n:new iR([3],[function(a,b){a.setCenterCrop(b)}]),nc:new iR([3],[function(a,b){a.setNoCorrectExifOrientation(b)}]),nd:new iR([3],[function(a,b){a.setNoDefaultImage(b)}]),ng:new iR([3],[function(a,b){a.setStripGeoinfo(b)}]),no:new iR([3],[function(a,b){a.setNoOverlay(b)}]),ns:new iR([3],[function(a,b){a.setNoSilhouette(b)}]),nt0:new iR([4],[function(a,b){a.setVersionedToken(b)}]),nu:new iR([3],[function(a,b){a.setNoUpscale(b)}]),nw:new iR([3],[function(a,b){a.setNoWebp(b)}]),o:new iR([1,3],[function(a,
b){a.setObjectId(b)},function(a,b){a.setOverlay(b)}]),p:new iR([3,0],[function(a,b){a.setSmartCrop(b)},function(a,b){a.setFocalPlane(b)}]),pa:new iR([3],[function(a,b){a.setPreserveAspectRatio(b)}]),pc:new iR([0],[function(a,b){a.setPadColor(b)}]),pd:new iR([3],[function(a,b){a.setPad(b)}]),pf:new iR([3],[function(a,b){a.setSmartCropUseFace(b)}]),pg:new iR([3],[function(a,b){a.setTilePyramidAsProto(b)}]),pi:new iR([2],[function(a,b){a.setPitchDegrees(b)}]),pp:new iR([3],[function(a,b){a.setSmartCropNoClip(b)}]),
q:new iR([4],[function(a,b){a.setQueryString(b)}]),r:new iR([3,0],[function(a,b){a.setSkipRefererCheck(b)},function(a,b){a.setRotate(b)}]),rf:new iR([3],[function(a,b){a.setRequestVideoFast(b)}]),rg:new iR([3],[function(a,b){a.setRequestGif(b)}]),rh:new iR([3],[function(a,b){a.setRequestH264(b)}]),rj:new iR([3],[function(a,b){a.setRequestJpeg(b)}]),ro:new iR([2],[function(a,b){a.setRollDegrees(b)}]),rp:new iR([3],[function(a,b){a.setRequestPng(b)}]),rw:new iR([3],[function(a,b){a.setRequestWebp(b)}]),
rwa:new iR([3],[function(a,b){a.setRequestAnimatedWebp(b)}]),rwu:new iR([3],[function(a,b){a.setRequestWebpUnlessMaybeTransparent(b)}]),s:new iR([3,0],[function(a,b){a.setStretch(b)},function(a,b){a.setSize(b)}]),sc:new iR([0],[function(a,b){a.setSubstitutionColor(b)}]),sg:new iR([3],[function(a,b){a.setStripGoogleData(b)}]),sm:new iR([3],[function(a,b){a.setStripMetadata(b)}]),t:new iR([4],[function(a,b){a.setToken(b)}]),u:new iR([3],[function(a,b){a.setUnfiltered(b)}]),ut:new iR([3],[function(a,
b){a.setUnfilteredWithTransforms(b)}]),v:new iR([0],[function(a,b){a.setQualityBucket(b)}]),vb:new iR([0],[function(a,b){a.setVideoBegin(b)}]),vl:new iR([0],[function(a,b){a.setVideoLength(b)}]),vm:new iR([3],[function(a,b){a.setVideoManifest(b)}]),w:new iR([0],[function(a,b){a.setWidth(b)}]),x:new iR([0],[function(a,b){a.setTileX(b)}]),y:new iR([0],[function(a,b){a.setTileY(b)}]),ya:new iR([2],[function(a,b){a.setYawDegrees(b)}]),z:new iR([0],[function(a,b){a.setTileZoom(b)}])};
SPb.prototype.parse=function(a){var b=new LPb,c=new LPb;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 v=h.charAt(0);v!=v.toLowerCase()&&(k=!0,q=h.charAt(0).toLowerCase()+h.substring(1));var y=QPb;for(v=1;v<=q.length;++v){var E=y,I=q.substring(0,v);if(0==I.length?E.isEmpty():!NPb(E,I))break}q=1==v?null:(q=y.get(q.substring(0,v-1)))?{option:h.substring(0,v-1),value:h.substring(v-1),signed:k,attributes:q}:null;if(q){h=
[];k=[];v=!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=TPb(this,E)(q.option,N,b,c,L);if(null===N){v=!0;e=I;break}else h.push(E),k.push(N)}if(!v)for(q=0;q<k.length;q++)y=h[q],N=k[q],UPb(this,y)(f,N);d=d&&v}else d=!1}}a=d}return new VPb(b,c,a)};
var WPb=function(a,b,c,d,e){e(c,b);a=a.charAt(0);e(d,a==a.toUpperCase())};g=SPb.prototype;g.parseAndSetIntOption_=function(a,b,c,d,e){if(""==b)return 0;b=Ki(b);if(isNaN(b))return 1;WPb(a,b,c,d,e);return null};g.logIntParseError_=function(){};g.parseAndSetFloatOption_=function(a,b,c,d,e){if(""==b)return 0;b=AC(b);if(isNaN(b))return 1;WPb(a,b,c,d,e);return null};g.logFloatParseError_=function(){};g.parseAndSetBoolOption_=function(a,b,c,d,e){if(""!=b)return 2;WPb(a,!0,c,d,e);return null};
g.logBoolParseError_=function(){};g.parseAndSetStringOption_=function(a,b,c,d,e){if(""==b)return 0;WPb(a,b,c,d,e);return null};g.logStringParseError_=function(){};
var TPb=function(a,b){switch(b){case 0:return $t(a.parseAndSetIntOption_,a);case 2:return $t(a.parseAndSetFloatOption_,a);case 3:return $t(a.parseAndSetBoolOption_,a);case 4:case 1:return $t(a.parseAndSetStringOption_,a);default:return function(){}}},UPb=function(a,b){switch(b){case 0:return $t(a.logIntParseError_,a);case 2:return $t(a.logFloatParseError_,a);case 3:return $t(a.logBoolParseError_,a);case 4:case 1:return $t(a.logStringParseError_,a);default:return function(){}}},VPb=function(a,b,c){this.valueProto_=
a;this.signatureFlagProto_=b;this.valid_=c};VPb.prototype.isValid=function(){return this.valid_};
var XPb=function(a,b){null!=a&&this.append.apply(this,arguments)};g=XPb.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 jR=function(a){this.parser_=null;this.components_=[];this.parsedOptions_=null;YPb(this,a)};jR.prototype.getParsedOptions=function(){return this.parsedOptions_};var ZPb=function(a){null==a.parser_&&(a.parser_=new SPb);return a.parser_},YPb=function(a,b){a.parsedOptions_=b?"string"===typeof b?ZPb(a).parse(b):b:ZPb(a).parse("")},kR=function(a,b){return a==b?!1:!0};g=jR.prototype;
g.setEsPortraitApprovedOnly=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(a,To(c,21),To(b.signatureFlagProto_,21))&&c.setEsPortraitApprovedOnly(a);return this};g.setSelectFrameNumber=function(a){var b=this.parsedOptions_,c=b.valueProto_;kR(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_;kR(a,To(c,74),To(b.signatureFlagProto_,74))&&c.setAutoloop(a)};
g.setBypassTakedown=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(a,W(c,23,!1),W(b.signatureFlagProto_,23,!1))&&c.setBypassTakedown(a)};g.setBorderSize=function(a){var b=this.parsedOptions_,c=b.valueProto_;kR(a,p(c,38),p(b.signatureFlagProto_,38))&&c.setBorderSize(a)};g.setBadge=function(a){var b=this.parsedOptions_,c=b.valueProto_;kR(a,p(c,85),p(b.signatureFlagProto_,85))&&c.setBadge(a)};
g.setBackgroundColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;kR(a,c.getBackgroundColor(),b.signatureFlagProto_.getBackgroundColor())&&c.setBackgroundColor(a)};g.setBorderRadius=function(a){var b=this.parsedOptions_,c=b.valueProto_;kR(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_;kR(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_;kR(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_;kR(a,To(c,51),To(b.signatureFlagProto_,51))&&c.setCircleCrop(a);return this};g.setImageCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(a,To(c,32),To(b.signatureFlagProto_,32))&&c.setImageCrop(a);return this};
g.setColorProfile=function(a){var b=this.parsedOptions_,c=b.valueProto_;kR(a,p(c,92),p(b.signatureFlagProto_,92))&&c.setColorProfile(a)};g.setFaceCropVersion=function(a){var b=this.parsedOptions_,c=b.valueProto_;kR(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_;kR(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_;kR(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_;kR(a,To(c,80),To(b.signatureFlagProto_,80))&&c.setDetectFaces(a)};g.setDownloadVideo=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(a,To(c,90),To(b.signatureFlagProto_,90))&&c.setDownloadVideo(a)};
g.setExpirationTime=function(a){var b=this.parsedOptions_,c=b.valueProto_;kR(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_;kR(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_;kR(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_;kR(a,To(c,30),To(b.signatureFlagProto_,30))&&c.setHorizontalFlip(a)};g.setForceMonogram=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(a,To(c,84),To(b.signatureFlagProto_,84))&&c.setForceMonogram(a);return this};g.setFovDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;kR(a,uu(c,79),uu(b.signatureFlagProto_,79))&&c.setFovDegrees(a)};
g.setForceTransformation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(a,To(c,50),To(b.signatureFlagProto_,50))&&c.setForceTransformation(a)};g.setVerticalFlip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(a,To(c,31),To(b.signatureFlagProto_,31))&&c.setVerticalFlip(a)};g.setTileGeneration=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(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_;kR(a,To(c,83),To(b.signatureFlagProto_,83))&&c.setPreserveGoogleData(a)};g.setHtml=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(a,W(c,4,!1),W(b.signatureFlagProto_,4,!1))&&c.setHtml(a)};g.setHeight=function(a){var b=this.parsedOptions_,c=b.valueProto_;kR(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_;kR(a,To(c,22),To(b.signatureFlagProto_,22))&&c.setIncludeMetadata(a)};g.setInternalClient=function(a){var b=this.parsedOptions_,c=b.valueProto_;kR(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_;kR(a,To(c,70),To(b.signatureFlagProto_,70))&&c.setImageDigest(a)};
g.setIgnoreLowResProfilePhoto=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(a,To(c,96),To(b.signatureFlagProto_,96))&&c.setIgnoreLowResProfilePhoto(a)};g.setIncludePublicMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(a,To(c,54),To(b.signatureFlagProto_,54))&&c.setIncludePublicMetadata(a)};g.setImageVersion=function(a){var b=this.parsedOptions_,c=b.valueProto_;kR(a,c.getImageVersion(),b.signatureFlagProto_.getImageVersion())&&c.setImageVersion(a)};
g.setFrameId=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(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_;kR(a,To(c,17),To(b.signatureFlagProto_,17))&&c.setKillAnimation(a);return this};g.setFocusBlur=function(a){var b=this.parsedOptions_,c=b.valueProto_;kR(a,p(c,42),p(b.signatureFlagProto_,42))&&c.setFocusBlur(a)};
g.setQualityLevel=function(a){var b=this.parsedOptions_,c=b.valueProto_;kR(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_;kR(a,To(c,65),To(b.signatureFlagProto_,65))&&c.setLooseFaceCrop(a);return this};g.setLossy=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(a,To(c,97),To(b.signatureFlagProto_,97))&&c.setLossy(a)};
g.setVideoFormat=function(a){var b=this.parsedOptions_,c=b.valueProto_;kR(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_;kR(a,To(c,91),To(b.signatureFlagProto_,91))&&c.setMonogramDogfood(a)};g.setVideoMultiFormat=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(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_;kR(a,To(c,73),To(b.signatureFlagProto_,73))&&c.setMonogram(a)};g.setMatchVersion=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(a,To(c,66),To(b.signatureFlagProto_,66))&&c.setMatchVersion(a)};g.setCenterCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(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_;kR(a,To(c,55),To(b.signatureFlagProto_,55))&&c.setNoCorrectExifOrientation(a)};g.setNoDefaultImage=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(a,To(c,53),To(b.signatureFlagProto_,53))&&c.setNoDefaultImage(a)};g.setStripGeoinfo=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(a,To(c,95),To(b.signatureFlagProto_,95))&&c.setStripGeoinfo(a)};
g.setNoOverlay=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(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_;kR(a,To(c,40),To(b.signatureFlagProto_,40))&&c.setNoSilhouette(a)};g.setVersionedToken=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(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_;kR(a,To(c,46),To(b.signatureFlagProto_,46))&&c.setNoUpscale(a)};g.setNoWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(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_;kR(a,c.getObjectId(),b.signatureFlagProto_.getObjectId())&&c.setObjectId(a)};
g.setOverlay=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(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_;kR(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_;kR(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_;kR(a,To(c,61),To(b.signatureFlagProto_,61))&&c.setPreserveAspectRatio(a)};g.setPadColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;kR(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_;kR(a,To(c,60),To(b.signatureFlagProto_,60))&&c.setPad(a);return this};
g.setSmartCropUseFace=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(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_;kR(a,W(c,72,!1),W(b.signatureFlagProto_,72,!1))&&c.setTilePyramidAsProto(a)};g.setPitchDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;kR(a,uu(c,76),uu(b.signatureFlagProto_,76))&&c.setPitchDegrees(a)};
g.setSmartCropNoClip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(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_;kR(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_;kR(a,W(c,6,!1),W(b.signatureFlagProto_,6,!1))&&c.setSkipRefererCheck(a)};
g.setRotate=function(a){var b=this.parsedOptions_,c=b.valueProto_;kR(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_;kR(a,To(c,100),To(b.signatureFlagProto_,100))&&c.setRequestVideoFast(a)};g.setRequestGif=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(a,To(c,59),To(b.signatureFlagProto_,59))&&c.setRequestGif(a)};
g.setRequestH264=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(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_;kR(a,To(c,57),To(b.signatureFlagProto_,57))&&c.setRequestJpeg(a);return this};g.setRollDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;kR(a,uu(c,78),uu(b.signatureFlagProto_,78))&&c.setRollDegrees(a)};
g.setRequestPng=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(a,To(c,58),To(b.signatureFlagProto_,58))&&c.setRequestPng(a);return this};g.setRequestWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(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_;kR(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_;kR(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_;kR(a,To(c,33),To(b.signatureFlagProto_,33))&&c.setStretch(a);return this};g.setSize=function(a){var b=this.parsedOptions_,c=b.valueProto_;kR(a,c.getSize(),b.signatureFlagProto_.getSize())&&c.setSize(a);return this};
g.setSubstitutionColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;kR(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_;kR(a,To(c,82),To(b.signatureFlagProto_,82))&&c.setStripGoogleData(a)};g.setStripMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(a,To(c,93),To(b.signatureFlagProto_,93))&&c.setStripMetadata(a)};
g.setToken=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(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_;kR(a,To(c,18),To(b.signatureFlagProto_,18))&&c.setUnfiltered(a)};g.setUnfilteredWithTransforms=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;kR(a,To(c,45),To(b.signatureFlagProto_,45))&&c.setUnfilteredWithTransforms(a)};
g.setQualityBucket=function(a){var b=this.parsedOptions_,c=b.valueProto_;kR(a,p(c,62),p(b.signatureFlagProto_,62))&&c.setQualityBucket(a);return this};g.setVideoBegin=function(a){var b=this.parsedOptions_,c=b.valueProto_;kR(a,p(c,68),p(b.signatureFlagProto_,68))&&c.setVideoBegin(a)};g.setVideoLength=function(a){var b=this.parsedOptions_,c=b.valueProto_;kR(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_;kR(a,To(c,98),To(b.signatureFlagProto_,98))&&c.setVideoManifest(a)};g.setWidth=function(a){var b=this.parsedOptions_,c=b.valueProto_;kR(a,c.getWidth(),b.signatureFlagProto_.getWidth())&&c.setWidth(a);return this};g.setTileX=function(a){var b=this.parsedOptions_,c=b.valueProto_;kR(a,p(c,9),p(b.signatureFlagProto_,9))&&c.setTileX(a)};
g.setTileY=function(a){var b=this.parsedOptions_,c=b.valueProto_;kR(a,p(c,10),p(b.signatureFlagProto_,10))&&c.setTileY(a)};g.setYawDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;kR(a,uu(c,77),uu(b.signatureFlagProto_,77))&&c.setYawDegrees(a)};g.setTileZoom=function(a){var b=this.parsedOptions_,c=b.valueProto_;kR(a,p(c,11),p(b.signatureFlagProto_,11))&&c.setTileZoom(a)};g.setOptions=function(){YPb(this)};
g.build=function(){this.components_.length=0;var a=this.parsedOptions_,b=a.valueProto_;a=a.signatureFlagProto_;lR(this,"s",b.getSize(),a.getSize());lR(this,"w",b.getWidth(),a.getWidth());mR(this,"c",W(b,2,!1),W(a,2,!1));mR(this,"d",W(b,3,!1),W(a,3,!1));lR(this,"h",b.getHeight(),a.getHeight());mR(this,"s",To(b,33),To(a,33));mR(this,"h",W(b,4,!1),W(a,4,!1));mR(this,"p",W(b,19,!1),W(a,19,!1));mR(this,"pp",W(b,52,!1),W(a,52,!1));mR(this,"pf",W(b,67,!1),W(a,67,!1));mR(this,"n",W(b,20,!1),W(a,20,!1));lR(this,
"r",b.getRotate(),a.getRotate());mR(this,"r",W(b,6,!1),W(a,6,!1));mR(this,"o",b.getOverlay(),a.getOverlay());var c=b.getObjectId();nR(this,"o",c,a.getObjectId());c=p(b,29);nR(this,"j",c,p(a,29));lR(this,"x",p(b,9),p(a,9));lR(this,"y",p(b,10),p(a,10));lR(this,"z",p(b,11),p(a,11));mR(this,"g",W(b,14,!1),W(a,14,!1));lR(this,"e",p(b,15),p(a,15));nR(this,"f",p(b,16),p(a,16));mR(this,"k",To(b,17),To(a,17));mR(this,"u",To(b,18),!0);mR(this,"ut",To(b,45),!0);mR(this,"i",To(b,22),!0);mR(this,"a",To(b,21),
To(a,21));mR(this,"b",W(b,23,!1),W(a,23,!1));lR(this,"b",p(b,38),p(a,38));lR(this,"c",p(b,39),p(a,39),16,8);nR(this,"q",p(b,28),p(a,28));mR(this,"fh",To(b,30),To(a,30));mR(this,"fv",To(b,31),To(a,31));mR(this,"fg",W(b,34,!1),W(a,34,!1));mR(this,"ci",To(b,32),To(a,32));nR(this,"t",b.getToken(),a.getToken());nR(this,"nt0",p(b,36),p(a,36));mR(this,"rw",W(b,35,!1),W(a,35,!1));mR(this,"rwu",W(b,41,!1),W(a,41,!1));mR(this,"rwa",W(b,64,!1),W(a,64,!1));mR(this,"nw",W(b,48,!1),W(a,48,!1));mR(this,"rh",W(b,
49,!1),W(a,49,!1));mR(this,"no",W(b,37,!1),W(a,37,!1));mR(this,"ns",To(b,40),To(a,40));lR(this,"k",p(b,42),p(a,42));lR(this,"p",p(b,43),p(a,43));lR(this,"l",p(b,44),p(a,44));lR(this,"v",p(b,62),p(a,62));mR(this,"nu",To(b,46),To(a,46));mR(this,"ft",To(b,50),To(a,50));mR(this,"cc",To(b,51),To(a,51));mR(this,"nd",To(b,53),To(a,53));mR(this,"ip",To(b,54),To(a,54));mR(this,"nc",To(b,55),To(a,55));lR(this,"a",p(b,56),p(a,56));mR(this,"rj",To(b,57),To(a,57));mR(this,"rp",To(b,58),To(a,58));mR(this,"rg",
To(b,59),To(a,59));mR(this,"pd",To(b,60),To(a,60));mR(this,"pa",To(b,61),To(a,61));lR(this,"m",p(b,63),p(a,63));lR(this,"vb",p(b,68),p(a,68));lR(this,"vl",p(b,69),p(a,69));mR(this,"lf",To(b,65),To(a,65));mR(this,"mv",To(b,66),To(a,66));mR(this,"id",To(b,70),To(a,70));lR(this,"ic",p(b,71),!0);mR(this,"pg",W(b,72,!1),W(a,72,!1));mR(this,"mo",To(b,73),To(a,73));mR(this,"al",To(b,74),To(a,74));lR(this,"iv",b.getImageVersion(),a.getImageVersion());lR(this,"pi",uu(b,76),uu(a,76));lR(this,"ya",uu(b,77),
uu(a,77));lR(this,"ro",uu(b,78),uu(a,78));lR(this,"fo",uu(b,79),uu(a,79));mR(this,"df",To(b,80),To(a,80));nR(this,"mm",p(b,81),p(a,81));mR(this,"sg",To(b,82),To(a,82));mR(this,"gd",To(b,83),To(a,83));mR(this,"fm",To(b,84),To(a,84));lR(this,"ba",p(b,85),p(a,85));lR(this,"br",p(b,86),p(a,86));lR(this,"bc",b.getBackgroundColor(),a.getBackgroundColor(),16,8);lR(this,"pc",p(b,88),p(a,88),16,8);lR(this,"sc",p(b,89),p(a,89),16,8);mR(this,"dv",To(b,90),To(a,90));mR(this,"md",To(b,91),To(a,91));lR(this,"cp",
p(b,92),p(a,92));mR(this,"sm",To(b,93),To(a,93));lR(this,"cv",p(b,94),p(a,94));mR(this,"ng",To(b,95),To(a,95));mR(this,"il",To(b,96),To(a,96));mR(this,"lo",To(b,97),To(a,97));mR(this,"vm",To(b,98),To(a,98));nR(this,"dc",p(b,99),p(a,99));mR(this,"rf",To(b,100),To(a,100));return this.components_.join("-")};
var lR=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 XPb;e.append(16==h?"0x":"");h=e.append;void 0==f?f="":(f-=c.length,f=0>=f?"":xC("0",f));h.call(e,f);e.append(c);$Pb(a,b,e.toString(),!!d)}},mR=function(a,b,c,d){c&&$Pb(a,b,"",!!d)},nR=function(a,b,c,d){c&&$Pb(a,b,c,!!d)},$Pb=function(a,b,c,d){d&&(b=b.charAt(0).toUpperCase()+b.substring(1));a.components_.push(b+c)};
var oR=function(a){jR.call(this,a)};du(oR,jR);g=oR.prototype;g.setCrop=function(a){a&&pR(this);return oR.superClass_.setCrop.call(this,a)};g.setHeight=function(a){a=null==a||0>a?void 0:a;null!=a&&this.setSize();return oR.superClass_.setHeight.call(this,a)};g.setStretch=function(a){a&&pR(this);return oR.superClass_.setStretch.call(this,a)};g.setQualityLevel=function(a){return oR.superClass_.setQualityLevel.call(this,a)};
g.setImageFilter=function(a){a&&(a=a.replace(";",":"));return oR.superClass_.setImageFilter.call(this,a)};g.setImageCrop=function(a){a&&pR(this);return oR.superClass_.setImageCrop.call(this,a)};g.setCircleCrop=function(a){a&&pR(this);return oR.superClass_.setCircleCrop.call(this,a)};g.setSize=function(a){Fa(a)&&(a=Math.max(a.width,a.height));a=null==a||0>a?void 0:a;null!=a&&(this.setWidth(),this.setHeight());return oR.superClass_.setSize.call(this,a)};
g.setSmartCrop=function(a){a&&pR(this);return oR.superClass_.setSmartCrop.call(this,a)};g.setSmartCropNoClip=function(a){a&&pR(this);return oR.superClass_.setSmartCropNoClip.call(this,a)};g.setSmartCropUseFace=function(a){a&&pR(this);return oR.superClass_.setSmartCropUseFace.call(this,a)};g.setCenterCrop=function(a){a&&pR(this);return oR.superClass_.setCenterCrop.call(this,a)};g.setPad=function(a){a&&pR(this);return oR.superClass_.setPad.call(this,a)};
g.setWidth=function(a){a=null==a||0>a?void 0:a;null!=a&&this.setSize();return oR.superClass_.setWidth.call(this,a)};var pR=function(a){a.setCenterCrop();a.setCircleCrop();a.setCrop();a.setImageCrop();a.setPad();a.setSmartCrop();a.setSmartCropNoClip();a.setSmartCropUseFace()};
oR.prototype.build=function(){var a=this.getParsedOptions().valueProto_;To(a,18)||To(a,45)?a.getSize()||this.setSize(0):(a=this.getParsedOptions().valueProto_,a.getSize()||a.getWidth()||a.getHeight()||(this.setSize(),this.setHeight(),this.setWidth(),pR(this)));return oR.superClass_.build.call(this)};
var aQb=/^[^\/]*\/\//,qR=function(a,b){b=void 0===b?!1:b;this.original_=a;this.originalPrefix_="";(a=this.original_.match(aQb))&&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_=YG(a,!0);this.isFreeformUrl_=b;this.valid_=!0;this.obfuscated_=!1},bQb=function(a,b){a.pathPrefix_=a.pathPrefix_?a.pathPrefix_+("/"+b):b},rR=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]&&(bQb(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)bQb(a,
a.components_[0]);else if("image"==a.components_[0])bQb(a,a.components_[0]);else if(7==b||3==b)return a.valid_=!1,a.components_;if(3>=b){a.obfuscated_=!0;3==b&&(bQb(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_};qR.prototype.isValid=function(){rR(this);return this.valid_};var cQb=function(a){rR(a);return a.obfuscated_},dQb=function(a){rR(a);return a.isFreeformUrl_};
qR.prototype.getDomain=function(){var a=this.uri_.port_;return this.uri_.getDomain()+(a?":"+a:"")};qR.prototype.getQuery=function(){return this.uri_.queryData_.toString()};var sR=function(a){rR(a);void 0==a.pathPrefix_&&(a.pathPrefix_=null);return a.pathPrefix_};qR.prototype.hasOptions=function(){switch(rR(this).length){case 7:return!0;case 6:return null==sR(this);case 5:return!1;case 3:return!0;case 2:return null==sR(this);case 1:return!1;default:return!1}};
var tR=function(a,b){if(dQb(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=rR(a)[b]}else if(cQb(a))a:{var c=null!=sR(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=rR(a)[b]}else a:{c=null!=sR(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=rR(a)[b]}return a};g=qR.prototype;g.getOriginal=function(){return this.original_};g.getObfuscatedGaiaId=function(){void 0==this.obfuscatedGaiaId_&&(this.obfuscatedGaiaId_=tR(this,0));return this.obfuscatedGaiaId_};g.getImageVersion=function(){void 0==this.imageVersion_&&(this.imageVersion_=tR(this,2));return this.imageVersion_};g.getOptions=function(){void 0==this.options_&&(this.options_=tR(this,4));return this.options_};
g.getFilename=function(){void 0==this.filename_&&(this.filename_=tR(this,5));return this.filename_};
var eQb=function(){};eQb.prototype.parse=function(a,b){return new fQb(a,void 0===b?!1:b)};var fQb=function(a,b){qR.call(this,a,void 0===b?!1:b)};U(fQb,qR);fQb.prototype.getParsedOptions=function(){if(void 0==this.parsedOptions_){var a=this.getOptions();a||(a="");this.parsedOptions_=(new SPb).parse(a)}return this.parsedOptions_};
var uR=function(a,b){b=void 0===b?!1:b;this.parsedImageUrl_=null;a instanceof fQb||(void 0==gQb&&(gQb=new eQb),a=gQb.parse(a.toString(),b));this.parsedImageUrl_=a;a=this.parsedImageUrl_.getParsedOptions();jR.call(this,a);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;this.domain_=this.parsedImageUrl_.getDomain();this.query_=this.parsedImageUrl_.getQuery()},gQb;du(uR,oR);uR.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
uR.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.getOriginal();var a=uR.superClass_.build.call(this),b=[];null!=sR(this.parsedImageUrl_)&&b.push(sR(this.parsedImageUrl_));var c=dQb(this.parsedImageUrl_);if(cQb(this.parsedImageUrl_)){var d=this.parsedImageUrl_;void 0==d.obfuscatedData_&&(d.obfuscatedData_=tR(d,6));b.push(d.obfuscatedData_+(a?"="+a:""))}else if(c){d=b.push;var e=this.parsedImageUrl_;void 0===e.freeformUrlPath_&&(e.freeformUrlPath_=tR(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_=tR(e,1)),d.call(b,e.photoId_),b.push(this.parsedImageUrl_.getImageVersion()),d=b.push,e=this.parsedImageUrl_,void 0==e.signature_&&(e.signature_=tR(e,3)),d.call(b,e.signature_),a&&b.push(a),b.push(this.parsedImageUrl_.getFilename());a=YG(this.protocolPrefix_+this.domain_+"/"+(c?b.join("="):b.join("/"))+(this.query_?"?"+this.query_:"")).toString();
a.startsWith("%3a//")&&(a=a.replace("%3a//","://"));return a};
var hQb=[[["onedev-hovercard-action"]],[["","onedev-additional-content",""]]],vR=function(a,b){var c=this;this.peopleService=a;this.waldoService=b;this.enableWaldo=!1;this.providedEmail$=new S.ReplaySubject(1);this.person$=this.providedEmail$.pipe(bg(function(d){return yPb(c.peopleService,d)}),R(function(d){if(d){var e=Object,f=e.assign;if(d.imageUrl){var h=d.imageUrl;var k=new uR(h);k.setSize(48);h=k.build()||h}else h=d.imageUrl;d=f.call(e,{},d,{imageUrl:h})}return d}),Zf(1));this.outOfOfficeDescription$=
new S.ReplaySubject;this.init=new S.ReplaySubject(1);this.destroyed$=new S.ReplaySubject(1)};vR.prototype.ngOnInit=function(){var a=this;this.person$.pipe(Qf(),cg(this.destroyed$)).subscribe(function(){a.init.next()});this.enableWaldo&&iQb(this)};var iQb=function(a){a.waldoService&&a.person$.pipe(bg(function(b){return b?KPb(a.waldoService,b.email):(0,S.of)("")}),cg(a.destroyed$)).subscribe(function(b){a.outOfOfficeDescription$.next(b)})};
li.Object.defineProperties(vR.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return this.emailInternal},set:function(a){this.emailInternal=a;this.providedEmail$.next(a)}}});vR.\u0275fac=function(a){return new (a||vR)(D(IQ),D(gR,8))};
vR.\u0275cmp=w({type:vR,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&&(xe(hQb),M(0,eAa,4,4,"onedev-person-hovercard-body",0),P(1,"async"));a&2&&C("ngIf",Q(1,1,b.person$))},dependencies:[Cx,BQ,Px],encapsulation:2,changeDetection:0});
var jQb=[[["onedev-hovercard-action"],["",8,"actions"]]],wR=function(){};wR.prototype.ngOnInit=function(){};wR.\u0275fac=function(a){return new (a||wR)};
wR.\u0275cmp=w({type:wR,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&&(xe(jQb),M(0,fAa,3,3,"onedev-person-hovercard",0))},dependencies:[vR,oN,pN],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 xR=function(){this.isNonObfuscatedEmail=Nn};xR.\u0275fac=function(a){return new (a||xR)};
xR.\u0275cmp=w({type:xR,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&&(xe(),M(0,hAa,6,4,"ng-container",0),M(1,iAa,1,0,"ng-template",null,1,Jf));if(a&2){var c=Ce(2);C("ngIf",!!b.email&&b.isNonObfuscatedEmail(b.email))("ngIfElse",c)}},dependencies:[Cx,
Mx,nN,rN,wR],encapsulation:2,changeDetection:0});
var yR=function(){};yR.prototype.transform=function(a){if(Nn(a))return a};yR.\u0275fac=function(a){return new (a||yR)};yR.\u0275pipe=wc({name:"omitObfuscatedEmail",type:yR,pure:!0});
var zR=function(a){Z.call(this,a)};U(zR,Z);zR.prototype.getDisplayName=function(){return V(this,1)};zR.prototype.setDisplayName=function(a){return l(this,1,a)};zR.prototype.getPhotoUrl=function(){return V(this,2)};zR.prototype.toObject=function(){return kQb(void 0,this)};var kQb=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 AR=function(a){Z.call(this,a)};U(AR,Z);AR.prototype.toObject=function(){var a=null!=this?{userProfileMap:Eb(Zi(this,1,zR),void 0,kQb)}:void 0;return a};AR.messageId="b.UserProfileBatchResponse";
var BR=function(a,b){var c=this;this.userProfilesBatchApiConfig=a;this.batchApiAdapter=b;this.batchAdaptedGet=this.batchApiAdapter.adapt(this.userProfilesBatchApiConfig);this.memoizingUserProfileMap=new fKb(function(d){return c.batchAdaptedGet(d)},100)};BR.prototype.get=function(a){return this.memoizingUserProfileMap.get(a)};BR.\u0275fac=function(a){return new (a||BR)(t(CR),t(hJ))};BR.\u0275prov=dc({token:BR,factory:BR.\u0275fac,providedIn:"root"});var CR=function(a){this.executor=a};
CR.prototype.call=function(a){return this.executor.get({url:"action/user_profiles",options:{params:{usernames:[].concat(u(a)).join(",")}},responseConstructor:AR}).pipe(Mf(function(){return(0,S.of)(new AR)}))};CR.prototype.split=function(a,b){return Zi(b,1,zR).get(a)||new zR};CR.\u0275fac=function(a){return new (a||CR)(t(nI))};CR.\u0275prov=dc({token:CR,factory:CR.\u0275fac,providedIn:"root"});
var DR=function(a){var b=this;this.waldoAvailabilityService=a;this.user="";this.userSubject=new S.ReplaySubject(1);this.availability=this.userSubject.pipe(bg(function(c){return KPb(b.waldoAvailabilityService,c)}))};DR.prototype.ngOnChanges=function(){this.userSubject.next(this.user)};DR.\u0275fac=function(a){return new (a||DR)(D(gR))};
DR.\u0275cmp=w({type:DR,selectors:[["waldo-availability-chip"]],inputs:{user:"user"},features:[Cc],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&&(M(0,jAa,6,3,"div",0),P(1,"async"));a&2&&C("ngIf",Q(1,1,b.availability))},dependencies:[Cx,Px],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 ER=function(a){this.refreshMonitor=a;this.user="";this.coinonly=null};ER.\u0275fac=function(a){return new (a||ER)(D(sL))};ER.\u0275cmp=w({type:ER,selectors:[["b-availability-chip"]],inputs:{user:"user",coinonly:"coinonly"},decls:1,vars:1,consts:[[3,"refreshable"],[3,"user"]],template:function(a,b){a&1&&M(0,kAa,1,2,"ng-template",0);a&2&&C("refreshable",b.refreshMonitor.getObservable())},dependencies:[DR,cP],styles:["waldo-availability-chip[_ngcontent-%COMP%] { margin-left: 5px; }"],changeDetection:0});
var FR=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"};
FR.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=Nl(a.assigneeUser);this.assigneeUser=a.assigneeUser;this.authorUser=a.authorUser;this.attachmentId=a.attachmentId;this.blockedByIssueId=a.blockedByIssueId;this.blockingIssueId=a.blockingIssueId;this.cc=Jqa(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=Nl(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=Nl(a.authorUser);this.verifiedInVersion=a.verifiedInVersion;this.verifier=Nl(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 lQb(f)}));d={};c=r(c);for(e=c.next();!e.done;d={$jscomp$loop$prop$fieldResource$1677:d.$jscomp$loop$prop$fieldResource$1677},
e=c.next())d.$jscomp$loop$prop$fieldResource$1677=e.value,e=d.$jscomp$loop$prop$fieldResource$1677.allowedValue?d.$jscomp$loop$prop$fieldResource$1677.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$1677.customFieldId}}(d)))?(a.type=d.$jscomp$loop$prop$fieldResource$1677.type,a.customFieldName=d.$jscomp$loop$prop$fieldResource$1677.name,a.choices=e,this.customFieldMap[String(d.$jscomp$loop$prop$fieldResource$1677.customFieldId)]=
a):(a=new lQb({customFieldId:d.$jscomp$loop$prop$fieldResource$1677.customFieldId}),a.type=d.$jscomp$loop$prop$fieldResource$1677.type,a.customFieldName=d.$jscomp$loop$prop$fieldResource$1677.name,a.choices=e,this.customFieldMap[String(d.$jscomp$loop$prop$fieldResource$1677.customFieldId)]=a)};
var nQb=function(a){for(var b=[],c=r(Object.values(a.customFieldMap)),d=c.next();!d.done;d=c.next()){d=d.value;var e=mQb(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){GR(Nl(a.originalModelData.assigneeUser),a.assignee,"assignee",b);GR(a.originalModelData.componentId,a.componentId,"componentId",b);GR(a.originalModelData.createdTimeMicros,
a.createdTimeMicros,"createdTimeMicros",b);GR(a.originalModelData.deletionReason,a.deletionReason,"deletionReason",b);GR(a.originalModelData.duplicateOfIssueId,a.duplicateOfIssueId,"duplicateOfIssueId",b);GR(a.originalModelData.inProd,a.inProd,"inProd",b);GR(a.originalModelData.isArchived,a.isArchived,"isArchived",b);GR(a.originalModelData.isDeleted,a.isDeleted,"isDeleted",b);GR(a.originalModelData.priority,a.priority,"priority",b);GR(Nl(a.originalModelData.reporterUser),a.reporter,"reporter",b);
GR(a.originalModelData.severity,a.severity,"severity",b);GR(a.originalModelData.significanceOverride,a.significanceOverride,"significanceOverride",b);GR(a.originalModelData.snapshotNumber,a.snapshotNumber,"snapshotNumber",b);GR(a.originalModelData.status,a.status,"status",b);GR(a.originalModelData.title,a.title,"title",b);GR(a.originalModelData.type,a.type,"type",b);GR(Nl(a.originalModelData.authorUser),a.user,"user",b);GR(Nl(a.originalModelData.verifierUser),a.verifier,"verifier",b);GR(a.originalModelData.version,
a.version,"version",b);var h,k,q,v;GR(null!=(q=null==(h=a.originalModelData.sloSnoozeUntil)?void 0:h.getSeconds())?q:0,null!=(v=null==(k=a.sloSnoozeUntil)?void 0:k.getSeconds())?v:0,"sloSnoozeUntil",b);var y,E;GR(null!=(E=null==(y=a.originalModelData.effort)?void 0:V(y,2))?E:null,a.effortEstimate,"effortEstimate",b);HR(a.originalModelData.attachmentId,a.attachmentId,"attachmentId",b);HR(Jqa(a.originalModelData.ccUsers),a.cc,"ccs",b);HR(a.originalModelData.changelist,a.changelist,"changelists",b);
HR(a.originalModelData.blockedByIssueId,a.blockedByIssueId,"blockedByIssueId",b);HR(a.originalModelData.blockingIssueId,a.blockingIssueId,"blockingIssueId",b);HR(a.originalModelData.foundInVersion,a.foundInVersion,"foundInVersion",b);HR(a.originalModelData.targetedToVersion,a.targetedToVersion,"targetedToVersion",b);HR(a.originalModelData.verifiedInVersion,a.verifiedInVersion,"verifiedInVersion",b);HR(a.originalModelData.hotlistId,a.hotlistId,"hotlists",b)}return 0==b.length?null:{issueId:a.issueId,
actions:b}},GR=function(a,b,c,d){a!==b&&d.push({fieldName:c,value:null!=b?String(b):void 0})},HR=function(a,b,c,d){var e=Pi(b||[],new Set(a));a=Pi(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=FR.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||void 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:mh(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=Bn[this.status];!this.assignee&&this.originalModelData&&Nl(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&&Nl(this.originalModelData.verifierUser)&&"VERIFIED"===this.originalModelData.status&&(this.status="FIXED")};
g.setStatus=function(a){this.status=a;a=Bn[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 oQb=function(a,b){a.blockingIssueId=b},pQb=function(a,b){a.blockedByIssueId=b};
FR.prototype.setSloSnoozeUntil=function(a){this.sloSnoozeUntil=a};var mQb=function(a,b){return a.originalModelData?(a=(a.originalModelData.customField||[]).find(function(c){return c.customFieldId===b}))?new iJ(a):null:null},lQb=function(a){iJ.call(this,a);this.choices=this.customFieldName=this.type=null};U(lQb,iJ);lQb.prototype.isRepeated=function(){return null==this.type?!1:["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};
var qQb=new Map([["assignee",function(a,b){a.assigneeUser=Ul(b.assignee)}],["ccs",function(a,b){a.ccUsers=b.cc.map(Ul).filter(bl)}],["changelists",function(a,b){a.changelist=b.changelist}],["hotlists",function(a,b){a.hotlistId=b.hotlistId}],["reporter",function(a,b){a.reporterUser=Ul(b.reporter)}],["verifier",function(a,b){a.verifierUser=Ul(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 IR=function(a){this.$window=a};IR.\u0275fac=function(a){return new (a||IR)(t(uM))};IR.\u0275prov=dc({token:IR,factory:IR.\u0275fac,providedIn:"root"});
var JR=function(a,b,c){this.activeSession=a;this.documentationLinks=b;this.confirmationDialogService=c},rQb=function(a,b){return new Promise(function(c){KR(a,b,function(){c(!0)},function(){c(!1)})})},KR=function(a,b,c,d){if(a.activeSession.isExternalSession())c&&c();else{var e="",f=Pn("");if("VULNERABILITY"===b)e="Set the issue type to \u201cVulnerability\u201d?",b={},f=Sn(Wy('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'),
Rn("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=Sn(Wy('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. '),Rn("A",(b.href="http://goto.google.com/pib-slo",b.target="_blank",b),"Learn more"),Wy(".\n\nDO NOT use this type to file "),
Rn("A",(f.href="http://goto.google.com/incident-response-policy",f.target="_blank",f),"privacy incidents"),Wy(". Incidents should be filed at "),Rn("A",(h.href="http://goto.google.com/privacy-incidents",h.target="_blank",h),"go/privacy-incidents"),Wy(".\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(){}})}};JR.\u0275fac=function(a){return new (a||JR)(t(vH),t(rP),t(ZM))};JR.\u0275prov=dc({token:JR,factory:JR.\u0275fac,providedIn:"root"});
var sQb=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$1679:a.$jscomp$loop$prop$action$1679},d=c.next())a.$jscomp$loop$prop$action$1679=d.value,b.some(function(e){return function(f){return Ei(e.$jscomp$loop$prop$action$1679,f)}}(a))||b.push(a.$jscomp$loop$prop$action$1679);return b},tQb=function(a){return Array.from(new Set([].concat.apply([],u(a.map(function(b){return b.issueIds})))))};
var LR=function(a){this.dateFormatter=a};
LR.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(Mk(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(Mk(c))}).join(", ");if(a.repeatedEnumValue)return a.repeatedEnumValue.values.join(", ");
if(a.repeatedNumericValue)return a.repeatedNumericValue.values.join(", ")}return""};LR.\u0275fac=function(a){return new (a||LR)(t(HP))};LR.\u0275prov=dc({token:LR,factory:LR.\u0275fac,providedIn:"root"});
var MR=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"]},wQb=function(a,b,c,d){c=void 0===c?null:c;d=void 0===d?"":d;var e;b.bulkEditOps&&(e=tQb(b.bulkEditOps));var f=b.actions||[];!f.length&&b.bulkEditOps&&(f=sQb(b.bulkEditOps));b=uQb(f).map(function(h){return vQb(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+"."},uQb=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)},vQb=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 iJ(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=Hk(a.hotlistFridge.watch(String(h),{trustUncertainMemory:!0})))?void 0:q.name)?"'"+k+"'":h}).join(","):a.ENUM_FIELDS.includes(b.fieldName)&&(f=f?Lk(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+"]"):"ADD"===b.actionType&&
"parentId"===b.fieldName?"Added child issue(s) to parent ["+f+"]":"REMOVE"===b.actionType&&"parentId"===b.fieldName?"Unlinked child issue(s) from parent ["+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 "'+Bn[b.value].displayValue+'"'};MR.\u0275fac=function(a){return new (a||MR)(t(LR),t(qL))};MR.\u0275prov=dc({token:MR,factory:MR.\u0275fac,providedIn:"root"});
var NR=function(a){Z.call(this,a,-1,xQb)};U(NR,Z);NR.prototype.getAttachmentsList=function(){return rb(this,Wm,1)};NR.prototype.setAttachmentsList=function(a){Ab(this,1,a)};var xQb=[1];NR.prototype.toObject=function(){var a=null!=this?{attachmentsList:Cb(this.getAttachmentsList(),JHb)}:void 0;return a};NR.messageId="b.CreateAttachmentsResponse";
var OR=function(a){Z.call(this,a)};U(OR,Z);OR.prototype.getErrorMessage=function(){return V(this,2)};OR.prototype.setErrorMessage=function(a){l(this,2,a)};OR.prototype.toObject=function(){var a=null!=this?{encryptedMedia:Fb(Gm(this,1)),errorMessage:n(p(this,2))}:void 0;return a};OR.messageId="b.EncryptedMediaResponse";
var PR=function(){},QR=function(a){this.apiResourceFactory=a;this.attachmentsResource=SJ(this.apiResourceFactory,"action/issues/:issueId/attachments");this.driveAttachmentResource=SJ(this.apiResourceFactory,"action/issues/drive_attachment")};U(QR,PR);QR.prototype.createAttachment=function(a){return this.attachmentsResource.save({issueId:a.issueId},a)};QR.prototype.createDriveAttachment=function(a){return this.driveAttachmentResource.save({},a)};QR.\u0275fac=function(a){return new (a||QR)(t(QJ))};
QR.\u0275prov=dc({token:QR,factory:QR.\u0275fac,providedIn:"root"});var RR=function(a){this.executor=a};U(RR,PR);RR.prototype.createAttachment=function(a){var b=new ZJ;b.setIssueId(String(a.issueId));void 0!==a.attachments&&b.setAttachmentsList(a.attachments);if(void 0!==a.attachmentsWithJudgements){var c=a.attachmentsWithJudgements.map(csa);Ab(b,3,c)}return this.executor.post({url:"action/issues/"+a.issueId+"/attachments",body:b,responseConstructor:NR}).then(dsa)};
RR.prototype.createDriveAttachment=function(a){var b=new aHb;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:OR}).then(bsa)};RR.\u0275fac=function(a){return new (a||RR)(t(oI))};RR.\u0275prov=dc({token:RR,factory:RR.\u0275fac,providedIn:"root"});
var SR=function(){};SR.\u0275fac=function(a){return new (a||SR)};SR.\u0275prov=dc({token:SR,factory:SR.\u0275fac,providedIn:"root"});var TR=function(a){this.$http=a};U(TR,SR);TR.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(){})};
TR.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})};TR.\u0275fac=function(a){return new (a||TR)(t(AJ))};TR.\u0275prov=dc({token:TR,factory:TR.\u0275fac,providedIn:"root"});var UR=function(a){this.executor=a};U(UR,SR);
UR.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})};UR.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:Wm}).then(Im)};UR.\u0275fac=function(a){return new (a||UR)(t(oI))};
UR.\u0275prov=dc({token:UR,factory:UR.\u0275fac,providedIn:"root"});
var VR=function(a,b,c){this.dialogRef=a;this.data=c;this.readMoreLink=b.baseDocumentationUrl+"/concepts/access-control#explicit_access_warnings";this.userEmails=c.userEmails};VR.prototype.close=function(a){this.dialogRef.close(a)};VR.\u0275fac=function(a){return new (a||VR)(D(MB),D(rP),D(XB))};
VR.\u0275cmp=w({type:VR,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&&(F(0,"div",0)(1,"h1",1),O(2,"User may not have access"),G(),F(3,"section",2)(4,"p"),O(5," The following user(s) may not be able to edit, interact with, or get notifications about this issue: "),
G(),F(6,"ul"),M(7,mAa,2,1,"li",3),G(),F(8,"section"),O(9,"Continue anyway?"),G()(),F(10,"footer",4)(11,"div",5)(12,"a",6),O(13,"Learn more"),G()(),F(14,"button",7),J("click",function(){return b.close(!0)}),O(15,"Continue"),G(),F(16,"button",8),J("click",function(){return b.close(!1)}),O(17,"Cancel"),G()()());a&2&&(B(7),C("ngForOf",b.userEmails),B(5),C("href",b.readMoreLink,Md))},dependencies:[Gx,BB,aC,bC,cC],styles:["ul[_ngcontent-%COMP%]{list-style:disc;margin-bottom:10px}"]});
var WR=function(a,b,c,d,e){this.matDialogService=a;this.analytics=b;this.butterBar=c;this.logger=d;this.accessPolicy=e},zQb=function(a,b){var c=b.componentId,d=b.userEmails,e=b.relation,f=b.analyticsEventLabel,h,k,q;return bf(function(v){switch(v.nextAddress){case 1:if(d.every(function(y){return 0===y.length}))return v.return(!0);Qt(v,2);return cf(v,yQb(a,c,d,e),4);case 4:h=v.yieldResult;if(0===h.length)return v.return(!0);eo(a.analytics,io.ADD_USER_WITHOUT_ACCESS,"warn",f);return cf(v,a.confirm(h,
e),5);case 5:k=v.yieldResult;if(!k)return FK(a.butterBar,"Save cancelled.",4E3),eo(a.analytics,io.ADD_USER_WITHOUT_ACCESS,"cancel",f),v.return(!1);eo(a.analytics,io.ADD_USER_WITHOUT_ACCESS,"proceed",f);return v.return(!0);case 2:return q=St(v),a.logger.error(q),v.return(!1)}})},yQb=function(a,b,c,d){var e;return bf(function(f){if(1==f.nextAddress)return cf(f,a.accessPolicy.checkPermission(c,d,"ISSUE_DEFAULTS",b),2);e=f.yieldResult;return f.return([].concat(u(e.noAccessEmails||[]),u(e.unknownEmails||
[])))})};WR.prototype.confirm=function(a,b){var c=this,d,e,f;return bf(function(h){if(1==h.nextAddress)return d={userEmails:a,relation:b},e=c.matDialogService.open(VR,{width:"400px",data:d}),cf(h,(0,S.firstValueFrom)(NB(e)),2);f=h.yieldResult;return h.return(!!f)})};WR.\u0275fac=function(a){return new (a||WR)(t(ZB),t(QM),t(DK),t(HK),t(gO))};WR.\u0275prov=dc({token:WR,factory:WR.\u0275fac,providedIn:"root"});
var YR=function(a,b){this.size=a;this.name=b;this.transferredBytes=0;this.errorMessage="";this.blobRef=null;this.state=1};YR.prototype.cancel=function(){this.state=4};var AQb={UPLOADING:1,COMPLETE:2,ERROR:3,CANCELLED:4,1:"UPLOADING",2:"COMPLETE",3:"ERROR",4:"CANCELLED"};
var ZR=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};ZR.prototype.reset=function(){this.value="";BQb(this)};
var BQb=function(a){for(var b=r(a.uploads),c=b.next();!c.done;c=b.next())c.value.cancel();a.uploads=[]},CQb=function(a){return a.fromTemplate&&a.initialComment===a.value},DQb=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};ZR.prototype.hasContent=function(){return!(!this.value&&!this.uploads.length)};var EQb=function(a){return!a.isEmpty()&&!Ks(a)};ZR.prototype.isEmpty=function(){return!this.value&&!FQb(this)};
var Ks=function(a){return a.uploads.some(function(b){return 1===b.state||3===b.state})},FQb=function(a){return a.uploads.some(function(b){return 2===b.state})};
var $R=new ld("routeParams",{factory:function(){return t(rM).params}});
var aS=function(a,b,c,d){this.routeParams=a;this.issueComments=b;this.draftStore=c;this.errorHandler=d};aS.prototype.get=function(a){var b=this;if(this.routeParams.comment)return(0,S.of)(this.routeParams.comment);var c=this.routeParams.template_issue;if(c){var d=Ki(this.routeParams.template_comment)||1;return(0,S.defer)(function(){return GQb(b,c,d,b.routeParams.do_attribution)})}return a?(0,S.of)(this.draftStore.$window.sessionStorage.getItem(xo(AC(a)))||""):(0,S.of)("")};
var GQb=function(a,b,c,d){var e,f,h,k,q;return bf(function(v){if(1==v.nextAddress)return Qt(v,2),cf(v,a.issueComments.get(b,c),4);if(2!=v.nextAddress)return e=v.yieldResult,f=e.unlinkifiedComment||e.comment,h=(new Date(Number(e.lastModified)/1E3)).toLocaleDateString(),d?(k="> From issue "+b+" on "+h+":",v.return(k+"\n\n"+f)):v.return(f);q=St(v);KK(a.errorHandler,q);return v.return("")})};aS.\u0275fac=function(a){return new (a||aS)(t($R),t(pO),t(IR),t(IK))};
aS.\u0275prov=dc({token:aS,factory:aS.\u0275fac,providedIn:"root"});
var HQb=function(a,b,c,d){var e=this;this.issueId=a;this.defaultCommentSource=b;this.issueFetchResponseFridge=c;this.activeSession=d;this.issueFr$=AL(this.issueFetchResponseFridge,this.issueId);this.issue$=this.issueFr$.pipe(R(function(f){return null==f?void 0:f.issue}));this.componentId$=this.issue$.pipe(R(function(f){return null==f?void 0:f.snapshot[0].componentId}),Pf());this.comment$=this.defaultCommentSource.get(this.issueId).pipe(R(function(f){return new ZR(f)}),ag(new ZR("")),Zf({bufferSize:1,
refCount:!0}));this.comment=function(){return Hk(e.comment$)};this.createRestrictedResourcesComponentWhitelist=jb(this.activeSession.config,13);this.componentJudgementForNewContent$=this.componentId$.pipe(R(function(f){if(f&&e.createRestrictedResourcesComponentWhitelist.includes(f))return(new Fl).setSeverity(2).setJudgementReason("None Specified")}),Zf({bufferSize:1,refCount:!0}));this.userDefinedJudgementForNewContent$=new S.BehaviorSubject(void 0);this.judgementForNewContent$=(0,S.combineLatest)([this.componentJudgementForNewContent$.pipe(ag(void 0)),
this.userDefinedJudgementForNewContent$]).pipe(R(function(f){var h=r(f);f=h.next().value;h=h.next().value;return null!=h?h:f}),Zf({bufferSize:1,refCount:!1}));this.judgementForNewContent=function(){return Hk(e.judgementForNewContent$)}},IQb=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:Bl(d.getSeverity()),judgementReason:d.getJudgementReason()}),e.push(f));return{judgementForNewContent:d,commentText:a,formattingMode:c,attachmentsWithJudgements:e}},JQb=function(a){var b=IQb(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},bS=function(a,b,c){this.defaultCommentSource=a;this.issueFetchResponseFridge=
b;this.activeSession=c};bS.prototype.create=function(a){return new HQb(a,this.defaultCommentSource,this.issueFetchResponseFridge,this.activeSession)};bS.\u0275fac=function(a){return new (a||bS)(t(aS),t(zL),t(vH))};bS.\u0275prov=dc({token:bS,factory:bS.\u0275fac,providedIn:"root"});
var cS=function(){};cS.prototype.isSloSnoozed=function(a){return!!a&&a.getSeconds()>Date.now()/1E3};
var dS=function(a){return!!a&&a.hasTargetTime()&&0!==a.getTargetTime().getSeconds()},KQb=function(a){return dS(a.getAssignmentBounds())||dS(a.getResponseBounds())||dS(a.getClosureBounds())},LQb=function(a){if(!a)return null;var b=[],c=[];a.hasAssignmentBounds()&&nAa(b,c,a.getAssignmentBounds(),"ASSIGNMENT");a.hasResponseBounds()&&nAa(b,c,a.getResponseBounds(),"RESPONSE");a.hasClosureBounds()&&nAa(b,c,a.getClosureBounds(),"CLOSURE");return 0<b.length?(b.sort(oAa),b[0]):0<c.length?(c.sort(oAa),{sloBounds:c[0].sloBounds,
sloMetric:""}):null};cS.\u0275fac=function(a){return new (a||cS)};cS.\u0275prov=dc({token:cS,factory:cS.\u0275fac,providedIn:"root"});
var MQb=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=$i("enableWtdmMvpUi")||!1;this.enableNonWtdmFieldPerTypeVisibility=$i("enableNonWtdmFieldPerTypeVisibility")||!1;this.showSloStatus=this.activeSession.isInternalSession();this.showChangelists=!this.activeSession.isExternalSession();this.issueFetchResponse$=AL(this.issueFetchResponseFridge,this.issueId);this.issue$=
this.issueFetchResponse$.pipe(R(function(h){return null==h?void 0:h.issue}));this.issueSnapshot$=this.issue$.pipe(R(function(h){return null==h?void 0:h.snapshot[0]}));this.hasSloDefined$=this.issue$.pipe(R(function(h){var k;return null==h?void 0:null==(k=h.aggregatedData)?void 0:k.sloStatus}),R(iva),R(function(h){return!!h&&KQb(h)}));this.isWtdmType$=this.issueSnapshot$.pipe(R(function(h){return null!=(null==h?void 0:h.type)&&ZCb.has(h.type)}));this.isForgottenFourPrimary$=this.isWtdmType$.pipe(R(function(h){return h?
!f.enableWtdmFieldPerTypeVisibility:!f.enableNonWtdmFieldPerTypeVisibility}));this.isSloStatusPrimary$=(0,S.combineLatest)([this.hasSloDefined$,this.isWtdmType$]).pipe(R(function(h){var k=r(h);h=k.next().value;k=k.next().value;return!f.enableWtdmFieldPerTypeVisibility||h||!k}));this.isSeverityPrimary$=this.isWtdmType$.pipe(R(function(h){return!f.enableWtdmFieldPerTypeVisibility||!h}));this.isChangelistPrimary$=(0,S.combineLatest)([this.isWtdmType$,this.issueSnapshot$]).pipe(R(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(R(function(h){var k;return null!=(k=null==h?void 0:h.customFields)?k:[]}));this.visibleFields$=this.issue$.pipe(R(function(h){var k;return null!=(k=null==h?void 0:h.visibleFields)?k:[]}));this.visibleFieldIds$=this.visibleFields$.pipe(R(function(h){return h.map(function(k){return k.customFieldId}).filter(bl)}),
R(function(h){return new Set(h)}),Zf({refCount:!0,bufferSize:1}));this.visibleCustomFields$=(0,S.combineLatest)([this.visibleFieldIds$,this.customFields$]).pipe(R(function(h){h=r(h);var k=h.next().value;return h.next().value.filter(function(q){return k.has(q.customFieldId)})}),Zf({refCount:!0,bufferSize:1}));this.hiddenCustomFields$=(0,S.combineLatest)([this.visibleFieldIds$,this.customFields$]).pipe(R(function(h){h=r(h);var k=h.next().value;return h.next().value.filter(function(q){return!k.has(q.customFieldId)})}),
Zf({refCount:!0,bufferSize:1}));this.hiddenFieldCount$=(0,S.combineLatest)([this.isForgottenFourPrimary$,this.isSeverityPrimary$,this.isSloStatusPrimary$,this.isChangelistPrimary$,this.hiddenCustomFields$]).pipe(R(function(h){var k=r(h);h=k.next().value;var q=k.next().value,v=k.next().value,y=k.next().value;k=k.next().value;return(h?0:4)+(q?0:1)+(!f.showSloStatus||v?0:1)+(!f.showChangelists||y?0:2)+k.length}),Zf({refCount:!0,bufferSize:1}));this.hasHiddenFields$=this.hiddenFieldCount$.pipe(R(function(h){return 0<
h}));this.showHiddenFieldsLabel$=this.hiddenFieldCount$.pipe(R(function(h){return 1===h?"Show 1 additional field":"Show "+h+" additional fields"}))},eS=function(a,b,c,d){this.issueFetchResponseFridge=a;this.constants=b;this.activeSession=c;this.sloStatusHelpersService=d};eS.prototype.create=function(a){return new MQb(a,this.issueFetchResponseFridge,this.constants,this.activeSession,this.sloStatusHelpersService)};eS.\u0275fac=function(a){return new (a||eS)(t(zL),t(XH),t(vH),t(cS))};
eS.\u0275prov=dc({token:eS,factory:eS.\u0275fac,providedIn:"root"});
var RKb=io.EDIT_ISSUE,fS=function(a,b){wI.call(this);this.analytics=a;this.clearcut=b;this.issueToTrackingState=new Map;this.getState=yo(this.issueToTrackingState,pAa);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(fS,wI);fS.\u0275dir=wI.\u0275dir;
var NQb=function(a,b){a.resetState(b);a.getState(b)},OQb=function(a,b){var c=a.getState(b);a.trackDestroy("edit-count",c.editCount);a.resetState(b)},gS=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)};fS.prototype.resetState=function(a){this.issueToTrackingState.delete(a)};
fS.\u0275fac=function(a){return new (a||fS)(t(QM),t(QO))};fS.\u0275prov=dc({token:fS,factory:fS.\u0275fac,providedIn:"root"});
var PQb={type:"TAKE",displayText:"Assign to me",description:"Assign issue to yourself"},QQb={type:"DEFAULT_ASSIGNEE",displayText:"Assign to default",description:"Use the component's default assignee"},RQb={type:"START",displayText:"Start work",description:"Change issue status to 'Accepted'"},SQb={type:"FIX",displayText:"Mark fixed",description:"Change issue status to 'Fixed'"},TQb={type:"VERIFY",displayText:"Verify",description:"Change issue status to 'Verified'"},UQb={type:"REOPEN",displayText:"Re-open",
description:"Change issue status back to 'Assigned'"};
var WQb=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(Zf({bufferSize:1,refCount:!0}));this.issueSnapshot$=this.issue$.pipe(R(function(f){return null==f?void 0:f.snapshot[0]}));this.currentAssignee$=this.issueSnapshot$.pipe(R(function(f){return(null==f?void 0:f.assigneeUser)&&Ql(f.assigneeUser)}),R(Yk));
this.defaultAssigneeForComponent$=this.issueSnapshot$.pipe(R(function(f){return null==f?void 0:f.componentId}),Pf(),bg(function(f){return f?e.componentTemplatesFridge.defaultTemplate$(String(f)):(0,S.of)(void 0)}),R(function(f){return f&&Ql(f.snapshot.assigneeUser)}),Zf({bufferSize:1,refCount:!0}));this.defaultAssigneeForComponent=function(){return Hk(e.defaultAssigneeForComponent$)};this.issueAssigneeQuickAction$=(0,S.combineLatest)([this.currentAssignee$,this.defaultAssigneeForComponent$]).pipe(R(function(f){var h=
r(f);f=h.next().value;h=h.next().value;return e.defaultAssigneeQuickActionEnabled&&h&&f!==h?QQb:void 0}));this.issueStatusQuickAction$=this.issueSnapshot$.pipe(R(function(f){return f&&VQb(e,f)}))},VQb=function(a,b){var c=a.activeSession.getUserEmail();a=Ql(b.assigneeUser)===c;c=Ql(b.verifierUser)===c;b=b.status;if(c&&"FIXED"===b)return TQb;if(a)switch(b){case "ASSIGNED":return RQb;case "ACCEPTED":return SQb;default:return UQb}switch(b){case "NEW":return PQb;case "ASSIGNED":return PQb;case "ACCEPTED":return PQb;
default:return UQb}},hS=function(a,b,c){this.activeSession=a;this.issueFridge=b;this.componentTemplatesFridge=c};hS.prototype.create=function(a){return new WQb(a,this.activeSession,this.issueFridge,this.componentTemplatesFridge)};hS.\u0275fac=function(a){return new (a||hS)(t(vH),t(wL),t(NK))};hS.\u0275prov=dc({token:hS,factory:hS.\u0275fac,providedIn:"root"});
var iS=function(a){a=void 0===a?[]:a;this.internalValue$=new S.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)};iS.prototype.add=function(a){this.value.add(a);this.internalValue$.next(this.value);return this};iS.prototype.clear=function(){this.value.clear();this.internalValue$.next(this.value)};iS.prototype.delete=function(a){a=this.value.delete(a);this.internalValue$.next(this.value);return a};iS.prototype.has=function(a){return this.value.has(a)};
var Qs=function(a,b){return a.internalValue$.pipe(R(function(c){return c.has(b)}),Pf())};iS.prototype[Symbol.iterator]=function(){return this.value.values()};iS.prototype.toString=function(){return"[ReactiveSet](["+[].concat(u(this.value.values())).join(", ")+"])"};iS.prototype.indexOf=function(a){return[].concat(u(this.value.values())).indexOf(a)};
li.Object.defineProperties(iS.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.internalValue$.value}},size:{configurable:!0,enumerable:!0,get:function(){return this.value.size}}});
var XQb={COMMENT_EDIT:"commentEdit",RETENTION:"retention",SUBSCRIBE:"subscribe",UNDELETE_ATTACHMENT:"undeleteAttachment",DELETE_ATTACHMENT:"deleteAttachment",COMMENT_UNDELETE:"commentUndelete",COMMENT_DELETE:"commentDelete",COMMENT:"comment",TITLE:"title",PARENT_ISSUES:"parentIssues"},YQb=function(){this.propertiesBeingSaved=new iS};YQb.prototype.get=function(a){return this.propertiesBeingSaved.has(Tn(a))};var jS=function(a,b){a.propertiesBeingSaved.add(Tn(b))},kS=function(a,b){a.propertiesBeingSaved.delete(Tn(b))};
YQb.prototype.properties=function(){return[].concat(u(this.propertiesBeingSaved))};
var lS=function(){};lS.prototype.transform=function(a){return zo(a)};lS.\u0275fac=function(a){return new (a||lS)};lS.\u0275pipe=wc({name:"appendDomain",type:lS,pure:!0});
var mS=function(a,b,c,d,e,f,h,k,q,v,y,E,I,N,L,T,Y,ka,ha,ra,Da,Ja,Ba,La,hb,fb,Tb){var va=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=v;this.confirmationDialogService=y;this.principalTypes=E;this.issuePermissionService=I;this.accessPolicy=N;this.issueTypeDialog=L;this.logger=T;this.issueFridge=Y;this.confirmNoAccessService=
ka;this.issueService=ha;this.attachmentsMember=ra;this.userPreferencesManager=Da;this.issueComments=Ja;this.draftStore=Ba;this.attachmentApi=La;this.issueFieldsFactory=hb;this.issueQuickActionsFactory=fb;this.issueCommentDraftFactory=Tb;this.isSavingMap=new Map;this.savingState=yo(this.isSavingMap,function(){return new YQb});this.issueFieldsMap=new Map;this.issueFields=yo(this.issueFieldsMap,function(Ca){return va.issueFieldsFactory.create(Ca)});this.issueQuickActionsMap=new Map;this.issueQuickActions=
yo(this.issueQuickActionsMap,function(Ca){return va.issueQuickActionsFactory.create(Ca)});this.editableIssueMap=new Map;this.editableIssue$=yo(this.editableIssueMap,function(Ca){return ZQb(va,Ca)});this.editableIssue=function(Ca){return va.editableIssue$(Ca).value};this.subscriptions=new Map;this.getSubscription=yo(this.subscriptions,function(){return new S.Subscription});this.issueCommentDraftMap=new Map;this.issueCommentDraft=yo(this.issueCommentDraftMap,function(Ca){return va.issueCommentDraftFactory.create(Ca)});
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)}};mS.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()};
mS.prototype.updateComponent=function(a,b,c){var d=this,e,f,h,k,q;return bf(function(v){if(1==v.nextAddress)return e=d.editableIssue(a),e.componentId=b,(f=d.getRequestDataForUpdate(e))&&f.actions&&f.actions.length?cf(v,d.getRetentionState(a),2):v.return();h=v.yieldResult;d.preUpdate(f);k={issueId:a,componentId:b};q=c?d.issueApi.moveIssueExternal(a,k):d.issueApi.moveIssue(a,k);return v.return(d.postUpdate(q,f,{originalRetentionState:h}))})};
var I6a=function(a,b,c){var d;return bf(function(e){if(!c)return GK(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())})},a8a=function(a,b,c){var d,e,f,h;return bf(function(k){if(1==k.nextAddress){d=vBb(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):cf(k,rQb(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())})},c8a=function(a,b,c){var d,e,f;return bf(function(h){d=b8a(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())})},aRb=function(a,b,c){var d,e,f;return bf(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&&!Wi(k.value||"")}))&&f.value?h.return($Qb(a,b,{actionIssueId:f.value,implicitAppenders:d.cc,implicitEditors:[],isDeduping:!0,isRemovingSelfFromCc:!1,requestData:e})):h.return():h.return()})};
mS.prototype.clearCanonicalIssue=function(a){var b=this,c,d,e,f;return bf(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 bRb=function(a,b,c){var d,e;return bf(function(f){d=a.editableIssue(b);d.setStatus(c);return f.return(null!=(e=a.updateIssue(b))?e:Promise.resolve())})};
mS.prototype.performQuickAction=function(a,b){var c=this,d,e,f;return bf(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:mh(b.type)}return h.return(null!=(f=c.updateIssue(a))?f:Promise.resolve())})};
var P6a=function(a,b,c){var d,e;return bf(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())})},M7a=function(a,b,c){var d,e,f;return bf(function(h){d=a.editableIssue(b);e=Si(c,!1);d.foundInVersion=e;return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},Q7a=function(a,b,c){var d,e,f;return bf(function(h){d=a.editableIssue(b);e=Si(c,!1);d.verifiedInVersion=e;return h.return(null!=
(f=a.updateIssue(b))?f:Promise.resolve())})},O7a=function(a,b,c){var d,e,f;return bf(function(h){d=a.editableIssue(b);e=Si(c,!1);d.targetedToVersion=e;return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},S7a=function(a,b,c){var d,e;return bf(function(f){d=a.editableIssue(b);d.setInProd(c);return f.return(null!=(e=a.updateIssue(b))?e:Promise.resolve())})},H7a=function(a,b,c){var d,e,f;return bf(function(h){d=wBb(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())})},E7a=function(a,b,c){var d,e;return bf(function(f){d=a.editableIssue(b);d.setSloSnoozeUntil(c);return f.return(null!=(e=a.updateIssue(b))?e:Promise.resolve())})},K7a=function(a,b,c){var d,e,f;return bf(function(h){d=a.editableIssue(b);d.changelist=null!=(e=c)?e:[];return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},Z7a=function(a,b,c,d){var e,f;return bf(function(h){e=a.editableIssue(b);e.setCustomField(c,
d);return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},e7a=function(a,b,c){var d,e,f;return bf(function(h){if(1==h.nextAddress)return d=a.editableIssue(b),a.issuePermissionService.isImplicitAccessEnabled()?h.jumpTo(2):cf(h,zQb(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())})},
kt=function(a,b,c){var d,e,f;return bf(function(h){if(1==h.nextAddress)return d=a.editableIssue(b),a.issuePermissionService.isImplicitAccessEnabled()?h.jumpTo(2):cf(h,zQb(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())})},dRb=function(a,b,c){var d,e,f,h,k,q,v,y,E;return bf(function(I){switch(I.nextAddress){case 1:d=
a.editableIssue(b);e=Qna(d.cc,c);f=e.added;h=e.removed;if(a.issuePermissionService.isImplicitAccessEnabled()){q=d.cc.some(function(N){return lO(a.issuePermissionService,N)});v=h.some(function(N){return lO(a.issuePermissionService,N)});if(!q||!v){I.jumpTo(3);break}return cf(I,cRb(a,b,d.componentId),6)}return cf(I,zQb(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())}})};mS.prototype.unarchive=function(a){var b=this,c,d;return bf(function(e){c=b.editableIssue(a);c.setIsArchived(!1);return e.return(null!=(d=b.updateIssue(a))?d:Promise.resolve())})};
mS.prototype.updateIssueRetention=function(a,b){var c=this,d,e,f;return bf(function(h){switch(h.nextAddress){case 1:return d={issueId:Number(a),retention:b},e=c.savingState(a),jS(e,"retention"),Qt(h,2,3),cf(h,c.issueApi.updateIssueRetention(a,d),5);case 5:return cf(h,it(c.issueFridge,a),6);case 6:FK(c.butterBar,"Issue retention updated to "+b+".",4E3);case 3:Tt(h);kS(e,"retention");Ut(h,0);break;case 2:f=St(h),KK(c.errorHandler,f),h.jumpTo(3)}})};
var eRb=function(a,b){var c,d,e;return bf(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 cf(f,a.postUpdate(e,d),0)})},p8a=function(a,b){var c,d,e;return bf(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 cf(f,a.postUpdate(e,d),0)})};
mS.prototype.updateSubscription=function(a,b){var c=this,d,e,f,h,k;return bf(function(q){switch(q.nextAddress){case 1:return d=c.savingState(a),cf(q,(0,S.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();Qt(q,3,4);jS(d,"subscribe");return cf(q,c.issueFridge.setNotificationSubscription(a,b),4);case 4:Tt(q);kS(d,"subscribe");Ut(q,0);break;case 3:k=St(q),KK(c.errorHandler,k),q.jumpTo(4)}})};
var fRb=function(a,b,c){var d,e;bf(function(f){switch(f.nextAddress){case 1:d=a.savingState(b);if(!c.attachmentId||d.get("undeleteAttachment"))return f.return();Qt(f,2,3);FK(a.butterBar,"Restoring attachment...");jS(d,"undeleteAttachment");return cf(f,a.attachmentsMember.undelete(b.toString(),c),5);case 5:FK(a.butterBar,"Attachment restored."),BL(a.issueFetchResponseFridge,b),it(a.eventsForIssueFridge,b);case 3:Tt(f);kS(d,"undeleteAttachment");Ut(f,0);break;case 2:e=St(f),KK(a.errorHandler,e),f.jumpTo(3)}})},
gRb=function(a,b,c,d){var e,f;return bf(function(h){switch(h.nextAddress){case 1:e=a.savingState(b);if(!c.attachmentId||e.get("deleteAttachment"))return h.return();Qt(h,2,3);FK(a.butterBar,"Deleting attachment...");jS(e,"deleteAttachment");return cf(h,a.attachmentsMember.delete(b,c,d),5);case 5:FK(a.butterBar,"Attachment deleted."),BL(a.issueFetchResponseFridge,b),it(a.eventsForIssueFridge,b);case 3:Tt(h);kS(e,"deleteAttachment");Ut(h,0);break;case 2:f=St(h),KK(a.errorHandler,f),h.jumpTo(3)}})};
mS.prototype.saveCommentDraft=function(a){var b=this,c=this.issueCommentDraft(a),d=c.comment(),e=IQb(c);if(!e.commentText&&!e.attachmentsWithJudgements.length)return Promise.resolve();var f=JQb(c);this.preUpdate(f);return this.postUpdate(function(){return bf(function(h){switch(h.nextAddress){case 1:return cf(h,hRb(b,a),2);case 2:if(!e.commentText){h.jumpTo(3);break}return cf(h,b.issueComments.create(String(a),e.commentText,e.formattingMode,e.judgementForNewContent),4);case 4:d.reset(),b.draftStore.$window.sessionStorage.removeItem(xo(Number(a)));
case 3:if(!e.attachmentsWithJudgements.length){h.jumpTo(5);break}return cf(h,b.attachmentApi.createAttachment({issueId:a,attachmentsWithJudgements:e.attachmentsWithJudgements}),6);case 6:d.reset();case 5:return c.userDefinedJudgementForNewContent$.next(void 0),h.return(BL(b.issueFetchResponseFridge,a))}})}(),f)};
var hRb=function(a,b){var c,d;return bf(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 cf(e,a.issueApi.updateIssue(Number(b),d),0)})},ZQb=function(a,b){var c=
AL(a.issueFetchResponseFridge,b).pipe(R(function(e){var f=new FR;if(e){var h=iRb(a,b,Fi(qa(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 S.BehaviorSubject(new FR);a.getSubscription(b).add(c.subscribe(d));return d};
mS.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 v=q.value||"";if("REMOVE"!==q.actionType)switch(q.fieldName){case "ccs":e=v.split(",").filter(Boolean);break;case "verifier":case "assignee":f=v.split(",").filter(Boolean);break;case "duplicateOfIssueId":Wi(v)||(e=b.cc,h=String(v),d=!0)}}b=1===c.actions.length&&"ccs"===c.actions[0].fieldName&&"REMOVE"===
c.actions[0].actionType&&this.activeSession.getUserEmail()===c.actions[0].value;return $Qb(this,a,{actionIssueId:h,implicitAppenders:e,implicitEditors:f,isDeduping:d,isRemovingSelfFromCc:b,requestData:c})};
var $Qb=function(a,b,c){var d=c.actionIssueId,e=c.implicitAppenders,f=c.implicitEditors,h=c.isDeduping,k=c.isRemovingSelfFromCc,q=c.requestData,v,y,E,I,N,L,T,Y,ka,ha,ra,Da,Ja,Ba;return bf(function(La){switch(La.nextAddress){case 1:return cf(La,Promise.all([jRb(a,e,"appender",d),jRb(a,f,"writer",d)]),2);case 2:v=La.yieldResult;y=r(v);E=y.next().value;I=y.next().value;N=E;L=I;T=N.noAccessEmails||[];Y=L.noAccessEmails||[];ka=[].concat(u(T),u(Y));if(0===ka.length)return La.return(kRb(a,q,h,k));Qt(La,
3);return cf(La,Promise.all(ka.map(function(hb){return lRb(a,hb)})),5);case 5:return ha=La.yieldResult,ra=Tta({userPrincipals:ha,newEditors:Y,newImplicitUsers:ka,isExternalSession:a.activeSession.isExternalSession(),issueId:b,actionIssueId:d}),Da=ra.title,Ja=ra.content,cf(La,pLb(a.confirmationDialogService,{title:Da,content:Pn(Ja),confirmButtonText:"Allow"}),6);case 6:if(Ba=La.yieldResult)return La.return(kRb(a,q,h,k));it(a.permissionsFridge,"issues/"+b);BL(a.issueFetchResponseFridge,b);Rt(La,0);
break;case 3:St(La),GK(a.butterBar,"Could not determine email type."),df(La)}})},kRb=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)},jRb=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?null:f;if(e&&!f)throw Error("Id");var h=e?"ISSUE_DEFAULTS":"ISSUE";d=e?f:d;e=
{noAccessEmails:[]};return 0!==b.length&&a.issuePermissionService.isImplicitAccessEnabled()?a.accessPolicy.checkPermission(b.map(zo),c,h,d):Promise.resolve(e)},iRb=function(a,b,c){var d=a.isSavingMap.get(b);a=(a=a.editableIssueMap.get(b))&&Hk(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$1681:d.$jscomp$loop$prop$customFieldId$1681},e=b.next())if(e=e.value,e.match(/^\d+$/)){d.$jscomp$loop$prop$customFieldId$1681=Ki(e);var f=(c.customField||
[]).find(function(h){return function(k){return k.customFieldId===h.$jscomp$loop$prop$customFieldId$1681}}(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=qQb.get(e))||f(c,a);return c};
mS.prototype.getRequestDataForUpdate=function(a){var b=nQb(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(Ao(d)))});return b.actions.length?b:null};
mS.prototype.preUpdate=function(a){var b=String(a.issueId);FK(this.butterBar,"Saving...",0);var c=a.actions.map(function(d){return d.fieldName}).join(",");gS(this.issueInteractionsTracking,b,{label:c});b=this.savingState(b);a=r(a.actions);for(c=a.next();!c.done;c=a.next())jS(b,Ao(c.value))};
mS.prototype.postUpdate=function(a,b,c){var d=this,e,f;return bf(function(h){switch(h.nextAddress){case 1:return Qt(h,2),cf(h,a,4);case 4:return e=h.yieldResult,yL(d.issueFridge,[b.issueId],{eagerUpdate:!1}).then(function(){var k=String(b.issueId);BL(d.issueFetchResponseFridge,k);it(d.eventsForIssueFridge,k)}),cf(h,mRb(d,b,e,c),5);case 5:Rt(h,0);break;case 2:f=St(h),nRb(d,b,f),df(h)}})};
var mRb=function(a,b,c,d){var e=(void 0===d?{}:d).originalRetentionState,f,h,k,q;return bf(function(v){f=a.savingState(String(b.issueId));h=r(b.actions);for(k=h.next();!k.done;k=h.next())q=k.value,kS(f,Ao(q));return c?cf(v,oRb(a,b,e),0):v.jumpTo(0)})},nRb=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())kS(e,Ao(f.value));it(a.permissionsFridge,"issues/"+d);BL(a.issueFetchResponseFridge,d);Em(c)&&403===c.status&&Fm(c)?JK(a.errorHandler,
Fm(c)):KK(a.errorHandler,c)},oRb=function(a,b,c){var d,e,f,h,k,q,v,y,E,I,N;return bf(function(L){switch(L.nextAddress){case 1:return cf(L,a.getEffortSpec(String(b.issueId)),2);case 2:d=L.yieldResult;e=a.editableIssue(String(b.issueId));k=wQb(a.statusMessages,b,e.customFieldMap,null!=(h=null==(f=d)?void 0:f.getName())?h:"");if(!c){L.jumpTo(3);break}return cf(L,Promise.all([a.getRetentionState(String(b.issueId)),a.getRetention(String(b.issueId))]),4);case 4:q=L.yieldResult;v=r(q);y=v.next().value;E=
v.next().value;I=y;N=E;var T=k;if("INDEFINITE"!==N&&c&&I){var Y=lAa(c);var ka=lAa(I);Y=Y===ka?"":" Issue retention period changed from "+Y+" to "+ka+"."}else Y="";k=T+Y;case 3:FK(a.butterBar,k),df(L)}})},cRb=function(a,b,c){var d;return bf(function(e){if(1==e.nextAddress)return cf(e,jRb(a,[a.activeSession.getUserEmail()],"reader",b,!0,c),2);d=e.yieldResult;return d.noAccessEmails&&0!==d.noAccessEmails.length?e.return(pLb(a.confirmationDialogService,{title:"Un-CC'ing yourself may revoke your access to the issue",
content:Pn("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)})};mS.prototype.getRetentionState=function(a){return(0,S.firstValueFrom)(AL(this.issueFetchResponseFridge,a).pipe(R(txa)))};mS.prototype.getRetention=function(a){return(0,S.firstValueFrom)(AL(this.issueFetchResponseFridge,a).pipe(R(qxa)))};
mS.prototype.getEffortSpec=function(a){var b=this;return(0,S.firstValueFrom)(AL(this.issueFetchResponseFridge,a).pipe(R(Wwa),bg(function(c){return b.componentFridge.watch(c)}),R(yxa)))};var lRb=function(a,b){return bf(function(c){if(a.activeSession.isExternalSession()){var d=c.return;var e=new Lj;e=l(e,1,0);e=l(e,2,0);c=d.call(c,e)}else c=c.return(qI(a.principalTypes,b,!0));return c})};
mS.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()};mS.\u0275fac=function(a){return new (a||mS)(t(zL),t(vH),t(DK),t(fS),t(lK),t(NJ),t(dM),t(LL),t(MR),t(IK),t(ZM),t(pI),t(mO),t(gO),t(JR),t(HK),t(wL),t(WR),t(PK),t(SR),t(VI),t(pO),t(IR),t(PR),t(eS),t(hS),t(bS))};
mS.\u0275prov=dc({token:mS,factory:mS.\u0275fac,providedIn:"root"});
var nS=function(a,b,c){wI.call(this);this.issueDetailsBrain=a;this.issuePermissionService=b;this.editIssueService=c;this.assigneeInProgress$=new S.ReplaySubject(1);this.ccInProgress$=new S.ReplaySubject(1);this.id$=this.issueDetailsBrain.id$;this.assigneeUpdate$=this.issueDetailsBrain.issueJs$.pipe(R(function(d){var e;return Nl(null==(e=An(d))?void 0:e.assigneeUser)||""}));this.ccUpdate$=this.issueDetailsBrain.issueJs$.pipe(R(function(d){var e;return Ol(null==(e=An(d))?void 0:e.ccUsers)||[]}));this.assignee$=
this.assigneeUpdate$.pipe(Zf({refCount:!0,bufferSize:1}));this.cc$=this.ccUpdate$.pipe(Zf({refCount:!0,bufferSize:1}));this.assigneeUpdating$=this.assigneeInProgress$;this.ccUpdating$=this.ccInProgress$;this.editAccess$=this.issuePermissionService.hasAclToEdit$};U(nS,wI);nS.\u0275dir=wI.\u0275dir;
var pRb=function(a,b){var c,d,e;return bf(function(f){switch(f.nextAddress){case 1:c=Hk(a.id$);if(!c)return f.return();a.assigneeInProgress$.next(!0);d="remove_user"===b.action?"":b.email;Qt(f,2,3);return cf(f,kt(a.editIssueService,c,d),5);case 5:return cf(f,(0,S.firstValueFrom)(a.assigneeUpdate$.pipe(rf(function(h){h=b.email===h;return"set_user"===b.action?h:!h}),tf(6E4))),3);case 3:Tt(f);a.assigneeInProgress$.next(!1);Ut(f,0);break;case 2:throw e=St(f),e;}})},qRb=function(a,b){var c,d,e,f,h;return bf(function(k){switch(k.nextAddress){case 1:c=
Hk(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=dRb(a.editIssueService,c,d.cc.filter(function(q){return q!==b.email}))):f=dRb(a.editIssueService,c,[].concat(u(d.cc),[b.email]));if(!f)return k.return();Qt(k,2,3);a.ccInProgress$.next(!0);return cf(k,f,5);case 5:return cf(k,(0,S.firstValueFrom)(a.ccUpdate$.pipe(rf(function(q){q=q.includes(b.email);return"set_user"===b.action?q:!q}),tf(6E4))),
3);case 3:Tt(k);a.ccInProgress$.next(!1);Ut(k,0);break;case 2:throw h=St(k),h;}})};nS.\u0275fac=function(a){return new (a||nS)(t(kO),t(mO),t(mS))};nS.\u0275prov=dc({token:nS,factory:nS.\u0275fac});
var oS=function(a,b,c){wI.call(this);this.domSafe=a;this.cdr=b;this.actionService=c;this.currentAssignee="";this.currentCc=[];this.ccActionDisabled=this.assigneeActionDisabled=!1};U(oS,wI);oS.\u0275dir=wI.\u0275dir;
oS.prototype.ngOnInit=function(){var a=this;if(this.actionService){var b;null==(b=this.actionService)||b.assignee$.pipe(cg(this.destroyed$)).subscribe(function(d){a.currentAssignee=d;a.cdr.detectChanges()});var c;null==(c=this.actionService)||c.cc$.pipe(cg(this.destroyed$)).subscribe(function(d){a.currentCc=d;a.cdr.detectChanges()})}};
var qAa=function(a){if(a.actionService&&!a.assigneeActionDisabled){a.assigneeActionDisabled=!0;var b=a.email===a.currentAssignee?"remove_user":"set_user";Un(io.PERSON_CARD,"assigneeAction",b);pRb(a.actionService,{email:a.email,action:b}).finally(function(){a.assigneeActionDisabled=!1})}},rAa=function(a){if(a.actionService&&!a.ccActionDisabled){a.ccActionDisabled=!0;var b=a.currentCc.includes(a.email)?"remove_user":"set_user";Un(io.PERSON_CARD,"ccAction",b);qRb(a.actionService,{email:a.email,action:b}).finally(function(){a.ccActionDisabled=
!1})}};oS.\u0275fac=function(a){return new (a||oS)(D(tP),D(sI,2),D(nS,8))};
oS.\u0275cmp=w({type:oS,selectors:[["b-issue-person-card"]],inputs:{email:"email"},features:[Ge([sI]),ae],decls:6,vars:4,consts:[[3,"email"],["class","actions",4,"ngIf"],[3,"click"],[1,"actions"],[3,"disabled","onAction"]],template:function(a,b){a&1&&(F(0,"b-person-card",0),M(1,sAa,9,8,"ng-container",1),P(2,"async"),F(3,"onedev-hovercard-action",2),J("click",function(c){Vn(io.PERSON_CARD,"showAssignedIssuesAction");var d=mn({q:"assignee:"+b.email+" status:open"});c.ctrlKey||c.metaKey?b.domSafe.openInNewTab(d):
vP(b.domSafe,d)}),F(4,"span"),O(5,"Show assigned issues"),G()()());a&2&&(C("email",b.email),B(1),C("ngIf",b.actionService&&Q(2,2,b.actionService.editAccess$)))},dependencies:[Cx,XN,wR,Px],encapsulation:2,changeDetection:0});
var pS=function(a,b){var c=this;this.session=a;this.userProfiles=b;this.hovercardEnabled=this.availabilityChipEnabled=!0;this.hovercardFocusEnabled=!1;this.email$=new S.ReplaySubject(1);this.showEmail$=new S.BehaviorSubject(!1);this.isNonObfuscatedEmail=Nn;this.userProfile$=this.email$.pipe(bg(function(d){return c.userProfiles.get(d)})).pipe(ag(new zR));this.content$=(0,S.combineLatest)([this.email$,this.userProfile$,this.showEmail$]).pipe(R(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,S.combineLatest)([this.email$,this.content$]).pipe(R(function(d){var e=r(d);d=e.next().value;e=e.next().value;return{email:d,content:e}}));this.enableWaldoAvailability=xH(this.session,"enableWaldoAvailability")&&this.session.isInternalSession()};li.Object.defineProperties(pS.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)}}});
pS.\u0275fac=function(a){return new (a||pS)(D(vH),D(BR))};
pS.\u0275cmp=w({type:pS,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&&(M(0,xAa,4,2,"ng-container",
0),P(1,"async"));a&2&&C("ngIf",Q(1,1,b.vars$))},dependencies:[Cx,Mx,ER,oS,nN,rN,Px],encapsulation:2,changeDetection:0});
var qS=function(){this.model={};this.hovercardEnabled=this.availabilityChipEnabled=!0;this.hovercardFocusEnabled=!1};qS.prototype.getDisplayString=function(){return Nl(this.model)};var rRb=function(a){var b=a.model;return(b&&b.getUserGaiaStatus?Iqa(Pl(b)):Iqa(b))&&!!a.getEmailAddress()};qS.prototype.getEmailAddress=function(){return Ql(this.model)||""};qS.\u0275fac=function(a){return new (a||qS)};
qS.\u0275cmp=w({type:qS,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&&(qe(0),M(1,yAa,1,4,"b-user-display-name",0),M(2,zAa,2,1,"span",
1),re());a&2&&(B(1),C("ngIf",rRb(b)),B(1),C("ngIf",!rRb(b)))},dependencies:[Cx,pS],styles:[".b-user-display-span[_ngcontent-%COMP%]{margin-right:2px;margin-top:-1px;font-family:Roboto,Arial,sans-serif;font-size:.8125rem}"],changeDetection:0});
var rS=function(a){var b=this;this.userProfiles=a;this.email$=new S.ReplaySubject(1);this.isNonObfuscatedEmail=Nn;this.userProfile$=this.email$.pipe(bg(function(c){return c?b.userProfiles.get(c).pipe(ag(new zR)):(0,S.of)(void 0)}));this.vars$=(0,S.combineLatest)([this.email$,this.userProfile$]).pipe(R(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}}))};li.Object.defineProperties(rS.prototype,{email:{configurable:!0,enumerable:!0,set:function(a){Nn(a)?this.email$.next(a):this.email$.next(void 0)}}});rS.\u0275fac=function(a){return new (a||rS)(D(BR))};
rS.\u0275cmp=w({type:rS,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&&(M(0,EAa,4,2,"ng-container",0),P(1,"async"));a&2&&C("ngIf",Q(1,1,b.vars$))},dependencies:[Cx,Mx,oS,nN,rN,Px],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 sS=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()})};sS.prototype.trackByIndex=function(a){return a};
sS.prototype.startFeedback=function(){this.userFeedback.startFeedback()};sS.\u0275fac=function(a){return new (a||sS)(D(sI,2),D(xQ),D(XB),D(IK),D(dy),D(TK),D(UO))};
sS.\u0275cmp=w({type:sS,selectors:[["comment-history-dialog"]],features:[Ge([sI])],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",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&&(F(0,"h2",0),O(1),G(),F(2,"mat-dialog-content")(3,"div",
1)(4,"b-checkbox",2),J("change",function(c){return b.diffView=c}),G()(),F(5,"a",3),J("click",function(){return b.startFeedback()}),O(6,"Feedback"),G(),H(7,"br",4),M(8,FAa,2,0,"div",5),M(9,UAa,2,2,"ul",6),G(),F(10,"mat-dialog-actions")(11,"button",7),O(12,"Close"),G()());a&2&&(B(1),De("History for Comment #",b.commentNumber,""),B(3),C("checked",b.diffView),B(4),C("ngIf",b.isLoading),B(1),C("ngIf",!b.isLoading))},dependencies:[Gx,Cx,JP,tQ,BB,$B,aC,bC,cC,xR,kN,rS,qS,Px,lS,yR],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}b-formatted-date-time[_ngcontent-%COMP%]{float:right}[_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 tS=function(){};tS.\u0275fac=function(a){return new (a||tS)};tS.\u0275mod=uc({type:tS});tS.\u0275inj=gc({imports:[Wx]});
var uS=function(){};uS.\u0275fac=function(a){return new (a||uS)};uS.\u0275mod=uc({type:uS});uS.\u0275inj=gc({});
var vS=function(){};vS.\u0275fac=function(a){return new (a||vS)};vS.\u0275mod=uc({type:vS});vS.\u0275inj=gc({imports:[tS,Wx,uS,wF]});
var wS=function(){};wS.\u0275fac=function(a){return new (a||wS)};wS.\u0275mod=uc({type:wS});wS.\u0275inj=gc({providers:[IQ],imports:[DQ]});
/*

 Copyright 2005, 2007 Bob Ippolito. All Rights Reserved.
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: MIT
*/
var xS=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};du(xS,VAa);
xS.prototype.cancel=function(a){if(this.fired_)this.result_ instanceof xS&&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 yS(this))}};xS.prototype.continue_=function(a,b){this.blocked_=!1;sRb(this,a,b)};
var sRb=function(a,b,c){a.fired_=!0;a.result_=c;a.hadError_=!b;tRb(a)},vRb=function(a){if(a.fired_){if(!a.silentlyCanceled_)throw new uRb(a);a.silentlyCanceled_=!1}};xS.prototype.callback=function(a){vRb(this);sRb(this,!0,a)};xS.prototype.errback=function(a){vRb(this);sRb(this,!1,a)};xS.prototype.addCallback=function(a,b){return wRb(this,a,null,b)};var wRb=function(a,b,c,d){a.sequence_.push([b,c,d]);a.fired_&&tRb(a);return a};
xS.prototype.then=function(a,b,c){var d,e,f=new FD(function(h,k){e=h;d=k});wRb(this,e,function(h){h instanceof yS?f.cancel():d(h)});return f.then(a,b,c)};xS.prototype.$goog_Thenable=!0;xS.prototype.branch=function(a){var b=new xS;wRb(this,b.callback,b.errback,b);a&&(b.parent_=this,this.branches_++);return b};xS.prototype.isError=function(a){return a instanceof Error};
var xRb=function(a){return mib(a.sequence_,function(b){return"function"===typeof b[1]})},tRb=function(a){if(a.unhandledErrorId_&&a.fired_&&xRb(a)){var b=a.unhandledErrorId_,c=yRb[b];c&&(ca.clearTimeout(c.id_),delete yRb[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(vsb(b)||"function"===typeof ca.Promise&&b instanceof ca.Promise)d=!0,a.blocked_=!0}catch(q){b=q,a.hadError_=!0,xRb(a)||(c=!0)}}a.result_=b;d&&(k=$t(a.continue_,a,!0),d=$t(a.continue_,a,!1),b instanceof xS?(wRb(b,k,d),b.blocking_=!0):b.then(k,d));c&&(b=new zRb(b),yRb[b.id_]=b,a.unhandledErrorId_=b.id_)},uRb=function(){aa.call(this)};du(uRb,aa);uRb.prototype.message="Deferred has already fired";uRb.prototype.name="AlreadyCalledError";var yS=function(){aa.call(this)};
du(yS,aa);yS.prototype.message="Deferred was canceled";yS.prototype.name="CanceledError";var zRb=function(a){this.id_=ca.setTimeout($t(this.throwError,this),0);this.error_=a};zRb.prototype.throwError=function(){delete yRb[this.id_];throw this.error_;};var yRb={};
var $Aa=function(a,b){var c=b||{};b=c.document||document;var d=vh(a),e=(new nD(b)).createElement("SCRIPT"),f={script_:e,timeout_:void 0},h=new xS(ARb,f),k=null,q=null!=c.timeout?c.timeout:5E3;0<q&&(k=window.setTimeout(function(){BRb(e,!0);h.errback(new CRb(1,"Timeout reached for loading script "+d))},q),f.timeout_=k);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(BRb(e,c.cleanupWhenDone||!1,k),h.callback(null))};e.onerror=function(){BRb(e,
!0,k);h.errback(new CRb(0,"Error while loading script "+d))};f=c.attributes||{};Dja(f,{type:"text/javascript",charset:"UTF-8"});csb(e,f);Vqb(e,a);DRb(b).appendChild(e);return h},DRb=function(a){var b=qD("HEAD",a);return b&&0!==b.length?b[0]:a.documentElement},ARb=function(){if(this&&this.script_){var a=this.script_;a&&"SCRIPT"==a.tagName&&BRb(a,!0,this.timeout_)}},BRb=function(a,b,c){null!=c&&ca.clearTimeout(c);a.onload=function(){};a.onerror=function(){};a.onreadystatechange=function(){};b&&window.setTimeout(function(){xD(a)},
0)},CRb=function(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);aa.call(this,c);this.code=a};du(CRb,aa);
var WAa=null,Do=new WeakMap;
var zS=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,S.defer)(function(){return YAa().then(function(f){f=f||window.gapi;e.setGapiConfig(f);return cBa(f,{apiKey:e.gapiKey,clientId:e.gapiAuthParams.clientId,scope:e.gapiAuthParams.scope}).then(function(){return f})})})};U(zS,sPb);
zS.prototype.makeRequest=function(a){var b=this;return this.gapi.pipe(kf(function(c){var d=(0,S.of)(void 0);void 0!==b.gapiAuthParams.minAuthTokenTimeRemaining&&(d=(0,S.from)(bBa(c,b.gapiAuthParams.minAuthTokenTimeRemaining)));return d.pipe(kf(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}))}))}))};
zS.prototype.parseResponse=function(a){return new S.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)})})};zS.prototype.setGapiConfig=function(a){for(var b in this.gapiConfigUpdates)this.gapiConfigUpdates.hasOwnProperty(b)&&aBa(a,b,this.gapiConfigUpdates[b])};
var ERb=function(a,b,c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;zS.call(this,a,c,d,e);this.waldoApiKey=b};U(ERb,zS);ERb.prototype.makeRequest=function(a){var b=zS.prototype.makeRequest,c=b.call;(a.queryParams||(a.queryParams={})).key=this.waldoApiKey;return c.call(b,this,a)};
var It=function(a){this.proxiedService=a};U(It,sPb);It.prototype.makeRequest=function(a){var b=this;return(0,S.defer)(function(){return b.proxiedService.makeRequest(a)})};
var FRb=new ld("environment"),GRb={"client/cors":!0,"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0},AS=function(){};AS.\u0275fac=function(a){return new (a||AS)};AS.\u0275mod=uc({type:AS});AS.\u0275inj=gc({imports:[Wx,dR]});
var BS=function(){};BS.\u0275fac=function(a){return new (a||BS)};BS.\u0275mod=uc({type:BS});BS.\u0275inj=gc({imports:[Wx,wS,vS,AS]});
var CS=function(){};CS.\u0275fac=function(a){return new (a||CS)};CS.\u0275mod=uc({type:CS});CS.\u0275inj=gc({imports:[Wx,BS,YN]});
var DS=function(){};DS.\u0275fac=function(a){return new (a||DS)};DS.\u0275mod=uc({type:DS});DS.\u0275inj=gc({imports:[AS,Wx,kP]});
var ES=function(){};ES.\u0275fac=function(a){return new (a||ES)};ES.\u0275mod=uc({type:ES});ES.\u0275inj=gc({imports:[Wx,YN,CS]});
var FS=function(a){this.session=a;this.isNonObfuscatedEmail=Nn;this.email="";this.withProfile=!0;this.enableWaldoAvailability=xH(this.session,"enableWaldoAvailability")&&this.session.isInternalSession()};FS.\u0275fac=function(a){return new (a||FS)(D(vH))};
FS.\u0275cmp=w({type:FS,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&&(F(0,"span",0),M(1,dBa,1,1,"b-user-image",1),M(2,fBa,6,3,"ng-container",2),M(3,gBa,2,1,"ng-template",null,3,Jf),M(5,hBa,2,1,"span",4),G());if(a&2){var c=Ce(4);B(1);C("ngIf",b.withProfile);B(1);C("ngIf",b.isNonObfuscatedEmail(b.email))("ngIfElse",c);B(3);C("ngIf",b.enableWaldoAvailability)}},dependencies:[Cx,Mx,ER,oS,nN,rN,rS],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 HRb=0,GS=function(a,b){var c=this;this.teamsService=a;this.session=b;this.teamId="";this.enableSmallChip=!1;this.providedTeamId$=new S.ReplaySubject(1);this.providedUser$=new S.ReplaySubject(1);this.providedEmail$=new S.ReplaySubject(1);this.isNonObfuscatedEmail=Nn;this.fetchedTeam$=this.providedTeamId$.pipe(bg(function(d){return c.teamsService.getTeam(d)}),Mf(function(){return(0,S.of)((new fM).setTeamId(c.teamId).setName(c.teamId).setDescription(""))}));this.detailedUserType$=this.providedUser$.pipe(R(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}),ag(0));this.isTeamMember$=(0,S.combineLatest)([this.providedTeamId$,this.providedEmail$]).pipe(bg(function(d){var e=r(d);d=e.next().value;e=e.next().value;return AKb(c.teamsService,d,e)}),ag(!1),Mf(function(){return(0,S.of)(!1)}));this.teamUser$=this.fetchedTeam$.pipe(R(function(d){return"Member of "+
d.getName()}));this.groupMembershipType$=(0,S.combineLatest)([this.detailedUserType$,this.isTeamMember$]).pipe(R(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=xH(this.session,"enableExternalAnnotations");this.enableWaldoAvailability=xH(this.session,"enableWaldoAvailability")&&this.session.isInternalSession();
this.userTypeClass$=this.groupMembershipType$.pipe(R(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(R(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(R(function(d){return d&&
"INTERNAL_NON_TEAM_MEMBER"!==d}));this.iconName$=this.groupMembershipType$.pipe(R(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(eg(this.teamUser$),R(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""}));HRb++};GS.prototype.ngOnInit=function(){};GS.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)};GS.\u0275fac=function(a){return new (a||GS)(D(jM),D(vH))};
GS.\u0275cmp=w({type:GS,selectors:[["b-user-membership-chip"]],inputs:{user:"user",email:"email",teamId:"teamId",enableSmallChip:"enableSmallChip"},features:[Cc],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&&(F(0,"span",0),P(1,"async"),F(2,"span",0),P(3,"async"),M(4,iBa,1,1,"b-user-image",1),M(5,jBa,1,3,"b-user-display-name",2),M(6,nBa,3,2,"ng-template",null,3,Jf),M(8,oBa,3,6,"mat-icon",4),P(9,"async"),G()(),M(10,pBa,2,1,"ng-container",
5));if(a&2){var c=Ce(7),d,e;C("ngClass",null!==(d=Q(1,7,b.userTypeClass$))&&void 0!==d?d:"");B(2);C("ngClass",null!==(e=Q(3,9,b.userChipType$))&&void 0!==e?e:"");B(2);C("ngIf",b.enableSmallChip);B(1);C("ngIf",!b.enableSmallChip)("ngIfElse",c);B(3);C("ngIf",Q(9,11,b.shouldShowIcon$));B(2);C("ngIf",b.enableWaldoAvailability&&!b.enableSmallChip)}},dependencies:[Fx,Cx,Mx,ER,dF,sF,oS,nN,rN,rS,pS,Px],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 HS=function(){};HS.\u0275fac=function(a){return new (a||HS)};HS.\u0275mod=uc({type:HS});HS.\u0275inj=gc({imports:[Wx,DS,wF,lH,CS,ES,YN]});
var IS=function(){};IS.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""}};IS.\u0275fac=function(a){return new (a||IS)};IS.\u0275pipe=wc({name:"toAccessLevelLabel",type:IS,pure:!0});
var IRb={TEXT:"Text",DATE:"Date",ENUM:"Enum",NUMERIC:"Numeric",REPEATED_TEXT:"Repeated Text",REPEATED_DATE:"Repeated Date",REPEATED_ENUM:"Repeated Enum",REPEATED_NUMERIC:"Repeated Numeric"},JS=function(){};JS.prototype.transform=function(a){return IRb[a]};JS.\u0275fac=function(a){return new (a||JS)};JS.\u0275pipe=wc({name:"toCustomFieldTypeDisplayValue",type:JS,pure:!0});
var KS=function(){};KS.\u0275fac=function(a){return new (a||KS)};KS.\u0275mod=uc({type:KS});KS.\u0275inj=gc({imports:[Wx]});
var LS=function(){};LS.\u0275fac=function(a){return new (a||LS)};LS.\u0275mod=uc({type:LS});LS.\u0275inj=gc({imports:[Wx,cQ,uQ,BG,dC,CS,KS,WN,HS]});
var qBa=function(){},Eo=function(a,b,c,d,e){"undefined"==typeof e&&(e=(new Date).getTime()+1E3);if(null==b||null==c)throw Error("Kd");if(b==c)return b?[[0,b]]:[];"undefined"==typeof d&&(d=!0);var f=JRb(b,c),h=b.substring(0,f);b=b.substring(f);c=c.substring(f);f=KRb(b,c);var k=b.substring(b.length-f);b=b.substring(0,b.length-f);c=c.substring(0,c.length-f);b=LRb(a,b,c,d,e);h&&b.unshift([0,h]);k&&b.push([0,k]);MRb(a,b);return b},LRb=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=NRb(b,c))return c=f[1],h=f[3],b=f[4],f=Eo(a,f[0],f[2],d,e),a=Eo(a,c,h,d,e),f.concat([[0,b]],a);if(d&&100<b.length&&100<c.length){b=ORb(b,c);c=b.lineArray;b=Eo(a,b.chars1,b.chars2,!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("")}rBa(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=Eo(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),v=Array(k),y=0;y<k;y++)q[y]=-1,v[y]=-1;q[h+1]=0;v[h+1]=0;y=d-f;for(var E=0!=y%2,I=0,N=0,L=0,T=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 ra=ka==-Y||ka!=Y&&q[ha-1]<q[ha+1]?q[ha+1]:q[ha-1]+1;for(var Da=ra-ka;ra<d&&Da<f&&b.charAt(ra)==c.charAt(Da);)ra++,Da++;q[ha]=ra;if(ra>d)N+=2;else if(Da>f)I+=2;else if(E&&(ha=h+y-ka,0<=ha&&ha<k&&-1!=v[ha])){var Ja=d-v[ha];if(ra>=Ja){a=PRb(a,b,c,ra,Da,e);break a}}}for(ka=-Y+L;ka<=Y-T;ka+=2){ha=h+ka;Ja=ka==-Y||ka!=Y&&v[ha-1]<v[ha+1]?v[ha+1]:v[ha-1]+1;for(ra=Ja-ka;Ja<d&&ra<f&&b.charAt(d-Ja-1)==c.charAt(f-ra-1);)Ja++,ra++;v[ha]=Ja;if(Ja>d)T+=2;else if(ra>f)L+=2;else if(!E&&
(ha=h+y-ka,0<=ha&&ha<k&&-1!=q[ha]&&(ra=q[ha],Da=h+ra-ha,Ja=d-Ja,ra>=Ja))){a=PRb(a,b,c,ra,Da,e);break a}}}a=[[-1,b],[1,c]]}return a},PRb=function(a,b,c,d,e,f){var h=b.substring(d),k=c.substring(e);b=Eo(a,b.substring(0,d),c.substring(0,e),!1,f);a=Eo(a,h,k,!1,f);return b.concat(a)},ORb=function(a,b){function c(h){for(var k="",q=0,v=-1,y=d.length;v<h.length-1;){v=h.indexOf("\n",q);-1==v&&(v=h.length-1);var E=h.substring(q,v+1);(e.hasOwnProperty?e.hasOwnProperty(E):void 0!==e[E])?k+=String.fromCharCode(e[E]):
(y==f&&(E=h.substring(q),v=h.length),k+=String.fromCharCode(y),e[E]=y,d[y++]=E);q=v+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}},JRb=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},KRb=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},QRb=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++}},NRb=function(a,b){function c(k,q,v){for(var y=k.substring(v,v+Math.floor(k.length/4)),E=-1,I="",
N,L,T,Y;-1!=(E=q.indexOf(y,E+1));){var ka=JRb(k.substring(v),q.substring(E)),ha=KRb(k.substring(0,v),q.substring(0,E));I.length<ha+ka&&(I=q.substring(E-ha,E)+q.substring(E,E+ka),N=k.substring(0,v-ha),L=k.substring(v+ka),T=q.substring(0,E-ha),Y=q.substring(E+ka))}return 2*I.length>=k.length?[N,L,T,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]]},rBa=function(a,b){for(var c=!1,d=[],e=0,f=null,h=0,k=0,q=0,v=0,y=0;h<b.length;)0==b[h][0]?(d[e++]=h,k=v,q=y,y=v=0,f=b[h][1]):(1==b[h][0]?v+=b[h][1].length:y+=b[h][1].length,f&&f.length<=Math.max(k,q)&&f.length<=Math.max(v,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=v=q=k=0,f=null,c=!0)),h++;c&&MRb(a,b);RRb(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=QRb(a,c);e=QRb(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++}},RRb=function(a){function b(E,I){if(!E||!I)return 6;var N=E.charAt(E.length-1),L=I.charAt(0),T=N.match(SRb),Y=L.match(SRb),
ka=T&&N.match(TRb),ha=Y&&L.match(TRb);N=ka&&N.match(URb);L=ha&&L.match(URb);E=N&&E.match(VRb);I=L&&I.match(WRb);return E||I?5:N||L?4:T&&!ka&&ha?3:ka||ha?2:T||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=KRb(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,v=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>=v&&(v=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++}},SRb=/[^a-zA-Z0-9]/,TRb=/\s/,URb=/[\r\n]/,VRb=/\n\r?\n$/,WRb=/^\r?\n\r?\n/,MRb=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=JRb(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=KRb(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&&MRb(a,b)};
var MS=function(a,b,c){this.analytics=a;this.issueComments=b;this.dialogManager=c};MS.prototype.show=function(a,b,c){var d=this,e;return bf(function(f){if(d.dialog&&2!==d.dialog.getState())return f.return();eo(d.analytics,"commentHistoryModal","open");e={issueId:a,commentNumber:b,commentVersion:c,commentHistory:XRb(d,a,b,c)};d.dialog=d.dialogManager.open(sS,{data:e,width:"50vw"});return f.return((0,S.firstValueFrom)(NB(d.dialog)))})};
var XRb=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 v=e.next();!v.done;v=e.next()){v=v.value;var y=tBa(v);y||k?(f=NS(v.unlinkifiedComment),h=NS(v.formattingMode)):(f=sBa(f,v.unlinkifiedComment),k=v.formattingMode,h=h===k?NS(k):Sn(NS(h,"diff-removed"),NS(k,"diff-added")));k=void 0===v.unlinkifiedComment?"":v.unlinkifiedComment;var E=v.version,I=v.commentContentVerdict;
q.push({comment:v.comment,unlinkifiedComment:k,lastEditorUser:v.lastEditorUser,version:E,formattingMode:v.formattingMode,formattingModeDiff:h,lastModified:Number(v.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:tBa(v)});f=v.unlinkifiedComment;h=v.formattingMode;k=y}-1<d?q[d].open=!0:q[0].open=!0;return q})},NS=function(a,b){return Rn("SPAN",b?{"class":b}:null,a)};
MS.\u0275fac=function(a){return new (a||MS)(t(QM),t(pO),t(ZB))};MS.\u0275prov=dc({token:MS,factory:MS.\u0275fac,providedIn:"root"});
var YRb=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"]]),ZRb=new Map([[0,"Unknown"],[1,"Enabled"],[2,"Disabled"]]),$Rb=new Map([[1,"Default (10 years)"],[2,"Custom Period"],[3,"Indefinite"]]),aSb=new Map([[1,"Default (60 days)"],[2,"Custom Period"],[3,"Match Issue Retention"]]);
var bSb=function(a){return a?new Set(jb(a,1).map(function(b){return Ii(b)})):new Set},OS=function(a,b,c){return a.has(b)?c:""},cSb=function(a,b,c){return a.has(b)?c:[]},PS=function(a,b,c){return{fieldName:a,diffType:"SINGLE_VALUE",diff:{oldValue:b,newValue:c}}};
var QS=function(a,b){this.$log=a;this.sessionIsInternal=b.isInternalSession()};QS.\u0275fac=function(a){return new (a||QS)(t(HK),t(vH))};QS.\u0275prov=dc({token:QS,factory:QS.\u0275fac,providedIn:"root"});
var dSb=function(a){if(!a)return"";var b=$Rb.get(X(a,1,0)),c=ej(a,2),d="Issue Retention: "+b;b=d;c&&(b=d+(", Days: "+c));d=aSb.get(X(a,3,0));c=ej(a,4);a=ej(a,5);d=", Restricted Retention: "+d;c&&(d+=", Restricted Days: "+c);a&&(d+=", Restricted+ Days: "+a);return b+d},fSb=function(a){if(!a)return"";var b=a.getInherit(),c=eSb.get(a.getSource()),d=a.getId();a=a.getComment();b="Inherit: "+b+", Source: "+c+", ID: "+d;return a?b+(", Justification: "+a):b},eSb=new Map([[0,"--"],[1,"User"],[2,"Bugscope"]]),
gSb=function(a){if(!a)return"";var b=a.getInherit();a=a.getId();return"Inherit: "+b+", ID: "+a};
var hSb=Gh({opacity:"0"}),iSb=rf(function(a){return a}),jSb=(0,S.pipe)(Pf(),iSb,Uf()),kSb=new ld("xap-bubble UX style"),RS=function(a){var b=this;this.activity=new S.Subject;this.openedSubject=new S.BehaviorSubject(!1);this.destroy=new S.ReplaySubject;this.overlayPositions=[];this.overlayPanelClass="";this.hoverDelayMs=50;this.beforeShow=this.beforeOpened=new Rw;this.onOpened=new Rw;this.bubbleStyle=a||"xap-bubble-md1";this.opened=this.openedSubject.pipe(Xga(function(){return b.activity.pipe(Nf(b.hoverDelayMs))}));
a=cg(this.destroy);this.opened.pipe(jSb,a).subscribe(this.onOpened);this.openedSubject.pipe(iSb,Kha(function(){return b.opened.pipe(rf(function(c){return!c}))}),a).subscribe(function(){b.beforeOpened.emit()})};RS.prototype.ngOnDestroy=function(){this.destroy.next();this.destroy.complete()};RS.prototype.toggle=function(a){this.openedSubject.next(a);this.activity.next()};RS.\u0275fac=function(a){return new (a||RS)(D(kSb,8))};
RS.\u0275cmp=w({type:RS,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&&(xe(),F(0,"span",0,1),J("mouseenter",function(){return b.toggle(!0)})("mouseleave",function(){return b.toggle(!1)})("mousemove",function(){b.activity.next()}),ye(2),G(),M(3,vBa,2,3,"ng-template",2),P(4,"async"));if(a&2){var c=Ce(1);C("ngClass",b.bubbleStyle);
B(3);C("cdkConnectedOverlayPanelClass",b.overlayPanelClass)("cdkConnectedOverlayPositions",b.overlayPositions)("cdkConnectedOverlayOrigin",c)("cdkConnectedOverlayOpen",Q(4,5,b.opened))}},dependencies:[Fx,Mx,eB,dB,Px],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:[Eh("fade",[Ih(":enter",[hSb,Fh("225ms")]),Ih(":leave",[Fh("195ms",hSb)])])]}});
var SS=function(a,b){this.activeSession=a;this.documentationLinks=b;this.labelOnlyMode=this.compactMode=!1;this.bubbleText=this.chipClass=""};
SS.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=""}};SS.\u0275fac=function(a){return new (a||SS)(D(vH),D(rP))};
SS.\u0275cmp=w({type:SS,selectors:[["b-access-level-indicator"]],inputs:{accessLevel:"accessLevel",compactMode:"compactMode",labelOnlyMode:"labelOnlyMode"},features:[Cc],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&&M(0,zBa,4,2,"ng-container",0);if(a&2){if(a=b.accessLevel)a=b.activeSession.isInternalSession()?"EXTERNAL_PARTNER"===b.accessLevel||
"EXTERNAL_PUBLIC"===b.accessLevel:wH(b.activeSession)?"EXTERNAL_PUBLIC"===b.accessLevel:!1;C("ngIf",a)}},dependencies:[Fx,Cx,RS,IS],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 TS=function(a,b){wI.call(this);var c=this;this.componentFridge=a;this.activeSession=b;this.providedComponentId$=new S.ReplaySubject(1);this.component$=this.providedComponentId$.pipe(bg(function(d){return c.componentFridge.watch(d)}),Zf({refCount:!0,bufferSize:1}));this.init=new S.ReplaySubject(1);this.isAnonymous=this.activeSession.isAnonymous()};U(TS,wI);TS.\u0275dir=wI.\u0275dir;
TS.prototype.ngOnInit=function(){var a=this;this.providedComponentId$.next(this.componentId);this.recentIssuesUrl=mn({q:"status:open componentid:"+this.componentId,s:"created_time:desc"});this.createIssueUrl=ln("issues/new",{params:void 0})+"?component="+this.componentId;this.viewComponentUrl=Ssa(this.componentId,"basic");this.component$.pipe(Qf(),cg(this.destroyed$)).subscribe(function(){a.init.next()})};TS.\u0275fac=function(a){return new (a||TS)(D(NJ),D(vH))};
TS.\u0275cmp=w({type:TS,selectors:[["b-component-card"]],inputs:{componentId:"componentId"},outputs:{init:"init"},features:[ae],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&&(F(0,"div",0)(1,"div",1),M(2,BBa,16,8,"ng-container",2),P(3,"async"),G()());a&2&&(B(2),C("ngIf",Q(3,1,b.component$)))},dependencies:[Cx,
SS,Px],styles:["[_nghost-%COMP%]{max-width:400px}ul[_ngcontent-%COMP%]{list-style-type:none;padding:0}"]});
var US=function(){this.changes=new S.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}};US.\u0275fac=function(a){return new (a||US)};US.\u0275prov=dc({token:US,factory:US.\u0275fac,providedIn:"root"});
var lSb={provide:US,deps:[[new Nv,new Ov,US]],useFactory:function(a){return a||new US}};
var mSb=Eh("transformPanelWrap",[Ih("* => void",Kh("@transformPanel",[Jh()]))]),nSb=Eh("transformPanel",[Hh("void",Gh({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Hh("showing",Gh({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Hh("showing-multiple",Gh({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Ih("void => *",Fh("120ms cubic-bezier(0, 0, 0.2, 1)")),Ih("* => void",Fh("100ms 25ms linear",Gh({opacity:0})))]);
var oSb=["trigger"],pSb=["panel"],qSb=[[["mat-select-trigger"]],"*"],rSb=0,sSb=new ld("mat-select-scroll-strategy"),tSb=new ld("MAT_SELECT_CONFIG"),uSb={provide:sSb,deps:[cB],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}},vSb=function(a,b){this.source=a;this.value=b},wSb=ni(pi(oi(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 S.Subject})))),xSb=new ld("MatSelectTrigger"),
VS=function(){};VS.\u0275fac=function(a){return new (a||VS)};VS.\u0275dir=w({type:VS,selectors:[["mat-select-trigger"]],features:[Ge([{provide:xSb,useExisting:VS}])]});
var WS=function(a,b,c,d,e,f,h,k,q,v,y,E,I,N){var L=wSb.call(this,e,d,h,k,v)||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,ra){return ha===ra};L._uid="mat-select-"+rSb++;L._triggerAriaLabelledBy=null;L._destroy=new S.Subject;L._onChange=function(){};L._onTouched=function(){};L._valueId="mat-select-value-"+rSb++;L._panelDoneAnimatingStream=new S.Subject;var T;L._overlayPanelClass=
(null==(T=L._defaultOptions)?void 0:T.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,S.defer)(function(){var ha=L.options;return ha?ha.changes.pipe(ag(ha),bg(function(){return S.merge.apply(null,u(ha.map(function(ra){return ra.onSelectionChange})))})):L._ngZone.onStable.pipe(Qf(),bg(function(){return L.optionSelectionChanges}))});
L.openedChange=new Rw;L._openedStream=L.openedChange.pipe(rf(function(ha){return ha}),R(function(){}));L._closedStream=L.openedChange.pipe(rf(function(ha){return!ha}),R(function(){}));L.selectionChange=new Rw;L.valueChange=new Rw;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(WS,wSb);g=WS.prototype;g.ngOnInit=function(){var a=this;this._selectionModel=new EA(this.multiple);this.stateChanges.next();this._panelDoneAnimatingStream.pipe(Pf(),cg(this._destroy)).subscribe(function(){return a._panelDoneAnimating(a.panelOpen)})};
g.ngAfterContentInit=function(){var a=this;this._initKeyManager();this._selectionModel.changed.pipe(cg(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(ag(null),cg(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&&kA(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,jA(this._keyManager,null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())};
g.close=function(){this._panelOpen&&(this._panelOpen=!1,jA(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||hi(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||hi(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(Qf()).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))?mA(this._keyManager,a):this.panelOpen||mA(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=vpb(lA(jA(iA(kA(new pA(this.options),this._typeaheadDebounceInterval)),this._isRtl()?"rtl":"ltr")));this._keyManager.tabOut.pipe(cg(this._destroy)).subscribe(function(){a.panelOpen&&(!a.multiple&&a._keyManager.activeItem&&a._keyManager.activeItem._selectViaInteraction(),a.focus(),a.close())});this._keyManager.change.pipe(cg(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,S.merge)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(cg(b)).subscribe(function(c){a._onSelect(c.source,c.isUserInput);c.isUserInput&&!a.multiple&&a._panelOpen&&(a.close(),a.focus())});S.merge.apply(null,u(this.options.map(function(c){return c._stateChanges}))).pipe(cg(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?nA(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()};
li.Object.defineProperties(WS.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:lnb(b))?d:!1},set:function(a){this._required=Vg(a);
this.stateChanges.next()}},multiple:{configurable:!0,enumerable:!0,get:function(){return this._multiple},set:function(a){this._multiple=Vg(a)}},disableOptionCentering:{configurable:!0,enumerable:!0,get:function(){return this._disableOptionCentering},set:function(a){this._disableOptionCentering=Vg(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=Yg(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}}});WS.\u0275fac=function(a){return new (a||WS)(D(GA),D(vx),D(jg),D(pB),D(pd),D(rA,8),D(py,8),D(yy,8),D(nC,8),D(jy,10),Zc("tabindex"),D(sSb),D($z),D(tSb,8))};
WS.\u0275dir=w({type:WS,viewQuery:function(a,b){a&1&&(Bf(oSb,5),Bf(pSb,5),Bf(eB,5));if(a&2){var c;Af(c=Df())&&(b.trigger=c.first);Af(c=Df())&&(b.panel=c.first);Af(c=Df())&&(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:[ae,Cc]});
var XS=function(){var a=WS.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(XS,WS);XS.\u0275dir=WS.\u0275dir;g=XS.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;WS.prototype.ngOnInit.call(this);this._viewportRuler.change().pipe(cg(this._destroy)).subscribe(function(){a.panelOpen&&(a._triggerRect=a.trigger.nativeElement.getBoundingClientRect(),a._changeDetectorRef.markForCheck())})};
g.open=function(){var a=this;WS.prototype._canOpen.call(this)&&(WS.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(Qf()).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());WS.prototype._panelDoneAnimating.call(this,a)};g._getChangeEvent=function(a){return new vSb(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};XS.\u0275fac=function(){var a;return function(b){return(a||(a=ed(XS)))(b||XS)}}();
XS.\u0275cmp=w({type:XS,selectors:[["mat-select"]],contentQueries:function(a,b,c){a&1&&(Cf(c,xSb,5),Cf(c,xB,5),Cf(c,Tpb,5));if(a&2){var d;Af(d=Df())&&(b.customTrigger=d.first);Af(d=Df())&&(b.options=d);Af(d=Df())&&(b.optionGroups=d)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(a,b){a&1&&J("keydown",function(c){return b._handleKeydown(c)})("focus",function(){return b._onFocus()})("blur",function(){return b._onBlur()});
a&2&&(ge("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()),le("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:[Ge([{provide:jC,useExisting:XS},{provide:Spb,useExisting:XS}]),ae],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&&(xe(qSb),F(0,"div",0,1),J("click",function(){return b.toggle()}),F(3,"div",2),M(4,CBa,2,1,"span",3),M(5,FBa,3,2,"span",4),G(),F(6,"div",5),H(7,"div",6),G()(),M(8,GBa,4,14,"ng-template",7),J("backdropClick",function(){return b.close()})("attach",function(){return b._onAttached()})("detach",
function(){return b.close()}));if(a&2){var c=Ce(1);ge("aria-owns",b.panelOpen?b.id+"-panel":null);B(3);C("ngSwitch",b.empty);ge("id",b._valueId);B(1);C("ngSwitchCase",!0);B(1);C("ngSwitchCase",!1);B(3);C("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:[Fx,Ix,Jx,Kx,eB,dB],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:[mSb,nSb]},changeDetection:0});
var YS=function(){};YS.\u0275fac=function(a){return new (a||YS)};YS.\u0275mod=uc({type:YS});YS.\u0275inj=gc({providers:[uSb],imports:[Wx,fB,AB,gB,HA,pC,AB,gB]});
var ySb=new ld("MAT_PAGINATOR_DEFAULT_OPTIONS"),zSb=oi(nla(function(){})),ZS=function(a,b,c){var d=zSb.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 Rw;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(ZS,zSb);g=ZS.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})};
li.Object.defineProperties(ZS.prototype,{pageIndex:{configurable:!0,enumerable:!0,get:function(){return this._pageIndex},set:function(a){this._pageIndex=Math.max(Yg(a),0);this._changeDetectorRef.markForCheck()}},length:{configurable:!0,enumerable:!0,get:function(){return this._length},set:function(a){this._length=Yg(a);this._changeDetectorRef.markForCheck()}},pageSize:{configurable:!0,enumerable:!0,get:function(){return this._pageSize},set:function(a){this._pageSize=Math.max(Yg(a),0);this._updateDisplayedPageSizeOptions()}},
pageSizeOptions:{configurable:!0,enumerable:!0,get:function(){return this._pageSizeOptions},set:function(a){this._pageSizeOptions=(a||[]).map(function(b){return Yg(b)});this._updateDisplayedPageSizeOptions()}},hidePageSize:{configurable:!0,enumerable:!0,get:function(){return this._hidePageSize},set:function(a){this._hidePageSize=Vg(a)}},showFirstLastButtons:{configurable:!0,enumerable:!0,get:function(){return this._showFirstLastButtons},set:function(a){this._showFirstLastButtons=Vg(a)}}});
ZS.\u0275fac=function(){pe()};ZS.\u0275dir=w({type:ZS,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[ae]});var $S=function(a,b,c){a=ZS.call(this,a,b,c)||this;c&&null!=c.formFieldAppearance&&(a._formFieldAppearance=c.formFieldAppearance);return a};U($S,ZS);$S.\u0275dir=ZS.\u0275dir;
$S.\u0275fac=function(a){return new (a||$S)(D(US),D(vx),D(ySb,8))};
$S.\u0275cmp=w({type:$S,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[ae],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&&(F(0,"div",0)(1,"div",1),M(2,KBa,5,3,"div",2),F(3,"div",3)(4,"div",4),O(5),G(),M(6,LBa,3,5,"button",5),F(7,"button",6),J("click",function(){if(b.hasPreviousPage()){var c=b.pageIndex;--b.pageIndex;b._emitPageEvent(c)}}),Nc(),F(8,"svg",7),H(9,"path",8),G()(),Oc(),F(10,"button",9),J("click",function(){return b.nextPage()}),Nc(),F(11,"svg",7),H(12,"path",10),G()(),M(13,MBa,3,5,"button",11),G()()());a&2&&(B(2),C("ngIf",!b.hidePageSize),B(3),De(" ",b._intl.getRangeLabel(b.pageIndex,
b.pageSize,b.length)," "),B(1),C("ngIf",b.showFirstLastButtons),B(1),C("matTooltip",b._intl.previousPageLabel)("matTooltipDisabled",b._previousButtonsDisabled())("matTooltipPosition","above")("disabled",b._previousButtonsDisabled()),ge("aria-label",b._intl.previousPageLabel),B(3),C("matTooltip",b._intl.nextPageLabel)("matTooltipDisabled",b._nextButtonsDisabled())("matTooltipPosition","above")("disabled",b._nextButtonsDisabled()),ge("aria-label",b._intl.nextPageLabel),B(3),C("ngIf",b.showFirstLastButtons))},
dependencies:[Gx,Cx,BB,oC,XS,xB,sF],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 aT=function(a){this.paths=a;this.children=[];this.onVisit=new Rw;this.pageSize=25;this.pageSizeOptions=[10,25,100];this.childrenOnPage=[]};aT.prototype.ngOnInit=function(){this.childrenOnPage=this.children.slice(0,this.pageSize)};aT.\u0275fac=function(a){return new (a||aT)(D(TK))};
aT.\u0275cmp=w({type:aT,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&&(M(0,NBa,1,3,"mat-paginator",0),F(1,"ul",1),M(2,
OBa,6,4,"li",2),G());a&2&&(C("ngIf",b.children.length>b.pageSize),B(2),C("ngForOf",b.childrenOnPage))},dependencies:[Gx,Cx,nN,rN,TS,$S],encapsulation:2});
var bT=function(){};bT.\u0275fac=function(a){return new (a||bT)};bT.\u0275mod=uc({type:bT});bT.\u0275inj=gc({imports:[Wx,fB]});
var cT=function(){};cT.\u0275fac=function(a){return new (a||cT)};cT.\u0275mod=uc({type:cT});cT.\u0275inj=gc({imports:[Wx,KS,bT]});
var dT=function(){};dT.\u0275fac=function(a){return new (a||dT)};dT.\u0275mod=uc({type:dT});dT.\u0275inj=gc({imports:[Wx,cT]});
var eT=function(){};eT.\u0275fac=function(a){return new (a||eT)};eT.\u0275mod=uc({type:eT});eT.\u0275inj=gc({providers:[lSb],imports:[Wx,BG,YS,lH,gB]});
var fT=function(){};fT.\u0275fac=function(a){return new (a||fT)};fT.\u0275mod=uc({type:fT});fT.\u0275inj=gc({imports:[Wx,YN,dT,eT]});
var gT=function(){this.isGreyedOut=!0;this.linkUrl=this.displayName="";this.useCustomHandler=this.linkEnabled=!1;this.customHandler=new Rw};gT.prototype.handleClick=function(a){this.useCustomHandler&&(a.preventDefault(),this.customHandler.emit())};gT.\u0275fac=function(a){return new (a||gT)};
gT.\u0275cmp=w({type:gT,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&&(M(0,PBa,2,3,"span",0),M(1,QBa,2,2,"a",1));a&2&&(C("ngIf",b.isGreyedOut||
!b.linkEnabled),B(1),C("ngIf",!b.isGreyedOut&&b.linkEnabled))},dependencies:[Cx],encapsulation:2,changeDetection:0});
var hT=function(){};hT.\u0275fac=function(a){return new (a||hT)};hT.\u0275mod=uc({type:hT});hT.\u0275inj=gc({imports:[Wx]});
var iT=function(){this.shouldShowCopyIssueShortLinks=!1;this.shortLinkPrefix="b/";this.onClickCopyIssueIds=new Rw;this.onClickCopyIssueShortLinks=new Rw;this.onClickCopyAsIssueSearch=new Rw};iT.\u0275fac=function(a){return new (a||iT)};
iT.\u0275cmp=w({type:iT,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&&(F(0,"b-button-group")(1,"button",0),J("click",function(){return b.onClickCopyIssueIds.emit()}),H(2,"b-icon",1),G(),F(3,"button",2),H(4,"b-icon",3),G(),F(5,"mat-menu",null,4),M(7,RBa,2,1,"button",5),F(8,"button",6),J("click",function(){return b.onClickCopyAsIssueSearch.emit()}),
O(9," Copy as issue search "),G()()());if(a&2){var c=Ce(6);B(3);C("matMenuTriggerFor",c);B(4);C("ngIf",b.shouldShowCopyIssueShortLinks)}},dependencies:[Cx,iF,gF,lF,BB,nH,zH],encapsulation:2,changeDetection:0});
var ASb=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)};ASb.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};
ASb.prototype.destroy=function(){var a=this._textarea;a&&(a.remove(),this._textarea=void 0)};
var jT=function(a){this._document=a};jT.prototype.copy=function(a){a=new ASb(a,this._document);var b=a.copy();a.destroy();return b};jT.\u0275fac=function(a){return new (a||jT)(t(ji))};jT.\u0275prov=dc({token:jT,factory:jT.\u0275fac,providedIn:"root"});
new ld("CDK_COPY_TO_CLIPBOARD_CONFIG");
new ld("xap-clipboard-snackbar-options");
var kT=function(){};kT.\u0275fac=function(a){return new (a||kT)};kT.\u0275mod=uc({type:kT});kT.\u0275inj=gc({imports:[Wx,BG,wF,yK]});
var lT=function(){};lT.\u0275fac=function(a){return new (a||lT)};lT.\u0275mod=uc({type:lT});lT.\u0275inj=gc({imports:[Wx,mF,BG,aI,bI,kT]});
var mT=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/"},KJa=function(a,b){a.clipboard.copy(b.join(", "));FK(a.butterBar,"Issue IDs copied.",2E3);eo(a.analytics,io.LIST_ISSUES,"copyIssueId","IDs")},LJa=function(a,b){a.clipboard.copy(b.map(function(c){return a.shortLinkPrefix+c}).join(", "));FK(a.butterBar,"'"+a.shortLinkPrefix+"' links copied.",2E3);eo(a.analytics,io.LIST_ISSUES,"copyIssueId","b/ links")},
MJa=function(a,b){b=mn({q:"id:("+b.join("|")+")"});a.clipboard.copy(a.window.location.origin+"/"+b);FK(a.butterBar,"Issue search link copied.",2E3);eo(a.analytics,io.LIST_ISSUES,"copyIssueId","Issue search link")};mT.\u0275fac=function(a){return new (a||mT)(t(jT),t(vH),t(QM),t(DK),t(uM))};mT.\u0275prov=dc({token:mT,factory:mT.\u0275fac,providedIn:"root"});
var nT=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)};nT.prototype.onInput=function(){this.resize(this.el.nativeElement.value)};
nT.prototype.ngOnDestroy=function(){document.body.removeChild(this.shadowInput)};nT.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"};nT.\u0275fac=function(a){return new (a||nT)(D(pd))};
nT.\u0275dir=w({type:nT,selectors:[["","b-adaptive-width-input",""]],hostBindings:function(a,b){a&1&&J("input",function(){return b.onInput()})},inputs:{minWidth:"minWidth",maxWidth:"maxWidth"}});var oT=function(){};oT.\u0275fac=function(a){return new (a||oT)};oT.\u0275mod=uc({type:oT});oT.\u0275inj=gc({});
var pT=function(){KI.apply(this,arguments)};U(pT,KI);li.Object.defineProperties(pT.prototype,{routerLinkObj:{configurable:!0,enumerable:!0,set:function(a){this.queryParams=a.queryParams;this.routerLink=a.path;this.fragment=a.fragment}}});pT.\u0275fac=function(){var a;return function(b){return(a||(a=ed(pT)))(b||pT)}}();pT.\u0275dir=w({type:pT,selectors:[["a","routerLinkObj",""],["area","routerLinkObj",""]],inputs:{routerLinkObj:"routerLinkObj"},features:[ae]});var qT=function(){};
qT.\u0275fac=function(a){return new (a||qT)};qT.\u0275mod=uc({type:qT});qT.\u0275inj=gc({imports:[Wx,QI]});
var rT=function(){this.componentPath=[];this.isArchived=!1;this.label="Component";this.openTab=""};li.Object.defineProperties(rT.prototype,{componentPathInfo:{configurable:!0,enumerable:!0,set:function(a){this.componentPath="settings"===this.componentPathsLinkTo?Go(a,Vsa):Go(a)}}});rT.\u0275fac=function(a){return new (a||rT)};
rT.\u0275cmp=w({type:rT,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&&(F(0,"div",0)(1,"p",1),O(2),G(),F(3,"span",2),M(4,SBa,6,4,"span",3),M(5,TBa,2,0,"span",4),G()());a&2&&(B(2),De("",b.label,":"),B(2),C("ngForOf",b.componentPath),B(1),C("ngIf",b.isArchived))},dependencies:[Gx,Cx,nN,rN,TS,pT],encapsulation:2});
var sT=function(){};sT.\u0275fac=function(a){return new (a||sT)};sT.\u0275mod=uc({type:sT});sT.\u0275inj=gc({imports:[Wx,YN,dT,qT]});
var tT=function(){this.warningChunks=[]};tT.prototype.ngOnInit=function(){var a=this.warningText,b=BSb(a,"EXTERNAL_PUBLIC")||BSb(a,"EXTERNAL_PARTNER");this.warningChunks=b?[{text:a.substring(0,b.startOfMatch)},{accessLevel:b.accessLevel},{text:a.substring(b.endOfMatch)}]:[{text:a}]};tT.prototype.isText=function(a){return void 0!==a.text};tT.\u0275fac=function(a){return new (a||tT)};
tT.\u0275cmp=w({type:tT,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&&(F(0,"div"),M(1,WBa,3,2,"span",0),G());a&2&&(B(1),C("ngForOf",b.warningChunks))},dependencies:[Gx,Cx,SS],encapsulation:2});
var CSb=new Map([["EXTERNAL_PUBLIC","visible to public users"],["EXTERNAL_PARTNER","visible to external partners"]]),BSb=function(a,b){var c=CSb.get(b);if(!c)return null;a=a.toLowerCase().indexOf(c);return 0<=a?{accessLevel:b,startOfMatch:a,endOfMatch:a+c.length}:null};
var uT=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=GNb(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};
uT.prototype.allow=function(){var a;null==(a=this.dialogRef)||a.close();this.isAllowed&&this.acknowledged&&this.callbacks.allow()};uT.prototype.cancel=function(){var a;null==(a=this.dialogRef)||a.close();this.callbacks.cancel()};uT.\u0275fac=function(a){return new (a||uT)(D(XB),D(rP),D(MB))};
uT.\u0275cmp=w({type:uT,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&&(F(0,"h1",0),O(1),G(),F(2,"div",1)(3,"div",2),H(4,"b-component-move-warning-content",3),G(),H(5,"br"),F(6,"a",4),O(7,"Learn more"),G(),M(8,XBa,5,1,"div",5),G(),F(9,"mat-dialog-actions")(10,"button",6),J("click",function(){return b.cancel()}),O(11," Cancel "),G(),M(12,YBa,2,1,"button",7),G());a&2&&(B(1),Ee(b.header),B(3),C("warningText",b.warning),B(2),ge("href",b.learnMore,Md),B(2),C("ngIf",b.isExternalMove&&b.isAllowed),B(4),C("ngIf",b.isAllowed))},
dependencies:[Cx,ly,ry,BB,JO,$B,aC,bC,cC,tT],styles:["mat-checkbox[_ngcontent-%COMP%] {\n      margin-right: 8px;\n    }"],changeDetection:0});
var vT=function(){};vT.\u0275fac=function(a){return new (a||vT)};vT.\u0275mod=uc({type:vT});vT.\u0275inj=gc({imports:[Wx,Gy,BG,NO,dC,cT]});
var wT=function(a,b,c){this.componentActions=a;this.errorHandler=b;this.cdr=c};wT.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 xT=function(a,b){a.selectedId&&DSb(a,a.selectedId);a.selectedId=b;if(a=ESb(a.selectedId))a.focus(),a.setAttribute("aria-selected","true")},yT=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},FSb=function(a){return!a.selectedId||1>a.selectedId?-1:a.components.findIndex(function(b){return b.componentId==a.selectedId})},DSb=function(a,b){b&&(a=ESb(a.selectedId))&&a.setAttribute("aria-selected",
"false")},ESb=function(a){return a?document.getElementById("component-"+a):null},GSb=function(a){for(a=a.target;;){if(!a)return!1;if("A"===a.tagName)return!0;a=a.parentNode}};
new Promise(function(){});
var zT=function(a,b,c,d,e){wI.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=Aa(h);Ha(k);return f.componentApi.query({id:k}).then(function(q){var v={};q=r(q);for(var y=q.next();!y.done;y=q.next())(y=y.value)&&
(v[y.componentId]=y);return h.map(function(E){return v[E]||null})})})};U(zT,wI);zT.\u0275dir=wI.\u0275dir;g=zT.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 HSb(this,a,this.componentApi.query(c))};
var HSb=function(a,b,c){if(b.match(/^\s*android\s*$/i)){var d=Tra();if(d)return Ho({publicComponent:a.get(d),rest:c}).then(function(e){var f=[e.publicComponent];e=r(e.rest);for(var h=e.next();!h.done;h=e.next())h=h.value,h.componentId!==d&&f.push(h);return f})}return c};
zT.prototype.bulkLoad=function(a){var b=this,c=a.filter(function(f){return!b.components.get(String(f))});Ha(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$1683:d.$jscomp$loop$prop$id$1683},e=c.next())d.$jscomp$loop$prop$id$1683=e.value,this.components.put(String(d.$jscomp$loop$prop$id$1683),a.then(function(f){return function(h){return h[f.$jscomp$loop$prop$id$1683]?
h[f.$jscomp$loop$prop$id$1683]:Promise.reject({data:{message:"Could not load details for component "+f.$jscomp$loop$prop$id$1683}})}}(d)))}};zT.\u0275fac=function(a){return new (a||zT)(t(bL),t(mGb),t(mI),t(NJ),t(MK))};zT.\u0275prov=dc({token:zT,factory:zT.\u0275fac,providedIn:"root"});
var aCa=function(a){return{q:a}},AT=function(a,b,c,d){wT.call(this,a,c,d);this.paths=b;this.includeArchived=!1;this.childClosed=new Rw;this.selectedId=null};U(AT,wT);AT.prototype.ngOnInit=function(){};AT.prototype.ngOnDestroy=function(){this.parentComponent.focusOnChildren=void 0};AT.prototype.ngOnChanges=function(a){a.components&&ISb(this)};AT.prototype.onSubtreeChildClosed=function(a){this.selectedId=a;xT(this,a);this.rootController.selectionChanged(this,a)};
var ISb=function(a){a.parentComponent.focusOnChildren||(a.parentComponent.focusOnChildren=function(){return a.selectNext()})};g=AT.prototype;
g.selectNext=function(){if(this.components)if(this.selectedId){var a=FSb(this),b=this.components[a];b.showChildren&&b.focusOnChildren&&!b.noChildren?(DSb(this,this.selectedId),this.selectedId=null,b.focusOnChildren()):a+1!=this.components.length&&(xT(this,this.components[a+1].componentId),this.rootController.selectionChanged(this,this.selectedId))}else xT(this,this.components[0].componentId),this.rootController.selectionChanged(this,this.selectedId)};
g.selectPrevious=function(){var a=FSb(this);0==a?(this.selectedId=null,this.childClosed.emit(this.parentComponent.componentId)):(xT(this,this.components[a-1].componentId),this.rootController.selectionChanged(this,this.selectedId))};g.closeSubtree=function(){if(this.selectedId){var a=yT(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=yT(this);a&&this.showChildren(a)};g.setSelected=function(a,b){GSb(b)||(xT(this,a),this.rootController.selectionChanged(this,a),b.preventDefault(),b.stopPropagation())};g.toggleChildrenForSelectedId=function(){var a=yT(this);a&&(a.showChildren?(a.showChildren=!1,this.cdr.detectChanges()):this.showChildren(a))};AT.\u0275fac=function(a){return new (a||AT)(D(zT),D(TK),D(IK),D(sI,2))};
AT.\u0275cmp=w({type:AT,selectors:[["component-subtree-list"]],inputs:{parentComponent:"parentComponent",rootController:"rootController",components:"components",includeArchived:"includeArchived"},outputs:{childClosed:"childClosed"},features:[Ge([sI]),ae,Cc],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&&(F(0,"ol",0),M(1,iCa,18,11,"li",1),G());a&2&&(B(1),C("ngForOf",b.components))},dependencies:[Gx,Cx,sF,CB,dF,kN,SS,AT],encapsulation:2});
var lCa=function(a){return{q:a}},BT=function(a,b,c,d,e,f){wT.call(this,a,d,f);this.paths=b;this.selectedId=null;this.includeArchived=!1;this.init=new Rw;this.subscriptions=new S.Subscription;this.destroyed$=new S.ReplaySubject(1);this.scrollArea=e.nativeElement.parentElement;this.registerKeys(c)};U(BT,wT);g=BT.prototype;
g.ngOnInit=function(){var a=this;this.rootController=this;(0,S.timer)(0).pipe(cg(this.destroyed$)).subscribe(function(){JSb(a)&&!a.selectedId&&xT(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&&KSb(this)};g.onSubtreeChildClosed=function(a){var b=this;xT(this,a);this.focusedController=void 0;(0,S.timer)(0).pipe(cg(this.destroyed$)).subscribe(function(){CT(b)})};
g.fireSelectionEvent=function(a){var b=ESb(a);b&&b.click();CT(this,a)};var KSb=function(a){(0,S.timer)(0).pipe(cg(a.destroyed$)).subscribe(function(){JSb(a)&&!a.selectedId&&xT(a,a.components[0].componentId)})};g=BT.prototype;g.selectionChanged=function(a,b){b&&CT(this,b);a!==this.focusedController&&(this.focusedController&&(b=this.focusedController,b.selectedId&&DSb(b,b.selectedId),b.selectedId=null),this.focusedController=a||void 0)};
g.setSelected=function(a,b){GSb(b)||(xT(this,a),this.selectionChanged(null),CT(this),b.preventDefault(),b.stopPropagation())};
g.registerKeys=function(a){var b=this;this.subscriptions.add(cJ(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=yT(this);a&&this.showChildren(a)}};
g.toggleChildrenForSelectedId=function(){this.focusedController&&this.focusedController.toggleChildrenForSelectedId();var a=yT(this);a&&(a.showChildren?(a.showChildren=!1,this.cdr.detectChanges()):this.showChildren(a))};g.closeSubtree=function(){this.focusedController?this.focusedController.closeSubtree():this.selectedId&&(yT(this).showChildren=!1,this.cdr.detectChanges())};
g.selectPrevious=function(){if(this.focusedController)this.focusedController.selectPrevious();else{var a=FSb(this);JSb(this)&&1<=a&&(xT(this,this.components[a-1].componentId),CT(this))}};
g.selectNext=function(){if(JSb(this))if(this.focusedController)this.focusedController.selectNext();else if(this.selectedId){var a=FSb(this),b=this.components[a];b.showChildren&&b.focusOnChildren&&!b.noChildren?(DSb(this,this.selectedId),this.selectedId=null,b.focusOnChildren()):a+1!=this.components.length&&(xT(this,this.components[a+1].componentId),CT(this))}else xT(this,this.components[0].componentId),CT(this)};
var CT=function(a,b){var c=LSb(a.scrollArea),d=c+a.scrollArea.offsetHeight;if(a=ESb(b||a.selectedId)){b=LSb(a);var e=b+a.offsetHeight;b<c?a.scrollIntoView(!1):e>d&&a.scrollIntoView(!0)}},LSb=function(a){for(var b=0;a&&a instanceof HTMLElement;)b+=a.offsetTop,a=a.offsetParent;return b},JSb=function(a){return!!(a.components&&0<a.components.length)};BT.\u0275fac=function(a){return new (a||BT)(D(zT),D(TK),D(bJ),D(IK),D(pd),D(sI,2))};
BT.\u0275cmp=w({type:BT,selectors:[["component-tree-list"]],inputs:{components:"components",includeArchived:"includeArchived"},outputs:{init:"init"},features:[Ge([sI]),ae,Cc],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&&(F(0,"ol",0),M(1,tCa,18,11,"li",1),G());a&2&&(B(1),C("ngForOf",b.components))},dependencies:[Gx,Cx,sF,CB,dF,kN,SS,AT],encapsulation:2});
var DT=function(){};DT.\u0275fac=function(a){return new (a||DT)};DT.\u0275mod=uc({type:DT});DT.\u0275inj=gc({imports:[Wx,lH,BG,wF,WN,cT]});
var MSb=new ld("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}});
var NSb=["thumbContainer"],OSb=["toggleBar"],PSb=["input"],QSb=function(a){return{enterDuration:a}},RSb=0,SSb={provide:Ex,useExisting:bc(function(){return ET}),multi:!0},TSb=function(a,b){this.source=a;this.checked=b},USb=pi(mi(ni(oi(function(a){this._elementRef=a})))),ET=function(a,b,c,d,e,f){a=USb.call(this,a)||this;a._focusMonitor=b;a._changeDetectorRef=c;a.defaults=e;a._onChange=function(){};a._onTouched=function(){};a._uniqueId="mat-slide-toggle-"+ ++RSb;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 Rw;a.toggleChange=new Rw;a.tabIndex=parseInt(d)||0;a.color=a.defaultColor=e.color||"accent";a._noopAnimations="NoopAnimations"===f;return a};U(ET,USb);g=ET.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?Tz(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 TSb(this,this.checked))};g._onLabelTextChange=function(){this._changeDetectorRef.detectChanges()};
li.Object.defineProperties(ET.prototype,{required:{configurable:!0,enumerable:!0,get:function(){return this._required},set:function(a){this._required=Vg(a)}},checked:{configurable:!0,enumerable:!0,get:function(){return this._checked},set:function(a){this._checked=Vg(a);this._changeDetectorRef.markForCheck()}},inputId:{configurable:!0,enumerable:!0,get:function(){return(this.id||this._uniqueId)+"-input"}}});ET.\u0275fac=function(a){return new (a||ET)(D(pd),D(Sz),D(vx),Zc("tabindex"),D(MSb),D(ew,8))};
ET.\u0275cmp=w({type:ET,selectors:[["mat-slide-toggle"]],viewQuery:function(a,b){a&1&&(Bf(NSb,5),Bf(OSb,5),Bf(PSb,5));if(a&2){var c;Af(c=Df())&&(b._thumbEl=c.first);Af(c=Df())&&(b._thumbBarEl=c.first);Af(c=Df())&&(b._inputElement=c.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(a,b){a&2&&(ve("id",b.id),ge("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),le("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:[Ge([SSb]),ae],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&&(xe(),F(0,"label",0,1)(2,"span",2,3)(4,"input",4,5),J("change",function(e){return b._onChangeEvent(e)})("click",function(e){return b._onInputClick(e)}),G(),F(6,"span",6,7),H(8,"span",8),F(9,"span",9),H(10,"span",10),G()()(),F(11,"span",11,12),J("cdkObserveContent",function(){return b._onLabelTextChange()}),
F(13,"span",13),O(14,"\u00a0"),G(),ye(15),G()());if(a&2){var c=Ce(1),d=Ce(12);ge("for",b.inputId);B(2);le("mat-slide-toggle-bar-no-side-margin",!d.textContent||!d.textContent.trim());B(2);C("id",b.inputId)("required",b.required)("tabIndex",b.tabIndex)("checked",b.checked)("disabled",b.disabled);ge("name",b.name)("aria-checked",b.checked)("aria-label",b.ariaLabel)("aria-labelledby",b.ariaLabelledby)("aria-describedby",b.ariaDescribedby);B(5);C("matRippleTrigger",c)("matRippleDisabled",b.disableRipple||
b.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Ie(18,QSb,b._noopAnimations?0:150))}},dependencies:[uB,Yz],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 FT=function(){};FT.\u0275fac=function(a){return new (a||FT)};FT.\u0275mod=uc({type:FT});FT.\u0275inj=gc({});var GT=function(){};GT.\u0275fac=function(a){return new (a||GT)};GT.\u0275mod=uc({type:GT});GT.\u0275inj=gc({imports:[FT,yB,gB,Zz,FT,gB]});
var VSb=0,HT=function(){this.id="b-slide-toggle-"+ ++VSb;this.ariaLabel=this.label="";this.labelPosition="before";this.model=!1;this.tooltip=void 0;this.disabled=!1;this.modelChange=new Rw};HT.\u0275fac=function(a){return new (a||HT)};
HT.\u0275cmp=w({type:HT,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&&(F(0,"mat-slide-toggle",0),J("change",function(d){b.model=d.checked;b.modelChange.emit(d.checked)}),
O(1),G());if(a&2){var c;C("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);Ee(b.label)}},dependencies:[ET,sF],styles:["mat-slide-toggle[_ngcontent-%COMP%] { vertical-align: middle; }"],changeDetection:0});var IT=function(){};IT.\u0275fac=function(a){return new (a||IT)};IT.\u0275mod=uc({type:IT});IT.\u0275inj=gc({imports:[GT,lH]});
var JT=function(a){this.$log=a;this.accessPolicyPrincipalToString=Jn;this.stringToAccessPolicyPrincipal=uCa},KT=function(){return{inheritance:"INHERITANCE_UNSPECIFIED",admins:[],editors:[],appenders:[],readers:[],restrictedReaders:[],restrictedPlusReaders:[],inheritedAdmins:[],implicitAccess:null}},LT=function(a){return{inheritance:a.inheritance||"INHERITANCE_UNSPECIFIED",admins:Jo(a.admins),editors:Jo(a.editors),appenders:Jo(a.appenders),readers:Jo(a.readers),restrictedReaders:Jo(a.restrictedReaders),
restrictedPlusReaders:Jo(a.restrictedPlusReaders),inheritedAdmins:Jo(a.inheritedAdmins),implicitAccess:a.implicitAccess||null}},MT=function(a){return{inheritance:a.inheritance,admins:Ko(a.admins),editors:Ko(a.editors),appenders:Ko(a.appenders),readers:Ko(a.readers),restrictedReaders:Ko(a.restrictedReaders),restrictedPlusReaders:Ko(a.restrictedPlusReaders),implicitAccess:a.implicitAccess}};JT.\u0275fac=function(a){return new (a||JT)(t(HK))};JT.\u0275prov=dc({token:JT,factory:JT.\u0275fac,providedIn:"root"});
var WSb=new RegExp("4:("+Object.values({GOOGLERS_UNRESTRICTED:"googlers_unrestricted",GOOGLE_DOMAIN:"google_domain",PUBLIC_NON_GOOGLE:"public_non_google",PUBLIC:"public"}).join("|")+")");
var NT=function(a){Z.call(this,a)};U(NT,Z);NT.prototype.getSocialApplication=function(){return p(this,3)};NT.prototype.getAffinityType=function(){return V(this,12,"CONTACT_STORE_DEFAULT_AFFINITY")};NT.prototype.setAffinityType=function(a){return l(this,12,a)};NT.prototype.toObject=function(){return XSb(this)};
var XSb=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:ej(a,8,3E4),includeDomainAddressBook:n(To(a,10)),includeDomainGroups:n(To(a,11)),affinityType:V(a,12,"CONTACT_STORE_DEFAULT_AFFINITY"),autocompletePageSize:ej(a,13,15),rankedTargetsPageSize:ej(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 OT=function(a){Z.call(this,a,-1,YSb)};U(OT,Z);OT.prototype.getExperimentIdsList=function(){return jb(this,4)};OT.prototype.setExperimentIdsList=function(a){return jl(this,4,a)};var YSb=[4];OT.prototype.toObject=function(){return ZSb(this)};var ZSb=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 $Sb=function(a){Z.call(this,a)};U($Sb,Z);g=$Sb.prototype;g.getClientInfo=function(){return m(this,NT,1)};g.getMutableClientInfo=function(){return xu(this,NT,1)};g.setClientInfo=function(a){Bb(this,1,a)};g.getExperiments=function(){return m(this,OT,2)};g.setExperiments=function(a){Bb(this,2,a)};g.hasExperiments=function(){return lj(this,2)};g.toObject=function(){var a=null!=this?{clientInfo:XSb(this.getClientInfo()),experiments:ZSb(this.getExperiments())}:void 0;return a};
var aTb=function(a){Z.call(this,a)};U(aTb,Z);g=aTb.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 dj(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 xCa=/^https?:\/\/(?:\w|[\-\.])+\.google\.(?:\w|[\-:\.])+(?:\/[^\?#]*)?\/u\/(\d)\//,vCa=/([#].*?&|[#])authuser=([^&#]*)\b/,wCa=/([?][^#]*?&|[?])authuser=([^&#]*)\b/;
var PT=function(a){this.config_=a;this.userInfo_=new aTb;this.onAuthError_=this.gapiClientThenable_=null};PT.prototype.getClientInfo=function(){return this.config_.getClientInfo()};PT.prototype.getExperiments=function(){return this.config_.getExperiments()};PT.prototype.getUserInfo=function(){return this.userInfo_};
var VCa=function(a){a.gapiClientThenable_||(a.gapiClientThenable_=BCa(10,5E3).then(function(b){return b.client}));return a.gapiClientThenable_},bTb=function(a,b){b&&(a.gapiClientThenable_=b.then(function(c){return c},function(){return BCa(10,5E3).then(function(c){return c.client})}))};PT.prototype.getAuthErrorHandler=function(){return this.onAuthError_};PT.prototype.setAuthErrorHandler=function(a){this.onAuthError_=a};
var cTb=function(){};
var QT=[];QT.push=function(){throw Error("Nd");};var RT={cancel:function(){},isPending:function(){return!1}};
var ST=function(a){this.response_=a||function(){};this.timer_=JD(this.onTimer_,0,this);this.addressBookId_=""};g=ST.prototype;g.setAddressBookId=function(a){this.addressBookId_=a};g.getAddressBookId=function(){return this.addressBookId_};g.cancel=function(){KD(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 dTb=new Map([["personal",2],["domain",4],["pcab",3]]);
var Po=function(a){Z.call(this,a)};U(Po,Z);g=Po.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 TT=function(a){Z.call(this,a)};U(TT,Z);TT.prototype.setDevice=function(a){return l(this,1,a)};TT.prototype.getApplication=function(){return p(this,2)};TT.prototype.setApplication=function(a){return l(this,2,a)};TT.prototype.toObject=function(){return eTb(this)};var eTb=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 gTb=function(a){Z.call(this,a,-1,fTb)};U(gTb,Z);g=gTb.prototype;g.getEventType=function(){return p(this,1)};g.setEventType=function(a){return l(this,1,a)};g.getMetadata=function(){return m(this,UT,4)};g.setMetadata=function(a){Bb(this,4,a)};g.getClientInterface=function(){return m(this,VT,5)};g.setClientInterface=function(a){return Bb(this,5,a)};var WT=function(a){Z.call(this,a)};U(WT,Z);WT.prototype.getLoggingId=function(){return p(this,1)};WT.prototype.setLoggingId=function(a){l(this,1,a)};
WT.prototype.getMetadata=function(){return m(this,XT,3)};WT.prototype.setMetadata=function(a){Bb(this,3,a)};var YT=function(a){Z.call(this,a)};U(YT,Z);g=YT.prototype;g.getType=function(){return p(this,5)};g.setType=function(a){return l(this,5,a)};g.hasType=function(){return dj(this,5)};g.getEmail=function(){return p(this,1)};g.setEmail=function(a){return l(this,1,a)};g.hasEmail=function(){return dj(this,1)};g.getPhone=function(){return p(this,2)};g.setPhone=function(a){return l(this,2,a)};
g.hasPhone=function(){return dj(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 dj(this,6)};var XT=function(a){Z.call(this,a,-1,hTb)};U(XT,Z);g=XT.prototype;g.getPosition=function(){return m(this,ZT,1)};g.setPosition=function(a){return Bb(this,1,a)};
g.getProfile=function(){return m(this,$T,2)};g.getIsPlaceholder=function(){return To(this,7)};g.setIsPlaceholder=function(a){l(this,7,a)};g.getIsSelf=function(){return To(this,11)};var ZT=function(a){Z.call(this,a)};U(ZT,Z);g=ZT.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 dj(this,3)};var $T=function(a){Z.call(this,a)};U($T,Z);
$T.prototype.getName=function(){return p(this,1)};$T.prototype.setName=function(a){return l(this,1,a)};$T.prototype.hasName=function(){return dj(this,1)};var iTb=function(a){Z.call(this,a)};U(iTb,Z);var UT=function(a){Z.call(this,a)};U(UT,Z);UT.prototype.getAffinityVersion=function(){return p(this,2)};UT.prototype.setAffinityVersion=function(a){l(this,2,a)};var aU=function(a){Z.call(this,a)};U(aU,Z);g=aU.prototype;g.getQueryLength=function(){return p(this,1)};
g.setQueryLength=function(a){return l(this,1,a)};g.hasQueryLength=function(){return dj(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 dj(this,2)};var bU=function(a){Z.call(this,a)};U(bU,Z);bU.prototype.setLatencyUsec=function(a){l(this,1,a)};var jTb=function(a){Z.call(this,a)};U(jTb,Z);var kTb=function(a){Z.call(this,a)};U(kTb,Z);var cU=function(a){Z.call(this,a)};U(cU,Z);g=cU.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 dj(this,4)};g.getAffinityVersion=function(){return p(this,5)};g.setAffinityVersion=function(a){l(this,5,a)};var lTb=function(a){Z.call(this,a)};U(lTb,Z);var mTb=function(a){Z.call(this,a)};U(mTb,Z);var dU=function(a){Z.call(this,a)};U(dU,Z);
dU.prototype.getExistingSelectionsCount=function(){return p(this,1)};dU.prototype.setExistingSelectionsCount=function(a){l(this,1,a)};dU.prototype.getPosition=function(){return m(this,ZT,2)};dU.prototype.setPosition=function(a){return Bb(this,2,a)};var nTb=function(a){Z.call(this,a)};U(nTb,Z);var VT=function(a){Z.call(this,a,-1,oTb)};U(VT,Z);g=VT.prototype;g.getEventSource=function(){return p(this,2)};g.setEventSource=function(a){l(this,2,a)};g.getSocialClient=function(){return m(this,TT,3)};
g.setSocialClient=function(a){return Bb(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 dj(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 fTb=[2];gTb.prototype.toObject=function(){var a=null!=this?{eventType:n(p(this,1)),entityList:Cb(rb(this,WT,2),pTb),scoringInfo:qTb(m(this,iTb,3)),metadata:rTb(this.getMetadata()),clientInterface:sTb(this.getClientInterface()),eventTimestampUsec:n(p(this,6))}:void 0;return a};WT.prototype.toObject=function(){return pTb(void 0,this)};
var pTb=function(a,b){if(null!=b){var c={loggingId:n(p(b,1)),entityId:tTb(a,m(b,YT,4)),metadata:uTb(a,b.getMetadata())};a&&(c.$jspbMessageInstance=b);return c}};YT.prototype.toObject=function(){return tTb(void 0,this)};var tTb=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}},hTb=[4,3];XT.prototype.toObject=function(){return uTb(void 0,this)};
var uTb=function(a,b){if(null!=b){var c={position:vTb(a,b.getPosition()),additionalPositionList:Cb(rb(b,ZT,4),vTb,a),profile:wTb(a,b.getProfile()),provenanceList:n(jb(b,3)),hasAvatar:n(To(b,5)),isBoosted:n(To(b,6)),isPlaceholder:n(To(b,7)),smartAddressEntityMetadata:xTb(a,m(b,dU,8)),uiSurface:n(p(b,9)),isSelf:n(To(b,11))};a&&(c.$jspbMessageInstance=b);return c}};ZT.prototype.toObject=function(){return vTb(void 0,this)};
var vTb=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}};$T.prototype.toObject=function(){return wTb(void 0,this)};var wTb=function(a,b){if(null!=b){var c={name:n(p(b,1))};a&&(c.$jspbMessageInstance=b);return c}};iTb.prototype.toObject=function(){return qTb(this)};var qTb=function(a){if(null!=a)return{scoreVersion:n(p(a,1)),sessionId:n(p(a,2))}};UT.prototype.toObject=function(){return rTb(this)};
var rTb=function(a){if(null!=a)return{autocompleteMetadata:yTb(m(a,aU,1)),affinityVersion:n(p(a,2)),showMetadata:zTb(m(a,bU,6)),queryErrorMetadata:ATb(m(a,jTb,7)),autocompleteClientMetadata:BTb(m(a,kTb,3)),reactrMetadata:CTb(m(a,lTb,4)),apdlMetadata:DTb(m(a,mTb,5)),phoneRegionHints:ETb(m(a,nTb,8))}};aU.prototype.toObject=function(){return yTb(this)};var yTb=function(a){if(null!=a)return{queryLength:n(p(a,1)),query:n(p(a,2)),sessions:FTb(m(a,cU,3))}};bU.prototype.toObject=function(){return zTb(this)};
var zTb=function(a){if(null!=a)return{latencyUsec:n(p(a,1)),dataLatencyUsec:n(p(a,2))}};jTb.prototype.toObject=function(){return ATb(this)};var ATb=function(a){if(null!=a)return{canonicalCode:n(p(a,1))}};kTb.prototype.toObject=function(){return BTb(this)};var BTb=function(a){if(null!=a)return{hadValidCache:n(To(a,1)),timeSinceCacheRefreshUsec:n(p(a,2)),cacheRefreshUsec:n(p(a,3)),hadDeviceContactPermissions:n(To(a,4))}};cU.prototype.toObject=function(){return FTb(this)};
var FTb=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))}};lTb.prototype.toObject=function(){return CTb(this)};var CTb=function(a){if(null!=a)return{attributedSharingEnabled:n(To(a,1)),sharePanelVersion:n(p(a,2))}};mTb.prototype.toObject=function(){return DTb(this)};var DTb=function(a){if(null!=a)return{applicationPackageName:n(p(a,1)),widgetName:n(p(a,2))}};
dU.prototype.toObject=function(){return xTb(void 0,this)};var xTb=function(a,b){if(null!=b){var c={existingSelectionsCount:n(p(b,1)),position:vTb(a,b.getPosition())};a&&(c.$jspbMessageInstance=b);return c}};nTb.prototype.toObject=function(){return ETb(this)};var ETb=function(a){if(null!=a)return{mobileNetworkCountry:n(p(a,1)),simCountry:n(p(a,2)),localeCountry:n(p(a,3))}},oTb=[6];VT.prototype.toObject=function(){return sTb(this)};
var sTb=function(a){if(null!=a)return{eventSource:n(p(a,2)),socialClient:eTb(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 GTb=function(a){Z.call(this,a)};U(GTb,Z);g=GTb.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){return l(this,2,a)};g.hasItemCount=function(){return dj(this,2)};g.toObject=function(){return HTb(this)};var HTb=function(a){if(null!=a)return{apiType:n(p(a,1)),itemCount:n(p(a,2))}};
var ITb=function(a){Z.call(this,a)};U(ITb,Z);g=ITb.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){return l(this,2,a)};g.hasItemCount=function(){return dj(this,2)};g.getStatus=function(){return X(this,4,2)};g.setStatus=function(a){return l(this,4,a)};g.hasStatus=function(){return dj(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 JTb(this)};
var JTb=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 KTb=function(a){Z.call(this,a)};U(KTb,Z);g=KTb.prototype;g.getStatus=function(){return X(this,1,2)};g.setStatus=function(a){return l(this,1,a)};g.hasStatus=function(){return dj(this,1)};g.setTotalUsec=function(a){return l(this,2,a)};g.toObject=function(){return LTb(this)};var LTb=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 MTb=function(a){Z.call(this,a)};U(MTb,Z);g=MTb.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 NTb(this)};var NTb=function(a){if(null!=a)return{rpcType:n(p(a,1)),lookupType:n(p(a,2))}};
var OTb=function(a){Z.call(this,a)};U(OTb,Z);g=OTb.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 dj(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 PTb(this)};var PTb=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 QTb=function(a){Z.call(this,a)};U(QTb,Z);g=QTb.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 dj(this,2)};g.toObject=function(){return RTb(this)};var RTb=function(a){if(null!=a)return{envType:n(p(a,1)),cacheSize:n(p(a,2)),cacheSizeBucket:n(p(a,3)),gmailDelegation:n(To(a,4))}};
var eU=function(a){Z.call(this,a)};U(eU,Z);g=eU.prototype;g.getClientInterface=function(){return m(this,VT,1)};g.setClientInterface=function(a){return Bb(this,1,a)};g.getSource=function(){return p(this,2)};g.setSource=function(a){return l(this,2,a)};g.hasSource=function(){return dj(this,2)};g.getEventType=function(){return p(this,3)};g.setEventType=function(a){return l(this,3,a)};g.getRpcRequest=function(){return yl(this,MTb,5,fU)};g.setRpcRequest=function(a){return yu(this,5,fU,a)};
g.getRpcResponse=function(){return yl(this,OTb,6,fU)};g.setRpcResponse=function(a){return yu(this,6,fU,a)};g.getApiCall=function(){return yl(this,GTb,7,fU)};g.setApiCall=function(a){return yu(this,7,fU,a)};g.getApiResult=function(){return yl(this,ITb,8,fU)};g.setApiResult=function(a){return yu(this,8,fU,a)};g.getUserInfo=function(){return m(this,QTb,9)};g.setUserInfo=function(a){return Bb(this,9,a)};g.hasUserInfo=function(){return lj(this,9)};var fU=[4,5,6,7,8];
eU.prototype.toObject=function(){var a=null!=this?{clientInterface:sTb(this.getClientInterface()),source:n(p(this,2)),eventType:n(p(this,3)),gapiInit:LTb(yl(this,KTb,4,fU)),rpcRequest:NTb(this.getRpcRequest()),rpcResponse:PTb(this.getRpcResponse()),apiCall:HTb(this.getApiCall()),apiResult:JTb(this.getApiResult()),userInfo:RTb(this.getUserInfo())}:void 0;return a};
var STb=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]]),TTb=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]]),UTb=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]]),VTb=function(a){return TTb.has(a)?TTb.get(a):1},WTb=function(a){return UTb.has(a)?UTb.get(a):2};
var XTb=function(a){this.request_=a;this.errorCode_=0},YTb=function(a,b){b=new XTb(b);b.errorCode_=a;b.errorMessage_="A server error has occurred.";return b};g=XTb.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 gU=function(a){this.map_=new YK;this.size=0;a&&this.addAll(a)},ZTb=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+Ga(a):b.charAt(0)+a};g=gU.prototype;g.getCount=function(){return this.map_.size};g.add=function(a){this.map_.set(ZTb(a),a);this.setSizeInternal_(this.map_.size)};g.addAll=function(a){a=QG(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=QG(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(ZTb(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(ZTb(a))};g.contains=function(a){return this.map_.containsKey(ZTb(a))};g.intersection=function(a){var b=new gU;a=QG(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 gU(this)};g.equals=function(a){return this.getCount()==Czb(a)&&$Tb(this,a)};
var $Tb=function(a,b){var c=Czb(b);if(a.getCount()>c)return!1;!(b instanceof gU)&&5<c&&(b=new gU(b));return Fzb(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(Ea(e)||"string"===typeof e)d=ua(e,d);else a:{for(var f in e)if(e[f]==d){d=!0;break a}d=!1}return d})};gU.prototype.__iterator__=function(){return this.map_.__iterator__(!1)};gU.prototype[Symbol.iterator]=function(){return this.values()};
gU.prototype.setSizeInternal_=function(a){this.size=a};
var hU=function(a,b,c){this.fields_=a;this.name_=b;this.contains_=new gU(c);this.extraFields_=[]};hU.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 aUb=function(a){a.fieldSet_||(a.fieldSet_=new gU(a.fields_));return a.fieldSet_};
hU.prototype.contains=function(a){if(this.contains_.contains(a))return!0;this.doesntContain_||(this.doesntContain_=new gU);if(this.doesntContain_.has(a))return!1;var b=aUb(this),c=aUb(a);if(Fzb(c,b.contains,b))return this.contains_.add(a),!0;this.doesntContain_.add(a);return!1};var bUb=new hU(["6","12"],"1"),cUb=new hU("2 1f 1c 12 16 13 14 1d 22 1b 20".split(" "),"4",[bUb]);new hU("6 12 16 17 18 1a".split(" "),"3",[bUb]);
new hU("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",[bUb,cUb]);new hU([]);
var dUb={token:"",addressBookId:"personal",matchType:1,includeContacts:!0,includeGroups:!0,isAutoCompleteMode:!0,delayMillis:5E3,maxMatches:-1,maxTries:10,name:"Load All Contacts"};
var eUb=function(a,b,c){WC.call(this);this.scheduler=a;this.runFunction_=b;this.group=c||a.createGroup()};U(eUb,WC);g=eUb.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 fUb=function(a){WC.call(this);this.scheduler=a;this.maxNumRetries_=0;this.reset()};U(fUb,WC);g=fUb.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(){WC.prototype.disposeInternal.call(this);this.scheduler=null};
var gUb=function(){WC.call(this);this.states={};this.currentGroup=1};U(gUb,WC);gUb.prototype.schedule=function(a,b,c,d){b=b||0;var e=Date.now()+b,f=this.states[a.getGroup()];f||(f=new fUb(this),this.states[a.getGroup()]=f);f.setMaxNumRetries(Math.max(c||1,f.getMaxNumRetries()));switch(f.runState){case 1:case 5:f.reset();hUb(a,b,e);break;case 6:hUb(a,b,e);break;case 4:d&&(f.reset(),hUb(a,b,e));break;case 2:e<f.runTime?(this.cancel(f),f.reset(),hUb(a,b,e)):f.numTriesLeft=f.maxNumRetries_}};
var hUb=function(a,b,c){0==b?(a.setRunState(3),a.run()):(a.setRunState(2),a.setRunTime(c),a.setRunTimerId(JD(a.run,b,a)))};g=gUb.prototype;g.getState=function(a){return this.states[a]};g.createGroup=function(){return""+this.currentGroup++};g.disposeInternal=function(){WC.prototype.disposeInternal.call(this);for(var a in this.states){var b=this.states[a];this.cancel(b);vi(b)}this.states={}};g.cancel=function(a){2==a.runState&&KD(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 iUb={SOMETHING_CHANGED:"a",ERROR:"b"},jUb=function(a,b){YC.call(this,a&&a[0].getError()?"b":"a");this.source_=b||"d"};U(jUb,YC);jUb.prototype.getSource=function(){return this.source_};
var kUb=function(a,b){this.fn_=a;this.handler_=b};kUb.prototype.execute=function(a){this.fn_&&(this.fn_.call(this.handler_||null,a),this.fn_=this.handler_=null)};kUb.prototype.abort=function(){this.handler_=this.fn_=null};aD(function(a){kUb.prototype.execute=a(kUb.prototype.execute)});
var lUb=[];
var iU=function(a,b){var c=c||[];this.serviceId_=a;this.moduleId_=b||null;this.dependencies_=[];mUb(this,c)};iU.prototype.toString=function(){return this.serviceId_};iU.prototype.getModuleId=function(){return this.moduleId_};var mUb=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("Od`"+a.serviceId_);b.map(function(d){return d.getModuleId()}).forEach(function(d){lUb.push(function(e){e.addExtraEdge(a.moduleId_,d)})})}};
new iU("rJmJrc","rJmJrc");
new iU("n73qwf","n73qwf");
new iU("MpJwZc","MpJwZc");
new iU("UUJqVe","UUJqVe");
new iU("Wt6vjf","Wt6vjf");
new iU("byfTOb","byfTOb");
new iU("LEikZe","LEikZe");
new iU("lsjVmc","lsjVmc");
new iU("pVbxBc");
new iU("tdUkaf");new iU("fJuxOc");new iU("ZtVrH");new iU("WSziFf");new iU("ZmXAm");new iU("BWETze");new iU("UBSgGf");new iU("zZa4xc");new iU("o1bZcd");new iU("WwG67d");new iU("z72MOc");new iU("JccZRe");new iU("amY3Td");new iU("ABma3e");new iU("GHAeAc","GHAeAc");new iU("gSshPb");new iU("klpyYe");new iU("OPbIxb");new iU("pg9hFd");new iU("yu4DA");new iU("vk3Wc");new iU("IykvEf");new iU("J5K1Ad");new iU("IW8Usd");new iU("IaqD3e");new iU("jbDgG");new iU("b8xKu");new iU("d0RAGb");new iU("AzG0ke");new iU("J4QWB");
new iU("TuDsZ");new iU("hdXIif");new iU("mITR5c");new iU("DFElXb");new iU("NGntwf");new iU("Bgf0ib");new iU("Xpw1of");new iU("v5BQle");new iU("ofuapc");new iU("FENZqe");new iU("tLnxq");
var jU=function(){WC.call(this);this.eventTarget_=new Qo;this.updateCacheEventTarget_=new Qo;this.mutationIdMap_=new aL};U(jU,WC);jU.prototype.dispatchEvent=function(a){this.updateCacheEventTarget_.dispatchEvent(a);this.eventTarget_.dispatchEvent(a)};jU.prototype.getEventTarget=function(){return this.eventTarget_};
jU.prototype.disposeInternal=function(){WC.prototype.disposeInternal.call(this);this.eventTarget_.dispose();this.eventTarget_=null;this.updateCacheEventTarget_.dispose();this.updateCacheEventTarget_=null};
var ds=function(a){Z.call(this,a,-1,nUb)};U(ds,Z);var cs=function(a,b){return l(a,1,b)};g=ds.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 dj(this,5)};g.getEnableClearcut=function(){return To(this,6)};g.setEnableClearcut=function(a){return l(this,6,a)};var bs=function(a,b){return jl(a,7,b)};g=ds.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 nUb=[7];
ds.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(To(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 oUb=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 pUb=function(a){this.start_=a;this.end_=NaN};pUb.prototype.duration=function(){return this.end_-this.start_};pUb.prototype.stop=function(a){this.end_=a;return this.duration()};var kU=function(a){var b=void 0===b?oUb:b;this.source_=a;this.nowFn_=b;this.durations_=new Map;this.lastLabel_="_"};kU.prototype.source=function(){return this.source_};var qUb=function(a,b){b&&(a.lastLabel_=b);return a.lastLabel_};g=kU.prototype;
g.duration=function(a){a=qUb(this,void 0===a?"":a);return this.durations_.has(a)?this.durations_.get(a).duration():NaN};g.durationUsec=function(a){return FCa(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=qUb(this,a);this.durations_.set(a,new pUb(b));return this};
g.stop=function(a){a=void 0===a?"":a;var b=this.nowFn_();a=qUb(this,a);this.durations_.has(a)&&this.durations_.get(a).stop(b);return this};g.clear=function(){this.durations_.clear();return this};
var rUb=new Map([[1,4],[2,2],[3,1],[4,7]]),SCa=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=rUb.get(a.getUserInfo().getEnvType())||0;this.logContext_=ob(bs(cs(new ds,b).setLogSource(932).setApplication(a.getClientInfo().getSocialApplication()).setEnvironment(d).setVersion("1012").setBaselineCl(336195648).setClientAgent(3).setEnableClearcut(c),
a.getExperiments().getExperimentIdsList()),7,20090307)};g=SCa.prototype;g.getLogContext=function(){return this.logContext_};
g.createCountMetric=function(a,b){b=b.source();var c=sUb(this);switch(b.getEventType()){case 2:case 3:return(new eU).setClientInterface(a).setUserInfo(c).setSource(2).setEventType(2).setRpcRequest((new MTb).setRpcType(b.getRpcType()).setLookupType(b.getLookupType()));case 4:case 5:return(new eU).setClientInterface(a).setUserInfo(c).setEventType(4).setApiCall((new GTb).setApiType(b.getApiType()));default:return null}};
g.createStatusMetric=function(a,b,c){var d=b.source(),e=sUb(this);switch(d.getEventType()){case 1:d=(new eU).setClientInterface(a).setUserInfo(e).setSource(1).setEventType(1);a=this.transportType_;e=(new KTb).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 yu(d,4,fU,e);case 2:case 3:return a=(new eU).setClientInterface(a).setUserInfo(e).setSource(2).setEventType(3),e=a.setRpcResponse,d=(new OTb).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 eU).setClientInterface(a).setUserInfo(e).setEventType(5);e=a.setApiResult;var f=new ITb;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 sUb=function(a){a=a.clientConfig_.getUserInfo();var b=new QTb;var c=!!a.getDelegatorId();b=l(b,4,c);a.hasCacheSize()&&b.setCacheSize(a.getCacheSize());b.setEnvType(p(a,6)||0);return b};
var jr=function(a){Z.call(this,a,-1,tUb)};U(jr,Z);var tUb=[1,2,3,4];jr.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 uUb=function(){return fa("iPad")||fa("Android")&&!fa("Mobile")||fa("Silk")};
var vUb=function(a,b,c,d,e,f,h){EE.call(this,a,Oo,b,hma,c,d,e,void 0,f,h)};U(vUb,EE);
var wUb=function(a,b){this.clearcut_=a;this.logContextFactory_=b;this.device_=ma()||fa("iPod")?4:fa("iPad")?5:fa("Android")?uUb()?3:2:!uUb()&&(fa("iPod")||fa("iPhone")||fa("Android")||fa("IEMobile"))||uUb()?0:1},xUb=function(a){var b=a.getLogContext(),c=null;if(b.getEnableClearcut()&&(c=new vUb(b.getLogSource(),No(),b.getClearcutUrl()||void 0),(b=jb(b,7))&&b.length)){var d=new jr;jl(d,3,b);c.setClearExperimentIds(d)}return new wUb(c,a)},lU=function(a){var b=a.logContextFactory_.getLogContext(),c=
new TT;c.setApplication(b.getApplication());c.setDevice(a.device_);a=new VT;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},mU=function(a,b){var c=new wE;xE(c,b.serialize());a.clearcut_&&a.clearcut_.log(c)};
var yUb=function(a,b){this.clearcut_=a;this.logEventFactory_=b};yUb.prototype.logError=function(a){var b=lU(this.clearcut_);(a=this.logEventFactory_.createErrorMetric(b,a))&&mU(this.clearcut_,a)};
var zUb=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 AUb=function(){this.logContext_=cs(new ds,"ppl.store")};g=AUb.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 BUb=function(a){this.clearcut_=a;this.log_=null},Wo=function(a){a=new yUb(xUb(a),a);return new BUb(a)};g=BUb.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=lU(c.clearcut_);(a=c.logEventFactory_.createCountMetric(d,a,b))&&mU(c.clearcut_,a);return this};g.status=function(a,b){var c=this.clearcut_,d=lU(c.clearcut_);(a=c.logEventFactory_.createStatusMetric(d,a,b))&&mU(c.clearcut_,a);return this};g.latency=function(a){var b=this.clearcut_,c=lU(b.clearcut_);(a=b.logEventFactory_.createLatencyMetric(c,a))&&mU(b.clearcut_,a);return this};
g.error=function(a){this.clearcut_.logError(a);return this};g.logError=function(){};
var Vo=function(a,b){this.addressBookMap_={};this.addressBooks=[];this.ownedAddressBooks_=[];this.scheduler_=new gUb;this.eventHandler_=new aH(this);this.ownsContactNotificationService_=!a;this.queryFilters_=[];this.contactNotificationService_=a||new jU;(a=b)||(a=Wo(new AUb));this.metrics=a;this.queryFilters_.push(this.contactNotificationService_)};du(Vo,WC);g=Vo.prototype;
g.addAddressBook=function(a,b){this.addressBooks.push(a);b&&this.ownedAddressBooks_.push(a);this.addressBookMap_[a.getId()]=a;this.eventHandler_.listen(a,vja(iUb),$t(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 jUb(null,"c"))};
g.loadContactRows=function(a,b){var c=this,d=(new Po).setEventType(4).setApiType(2),e=new kU(d);this.metrics.count(e);this.metrics.start(e,"total");return CUb(this,a,function(f){return f.loadContactRows},function(f,h,k,q,v){DUb(function(y,E,I,N){var L=E===RT||E instanceof ST?2:1;e.source().setCacheStatus(L);e.source().setAddressBook(I?dTb.get(I)||1:1);c.metrics.stop(e,"total");c.metrics.status(e,WTb(v||0));b&&b(y,E,I,N,v)},f,h,k,q)})};
var CUb=function(a,b,c,d){var e=new EUb(d,a.metrics),f;if(b.addressBookId){var h=a.addressBookMap_[b.addressBookId];0<b.delayMillis||1<b.maxTries?f=FUb(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=FUb(a,h,c(h),b,d):f=c(h).call(h,b,d),f&&e.add(f);return e};
Vo.prototype.execute=function(a){var b=this,c=(new Po).setEventType(4).setApiType(1),d=new kU(c);this.metrics.count(d);this.metrics.start(d,"total");GUb(this,a);a.addSuccessOrFailureCallback(function(e){var f=e?WTb(e.getErrorCode()):2;e=(e=e?e.request_:null)?e.getAddressBookId():"";d.source().setCacheStatus(e?1:2);d.source().setAddressBook(e?e?dTb.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 HUb(b,e,d)}))?
c:HUb(this,a,d)};
var GUb=function(a,b){sa(a.queryFilters_,function(){});b.isMutate()&&(b=b.getOperation())&&(b=b.getQueryAfterMutate())&&GUb(a,b)},HUb=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 EUb(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},FUb=function(a,
b,c,d,e){b=$t(a.runScheduledQuery_,a,b,c,d,e);b=new eUb(a.scheduler_,b,d.name);a.scheduler_.schedule(b,d.delayMillis,d.maxTries,d.force);return new IUb(b)};Vo.prototype.runScheduledQuery_=function(a,b,c,d,e){e.request=b.call(a,c,function(f,h,k,q,v){e.isDone(!v)&&d&&d(f,h,k,q,v)})};
var DUb=function(a,b,c,d,e){a&&(b&&(e.filter&&(b=e.filter(b,e.token)),JUb(b)),a(b||[],c,d,e))},JUb=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)}};
Vo.prototype.disposeInternal=function(){Vo.superClass_.disposeInternal.call(this);vi(this.scheduler_);this.scheduler_=null;sa(this.ownedAddressBooks_,vi);this.ownedAddressBooks_=this.addressBookMap_=this.addressBooks=null;vi(this.eventHandler_);this.eventHandler_=null;sa(this.queryFilters_,function(a){a!=this.contactNotificationService_&&vi(a)},this);this.queryFilters_=null;this.ownsContactNotificationService_&&(vi(this.contactNotificationService_),this.contactNotificationService_=null)};
var RCa=function(a){var b=new SCa(a,0);cs(b.getLogContext(),"ppl.store");b.getLogContext().setEnableClearcut(W(a.getExperiments(),3,!0));return Wo(b)},EUb=function(a,b,c){this.requests_=[];this.handler=a;this.metrics_=b;this.state_=c;this.addressBookId_=""};g=EUb.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 IUb=function(a){this.op=a;this.request=null};IUb.prototype.cancel=function(){this.op.cancel();this.request&&this.request.cancel()};
IUb.prototype.isPending=function(){return this.op.isPending()||this.op.request&&this.op.request.isPending()};
var KUb=function(a,b){this.text=a;this.specialRowHandler=b};du(KUb,cTb);g=KUb.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 Uo=function(a,b){Vo.call(this,a,b)};U(Uo,Vo);Uo.prototype.addAddressBook=function(a,b){1==this.addressBooks.length&&(this.combiner_=new LUb(this.metrics),this.combiner_.addAddressBook(this.addressBooks[0]));Vo.prototype.addAddressBook.call(this,a,b);this.combiner_&&this.combiner_.addAddressBook(a)};Uo.prototype.loadContactRows=function(a,b){return this.combiner_&&a.isAutoCompleteMode&&!a.addressBookId?this.combiner_.loadContactRows(a,b):Vo.prototype.loadContactRows.call(this,a,b)};
var LUb=function(a){this.addrBooks_=[];this.rowSets_=null;this.metrics_=a};LUb.prototype.addAddressBook=function(a){this.addrBooks_.push(new MUb(this,this.addrBooks_.length,a))};LUb.prototype.loadContactRows=function(a,b){a=new NUb(a,this.metrics_,b);OUb(this,a);return a};
var OUb=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],v=c.maxMatches,y=f.length;if(0==y)f=q.length>v?q.slice(0,v):q;else for(var E=0;E<q.length;E++){for(var I=null,N=0;N<y&&!(I=PUb(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==v)break}0<h&&f.length>h&&(f[h].flags|=1)}e?(JUb(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},PUb=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},QUb=function(a,b,c,d){a.rowSets_?a.rowSets_[c]=d:OUb(a,b,c,d)};
LUb.prototype.handleSpecialRow=function(){};var MUb=function(a,b,c){this.combiner_=a;this.id_=b;this.addrBook_=c;this.lastAsyncLatency_=0;this.isSynchronous_=!1};
MUb.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,v){b.matchListener_(a,d,f,v)});a.activeRequests_[this.id_]=e;this.isSynchronous_=!1;this.madeCallback_||a.query.isAutoCompleteMode&&300<this.lastAsyncLatency_&&(c=[RUb(this)])}c&&QUb(this.combiner_,a,this.id_,c)};
var RUb=function(a){var b=a.addrBook_.title_;return new KUb(b?"Searching for matches from "+b:"Searching for more matches.",a.combiner_.handleSpecialRow)};
MUb.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;QUb(this.combiner_,a,this.id_,c)};MUb.prototype.dispose=function(){this.combiner_=this.matcher_=null};
var NUb=function(a,b,c){var d=this;this.query=a;this.activeRequests_={};this.storedResults_={};this.addressBooksToReport_=[];this.storedErrorCodes_=[];var e=new kU((new Po).setEventType(4).setApiType(2));b.count(e);b.start(e,"total");this.handler=function(f,h,k,q){d.addressBooksToReport_.forEach(function(v,y){var E=d.activeRequests_[y];E=E===RT||E instanceof ST?2:1;e.source().setCacheStatus(E);e.source().setAddressBook(v?dTb.get(v)||1:1);b.stop(e,"total");b.status(e,WTb(d.storedErrorCodes_[y]))});
d.addressBooksToReport_=[];c&&c(f,h,k,q)}};NUb.prototype.cancel=function(){for(var a in this.activeRequests_)this.activeRequests_[a].cancel();this.activeRequests_={}};NUb.prototype.isPending=function(){for(var a in this.activeRequests_)if(this.activeRequests_[a].isPending())return!0;return!1};
var SUb={198:"AE",230:"ae",306:"IJ",307:"ij",338:"AE",339:"ae"},nr=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=SUb[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 nU=function(a,b,c,d,e,f){Qo.call(this);this.cacheMaxSize_=e||0;this.rowMatchingFunction_=f||TUb;this.cache_=new aL(this.cacheMaxSize_,!0);this.cacheSize_=a||0;this.cacheMinExpiryAge_=b||0;this.cacheMaxExpiryAge_=c||0;this.cacheByType_=!!d};du(nU,Qo);nU.prototype.disposeInternal=function(){nU.superClass_.disposeInternal.call(this);this.cache_=null};nU.prototype.clear=function(){this.cache_.clear()};
var TUb=function(a){var b=Qn(nr(a.token));return function(c){var d=new RegExp("(^|\\W+)"+b,"i");(d=null!=nr(String(c[1])).match(d))||(d=c[0],d=null!=c[2].match(new RegExp("^"+b,"i"))&&"cl"!=String(d));return d}},UUb=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},VUb=function(a,b,c){a.cache_.set(UUb(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_)}},WUb=function(a,b,c){c=c?a.cache_.get(b):RIb(a.cache_,b);return a.isStale(c)?(a.cache_.remove(b),null):c},XUb=function(a,b,c){c=b.length-c.length;for(var d=b.length;d>=c;d--){var e=WUb(a,b,!1);if(e)return e;b=b.substr(0,d-1)}return null},YUb=function(a,b){if(b.isContactAutoComplete)return null;var c=UUb(b,a.cacheByType_),
d=XUb(a,c,b.token);return d?d:a.cacheByType_&&!Ni(c,"^")?(c=UUb(b,!1),XUb(a,c,b.token)):null};nU.prototype.isStale=function(a){return!!a&&!!this.cacheMaxExpiryAge_&&a.created+this.cacheMaxExpiryAge_<Date.now()};nU.prototype.invalidateCache=function(a){for(var b=this.cache_.getKeys(),c=0;c<b.length;c++){var d=b[c],e={token:RIb(this.cache_,d).token};this.rowMatchingFunction_(e)(a)&&this.cache_.remove(d)}};
var oU=function(a,b,c){this.token=a;this.matches_=b;this.partialResult_=!!c;this.count=1;this.created=Date.now()};oU.prototype.getMatches=function(a){a&&this.count++;return this.matches_};oU.prototype.isComplete=function(a){return!this.partialResult_||0<=a&&a<=this.matches_.length};
du(So,Qo);g=So.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(Wi(a.token)&&!c.allowEmptyQueries_)var d=QT;else{d=a.maxMatches;var e=WUb(c,UUb(a,c.cacheByType_),!0);(d=e&&d&&!e.isComplete(d)?null:e)?d=d.getMatches():(d=YUb(c,a))&&0==d.getMatches().length?(VUb(c,a,new oU(a.token,QT)),d=QT):d&&!d.partialResult_&&c.clientFilteringOk_?(d=d.getMatches(),d=lib(d,c.rowMatchingFunction_(a),c),VUb(c,a,new oU(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,RT,this.getId(),a),RT):this.transport_.loadContactRows(a,this.getId(),$t(this.cacheContactRowsAndInvokeHandler_,this,b))}b&&b(QT,RT,this.getId(),a,4);return RT};g.cacheContactRowsAndInvokeHandler_=function(a,b,c,d,e,f){f||VUb(this.cache_,e,new oU(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(){So.superClass_.disposeInternal.call(this);this.cache_.dispose();this.cache_=null;ZUb(this.transport_,this.id_);this.transport_=null};
var aVb=function(a,b,c){nU.call(this,100,18E5,432E5,!0,0,c||$Ub);this.clientFilteringOk_=a;this.allowEmptyQueries_=b};U(aVb,nU);var $Ub=function(a){return function(b){var c=b.getType(),d;if(d=bVb(a,c)){d=new RegExp("(^|\\W+)"+Qn(nr(a.token)),"i");var e=nr(b.getName()||"");(d=d.test(e))||(d=a.token,d=((b=b.getEmail())?(new RegExp("^"+Qn(nr(d)),"i")).test(b):!1)&&"cl"!=c)}return d}},bVb=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 Yo=function(a,b,c){this.includeDomainGroups_=!!c;b=b||new aVb(!0,!1,cVb);So.call(this,a,b,"domain")};du(Yo,So);Yo.prototype.loadContactRows=function(a,b){a.includeGroups&&!this.includeDomainGroups_&&(a=ch(a),a.includeGroups=!1);return Yo.superClass_.loadContactRows.call(this,a,b)};
var cVb=function(a){for(var b=wC(a.token).toLowerCase().split(/\s+/),c=[],d=[],e=0;e<b.length;e++){var f=Qn(b[e]),h=new RegExp("^"+f,"i");c.push(new RegExp("(^|\\W+)"+f,"i"));d.push(h)}return function(k){if(bVb(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}};Yo.prototype.execute=function(a){a=this.transport_.execute(a);a.setAddressBookId(this.getId());return a};
var dVb=function(a,b){this.personId=a;this.contactId=b.CONTACT||"";this.syntheticId=b.DOMAIN_CONTACT||"";this.profileId=b.PROFILE||b.DOMAIN_PROFILE||"";this.loggingId=""},fVb=function(a){if(!a)return eVb;var b=HCa(Mo("metadata.identityInfo.sourceIds",a)),c=Mo("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 dVb(a.personId||"",b)},eVb=new dVb("",{});
var gVb=function(a,b){this.isLocal_=a;this.edgeIndex_=b};gVb.prototype.toString=function(){return""};
var pU=function(a,b){this.metadata_=a||{};this.edgeCollection_=b};pU.prototype.toString=function(){return""};var iVb=function(a){return hVb(a).some(function(b){return!b.isLocal_})};pU.prototype.getSource=function(a){return hVb(this)[a]};pU.prototype.hasSource=function(){return void 0<hVb(this).length};var hVb=function(a){return a.edgeCollection_?a.edgeCollection_.getSources(a.metadata_.encodedContainerId,a.metadata_.containerType):[]};pU.prototype.getCause=function(a){return jVb(this)[a]};
var jVb=function(a){return a.edgeCollection_?kVb(a.edgeCollection_,a.metadata_.edgeKeyInfo):[]};pU.prototype.getContainerType=function(){return this.metadata_.containerType};var lVb=new pU({},null);
var mVb=function(a,b){this.email_=a;this.edgeCollection_=b;this.metadata_=null};g=mVb.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=this.hasMetaData()?new pU(this.email_.metadata,this.edgeCollection_):lVb);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 nVb=new mVb({},null);
var oVb=function(a,b){this.emails_=[];a=r(a);for(var c=a.next();!c.done;c=a.next())this.emails_.push(new mVb(c.value,b))};g=oVb.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.emails_[a]||nVb};g.getFieldLength=function(){return this.emails_.length};var pVb=new oVb([],null);
var qVb=function(a,b){this.name_=a||{};this.edgeCollection_=b;this.metadata_=null};g=qVb.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=new pU(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 rVb=new qVb({},null);
var sVb=function(a){this.field_=a};g=sVb.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 tVb=new sVb(rVb);
var uVb=["CONTACT","PROFILE","DOMAIN_PROFILE"],vVb=function(a,b){this.names_=[];a=r(a);for(var c=a.next();!c.done;c=a.next())this.names_.push(new qVb(c.value,b))};g=vVb.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.names_[a]||rVb};g.getFieldLength=function(){return this.names_.length};var wVb=new vVb([],null);
var xVb=function(a,b){this.phone_=a;this.edgeCollection_=b;this.metadata_=null};g=xVb.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=this.hasMetaData()?new pU(this.phone_.metadata,this.edgeCollection_):lVb);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 yVb=new xVb({},null);
var zVb=function(a,b){this.phones_=[];a=r(a);for(var c=a.next();!c.done;c=a.next())this.phones_.push(new xVb(c.value,b))};g=zVb.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.phones_[a]||yVb};g.getFieldLength=function(){return this.phones_.length};var AVb=new zVb([],null);
var BVb=function(a,b){this.photo_=a;this.edgeCollection_=b;this.metadata_=null};g=BVb.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=this.hasMetaData()?new pU(this.photo_.metadata,this.edgeCollection_):lVb);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 CVb=new BVb({},null);
var DVb=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 BVb(c,b))};g=DVb.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.photos_[a]||CVb};g.getFieldLength=function(){return this.photos_.length};var EVb=new DVb([],null);
var qU=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};
qU.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_?ICa(this.getName().getValue(),this.getEmail().getField(this.emailIndex_).getValue()):"";this.text_=a}return this.text_};qU.prototype.hasName=function(){return!!this.getName()};
qU.prototype.getName=function(){if(!this.name_){a:{var a=NCa(this);if(a.names_.length){for(var b=r(uVb),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 sVb(e);break a}}a=new sVb(a.names_[0])}else a=tVb}this.name_=a}return this.name_};
var NCa=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 vVb(b,a.edgeCollection_):wVb}return a.nameRepeated_};g=qU.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:JCa(this.contactLabel_)}]);this.email_=a?new oVb(a,this.edgeCollection_):pVb}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 zVb(a,this.edgeCollection_):AVb}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 DVb(a,this.edgeCollection_):EVb}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 ICa=function(a,b){return a?b&&a!=b?'"'+a.replace(/[\\"]/g,"\\$&")+'" <'+b+">":a:b||""},FVb=new qU(null,null,null,null);
var rU=function(){this.keyToIndex_=new Map},GVb=function(a,b,c){return c.map(function(d){return a.get(b,d)}).filter(function(d){return null!=d})};rU.prototype.get=function(a,b){"DOMAIN_PROFILE"===b&&(b="PROFILE");return this.contains(a,b)?this.keyToIndex_.get(this.getKey_(a,b)):null};rU.prototype.set=function(a,b,c){"DOMAIN_PROFILE"===b&&(b="PROFILE");this.keyToIndex_.set(this.getKey_(a,b),c)};
rU.prototype.contains=function(a,b){"DOMAIN_PROFILE"===b&&(b="PROFILE");return this.keyToIndex_.has(this.getKey_(a,b))};rU.prototype.getKey_=function(a,b){return a+"="+b};
var LCa=function(a){this.evergreenProfile_=a?new qU(a,null,null,null):FVb};LCa.prototype.toString=function(){return""};var HVb=new LCa(null);
var IVb=new gVb(!0,null),sU=function(a){this.edgeIndexResolver_=new rU;this.sourcesCache_=new Map;this.encodedContainerIds_=[];this.readonlyOutgoingEdges_=MCa(a,this.edgeIndexResolver_,this.encodedContainerIds_)};sU.prototype.get=function(a){return this.readonlyOutgoingEdges_[a]||HVb};var kVb=function(a,b){return b?b.map(function(c){return a.edgeIndexResolver_.get(c.containerId,c.containerType)}).filter(function(c){return null!=c}):[]};sU.prototype.getSize=function(){return this.readonlyOutgoingEdges_.length};
sU.prototype.getSources=function(a,b){if(!a||!b)return[];if("CONTACT"===b)return[IVb];var c=a+"="+b;this.sourcesCache_.has(c)||this.sourcesCache_.set(c,GVb(this.edgeIndexResolver_,a,[b]).map(function(d){return new gVb(!1,d)}));return this.sourcesCache_.get(c)};var JVb=new sU(null);
var tU=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 sU(this.person_);this.emailIndex_=b;this.profile_=new qU(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(tU,cTb);g=tU.prototype;
g.toString=function(){return"cl"===this.getType()?this.getEmail()||"":this.text};g.getAllIds_=function(){if(!this.allIds_){if(this.person_)var a=fVb(this.person_);else if(this.googleGroup_)if(a=this.googleGroup_){var b=HCa(a.sourceIds);a=new dVb(a.personId||"",b)}else a=eVb;else this.contactLabel_?(a=this.contactLabel_)?(b={},b.CONTACT=Mo("id.id",a)||"",a=new dVb("",b)):a=eVb:a=eVb;this.allIds_=a}return this.allIds_};g.getId=function(){return this.getAllIds_().contactId};
g.getName=function(){null===this.name_&&(this.name_=OCa(this.profile_,function(a){return!!a&&!iVb(a)}),null===this.name_&&(this.name_=KVb(this,OCa)));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_=PCa(this.profile_,function(a){return!!a&&!iVb(a)}),null===this.photoUrl_&&(this.photoUrl_=KVb(this,PCa)));return this.photoUrl_};g.getLoggingId=function(){return this.getAllIds_().loggingId};
var KVb=function(a,b){for(var c=a.profile_.getEmail().getField(a.emailIndex_).getMetaData(),d=0;d<jVb(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<hVb(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""},LVb=function(a,b,c){c=void 0===c?!1:c;if(void 0===b?0:b)return a.map(function(q){return new tU(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=Mo("person.email",e)||Mo("googleGroup.emails",e)||[];if(c||f&&f.length)for(var h=0;h<f.length;h++){var k=(Mo("value",f[h])||"").trim().toLowerCase();if(c){if(b.has(k))continue;b.add(k)}d.push(new tU(e,h))}else d.push(new tU(e))}return d};
var UCa=function(a,b,c,d,e,f,h,k,q,v,y,E,I,N,L,T){L=void 0===L?new OT:L;T=void 0===T?!1:T;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=v?v: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=
T};UCa.prototype.setTimeout=function(a){var b=this.timeoutMs;0<a&&(this.timeoutMs=a);return b};
var uU=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(uU,Error);
var vU=function(a,b,c){this.config=a;this.onAuthError_=a.onAuthError;this.timeoutMs_=a.timeoutMs;this.metrics_=a.metrics;this.metric_=new kU(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=vU.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_=zsb(new HD),MVb(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&&!yCa()&&(c.params=c.params||{},c.params.key=d);c.headers=zCa(d);c.root=this.config.peopleRoot;c.authType="auto";a=a.request(c)}else a=Promise.resolve({result:{}});return this.promise_=Jsb(Csb([a,Ssb(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{MVb(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 HD)c=1,d=11;else if(a instanceof uU)c=a.code,d=VTb(c);else if(a&&"object"===typeof a){var e=Mo("result.error.code",a)||a.status,f=e;f=Number(f);c=STb.has(f)?STb.get(f):200<=f&&300>f?0:400<=f&&500>f?9:500<=f&&600>f?13:2;d=VTb(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),MVb(this,null,d,b)}};
var MVb=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 NVb=function(a,b,c){var d=(new Po).setEventType(2).setRpcType(1).setToken(b);vU.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(NVb,vU);
NVb.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}};
NVb.prototype.processResponse=function(a){var b=a.status;if(b){if(b.personalResultsNotReady)throw new uU(14,"PersonalResultsNotReady");if(b.requestThrottled)throw new uU(8,"RequestThrottled");if(b.containsPartialResults)throw new uU(8,"ContainsPartialResults");}return LVb(a.results||[],this.config.includeOnlyNames)};
var OVb=function(a,b){this.person_=a;this.allIds_=null;this.edgeCollection_=b;this.profile_=this.person_?new qU(this.person_,null,null,this.edgeCollection_):FVb};g=OVb.prototype;g.toString=function(){return""};g.getAllIds_=function(){this.allIds_||(this.allIds_=fVb(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 PVb=new OVb(null,JVb);
var QVb=function(a){a=void 0===a?null:a;this.edgeCollection_=new sU(a);this.contact_=a?new OVb(a,this.edgeCollection_):PVb};g=QVb.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 RVb=function(a,b,c){vU.call(this,a,(new Po).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(RVb,vU);
RVb.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}};RVb.prototype.processResponse=function(a){return(a.personResponse||[]).filter(function(b){return"SUCCESS"==b.status}).map(function(b){return new QVb(b.person)})};
var wU=function(a,b,c,d){vU.call(this,a,ECa(b),d);this.clientName_=a.clientName;this.clientVersion_=a.clientVersion;this.delegatorId_=a.delegatorId;this.lookupType_=SVb(b);this.knownIds_=c.filter(function(e){return!!e});this.peopleContainerMask_=a.peopleContainerMask;this.peopleFieldMask_=a.peopleFieldMask};U(wU,vU);
wU.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}};
wU.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 QVb(f))});return d};var SVb=function(a){switch(a){case 1:return"EMAIL";case 2:return"PHONE";case 3:return"CONTACT";case 5:return"SYNTHETIC";default:return""}};
var TVb=function(a,b){vU.call(this,a,(new Po).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(TVb,vU);
TVb.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}};TVb.prototype.processResponse=function(a){return LVb(a.rankedTarget||[],this.config.includeOnlyNames,!0)};
g=QCa.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 TCa=new Map([[1,4],[2,2],[3,1],[4,7]]),Xo=function(a,b){WC.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 kU((new Po).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?UVb(c,d):VVb(c,5)},function(d){c.metrics_.logError("gapi.client failed to load: "+d,d);VVb(c,5)})};
U(Xo,WC);var UVb=function(a,b){b&&b.request?(DCa(),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 WVb(a,d,e)})})):VVb(a,9)};Xo.prototype.disposeInternal=function(){for(var a=r(this.queuedRequests_.keys()),b=a.next();!b.done;b=a.next())ZUb(this,b.value)};
var VVb=function(a,b){a.metrics_.status(a.gapiMetric_,b);a.gapiFailed_=!0;a.disposeInternal()},ZUb=function(a,b){b=b||"";a.queuedRequests_.has(b)&&(XVb(a.queuedRequests_.get(b)),a.queuedRequests_.delete(b))},YVb=function(a,b,c){a.gapiFailed_?c.cancel():(GCa(a,b).push(c),WVb(a,b,c))},WVb=function(a,b,c){a.gapiClient_&&Jsb(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)}})},GCa=function(a,b){b=b||"";if(a.queuedRequests_.has(b))return a.queuedRequests_.get(b);
var c=[];a.queuedRequests_.set(b,c);return c},XVb=function(a){a&&a.length&&(a.forEach(function(b){return b.cancel()}),a.length=0)};Xo.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 NVb(this.config_,d,e):new TVb(this.config_,e);YVb(this,b,f);return f};
Xo.prototype.execute=function(a){if(a.isMutate())return this.metrics_.status(new kU((new Po).setEventType(2).setRpcType(4)),12),ZVb(a);var b=a.getQueryParameters&&a.getQueryParameters()||{},c=b.addressBookId,d=function(y,E){E?(y=YTb(E,h),a.response_=y):(E=new QCa(b),E.contacts_=y,y=new XTb(h),y.queryResponse_=E,y.errorCode_=E.getError(),a.response_=y)},e=this.config_.setTimeout($Vb(a));try{var f=b.emailAddresses||[];if(f.length)var h=new wU(this.config_,1,f,d);else{var k=b.contactIds||[];if(k.length)h=
new wU(this.config_,3,k,d);else{var q=b.profileIds||[];if(q.length)h=new RVb(this.config_,q,d);else{var v=b.syntheticIds||[];if(v.length)h=new wU(this.config_,5,v,d);else return this.metrics_.status(new kU((new Po).setEventType(2)),12),ZVb(a)}}}}finally{this.config_.setTimeout(e)}h.setQuery(a);YVb(this,c,h);return h};var ZVb=function(a){var b=new ST(function(){var c=YTb(5,b);a.response_=c});b.setQuery(a);return b};
var xU=function(a,b,c,d){So.call(this,a,b,c,d)};U(xU,So);xU.prototype.execute=function(a){a.isMutate()&&a.addSuccessCallback($t(this.handleExecuteResponse_,this,a));a=this.transport_.execute(a);a.setAddressBookId(this.getId());return a};xU.prototype.handleExecuteResponse_=function(a,b){if(b.hasChanges()){var c=b.mutateResponse_;if(a.getNotifyOnChange()||c&&c.getError())a=new jUb([b.mutateResponse_],"c"),this.dispatchEvent(a)}};
var WCa=function(a,b,c){b=b||new aVb(!0,!0);So.call(this,a,b,"personal",c)};U(WCa,xU);WCa.prototype.configure=function(a,b){xU.prototype.configure.call(this,a,b)};
var aWb=function(a,b,c,d){a=new PT(jo($Sb,'[["AIzaSyBuUpn1wi2-0JpM3S-tq2csYx0z2_m_pqc","ANVavNLWozk6oXyP9qguyx4QAuef5j_qQw4Y3Rw",755,"MINIMAL_DOMAIN_GROUP","MISSED_LEGACY_INTEGRATION"],[]]'));a.setAuthErrorHandler(c||null);b&&bTb(a,b);a.getUserInfo().setEnvType(d?4:1);return XCa(a)};
var cp={},bWb={},cWb={},dWb={},bp=function(){throw Error("Pd");};bp.prototype.contentDir=null;bp.prototype.getContent=function(){return this.content};bp.prototype.toString=function(){return this.content};var eWb=function(){bp.call(this)};du(eWb,bp);eWb.prototype.contentKind=cp;var fWb=function(){bp.call(this)};du(fWb,bp);fWb.prototype.contentKind=bWb;fWb.prototype.contentDir=1;
var yU=function(a,b){return null!=a&&a.contentKind===b};
var gWb=function(a){if(null!=a)switch(a.contentDir){case 1:return 1;case -1:return-1;case 0:return 0}return null},zU=function(a){return yU(a,cp)?a:a instanceof ph?Iq(Vy(a),a.getDirection()):a instanceof ph?Iq(Vy(a)):Iq(String(String(a)).replace(hWb,iWb),gWb(a))},Iq=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}}(eWb),AU=function(a){if(null==a)throw Error("Rd");return a},jWb=function(a){return a instanceof
bp?!!a.getContent():!!a},BU=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}}(eWb),kWb=function(a){function b(c){this.content=c}b.prototype=a.prototype;return function(c){return(c=String(c))?new b(c):""}}(fWb),nWb=function(a){return yU(a,cp)?a:Iq(lWb(a,mWb),gWb(a))},oWb=RegExp("^<(?:area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)\\b"),lWb=function(a,
b){if(!b)return String(a).replace(pWb,"").replace(qWb,"&lt;");a=String(a).replace(/\[/g,"&#91;");var c=[],d=[];a=a.replace(pWb,function(f,h){if(h&&(h=h.toLowerCase(),b.hasOwnProperty(h)&&b[h])){var k=c.length,q="</",v="";if("/"!=f.charAt(1)){q="<";for(var y;y=rWb.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)v=' dir="'+f+'"'}break}rWb.lastIndex=0}c[k]=q+h+">";d[k]=v;return"["+
k+"]"}return""});a=String(a).replace(sWb,iWb);var e=tWb(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},uWb=function(a){return a.replace(/<\//g,"<\\/").replace(/\]\]>/g,"]]\\>")},tWb=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]="":oWb.test(e)||b.push("</"+
e.substring(1))}return b.reverse().join("")},Jq=function(a){return yU(a,cp)?String(lWb(a.getContent())).replace(sWb,iWb):String(a).replace(hWb,iWb)},yWb=function(a){yU(a,bWb)||yU(a,cWb)?a=CU(a):a instanceof dh?a=CU(fh(a)):a instanceof sh?a=CU(oh(a)):a instanceof Ry?a=CU(vh(a)):a instanceof uh?a=CU(Rja(a)):(a=String(a),a=vWb.test(a)?a.replace(wWb,xWb):"about:invalid#zSoyz");return a},DU=function(a){yU(a,dWb)?a=uWb(a.getContent()):null==a?a="":a instanceof Ty?a=uWb(Snb(a)):a instanceof Uy?(a instanceof
Uy&&a.constructor===Uy?a=a.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_:(Na(a),a="type_error:SafeStyleSheet"),a=uWb(a)):(a=String(a),a=zWb.test(a)?a:"zSoyz");return a},AWb={"\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;"},iWb=function(a){return AWb[a]},BWb={"\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"},
xWb=function(a){return BWb[a]},hWb=/[\x00\x22\x26\x27\x3c\x3e]/g,sWb=/[\x00\x22\x27\x3c\x3e]/g,wWb=/[\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,zWb=/^(?!-*(?: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,
vWb=/^(?:(?:https?|mailto|ftp):|[^&:\/?#]*(?:[\/?#]|$))/i,CWb=/^[^&:\/?#]*(?:[\/?#]|$)|^https?:|^ftp:|^data:image\/[a-z0-9+]+;base64,[a-z0-9+\/]+=*$|^blob:/i,CU=function(a){return String(a).replace(wWb,xWb)},pWb=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,qWb=/</g,mWb={b:!0,br:!0,em:!0,i:!0,s:!0,strong:!0,sub:!0,sup:!0,u:!0},rWb=/([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 YCa={};
var EU=function(a,b,c){Qo.call(this);this.matcher_=a;this.selectionHandler_=c;this.renderer_=b;Ro(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_={}};du(EU,Qo);g=EU.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_[FU(this,a)];c=!!d&&b.isRowDisabled&&b.isRowDisabled(d);d&&!c&&this.hiliteId_!=a&&this.hiliteId(a)}c||this.selectHilited();break;case "canceldismiss":DWb(this);break;case "dismiss":EWb(this)}};
g.setToken=function(a){this.token_!=a&&(this.token_=a,this.matcher_.requestMatchingRows(this.token_,this.maxMatches_,$t(this.matchListener_,this)),DWb(this))};g.getTarget=function(){return this.target_};g.setTarget=function(a){this.target_=a};g.isOpen=function(){return this.renderer_.isVisible()};var FWb=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}};
EU.prototype.hiliteId=function(a){var b=FU(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)};
EU.prototype.selectHilited=function(){var a=FU(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=GWb(c,c.getValue(),c.getCursorPosition()),f=HWb(c,c.getValue());c.separatorCheck_&&!c.separatorCheck_.test(d)&&(d=d.replace(/[\s\xa0]+$/,"")+c.defaultSeparator_);0==e||Wi(f[e-1])||(d=" "+d);e==f.length-1&&(d+=" ");if(d!=f[e]){f[e]=d;d=c.activeElement_;(ju||hu)&&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_;IWb(f)&&(f.selectionStart=e);f=c.activeElement_;IWb(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};
EU.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 EWb=function(a){a.dismissTimer_||(a.dismissTimer_=window.setTimeout($t(a.dismiss,a),100))};
EU.prototype.immediatelyCancelDelayedDismiss_=function(){return this.dismissTimer_?(window.clearTimeout(this.dismissTimer_),this.dismissTimer_=null,!0):!1};var DWb=function(a){a.immediatelyCancelDelayedDismiss_()||window.setTimeout($t(a.immediatelyCancelDelayedDismiss_,a),10)};EU.prototype.disposeInternal=function(){EU.superClass_.disposeInternal.call(this);delete this.inputToAnchorMap_;this.renderer_.dispose();this.selectionHandler_.dispose();this.matcher_=null};
EU.prototype.matchListener_=function(a,b,c){this.token_==a&&this.renderRows(b,c)};
EU.prototype.renderRows=function(a,b){var c="object"==Na(b)&&b;b=(c?c.getPreserveHilited():b)?FU(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_[Ga(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):FWb(this));this.dispatchEvent("suggestionsupdate")};var FU=function(a,b){b-=a.firstRowId_;return 0>b||b>=a.rows_.length?-1:b};EU.prototype.attachInputs=function(a){var b=this.selectionHandler_;b.attachInputs.apply(b,arguments)};EU.prototype.detachInputs=function(a){var b=this.selectionHandler_;b.detachInputs.apply(b,arguments);Array.prototype.forEach.call(arguments,function(c){bh(this.inputToAnchorMap_,Ga(c))},this)};EU.prototype.update=function(a){this.selectionHandler_.update(a)};
var JWb=function(a,b){var c=0,d=0;IWb(a)&&(c=a.selectionStart,d=b?-1:a.selectionEnd);return[c,d]},IWb=function(a){try{return"number"==typeof a.selectionStart}catch(b){return!1}};
var MWb=function(a,b,c,d,e,f){if(lu&&e)return KWb(a);if(e&&!d)return!1;if(!ju){"number"===typeof b&&(b=LWb(b));var h=17==b||18==b||lu&&91==b;if((!c||lu)&&h||lu&&16==b&&(d||f))return!1}if((ku||iu)&&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(hu&&d&&b==a)return!1;switch(a){case 13:return ju?f||e?!1:!(c&&d):!0;case 27:return!(ku||iu||ju)}return ju&&(d||e||f)?!1:KWb(a)},KWb=function(a){if(48<=a&&57>=a||96<=a&&106>=
a||65<=a&&90>=a||(ku||iu)&&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 ju;default:return!1}},LWb=function(a){if(ju)a=NWb(a);else if(lu&&ku)switch(a){case 93:a=91}return a},NWb=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 OWb=function(a,b,c,d){cD.call(this,d);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c};du(OWb,cD);
var GU=function(a,b){Qo.call(this);a&&this.attach(a,b)};du(GU,Qo);g=GU.prototype;g.element_=null;g.keyPressKey_=null;g.keyDownKey_=null;g.keyUpKey_=null;g.lastKey_=-1;g.keyCode_=-1;g.altKey_=!1;
var PWb={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},QWb={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},RWb=lu&&ju;g=GU.prototype;
g.handleKeyDown_=function(a){(ku||iu)&&(17==this.lastKey_&&!a.ctrlKey||18==this.lastKey_&&!a.altKey||lu&&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));MWb(a.keyCode,this.lastKey_,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey)?(this.keyCode_=LWb(a.keyCode),RWb&&(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(hu&&"keypress"==a.type){var d=this.keyCode_;var e=13!=d&&27!=d?b.keyCode:0}else(ku||iu)&&"keypress"==a.type?(d=this.keyCode_,e=0<=b.charCode&&63232>b.charCode&&KWb(d)?b.charCode:0):("keypress"==a.type?(RWb&&(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),lu&&63==e&&224==d&&(d=191));var f=d=LWb(d);d?63232<=
d&&d in PWb?f=PWb[d]:25==d&&a.shiftKey&&(f=9):b.keyIdentifier&&b.keyIdentifier in QWb&&(f=QWb[b.keyIdentifier]);if(!ju||"keypress"!=a.type||MWb(f,this.lastKey_,a.shiftKey,a.ctrlKey,c,a.metaKey))a=f==this.lastKey_,this.lastKey_=f,b=new OWb(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_=Ro(this.element_,"keypress",this,b);this.keyDownKey_=Ro(this.element_,"keydown",this.handleKeyDown_,b,this);this.keyUpKey_=Ro(this.element_,"keyup",this.handleKeyup_,b,this)};g.detach=function(){this.keyPressKey_&&(kD(this.keyPressKey_),kD(this.keyDownKey_),kD(this.keyUpKey_),this.keyUpKey_=this.keyDownKey_=this.keyPressKey_=null);this.element_=null;this.keyCode_=this.lastKey_=-1};
g.disposeInternal=function(){GU.superClass_.disposeInternal.call(this);this.detach()};
var HU=function(a,b,c,d){WC.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 ID(d):null;this.eh_=new aH(this);this.activateHandler_=new aH(this);this.keyHandler_=new GU;this.lastKeyCode_=-1};
du(HU,WC);g=HU.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 JWb(this.activeElement_,!0)[0]};
g.attachInputs=function(a){for(var b=0;b<arguments.length;b++){var c=arguments[b];yD(c)&&(ZI(c,"combobox"),$I(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_),yD(c))){var d=oD(c);try{var e=d&&d.activeElement;var f=e&&e.nodeName?e:null}catch(h){f=null}f==c&&SWb(this,c)}}};
g.detachInputs=function(a){for(var b=0;b<arguments.length;b++){var c=arguments[b];yD(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(){HU.superClass_.disposeInternal.call(this);this.eh_.dispose();delete this.eh_;this.activateHandler_.dispose();this.keyHandler_.dispose();vi(this.timer_)};
var UWb=function(a,b){switch(b.keyCode){case 40:if(a.ac_.isOpen()){FWb(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}}TWb(a,b)},TWb=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()};HU.prototype.handleKeyUp=function(){return!1};HU.prototype.handleFocus=function(a){SWb(this,a.target||null)};
var SWb=function(a,b){a.activateHandler_.removeAll();a.ac_&&DWb(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_),hu&&a.eh_.listen(a.activeElement_,"keypress",a.onIeKeyPress_))};g=HU.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_),hu&&this.eh_.unlisten(this.activeElement_,"keypress",this.onIeKeyPress_),this.waitingForIme_&&VWb(this),this.activeElement_=null,this.timer_&&(this.timer_.stop(),this.eh_.unlisten(this.timer_,"tick",this.onTick_)),this.ac_&&EWb(this.ac_))};
g.onTick_=function(){this.update()};g.onKeyDownOnInactiveElement_=function(a){this.handleFocus(a)};g.onKey_=function(a){this.lastKeyCode_=a.keyCode;this.ac_&&UWb(this,a)};g.onKeyPress_=function(){this.waitingForIme_&&229!=this.lastKeyCode_&&VWb(this)};g.onKeyUp_=function(a){this.waitingForIme_&&(13==a.keyCode||77==a.keyCode&&a.ctrlKey)&&VWb(this)};g.onMouseDown_=function(){};
var VWb=function(a){a.waitingForIme_&&(a.waitingForIme_=!1,a.eh_.unlisten(a.activeElement_,"keypress",a.onKeyPress_),a.eh_.unlisten(a.activeElement_,"keyup",a.onKeyUp_))};HU.prototype.onIeKeyPress_=function(a){TWb(this,a)};
HU.prototype.update=function(a){if(this.activeElement_&&(a||this.getValue()!=this.lastValue_)){if(a||!this.rowJustSelected_){a=this.getCursorPosition();var b=this.getValue();a=HWb(this,b)[GWb(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 GWb=function(a,b,c){a=HWb(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},HWb=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 WWb=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""},XWb=function(a){return a.classList?a.classList:WWb(a).match(/\S+/g)||[]},YWb=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)},ZWb=function(a,b){return a.classList?a.classList.contains(b):ua(XWb(a),b)},$Wb=function(a,b){if(a.classList)a.classList.add(b);else if(!ZWb(a,b)){var c=WWb(a);YWb(a,c+(0<c.length?" "+b:b))}},IU=function(a,b){if(a.classList)Array.prototype.forEach.call(b,
function(e){$Wb(a,e)});else{var c={};Array.prototype.forEach.call(XWb(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;YWb(a,b)}},aXb=function(a,b){a.classList?a.classList.remove(b):ZWb(a,b)&&YWb(a,Array.prototype.filter.call(XWb(a),function(c){return c!=b}).join(" "))},bXb=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){aXb(a,c)}):YWb(a,Array.prototype.filter.call(XWb(a),function(c){return!ua(b,c)}).join(" "))};
var cXb=function(a,b,c){WC.call(this);this.listener_=a;this.interval_=b||0;this.handler_=c;this.callback_=$t(this.doAction_,this)};du(cXb,WC);g=cXb.prototype;g.id_=0;g.disposeInternal=function(){cXb.superClass_.disposeInternal.call(this);this.stop();delete this.listener_;delete this.handler_};g.start=function(a){this.stop();this.id_=JD(this.callback_,void 0!==a?a:this.interval_)};g.stop=function(){this.isActive()&&KD(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 dXb=function(a,b){if(b&&a in b)return a;var c=ku?"Webkit":ju?"Moz":hu?"ms":null;return c?(c=c.toLowerCase(),a=c+Lk(a),void 0===b||a in b?a:null):null};
var JU=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};g=JU.prototype;g.getWidth=function(){return this.right-this.left};g.getHeight=function(){return this.bottom-this.top};g.clone=function(){return new JU(this.top,this.right,this.bottom,this.left)};g.contains=function(a){return this&&a?a instanceof JU?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){Fa(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 Tq?(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 KU=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};KU.prototype.clone=function(){return new KU(this.left,this.top,this.width,this.height)};var SSa=function(a){return new KU(a.left,a.top,a.right-a.left,a.bottom-a.top)};
KU.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 eXb=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 KU(c,e,d-c,a-e)}return null};
g=KU.prototype;g.contains=function(a){return a instanceof Tq?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 mD(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 Tq?(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 LU=function(a,b){var c=oD(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""},Dp=function(a,b){return LU(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]},Wq=function(a,b,c){if(b instanceof Tq){var d=b.x;b=b.y}else d=b,b=c;a.style.left=MU(d,!1);a.style.top=MU(b,!1)},fXb=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}},gXb=function(a){if(hu&&!(8<=
Number(ou)))return a.offsetParent;var b=oD(a),c=Dp(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=Dp(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},Rq=function(a){for(var b=new JU(0,Infinity,Infinity,0),c=Zo(a),d=c.document_.body,e=c.document_.documentElement,f=tD(c.document_);a=
gXb(a);)if(!(hu&&0==a.clientWidth||ku&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=Dp(a,"overflow")){var h=NU(a),k=new Tq(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},jXb=function(a,b){b=b||tD(document);var c=b||tD(document);var d=NU(a),e=NU(c),f=hXb(c);if(c==tD(document)){var h=d.x-c.scrollLeft;d=d.y-c.scrollTop;!hu||10<=Number(ou)||(h+=f.left,d+=f.top)}else h=d.x-e.x-f.left,d=d.y-e.y-f.top;a=iXb(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 Tq(e,k);b.scrollLeft=c.x;b.scrollTop=c.y},NU=function(a){var b=
oD(a),c=new Tq(0,0);var d=b?oD(b):document;d=!hu||9<=Number(ou)||rD(Zo(d).document_)?d.documentElement:d.body;if(a==d)return c;a=fXb(a);b=uD(Zo(b).document_);c.x=a.left+b.x;c.y=a.top+b.y;return c},TSa=function(a,b,c){if(b.document_!=c.document_){var d=b.document_.body;c=c.getWindow();var e=new Tq(0,0),f=vD(oD(d));if(oib(f,"parent")){var h=d;do{if(f==c)var k=NU(h);else k=fXb(h),k=new Tq(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=Uq(e,NU(d));!hu||
9<=Number(ou)||rD(b.document_)||(d=Uq(d,uD(b.document_)));a.left+=d.x;a.top+=d.y}},kXb=function(a,b,c){if(b instanceof mD)c=b.height,b=b.width;else if(void 0==c)throw Error("Ud");a.style.width=MU(b,!0);a.style.height=MU(c,!0)},MU=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a},Vq=function(a){var b=iXb;if("none"!=Dp(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},iXb=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=ku&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=fXb(a),new mD(a.right-a.left,a.bottom-a.top)):new mD(b,c)},Qq=function(a){var b=NU(a);a=Vq(a);return new KU(b.x,b.y,a.width,a.height)},lXb=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)+")")},OU=function(a,b){a.style.display=b?"":"none"},mXb=function(a){return"rtl"==
Dp(a,"direction")},nXb=ju?"MozUserSelect":ku||iu?"WebkitUserSelect":null,oXb=function(a){var b=a.getElementsByTagName("*");if(nXb){var c="none";a.style&&(a.style[nXb]=c);if(b){a=0;for(var d;d=b[a];a++)d.style&&(d.style[nXb]=c)}}else if(hu&&(c="on",a.setAttribute("unselectable",c),b))for(a=0;d=b[a];a++)d.setAttribute("unselectable",c)},XSa=function(a,b){var c=rD(Zo(oD(a)).document_);if(!hu||nu("10")||c){var d=a.style;ju?d.MozBoxSizing="border-box":ku?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=pXb(a,"padding"),a=hXb(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)},qXb=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},rXb=function(a,
b){return(b=a.currentStyle?a.currentStyle[b]:null)?qXb(a,b):0},pXb=function(a,b){if(hu){var c=rXb(a,b+"Left"),d=rXb(a,b+"Right"),e=rXb(a,b+"Top");a=rXb(a,b+"Bottom");return new JU(e,d,a,c)}c=LU(a,b+"Left");d=LU(a,b+"Right");e=LU(a,b+"Top");a=LU(a,b+"Bottom");return new JU(parseFloat(e),parseFloat(d),parseFloat(a),parseFloat(c))},sXb={thin:2,medium:4,thick:6},tXb=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
sXb?sXb[b]:qXb(a,b)},hXb=function(a){if(hu&&!(9<=Number(ou))){var b=tXb(a,"borderLeft"),c=tXb(a,"borderRight"),d=tXb(a,"borderTop");a=tXb(a,"borderBottom");return new JU(d,c,a,b)}b=LU(a,"borderLeftWidth");c=LU(a,"borderRightWidth");d=LU(a,"borderTopWidth");a=LU(a,"borderBottomWidth");return new JU(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))};
var uXb=function(){if(rib){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(da()))?a[1]:"0"}return lu?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(da()))?a[0].replace(/_/g,"."):"10"):uib?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(da()))?a[1]:""):vib||wib||xib?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(da()))?a[1].replace(/_/g,"."):""):""}();
var PU=function(a){return(a=a.exec(da()))?a[1]:""},vXb=function(){if(Hib)return PU(/Firefox\/([0-9.]+)/);if(hu||iu||pib)return mu;if(Lib){if(na()||fa("Macintosh")){var a=PU(/CriOS\/([0-9.]+)/);if(a)return a}return PU(/Chrome\/([0-9.]+)/)}if(Mib&&!na())return PU(/Version\/([0-9.]+)/);if(Iib||Jib){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(da()))return a[1]+"."+a[2]}else if(Kib)return(a=PU(/Android\s+([0-9.]+)/))?a:PU(/Version\/([0-9.]+)/);return""}();
var RSa=function(a){if(a=a.offsetParent){var b="HTML"==a.tagName||"BODY"==a.tagName;if(!b||"static"!=Dp(a,"position")){var c=NU(a);if(!b){b=mXb(a);var d;if(d=b){d=Mib&&0<=pa(vXb,10);var e;if(e=yib)e=0<=pa(uXb,10);var f=Lib&&0<=pa(vXb,85);d=ju||d||e||f}b=d?-a.scrollLeft:b&&!coa&&"visible"!=Dp(a,"overflowX")?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft;c=Uq(c,new Tq(b,a.scrollTop))}}}return c||new Tq},USa=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 KU(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}},Sq=function(a,b){return(b&8&&mXb(a)?b^4:b)&
-9};
var QU=function(){};QU.instance_=void 0;QU.getInstance=function(){return QU.instance_?QU.instance_:QU.instance_=new QU};QU.prototype.nextId_=0;QU.prototype.idPrefix_="";QU.prototype.setIdPrefix=function(a){this.idPrefix_=a};var Cq=function(a){return a.idPrefix_+":"+(a.nextId_++).toString(36)};
var RU=function(a,b,c,d){Qo.call(this);this.parent_=a||document.body;this.dom_=Zo(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};du(RU,Qo);RU.prototype.getElement=function(){return this.element_};
RU.prototype.renderRows=function(a,b,c){this.token_=b;this.rows_=a;this.hilitedRow_=-1;this.startRenderingRows_=bu();this.target_=c;this.rowDivs_=[];wXb(this)};RU.prototype.dismiss=function(){this.visible_&&(this.visible_=!1,xXb(this,!1),OU(this.element_,!1))};RU.prototype.show=function(){this.visible_||(this.visible_=!0,xXb(this,!0),OU(this.element_,!0))};
var xXb=function(a,b){a.target_&&($I(a.target_,"haspopup",b),$I(a.element_,"expanded",b),$I(a.target_,"expanded",b),b?$I(a.target_,"owns",a.element_.id):(a.target_.removeAttribute("aria-owns"),aJ(a.target_,null)))};RU.prototype.isVisible=function(){return this.visible_};
var yXb=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_&&bXb(a.rowDivs_[a.hilitedRow_],["ac-active","active"]),a.hilitedRow_=b,d&&(IU(d,["ac-active","active"]),a.target_&&aJ(a.target_,d),jXb(d,a.element_)))};RU.prototype.hiliteId=function(a){if(-1==a)yXb(this,-1);else for(var b=0;b<this.rows_.length;b++)if(this.rows_[b].id==a){yXb(this,b);break}};
var zXb=function(a){if(!a.element_){var b=a.dom_.createDom("DIV",{style:"display:none"});a.element_=b;IU(b,Ri(a.className).split(" "));ZI(b,"listbox");b.id=Cq(QU.getInstance());a.dom_.appendChild(a.parent_,b);Ro(b,"click",a.handleClick_,!1,a);Ro(b,"mousedown",a.handleMouseDown_,!1,a);Ro(b,"mouseover",a.handleMouseOver_,!1,a)}},wXb=function(a){zXb(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:Cq(QU.getInstance())});ZI(d,"option");this.customRenderer_&&this.customRenderer_.renderRow?this.customRenderer_.renderRow(b,c,d):AD(d,b.data.toString());c&&this.useStandardHighlighting_&&(this.wasHighlightedAtLeastOnce_=!1,AXb(this,d,c));$Wb(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(),oXb(a.element_))};
RU.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=RSa(c),f=Qq(a),h=Rq(a);h&&f.intersection(SSa(h));TSa(f,Zo(a),Zo(c));a=Sq(a,b);b=f.left;a&4?b+=f.width:a&2&&(b+=f.width/2);a=new Tq(b,f.top+(a&1?f.height:0));a=Uq(a,e);if(f=Rq(c))f.top-=e.y,f.right-=e.x,f.bottom-=e.y,f.left-=e.x;e=a.clone();a=Sq(c,d);d=Vq(c);b=d.clone();e=USa(e,b,a,null,f,65);e.status&496||(f=e.rect,Wq(c,new Tq(f.left,
f.top)),b=e.rect.getSize(),WSa(d,b)||XSa(c,b))}};RU.prototype.getTarget=function(){return this.target_||null};RU.prototype.disposeInternal=function(){this.element_&&(jD(this.element_,"click",this.handleClick_,!1,this),jD(this.element_,"mousedown",this.handleMouseDown_,!1,this),jD(this.element_,"mouseover",this.handleMouseOver_,!1,this),this.dom_.removeNode(this.element_),this.element_=null,this.visible_=!1);vi(this.animation_);this.parent_=null;RU.superClass_.disposeInternal.call(this)};
var AXb=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=BXb(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&&AXb(a,b,d)}}else for(b=b.firstChild;b;)d=b.nextSibling,AXb(a,b,c),b=d},BXb=function(a,b){var c="";if(!b)return c;Array.isArray(b)&&(b=b.filter(function(d){return!Wi(Vi(d))}));a.highlightAllTokens_?
Array.isArray(b)?c=b.map(Qn).join("|"):(c=wC(b),c=Qn(c),c=c.replace(/ /g,"|")):Array.isArray(b)?c=0<b.length?Qn(b[0]):"":/^\W/.test(b)||(c=Qn(b));return c},CXb=function(a,b){for(;b&&b!=a.element_&&!ZWb(b,"ac-row");)b=b.parentNode;return b?a.rowDivs_.indexOf(b):-1};RU.prototype.handleClick_=function(a){var b=CXb(this,a.target);0<=b&&this.dispatchEvent({type:"select",row:this.rows_[b].id});a.stopPropagation()};RU.prototype.handleMouseDown_=function(a){a.stopPropagation();a.preventDefault()};
RU.prototype.handleMouseOver_=function(a){a=CXb(this,a.target);0<=a&&!(300>bu()-this.startRenderingRows_)&&this.dispatchEvent({type:"hilite",row:this.rows_[a].id})};
var SU=function(a,b,c,d,e,f,h,k,q,v){f=f||new HU(",;",'"');h=new RU(h||null,q||this,v);h.reposition_=!0;h.className=b;h.highlightAllTokens_=!0;EU.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};du(SU,EU);
var EXb=function(a,b,c,d,e,f,h,k,q,v){b=new SU(null,b,void 0,f,c,d,e,void 0,void 0,h);YG(a);DXb.call(null,b,aWb(0,k,q,v));return b},FXb=function(a,b,c,d,e,f,h){b=new SU(null,b,void 0,f,c,d,e,void 0,void 0,h);DXb(b,XCa(a));return b},DXb=function(a,b){b.loadContactRows(dUb,function(){});GXb(a,b)};SU.prototype.disposeInternal=function(){this.inputHandler_.dispose();this.contactStore_&&this.ownsContactStore_&&vi(this.contactStore_);SU.superClass_.disposeInternal.call(this)};
var GXb=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=SU.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:bUb,addressBookId:this.addressBookId_,filter:this.filter_,isAutoCompleteMode:!0,isContactAutoComplete:!!this.returnFullContacts,includeEvergreenData:!1};c=$t(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 ST;var d=[];this.filter_&&(d=this.filter_(d,a.token));b.response_=au(c,d,b,null,a)}};g.handleAutoCompleteContacts_=function(a,b,c,d,e){a(e.token,b)};g.renderRows=function(a,b){SU.superClass_.renderRows.call(this,a,b)};g.dismiss=function(){SU.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=Iq('<div class="'+Jq("goog-contacts-ui-autocomplete-name-nochat")+(b?" "+Jq("goog-contacts-ui-autocomplete-new-section"):"")+'">'+zU(a)+"</div>");a=ZCa(a);$o(c,a)};g.selectHilited=function(){var a=FU(this,this.hiliteId_);return-1!=a&&(a=this.rows_[a],a.specialRowHandler)?(a.specialRowHandler(),!0):SU.superClass_.selectHilited.call(this)};g.fireSelectionEvent=function(a){this.dispatchEvent(new HXb(a))};
var HXb=function(a){YC.call(this,"g");this.row=a};du(HXb,YC);cu("createAutoComplete",function(a,b,c,d,e,f,h,k,q,v,y,E,I,N){d&&(b=b+d+"/");b=aWb(YG(b),E,I,N);f&&b.loadContactRows(dUb,function(){});c=new SU(b,c,void 0,q,e,k,v,!0);c.attachInputs(pD(document,a));return c});
var TU=function(){this.eventHandler_=new aH(this);TU.prototype.addInput=TU.prototype.addInput;TU.prototype.removeInput=TU.prototype.removeInput;TU.prototype.setTarget=TU.prototype.setTarget},IXb=function(a,b){var c=new TU;c.create(a,b);return c};g=TU.prototype;
g.create=function(a,b){a=pD(document,a);this.acWidget_=b.contactStoreConfig?FXb(b.contactStoreConfig,b.acCssName||"ac-renderer",b.maxMatches||15,b.inputHandler,a.ownerDocument.body,b.filter,b.rightAlign):EXb(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(ca,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;ca._EmailAc_create=IXb;
var JXb=function(a,b){return new ep("/",a,void 0,void 0,void 0,void 0,b)};ep.prototype.setLocale=function(){};var KXb=function(a){this.params=a;this.pendingInputs=new Set;this.emailac=null};KXb.prototype.setTarget=function(a){this.emailac&&this.emailac.setTarget(a)};
ep.prototype.initAutocomplete=function(a){if(this.emailAcInitialized_)throw Error("Wd");this.emailAcInitialized_=!0;this.commonAcParams_=a||{};for(var b in this.acWrappers_)LXb(this,this.acWrappers_[b]);this.focusedElement_&&(a=Ga(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++)jD(a[c],"focus",this.onTargetFocus_,!1,this)}};
var LXb=function(a,b){var c=b.params;c.serverBase=a.serverBase_;c.onComplete=$t(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=IXb(a[0],c);for(c=1;c<a.length;c++)b.emailac.addInput(a[c]);b.pendingInputs.clear()};g=ep.prototype;
g.attachAutocomplete=function(a,b,c){a=pD(document,a);var d=b||{};b=Ga(a);this.onAcCompleteListeners_[b]=c;c="";for(var e in d)c+=e+"="+d[e]+";";e=this.acWrappers_[c];e||(e=new KXb(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_?LXb(this,e):Ro(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_[Ga(a)];b&&b(a)};g.detachAutocomplete=function(a){a=pD(document,a);jD(a,"focus",this.onTargetFocus_,!1,this);var b=Ga(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)};cu("goog.NewContactTools",ep);
cu("goog.NewContactTools.create",JXb);ep.prototype.setLocale=ep.prototype.setLocale;ep.prototype.attachAutocompleteTo=ep.prototype.attachAutocompleteTo;ep.prototype.initAutocomplete=ep.prototype.initAutocomplete;ep.prototype.attachAutocomplete=ep.prototype.attachAutocomplete;ep.prototype.detachAutocomplete=ep.prototype.detachAutocomplete;
var cDa=function(a){this.rows_=a||[]};cDa.prototype.requestMatchingRows=function(a,b,c){var d=this.rows_;var e=[];if(""!=a)for(var f=new RegExp("(^|\\W+)"+Qn(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=MXb(a,b,d));c(a,e)};
var bDa=function(a,b,c){return MXb(b,c,a.rows_)},MXb=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 v=h.split(""),y=-1,E=10,I=0,N;N=v[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,T){var Y=L.score-T.score;return 0!=Y?Y:L.index-T.index});a=[];for(I=0;I<b&&I<d.length;I++)a.push(d[I].str);
return a};
var UU=function(a,b,c,d){var e=this;this.activeSession=c;this.contactTools_=null;this.subscription=new S.Subscription;this.acReadyDeferred_=Kj();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()})}};UU.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()};
UU.prototype.attach=function(a,b,c){var d=this,e=function(h,k){return dDa(h,k,d.activeSession.getUserEmail(),c)},f=new S.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};UU.\u0275fac=function(a){return new (a||UU)(t(uM),t(SK),t(vH),t(VU))};
UU.\u0275prov=dc({token:UU,factory:UU.\u0275fac,providedIn:"root"});var VU=function(){};VU.prototype.create=function(a){var b=new PT(jo($Sb,'[["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 JXb("xapi",b)};VU.\u0275fac=function(a){return new (a||VU)};
VU.\u0275prov=dc({token:VU,factory:VU.\u0275fac,providedIn:"root"});
var WU=function(a,b,c,d){wI.call(this);this.element=a;this.accessPolicyConverter=b;this.focusContacts=c;this.activeSession=d;this.autocompleteActive=new Rw;this.additionalContactsCallback=function(){return[]};this.$element=this.element.nativeElement};U(WU,wI);
WU.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-"+zC());if(!this.activeSession.isAnonymous()){if("SINGLE"===this.fieldType)var b=function(){a.$element.value=NXb(OXb(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(NXb(d)),d=""):WSb.test(d)?(e.push(d),d=""):d.match(/(".+" )?<.+>/)&&(d=NXb(OXb(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("Xd`"+
this.fieldType);var c=this.additionalContactsCallback();c=PXb(c);this.subscriptions.add(this.focusContacts.attach(this.$element,b,c))}};
var QXb=function(a){(0,S.timer)(150).pipe(cg(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)})},PXb=function(a){return a.map(function(b){return{text:b.text,getEmail:function(){return b.text},toString:function(){return b.id},getPriority:function(){}}})},OXb=function(a){return a.substr(Math.max(0,a.lastIndexOf("<"))).trim().replace(/[<>]/g,"")},NXb=function(a){a=a.trim();
","===qa(a)&&(a=a.slice(0,-1));a=zo(a);var b=a.split("@");return 2===b.length?b[0]+"@"+b[1].toLowerCase():a};WU.\u0275fac=function(a){return new (a||WU)(D(pd),D(JT),D(UU),D(vH))};
WU.\u0275dir=w({type:WU,selectors:[["","bContactAutocomplete",""]],hostBindings:function(a,b){a&1&&J("keydown",function(){return QXb(b)},!1,sd)("mousedown",function(){return QXb(b)})},inputs:{fieldType:["bContactAutocomplete","fieldType"],additionalContactsCallback:"additionalContactsCallback"},outputs:{autocompleteActive:"autocompleteActive"},features:[ae]});var XU=function(){};XU.\u0275fac=function(a){return new (a||XU)};XU.\u0275mod=uc({type:XU});XU.\u0275inj=gc({imports:[Wx]});
var RXb=["spanElement"],YU=function(){this.modelValue="";this.maxWidth=0;this.disabled=!1;this.displayString=""};YU.prototype.ngOnChanges=function(a){if(a.modelValue||a.disabled)this.displayString=this.modelValue||""};YU.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)+"...")};
YU.prototype.getTooltip=function(){return this.displayString!==this.modelValue?this.modelValue:""};YU.\u0275fac=function(a){return new (a||YU)};
YU.\u0275cmp=w({type:YU,selectors:[["b-truncated-span"]],viewQuery:function(a,b){a&1&&Bf(RXb,5);if(a&2){var c;Af(c=Df())&&(b.spanElement=c.first)}},inputs:{modelValue:"modelValue",maxWidth:"maxWidth",disabled:"disabled"},features:[Cc],decls:2,vars:2,consts:[[3,"matTooltip","innerHtml"],["spanElement",""]],template:function(a,b){a&1&&H(0,"span",0,1);a&2&&C("matTooltip",b.getTooltip())("innerHtml",b.displayString,Ld)},dependencies:[sF],encapsulation:2});
var ZU=function(){};ZU.\u0275fac=function(a){return new (a||ZU)};ZU.\u0275mod=uc({type:ZU});ZU.\u0275inj=gc({imports:[lH]});
var SXb=["popupField"],TXb=["fieldContent"],UXb=["popupOverlay"],VXb=["overlayContent"],yDa=function(a,b){return{"bv2-disabled":a,"bv2-readonly":b}},WXb=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"}],$U=function(a,b,c,d,e,f,h,k){wI.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 Rw;this.disabled=this.readonly=!1;this.tooltip="";this.showAvailability=this.truncate=!1;this.enableTeamAnnotations=f.isInternalSession()};U($U,wI);$U.\u0275dir=wI.\u0275dir;g=$U.prototype;
g.ngOnInit=function(){var a=this;this.enableWaldoAvailability=xH(this.activeSession,"enableWaldoAvailability")&&this.activeSession.isInternalSession()&&this.showAvailability;this.subscriptions.add(this.appEvents.openEditField.subscribe(function(b){b!==a&&a.isActive&&(a.isActive=!1,XXb(a),a.cdr.detectChanges())}));this.subscriptions.add(sOb(this.dateFormatter,function(){YXb(a);a.cdr.detectChanges()}));this.destroyed$.subscribe(function(){XXb(a)})};
g.ngOnDestroy=function(){wI.prototype.ngOnDestroy.call(this);this.overlayRef&&this.overlayRef.dispose()};g.ngOnChanges=function(a){["value","type","displayValueOverride","choices"].some(function(b){return b in a})&&YXb(this)};g.ngAfterViewInit=function(){this.popupField&&(this.overlayRef=this.overlay.create({positionStrategy:this.getPositionStrategy(),scrollStrategy:this.overlay.scrollStrategies.reposition()}))};
g.getPositionStrategy=function(){return NA(OA(PA(VA(this.overlay.position(),this.fieldContent).setOrigin(this.fieldContent),!1),5),WXb)};
var XXb=function(a){var b;(null==(b=a.overlayRef)?0:b.hasAttached())&&a.overlayRef.detach()},JDa=function(a,b){if(!a.autocompleteActive)switch(b.keyCode){case 13:b.stopPropagation();PDa(a);break;case 27:b.stopPropagation(),fp(a,b,!1,!0)}},HDa=function(a,b){if(!a.autocompleteActive)switch(b.keyCode){case 13:if(b.ctrlKey||b.metaKey)b.stopPropagation(),PDa(a);break;case 27:b.stopPropagation(),fp(a,b,!1,!0)}},uDa=function(a,b){switch(b.keyCode){case 13:case 32:b.stopPropagation();b.preventDefault();fp(a,
b,!0,!1);break;case 27:b.stopPropagation(),fp(a,b,!1,!0)}},fp=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,XXb(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?Mk(c):null),"ENUM"===
a.type&&zi(a.enumMenuTrigger),"ENUM"!==a.type){ZXb(a);var f=a.element.nativeElement;(0,S.fromEvent)(document,"click").pipe(rf(function(h){return!f.contains(h.target)}),Qf(),cg(a.overlayRef._detachments),cg(a.destroyed$)).subscribe(function(){fp(a,null,!1,!1)})}null==b||b.stopPropagation();a.cdr.detectChanges()}};$U.prototype.schedule=function(a){var b=S.asyncScheduler.schedule(a);this.destroyed$.subscribe(function(){b.unsubscribe()})};
$U.prototype.getDisplayValue=function(a){return null===this.displayValue?a:this.displayValue};
var YXb=function(a){var b=a.value;switch(a.type){case "ENUM":if("Type"===a.title&&b&&ZCb.has(b)){a.displayValue=yBb(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(Mk(b)):a.displayValue=null;a.readonlyTooltip=null;break;default:a.displayValueOverride?
a.displayValue=a.displayValueOverride:a.displayValue=b?String(b):null,a.readonlyTooltip=null}};$U.prototype.setFieldValue=function(a){this.disabled||this.readonly||("DATE"===this.type&&a&&(a=Nk(a)),"NUMERIC"===this.type&&""===a&&(a=null),Ei(this.value,a)?"ENUM"===this.type&&fp(this,null,!1,!0):(fp(this,null,!1,!0),this.value=a,this.valueChange.emit(this.value)))};
var PDa=function(a){if(void 0===a.type)throw Error("Yd");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("Zd");default:mh(a.type,"FieldType")}};
$U.prototype.clearFieldValue=function(){this.value=null;this.valueChange.emit(this.value);fp(this,null,!1,!0)};var ZXb=function(a){XXb(a);var b=a.overlayRef.attach(new YA(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()})};
$U.prototype.getTooltip=function(){return this.readonly?this.readonlyTooltip||"":this.tooltip?this.tooltip:this.title?"Set "+this.title:""};$U.prototype.getPriority=function(a){return"string"===typeof a?a.toLowerCase():""};$U.\u0275fac=function(a){return new (a||$U)(D(sI,2),D(pd),D(cB),D(yf),D(HP),D(vH),D(XH),D(MK))};
$U.\u0275cmp=w({type:$U,selectors:[["b-edit-field"]],viewQuery:function(a,b){a&1&&(Bf(lF,5),Bf(SXb,5),Bf(TXb,5),Bf(UXb,5),Bf(VXb,5));if(a&2){var c;Af(c=Df())&&(b.enumMenuTrigger=c.first);Af(c=Df())&&(b.popupField=c.first);Af(c=Df())&&(b.fieldContent=c.first);Af(c=Df())&&(b.popupOverlay=c.first);Af(c=Df())&&(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:[Ge([sI]),ae,Cc],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&&(F(0,"div")(1,"div",0),M(2,wDa,7,14,"div",1),M(3,zDa,3,13,"div",2),
M(4,ADa,1,1,"b-availability-chip",3),H(5,"div",4),G(),F(6,"mat-menu",null,5),M(8,DDa,2,2,"ng-template",6),G(),M(9,RDa,6,7,"ng-template",null,7,Jf),G());a&2&&(B(1),le("active",b.isActive&&!b.readonly&&!b.disabled),B(1),C("ngIf","BOOL"!==b.type),B(1),C("ngIf","BOOL"===b.type),B(1),C("ngIf",b.isUser&&b.value&&b.enableWaldoAvailability))},dependencies:[ER,Fx,Gx,Cx,Mx,Ix,Jx,Kx,WU,LP,Jg,ly,ry,BB,dF,iF,gF,lF,fF,sF,HT,xR,YU,rS,GS,Qx],styles:[".bv2-issue-metadata-field-edit[_ngcontent-%COMP%] { position: relative; }"]});
var $Xb={ENUM:"ENUM",BOOL:"BOOL",DATE:"DATE",TEXT:"TEXT",NUMERIC:"NUMERIC"},aYb=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}},aV=function(){};aV.\u0275fac=function(a){return new (a||aV)};aV.\u0275mod=uc({type:aV});aV.\u0275inj=gc({imports:[DS,xO,Wx,XU,dQ,Gy,BG,wF,mF,lH,IT,CS,KM,ZU,HS]});
var bV=function(a){Z.call(this,a,-1,bYb)};U(bV,Z);g=bV.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 ej(this,4)};g.setTimestamp=function(a){return l(this,4,a)};g.hasTimestamp=function(){return dj(this,4)};var bYb=[5];
bV.prototype.toObject=function(){var a=null!=this?{author:n(p(this,1)),description:n(p(this,2)),pending:n(To(this,3)),timestamp:n(p(this,4)),affectedFilesList:n(jb(this,5))}:void 0;return a};bV.messageId="b.ChangelistDetailsResponse";
var dYb=function(a){Z.call(this,a,-1,cYb)};U(dYb,Z);var cYb=[1];dYb.prototype.toObject=function(){var a=null!=this?{changelistNumbersList:n(jb(this,1))}:void 0;return a};dYb.messageId="b.PendingChangelistsResponse";
var cV=function(a){this.executor=a};cV.prototype.getPendingChangelistsForIssue=function(a){return this.executor.get({url:"action/issues/"+a+"/pending_changelists",responseConstructor:dYb}).pipe(R(SDa))};cV.prototype.getChangelistDetails=function(a){return this.executor.get({url:"/action/changelists/"+a,responseConstructor:bV}).pipe(R(TDa))};cV.\u0275fac=function(a){return new (a||cV)(t(nI))};cV.\u0275prov=dc({token:cV,factory:cV.\u0275fac,providedIn:"root"});
var dV=function(a){this.changelistResources=a};dV.prototype.getPendingChangelistsForIssue=function(a){return(0,S.firstValueFrom)(this.changelistResources.getPendingChangelistsForIssue(a))};dV.prototype.getChangelistDetails=function(a){return(0,S.firstValueFrom)(this.changelistResources.getChangelistDetails(a))};dV.\u0275fac=function(a){return new (a||dV)(t(cV))};dV.\u0275prov=dc({token:dV,factory:dV.\u0275fac,providedIn:"root"});
var eV=function(a){wI.call(this);var b=this;this.changelistApi=a;this.providedChangelistId$=new S.ReplaySubject(1);this.changelist$=this.providedChangelistId$.pipe(bg(function(c){return b.changelistApi.getChangelistDetails(c)}),Zf({refCount:!0,bufferSize:1}));this.init=new S.ReplaySubject(1)};U(eV,wI);eV.\u0275dir=wI.\u0275dir;eV.prototype.ngOnInit=function(){var a=this;this.changelist$.pipe(Qf(),cg(this.destroyed$)).subscribe(function(){a.init.next()})};
eV.prototype.ngOnChanges=function(a){a.changelistId&&this.providedChangelistId$.next(this.changelistId)};eV.\u0275fac=function(a){return new (a||eV)(D(cV))};
eV.\u0275cmp=w({type:eV,selectors:[["b-changelist-card"]],inputs:{changelistId:"changelistId"},outputs:{init:"init"},features:[ae,Cc],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",1,"float-right",3,"timestamp"]],template:function(a,b){a&
1&&(F(0,"div",0)(1,"div",1),M(2,XDa,16,6,"ng-container",2),P(3,"async"),G()());a&2&&(B(2),C("ngIf",Q(3,1,b.changelist$)))},dependencies:[Gx,Cx,pS,JP,Px],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 fV=function(){this.config=Object.assign({},new MLb,{delay:400,position:[{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-20}]})};fV.prototype.ngOnInit=function(){};fV.\u0275fac=function(a){return new (a||fV)};
fV.\u0275cmp=w({type:fV,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&&(F(0,"a",0),O(1),G(),F(2,"onedev-hovercard",null,1),M(4,YDa,2,2,"b-changelist-card",2),G());if(a&
2){var c=Ce(3);C("href","http://critique.corp.google.com/"+b.changelistId,Md)("onedevHovercardTrigger",c)("onedevHovercardConfig",b.config);ge("aria-label","Changelist"+b.changelistId);B(1);De(" ",b.changelistId,"\n")}},dependencies:[nN,oN,rN,pN,eV],encapsulation:2});
var gV=function(){};gV.\u0275fac=function(a){return new (a||gV)};gV.\u0275mod=uc({type:gV});gV.\u0275inj=gc({imports:[Wx,HS,YN,cQ]});
var eYb=0,hV=function(a,b){wI.call(this);var c=this;this.teamsService=b;this.anchorLinkEnabled=!0;this.teamNotAssignedMessage="No team assigned";this.linkFocused=new Rw;this.linkBlurred=new Rw;this.teamName=this.teamId;this.teamLogoUrl=this.teamDescription="";this.providedTeamId$=new S.ReplaySubject(1);this.teamLinkId="b-team-link-content-"+eYb;this.fetchedTeam$=this.providedTeamId$.pipe(Pf(),rf(function(d){return"0"!==d}),bg(function(d){return c.teamsService.getTeam(d)}),R(function(d){return d.getTeamId()!==
c.teamId?(new fM).setTeamId(c.teamId).setName(c.teamId).setDescription(""):d}),Mf(function(){return(0,S.of)((new fM).setTeamId(c.teamId).setName(c.teamId).setDescription(""))}));this.isTeamFetched$=this.fetchedTeam$.pipe(R(function(){return!0}),ag(!1));this.fetchedTeam$.pipe(cg(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()});eYb++};U(hV,wI);hV.\u0275dir=wI.\u0275dir;
g=hV.prototype;g.ngOnInit=function(){};g.ngOnChanges=function(a){a.teamId&&this.providedTeamId$.next(this.teamId)};g.trackClick=function(a){Un(io.TEAM_CARD,"click",a,1)};g.manageComponentLink=function(){return Ssa(this.componentId,"basic")};g.linkAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.teamLinkId};hV.\u0275fac=function(a){return new (a||hV)(D(vH),D(jM))};
hV.\u0275cmp=w({type:hV,selectors:[["b-team-card"]],inputs:{teamId:"teamId",componentId:"componentId",anchorLinkEnabled:"anchorLinkEnabled",teamNotAssignedMessage:"teamNotAssignedMessage",labelledById:"labelledById"},outputs:{linkFocused:"linkFocused",linkBlurred:"linkBlurred"},features:[ae,Cc],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&&(F(0,"div",0)(1,"div",1)(2,"div",2),H(3,"img",3),F(4,"div",4)(5,"div",5),H(6,"mat-icon",6),O(7),G(),F(8,"div",7),O(9),G()()(),F(10,"p",8),O(11),G(),F(12,"div",9)(13,"a",10),J("click",function(){return b.trackClick("viewTeamSettingsPage")}),F(14,"button",11),O(15,"View team settings"),G()(),F(16,"a",12),J("click",function(){return b.trackClick("viewTeamInMoma")}),F(17,"button",11),O(18,"View team in Moma "),H(19,"mat-icon",13),G()(),M(20,ZDa,3,1,"a",14),
G()()());a&2&&(B(3),ge("src",b.teamLogoUrl,Md),B(4),De(" Team: ",b.teamName," "),B(2),De("Team ID: ",b.teamId,""),B(2),Ee(b.teamDescription),B(2),ze("routerLink","/teams/",b.teamId,"/edit"),B(3),ze("href","https://moma.corp.google.com/team/",b.teamId,"",Md),B(4),C("ngIf",b.componentId))},dependencies:[Cx,dF,KI,BB],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 iV=function(){};iV.\u0275fac=function(a){return new (a||iV)};iV.\u0275mod=uc({type:iV});iV.\u0275inj=gc({imports:[Wx,wF,QI,BG]});
var fYb=0,jV=function(a){wI.call(this);var b=this;this.teamsService=a;this.anchorLinkEnabled=!0;this.teamNotAssignedMessage="No team assigned";this.providedTeamId$=new S.ReplaySubject(1);this.teamLinkId="b-team-link-content-"+fYb;this.teamName=this.teamId;this.fetchedTeam$=this.providedTeamId$.pipe(Pf(),rf(function(c){return"0"!==c}),bg(function(c){return b.teamsService.getTeam(c)}),R(function(c){return c.getTeamId()!==b.teamId?(new fM).setTeamId(b.teamId).setName(b.teamId).setDescription(""):c}),
Mf(function(){return(0,S.of)((new fM).setTeamId(b.teamId).setName(b.teamId).setDescription(""))}));this.isTeamFetched$=this.fetchedTeam$.pipe(R(function(){return!0}),ag(!1));this.fetchedTeam$.pipe(cg(this.destroyed$)).subscribe(function(c){b.teamName=c.getName()});fYb++};U(jV,wI);jV.\u0275dir=wI.\u0275dir;jV.prototype.ngOnInit=function(){};jV.prototype.ngOnChanges=function(a){a.teamId&&this.providedTeamId$.next(this.teamId)};jV.prototype.trackClick=function(a){Un(io.TEAM_CARD,"click",a,1)};
jV.prototype.linkAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.teamLinkId};jV.\u0275fac=function(a){return new (a||jV)(D(jM))};
jV.\u0275cmp=w({type:jV,selectors:[["b-team-display"]],inputs:{teamId:"teamId",componentId:"componentId",anchorLinkEnabled:"anchorLinkEnabled",teamNotAssignedMessage:"teamNotAssignedMessage",labelledById:"labelledById"},features:[ae,Cc],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&&(M(0,bEa,3,2,"ng-container",0),P(1,"async"),F(2,"onedev-hovercard",null,1),qe(4),H(5,"b-team-card",2),re(),G(),M(6,eEa,2,2,"ng-template",null,3,Jf));if(a&2){var c=Ce(7),d;C("ngIf","0"!=b.teamId&&Q(1,4,b.isTeamFetched$))("ngIfElse",c);B(5);C("componentId",null==b.componentId?
null:b.componentId.toString())("teamId",null!==(d=null==b.teamId?null:b.teamId.toString())&&void 0!==d?d:"0")}},dependencies:[Cx,dF,nN,rN,hV,Px]});
var kV=function(){};kV.\u0275fac=function(a){return new (a||kV)};kV.\u0275mod=uc({type:kV});kV.\u0275inj=gc({imports:[Wx,wF,YN,iV]});
var gYb=new ld("CDK_DRAG_CONFIG");
var hYb=new ld("CDK_DRAG_PARENT");
var iYb=new ld("CdkDragHandle"),lV=function(a,b){this.element=a;this._stateChanges=new S.Subject;this._disabled=!1;this._parentDrag=b};lV.prototype.ngOnDestroy=function(){this._stateChanges.complete()};li.Object.defineProperties(lV.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=Vg(a);this._stateChanges.next(this)}}});lV.\u0275fac=function(a){return new (a||lV)(D(pd),D(hYb,12))};
lV.\u0275dir=w({type:lV,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},features:[Ge([{provide:iYb,useExisting:lV}])]});
var jYb=new ld("CdkDragPlaceholder");
var kYb=new ld("CdkDragPreview");
var lYb=new ld("CdkDropListGroup");
var mYb=Og({passive:!1,capture:!0}),mV=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 S.Subject;this.pointerUp=new S.Subject;this.scroll=new S.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},nYb=function(a,b){a._dropInstances.has(b)||a._dropInstances.add(b)},oYb=function(a,b){a._dragInstances.add(b);1===a._dragInstances.size&&a._ngZone.runOutsideAngular(function(){a._document.addEventListener("touchmove",a._persistentTouchmoveListener,mYb)})},qYb=function(a,b){a._dragInstances.delete(b);pYb(a,b);0===a._dragInstances.size&&a._document.removeEventListener("touchmove",a._persistentTouchmoveListener,
mYb)};
mV.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:mYb}),a||this._globalListeners.set("mousemove",{handler:function(d){return c.pointerMove.next(d)},
options:mYb}),this._ngZone.runOutsideAngular(function(){c._globalListeners.forEach(function(d,e){c._document.addEventListener(e,d.handler,d.options)})})))};var pYb=function(a,b){b=a._activeDragInstances.indexOf(b);-1<b&&(a._activeDragInstances.splice(b,1),0===a._activeDragInstances.length&&a._clearGlobalListeners())};mV.prototype.isDragging=function(a){return-1<this._activeDragInstances.indexOf(a)};
mV.prototype.scrolled=function(a){var b=this,c=[this.scroll];a&&a!==this._document&&c.push(new S.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 S.merge.apply(null,u(c))};
mV.prototype.ngOnDestroy=function(){var a=this;this._dragInstances.forEach(function(b){return qYb(a,b)});this._dropInstances.forEach(function(b){a._dropInstances.delete(b)});this._clearGlobalListeners();this.pointerMove.complete();this.pointerUp.complete()};mV.prototype._clearGlobalListeners=function(){var a=this;this._globalListeners.forEach(function(b,c){a._document.removeEventListener(c,b.handler,b.options)});this._globalListeners.clear()};mV.\u0275fac=function(a){return new (a||mV)(t(jg),t(ji))};
mV.\u0275prov=dc({token:mV,factory:mV.\u0275fac,providedIn:"root"});
var mEa=0;
var nV=function(a){this._document=a;this.positions=new Map};nV.prototype.clear=function(){this.positions.clear()};nV.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:fEa(c)})})};
var rYb=function(a,b){var c=Tg(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)&&gp(k.clientRect,f,h)});b.top=e;b.left=d;return{top:f,left:h}};nV.prototype.getViewportScrollPosition=function(){return{top:window.scrollY,left:window.scrollX}};
var sYb=Og({passive:!0}),tYb=Og({passive:!1}),oEa=new Set(["position"]),oV=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 S.Subject;this._resizeSubscription=this._scrollSubscription=this._pointerUpSubscription=this._pointerMoveSubscription=S.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 S.Subject;this.started=new S.Subject;this.released=new S.Subject;this.ended=new S.Subject;this.entered=new S.Subject;this.exited=new S.Subject;this.dropped=new S.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 v=h._getConstrainedPointerPosition(q);h._hasMoved=!0;h._lastKnownPointerPosition=q;h._updatePointerDirectionDelta(v);h._dropContainer?h._updateActiveDropContainer(v,q):(q=h._activeTransform,q.x=v.x-h._pickupPositionOnPage.x+h._passiveTransform.x,q.y=v.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:v,event:k,distance:h._getDragDistance(v),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()};uYb(vYb(this,a),b.parentDragRef||null);this._parentPositions=new nV(c);oYb(f,this)};oV.prototype.getPlaceholderElement=function(){return this._placeholder};oV.prototype.getRootElement=function(){return this._rootElement};
var wYb=function(a){return a.isDragging()?a.getPlaceholderElement():a.getRootElement()},xYb=function(a,b){a._handles=b.map(function(d){return Xg(d)});a._handles.forEach(function(d){return hp(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},vYb=function(a,b){var c=Xg(b);c!==a._rootElement&&(a._rootElement&&a._removeRootElementListeners(a._rootElement),a._ngZone.runOutsideAngular(function(){c.addEventListener("mousedown",
a._pointerDown,tYb);c.addEventListener("touchstart",a._pointerDown,sYb);c.addEventListener("dragstart",a._nativeDragStart,tYb)}),a._initialTransform=void 0,a._rootElement=c);"undefined"!==typeof SVGElement&&a._rootElement instanceof SVGElement&&(a._ownerSVGElement=a._rootElement.ownerSVGElement);return a},yYb=function(a,b){a._boundaryElement=b?Xg(b):null;a._resizeSubscription.unsubscribe();b&&(a._resizeSubscription=a._viewportRuler.change(10).subscribe(function(){return a._containInsideBoundaryOnResize()}));
return a},uYb=function(a,b){a._parentDragRef=b};g=oV.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();qYb(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};g.setFreeDragPosition=function(a){this._activeTransform={x:0,y:0};this._passiveTransform.x=a.x;this._passiveTransform.y=a.y;this._dropContainer||this._applyRootElementTransform(a.x,a.y)};
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(),pYb(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();
pYb(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();pYb(this._dragDropRegistry,this)}};
g._startDragSequence=function(a){kp(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();pEa(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=zYb(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=kp(b),f=!e&&0!==b.button,h=this._rootElement,k=Tg(b),q=!e&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();e=e?gi(b):fi(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(v){return c._updateOnScroll(v)}),this._boundaryElement&&(this._boundaryRect=fEa(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;pEa(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=zYb(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:zYb(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=tEa(c,this._document);this._previewRef=c;a.matchSize?uEa(e,d):e.style.transform=jp(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else a=this._rootElement,e=lEa(a),uEa(e,a.getBoundingClientRect()),this._initialTransform&&(e.style.transform=
this._initialTransform);nEa(e.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":""+(this._config.zIndex||1E3)},oEa);hp(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=sEa(this._preview);return 0===c?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(d){var e=function(h){if(!h||Tg(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=tEa(this._placeholderRef,this._document)):a=lEa(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=kp(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=kp(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,hp(this._rootElement,a))}};g._removeRootElementListeners=function(a){a.removeEventListener("mousedown",this._pointerDown,tYb);a.removeEventListener("touchstart",this._pointerDown,sYb);a.removeEventListener("dragstart",this._nativeDragStart,tYb)};
g._applyRootElementTransform=function(a,b){a=jp(a,b);b=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=b.transform&&"none"!=b.transform?b.transform:"");b.transform=ip(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=ip(jp(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||this.setFreeDragPosition({y:a,x:b})}}};g._getDragStartDelay=function(a){var b=this.dragStartDelay;return"number"===typeof b?b:kp(a)?b.touch:b?b.mouse:0};
g._updateOnScroll=function(a){var b=rYb(this._parentPositions,a);b&&(a=Tg(a),this._boundaryRect&&a!==this._boundaryElement&&a.contains(this._boundaryElement)&&gp(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=Rg(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):Xg(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))})};li.Object.defineProperties(oV.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(a){var b=Vg(a);b!==this._disabled&&(this._disabled=b,this._toggleNativeDragInteractions(),this._handles.forEach(function(c){return hp(c,b)}))}}});
var pV=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 S.Subject;this.entered=new S.Subject;this.exited=new S.Subject;this.dropped=new S.Subject;this.sorted=new S.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=S.Subscription.EMPTY;this._horizontalScrollDirection=this._verticalScrollDirection=0;this._stopScrollTimers=new S.Subject;this._cachedShadowRoot=null;this._startScrollInterval=function(){f._stopScrolling();(0,S.interval)(0,S.animationFrameScheduler).pipe(cg(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=Xg(a);this._document=c;AYb(this,[this.element]);nYb(b,this);this._parentPositions=new nV(c)};g=pV.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)):(Xg(this.element).appendChild(h),
e.push(a));h.style.transform="";this._cacheItemPositions();this._cacheParentPositions();this._notifyReceivingSiblings();this.entered.next({item:a,container:this,currentIndex:zYb(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 BYb=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())};pV.prototype.withDirection=function(a){this._direction=a;return this};pV.prototype.connectedTo=function(a){this._siblings=a.slice();return this};
var CYb=function(a,b){a._orientation=b},AYb=function(a,b){var c=Xg(a.element);a._scrollableElements=-1===b.indexOf(c)?[c].concat(u(b)):b.slice()},zYb=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=pV.prototype;
g._sortItem=function(a,b,c,d){if(!this.sortingDisabled&&this._clientRect&&hEa(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],v=q.clientRect,y=k>f?1:-1,E=this._getItemOffsetPx(e[k].clientRect,v,y),I=this._getSiblingOffsetPx(k,e,y),N=e.slice();lp(e,k,f);this.sorted.next({previousIndex:k,currentIndex:f,container:this,item:a});e.forEach(function(L,
T){if(N[T]!==L){var Y=L.drag===a;T=Y?E:I;Y=Y?a.getPlaceholderElement():L.drag.getRootElement();L.offset+=T;h?(Y.style.transform=ip("translate3d("+Math.round(L.offset)+"px, 0, 0)",L.initialTransform),gp(L.clientRect,0,T)):(Y.style.transform=ip("translate3d(0, "+Math.round(L.offset)+"px, 0)",L.initialTransform),gp(L.clientRect,T,0))}});this._previousSwap.overlaps=gEa(v,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,v){if(v!==c._document&&q.clientRect&&!k&&hEa(q.clientRect,a,b)){var y=q.clientRect;q=vEa(y,b);y=wEa(y,a);var E=0,I=0;if(q){var N=v.scrollTop;1===q?0<N&&(E=1):v.scrollHeight-N>v.clientHeight&&(E=2)}y&&(q=v.scrollLeft,1===y?0<q&&(I=1):v.scrollWidth-q>v.clientWidth&&(I=2));q=r([E,I]);d=q.next().value;e=q.next().value;if(d||e)k=v}});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=vEa(h,b);e=wEa(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=Xg(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=Xg(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=wYb(b);return{drag:b,offset:0,initialTransform:c.style.transform||"",clientRect:fEa(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=Xg(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 v=f?d.x:d.y;if(q===e._previousSwap.drag&&e._previousSwap.overlaps&&v===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&&gEa(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||!gEa(this._clientRect,b,c)||!this.enterPredicate(a,this))return!1;a=this._getShadowRoot().elementFromPoint(b,c);if(!a)return!1;b=Xg(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=rYb(a._parentPositions,b);c&&(a._itemPositions.forEach(function(d){gp(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=Rg(Xg(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 DYb={dragStartThreshold:5,pointerDirectionChangeThreshold:5},qV=function(a,b,c,d){this._document=a;this._ngZone=b;this._viewportRuler=c;this._dragDropRegistry=d},EYb=function(a,b,c){c=void 0===c?DYb:c;return new oV(b,c,a._document,a._ngZone,a._viewportRuler,a._dragDropRegistry)};qV.\u0275fac=function(a){return new (a||qV)(t(ji),t(jg),t(GA),t(mV))};qV.\u0275prov=dc({token:qV,factory:qV.\u0275fac,providedIn:"root"});
var FYb=0,GYb=new ld("CdkDropList"),rV=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 S.Subject;this.connectedTo=[];this.id="cdk-drop-list-"+FYb++;this.enterPredicate=function(){return!0};this.sortPredicate=function(){return!0};this.dropped=new Rw;this.entered=new Rw;this.exited=new Rw;this.sorted=new Rw;this._unsortedItems=new Set;this._dropListRef=new pV(a,b._dragDropRegistry,b._document,b._ngZone,
b._viewportRuler);this._dropListRef.data=this;h&&this._assignDefaults(h);this._dropListRef.enterPredicate=function(q,v){return k.enterPredicate(q.data,v.data)};this._dropListRef.sortPredicate=function(q,v,y){return k.sortPredicate(q,v.data,y.data)};this._setupInputSyncSubscription(this._dropListRef);this._handleEvents(this._dropListRef);HYb.push(this);f&&f._items.add(this)};rV.prototype.addItem=function(a){this._unsortedItems.add(a);this._dropListRef.isDragging()&&this._syncItemsWithRef()};
rV.prototype.removeItem=function(a){this._unsortedItems.delete(a);this._dropListRef.isDragging()&&this._syncItemsWithRef()};var IYb=function(a){return Array.from(a._unsortedItems).sort(function(b,c){return wYb(b._dragRef).compareDocumentPosition(wYb(c._dragRef))&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})};g=rV.prototype;
g.ngOnDestroy=function(){var a=HYb.indexOf(this);-1<a&&HYb.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(ag(this._dir.value),cg(this._destroyed)).subscribe(function(c){return a.withDirection(c)});a.beforeStarted.subscribe(function(){var c=Ug(b.connectedTo).map(function(e){return"string"===typeof e?HYb.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=zpb(b._scrollDispatcher,b.element).map(function(e){return e.elementRef.nativeElement});
AYb(b._dropListRef,d);b._scrollableParentsResolved=!0}a.disabled=b.disabled;a.lockAxis=b.lockAxis;a.sortingDisabled=Vg(b.sortingDisabled);a.autoScrollDisabled=Vg(b.autoScrollDisabled);a.autoScrollStep=Yg(b.autoScrollStep,2);CYb(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(){BYb(this._dropListRef,IYb(this).map(function(a){return a._dragRef}))};
li.Object.defineProperties(rV.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(a){this._dropListRef.disabled=this._disabled=Vg(a)}}});var HYb=[];rV.\u0275fac=function(a){return new (a||rV)(D(pd),D(qV),D(vx),D(CA),D(rA,8),D(lYb,12),D(gYb,8))};
rV.\u0275dir=w({type:rV,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(a,b){a&2&&(ge("id",b.id),le("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:[Ge([{provide:lYb,useValue:void 0},{provide:GYb,useExisting:rV}])]});
var sV=function(a,b,c,d,e,f,h,k,q,v,y){var E=this;this.element=a;this.dropContainer=b;this._ngZone=d;this._viewContainerRef=e;this._dir=h;this._changeDetectorRef=q;this._selfHandle=v;this._parentDrag=y;this._destroyed=new S.Subject;this.started=new Rw;this.released=new Rw;this.ended=new Rw;this.entered=new Rw;this.exited=new Rw;this.dropped=new Rw;this.moved=new S.Observable(function(I){var N=E._dragRef.moved.pipe(R(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=EYb(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;JYb.push(this);f&&this._assignDefaults(f);b&&(this._dragRef._withDropContainer(b._dropListRef),b.addItem(this));this._syncInputs(this._dragRef);this._handleEvents(this._dragRef)};
g=sV.prototype;g.getPlaceholderElement=function(){return this._dragRef.getPlaceholderElement()};g.getRootElement=function(){return this._dragRef.getRootElement()};g.reset=function(){this._dragRef.reset()};g.setFreeDragPosition=function(a){this._dragRef.setFreeDragPosition(a)};g.ngAfterViewInit=function(){var a=this;this._ngZone.runOutsideAngular(function(){a._ngZone.onStable.pipe(Qf(),cg(a._destroyed)).subscribe(function(){a._updateRootElement();a._setupHandlesListener();a.freeDragPosition&&a._dragRef.setFreeDragPosition(a.freeDragPosition)})})};
g.ngOnChanges=function(a){var b=a.rootElementSelector;a=a.freeDragPosition;b&&!b.firstChange&&this._updateRootElement();a&&!a.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)};g.ngOnDestroy=function(){var a=this;this.dropContainer&&this.dropContainer.removeItem(this);var b=JYb.indexOf(this);-1<b&&JYb.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)}vYb(this._dragRef,b||a)};g._getBoundaryElement=function(){var a=this.boundaryElement;return a?"string"===typeof a?this.element.nativeElement.closest(a):Xg(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:Yg(d);a.constrainPosition=b.constrainPosition;a.previewClass=b.previewClass;d=yYb(a,b._getBoundaryElement());d._placeholderTemplate=e;d._previewTemplate=f;d._previewContainer=b.previewContainer||"global";c&&a.withDirection(c.value)}});a.beforeStarted.pipe(Qf()).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;uYb(a,(null==(d=JYb.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(ag(this._handles),dg(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);xYb(a._dragRef,b)}),bg(function(b){return S.merge.apply(null,u(b.map(function(c){return c._stateChanges.pipe(ag(c))})))}),cg(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),hp(d,!0)):c._disabledHandles.has(d)&&(c._disabledHandles.delete(d),hp(d,c.disabled))})};li.Object.defineProperties(sV.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(a){this._disabled=Vg(a);this._dragRef.disabled=this._disabled}}});var JYb=[];sV.\u0275fac=function(a){return new (a||sV)(D(pd),D(GYb,12),D(ji),D(jg),D(yf),D(gYb,8),D(rA,8),D(qV),D(vx),D(iYb,10),D(hYb,12))};
sV.\u0275dir=w({type:sV,selectors:[["","cdkDrag",""]],contentQueries:function(a,b,c){a&1&&(Cf(c,kYb,5),Cf(c,jYb,5),Cf(c,iYb,5));if(a&2){var d;Af(d=Df())&&(b._previewTemplate=d.first);Af(d=Df())&&(b._placeholderTemplate=d.first);Af(d=Df())&&(b._handles=d)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(a,b){a&2&&le("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:[Ge([{provide:hYb,useExisting:sV}]),Cc]});
var tV=function(){};tV.\u0275fac=function(a){return new (a||tV)};tV.\u0275mod=uc({type:tV});tV.\u0275inj=gc({providers:[qV],imports:[HA]});
var KYb=["addLink"],LYb=["showFewer"],MYb=["showMore"],NYb=["removeButton"],OYb=[[["",8,"title-action"]],[["",8,"value-action"]]],PYb=[Object.assign({},np("start","bottom"),op("start","top"),{offsetY:8}),Object.assign({},np("center","bottom"),op("center","top"),{offsetY:8}),Object.assign({},np("end","bottom"),op("end","top"),{offsetY:8}),Object.assign({},np("start","top"),op("start","bottom"),{offsetY:-8}),Object.assign({},np("end","top"),op("end","bottom"),{offsetY:-8})],uV=function(a,b,c,d){wI.call(this);
this.cdr=a;this.dateFormatter=b;this.analytics=c;this.OVERLAY_POSITION_LIST=PYb;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 Rw;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(uV,wI);uV.\u0275dir=wI.\u0275dir;uV.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=Ql(b);c&&this.userMap.set(c,Fi(b))}};uV.prototype.ngOnInit=function(){QEa(this)};
var QEa=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})},REa=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})};
uV.prototype.isCustomField=function(){return["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};
uV.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()}})};
uV.prototype.addItems=function(a){var b=[];this.values=this.values||[];if(a)if("REPEATED_DATE"===this.type){var c=Nk(a);this.preventDuplicates&&this.values.find(function(f){return Ei(f,c)})||b.push(c)}else if("REPEATED_NUMERIC"===this.type&&dna(this.values)&&dna(b))a=Number(a),this.preventDuplicates&&this.values.includes(a)||b.push(a);else if(cna(this.values)&&cna(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=QYb(d));e&&!this.values.includes(e)&&b.push(e)}}this.isDefaultOrAllowedValues&&"REPEATED_DATE"!==this.type||aFa(this,!0);0!==b.length&&(this.values=[].concat(u(this.values),u(b)),this.valuesChange.emit({values:this.values,added:b}))};
var QYb=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};uV.prototype.onDrop=function(a){lp(this.values,a.previousIndex,a.currentIndex);this.valuesChange.emit({values:this.values})};
var aFa=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()},mp=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()})},RYb=function(a){return a.values&&"REPEATED_DATE"===a.type?a.values.map(function(b){return a.dateFormatter.formatUserCalendar(Mk(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(Mk(b))})};g=uV.prototype;g.trackClick=function(a){eo(this.analytics,io.LINK_FIELD,"click",a)};g.getUser=function(a){return this.userMap.get(a)};g.schedule=function(a){this.subscriptions.add(S.asyncScheduler.schedule(a))};
g.trackByIndex=function(a){return a};g.asNumber=function(a){return Number(a)};uV.\u0275fac=function(a){return new (a||uV)(D(sI,2),D(HP),D(QM),D(vH))};
uV.\u0275cmp=w({type:uV,selectors:[["b-list-field"]],viewQuery:function(a,b){a&1&&(Bf(KYb,5),Bf(LYb,5),Bf(MYb,5),Bf(NYb,5),Bf(lF,5),Bf(EN,5));if(a&2){var c;Af(c=Df())&&(b.addLinkEl=c.first);Af(c=Df())&&(b.showFewer=c.first);Af(c=Df())&&(b.showMore=c.first);Af(c=Df())&&(b.removeButtons=c);Af(c=Df())&&(b.menuTriggers=c);Af(c=Df())&&(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:[Ge([sI]),ae,Cc],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&&(xe(OYb),F(0,"div",0)(1,"div",1)(2,"div",2),M(3,xEa,2,2,"label",3),ye(4),G(),F(5,"div",4),J("cdkDropListDropped",function(c){return b.onDrop(c)}),M(6,MEa,2,1,"div",5),M(7,NEa,3,3,"div",6),M(8,OEa,6,4,"div",7),M(9,PEa,2,0,"div",7),F(10,"div",8,9),M(12,VEa,4,3,"ng-container",10),M(13,WEa,1,0,"ng-content",7),G()()(),F(14,"mat-menu",null,11),M(16,YEa,1,2,"ng-template",12),G(),M(17,bFa,12,5,"ng-template",null,13,Jf),M(19,cFa,1,2,
"ng-template",null,14,Jf),G());a&2&&(le("empty-list-field-indication",!(null==b.values?0:b.values.length))("active",b.isActive&&!b.listFieldDisabled&&!b.readonly),B(1),le("bv2-disabled",b.listFieldDisabled)("bv2-readonly",b.readonly),C("matTooltip",b.tooltip)("matTooltipPosition","left"),B(2),C("ngIf",b.title),B(2),le("draggable",(null==b.values?null:b.values.length)&&b.isDefaultOrAllowedValues),C("cdkDropListDisabled",!b.isDefaultOrAllowedValues),B(1),C("ngForOf",RYb(b))("ngForTrackBy",b.trackByIndex),
B(1),C("ngIf",b.showingAll&&!!b.values&&b.values.length>b.defaultLineCount+1),B(1),C("ngIf",!b.showingAll&&!!b.values&&b.values.length>b.defaultLineCount+1),B(1),C("ngIf",!(null==b.values?0:b.values.length)),B(3),C("ngIf",!b.readonly),B(1),C("ngIf",!b.readonly))},dependencies:[Gx,Cx,Ix,Jx,Kx,fV,LP,sy,Jg,ly,my,Cy,ry,py,BB,sF,xR,YU,GS,rV,sV,AN,zN,EN,iF,gF,lF,fF,dF,WU,jV],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 SYb={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"},TYb=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}},vV=function(){};
vV.\u0275fac=function(a){return new (a||vV)};vV.\u0275mod=uc({type:vV});vV.\u0275inj=gc({imports:[xO,Wx,gV,dQ,Gy,BG,lH,CS,iV,ZU,HS,tV,ZN,aO,mF,wF,XU,aO,kV]});
var eFa=function(){return[]},wV=function(){this.disabled=this.readonly=!1;this.save=new Rw},UYb=function(a){return a.issue.customFieldMap[a.field.customFieldId]};wV.prototype.getDisplayValue=function(){var a,b;return null!=(b=null==(a=UYb(this).displayValues)?void 0:a[0])?b:null};wV.prototype.getTooltip=function(){var a;return(null!=(a=this.field.description)?a:"")+" [ID: "+this.field.customFieldId+"]"};
var dFa=function(a){return(a=UYb(a).getValue())&&void 0===a.values?a:null},gFa=function(a){return(a=UYb(a).getValue())&&void 0!==a.values?a.values:null};wV.\u0275fac=function(a){return new (a||wV)};
wV.\u0275cmp=w({type:wV,selectors:[["b-custom-field-editor"]],viewQuery:function(a,b){a&1&&Bf($U,5);if(a&2){var c;Af(c=Df())&&(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&&M(0,iFa,3,2,"ng-container",0);a&2&&C("ngIf",UYb(b))},dependencies:[Cx,uV,$U],encapsulation:2});var xV=function(){};
xV.\u0275fac=function(a){return new (a||xV)};xV.\u0275mod=uc({type:xV});xV.\u0275inj=gc({imports:[Wx,vV,aV]});
var yV=function(){this.mode="default";this.query="";this.selectComponentId=new Rw;this.expandComponent=new Rw;this.goBack=new Rw};yV.prototype.ngOnInit=function(){};yV.prototype.expand=function(a,b){b.preventDefault();b.stopPropagation();this.expandComponent.emit(a)};yV.prototype.back=function(a){a.preventDefault();a.stopPropagation();this.goBack.emit()};yV.\u0275fac=function(a){return new (a||yV)};
yV.\u0275cmp=w({type:yV,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&&(F(0,"div",0),qe(1,1),M(2,jFa,2,0,"ng-container",2),M(3,kFa,3,0,"ng-container",2),M(4,lFa,3,2,"ng-container",3),re(),F(5,"div",4),M(6,qFa,2,1,"ng-container",
5),M(7,sFa,1,1,"ng-template",null,6,Jf),M(9,tFa,2,0,"span",7),H(10,"b-access-level-indicator",8),G()());if(a&2){var c=Ce(8);B(1);C("ngSwitch",b.mode);B(1);C("ngSwitchCase","recent");B(1);C("ngSwitchCase","tree");B(3);C("ngIf","leaf"!==b.mode)("ngIfElse",c);B(3);C("ngIf",b.componentOption.archived);B(1);C("accessLevel",null==b.componentOption.accessLimit?null:b.componentOption.accessLimit.accessLevel)("labelOnlyMode",!0)}},dependencies:[Gx,Cx,Ix,Jx,Kx,BB,dF,sF,SS,zM,IM],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 VYb=0,zV=function(a,b){this.changeDetectorRef=a;this.elementRef=b;this.active=!1;this.id="b-component-picker-option-"+VYb;VYb+=1};zV.prototype.setActiveStyles=function(){this.active=!0;this.changeDetectorRef.markForCheck()};zV.prototype.setInactiveStyles=function(){this.active=!1;this.changeDetectorRef.markForCheck()};zV.\u0275fac=function(a){return new (a||zV)(D(vx),D(pd))};
zV.\u0275dir=w({type:zV,selectors:[["","listOption",""]],hostVars:3,hostBindings:function(a,b){a&2&&(ve("id",b.id),le("active",b.active))},inputs:{data:"data",listOrder:"listOrder"}});
var AV=function(){this.query="";this.hasNoComponent=this.compact=this.allowSegmentSelection=!1;this.selectTeamId=new Rw};AV.prototype.getLogoUrl=function(){return"https://moma-teams-photos.corp.google.com/logo/"+this.teamOption.id};AV.prototype.ngOnInit=function(){};AV.\u0275fac=function(a){return new (a||AV)};
AV.\u0275cmp=w({type:AV,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&&(F(0,"div",0),M(1,uFa,1,1,"img",1),F(2,"div",2),M(3,wFa,4,5,"div",3),M(4,EFa,2,1,"div",4),G()());a&2&&(le("no-component",b.hasNoComponent)("compact",b.compact),B(1),C("ngIf",!b.compact),B(2),C("ngIf",!b.compact),B(1),C("ngIf",b.teamOption.pathNames&&b.teamOption.pathNames.length))},dependencies:[Gx,Cx,zM],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 WYb=["primaryValueBar"],XYb=mi(function(a){this._elementRef=a},"primary"),YYb=new ld("mat-progress-bar-location",{providedIn:"root",factory:IFa}),ZYb=new ld("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),$Yb=0,BV=function(a,b,c,d,e,f){a=XYb.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 Rw;a._animationEndSubscription=S.Subscription.EMPTY;a.mode="determinate";a.progressbarId="mat-progress-bar-"+$Yb++;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(BV,XYb);BV.prototype._primaryTransform=function(){return{transform:"scale3d("+this.value/100+", 1, 1)"}};BV.prototype._bufferTransform=function(){return"buffer"===this.mode?{transform:"scale3d("+this.bufferValue/100+", 1, 1)"}:null};
BV.prototype.ngAfterViewInit=function(){var a=this;this._ngZone.runOutsideAngular(function(){var b=a._primaryValueBar.nativeElement;a._animationEndSubscription=(0,S.fromEvent)(b,"transitionend").pipe(rf(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})}))})})};BV.prototype.ngOnDestroy=function(){this._animationEndSubscription.unsubscribe()};
li.Object.defineProperties(BV.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this._value},set:function(a){this._value=Math.max(0,Math.min(100,Yg(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()}}});
BV.\u0275fac=function(a){return new (a||BV)(D(pd),D(jg),D(ew,8),D(YYb,8),D(ZYb,8),D(vx))};
BV.\u0275cmp=w({type:BV,selectors:[["mat-progress-bar"]],viewQuery:function(a,b){a&1&&Bf(WYb,5);if(a&2){var c;Af(c=Df())&&(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&&(ge("aria-valuenow","indeterminate"===b.mode||"query"===b.mode?null:b.value)("mode",b.mode),le("_mat-animation-noopable",b._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",
mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[ae],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&&(F(0,"div",0),Nc(),F(1,"svg",1)(2,"defs")(3,"pattern",2),H(4,"circle",3),G()(),H(5,"rect",4),G(),Oc(),H(6,"div",5)(7,"div",6,7)(9,"div",8),G());a&2&&(B(3),C("id",b.progressbarId),B(2),ge("fill",b._rectangleFillValue),B(1),C("ngStyle",b._bufferTransform()),B(1),C("ngStyle",b._primaryTransform()))},dependencies:[Lx],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 aZb=["container"],bZb=["inputBox"],cZb=["dropdownTemplate"],dZb=["dropdown"],VFa=function(a){return{mode:"recent",$implicit:a}},$Fa=function(a){return[a]},ZFa=function(a,b){return{team:a,level:0,order:b}},fGa=function(a){return{mode:"default",$implicit:a}},iGa=function(a){return[0,a]},pGa=function(){return[0]},sGa=function(a,b){return{mode:"default",$implicit:a,teamScope:b}},yGa=function(a){return{mode:"leaf",$implicit:a}},DGa=function(a,b,c){return{team:a,level:b,order:c}},DV=function(a,b,c,
d,e,f,h,k,q,v){wI.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=v;this.placeholder="";this.includeArchived=this.isRequired=!1;this.ariaLabel="";this.checkAdminAccess=!1;this.accessCheckComplete=new Rw;this.shouldFocus=!1;this.touched=new Rw;this.selectedComponentChange=new Rw;this.dropdownClosed=new Rw;this.checkingAccess=this.hasAccess=!1;this.isExternal=this.activeSession.isExternalSession();
this.searchState=new CV(this.userApi,this.componentActions,this.teamsService,this.analytics,this.destroyed$,{includeArchived:this.includeArchived,includeTeamData:!this.isExternal});this.componentLoading=this.isDropdownOpen=!1};U(DV,wI);DV.\u0275dir=wI.\u0275dir;
DV.prototype.ngOnInit=function(){var a=this;this.searchState.init(!!this.selectedComponent);this.searchState.componentIdSelected$.pipe(cg(this.destroyed$)).subscribe(function(b){a.componentLoading=!0;a.componentActions.get(b).then(function(c){a.selectedComponent=c;eZb(a);a.componentLoading=!1;a.close(!0);a.selectedComponentChange.emit(c)})},function(){a.componentLoading=!1});(0,S.merge)(this.searchState.debouncedSearchQuery$,this.searchState.state$).pipe(cg(this.destroyed$)).subscribe(function(){a.clearActiveItem()})};
DV.prototype.isLoading=function(){return this.componentLoading||this.searchState.componentsLoading||this.searchState.teamsLoading};
var eZb=function(a){if(a.selectedComponent){var b=pp(a.selectedComponent);a.searchState.searchQuery$.next(b.componentPath.length?b.componentPath[b.componentPath.length-1].pathText:"")}else a.searchState.searchQuery$.next("")},fZb=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=DV.prototype;g.ngOnChanges=function(a){a.selectedComponent&&(eZb(this),this.checkAdminAccess&&this.selectedComponent&&gZb(this,this.selectedComponent))};g.ngOnDestroy=function(){this.close();wI.prototype.ngOnDestroy.call(this)};
g.ngAfterViewInit=function(){var a=this;this.keyManager=hA(iA(new pA(this.listOptions)));this.searchState.listUpdated$.pipe(cg(this.destroyed$)).subscribe(function(){a.cdr.markForCheck()});this.listOptions.changes.pipe(cg(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(SGa);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&&sp(this.searchState),this.isDropdownOpen=!1,this.dropdownOverlayRef.dispose(),this.dropdownOverlayRef=void 0,this.clearActiveItem(),this.dropdownClosed.emit(),eo(this.analytics,io.COMPONENT_PICKER,"close",a?"with-selection":"without-selection"))};
g.clearQuery=function(){this.searchState.searchQuery$.next("");this.isDropdownOpen||this.inputBox.nativeElement.focus()};var hZb=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};
DV.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),fZb(this)):(this.open(),setTimeout(function(){var d;null==(d=b.keyManager)||oA(d);fZb(b)}));break;case "ArrowDown":this.isDropdownOpen?(this.keyManager.onKeydown(a),fZb(this)):(this.open(),setTimeout(function(){var d;null==(d=b.keyManager)||nA(d);fZb(b)}));break;case "Enter":this.keyManager.activeItem&&
(this.searchState.teamScope$.value===this.keyManager.activeItem.data?sp(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(),mGa(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?lGa(this.searchState,this.keyManager.activeItem.data):iZb(this.searchState));"component_scope"===this.searchState.state$.value&&(a.preventDefault(),uGa(this.searchState));break;case "Backspace":case "Delete":this.keyManager.activeItem&&this.searchState.teamScope$.value===this.keyManager.activeItem.data&&(sp(this.searchState),a.preventDefault());break;default:this.touched.emit(),
this.isDropdownOpen||this.open()}};var qp=function(a){a.preventDefault();a.stopPropagation()},gZb=function(a,b){a.checkingAccess=!0;a.hasAccess=!1;sK(a.userAccess,"admin","components/"+b.componentId).then(function(c){a.checkingAccess=!1;a.accessCheckComplete.emit(c);a.hasAccess=c})};g=DV.prototype;
g.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy(),c;return this.overlay.create(new KA({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 YA(this.dropdownTemplateRef,this.viewContainerRef),b;null==(b=this.dropdownOverlayRef)||b.attach(a);var c;null==(c=this.dropdownOverlayRef)||c.updatePosition()};
g.getPositionStrategy=function(){return NA(QA(PA(VA(this.overlay.position(),this.container),!1),!1),jZb)};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))};DV.\u0275fac=function(a){return new (a||DV)(D(cB),D(yf),D(kL),D(zT),D(jM),D(rK),D(TK),D(QM),D(vH),D(vx))};
DV.\u0275cmp=w({type:DV,selectors:[["b-team-component-picker"]],viewQuery:function(a,b){a&1&&(Bf(aZb,7),Bf(bZb,7),Bf(cZb,7),Bf(dZb,5),Bf(zV,5));if(a&2){var c;Af(c=Df())&&(b.container=c.first);Af(c=Df())&&(b.inputBox=c.first);Af(c=Df())&&(b.dropdownTemplateRef=c.first);Af(c=Df())&&(b.dropdown=c.first);Af(c=Df())&&(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:[ae,Cc],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&&(F(0,"div",0,1)(2,"input",2,3),J("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()}),P(4,"async"),G(),M(5,JFa,2,0,"button",4),G(),M(6,NFa,4,2,"div",5),M(7,AGa,11,8,"ng-template",null,6,Jf),M(9,GGa,5,11,"ng-template",null,7,Jf),M(11,RGa,3,2,"ng-template",null,8,Jf));if(a&2){var c=Ce(3);B(2);C("ngModel",
Q(4,8,b.searchState.searchQuery$))("placeholder",b.placeholder)("required",b.isRequired);ge("aria-label",b.ariaLabel+(b.selectedComponent?" Component selected. Change.":" Choose component"))("aria-expanded",b.isDropdownOpen)("aria-activedescendant",hZb(b));B(3);C("ngIf",c.value);B(1);C("ngIf",b.checkAdminAccess)}},dependencies:[Gx,Cx,Mx,Ix,Jx,Kx,Jg,ly,Cy,ry,BB,dF,YH,sF,BV,AV,yV,zV,Px],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 jZb=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],CV=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 S.BehaviorSubject("");this.debouncedSearchQuery$=this.searchQuery$.pipe(Nf(250));this.state$=new S.BehaviorSubject("default");this.listUpdated$=new S.Subject;this.componentsLoading=this.teamsLoading=
!1;this.teamScope$=new S.BehaviorSubject(void 0);this.componentOptions=[];this.childTeamsMap=new Map;this.componentCountMap=new Map;this.recentComponents=[];this.myTeams$=new S.BehaviorSubject([]);this.showAllTeams$=new S.BehaviorSubject(!1);this.showAllTeamsDistinct$=this.showAllTeams$.pipe(Pf());this.teamOptions$=new S.BehaviorSubject([]);this.filteredTeamOptions$=(0,S.combineLatest)([this.teamOptions$,this.showAllTeamsDistinct$]).pipe(R(function(k){k=r(k);var q=k.next().value;return k.next().value?
q:q.slice(0,5)}));this.hasHiddenTeams$=(0,S.combineLatest)([this.teamOptions$,this.showAllTeamsDistinct$]).pipe(R(function(k){var q=r(k);k=q.next().value;q=q.next().value;return 5<k.length&&!q}));this.newChildTeams$=new S.BehaviorSubject([]);this.teamsDisplayed$=(0,S.merge)(this.myTeams$,this.teamOptions$,this.newChildTeams$,this.teamScope$.pipe(R(function(k){return k?[k]:[]}))).pipe(R(function(k){return k.map(function(q){return q.id})}));this.unseenTeamChildTeamsMap$=this.teamsDisplayed$.pipe(R(function(k){return k.filter(function(q){return!h.childTeamsMap.has(q)})}),
rf(function(k){return 0<k.length}),bg(function(k){return h.teamsService.getChildTeams(k)}),R(HFa));this.unseenTeamComponentCountMap$=this.teamsDisplayed$.pipe(R(function(k){return k.filter(function(q){return!h.componentCountMap.has(q)})}),rf(function(k){return 0<k.length}),bg(function(k){return BKb(h.teamsService,k)}));this.componentIdSelected$=new S.ReplaySubject(1);this.lastProcessedIndex=-1;this.requestIndex=0};
CV.prototype.init=function(a){var b=this;a=void 0===a?!1:a;kZb(this);(0,S.combineLatest)([this.debouncedSearchQuery$.pipe($f(a?1:0)),this.state$]).pipe(cg(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&&lZb(b,c),mZb(b,c)):b.state$.next("default"):"team_scope"===d?b.teamScope$.value&&(b.teamOptions$.next([]),
mZb(b,"teamid:"+b.teamScope$.value.id+" "+c)):"component_scope"===d&&b.componentScope&&nZb(b,b.componentScope.id)});this.debouncedSearchQuery$.pipe(eg(this.state$),cg(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(cg(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(cg(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 kZb=function(a){a.componentsLoading=!0;a.userApi.getRecentComponents().then(function(b){b=b.map(pp);a.recentComponents=b;a.listUpdated$.next()}).finally(function(){a.componentsLoading=!1});a.config.includeTeamData&&(a.teamsLoading=!0,kM(a.teamsService,"").pipe(cg(a.destroyed$)).subscribe(function(b){a.myTeams$.next(b.getTeamSuggestionsList().map(FFa));a.listUpdated$.next();a.teamsLoading=!1},function(){a.teamsLoading=!1}))};
CV.prototype.selectOption=function(a){"component"===a.type?IGa(this,a.id):"team"===a.type?QFa(this,a):console.warn("invalid option selected")};
var IGa=function(a,b){var c=oZb(a);eo(a.analytics,io.COMPONENT_PICKER,"autocomplete-select",c);a.componentIdSelected$.next(b);a.state$.next("global")},oZb=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""};
CV.prototype.expandComponent=function(a){this.componentScope=a;this.state$.next("component_scope")};
var vGa=function(a,b){a.componentActions.get(b).then(function(c){a.componentScope=pp(c);a.state$.next("component_scope")})},uGa=function(a){a.componentScope=void 0;a.searchQuery$.value?a.state$.next("global"):a.state$.next("default")},QFa=function(a,b){a.teamScope$.next(Object.assign({},b,{expanded:!1}));a.state$.next("team_scope");a.searchQuery$.next("");b.pathNames||rp(a,b.id)},rp=function(a,b){a.teamsLoading=!0;kM(a.teamsService,b).pipe(cg(a.destroyed$)).subscribe(function(c){c=c.getTeamSuggestionsList().map(FFa);
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})},iZb=function(a){if(a.teamScope$.value&&a.teamScope$.value.pathIds&&!(2>a.teamScope$.value.pathIds.length)){var b=a.teamScope$.value.pathIds;rp(a,b[b.length-2])}};CV.prototype.getChildTeams=function(a){var b;return null!=(b=this.childTeamsMap.get(a))?b:[]};
CV.prototype.hasNoComponent=function(a){return this.componentCountMap.has(a)?0===this.componentCountMap.get(a):!1};
var lGa=function(a,b){b.expanded=!1;a.listUpdated$.next()},mGa=function(a,b){b.expanded=!0;a.listUpdated$.next();a.newChildTeams$.next(a.getChildTeams(b.id))},sp=function(a){a.teamScope$.next(void 0);a.searchQuery$.next("");a.state$.next("default")},lZb=function(a,b){1<b.length&&(a.teamsLoading=!0,kM(a.teamsService,b).pipe(cg(a.destroyed$)).subscribe(function(c){a.teamOptions$.next(c.getTeamSuggestionsList().map(FFa));a.teamsLoading=!1;a.listUpdated$.next()},function(){a.teamsLoading=!1}))},mZb=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(pp));a.listUpdated$.next()}).finally(function(){a.componentsLoading=!1})}},nZb=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(pp),a.listUpdated$.next())}).finally(function(){a.componentsLoading=
!1})};
var EV=function(){};EV.\u0275fac=function(a){return new (a||EV)};EV.\u0275mod=uc({type:EV});EV.\u0275inj=gc({imports:[Wx,gB,gB]});
var FV=function(){};FV.\u0275fac=function(a){return new (a||FV)};FV.\u0275mod=uc({type:FV});FV.\u0275inj=gc({imports:[Wx,Gy,BG,wF,cI,lH,EV,fB,bB,aA,KM,cT]});
var GV=function(){this.customFields=this.selectedComponent=null;this.fieldSelected=new Rw;this.filter=function(){return!0}};GV.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};GV.\u0275fac=function(a){return new (a||GV)};
GV.\u0275cmp=w({type:GV,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&&(F(0,"div",0)(1,"div",1),O(2," First, select a component that contains the custom field. "),G(),F(3,"b-team-component-picker",2),J("selectedComponentChange",function(c){return b.onComponentSelect(null!==c&&void 0!==c?c:null)}),G(),M(4,XGa,4,3,"div",3),G());a&2&&(B(3),C("selectedComponent",b.selectedComponent)("placeholder","Choose Component")("isRequired",!0),B(1),C("ngIf",b.selectedComponent))},dependencies:[Gx,Cx,oC,lC,XS,xB,
DV],encapsulation:2});var HV=function(){};HV.\u0275fac=function(a){return new (a||HV)};HV.\u0275mod=uc({type:HV});HV.\u0275inj=gc({imports:[Wx,YS,FV]});
var pZb=function(a){return{value:a}},IV=function(){this.isNonemptyJsonDateValue=Spa};IV.prototype.toDate=function(a){return Mk(a)};IV.\u0275fac=function(a){return new (a||IV)};
IV.\u0275cmp=w({type:IV,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&&(F(0,"span",0),M(1,YGa,1,0,"ng-container",1),G(),M(2,ZGa,0,0,"ng-template",null,2,Jf),M(4,lHa,8,8,"ng-template",null,3,Jf));if(a&2){var c=Ce(5);B(1);C("ngTemplateOutlet",
null==b.customFieldValue?null:c)("ngTemplateOutletContext",Ie(2,pZb,b.customFieldValue))}},dependencies:[Gx,Cx,Mx,JP],encapsulation:2});var JV=function(){};JV.\u0275fac=function(a){return new (a||JV)};JV.\u0275mod=uc({type:JV});JV.\u0275inj=gc({imports:[Wx,cQ]});
var sZb=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 ZR;this.selectedVerifiersStatus=this.selectedAssigneesStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";qZb(this,b);rZb(this,b)},qZb=function(a,b){var c=b[0],d=Bn[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},tZb=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||Nn(c)})?b?"MULTIPLE":"IDENTICAL_EMAILS":"POSSIBLY_MULTIPLE"},rZb=function(a,b){var c=b.map(function(d){return d.assigneeEmail});
b=b.map(function(d){return d.verifierEmail});a.selectedAssigneesStatus=tZb(c);a.selectedVerifiersStatus=tZb(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])};sZb.prototype.clearAssignee=function(){this.commonAssignee="";this.selectedAssigneesStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";this.overwriteAssignee=!0;FIa(this)};
sZb.prototype.clearVerifier=function(){this.commonVerifier="";this.selectedVerifiersStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";this.overwriteVerifier=!0};
var Np=function(a){return a.origIssues.every(function(b){return!!b.verifierEmail})},BIa=function(a,b){(a.origCommonIssueState=b)?("NEW"===b.status?uZb(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||uZb(a.selectedAssigneesStatus)||(a.commonAssignee=a.lastCommonAssignee?
a.lastCommonAssignee:a.userEmail),uZb(a.selectedVerifiersStatus)||a.commonVerifier||"VERIFIED"!==b.status||(a.commonVerifier=a.userEmail)),a.issueState=a.origCommonIssueState):a.issueState=void 0},uZb=function(a){return"MULTIPLE"===a||"POSSIBLY_MULTIPLE"===a},FIa=function(a){var b=Bn.NEW,c=Bn.ASSIGNED;a.issueState===b&&a.commonAssignee?a.issueState=a.origCommonIssueState===b?c:a.origCommonIssueState:a.commonAssignee||a.issueState&&!zJb.has(a.issueState)||(a.issueState=b)},vZb=function(a){var b=a.issueState;
return b?a.origIssues.some(function(c){return b.status!==c.status}):!1},PIa=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);vZb(a)&&b.set("status",a.issueState.status);a.comment.value&&b.set("comment",a.comment.value);return b};
var wZb=function(a){this.uploadUrl_=a};wZb.prototype.getUploadUrl=function(){return this.uploadUrl_};
var xZb=function(){Qo.call(this)};du(xZb,Qo);var KV=function(a){YC.call(this,a)};du(KV,YC);var LV=function(a){YC.call(this,a)};du(LV,YC);
var yZb=function(a,b){this.name_=a;this.inputElement_=b};yZb.prototype.getName=function(){return this.name_};
var zZb=function(){this.maxChunkSize_=1073741824;this.retryOnHttpClientErrorEnabled_=!1};
var MV=function(){Qo.call(this);this.name_="closure_frame"+AZb++;this.iframesForDisposal_=[];BZb[this.name_]=this},NV;du(MV,Qo);var BZb={},AZb=0,CZb=function(a,b){var c=Zo(a);Ezb(b,function(d,e){Array.isArray(d)||(d=[d]);sa(d,function(f){f=c.createDom("INPUT",{type:"hidden",name:e,value:f});a.appendChild(f)})})};g=MV.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("$d");this.lastUri_=a=new dp(a);b=b?b.toUpperCase():"GET";c&&WG(a,"zx",zC());NV||(NV=esb("FORM"),NV.acceptCharset="utf-8",c=NV.style,c.position="absolute",c.visibility="hidden",c.top=c.left="-10px",c.width=c.height="10px",c.overflow="hidden",document.body.appendChild(NV));this.form_=NV;"GET"==b&&CZb(this.form_,a.queryData_);d&&CZb(this.form_,d);Tqb(this.form_,Sy(a.toString()));this.form_.method=b;DZb(this);EZb(this)};
g.abort=function(a){if(this.active_){var b=OV(this);if(b)if(dD(b))b.removeAllListeners();else if(b=iD(b)){var c=0,d;for(d in b.listeners)for(var e=b.listeners[d].concat(),f=0;f<e.length;++f)kD(e[f])&&++c}this.success_=this.active_=this.complete_=!1;this.lastErrorCode_=a||7;this.dispatchEvent("abort");FZb(this)}};
g.disposeInternal=function(){this.active_&&this.abort();MV.superClass_.disposeInternal.call(this);this.iframe_&&GZb(this);EZb(this);delete this.errorChecker_;this.lastUri_=this.lastContent_=this.form_=null;this.lastErrorCode_=0;delete BZb[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 Atb(this.lastContent_)};
g.getLastUri=function(){return this.lastUri_};g.getLastErrorCode=function(){return this.lastErrorCode_};g.getLastError=function(){return Gtb(this.lastErrorCode_)};
var DZb=function(a){a.active_=!0;a.complete_=!1;a.lastErrorCode_=0;a.iframeName_=a.name_+"_"+(a.nextIframeId_++).toString(36);a.iframe_=Zo(a.form_).createDom("IFRAME",{name:a.iframeName_,id:a.iframeName_});hu&&7>Number(mu)&&Tqb(a.iframe_,Sy(hh(Co('javascript:""'))));var b=a.iframe_.style;b.visibility="hidden";b.width=b.height="10px";b.display="none";ku?b.marginTop=b.marginLeft="-10px":(b.position="absolute",b.top=b.left="-10px");if(hu&&!nu("11")){a.form_.target=a.iframeName_||"";Zo(a.form_).document_.body.appendChild(a.iframe_);
Ro(a.iframe_,"readystatechange",a.onIeReadyStateChange_,!1,a);try{a.errorHandled_=!1,a.form_.submit()}catch(I){jD(a.iframe_,"readystatechange",a.onIeReadyStateChange_,!1,a),a.handleError_(1)}}else{Zo(a.form_).document_.body.appendChild(a.iframe_);b=a.iframeName_+"_inner";var c=zD(a.iframe_);if(document.baseURI){var d=Jj(b);d=kh('<head><base href="'+Jj(document.baseURI)+'"></head><body><iframe id="'+d+'" name="'+d+'"></iframe>',null)}else d=Jj(b),d=kh('<body><iframe id="'+d+'" name="'+d+'"></iframe>',
null);c.write(qh(d));Ro(c.getElementById(b),"load",a.onIframeLoaded_,!1,a);d=qD("TEXTAREA",a.form_);for(var e=0,f=d.length;e<f;e++){var h=d[e].value,k=[];ksb(d[e],k,!1);k.join("")!=h&&(AD(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=qD("SELECT",a.form_);f=qD("SELECT",d);h=0;for(k=e.length;h<k;h++)for(var q=qD("OPTION",e[h]),v=qD("OPTION",f[h]),y=0,E=q.length;y<E;y++)v[y].selected=q[y].selected;e=qD("INPUT",a.form_);f=qD("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(),ju&&JD(a.testForFirefoxSilentError_,250,a)}catch(I){jD(c.getElementById(b),"load",a.onIframeLoaded_,!1,a),c.close(),a.handleError_(2)}}};
MV.prototype.onIeReadyStateChange_=function(){if("complete"==this.iframe_.readyState){jD(this.iframe_,"readystatechange",this.onIeReadyStateChange_,!1,this);try{var a=zD(this.iframe_);if(hu&&"about:blank"==a.location&&!navigator.onLine){this.handleError_(9);return}}catch(b){this.handleError_(1);return}HZb(this,a)}};MV.prototype.onIframeLoaded_=function(){jD(OV(this),"load",this.onIframeLoaded_,!1,this);try{HZb(this,this.iframe_?zD(OV(this)):null)}catch(a){this.handleError_(1)}};
var HZb=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"),FZb(a))};
MV.prototype.handleError_=function(a){this.errorHandled_||(this.active_=this.success_=!1,this.complete_=!0,this.lastErrorCode_=a,this.dispatchEvent("complete"),this.dispatchEvent("error"),FZb(this),this.errorHandled_=!0)};
var FZb=function(a){GZb(a);EZb(a);a.form_=null;a.dispatchEvent("ready")},GZb=function(a){var b=a.iframe_;b&&(b.onreadystatechange=null,b.onload=null,b.onerror=null,a.iframesForDisposal_.push(b));a.iframeDisposalTimer_&&(KD(a.iframeDisposalTimer_),a.iframeDisposalTimer_=null);ju?a.iframeDisposalTimer_=JD(a.disposeIframes_,2E3,a):a.disposeIframes_();a.iframe_=null;a.iframeName_=null};
MV.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(KD(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;0!=this.iframesForDisposal_.length;){var a=this.iframesForDisposal_.pop();xD(a)}};var EZb=function(a){a.form_&&a.form_==NV&&wD(a.form_)},OV=function(a){return a.iframe_?hu&&!nu("11")?a.iframe_:zD(a.iframe_).getElementById(a.iframeName_+"_inner"):null};
MV.prototype.testForFirefoxSilentError_=function(){if(this.active_){var a=this.iframe_?zD(OV(this)):null;a&&!oib(a,"documentUri")?(jD(OV(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?this.handleError_(3):this.handleError_(9)):JD(this.testForFirefoxSilentError_,250,this)}};
var IZb=function(a,b,c,d,e){Qo.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 dp(a);WG(a,"upload_protocol","multipart");this.url_=a.toString();this.request_=new MV;this.state_="Ready";this.errorDescription_=
null;this.eventHandler_=new aH(this);XC(this,this.eventHandler_);this.eventHandler_.listen(this.request_,"success",this.onTransferSuccess_);this.eventHandler_.listen(this.request_,"error",this.onTransferError_)};U(IZb,xZb);g=IZb.prototype;g.run=function(){this.state_="Transferring";var a=this.request_,b=this.form_;if(a.active_)throw Error("$d");var c=new dp(this.url_||b.action);a.lastUri_=c;a.form_=b;Tqb(a.form_,c.toString());DZb(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 KV("m"))};g.pause=function(){};g.unpause=function(){};g.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new KV("j"))};
g.onTransferError_=function(){this.errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new KV("l"))};
var LZb=function(a,b){void 0!==a.name?(this.name=a.name,this.code=JZb[a.name]):(this.code=a=a.code,this.name=KZb(a));aa.call(this,Xqb("%s %s",this.name,b))};du(LZb,aa);
var KZb=function(a){var b=xja(JZb,function(c){return a==c});if(void 0===b)throw Error("ae`"+a);return b},PV={},JZb=(PV.AbortError=3,PV.EncodingError=5,PV.InvalidModificationError=9,PV.InvalidStateError=7,PV.NotFoundError=1,PV.NotReadableError=4,PV.NoModificationAllowedError=6,PV.PathExistsError=12,PV.QuotaExceededError=10,PV.SecurityError=2,PV.SyntaxError=8,PV.TypeMismatchError=11,PV);
var MZb=function(a,b){YC.call(this,a.type,b);this.event_=a};du(MZb,YC);
var NZb=function(a,b,c){void 0===c&&(c=a.size);return a.slice?a.slice(b,c):null};
var nHa=new WeakMap,mHa=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")};
tp(function(){if(!ca.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 OZb=tp(function(){if(!ca.Blob)return!1;var a=new Uint8Array(100);try{var b=new Blob([a])}catch(c){return!1}return null===NZb(b,0,1)?!1:!0});
var PZb=function(){Qo.call(this);this.reader_=new FileReader;this.reader_.onloadstart=$t(this.dispatchProgressEvent_,this);this.reader_.onprogress=$t(this.dispatchProgressEvent_,this);this.reader_.onload=$t(this.dispatchProgressEvent_,this);this.reader_.onabort=$t(this.dispatchProgressEvent_,this);this.reader_.onerror=$t(this.dispatchProgressEvent_,this);this.reader_.onloadend=$t(this.dispatchProgressEvent_,this)};du(PZb,Qo);g=PZb.prototype;
g.abort=function(){try{this.reader_.abort()}catch(a){throw new LZb(a,"aborting read");}};g.getReadyState=function(){return this.reader_.readyState};g.getError=function(){return this.reader_.error&&new LZb(this.reader_.error,"reading file")};g.dispatchProgressEvent_=function(a){this.dispatchEvent(new MZb(a,this))};g.disposeInternal=function(){PZb.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 QZb=function(a){var b=new xS;a.listen("loadend",au(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 QV=function(){eE.call(this)};U(QV,eE);QV.prototype.createXhr=function(){var a=eE.prototype.createXhr.call(this);a.upload&&(a.upload.onprogress=$t(this.onProgress_,this));return a};QV.prototype.onProgress_=function(a){this.dispatchEvent(a)};
var RZb=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},TZb=function(a,b){var c=a.attempt_+1;if(0<a.maxAttempts_&&c>a.maxAttempts_)return!1;0==c?b():a.delayCallId_=JD(function(){a.delayCallId_=null;b()},SZb(a),a);a.attempt_=c;return!0};RZb.prototype.reset=function(){this.delayCallId_&&KD(this.delayCallId_);this.attempt_=-1};var SZb=function(a){var b=250*Math.pow(2,a.attempt_);0<=a.maxDelayMs_&&(b=Math.min(b,a.maxDelayMs_));return b};
var qHa=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];
var RV=function(a){Qo.call(this);a=a||new zZb;this.request_=this.state_=null;this.withCredentials_=!1;this.transferHandle_=null;this.offset_=this.bytesTransferred_=0;this.retryIterator_=new RZb;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.errorDescription_=null;this.eventHandler_=new aH(this);XC(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};du(RV,xZb);g=RV.prototype;g.run=function(){SV(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 KV("m"))}};
g.pause=function(){this.pauseRequested_=!0};g.unpause=function(){this.pauseRequested_=!1;"Paused"===this.state_&&(this.state_=this.stateAfterUnpausing_,this.stateAfterUnpausing_=null,UZb(this))};
var SV=function(a){var b=a.state_;a.pauseRequested_?(a.pauseRequested_=!1,a.stateAfterUnpausing_=b,a.state_="Paused"):TZb(a.retryIterator_,function(){return UZb(a)})||TV(a,"Transfer encountered too many consecutive failures.")},UZb=function(a){switch(a.state_){case "Start":a.start_();break;case "Upload":var b=a.transferHandle_.getUploadUrl(),c=a.blob_.size;if(OZb()){var d=a.chunkSize_;var e=a.offset_+d>=c;c=NZb(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=$t(a.onUploadComplete_,a,a.offset_+c.size,e);a.eventHandler_.listen(a.request_,"complete",d);a.lastCommandResponseCode_=null;a.dispatchEvent(new LV("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("be");
}},TV=function(a,b){a.state_="Error";a.errorDescription_=b;a.dispatchEvent(new KV("l"))};g=RV.prototype;
g.start_=function(){this.request_=this.createXhrRequest();var a=ch(this.headers_);null!=this.blob_.size&&(a["Content-Length"]=this.blob_.size);a=rHa(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 LV("o"))};
g.onStartComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new LV("p"));VZb(b)?WZb(this,b):XZb(b)?(b=up(a.target.getAllResponseHeaders()),this.dispatchEvent(new KV("k")),a=vp(b,"X-Goog-Upload-URL"),b=(b=vp(b,"X-Goog-Upload-Chunk-Granularity"))?parseInt(b,10):1,void 0===a||isNaN(b)||0>=b?TV(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(this.maxChunkSize_/b)*b,this.transferHandle_=new wZb(a),this.dispatchEvent(new KV("n")),this.state_=
"Upload",this.retryIterator_.reset(),SV(this))):SV(this)};g.onUploadProgress_=function(a){this.bytesTransferred_=this.offset_+a.loaded;this.dispatchEvent(new KV("i"))};
g.onUploadComplete_=function(a,b,c){var d=this,e,f;return bf(function(h){switch(h.nextAddress){case 1:e=c.target;d.lastCommandResponseCode_=e.getStatus();d.dispatchEvent(new LV("p"));if(d.retryOnHttpClientErrorEnabled_?YZb(e)||404==e.getStatus():VZb(e))return d.bytesTransferred_=a,WZb(d,e),h.return();if(XZb(e)){h.jumpTo(2);break}if(!(f=d.detectCorruptedBlobEnabled_)){h.jumpTo(3);break}return cf(h,ZZb(d),4);case 4:f=h.yieldResult;case 3:if(f)return TV(d,"Blob has been modified or corrupted."),h.return();
d.requireUploadRequestModification_=400==e.getStatus();d.state_="Query";SV(d);return h.return();case 2:if(b)return TV(d,"Got a non-final success response after issuing a finalize command."),h.return();d.bytesTransferred_=a;d.offset_=a;d.retryIterator_.reset();SV(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 LV("o"))};
g.onQueryComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new LV("p"));VZb(b)?(200===b.getStatus()&&(this.bytesTransferred_=this.blob_.size),WZb(this,b)):XZb(b)?(a=up(a.target.getAllResponseHeaders()),a=parseInt(vp(a,"X-Goog-Upload-Size-Received"),10),isNaN(a)?TV(this,"Server did not respond with current offset."):a<this.offset_?TV(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+a+"."):this.requireUploadRequestModification_&&
this.offset_===a?TV(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",SV(this))):SV(this)};
var WZb=function(a,b){a.responseCode_=b.getStatus();var c=up(b.getAllResponseHeaders());a.responseHeaders_=sHa(c);a.responseText_=b.getResponseText();a.state_="Response received";a.dispatchEvent(new KV("j"))},XZb=function(a){var b=a.getStatus();a=up(a.getAllResponseHeaders());a=vp(a,"X-Goog-Upload-Status");return 200===b&&"active"===a},YZb=function(a){a=up(a.getAllResponseHeaders());return"final"===vp(a,"X-Goog-Upload-Status")},VZb=function(a){if(YZb(a))return!0;a=a.getStatus();return 400<=a&&500>
a},ZZb=function(a){var b;return bf(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);Qt(c,2);if(b=NZb(a.blob_,0,1)){var d=new PZb,e=QZb(d);d.readAsBinaryString(b);c=cf(c,e,4)}else c=c.return(!0);return c}if(2!=c.nextAddress)return c.return(a.blob_.size!==a.originalBlobSize_);St(c);return c.return(!0)})};RV.prototype.createXhrRequest=function(){return new QV};
var $Zb=function(a,b,c,d,e,f){Qo.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-"+zC()+"-"+a.toIsoString();this.transferRequest_=null;this.bytesTransferred_=0;this.responseText_=this.responseHeaders_=this.responseCode_=null;this.state_="Ready";this.errorDescription_=null;this.eventHandler_=new aH(this);XC(this,this.eventHandler_)};U($Zb,xZb);g=$Zb.prototype;
g.run=function(){var a=ch(this.headers_);null!=this.payload_.length&&(a["Content-Length"]=this.payload_.length);a=rHa(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 KV("m")))};g.pause=function(){};g.unpause=function(){};
g.onTransferProgress_=function(a){this.bytesTransferred_=Math.max(0,a.loaded-this.metadataOverhead_);this.dispatchEvent(new KV("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 KV("l"))):(this.responseCode_=b,a=a.target,b=up(a.getAllResponseHeaders()),this.responseHeaders_=sHa(b),this.responseText_=a.getResponseText(),this.state_="Complete",this.dispatchEvent(new KV("j")))};
g.createXhrRequest=function(){return new QV};
var a_b=function(){},b_b=function(a,b,c,d,e){e=void 0===e?!1:e;if(c instanceof yZb)return new IZb(a,"POST",b,c.inputElement_,d);if("string"===typeof c||c instanceof String)return new $Zb(a,"POST",b,c,d);var f=new RV(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 c_b=new ld("ScottyUploaderConfigFactory"),d_b=new ld("ScottyUploader",{factory:function(){return new a_b}}),UV=function(a,b){this.uploader=a;this.configFactory=b;this.internalTransferStatus=new S.Subject;this.transferStatus=Plb(this.internalTransferStatus)};
UV.prototype.upload=function(a,b){var c=this;b=void 0===b?this.configFactory.create(a):b;a=b_b(b.url,b.headers||{},a,b.metadata||"",!!b.withCredentials);this.transferSubscription&&!b.allowSimultaneousUpload&&this.transferSubscription.unsubscribe();this.transferSubscription=(0,S.merge)((0,S.fromEvent)(a,"k"),(0,S.fromEvent)(a,"i"),(0,S.fromEvent)(a,"n"),(0,S.fromEvent)(a,"l"),(0,S.fromEvent)(a,"j"),(0,S.fromEvent)(a,"m")).pipe(cg((0,S.fromEvent)(a,"j").pipe(Of(0)))).subscribe(function(d){c.internalTransferStatus.next(d)});
a.run()};UV.\u0275fac=function(a){return new (a||UV)(t(d_b),t(c_b))};UV.\u0275prov=dc({token:UV,factory:UV.\u0275fac});
var e_b=function(a){this.name_=a;this.files_=[];this.directories_=[];this.directoryMap_={}};e_b.prototype.getDirectory=function(a){return this.directoryMap_[a]};e_b.prototype.getName=function(){return this.name_};
var g_b=function(a,b,c){b=void 0===b?"single_file":b;c=void 0===c?[]:c;Qo.call(this);this.overlayTarget_=a;this.parentOverlay_=null!=a?a.parentNode:Hj(document,"scotty-overlay-parent");this.selectorType_=b;this.acceptTypes_=c;this.overlay_=f_b(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};U(g_b,Qo);
var f_b=function(a,b,c,d){var e=document.createElement("input");e.setAttribute("type","file");e.setAttribute("name","Filedata");Ro(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),Wq(e,new Tq(b.offsetLeft,b.offsetTop)),e;a.parentOverlay_.appendChild(e);return e};g_b.prototype.click=function(){this.overlay_.click()};
g_b.prototype.onFilesSelected_=function(a){a:{try{var b=void 0!==(new XMLHttpRequest).upload;break a}catch(v){}b=!1}if(b){a=a.target.files;b=[];if("single_directory"===this.selectorType_&&(ku||iu)){b=new e_b("");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 e_b(k),f.directoryMap_[k.getName()]=
k,f.directories_.push(k));f=q}b=b.directories_}this.dispatchEvent(new h_b(a,b,null))}else a=a.target.value,a.match(/^c:\\fakepath\\/i)&&(a=a.substring(12)),this.dispatchEvent(new h_b([],[],new yZb(a,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=f_b(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var i_b={SINGLE_FILE_SELECTION:"single_file",MULTIPLE_FILE_SELECTION:"multiple_file",SINGLE_DIRECTORY_SELECTION:"single_directory"},h_b=function(a,b){YC.call(this,"s");this.files=a;this.directories=b};U(h_b,YC);
var VV=function(a,b){this.elementRef=a;this.ngZone=b;this.destroyed=new S.ReplaySubject(1);this.supportedFileExtensions=null;this.fileExtensionRejected=new Rw;this.maxFileSize=null;this.fileSizeRejected=new Rw;this.fileSelected=new Rw};
VV.prototype.ngAfterViewInit=function(){var a=this;this.getOverlay().pipe(bg(function(b){return(0,S.merge)((0,S.fromEvent)(b,"q"),(0,S.fromEvent)(b,"s"))}),cg(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)})})};VV.prototype.ngOnDestroy=function(){this.destroyed.next(!0);this.destroyed.complete()};VV.\u0275fac=function(a){return new (a||VV)(D(pd),D(jg))};VV.\u0275dir=w({type:VV,inputs:{supportedFileExtensions:"supportedFileExtensions",maxFileSize:"maxFileSize"},outputs:{fileExtensionRejected:"fileExtensionRejected",fileSizeRejected:"fileSizeRejected",fileSelected:"fileSelected"}});
var WV=function(a,b){VV.call(this,a,b);this.overlay=this.fileSelectorOverlay=null};U(WV,VV);
WV.prototype.getOverlay=function(){var a=this;this.overlay||(this.overlay=this.ngZone.runOutsideAngular(function(){return(0,S.merge)((0,S.fromEvent)(a.elementRef.nativeElement,"mouseover"),(0,S.fromEvent)(a.elementRef.nativeElement,"focus")).pipe(Tf(),cg(a.destroyed),R(function(){a.fileSelectorOverlay=new g_b(a.elementRef.nativeElement,a.selectorType,j_b(a));a.fileSelectorOverlay.overlay_.style.display="none";return a.fileSelectorOverlay}),Zf(1))}));return this.overlay};
WV.prototype.onClick=function(){this.fileSelectorOverlay&&this.fileSelectorOverlay.click()};var j_b=function(a){return(a.supportedFileExtensions||[]).map(function(b){return"."+b})};WV.\u0275fac=function(a){return new (a||WV)(D(pd),D(jg))};WV.\u0275dir=w({type:WV,hostBindings:function(a,b){a&1&&J("click",function(){return b.onClick()})},inputs:{selectorType:"selectorType"},features:[ae]});var XV=function(a,b,c){WV.call(this,a,b);this.uploader=c;this.disableAutoUploadInternal=!1};U(XV,WV);
XV.prototype.ngOnInit=function(){var a=this;this.fileSelected.pipe(cg(this.destroyed),rf(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)}})};li.Object.defineProperties(XV.prototype,{disableAutoUpload:{configurable:!0,enumerable:!0,get:function(){return this.disableAutoUploadInternal},set:function(a){this.disableAutoUploadInternal=Vg(a)}}});
XV.\u0275fac=function(a){return new (a||XV)(D(pd),D(jg),D(UV,8))};XV.\u0275dir=w({type:XV,selectors:[["","xapUploaderTrigger",""],["","xapScottyUploaderTrigger",""]],inputs:{disableAutoUpload:"disableAutoUpload"},features:[ae]});
var YV=function(a){this.snackBar=a;this.SelectorType=i_b;this.disabled=!1;this.onSelect=new Rw};YV.\u0275fac=function(a){return new (a||YV)(D(AK))};
YV.\u0275cmp=w({type:YV,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&&(F(0,"div",0)(1,"button",1),J("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&&nya(d.name)?b.onSelect.emit(d):b.snackBar.open("Filename contains invalid characters!")}}),H(2,"mat-icon",2),G()());a&2&&(B(1),C("selectorType",b.SelectorType.MULTIPLE_FILE_SELECTION)("disableAutoUpload",!0)("disabled",b.disabled))},dependencies:[BB,dF,sF,XV],encapsulation:2});
var ZV=function(a,b){YR.call(this,a.size,a.name);var c=this;this.destroyed$=new S.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(cg(this.destroyed$)).subscribe(function(d){c.onTransferEventUpdate(d)})};U(ZV,YR);ZV.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.")};
ZV.prototype.cancel=function(){var a,b;null==(a=this.transfer)||null==(b=a.cancel)||b.call(a);this.unsubscribe()};ZV.prototype.unsubscribe=function(){this.destroyed$.next();this.destroyed$.complete()};
var $V=function(a){this.activeSession=a};
$V.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=db(c);c=new dp(null);return{url:WG(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}};$V.\u0275fac=function(a){return new (a||$V)(t(vH))};$V.\u0275prov=dc({token:$V,factory:$V.\u0275fac,providedIn:"root"});var aW=function(a,b){this.uploader=a;this.uploaderConfigFactory=b};aW.prototype.create=function(){return new UV(this.uploader,this.uploaderConfigFactory)};aW.\u0275fac=function(a){return new (a||aW)(t(d_b),t($V))};aW.\u0275prov=dc({token:aW,factory:aW.\u0275fac,providedIn:"root"});
var wHa=function(a){return{"attachment-error":a}},bW=function(a){this.scottyUploaderFactory=a;this.uploads=[];this.onUploadCancel=new Rw;this.uploadStates=AQb};bW.prototype.ngOnDestroy=function(){for(var a=r(this.uploads),b=a.next();!b.done;b=a.next())b.value.cancel()};bW.prototype.upload=function(a){var b=this.scottyUploaderFactory.create();b.upload(a);return new ZV(a,b.transferStatus)};bW.prototype.cancel=function(a){a.cancel();this.onUploadCancel.emit(a)};
bW.\u0275fac=function(a){return new (a||bW)(D(aW))};
bW.\u0275cmp=w({type:bW,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&&M(0,yHa,2,1,"div",0);a&2&&C("ngIf",0<b.uploads.length)},dependencies:[Fx,Gx,Cx,dF,sF,GM],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 k_b=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 l_b=function(a){YR.call(this,a.size,a.name);this.attachment=a};U(l_b,YR);
var m_b=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=Em(c)?Fm(c):"Error while uploading."})):(a.state=3,a.errorMessage="Error while uploading.")};
var cW=function(a){this.id_=a;this.opts={}};g=cW.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=$g(this.opts,function(c){return null!==c});a=ah(a)?null:a;a=[this.id_,this.label_,a];var b=kaa(a);return a=a.slice(0,b+1)};g.toString=function(){var a=this.toArray();return"("+gu(a,function(b){return $D(b)}).join(",")+")"};g.getId=function(){return this.id_};
g.getLabel=function(){return this.label_};g.getOptions=function(){return ch(this.opts)};g.getQuery=function(){return this.opts.query};
var dW=function(a){cW.call(this,a||"all")};du(dW,cW);var n_b=function(){var a=(new dW("all")).setOwnedByMe(!0);a.opts.drdis=!0;a.opts.includeFolders=!0;a.opts.sortKey=7;a.opts.ff=!0;return a};g=dW.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){dW.superClass_.setLabel.call(this,a);return this};
g.setQuery=function(a){dW.superClass_.setQuery.call(this,a);return this};g.setParent=function(a){dW.superClass_.setParent.call(this,a)};
var w_b=function(a,b){switch(a[0].getId().getSourceId()){case 13:return o_b(a,b);case 3:return p_b(a,b);case 10:return q_b(a,b,"upload");case 12:return r_b(a,b);case 2:return s_b(a,b);case 5:return t_b(a,b);case 9:return u_b(a,b);case 1:return lj(a[0],26)?v_b(a,b):q_b(a,b,"webcam");default:return{}}},s_b=function(a,b){a=a.map(function(c){var d=void 0;W(m(c,av,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:ej(c,23),description:c.getDescription(),iconUrl:c.getIconUrl(),thumbnails:eW(cv(c)),isShared:W(m(c,av,21),1),downloadUrl:V(m(c,av,21),10),embedUrl:V(c,13),copyable:W(m(c,av,21),9),resourceKey:m(c,av,21).getResourceKey(),uploadState:d}});return{action:b,docs:a,viewToken:fW("all","",{}),view:"all"}},t_b=function(a,b){a=a.map(function(c){var d=m(m(c,Zu,15),Nu,1);zu(c,10,Nu,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:eW(cv(c))}});return{action:b,docs:a,viewToken:fW("image-search","Search",{}),view:"image-search"}},u_b=function(a,b){a=a.map(function(c){return{serviceId:"url",name:cv(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:eW(cv(c))}});
return{action:b,docs:a,viewToken:fW("url","By URL",{}),view:"url"}},v_b=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:eW(cv(c))}});return{action:b,docs:a,viewToken:fW("webcam","",{}),view:"webcam"}},q_b=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:ej(e,23),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:eW(cv(e))}});a=new Set(a.map(function(e){return e.getType()}));a={allowedItemTypes:Array.from(a)};return{action:b,docs:d,viewToken:fW(c,"",a),view:c}},p_b=function(a,b){var c=a.map(function(d){return{id:d.getId().getId(),serviceId:"picasa",mimeType:d.getMimeType(),name:cv(d)[0].getUrl().split("/").pop(),type:d.getType(),lastEditedUtc:d.getLastModifiedTimestamp(),
url:d.getUrl(),sizeBytes:ej(d,23),description:d.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:eW(cv(d))}});a=new Set(a.map(function(d){return d.getType()}));a={allowedItemTypes:Array.from(a)};return{action:b,docs:c,viewToken:fW("photos","",a),view:"photos"}},o_b=function(a,b){var c=a.map(function(e){return{id:e.getId().getId(),serviceId:"et",name:cv(e)[0].getUrl().split("/").pop(),description:e.getDescription(),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",
thumbnails:eW(cv(e),"etjpg")}}),d={category:m(a[0],Uu,28).getCategory()};a=fW("et",V(m(a[0],Uu,28),2),d);return{action:b,docs:c,viewToken:a,view:"et"}},r_b=function(a,b){a=a.map(function(c){var d=jb(m(c,Tu,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"}},fW=function(a,b,c){return{0:a,1:b,2:c}},eW=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 x_b=function(){cW.call(this,"image-search")};U(x_b,cW);g=x_b.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){cW.prototype.setLabel.call(this,a);return this};g.setQuery=function(a){cW.prototype.setQuery.call(this,a);return this};g.setParent=function(a){cW.prototype.setParent.call(this,a)};
var y_b=function(){cW.call(this,"maps")};U(y_b,cW);g=y_b.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){cW.prototype.setLabel.call(this,a);return this};g.setQuery=function(a){cW.prototype.setQuery.call(this,a);return this};g.setParent=function(a){cW.prototype.setParent.call(this,a)};
var z_b=function(){cW.call(this,"photos")};U(z_b,cW);g=z_b.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){cW.prototype.setLabel.call(this,a);return this};g.setQuery=function(a){cW.prototype.setQuery.call(this,a);return this};g.setParent=function(a){cW.prototype.setParent.call(this,a)};g.removeDuplicates=function(){this.opts.rdv=!0;return this};
var gW=function(){cW.call(this,"url")};U(gW,cW);gW.prototype.setType=function(a){this.opts.type=a;return this};gW.prototype.setLabel=function(a){cW.prototype.setLabel.call(this,a);return this};gW.prototype.setQuery=function(a){cW.prototype.setQuery.call(this,a);return this};gW.prototype.setParent=function(a){cW.prototype.setParent.call(this,a)};
var hW=function(){cW.call(this,"video-search")};U(hW,cW);hW.prototype.setLabel=function(a){cW.prototype.setLabel.call(this,a);return this};hW.prototype.setQuery=function(a){cW.prototype.setQuery.call(this,a);return this};hW.prototype.setParent=function(a){cW.prototype.setParent.call(this,a)};
var iW=function(){cW.call(this,"web")};U(iW,cW);iW.prototype.setLabel=function(a){cW.prototype.setLabel.call(this,a);return this};iW.prototype.setQuery=function(a){cW.prototype.setQuery.call(this,a);return this};iW.prototype.setParent=function(a){cW.prototype.setParent.call(this,a)};
var jW=function(){this.root_=void 0;this.items_=[];this.opts={}},A_b=function(a){switch(a){case "image-search":return new x_b;case "maps":return new y_b;case "photos":return new z_b;case "url":return new gW;case "video-search":return new hW;case "web":return new iW}return new cW(a)};jW.prototype.addView=function(a){this.items_.push("string"===typeof a?A_b(a):a);return this};
var B_b=function(a){return"("+gu(a.items_,function(b){return b.toString()}).join(",")+")"},C_b=function(a){a=$g(a.opts,function(b){return null!==b});return(a=ah(a)?null:a)?$D(tja(a,function(b){return b.toString()})):""};jW.prototype.toString=function(){if(this.root_){var a=["{root:",this.root_.toString(),",items:",B_b(this)],b=C_b(this);b&&(a.push(",options:"),a.push(b));a.push("}");return a.join("")}return B_b(this)};
jW.prototype.toObject=function(){var a=gu(this.items_,function(b){return b instanceof jW?b.toObject():b.toArray()});return this.root_?{root:this.root_.toArray(),items:a,options:this.getOptions()}:a};var D_b=function(a,b){b=void 0===b?[]:b;a.items_.forEach(function(c){c instanceof jW?D_b(c,b):b.push(c)});return b};jW.prototype.getOptions=function(){return ch(this.opts)};
var E_b=function(a){this.obj_=a};g=E_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 F_b=function(a){this.obj_=a||{}};g=F_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 G_b=function(a){a.obj_.attributes=a.obj_.attributes||{};return new E_b(a.obj_.attributes)},$Vb=function(a){return(a=a.obj_.timeout)?a:null};
var H_b=function(){F_b.apply(this,arguments)};U(H_b,F_b);
var I_b=Bo(Co("https://apis.google.com/js/api.js")),M_b=function(a,b){var c=!1,d=J_b(a,b).then(function(f){c=!0;return f}),e=Ssb(5E3).then(function(){return c?J_b(a,b):K_b(b).then(function(f){return L_b(f,a)})});return Esb([d,e])},J_b=function(a,b){return N_b(b).then(function(c){return L_b(c,a)})},L_b=function(a,b){var c=Ni(b,"gapi.")?b.slice(5):b;return a[c]?GD(a[c]):new FD(function(d,e){var f=JD(function(){e(Error("ce"))},3E4);a.load(b,{callback:function(){KD(f);d(a[c])},onerror:function(h){KD(f);
e(h)}})})},N_b=function(a){return a.gapi&&a.gapi.load?GD(a.gapi):K_b(a)},K_b=function(a){return $Aa(I_b,{document:a.document}).then(function(){return a.gapi})},O_b=function(){};O_b.prototype.load=function(a,b){b=void 0===b?window:b;var c=Date.now();return M_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 P_b=function(){WC.call(this);this.gapiLoader_=new O_b;this.origin_=null;this.gapiPickerIframeResolver_=Gsb();this.gapiIframesResolver_=Gsb();this.gapiIframesResolver_.promise.then(null,function(){});this.gapiPickerIframeResolver_.promise.then(null,function(){});this.hostMessageHandlerInternal_={}};U(P_b,WC);
var Q_b=function(a,b){var c=Mo("gapi.iframes",b);return c?(a=Date.now(),GD({library:c,loadStartMs:a,loadEndMs:a})):a.gapiLoader_.load("gapi.iframes",b)},R_b=function(a,b,c,d,e,f){var h=!0;h=void 0===h?!1:h;Q_b(a,vD(b.ownerDocument)).then(function(k){var q=k.library;a.gapiIframesResolver_.resolve(q);k=a.gapiPickerIframeResolver_;var v=k.resolve,y=h;y=void 0===y?!1:y;var E={};E["host-message-handler"]=c;a.hostMessageHandlerInternal_=E;var I=YG(d);I=YG(I);I=Gzb(pv(qv(new dp,I.scheme_),I.getDomain()),
I.port_).toString();a.origin_=I;I=(new H_b).setUrl(d);I.obj_.where=b;I.obj_.allowPost=y;I.obj_.messageHandlers=E;y=Mo("makeWhiteListIframesFilter",q)([a.origin_]);I.obj_.messageHandlersFilter=y;null!=e&&I.setId(e);null!=f&&(I.obj_.rpctoken=f);G_b(I).setStyle({display:"block","min-width":"100%",width:"1px"}).setHeight("100%");G_b(I).value().allow="camera";q=q.getContext().openChild(I.value());v.call(k,q)},function(k){a.gapiIframesResolver_.reject(k);a.gapiPickerIframeResolver_.reject(k)});return a.gapiPickerIframeResolver_.promise},
S_b=function(a,b){return Dsb([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,Mo("makeWhiteListIframesFilter",c)([a.origin_])):zsb(Error("de"))})};P_b.prototype.disposeInternal=function(){T_b(this);WC.prototype.disposeInternal.call(this)};var T_b=function(a){a.gapiPickerIframeResolver_.promise.then(function(b){b&&(b.unregister("host-message-handler"),delete a.hostMessageHandlerInternal_["host-message-handler"])})};
var U_b=function(){this.nextId_=0};
var V_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]]),W_b=new Set("all docs-images docs-images-and-videos docs-videos documents drawings folders forms pdfs presentations scripts sites spreadsheets tables".split(" ")),Z_b=function(a,b,c,d){var e=ukb(tkb((new ov).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 v=(new lv).setId(2),y=new kv,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("ee`"+L+"`"+k);}}yu(v,3,mv,y);e.addPostProcessor(v);break;default:throw Error("fe`"+k);}}c.forEach(function(T,Y){switch(Y){case "hostId".toString():vl(e,24,T);break;case "origin".toString():vl(e,27,T);break;case "title".toString():e.setTitle(T);break;case "hl".toString():e.setLocale(T);
break;case "multiselectEnabled".toString():"true"==T&&(T=new nv,sl(T,1,1),Bb(e,3,T));break;case "authuser".toString():T=parseInt(T,10);if(isNaN(T))throw Error("ge");e.setAuthUser((new gv).setAuthUser(T));break;case "maxItems".toString():Uk(e,5,parseInt(T,10));break;case "profilePhoto".toString():e.setTitle("Select Profile Photo");T=e.addPostProcessor;Y=(new lv).setId(2);var ka=new kv;ka=mo(ka,2,!0);Y=yu(Y,3,mv,ka);T.call(e,Y);e.addPostProcessor((new lv).setId(1));break;case "gmailDelegatorId".toString():T=
(new ev).setGmailDelegatorId(T);Bb(e,29,T);break;case "minSize".toString():e.setMinSize(X_b(T));break;case "maxSize".toString():e.setMaxSize(X_b(T));break;case "view".toString():T=/\("([^"]*)",.*\)/.exec(T);"upload"==(null!=T&&1<T.length?T[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("he`"+Y);}});a=Y_b(b,e)}catch(T){return null}return(new Gv).setConfig(e).setSourceList(a)},X_b=function(a){var b=a.split("x");a=b[0];b=b[1];return(new hv).setWidth(parseInt(a,10)).setHeight(parseInt(b,10))},$_b=function(a){var b=a.getConfig().getBaseUrl();eu(b,"/")||(b+="/");b=YG(b);b.setPath(b.getPath()+"home");WG(b,"req",a.serialize());return b.toString()},b0b=function(a,b){switch(a.action){case "select-contacts":a=a0b(a.contacts);break;case "visibility":a=a.visible;a=(new Ev).setCommand(7).setVisible(a);
var c={};c["iframe-command"]=a.serialize();a=c;break;default:a=null}return a?S_b(b,a):GD()},a0b=function(a){if(!a||0==a.length)return null;var b=new Ev;b.setCommand(11);var c=new U_b;a.forEach(function(d){if(d.email){var e=(new bv).setName(d.name?d.name:d.email);var f=new Tu;d=ob(f,1,d.email);e=Bb(e,27,d).setId((new Mu).setId(":"+(c.nextId_++).toString(36)).setSourceId(12))}else e=null;e&&b.addItem(e)});a={};a["iframe-command"]=b.serialize();return a},Y_b=function(a,b){var c=new Map,d=new iv;D_b(a).forEach(function(e){var f=
new xp,h=e.getOptions(),k=e.getId();if(null!=k&&W_b.has(k)){switch(k){case "all":break;case "docs-images":jv(d,1);jv(d,6);break;case "docs-images-and-videos":jv(d,2);jv(d,1);jv(d,6);break;case "docs-videos":jv(d,2);jv(d,6);break;case "documents":jv(d,3);jv(d,6);break;case "drawings":jv(d,12);jv(d,6);break;case "folders":jv(d,6);break;case "forms":jv(d,7);jv(d,6);break;case "pdfs":jv(d,9);jv(d,6);break;case "presentations":jv(d,5);jv(d,6);break;case "scripts":jv(d,10);jv(d,6);break;case "sites":jv(d,
8);jv(d,6);break;case "spreadsheets":jv(d,4);jv(d,6);break;case "tables":jv(d,11);jv(d,6);break;default:throw Error("ne`"+k);}if(Object.keys(h).length)15==h.sortKey?(f=CHa(),c.set(f.serialize(),f)):h.starred?(f=DHa(),c.set(f.serialize(),f)):h.td||h.dr?(f=EHa(),c.set(f.serialize(),f)):h.ownedByMe?(f=AHa(),c.set(f.serialize(),f)):(f=BHa(),c.set(f.serialize(),f));else{var q=void 0===q?!1:q;var v=void 0===v?null:v;f=new Ap;f.addSource(CHa());q&&(h=f.addSource,e=new xp,q=new yp,mo(q,14,!0),sl(q,4,1),Bb(e,
3,q),e.setSourceId(2),e.setName("Suggested"),h.call(f,e));null!=v&&f.addSource(v);f.addSource(AHa());f.addSource(EHa());f.addSource(BHa());f.addSource(DHa());v=f.addSource;h=new xp;e=new yp;mo(e,12,!0);Bb(h,3,e);h.setSourceId(2);h.setName("Computers");v.call(f,h);c.set(f.serialize(),f)}}else switch(k){case "contacts":f.setSourceId(12);if(0!=Object.keys(h||{}).length)throw Error("ie");c.set(f.serialize(),f);break;case "photos":c0b(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 xp,v=f.setSourceId(2).setName("Upload"),h=new yp,k=new yv,q=jl(k,3,q),e=jl(q,1,e),h=Bb(h,15,e),Bb(v,3,h)):(f.setSourceId(10),f.setUploadSourceOptions(d0b(h,d)));c.set(f.serialize(),f);break;case "url":f.setSourceId(9);e.getLabel()&&f.setName(e.getLabel());jv(d,1);c.set(f.serialize(),f);break;case "webcam":f.setSourceId(1);switch(h.query){case "forms":case "spreadsheets":case "presentation":v=f,e=new wv,h=sl(e,1,1).setUploadSourceOptions(d0b(h,d)),Bb(v,
16,h)}jv(d,1);c.set(f.serialize(),f);break;case "image-search":f.setSourceId(5);jv(d,1);c.set(f.serialize(),f);break;case "et":f.setSourceId(13);e.getLabel()&&f.setName(e.getLabel());v=new zv;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(V_b.has(q))v.setCategory(V_b.get(q));else throw Error("je`"+q);break;default:throw Error("ke`"+e);}jv(d,1);Bb(f,13,v);c.set(f.serialize(),f);break;case null:break;
default:throw Error("le`"+e.getId());}});b.setItemType(fkb(d,Array.from(new Set(jb(d,1)))));return Array.from(c.values())},d0b=function(a,b){var c=new vv;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":sl(c,4,2);jv(b,1);break;case "photo":sl(c,4,1);jv(b,1);break;case "forms":sl(c,4,6);jv(b,1);break;case "spreadsheets":sl(c,4,7);jv(b,1);break;case "presentation":sl(c,4,8);jv(b,1);break;
default:throw Error("me`"+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;Zi(c,2).set(e,f)}}}return c},c0b=function(a,b,c){var d=new Ap;if(Object.keys(a).length){if(a.allowedItemTypes.includes("photo")&&(d.addSource(FHa()),jv(c,1)),a.allowedItemTypes.includes("album")&&(d.addSource(GHa()),jv(c,14)),"videos-uploaded"==a.type||"videos-camerasync"==a.type)d.addSource(IHa()),jv(c,2)}else d=HHa(),jv(c,1),jv(c,14);d.getSourceList().forEach(function(e){b.set(e.serialize(),
e)})};
var e0b=function(a){this.basePickerUrl_=a||"https://docs.google.com/picker";this.nav_=new jW};g=e0b.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 f0b=function(a){e0b.call(this,a)};du(f0b,e0b);
var kW=function(a){Qo.call(this);this.dom_=a||Zo();this.id_=null;this.inDocument_=!1;this.element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=null};du(kW,Qo);g=kW.prototype;g.idGenerator_=QU.getInstance();g.getId=function(){return this.id_||(this.id_=Cq(this.idGenerator_))};g.setId=function(a){this.parent_&&this.parent_.childIndex_&&(bh(this.parent_.childIndex_,this.id_),Aja(this.parent_.childIndex_,a,this));this.id_=a};g.getElement=function(){return this.element_};
g.getHandler=function(){this.googUiComponentHandler_||(this.googUiComponentHandler_=new aH(this));return this.googUiComponentHandler_};g.setParent=function(a){if(this==a)throw Error("oe");if(a&&this.parent_&&this.id_&&rNb(this.parent_,this.id_)&&this.parent_!=a)throw Error("oe");this.parent_=a;kW.superClass_.setParentEventTarget.call(this,a)};g.getParent=function(){return this.parent_};
g.setParentEventTarget=function(a){if(this.parent_&&this.parent_!=a)throw Error("pe");kW.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("qe");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;g0b(this,function(a){!a.inDocument_&&a.getElement()&&a.enterDocument()})};g.exitDocument=function(){g0b(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_);g0b(this,function(a){a.dispose()});this.element_&&xD(this.element_);this.parent_=this.element_=this.childIndex_=this.children_=null;kW.superClass_.disposeInternal.call(this)};
g.addChild=function(){var a=this.children_?this.children_.length:0;if((void 0).inDocument_&&!this.inDocument_)throw Error("qe");if(0>a||a>(this.children_?this.children_.length:0))throw Error("re");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;ya(this.children_)}else Aja(this.childIndex_,(void 0).getId());(void 0).setParent(this);naa(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 rNb=function(a,b){return a.childIndex_&&b?Bja(a.childIndex_,b)||null:null},g0b=function(a,b){a.children_&&a.children_.forEach(b,void 0)};kW.prototype.removeChild=function(a,b){if(a){var c="string"===typeof a?a:a.getId();a=rNb(this,c);c&&a&&(bh(this.childIndex_,c),ya(this.children_,a),b&&(a.exitDocument(),a.element_&&xD(a.element_)),a.setParent(null))}if(!a)throw Error("se");return a};
kW.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};
du(JHa,wp);
var h0b=function(a){wp.call(this,"visibility");this.visible=a};du(h0b,wp);
var i0b=Bo(Co("//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick")),j0b=Bo(Co("//apis.google.com/js/rpc.js")),Cp=null;
var lW=function(a){Qo.call(this);this.element_=a;a=hu?"focusout":"blur";this.listenKeyIn_=Ro(this.element_,hu?"focusin":"focus",this,!hu);this.listenKeyOut_=Ro(this.element_,a,this,!hu)};du(lW,Qo);lW.prototype.handleEvent=function(a){var b=new cD(a.event_);b.type="focusin"==a.type||"focus"==a.type?"focusin":"focusout";this.dispatchEvent(b)};lW.prototype.disposeInternal=function(){lW.superClass_.disposeInternal.call(this);kD(this.listenKeyIn_);kD(this.listenKeyOut_);delete this.element_};
var mW=function(a,b,c){Qo.call(this);this.target=a;this.handle=b||a;this.limits=c||new KU(NaN,NaN,NaN,NaN);this.document_=oD(a);this.eventHandler_=new aH(this);XC(this,this.eventHandler_);this.deltaY=this.deltaX=this.startY=this.startX=this.screenY=this.screenX=this.clientY=this.clientX=0;this.dragging_=!1;Ro(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=k0b};du(mW,Qo);
var k0b=ca.document&&ca.document.documentElement&&!!ca.document.documentElement.setCapture&&!!ca.document.releaseCapture;g=mW.prototype;g.getHandler=function(){return this.eventHandler_};g.disposeInternal=function(){mW.superClass_.disposeInternal.call(this);jD(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||lu&&a.ctrlKey))this.dispatchEvent("earlycancel");else if(this.dispatchEvent(new nW("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(vD(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=uD(Zo(this.document_).document_)}};
g.endDrag=function(a,b){this.eventHandler_.removeAll();this.useSetCapture_&&this.document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new nW("end",this,a.clientX,a.clientY,a,l0b(this,this.deltaX),m0b(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 nW("start",this,a.clientX,a.clientY,a)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(a);return}}c=n0b(this,b,c);b=c.x;c=c.y;this.dragging_&&this.dispatchEvent(new nW("beforedrag",this,a.clientX,a.clientY,
a,b,c))&&(o0b(this,a,b,c),a.preventDefault())};var n0b=function(a,b,c){var d=uD(Zo(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 Tq(l0b(a,a.deltaX),m0b(a,a.deltaY))};mW.prototype.onScroll_=function(a){var b=n0b(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;o0b(this,a,b.x,b.y)};
var o0b=function(a,b,c,d){a.target.style.left=c+"px";a.target.style.top=d+"px";a.dispatchEvent(new nW("drag",a,b.clientX,b.clientY,b,c,d))},l0b=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))},m0b=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))};mW.prototype.isDragging=function(){return this.dragging_};
var nW=function(a,b,c,d,e,f,h){YC.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};du(nW,YC);
var oW=function(a){this.map_=new Map;var b=arguments.length;if(1<b){if(b%2)throw Error("Tc");for(var c=0;c<b;c+=2)this.set(arguments[c],arguments[c+1])}else a&&this.addAll(a)};g=oW.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 oW){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 oW(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]&&!ca.requestAnimationFrame;++c)ca.requestAnimationFrame=ca[b+"RequestAnimationFrame"],ca.cancelAnimationFrame=ca[b+"CancelAnimationFrame"]||ca[b+"CancelRequestAnimationFrame"];if(!ca.requestAnimationFrame){var d=0;ca.requestAnimationFrame=function(e){var f=(new Date).getTime(),h=Math.max(0,16-(f-d));d=f+h;return ca.setTimeout(function(){e(f+h)},h)};ca.cancelAnimationFrame||(ca.cancelAnimationFrame=function(e){clearTimeout(e)})}})();
var p0b=[[],[]],q0b=0,r0b=!1,s0b=0,u0b=function(a,b){var c=s0b++,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,p0b[q0b].push(d));r0b||(r0b=!0,window.requestAnimationFrame(t0b))}},t0b=
function(){r0b=!1;var a=p0b[q0b],b=a.length;q0b=(q0b+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 v0b=hu?Bo(Co('javascript:""')):Bo(Co("about:blank"));vh(v0b);var w0b=hu?Bo(Co('javascript:""')):Bo(Co("javascript:undefined"));vh(w0b);
var x0b=function(a,b){this.element_=a;this.dom_=b};
var pW=function(a,b){kW.call(this,b);this.useIframeMask_=!!a;this.lastFocus_=null;this.resizeBackgroundTask_=u0b({mutate:this.resizeBackground_},this)};du(pW,kW);g=pW.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(){pW.superClass_.createDom.call(this);var a=this.getElement();IU(a,Ri(this.getCssClass()).split(" "));a.tabIndex=0;OU(a,!1);this.useIframeMask_&&!this.bgIframeEl_&&(a=this.getDomHelper().createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"}),a.src=vh(v0b),this.bgIframeEl_=a,this.bgIframeEl_.className=this.getCssClass()+"-bg",OU(this.bgIframeEl_,!1),lXb(this.bgIframeEl_,0));this.bgEl_||(this.bgEl_=this.getDomHelper().createDom("DIV",this.getCssClass()+"-bg"),
OU(this.bgEl_,!1));this.tabCatcherElement_||(this.tabCatcherElement_=this.getDomHelper().createElement("SPAN"),OU(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);pW.superClass_.enterDocument.call(this);a=this.getElement();a.parentNode&&a.parentNode.insertBefore(this.tabCatcherElement_,a.nextSibling);this.focusHandler_=new lW(this.getDomHelper().document_);this.getHandler().listen(this.focusHandler_,"focusin",this.onFocus);y0b(this,!1)};
g.exitDocument=function(){this.isVisible()&&this.setVisible(!1);vi(this.focusHandler_);pW.superClass_.exitDocument.call(this);xD(this.bgIframeEl_);xD(this.bgEl_);xD(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_&&y0b(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_);z0b(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)gD(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_)gD(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 y0b=function(a,b){a.modalAriaVisibilityHelper_||(a.modalAriaVisibilityHelper_=new x0b(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&&($I(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}};pW.prototype.setTransition=function(a){this.popupShowTransition_=a;this.bgHideTransition_=this.bgShowTransition_=this.popupHideTransition_=void 0};var z0b=function(a,b){a.bgIframeEl_&&OU(a.bgIframeEl_,b);a.bgEl_&&OU(a.bgEl_,b);OU(a.getElement(),b);OU(a.tabCatcherElement_,b)};g=pW.prototype;g.onShow=function(){this.dispatchEvent("show")};g.onHide=function(){z0b(this,!1);this.dispatchEvent("hide")};g.isVisible=function(){return this.visible_};g.focus=function(){this.focusElement_()};
g.resizeBackground_=function(){this.bgIframeEl_&&OU(this.bgIframeEl_,!1);this.bgEl_&&OU(this.bgEl_,!1);var a=this.getDomHelper().document_,b=sD(vD(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_&&(OU(this.bgIframeEl_,!0),kXb(this.bgIframeEl_,c,a));this.bgEl_&&(OU(this.bgEl_,!0),kXb(this.bgEl_,c,a))};
g.reposition=function(){var a=this.getDomHelper().document_,b=vD(a)||window;if("fixed"==Dp(this.getElement(),"position"))var c=a=0;else c=uD(this.getDomHelper().document_),a=c.x,c=c.y;var d=Vq(this.getElement());b=sD(b);a=Math.max(a+b.width/2-d.width/2,0);c=Math.max(c+b.height/2-d.height/2,0);Wq(this.getElement(),a,c);Wq(this.tabCatcherElement_,a,c)};g.onFocus=function(a){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():a.target==this.tabCatcherElement_&&JD(this.focusElement_,0,this)};
g.focusElement_=function(){try{hu&&this.getDomHelper().document_.body.focus(),this.getElement().focus()}catch(a){}};g.disposeInternal=function(){vi(this.popupShowTransition_);this.popupShowTransition_=null;vi(this.popupHideTransition_);this.popupHideTransition_=null;vi(this.bgShowTransition_);this.bgShowTransition_=null;vi(this.bgHideTransition_);this.bgHideTransition_=null;pW.superClass_.disposeInternal.call(this)};
var sW=function(a,b,c){pW.call(this,b,c);this.class_=a||"modal-dialog";this.buttons_=qW(qW(new rW,A0b,!0),B0b,!1,!0)};du(sW,pW);g=sW.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_&&AD(this.titleTextEl_,a)};g.getTitle=function(){return this.title_};g.getContent=function(){return""};g.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};var C0b=function(a){a.getElement()||a.render();return a.getElement()};sW.prototype.getBackgroundElement=function(){this.getElement()||this.render();return sW.superClass_.getBackgroundElement.call(this)};sW.prototype.handleDrag=function(){};
var D0b=function(a,b){var c=Ri(a.class_+"-title-draggable").split(" ");a.getElement()&&(b?IU(a.titleEl_,c):bXb(a.titleEl_,c));b&&!a.dragger_?(b=new mW(a.getElement(),a.titleEl_),a.dragger_=b,IU(a.titleEl_,c),Ro(a.dragger_,"start",a.setDraggerLimits_,!1,a),Ro(a.dragger_,"drag",a.handleDrag,!1,a)):!b&&a.dragger_&&(a.dragger_.dispose(),a.dragger_=null)};g=sW.prototype;
g.createDom=function(){sW.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"));gsb(a,this.titleEl_,this.contentEl_=b.createDom("DIV",{className:this.class_+"-content",id:c}),this.buttonEl_=
b.createDom("DIV",this.class_+"-buttons"));ZI(this.titleTextEl_,"heading");ZI(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;$I(this.titleCloseEl_,"label","Close");ZI(a,"dialog");$I(a,"labelledby",this.titleTextId_||"");OU(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(a=this.buttons_,a.element_=this.buttonEl_,a.render());OU(this.buttonEl_,!!this.buttons_);this.backgroundElementOpacity_=this.backgroundElementOpacity_;this.getElement()&&(a=this.getBackgroundElement())&&lXb(a,
this.backgroundElementOpacity_)};
g.enterDocument=function(){sW.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_);D0b(this,!0);this.getHandler().listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var a=this.getElement();ZI(a,"dialog");""!==this.titleTextEl_.id&&$I(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()&&y0b(this,!1)}};g.exitDocument=function(){this.isVisible()&&this.setVisible(!1);D0b(this,!1);sW.superClass_.exitDocument.call(this)};g.setVisible=function(a){a!=this.isVisible()&&(this.inDocument_||this.render(),sW.superClass_.setVisible.call(this,a))};g.onShow=function(){sW.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
g.onHide=function(){sW.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.disposeOnHide_&&this.dispose()};g.setDraggerLimits_=function(){var a=this.getDomHelper().document_,b=sD(vD(a)||window),c=Math.max(a.body.scrollWidth,b.width);a=Math.max(a.body.scrollHeight,b.height);var d=Vq(this.getElement());"fixed"==Dp(this.getElement(),"position")?this.dragger_.limits=new KU(0,0,Math.max(0,b.width-d.width),Math.max(0,b.height-d.height)):this.dragger_.limits=new KU(0,0,c-d.width,a-d.height)};
g.onTitleCloseClick_=function(){E0b(this)};var E0b=function(a){if(a.hasTitleCloseButton_){var b=a.buttons_,c=b&&b.cancelButton_;c?(b=b.get(c),a.dispatchEvent(new tW(c,b))&&a.setVisible(!1)):a.setVisible(!1)}},F0b=function(a){a.hasTitleCloseButton_=!1;a.titleCloseEl_&&OU(a.titleCloseEl_,a.hasTitleCloseButton_)};sW.prototype.setDisposeOnHide=function(a){this.disposeOnHide_=a};sW.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;sW.superClass_.disposeInternal.call(this)};
sW.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 tW(a,b))&&this.setVisible(!1)}};
sW.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 tW(f,b))):e||(b=!0)}else{if(9==a.keyCode&&a.shiftKey&&e==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(y){}JD(this.resetBackwardTabWrap_,0,this)}}else if(13==a.keyCode){if("BUTTON"==e.tagName&&!e.disabled)f=e.name;
else if(e==this.titleCloseEl_)E0b(this);else if(d){var h=d.getDefault(),k;if(k=h)a:{k=qD("BUTTON",d.element_);for(var q=0,v;v=k[q];q++)if(v.name==h||v.id==h){k=v;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 tW(f,String(d.get(f)))))}else e!=this.titleCloseEl_||32!=a.keyCode&&" "!=a.key||E0b(this);if(b||c)a.stopPropagation(),a.preventDefault();b&&this.setVisible(!1)};
var tW=function(a,b){this.type="dialogselect";this.key=a;this.caption=b};du(tW,YC);var rW=function(a){oW.call(this);this.dom_=a||Zo();this.class_="goog-buttonset";this.cancelButton_=this.element_=this.defaultButton_=null};du(rW,oW);rW.prototype.clear=function(){oW.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};rW.prototype.set=function(a,b,c,d){oW.prototype.set.call(this,a,b);c&&(this.defaultButton_=a);d&&(this.cancelButton_=a);return this};
var qW=function(a,b,c,d){return a.set(b.key,b.caption,c,d)};g=rW.prototype;g.render=function(){if(this.element_){$o(this.element_,tt);var a=Zo(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 A0b={key:"ok",caption:"OK"},B0b={key:"cancel",caption:"Cancel"},G0b={key:"yes",caption:"Yes"},H0b={key:"no",caption:"No"},I0b={key:"save",caption:"Save"},J0b={key:"continue",caption:"Continue"};"undefined"!=typeof document&&(qW(new rW,A0b,!0,!0),qW(qW(new rW,A0b,!0),B0b,!1,!0),qW(qW(new rW,G0b,!0),H0b,!1,!0),qW(qW(qW(new rW,G0b),H0b,!0),B0b,!1,!0),qW(qW(qW(new rW,J0b),I0b),B0b,!0,!0));
var K0b=function(a,b,c){sW.call(this,a,b,c)};du(K0b,sW);
var uW=function(a,b){Qo.call(this);this.element_=a;a=yD(this.element_)?this.element_:this.element_?this.element_.body:null;this.isRtl_=!!a&&mXb(a);this.listenKey_=Ro(this.element_,ju?"DOMMouseScroll":"mousewheel",this,b)};du(uW,Qo);
uW.prototype.handleEvent=function(a){var b=0,c=0,d=a.event_;"mousewheel"==d.type?(a=L0b(-d.wheelDelta),void 0!==d.wheelDeltaX?(b=L0b(-d.wheelDeltaX),c=L0b(-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 M0b(a,d,b,c);this.dispatchEvent(b)};
var L0b=function(a){return ku&&(lu||sib)&&0!=a%40?a:a/40};uW.prototype.disposeInternal=function(){uW.superClass_.disposeInternal.call(this);kD(this.listenKey_);this.listenKey_=null};var M0b=function(a,b,c,d){cD.call(this,b);this.type="mousewheel";this.detail=a;this.deltaX=c;this.deltaY=d};du(M0b,cD);
var N0b;
var vW=function(a,b,c,d,e,f,h){sW.call(this,f?f+" picker modal-dialog":"picker modal-dialog",!0,c);Rtb(a,"protocol");this.iframeManager_=new P_b;this.targetId_=zC();this.rpcToken_=zC();this.useGapi_=!1;this.setUrl(a);this.preferredDialogWidth_=d;this.preferredDialogHeight_=e;void 0!==d||void 0!==e?c=!0:(c=XG(YG(a),"hostId"),N0b||(N0b=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),c=!N0b.has(c));
this.autoSizeDialog_=c;this.gadgetsDomHelper_=h||this.getDomHelper();b&&(XG(YG(a),"hostId"),b="true"==XG(YG(this.url_),"grugl")?j0b:i0b,h=this.gadgetsDomHelper_,KHa(h)||(h=h||Zo(document),c=h.createElement("SCRIPT"),wh(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):eu(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()):$o(this.buttonEl_,tt),OU(this.buttonEl_,!!this.buttons_))};du(vW,K0b);g=vW.prototype;g.url_="";g.iframe_=null;g.iframeLoaded_=!1;g.loadedFired_=!1;g.callback_=function(){};g.enterDocument=function(){vW.superClass_.enterDocument.call(this);var a=this.getBackgroundElement(),b=this.getHandler(),c=new uW(a);XC(b,c);b.listen(c,"mousewheel",$t(NHa,void 0,a)).listen(a,"scroll",$t(NHa,void 0,a))};
g.render=function(a){var b=this;vW.superClass_.render.call(this,a);this.useGapi_?Q_b(this.iframeManager_,window).then(function(){return O0b(b)}).then(null,function(c){return void b.handleError_(c)}):P0b(this)};
var O0b=function(a){var b=a.getDomHelper().createDom("div",["picker-dialog-content","picker-frame"]);OU(b,!1);a.getContentElement().appendChild(b);return R_b(a.iframeManager_,b,function(c){var d=jo(Fv,c["iframe-command"]);switch(d.getCommand()){case 1:c=a.callback_;var e=m(d,tv,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}:w_b(e,d);c.call(a,d);a.setVisible(!1);break;case 4:F0b(a),a.callback_({action:"loaded"})}},
a.url_,a.targetId_,a.rpcToken_).then(function(c){a.iframe_=c.getIframeEl();Q0b(a);OU(a.iframe_.parentElement,!0);$Wb(a.getElement(),"picker-dialog");R0b(a);return c})},P0b=function(a){a.iframe_=a.dom_.createDom("IFRAME",{id:a.targetId_,name:a.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});Tja(a.iframe_,S0b(a));$Wb(a.getElement(),"picker-dialog");a.getContentElement().appendChild(a.iframe_);a.getHandler().listen(a.iframe_,"load",function(){return void Q0b(a)});a.iframe_.src=a.url_;
R0b(a)},U0b=function(a){T0b(a,$t(function(b){b.setAuthToken(this.targetId_,this.rpcToken_)},a))},R0b=function(a){var b=XG(YG(a.url_),"title");b&&a.setTitle(b)},S0b=function(a){return 7<=la("Internet Explorer")&&Ni(a.url_,"https")?Bo(Co("https://about:blank")):hu?Bo(Co('javascript:""')):Bo(Co("about:blank"))},Q0b=function(a){U0b(a);a.iframeLoaded_=!0;a.iframe_.tabIndex=0;a.isVisible()&&a.focus()};
vW.prototype.handleKeydown_=function(a){27==a.keyCode&&(this.setVisible(!1),this.callback_({action:"cancel"}),a.stopPropagation(),a.preventDefault())};var T0b=function(a,b){var c=a.gadgetsDomHelper_;LHa(function(){b(c.getWindow().gadgets.rpc)},c)};vW.prototype.setUrl=function(a){a=WG(new dp(a),"rpcService",this.targetId_);this.useGapi_=void 0!==XG(a,"v2");WG(a,"rpctoken",this.rpcToken_);SG(a,"rpctoken="+this.rpcToken_);qv(a,"https");this.url_=a.toString();this.iframe_&&(this.iframe_.src=this.url_)};
vW.prototype.setAppId=function(a){this.appId_=a;this.loadedFired_&&V0b(this)};vW.prototype.setCallback=function(a){this.callback_=a;T0b(this,$t(function(b){b.register(this.targetId_,$t(this.handlePickerAction_,this))},this))};
vW.prototype.handlePickerAction_=function(a){var b=a.action;"loaded"==b&&(this.loadedFired_=!0,this.sendCommand(new h0b(this.isVisible())),V0b(this),F0b(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 V0b=function(a){a.appId_&&a.sendCommand(new JHa(a.appId_,window.location.protocol+"//"+window.location.host))};g=vW.prototype;
g.setRelayUrl=function(a){T0b(this,$t(function(b){b.setRelayUrl(this.targetId_,a)},this))};g.sendCommand=function(a){var b=this;this.useGapi_&&b0b(a,this.iframeManager_).then(null,function(c){return void b.handleError_(c)});T0b(this,$t(function(c){c.call(this.targetId_,"picker",null,a)},this))};
g.resizePicker_=function(){var a=this.getDomHelper().document_;a=vD(a)||window;if("true"==XG(YG(this.url_),"ignoreLimits"))a=new mD(this.preferredDialogWidth_,this.preferredDialogHeight_);else if("true"==XG(YG(this.url_),"shadeDialog")){var b=pXb(C0b(this),"margin"),c=sD(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 mD(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=sD(a),c=.85*c.height);var d=Math.max(320,Math.min(650,c))}else c=sD(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=sD(a);b=Math.min(b,Math.max(c.width,320));d=Math.min(d,Math.max(c.height,320));a=new mD(b,d)}kXb(this.getContentElement(),a);this.reposition()};
g.reposition=function(){if("true"==XG(YG(this.url_),"shadeDialog")){var a=Vq(this.getElement()),b=sD(this.getDomHelper().getWindow());a=Math.floor(b.width/2-a.width/2);if(b=pXb(C0b(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=uD(this.getDomHelper().document_).y;Wq(this.getElement(),a,b)}else vW.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_))}vW.superClass_.setVisible.call(this,a);this.sendCommand(new h0b(a))};
g.focus=function(){vW.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 wW=function(a){e0b.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};du(wW,f0b);wW.prototype.disposeOnHide_=!1;wW.prototype.addPostProcessor=function(a){this.postProcessors_.push([a,{}])};
wW.prototype.build=function(){this.urlParamMap_.get("parent")||this.setRelayUrl(SG(RG(YG(window.location.href)),"").setPath("/favicon.ico").toString());if(this.urlParamMap_.get("minimal"))throw Error("te");var a=new vW(W0b(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 X0b=function(a,b){a.urlParamMap_.set(b,"true");return a};g=wW.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 Y0b=function(a){a.urlParamMap_.set("hostId","buganizer-drive");return a};g=wW.prototype;g.setOrigin=function(a){a&&this.urlParamMap_.set("origin",a);return this};g.setInitialView=function(a){a instanceof cW?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("ue`"+a+"`undefined");this.urlParamMap_.set("maxSize",a+"xundefined")};g.setMinSize=function(a){if(isNaN(a)||isNaN(void 0))throw Error("ve`"+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 W0b=function(a){a.postProcessors_.length&&a.urlParamMap_.set("pp",$D(a.postProcessors_));a.urlParamMap_.set("nav",B_b(a.nav_));var b=new dp(a.getBaseUrl());a.urlParamMap_.forEach(function(e,f){WG(b,f,e)});var c=Z_b(a.getBaseUrl(),a.nav_,a.urlParamMap_,a.postProcessors_);if(null!==c){WG(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&&
WG(b,"v2",$_b(c))}return b};
var xW=function(a,b){this.activeSession=a;this.attachmentsApi=b;this.disabled=!1;this.onPickDoc=new Rw;this.onCloneBlob=new Rw;this.onePickUrl=a.getOnePickUrl();this.onePickSecretToken=a.getOnePickSecretToken()};
xW.prototype.showDialog=function(){var a=this;if(!this.drivePicker){var b=window.location.origin||window.location.protocol+"//"+window.location.host;this.drivePicker=Y0b(X0b(X0b(X0b(X0b((new wW(this.onePickUrl)).addView(n_b().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 k_b(e.value),c.extraUserInputs.isAttachment&&e.encryptedBlobId?(e=new l_b(e),m_b(e,a.attachmentsApi),
a.onCloneBlob.emit(e)):a.onPickDoc.emit(e)}).setOrigin(b)).setSecretToken(this.onePickSecretToken).build()}this.drivePicker.setVisible(!0)};xW.\u0275fac=function(a){return new (a||xW)(D(vH),D(PR))};
xW.\u0275cmp=w({type:xW,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&&(F(0,"div",0)(1,"button",1),J("click",function(){return b.showDialog()}),H(2,"mat-icon",2),G()());a&2&&(B(1),C("disabled",
b.disabled))},dependencies:[BB,dF,sF],encapsulation:2});
var yW=function(a,b,c){wI.call(this);this.window=b;this.scrolledOnScreenService=c;this.onAutoResize=new Rw;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(yW,wI);yW.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.scrolledOnScreenService.getObservable(this.el,!0).subscribe(function(b){b&&Z0b(a,0)}));this.autoResize&&this.subscriptions.add(this.autoResize.subscribe(function(){Z0b(a,2)}))};yW.prototype.onInput=function(){Z0b(this,1)};
var Z0b=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=Fp(d.getPropertyValue("border-top-width"))+Fp(d.getPropertyValue("padding-top"))+c.scrollHeight+Fp(d.getPropertyValue("padding-bottom"))+Fp(d.getPropertyValue("border-bottom-width"))+
24;Number.isNaN(c)||(e=Fp(d.getPropertyValue("max-height")),d=Fp(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})))};yW.prototype.ngOnDestroy=function(){this.cloneEl.parentElement&&this.cloneEl.parentElement.removeChild(this.cloneEl);wI.prototype.ngOnDestroy.call(this)};yW.\u0275fac=function(a){return new (a||yW)(D(pd),D(uM),D(eP))};
yW.\u0275dir=w({type:yW,selectors:[["textarea","autoResize",""]],hostBindings:function(a,b){a&1&&J("input",function(){return b.onInput()})},inputs:{autoResize:"autoResize"},outputs:{onAutoResize:"onAutoResize"},features:[ae]});
var $0b=["el"],zW=function(a,b){this.clipboard=a;this.snackBar=b;this.opened=!1};zW.prototype.getNgContentParentEl=function(){return this.el.nativeElement};zW.prototype.hide=function(){this.opened=!1};zW.prototype.copyToClipboard=function(){this.clipboard.copy(this.originalHref);this.snackBar.open("URL copied","",{duration:2E3})};zW.\u0275fac=function(a){return new (a||zW)(D(jT),D(AK))};
zW.\u0275cmp=w({type:zW,selectors:[["b-broken-link"]],viewQuery:function(a,b){a&1&&Bf($0b,7);if(a&2){var c;Af(c=Df())&&(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&&(xe(),F(0,"a",0,1),J("click",function(d){d.preventDefault();d.stopPropagation();b.opened=!b.opened}),F(2,"b-glue"),H(3,"mat-icon",2),G(),F(4,"span",null,3),ye(6),G()(),M(7,QHa,4,1,"ng-template",4));if(a&2){var c=Ce(1);B(7);C("cdkConnectedOverlayPush",!0)("cdkConnectedOverlayOrigin",c)("cdkConnectedOverlayOpen",b.opened)}},
dependencies:[eB,dB,vQ,aP,dF,BB,sF],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 AW=function(){this.checked=!1};AW.\u0275fac=function(a){return new (a||AW)};AW.\u0275cmp=w({type:AW,selectors:[["b-checkbox-widget"]],inputs:{checked:"checked"},decls:1,vars:2,consts:[["gmat-checkbox","",3,"disabled","checked"]],template:function(a,b){a&1&&H(0,"mat-checkbox",0);a&2&&C("disabled",!0)("checked",b.checked)},dependencies:[JO],encapsulation:2,changeDetection:0});
var a1b=["el"],BW=function(a,b,c){this.domSafe=a;this.clipboard=b;this.snackBar=c;this.destroyed$=new S.ReplaySubject;this.opened=!1};BW.prototype.ngOnInit=function(){};BW.prototype.ngAfterViewInit=function(){var a=this;this.cdkConnectedOverlay.attach.pipe(cg(this.destroyed$)).subscribe(function(){var b=a.cdkConnectedOverlay.overlayRef.overlayElement;b&&(b=b.querySelector("a"))&&b.focus()})};BW.prototype.ngOnDestroy=function(){this.destroyed$.next()};BW.prototype.getNgContentParentEl=function(){return this.el.nativeElement};
var b1b=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};BW.prototype.hide=function(){this.opened=!1};var SHa=function(a,b){PHa(b)||(b.preventDefault(),b.stopPropagation(),uP(a.domSafe,a.href))};BW.prototype.copyToClipboard=function(){this.clipboard.copy(this.originalHref);this.snackBar.open("URL copied","",{duration:2E3})};
var UHa=function(a,b){b.preventDefault();if(a=a.cdkConnectedOverlay.overlayRef.overlayElement){var c=a.querySelector("a");c&&setTimeout(function(){c.focus()})}},THa=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()})}};BW.\u0275fac=function(a){return new (a||BW)(D(tP),D(jT),D(AK))};
BW.\u0275cmp=w({type:BW,selectors:[["b-external-hyperlink-widget"]],viewQuery:function(a,b){a&1&&(Bf(a1b,7),Bf(eB,7));if(a&2){var c;Af(c=Df())&&(b.el=c.first);Af(c=Df())&&(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&&(xe(),F(0,"a",0,1),J("click",function(d){PHa(d)||
(d.preventDefault(),d.stopPropagation(),b1b(b)?b.opened=!b.opened:SHa(b,d))}),M(2,RHa,2,0,"b-glue",2),F(3,"span",null,3),ye(5),G()(),M(6,VHa,6,2,"ng-template",4));if(a&2){var c=Ce(1);le("needs-user-confirm",b1b(b));C("href",b.originalHref,Md);B(2);C("ngIf",b1b(b));B(4);C("cdkConnectedOverlayPush",!0)("cdkConnectedOverlayOrigin",c)("cdkConnectedOverlayOpen",b.opened)}},dependencies:[Cx,eB,dB,vQ,aP,dF,BB,sF],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 c1b=["child"],CW=function(a){this.codefont=a};CW.prototype.ngOnInit=function(){};CW.prototype.ngOnChanges=function(){Ep(this.child.nativeElement,this.content.getContent())};CW.\u0275fac=function(a){return new (a||CW)(D(xQ))};
CW.\u0275cmp=w({type:CW,selectors:[["b-literal-format-presenter"]],viewQuery:function(a,b){a&1&&Bf(c1b,7);if(a&2){var c;Af(c=Df())&&(b.child=c.first)}},inputs:{content:"content"},features:[Cc],decls:3,vars:4,consts:[[1,"type-m","child"],["child",""]],template:function(a,b){a&1&&(F(0,"div",0,1),P(2,"async"),G());a&2&&le("codefont",Q(2,2,b.codefont.codefont$))},dependencies:[Px],styles:[".child[_ngcontent-%COMP%] { white-space: pre-wrap; }"],changeDetection:0});
var DW=function(a,b){this.session=a;this.userPreferencesManager=b;this.textDisplayPreferences$=this.userPreferencesManager.preferences$.pipe(R(function(c){return c.textDisplayPreferences?c.textDisplayPreferences:{}}),Pf());this.lastPublishedMarkdown$=this.textDisplayPreferences$.pipe(R(function(c){return c.lastPublishMode===rBb}),Pf());this.commentDisplayOverride$=this.textDisplayPreferences$.pipe(R(function(c){return c.commentDisplayOverride}),Pf())};
DW.\u0275fac=function(a){return new (a||DW)(t(vH),t(VI))};DW.\u0275prov=dc({token:DW,factory:DW.\u0275fac,providedIn:"root"});
var EW=function(){};EW.prototype.visit=function(){};EW.\u0275fac=function(a){return new (a||EW)};EW.\u0275prov=dc({token:EW,factory:EW.\u0275fac,providedIn:"root"});
var d1b=["el"],FW=function(a){this.issueReferenceResolver=a};FW.prototype.ngOnInit=function(){};FW.prototype.visit=function(a){if(!PHa(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})}};
FW.\u0275fac=function(a){return new (a||FW)(D(EW))};FW.\u0275cmp=w({type:FW,selectors:[["b-issue-reference-widget"]],viewQuery:function(a,b){a&1&&Bf(d1b,7);if(a&2){var c;Af(c=Df())&&(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&&(xe(),F(0,"a",0,1),J("click",function(c){return b.visit(c)}),ye(2),G());a&2&&C("href",b.href,Md)},encapsulation:2,changeDetection:0});
var GW=function(){this.isMentioningMe=!1};GW.prototype.ngOnInit=function(){this.username=this.email.replace(/@google.com$/,"")};GW.\u0275fac=function(a){return new (a||GW)};
GW.\u0275cmp=w({type:GW,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&&(F(0,"span",0,1),O(2),G(),F(3,"onedev-hovercard",null,2),H(5,"b-issue-person-card",3),G());if(a&2){var c=Ce(4);le("me",b.isMentioningMe);C("onedevHovercardTrigger",c);B(2);De("@",b.username,"");B(3);C("email",b.email)}},dependencies:[oS,nN,rN],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 e1b=Symbol(),f1b=Symbol(),g1b=Symbol(),h1b=Symbol(),i1b=Symbol(),j1b=Symbol(),HW=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=[]};HW.prototype.ngOnDestroy=function(){k1b(this)};
var l1b=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)}},n1b=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;WHa(e);if(k){var v=e.dataset.bImgAlt;if(xH(f.flags.session,"enableMarkdownInlineImages"))e=new $A(e,f.componentFactoryResolver,f.appRef,h.injector),f.outlets.push(e),e=e.attach(new XA(iP,
h)),f.secureImageRefs.push(e),e=e.instance,e.src=k,v&&(e.alt=v);else{var y=document.createElement("a");v?y.appendChild(document.createTextNode(v)):y.appendChild(document.createTextNode(k));e.appendChild(y);m1b(f,y,k,q||k,h)}}break;case "checkbox":h=a;f=c;v=null!=e.dataset.bCheckboxChecked;WHa(e);e=new $A(e,h.componentFactoryResolver,h.appRef,f.injector);h.outlets.push(e);e=e.attach(new XA(AW,f));h.checkboxRefs.push(e);e.instance.checked=v;break;case "url":h=a;v=c;f=e.dataset.bOriginalHref;k=e.dataset.bRedirectedHref;
f&&k&&(e.removeAttribute("href"),m1b(h,e,f,k,v));break;case "broken-url":if(h=e.dataset.bOriginalHref)for(v=a,f=h,k=c,h=Array.from(e.childNodes),e=new $A(e,v.componentFactoryResolver,v.appRef,k.injector),v.outlets.push(e),e=e.attach(new XA(zW,k)),v.brokenLinkRefs.push(e),e=e.instance,e.originalHref=f,e=e.getNgContentParentEl(),h=r(h),v=h.next();!v.done;v=h.next())e.appendChild(v.value);break;case "mention":a.session.isInternalSession()&&(k=void 0,h=a,f=c,v="","@"===(null==(k=e.textContent)?void 0:
k[0])&&(v=e.textContent.slice(1)),WHa(e),e=new $A(e,h.componentFactoryResolver,h.appRef,f.injector),h.outlets.push(e),e=e.attach(new XA(GW,f)),h.mentionChipRefs.push(e),e=e.instance,e.email=v,e.isMentioningMe=h.session.getUserEmail()===v);break;case "issue-reference":if(v=e.href,f=e.dataset.bIssueId,k=e.dataset.bCommentNumber,v&&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 $A(I,h.componentFactoryResolver,
h.appRef,E.injector);h.outlets.push(q);q=q.attach(new XA(FW,E));h.issueReferenceRefs.push(q);h=q.instance;h.href=v;h.issueId=f;h.commentNumber=y;h=h.el.nativeElement;v=r(k);for(f=v.next();!f.done;f=v.next())h.appendChild(f.value);e.remove()}}}},m1b=function(a,b,c,d,e){var f=Array.from(b.childNodes);b=new $A(b,a.componentFactoryResolver,a.appRef,e.injector);a.outlets.push(b);e=b.attach(new XA(BW,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)},o1b=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")}},p1b=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)}}},k1b=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=[]};HW.prototype[e1b]=function(){return this.outlets.slice()};HW.prototype[f1b]=function(){return this.secureImageRefs.slice()};HW.prototype[g1b]=function(){return this.checkboxRefs.slice()};HW.prototype[h1b]=function(){return this.externalHyperlinkRefs.slice()};HW.prototype[i1b]=function(){return this.brokenLinkRefs.slice()};HW.prototype[j1b]=function(){return this.issueReferenceRefs.slice()};
HW.\u0275fac=function(a){return new (a||HW)(t(Sv),t(tx),t(DW),t(vH))};HW.\u0275prov=dc({token:HW,factory:HW.\u0275fac});
var q1b=["child"],r1b=Symbol(),IW=function(a,b,c){this.dynamicComponents=a;this.codefont=b;this.viewContainerRef=c};IW.prototype.ngOnInit=function(){};IW.prototype.ngOnChanges=function(){k1b(this.dynamicComponents);var a=this.child.nativeElement;Ep(a,this.content.getContent());var b=this.dynamicComponents,c=this.viewContainerRef;l1b(a);n1b(b,a,c);o1b(a);p1b(a)};IW.prototype.ngOnDestroy=function(){k1b(this.dynamicComponents)};IW.prototype[r1b]=function(){return this.dynamicComponents};
IW.\u0275fac=function(a){return new (a||IW)(D(HW,2),D(xQ),D(yf))};
IW.\u0275cmp=w({type:IW,selectors:[["b-markdown-format-presenter"]],viewQuery:function(a,b){a&1&&Bf(q1b,7);if(a&2){var c;Af(c=Df())&&(b.child=c.first)}},inputs:{content:"content"},features:[Ge([{provide:HW,useClass:HW}]),Cc],decls:3,vars:4,consts:[[1,"type-m","markdown-display"],["child",""]],template:function(a,b){a&1&&(F(0,"div",0,1),P(2,"async"),G());a&2&&le("codefont",Q(2,2,b.codefont.codefont$))},dependencies:[Px],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 s1b=["child"],t1b=function(){return"[_nghost-%COMP%]     a:visited{color:#7627bb;color:var(--link-visited)}"},JW=function(a){this.codefont=a};JW.prototype.ngOnInit=function(){};JW.\u0275fac=function(a){return new (a||JW)(D(xQ))};
JW.\u0275cmp=w({type:JW,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&&(F(0,"div",0),P(1,"async"),M(2,XHa,2,1,"ng-container",1),G());a&2&&(le("codefont",Q(1,3,b.codefont.codefont$)),B(2),C("ngForOf",b.content.getPlainSectionList()))},dependencies:function(){return[Gx,KW,Px]},styles:[t1b()],changeDetection:0});var KW=function(){};KW.prototype.ngOnInit=function(){};
KW.\u0275fac=function(a){return new (a||KW)};KW.\u0275cmp=w({type:KW,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&&(qe(0),M(1,YHa,1,1,"b-plain-format-quoted-section",0),M(2,ZHa,1,1,"b-plain-format-unquoted-section",0),re());a&2&&(B(1),C("ngIf",b.section.getIsQuoted()),B(1),C("ngIf",!b.section.getIsQuoted()))},dependencies:function(){return[Cx,LW,MW]},encapsulation:2,changeDetection:0});
var LW=function(){this.showQuote=!1;u1b++;this.childId="plainFormatQuotedSection"+u1b};LW.prototype.ngOnInit=function(){};LW.prototype.ngOnChanges=function(){$Ha(this)};var $Ha=function(a){var b=a.child.nativeElement;a.showQuote?Ep(b,a.section.getContent()):OHa(b)};LW.\u0275fac=function(a){return new (a||LW)};
LW.\u0275cmp=w({type:LW,selectors:[["b-plain-format-quoted-section"]],viewQuery:function(a,b){a&1&&Bf(s1b,7);if(a&2){var c;Af(c=Df())&&(b.child=c.first)}},inputs:{section:"section"},features:[Cc],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&&(F(0,"div"),M(1,aIa,2,1,"a",0),M(2,bIa,2,1,"a",1),H(3,"div",2,3),G());a&2&&(B(1),C("ngIf",!b.showQuote),B(1),C("ngIf",b.showQuote),B(1),C("id",b.childId))},dependencies:[Cx],styles:[t1b()],changeDetection:0});var u1b=0,MW=function(a,b){this.dynamicComponents=a;this.viewContainerRef=b};MW.prototype.ngOnInit=function(){};
MW.prototype.ngOnChanges=function(){k1b(this.dynamicComponents);var a=this.child.nativeElement;Ep(a,this.section.getContent());var b=this.dynamicComponents,c=this.viewContainerRef;l1b(a);n1b(b,a,c);o1b(a);p1b(a)};MW.\u0275fac=function(a){return new (a||MW)(D(HW,2),D(yf))};
MW.\u0275cmp=w({type:MW,selectors:[["b-plain-format-unquoted-section"]],viewQuery:function(a,b){a&1&&Bf(s1b,7);if(a&2){var c;Af(c=Df())&&(b.child=c.first)}},inputs:{section:"section"},features:[Ge([{provide:HW,useClass:HW}]),Cc],decls:2,vars:0,consts:[[1,"child"],["child",""]],template:function(a){a&1&&H(0,"div",0,1)},encapsulation:2,changeDetection:0});
var NW=function(){};NW.prototype.ngOnInit=function(){};NW.\u0275fac=function(a){return new (a||NW)};
NW.\u0275cmp=w({type:NW,selectors:[["b-formatted-comment-presenter"]],inputs:{formattedComment:"formattedComment"},decls:3,vars:3,consts:[[4,"ngIf"],[3,"content"]],template:function(a,b){a&1&&(M(0,cIa,2,1,"ng-container",0),M(1,dIa,2,1,"ng-container",0),M(2,eIa,2,1,"ng-container",0));a&2&&(C("ngIf",b.formattedComment.getLiteralFormat()),B(1),C("ngIf",b.formattedComment.getMarkdownFormat()),B(1),C("ngIf",b.formattedComment.getPlainFormat()))},dependencies:[Cx,CW,IW,JW],encapsulation:2,changeDetection:0});
var OW=function(a){Z.call(this,a)};U(OW,Z);g=OW.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 dj(this,2)};g.getIssueId=function(){return ej(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};OW.messageId="b.FormatCommentRequest";
var PW=function(a){Z.call(this,a,-1,v1b)};U(PW,Z);PW.prototype.getFormattedComment=function(){return m(this,dn,1)};PW.prototype.getMentionsList=function(){return rb(this,gK,2)};var v1b=[2];PW.prototype.toObject=function(){var a=null!=this?{formattedComment:kHb(void 0,this.getFormattedComment()),mentionsList:Cb(this.getMentionsList(),ZHb)}:void 0;return a};PW.messageId="b.FormatCommentResponse";
var QW=function(a){this.executor=a};QW.prototype.format=function(a){return 3===a.formattingMode||""===a.comment.trim()?fIa(a):w1b(this,a).pipe(R(function(b){return b.getFormattedComment()||new dn}))};
var x1b=function(a,b){if(3===b.formattingMode||""===b.comment.trim())return(0,S.of)([]);var c=new OW;c.setSource(b.comment);var d;c.setIssueId(null!=(d=Xk(b.issueId))?d:0);l(c,6,b.audience);c.setFormattingMode(b.formattingMode);c.setIdPrefix(b.idPrefix);return w1b(a,b).pipe(R(function(e){return e.getMentionsList().map(function(f){return Ql(f.getMentionedUser())||""})}))},w1b=function(a,b){var c=new OW;c.setSource(b.comment);var d;c.setIssueId(null!=(d=Xk(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:PW})};QW.\u0275fac=function(a){return new (a||QW)(t(nI))};QW.\u0275prov=dc({token:QW,factory:QW.\u0275fac,providedIn:"root"});
var RW=function(a){wI.call(this);var b=this;this.formatter=a;this.issueId=0;this.audience=2;this.formattingMode=3;this.params$=new S.ReplaySubject(1);this.formattedResult$=this.params$.pipe(Nf(200),bg(function(c){return b.formatter.format(c).pipe(y1b,Mf(function(){var d=zsa(c.comment);return(0,S.of)({formattedComment:d,isFallback:!0})}))}))};U(RW,wI);RW.\u0275dir=wI.\u0275dir;
RW.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()})}))};RW.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()})};
RW.prototype.getIdPrefix=function(){return this.idPrefix||"b"+this.issueId+"-draft"};RW.\u0275fac=function(a){return new (a||RW)(D(QW))};
RW.\u0275cmp=w({type:RW,selectors:[["b-live-preview"]],inputs:{comment:"comment",comment$:"comment$",issueId:"issueId",audience:"audience",formattingMode:"formattingMode",idPrefix:"idPrefix"},features:[ae,Cc],decls:2,vars:3,consts:[[4,"ngIf"],[1,"md-preview"],[3,"formattedComment"]],template:function(a,b){a&1&&(M(0,gIa,3,5,"ng-container",0),P(1,"async"));a&2&&C("ngIf",Q(1,1,b.formattedResult$))},dependencies:[Cx,NW,Px],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 y1b=R(function(a){return{formattedComment:a,isFallback:!1}});
var SW=function(a,b,c){wI.call(this);var d=this;this.prefs=a;this.flags=b;this.links=c;this.change=new Rw;this.checkedSubject=new S.BehaviorSubject(!1);this.mdHelpLink=this.links.session.isInternalSession()?"http://go/buganizer-markdown-quickstart":"https://commonmark.org/help/";this.flags.textDisplayPreferences$.pipe(cg(this.destroyed$)).subscribe(function(e){d.currentTextDisplayPreferences=e});this.flags.commentDisplayOverride$.pipe(cg(this.destroyed$)).subscribe(function(e){d.currentCommentDisplayOverride=
e})};U(SW,wI);SW.\u0275dir=wI.\u0275dir;SW.prototype.ngOnInit=function(){null!=this.initialValue?this.checkedSubject.next(2===this.initialValue):this.flags.lastPublishedMarkdown$.pipe(cg(this.destroyed$)).subscribe(this.checkedSubject)};SW.prototype.ngOnChanges=function(){null!=this.initialValue&&this.checkedSubject.next(2===this.initialValue)};SW.prototype.save=function(a){a=Object.assign({},this.currentTextDisplayPreferences,a);this.prefs.save({textDisplayPreferences:a}).pipe(cg(this.destroyed$)).subscribe()};
SW.\u0275fac=function(a){return new (a||SW)(D(VI),D(DW),D(rP))};
SW.\u0275cmp=w({type:SW,selectors:[["b-markdown-toggle"]],inputs:{initialValue:"initialValue"},outputs:{change:"change"},features:[ae,Cc],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&&(F(0,"mat-checkbox",0),J("change",function(d){var e=b.currentCommentDisplayOverride;d=d.checked?rBb:e?e:sBb;b.save({lastPublishMode:d});b.change.emit(rna(d))}),P(1,"async"),O(2," Markdown "),G(),M(3,hIa,2,2,"a",1));if(a&2){var c;C("checked",null!==(c=Q(1,2,b.checkedSubject))&&void 0!==c?c:!1);B(3);C("ngIf",b.mdHelpLink)}},dependencies:[JO,Cx,dF,CB,sF,Px],
encapsulation:2,changeDetection:0});
var TW=function(a,b){wI.call(this);var c=this;this.appEvents=b;this.init=new Rw;a.textDisplayPreferencesSubject$.pipe(cg(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:mh(d.commentDisplayOverride)}})};U(TW,wI);TW.\u0275dir=wI.\u0275dir;
TW.prototype.ngOnInit=function(){};TW.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};TW.prototype.ngAfterViewInit=function(){this.appEvents.commentRendered.next([this.issueId,this.note.commentNumber]);this.init.next(this)};TW.\u0275fac=function(a){return new (a||TW)(D(VI),D(MK))};
TW.\u0275cmp=w({type:TW,selectors:[["b-note-container"]],inputs:{note:"note",issueAccessLevel:"issueAccessLevel",formattingMode:"formattingMode",issueId:"issueId"},outputs:{init:"init"},features:[ae,Cc],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&&(F(0,"div",0)(1,"div",1),M(2,
iIa,1,1,"b-formatted-comment-presenter",2),G()(),M(3,jIa,1,5,"ng-template",null,3,Jf));if(a&2){var c=Ce(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;C("ngIf",a)("ngIfElse",c)}},dependencies:[Cx,NW,RW],styles:[".bv2-note-container[_ngcontent-%COMP%]{display:flex;flex-direction:row}.bv2-note-container-note[_ngcontent-%COMP%]{display:flex;flex:1;flex-direction:column;min-width:0}"],
changeDetection:0});
var z1b=new ld("MatInkBarPositioner",{providedIn:"root",factory:kIa}),UW=function(a,b,c,d){this._elementRef=a;this._ngZone=b;this._inkBarPositioner=c;this._animationMode=d},A1b=function(a,b){a.show();a._ngZone.onStable.pipe(Qf()).subscribe(function(){var c=a._inkBarPositioner(b),d=a._elementRef.nativeElement;d.style.left=c.left;d.style.width=c.width})};UW.prototype.show=function(){this._elementRef.nativeElement.style.visibility="visible"};
UW.prototype.hide=function(){this._elementRef.nativeElement.style.visibility="hidden"};UW.\u0275fac=function(a){return new (a||UW)(D(pd),D(jg),D(z1b),D(ew,8))};UW.\u0275dir=w({type:UW,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(a,b){a&2&&le("_mat-animation-noopable","NoopAnimations"===b._animationMode)}});
var B1b=Eh("translateTab",[Hh("center, void, left-origin-center, right-origin-center",Gh({transform:"none"})),Hh("left",Gh({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Hh("right",Gh({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Ih("* => left, * => right, left => center, right => center",Fh("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Ih("void => left-origin-center",[Gh({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),
Fh("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Ih("void => right-origin-center",[Gh({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),Fh("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])]);
var C1b=function(a){return{animationDuration:a}},D1b=function(a,b){return{value:a,params:b}},VW=function(a,b,c,d){aB.call(this,a,b,d);this._host=c;this._leavingSub=this._centeringSub=S.Subscription.EMPTY};U(VW,aB);
VW.prototype.ngOnInit=function(){var a=this;aB.prototype.ngOnInit.call(this);this._centeringSub=this._host._beforeCentering.pipe(ag(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()})};VW.prototype.ngOnDestroy=function(){aB.prototype.ngOnDestroy.call(this);this._centeringSub.unsubscribe();this._leavingSub.unsubscribe()};
VW.\u0275fac=function(a){return new (a||VW)(D(Sv),D(yf),D(bc(function(){return WW})),D(ji))};VW.\u0275dir=w({type:VW,selectors:[["","matTabBodyHost",""]],features:[ae]});
var XW=function(a,b,c){var d=this;this._elementRef=a;this._dir=b;this._dirChangeSubscription=S.Subscription.EMPTY;this._translateTabComplete=new S.Subject;this._onCentering=new Rw;this._beforeCentering=new Rw;this._afterLeavingCenter=new Rw;this._onCentered=new Rw(!0);this.animationDuration="500ms";this.preserveContent=!1;b&&(this._dirChangeSubscription=b.change.subscribe(function(e){d._computePositionAnimationState(e);c.markForCheck()}));this._translateTabComplete.pipe(Pf(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=XW.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"};li.Object.defineProperties(XW.prototype,{position:{configurable:!0,enumerable:!0,set:function(a){this._positionIndex=a;this._computePositionAnimationState()}}});
XW.\u0275fac=function(a){return new (a||XW)(D(pd),D(rA,8),D(vx))};XW.\u0275dir=w({type:XW,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}});var WW=function(a,b,c){XW.call(this,a,b,c)};U(WW,XW);WW.\u0275dir=XW.\u0275dir;
WW.\u0275fac=function(a){return new (a||WW)(D(pd),D(rA,8),D(vx))};
WW.\u0275cmp=w({type:WW,selectors:[["mat-tab-body"]],viewQuery:function(a,b){a&1&&Bf(aB,5);if(a&2){var c;Af(c=Df())&&(b._portalHost=c.first)}},hostAttrs:[1,"mat-tab-body"],features:[ae],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(a,b){a&1&&(F(0,"div",0,1),J("@translateTab.start",function(c){return b._onTranslateTabStarted(c)})("@translateTab.done",function(c){return b._translateTabComplete.next(c)}),M(2,lIa,0,0,"ng-template",
2),G());a&2&&C("@translateTab",Je(3,D1b,b._position,Ie(1,C1b,b.animationDuration)))},dependencies:[VW],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:[B1b]}});
var E1b=new ld("MAT_TABS_CONFIG");
var F1b=new ld("MatTabContent");
var G1b=Og({passive:!0}),YW=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 S.Subject;this._showPaginationControls=!1;this._disableScrollBefore=this._disableScrollAfter=!0;this._stopScrolling=new S.Subject;this._disablePagination=!1;this._selectedIndex=0;this.selectFocusedIndex=new Rw;this.indexFocused=new Rw;
e.runOutsideAngular(function(){(0,S.fromEvent)(a.nativeElement,"mouseleave").pipe(cg(k._destroyed)).subscribe(function(){k._stopInterval()})})};g=YW.prototype;g.ngAfterViewInit=function(){var a=this;(0,S.fromEvent)(this._previousPaginator.nativeElement,"touchstart",G1b).pipe(cg(this._destroyed)).subscribe(function(){a._handlePaginatorPress("before")});(0,S.fromEvent)(this._nextPaginator.nativeElement,"touchstart",G1b).pipe(cg(this._destroyed)).subscribe(function(){a._handlePaginatorPress("after")})};
g.ngAfterContentInit=function(){var a=this,b=this._dir?this._dir.change:(0,S.of)("ltr"),c=this._viewportRuler.change(150),d=function(){a.updatePagination();a._alignInkBarToSelectedTab()};this._keyManager=hA(lA(jA(new qA(this._items),this._getLayoutDirection())));mA(this._keyManager,this._selectedIndex);this._ngZone.onStable.pipe(Qf()).subscribe(d);(0,S.merge)(b,c,this._items.changes).pipe(cg(this._destroyed)).subscribe(function(){a._ngZone.run(function(){Promise.resolve().then(function(){a._scrollDistance=
Math.max(0,Math.min(a._getMaxScrollDistance(),a._scrollDistance));d()})});jA(a._keyManager,a._getLayoutDirection())});this._keyManager.change.pipe(cg(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(!hi(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)?A1b(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,S.timer)(650,100).pipe(cg((0,S.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}};
li.Object.defineProperties(YW.prototype,{disablePagination:{configurable:!0,enumerable:!0,get:function(){return this._disablePagination},set:function(a){this._disablePagination=Vg(a)}},selectedIndex:{configurable:!0,enumerable:!0,get:function(){return this._selectedIndex},set:function(a){a=Yg(a);this._selectedIndex!=a&&(this._selectedIndexChanged=!0,this._selectedIndex=a,this._keyManager&&mA(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)}}});YW.\u0275fac=function(a){return new (a||YW)(D(pd),D(vx),D(GA),D(rA,8),D(jg),D(Iy),D(ew,8))};YW.\u0275dir=w({type:YW,inputs:{disablePagination:"disablePagination"}});
var H1b=oi(function(){}),ZW=function(a){var b=H1b.call(this)||this;b.elementRef=a;return b};U(ZW,H1b);ZW.prototype.focus=function(){this.elementRef.nativeElement.focus()};ZW.\u0275fac=function(a){return new (a||ZW)(D(pd))};ZW.\u0275dir=w({type:ZW,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(a,b){a&2&&(ge("aria-disabled",!!b.disabled),le("mat-tab-disabled",b.disabled))},inputs:{disabled:"disabled"},features:[ae]});
var I1b=["tabListContainer"],J1b=["tabList"],K1b=["tabListInner"],L1b=["nextPaginator"],M1b=["previousPaginator"],$W=function(a,b,c,d,e,f,h){YW.call(this,a,b,c,d,e,f,h);this._disableRipple=!1};U($W,YW);$W.prototype._itemSelected=function(a){a.preventDefault()};li.Object.defineProperties($W.prototype,{disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(a){this._disableRipple=Vg(a)}}});
$W.\u0275fac=function(a){return new (a||$W)(D(pd),D(vx),D(GA),D(rA,8),D(jg),D(Iy),D(ew,8))};$W.\u0275dir=w({type:$W,inputs:{disableRipple:"disableRipple"},features:[ae]});var aX=function(a,b,c,d,e,f,h){$W.call(this,a,b,c,d,e,f,h)};U(aX,$W);aX.\u0275dir=$W.\u0275dir;aX.\u0275fac=function(a){return new (a||aX)(D(pd),D(vx),D(GA),D(rA,8),D(jg),D(Iy),D(ew,8))};
aX.\u0275cmp=w({type:aX,selectors:[["mat-tab-header"]],contentQueries:function(a,b,c){a&1&&Cf(c,ZW,4);if(a&2){var d;Af(d=Df())&&(b._items=d)}},viewQuery:function(a,b){a&1&&(Bf(UW,7),Bf(I1b,7),Bf(J1b,7),Bf(K1b,7),Bf(L1b,5),Bf(M1b,5));if(a&2){var c;Af(c=Df())&&(b._inkBar=c.first);Af(c=Df())&&(b._tabListContainer=c.first);Af(c=Df())&&(b._tabList=c.first);Af(c=Df())&&(b._tabListInner=c.first);Af(c=Df())&&(b._nextPaginator=c.first);Af(c=Df())&&(b._previousPaginator=c.first)}},hostAttrs:[1,"mat-tab-header"],
hostVars:4,hostBindings:function(a,b){a&2&&le("mat-tab-header-pagination-controls-enabled",b._showPaginationControls)("mat-tab-header-rtl","rtl"==b._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[ae],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&&(xe(),F(0,"button",0,1),J("click",function(){return b._handlePaginatorClick("before")})("mousedown",function(c){return b._handlePaginatorPress("before",c)})("touchend",function(){return b._stopInterval()}),H(2,"div",2),G(),F(3,"div",3,4),J("keydown",function(c){return b._handleKeydown(c)}),F(5,"div",5,6),J("cdkObserveContent",function(){return b._onContentChanges()}),F(7,"div",7,8),ye(9),G(),H(10,"mat-ink-bar"),G()(),F(11,"button",
9,10),J("mousedown",function(c){return b._handlePaginatorPress("after",c)})("click",function(){return b._handlePaginatorClick("after")})("touchend",function(){return b._stopInterval()}),H(13,"div",2),G());a&2&&(le("mat-tab-header-pagination-disabled",b._disableScrollBefore),C("matRippleDisabled",b._disableScrollBefore||b.disableRipple)("disabled",b._disableScrollBefore||null),B(5),le("_mat-animation-noopable","NoopAnimations"===b._animationMode),B(6),le("mat-tab-header-pagination-disabled",b._disableScrollAfter),
C("matRippleDisabled",b._disableScrollAfter||b.disableRipple)("disabled",b._disableScrollAfter||null))},dependencies:[uB,Yz,UW],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 N1b=new ld("MatTabLabel"),O1b=new ld("MAT_TAB");
var P1b=oi(function(){}),Q1b=new ld("MAT_TAB_GROUP"),bX=function(a,b){var c=P1b.call(this)||this;c._viewContainerRef=a;c._closestTabGroup=b;c.textLabel="";c._contentPortal=null;c._stateChanges=new S.Subject;c.position=null;c.origin=null;c.isActive=!1;return c};U(bX,P1b);bX.prototype.ngOnChanges=function(a){(a.hasOwnProperty("textLabel")||a.hasOwnProperty("disabled"))&&this._stateChanges.next()};bX.prototype.ngOnDestroy=function(){this._stateChanges.complete()};
bX.prototype.ngOnInit=function(){this._contentPortal=new YA(this._explicitContent||this._implicitContent,this._viewContainerRef)};bX.prototype._setTemplateLabelInput=function(a){a&&a._closestTab===this&&(this._templateLabel=a)};li.Object.defineProperties(bX.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}}});
bX.\u0275fac=function(a){return new (a||bX)(D(yf),D(Q1b,8))};
bX.\u0275cmp=w({type:bX,selectors:[["mat-tab"]],contentQueries:function(a,b,c){a&1&&(Cf(c,N1b,5),Cf(c,F1b,7,xf));if(a&2){var d;Af(d=Df())&&(b.templateLabel=d.first);Af(d=Df())&&(b._explicitContent=d.first)}},viewQuery:function(a,b){a&1&&Bf(xf,7);if(a&2){var c;Af(c=Df())&&(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:[Ge([{provide:O1b,useExisting:bX}]),ae,Cc],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(xe(),M(0,mIa,1,0,"ng-template"))},encapsulation:2});
var R1b=["tabBodyWrapper"],S1b=["tabHeader"],T1b=0,U1b=function(){},V1b=mi(ni(function(a){this._elementRef=a}),"primary"),cX=function(a,b,c,d){a=V1b.call(this,a)||this;a._changeDetectorRef=b;a._animationMode=d;a._tabs=new Ef;a._indexToSelect=0;a._lastFocusedTabIndex=null;a._tabBodyWrapperHeight=0;a._tabsSubscription=S.Subscription.EMPTY;a._tabLabelSubscription=S.Subscription.EMPTY;a._dynamicHeight=!1;a._selectedIndex=null;a.headerPosition="above";a._disablePagination=!1;a._preserveContent=!1;a.selectedIndexChange=
new Rw;a.focusChange=new Rw;a.animationDone=new Rw;a.selectedTabChange=new Rw(!0);a._groupId=T1b++;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(cX,V1b);g=cX.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(ag(this._allTabs)).subscribe(function(b){a._tabs.reset(b.filter(function(c){return c._closestTabGroup===a||!c._closestTabGroup}));zf(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 U1b;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=S.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)};
li.Object.defineProperties(cX.prototype,{dynamicHeight:{configurable:!0,enumerable:!0,get:function(){return this._dynamicHeight},set:function(a){this._dynamicHeight=Vg(a)}},selectedIndex:{configurable:!0,enumerable:!0,get:function(){return this._selectedIndex},set:function(a){this._indexToSelect=Yg(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=Yg(a,null)}},disablePagination:{configurable:!0,enumerable:!0,get:function(){return this._disablePagination},set:function(a){this._disablePagination=Vg(a)}},preserveContent:{configurable:!0,enumerable:!0,get:function(){return this._preserveContent},set:function(a){this._preserveContent=Vg(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}}});cX.\u0275fac=function(a){return new (a||cX)(D(pd),D(vx),D(E1b,8),D(ew,8))};
cX.\u0275dir=w({type:cX,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:[ae]});
var dX=function(a,b,c,d){return cX.call(this,a,b,c,d)||this};U(dX,cX);dX.\u0275dir=cX.\u0275dir;dX.\u0275fac=function(a){return new (a||dX)(D(pd),D(vx),D(E1b,8),D(ew,8))};
dX.\u0275cmp=w({type:dX,selectors:[["mat-tab-group"]],contentQueries:function(a,b,c){a&1&&Cf(c,bX,5);if(a&2){var d;Af(d=Df())&&(b._allTabs=d)}},viewQuery:function(a,b){a&1&&(Bf(R1b,5),Bf(S1b,5));if(a&2){var c;Af(c=Df())&&(b._tabBodyWrapper=c.first);Af(c=Df())&&(b._tabHeader=c.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(a,b){a&2&&le("mat-tab-group-dynamic-height",b.dynamicHeight)("mat-tab-group-inverted-header","below"===b.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},
exportAs:["matTabGroup"],features:[Ge([{provide:Q1b,useExisting:dX}]),ae],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&&(F(0,"mat-tab-header",0,1),J("indexFocused",function(c){return b._focusChanged(c)})("selectFocusedIndex",function(c){return b.selectedIndex=c}),M(2,qIa,5,15,"div",2),G(),F(3,"div",3,4),M(5,rIa,1,11,"mat-tab-body",5),G());a&2&&(C("selectedIndex",b.selectedIndex||0)("disableRipple",b.disableRipple)("disablePagination",b.disablePagination),B(2),C("ngForOf",b._tabs),B(1),le("_mat-animation-noopable",
"NoopAnimations"===b._animationMode),B(2),C("ngForOf",b._tabs))},dependencies:[Fx,Gx,Cx,aB,uB,Uz,ZW,WW,aX],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 W1b=["tabListContainer"],X1b=["tabList"],Y1b=["tabListInner"],Z1b=["nextPaginator"],$1b=["previousPaginator"],a2b=0,eX=function(a,b,c,d,e,f,h){YW.call(this,a,d,e,b,c,f,h);this._disableRipple=!1;this.color="primary"};U(eX,YW);eX.prototype._itemSelected=function(){};eX.prototype.ngAfterContentInit=function(){var a=this;this._items.changes.pipe(ag(null),cg(this._destroyed)).subscribe(function(){b2b(a)});YW.prototype.ngAfterContentInit.call(this)};
var b2b=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()}};eX.prototype._getRole=function(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")};
li.Object.defineProperties(eX.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=Vg(a)}}});
eX.\u0275fac=function(a){return new (a||eX)(D(pd),D(rA,8),D(jg),D(vx),D(GA),D(Iy),D(ew,8))};eX.\u0275dir=w({type:eX,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color",tabPanel:"tabPanel"},features:[ae]});var fX=function(a,b,c,d,e,f,h){eX.call(this,a,b,c,d,e,f,h)};U(fX,eX);fX.\u0275dir=eX.\u0275dir;fX.\u0275fac=function(a){return new (a||fX)(D(pd),D(rA,8),D(jg),D(vx),D(GA),D(Iy),D(ew,8))};
fX.\u0275cmp=w({type:fX,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(a,b,c){a&1&&Cf(c,gX,5);if(a&2){var d;Af(d=Df())&&(b._items=d)}},viewQuery:function(a,b){a&1&&(Bf(UW,7),Bf(W1b,7),Bf(X1b,7),Bf(Y1b,7),Bf(Z1b,5),Bf($1b,5));if(a&2){var c;Af(c=Df())&&(b._inkBar=c.first);Af(c=Df())&&(b._tabListContainer=c.first);Af(c=Df())&&(b._tabList=c.first);Af(c=Df())&&(b._tabListInner=c.first);Af(c=Df())&&(b._nextPaginator=c.first);Af(c=Df())&&(b._previousPaginator=c.first)}},hostAttrs:[1,"mat-tab-nav-bar",
"mat-tab-header"],hostVars:11,hostBindings:function(a,b){a&2&&(ge("role",b._getRole()),le("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:[ae],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&&(xe(),F(0,"button",0,1),J("click",function(){return b._handlePaginatorClick("before")})("mousedown",function(c){return b._handlePaginatorPress("before",c)})("touchend",function(){return b._stopInterval()}),H(2,"div",2),G(),F(3,"div",3,4),J("keydown",function(c){return b._handleKeydown(c)}),F(5,"div",5,6),J("cdkObserveContent",function(){return b._onContentChanges()}),
F(7,"div",7,8),ye(9),G(),H(10,"mat-ink-bar"),G()(),F(11,"button",9,10),J("mousedown",function(c){return b._handlePaginatorPress("after",c)})("click",function(){return b._handlePaginatorClick("after")})("touchend",function(){return b._stopInterval()}),H(13,"div",2),G());a&2&&(le("mat-tab-header-pagination-disabled",b._disableScrollBefore),C("matRippleDisabled",b._disableScrollBefore||b.disableRipple)("disabled",b._disableScrollBefore||null),B(5),le("_mat-animation-noopable","NoopAnimations"===b._animationMode),
B(6),le("mat-tab-header-pagination-disabled",b._disableScrollAfter),C("matRippleDisabled",b._disableScrollAfter||b.disableRipple)("disabled",b._disableScrollAfter||null))},dependencies:[uB,Yz,UW],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 c2b=pi(ni(oi(function(){}))),hX=function(a,b,c,d,e,f){var h=c2b.call(this)||this;h._tabNavBar=a;h.elementRef=b;h._focusMonitor=e;h._isActive=!1;h.id="mat-tab-link-"+a2b++;h.rippleConfig=c||{};h.tabIndex=parseInt(d)||0;"NoopAnimations"===f&&(h.rippleConfig.animation={enterDuration:0,exitDuration:0});return h};U(hX,c2b);g=hX.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};
li.Object.defineProperties(hX.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this._isActive},set:function(a){a=Vg(a);a!==this._isActive&&(this._isActive=a,b2b(this._tabNavBar))}},rippleDisabled:{configurable:!0,enumerable:!0,get:function(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}}});hX.\u0275fac=function(a){return new (a||hX)(D(eX),D(pd),D(aqb,8),Zc("tabindex"),D(Sz),D(ew,8))};
hX.\u0275dir=w({type:hX,inputs:{active:"active",id:"id"},features:[ae]});var gX=function(a,b,c,d,e,f,h,k){a=hX.call(this,a,b,e,f,h,k)||this;a._tabLinkRipple=new sB(a,c,b,d);$pb(a._tabLinkRipple,b.nativeElement);return a};U(gX,hX);gX.prototype.ngOnDestroy=function(){hX.prototype.ngOnDestroy.call(this);this._tabLinkRipple._removeTriggerEvents()};gX.\u0275fac=function(a){return new (a||gX)(D(fX),D(pd),D(jg),D(Iy),D(aqb,8),Zc("tabindex"),D(Sz),D(ew,8))};
gX.\u0275dir=w({type:gX,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(a,b){a&1&&J("focus",function(){return b._handleFocus()})("keydown",function(c){return b._handleKeydown(c)});a&2&&(ge("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()),le("mat-tab-disabled",
b.disabled)("mat-tab-label-active",b.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[ae]});
var iX=function(){};iX.\u0275fac=function(a){return new (a||iX)};iX.\u0275mod=uc({type:iX});iX.\u0275inj=gc({imports:[Wx,gB,bB,yB,Zz,aA,gB]});
var jX=function(){};[].concat(u([SW,BW,CW,IW,NW,RW,JW,FW,AW,zW,GW,TW]),[KW,LW,MW]);jX.\u0275fac=function(a){return new (a||jX)};jX.\u0275mod=uc({type:jX});jX.\u0275inj=gc({imports:[NO,yK,Wx,fB,wQ,kP,YS,iX,wF,BG,lH,CS,ES,YN]});
var d2b=["textarea"],e2b=["hiddenInput"],f2b=["autocompleteUnderlay"],g2b=Symbol(),kX=function(a,b,c){wI.call(this);this.codefont=a;this.activeSession=b;this.window=c;this.textareaClass=[];this.disabled=!1;this.contentChange=new Rw;this.focus=new Rw;this.blur=new Rw;this.autoResize=new Rw;this.manualResize$=new Rw;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(kX,wI);kX.\u0275dir=wI.\u0275dir;kX.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.codefont.codefont$.subscribe(function(b){b?Kp(a).classList.add("codefont"):Kp(a).classList.remove("codefont")}))};kX.prototype.ngOnDestroy=function(){wI.prototype.ngOnDestroy.call(this);this.focus.complete();this.blur.complete();this.manualResize$.complete()};kX.prototype.setValue=function(a){Kp(this).value!==a&&(Kp(this).value=a,this.manualResize$.next())};
kX.prototype.getValue=function(){return Kp(this).value};var Kp=function(a){return a.textareaRef.nativeElement},Mp=function(a){var b;return null==(b=a.hiddenInputRef)?void 0:b.nativeElement},Jp=function(a){return a.activeSession.isInternalSession()&&1===a.audience},h2b=function(a){var b;return null==(b=a.autocompleteUnderlayRef)?void 0:b.nativeElement},i2b=function(a){var b=Kp(a).selectionStart;a.wordInfo=a.findWord(a.getValue(),b)};
kX.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 j2b=function(a){return"ArrowDown"===a.key||"ArrowUp"===a.key||"Enter"===a.key||"Escape"===a.key||"Tab"===a.key},k2b=function(a){var b=h2b(a);a=Kp(a);b&&a&&(b.scrollTop=a.scrollTop)},Lp=function(a){a.taggingInProgress=!1;a.autocompleteUserName=""},sIa=function(a,b){b=void 0===b?!1:b;var c=Kp(a),d=Kp(a).value,e,f=null==(e=Mp(a))?void 0:e.value;e=null==f?void 0:f.length;i2b(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};kX.prototype[g2b]=function(){return this.findWord};kX.\u0275fac=function(a){return new (a||kX)(D(xQ),D(vH),D(uM))};
kX.\u0275cmp=w({type:kX,selectors:[["b-comment-draft-textarea"]],viewQuery:function(a,b){a&1&&(Bf(d2b,7),Bf(e2b,5),Bf(f2b,5));if(a&2){var c;Af(c=Df())&&(b.textareaRef=c.first);Af(c=Df())&&(b.hiddenInputRef=c.first);Af(c=Df())&&(b.autocompleteUnderlayRef=c.first)}},hostBindings:function(a,b){a&1&&J("click",function(){Lp(b)},!1,yda)("keyup",function(c){var d=c.key;c=c.target.classList.contains("autocomplete-hidden-input");"Escape"===d&&c&&(Lp(b),Kp(b).focus())},!1,yda)},inputs:{textareaClass:"textareaClass",
disabled:"disabled",placeholder:"placeholder",idForAriaLabel:"idForAriaLabel",audience:"audience"},outputs:{contentChange:"contentChange",focus:"focus",blur:"blur",autoResize:"autoResize"},features:[ae],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&&(F(0,
"div",0,1),J("keydown",function(c){"Escape"===c.key&&(Lp(b),Kp(b).focus())}),F(2,"textarea",2,3),J("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(Jp(b)&&j2b(c)&&b.taggingInProgress){null==c||c.preventDefault();var d;null==(d=Mp(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=Mp(b))||k.dispatchEvent(c)}})("keyup",function(c){if(Jp(b)){var d=Kp(b),e=null==d?void 0:d.value;b.textAreaLastCursorLocation=d.selectionStart;b.textAreaLastAtSymbolLocation=e.slice(0,b.textAreaLastCursorLocation).lastIndexOf("@");if(!j2b(c)){c=c.target;b.scrollPosition=c.scrollTop;i2b(b);var f=b.wordInfo.word;d="@"===f;e=f.startsWith("@");var h=f.slice(f.length-
1).match(/[a-z]/i);f=qua.test(f.slice(1));if(d||e&&h&&!f){c=c.selectionStart;if(!b.taggingInProgress){if(d=h2b(b)){d.textContent=b.getValue();e=h2b(b);h=Kp(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)}}k2b(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 v;null==(v=Mp(b))||v.dispatchEvent(new KeyboardEvent("keydown"))}}}})("scroll",function(){return k2b(b)}),G(),F(4,"span",4),M(5,tIa,2,1,"input",5),G(),M(6,uIa,2,0,"div",6),G());a&2&&(B(2),C("autoResize",b.manualResize$)("ngClass",
b.textareaClass)("disabled",b.disabled),ge("placeholder",b.placeholder)("id",b.idForAriaLabel),B(2),ke("top",b.autocompleteTop+"px")("left",b.autocompleteLeft+"px"),B(1),C("ngIf",b.taggingInProgress),B(1),C("ngIf",Jp(b)))},dependencies:[Fx,Cx,WU,yW],encapsulation:2,changeDetection:0});
var l2b=function(a){return{"draft-markdown":a}},lX=function(a,b,c){wI.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(lX,wI);lX.\u0275dir=wI.\u0275dir;lX.prototype.ngOnInit=function(){this.subscriptions.add(this.events.commentSubmitted.subscribe(this.onCommentSubmitted))};
lX.prototype.synchronizeHeight=function(a){this.ref.nativeElement.querySelector("mat-tab-group").style.height=a+56+"px"};lX.\u0275fac=function(a){return new (a||lX)(D(sI,2),D(pd),D(MK))};
lX.\u0275cmp=w({type:lX,selectors:[["b-comment-draft-tab-group"]],viewQuery:function(a,b){a&1&&Bf(dX,7);if(a&2){var c;Af(c=Df())&&(b.matTabGroup=c.first)}},inputs:{editArea:"editArea",previewArea:"previewArea",previewDisabled:"previewDisabled"},features:[Ge([sI]),ae],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&&(F(0,"mat-tab-group",
0),J("animationDone",function(){setTimeout(b.render,2E3)})("selectedIndexChange",function(c){return b.selectedIndex=c}),F(1,"mat-tab",1),M(2,vIa,1,0,"ng-container",2),G(),F(3,"mat-tab",3),M(4,wIa,1,0,"ng-container",2),G()());a&2&&(C("dynamicHeight",!1)("selectedIndex",b.selectedIndex),B(2),C("ngTemplateOutlet",b.editArea),B(1),C("disabled",b.previewDisabled),B(1),C("ngTemplateOutlet",b.previewArea))},dependencies:[Mx,dX,bX],styles:["[_nghost-%COMP%]     mat-tab-header{margin-left:8px;margin-bottom:16px}\n/*# sourceMappingURL=comment_draft_tab_group.css.map */"],
changeDetection:0});var mX=function(a,b,c,d){wI.call(this);this.codefont=a;this.ngZone=b;this.prefs=c;this.hotkeys=d;this.isMarkdown$=this.prefs.lastPublishMode$.pipe(R(function(e){return e===rBb}));this.idPrefix="b-draft";this.content="";this.issueId=0;this.textareaClass=[];this.disabled=!1;this.audience=2;this.init=new Rw;this.contentChange=new Rw;this.focus=new Rw;this.blur=new Rw;this.autoResize=new Rw;this.onSubmit=new Rw};U(mX,wI);mX.\u0275dir=wI.\u0275dir;
mX.prototype.ngOnChanges=function(){this.commentDraftTextarea&&this.commentDraftTextarea.setValue(this.content)};
mX.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 m2b=function(a){a.ngZone.run(function(){if(a.commentDraftTabGroup){var b=a.commentDraftTabGroup;b.selectedIndex=0;b.render()}a.commentDraftTextarea&&Kp(a.commentDraftTextarea).focus()})};mX.prototype.synchronizeHeight=function(a){this.commentDraftTabGroup&&this.commentDraftTabGroup.synchronizeHeight(a.newHeight)};mX.\u0275fac=function(a){return new (a||mX)(D(xQ),D(jg),D(VI),D(bJ))};
mX.\u0275cmp=w({type:mX,selectors:[["b-comment-draft"]],viewQuery:function(a,b){a&1&&(Bf(kX,5),Bf(lX,5));if(a&2){var c;Af(c=Df())&&(b.commentDraftTextarea=c.first);Af(c=Df())&&(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:[ae,Cc],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&&(F(0,"b-comment-draft-textarea",0),J("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()}),P(1,"async"),G());a&2&&C("textareaClass",b.textareaClass)("ngClass",
Ie(8,l2b,Q(1,6,b.isMarkdown$)))("disabled",b.disabled)("placeholder",b.placeholder)("idForAriaLabel",b.idForAriaLabel)("audience",b.audience)},dependencies:[Fx,kX,Px],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}body   [_nghost-%COMP%]     textarea.codefont, body   [_nghost-%COMP%]     .draft-markdown textarea{font-family:WorkAroundWebKitAndMozilla,monospace}\n/*# sourceMappingURL=comment_draft.css.map */"],
changeDetection:0});
var nX=function(){};[].concat(u([yW,mX,kX]),[lX]);nX.\u0275fac=function(a){return new (a||nX)};nX.\u0275mod=uc({type:nX});nX.\u0275inj=gc({imports:[NO,Wx,XU,Gy,fB,wQ,kP,YS,iX,wF,BG,lH,uQ]});
var n2b=["commentBoxContainer"],o2b=function(a){return{focused:a}},p2b=function(){return[]},oX=function(a,b,c,d,e){this.analytics=a;this.hotkeys=b;this.userPreferencesManager=c;this.appEvents=e;this.MARKDOWN=2;this.commentChange=new Rw;this.supportsPreview=!1;this.loadFormatFromPrefs=!0;this.disabled=!1;this.showToolbar=!0;this.attachmentsDisabled=!1;this.onChange=new Rw;this.onFocusEvent=new Rw;this.onSubmit=new Rw;this.onRestrict=new Rw;this.focused=!1;this.commentRebound$=new S.ReplaySubject(1);
this.destroyed$=new S.ReplaySubject(1);this.createRestrictedResourcesComponentWhitelist=jb(d.config,13)};g=oX.prototype;g.ngOnDestroy=function(){var a;null==(a=this.comment)||BQb(a);this.destroyed$.next()};
g.ngOnInit=function(){var a=this;(0,S.merge)(this.userPreferencesManager.lastPublishModeProto$,this.commentRebound$).pipe(eg(this.userPreferencesManager.lastPublishModeProto$),cg(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(cg(this.destroyed$)).subscribe(function(b){ibb(a,b)});this.appEvents.scrollToCommentBox.pipe(cg(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 wqa(Bl(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)&&eo(a.analytics,"commentBox","takeFocus",b);a.scrollIntoView();var c;null==(c=a.commentDraftComponent)||m2b(c)};
oX.prototype.scrollIntoView=function(){var a;null==(a=this.commentBoxContainer)||a.nativeElement.scrollIntoView()};oX.prototype.onFocus=function(){this.focused=!0;this.onFocusEvent.emit()};oX.prototype.onBlur=function(){this.focused=!1};oX.prototype.onKeydown=function(a){this.hotkeys.isEnabled()&&("Enter"!==a.key||!a.ctrlKey&&!a.metaKey||this.disabled||this.onSubmit.emit(a.shiftKey))};oX.\u0275fac=function(a){return new (a||oX)(D(QM),D(bJ),D(VI),D(vH),D(MK))};
oX.\u0275cmp=w({type:oX,selectors:[["b-comment-box"]],viewQuery:function(a,b){a&1&&(Bf(mX,5),Bf(n2b,5),Bf(bW,5));if(a&2){var c;Af(c=Df())&&(b.commentDraftComponent=c.first);Af(c=Df())&&(b.commentBoxContainer=c.first);Af(c=Df())&&(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",onFocusEvent:"onFocusEvent",onSubmit:"onSubmit",onRestrict:"onRestrict"},features:[Cc],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&&(xe(),F(0,"div",0,1)(2,"div",2)(3,"b-comment-draft",3),J("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))}}),G()(),F(4,"b-attachment-uploader",4),J("onUploadCancel",function(d){b.comment&&ya(b.comment.uploads,d)}),G(),M(5,zIa,8,4,"div",5),G(),M(6,AIa,2,4,"div",6));if(a&2){var c;C("ngClass",Ie(11,o2b,b.focused));B(3);C("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);C("uploads",null!==(c=null==b.comment?
null:b.comment.uploads)&&void 0!==c?c:He(13,p2b));B(1);C("ngIf",b.showToolbar);B(1);C("ngIf",b.supportsPreview&&b.comment.formattingMode===b.MARKDOWN)}},dependencies:[Fx,Cx,mX,sF,RW,xW,YV,bW,BB,dF],encapsulation:2});
var q2b=["dialog"],pX=function(a,b,c){wI.call(this);this.matDialog=a;this.activeSession=b;this.hotkeys=c;this.comment=new ZR;this.save=new Rw;this.close=new Rw;this.externalWarnings=[];this.issueEditBuilder=null;this.FocusableField=r2b;this.issueStates=xJb};U(pX,wI);pX.\u0275dir=wI.\u0275dir;
pX.prototype.showDialog=function(a,b,c){var d=this;this.issueEditBuilder=new sZb(this.activeSession.getUserEmail(),a);this.issueEditBuilder.comment=this.comment;b&&BIa(this.issueEditBuilder,b);this.focus=c;this.hotkeys.pause();this.matDialogRef=this.matDialog.open(this.dialog,{minWidth:512,maxWidth:512});NB(this.matDialogRef).pipe(cg(this.destroyed$)).subscribe(function(e){d.hotkeys.unpause();e&&d.save.emit();d.close.emit()})};pX.\u0275fac=function(a){return new (a||pX)(D(ZB),D(vH),D(bJ))};
pX.\u0275cmp=w({type:pX,selectors:[["b-state-modal"]],viewQuery:function(a,b){a&1&&Bf(q2b,5);if(a&2){var c;Af(c=Df())&&(b.dialog=c.first)}},inputs:{externalWarnings:"externalWarnings"},outputs:{save:"save",close:"close"},features:[ae],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&&M(0,QIa,13,4,"ng-template",null,0,Jf)},
dependencies:[Gx,Cx,Ix,Jx,Kx,$B,aC,bC,cC,SS,sy,Jg,ly,my,Cy,ry,py,BB,zH,iF,gF,lF,WU,oX],encapsulation:2});var r2b={ASSIGNEE:0,VERIFIER:1,COMMENT:2,DUPE_ID:3,0:"ASSIGNEE",1:"VERIFIER",2:"COMMENT",3:"DUPE_ID"};
var qX=function(a){var b;a=null==a?void 0:null==(b=a.accessLimit)?void 0:b.accessLevel;return"EXTERNAL_PARTNER"===a||"EXTERNAL_PUBLIC"===a},s2b=function(a){var b;return"EXTERNAL_PARTNER"===(null==a?void 0:null==(b=a.accessLimit)?void 0:b.accessLevel)},rX=function(a){var b;return"EXTERNAL_PUBLIC"===(null==a?void 0:null==(b=a.accessLimit)?void 0:b.accessLevel)},t2b=function(a,b){return a?a.join(" > "):String(b)},u2b=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 sX=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};sX.prototype.ngOnInit=function(){v2b(this,this.issuesToFlag)};
var v2b=function(a,b){0>=b.length?a.permissionsCheckComplete=!0:sK(a.userAccess,"admin","components/"+b[0].componentId).then(function(c){a.issuesChecked++;c||a.protectedIssues.push(b[0]);v2b(a,b.slice(1))},function(c){a.errorHandler.errorHandler(null,c)})};sX.\u0275fac=function(a){return new (a||sX)(D(rK),D(IK),D(XB))};
sX.\u0275cmp=w({type:sX,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&&(F(0,"h1",0),O(1,"Flag Issues as Spam"),
G(),F(2,"div",1)(3,"div",2)(4,"p"),O(5),G(),F(6,"p"),O(7," This operation cannot be undone in bulk. "),G()(),F(8,"div",3),M(9,RIa,3,2,"div",4),M(10,TIa,5,2,"div",4),G()(),F(11,"div",5)(12,"button",6),O(13," Close "),G(),F(14,"button",7),O(15," Flag as Spam "),G()());a&2&&(B(5),De(" 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),C("ngIf",
!b.permissionsCheckComplete),B(1),C("ngIf",b.permissionsCheckComplete&&0<b.protectedIssues.length),B(4),C("disabled",!b.permissionsCheckComplete)("mat-dialog-close",!0))},dependencies:[Gx,Cx,BB,$B,aC,bC,cC],encapsulation:2});
var tX=function(a,b){this.cdr=a;this.dialogRef=b;this.component=null};tX.prototype.updateComponent=function(a){this.component=a;this.cdr.detectChanges()};tX.prototype.save=function(){this.dialogRef.close(this.component)};tX.prototype.cancel=function(){this.dialogRef.close()};tX.\u0275fac=function(a){return new (a||tX)(D(sI,2),D(MB))};
tX.\u0275cmp=w({type:tX,selectors:[["b-bulk-move-dialog"]],features:[Ge([sI])],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&&(F(0,"h1",0),O(1,"Change Component"),G(),F(2,"mat-dialog-content")(3,"p"),O(4,"Choose new component for these issues."),G(),F(5,"p",1),O(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. "),G(),F(7,"b-team-component-picker",2),J("selectedComponentChange",function(c){return b.updateComponent(null!==c&&void 0!==c?c:null)}),G()(),F(8,"mat-dialog-actions")(9,"button",3),J("click",function(){return b.cancel()}),O(10," Cancel "),G(),F(11,"button",4),J("click",function(){return b.save()}),O(12," Save "),G()());a&2&&(B(7),C("selectedComponent",
b.component)("placeholder","Choose Component")("isRequired",!0),B(4),C("disabled",null==b.component))},dependencies:[BB,aC,bC,cC,DV],styles:[".bv2-bulk-move-warning[_ngcontent-%COMP%]{font-weight:bold}[_nghost-%COMP%]     .bv2-component-picker{width:100%}"]});
var uX=function(a,b){this.data=a;this.dialogRef=b;this.fieldDisplayName=this.removeItems=this.addItems="";this.fieldDisplayName=a.fieldDisplayName};uX.prototype.save=function(){this.dialogRef.close({addItems:this.addItems,removeItems:this.removeItems})};uX.prototype.close=function(){this.dialogRef.close()};uX.\u0275fac=function(a){return new (a||uX)(D(XB),D(MB))};
uX.\u0275cmp=w({type:uX,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&&(F(0,"h1",0),O(1),G(),F(2,"mat-dialog-content")(3,"p"),O(4),G(),F(5,"div",1)(6,"mat-form-field")(7,"mat-label"),O(8),G(),F(9,"input",2),J("ngModelChange",function(c){return b.addItems=c}),G()(),
H(10,"br"),F(11,"mat-form-field")(12,"mat-label"),O(13),G(),F(14,"input",2),J("ngModelChange",function(c){return b.removeItems=c}),G()()()(),F(15,"mat-dialog-actions")(16,"button",3),J("click",function(){return b.close()}),O(17," Cancel "),G(),F(18,"button",4),J("click",function(){return b.save()}),O(19," Save "),G()());a&2&&(B(1),De("Edit ",b.fieldDisplayName,""),B(3),De("Enter ",b.fieldDisplayName," to add or remove"),B(4),De(" ",b.fieldDisplayName," to Add "),B(1),C("ngModel",b.addItems),B(4),
De(" ",b.fieldDisplayName," to Remove "),B(1),C("ngModel",b.removeItems))},dependencies:[Jg,ly,ry,BB,oC,lC,qC,aC,bC,cC],encapsulation:2});
var w2b=["hotlistFilterInput"],x2b=["hotlistCreate"],y2b=["hotlistApply"],z2b=["hotlistLoad"],A2b=["menuitem"],vX=function(a,b,c,d,e,f){wI.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 Rw;this.onApply=new Rw;this.onLoad=new Rw;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(vX,wI);vX.\u0275dir=wI.\u0275dir;vX.prototype.ngAfterViewInit=function(){var a=this,b;null==(b=this.trigger)||b.menuOpened.pipe(cg(this.destroyed$)).subscribe(function(){(0,S.timer)(0).pipe(cg(a.destroyed$)).subscribe(function(){a.focusFilterBox()})});var c;null==(c=this.trigger)||c.menuClosed.pipe(cg(this.destroyed$)).subscribe(function(){B2b(a)})};
vX.prototype.focusFilterBox=function(){this.filterElement.nativeElement.focus()};vX.prototype.ngOnChanges=function(){C2b(this);this.oldSelectedHotlistMap=Object.assign({},this.selectedHotlistMap);this.pendingChanges=this.canCreate=!1;wX(this)};
var C2b=function(a){var b={};zja(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;Ka(a.choices,function(h,k){var q=b[h.hotlistId],v=b[k.hotlistId];return q>v?-1:q<v?1:fu(h.name,k.name)})}}};vX.prototype.open=function(){zi(this.trigger);this.cdr.detectChanges()};vX.prototype.close=function(){this.trigger.closeMenu()};
vX.prototype.hasAclToEdit=function(a){var b=this;if(wja(this.hotlistEditAcls,a.hotlistId))return this.hotlistEditAcls[a.hotlistId];sK(this.userAccess,"appender","hotlists/"+a.hotlistId).then(function(c){b.hotlistEditAcls[a.hotlistId]=c})};
var Op=function(a,b){if(!a.checkEditAcl)return!1;a=a.hasAclToEdit(b);return void 0===a?!0:!a},Pp=function(a,b){var c=a.selectedHotlistMap[b.hotlistId];a.selectedHotlistMap[b.hotlistId]=null===c?!0:!c;Qp(a);a.close()},Qp=function(a){a.onApply.emit({oldSelectionMap:a.oldSelectedHotlistMap,newSelectionMap:a.selectedHotlistMap})},wX=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]=oa(e.name,b),e.name===b&&(c=!0);a.canCreate=
!(!b||c);a.canLoad=!/[^0-9]/.test(Ri(b))&&!!b&&!!a.onLoad},B2b=function(a){a.trigger.menuOpen||(C2b(a),a.filterText="",wX(a),a.pendingChanges=!1,a.focusedRowIndex=-1)},D2b=function(a){var b=a.selectedHotlistIds;return b&&1===b.length?"Hotlists ("+iaa(b[0],function(c){return a.validHotlistIds.has(c)})+")":"Hotlists"};
vX.prototype.createHotlist=function(){var a=this,b=this.filterText;this.canCreate&&(this.filterText="",wX(this),this.onCreate.emit({name:b,successCallback:function(c){Pp(a,c)},errorCallback:function(){GK(a.butterBar,"Failed to create hotlist "+b)}}))};
vX.prototype.loadHotlist=function(){var a=this,b=this.filterText;if(this.canLoad){eo(this.analytics,"hotlistPicker","loadHotlist");FK(this.butterBar,"Loading hotlist "+b.toString());this.filterText="";wX(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){Pp(this,e);return}this.onLoad.emit({hotlistId:c,successCallback:function(f){Pp(a,f)},errorCallback:function(){GK(a.butterBar,"Failed to load hotlist "+b)}})}};
var UIa=function(a,b){Op(a,b)||(a.selectedHotlistMap[b.hotlistId]=!a.selectedHotlistMap[b.hotlistId],a.focusFilterBox(),a.pendingChanges=!Ei(a.oldSelectedHotlistMap,a.selectedHotlistMap))},J2b=function(a,b){b=void 0===b?0:b;var c=xX(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=ta(xX(a),b),E2b(a),F2b(a,b)):a.focusedRowIndex<d&&a.canCreate?G2b(a,d):a.focusedRowIndex<
d+1&&a.canLoad?H2b(a,d):a.focusedRowIndex<d+2&&a.pendingChanges&&I2b(a,d)},xX=function(a){return a.menuItems.map(function(b){return b.nativeElement})},K2b=function(a,b){b=void 0===b?0:b;if(a.focusedRowIndex===a.choices.length+1&&a.canCreate)G2b(a,a.choices.length);else if(a.focusedRowIndex===a.choices.length+2&&a.canLoad)H2b(a,a.choices.length);else if(a.focusedRowIndex===a.choices.length+2&&a.canCreate)G2b(a,a.choices.length);else{var c=xX(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=ta(xX(a),b),E2b(a),F2b(a,b)):(a.focusedRowIndex=-1,F2b(a,null))}},F2b=function(a,b){a.filterElement&&aJ(a.filterElement.nativeElement,b);a.focusFilterBox()},G2b=function(a,b){a.focusedRowIndex=b;aJ(a.filterElement.nativeElement,null);var c;null==(c=a.createElement)||c.focus();a.liveAnnouncer.announce("Create new hotlist "+a.filterText);a.focusFilterBox()},H2b=function(a,b){a.focusedRowIndex=b+1;aJ(a.filterElement.nativeElement,null);var c;
null==(c=a.loadElement)||c.focus();a.liveAnnouncer.announce("Load hotlist "+a.filterText);a.focusFilterBox()},I2b=function(a,b){a.focusedRowIndex=b+2;aJ(a.filterElement.nativeElement,null);var c;null==(c=a.applyElement)||c.focus();a.liveAnnouncer.announce("Apply");a.focusFilterBox()},E2b=function(a){-1===a.focusedRowIndex||a.focusedRowIndex>=a.choices.length||(a=xX(a)[a.focusedRowIndex],a.scrollIntoViewIfNeeded?a.scrollIntoViewIfNeeded():a.scrollIntoView({block:"end"}))},VIa=function(a){return null==
a?"mixed":a.toString()},WIa=function(a){return null==a?"indeterminate":a?"checked":"unchecked"};vX.\u0275fac=function(a){return new (a||vX)(D($z),D(DK),D(rK),D(QM),D(vH),D(sI,2))};
vX.\u0275cmp=w({type:vX,selectors:[["b-hotlist-picker"]],viewQuery:function(a,b){a&1&&(Bf(lF,5),Bf(w2b,5),Bf(x2b,5),Bf(y2b,5),Bf(z2b,5),Bf(A2b,5));if(a&2){var c;Af(c=Df())&&(b.trigger=c.first);Af(c=Df())&&(b.filterElement=c.first);Af(c=Df())&&(b.createElement=c.first);Af(c=Df())&&(b.applyElement=c.first);Af(c=Df())&&(b.loadElement=c.first);Af(c=Df())&&(b.menuItems=c)}},inputs:{selectedHotlistIds:"selectedHotlistIds",choices:"choices",checkEditAcl:"checkEditAcl"},outputs:{onCreate:"onCreate",onApply:"onApply",
onLoad:"onLoad"},features:[Ge([sI]),ae,Cc],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&&(F(0,"button",0)(1,"span",1),O(2),G(),H(3,"b-icon",2),G(),F(4,"mat-menu",null,3)(6,"div",4)(7,"div",5)(8,"div",6)(9,"input",7,8),J("ngModelChange",function(d){return b.filterText=d})("ngModelChange",
function(){return wX(b)})("mousedown",function(d){return d.stopPropagation()})("blur",function(){return B2b(b)})("click",function(d){return d.stopPropagation()})("keydown",function(d){d.stopImmediatePropagation();"Escape"===d.key?b.close():"ArrowDown"===d.key?(J2b(b),d.preventDefault()):"ArrowUp"===d.key?(K2b(b),d.preventDefault()):"PageUp"===d.key?K2b(b,11):"PageDown"===d.key?J2b(b,11):" "===d.key?-1===b.focusedRowIndex||b.focusedRowIndex>=b.choices.length||(UIa(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(),Qp(b)):0<=b.focusedRowIndex&&b.focusedRowIndex<b.choices.length&&b.hasAclToEdit(b.choices[b.focusedRowIndex])&&Pp(b,b.choices[b.focusedRowIndex]))}),G()()(),H(11,"mat-divider"),M(12,aJa,11,8,"ng-template",9),G()());if(a&2){var c=Ce(5);C("matMenuTriggerFor",c)("disabled",b.isAnonymous);B(2);Ee(D2b(b));B(7);C("ngModel",b.filterText)}},dependencies:[Gx,
Cx,iF,gF,lF,fF,BB,Jg,ly,Dy,ry,vB,sF,YH,zH],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 yX=function(a){this.issuesApi=a};yX.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})};yX.\u0275fac=function(a){return new (a||yX)(t(lK))};yX.\u0275prov=dc({token:yX,factory:yX.\u0275fac,providedIn:"root"});
var zX=function(a,b,c,d){this.activeSession=a;this.issueApi=b;this.analytics=c;this.errorHandler=d;this.onCc=new Rw};zX.prototype.ngOnInit=function(){};
zX.prototype.toggle=function(){var a=this;eo(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)})}};zX.\u0275fac=function(a){return new (a||zX)(D(vH),D(lK),D(QM),D(IK))};
zX.\u0275cmp=w({type:zX,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&&(F(0,"button",0),J("click",function(){return b.toggle()}),M(1,bJa,2,0,"ng-container",1),O(2,"CC me\n"),G());a&2&&(B(1),C("ngIf",b.ccState))},dependencies:[Cx,BB],encapsulation:2});
var AX=function(){var a=this;this.displayMode="BOTH";this.colorStyle="NONE";this.issueStatusInternal$=new S.BehaviorSubject(0);this.iconName$=this.issueStatusInternal$.pipe(Pf(),R(function(b){return L2b.get(b)||""}));this.statusText$=this.issueStatusInternal$.pipe(Pf(),R(function(b){return JL[b]}));this.colorClass$=this.issueStatusInternal$.pipe(Pf(),R(function(b){return"bg-status"+b}));this.bgColorClass$=this.colorClass$.pipe(R(function(b){return"BACKGROUND"===a.colorStyle?"bg "+b:""}))};
AX.prototype.ngOnInit=function(){};AX.prototype.ngOnChanges=function(){this.issueStatus?this.issueStatusInternal$.next(this.issueStatus):this.issueStatusInternal$.next(Yl[this.issueStatusJs])};AX.\u0275fac=function(a){return new (a||AX)};
AX.\u0275cmp=w({type:AX,selectors:[["b-issue-status-display"]],inputs:{issueStatusJs:"issueStatusJs",issueStatus:"issueStatus",displayMode:"displayMode",colorStyle:"colorStyle"},features:[Cc],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&&(F(0,"span",0),P(1,"async"),M(2,cJa,2,3,"span",1),M(3,dJa,2,3,"mat-icon",
2),M(4,eJa,3,3,"span",3),G());if(a&2){var c;C("ngClass",null!==(c=Q(1,4,b.bgColorClass$))&&void 0!==c?c:"");B(2);C("ngIf","ASIDE"===b.colorStyle);B(1);C("ngIf","BOTH"===b.displayMode||"ICON"===b.displayMode);B(1);C("ngIf","BOTH"===b.displayMode||"TEXT"===b.displayMode)}},dependencies:[dF,Fx,Cx,Px],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 L2b=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 BX=function(){this.upvoted=!1;this.voteCount=0;this.tooltip="";this.isNewVoteButton=this.disabled=!1;this.onAction=new Rw};BX.prototype.onClick=function(){this.onAction.emit(this.upvoted)};BX.prototype.getAriaLabel=function(){return"Vote count "+this.voteCount};BX.\u0275fac=function(a){return new (a||BX)};
BX.\u0275cmp=w({type:BX,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&&(M(0,fJa,2,9,"button",0),M(1,gJa,5,9,"button",1));a&2&&(C("ngIf",b.isNewVoteButton),B(1),C("ngIf",!b.isNewVoteButton))},dependencies:[BB,sF,Cx],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 M2b=io.EDIT_ISSUE,CX=function(a,b,c){wI.call(this);this.analytics=a;this.errorHandler=b;this.issueFridge=c;this.upvoted=!1;this.voteCount=0;this.isNewVoteButton=!1;this.onVote=new Rw};U(CX,wI);CX.\u0275dir=wI.\u0275dir;
var N2b=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(Qf(),cg(a.destroyed$)).subscribe(function(){},function(b){a.errorHandler.errorHandler(null,b)}),eo(a.analytics,M2b,"light-ixn","vote",a.upvoted))};CX.\u0275fac=function(a){return new (a||CX)(D(QM),D(IK),D(wL))};
CX.\u0275cmp=w({type:CX,selectors:[["b-app-vote-button"]],inputs:{issueId:"issueId",upvoted:"upvoted",voteCount:"voteCount",isNewVoteButton:"isNewVoteButton"},outputs:{onVote:"onVote"},features:[ae],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&&(F(0,"b-vote-button",0),J("onAction",function(){return N2b(b)}),G());a&2&&C("upvoted",b.upvoted)("voteCount",b.voteCount)("isNewVoteButton",
b.isNewVoteButton)},dependencies:[BX],encapsulation:2});
var uJa=function(){return[]},DX=function(a,b,c,d,e,f,h){wI.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 S.ReplaySubject(1);this.issueFetchResponse$=this.providedIssueId$.pipe(bg(function(q){return k.issuesApi.getIssue(q)}));this.editIssue=kn;this.normalizeFormattingModeToJspb=tsa;this.init=new S.ReplaySubject(1)};U(DX,wI);DX.\u0275dir=wI.\u0275dir;
DX.prototype.ngOnInit=function(){var a=this;this.providedIssueId$.next(this.issueId);this.issueFetchResponse$.pipe(cg(this.destroyed$)).subscribe(function(b){a.issue=b.issue;a.events=b.events;a.cdr.markForCheck();a.init.next()})};DX.prototype.priority=function(a){return null==a?"--":CJb.get(a)};DX.prototype.priorityClass=function(a){switch(a){case "P0":return"high p0";case "P1":case "P2":return"high";default:return"low"}};
DX.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 tJa=function(a,b){return Ol(b).includes(a.activeSession.getUserEmail())},oJa=function(a,b){var c;return bf(function(d){if(1==d.nextAddress)return c=String(a.issueId),MJ(a.issueFridge,b,function(e){var f=e.parentIssueIds.indexOf(c);0>f||(e.parentIssueIds.splice(f,1),Object.assign({},e))}),Qt(d,2,3),cf(d,(0,S.firstValueFrom)(a.relationshipService.delete(c,1,b)),3);if(2!=d.nextAddress)return Tt(d),it(a.issueFridge,b),Ut(d,0);St(d);GK(a.butterBar,"Error removing the parent issue.");return d.jumpTo(3)})};
DX.\u0275fac=function(a){return new (a||DX)(D(oK),D(sI,2),D(vH),D(QM),D(bM),D(wL),D(DK))};
DX.\u0275cmp=w({type:DX,selectors:[["b-issue-card"]],inputs:{issueId:"issueId",location:"location",childContextId:"childContextId"},outputs:{init:"init"},features:[Ge([sI]),ae],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,"float-right",3,"timestamp"],[1,"bv2-issue-card-comment"],
[3,"issueId","issueAccessLevel","formattingMode","note"]],template:function(a,b){a&1&&(F(0,"div",0),M(1,vJa,24,17,"ng-container",1),G());a&2&&(B(1),C("ngIf",b.issue&&b.issue.snapshot[0]))},dependencies:[Fx,Cx,Ix,Jx,Kx,SS,BB,sF,qS,AX,JP,TW,CX,zX],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 EX=function(){};EX.\u0275fac=function(a){return new (a||EX)};EX.\u0275mod=uc({type:EX});EX.\u0275inj=gc({imports:[wF,Wx]});
var FX=function(){};FX.\u0275fac=function(a){return new (a||FX)};FX.\u0275mod=uc({type:FX});FX.\u0275inj=gc({imports:[BG,lH,wF,Wx]});
var GX=function(){};GX.\u0275fac=function(a){return new (a||GX)};GX.\u0275mod=uc({type:GX});GX.\u0275inj=gc({imports:[FX]});
var HX=function(){};HX.\u0275fac=function(a){return new (a||HX)};HX.\u0275mod=uc({type:HX});HX.\u0275inj=gc({imports:[Wx,cT,BG,lH,HS,EX,cQ,jX,GX]});
var IX=function(a,b,c,d,e,f,h){wI.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 Rw;this.selectedIssues=[];this.asyncChoices=[];this.choices=[];this.currentQuery="";this.hasLoadedResults=!0;this.searchingForSelf=!1;this.queryInternal="";this.queryChange=new Rw;this.hasSentTrackingEventForSearchByQuery=this.hasSentTrackingEventForSearchById=
!1;this.getTextToPutInInputOnSelect=function(){return k.query}};U(IX,wI);IX.\u0275dir=wI.\u0275dir;IX.prototype.ngOnInit=function(){var a=this;this.queryChange.pipe(Nf(250),cg(this.destroyed$)).subscribe(function(b){a.doSearch(b)})};IX.prototype.ngOnChanges=function(a){a.defaultChoices&&(this.choices=[].concat(u(this.defaultChoices),u(this.asyncChoices)))};
var P2b=function(a){var b=a.split(",").map(function(c){return c.trim()}).filter(function(c){return!!c});if(O2b(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)]},O2b=function(a){return!a.some(function(b){return!!/[^0-9]/.test(b)})};IX.prototype.search=function(a){"string"===typeof a&&(this.query=a)};
IX.prototype.doSearch=function(a){this.currentQuery=a;this.searchingForSelf=!1;if(""===a)Q2b(this);else{var b=P2b(a);1===b.length||1<b.length&&this.allowMultipleIds?R2b(this,b,a):this.searchAsync(a)}};
var Q2b=function(a){a.choices=a.defaultChoices;a.asyncChoices=[];a.hasLoadedResults=!0;S2b(a,[])},S2b=function(a,b){a.selectedIssues=b;a.entrySelect.emit(a.selectedIssues);var c;null==(c=a.autocomplete)||ys(c)},R2b=function(a,b,c){"issue"===a.currentResourceType&&1===b.length&&b[0]===a.currentResourceId?(a.searchingForSelf=!0,Q2b(a)):(a.hasSentTrackingEventForSearchById||(eo(a.analytics,io.ISSUE_PICKER,"search","id"),a.hasSentTrackingEventForSearchById=!0),a.choices=T2b(a,b),a.hasLoadedResults=!1,
KJ(a.issueFridge,b).pipe(Qf(),cg(a.destroyed$)).subscribe(function(d){if(a.currentQuery===c){var e=d.reduce(function(f,h){var k=qa(h.snapshot);return f.set(h.issueId,{resourceId:h.issueId,displayText:k.title,status:k.status,relations:[]})},new Map);Ha(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));S2b(a,a.asyncChoices);a.hasLoadedResults=!0;a.cdr.detectChanges()}},function(){a.asyncChoices=[];a.hasLoadedResults=
!0;a.cdr.detectChanges()}))};
IX.prototype.searchAsync=function(a){var b=this;this.choices=U2b(this,a);this.hasLoadedResults=!1;if(Wi(a))this.hasLoadedResults=!0;else{this.hasSentTrackingEventForSearchByQuery||(eo(this.analytics,io.ISSUE_PICKER,"search","query"),this.hasSentTrackingEventForSearchByQuery=!0);var c=V2b(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 T2b=function(a,b){return a.defaultChoices.filter(function(c){return c.resourceId.toString().startsWith(b[0].toString())})},U2b=function(a,b){return Wi(b)?a.defaultChoices:a.defaultChoices.filter(function(c){return c.displayText.toLowerCase().startsWith(b.toLowerCase())})};
IX.prototype.isLoadingAsyncResults=function(){return!this.hasLoadedResults};IX.prototype.getIssueLink=function(a){return this.paths.editIssue(a.resourceId)};var BJa=function(a){return a.relations.map(function(b){return W2b.get(b)}).filter(function(b){return!!b}).join("/")},V2b=function(a,b){if(0===b.length)return a;b=b.map(function(c){return c.resourceId}).join("|");return a+" -id:("+b+")"};IX.prototype.onEnter=function(a){var b;(null==(b=this.autocomplete)?0:b.panelOpen)&&a.stopPropagation()};
li.Object.defineProperties(IX.prototype,{query:{configurable:!0,enumerable:!0,get:function(){return this.queryInternal},set:function(a){this.queryInternal=a;this.queryChange.emit(a)}}});IX.\u0275fac=function(a){return new (a||IX)(D(sI,2),D(TK),D(wL),D(yX),D(IK),D(QM),D(tP))};
IX.\u0275cmp=w({type:IX,selectors:[["b-issue-picker"]],viewQuery:function(a,b){a&1&&Bf(uN,5);if(a&2){var c;Af(c=Df())&&(b.autocomplete=c.first)}},inputs:{defaultChoices:"defaultChoices",enableAsyncSearch:"enableAsyncSearch",currentResourceId:"currentResourceId",currentResourceType:"currentResourceType",allowMultipleIds:"allowMultipleIds"},outputs:{entrySelect:"entrySelect",queryChange:"queryChange"},features:[Ge([yX,sI]),ae,Cc],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&&(F(0,"div",0),M(1,wJa,3,0,"div",1),F(2,"div",2)(3,"input",3),J("paste",function(d){var e,f;d=null!=(f=null==(e=d.clipboardData)?void 0:e.getData("text"))?f:"";0<P2b(d).length&&""===b.query&&eo(b.analytics,io.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))}),G(),F(4,"mat-autocomplete",
4,5),J("optionActivated",function(d){b.activeChoice=null==d.option?null:d.option.value})("optionSelected",function(d){S2b(b,[null==d.option?null:d.option.value])}),M(6,xJa,3,1,"mat-option",6),M(7,yJa,2,0,"mat-option",7),M(8,CJa,15,13,"mat-option",8),G()()());if(a&2){var c=Ce(5);B(1);C("ngIf",b.searchingForSelf);B(2);C("ngModel",b.query)("matAutocomplete",c);ge("aria-label",0<b.selectedIssues.length?"issue "+b.selectedIssues[0].resourceId+" selected. Change.":"Choose issue");B(1);C("displayWith",b.getTextToPutInInputOnSelect);
B(2);C("ngIf",""!==b.query&&b.isLoadingAsyncResults());B(1);C("ngIf",""!==b.query&&!b.isLoadingAsyncResults()&&0===b.choices.length);B(1);C("ngForOf",b.choices)}},dependencies:[Gx,Cx,Jg,ly,ry,dF,CB,tN,uN,xB,DX,AX,nN,oN,rN,pN,kN,zM],styles:["input[_ngcontent-%COMP%]{width:450px}.bv2-issue-picker-message[_ngcontent-%COMP%]{color:#c5221f;color:var(--text-bad);padding:5px;text-align:center}"]});
var W2b=new Map([["BLOCKED_BY","blocked"],["BLOCKING","blocking"],["DUPLICATE","duplicate"],["CANONICAL","canonical"]]),JX=function(){};JX.\u0275fac=function(a){return new (a||JX)};JX.\u0275mod=uc({type:JX});JX.\u0275inj=gc({imports:[Wx,Gy,KM,wF,BG,wN,HX,EX,YN,WN]});
var KX=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+"+":""},GJa=function(a){if(""!==a.queryRestriction){var b=a.issuePicker.query;a.issuePicker.query=a.isQueryRestricted?b.replace(new RegExp(Qn(a.queryRestriction)+
" ?"),""):a.queryRestriction+" "+b}};KX.prototype.onQueryChange=function(a){this.isQueryRestricted=""!==this.queryRestriction&&a.includes(this.queryRestriction)};KX.\u0275fac=function(a){return new (a||KX)(D(MB),D(XB))};
KX.\u0275cmp=w({type:KX,selectors:[["b-issue-picker-dialog"]],viewQuery:function(a,b){a&1&&Bf(IX,5);if(a&2){var c;Af(c=Df())&&(b.issuePicker=c.first)}},hostBindings:function(a,b){a&1&&J("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&&(F(0,"h1",0),O(1),G(),F(2,"div",1)(3,"div",2),M(4,EJa,2,1,"div",3),M(5,FJa,3,2,"div",3),G(),F(6,"div",4)(7,"div",5),M(8,HJa,2,2,"div",6),F(9,"b-issue-picker",7),J("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)}),G()()()(),F(10,"div",8)(11,"button",9),J("click",function(){return b.dialogRef.close()}),O(12," Cancel "),G(),F(13,"button",10),J("click",function(){return b.dialogRef.close(b.selectedIssues)}),O(14," Confirm "),G()());a&2&&(B(1),Ee(b.data.title),B(3),C("ngIf",1<b.selectedIssues.length),B(1),C("ngIf",1===b.selectedIssues.length),B(3),C("ngIf",!!b.queryRestriction),
B(1),le("bv2-rel-issue-issue-picker-full-width",!!b.queryRestriction),C("defaultChoices",b.data.defaultChoices)("enableAsyncSearch",!0)("currentResourceId",b.data.currentResourceId)("currentResourceType",b.data.currentResourceType)("allowMultipleIds",b.data.allowMultipleIds),B(4),C("disabled",!b.selectedIssues.length))},dependencies:[Gx,Cx,IX,BB,aC,bC,cC,sF],encapsulation:2});var LX=function(a){this.dialog=a};
LX.prototype.open=function(a,b){NB(this.dialog.open(KX,{panelClass:"no-jitter",data:a})).subscribe(function(c){c=void 0===c?[]:c;c=c.map(function(d){return d.resourceId});b(c)})};LX.\u0275fac=function(a){return new (a||LX)(t(ZB))};LX.\u0275prov=dc({token:LX,factory:LX.\u0275fac});var MX=function(){};MX.\u0275fac=function(a){return new (a||MX)};MX.\u0275mod=uc({type:MX});MX.\u0275inj=gc({providers:[LX],imports:[Wx,JX,BG,dC,lH]});
var NX=function(a){this.dialogRef=a;this.reporter="";this.autocompleteActive=!1};NX.prototype.keydown=function(a){"Enter"===a.key&&!this.autocompleteActive&&""!==this.reporter&&this.save()};NX.prototype.cancel=function(){this.dialogRef.close()};NX.prototype.save=function(){this.dialogRef.close(this.reporter)};NX.\u0275fac=function(a){return new (a||NX)(D(MB))};
NX.\u0275cmp=w({type:NX,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&&(F(0,"h1",0),O(1,"Change Reporter"),G(),F(2,"mat-dialog-content")(3,"mat-form-field")(4,"mat-label"),O(5," Reporter "),G(),F(6,"input",1),J("ngModelChange",function(c){return b.reporter=
c})("autocompleteActive",function(c){return b.autocompleteActive=c})("keydown",function(c){return b.keydown(c)}),G()()(),F(7,"mat-dialog-actions")(8,"button",2),J("click",function(){return b.cancel()}),O(9," Cancel "),G(),F(10,"button",3),J("click",function(){return b.save()}),O(11," Save "),G()());a&2&&(B(6),C("bContactAutocomplete","SINGLE")("ngModel",b.reporter),B(4),C("disabled",""===b.reporter))},dependencies:[Jg,ly,ry,BB,aC,bC,cC,oC,lC,qC,WU],encapsulation:2});
var X2b=["addCommentDialog"],OX=function(a,b,c,d,e,f,h,k,q,v){wI.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=v;this.currentUserEmail=this.activeSession.getUserEmail();this.comment=new ZR;this.hotlistIdMatrix=[];this.hotlistChoices=[];this.onSave=new Rw;this.onCreateHotlist=new Rw;this.onLoadHotlist=new Rw;this.externalWarnings=[];this.controllerName="baseControls"};
U(OX,wI);OX.prototype.hasSelectedIssues=function(){return 0<this.getSelectedIssues().length};var Y2b=function(a){return a.getSelectedIssues().some(function(b){return!b.isRead})},IJa=function(a){return Y2b(a)?"Mark as read":"Mark as unread"},Rp=function(a){return a.getSelectedIssues().map(function(b){return b.issueId})};
OX.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 Z2b=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$1687:c.$jscomp$loop$prop$id$1687},d=b.next())c.$jscomp$loop$prop$id$1687=d.value,a.componentActions.get(c.$jscomp$loop$prop$id$1687).then(function(e){if(a.activeSession.isInternalSession()&&qX(e)||wH(a.activeSession)&&rX(e)){var f,h=t2b(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$1687+".")}}(c))}};
OX.prototype.bulkEdit=function(a){switch(a){case "ASSIGNEE":PX(this,null,0);break;case "COMPONENT":$2b(this);break;case "VERIFIER":PX(this,null,1);break;case "REPORTER":a3b(this);break;case "CHANGELIST":QX(this,"changelists","Changelists",!0);break;case "CUSTOM_FIELDS":b3b(this);break;case "FOUND_IN":QX(this,"foundInVersion","Found In");break;case "VERIFIED_IN":QX(this,"verifiedInVersion","Verified In");break;case "TARGETED_TO":QX(this,"targetedToVersion","Targeted To");break;case "COMMENT":c3b(this);
break;case "CC":QX(this,"ccs","CCs");break;default:this.$log.error("unsupported bulk edit field: "+a)}};
OX.prototype.quickBulkEdit=function(a){switch(a.field){case "PRIORITY":(a=this.constants.protoIssuePrioritiesEnumStrings.get(a.newValue))&&RX(this,"priority",a);break;case "SEVERITY":(a=this.constants.protoIssueSeveritiesEnumStrings.get(a.newValue))&&RX(this,"severity",a);break;case "STATUS":(a=xBb(this.constants.protoIssueStatusesEnumStrings.get(a.newValue)))&&PX(this,Bn[a],"DUPLICATE"===a?3:void 0);break;case "TYPE":(a=this.constants.protoIssueTypesEnumStrings.get(a.newValue))&&RX(this,"type",a);
break;case "IS_ARCHIVED":RX(this,"isArchived",""+a.newValue);break;case "IN_PROD":RX(this,"inProd",""+a.newValue);break;case "CC":RX(this,"ccs",this.currentUserEmail,a.newValue?"ADD":"REMOVE");break;default:this.$log.error("unsupported bulk edit field: "+a.field)}};
OX.prototype.bulkEditIssueRelation=function(a){switch(a.issueRelation){case "BLOCKED_BY":a.isMarking?SX(this,{actionType:"ADD",fieldName:"blockedByIssueId",title:"Mark all selected issues as blocked by:"}):SX(this,{actionType:"REMOVE",fieldName:"blockedByIssueId",title:"Unmark all selected issues as blocked by:"});break;case "BLOCKING":a.isMarking?SX(this,{actionType:"ADD",fieldName:"blockingIssueId",title:"Mark all selected issues as blocking:"}):SX(this,{actionType:"REMOVE",fieldName:"blockingIssueId",
title:"Unmark all selected issues as blocking:"});break;case "PARENT":a.isMarking?SX(this,{actionType:"ADD",fieldName:"parentId",title:"Mark all selected issues as children of:"}):SX(this,{actionType:"REMOVE",fieldName:"parentId",title:"Unlink all selected issues from this parent:"});break;case "DUPLICATE":PX(this,Bn.DUPLICATE,3);break;default:this.$log.error("unsupported issue relation: "+a.issueRelation)}};OX.prototype.bulkMarkIssueRead=function(){var a=Y2b(this);RX(this,"readState",a?"true":"")};
var RX=function(a,b,c,d){var e={fieldName:b,value:c};void 0!==d&&(e.actionType=d);var f=Rp(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&&KR(a.issueTypeDialog,"VULNERABILITY",d,function(){}),"PRIVACY_ISSUE"===c&&KR(a.issueTypeDialog,"PRIVACY_ISSUE",d,function(){}))},PX=function(a,b,c){a.hasSelectedIssues()&&(Z2b(a),a.stateModal.showDialog(a.getSelectedIssues(),
b,c))},d3b=function(a){var b=a.onSave,c=b.emit,d=Rp(a),e=a.stateModal.issueEditBuilder;a=[];e.issueState||BIa(e);e=r(PIa(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}]})},a3b=function(a){a.hasSelectedIssues()&&(Z2b(a),NB(a.matDialog.open(NX,{width:"400px"})).pipe(cg(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&RX(a,"reporter",b)}),a.hotkeys.pause())},
QX=function(a,b,c,d){d=void 0===d?!1:d;a.hasSelectedIssues()&&(NB(a.matDialog.open(uX,{width:"400px",data:{fieldDisplayName:c}})).pipe(cg(a.destroyed$)).subscribe(function(e){a.hotkeys.unpause();e&&e3b(a,b,e.addItems,e.removeItems,d)}),a.hotkeys.pause())},e3b=function(a,b,c,d,e){e=void 0===e?!1:e;c=Vi(c);d=Vi(d);var f=[],h=!["foundInVersion","targetedToVersion","verifiedInVersion"].includes(b),k=function(q){return Si(q,h).map(function(v){return v.trim()})};Wi(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"}}))));Wi(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:Rp(a),actions:f}]})},$2b=function(a){a.hasSelectedIssues()&&(NB(a.matDialog.open(tX,{width:"600px",position:{top:"100px"},panelClass:"overflow-visible-dialog-panel"})).pipe(cg(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&(a.onSave.emit({bulkEditOps:[{issueIds:Rp(a),
actions:[{fieldName:"componentId",value:String(b.componentId)}]}]}),eo(a.analytics,a.controllerName,"bulkMove"))}),a.hotkeys.pause())},f3b=function(a){a.hasSelectedIssues()&&(NB(a.matDialog.open(sX,{width:"600px",data:{issuesToFlag:a.getSelectedIssues()}})).pipe(cg(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&(eo(a.analytics,a.controllerName,"bulkFlagAsSpam"),RX(a,"deletionReason","ABUSE"))}),a.hotkeys.pause())},c3b=function(a){a.hasSelectedIssues()&&a.addCommentDialog&&(a.addCommentDialogRef=
a.matDialog.open(a.addCommentDialog,{panelClass:"no-jitter",minWidth:512,maxWidth:512}),NB(a.addCommentDialogRef).pipe(cg(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&EQb(a.comment)&&RX(a,"comment",a.comment.value);a.comment.reset()}),a.hotkeys.pause(),Z2b(a))},RJa=function(a){var b;null==(b=a.addCommentDialogRef)||b.close(!0)},b3b=function(a){a.hasSelectedIssues()&&NB(a.matDialog.open(bQ,{data:a.getSelectedIssues(),width:"500px"})).pipe(cg(a.destroyed$)).subscribe(function(b){b&&(a.onSave.emit({bulkEditOps:b}),
eo(a.analytics,a.controllerName,"bulkCustomField"))})};
OX.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:Rp(this),actions:a}]}),eo(this.analytics,this.controllerName,"applyHotlists",
"numHotlists",e))};var SX=function(a,b){var c=b.actionType,d=b.fieldName;NB(a.matDialog.open(KX,{data:{title:b.title}})).pipe(cg(a.destroyed$)).subscribe(function(e){a.hotkeys.unpause();if(null==e?0:e.length)e=e[0].resourceId,a.onSave.emit({bulkEditOps:[{issueIds:Rp(a),actions:[{fieldName:d,value:String(e),actionType:c}]}]})});a.hotkeys.pause()};OX.\u0275fac=function(a){return new (a||OX)(D(sI),D(vH),D(QM),D(bJ),D(XH),D(zT),D(JR),D(mT),D(ZB),D(HK))};
OX.\u0275dir=w({type:OX,viewQuery:function(a,b){a&1&&(Bf(X2b,5),Bf(vX,5),Bf(pX,5));if(a&2){var c;Af(c=Df())&&(b.addCommentDialog=c.first);Af(c=Df())&&(b.hotlistPicker=c.first);Af(c=Df())&&(b.stateModal=c.first)}},inputs:{hotlistChoices:"hotlistChoices"},outputs:{onSave:"onSave",onCreateHotlist:"onCreateHotlist",onLoadHotlist:"onLoadHotlist"},features:[ae]});
var TX=function(){};TX.\u0275fac=function(a){return new (a||TX)};TX.\u0275mod=uc({type:TX});TX.\u0275inj=gc({providers:[{provide:d_b,useFactory:function(){return new a_b}}]});
var UX=function(){};UX.\u0275fac=function(a){return new (a||UX)};UX.\u0275mod=uc({type:UX});UX.\u0275inj=gc({imports:[Wx,TX]});
var VX=function(){};VX.\u0275fac=function(a){return new (a||VX)};VX.\u0275mod=uc({type:VX});VX.\u0275inj=gc({providers:[{provide:c_b,useFactory:$V}],imports:[Wx,BG,wF,lH,UX,KM]});
var WX=function(){};WX.\u0275fac=function(a){return new (a||WX)};WX.\u0275mod=uc({type:WX});WX.\u0275inj=gc({imports:[Wx,nX,bI,lH,xO,jX,VX,BG,wF]});
var XX=function(){};XX.\u0275fac=function(a){return new (a||XX)};XX.\u0275mod=uc({type:XX});XX.\u0275inj=gc({imports:[Wx,dC,cT,Gy,BG,bI,mF,XU,WX]});
var YX=function(){};YX.\u0275fac=function(a){return new (a||YX)};YX.\u0275mod=uc({type:YX});YX.\u0275inj=gc({imports:[Wx,mF,BG,rC,Gy,zB,lH,cI,SP,bI]});
var ZX=function(a,b,c,d,e,f,h,k,q,v){OX.call(this,a,b,c,d,e,f,h,k,q,v);this.panels=[];this.controllerName="dashboardControls"};U(ZX,OX);ZX.\u0275dir=OX.\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});Ha(a,null,function(b){return b.issueId.toString()});return a};
ZX.\u0275fac=function(a){return new (a||ZX)(D(sI,2),D(vH),D(QM),D(bJ),D(XH),D(zT),D(JR),D(mT),D(ZB),D(HK))};
ZX.\u0275cmp=w({type:ZX,selectors:[["b-dashboard-controls"]],inputs:{panels:"panels"},features:[Ge([sI]),ae,Cc],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&&(M(0,JJa,1,1,"b-app-bar-bulk-edit-menus",0),M(1,NJa,1,2,"b-copy-issue-id-button",1),M(2,OJa,2,2,"div",2),F(3,"b-app-bar-more-menu",3),J("flagAsSpamClicked",function(){return f3b(b)}),G(),F(4,"b-state-modal",4),J("save",
function(){return d3b(b)})("close",function(){return b.hotkeys.unpause()}),G(),M(5,SJa,10,5,"ng-template",null,5,Jf));a&2&&(C("ngIf",b.hasSelectedIssues()),B(1),C("ngIf",b.hasSelectedIssues()),B(1),C("ngIf",b.hasSelectedIssues()),B(1),C("showFlagIssuesAsSpam",b.hasSelectedIssues()),B(1),C("externalWarnings",b.externalWarnings))},dependencies:[$H,ZH,oX,Gx,Cx,SS,iT,vX,BB,$B,aC,bC,cC,pX],styles:["[_nghost-%COMP%] { display: flex; align-items: center; }"]});var $X=function(){};
$X.\u0275fac=function(a){return new (a||$X)};$X.\u0275mod=uc({type:$X});$X.\u0275inj=gc({imports:[dI,xO,WX,Wx,cT,lT,YX,bI,BG,dC,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)},g3b=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)},h3b=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=Ql(c.assigneeUser)||"";this.verifier=Ql(c.verifierUser)||"";this.cc=Jqa(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 iJ(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 iJ(c.typedDefaultValue):new iJ({customFieldId:b}))},j3b=function(a,b){b.name=a.name;b.description=a.description;
var c=b.snapshot||{};i3b(a.type)?delete c.type:c.type=a.type;i3b(a.priority)?delete c.priority:c.priority=a.priority;i3b(a.severity)?delete c.severity:c.severity=a.severity;c.assigneeUser=Ul(a.assignee);c.verifierUser=Ul(a.verifier);c.ccUsers=a.cc.map(function(f){return Ul(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};
h3b.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:mh(c,"Unexpected custom field type: "+c)}}this.dirty=!0};h3b.prototype.isDirty=function(){return this.dirty};var i3b=function(a){return Wi(a)||"--"===a},tKa=function(a,b){a.cc=b.split(",").map(function(c){return c.trim()});a.dirty=!0},k3b={value:"--",displayText:"--"};
var l3b=new ui("M/d/yyyy"),bY=function(a){this.dateFormatter=a;this.boundValueChange=new Rw;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=Mi(this.boundValue);else{var b;a=null!=(b=Mk(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=l3b.format(a);else{var d;a=null!=(d=qFb(l3b.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)(D(HP))};
bY.\u0275cmp=w({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&&(F(0,"b-date-time-input",0),J("valueChange",function(c){return b.change(c)}),G());a&2&&C("required",b.isRequired)("value",b.googDate)("customFormId",
b.inputId)("customAriaLabelledBy",b.ariaLabelledBy)},dependencies:[NP],encapsulation:2});
var m3b={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"},n3b=Object.assign({},m3b,{EDIT_ISSUE:function(a){return"ng2/issues/"+a}}),o3b=new ld("routes",{providedIn:"root",factory:function(){return m3b}}),cY=function(a){this.routes=a};g=cY.prototype;g.createIssue=function(a){return Sp(this.routes.CREATE_ISSUE,{params:a})};g.editIssue=function(a,b){return Up(this.routes.EDIT_ISSUE(a),{id:a,params:b})};g.listIssues=function(a){return Sp(this.routes.LIST_ISSUES,{params:a})};
g.viewSavedSearch=function(a){return Up(this.routes.VIEW_SAVEDSEARCH(a),{id:a,params:void 0})};g.viewHotlist=function(a){return Up(this.routes.VIEW_HOTLIST(a),{id:a})};g.editHotlist=function(a){return Sp(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 Up(this.routes.VIEW_BOOKMARK_GROUP(a),{id:a})};
g.editBookmarkGroup=function(a){return Sp(this.routes.EDIT_BOOKMARK_GROUP(a),{id:a})};g.editSavedSearch=function(a){return Sp(this.routes.EDIT_SAVED_SEARCH(a),{id:a})};g.dashboard=function(a){return Sp(this.routes.DASHBOARD(a),{id:a})};g.issuesCsvAction=function(a,b,c,d){b=this.toApiSortParamValue(b);c=TJa(c);return cE("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=TJa(c))&&(c="position,"+c);return cE(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 Sp(this.routes.LIST_COMPONENTS,{params:void 0})};
g.viewComponent=function(a,b){return Up(this.routes.VIEW_COMPONENT(a),{id:a,tab:b})};g.manageComponent=function(a,b){return Up(this.routes.MANAGE_COMPONENT(a),{id:a,tab:b})};g.manageComponentAcl=function(a){return Up(this.routes.MANAGE_COMPONENT_ACL(a),{id:a,tab:void 0})};g.createComponent=function(a){return Sp(this.routes.CREATE_COMPONENT,{params:a})};g.editComponent=function(a,b){return Sp(this.routes.EDIT_COMPONENT(a),{id:a,tab:b})};g.createSlo=function(){return Sp(this.routes.CREATE_SLO,{params:void 0})};
g.editSlo=function(a){return Sp(this.routes.EDIT_SLO(a),{id:a,tab:void 0})};g.listSlos=function(){return Sp(this.routes.LIST_SLOS,{params:void 0})};g.listHotlists=function(){return this.routes.LIST_HOTLISTS};cY.\u0275fac=function(a){return new (a||cY)(t(o3b))};cY.\u0275prov=dc({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 Rw};dY.prototype.getAriaLabel=function(a){return"hotlist: "+a.name};dY.\u0275fac=function(a){return new (a||dY)(D(cY))};
dY.\u0275cmp=w({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&&M(0,VJa,9,11,"ng-container",0);a&2&&C("ngIf",b.hotlist)},dependencies:[Cx,nN,rN,hN,dF,BB],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:.75rem;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 p3b=["input"],q3b=function(a){return{enterDuration:a}},r3b=new ld("mat-radio-default-options",{providedIn:"root",factory:WJa}),s3b=0,t3b={provide:Ex,useExisting:bc(function(){return eY}),multi:!0},u3b=function(a,b){this.source=a;this.value=b},v3b=new ld("MatRadioGroup"),fY=function(a){this._changeDetector=a;this._value=null;this._name="mat-radio-group-"+s3b++;this._selected=null;this._isInitialized=!1;this._labelPosition="after";this._required=this._disabled=!1;this._controlValueAccessorChangeFn=
function(){};this.onTouched=function(){};this.change=new Rw};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 u3b(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()};
li.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=Vg(a);this._markRadiosForCheck()}},required:{configurable:!0,enumerable:!0,get:function(){return this._required},set:function(a){this._required=Vg(a);this._markRadiosForCheck()}}});
fY.\u0275fac=function(a){return new (a||fY)(D(vx))};fY.\u0275dir=w({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=ed(eY)))(b||eY)}}();
eY.\u0275dir=w({type:eY,selectors:[["mat-radio-group"]],contentQueries:function(a,b,c){a&1&&Cf(c,gY,5);if(a&2){var d;Af(d=Df())&&(b._radios=d)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[Ge([t3b,{provide:v3b,useExisting:eY}]),ae]});
var w3b=ni(pi(function(a){this._elementRef=a})),hY=function(a,b,c,d,e,f,h,k){var q=w3b.call(this,b)||this;q._changeDetector=c;q._focusMonitor=d;q._radioDispatcher=e;q._providerOverride=h;q._uniqueId="mat-radio-"+ ++s3b;q.id=q._uniqueId;q.change=new Rw;q._checked=!1;q._value=null;q._removeUniqueSelectionListener=function(){};q.radioGroup=a;q._noopAnimations="NoopAnimations"===f;k&&(q.tabIndex=Yg(k,0));q._removeUniqueSelectionListener=e.listen(function(v,y){v!==q.id&&y===q.name&&(q.checked=!1)});return q};
U(hY,w3b);g=hY.prototype;g.focus=function(a,b){b?Tz(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 u3b(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)}};
li.Object.defineProperties(hY.prototype,{checked:{configurable:!0,enumerable:!0,get:function(){return this._checked},set:function(a){a=Vg(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(Vg(a))}},
required:{configurable:!0,enumerable:!0,get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(a){this._required=Vg(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(){pe()};
hY.\u0275dir=w({type:hY,viewQuery:function(a,b){a&1&&Bf(p3b,5);if(a&2){var c;Af(c=Df())&&(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:[ae]});
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)(D(v3b,8),D(pd),D(vx),D(Sz),D(FA),D(ew,8),D(r3b,8),Zc("tabindex"))};
gY.\u0275cmp=w({type:gY,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(a,b){a&1&&J("focus",function(){return b._inputElement.nativeElement.focus()});a&2&&(ge("tabindex",null)("id",b.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),le("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:[ae],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&&(xe(),F(0,"label",0,1)(2,"span",2),H(3,"span",3)(4,"span",4),F(5,"input",5,6),J("change",function(d){return b._onInputInteraction(d)})("click",function(d){return b._onInputClick(d)}),G(),F(7,"span",7),H(8,"span",8),G()(),F(9,"span",9)(10,"span",10),O(11,"\u00a0"),G(),ye(12),G()());if(a&2){var c=Ce(1);ge("for",b.inputId);B(5);
C("id",b.inputId)("checked",b.checked)("disabled",b.disabled)("required",b.required);ge("name",b.name)("value",b.value)("aria-label",b.ariaLabel)("aria-labelledby",b.ariaLabelledby)("aria-describedby",b.ariaDescribedby);B(2);C("matRippleTrigger",c)("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Ie(17,q3b,b._noopAnimations?0:150));B(2);le("mat-radio-label-before","before"==b.labelPosition)}},dependencies:[uB],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 x3b=["saveBeforeClosingDialog"],y3b=["deleteDialog"],nKa=function(){return[]},iY=function(a,b,c,d,e,f,h,k,q,v,y,E,I){wI.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=v;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=$Xb;this.customFieldIds=Object.create(null);this.issueTypeChoices=z3b(this);this.priorityChoices=A3b(this);this.severityChoices=B3b(this)};U(iY,wI);iY.\u0275dir=wI.\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([C3b(this),D3b(this)]).finally(function(){E3b(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)});Ka(this.selectedHotlists,function(c,d){return fu(c.name,d.name)})};g.removeHotlist=function(a){ya(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;eo(this.analytics,"editTemplate","createHotlist");FK(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){FK(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;Zg(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],ua(d,e)||d.push(e)):!d&&f&&ya(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&&ya(this.hotlists,b);this.hotlistMap[a.hotlistId]=a;this.hotlists.push(a)};
var z3b=function(a){var b=a.constants.editIssueTypes.map(function(c){return{value:c,displayText:yBb(c),altText:a.constants.issueTypesShortDescriptions.get(c)}});return[k3b].concat(b)};iY.prototype.getDateValue=function(a){return a};iY.prototype.getListFieldType=function(a){return a};
var qKa=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},fKa=function(a){"VULNERABILITY"===a.currentTemplateRow.issueType||"PRIVACY_ISSUE"===a.currentTemplateRow.issueType?KR(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)},A3b=function(a){return[k3b].concat(a.constants.priorities.map(function(b){return{value:b,displayText:b}}))},B3b=function(a){return[k3b].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 Wp=function(a){a.currentTemplate=null;a.currentTemplateRow=null;a.currentIndex=-1;jY(a)},$Ja=function(a,b){var c=a.currentIndex;F3b(a,function(){b.index==c?Wp(a):a.openEditor(b.index)})},G3b=function(a){a.templateHotlistIds.push([]);F3b(a,function(){a.openEditor()})},Vp=function(a,b){return 0<=b.index&&b.index==a.currentIndex},uKa=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){FK(a.butterBar,
q.name?'Template "'+q.name+'" created.':"Template created.");eo(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){FK(a.butterBar,q.name?'Template "'+q.name+'" updated.':"Template updated.");eo(a.analytics,"template","update");a.templates[e]=q;Wp(a)}}a.currentTemplate.hotlistId=a.templateHotlistIds[a.hotlistPickerIndex];j3b(a.currentTemplate,c);FK(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=Fm(q);GK(a.butterBar,q?"Error "+b+" template: "+q:"There was an error "+b+" the template.",0)})},aKa=function(a,b){NB(a.matDialogService.open(a.deleteDialog,{data:b})).pipe(cg(a.destroyed$)).subscribe(function(c){c&&
H3b(a,b)})},H3b=function(a,b){var c=b.index;xa(a.templateHotlistIds,c);b=a.templates[c];0>c||b.default?Promise.resolve():(FK(a.butterBar,"Deleting..."),a.templatesApi.delete(b.componentId,b.templateId).then(function(){a.appEvents.templateModified.next(String(a.componentId));FK(a.butterBar,"Deleted template");eo(a.analytics,"template","delete");a.templates.splice(c,1);a.currentIndex==c?Wp(a):jY(a);a.cdr.detectChanges()}).catch(function(){GK(a.butterBar,"Error while deleting template")}))},J3b=function(a,
b){b?uKa(a).then(function(){I3b(a);a.cdr.detectChanges()}):I3b(a)},bKa=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=K3b(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 L3b(this,this.templates[this.currentIndex]).then(function(d){b.currentTemplate=K3b(b,d);b.hotlistPickerIndex=b.currentIndex;b.updateSelectedHotlists();
jY(b);b.cdr.detectChanges();var e;null==(e=document.getElementById("template-name"))||e.focus()})};
var L3b=function(a,b){return a.templatesApi.get(b.componentId,b.templateId||0)},F3b=function(a,b){a.currentTemplate&&a.currentTemplate.isDirty()?(a.afterSaveCheckFunc=b,M3b(a)):b()},M3b=function(a){NB(a.matDialogService.open(a.saveBeforeClosingDialog,{data:a.currentTemplateRow})).pipe(cg(a.destroyed$)).subscribe(function(b){void 0!==b&&J3b(a,b)})},I3b=function(a){var b=a.afterSaveCheckFunc;a.afterSaveCheckFunc=null;b&&b()},K3b=function(a,b){return new h3b(a.customFieldIds,b)},C3b=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 g3b(c,"TEXT"==c.type?"1":"2"))}a.cdr.detectChanges()}).catch(function(){GK(a.butterBar,"Unable to load custom fields")}):Promise.resolve()},D3b=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(){GK(a.butterBar,"Unable to load templates")})},E3b=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}},N3b=function(a,b,c){return L3b(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})},ZJa=function(a,b){if(a.defaultIndex!==b){a.defaultIndex=b;var c="(no template)";0<=b&&(b=a.templates[b],c=b.name,Wi(Vi(c))&&(c="(unnamed template)"),b.default||(b=N3b(a,b,function(d){d.default=!0}),FK(a.butterBar,"Changing default template..."),b.then(function(){FK(a.butterBar,"Changed default template to "+c)},function(d){GK(a.butterBar,"Error while changing default message"+(Em(d)?": "+Fm(d):
"."))}),eo(a.analytics,"template","changeDefault")))}};iY.\u0275fac=function(a){return new (a||iY)(D(ZB),D(sI,2),D(kL),D(VJ),D(eL),D(XH),D(TK),D(DK),D(QM),D(JR),D(zT),D(rP),D(MK))};
iY.\u0275cmp=w({type:iY,selectors:[["b-edit-templates"]],viewQuery:function(a,b){a&1&&(Bf(x3b,5),Bf(y3b,5));if(a&2){var c;Af(c=Df())&&(b.saveBeforeClosingDialog=c.first);Af(c=Df())&&(b.deleteDialog=c.first)}},inputs:{componentId:"componentId",supportCustomFields:"supportCustomFields"},features:[Ge([sI]),ae],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&&(F(0,"div")(1,"div",0),O(2," A template is a set of default values for new issues created in this component. "),F(3,"a",1),O(4,"Learn more"),G()(),F(5,"table",2)(6,"tr")(7,"th"),O(8,"TEMPLATE"),G(),F(9,"th",3),O(10,"DEFAULT"),G(),H(11,"th",3)(12,"th",3),G(),M(13,wKa,3,2,"tr",4),G(),F(14,"div",5)(15,"b-button",6),J("onAction",function(){return G3b(b)}),O(16," Create New "),
G()(),M(17,xKa,7,3,"ng-template",null,7,Jf),M(19,yKa,9,4,"ng-template",null,8,Jf),G());a&2&&(B(3),C("href","https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/templates",Md),B(10),C("ngForOf",b.templateRows))},dependencies:[wO,Gx,Cx,Ix,Jx,Kx,$U,Jg,ty,ly,ry,dY,vX,bY,uV,BB,$B,bC,cC,gY,HT,WU,sF,zH,iF,gF,lF],encapsulation:2});
var kY=function(){};kY.\u0275fac=function(a){return new (a||kY)};kY.\u0275mod=uc({type:kY});kY.\u0275inj=gc({imports:[Wx,kQ]});
var lY=function(a,b){var c=this;this.hotlists=a;this.userAccess=b;this.id$=new S.ReplaySubject(1);this.removeHotlist=new Rw;this.removable=!0;this.hotlist$=this.id$.pipe(bg(function(d){return c.hotlists.watch(d)}));this.isDisabled$=(0,S.combineLatest)([this.id$,this.id$.pipe(bg(function(d){return c.hotlists.isSaving$(d)}))]).pipe(R(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(bg(function(b){return sK(a.userAccess,"appender","hotlists/"+b)})):(0,S.of)(this.removable)};li.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)(D(qL),D(rK))};
lY.\u0275cmp=w({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&&(F(0,"b-hotlist-chip",0),J("removeHotlist",function(){null==b.idInternal?Sk("Missing id"):b.removeHotlist.emit()}),P(1,"async"),P(2,"async"),P(3,"async"),G());if(a&2){var c;C("hotlist",Q(1,3,b.hotlist$))("disabled",!0===Q(2,5,b.isDisabled$))("removable",null!==
(c=Q(3,7,b.removable$))&&void 0!==c?c:!1)}},dependencies:[dY,Px],encapsulation:2,changeDetection:0});
var mY=function(){};mY.\u0275fac=function(a){return new (a||mY)};mY.\u0275mod=uc({type:mY});mY.\u0275inj=gc({imports:[Wx,YN,TN,wF,BG]});
var nY=function(){};nY.\u0275fac=function(a){return new (a||nY)};nY.\u0275mod=uc({type:nY});nY.\u0275inj=gc({imports:[yB,gB,gB]});
var oY=function(){};oY.\u0275fac=function(a){return new (a||oY)};oY.\u0275mod=uc({type:oY});oY.\u0275inj=gc({imports:[xO,Wx,aV,Gy,mY,YX,kY,vV,BG,dC,nY,IT,KM,XU,YS,AB,lH,bI,mF]});
var pY=function(a,b,c,d){this.currentSearch=b;this.analytics=c;this.domSafe=d;this.enableEstado=xH(a,"enableEstado")};pY.prototype.openInEstado=function(){eo(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(vH),t(ON),t(QM),t(tP))};pY.\u0275prov=dc({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 O3b(void 0,this)};var O3b=function(a,b){if(null!=b){var c={metric:n(p(b,1)),matcher:n(p(b,2)),dayType:n(p(b,4)),objective:Pu(a,m(b,jm,3)),businessDays:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}};
var P3b=[1,2,3],iRa=new Map([[1,"Assignment"],[2,"Response"],[3,"Closure"]]),Q3b=new Map([["name","Name"],["description","Description"],["parentId","Parent ID"],["elements","SLO rules"]]),mRa=new Map([[0,"Calendar"],[1,"Calendar"],[2,"Business"]]);
var Ml=function(a){Z.call(this,a)};U(Ml,Z);Ml.prototype.getComponentId=function(){return ej(this,1)};Ml.prototype.setComponentId=function(a){return Uk(this,1,a)};Ml.prototype.getEffectiveSloEditPolicy=function(){return X(this,2,0)};Ml.prototype.toObject=function(){return R3b(this)};var R3b=function(a){if(null!=a)return{componentId:ej(a,1),effectiveSloEditPolicy:X(a,2,0)}};
var S3b=function(a){Z.call(this,a)};U(S3b,Z);S3b.prototype.toObject=function(){var a=null!=this?{componentSloEditPolicy:R3b(m(this,Ml,1))}:void 0;return a};S3b.messageId="b.GetComponentSloEditPolicyResponse";
var rY=function(a){Z.call(this,a)};U(rY,Z);rY.prototype.getTeamSloEditPolicy=function(){return m(this,qJ,1)};rY.prototype.toObject=function(){var a=null!=this?{teamSloEditPolicy:NFb(this.getTeamSloEditPolicy())}:void 0;return a};rY.messageId="b.GetTeamSloEditPolicyResponse";
var sY=function(a){Z.call(this,a,-1,T3b)};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 ej(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 dj(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 Xs=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 T3b=[6,7];sY.prototype.toObject=function(){return U3b(void 0,this)};
var U3b=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:Cb(Xs(b),O3b,a),effectiveElementsList:Cb(rb(b,qY,7),O3b,a),isArchived:n(To(b,8)),alertState:n(p(b,9))};a&&(c.$jspbMessageInstance=b);return c}};sY.messageId="b.SloState";
var W3b=function(a){Z.call(this,a,-1,V3b)};U(W3b,Z);var V3b=[1];W3b.prototype.toObject=function(){var a=null!=this?{slosList:Cb(rb(this,sY,1),U3b)}:void 0;return a};W3b.messageId="b.SloSearchResponse";
var tY=function(a){Z.call(this,a)};U(tY,Z);tY.prototype.getTeamSloEditPolicy=function(){return m(this,qJ,1)};tY.prototype.toObject=function(){var a=null!=this?{teamSloEditPolicy:NFb(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:W3b}).pipe(R(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})};uY.\u0275fac=function(a){return new (a||uY)(t(vH),t(nI))};uY.\u0275prov=dc({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,S.firstValueFrom)(this.observableSlosService.get(a)))};g.getOwnedSlos=function(){return(0,S.firstValueFrom)(this.observableSlosService.getOwnedSlos())};g.search=function(a){return(0,S.firstValueFrom)(this.observableSlosService.search(a))};g.create=function(a){return(0,S.firstValueFrom)(this.observableSlosService.create(a))};g.update=function(a){return(0,S.firstValueFrom)(this.observableSlosService.update(a))};
vY.\u0275fac=function(a){return new (a||vY)(t(bL),t(uY))};vY.\u0275prov=dc({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 X3b.has(a)?X3b.get(a):"slo-status-no-data"};
var Y3b=function(a,b,c){a.iconName=a.getIconName(b);c=null!==c?rOb(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:Sk("unknown status type: "+b)}};
wY.prototype.ngOnChanges=function(){var a=Date.now()/1E3;if(this.sloBounds&&dS(this.sloBounds)){var b=this.sloBounds.getStartTime().getSeconds(),c=this.sloBounds.getTargetTime().getSeconds();(b=c-b)?this.objectiveDisplayText=rOb(1E3*b):this.objectiveDisplayText=null;b=this.sloBounds;dS(b)&&b.hasEndTime()&&0!==b.getEndTime().getSeconds()&&b.getEndTime().getSeconds()<=Date.now()/1E3?(c=this.sloBounds.getEndTime().getSeconds(),Y3b(this,"COMPLETED",a-c)):c<a?Y3b(this,"OUT_OF_SLO",a-c):(b=this.sloStatusHelpersService.isSloSnoozed(this.sloSnoozeUntil),
a=c-a,Y3b(this,259200<a?b?"SNOOZED_HEALTHY":"HEALTHY":b?"SNOOZED_NEAR":"NEAR",a))}else Y3b(this,"NO_DATA",null),this.objectiveDisplayText=null};wY.\u0275fac=function(a){return new (a||wY)(D(cS),D(IP))};
wY.\u0275cmp=w({type:wY,selectors:[["b-slo-time-indicator"]],inputs:{sloBounds:"sloBounds",sloSnoozeUntil:"sloSnoozeUntil",includeSnoozeDetails:"includeSnoozeDetails",sloMetricDescription:"sloMetricDescription",includeObjective:"includeObjective"},features:[Cc],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&&(H(0,"mat-icon",0),F(1,"span",1)(2,"span",2),O(3),M(4,zKa,2,1,"span",3),G()());a&2&&(C("ngClass",b.iconName)("svgIcon",
b.iconName),ge("aria-label","--"===b.timeDisplayText?"No SLO data":""),B(3),De("",b.timeDisplayText," "),B(1),C("ngIf",b.includeObjective&&b.objectiveDisplayText))},dependencies:[Fx,Cx,dF],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 X3b=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(){Z3b(this);this.hasSlo=!!this.sloStatus&&KQb(this.sloStatus)};xY.prototype.ngOnChanges=function(){Z3b(this)};var Z3b=function(a){a.sloStatus&&(a.assignmentSlo=$3b(Zk(a.sloStatus.getAssignmentBounds())),a.responseSlo=$3b(Zk(a.sloStatus.getResponseBounds())),a.closureSlo=$3b(Zk(a.sloStatus.getClosureBounds())))};xY.prototype.isSloSnoozed=function(){return this.sloStatusHelpersService.isSloSnoozed(this.sloSnoozeUntil)};
var $3b=function(a){if(dS(a))return a};xY.\u0275fac=function(a){return new (a||xY)(D(cS))};
xY.\u0275cmp=w({type:xY,selectors:[["b-slo-status-summary"]],inputs:{sloStatus:"sloStatus",sloSnoozeUntil:"sloSnoozeUntil",includeNoSlo:"includeNoSlo",onlyShowMetric:"onlyShowMetric"},features:[Cc],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&&(M(0,AKa,2,3,"div",0),M(1,BKa,2,3,"div",0),M(2,CKa,2,3,"div",0));a&2&&(C("ngIf",(b.includeNoSlo||b.assignmentSlo)&&(!b.onlyShowMetric||"ASSIGNMENT"==b.onlyShowMetric)),B(1),C("ngIf",(b.includeNoSlo||b.responseSlo)&&(!b.onlyShowMetric||"RESPONSE"==b.onlyShowMetric)),B(1),C("ngIf",(b.includeNoSlo||b.closureSlo)&&(!b.onlyShowMetric||"CLOSURE"==b.onlyShowMetric)))},dependencies:[Cx,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=dS(a.getAssignmentBounds());break a;case "RESPONSE":a=dS(a.getResponseBounds());break a;case "CLOSURE":a=dS(a.getClosureBounds());break a;default:a=KQb(a)}this.hasSlo=a;"0"!==this.sloId?(this.editSloLink=this.paths.editSlo(this.sloId),a4b(this)):this.editSloLink=null};
yY.prototype.trackOpenSlo=function(){eo(this.analytics,io.EDIT_SLO,"open","fromSloStatusCard")};var a4b=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)(D(cS),D(TK),D(QM),D(vY))};
yY.\u0275cmp=w({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&&(xe(),F(0,"span",0),ye(1),G(),F(2,"onedev-hovercard",null,1)(4,"div",2)(5,"div",3)(6,"div",4),M(7,DKa,2,3,"div",5),M(8,GKa,3,2,"div",6),M(9,JKa,4,2,"span",7),G()()()());if(a&2){var c=Ce(3);C("onedevHovercardTrigger",c);B(7);C("ngIf",b.hasSlo);B(1);C("ngIf",!b.hasSlo);B(1);C("ngIf",b.editSloLink)}},dependencies:[Cx,nN,rN,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)(D(XB))};
zY.\u0275cmp=w({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&&(F(0,"h1",0),O(1),G(),F(2,"mat-dialog-content")(3,"b-custom-field-picker",1),J("fieldSelected",function(c){return b.selectedCustomField=c}),
G()(),F(4,"mat-dialog-actions")(5,"button",2),O(6," Cancel "),G(),F(7,"button",3),O(8," Add "),G()());a&2&&(B(1),De("Insert custom field column next to ",b.column.fullLabel,""),B(2),C("filter",b.isLegalColumn),B(4),C("disabled",!b.selectedCustomField)("mat-dialog-close",b.selectedCustomField))},dependencies:[BB,$B,aC,bC,cC,GV],encapsulation:2});
var b4b="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 c4b={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"}},e4b=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 b4b.includes(a)?d4b(a):null},g4b=function(a){return f4b(a.map(e4b).filter(function(b){return!!b}))},h4b=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})},f4b=function(a){return Ej(a,function(b){return b.name})},d4b=function(a){var b={name:a,label:a.toUpperCase()},c=c4b[a];c?Object.assign(b,c):b4b.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 i4b=function(){this.bindings=[]};i4b.prototype.off=function(){for(var a=r(this.bindings),b=a.next();!b.done;b=a.next())b.value.off()};
var j4b=function(a){var b=this;this.params=a;this.mask=document.createElement("div");this.element=this.params.nativeElement;this.eventBindings=new i4b;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()}};
j4b.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(){k4b(a,"dragstart",a.onDragTargetDragstart);k4b(a,"dragenter",a.onDragTargetDragenter);k4b(a,"dragend",a.onDragTargetDragend);k4b(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 k4b=function(a,b,c){a.eventBindings.bindings.push(new BY(a.element,b,Yp("th.drag-target",c)))};j4b.prototype.tearDown=function(){this.eventBindings.off()};
var l4b=["table"],m4b=["defaultHeaderCellTemplate"],n4b=["defaultViewCellTemplate"],o4b=["dataRows"],NKa=function(a){return{column:a}},QKa=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 Rw;this.rowClick=new Rw;this.rowLabelRenderer=function(d,e){return"Row "+e};this.sortChange=new Rw;this.focusedRowIndexChange=new Rw;this.afterViewInit=
new Rw;this.readUnreadOptOut=xH(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=Yp("td.clickable",function(d,e){"mouseup"===d.type&&1!==d.button||ANb(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 j4b({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])&&(hya(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 p4b=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)(D(vH),D(jg))};
CY.\u0275cmp=w({type:CY,selectors:[["pop-grid"]],viewQuery:function(a,b){a&1&&(Bf(l4b,7),Bf(m4b,7),Bf(n4b,7),Bf(o4b,5,pd));if(a&2){var c;Af(c=Df())&&(b.tableElement=c.first);Af(c=Df())&&(b.defaultHeaderCellTemplate=c.first);Af(c=Df())&&(b.defaultViewCellTemplate=c.first);Af(c=Df())&&(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:[Cc],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&&(F(0,"table",0,1),J("mousedown",function(c){c.shiftKey&&window.getSelection().removeAllRanges()}),F(2,"colgroup"),M(3,LKa,1,3,"col",2),G(),F(4,"thead")(5,"tr",3),M(6,OKa,2,4,"ng-container",4),G()(),F(7,"tbody"),M(8,TKa,2,1,"ng-container",5),G()(),M(9,UKa,2,1,"ng-template",null,6,Jf),M(11,VKa,2,2,"ng-template",null,7,Jf));a&2&&(B(3),C("ngForOf",b.columns),B(3),C("ngForOf",b.columns),B(2),C("ngIf",p4b(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)(D(xf),D(CY))};DY.\u0275dir=w({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)(D(xf),D(CY))};EY.\u0275dir=w({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)(D(xf),D(CY))};FY.\u0275dir=w({type:FY,selectors:[["","forHeaderCellDefault",""]]});
var GY=function(){this.columnLabel=this.columnName="";this.defaultSortDirection="ASC";this.sortChanged=new Rw};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=w({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&&(F(0,"div",0),J("click",function(){return b.activate()})("keydown.enter",function(c){b.activate();return c.stopPropagation()})("keydown.space",
function(c){b.activate();return c.stopPropagation()}),H(1,"span",1),O(2),G());a&2&&(le("current-sort",b.isActive())("direction-asc",b.isActive()&&"ASC"===b.sort.direction)("direction-desc",b.isActive()&&"DESC"===b.sort.direction),ge("aria-label",b.ariaLabel()),B(2),De(" ",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)(D(pd),D(CY,8))};
HY.\u0275cmp=w({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&&(F(0,"div",0),
M(1,WKa,1,5,"b-sortable-header",1),M(2,XKa,2,2,"div",2),G());a&2&&(B(1),C("ngIf",b.column.sortable),B(1),C("ngIf",!b.column.sortable))},dependencies:[Cx,sF,GY],encapsulation:2});
var cLa=function(a,b){return{columns:a,before:b}},q4b=function(){return{before:!1}},r4b=function(){return{before:!0}},IY=function(a,b,c,d,e,f){wI.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 Rw;this.onAddTeamColumn=new Rw;this.currentAvailableItems=[];this.isRemovable=!0;this.menuOpen=!1;this.listViewPrefs=uH.listViewPreferences;b.preferences$.pipe(cg(this.destroyed$)).subscribe(function(k){h.listViewPrefs=
k.listViewPreferences||uH.listViewPreferences})};U(IY,wI);IY.\u0275dir=wI.\u0275dir;IY.prototype.ngOnChanges=function(a){a.selectedColumns&&s4b(this)};
var t4b=function(a){a.selectedColumnsChange.emit([].concat(u(a.selectedColumns)));s4b(a)},ZKa=function(a,b){var c=Object.assign({},a.listViewPrefs),d=sna(b),e=d.get;d=d.set;d(c,!e(c));a.activeSession.isAnonymous()||FK(a.butterBar,"Saving display preference...",0);a.userPreferencesManager.save({listViewPreferences:c}).pipe(Qf(),cg(a.destroyed$)).subscribe(function(){eo(a.analytics,"preferences","setListViewPref:"+b,e(c).toString());a.listViewPrefs=c;a.activeSession.isAnonymous()||FK(a.butterBar,"Display preference saved.",
4E3)},function(){a.activeSession.isAnonymous()||GK(a.butterBar,"Display preference could not be saved.")})},fLa=function(a,b){a.hotkeys.pause();NB(a.matDialog.open(zY,{data:{column:a.column,columns:a.selectedColumns},position:{top:"100px"},panelClass:"overflow-visible-dialog-panel"})).pipe(cg(a.destroyed$)).subscribe({next:function(c){c&&a.add(c,b)},error:function(){a.hotkeys.unpause()},complete:function(){a.hotkeys.unpause()}})},s4b=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!wja(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 fu(f instanceof AY?f.fullLabel:f.label,h instanceof AY?h.fullLabel:
h.label)});a.isRemovable=u4b(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,t4b(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);t4b(this);return!0};
var u4b=function(a){return 1<a.selectedColumns.filter(function(b){return!b.isMetadata}).length};IY.\u0275fac=function(a){return new (a||IY)(D(ZB),D(VI),D(DK),D(QM),D(bJ),D(vH))};
IY.\u0275cmp=w({type:IY,selectors:[["b-column-picker"]],viewQuery:function(a,b){a&1&&Bf(lF,5);if(a&2){var c;Af(c=Df())&&(b.menuTrigger=c.first)}},inputs:{column:"column",availableColumns:"availableColumns",selectedColumns:"selectedColumns"},outputs:{selectedColumnsChange:"selectedColumnsChange",onAddTeamColumn:"onAddTeamColumn"},features:[ae,Cc],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&&(F(0,"div",0)(1,"div",1),H(2,"pop-grid-default-th",2),G(),M(3,YKa,2,4,"div",3),F(4,"mat-menu",4,5),M(6,$Ka,4,3,"button",6),M(7,aLa,1,0,"mat-divider",7),F(8,"button",8),J("click",function(){return b.remove()}),O(9," Remove column "),G(),F(10,"button",9),O(11," Add column right "),G(),F(12,"button",9),O(13," Add column left "),G()(),F(14,"mat-menu",null,10),M(16,gLa,4,1,"ng-template",11),G(),F(17,
"mat-menu",null,12),M(19,iLa,1,1,"ng-template",11),G()());if(a&2){var c=Ce(15);B(2);C("column",b.column);B(1);C("ngIf",!0);B(3);C("ngForOf",b.column.moreOptions);B(1);C("ngIf",b.column.moreOptions.length);B(1);C("disabled",!b.isRemovable);B(2);C("matMenuTriggerFor",c)("matMenuTriggerData",He(9,q4b));B(2);C("matMenuTriggerFor",c)("matMenuTriggerData",He(10,r4b))}},dependencies:[Gx,Cx,iF,gF,lF,fF,YH,sF,zH,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:Roboto,Arial,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 x4b=function(a){var b=this;this.params=a;this.element=this.params.nativeElement;this.dropzone=document.createElement("div");this.onTdDragStart=Yp("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=Yp("tr",function(c,d){if(b.draggedRow&&b.dragTargetRow!==d&&d.closest("tbody")&&
d!==b.draggedRow){v4b(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=Yp("tr",function(){b.draggedRow&&(v4b(b.draggedRow),v4b(b.dragTargetRow),b.draggedRow.setAttribute("aria-grabbed","false"),b.draggedRow=b.dragTargetRow=
void 0)});this.onTrDragLeave=Yp("tr",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDragEnter=Yp(".row-dropzone",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDragLeave=Yp(".row-dropzone",function(c){v4b(b.dragTargetRow);w4b(b);c.stopPropagation();c.preventDefault()});this.onDropzoneDragOver=Yp(".row-dropzone",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDrop=Yp(".row-dropzone",function(c){w4b(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()})};
x4b.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");w4b(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)})};
x4b.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 v4b=function(a){a&&(a.classList.remove("drag-over"),a.classList.remove("above"),a.classList.remove("below"),a.classList.remove("dragging"))},w4b=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(){y4b(this)};JY.prototype.ngOnChanges=function(a){(a.sloStatus||a.includeSloMetric)&&y4b(this)};var y4b=function(a){var b=LQb(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)(D(cS))};
JY.\u0275cmp=w({type:JY,selectors:[["b-aggregated-slo-status-indicator"]],inputs:{sloStatus:"sloStatus",sloSnoozeUntil:"sloSnoozeUntil",includeSloMetric:"includeSloMetric",includeObjective:"includeObjective"},features:[Cc],decls:1,vars:4,consts:[[3,"sloBounds","sloMetricDescription","sloSnoozeUntil","includeObjective"]],template:function(a,b){a&1&&H(0,"b-slo-time-indicator",0);a&2&&C("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=w({type:KY,selectors:[["archived-issue-indicator"]],decls:3,vars:0,consts:[["aria-hidden","true","svgIcon","archive_24px"]],template:function(a){a&1&&(F(0,"span"),H(1,"mat-icon",0),O(2,"Archived "),G())},dependencies:[dF],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=uc({type:LY});LY.\u0275inj=gc({imports:[Wx,wF]});
var z4b=[[["",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=w({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&&(xe(z4b),F(0,"span",0)(1,"onedev-hovercard",null,1)(3,"div",2)(4,"div",3),ye(5),G()()(),F(6,"div",4)(7,"span",5),ye(8,1),G()()());if(a&2){var c=Ce(2),d;B(3);ge("aria-label",b.hovercardAriaLabel);B(3);C("onedevHovercardTrigger",c)("onedevHovercardActive",!b.labelOnlyMode);B(1);le("compact-chip",b.compactMode);C("ngClass",null!==(d=b.labelClass)&&void 0!==d?d:"")}},dependencies:[Fx,nN,rN],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=yt()};NY.prototype.ngOnChanges=function(){this.retentionState?this.retentionExpireTime=qo(Cm(this.retentionState.scheduledDeletionTime)):this.retentionExpireTime=void 0};NY.\u0275fac=function(a){return new (a||NY)(D(rP))};
NY.\u0275cmp=w({type:NY,selectors:[["retention-help-text"]],inputs:{retentionState:"retentionState",modifiedTime:"modifiedTime"},features:[Cc],decls:1,vars:1,consts:[[4,"ngIf"],[3,"mode","timestamp"],["target","_blank",3,"href"]],template:function(a,b){a&1&&M(0,jLa,9,5,"ng-container",0);a&2&&C("ngIf",b.retentionState&&b.modifiedTime)},dependencies:[Cx,JP],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=qo(Cm(this.retentionState.scheduledDeletionTime)),this.text=Fya(a,!this.compactMode)):this.text=""};OY.\u0275fac=function(a){return new (a||OY)};
OY.\u0275cmp=w({type:OY,selectors:[["retention-text"]],inputs:{retentionState:"retentionState",compactMode:"compactMode"},features:[Cc],decls:1,vars:1,template:function(a,b){a&1&&O(0);a&2&&Ee(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=lLa(this.retentionState),this.showRetentionInfo=this.showOnlyInDangerZone&&this.dangerZone||!this.showOnlyInDangerZone):this.showRetentionInfo=!1};PY.\u0275fac=function(a){return new (a||PY)(D(rP))};
PY.\u0275cmp=w({type:PY,selectors:[["b-retention-chip"]],inputs:{showOnlyInDangerZone:"showOnlyInDangerZone",compactMode:"compactMode",labelOnlyMode:"labelOnlyMode",retentionState:"retentionState",modifiedTime:"modifiedTime"},features:[Cc],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&&M(0,kLa,5,7,"b-base-chip",0);a&2&&C("ngIf",b.showRetentionInfo)},dependencies:[Cx,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 XLa=function(a,b,c){return{low:a,high:b,p0:c}},BMa=function(a){return{id:a}},gNa=function(a,b){return{"bv2-grid-cell-variable-height":a,"rtl-component-path":b}},A4b=function(){return[]},QY=function(a,b,c,d,e,f,h,k,q,v,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=v;this.paths=y;this.errorHandler=E;this.$log=I;this.domSafe=N;this.lastCheckedIndex=
null;this.focusedRowIndexChange=new Rw;this.columns=[];this.columnsChange=new Rw;this.enableColumnSaving=!1;this.sort=null;this.sortChange=new Rw;this.rowClick=new Rw;this.init=new Rw;this.onRowDragDrop=new Rw;this.onNextPage=new Rw;this.onPrevPage=new Rw;this.selectionCallbacks=[];this.isLoadingTeams=!0;this.isTotalEstimatesEnabled=xH(this.activeSession,"enableAggregationRules");this.destroyed$=new S.ReplaySubject(1);this.starInProgress={};this.readUnreadOptOut=xH(this.activeSession,"readUnreadOptOut");
b=Aa(b4b);a.isInternalSession()||(ya(b,"minSlo"),ya(b,"responseSlo"),ya(b,"assignmentSlo"),ya(b,"closureSlo"),ya(b,"deletionTime"),ya(b,"team"),ya(b,"estimate"),ya(b,"estimateTotalOpen"),ya(b,"estimateTotalComplete"));this.availableColumns=b.map(d4b);this.dragDropLogic=new x4b({ngZone:this.ngZone,nativeElement:this.elementRef.nativeElement,rowFinder:function(T){return B4b(L,T)},onRowDragDrop:function(T){L.onRowDragDrop.emit(T)}})};g=QY.prototype;
g.ngOnInit=function(){var a=this;this.dragDropLogic.setup();this.userPreferencesManager.listViewPreferences$.pipe(cg(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=nLa((null==(b=this.searchResults)?void 0:b.issues.map(function(e){return new Set([].concat(u(e.hotlistId||[])))}))||[]);KJ(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&&C4b(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}))||[]);ina(a,d)||Zp(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()}Zp(this)};
var D4b=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()}Zp(a)};QY.prototype.hasSelectedIssues=function(){return this.searchResults?this.searchResults.issues.some(function(a){return a.selected}):!1};
var vLa=function(a){return a.searchResults?a.searchResults.issues.every(function(b){return b.selected}):!1},E4b=function(a){return a.searchResults?a.searchResults.issues.some(function(b){return b.selected}):!1},uLa=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 G4b=function(a){if(F4b(a)&&null!=a.focusedRowIndex&&a.searchResults){var b=a.searchResults.issues[a.focusedRowIndex];b&&(b.selected=!b.selected,a.cdr.detectChanges(),Zp(a))}},tLa=function(a){if(a.searchResults){for(var b=!E4b(a),c=r(a.searchResults.issues),d=c.next();!d.done;d=c.next())d.value.selected=b;a.cdr.detectChanges();Zp(a)}},H4b=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()&&hLb(a.issuePagination,a.searchResults.endIndex+1).catch(function(b){a.$log.warn(b)}).finally(function(){a.onNextPage.emit()})},I4b=function(a){null!=a.focusedRowIndex&&0<a.focusedRowIndex?(a.focusedRowIndex--,a.focusedRowIndexChange.emit(a.focusedRowIndex),a.cdr.detectChanges()):a.searchResults&&a.searchResults.hasPreviousPage()&&hLb(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(F4b(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)))}},J4b=function(a,b){a.selectionCallbacks.push(b);b()},Zp=function(a){a=r(a.selectionCallbacks);for(var b=a.next();!b.done;b=a.next())b=b.value,b()},K4b=function(a){F4b(a)&&null!=a.focusedRowIndex&&a.searchResults&&a.toggleStar(a.searchResults.issues[a.focusedRowIndex])},
L4b=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();yL(a.issueFridge,c.map(function(f){return f.issueId}),{markRead: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,rJb(this.issueFridge,String(a.issueId),a.starred).pipe(Qf(),cg(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 F4b=function(a){return null!=a.searchResults&&null!=a.focusedRowIndex&&0<=a.focusedRowIndex&&a.focusedRowIndex<a.searchResults.issues.length},B4b=function(a,b){return a.searchResults?a.searchResults.issues.findIndex(function(c){return c.id===b}):-1},C4b=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,zKb(a.teamsService,[].concat(u(b))).pipe(cg(a.destroyed$)).subscribe(function(e){e=
Zi(e,1,fM);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)(D(vH),D(sI,2),D(pd),D(jM),D(jg),D(VI),D(qL),D(wL),D(SK),D(TM),D(TK),D(IK),D(HK),D(tP))};
QY.\u0275cmp=w({type:QY,selectors:[["b-issues-grid"]],viewQuery:function(a,b){a&1&&Bf(CY,7);if(a&2){var c;Af(c=Df())&&(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:[Ge([sI]),
Cc],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&&(F(0,"div")(1,"pop-grid",0),J("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)}),M(2,qLa,2,2,"th",1),M(3,sLa,2,2,"th",2),M(4,xLa,2,2,"th",3),M(5,zLa,2,2,"th",4),M(6,BLa,2,2,"th",4),M(7,FLa,2,2,"th",5),M(8,HLa,2,1,"td",6),M(9,JLa,2,1,"td",7),M(10,LLa,2,1,"td",8),M(11,NLa,2,1,"td",9),M(12,PLa,2,1,"td",10),M(13,RLa,
2,1,"td",11),M(14,WLa,2,3,"td",12),M(15,ZLa,2,1,"td",13),M(16,aMa,2,1,"td",14),M(17,eMa,2,1,"td",15),M(18,gMa,2,1,"td",16),M(19,kMa,2,1,"td",17),M(20,oMa,2,1,"td",17),M(21,sMa,2,1,"td",17),M(22,uMa,2,1,"td",17),M(23,wMa,2,1,"td",17),M(24,yMa,2,1,"td",17),M(25,EMa,2,1,"td",17),M(26,JMa,2,1,"td",17),M(27,NMa,2,1,"td",17),M(28,PMa,2,1,"td",18),M(29,RMa,2,1,"td",18),M(30,TMa,2,1,"td",18),M(31,VMa,2,1,"td",18),M(32,XMa,2,1,"td",17),M(33,ZMa,2,1,"td",17),M(34,aNa,2,1,"td",17),M(35,cNa,2,1,"td",17),M(36,
eNa,2,1,"td",17),M(37,hNa,2,5,"td",19),M(38,kNa,2,1,"td",20),M(39,nNa,2,1,"td",20),M(40,qNa,2,1,"td",20),M(41,tNa,2,1,"td",20),M(42,wNa,2,1,"td",17),M(43,ANa,2,1,"td",17),M(44,CNa,2,1,"td",17),M(45,ENa,2,1,"td",17),M(46,GNa,2,1,"td",17),G()(),M(47,INa,5,2,"ng-template",null,21,Jf));a&2&&(B(1),C("list",(null==b.searchResults?null:b.searchResults.issues)||He(50,A4b))("columns",b.columns)("focusedRowIndex",b.focusedRowIndex)("scrollContainer",".bv2-view")("sort",b.sort)("rowLabelRenderer",b.issueDescription),
B(1),C("forHeaderCell","focused"),B(1),C("forHeaderCell","draghandle"),B(1),C("forHeaderCell","selected"),B(1),C("forHeaderCell","starred"),B(1),C("forHeaderCell","position"),B(2),C("forViewCell","focused"),B(1),C("forViewCell","draghandle"),B(1),C("forViewCell","selected"),B(1),C("forViewCell","starred"),B(1),C("forViewCell","position"),B(1),C("forViewCell","issueId"),B(1),C("forViewCell","title"),B(1),C("forViewCell","priority"),B(1),C("forViewCell","severity"),B(1),C("forViewCell","status"),B(1),
C("forViewCell","type"),B(1),C("forViewCell","reporter"),B(1),C("forViewCell","assignee"),B(1),C("forViewCell","verifier"),B(1),C("forViewCell","cc"),B(1),C("forViewCell","changelist"),B(1),C("forViewCell","postmortem"),B(1),C("forViewCell","blockingIssueId"),B(1),C("forViewCell","blockedByIssueId"),B(1),C("forViewCell","duplicateOfIssueId"),B(1),C("forViewCell","createdTime"),B(1),C("forViewCell","modifiedTime"),B(1),C("forViewCell","resolvedTime"),B(1),C("forViewCell","verifiedTime"),B(1),C("forViewCell",
"foundInVersion"),B(1),C("forViewCell","targetedToVersion"),B(1),C("forViewCell","verifiedInVersion"),B(1),C("forViewCell","inProd"),B(1),C("forViewCell","archived"),B(1),C("forViewCell","componentPath"),B(1),C("forViewCell","minSlo"),B(1),C("forViewCell","responseSlo"),B(1),C("forViewCell","assignmentSlo"),B(1),C("forViewCell","closureSlo"),B(1),C("forViewCell","deletionTime"),B(1),C("forViewCell","team"),B(1),C("forViewCell","estimate"),B(1),C("forViewCell","estimateTotalOpen"),B(1),C("forViewCell",
"estimateTotalComplete"))},dependencies:[KY,Fx,Gx,Cx,Mx,vB,CY,HY,DY,EY,FY,wY,yY,JP,JY,xR,AX,lY,PY,SS,iN,nN,oN,rN,pN,DX,jV,IY,xM,yM,AM,BM,DM,HM],encapsulation:2,changeDetection:0});
var SY=new AY({name:"focused",sortable:!1,draggable:!1,isMetadata:!0}),M4b=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}),N4b=new AY({name:"position",sortable:!0,draggable:!1,fullLabel:"Position",label:"POS",isMetadata:!0});
var VY=function(a,b,c){wI.call(this);var d=this;this.snackBar=a;this.issuePicker=b;this.issueApi=c;this.issueAddedToHotlist=new Rw;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,v=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(v,"close",{panelClass:"error"})}};U(VY,wI);VY.\u0275dir=wI.\u0275dir;VY.\u0275fac=function(a){return new (a||VY)(D(AK),D(LX),D(lK))};
VY.\u0275cmp=w({type:VY,selectors:[["hotlist-add-issue-btn"]],inputs:{id:["hotlistId","id"]},outputs:{issueAddedToHotlist:"issueAddedToHotlist"},features:[ae],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&&(F(0,"button",0),J("click",function(){b.issuePicker.open({title:"Add Issues to this Hotlist",allowMultipleIds:!0},b.onCloseIssuePicker)}),O(1," Add Issue(s) "),G())},dependencies:[BB,sF],encapsulation:2});
var WY=function(a,b,c,d){wI.call(this);var e=this;this.fridge=a;this.snackBar=b;this.dialog=c;this.events=d;this.id$=new S.ReplaySubject(1);this.hotlist$=this.id$.pipe(bg(function(f){return e.fridge.watchOne(f)}),Zf({refCount:!0,bufferSize:1}));this.archived$=this.hotlist$.pipe(R(function(f){return!(null==f||!f.archived)}),Pf());this.archiveActionLabel$=this.archived$.pipe(R(function(f){return f?"Unarchive":"Archive"}));this.archiveActionTooltip$=this.archived$.pipe(R(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(Fm(h)||"Error "+k+" the hotlist","close",{panelClass:"error"})}};this.hotlist$.pipe(cg(this.destroyed$)).subscribe(function(f){e.latestHotlist=f})};U(WY,wI);WY.\u0275dir=wI.\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 P4b=function(a){if(null!=a.latestHotlist){var b=!a.latestHotlist.archived;b?a.dialog.open({title:"Archive Hotlist",content:Pn("Do you want to archive this hotlist?"),isDestructive:!0,onConfirm:function(){O4b(a,b)}}):O4b(a,b)}},O4b=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)(D(qL),D(AK),D(ZM),D(MK))};
WY.\u0275cmp=w({type:WY,selectors:[["hotlist-archive-btn"]],inputs:{id:["hotlistId","id"]},features:[ae,Cc],decls:4,vars:7,consts:[["mat-button","",1,"gmat-button","medium",3,"disabled","matTooltip","click"]],template:function(a,b){a&1&&(F(0,"button",0),J("click",function(){return P4b(b)}),P(1,"async"),O(2),P(3,"async"),G());if(a&2){var c;C("disabled",b.isThinking(b.id))("matTooltip",null!==(c=Q(1,3,b.archiveActionTooltip$))&&void 0!==c?c:"");B(2);De(" ",Q(3,5,b.archiveActionLabel$)," ")}},dependencies:[BB,
sF,Px],encapsulation:2});
var XY=function(a,b,c,d,e,f,h,k,q,v,y,E){OX.call(this,a,b,c,d,e,f,h,k,q,v);this.estadoService=y;this.refreshMonitor=E;this.init=new Rw;this.onRefresh=new Rw;this.isHotlistAdmin=!1;this.onExportCsv=new Rw;this.showHotlistButtons=!1;this.csvExportEnabled="PUBLIC"!==this.activeSession.frontendAccessMode;this.enableEstadoInAppBar=this.estadoService.enableEstado;this.controllerName="gridControls"};U(XY,OX);XY.\u0275dir=OX.\u0275dir;g=XY.prototype;g.ngOnInit=function(){this.init.emit(this)};
g.ngOnChanges=function(a){var b=this;a.grid&&this.grid&&J4b(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)(D(sI,2),D(vH),D(QM),D(bJ),D(XH),D(zT),D(JR),D(mT),D(ZB),D(HK),D(pY),D(sL))};
XY.\u0275cmp=w({type:XY,selectors:[["b-grid-controls"]],inputs:{grid:"grid",isHotlistAdmin:"isHotlistAdmin",currentHotlistId:"currentHotlistId",showHotlistButtons:"showHotlistButtons"},outputs:{init:"init",onRefresh:"onRefresh",onExportCsv:"onExportCsv"},features:[Ge([sI]),ae,Cc],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&&(F(0,
"b-button",0),J("onAction",function(){return b.refresh()}),H(1,"b-icon",1),G(),M(2,JNa,1,1,"b-app-bar-bulk-edit-menus",2),M(3,KNa,1,2,"b-copy-issue-id-button",3),M(4,LNa,2,2,"div",4),M(5,NNa,3,2,"ng-container",5),M(6,PNa,3,3,"b-button",6),F(7,"b-app-bar-more-menu",7),J("exportCsvClicked",function(){return b.onExportCsv.emit()})("flagAsSpamClicked",function(){return f3b(b)}),G(),F(8,"b-state-modal",8),J("save",function(){return d3b(b)})("close",function(){return b.hotkeys.unpause()}),G(),M(9,SNa,10,
5,"ng-template",null,9,Jf));a&2&&(B(2),C("ngIf",b.hasSelectedIssues()),B(1),C("ngIf",b.hasSelectedIssues()),B(1),C("ngIf",b.hasSelectedIssues()),B(1),C("ngIf",b.showHotlistButtons&&!b.hasSelectedIssues()),B(1),C("ngIf",b.enableEstadoInAppBar),B(1),C("showExportCsv",b.csvExportEnabled)("showFlagIssuesAsSpam",b.hasSelectedIssues()),B(1),C("externalWarnings",b.externalWarnings))},dependencies:[$H,ZH,wO,oX,Gx,Cx,SS,iT,WY,VY,vX,zH,BB,$B,aC,bC,cC,pX],styles:["[_nghost-%COMP%] { display: flex; align-items: center; }"]});
var Q4b=["multiUserInput"],YY=function(a,b,c,d,e,f){wI.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 Rw(!0);this.includeViewAliases=this.includeAliases=!1;this.maxUserAllowed=-1;this.customValidators={};this.ariaLabel="";this.isValid=new Rw;this.typedText="";this.items=[];this.chipifyFn=function(){R4b(h)};this.additionalContactsFn=function(){return S4b(h)};this.isFocused=
!1;this.selectedChipIndex=-1;this.$element=this.element.nativeElement;this.validators={};this.violations=new Set;this.subscriptions.add(this.appEvents.contactChipsRevertChanges.subscribe(function(){h.typedText=""}))};U(YY,wI);YY.\u0275dir=wI.\u0275dir;YY.prototype.ngOnInit=function(){var a=this;this.validators=Object.assign({},{validateGaia:function(b,c){return T4b(c)},validateInternalAccessLevel:function(b,c){return U4b(a,c)},validateExternalAccessLevel:function(b,c){return V4b(a,c)}},this.customValidators)};
YY.prototype.ngOnChanges=function(a){if(a.users||a.containerChips)this.items=W4b(this,this.users),ZY(this)};var ZY=function(a){var b=[].concat(u(a.items)),c=X4b(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 VNa=function(a){!a.isWidgetDisabled()&&Y4b(a)&&(a.isFocused=!0,a.textInputElement.nativeElement.focus())},TNa=function(a){$p(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")};var Y4b=function(a){var b,c;return 0>a.maxUserAllowed||(null!=(c=null==(b=a.users)?void 0:b.length)?c:0)<a.maxUserAllowed};
YY.prototype.removeItem=function(a){this.isWidgetDisabled()||!$p(this,a)||this.items[a].isReadonly||(TNa(this),this.items.splice(a,1),ZY(this))};YY.prototype.setAccessLevel=function(a){this.accessLevel=a};
var S4b=function(a){return Z4b(a).map(function(b){return{text:Rpa(b),id:a.accessPolicyConverter.accessPolicyPrincipalToString({alias:b})}})},Z4b=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},R4b=function(a){setTimeout(function(){a.typedText&&ea(a.typedText,",")&&WNa(a,a.typedText.split(",")[0].trim())})},
WNa=function(a,b){b&&(b=WSb.test(b)?$4b(a,b):a5b(a,b),a.items.push(b));a.typedText="";ZY(a)},$p=function(a,b){return 0<=b&&b<a.items.length},$4b=function(a,b){var c=void 0===c?!1:c;var d=a.accessPolicyConverter.stringToAccessPolicyPrincipal(b);if(void 0===d.alias)throw Error("Md`"+b);b=d.alias;d=Rpa(b);return new $Y(4,b,d,null,c,a)},b5b=function(a,b){b=zo(b);var c=new $Y(3,b,b,null,!1,a);qI(a.principalTypes,b,!0).then(function(d){c.detailedUserType=X(d,2,0);ZY(a)});return c},c5b=function(a,b){var c=
void 0===c?!1:c;b=zo(b);var d=new $Y(2,b,b,null,c,a);qI(a.principalTypes,b,!0).then(function(e){d.detailedUserType=X(e,2,0);ZY(a)});return d},a5b=function(a,b){var c=void 0===c?!1:c;b=zo(b);var d=new $Y(0,b,b,null,c,a);qI(a.principalTypes,b,!0).then(function(e){d.principalType=X(e,1,0);d.detailedUserType=X(e,2,0);ZY(a)});return d},d5b=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?$p(this,this.selectedChipIndex)?($p(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?$p(this,this.selectedChipIndex)&&$p(this,this.selectedChipIndex)&&this.removeItem(this.selectedChipIndex):VNa(this)};
var W4b=function(a,b){b=(b||[]).map(function(d){return e5b(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 d5b(a,d.displayText,d.values.map(function(e){return e5b(a,e)}))});return[].concat(u(c),u(b))}return b},e5b=function(a,b){var c=b.split(":");if(2!==c.length)throw Error("we`"+b);var d=Number(c[0]);if(2!==d&&3!==d&&4!==d)throw Error("we`"+b);return 4===d?$4b(a,b):2===d?c5b(a,c[1]):
b5b(a,c[1])},X4b=function(a){return(a||[]).filter(function(b){return 0!==b.principalType}).map(function(b){return b.principalType+":"+b.value})},T4b=function(a){return!a.some(function(b){return b.isNonGaiaChip()})},U4b=function(a,b){return"INTERNAL"!==a.accessLevel?!0:!b.some(function(c){return c.isInternalAccessViolated()})},V4b=function(a,b){return"EXTERNAL_PARTNER"!==a.accessLevel?!0:!b.some(function(c){return c.isExternalPartnerAccessViolated()})};
YY.\u0275fac=function(a){return new (a||YY)(D(pd),D(JT),D(pI),D(vH),D(rP),D(MK))};
YY.\u0275cmp=w({type:YY,selectors:[["b-multi-user-input"]],viewQuery:function(a,b){a&1&&Bf(Q4b,5);if(a&2){var c;Af(c=Df())&&(b.textInputElement=c.first)}},hostBindings:function(a,b){a&1&&J("keydown",function(c){return b.onKeyDown(c)})},inputs:{users:"users",containerChips:"containerChips",accessLevel:"accessLevel",includeAliases:"includeAliases",idForInputBox:"idForInputBox",includeViewAliases:"includeViewAliases",maxUserAllowed:"maxUserAllowed",customValidators:"customValidators",ariaLabel:"ariaLabel"},
outputs:{usersChange:"usersChange",isValid:"isValid"},features:[ae,Cc],decls:10,vars:9,consts:[[1,"bv2-multi-user-input",3,"click"],["class","bv2-user-chip",4,"ngFor","ngForOf"],["class","bv2-multi-user-embedded-input","b-adaptive-width-input","","tabindex","0",3,"bContactAutocomplete","additionalContactsCallback","ngModel","disabled","autocompleteActive","ngModelChange","focus","blur",4,"ngIf"],["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"],["b-adaptive-width-input","","tabindex","0",1,"bv2-multi-user-embedded-input",3,"bContactAutocomplete","additionalContactsCallback","ngModel","disabled","autocompleteActive","ngModelChange","focus","blur"],["multiUserInput",""],["target","_blank"]],template:function(a,b){a&1&&(F(0,"div",0),J("click",function(){return VNa(b)}),F(1,"div"),M(2,UNa,2,9,"div",
1),M(3,XNa,2,5,"input",2),G()(),F(4,"div",3),M(5,YNa,4,1,"span",4),M(6,ZNa,2,0,"span",4),M(7,$Na,2,0,"span",4),M(8,aOa,2,0,"span",4),M(9,bOa,2,0,"span",4),G());a&2&&(le("focused",b.isFocused),B(2),C("ngForOf",b.items),B(1),C("ngIf",Y4b(b)),B(2),C("ngIf",b.violations.has("noRestrictedPlusGroups")),B(1),C("ngIf",b.violations.has("validateGaia")),B(1),C("ngIf",b.violations.has("validateInternalAccessLevel")),B(1),C("ngIf",b.violations.has("validateExternalAccessLevel")),B(1),C("ngIf",b.violations.has("sloLeadNotUser")))},
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:.8125rem;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:.8125rem;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("xe`"+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(){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)};aZ.prototype.ngOnDestroy=function(){this.checks=[];window.removeEventListener("beforeunload",this.beforeUnloadEventHandler)};
var bZ=function(a,b,c){var d={dataChanged:b,triggerOnSearch:c};a.checks.push(d);return new S.Subscription(function(){a.checks=a.checks.filter(function(e){return e!==d})})};aZ.prototype.canDeactivate=function(a,b,c,d){a:{a=YG(c.url).getPath()===YG(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?f5b()?(this.checks=[],!0):!1:!0};var f5b=function(){return window.confirm("You have unsaved changes; are you sure you want to navigate away without saving?")};
aZ.\u0275fac=function(a){return new (a||aZ)};aZ.\u0275prov=dc({token:aZ,factory:aZ.\u0275fac,providedIn:"root"});
var g5b=function(a){return{displayText:"Admins",values:a}},h5b=function(a){return[a]},i5b=function(a){return{displayText:"Appenders",values:a}},j5b=Pn("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?"),cZ=function(a,b,c,d,e,f,h,k){wI.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 S.ReplaySubject(1);this.idSubject$=Gk(this.id$.pipe(cg(this.destroyed$)));this.acl$=this.id$.pipe(bg(function(v){return q.hotlistAccessPolicyFridge.watchOne(v)}));this.latestCompactPolicy={};this.admins=[];this.appenders=[];this.readers=[];this.accessControlLink=Fo(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(){k5b(q)?q.dialog.open({title:"Change Hotlist Admins",content:j5b,isDestructive:!0,onConfirm:q.doSave}):q.doSave()};this.doSave=function(){var v=q.idSubject$.value;if(null!=v){var y=k5b(q);v={id:v,admins:cua(q.admins),appenders:cua(q.appenders),editors:null,readers:cua(q.readers),inheritance:null,implicitAccess:null,restrictedReaders:null,restrictedPlusReaders:null,inheritedAdmins:null,implicitAppenders:null,implicitEditors:null,implicitReaders:null};q.hotlistAccessPolicyFridge.save(v).subscribe({next:q.didSave(y,
v.id),error:q.gotErr})}};this.didSave=function(v,y){return function(){q.snackBar.open("Access control saved",void 0,{duration:2500});q.events.hotlistChanged.next();it(q.permissions,y);v&&q.doStar()}};this.gotErr=function(v){q.snackBar.open(Fm(v)||"Error saving the hotlist access policy","close",{panelClass:"error"})};this.doStar=function(){var v=q.idSubject$.value;if(v){var y,E=null==(y=qna())?void 0:y.getEmail();q.userApi.saveFavorite({resourceType:"HOTLIST",resourceId:v,userLogin:E}).then(function(){q.events.hotlistChanged.next()})}};
this.onPressRevert=function(){q.resetEdits()};this.gotAcl=function(v){q.latestPolicy=v;var y,E,I;q.latestCompactPolicy={admins:aua(null==(y=q.latestPolicy)?void 0:y.admins),appenders:aua(null==(E=q.latestPolicy)?void 0:E.appenders),readers:aua(null==(I=q.latestPolicy)?void 0:I.readers)};q.resetEdits()};this.isChanged=function(){var v=q.latestCompactPolicy,y;if(!Ei(null!=(y=v.admins)?y:[],q.admins))return!0;var E;if(!Ei(null!=(E=v.appenders)?E:[],q.appenders))return!0;var I;return Ei(null!=(I=v.readers)?
I:[],q.readers)?!1:!0};this.hasNoChanges=function(){return!q.isChanged()};this.acl$.pipe(cg(this.destroyed$)).subscribe(this.gotAcl);this.subscriptions.add(bZ(e,this.isChanged,!1))};U(cZ,wI);cZ.\u0275dir=wI.\u0275dir;var l5b=function(a){return[].concat(u(new Set([].concat(u(a.admins),u(a.appenders)))))};cZ.prototype.ngOnChanges=function(a){(a=a.hotlistId)&&this.id$.next(a.currentValue)};
cZ.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=l5b(this)};
var k5b=function(a){var b=a.admins,c;a=null!=(c=a.latestCompactPolicy.admins)?c:[];var d;c=null==(d=qna())?void 0:d.getEmail();c=void 0===c?"":c;Pna(b,a)?b=!1:(d="2:"+c,a=a.includes(d),b=!b.includes(d),b=a&&b);return b};cZ.\u0275fac=function(a){return new (a||cZ)(D(SL),D(rP),D(AK),D(MK),D(aZ),D(ZM),D(dM),D(kL))};
cZ.\u0275cmp=w({type:cZ,selectors:[["b-edit-hotlist-acl"]],inputs:{hotlistId:"hotlistId",isReadOnly:"isReadOnly"},features:[ae,Cc],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&&(F(0,"form",0)(1,"label"),O(2,"Admins"),G(),F(3,"p",1),O(4,"Edit access controls, edit name and description, reorder hotlist, add/remove issues"),G(),F(5,"b-multi-user-input",2),J("usersChange",function(c){b.admins=c;b.allAppenders=l5b(b)})("isValid",
function(c){return b.validity.admins=c}),G(),F(6,"label"),O(7,"View and append"),G(),F(8,"p",1),O(9,"Reorder hotlist, add/remove issues"),G(),F(10,"b-multi-user-input",3),J("usersChange",function(c){b.appenders=c;b.allAppenders=l5b(b)})("isValid",function(c){return b.validity.appenders=c}),G(),F(11,"label"),O(12,"View only"),G(),F(13,"p",1),O(14,"View the hotlist"),G(),F(15,"b-multi-user-input",4),J("usersChange",function(c){b.readers=c})("isValid",function(c){return b.validity.readers=c}),G()(),
F(16,"p"),O(17," See "),F(18,"a",5),O(19,"access control documentation"),G(),O(20," for an explanation of the settings.\n"),G(),M(21,cOa,5,4,"div",6));a&2&&(B(5),le("disabled",b.isReadOnly),C("users",b.admins),B(5),le("disabled",b.isReadOnly),C("users",b.appenders)("includeAliases",!0)("containerChips",Ie(18,h5b,Ie(16,g5b,b.admins))),B(5),le("disabled",b.isReadOnly),C("users",b.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Ie(22,h5b,Ie(20,i5b,b.allAppenders))),B(3),C("href",
b.accessControlLink,Md),B(3),C("ngIf",!b.isReadOnly))},dependencies:[Cx,sy,my,py,BB,sF,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 m5b=["hotlistName"],dZ=function(a,b,c,d){wI.call(this);var e=this;this.fridge=a;this.snackBar=b;this.events=c;this.isReadOnly=!1;this.id$=new S.ReplaySubject(1);this.hotlist$=this.id$.pipe(bg(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(Fm(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(cg(this.destroyed$)).subscribe(function(f){e.gotHotlist(f)});this.subscriptions.add(bZ(d,
this.isChanged,!1))};U(dZ,wI);dZ.\u0275dir=wI.\u0275dir;dZ.prototype.ngAfterViewInit=function(){var a=this;setTimeout(function(){var b;null==(b=a.hotlistName)||b.nativeElement.focus()})};dZ.prototype.ngOnChanges=function(a){(a=a.hotlistId)&&this.id$.next(a.currentValue)};dZ.prototype.resetEdits=function(a){var b;this.localEdits=null!=(b=Fi(a))?b:{}};dZ.\u0275fac=function(a){return new (a||dZ)(D(qL),D(AK),D(MK),D(aZ))};
dZ.\u0275cmp=w({type:dZ,selectors:[["b-edit-hotlist-basic"]],viewQuery:function(a,b){a&1&&Bf(m5b,5);if(a&2){var c;Af(c=Df())&&(b.hotlistName=c.first)}},inputs:{hotlistId:"hotlistId",isReadOnly:"isReadOnly"},features:[ae,Cc],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&&(F(0,"form",0)(1,"label",1),O(2,"Name"),G(),F(3,"input",
2,3),J("ngModelChange",function(c){return b.localEdits.name=c}),G(),F(5,"label",4),O(6,"Description"),G(),F(7,"textarea",5),J("ngModelChange",function(c){return b.localEdits.description=c}),O(8,"  "),G(),M(9,dOa,7,7,"div",6),G());a&2&&(B(3),C("disabled",b.isReadOnly||b.isArchived)("ngModel",b.localEdits.name),B(4),C("disabled",b.isReadOnly||b.isArchived)("ngModel",b.localEdits.description),B(2),C("ngIf",!b.isReadOnly))},dependencies:[Cx,sy,Jg,ly,my,Cy,ry,py,BB,sF,WY,Px],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 eZ=function(a,b){wI.call(this);var c=this;this.hotlists=a;this.acls=b;this.id$=new S.ReplaySubject(1);this.hotlist$=this.id$.pipe(bg(function(d){return c.hotlists.watchOne(d)}))};U(eZ,wI);eZ.\u0275dir=wI.\u0275dir;eZ.prototype.isThinking=function(a){var b=a?fo(a):void 0;return this.hotlists.isThinking(a)||this.acls.isThinking(b)};eZ.prototype.ngOnChanges=function(a){(a=a.id)&&this.id$.next(a.currentValue)};eZ.\u0275fac=function(a){return new (a||eZ)(D(qL),D(SL))};
eZ.\u0275cmp=w({type:eZ,selectors:[["b-edit-hotlist-header"]],inputs:{id:["hotlistId","id"]},features:[ae,Cc],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&&(F(0,"header",0)(1,"h2")(2,"span",1),O(3),G(),M(4,eOa,2,1,"ng-container",2),P(5,"async"),G(),M(6,fOa,2,0,"strong",3),P(7,"async"),M(8,gOa,1,0,"b-spinner",2),G());if(a&2){var c;B(3);De(" Hotlist ",b.id,
": ");B(1);C("ngIf",Q(5,4,b.hotlist$));B(2);C("ngIf",null==(c=Q(7,6,b.hotlist$))?null:c.archived);B(2);C("ngIf",b.isThinking(b.id))}},dependencies:[Cx,kN,Px],styles:["[_nghost-%COMP%] {\n      display: block;\n    }"]});
var fZ=function(){wI.call(this);this.URLS=gt;this.id$=new S.ReplaySubject(1)};U(fZ,wI);fZ.\u0275dir=wI.\u0275dir;fZ.prototype.ngOnChanges=function(a){(a=a.id)&&this.id$.next(a.currentValue)};fZ.prototype.onPressBack=function(){var a;null==(a=window.history)||a.back()};fZ.\u0275fac=function(a){return new (a||fZ)};
fZ.\u0275cmp=w({type:fZ,selectors:[["b-edit-hotlist-toolbar"]],inputs:{id:["hotlistId","id"]},features:[ae,Cc],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&&(F(0,"section",0)(1,
"b-button",1),J("onAction",function(){return b.onPressBack()}),H(2,"b-icon",2),G(),F(3,"a",3),O(4," View Issues "),G(),H(5,"hotlist-add-issue-btn",4),P(6,"async"),G());if(a&2){var c;B(3);C("href",b.URLS.HOTLIST_VIEW(b.id),Md);B(2);C("hotlistId",null!==(c=Q(6,2,b.id$))&&void 0!==c?c:void 0)}},dependencies:[CB,sF,wO,zH,VY,Px],styles:[".button-bar[_ngcontent-%COMP%] {\n      display: flex;\n      align-items: center;\n      height: 46px;\n      box-sizing: border-box;\n    }"]});
var n5b=new ld("GMAT_TABS_OPTION");
var gZ=function(a){this.inkBarPositioner=a};gZ.prototype.isEnabled=function(){return this.inkBarPositioner===hOa};new Ov;new Nv;gZ.\u0275fac=function(a){return new (a||gZ)(D(z1b))};
gZ.\u0275dir=w({type:gZ,selectors:[["","gmat-tabs",""],["mat-tab-group"],["","mat-tab-nav-bar",""]],hostVars:2,hostBindings:function(a,b){a&2&&le("gmat-tabs",b.isEnabled())},features:[Ge([{provide:z1b,useFactory:function(a,b,c){return a.nativeElement.hasAttribute("gmat-tabs")||c&&c.enabled?hOa:b},deps:[pd,[new Ov,z1b],[new Nv,n5b]]}])]});
var o5b={403:"You do not have permission to view this Hotlist.",404:"This Hotlist does not exist."},hZ=function(a,b,c,d){this.routeParams=a;this.pageTitle=b;this.permissions=c;this.hotlists=d;this.id=this.routeParams.hotlistId;this.resourceId=fo(this.id);this.isAdmin$=this.permissions.watchOne(this.resourceId).pipe(R(function(e){return null==e?void 0:e.admin}));this.hotlistErrorMsg$=this.hotlists.error$.pipe(R(function(e){var f;return null!=(f=e.status)?f:-1}),R(function(e){var f;return null!=(f=
o5b[e])?f:"unknown error"}),ag(void 0));this.tabIndex=0};hZ.prototype.ngOnInit=function(){this.pageTitle.setTitle("Edit Hotlist "+this.id);window.location.hash.includes("access")&&(this.tabIndex=1)};hZ.\u0275fac=function(a){return new (a||hZ)(D($R),D(fO),D(dM),D(qL))};
hZ.\u0275cmp=w({type:hZ,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&&(M(0,jOa,13,14,"ng-container",0),P(1,"async"),M(2,kOa,7,1,"ng-container",0),P(3,"async"));a&2&&(C("ngIf",void 0===Q(1,2,b.hotlistErrorMsg$)),B(2),C("ngIf",Q(3,
4,b.hotlistErrorMsg$)))},dependencies:[Cx,dX,bX,gZ,$O,cZ,dZ,eZ,fZ,Px],encapsulation:2});
var iZ=function(){};iZ.\u0275fac=function(a){return new (a||iZ)};iZ.\u0275cmp=w({type:iZ,selectors:[["b-error-banner"]],inputs:{error:"error"},decls:1,vars:1,consts:[["messageType","error",4,"ngIf"],["messageType","error"]],template:function(a,b){a&1&&M(0,lOa,3,1,"b-callout",0);a&2&&C("ngIf",b.error)},dependencies:[Cx,hI,iI],encapsulation:2});
var jZ=function(){};jZ.\u0275fac=function(a){return new (a||jZ)};jZ.\u0275mod=uc({type:jZ});jZ.\u0275inj=gc({imports:[Wx,yO]});
var kZ=function(a){this.activeSession=a;this.sessionIsExternal=a.isExternalSession()};kZ.prototype.getName=function(){return void 0===this.email?"":this.email.split("@")[0]};kZ.\u0275fac=function(a){return new (a||kZ)(D(vH))};
kZ.\u0275cmp=w({type:kZ,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&&(xe(),M(0,rOa,17,5,"ng-container",0),M(1,sOa,1,0,"ng-template",null,1,Jf));if(a&2){var c=Ce(2);C("ngIf",!!Nn(b.email))("ngIfElse",c)}},dependencies:[Cx,Mx,dF,nN,rN],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 lZ=function(){};lZ.\u0275fac=function(a){return new (a||lZ)};lZ.\u0275mod=uc({type:lZ});lZ.\u0275inj=gc({imports:[Wx,wF,YN]});
var Cfa=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}},mZ=function(a){wI.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 Rw;this.chipClear=new Rw;this.chipRemove=new Rw};U(mZ,wI);
mZ.\u0275dir=wI.\u0275dir;g=mZ.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("xe`"+this.value);}};
var p5b=function(a){if(a.isGroupChip())return"group";if(a.isDomainChip())return"acl-alias-domain";if(a.isPublicChip())return"public"};mZ.\u0275fac=function(a){return new (a||mZ)(D(vH))};
mZ.\u0275cmp=w({type:mZ,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:[ae],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&&(F(0,"span",0),J("focus",function(){return b.chipSelection.emit()})("blur",function(){return b.chipClear.emit()}),F(1,"span",1),M(2,tOa,1,1,"mat-icon",2),G(),F(3,"div",3),M(4,uOa,2,2,"b-person-hovercard",4),M(5,vOa,2,2,"b-group-email-card",4),M(6,wOa,2,1,"div",5),G(),M(7,xOa,2,2,"div",6),M(8,
zOa,7,1,"div",7),G());a&2&&(C("ngClass",Dfa(b.isExternalChip(),b.isNonGaiaChip(),b.isInternalAccessViolated()||b.isExternalPartnerAccessViolated(),b.isContainerChip(),b.isSelected,b.isReadonly))("matTooltip",b.getTooltip()),B(2),C("ngIf",p5b(b)),B(2),C("ngIf",b.isUserChip()),B(1),C("ngIf",b.isGroupChip()),B(1),C("ngIf",!b.isUserChip()&&!b.isGroupChip()),B(1),C("ngIf",!b.isReadonly&&!b.isWidgetDisabled),B(1),C("ngIf",b.isContainerChip()))},dependencies:[Fx,Gx,Cx,sF,dF,xR,kZ,mZ],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 nZ=function(){};nZ.\u0275fac=function(a){return new (a||nZ)};nZ.\u0275mod=uc({type:nZ});nZ.\u0275inj=gc({imports:[Wx,Gy,lH,wF,CS,lZ,KM,XU,oT]});uca(YY,[Gx,Cx,Jg,ly,ry,WU,nT,mZ],[]);
var oZ=function(){};oZ.\u0275fac=function(a){return new (a||oZ)};oZ.\u0275mod=uc({type:oZ});oZ.\u0275inj=gc({imports:[Wx,iX]});
var pZ=function(){};pZ.\u0275fac=function(a){return new (a||pZ)};pZ.\u0275mod=uc({type:pZ});pZ.\u0275inj=gc({providers:[{provide:n5b,useValue:{enabled:!0}}],imports:[Wx,Gy,BG,wF,lH,iX,xO,yK,oZ,bI,WN,jZ,nZ,MX,kP]});
var qZ=function(){};qZ.\u0275fac=function(a){return new (a||qZ)};qZ.\u0275mod=uc({type:qZ});qZ.\u0275inj=gc({imports:[dI,xO,WX,Wx,cT,lT,pZ,YX,bI,BG,dC,lH,XX]});
var rZ=function(a,b,c,d,e){wI.call(this);this.element=a;this.location=b;this.paths=c;this.hotkeys=d;this.cdr=e;this.focusedIndex=0;this.convertUserToString=Ql;this.hotlists=[];this.registerKeys()};U(rZ,wI);rZ.\u0275dir=wI.\u0275dir;g=rZ.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=cJ(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))};
rZ.\u0275fac=function(a){return new (a||rZ)(D(pd),D(SK),D(TK),D(bJ),D(sI,2))};
rZ.\u0275cmp=w({type:rZ,selectors:[["b-hotlist-grid"]],inputs:{hotlists:"hotlists"},features:[Ge([sI]),ae],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&&(F(0,"table",0)(1,"thead")(2,"tr",1),H(3,"th",2),F(4,"th")(5,"div",3)(6,"div",4)(7,"div",5),O(8," Hotlist name "),G()()()(),F(9,"th")(10,"div",3)(11,"div",4)(12,"div",5),O(13," Description "),G()()()(),F(14,"th")(15,"div",3)(16,"div",4)(17,"div",5),O(18," Owner "),
G()()()(),F(19,"th")(20,"div",3)(21,"div",4)(22,"div",5),O(23," ID "),G()()()()()(),F(24,"tbody"),M(25,AOa,11,9,"tr",6),G()());a&2&&(B(25),C("ngForOf",b.hotlists))},dependencies:[Gx],encapsulation:2});
var sZ=function(){};sZ.\u0275fac=function(a){return new (a||sZ)};sZ.\u0275mod=uc({type:sZ});sZ.\u0275inj=gc({imports:[Wx]});
var tZ=function(a,b){this.bLocation=a;this.butterBar=b},q5b=function(a,b){var c=a.bLocation.search()[b];return null!=c?Array.isArray(c)?(GK(a.butterBar,"Given multiple values for parameter "+b+"; using the first."),c[0]):"boolean"===typeof c?"":c:null};tZ.prototype.getCount=function(){var a=q5b(this,"c");return a?Ki(a):null};var r5b=function(a){return(a=q5b(a,"p"))?Ki(a):null};tZ.prototype.getQuery=function(){return q5b(this,"q")};
tZ.prototype.getDisplayColumns=function(){var a=this.bLocation.search().d;return a?(Array.isArray(a)?a:[a]).map(Ui).filter(bl):null};tZ.prototype.getSortColumns=function(){var a=this.bLocation.search().s;return a?(Array.isArray(a)?a:[a]).map(jna).filter(bl):null};
var uZ=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 s5b(e)}));void 0!==b.sortColumns&&d("s",null==b.sortColumns?null:(b.sortColumns||[]).map(function(e){var f="ASCENDING"==e.direction?"asc":"desc";return s5b(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)},s5b=function(a){return a.isCustomField()?String(a.customFieldId):a.type.toLowerCase()};tZ.\u0275fac=function(a){return new (a||tZ)(t(SK),t(DK))};tZ.\u0275prov=dc({token:tZ,factory:tZ.\u0275fac,providedIn:"root"});
var vZ=function(a){Z.call(this,a)};U(vZ,Z);vZ.prototype.getCustomField=function(){return m(this,nl,1)};vZ.prototype.setCustomField=function(a){return Bb(this,1,a)};vZ.prototype.toObject=function(){var a=null!=this?{customField:nJ(void 0,this.getCustomField())}:void 0;return a};vZ.messageId="b.CustomFieldResponse";
var wZ=function(){},xZ=function(a){this.apiResourceFactory=a;this.customfieldsResource=VGb(UGb(WGb(PJ(RJ(this.apiResourceFactory,"action/custom_fields/:customFieldId"),{transformResponse:function(b,c,d){return 200<=d&&299>=d?hl(b):b}}),{transformRequest:NGb}),{transformRequest:NGb})).build()};U(xZ,wZ);xZ.prototype.get=function(a){return this.customfieldsResource.get({customFieldId:a})};xZ.prototype.create=function(a,b){return this.customfieldsResource.create({componentId:a},b)};
xZ.prototype.update=function(a,b,c){return this.customfieldsResource.update({componentId:a,customFieldId:b},c)};xZ.prototype.delete=function(a,b){return this.customfieldsResource.delete({componentId:a,customFieldId:b}).then(function(){})};xZ.\u0275fac=function(a){return new (a||xZ)(t(QJ))};xZ.\u0275prov=dc({token:xZ,factory:xZ.\u0275fac,providedIn:"root"});var yZ=function(a){this.executor=a};U(yZ,wZ);yZ.prototype.get=function(a){return this.executor.get({url:"action/custom_fields/"+Number(a),responseConstructor:vZ}).then(nqa)};
yZ.prototype.create=function(a,b){b=qqa(b);return this.executor.post({url:"action/custom_fields",options:{params:{componentId:String(a)}},body:b,responseConstructor:vZ}).then(nqa)};yZ.prototype.update=function(a,b,c){b=Number(b);c=qqa(c);return this.executor.post({url:"action/custom_fields/"+b,options:{params:{componentId:String(a)}},body:c,responseConstructor:vZ}).then(nqa)};
yZ.prototype.delete=function(a,b){return this.executor.delete({url:"action/custom_fields/"+Number(b),options:{params:{componentId:String(a)}},responseConstructor:null})};yZ.\u0275fac=function(a){return new (a||yZ)(t(oI))};yZ.\u0275prov=dc({token:yZ,factory:yZ.\u0275fac,providedIn:"root"});
var zZ=function(a,b,c){this.urlPreferences=a;this.userPreferencesManager=b;this.customFieldApi=c};zZ.prototype.fetch=function(a,b){a=t5b(this,a,void 0===b?null:b);return{searchPreferences:Ho({page:a.page,query:a.query,resultsPerPage:a.resultsPerPage,sortColumns:a.sortColumns}),displayColumns:a.displayColumns}};
var t5b=function(a,b,c){var d=c?function(){return u5b(c)}:function(){return v5b(a)},e=c?function(){return w5b(c)}:function(){return x5b(a)};d=Promise.resolve(a.urlPreferences.getDisplayColumns()).then(function(k){return AZ(k)}).then(null,d).then(function(k){return AZ(k)}).then(null,tC(b.displayColumns)).then(function(k){return y5b(a,k)});e=Promise.resolve(a.urlPreferences.getSortColumns()).then(function(k){return AZ(k)}).then(null,e).then(function(k){return AZ(k)}).then(null,tC(b.sortColumns));var f=
Promise.resolve(a.urlPreferences.getCount()).then(function(k){return AZ(k)}).then(null,function(){return z5b(a)}).then(function(k){return AZ(k)}).then(null,tC(b.resultsPerPage)),h=Promise.resolve(a.urlPreferences.getQuery()).then(function(k){return AZ(k)}).then(null,function(){return A5b(c,function(k){return k.query})}).then(null,tC(b.query));b=r5b(a.urlPreferences)||b.page;return{displayColumns:d,sortColumns:e,resultsPerPage:f,query:h,page:b}},AZ=function(a){return null==a?Promise.reject(null):a},
u5b=function(a){return A5b(a,function(b){return b.displayColumn}).then(function(b){return B5b(b)})},w5b=function(a){return A5b(a,function(b){return b.sortOrder}).then(function(b){return C5b(b)})},x5b=function(a){return(0,S.firstValueFrom)(a.userPreferencesManager.sortColumnsPreferences$).then(function(b){return AZ(b)}).then(function(b){return C5b(b)})},v5b=function(a){return(0,S.firstValueFrom)(a.userPreferencesManager.displayColumnsPreferences$).then(function(b){return AZ(b)}).then(function(b){return B5b(b)})},
z5b=function(a){return(0,S.firstValueFrom)(a.userPreferencesManager.preferences$.pipe(R(function(b){var c;return null!=(c=b.resultsPerPage)?c:null}))).then(function(b){return AZ(b)})},A5b=function(a,b){return a?a.then(function(c){c=b(c);return null==c?Promise.reject(null):c}):Promise.reject(null)},B5b=function(a){if(!a||!a.length)return null;a=Ej(a,function(b){return b.customFieldId||b.customFieldName||b.type});return a.map(function(b){return new Ti({customFieldId:b.customFieldId||void 0,customFieldName:b.customFieldName||
void 0,type:"CANONICAL_ISSUE_ID"===b.type?"DUPLICATE_OF_ISSUE_ID":b.type})})},C5b=function(a){return a&&a.length?a.map(function(b){return void 0!==b.column?new Xi(new Ti(b.column),b.order):new Xi(new Ti(b.field),b.direction)}).filter(function(b){return"CUSTOM_FIELD"!=b.fieldId.type||null!=b.fieldId.customFieldId}):null},y5b=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)};zZ.\u0275fac=function(a){return new (a||zZ)(t(tZ),t(VI),t(wZ))};zZ.\u0275prov=dc({token:zZ,factory:zZ.\u0275fac,providedIn:"root"});
var BZ=function(a,b,c,d,e,f,h,k,q,v,y,E,I,N){wI.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=v;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 Rw;this.resultsLoaded=new Rw;this.selectionChange=new Rw;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 T;null==(T=L.issuesGrid)||H4b(T)}},{keys:["k"],displayAs:"k",description:"Move to the previous issue in the current panel",onPress:function(){var T;
null==(T=L.issuesGrid)||I4b(T)}},{keys:["x"],displayAs:"x",description:"Select/Deselect the current issue",onPress:function(){var T;null==(T=L.issuesGrid)||G4b(T)}},{keys:["s"],displayAs:"s",description:"Star/Unstar the current issue",onPress:function(){var T;null==(T=L.issuesGrid)||K4b(T)}},{keys:[Nj("i")],displayAs:"Shift+i",description:"Mark as read",onPress:function(){var T;null==(T=L.issuesGrid)||L4b(T,!0)}},{keys:[Nj("u")],displayAs:"Shift+u",description:"Mark as unread",onPress:function(){var T;
null==(T=L.issuesGrid)||L4b(T,!1)}},{keys:[Oj("*","a")],displayAs:"* then a",description:"Select all issues in the current panel",onPress:function(){var T;null==(T=L.issuesGrid)||T.selectAll()}},{keys:[Oj("*","n")],displayAs:"* then n",description:"Deselect all issues in the current panel",onPress:function(){var T;null==(T=L.issuesGrid)||D4b(T)}},{keys:["o","ENTER"],displayAs:"o / Enter",description:"Open the current issue",onPress:function(T){var Y=N.document.activeElement;if(1===T&&"A"===(null==
Y?void 0:Y.tagName))if(Y.href)T=L.paths.getBaseUrl(),Ni(Y.href,T)?b.url(Y.href.slice(T.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 T;null==(T=L.unregisterHotkeys)||T.call(L)})};U(BZ,wI);BZ.prototype.columnsChange=function(a){this.issueColumns=a};BZ.prototype.ngOnInit=function(){this.getIssues();D5b(this)};
var D5b=function(a){var b;null==(b=a.unregisterHotkeys)||b.call(a);a.isFocused?a.unregisterHotkeys=cJ(a.hotkeys,{title:"Bookmark Group Dashboard",hotkeys:a.BASE_HOTKEYS}):a.unregisterHotkeys=void 0},iPa=function(a,b){a.issuesGrid=b;J4b(a.issuesGrid,function(){var c,d={panelId:a.panel.panelId,selectedIssues:null==(c=a.issuesGrid)?void 0:c.getSelectedIssues()};a.selectionChange.emit(d)})};g=BZ.prototype;
g.setSort=function(a,b,c){c=void 0===c?!0:c;var d=Ui(a);if(null==d)this.$log.warn("WARNING: Invalid column name: "+a);else{var e=new Xi(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(g4b(a)));this.initialIssueColumns=Fi(this.issueColumns);this.isColumnSaveEnabled=!0};
g.goToIssue=function(a,b,c){c&&"A"===c.target.tagName||(eo(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(){UM(this.issuePagination);this.getIssues()};g.exportCsv=function(){vP(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 eLb(b.issuePagination,e)});a.catch(function(e){"number"===typeof e?b.goToPage(e):e&&b.errorHandler.errorHandler(null,
e)});return Ho({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:E5b,sortColumns:[],query:"",resultsPerPage:25}};
g.save=function(){var a=this,b=h4b(this.issueColumns.slice((this.searchResults?this.getMetaColumns(this.searchResults):F5b).length)).map(function(c){return new Ti(c)});this.resource.displayColumn=b;b=this.sortPreferences.map(function(c){return{direction:c.direction,field:c.fieldId}});this.resource.sortOrder=b;FK(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(){eo(this.analytics,this.ANALYTICS_CATEGORY,"discardChanges");this.issueColumns=[].concat(u(this.initialIssueColumns||[]));this.initialSortPreferences&&!Ei(this.initialSortPreferences,this.sortPreferences)&&(wa(this.sortPreferences),au(naa,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&&Nl(this.resource.ownerUser)===this.currentUserEmail};g.getMetaColumns=function(){return F5b};
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};
li.Object.defineProperties(BZ.prototype,{issueColumns:{configurable:!0,enumerable:!0,get:function(){return this.issueColumnsInternal},set:function(a){Ei(a,this.issueColumnsInternal)||(this.issueColumnsInternal=a,eo(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&&D5b(this)},get:function(){return this.focusedRowIndexInternal}},
isFocused:{configurable:!0,enumerable:!0,get:function(){return null!==this.focusedRowIndex}}});var F5b=[SY,TY,UY],E5b="priority type title assignee status issueId modifiedTime".split(" ").map(Ui);BZ.\u0275fac=function(a){return new (a||BZ)(D(sI),D(SK),D(HK),D(vH),D(DK),D(QM),D(TM),D(zZ),D(TK),D(IK),D(tP),D(lI),D(bJ),D(Window))};
BZ.\u0275dir=w({type:BZ,viewQuery:function(a,b){a&1&&Bf(QY,5);if(a&2){var c;Af(c=Df())&&(b.issuesGrid=c.first)}},inputs:{panel:"panel",isDashboardEditable:"isDashboardEditable",first:"first",last:"last",focusedRowIndex:"focusedRowIndex"},outputs:{focusedRowIndexChange:"focusedRowIndexChange",resultsLoaded:"resultsLoaded",selectionChange:"selectionChange"},features:[ae]});
var CZ=function(a,b){this.dialog=a;this.appEvents=b;this.last=this.first=!1};CZ.prototype.removePanel=function(){var a=this;this.dialog.open({title:"Remove Item?",content:Pn("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)}})};CZ.\u0275fac=function(a){return new (a||CZ)(D(ZM),D(MK))};
CZ.\u0275cmp=w({type:CZ,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&&(F(0,
"div")(1,"button",0),H(2,"mat-icon",1),G(),F(3,"mat-menu",null,2),M(5,FOa,6,4,"ng-template",3),G()());if(a&2){var b=Ce(4);B(1);C("matMenuTriggerFor",b)}},dependencies:[Cx,iF,gF,lF,fF,dF,BB],encapsulation:2});var DZ=function(){};DZ.\u0275fac=function(a){return new (a||DZ)};DZ.\u0275mod=uc({type:DZ});DZ.\u0275inj=gc({imports:[Wx,mF,wF,BG]});
var EZ=function(){};EZ.\u0275fac=function(a){return new (a||EZ)};EZ.\u0275mod=uc({type:EZ});EZ.\u0275inj=gc({imports:[Wx,wF]});
var FZ=function(){};FZ.\u0275fac=function(a){return new (a||FZ)};FZ.\u0275mod=uc({type:FZ});FZ.\u0275inj=gc({imports:[Wx,EZ]});
var GZ=function(){};GZ.\u0275fac=function(a){return new (a||GZ)};GZ.\u0275mod=uc({type:GZ});GZ.\u0275inj=gc({imports:[Wx,YN,FZ]});
var HZ=function(){};HZ.\u0275fac=function(a){return new (a||HZ)};HZ.\u0275mod=uc({type:HZ});HZ.\u0275inj=gc({imports:[Wx,EZ]});
var IZ=function(){};IZ.prototype.getValue=function(){return this.row[this.column.name]||""};IZ.prototype.isCustomField=function(){return this.column.isCustomField};
IZ.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 iJ(a);Ei(this.customFieldValue,a)||(this.customFieldValue=a);return this.customFieldValue};IZ.\u0275fac=function(a){return new (a||IZ)};
IZ.\u0275cmp=w({type:IZ,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&&(M(0,GOa,2,2,"span",0),M(1,HOa,1,1,"b-custom-field-value-display",1));a&2&&(C("ngIf",!b.isCustomField()),B(1),C("ngIf",b.isCustomField()))},dependencies:[Cx,IV],encapsulation:2,changeDetection:0});
var JZ=function(){};JZ.\u0275fac=function(a){return new (a||JZ)};JZ.\u0275mod=uc({type:JZ});JZ.\u0275inj=gc({imports:[Wx,lH,JV]});uca(CY,[Gx,Cx,Mx,HY,IZ],[]);
var KZ=function(){};KZ.\u0275fac=function(a){return new (a||KZ)};KZ.\u0275mod=uc({type:KZ});KZ.\u0275inj=gc({imports:[Wx,YN]});
var LZ=function(){};LZ.\u0275fac=function(a){return new (a||LZ)};LZ.\u0275mod=uc({type:LZ});LZ.\u0275inj=gc({imports:[Wx,KZ,cQ]});
var MZ=function(){};MZ.\u0275fac=function(a){return new (a||MZ)};MZ.\u0275mod=uc({type:MZ});MZ.\u0275inj=gc({imports:[LY,Wx,mF,cI,lH,BG,dC,zB,bI,JZ,EZ,GZ,cQ,HZ,KM,CS,EX,mY,LZ,cT,UN,HV,YN,HX,kV]});
var NZ=function(a,b,c){this.hotlistsApi=a;this.butterBar=b;this.appEvents=c};
NZ.prototype.repositionIssue=function(a,b,c,d,e,f){var h=this,k=b[0].position,q=k>b[1].position,v=b[c],y=b[d].position;raa(b,c,d);null==f||f();FK(this.butterBar,"Saving...",0);return this.hotlistsApi.repositionHotlistIssue(a,v.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();FK(h.butterBar,"Saved issue position.",4E3);h.appEvents.hotlistChanged.next({hotlistId:a,origin:e});return h.hotlistsApi.get(a)})};
NZ.\u0275fac=function(a){return new (a||NZ)(t(eL),t(DK),t(MK))};NZ.\u0275prov=dc({token:NZ,factory:NZ.\u0275fac,providedIn:"root"});
var G5b=["actionsMenuIconButton"],OZ=function(){this.buttonLabel="";this.buttonIcon="more-settings-vertical"};OZ.prototype.trackByIndex=function(a){return a};OZ.prototype.onAction=function(a,b){return bf(function(c){if("mouseup"===a.type&&a instanceof MouseEvent&&1!==a.button)return c.return();"action"!==b.type&&"select"!==b.type||b.action(a);df(c)})};OZ.prototype.ngOnInit=function(){};OZ.\u0275fac=function(a){return new (a||OZ)};
OZ.\u0275cmp=w({type:OZ,selectors:[["b-actions-menu"]],viewQuery:function(a,b){a&1&&Bf(G5b,5);if(a&2){var c;Af(c=Df())&&(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",4,"ngIf"],["mat-menu-item","","role","menuitemcheckbox",3,"b-menu-item-checked","disabled","click","mouseup",4,"ngIf"],["mat-menu-item",
"",3,"disabled","click","mouseup"],["mat-menu-item","","role","menuitemcheckbox",3,"disabled","click","mouseup"],[1,"b-menu-item-check-mark"],["svgIcon","done",1,"icon-s"]],template:function(a,b){a&1&&(M(0,IOa,3,3,"button",0),F(1,"mat-menu",null,1)(3,"div",2),M(4,JOa,2,1,"div",3),M(5,XOa,3,2,"ng-container",4),G()());a&2&&(C("ngIf",0<b.menuItems.length),B(4),C("ngIf",b.header),B(1),C("ngForOf",b.menuItems)("ngForTrackBy",b.trackByIndex))},dependencies:[iF,gF,lF,Gx,Cx,dF,BB],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 PZ=function(a){this.buttonRef=a;this.toRefocus=!1};PZ.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}))};PZ.\u0275fac=function(a){return new (a||PZ)(D(pd))};
PZ.\u0275dir=w({type:PZ,selectors:[["button","disabled","","focusBack",""]],inputs:{disabled:"disabled"},features:[Cc]});
var QZ=function(){this.pageChange=new Rw;this.resultsPerPageChange=new Rw;this.resultsPerPageFixed=!1;this.resultsPerPageOptions=[10,25,50,100,250]};QZ.prototype.nextPage=function(){this.searchResults&&this.pageChange.emit({page:this.searchResults.params.page+1})};var H5b=function(a){a.searchResults&&a.pageChange.emit({page:a.searchResults.params.page-1})};
li.Object.defineProperties(QZ.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}})}}});QZ.\u0275fac=function(a){return new (a||QZ)};
QZ.\u0275cmp=w({type:QZ,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&&(F(0,"div",0),M(1,YOa,1,1,"b-actions-menu",1),M(2,ZOa,6,3,"span",2),F(3,"button",3),J("click",function(){return H5b(b)})("keydown.enter",function(c){H5b(b);return c.stopPropagation()}),H(4,"mat-icon",4),G(),F(5,"button",5),J("click",function(){return b.nextPage()})("keydown.enter",function(c){b.nextPage();return c.stopPropagation()}),H(6,"mat-icon",6),G()());a&2&&(B(1),C("ngIf",b.searchResults&&0<b.searchResults.issues.length&&
!b.resultsPerPageFixed),B(1),C("ngIf",b.searchResults&&0<b.searchResults.issues.length),B(1),C("disabled",!(null==b.searchResults?0:b.searchResults.hasPreviousPage())),B(2),C("disabled",!(null==b.searchResults?0:b.searchResults.hasNextPage())))},dependencies:[Cx,BB,dF,OZ,PZ],encapsulation:2});
var RZ=function(){};RZ.\u0275fac=function(a){return new (a||RZ)};RZ.\u0275mod=uc({type:RZ});RZ.\u0275inj=gc({imports:[mF,Wx,wF,BG,lH]});
var SZ=function(){};SZ.\u0275fac=function(a){return new (a||SZ)};SZ.\u0275mod=uc({type:SZ});SZ.\u0275inj=gc({});
var TZ=function(){};TZ.\u0275fac=function(a){return new (a||TZ)};TZ.\u0275mod=uc({type:TZ});TZ.\u0275inj=gc({imports:[Wx,BG,wF,RZ,SZ]});
var UZ=function(a,b,c,d,e,f,h,k,q,v,y,E,I,N,L,T,Y){BZ.call(this,c,e,f,h,k,q,v,y,E,d,I,L,T,Y);this.hotlists=a;this.hotlistApi=b;this.appEvents=N;this.resource=null};U(UZ,BZ);UZ.\u0275dir=BZ.\u0275dir;g=UZ.prototype;g.ngOnInit=function(){BZ.prototype.ngOnInit.call(this)};g.setSort=function(a,b){var c=this.getSort();"position"===a||c&&"position"===c.field?BZ.prototype.setSort.call(this,a,b,!1):BZ.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"});FK(a.butterBar,'Saved changes to hotlist "'+b.name+'".');eo(a.analytics,a.ANALYTICS_CATEGORY,"savedParams");a.cdr.detectChanges();return b}).catch(function(b){a.errorHandler.errorHandler(null,b);return Promise.reject(b)});GK(this.butterBar,"Hotlist is not set at this time.");
return Promise.resolve()};g.getGridPreferencesDefaults=function(){return Object.assign({},BZ.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?I5b:J5b};g.getSearchParams=function(a){a=BZ.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;eo(c.analytics,c.ANALYTICS_CATEGORY,"issueDragDrop")})};UZ.\u0275fac=function(a){return new (a||UZ)(D(NZ),D(eL),D(sI,2),D(IK),D(SK),D(HK),D(vH),D(DK),D(QM),D(TM),D(zZ),D(TK),D(tP),D(MK),D(lI),D(bJ),D(uM))};
UZ.\u0275cmp=w({type:UZ,selectors:[["b-hotlist-panel"]],inputs:{hotlistId:"hotlistId"},features:[Ge([sI]),ae],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&&(F(0,"div",0)(1,"div",1)(2,"div",2),M(3,$Oa,2,0,"div",3),M(4,aPa,2,0,"div",3),M(5,dPa,8,5,"div",3),G(),M(6,ePa,5,0,"div",4),F(7,"b-pagination",5),
J("pageChange",function(c){return b.goToPage(c.page)}),G()(),M(8,kPa,4,3,"div",3),G());a&2&&(ge("aria-busy",b.isLoading),B(3),C("ngIf",!b.resource&&!b.isLoading),B(1),C("ngIf",!b.resource&&b.isLoading),B(1),C("ngIf",b.resource),B(1),C("ngIf",b.hasParamChanges()),B(1),C("searchResults",b.searchResults)("resultsPerPageFixed",!0),B(1),C("ngIf",b.resource))},dependencies:[Cx,QY,BB,sF,QZ,CZ,kN],encapsulation:2});var J5b=[SY,TY,UY,N4b],I5b=[SY,M4b,TY,UY,N4b],VZ=function(){};
VZ.\u0275fac=function(a){return new (a||VZ)};VZ.\u0275mod=uc({type:VZ});VZ.\u0275inj=gc({imports:[Wx,MZ,BG,lH,TZ,DZ,WN]});
var WZ=function(a,b){this.checker=a;this.document=b},K5b=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?K5b(a,b[c]):null;if(d)return d}return null};WZ.\u0275fac=function(a){return new (a||WZ)(t(Jy),t(ji))};WZ.\u0275prov=dc({token:WZ,factory:WZ.\u0275fac,providedIn:"root"});
var XZ=function(a,b){this.elementRef=a;this.interactivityHelper=b;this.firstFocusableElement=null};XZ.prototype.focus=function(){this.firstFocusableElement||(this.firstFocusableElement=K5b(this.interactivityHelper,this.elementRef.nativeElement));var a;null==(a=this.firstFocusableElement)||a.focus()};li.Object.defineProperties(XZ.prototype,{nativeElement:{configurable:!0,enumerable:!0,get:function(){return this.elementRef.nativeElement}}});XZ.\u0275fac=function(a){return new (a||XZ)(D(pd),D(WZ))};
XZ.\u0275dir=w({type:XZ,selectors:[["","onedevFocusableListOption",""]]});var YZ=function(){};YZ.\u0275fac=function(a){return new (a||YZ)};YZ.\u0275mod=uc({type:YZ});YZ.\u0275inj=gc({});
var L5b=["listEl"],mPa=function(a,b){return{$implicit:a,index:b}},M5b=[[["","empty",""]]],ZZ=function(){this.items=[];this.disabled=this.reorderable=this.removable=!1;this.itemsChange=new Rw;this.itemChange=new Rw;this.itemMove=new Rw;this.destroyed$=new S.ReplaySubject(1);this.isListFocused=!1};g=ZZ.prototype;g.ngOnInit=function(){};
g.ngAfterViewInit=function(){var a=this;this.keyManager=iA(hA(new qA(this.viewOptions)));this.keyManager.tabOut.pipe(cg(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?nA(this.keyManager):oA(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||(lp(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};
ZZ.\u0275fac=function(a){return new (a||ZZ)};
ZZ.\u0275cmp=w({type:ZZ,selectors:[["onedev-editable-list"]],viewQuery:function(a,b){a&1&&(Bf(L5b,7),Bf(XZ,5));if(a&2){var c;Af(c=Df())&&(b.listEl=c.first);Af(c=Df())&&(b.viewOptions=c)}},hostVars:2,hostBindings:function(a,b){a&2&&le("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&&(xe(M5b),F(0,"section",0,1),J("keydown",function(d){return b.handleKeydown(d)})("focus",function(){return b.isListFocused=
!0})("blur",function(){return b.isListFocused=!1}),M(2,pPa,4,2,"ng-container",2),M(3,tPa,2,2,"ng-template",null,3,Jf),G(),M(5,wPa,2,6,"ng-template",null,4,Jf),M(7,xPa,2,1,"ng-template",null,5,Jf),M(9,yPa,1,7,"ng-template",null,6,Jf),M(11,zPa,2,0,"ng-template",null,7,Jf));if(a&2){var c=Ce(4);ge("role",b.items.length?"list":null)("tabindex",b.items.length?0:-1)("aria-labelledby",b.labelledById);B(2);C("ngIf",b.reorderable)("ngIfElse",c)}},dependencies:[Gx,Cx,Mx,BB,sF,DA,rV,sV,lV,XZ],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 $Z=function(a){this.pathBuilder=a;this.disabled=this.reorderable=!1;this.itemsChange=new Rw;this.itemChange=new Rw;this.itemMove=new Rw;this.itemsInternal=[]};$Z.prototype.ngOnChanges=function(){!this.reorderable&&this.orderByFn&&this.items.sort(this.orderByFn)};$Z.prototype.issueToText=function(a){return"Issue "+a.issueId};$Z.prototype.getLink=function(a){return this.pathBuilder.editIssue(a.issueId)};
$Z.prototype.getStatusTextStyle=function(a){return(a=a.status&&Bn[a.status])?a.open?"":"closed":""};li.Object.defineProperties($Z.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}}});$Z.\u0275fac=function(a){return new (a||$Z)(D(cY))};
$Z.\u0275cmp=w({type:$Z,selectors:[["b-rel-issues-list"]],inputs:{items:"items",orderByFn:"orderByFn",reorderable:"reorderable",disabled:"disabled"},outputs:{itemsChange:"itemsChange",itemChange:"itemChange",itemMove:"itemMove"},features:[Cc],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&&(F(0,"onedev-editable-list",0),J("itemsChange",function(d){return b.itemsChange.emit(d)})("itemChange",
function(d){return b.itemChange.emit(d)})("itemMove",function(d){return b.itemMove.emit(d)}),G(),M(1,FPa,11,9,"ng-template",null,1,Jf));if(a&2){var c=Ce(2);C("removable",!0)("disabled",b.disabled)("reorderable",b.reorderable)("items",b.items)("listItemTemplate",c)("valueToTextFunc",b.issueToText)}},dependencies:[Fx,Cx,ZZ,AX,nN,oN,rN,pN,DX],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 a_=function(){};a_.\u0275fac=function(a){return new (a||a_)};a_.\u0275mod=uc({type:a_});a_.\u0275inj=gc({imports:[Wx,BG,lH,tV,aA,YZ]});
var b_=function(){};b_.\u0275fac=function(a){return new (a||b_)};b_.\u0275mod=uc({type:b_});b_.\u0275inj=gc({imports:[Wx,a_,EX,YN,HX]});
var N5b=[[["","footer-items",""]]],c_=function(a,b,c,d,e){wI.call(this);this.matDialog=a;this.paths=c;this.analytics=d;this.butterBar=e;this.items=[];this.itemsChange=new Rw;this.itemChange=new Rw;this.itemMove=new Rw;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,v=f.status?null!=(q=null==(k=Bn[f.status])?
void 0:k.sortOrder)?q:0:0,y,E;k=h.status?null!=(E=null==(y=Bn[h.status])?void 0:y.sortOrder)?E:0:0;return v===k?f.issueId-h.issueId:v-k};this.enableWtdmMvpUi=xH(b,"enableWtdmMvpUi")};U(c_,wI);c_.\u0275dir=wI.\u0275dir;c_.prototype.ngOnInit=function(){};c_.prototype.ngOnChanges=function(){!this.reorderable&&this.orderByFn&&this.items.sort(this.orderByFn)};
var SPa=function(a){NB(a.matDialog.open(KX,{data:{title:a.relDisplayMessage,componentId:a.componentId,defaultChoices:[],allowMultipleIds:!0,currentResourceId:a.currentResourceId,currentResourceType:"issue"}})).pipe(cg(a.destroyed$)).subscribe(function(b){(null==b?0:b.length)&&O5b(a,b.map(function(c){return c.resourceId}))});eo(a.analytics,io.ISSUE_PICKER,"click",a.addButtonTitle);a.startTimestamp||(a.startTimestamp=new Date)};
c_.prototype.removeItem=function(a){if(!this.disabled){var b=[].concat(u(this.items)),c=b.find(function(d){return d.issueId===a});c&&(ya(b,c),this.itemChange.emit({item:c,added:!1,items:b}),this.itemsChange.emit(b))}};
var O5b=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)FK(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(),eo(a.analytics,io.ISSUE_PICKER,"apply",a.relation,b),TKb(a.analytics,b,a.relation),
a.startTimestamp=null):eo(a.analytics,io.ISSUE_PICKER,"apply",a.relation)}};c_.prototype.getStatusTextStyle=function(a){return(a=a.status&&Bn[a.status])&&(a.open?"":"closed")||""};c_.prototype.getLink=function(a){return this.paths.editIssue(a.issueId)};c_.\u0275fac=function(a){return new (a||c_)(D(ZB),D(vH),D(TK),D(QM),D(DK))};
c_.\u0275cmp=w({type:c_,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:[ae,Cc],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&&(xe(N5b),F(0,"div",0),H(1,"div",1),F(2,"div",2),M(3,HPa,2,1,"div",3),M(4,PPa,2,1,"div",3),M(5,QPa,2,0,"div",3),G(),M(6,TPa,
5,3,"div",4),G());a&2&&(B(2),le("bv2-rel-issues-picker-content-without-footer",!b.addButtonTitle),B(1),C("ngIf",b.enableWtdmMvpUi),B(1),C("ngIf",!b.enableWtdmMvpUi),B(1),C("ngIf",!b.items.length),B(1),C("ngIf",b.addButtonTitle))},dependencies:[BB,sF,Fx,Gx,Cx,$Z,nN,oN,rN,pN,DX,AX],encapsulation:2});var d_=function(){};d_.\u0275fac=function(a){return new (a||d_)};d_.\u0275mod=uc({type:d_});d_.\u0275inj=gc({imports:[BG,lH,Wx,MX,b_,YN,HX,EX]});
var e_=function(a,b,c,d,e,f,h,k,q,v,y,E,I,N,L){BZ.call(this,b,d,e,f,h,k,q,v,y,c,E,I,N,L);this.savedSearchApi=a;this.resource=null};U(e_,BZ);e_.\u0275dir=BZ.\u0275dir;e_.prototype.ngOnInit=function(){BZ.prototype.ngOnInit.call(this)};e_.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};e_.prototype.saveResource=function(){return Promise.resolve()};
e_.\u0275fac=function(a){return new (a||e_)(D(MN),D(sI,2),D(IK),D(SK),D(HK),D(vH),D(DK),D(QM),D(TM),D(zZ),D(TK),D(tP),D(lI),D(bJ),D(uM))};
e_.\u0275cmp=w({type:e_,selectors:[["b-saved-search-panel"]],inputs:{savedSearchId:"savedSearchId"},features:[Ge([sI]),ae],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&&(F(0,"div",0)(1,"div",1)(2,"div",2),M(3,UPa,2,0,"div",3),M(4,VPa,2,0,"div",3),M(5,YPa,8,5,"div",4),G(),F(6,"b-pagination",5),J("pageChange",function(c){return b.goToPage(c.page)}),G()(),M(7,cQa,4,3,"div",3),G());a&2&&(ge("aria-busy",b.isLoading),B(3),C("ngIf",!b.resource&&!b.isLoading),B(1),C("ngIf",!b.resource&&b.isLoading),B(1),C("ngIf",b.resource),B(1),C("searchResults",b.searchResults)("resultsPerPageFixed",!0),B(1),C("ngIf",b.resource))},
dependencies:[Cx,QY,sF,QZ,CZ,kN],encapsulation:2});var f_=function(){};f_.\u0275fac=function(a){return new (a||f_)};f_.\u0275mod=uc({type:f_});f_.\u0275inj=gc({imports:[Wx,MZ,lH,TZ,DZ,WN]});
var g_=function(){};g_.\u0275fac=function(a){return new (a||g_)};g_.\u0275mod=uc({type:g_});g_.\u0275inj=gc({});
var h_=function(){this.label="Team"};h_.prototype.ngOnInit=function(){};h_.\u0275fac=function(a){return new (a||h_)};
h_.\u0275cmp=w({type:h_,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&&(F(0,"div",0)(1,"span",1),M(2,dQa,3,3,"span",2),G()());a&2&&(ge("aria-label",b.label),B(2),C("ngForOf",b.teamPath))},dependencies:[Gx,KI],encapsulation:2});
var i_=function(){};i_.\u0275fac=function(a){return new (a||i_)};i_.\u0275mod=uc({type:i_});i_.\u0275inj=gc({imports:[Wx,QI,iV]});
var j_=function(a){this.bFocus=!0;this.nativeElement=a.nativeElement};j_.prototype.ngOnInit=function(){this.bFocus&&this.nativeElement.focus()};j_.prototype.ngOnChanges=function(){this.bFocus&&this.nativeElement.focus()};j_.\u0275fac=function(a){return new (a||j_)(D(pd))};j_.\u0275dir=w({type:j_,selectors:[["","bFocus",""]],inputs:{bFocus:"bFocus"},features:[Cc]});var k_=function(){};k_.\u0275fac=function(a){return new (a||k_)};k_.\u0275mod=uc({type:k_});k_.\u0275inj=gc({});
var P5b=["form"],Q5b=["numberInput"],R5b=/^\d+\.?\d*$/,S5b={DAYS:0,YEARS:1,0:"DAYS",1:"YEARS"},l_=function(){this.disabled=!1;this.ariaLabel="";this.durationDaysChange=new Rw;this.displayUnits=0;this.timeUnitEnum=S5b};
l_.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()})};l_.prototype.ngAfterViewInit=function(){};
l_.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))};l_.prototype.ngOnDestroy=function(){this.formSubscription&&this.formSubscription.unsubscribe()};l_.\u0275fac=function(a){return new (a||l_)};
l_.\u0275cmp=w({type:l_,selectors:[["b-duration-picker"]],viewQuery:function(a,b){a&1&&(Bf(P5b,7),Bf(Q5b,7));if(a&2){var c;Af(c=Df())&&(b.form=c.first);Af(c=Df())&&(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&&(F(0,"form",null,0)(2,"div",1)(3,"mat-form-field",2)(4,"input",3,4),J("keydown",function(c){switch(c.key){case "-":case "e":case "E":c.preventDefault()}})("paste",function(c){var d=c.clipboardData.getData("Text");R5b.test(d)||c.preventDefault()}),G()(),F(6,"mat-form-field",2)(7,"mat-select",5)(8,"mat-option",6),O(9,"days"),G(),F(10,"mat-option",
6),O(11,"year(s)"),G()()()()());a&2&&(B(4),C("ngModel",b.displayNumber)("disabled",b.disabled),ge("aria-label",b.ariaLabel),B(3),C("ngModel",b.displayUnits)("disabled",b.disabled),B(1),C("value",b.timeUnitEnum.DAYS),B(2),C("value",b.timeUnitEnum.YEARS))},dependencies:[sy,Jg,ty,ly,my,By,ry,py,oC,qC,XS,xB],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 m_=function(){};m_.\u0275fac=function(a){return new (a||m_)};m_.\u0275mod=uc({type:m_});m_.\u0275inj=gc({imports:[Wx,Gy,rC,pC,YS,k_]});
var n_=function(a,b,c){this.dialogRef=a;this.data=b;this.documentationLinks=c};n_.prototype.getDisablingFieldsHelpLink=function(){return this.documentationLinks.getDisablingFieldsHelpLink()};n_.prototype.onNoClick=function(){this.dialogRef.close(!1)};n_.\u0275fac=function(a){return new (a||n_)(D(MB),D(XB),D(rP))};
n_.\u0275cmp=w({type:n_,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&&(F(0,"h1",0),O(1),G(),F(2,"div",1)(3,"p"),O(4,
" The "),F(5,"strong"),O(6),G(),O(7," field will change state from "),F(8,"strong"),O(9),G(),O(10," to "),F(11,"strong"),O(12),G(),O(13,". "),G(),M(14,eQa,6,2,"p",2),F(15,"p"),O(16,"Are you sure?"),G()(),F(17,"div",3)(18,"button",4),J("click",function(){return b.onNoClick()}),O(19," Cancel "),G(),F(20,"button",5),O(21," Confirm "),G()());a&2&&(B(1),De("Field State Change for ",b.data.fieldName,""),B(5),Ee(b.data.fieldName),B(3),Ee(b.data.oldFieldState),B(3),Ee(b.data.newFieldState),B(2),C("ngIf",
b.data.noteText),B(6),C("mat-dialog-close",!0))},dependencies:[Cx,BB,$B,aC,bC,cC],styles:[".notice[_ngcontent-%COMP%]{font-weight:bold}"]});
var T5b=["fieldStateMenuButton"],U5b=function(a){return{"mat-stroked-button":a}},o_=function(a){this.dialog=a;this.fieldName="";this.fieldState=1;this.confirmationDialog=this.enabledOnParent=!0;this.disabled=!1;this.fieldStateChange=new Rw;this.FieldStateProto=sFb;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."}};o_.prototype.ngOnInit=function(){this.updateMenuButton()};
o_.prototype.ngOnChanges=function(){this.updateMenuButton()};
var W5b=function(a,b){b!==a.fieldState&&(a.confirmationDialog?V5b(a,b):(a.fieldState=b,a.updateMenuButton(),a.fieldStateChange.emit(b)))},V5b=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);NB(a.dialog.open(n_,{width:"500px",data:{fieldName:a.fieldName,oldFieldState:X5b(a,a.fieldState),newFieldState:X5b(a,b),noteText:e}})).pipe(Qf()).subscribe(function(f){f?
(a.fieldState=b,a.updateMenuButton(),a.fieldStateChange.emit(b),a.disabled=!0):a.focus()})};o_.prototype.updateMenuButton=function(){this.defaultLabel="Default ("+(this.enabledOnParent?this.msgs.visibleName:this.msgs.hiddenName)+")";this.menuLabel=X5b(this,this.fieldState)};var X5b=function(a,b){switch(b){case 1:return a.defaultLabel;case 2:return a.msgs.hiddenName;case 3:return a.msgs.visibleName;default:mh(b,"Unknown FieldState.")}};o_.prototype.focus=function(){this.disabled=!1;this.fieldStateMenuButton.nativeElement.focus()};
o_.\u0275fac=function(a){return new (a||o_)(D(ZB))};
o_.\u0275cmp=w({type:o_,selectors:[["b-field-state-menu"]],viewQuery:function(a,b){a&1&&Bf(T5b,5,pd);if(a&2){var c;Af(c=Df())&&(b.fieldStateMenuButton=c.first)}},inputs:{fieldName:"fieldName",fieldState:"fieldState",enabledOnParent:"enabledOnParent",confirmationDialog:"confirmationDialog",disabled:"disabled"},outputs:{fieldStateChange:"fieldStateChange"},features:[Cc],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&&(F(0,"div")(1,"button",0,1)(3,"div",2),H(4,"span",3)(5,"b-icon",4),G()()(),F(6,"mat-menu",null,5)(8,"div",6)(9,"div",7)(10,"button",8),J("click",function(){return W5b(b,b.FieldStateProto.INHERIT)}),H(11,"b-icon",9),F(12,"div",10),O(13),G(),F(14,"div",11),O(15),G()()(),H(16,"mat-divider"),F(17,"button",12),J("click",function(){return W5b(b,b.FieldStateProto.DISABLED)}),F(18,"div",13)(19,"div",
14),H(20,"b-icon",9),F(21,"div",10),O(22),G(),F(23,"div",11),O(24),G()()()(),F(25,"button",12),J("click",function(){return W5b(b,b.FieldStateProto.ENABLED)}),F(26,"div",13)(27,"div",14),H(28,"b-icon",9),F(29,"div",10),O(30),G(),F(31,"div",11),O(32),G()()()()()());if(a&2){var c=Ce(7);B(1);C("ngClass",Ie(16,U5b,!b.disabled))("disabled",b.disabled)("matMenuTriggerFor",c);B(3);C("innerHTML",b.menuLabel,Ld);B(6);le("b-menu-item-checked",b.fieldState===b.FieldStateProto.INHERIT);B(3);De(" ",b.defaultLabel,
" ");B(2);De(" ",b.msgs.inheritDescription," ");B(2);le("b-menu-item-checked",b.fieldState===b.FieldStateProto.DISABLED);B(5);De(" ",b.msgs.hiddenName," ");B(2);De(" ",b.msgs.hiddenDescription," ");B(1);le("b-menu-item-checked",b.fieldState===b.FieldStateProto.ENABLED);B(5);De(" ",b.msgs.visibleName," ");B(2);De(" ",b.msgs.visibleDescription," ")}},dependencies:[Fx,BB,YH,iF,gF,lF,zH],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 p_=function(){};p_.\u0275fac=function(a){return new (a||p_)};p_.\u0275mod=uc({type:p_});p_.\u0275inj=gc({imports:[Wx,BG,dC,cI,mF,bI,xO]});
var Y5b=new ld("XapHatsSurveyApiKey"),Z5b=new ld("XapHatsSurveyLocale"),$5b=new ld("XapHatsSurveyWindow"),a6b=new ld("XapHatsSurveyListnrProductId");
var b6b=new Map([[0,1],[1,2]]),q_=function(a,b,c,d,e){var f=function(){var h={apiKey:a,locale:null!=c?c:"en-US",window:d};h=oAb(rAb,"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 qAb(h)};this.helpService=e?e.runOutsideAngular(f):f()},aq=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 S.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(bg(function(f){return new S.Observable(function(h){var k;a.helpService.presentSurvey({surveyData:f,
colorScheme:d.theme?b6b.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)})}))};q_.\u0275fac=function(a){return new (a||q_)(t(Y5b),t(a6b),t(Z5b,8),t($5b,8),t(jg,8))};q_.\u0275prov=dc({token:q_,factory:q_.\u0275fac,providedIn:"any"});
var r_=function(a,b,c,d,e,f,h){wI.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 Rw;this.hideHeader=this.showInline=!1;this.issueTitle="";this.issue={};this.customFieldMap={};this.numIssues=5;this.headerChange=new Rw;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 S.Subject;this.CATEGORIES=io;this.enableDupSearchControl=xH(h,"enableDupSearchControl");this.enableDupSearchA=xH(h,"enableDupSearchA");this.enableDupSearchB=xH(h,"enableDupSearchB");this.enableDupSearchC=xH(h,"enableDupSearchC");this.enableSimilarIssues=h.isInternalSession()&&(this.enableDupSearchControl||this.enableDupSearchA||this.enableDupSearchB||this.enableDupSearchC)};U(r_,wI);r_.\u0275dir=wI.\u0275dir;
r_.prototype.ngOnInit=function(){var a=this;this.fetchIssues();this.refresh$.pipe(Nf(750),cg(this.destroyed$)).subscribe(function(){a.refresh()})};r_.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=c6b(this),this.headerChange.emit(iQa(this)),this.refresh$.next());b&&this.refresh()}};
var c6b=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()};r_.prototype.hasCustomFieldValue=function(){return this.issue.customField?0<this.issue.customField.map(function(a){return new iJ(a)}).filter(function(a){return!a.isEmpty()}).length:!1};r_.prototype.refresh=function(){this.isRefreshing=!0;this.page=1;this.magicBoxIssues=[];this.fetchIssues()};
r_.prototype.isLoadingAsyncResults=function(){return this.isRefreshing};
r_.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 iQa=function(a){return a.showSuggestedDupes?"Similar Issues":"Recent Issues"};r_.prototype.fetchIssues=function(a){a&&(this.page=a);this.componentId&&(this.isRefreshing=!0,a=this.showSuggestedDupes?d6b(this):"componentid:"+this.componentId+" status:open",this.searchAsync(a))};
var d6b=function(a){var b=Zk(a.issue.componentId),c=a.issue.title;b=(b?"componentid:"+b:"")+" "+(c?"title:("+c+")":"");if(a.enableDupSearchControl)return b;c=Zk(a.issue.comment);b=b+" "+(c?"comment:("+c+")":"");if(a.enableDupSearchA)return b;c=Zk(a.issue.type);var d=Zk(a.issue.priority);b=b+" "+(d?"priority:"+d:"")+" "+(c?"type:"+c:"");if(a.enableDupSearchB)return b;c=Zk(a.issue.hotlistId);b=b+" "+(!c||1>(null==c?void 0:c.length)?"":"hotlistid:("+(c.join(" | ")+")"))+" "+e6b(a,Zk(a.issue.customField));
return a.enableDupSearchC?b:""},e6b=function(a,b){return!b||1>(null==b?void 0:b.length)?"":b.map(function(c){return new iJ(c)}).filter(function(c){return!c.isEmpty()}).map(function(c){return f6b(a,c)}).join(" ")},f6b=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=g6b(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 g6b(e)}).join(" | ")+")";break;case "REPEATED_ENUM":d='("'+b.repeatedEnumValue.values.join('" | "')+'")';break;case "REPEATED_NUMERIC":d="("+b.repeatedNumericValue.values.join(" | ")+")"}return d?c+d:""},g6b=function(a){return a?a.year+"-"+("0"+a.month).slice(-2)+"-"+("0"+a.day).slice(-2):""};
r_.prototype.getCustomFieldType=function(a){var b,c;return null!=(c=null==(b=this.customFieldMap[a.customFieldId])?void 0:b.type)?c:""};r_.prototype.getTotalText=function(a,b,c,d){return a<=b*c?a.toString():d?"many":a.toString()};r_.prototype.getGroupName=function(){return this.enableDupSearchControl?"BaseVariant":this.enableDupSearchA?"VariantA":this.enableDupSearchB?"VariantB":this.enableDupSearchC?"VariantC":"Control"};
r_.\u0275fac=function(a){return new (a||r_)(D(sI,2),D(TK),D(IK),D(yX),D(QM),D(q_),D(vH))};
r_.\u0275cmp=w({type:r_,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:[Ge([yX,sI]),ae,Cc],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&&M(0,vQa,3,2,"div",
0);a&2&&C("ngIf",b.componentId)},dependencies:[wO,zH,kN,Fx,Gx,Cx,DX,nN,oN,rN,pN,BB,dF],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 s_=function(){};s_.\u0275fac=function(a){return new (a||s_)};s_.\u0275mod=uc({type:s_});s_.\u0275inj=gc({imports:[xO,bI,WN,Wx,HX,YN,BG,wF]});
var t_=function(a,b){this.dialogRef=b;this.issueId=a.issueId;this.issueTitle=a.issueTitle};t_.prototype.close=function(){this.dialogRef.close(!1)};t_.\u0275fac=function(a){return new (a||t_)(D(XB),D(MB))};
t_.\u0275cmp=w({type:t_,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&&(F(0,"h1",0),O(1,"Unsubscribe From Issue"),G(),F(2,"mat-dialog-content")(3,"div",1),O(4," Are you sure you would like to unsubscribe from the following issue? "),
G(),H(5,"br"),F(6,"div",2)(7,"a",3)(8,"span"),O(9),G()(),O(10," - "),F(11,"span"),O(12),G()(),H(13,"br"),F(14,"div",1),O(15," By unsubscribing, you will no longer receive email updates about this issue. "),G()(),F(16,"mat-dialog-actions")(17,"button",4),J("click",function(){return b.close()}),O(18," Cancel "),G(),F(19,"button",5),J("click",function(){b.dialogRef.close(!0)}),O(20," Unsubscribe "),G()());a&2&&(B(7),ze("href","/issues/",b.issueId,"",Md),B(2),De("b/",b.issueId,""),B(3),Ee(b.issueTitle))},
dependencies:[aC,bC,cC,BB],encapsulation:2});
var h6b=function(a,b){return{small:a,medium:b}},i6b=function(a){return{black:a}},u_=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 Rw;this.showNotificationSettings=new Rw;this.menuLabel="Default";this.menuIcon="notifications_none_24px";this.isAnonymous=this.activeSession.isAnonymous();this.subscriptionInternal="UNKNOWN_SUBSCRIPTION";this.NotificationSubscription=vAb;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"}]])};u_.prototype.ngOnInit=function(){j6b(this)};u_.prototype.ngOnChanges=function(){this.updateMenuButton()};u_.prototype.updateSubscription=function(a){a!==this.subscriptionInternal&&this.subscriptionChange.emit(a)};u_.prototype.updateMenuButton=function(){var a=this.subscriptions.get(this.subscriptionInternal);a&&(this.menuLabel=a.label,this.menuIcon=a.icon)};
var j6b=function(a){var b,c;bf(function(d){if(1==d.nextAddress)return"true"!==a.routeParams.unsubscribe||a.subscription&&"UNSUBSCRIBED"===a.subscription?d.return():cf(d,(0,S.firstValueFrom)(a.issueFridge.watch(a.issueId)),2);if(3!=d.nextAddress)return(b=d.yieldResult)?cf(d,(0,S.firstValueFrom)(NB(a.matDialogService.open(t_,{width:"400px",data:{issueId:a.issueId,issueTitle:b.snapshot[0].title}}))),3):d.return();if(c=d.yieldResult)a.updateSubscription("UNSUBSCRIBED"),eo(a.analytics,io.EDIT_ISSUE,"unsubscribeUsingDialog");
df(d)})};li.Object.defineProperties(u_.prototype,{subscription:{configurable:!0,enumerable:!0,set:function(a){null!=a&&(this.subscriptionInternal=a)},get:function(){return this.subscriptionInternal}}});u_.\u0275fac=function(a){return new (a||u_)(D(vH),D(ZB),D(wL),D(QM),D($R))};
u_.\u0275cmp=w({type:u_,selectors:[["b-notification-menu"]],inputs:{subscription:"subscription",iconOnly:"iconOnly",issueId:"issueId"},outputs:{subscriptionChange:"subscriptionChange",showNotificationSettings:"showNotificationSettings"},features:[Cc],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&&(F(0,"div")(1,"button",0)(2,"div",1),H(3,"b-icon",2),M(4,wQa,3,1,"ng-container",3),G()()(),F(5,"mat-menu",null,4)(7,"div",5)(8,"div",6)(9,"button",7),J("click",function(){return b.updateSubscription(b.NotificationSubscription.UNKNOWN_SUBSCRIPTION)}),
H(10,"b-icon",8),F(11,"div",9),O(12," Default "),G(),F(13,"div",10),O(14," receive emails based on your default settings. "),G()(),H(15,"mat-divider",11),F(16,"button",12),J("click",function(f){return b.showNotificationSettings.emit(f)}),H(17,"b-icon",13),G()(),H(18,"mat-divider"),F(19,"button",14),J("click",function(){return b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES)}),F(20,"div",15)(21,"div",16),H(22,"b-icon",8),F(23,"div",9),O(24," All Updates "),G(),F(25,"div",10),
O(26," receive emails for major and minor updates. "),G()(),F(27,"div",17)(28,"xap-bubble",18,19),H(30,"b-icon",20),M(31,xQa,13,0,"ng-template",null,21,Jf),G()()()(),F(33,"button",22),J("click",function(){return b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES)}),F(34,"div",15)(35,"div",16),H(36,"b-icon",8),F(37,"div",9),O(38," Major Updates "),G(),F(39,"div",10),O(40," receive emails for major updates only. "),G()(),F(41,"div",17)(42,"xap-bubble",18,23),H(44,"b-icon",20),
M(45,yQa,15,0,"ng-template",null,24,Jf),G()()()(),F(47,"button",25),J("click",function(){return b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_CLOSURE_ONLY)}),F(48,"div",15)(49,"div",16),H(50,"b-icon",8),F(51,"div",9),O(52," Closure Only "),G(),F(53,"div",10),O(54," only receive emails when the issue is closed. "),G()()()(),F(55,"button",25),J("click",function(){return b.updateSubscription(b.NotificationSubscription.UNSUBSCRIBED)}),F(56,"div",15)(57,"div",16),H(58,"b-icon",8),F(59,"div",
9),O(60," None "),G(),F(61,"div",10),O(62," unsubscribe from further email updates. "),G()()()()()());if(a&2){var c=Ce(6),d=Ce(32),e=Ce(46);B(1);le("icon-only",b.iconOnly);C("ngClass",Je(24,h6b,b.iconOnly,!b.iconOnly))("matMenuTriggerFor",c)("disabled",b.isAnonymous);ge("aria-label","Notifications Menu, current value is "+b.subscriptions.get(b.subscriptionInternal||"UNKNOWN_SUBSCRIPTION").label);B(2);C("name",b.menuIcon)("ngClass",Ie(27,i6b,"notifications-off"===b.menuIcon));B(1);C("ngIf",!b.iconOnly);
B(5);le("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.UNKNOWN_SUBSCRIPTION);B(6);C("vertical",!0);B(4);le("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES);B(9);C("panelTemplate",d)("overlayPositions",b.bubblePosition);B(5);le("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES);B(9);C("panelTemplate",e)("overlayPositions",b.bubblePosition);B(5);le("b-menu-item-checked",b.subscriptionInternal===
b.NotificationSubscription.SUBSCRIBED_CLOSURE_ONLY);B(8);le("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.UNSUBSCRIBED)}},dependencies:[Fx,Cx,BB,YH,iF,gF,lF,zH,RS],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 v_=function(){};v_.\u0275fac=function(a){return new (a||v_)};v_.\u0275mod=uc({type:v_});v_.\u0275inj=gc({imports:[Wx,BG,cI,mF,bI,xO,bT]});
var w_=function(a,b){this.sloApi=a;this.cdr=b;this.isDisabled=!1;this.dropdownChoices=null;this.onSloSelect=new Rw;this.internalBoundId=this.selectedSlo=null;this.lastProcessedIndex_=-1;this.requestIndex_=0},k6b=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()};
w_.prototype.displayFn=function(a){return(null==a?void 0:a.getName())||(null==a?void 0:a.getSloId())||""};w_.prototype.updateSelectionOnChange=function(a){if(a=a.option.value)this.boundId=a.getSloId();this.onSloSelect.emit(a);this.cdr.detectChanges()};
li.Object.defineProperties(w_.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)}}});w_.\u0275fac=function(a){return new (a||w_)(D(vY),D(sI,2))};
w_.\u0275cmp=w({type:w_,selectors:[["slo-picker"]],inputs:{isDisabled:["bv2Disabled","isDisabled"],placeholder:["bv2Placeholder","placeholder"],boundId:"boundId"},outputs:{onSloSelect:"onSloSelect"},features:[Ge([sI])],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();F(0,"div",0)(1,"input",1,2);J("ngModelChange",function(e){return b.selectedSlo=e})("click",function(){z(c);var e=Ce(2);return A(k6b(b,e.value))})("input",function(){z(c);var e=Ce(2);return A(k6b(b,e.value))});G();F(3,"mat-autocomplete",3,4);J("optionSelected",function(e){return b.updateSelectionOnChange(e)});M(5,zQa,2,2,"mat-option",5);
G()()}if(a&2){var d=Ce(4);B(1);C("placeholder",b.placeholder)("ngModel",b.selectedSlo)("disabled",b.isDisabled)("matAutocomplete",d);B(2);C("displayWith",b.displayFn);B(2);C("ngForOf",b.dropdownChoices)}},dependencies:[Gx,tN,uN,xB,Jg,ly,ry],encapsulation:2});
var x_=function(){};x_.\u0275fac=function(a){return new (a||x_)};x_.\u0275mod=uc({type:x_});x_.\u0275inj=gc({imports:[Wx,wN,Gy]});
var l6b=function(a){return{"empty-list-field-indication":a}},y_=function(a){this.documentationLinks=a;this.issueRetentionDisabled=!1;this.modelChange=new Rw;this.validChange=new Rw;this.RetentionSelection=yAb};y_.prototype.ngOnInit=function(){this.initialModel?this.model=this.initialModel:this.model={retentionSelection:"UNSPECIFIED_RETENTION",retentionPeriodDays:null,piiRetentionSelection:"UNSPECIFIED_RETENTION",piiRetentionPeriodDays:null,spiiRetentionPeriodDays:null};bq(this)};
y_.prototype.updateSelectionOnChange=function(a){this.model.retentionSelection=a;this.model.retentionPeriodDays=null;this.modelChange.emit(this.model);bq(this)};var bq=function(a){var b=a.validChange,c=b.emit,d;if(d=dq(a))d=a.hasRetentionSelection(a.model.piiRetentionSelection)&&(a.model.piiRetentionSelection!==a.RetentionSelection.BUGANIZER_DEFAULT||!m6b(a))&&(a.model.piiRetentionSelection!==a.RetentionSelection.CUSTOM_PERIOD||n6b(a));c.call(b,d)};
y_.prototype.hasRetentionSelection=function(a){return a&&a!==this.RetentionSelection.UNSPECIFIED_RETENTION};
var dq=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)},cq=function(a){return a?ro(a):"[unset period]"},n6b=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},EQa=function(a){if(!dq(a)||n6b(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 "+cq(e):"Restricted+ retention must not exceed Restricted retention."},m6b=function(a){return a.model.retentionSelection===a.RetentionSelection.CUSTOM_PERIOD&&(!a.model.retentionPeriodDays||60>a.model.retentionPeriodDays)},HQa=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};y_.\u0275fac=function(a){return new (a||y_)(D(rP))};
y_.\u0275cmp=w({type:y_,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&&(F(0,"mat-radio-group",0),J("ngModelChange",function(c){return b.updateSelectionOnChange(c)}),F(1,"p")(2,"b"),O(3,"Issue Retention"),G()(),F(4,"mat-radio-button",1),O(5," Buganizer default retention period (for minimal or no PII/SPII): 10 years "),G(),F(6,"mat-radio-button",2),O(7," Custom retention period "),M(8,AQa,2,0,"span",3),M(9,BQa,4,
3,"div",4),G(),F(10,"mat-radio-button",5),O(11),M(12,CQa,13,0,"div",6),G()(),F(13,"mat-radio-group",7),J("ngModelChange",function(c){b.model.piiRetentionSelection=c;b.model.piiRetentionPeriodDays=null;b.model.spiiRetentionPeriodDays=null;b.modelChange.emit(b.model);bq(b)}),F(14,"p"),H(15,"br"),F(16,"b"),O(17,"Restricted Comments/Attachments Retention "),G(),F(18,"a",8),O(19,"Learn more "),G()(),F(20,"mat-radio-button",1),O(21," Buganizer default retention period : 60 days "),M(22,DQa,2,0,"span",3),
G(),F(23,"mat-radio-button",9),O(24," Custom retention period "),M(25,FQa,2,1,"span",3),M(26,IQa,16,7,"div",4),G(),F(27,"mat-radio-button",5),O(28," Match Issue Retention "),M(29,JQa,3,0,"div",10),G()());a&2&&(C("ngClass",Ie(27,l6b,b.model.retentionSelection===b.RetentionSelection.UNSPECIFIED_RETENTION))("disabled",b.issueRetentionDisabled)("name","retentionForm")("ngModel",b.model.retentionSelection),B(4),C("value",b.RetentionSelection.BUGANIZER_DEFAULT),B(2),C("value",b.RetentionSelection.CUSTOM_PERIOD),
B(2),C("ngIf",b.model.retentionSelection===b.RetentionSelection.CUSTOM_PERIOD&&!(b.model.retentionPeriodDays&&30<=b.model.retentionPeriodDays&&3650>=b.model.retentionPeriodDays)),B(1),C("ngIf",b.model.retentionSelection===b.RetentionSelection.CUSTOM_PERIOD),B(1),C("disabled",b.isExternal)("value",b.RetentionSelection.INDEFINITE_RETENTION),B(1),De(" Indefinite retention period ",b.isExternal?"(Internal components only)":""," "),B(1),C("ngIf",b.model.retentionSelection===b.RetentionSelection.INDEFINITE_RETENTION),
B(1),C("ngClass",Ie(29,l6b,b.model.retentionSelection===b.RetentionSelection.UNSPECIFIED_RETENTION))("disabled",b.issueRetentionDisabled)("name","piiRetentionForm")("ngModel",b.model.piiRetentionSelection),B(5),ge("href",b.documentationLinks.getRestrictedAccessHelpLink(),Md),B(2),C("value",b.RetentionSelection.BUGANIZER_DEFAULT),B(2),C("ngIf",b.model.piiRetentionSelection===b.RetentionSelection.BUGANIZER_DEFAULT&&m6b(b)),B(1),C("aria-label","Custom Retention Period,"+EQa(b))("disabled",!dq(b))("value",
b.RetentionSelection.CUSTOM_PERIOD),B(2),C("ngIf",b.model.piiRetentionSelection===b.RetentionSelection.CUSTOM_PERIOD&&!n6b(b)),B(1),C("ngIf",b.model.piiRetentionSelection===b.RetentionSelection.CUSTOM_PERIOD),B(1),C("disabled",b.isExternal)("value",b.RetentionSelection.INDEFINITE_RETENTION),B(2),C("ngIf",b.model.piiRetentionSelection===b.RetentionSelection.INDEFINITE_RETENTION&&HQa(b)))},dependencies:[Fx,Cx,ly,ry,eY,gY,l_],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 z_=function(){};z_.\u0275fac=function(a){return new (a||z_)};z_.\u0275mod=uc({type:z_});z_.\u0275inj=gc({imports:[Wx,Gy,nY,m_]});
var o6b=function(){this.type="component";this.includeChildren=!1},p6b=function(){this.type="team";this.includeChildren=!1},q6b=function(){this.type="hotlist"},r6b=function(){this.type="savedsearch"},s6b=function(){this.type="customfield"};
var t6b=function(a,b){this.query=a;this.cursorIdx=b;this.label=null;this.value={val:"",idx:0};this.value.idx=b},u6b="componentid c hotlistid h savedsearchid teamid".split(" "),v6b=u6b.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(" ")),
w6b="cl deleted deletionreason deletiontime effortlabel nearestslo postmortem teamid".split(" "),x6b="(?:\\s|^)(-?)(customfield\\d+|"+v6b.join("|")+")(:|>|<|>=|<=|=)";
var A_=function(a,b,c,d,e,f,h){wI.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 y6b(k,q)}},{updateHeader:function(q){return z6b(k,q)}},{updateHeader:function(q){return A6b(k,q)}},{updateHeader:function(q){return B6b(k,q)}},{updateHeader:function(q){return C6b(k,q)}},{updateHeader:function(q){return D6b(k,
q)}}];this.currentSearchContext=null;this.items=[];this.acHeader=null;this.acRefreshed$=new S.Subject;this.refreshRequest$=new S.Subject;this.refreshRequest$.pipe(Nf(250),cg(this.destroyed$)).subscribe(function(q){E6b(k,q.currentRequestIndex,q.currentSearchContext)});this.sessionIsInternal=h.isInternalSession();a=new Set(v6b);$i("enableWtdmMvpUi")||a.delete("parentid");this.sessionIsInternal||a.delete("mention");if(!this.sessionIsInternal)for(b=r(w6b),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(A_,wI);A_.\u0275dir=wI.\u0275dir;
var E6b=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()})},y6b=
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 F6b(a,b);switch(b.label.val){case "archived":return Promise.resolve(gq(G6b,b.value,!0));case "componentid":case "c":return H6b(a,b);case "deleted":return I6b(b);case "deletionreason":return Promise.resolve(gq(J6b,b.value,!0));case "hotlistid":case "h":return K6b(a,b);case "savedsearchid":return L6b(a,b);case "status":case "is":return Promise.resolve(gq(M6b,
b.value,!0));case "teamid":return N6b(a,b);case "type":case "t":return a.matchType(b);case "priority":case "p":return Promise.resolve(gq(O6b,b.value,!0));case "severity":case "s":return Promise.resolve(gq(P6b,b.value,!0));case "inprod":case "star":case "mute":return I6b(b);default:return Promise.reject(null)}}if(!b.value.val)return Promise.reject(null);c=[];for(var d=LQa(b.value.val),e=r(a.atoms),f=e.next();!f.done;f=e.next())if(f=f.value,d.token!==f&&Ni(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 fu(k.name,q.name)});return Promise.resolve(c)},F6b=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 gq(d,b.value,!1,!1)}):Promise.reject(null)};A_.prototype.matchType=function(a){return Promise.resolve(gq(Q6b,a.value,!0))};
var I6b=function(a){if(!a.label)return Promise.reject(null);var b=a.label.val;return Promise.resolve(gq([{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))},H6b=function(a,b){var c=b.value.val;return!c||fq(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$1689:f.$jscomp$loop$prop$component$1689,$jscomp$loop$prop$startIdx$1690:f.$jscomp$loop$prop$startIdx$1690,$jscomp$loop$prop$endIdx$1691:f.$jscomp$loop$prop$endIdx$1691},h=d.next())f.$jscomp$loop$prop$component$1689=h.value,h=f.$jscomp$loop$prop$component$1689.componentId,f.$jscomp$loop$prop$startIdx$1690=b.value.idx,f.$jscomp$loop$prop$endIdx$1691=f.$jscomp$loop$prop$startIdx$1690+c.length,h={componentId:h,name:f.$jscomp$loop$prop$component$1689.name,
description:f.$jscomp$loop$prop$component$1689.description,trackId:"component:"+h,accessLimit:f.$jscomp$loop$prop$component$1689.accessLimit,completionCfg:{type:"component",startIdx:f.$jscomp$loop$prop$startIdx$1690,endIdx:f.$jscomp$loop$prop$endIdx$1691,completionValue:""+h,matchingString:c},componentPath:f.$jscomp$loop$prop$component$1689.componentPathInfo.componentPathId.map(function(k){return function(q,v){return{trackId:"subcomponent:"+q,id:""+q,name:String(k.$jscomp$loop$prop$component$1689.componentPathInfo.componentPathName[v]),
completionCfg:{type:"component",completionValue:String(q),startIdx:k.$jscomp$loop$prop$startIdx$1690,endIdx:k.$jscomp$loop$prop$endIdx$1691}}}}(f))},e.push(h);return e})},N6b=function(a,b){var c=b.value.val;if(!a.sessionIsInternal||!c||fq(c,!0))return Promise.reject(null);var d=Kj();kM(a.teamsService,c).pipe(cg(a.destroyed$)).subscribe(function(e){var f=b.value.idx,h=f+c.length,k=[],q={};e=r(e.getTeamSuggestionsList());for(var v=e.next();!v.done;q={$jscomp$loop$prop$pathNames$1693:q.$jscomp$loop$prop$pathNames$1693},
v=e.next())v=v.value,q.$jscomp$loop$prop$pathNames$1693=v.getPathNamesList(),v={trackId:"team:"+v.getId(),name:v.getName(),id:v.getId(),label:"Team "+v.getId(),pathIds:v.getPathIdsList(),pathNames:v.getPathNamesList(),description:v.getDescription(),completionCfg:{type:"team",startIdx:f,endIdx:h,completionValue:String(v.getId()),matchingString:c},teamPath:v.getPathIdsList().map(function(y){return function(E,I){return{trackId:"team:"+E,id:E,name:y.$jscomp$loop$prop$pathNames$1693[I],completionCfg:{type:"team",
completionValue:String(E),startIdx:f,endIdx:h}}}}(q))},k.push(v);d.resolve(k)},function(){d.reject()});return d.promise},z6b=function(a,b){if(!b.label||"componentid"!==b.label.val&&"c"!==b.label.val)return Promise.reject(null);var c=new o6b;b=b.value.val;return fq(b,!0)?(eu(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)},D6b=function(a,b){if(!a.sessionIsInternal||!b.label||"teamid"!==b.label.val)return Promise.reject(null);
var c=new p6b,d=Kj(),e=b.value.val;fq(e,!0)?(eu(e,"+")&&(e=e.slice(0,e.length-1),c.includeChildren=!0),kM(a.teamsService,e).pipe(cg(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},A6b=function(a,b){if(!b.label||"hotlistid"!==
b.label.val&&"h"!==b.label.val)return Promise.reject(null);var c=new q6b;b=b.value.val;return fq(b)?a.hotlistApi.get(b).then(function(d){c.hotlist=d;return c}):b?Promise.reject(null):Promise.resolve(c)},B6b=function(a,b){if(!b.label||"savedsearchid"!==b.label.val)return Promise.reject(null);var c=new r6b;b=b.value.val;return fq(b)?a.savedSearchApi.get(b).then(function(d){c.savedSearch=d;return c}):b?Promise.reject(null):Promise.resolve(c)},C6b=function(a,b){if(b.label&&b.label.customFieldId)var c=
b.label.customFieldId;else if(Ni(b.value.val,"customfield"))(b=b.value.val.match("^customfield(\\d+)"))&&(c=b[1]),Vn("search-usage","customfield");else return Promise.reject(null);var d=new s6b;return c?a.customFieldsApi.get(c).then(function(e){d.customField=e;return d}):Promise.resolve(d)},K6b=function(a,b){return fq(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 gq(c,b.value,!1,!0)})},L6b=function(a,b){return fq(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 gq(c,b.value,!1,!0)})};A_.\u0275fac=function(a){return new (a||A_)(t(kL),t(wZ),t(eL),t(MN),t(zT),t(jM),t(vH))};A_.\u0275prov=dc({token:A_,factory:A_.\u0275fac,providedIn:"root"});
var M6b="accepted assigned closed duplicate fixed infeasible intended_behavior new not_reproducible obsolete open verified".split(" ").map(function(a){return hq(a,"status","Status","status")}),Q6b=$i("enableWtdmMvpUi")?"bug customer_issue feature_request internal_cleanup process vulnerability privacy_issue project feature milestone epic story task".split(" ").map(function(a){return hq(a,"bugType","Type","type")}):"bug customer_issue feature_request internal_cleanup process vulnerability privacy_issue".split(" ").map(function(a){return hq(a,
"bugType","Type","type")}),O6b=["p0","p1","p2","p3","p4"].map(function(a){return hq(a,"priority","Priority","priority")}),P6b=["s0","s1","s2","s3","s4"].map(function(a){return hq(a,"severity","Severity","severity")}),G6b=["all","true","false"].map(function(a){return hq(a,"archived","Archived","archived")}),J6b=["abuse","pii","user_request","retention"].map(function(a){return hq(a,"deletionReason","Deletion Reason","deletionreason")});
var B_=function(a){this.cdr=a;this.optionsChange=new Rw};B_.prototype.ngOnInit=function(){MQa(this)};
var MQa=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},NQa=function(a){a.validator&&(a.errorString=a.validator(),a.cdr.detectChanges())},R6b=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);NQa(a)},S6b=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(", ")};B_.\u0275fac=function(a){return new (a||B_)(D(sI,2))};
B_.\u0275cmp=w({type:B_,selectors:[["slo-element-property-picker"]],inputs:{selectAllText:"selectAllText",validator:"validator",options:"options"},outputs:{optionsChange:"optionsChange"},features:[Ge([sI])],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&&
(F(0,"div")(1,"button",0)(2,"div",1)(3,"span",2),O(4),O(5," \u00a0 "),G(),H(6,"mat-icon",3),G()(),F(7,"mat-menu",null,4)(9,"div",5),J("click",function(d){return R6b(b,d)}),F(10,"b-checkbox",6),J("change",function(d){b.selectAllValue=d;return R6b(b)}),G()(),H(11,"mat-divider"),M(12,OQa,3,3,"div",7),P(13,"keyvalue"),G(),M(14,PQa,2,1,"div",8),G());if(a&2){var c=Ce(8);B(1);le("ng-invalid",!!b.errorString);C("matMenuTriggerFor",c);B(3);De(" ",S6b(b)," ");B(5);ge("aria-checked",b.selectAllValue);B(1);C("checked",
!!b.selectAllValue)("indeterminate",null===b.selectAllValue)("label",b.selectAllText);B(2);C("ngForOf",Q(13,10,b.options.propertyValues));B(2);C("ngIf",!!b.errorString)}},dependencies:[Gx,Cx,tQ,iF,gF,lF,YH,BB,dF,Tx],styles:["[_nghost-%COMP%]   .gmat-button[_ngcontent-%COMP%] {padding: 0 10px;}\n[_nghost-%COMP%]   .bv2-property-picker-summary-text[_ngcontent-%COMP%] {text-align: left;}"]});
var T6b=function(a,b){this.displayString=a;this.value=b},U6b=function(a){this.propertyValues=a},V6b=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},pRa=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};U6b.prototype.setAll=function(a){for(var b in this.propertyValues)this.propertyValues[b].value=a};
var C_=function(){};C_.\u0275fac=function(a){return new (a||C_)};C_.\u0275mod=uc({type:C_});C_.\u0275inj=gc({imports:[Wx,uQ,mF,cI,BG,wF]});
var W6b=function(a,b){this.name=a;this.secondsPerUnit=b},iq=new W6b("minute",60),jq=new W6b("hour",3600),kq=new W6b("day",86400),D_=function(){this.errorString=null;this.objectiveDurationChange=new Rw;this.objectiveBusinessDaysChange=new Rw;this.intervalUnit=kq};D_.prototype.ngOnInit=function(){X6b(this)};D_.prototype.ngOnChanges=function(a){[a.objectiveBusinessDays,a.objectiveDuration,a.dayType].some(function(b){return b&&!b.isFirstChange()})&&X6b(this)};
var SQa=function(a,b){b=b.name;1!==Ki(a.intervalString)&&(b+="s");return b},X6b=function(a){2!=a.dayType&&Y6b(a,kq)||Y6b(a,jq)||Y6b(a,iq);if(0!=a.objectiveBusinessDays||""!=a.businessDayString)a.businessDayString=""+a.objectiveBusinessDays},Y6b=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?[iq,jq]:[iq,jq,kq]).includes(a.intervalUnit)||(a.intervalUnit=b),!0):!1},
QQa=function(a){a.errorString=a.validator(a.intervalString,a.businessDayString);UQa(a);VQa(a)},UQa=function(a){a.objectiveDuration.setSeconds(a.intervalUnit.secondsPerUnit*(Ki(a.intervalString)||0));a.objectiveDurationChange.emit(a.objectiveDuration)},VQa=function(a){a.objectiveBusinessDays=Ki(a.businessDayString)||0;a.objectiveBusinessDaysChange.emit(a.objectiveBusinessDays)};D_.\u0275fac=function(a){return new (a||D_)};
D_.\u0275cmp=w({type:D_,selectors:[["slo-objective-selector"]],inputs:{isDisabled:"isDisabled",validator:"validator",dayType:"dayType",objectiveDuration:"objectiveDuration",objectiveBusinessDays:"objectiveBusinessDays"},outputs:{objectiveDurationChange:"objectiveDurationChange",objectiveBusinessDaysChange:"objectiveBusinessDaysChange"},features:[Cc],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&&(M(0,WQa,6,6,"span",0),M(1,$Qa,3,2,"span",1));a&2&&(C("ngIf",!b.isDisabled),B(1),C("ngIf",b.isDisabled))},dependencies:[Gx,
Cx,Jg,ly,ry,XS,xB],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 E_=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"]]);xH(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"]])},b7b=function(a,b){var c=new Z6b,d=$6b(b,"type",function(f){var h=f.toUpperCase(),k=new a7b;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=$6b(b,"priority",function(f){var h=
f.toUpperCase(),k=new a7b;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=$6b(b,"postmortem",function(f){var h=f.toUpperCase(),k=new a7b;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},$6b=function(a,b,c){var d=new c7b;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};E_.\u0275fac=function(a){return new (a||E_)(t(XH),t(vH))};E_.\u0275prov=dc({token:E_,factory:E_.\u0275fac,providedIn:"root"});
var Z6b=function(){this.types=[];this.priorities=[];this.postmortemValues=[];this.error=""},c7b=function(){this.values=[];this.error=""},a7b=function(){this.error=this.value=""};
var F_=function(){};F_.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};F_.\u0275fac=function(a){return new (a||F_)};F_.\u0275dir=w({type:F_,selectors:[["","customValidators",""]],inputs:{validators:["customValidators","validators"]},features:[Ge([{provide:fy,useExisting:F_,multi:!0}])]});
var G_=function(a,b,c){this.constants=a;this.sloParseService=b;this.confirmationDialogService=c;this.collection=[];this.boundCollection=[];this.onCollectionUpdate=new Rw;this.onValidation=new Rw;this.selectedObjectiveBusinessDays=this.selectedObjectiveDuration=null;this.postmortemAllSummaryValue="Either";this.canPerformActionsInternal=!1;this.openRow=null;this.metricChoices=[0].concat(P3b);this.dayTypes=[1,2];P3b.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},KRa=function(a,b,c){lq(a);a=r(a.collection);for(var d=a.next();!d.done;d=a.next())d.value.canEdit=!1;b.startEditing();c&&c.stopPropagation()},NRa=function(a,b,c){c=QRa(a,b,c);var d=c.newOffset;c.valid&&(lq(a),ya(a.collection,b),ya(a.boundCollection,b.sloElement),a.collection.splice(d,
0,b),a.boundCollection.splice(d,0,b.sloElement),d7b(a))},QRa=function(a,b,c){b=a.collection.indexOf(b)+c;return{valid:0<=b&&b<a.collection.length,newOffset:b}},lq=function(a){a=r(a.collection);for(var b=a.next();!b.done;b=a.next())b=b.value,b.stopEditing(),b.canEdit=!0},e7b=function(a,b){var c=b.map(function(d){return new H_(d,a)});a.openRow=null;a.collection=c;a.boundCollection=b;a.canPerformActions=!a.openRow},vRa=function(a,b){return 0!==b&&a.constants.protoIssueTypesDisplayNames.has(b)?a.constants.protoIssueTypesDisplayNames.get(b):
" - "},ARa=function(a,b){return 0!==b&&a.constants.protoIssuePrioritiesDisplayNames.has(b)?a.constants.protoIssuePrioritiesDisplayNames.get(b):" - "},qRa=function(a,b){lq(a);ya(a.collection,b);ya(a.boundCollection,b.sloElement);d7b(a)},cRa=function(a,b){a.confirmationDialogService.open({title:"Are you sure you'd like to clear all the rules?",content:Pn("This won't take effect until you save the changes, but any local changes will be lost."),onConfirm:function(){a.collection=[];a.boundCollection=[];
d7b(a)},onDismiss:function(){}});b.stopPropagation()},aRa=function(a,b){var c=new H_(new qY,a,!0);KRa(a,c);a.collection.splice(b,0,c);a.boundCollection.splice(b,0,c.sloElement);d7b(a)};G_.prototype.onDrop=function(a){NRa(this,this.collection[a.previousIndex],a.currentIndex-a.previousIndex)};var d7b=function(a){a.onCollectionUpdate.emit(a.boundCollection)};
li.Object.defineProperties(G_.prototype,{collectionInput:{configurable:!0,enumerable:!0,set:function(a){e7b(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}}});G_.\u0275fac=function(a){return new (a||G_)(D(XH),D(E_),D(ZM))};
G_.\u0275cmp=w({type:G_,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&&(F(0,"div",0)(1,"div")(2,"div")(3,"label",1),O(4,"Rules"),G(),F(5,"a",2),H(6,"b-icon",3),G(),M(7,dRa,6,3,"span",4),G(),F(8,"table",5)(9,"thead")(10,"tr",6)(11,"th",7),O(12,"Order"),G(),F(13,"th",8),O(14,"Type"),G(),F(15,"th",9),O(16,"Priority"),G(),F(17,"th",10),O(18,"Postmortem"),G(),F(19,"th",11),O(20,"Metric"),G(),F(21,"th",12),O(22,"Objective"),G(),F(23,"th",13),O(24," Day Type "),G(),H(25,"th",14),G()(),
M(26,TRa,2,3,"tbody",15),G(),F(27,"div"),M(28,URa,2,0,"div",16),G()()());a&2&&(B(6),C("name","help-outline")("size","small"),B(1),C("ngIf",!b.isDisabled),B(19),C("ngIf",b.collection&&0!=b.collection.length),B(2),C("ngIf",!b.collection||0==b.collection.length))},dependencies:[Gx,Cx,F_,rV,sV,ly,Cy,ry,zH,oC,iF,gF,lF,XS,xB,sF,B_,D_],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:.8125rem;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 H_=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=V6b(d.priorityPickerValues)?null:"Priority can't be empty";d.priorityPickerValid=null===e;return e};this.validateTypePicker=function(){var e=V6b(d.typePickerValues)?null:"Type can't be empty";d.typePickerValid=
null===e;return e};this.validatePostmortemPicker=function(){var e=V6b(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=f7b(m(a,jm,3));this.selectedObjectiveBusinessDays=ej(a,5);this.canEdit=!b.isDisabled;this.metricValidators={required:function(e){return g7b(d,e)}};h7b(this);this.typePickerValues=i7b(this.controllerReference.sloParseService.jspbTypeToString.keys(),function(e){return 0===d.parseResult.types.length||
d.parseResult.types.includes(e)},function(e){return vRa(d.controllerReference,e)});this.priorityPickerValues=i7b(this.controllerReference.sloParseService.jspbPriorityToString.keys(),function(e){return 0===d.parseResult.priorities.length||d.parseResult.priorities.includes(e)},function(e){return ARa(d.controllerReference,e)});this.postmortemPickerValues=i7b(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();g7b(this,this.selectedMetric)},f7b=function(a){return a?a:(new jm).setSeconds(86400)};H_.prototype.isValid=function(){return this.priorityPickerValid&&this.typePickerValid&&this.postmortemPickerValid&&this.metricSelectorValid&&this.objectiveValid};var g7b=function(a,b){b=0!==b;return a.metricSelectorValid=b};
H_.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;j7b(this);l(this.sloElement,1,this.selectedMetric);l(this.sloElement,4,this.selectedDayType);Bb(this.sloElement,3,this.selectedObjectiveDuration);l(this.sloElement,5,this.selectedObjectiveBusinessDays);h7b(this)}};
var j7b=function(a){var b=k7b(a.typePickerValues),c=k7b(a.priorityPickerValues),d=k7b(a.postmortemPickerValues);b=l7b(b,function(f){return a.controllerReference.sloParseService.jspbTypeToString.get(Ki(f))});c=l7b(c,function(f){return a.controllerReference.sloParseService.jspbPriorityToString.get(Ki(f))});d=l7b(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)},k7b=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},l7b=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("|")+")"};
H_.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;h7b(this)}};var h7b=function(a){a.parseResult=b7b(a.controllerReference.sloParseService,a.matcherText)},i7b=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 T6b(h,f)}return new U6b(d)};
var I_=function(){};I_.\u0275fac=function(a){return new (a||I_)};I_.\u0275mod=uc({type:I_});I_.\u0275inj=gc({imports:[Wx,Gy,YS]});
var J_=function(){};J_.\u0275fac=function(a){return new (a||J_)};J_.\u0275mod=uc({type:J_});J_.\u0275inj=gc({imports:[Wx]});
var K_=function(){};K_.\u0275fac=function(a){return new (a||K_)};K_.\u0275mod=uc({type:K_});K_.\u0275inj=gc({providers:[],imports:[Wx,J_,tV,Gy,bI,pC,mF,YS,lH,C_,I_]});
var L_=function(a,b,c,d,e){wI.call(this);this.element=a;this.cdr=b;this.location=c;this.paths=d;this.hotkeys=e;this.focusedIndex=0;this.slos=[]};U(L_,wI);L_.\u0275dir=wI.\u0275dir;g=L_.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=cJ(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()))};
L_.\u0275fac=function(a){return new (a||L_)(D(pd),D(sI,2),D(SK),D(TK),D(bJ))};
L_.\u0275cmp=w({type:L_,selectors:[["b-slo-grid"]],inputs:{slos:"slos"},features:[Ge([sI]),ae],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&&(F(0,"table",0)(1,"thead")(2,"tr",1),H(3,"th",2),F(4,"th")(5,"div",3)(6,"div",4)(7,"div",5),O(8," SLO name "),G()()()(),F(9,"th")(10,"div",3)(11,"div",4)(12,"div",5),O(13," Description "),G()()()()()(),F(14,"tbody"),M(15,VRa,7,7,"tr",6),G()());a&2&&(B(15),C("ngForOf",b.slos))},dependencies:[Gx],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 M_=function(){};M_.\u0275fac=function(a){return new (a||M_)};M_.\u0275mod=uc({type:M_});M_.\u0275inj=gc({imports:[Wx]});
var N_=function(a){this.log_=a},n7b=function(a,b){var c=bSb(b.getAddMask()),d=bSb(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=Q3b.get(q);if("name"===q){var v=OS(d,q,b.getName());q=OS(c,q,f.getName());e.diffs.push(PS(k,v,q))}else if("description"===q)v=OS(d,q,b.getDescription()),q=OS(c,q,f.getDescription()),e.diffs.push(PS(k,v,q));
else if("parentId"===q)v=OS(d,q,String(b.getParentId())),q=OS(c,q,String(f.getParentId())),e.diffs.push(PS(k,v,q));else if("elements"===q){var y=Xs(b);v=Xs(f);y=cSb(d,q,y.map(function(E){return m7b(E)}));q=cSb(c,q,v.map(function(E){return m7b(E)}));e.diffs.push({fieldName:k,diffType:"COLLECTION",diff:{removed:y,added:q}})}else a.log_.error("Unsupported diff field.")}return e},m7b=function(a){var b=a.getMatcher(),c=iRa.get(a.getMetric()),d=mRa.get(X(a,4,0)),e=[];0<ej(a,5)&&e.push(ej(a,5)+" day"+(1<
ej(a,5)?"s":""));0<m(a,jm,3).getSeconds()&&e.push(rOb(1E3*m(a,jm,3).getSeconds()));return'("'+b+'", '+c+") - "+(d+" days - "+e.join(", "))};N_.\u0275fac=function(a){return new (a||N_)(t(HK))};N_.\u0275prov=dc({token:N_,factory:N_.\u0275fac,providedIn:"root"});
var O_=function(a){this.cdr=a;this.snoozeUntilChange=new Rw;this.snoozeUntilCommit=new Rw;this.isPickerVisible=!1};O_.prototype.ngOnInit=function(){j_a(this)};var j_a=function(a){var b;var c=a.snoozeUntil;if(c){var d=new CC;d.setTime(1E3*c.getSeconds());c=new Ji;c.setTime(d.getTime()-HKb-864E5);d=c}else d=null;a.currentPickerDate=null!=(b=d)?b:void 0};
O_.prototype.setDate=function(a){if(a){var b=new CC;b.setTime(a.getTime()+HKb+864E5);a=new sj;a.setSeconds(b.getTime()/1E3);b=a}else b=null;this.snoozeUntil=b;this.snoozeUntilChange.emit(this.snoozeUntil)};O_.\u0275fac=function(a){return new (a||O_)(D(sI,2))};
O_.\u0275cmp=w({type:O_,selectors:[["snooze-date-time-picker"]],inputs:{snoozeUntil:"snoozeUntil"},outputs:{snoozeUntilChange:"snoozeUntilChange",snoozeUntilCommit:"snoozeUntilCommit"},features:[Ge([sI])],decls:1,vars:1,consts:[[4,"ngIf"],[3,"clickOutside"],[3,"date","dateSelectionChange","saveClicked","cancelClicked"]],template:function(a,b){a&1&&M(0,WRa,3,1,"div",0);a&2&&C("ngIf",b.isPickerVisible)},dependencies:[Cx,vQ,LP],styles:["b-date-time-picker-content[_ngcontent-%COMP%]{position:absolute;right:10px;z-index:100}\n/*# sourceMappingURL=snooze_date_time_picker.css.map */"]});
var P_=function(){};P_.\u0275fac=function(a){return new (a||P_)};P_.\u0275mod=uc({type:P_});P_.\u0275inj=gc({imports:[Wx,wQ,dQ]});
var Q_=function(){};Q_.\u0275fac=function(a){return new (a||Q_)};Q_.\u0275mod=uc({type:Q_});Q_.\u0275inj=gc({imports:[Wx,yP,BG,dC]});
var R_=function(a){this.documentationLinks=a};R_.\u0275fac=function(a){return new (a||R_)(D(rP))};
R_.\u0275cmp=w({type:R_,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&&(F(0,
"a",0),H(1,"mat-icon",1),G(),F(2,"onedev-hovercard",null,2)(4,"div",3)(5,"div",4),O(6," A new work tracking data model is now available, which includes a new "),F(7,"strong"),O(8,"Parent/Child"),G(),O(9," relationship with multi-parent support. "),F(10,"a",5),O(11,"Learn more..."),G(),H(12,"br")(13,"br"),O(14," The work tracking data model also includes "),F(15,"a",5),O(16,"new types"),G(),O(17," (available in type dropdown) and an "),F(18,"a",5),O(19,"estimated effort"),G(),O(20," field (with dev days, story points and t-shirt support)."),
H(21,"br")(22,"br"),F(23,"a",5),O(24,"go/wtdm-home"),G()()()());if(a&2){var c=Ce(3);C("href",sP(b.documentationLinks),Md)("onedevHovercardTrigger",c);B(10);C("href",sP(b.documentationLinks)+"#parent-child-relationship",Md);B(5);C("href",sP(b.documentationLinks)+"#types",Md);B(3);C("href",sP(b.documentationLinks)+"#estimated-effort-field",Md);B(5);C("href",sP(b.documentationLinks),Md)}},dependencies:[dF,nN,rN],styles:["a.info-link[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);margin:0 5px}\n/*# sourceMappingURL=wtdm_info_hovercard.css.map */"]});
var S_=function(){};S_.\u0275fac=function(a){return new (a||S_)};S_.\u0275mod=uc({type:S_});S_.\u0275inj=gc({imports:[Wx,wF,YN]});
var q7b=function(a,b){this.$log=b;this.templateAttributes={};this.templateCustomFields={};b=r(o7b);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?Ri(f):""}):e="string"===typeof d?Ri(d):"";this.templateAttributes[c]=e}b=r(p7b);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(":"),Wi(c)||(this.templateCustomFields[b[0]]=c)},s7b=function(a){return!ah(a.templateCustomFields)||r7b.some(function(b){return null!=a.templateAttributes[b]})},x7b=function(a,b,c){null!=c&&(t7b(a,c),u7b(a,b,c),v7b(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=w7b[d];"function"===typeof h?h(f,e):f[h||d]=e}a.templateAttributes={};a.templateCustomFields={}},u7b=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$1695:e.$jscomp$loop$prop$customFieldId$1695},h=f.next()){var k=r(h.value);h=k.next().value;k=k.next().value;e.$jscomp$loop$prop$customFieldId$1695=Ki(h);k={customFieldId:e.$jscomp$loop$prop$customFieldId$1695,value:k};h=a.getCustomFieldValue(k,c);null!=d[e.$jscomp$loop$prop$customFieldId$1695]?
(k=b.customField.findIndex(function(q){return function(v){return v.customFieldId===q.$jscomp$loop$prop$customFieldId$1695}}(e)),b.customField[k]=h):(b.customField.push(h),d[k.customFieldId]=h)}};
q7b.prototype.getCustomFieldValue=function(a,b){var c=new iJ(a);if(a.value){b=this.getCustomFieldType(c,b);var d=[];switch(b){case "TEXT":c.textValue=a.value;break;case "DATE":c.dateValue=qFb(a.value)||void 0;break;case "ENUM":c.enumValue=a.value;break;case "NUMERIC":c.numericValue=rFb(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 qFb(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 rFb(e)}).filter(function(e){return null!==e});c.repeatedNumericValue={values:d};break;default:this.$log.warn("Invalid custom field type '"+b+"'.")}}return c};q7b.prototype.getCustomFieldType=function(a,b){var c,d;return null!=(d=null==(c=b[a.customFieldId])?void 0:c.type)?d:""};
var t7b=function(a,b){a.templateCustomFields=$g(a.templateCustomFields,function(c,d){return!!b[d]})},v7b=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$1697:c.$jscomp$loop$prop$allowedValues$1697},d=a.next()){d=d.value;var e=b[d.customFieldId];if(e&&e.type&&e.type.includes("ENUM")){c.$jscomp$loop$prop$allowedValues$1697=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$1697.includes(k)}}(c)),!d.repeatedEnumValue.values.length&&f&&(d.repeatedEnumValue=e.typedDefaultValue.repeatedEnumValue)):c.$jscomp$loop$prop$allowedValues$1697.includes(d.enumValue)||(d.enumValue=f?e.typedDefaultValue.enumValue:"")}}}},y7b=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)}))},
z7b=function(a,b,c,d){d&&(b=b.find(function(e){return!fu(e,d)}))&&(c[a]=b)},A7b=new XH,B7b=A7b.priorities,C7b=A7b.severities,D7b=A7b.issueTypes,o7b="title type priority severity assignee verifier reporter cc hotlistIds blockedByIssueIds blockingIssueIds foundIn targetedTo".split(" "),p7b=["inProd"],r7b="severity foundIn inProd reporter verifier targetedTo blockedByIssueIds blockingIssueIds".split(" "),T_={},w7b=(T_.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(Ul(c));a.ccUsers=Xma(a.ccUsers)}else a.ccUsers=[]},T_.assignee=function(a,b){XRa(b,function(c){a.assigneeUser=c})},T_.reporter=function(a,b){XRa(b,function(c){a.reporterUser=c})},T_.verifier=function(a,b){XRa(b,function(c){a.verifierUser=c})},T_.hotlistIds=au(y7b,"hotlistId"),T_.blockingIssueIds=au(y7b,"blockingIssueId"),T_.blockedByIssueIds=au(y7b,"blockedByIssueId"),T_.foundIn=function(a,b){"string"===typeof b&&
(a.foundInVersion=b.split(","))},T_.targetedTo=function(a,b){"string"===typeof b&&(a.targetedToVersion=b.split(","))},T_.inProd=function(a,b){a.inProd="true"===b},T_.priority=au(z7b,"priority",B7b),T_.severity=au(z7b,"severity",C7b),T_.type=au(z7b,"type",D7b),T_);
var U_=function(a,b){wI.call(this);this.routerEvents=a;this.bLocation=b;this.history=[]};U(U_,wI);U_.\u0275dir=wI.\u0275dir;U_.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()}))};U_.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()};U_.prototype.hasPreviousPage=function(){return 1<this.history.length};
var V_=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("/")};U_.\u0275fac=function(a){return new (a||U_)(t(TI),t(SK))};U_.\u0275prov=dc({token:U_,factory:U_.\u0275fac,providedIn:"root"});
var W_=function(a,b,c){this.bLocation=a;this.routeParams=b;this.domSafe=c},E7b=function(a,b,c){var d=a.routeParams.redirectUrl;if(d&&d.startsWith("http")){if(c&&eu(d,"id=")||eu(d,"bugId="))d+=c;vP(a.domSafe,d)}else{var e;a.bLocation.replaceUrl(null!=(e=d)?e:b)}};W_.\u0275fac=function(a){return new (a||W_)(t(SK),t($R),t(tP))};W_.\u0275prov=dc({token:W_,factory:W_.\u0275fac,providedIn:"root"});
var X_=function(a,b){wI.call(this);var c=this;this.routerEvents=a;this.documentVisibility=b;this.validNavigations=0;this.ignoringNextNav=!1;this.mostRecentlyMeasured="";this.tabWasHidden=!1;this.onNavStart=function(){c.ignoringNextNav||(KKb("appNavStart"),c.mostRecentlyMeasured="")};this.onNavSuccess=function(){c.ignoringNextNav?c.ignoringNextNav=!1:c.validNavigations++}};U(X_,wI);X_.\u0275dir=wI.\u0275dir;
X_.prototype.install=function(){var a=this;NM()&&(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(){a.onNavStart();a.onNavSuccess()})),this.subscriptions.add(this.documentVisibility.visibilityState$.pipe(rf(function(b){return"visible"!==b}),Qf()).subscribe(function(){a.tabWasHidden=!0})))};
var F7b=function(a,b){KKb(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)&&NM())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)}}};X_.\u0275fac=function(a){return new (a||X_)(t(TI),t(Y_))};
X_.\u0275prov=dc({token:X_,factory:X_.\u0275fac,providedIn:"root"});var Y_=function(a){var b=this;this.window=a;this.visibilityState$=(0,S.fromEvent)(this.window.document,"visibilityChange").pipe(ag(void 0),R(function(){return b.currentVisibility}))};li.Object.defineProperties(Y_.prototype,{currentVisibility:{configurable:!0,enumerable:!0,get:function(){return this.window.document.visibilityState}}});Y_.\u0275fac=function(a){return new (a||Y_)(t(uM))};
Y_.\u0275prov=dc({token:Y_,factory:Y_.\u0275fac,providedIn:"root"});
var G7b=RegExp("action/issues/([0-9]+)/"),H7b=new ld("ETAG_URL_TRANSFORMERS"),Z_=function(a){this.transformers=a;this.etagStore={};this.IF_MATCH_METHODS=["POST","PUT","DELETE"]};Z_.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=G7b.exec(a.url))this.issueId=c[1];return I7b(this,a,b)};
var I7b=function(a,b,c){return c.handle(b).pipe(dg(function(d){if(d instanceof SE){var e=d.headers;e.has("etag")&&a.setEtag(b,e.get("etag"));d=d.body;if(d instanceof KL&&a.issueId)for(d=r(rb(d,Xm,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 xm("GET","action/issues/"+h+"/attachments/"+k);a.setEtag(h,f.getEtag())}}}}))};
Z_.prototype.setEtag=function(a,b){null!=b&&(a=J7b(this,a),this.etagStore[a]=b)};Z_.prototype.getEtag=function(a){a=J7b(this,a);return this.etagStore[a]};var J7b=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};Z_.\u0275fac=function(a){return new (a||Z_)(t(H7b,8))};Z_.\u0275prov=dc({token:Z_,factory:Z_.\u0275fac,providedIn:"root"});var K7b={provide:UE,useClass:Z_,multi:!0};
var L7b={provide:H7b,useValue:function(a){return a.replace(/(action\/components\/[0-9]+)\/(move|updateSlo|updateTeam)/,"$1")},multi:!0},M7b={provide:H7b,useValue:function(a){return a.replace(/(action\/hotlists\/[0-9]+)\/archive/,"$1")},multi:!0};
var a0=function(a){this.activeSession=a};a0.prototype.intercept=function(a,b){var c=a.method,d=c+" "+a.urlWithParams;no[d]=~~no[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)};a0.\u0275fac=function(a){return new (a||a0)(t(vH))};a0.\u0275prov=dc({token:a0,factory:a0.\u0275fac,providedIn:"root"});var N7b={provide:UE,useClass:a0,multi:!0};
var b0=function(){};b0.\u0275fac=function(a){return new (a||b0)};b0.\u0275mod=uc({type:b0});
b0.\u0275inj=gc({providers:[{provide:gO,useFactory:mq,deps:[jO,hO]},{provide:PR,useFactory:mq,deps:[RR,QR]},{provide:SR,useFactory:mq,deps:[UR,TR]},{provide:mGb,useFactory:mq,deps:[EJ,CJ]},{provide:nGb,useFactory:mq,deps:[DJ,BJ]},{provide:VJ,useFactory:mq,deps:[YJ,WJ]},{provide:wZ,useFactory:mq,deps:[yZ,xZ]},{provide:pO,useFactory:mq,deps:[rO,qO]},{provide:lK,useFactory:mq,deps:[pK,nK]},{provide:GO,useFactory:mq,deps:[IO,HO]},{provide:kL,useFactory:mq,deps:[pL,lL]},{provide:mL,useFactory:mq,deps:[oL,
nL]}],imports:[Wx]});
var O7b=function(a){this.lookupId_=a;this.displayName_="";this.forceDisplayNameOverride_=!1};g=O7b.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 fs=function(a){Z.call(this,a)};U(fs,Z);fs.prototype.getEntryPoint=function(){return X(this,5,0)};fs.prototype.setEntryPoint=function(a){return l(this,5,a)};fs.prototype.toObject=function(){return c0(void 0,this)};var c0=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 gs=function(a){Z.call(this,a)};U(gs,Z);gs.prototype.getEntryPoint=function(){return X(this,1,0)};gs.prototype.setEntryPoint=function(a){return l(this,1,a)};gs.prototype.toObject=function(){return P7b(void 0,this)};var P7b=function(a,b){if(null!=b){var c={entryPoint:X(b,1,0),additionEventSources:c0(a,m(b,fs,2)),replacementEventSources:c0(a,m(b,fs,3))};a&&(c.$jspbMessageInstance=b);return c}};
var Sr=function(a){Z.call(this,a)};U(Sr,Z);var Nq=function(a){return m(a,Tr,2)};Sr.prototype.getSessionState=function(){return m(this,d0,3)};Sr.prototype.setSessionState=function(a){Bb(this,3,a)};Sr.prototype.hasSessionState=function(){return lj(this,3)};var Ur=function(a){Z.call(this,a)};U(Ur,Z);g=Ur.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 dj(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 dj(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 dj(this,11)};var Tr=function(a){Z.call(this,a)};U(Tr,Z);g=Tr.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 ej(this,6,0)};
g.setExistingSelectionsCount=function(a){l(this,6,a)};var d0=function(a){Z.call(this,a)};U(d0,Z);d0.prototype.getQuery=function(){return V(this,1,"")};d0.prototype.setQuery=function(a){return l(this,1,a)};d0.prototype.clearQuery=function(){mb(this,1)};d0.prototype.hasQuery=function(){return dj(this,1)};var Q7b=function(a,b){l(a,3,b)};d0.prototype.getAffinityVersion=function(){return p(this,7)};d0.prototype.setAffinityVersion=function(a){l(this,7,a)};var R7b=function(a){var b=oUb();l(a,8,b)};g=d0.prototype;
g.getSources=function(){return m(this,fs,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 dj(this,11)};Sr.prototype.toObject=function(){return S7b(void 0,this)};var S7b=function(a,b){if(null!=b){var c={info:T7b(a,m(b,Ur,1)),targetState:U7b(a,Nq(b)),sessionState:V7b(a,b.getSessionState()),isClosed:W(b,4,!1)};a&&(c.$jspbMessageInstance=b);return c}};
Ur.prototype.toObject=function(){return T7b(void 0,this)};var T7b=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}};Tr.prototype.toObject=function(){return U7b(void 0,this)};
var U7b=function(a,b){if(null!=b){var c={fieldPosition:ej(b,1,0),personPosition:ej(b,2,0),provenance:X(b,3,0),valueOriginator:X(b,4,0),context:X(b,5,0),existingSelectionsCount:ej(b,6,0)};a&&(c.$jspbMessageInstance=b);return c}};d0.prototype.toObject=function(){return V7b(void 0,this)};
var V7b=function(a,b){if(null!=b){var c={query:V(b,1,""),querySessionId:ej(b,3,0),selectSessionId:ej(b,4,0),submitSessionId:ej(b,5,0),cacheUpdatedTimestamp:ej(b,6,0),affinityVersion:n(p(b,7)),callTimestampMs:zl(b,8,0),resultTimestampMs:zl(b,9,0),sources:c0(a,b.getSources()),instanceId:V(b,11,""),contextualSources:P7b(a,m(b,gs,12))};a&&(c.$jspbMessageInstance=b);return c}};
var e0=function(a,b){this.name_=b||"";this.address=a||""},W7b=/"/g,X7b=/\\"/g,Y7b=/\\/g,Z7b=/\\\\/g,$7b=RegExp("^[+a-zA-Z0-9_.!#$%&'*\\/=?^`{|}~-]+@([a-zA-Z0-9-]+\\.)+[a-zA-Z0-9]{2,63}$"),a8b=new RegExp("["+vja({LRE:"\u202a",RLE:"\u202b",PDF:"\u202c",LRM:"\u200e",RLM:"\u200f"}).join("")+"]","g");e0.prototype.getName=function(){return this.name_};e0.prototype.getAddress=function(){return this.address};e0.prototype.setName=function(a){this.name_=a};e0.prototype.toString=function(){return b8b(this,'()<>@:\\".[],;')};
var b8b=function(a,b){var c=a.getName();c=c.replace(W7b,"");a:{for(var d=c,e=0;e<b.length;e++)if(ea(d,b[e])){b=!0;break a}b=!1}b&&(c='"'+c.replace(Y7b,"\\\\")+'"');return""==c?a.address:""==a.address?c:c+" <"+a.address+">"};e0.prototype.isValid=function(){return $7b.test(this.address)};
var e8b=function(a){var b=c8b;a=a.replace(a8b,"");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||d8b(f,h))f=k;else{q='">)]'.charAt(q);for(var v=f.indexOf(q,h+1);0<=v&&d8b(f,v);)v=f.indexOf(q,v+1);f=0<=v?f.substring(h,v+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=wC(c);c=Yqb(c,"'");c=Yqb(c,'"');c=c.replace(X7b,'"');c=c.replace(Z7b,"\\");d=wC(d);return new b(d,
c)},d8b=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 c8b=function(a,b){e0.call(this,a,b)};du(c8b,e0);var f8b=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}$");c8b.prototype.isValid=function(){return f0(this.address)};var f0=function(a){return null==a?!1:f8b.test(a)};c8b.prototype.toString=function(){return b8b(this,'()<>@:\\".[],;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a')};
var g8b=/[^a-z0-9]+/ig,h8b=[9,11,10,12,13,14,15,16,19],Dq=[9,19,11],i8b=[1,6],j8b=[2,7],k8b=[3,8],l8b=[1,2,6,7,8,9,11,10,12,13,14,15,16,19],m8b=[3,4,5,17,20],pr=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(g8b,"");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};pr.prototype.getType=function(){return this.type_};pr.prototype.getValue=function(){return this.value_};var Hq=function(a){return h8b.includes(a.getType())},gUa=function(a,b){return new pr(a,b)},n8b=function(a){var b=a.indexOf(":"),c=a.substring(b+1);return 0>=b?new pr(0,c):new pr(parseInt(a.substring(0,b),10),c)};pr.prototype.toString=function(){return this.getType()+":"+this.getValue()};
pr.prototype.equals=function(a){return a?this===a?!0:this.getType()===a.getType()&&this.getValue()===a.getValue():!1};var tr=gUa(0,"");new pr(17,"me");
var zr=function(a){Z.call(this,a,2)};U(zr,Z);var o8b={};zr.prototype.toObject=function(){if(null!=this){var a={dataMap:Eb(Zi(this,1))};Db(this,a,o8b)}else a=void 0;return a};
var Or=function(a){Z.call(this,a)};U(Or,Z);g=Or.prototype;g.getType=function(){return X(this,1,0)};g.setType=function(a){return l(this,1,a)};g.hasType=function(){return dj(this,1)};g.getValue=function(){return V(this,2,"")};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return dj(this,2)};g.toObject=function(){var a=null!=this?{type:X(this,1,0),value:V(this,2,"")}:void 0;return a};
var p8b=function(a){Z.call(this,a)};U(p8b,Z);g=p8b.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 q8b(this)};var q8b=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 g0=function(a){Z.call(this,a)};U(g0,Z);g0.prototype.toObject=function(){return r8b(this)};var r8b=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 h0=function(a){Z.call(this,a)};U(h0,Z);h0.prototype.getApplication=function(){return X(this,1,0)};h0.prototype.setApplication=function(a){return l(this,1,a)};h0.prototype.getIsEnabled=function(){return W(this,2,!1)};h0.prototype.toObject=function(){return s8b(this)};var s8b=function(a){if(null!=a)return{application:X(a,1,0),isEnabled:W(a,2,!1),overriddenExperiments:r8b(m(a,g0,3))}};
var t8b=function(a){Z.call(this,a)};U(t8b,Z);g=t8b.prototype;g.getClearcut=function(){return m(this,p8b,1)};g.setClearcut=function(a){Bb(this,1,a)};g.hasClearcut=function(){return lj(this,1)};g.getExperiments=function(){return m(this,h0,2)};g.setExperiments=function(a){Bb(this,2,a)};g.hasExperiments=function(){return lj(this,2)};
g.toObject=function(){var a=null!=this?{clearcut:q8b(this.getClearcut()),experiments:s8b(this.getExperiments()),maxUndoStackSize:ej(this,3,10),enableTargetedCopyOptions:W(this,4,!1),enableEmailEditing:W(this,5,!1),hideGroupResultMemberCount:W(this,6,!1)}:void 0;return a};
var u8b=function(){var a=jo(t8b,"[[true,49,740,4]]");a.hasClearcut()||a.setClearcut(new p8b);a.hasExperiments()||a.setExperiments(new h0);this.internal=a};
var NSa=function(a){this.root=a;this.length=0};g=NSa.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("ze");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("ze");var b=Array.from(this.root.childNodes);this.root.removeChild(b[a]);--this.length};
g.clear=function(){wD(this.root);this.length=0};g.getRoot=function(){return this.root};
var LSa=function(a){return Iq('<ul id="'+Jq(a.id)+'" peoplekit-id="'+Jq("rymPhb")+'" role="listbox" class="'+Jq("peoplekitComponentsListImplList")+'"></ul>')};
var MSa=QU.getInstance();
var v8b=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=v8b.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?(w8b(this),x8b(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:w8b(this);y8b(this);break;case 3:y8b(this);break;case 1:a=$Ra(this.spotlightIndex,c,this.multiActivateAnchorIndex);b=$Ra(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);x8b(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();w8b(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 y8b=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},w8b=function(a){for(var b=r(a.activeItems),c=b.next();!c.done;c=b.next())c.value.deactivate();a.activeItems.clear()},x8b=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 z8b=function(a){this.delegate=a};g=z8b.prototype;g.prev=function(a){a=this.delegate.prev(a);A8b(this);return a};g.next=function(a){a=this.delegate.next(a);A8b(this);return a};g.size=function(){return this.delegate.size()};g.goToItem=function(a,b){a=this.delegate.goToItem(a,b);A8b(this);return a};g.goToIndex=function(a,b){a=this.delegate.goToIndex(a,b);A8b(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 A8b=function(a){if(a=a.delegate.getSpotlitItem())if(a=a.getRoot(),hu){var b=gXb(a);jXb(a,b)}else a.scrollIntoView({block:"nearest"})};
var B8b=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"),C8b=/^(https?:)?\/\/sp[1-4]\.((ggpht)|(googleusercontent))\.com\//i,D8b=/^(https?:)?\/\/(qa(-red|-blue)?|dev2?|image-dev)(-|\.)lighthouse(-auth)?\.sandbox\.google\.com\//i,E8b=/^(https?:)?\/\/lighthouse-(qa(-red|-blue)?|dev2)\.corp\.google\.com\//i;
var F8b=/\/\/lh[3-6]\./,G8b=function(a,b,c,d){var e;(e=!a)||(e=String(a),e=!(B8b.test(e)||C8b.test(e)||D8b.test(e)||E8b.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(F8b,"//lh3.");return(new uR(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 bSa=function(a){var b=a.imageUrls,c=a.backupUrl,d=a.size,e=a.preloadSize,f=a.pixelRatio;Array.isArray(b);a=Iq;var h='<div class="'+Jq("peoplekitComponentsAvatarImplAvatarContainer")+'" style="width: '+Jq(DU(d))+"px; height: "+Jq(DU(d))+'px"><div peoplekit-id="'+Jq("YLEF4c")+'" class="'+Jq("peoplekitComponentsAvatarImplAvatar")+'" style="width: '+Jq(DU(d))+"px; height: "+Jq(DU(d))+'px">';Array.isArray(b);1==AU(b).length?(Array.isArray(b),b=Iq('<div class="'+Jq("peoplekitComponentsAvatarImplContainer")+
'">'+i0(b[0],c,d,e,f)+"</div>")):2==AU(b).length?(Array.isArray(b),b=Iq('<div class="'+Jq("peoplekitComponentsAvatarImplContainer")+'"><div class="'+Jq("peoplekitComponentsAvatarImplColumn")+'">'+i0(b[0],c,d,e,f)+"</div>"+j0()+'<div class="'+Jq("peoplekitComponentsAvatarImplColumn")+'">'+i0(b[1],c,d,e,f)+"</div></div>")):3==AU(b).length?(Array.isArray(b),b=Iq('<div class="'+Jq("peoplekitComponentsAvatarImplContainer")+'"><div class="'+Jq("peoplekitComponentsAvatarImplColumn")+'">'+i0(b[0],c,d,e,f)+
"</div>"+j0()+'<div class="'+Jq("peoplekitComponentsAvatarImplColumn")+'"><div class="'+Jq("peoplekitComponentsAvatarImplRow")+'">'+i0(b[1],c,Math.round(.5*d),e,f)+"</div>"+j0()+'<div class="'+Jq("peoplekitComponentsAvatarImplRow")+'">'+i0(b[2],c,Math.round(.5*d),e,f)+"</div></div></div>")):(Array.isArray(b),b=Iq('<div class="'+Jq("peoplekitComponentsAvatarImplContainer")+'"><div class="'+Jq("peoplekitComponentsAvatarImplColumn")+'"><div class="'+Jq("peoplekitComponentsAvatarImplRow")+'">'+i0(b[0],
c,Math.round(.5*d),e,f)+"</div>"+j0()+'<div class="'+Jq("peoplekitComponentsAvatarImplRow")+'">'+i0(b[2],c,Math.round(.5*d),e,f)+"</div></div>"+j0()+'<div class="'+Jq("peoplekitComponentsAvatarImplColumn")+'"><div class="'+Jq("peoplekitComponentsAvatarImplRow")+'">'+i0(b[1],c,Math.round(.5*d),e,f)+"</div>"+j0()+'<div class="'+Jq("peoplekitComponentsAvatarImplRow")+'">'+i0(b[3],c,Math.round(.5*d),e,f)+"</div></div></div>"));b=Iq(b);return a(h+b+'</div><div peoplekit-id="'+Jq("Btuy5e")+'" class="'+
Jq("peoplekitComponentsAvatarImplAvatarBadge")+'">'+Iq('<img class="'+Jq("peoplekitComponentsAvatarImplBadgeIconImage")+'" peoplekit-id="'+Jq("m6fZne")+'" draggable="false" alt="">')+"</div></div>")},i0=function(a,b,c,d,e){var f="",h=yWb(G8b(a,c,c,e));h=kWb(h);a=yWb(G8b(a,d,d,e));a=kWb(a);b=yWb(G8b(b,c,c,e));b=kWb(b);f+='<div peoplekit-id="'+Jq("IHgMKc")+'" class="'+Jq("peoplekitComponentsAvatarImplImageRoot")+'"><img peoplekit-id="'+Jq("HiaYvf")+'" class="'+Jq("peoplekitComponentsAvatarImplImage")+
'" style="width: '+Jq(DU(c))+"px; height: "+Jq(DU(c))+'px;" data-preload-src="'+Jq(a)+'" data-src="'+Jq(h)+'" data-backup-src="'+Jq(b)+'" draggable="false" alt=""></div>';return Iq(f)},j0=function(){return Iq('<div class="'+Jq("peoplekitComponentsAvatarImplDivider")+'"></div>')};
var H8b=new Map([[0,"light_theme"],[1,"dark_theme"]]);
var I8b=!hu&&!daa(),J8b=function(a,b){if(/-[a-z]/.test(b))return null;if(I8b&&a.dataset){if(eaa()&&!(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 K8b=new Map([[1,"badge_active"],[2,"badge_inactive"],[3,"badge_idle"],[4,"badge_do_not_disturb"],[5,"badge_video"]]),L8b=new Map([[1,"Active."],[2,"Inactive."],[3,"Idle."],[4,"Do Not Disturb."],[5,"In Video Call."]]),dSa=function(a,b){this.appearance=b;this.root=a;M8b(this)};
dSa.prototype.setBadge=function(a){var b=oq(this.root,"Btuy5e");if(0===a.badgeType)b.classList.remove("visible");else{var c=K8b.get(a.badgeType)||"";if(c){var d=this.appearance.getTheme();c="https://www.gstatic.com/people/peoplekit/icons/"+(H8b.get(d)||"light_theme")+"/"+c+".svg"}else c="";a=L8b.get(a.badgeType)||"";d=oq(b,"m6fZne");c&&(d.src=c);d.alt=a;b.classList.add("visible")}};
var M8b=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$1705:b.$jscomp$loop$prop$img$1705,$jscomp$loop$prop$src$1703:b.$jscomp$loop$prop$src$1703,$jscomp$loop$prop$imageRoot$1704:b.$jscomp$loop$prop$imageRoot$1704,$jscomp$loop$prop$backupSrc$1706:b.$jscomp$loop$prop$backupSrc$1706},c=a.next())b.$jscomp$loop$prop$imageRoot$1704=c.value,b.$jscomp$loop$prop$img$1705=oq(b.$jscomp$loop$prop$imageRoot$1704,"HiaYvf"),
c=J8b(b.$jscomp$loop$prop$img$1705,"preloadSrc"),b.$jscomp$loop$prop$src$1703=J8b(b.$jscomp$loop$prop$img$1705,"src"),b.$jscomp$loop$prop$backupSrc$1706=J8b(b.$jscomp$loop$prop$img$1705,"backupSrc"),aSa(b.$jscomp$loop$prop$src$1703)?b.$jscomp$loop$prop$img$1705.src=b.$jscomp$loop$prop$src$1703:aSa(c)?(b.$jscomp$loop$prop$img$1705.src=c,JD(function(d){return function(){d.$jscomp$loop$prop$img$1705.src=d.$jscomp$loop$prop$src$1703}}(b),0)):(b.$jscomp$loop$prop$imageRoot$1704.classList.add("isLoading"),
b.$jscomp$loop$prop$img$1705.onload=function(d){return function(){d.$jscomp$loop$prop$imageRoot$1704.classList.remove("isLoading")}}(b),b.$jscomp$loop$prop$img$1705.onerror=function(d){return function(){d.$jscomp$loop$prop$img$1705.src=d.$jscomp$loop$prop$backupSrc$1706}}(b),b.$jscomp$loop$prop$img$1705.src=b.$jscomp$loop$prop$src$1703)};
var pq=function(){this.theme=this.density=0};pq.prototype.getDensity=function(){return this.density};pq.prototype.setDensity=function(a){this.density=a};pq.prototype.getTheme=function(){return this.theme};pq.prototype.setTheme=function(a){this.theme=a};
var xSa=function(a){a=a.memberCount;return(new GP("{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)},wSa=function(a){a=a.memberNames;Array.isArray(a);return AU(a).join(", ")};
var N8b=function(a){Z.call(this,a)};U(N8b,Z);N8b.prototype.toObject=function(){var a=null!=this?{}:void 0;return a};
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{exampleBooleanFlag:W(a,1,!1),exampleIntegerFlag:ej(a,2,42)}};
var Q8b=function(a){Z.call(this,a)};U(Q8b,Z);Q8b.prototype.toObject=function(){return R8b(this)};var R8b=function(a){if(null!=a)return{enableTypescriptCodegenRefactor:W(a,3,!1),enableTestFeature:W(a,4,!1)}};
var S8b=function(a){Z.call(this,a)};U(S8b,Z);S8b.prototype.toObject=function(){return T8b(this)};var T8b=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 U8b=function(a){Z.call(this,a)};U(U8b,Z);U8b.prototype.toObject=function(){return V8b(this)};var V8b=function(a){if(null!=a)return{enableProjectLean:W(a,1,!1)}};
var W8b=function(a){Z.call(this,a)};U(W8b,Z);W8b.prototype.toObject=function(){return X8b(this)};var X8b=function(a){if(null!=a)return{enablePopulousV2:W(a,1,!0)}};
var Y8b=function(a){Z.call(this,a)};U(Y8b,Z);Y8b.prototype.getIsEnabled=function(){return W(this,1,!1)};Y8b.prototype.toObject=function(){return Z8b(this)};var Z8b=function(a){if(null!=a)return{isEnabled:W(a,1,!1),answer:ej(a,2,42)}};
var xq=function(a){Z.call(this,a)};U(xq,Z);xq.prototype.getRequestType=function(){return p(this,1)};xq.prototype.setRequestType=function(a){return l(this,1,a)};xq.prototype.toObject=function(){return $8b(this)};
var $8b=function(a){if(null!=a){var b=n(p(a,1)),c=Z8b(m(a,Y8b,101));var d=null!=m(a,N8b,102)?{}:void 0;return{requestType:b,testExperimentFlags:c,hovercardExperimentsRoot:d,peopleIntelligenceExperimentsRoot:R8b(m(a,Q8b,103)),populousExperimentsRoot:T8b(m(a,S8b,104)),sendkitExperimentsRoot:X8b(m(a,W8b,105)),integrationExampleFeature:P8b(m(a,O8b,106)),peoplekitExperimentsRoot:r8b(m(a,g0,107)),populousLeanExperimentFlags:V8b(m(a,U8b,108))}}};
var a9b=function(){var a=new xq,b=new g0;this.experimentFlags_=Bb(a,107,b)};a9b.prototype.getExperimentFlags=function(){return this.experimentFlags_};a9b.prototype.getExperimentIds=function(){return[]};
var er=function(a,b){this.cache=b;this.overriddenExperiments=m(a,g0,3)||new g0};er.prototype.getExperiments=function(){var a,b=(null==(a=this.cache.getExperimentFlags())?void 0:m(a,g0,107))||new g0;a=this.overriddenExperiments;if(dj(a,3)){var c=W(a,3,!1);l(b,3,c)}dj(a,4)&&(a=W(a,4,!0),l(b,4,a));return b};er.prototype.getExperimentIds=function(){return this.cache.getExperimentIds()};
var ar=function(a){Z.call(this,a)};U(ar,Z);g=ar.prototype;g.getCacheStaleSec=function(){return ej(this,4,14400)};g.getCacheExpiredSec=function(){return ej(this,5,1209600)};g.getRpcTimeoutSec=function(){return ej(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:ej(this,3,1800),cacheStaleSec:ej(this,4,14400),cacheExpiredSec:ej(this,5,1209600),rpcTimeoutSec:ej(this,7,60),apiKey:V(this,8,""),apiRoot:n(p(this,10)),cacheRefreshRateSec:ej(this,11,14400),maxRefreshCount:ej(this,12,18),enableClearcut:W(this,13,!0)}:void 0;return a};
var b9b=function(){};b9b.prototype.getExperimentFlags=function(){return new xq};b9b.prototype.getExperimentIds=function(){return[]};
var cr=function(){};cr.prototype.prefetch=function(){};cr.prototype.loadExperiments=function(){return new b9b};
var k0=function(a){Z.call(this,a)};U(k0,Z);k0.prototype.getVersion=function(){return p(this,1)};k0.prototype.setVersion=function(a){return l(this,1,a)};k0.prototype.toObject=function(){return c9b(this)};var c9b=function(a){if(null!=a)return{version:n(p(a,1))}};
var l0=function(a){Z.call(this,a)};U(l0,Z);g=l0.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 d9b(this)};var d9b=function(a){if(null!=a)return{application:n(p(a,1)),version:n(p(a,2))}};
var e9b=function(a){Z.call(this,a)};U(e9b,Z);g=e9b.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 dj(this,2)};g.getCaller=function(){return m(this,k0,3)};g.setCaller=function(a){return Bb(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 dj(this,4)};g.getClient=function(){return m(this,l0,5)};g.setClient=function(a){return Bb(this,5,a)};g.hasClient=function(){return lj(this,5)};g.toObject=function(){var a=null!=this?{requestType:X(this,1,0),profileId:n(p(this,2)),caller:c9b(this.getCaller()),instanceId:n(p(this,4)),client:d9b(this.getClient())}:void 0;return a};
var uq=function(a){Z.call(this,a)};U(uq,Z);g=uq.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 f9b(this)};var f9b=function(a){if(null!=a)return{errorType:X(a,2,1),errorMessage:n(p(a,3))}};
var wq=function(a){Z.call(this,a,-1,g9b)};U(wq,Z);g=wq.prototype;g.getExperimentFlags=function(){return m(this,xq,1)};g.setExperimentFlags=function(a){return Bb(this,1,a)};g.hasExperimentFlags=function(){return lj(this,1)};g.getError=function(){return m(this,uq,2)};g.setError=function(a){Bb(this,2,a)};g.hasError=function(){return lj(this,2)};g.getSource=function(){return p(this,3)};g.setSource=function(a){return l(this,3,a)};g.hasSource=function(){return dj(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 dj(this,4)};g.getExperimentIdsList=function(){return jb(this,5)};g.setExperimentIdsList=function(a){return jl(this,5,a)};var g9b=[5];
wq.prototype.toObject=function(){var a=null!=this?{experimentFlags:$8b(this.getExperimentFlags()),error:f9b(this.getError()),source:n(p(this,3)),instanceId:n(p(this,4)),experimentIdsList:n(jb(this,5))}:void 0;return a};
var m0=function(a,b){this.client_=a;this.runtime_=b;tq();this.apiKey_=a.getApiKey();this.apiRoot_=p(this.client_,10)||ACa("peoplestackwebexperiments-pa",this.runtime_.getPeopleApiEnv())};m0.prototype.getClient=function(){return this.client_};m0.prototype.getApiKey=function(){return this.apiKey_};
var n0=function(a){Z.call(this,a,-1,h9b)};U(n0,Z);g=n0.prototype;g.getExperimentFlags=function(){return m(this,xq,1)};g.setExperimentFlags=function(a){return Bb(this,1,a)};g.hasExperimentFlags=function(){return lj(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 jl(this,3,a)};var i9b=function(a){return jo(n0,a)},h9b=[3];
n0.prototype.toObject=function(){var a=null!=this?{experimentFlags:$8b(this.getExperimentFlags()),obfuscatedGaiaId:n(p(this,2)),experimentIdsList:n(jb(this,3))}:void 0;return a};
var j9b=function(a){var b=void 0;b=void 0===b?Date.now:b;this.clientConfig_=a;this.now_=b},k9b=function(a,b,c){a=a.now_()-1E3*c;return b>a};j9b.prototype.getCacheState=function(a){var b=ej(this.clientConfig_.getClient(),3,1800);if(k9b(this,a,b))return 1;b=this.clientConfig_.getClient().getCacheStaleSec();if(k9b(this,a,b))return 2;b=this.clientConfig_.getClient().getCacheExpiredSec();return k9b(this,a,b)?3:4};
var vq=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(vq,Error);
var l9b=function(a,b){b=void 0===b?null:b;var c=jSa(a);a=a.getProfileId()||b;return c&&a?JSON.stringify([c,a]):null},m9b=new vq(6);
var n9b=function(){};
var o0=function(){};du(o0,n9b);o0.prototype.getCount=function(){for(var a=0,b=r(this),c=b.next();!c.done;c=b.next())a++;return a};o0.prototype[Symbol.iterator]=function(){return MIb(this.__iterator__(!0)).toEs6()};o0.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 o9b=function(a){this.storage_=a};du(o9b,o0);g=o9b.prototype;g.isAvailable=function(){if(!this.storage_)return!1;try{return this.storage_.setItem("__sak","1"),this.storage_.removeItem("__sak"),!0}catch(a){return!1}};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 UK;d.next=function(){if(b>=c.length)return LIb;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 lSa=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.storage_=a};du(lSa,o9b);
var p0=function(a,b){this.mechanism_=a;this.prefix_=b+"::"};du(p0,o0);p0.prototype.set=function(a,b){this.mechanism_.set(this.prefix_+a,b)};p0.prototype.get=function(a){return this.mechanism_.get(this.prefix_+a)};p0.prototype.remove=function(a){this.mechanism_.remove(this.prefix_+a)};
p0.prototype.__iterator__=function(a){var b=this.mechanism_[Symbol.iterator](),c=this,d=new UK;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 zq=function(a,b){var c=void 0,d=void 0;b=void 0===b?new lSa:b;c=void 0===c?$D:c;d=void 0===d?ztb:d;this.clientConfig_=a;this.transformer_=new j9b(this.clientConfig_);this.localStorage_=b;this.serializeJson_=c;this.isValidJson_=d;this.prefix_="PeopleStackExperiments";this.storage_=new p0(this.localStorage_,this.prefix_)};
zq.prototype.set=function(a,b){var c=l9b(a,b.getObfuscatedGaiaId());if(!c)throw m9b;a={keyPath:c,experiments:b.serialize(),lastUpdated:Date.now(),instanceId:a.getInstanceId()};this.storage_.set(c,this.serializeJson_(a));return c};
zq.prototype.get=function(a){a=l9b(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:i9b(a.experiments),lastUpdated:new Date(a.lastUpdated),state:b.getCacheState(a.lastUpdated),instanceId:a.instanceId}}else a=null;return a};zq.prototype.delete=function(a){this.storage_.remove(a);return!0};
zq.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 Aq=function(a){var b=void 0;b=void 0===b?new Map:b;this.clientConfig_=a;this.transformer_=new j9b(this.clientConfig_);this.cache_=b};Aq.prototype.set=function(a,b){var c=l9b(a,b.getObfuscatedGaiaId());if(!c)throw m9b;a={keyPath:c,experiments:b,lastUpdated:new Date,state:1,instanceId:a.getInstanceId()};this.cache_.set(c,a);return c};
Aq.prototype.get=function(a){a=l9b(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};Aq.prototype.delete=function(a){this.cache_.delete(a);return!0};Aq.prototype.clean=function(){var a=this;this.cache_.forEach(function(b,c){4===a.transformer_.getCacheState(b.lastUpdated.getTime())&&a.cache_.delete(c)})};
var p9b=function(){};g=p9b.prototype;g.start=function(){};g.stop=function(){};g.count=function(){};g.latency=function(){};g.error=function(){};g.status=function(){};g.logError=function(){};
var q9b=function(a){Z.call(this,a)};U(q9b,Z);g=q9b.prototype;g.getCaller=function(){return m(this,k0,1)};g.setCaller=function(a){return Bb(this,1,a)};g.getClient=function(){return m(this,l0,2)};g.setClient=function(a){return Bb(this,2,a)};g.hasClient=function(){return lj(this,2)};g.toObject=function(){return r9b(this)};var r9b=function(a){if(null!=a)return{caller:c9b(a.getCaller()),client:d9b(a.getClient())}};
var s9b=function(a){Z.call(this,a)};U(s9b,Z);g=s9b.prototype;g.getRequestType=function(){return p(this,1)};g.setRequestType=function(a){return l(this,1,a)};g.setProperties=function(a){return Bb(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 dj(this,4)};
g.toObject=function(){var a=null!=this?{requestType:n(p(this,1)),properties:r9b(m(this,q9b,3)),instanceId:n(p(this,4))}:void 0;return a};
var t9b=new DG("/peoplestackwebexperiments.PeopleStackExperimentsService/GetExperimentFlags",s9b,n0,function(a){return a.serialize()},i9b);
var u9b=function(a){this.client_=new eH({format:"jspb"});this.hostname_=a};u9b.prototype.getExperimentFlags=function(a,b){return zG(this.client_,this.hostname_+"/$rpc/peoplestackwebexperiments.PeopleStackExperimentsService/GetExperimentFlags",a,b||{},t9b)};
var q0=function(a,b){this.clientRequest_=a;this.rpcClient_=b;this.metric_=new p9b};q0.prototype.getMetric=function(){return this.metric_};q0.prototype.send=function(a){var b=this,c;return bf(function(d){var e=(new q9b).setCaller(b.clientRequest_.getCaller()).setClient(b.clientRequest_.getClient());c=(new s9b).setRequestType(b.clientRequest_.getRequestType()).setInstanceId(b.clientRequest_.getInstanceId()).setProperties(e);return d.return(b.rpcClient_.getExperimentFlags(c,a))})};
q0.prototype.close=function(){};q0.prototype.processResponse=function(a){return a};
var v9b=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
var w9b=function(a,b){this.config_=a;this.request_=b;this.resolver_=new v9b;this.rpcPromise_=null;this.state_=0};g=w9b.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_=zsb(new HD),this.resolver_.reject(1)}};
g.send=function(){var a=this;if(0!==this.state_)return this.resolver_.promise;var b=zCa(this.config_.apiKey);this.config_.customAuthHeaders&&(b=Object.assign({},b,this.config_.customAuthHeaders));this.state_=1;b=this.request_.send(b);this.rpcPromise_=Jsb(Csb([b,Ssb(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 HD?c=1:a&&"object"===typeof a?(c=a.code||2,2===c&&(c=Mo("result.error.code",a)||a.status,c=Number(c),c=zUb.has(c)?zUb.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 x9b=Symbol("Be"),y9b=function(){};y9b.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[x9b]=d)}return c})};
var r0=function(a){this.request_=a;this.metric_=this.request_.getMetric();this.metric_.start("total");this.metric_.start("blocked");this.contentLength_=0};r0.prototype.getMetric=function(){return this.metric_};r0.prototype.send=function(a){this.metric_.stop("blocked");this.metric_.count();this.metric_.start("network");return this.request_.send(a)};
r0.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[x9b]||0}};r0.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 z9b=function(a){this.config_=a;this.pendingRpcs_=new Set},B9b=function(a,b){b=new r0(b);b=new w9b(a.config_,b);a.pendingRpcs_.add(b);A9b(a,b);return b.resolver_.promise},A9b=function(a,b){bf(function(c){if(1==c.nextAddress)return Qt(c,2,3),cf(c,b.send(),3);if(2!=c.nextAddress)return Tt(c),a.pendingRpcs_.delete(b),Ut(c,0);St(c);return c.jumpTo(3)})};
var nSa=function(a){this.clientConfig_=a;this.inflightRequests_=new Map;a={apiKey:this.clientConfig_.getApiKey(),timeoutSec:this.clientConfig_.getClient().getRpcTimeoutSec()};this.dispatcher_=new z9b(a);this.rpcClient_=new u9b(this.clientConfig_.apiRoot_)},D9b=function(a,b){var c,d,e,f;return bf(function(h){switch(h.nextAddress){case 1:var k=C9b(b);if(c=a.inflightRequests_.get(k)||null)return h.return(c);d=new q0(b,a.rpcClient_);Qt(h,2,3);e=B9b(a.dispatcher_,d);k=C9b(b);a.inflightRequests_.set(k,
e);return cf(h,e,5);case 5:return f=h.yieldResult,h.return(f);case 3:Tt(h);k=C9b(b);a.inflightRequests_.delete(k);Ut(h,0);break;case 2:throw St(h),Error("Ce");}})},C9b=function(a){a=jSa(a);if(!a)throw m9b;return a};
var E9b=function(a){Z.call(this,a)};U(E9b,Z);g=E9b.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 dj(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 dj(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 oSa=function(a){var b=a.getClient();a=a.runtime_.getPeopleApiEnv();this.logContext_=cs(new ds,"PeopleExperiments").setEnvironment(a).setLogSource(1250).setVersion("1.0.1").setBaselineCl(447859179).setEnableClearcut(b.getEnableClearcut())};g=oSa.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 s0=function(a,b){this.metrics_=a;this.state_=new kU(b);this.label_="total";this.source=b};s0.prototype.start=function(){this.metrics_.start(this.state_,this.label_)};s0.prototype.stop=function(){this.metrics_.stop(this.state_,this.label_);this.metrics_.latency(this.state_)};
var pSa=function(a,b){this.worker_=a;this.metrics_=Wo(b)},F9b=function(a,b){var c=new E9b,d=tq();c=l(c,2,d).setRequestType(a.getRequestType());return l(c,5,b).setClient(a.getClient().getApplication())};
pSa.prototype.updateExperimentsCache=function(a,b){b=void 0===b?2:b;var c=this,d,e,f,h;return bf(function(k){if(1==k.nextAddress)return d=F9b(a,b),e=new s0(c.metrics_,d),e.start(),cf(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)})};
pSa.prototype.getCachedExperiments=function(a,b){b=void 0===b?0:b;var c=F9b(a,b),d=new s0(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 G9b=function(a){this.timer=a;this.count=0},rSa=function(a,b){this.clientConfig_=a;this.worker_=b;this.refreshers_=new Map;this.refreshRateMs_=1E3*ej(this.clientConfig_.getClient(),11,14400);this.eventHandler_=new aH(this)};rSa.prototype.updateExperimentsCache=function(a,b){try{return H9b(this,a),this.worker_.updateExperimentsCache(a,b)}catch(c){return Promise.resolve(yq(c))}};rSa.prototype.getCachedExperiments=function(a,b){try{return H9b(this,a),this.worker_.getCachedExperiments(a,b)}catch(c){return yq(c)}};
var H9b=function(a,b){var c=jSa(b);if(!c)throw new vq(6);if(a.refreshers_.has(c))a.refreshers_.get(c).count=0;else{var d=new ID(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=ej(a.clientConfig_.getClient(),12,18);e.count>=f&&(e.timer.stop(),a.refreshers_.delete(c))}});d.start();a.refreshers_.set(c,new G9b(d))}a.refreshers_.get(c)};
var I9b=function(){},qSa=function(a,b){this.cache_=a;this.loader_=b};
qSa.prototype.updateExperimentsCache=function(a,b){var c=this,d,e,f,h;return bf(function(k){if(1==k.nextAddress){e=d=null;try{d=J9b(c,a)}catch(E){e=E}if(d&&3!==d.state)return k.return(c.getCachedExperiments(a,b));Qt(k,3);return cf(k,K9b(c,a),5)}if(3!=k.nextAddress){f=k.yieldResult;var q=k.return,v=e;v=void 0===v?null:v;var y=(new wq).setExperimentFlags(f.getExperimentFlags()).setExperimentIdsList(f.getExperimentIdsList()).setSource(1).setInstanceId(a.getInstanceId());v&&y.setError(kSa(v));return q.call(k,
y)}h=St(k);return k.return(yq(h))})};qSa.prototype.getCachedExperiments=function(a){try{var b=J9b(this,a);if(b){var c=(new wq).setExperimentFlags(b.experiments.getExperimentFlags()).setExperimentIdsList(b.experiments.getExperimentIdsList()).setInstanceId(b.instanceId).setSource(2);1!==b.state&&K9b(this,a).catch(I9b);return c}K9b(this,a).catch(I9b);return yq()}catch(d){return yq(d)}};
var J9b=function(a,b){try{var c=a.cache_.get(b);return c&&c.experiments.hasExperimentFlags()?c:null}catch(d){if(d instanceof vq)throw d;throw new vq(3);}},K9b=function(a,b){var c,d;return bf(function(e){if(1==e.nextAddress)return Qt(e,2),b.hasInstanceId()||b.setInstanceId(tq()),cf(e,D9b(a.loader_,b),4);if(2!=e.nextAddress)return c=e.yieldResult,a.cache_.set(b,c),e.return(c);d=St(e);if(d instanceof vq)throw d;throw new vq(2);})};
var mSa;
var L9b=function(a){this.clientConfig_=a;this.worker_=sSa(this.clientConfig_)};L9b.prototype.getCachedExperiments=function(a){return this.worker_.getCachedExperiments(a,0)};
var dr=function(){this.peopleApiEnv_=4};dr.prototype.getPeopleApiEnv=function(){return this.peopleApiEnv_};dr.prototype.setPeopleApiEnv=function(a){this.peopleApiEnv_=a;return this};
var M9b=function(a,b){this.client_=a;this.request_=b;this.response_=null};M9b.prototype.getExperimentFlags=function(){this.response_||(this.response_=this.client_.getCachedExperiments(this.request_));return this.response_.getExperimentFlags()};M9b.prototype.getExperimentIds=function(){this.response_||(this.response_=this.client_.getCachedExperiments(this.request_));return this.response_.getExperimentIdsList()};
var br=function(a,b){this.clientConfig_=a;this.requestType_=b;this.version_=447859179};br.prototype.prefetch=function(a){var b=new m0(this.clientConfig_,new dr);a=N9b(this,a,"");sSa(b).updateExperimentsCache(a,2)};br.prototype.loadExperiments=function(a,b,c){var d=new m0(this.clientConfig_,b),e=N9b(this,a,c);sSa(d).updateExperimentsCache(e,2);b=new L9b(new m0(this.clientConfig_,b));a=N9b(this,a,c);return new M9b(b,a)};
var N9b=function(a,b,c){var d=(new k0).setVersion(a.version_);b=(new l0).setApplication(b);return(new e9b).setProfileId(c).setRequestType(a.requestType_).setCaller(d).setClient(b)};
var Bq=new er(new h0,new a9b);
var vSa=QU.getInstance();
var zSa=QU.getInstance();
var t0=function(a){this.delegate=a};g=t0.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 O9b=new ui(iQ.WEEKDAY_MONTH_DAY_MEDIUM),P9b=new ui(7);new ui(iQ.WEEKDAY_MONTH_DAY_MEDIUM);
var Q9b=new Map([[0,2],[1,1],[2,3],[3,4],[4,2],[5,5]]);
var R9b=function(a){var b=a.altText,c=a.iconUrl,d=a.persistentText,e=a.styleClass;a=Iq;e='<div class="'+Jq("peoplekitComponentsTagTag")+" "+(e?Jq(e):"")+'" peoplekit-id="'+Jq("mQXP")+'">';if(c){var f='<img class="'+Jq("peoplekitComponentsTagIcon")+'" src="';yU(c,bWb)||yU(c,cWb)?c=CU(c):c instanceof dh?c=CU(fh(c)):c instanceof sh?c=CU(oh(c)):c instanceof Ry?c=CU(vh(c)):c instanceof uh?c=CU(Rja(c)):(c=String(c),c=CWb.test(c)?c.replace(wWb,xWb):"about:invalid#zSoyz");b=f+Jq(c)+'" alt="'+Jq(b)+'"><div'+
(d?"":' class="'+Jq("peoplekitComponentsTagUnrollingAltText")+'"')+'><div class="'+Jq("peoplekitComponentsTagText")+'">'+zU(b)+"</div></div>"}else b='<div class="'+Jq("peoplekitComponentsTagText")+'">'+zU(b)+"</div>";return a(e+b+"</div>")};
var BSa=function(a,b,c,d,e,f){var h=this;this.root=a;this.avatar=e;this.features=f;this.isIntelligenceInitialized=this.isOutOfOffice=!1;S9b(this,{tags:d});YRa(a,b.getPrimaryTarget());c.getResultDecorationConfigRequestCallback()(b,function(k){S9b(h,k)})};g=BSa.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("Ee");};g.onKeyDown=function(){};g.onContextMenu=function(){return function(){}};
g.updateWaldo=function(a){if(this.getSupportedIntelligenceFeatures().includes(1)){var b=oq(this.root,"Z306Oe");if(this.isOutOfOffice=4===a.getCurrentStatus()){if(4!==a.getCurrentStatus())throw Error("De");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 "+P9b.format(a):"Out of office - back on "+O9b.format(a);AD(b,String(a));this.root.classList.add("isOutOfOffice")}else AD(b,""),this.root.classList.remove("isOutOfOffice")}};
g.updateHubAvailabilityDot=function(a){this.getSupportedIntelligenceFeatures().includes(2)&&this.avatar.setBadge({badgeType:Q9b.get(a.getType()||0)||2})};g.getSupportedIntelligenceFeatures=function(){return this.features};g.addTag=function(a){var b=oq(this.root,"x00ATb");a:switch(a.style||0){case 1:var c="isWarning";break a;default:c=""}a=ap(R9b,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 S9b=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)};BSa.prototype.initializeIntelligence=function(){this.isIntelligenceInitialized||(this.getSupportedIntelligenceFeatures().includes(2)&&this.avatar.setBadge({badgeType:2}),this.isIntelligenceInitialized=!0)};
var T9b=function(a,b,c,d){this.loggingToken=d;(new O7b(a)).setDisplayName(b).forceDisplayNameOverride_=c};T9b.prototype.getLoggingToken=function(){return this.loggingToken};
var u0=function(a){this.delegate_=a};g=u0.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 Fq=function(a){this.delegate_=a};U(Fq,u0);g=Fq.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 U9b=function(){};U9b.prototype.getDisplayNameMatches=function(){return[]};U9b.prototype.getDisplayValueMatches=function(){return[]};U9b.prototype.getGivenNameMatches=function(){return[]};var V9b=new U9b;
var CSa=function(a,b,c){this.resultType_=a;this.targets_=b;this.memberCount_=c};g=CSa.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("Fe");};g.getDisplayName=function(){return""};g.getDisplayValue=function(){return""};g.getDescription=function(){return""};g.getPhotoUrl=function(){return""};
g.getMatchInfo=function(){return V9b};
var W9b=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 Lr=function(){this.url_="";this.sourceType_=this.type_=0;this.glyph_=""};g=Lr.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 X9b=(new Lr).setType(1).setUrl("https://lh3.googleusercontent.com/a/default-user"),Y9b=new Lr;
var Z9b=function(a){this.id_=a;this.value_=this.id_.originalValue_;this.description_="";this.name_=null;this.photo_=Hq(this.id_)?Y9b:X9b;this.tags_=[];this.sourceIds_=m8b.includes(this.id_.getType())?[this.id_]:[];8===this.id_.getType()&&this.sourceIds_.push(new pr(3,this.id_.originalValue_));this.isMe_=17===this.id_.getType();this.dataSource_=0;this.resultType_=W9b.get(this.id_.getType())||0;this.personLoggingId_=this.fieldLoggingId_="";this.orgState_=0;this.extendedData_=this.originatingField_=
null};g=Z9b.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_=Hq(this.id_)?Y9b:X9b};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 Sr};var BUa=function(a,b){a.isMe_=b;return a};g=Z9b.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 Mr=function(a,b){a.originatingField_=b;return a},Nr=function(a){return new Z9b(a)};
var $9b=function(){this.internalId=tr;this.displayNameOverride="";this.forceDisplayNameOverride=!1;var a=Nr(this.internalId).setDataSource(3);this.internalResult=new Fq(Gq(0,[a]));this.internalSelectionToken=new T9b(this.internalId,this.displayNameOverride,this.forceDisplayNameOverride,null)};g=$9b.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 Kq=function(a,b,c,d,e){this.delegate=Eq(a,b,c,d,e,[2]);this.root=a;this.root.setAttribute("aria-selected","true");this.id=b.getPrimaryTarget().getId();this.selection=new $9b};U(Kq,t0);Kq.prototype.getAllIds=function(){return[this.id]};Kq.prototype.getSelection=function(){return this.selection};
var a$b=function(a,b,c,d,e,f,h){c=void 0===c?"":c;d=void 0===d?!1:d;return Iq('<div role="option" class="'+Jq("peoplekitComponentsResultlistitemResultListItem")+" "+Jq(c)+'" id="'+Jq(a)+'" peoplekit-id="'+Jq(a)+'" aria-disabled="'+Jq(d)+'" aria-selected="false"><div class="'+Jq("peoplekitComponentsResultlistitemResultListItemRow")+'"><div class="'+Jq("peoplekitComponentsResultlistitemLeft")+'" data-hovercard-id="'+Jq(b)+'">'+zU(e)+'</div><div class="'+Jq("peoplekitComponentsResultlistitemCenter")+
'">'+zU(f)+'</div><div class="'+Jq("peoplekitComponentsResultlistitemRight")+'">'+zU(h)+'</div></div><div peoplekit-id="'+Jq("Z306Oe")+'" class="'+Jq("peoplekitComponentsResultlistitemOutOfOffice")+'"></div></div>')},b$b=function(a,b,c,d){return Iq('<div class="'+Jq("peoplekitComponentsResultlistitemLabelContainer")+'"><div class="'+Jq("peoplekitComponentsResultlistitemLabel")+" "+Jq("peoplekitComponentsResultlistitemLabelRow")+'"><div class="'+Jq("peoplekitComponentsResultlistitemLabelText")+'" data-hovercard-id="'+
Jq(b)+'" translate="no">'+zU(nWb(a))+'</div><div peoplekit-id="'+Jq("x00ATb")+'" class="'+Jq("peoplekitComponentsResultlistitemTags")+'"></div></div>'+(c?'<div class="'+Jq("peoplekitComponentsResultlistitemSublabel")+" "+Jq("peoplekitComponentsResultlistitemLabelRow")+'"><div class="'+Jq("peoplekitComponentsResultlistitemSublabelText")+'" data-hovercard-id="'+Jq(b)+'"'+(d?"":' translate="no"')+">"+zU(nWb(c))+"</div></div>":"")+"</div>")},c$b=function(a){return Iq('<div class="'+Jq("peoplekitComponentsResultlistitemAvatar")+
'"><div class="'+Jq("peoplekitComponentsResultlistitemAvatarContainer")+'" peoplekit-id="'+Jq("d6MZcd")+'"></div>'+(a?zU(a):"")+"</div>")},d$b=function(){var a=Iq,b='<div class="'+Jq("peoplekitComponentsResultlistitemAvatarSelectionOverlay")+'"><div class="'+Jq("peoplekitComponentsResultlistitemWhiteCheck")+'">';var c=Iq('<svg viewBox="0 0 24 24" class="'+(Jq("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(c$b(BU(b+c+"</div></div>")))},e$b=function(){return Iq('<img class="'+Jq("peoplekitComponentsResultlistitemMetaIcon")+'" peoplekit-id="'+Jq("SC3Htd")+'" alt="" src=""/>')};
var DSa=function(a){var b=a.hovercardId,c=a.label,d=a.sublabel,e=a.disableReason,f=a.allowSublabelTranslation;return Iq(a$b(a.id,b,"isDisabled "+a.densityClass,!0,BU(""+c$b()),BU(""+b$b(c,b,d,f)),BU('<div class="'+Jq("peoplekitComponentsResultlistitemDisabledDisableReasonContainer")+'">'+zU(e)+"</div>")))};
var v0=function(a){this.delegate=a;var b=this;this.eventHandler=new aH(this);this.eventHandler.listen(this.getRoot(),"click",function(c){b.onClick(c)})};U(v0,t0);v0.prototype.onClick=function(){this.toggleSelection()};
var GSa=function(a,b){this.internalResult=a;this.displayNameOverride=b;this.forceDisplayNameOverride=!1;a=this.internalResult.getTargetList()[0];if(!a)throw new RangeError("Ge");this.target=a;a=this.target.getLoggingToken();b=this.target.getId();this.internalSelectionToken=new T9b(b,this.displayNameOverride,this.forceDisplayNameOverride,a)};g=GSa.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 f$b=["pk-select","pk-deselect","pk-click","pk-input"],g$b=new Map([["pk-select",3],["pk-deselect",3],["pk-click",3],["pk-input",15]]);
var w0=function(a,b,c,d,e,f){this.delegate=Eq(a,b,d,e,f,[]);this.root=a;this.result=b;this.selectionsState=c;this.id=b.getPrimaryTarget().getId();this.selection=new $9b};U(w0,t0);w0.prototype.getAllIds=function(){return[this.id]};w0.prototype.toggleSelection=function(){for(var a=r(this.result.getMemberList()),b=a.next();!b.done;b=a.next())b=HSa(b.value),this.selectionsState.select(b);this.root.dispatchEvent(FSa("pk-select",this.root))};w0.prototype.getSelection=function(){return this.selection};
var h$b=function(a){var b=a.hovercardId,c=a.label,d=a.sublabel;return Iq(a$b(a.id,b,a.densityClass,void 0,BU(""+c$b()),BU(""+b$b(c,b,d)),BU(""+e$b())))};
var ISa=QU.getInstance();
var l$b=function(a,b){this.delegate=a;var c=this;this.selectionsState=b;this.id=a.getAllIds()[0];b.get(this.id)&&i$b(this,this.getSelection());j$b(this.selectionsState,function(d){d.id().equals(c.id)&&(c.getRoot().classList.remove("isSelected"),c.getRoot().setAttribute("aria-selected","false"))});k$b(this.selectionsState,function(d){return i$b(c,d)})};U(l$b,t0);
l$b.prototype.toggleSelection=function(){if(this.selectionsState.get(this.id)){var a=this.getRoot();a=FSa("pk-deselect",a)}else a=this.getRoot(),a=FSa("pk-select",a);this.getRoot().dispatchEvent(a);this.selectionsState.toggle(this.getSelection(),1)};var i$b=function(a,b){b.id().equals(a.id)&&(a.getRoot().classList.add("isSelected"),a.getRoot().setAttribute("aria-selected","true"))};
var m$b=function(a,b,c,d,e,f){this.delegate=Eq(a,b,d,e,f,[2]);this.selectionsState=c;this.id=b.getPrimaryTarget().getId();this.selection=this.selectionsState.get(this.id)||HSa(b,b.getDisplayName())};U(m$b,t0);m$b.prototype.getAllIds=function(){return[this.id]};m$b.prototype.getSelection=function(){return this.selection};
var n$b=function(a){var b=a.hovercardId,c=a.label,d=a.sublabel;return Iq(a$b(a.id,b,a.densityClass,void 0,BU(""+d$b()),BU(""+b$b(c,b,d)),BU(""+e$b())))};
var o$b=function(a,b,c,d,e,f){this.delegate=Eq(a,b,d,e,f,[]);this.selectionsState=c;this.id=b.getPrimaryTarget().getId();this.selection=this.selectionsState.get(this.id)||HSa(b)};U(o$b,t0);o$b.prototype.getAllIds=function(){return[this.id]};o$b.prototype.getSelection=function(){return this.selection};
var p$b=function(a){var b=a.hovercardId,c=a.label,d=a.sublabel,e=a.allowSublabelTranslation;return Iq(a$b(a.id,b,a.densityClass,void 0,BU(""+d$b()),BU(""+b$b(c,b,d,e)),BU(""+e$b())))};
var OSa=function(a,b,c,d,e,f){this.list=a;this.resultConfig=b;this.appearanceConfig=c;this.clientConfig=d;this.selectionsState=e;this.results=[];this.intelligentCollection=f.create();a=new v8b(this.results);this.navigatable=new z8b(a)};g=OSa.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=this.clientConfig,h=mXb(this.list.getRoot()),k=!!d.get(c.getPrimaryTarget().getId());var q=c;var v=e;if(v.getManuallyDisableResultCallback()(q))q=6;else{var y=q.getPrimaryTarget().getId();q=Dq.includes(y.getType())?3:Hq(y)?2:k&&!v.getAllowResultDeselection()?5:1===q.getTargetList().length?1:1<q.getTargetList().length?4:0}switch(q){case 1:case 4:f=
c;h=d;c=b;b=uSa(f,e,sq(c.getDensity()));d=ap(n$b,b);Mq(d,25285,["impression","pk-select","pk-deselect"],[JSa(f.getPrimaryTarget().getLoggingToken())]);q=oq(d,"d6MZcd");k=rq(c.getDensity());c=qq(q,b.photos,k,k,c);b=new m$b(d,f,h,e,b.tags,c);b=new v0(new l$b(b,h));break a;case 5:b=ESa(c,1,e,b,f,h);break a;case 6:b=ESa(c,2,e,b,f,h);break a;case 2:f=ASa(c,e,h,W(f.internal,6,!1),sq(b.getDensity()));h=ap(p$b,f);Mq(h,25285,["impression","pk-select","pk-deselect"],[JSa(c.getPrimaryTarget().getLoggingToken())]);
q=oq(h,"d6MZcd");k=rq(b.getDensity());b=qq(q,f.photos,k,k,b);b=new o$b(h,c,d,e,f.tags,b);b=new v0(new l$b(b,d));break a;case 3:f=ASa(c,e,h,W(f.internal,6,!1),sq(b.getDensity()));h=ap(h$b,f);Mq(h,25285,["impression","pk-select","pk-deselect"],[JSa(c.getPrimaryTarget().getLoggingToken())]);q=oq(h,"d6MZcd");k=rq(b.getDensity());b=qq(q,f.photos,k,k,b);b=new v0(new w0(h,c,d,e,f.tags,b));break a;default:throw Error("He");}}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 KSa=function(a){a=a.header;return Iq('<div peoplekit-id="'+Jq("aittld")+'">'+(0<AU(a).length?'<div class="'+Jq("peoplekitUiResultlistHeader")+'">'+zU(a)+"</div>":"")+'<div peoplekit-id="'+Jq("tjneg")+'"></div></div>')},q$b=function(a){a=a.name;return Iq('<div class="'+Jq("peoplekitUiResultlistGroup")+'">'+zU(a)+"</div>")};
var Oq=function(a,b,c){this.delegate=a;this.list=b;this.grouping=c;this.renderedGroups=new Set};Oq.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=ap(q$b,{name:d}),this.list.append(d));this.renderedGroups.add(c)}this.delegate.append([b])}};Oq.prototype.clear=function(){this.renderedGroups.clear();this.delegate.clear()};
Oq.prototype.reset=function(a){this.grouping.reset(a);this.renderedGroups.clear();this.delegate.reset(a)};Oq.prototype.getNavigatable=function(){return this.delegate.getNavigatable()};
var Pq=function(a,b){this.delegate=a;this.interactions=b};Pq.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)};Pq.prototype.clear=function(){this.delegate.clear()};Pq.prototype.reset=function(a){this.delegate.reset(a)};Pq.prototype.getNavigatable=function(){return this.delegate.getNavigatable()};
var gr=function(a){this.label=a};gr.prototype.getGroupId=function(a){return a.getTargetList().some(function(b){return 2!==b.getDataSource()})?"non_directory":"directory"};gr.prototype.getGroupName=function(a){switch(a){case "directory":return this.label;case "non_directory":return"";default:return a}};gr.prototype.reset=function(){};
var hr=function(a){this.label=a};hr.prototype.getGroupId=function(a){return 7!==a.getResultType()?"suggestions":"non_suggestions"};hr.prototype.getGroupName=function(a){switch(a){case "suggestions":return this.label;case "non_suggestions":return"";default:return a}};hr.prototype.reset=function(){};
var r$b=function(a,b){this.ariaParent=a;this.delegate=b};g=r$b.prototype;g.update=function(){var a=this.getSpotlitItem();a?(a=a.getRoot(),aJ(this.ariaParent,a)):aJ(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 s$b=function(a){this.event=a;this.hasStoppedPropagationInternal=!1};s$b.prototype.stopPropagation=function(){this.event.stopPropagation();this.hasStoppedPropagationInternal=!0};s$b.prototype.preventDefault=function(){this.event.preventDefault()};
var t$b=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 aH(this)};g=t$b.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 s$b(d))});this.eventHandler.listen(this.input,"contextmenu",function(d){return c.onContextMenu(new s$b(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 u$b=new cD;u$b.altKey=!0;u$b.keyCode=39;
var v$b=function(){WC.call(this)};U(v$b,WC);v$b.prototype.init=function(){};new v$b;
var zTa=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 r$b(this.navigationInput,this.resultList.getNavigatable());this.navigatable.setSecondaryEventTargets([this]);this.navigationEventHandler=new t$b({getPrevKeyCode:function(){return 38},getNextKeyCode:function(){return 40}});this.eventHandler=new aH(this);nq(this.root,0)};g=zTa.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");nq(this.root,1);this.count=0;if(a){var f=w$b(this.health);f.start();this.session.search(a,function(k){e.update(k,d,f,!0)})}else if(c){var h=w$b(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();nq(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(),this.root.classList.remove("noResults")):a.getIsLastCallback()&&this.root.classList.add("noResults");a.getIsLastCallback()?nq(this.root,0===a.getCode()?2:3,a.getCode()):nq(this.root,4);(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 wTa=function(){var a=Iq,b='<div class="'+Jq("peoplekitComponentsAutocompleteInlineContainer")+'" peoplekit-id="'+Jq("yDHfq")+'"><div class="'+Jq("peoplekitComponentsAutocompleteInlineListContainer")+'">';var c=BU('<div peoplekit-id="'+Jq("tjneg")+'"></div>');c=Iq('<div tabindex="-1" class="'+Jq("peoplekitComponentsScrollboxScrollbar")+'">'+zU(c)+"</div>");b=b+c+'</div><div class="'+Jq("peoplekitComponentsAutocompleteInlineCircularProgress")+'">';c='<div class="'+Jq("peoplekitComponentsCircularprogressCircularProgress")+
(" "+Jq("isActive"))+'" data-loadingmessage="'+Jq("Loading...")+'" data-active="true" dir="ltr"><div class="'+Jq("peoplekitComponentsCircularprogressMessageContainer")+'" aria-live="polite" jsname="'+Jq("vyyg5")+'">'+zU("Loading...")+'</div><div class="'+Jq("peoplekitComponentsCircularprogressCircularProgressContainer")+'"><div class="'+Jq("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Jq("peoplekitComponentsCircularprogressColorOne")+" "+Jq("exportColorOne")+'"><div class="'+Jq("peoplekitComponentsCircularprogressCircleClipper")+
" "+Jq("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Jq("peoplekitComponentsCircularprogressCircle")+" "+Jq("exportCircle")+'"></div></div><div class="'+Jq("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+Jq("peoplekitComponentsCircularprogressCircle")+" "+Jq("exportCircle")+'"></div></div><div class="'+Jq("peoplekitComponentsCircularprogressCircleClipper")+" "+Jq("peoplekitComponentsCircularprogressRight")+'"><div class="'+Jq("peoplekitComponentsCircularprogressCircle")+
" "+Jq("exportCircle")+'"></div></div></div><div class="'+Jq("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Jq("peoplekitComponentsCircularprogressColorTwo")+" "+Jq("exportColorTwo")+'"><div class="'+Jq("peoplekitComponentsCircularprogressCircleClipper")+" "+Jq("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Jq("peoplekitComponentsCircularprogressCircle")+" "+Jq("exportCircle")+'"></div></div><div class="'+Jq("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+
Jq("peoplekitComponentsCircularprogressCircle")+" "+Jq("exportCircle")+'"></div></div><div class="'+Jq("peoplekitComponentsCircularprogressCircleClipper")+" "+Jq("peoplekitComponentsCircularprogressRight")+'"><div class="'+Jq("peoplekitComponentsCircularprogressCircle")+" "+Jq("exportCircle")+'"></div></div></div><div class="'+Jq("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Jq("peoplekitComponentsCircularprogressColorThree")+" "+Jq("exportColorThree")+'"><div class="'+Jq("peoplekitComponentsCircularprogressCircleClipper")+
" "+Jq("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Jq("peoplekitComponentsCircularprogressCircle")+" "+Jq("exportCircle")+'"></div></div><div class="'+Jq("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+Jq("peoplekitComponentsCircularprogressCircle")+" "+Jq("exportCircle")+'"></div></div><div class="'+Jq("peoplekitComponentsCircularprogressCircleClipper")+" "+Jq("peoplekitComponentsCircularprogressRight")+'"><div class="'+Jq("peoplekitComponentsCircularprogressCircle")+
" "+Jq("exportCircle")+'"></div></div></div><div class="'+Jq("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Jq("peoplekitComponentsCircularprogressColorFour")+" "+Jq("exportColorFour")+'"><div class="'+Jq("peoplekitComponentsCircularprogressCircleClipper")+" "+Jq("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Jq("peoplekitComponentsCircularprogressCircle")+" "+Jq("exportCircle")+'"></div></div><div class="'+Jq("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+
Jq("peoplekitComponentsCircularprogressCircle")+" "+Jq("exportCircle")+'"></div></div><div class="'+Jq("peoplekitComponentsCircularprogressCircleClipper")+" "+Jq("peoplekitComponentsCircularprogressRight")+'"><div class="'+Jq("peoplekitComponentsCircularprogressCircle")+" "+Jq("exportCircle")+'"></div></div></div></div></div>';c=Iq(c);return a(b+c+"</div></div>")},xTa=function(){return Iq('<div class="'+Jq("peoplekitComponentsAutocompleteInlineNoResultsContainer")+'"></div>')};
var yTa=function(a){a=a||{};var b=a.primaryMessage,c=a.contextMessage,d=a.learnMoreUrl,e=a.urlText;a=a.jsname;a='<div class="'+Jq("peoplekitComponentsNoResultsMessageNoResultsMessage")+'"'+(a?' jsname="'+Jq(a)+'"':"")+'><p class="'+Jq("peoplekitComponentsNoResultsMessageHeader")+'">';b=zU(b?b:"No results");a=a+b+"</p>";if(jWb(c)||jWb(d))a+='<p class="'+Jq("peoplekitComponentsNoResultsMessageExplanation")+'">',c&&(c=zU(c),a=a+c+(d?" ":"")),d&&(a+='<a jsname="'+Jq("viORvd")+'" class="'+Jq("peoplekitComponentsNoResultsMessageLearnMoreLink")+
'" target="_blank" href="'+Jq(yWb(d))+'">',d=zU(e?e:"Learn more"),a+=d,a+="</a>"),a+="</p>";a+="</div>";return Iq(a)};
var x$b=Object.freeze(new Tq(NaN,NaN)),y$b=Object.freeze(new KU(NaN,NaN,NaN,NaN)),Xq=function(a,b,c){this.root=a;this.requestHide=b;this.lastPosition=x$b;this.lastBounds=y$b;this.anchorUpdateTimer=new ID(15);this.options=Object.assign({},{moveAboveAnchorIfOffscreen:!0},c);this.eventHandler=new aH(this);this.attach()};Xq.prototype.attach=function(){var a=this;this.eventHandler.listen(this.anchorUpdateTimer,"tick",function(){return z$b(a)})};Xq.prototype.isShown=function(){return"none"!=this.root.style.display};
Xq.prototype.dispose=function(){this.hide();this.eventHandler.removeAll()};Xq.prototype.show=function(a){this.anchor=a;this.lastPosition=x$b;this.lastBounds=y$b;OU(this.root,!0);z$b(this);this.anchorUpdateTimer.start()};
var z$b=function(a){var b;if((b=a.anchor)&&!(b=!a.lastPosition.equals(NU(a.anchor)))){b=a.lastBounds;var c=Qq(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=Qq(c),(c=Rq(c))&&b.intersection(SSa(c))){var d=a.anchor;b=a.root;c=a.options.moveAboveAnchorIfOffscreen;Wq(b,"","");b.style.height=MU("",!0);var e=VSa(d,9,b,8,c);d=VSa(d,8,b,9,c);e.height>=d.height||!c?YSa(b,e):YSa(b,d);a.lastPosition=NU(a.anchor);a.lastBounds=Qq(a.root)}else a.requestHide()};
Xq.prototype.hide=function(){this.root.style.cssText="";OU(this.root,!1);this.anchorUpdateTimer.stop();this.lastPosition=x$b;this.lastBounds=y$b};
var ATa=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=ZSa(this.root,function(){f.hide()},{moveAboveAnchorIfOffscreen:this.config.getMoveAutocompleteAboveAnchorIfOffscreen()});this.inlineAutocomplete.getNavigatable().setSecondaryEventTargets([this.inlineAutocomplete,this]);this.eventHandler=new aH(this);this.attach()};g=ATa.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;k$b(this.selectionsState,function(){return a.onSelect()});A$b(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("Ae`"+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("Ae`"+c);}}this.root.style.width=MU(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("Ae`"+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 vTa=function(){return Iq('<div class="'+Jq("peoplekitComponentsAutocompletePopupContainer")+'" peoplekit-id="'+Jq("noeiCf")+'" style="display: none;"></div>')};
var B$b=function(a){this.resolveComponents=a;this.batches=new Map};B$b.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 $Sa=function(a,b){this.service=a;this.resolveComponents=b};
$Sa.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){C$b(b,f.values,function(h,k,q){q.updateWaldo(k,h)})});break;case 2:c=c.withHubAvailabilityDot(function(f){C$b(b,f.values,function(h,k,q){q.updateHubAvailabilityDot(k,h)})})}c.execute()}}};
var C$b=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 D$b=new Set([1,3,20]),E$b=function(a){var b=this;this.idToComponent=new Map;this.updater=aTa(a,function(c){return b.resolveComponents(c)})};g=E$b.prototype;
g.append=function(a){var b=a.filter(function(f){return f.getAllIds().some(function(h){return D$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$1708:b.$jscomp$loop$prop$component$1708},c=a.next()){b.$jscomp$loop$prop$component$1708=c.value;c=r(b.$jscomp$loop$prop$component$1708.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$1708}}(b)))}}};
g.resolveComponents=function(a){return this.idToComponent.get(String(a))||[]};g.refresh=function(a){var b=this,c=new B$b(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 x0=function(){};x0.prototype.append=function(){};x0.prototype.remove=function(){};x0.prototype.refresh=function(){};x0.prototype.clear=function(){};
var uTa=function(a){this.peopleIntelligence=a};uTa.prototype.create=function(){return this.peopleIntelligence?new E$b(this.peopleIntelligence):new x0};
var pTa=new Map([[0,"peoplekitThemeLight"],[1,"peoplekitThemeDark"]]);
var F$b=function(){this.label="";this.type=0};g=F$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 G$b=function(){this.decorationConfigRequest=function(){};this.manuallyDisableResultCallback=function(){return!1}};g=G$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 H$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 F$b;this.result=new G$b;this.appearance=new pq};g=H$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 I$b=function(a){this.environmentConfig=a;this.autocomplete=new H$b(a)};g=I$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 J$b=Object.freeze(new Map([[5,1]]));
var y0=function(){this.entryPoint_=0};y0.prototype.getPeoplekitEntryPoint=function(){return this.entryPoint_};y0.prototype.setPeoplekitEntryPoint=function(a){this.entryPoint_=a;return this};y0.prototype.serialize=function(){return[this.entryPoint_].toString()};var K$b=Object.freeze(new y0);
var z0=function(){this.originator_=0};z0.prototype.setOriginator=function(a){this.originator_=a;return this};z0.prototype.getOriginator=function(){return this.originator_};
var qTa=function(a,b,c){var d=this;this.reporter=a.getReporter((new y0).setPeoplekitEntryPoint(c));k$b(b,function(e,f,h){d.select(e,h)});j$b(b,function(e,f,h){d.deselect(e,h)});L$b(b,function(e,f,h,k){d.replace(e,k)})};g=qTa.prototype;g.display=function(a){this.reporter.reportDisplay(bTa(a.getTargetList()))};g.select=function(a,b){if(!a.isPlaceholder())switch(b){case 1:case 12:case 5:this.reporter.reportSelect(Yq([a]),(new z0).setOriginator(J$b.get(b)||0));break;case 6:this.reporter.reportExternalSelect(Yq([a]))}};
g.deselect=function(a,b){if(!a.isPlaceholder())switch(b){case 7:case 8:case 1:this.reporter.reportDeselect(Yq([a]))}};g.dismiss=function(a){this.reporter.reportDismiss(Yq(a))};g.save=function(a){this.reporter.reportSave(Yq(a))};g.send=function(a){this.reporter.reportSend(Yq(a))};g.replace=function(a,b){switch(b){case 5:case 6:this.select(a,b)}};
var M$b=function(){this.isBatchingInternal=!1;this.timerId=this.lastBatchTime=0};M$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=JD(function(){b.isBatchingInternal=!1;a()},100<d?0:100)}};M$b.prototype.cancel=function(){KD(this.timerId);this.isBatchingInternal=!1};
var HTa=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 M$b;k$b(this.selectionsState,function(){N$b(f)})};g=HTa.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(Yq(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 O$b=function(a,b){a.selectionChangedListeners.push(b)},N$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 A0=function(a){Z.call(this,a)};U(A0,Z);A0.prototype.getVersion=function(){return X(this,1,1)};A0.prototype.setVersion=function(a){return l(this,1,a)};A0.prototype.toObject=function(){return P$b(this)};var P$b=function(a){if(null!=a)return{version:X(a,1,1)}};
var Q$b=function(a){Z.call(this,a)};U(Q$b,Z);g=Q$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,TT,2)};g.setSocialClient=function(a){return Bb(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 dj(this,4)};g.getComponentFlow=function(){return p(this,7)};g.setComponentFlow=function(a){return l(this,7,a)};g.toObject=function(){return R$b(this)};var R$b=function(a){if(null!=a)return{clientId:n(p(a,1)),entryPoint:n(p(a,5)),socialClient:eTb(a.getSocialClient()),versionName:n(p(a,3)),baselineCl:n(p(a,4)),componentFlow:n(p(a,7)),androidClientInfo:P$b(m(a,A0,6))}};
var S$b=function(a){Z.call(this,a)};U(S$b,Z);S$b.prototype.toObject=function(){return T$b(this)};var T$b=function(a){if(null!=a)return{imageType:n(p(a,1)),imageDataCached:n(p(a,2))}};
var U$b=function(a){Z.call(this,a)};U(U$b,Z);U$b.prototype.toObject=function(){return V$b(this)};var V$b=function(a){if(null!=a)return{avatarMetadata:T$b(m(a,S$b,1))}};
var W$b=function(a){Z.call(this,a)};U(W$b,Z);g=W$b.prototype;g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return dj(this,1)};g.getCause=function(){return p(this,2)};g.toObject=function(){return X$b(this)};var X$b=function(a){if(null!=a)return{label:n(p(a,1)),cause:n(p(a,2))}};
var Y$b=function(a){Z.call(this,a)};U(Y$b,Z);g=Y$b.prototype;g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return dj(this,1)};g.getValue=function(){return ej(this,2,1)};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return dj(this,2)};g.toObject=function(){return Z$b(this)};var Z$b=function(a){if(null!=a)return{label:n(p(a,1)),value:ej(a,2,1)}};
var $$b=function(a){Z.call(this,a)};U($$b,Z);g=$$b.prototype;g.setLatencyUsec=function(a){l(this,2,a)};g.getQueryLength=function(){return p(this,3)};g.setQueryLength=function(a){return l(this,3,a)};g.hasQueryLength=function(){return dj(this,3)};g.toObject=function(){return aac(this)};
var aac=function(a){if(null!=a)return{resultCount:n(p(a,1)),latencyUsec:n(p(a,2)),queryLength:n(p(a,3)),isContactsPermissionsGranted:n(To(a,4)),isShowDeviceContactsDisplayed:n(To(a,5)),memoryAllocatedDelta:n(p(a,6)),inAppResultCount:n(p(a,7))}};
var bac=function(a){Z.call(this,a)};U(bac,Z);g=bac.prototype;g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return dj(this,1)};g.getCause=function(){return p(this,2)};g.toObject=function(){return cac(this)};var cac=function(a){if(null!=a)return{label:n(p(a,1)),cause:n(p(a,2))}};
var dac=function(a){Z.call(this,a)};U(dac,Z);g=dac.prototype;g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return dj(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 eac(this)};var eac=function(a){if(null!=a)return{label:n(p(a,1)),latencyUsec:n(p(a,2)),cacheStatus:n(p(a,3))}};
var B0=function(a){Z.call(this,a)};U(B0,Z);B0.prototype.getInterfaceType=function(){return p(this,1)};B0.prototype.setInterfaceType=function(a){return l(this,1,a)};B0.prototype.toObject=function(){return fac(this)};var fac=function(a){if(null!=a)return{interfaceType:n(p(a,1)),dataSourceType:n(p(a,2)),entryIndex:n(p(a,3))}};
var gac=function(a){Z.call(this,a)};U(gac,Z);gac.prototype.toObject=function(){return hac(this)};var hac=function(a){if(null!=a)return{suggestionsLoaded:n(To(a,1)),closeType:n(p(a,2))}};
var C0=function(a){Z.call(this,a)};U(C0,Z);C0.prototype.getEventType=function(){return p(this,1)};C0.prototype.setEventType=function(a){return l(this,1,a)};C0.prototype.setLatencyUsec=function(a){l(this,2,a)};C0.prototype.toObject=function(){return iac(this)};var iac=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:hac(m(a,gac,7))}};
var jac=function(a){Z.call(this,a)};U(jac,Z);g=jac.prototype;g.getCount=function(){return m(this,Y$b,3)};g.setCount=function(a){Bb(this,3,a)};g.getLatency=function(){return m(this,dac,4)};g.setLatency=function(a){return Bb(this,4,a)};g.getError=function(){return m(this,bac,5)};g.setError=function(a){Bb(this,5,a)};g.hasError=function(){return lj(this,5)};g.toObject=function(){return kac(this)};
var kac=function(a){if(null!=a)return{entryType:n(p(a,1)),sharedDimension:fac(m(a,B0,2)),count:Z$b(a.getCount()),latency:eac(a.getLatency()),peoplekitError:X$b(m(a,W$b,8)),error:cac(a.getError()),dataDisplay:aac(m(a,$$b,6)),userEvent:iac(m(a,C0,7))}};
var D0=function(a){Z.call(this,a,-1,lac)};U(D0,Z);D0.prototype.setElementIndex=function(a){l(this,2,a)};D0.prototype.setCardinalDirection=function(a){l(this,7,a)};var lac=[3];D0.prototype.toObject=function(){return mac(this)};var mac=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 nac=function(a){Z.call(this,a)};U(nac,Z);nac.prototype.toObject=function(){return oac(this)};var oac=function(a){if(null!=a)return{ancestryVisualElement:mac(m(a,D0,1)),intentClassName:n(p(a,2)),firstInFlow:n(To(a,3)),userInterfaceStyle:X(a,4,0)}};
var pac=function(a){Z.call(this,a)};U(pac,Z);g=pac.prototype;g.getClientInterface=function(){return m(this,Q$b,3)};g.setClientInterface=function(a){return Bb(this,3,a)};g.getMetadata=function(){return m(this,U$b,4)};g.setMetadata=function(a){Bb(this,4,a)};g.toObject=function(){var a=null!=this?{visualElementEntry:oac(m(this,nac,1)),metricsDataEntry:kac(m(this,jac,2)),clientInterface:R$b(this.getClientInterface()),metadata:V$b(this.getMetadata())}:void 0;return a};
var rTa=function(a){this.logContext=bs(cs(new ds,"PeopleKit").setLogSource(624).setApplication(a.getSocialApplication()).setEnvironment(0).setVersion("1.0").setBaselineCl(447859179).setEnableClearcut(a.getEnableClearcut()),Bq.getExperimentIds());this.clientId=a.getClientId();this.componentFlow=a.getComponentFlow()};g=rTa.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 pac).setClientInterface((new Q$b).setClientId(this.clientId).setSocialClient(a.getSocialClient()).setVersionName(this.getLogContext().getVersion()).setBaselineCl(this.getLogContext().getBaselineCl()).setComponentFlow(this.componentFlow));return Bb(a,2,b)};g.createErrorMetric=function(){throw Error("Va");};
var qac=function(a,b){this.count=0;this.metrics=a;this.label="total";a=new jac;a=l(a,1,4);var c=new B0;b=l(c,2,2).setInterfaceType(b);this.dataEntry=Bb(a,2,b).setLatency((new dac).setLabel(8));this.state=new kU(this.dataEntry)};qac.prototype.start=function(){this.count=0;this.metrics.start(this.state,this.label)};
qac.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,B0,2))&&l(d,3,this.count);this.metrics.latency(this.state);++this.count};
var tTa=function(a,b){this.metrics=a;this.userInterfaceType=b};
var sTa=function(a){this.trackers=a},w$b=function(a){a=a.trackers;return new qac(a.metrics,a.userInterfaceType)};
var fr=function(){this.selectionCallbacks=[];this.deselectionCallbacks=[];this.selectionReplacedCallbacks=[];this.selectionAttemptedCallbacks=[];this.selectionsState=[]};
fr.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 Zq(a,b,c,this.selectionAttemptedCallbacks),!1;0<=b?(this.selectionsState.splice(b,0,a),Zq(a,b,c,this.selectionCallbacks)):(this.selectionsState.push(a),Zq(a,this.selectionsState.length-1,c,this.selectionCallbacks));return!0};
fr.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),Zq(a,d,b,this.deselectionCallbacks))};fr.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 k$b=function(a,b){a.selectionCallbacks.push(b)},j$b=function(a,b){a.deselectionCallbacks.push(b)},L$b=function(a,b){a.selectionReplacedCallbacks.push(b)},A$b=function(a,b){a.selectionAttemptedCallbacks.push(b)};g=fr.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;cTa(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 Zq(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 lr=function(){};lr.prototype.start=function(){};lr.prototype.stop=function(){};
var rac=function(a){this.userAction=a;this.cardinalDirection=void 0};
var kr=function(a){this.visualElementRoot=a;this.syntheticVisualElements=new Map;a=Lq(this.visualElementRoot);this.syntheticRoot=dTa(a);this.syntheticVisualElements.set(a.id,this.syntheticRoot)};
kr.prototype.insert=function(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=Lq(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=Lq(b[c]);this.syntheticVisualElements.has(e.id)||(d=dTa(e),this.syntheticVisualElements.set(e.id,d),e=Lq(b[c-1]),this.syntheticVisualElements.get(e.id).appendChild(d))}}}};
kr.prototype.remove=function(a){a=r(a);for(var b=a.next();!b.done;b=a.next())if(b=Lq(b.value)){var c=this.syntheticVisualElements.get(b.id);this.syntheticVisualElements.delete(b.id);c&&c.parentElement&&c.parentElement.removeChild(c)}};kr.prototype.getRoot=function(){return this.syntheticRoot};kr.prototype.getElement=function(a){return this.syntheticVisualElements.get(a)};
var ETa=function(a,b){this.syntheticTree=a;this.tracker=b;this.delayedImpression=new cXb(this.impress,15,this)};ETa.prototype.impress=function(){var a=this.tracker,b=this.syntheticTree.getRoot();b=sac(a.traverser_,b);tac(a,b,new KU(0,0,0,0))};ETa.prototype.dispose=function(){this.delayedImpression.dispose()};
var FTa=function(a,b){this.root=a;this.visualElementHandler=b;this.eventHandler=new aH(this)};
FTa.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=eTa(c.removedNodes);d.length&&a.visualElementHandler.syntheticTree.remove(d);c=eTa(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,
f$b,function(b){b.stopPropagation();var c=a.visualElementHandler,d=b.type;if(b=Lq(b.target))if(b=c.syntheticTree.getElement(b.id),d=g$b.get(d),b&&d&&(c=c.tracker,d=new rac(d),(b=E0(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])}))};FTa.prototype.dispose=function(){var a;null==(a=this.mutationObserver)||a.disconnect();this.eventHandler.removeAll();this.visualElementHandler.dispose()};
var GTa=function(a){this.visualElementObserver=a};GTa.prototype.start=function(){this.visualElementObserver.observe()};GTa.prototype.stop=function(){this.visualElementObserver.dispose()};
var F0={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"}},G0={TRACK:{string:"track",googRequiredXid:"u014N"},INDEX:{string:"index",googRequiredXid:"cQYSPc"},MUTABLE:{string:"mutable",googRequiredXid:"dYFj7e"},TEST_CODE:{string:"tc",
googRequiredXid:"DM6Eze"}},uac=G0.TRACK.string,vac=G0.INDEX.string,wac=G0.MUTABLE.string,xac=G0.TEST_CODE.string,yac=F0.IMPRESSION.string,fTa=jTa(F0),zac=new Map,Aac;for(Aac in F0)zac.set(F0[Aac].googRequiredXid,F0[Aac].string);var hTa=jTa(G0);
var H0=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_=[]},Bac=function(a,b){return b?a.tracks_.has(a.maybeXidEventLabel_(b)):0!=a.tracks_.size};g=H0.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 Cac=function(a,b){for(var c=0;c<a.metadataHandlers_.length;++c)a.metadataHandlers_[c](b)};H0.prototype.maybeXidEventLabel_=function(a){return this.xidTagComponents_?gTa(a):a};H0.prototype.maybeXidPartLabel_=function(a){return this.xidTagComponents_?iTa(a):a};
var Dac=function(a){H0.call(this,a)};U(Dac,H0);
var I0=function(a){Z.call(this,a)};U(I0,Z);I0.prototype.toObject=function(){return Eac(void 0,this)};var Eac=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}},Fac=[I0,1,$ib,2,cjb,3,cjb];
var J0=function(a){Z.call(this,a)};U(J0,Z);J0.prototype.toObject=function(){return K0(void 0,this)};var K0=function(a,b){if(null!=b){var c={base:Eac(a,m(b,I0,1)),clientCounter:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}},Gac=[J0,1,ejb,Fac,2,$ib];
var L0=function(a){Z.call(this,a,-1,Hac)};U(L0,Z);L0.prototype.getOffset=function(){return ej(this,2,0)};L0.prototype.setOffset=function(a){l(this,2,a)};var Hac=[1];L0.prototype.toObject=function(){return Iac(void 0,this)};var Iac=function(a,b){if(null!=b){var c={baseList:n(jb(b,1)),offset:ej(b,2,0)};a&&(c.$jspbMessageInstance=b);return c}},Jac=[L0,1,ajb,2,Hu];
var M0=function(a){Z.call(this,a)};U(M0,Z);M0.prototype.setVeIndex=function(a){l(this,1,a)};var Kac=function(a,b){l(a,2,b)};M0.prototype.setElementIndex=function(a){l(this,5,a)};M0.prototype.getResultIndex=function(){return ej(this,6,-1)};M0.prototype.setResultIndex=function(a){l(this,6,a)};M0.prototype.toObject=function(){return Lac(void 0,this)};
var Lac=function(a,b){if(null!=b){var c={veIndex:ej(b,1,-1),nonArchivalVeIndex:ej(b,11,-1),veOffsetIdentifier:Iac(a,m(b,L0,15)),veType:n(p(b,2)),odelaySeLinker:n(p(b,8)),elementIndex:ej(b,5,-1),resultIndex:ej(b,6,-1),pageStart:n(p(b,7)),resultGroupElementIndex:ej(b,9,-1),doNotLogUrl:W(b,10,!1),resultFprint:n(p(b,12)),veEventId:K0(a,m(b,J0,13)),youtubeVeCounter:ej(b,14,-1)};a&&(c.$jspbMessageInstance=b);return c}},Mac=[M0,1,Hu,11,Hu,15,ejb,Jac,2,Hu,8,Hu,5,Hu,6,Hu,7,Hu,9,Hu,10,djb,12,bjb,13,ejb,Gac,
14,Hu];
var N0=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};N0.prototype.getTag=function(){return this.veTag_};N0.prototype.getElement=function(){return this.el_};var Oac=function(a){var b=Nac++;a.traversalOrder_=b};N0.prototype.setParent=function(a){this.parent_=a};N0.prototype.getParent=function(){return this.parent_};
var BTa=function(a){Z.call(this,a)};U(BTa,Z);g=BTa.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 dj(this,5)};g.getMetadata=function(){return m(this,U$b,6)};g.setMetadata=function(a){Bb(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:V$b(this.getMetadata())}:void 0;return a};
var DTa=function(a){this.context_=a};DTa.prototype.createNewTag=function(a){return new Dac(a)};DTa.prototype.addEventMetadata=function(a){xE(a,this.context_.serialize())};
var Pac=function(){this.client_info=this.global_metadata=this.ve_metadata=void 0;this.testCodes=[]};
var O0=function(){};O0.prototype.impressionEvent=function(){return[]};O0.prototype.interactionEvent=function(){return[]};O0.prototype.visibilityEvent=function(){return[]};
var Q0=function(){if(!P0){var a=P0=new I0,b=1E3*Date.now();l(a,1,b);l(P0,2,0);l(P0,3,0)}a=new J0;a=Bb(a,1,P0);b=++Qac;return l(a,2,b)},Qac=0,P0=void 0;
var R0=function(a){Z.call(this,a)};U(R0,Z);R0.prototype.toObject=function(){return Rac(this)};var Rac=function(a){if(null!=a)return{rootEventId:K0(void 0,m(a,J0,1))}};
var S0=function(a){Z.call(this,a)};U(S0,Z);S0.prototype.getEvent=function(){return yl(this,I0,1,Sac)};S0.prototype.setVed=function(a){return co(this,5,T0,a)};var Sac=[1,3,4],T0=[2,5];S0.prototype.toObject=function(){return U0(void 0,this)};var U0=function(a,b){if(null!=b){var c={event:Eac(a,b.getEvent()),clientEvent:K0(a,yl(b,J0,3,Sac)),ei:n(Rr(b,4,Sac)),rootVe:Lac(a,yl(b,M0,2,T0)),ved:n(Rr(b,5,T0))};a&&(c.$jspbMessageInstance=b);return c}};
var V0=function(a){Z.call(this,a)};U(V0,Z);g=V0.prototype;g.getTarget=function(){return m(this,S0,1)};g.setTarget=function(a){return Bb(this,1,a)};g.getType=function(){return X(this,2,0)};g.setType=function(a){return l(this,2,a)};g.hasType=function(){return dj(this,2)};g.toObject=function(){return Tac(void 0,this)};
var Tac=function(a,b){if(null!=b){var c={target:U0(a,b.getTarget()),type:X(b,2,0),cloneTree:U0(a,m(b,S0,3)),sourceTree:U0(a,m(b,S0,5)),graftTimeUsec:n(p(b,4)),dedupe:W(b,6,!1)};a&&(c.$jspbMessageInstance=b);return c}};
var W0=function(a){Z.call(this,a,-1,Uac)};U(W0,Z);var Uac=[1];W0.prototype.toObject=function(){return Vac(this)};var Vac=function(a){if(null!=a)return{graftList:Cb(rb(a,V0,1),Tac)}};
var X0=function(a){Z.call(this,a,1)};U(X0,Z);var Wac={};X0.prototype.toObject=function(){return Xac(this)};var Xac=function(a){if(null!=a){var b={};Db(a,b,Wac);return b}};
var Y0=function(a){Z.call(this,a,-1,Yac)};U(Y0,Z);Y0.prototype.getOffset=function(){return ej(this,2,0)};Y0.prototype.setOffset=function(a){l(this,2,a)};var Yac=[1];Y0.prototype.toObject=function(){return Zac(void 0,this)};var Zac=function(a,b){if(null!=b){var c={identifierBaseList:n(jb(b,1)),offset:ej(b,2,0)};a&&(c.$jspbMessageInstance=b);return c}};
var Z0=function(a){Z.call(this,a)};U(Z0,Z);Z0.prototype.getEventId=function(){return yl(this,I0,1,$ac)};Z0.prototype.setEventId=function(a){yu(this,1,$ac,a)};var $ac=[1,2],abc=[3,6];Z0.prototype.toObject=function(){return bbc(void 0,this)};var bbc=function(a,b){if(null!=b){var c={eventId:Eac(a,b.getEventId()),clientEventId:K0(a,yl(b,J0,2,$ac)),featureIndex:ej(b,qb(b,abc,3),-1),featureOffsetIdentifier:Zac(a,yl(b,Y0,6,abc)),featureTreeRefLabel:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}};
var cbc=function(a){Z.call(this,a)};U(cbc,Z);cbc.prototype.toObject=function(){return dbc(void 0,this)};var dbc=function(a,b){if(null!=b){var c={reference:U0(a,m(b,S0,1))};a&&(c.$jspbMessageInstance=b);return c}};
var a1=function(a){Z.call(this,a,233,ebc)};U(a1,Z);a1.prototype.setUiType=function(a){return l(this,1,a)};a1.prototype.setElementIndex=function(a){l(this,3,a)};var fbc=function(a,b){jl(a,4,b)};a1.prototype.getResultIndex=function(){return p(this,7)};a1.prototype.setResultIndex=function(a){l(this,7,a)};a1.prototype.setVisible=function(a){return l(this,6,a)};var gbc={},ebc=[4];a1.prototype.toObject=function(){return hbc(void 0,this)};
var hbc=function(a,b){if(null!=b){var c={uiType:n(p(b,1)),elementIndex:ej(b,3,-1),containsElementsList:n(jb(b,4)),targetUrl:n(p(b,5)),resultIndex:n(p(b,7)),featureTreeRef:bbc(a,m(b,Z0,11)),visible:X(b,6,0),language:n(p(b,17)),adImpressionIndex:ej(b,149,-1),dataElement:dbc(a,m(b,cbc,232))};Db(b,c,gbc,a);a&&(c.$jspbMessageInstance=b);return c}};
var b1=function(a){Z.call(this,a,17,ibc)};U(b1,Z);g=b1.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 ej(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 jbc=function(a,b){Ab(a,14,b)},kbc={},ibc=[14];b1.prototype.toObject=function(){return lbc(this)};
var lbc=function(a){if(null!=a){var b={clickTrackingCgi:Lac(void 0,m(a,M0,16)),ved:n(p(a,11)),uiType:ej(a,1,-1),veIndex:ej(a,2,-1),primaryUserAction:n(p(a,3)),cardinalDirection:n(p(a,4)),toggleState:n(p(a,5)),interactionContext:ej(a,6,-1),resultIndex:ej(a,7,-1),elementIndex:ej(a,8,-1),imageUrl:n(p(a,9)),imageReferrerUrl:n(p(a,10)),thumbnailId:n(p(a,12)),referrerId:n(p(a,13)),ancestryList:Cb(rb(a,a1,14),hbc),clientInteractionMetadata:Xac(m(a,X0,15))};Db(a,b,kbc);return b}};
var c1=function(a){Z.call(this,a,-1,mbc)};U(c1,Z);c1.prototype.getEventId=function(){return m(this,J0,1)};c1.prototype.setEventId=function(a){Bb(this,1,a)};var mbc=[2];
c1.prototype.toObject=function(){var a=null!=this?{eventId:K0(void 0,this.getEventId()),visualElementsList:Cb(rb(this,a1,2),hbc),parentEventId:K0(void 0,m(this,J0,3)),ephemeralParentEventId:n(p(this,6)),snapshotParentEventId:K0(void 0,m(this,J0,8)),requestContext:lbc(m(this,b1,4)),graftType:n(p(this,5)),grafts:Vac(m(this,W0,7)),coreEventMetadata:Rac(m(this,R0,9))}:void 0;return a};
var nbc=function(){};nbc.prototype.createNewTag=function(a){return new H0(a)};nbc.prototype.addEventMetadata=function(){};
var d1=function(a){Z.call(this,a)};U(d1,Z);var obc=function(a){var b=Date.now().toString();l(a,1,b)};d1.prototype.toObject=function(){return pbc(void 0,this)};var pbc=function(a,b){if(null!=b){var c={clientWallClockTimestamp:n(p(b,1))};a&&(c.$jspbMessageInstance=b);return c}};
var e1=function(a){Z.call(this,a)};U(e1,Z);e1.prototype.getTimestamp=function(){return m(this,d1,1)};e1.prototype.setTimestamp=function(a){return Bb(this,1,a)};e1.prototype.hasTimestamp=function(){return lj(this,1)};e1.prototype.toObject=function(){return qbc(void 0,this)};var qbc=function(a,b){if(null!=b){var c={timestamp:pbc(a,b.getTimestamp())};a&&(c.$jspbMessageInstance=b);return c}};
var rbc=zb(126,{coreInteractionMetadata:0},e1,qbc);Wac[126]=rbc;
var sbc=zb(618,{coreVeMetadata:0},e1,qbc);gbc[618]=sbc;
var ir=function(a,b){this.enableAncestryLogging_=void 0===a?!0:a;this.enableBatching_=void 0===b?!1:b};U(ir,O0);ir.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=tbc(this,c,b);b=this.enableBatching_?ubc(this,d,b):vbc(this,d,b);return a.concat(b)};
ir.prototype.interactionEvent=function(a,b){var c=new wE,d=new c1,e=Q0();d.setEventId(e);e=new b1;a.serverVed_?e.setVed(a.serverVed_):e.setUiType(a.getTag().visualElementID_).setVeIndex(a.traversalOrder_);jbc(l(e,3,b.userAction),this.getAncestry_(a));b.cardinalDirection&&e.setCardinalDirection(b.cardinalDirection);a.getTag();this.setTimestamp(e);b=new R0;Bb(b,1,a.impressionEventID);Bb(d,3,a.impressionEventID);Bb(d,4,e);Bb(d,9,b);JSON.stringify(null,null,1);yE(c,d.serialize());return[c]};
ir.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||Bac(f.getTag(),"vis"))if(h=this.isVisible_(h,b),f.hidden&&h){h=new V0;h.setType(1);var v=wbc(f);h.setTarget(v);v=h;var y=Date.now();l(v,4,y);q.push(h);f.hidden=!1;f.neverShown=!1}else f.hidden||h||(h=new V0,h.setType(2),v=wbc(f),h.setTarget(v),v=h,y=Date.now(),l(v,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 W0,Ab(e,1,f),f=new c1,k=Q0(),q=new R0,Bb(q,1,b),f.setEventId(k),Bb(f,3,b),Bb(f,7,e),Bb(f,9,q),b=new wE,JSON.stringify(null,null,1),yE(b,f.serialize()),c.push(b));return c};
ir.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=eXb(b,new KU(a.left,a.top,a.width,a.height)))&&10<=b.width&&10<=b.height?!0:!1};
var tbc=function(a,b,c){for(var d=[],e={},f=b.length-1;0<=f;e={$jscomp$loop$prop$impressionEventID$1710:e.$jscomp$loop$prop$impressionEventID$1710,$jscomp$loop$prop$clientVeProto$1711:e.$jscomp$loop$prop$clientVeProto$1711,$jscomp$loop$prop$testCodes$1712:e.$jscomp$loop$prop$testCodes$1712},f--){e.$jscomp$loop$prop$clientVeProto$1711=new c1;e.$jscomp$loop$prop$testCodes$1712=[];e.$jscomp$loop$prop$impressionEventID$1710=Q0();e.$jscomp$loop$prop$clientVeProto$1711.setEventId(e.$jscomp$loop$prop$impressionEventID$1710);
var h=new R0;Bb(h,1,e.$jscomp$loop$prop$impressionEventID$1710);Bb(e.$jscomp$loop$prop$clientVeProto$1711,9,h);if(h=Rtb(window.location.href,"ved"))h=(new b1).setVed(h),Bb(e.$jscomp$loop$prop$clientVeProto$1711,4,h);b[f].forEach(function(k){return function(q,v){v.impressionEventID=k.$jscomp$loop$prop$impressionEventID$1710;v.rootImpressionEventID=k.$jscomp$loop$prop$impressionEventID$1710;var y=xbc(v);q.length&&fbc(y,q);q=v.getElement();this.isVisible_(q,c)?(v.neverShown=!1,v.hidden=!1):y.setVisible(1);
this.setTimestamp(y);zu(k.$jscomp$loop$prop$clientVeProto$1711,2,a1,y);k.$jscomp$loop$prop$testCodes$1712=k.$jscomp$loop$prop$testCodes$1712.concat(v.getTag().testCodes_)}}(e),a);h=new wE;JSON.stringify(null,null,1);yE(h,e.$jscomp$loop$prop$clientVeProto$1711.serialize());jl(h,20,e.$jscomp$loop$prop$testCodes$1712);d.push(h)}return d},ubc=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(v,
y){var E=0,I=[],N=new c1,L=[],T=Q0();N.setEventId(T);Bb(N,3,y);var Y=new R0;Bb(Y,1,y);Bb(N,9,Y);for(Y=0;Y<v.length;Y++)for(var ka=v[Y],ha=ka.keys(),ra=ha.next().value,Da=ka.get(ra),Ja={},Ba=0;Ba<Da.length;Ja={$jscomp$loop$prop$startingOffset$1714:Ja.$jscomp$loop$prop$startingOffset$1714,$jscomp$loop$prop$cloneTreeRootIndex$1715:Ja.$jscomp$loop$prop$cloneTreeRootIndex$1715},++Ba){var La=ra;Ja.$jscomp$loop$prop$cloneTreeRootIndex$1715=0;Ja.$jscomp$loop$prop$startingOffset$1714=Da[Ba];var hb=ka.size;
Ba!=Da.length-1&&(hb=Da[Ba+1]);for(var fb=Ja.$jscomp$loop$prop$startingOffset$1714;fb<hb;++fb){var Tb=ha.next().value;fb==Ja.$jscomp$loop$prop$startingOffset$1714&&(La=Tb,Ja.$jscomp$loop$prop$cloneTreeRootIndex$1715=E);Tb.impressionEventID=T;Tb.rootImpressionEventID=y;Tb.traversalOrder_=E;var va=ka.get(Tb),Ca=xbc(Tb);va.length&&fbc(Ca,va.map(function(Ia){return function(Xa){return Xa-Ia.$jscomp$loop$prop$startingOffset$1714+Ia.$jscomp$loop$prop$cloneTreeRootIndex$1715}}(Ja)));va=Tb.getElement();this.isVisible_(va,
c)?(Tb.neverShown=!1,Tb.hidden=!1):Ca.setVisible(1);this.setTimestamp(Ca);zu(N,2,a1,Ca);L=L.concat(Tb.getTag().testCodes_);E++}hb=new V0;hb.setType(3);fb=wbc(ra);hb.setTarget(fb);fb=new S0;Tb=new M0;Tb.setVeIndex(La.traversalOrder_);Kac(Tb,La.getTag().visualElementID_);yu(fb,2,T0,Tb);Bb(hb,3,fb);I.push(hb)}I.length&&(v=new W0,Ab(v,1,I),Bb(N,7,v));I=new wE;JSON.stringify(null,null,1);yE(I,N.serialize());jl(I,20,L);d.push(I)},a);return d},vbc=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),v={},y=0;y<q.length;v={$jscomp$loop$prop$startingOffset$1717:v.$jscomp$loop$prop$startingOffset$1717},++y){v.$jscomp$loop$prop$startingOffset$1717=q[y];var E=f.size;y!=q.length-1&&(E=q[y+1]);var I=new c1,N=[],L=Q0(),T=new R0;Bb(T,1,k.impressionEventID);I.setEventId(L);Bb(I,3,k.impressionEventID);l(I,5,3);Bb(I,9,T);T=new b1;k.serverVed_?T.setVed(k.serverVed_):T.setUiType(k.getTag().visualElementID_).setVeIndex(k.traversalOrder_);jbc(T,a.getAncestry_(k));
Bb(I,4,T);for(T=v.$jscomp$loop$prop$startingOffset$1717;T<E;++T){var Y=h.next().value;Y.impressionEventID=L;Y.rootImpressionEventID=k.rootImpressionEventID;void 0!=Y.traversalOrder_&&(Y.traversalOrder_-=v.$jscomp$loop$prop$startingOffset$1717);var ka=f.get(Y),ha=xbc(Y);ka.length&&fbc(ha,ka.map(function(ra){return function(Da){return Da-ra.$jscomp$loop$prop$startingOffset$1717}}(v)));ka=Y.getElement();a.isVisible_(ka,c)?(Y.neverShown=!1,Y.hidden=!1):ha.setVisible(1);a.setTimestamp(ha);zu(I,2,a1,ha);
N=N.concat(Y.getTag().testCodes_)}E=new wE;JSON.stringify(null,null,1);yE(E,I.serialize());jl(E,20,N);d.push(E)}return d};ir.prototype.getAncestry_=function(a){if(!this.enableAncestryLogging_)return[];for(var b=[],c=new Set;a&&!c.has(a);){var d=xbc(a);b.unshift(d);c.add(a);a=a.getParent()}return b};
var xbc=function(a){var b=(new a1).setUiType(a.getTag().visualElementID_);null!=a.getTag().getIndex()&&b.setElementIndex(a.getTag().getIndex());Cac(a.getTag(),b);return b},wbc=function(a){var b=new S0;if(a.serverVed_)b.setVed(a.serverVed_);else{var c=new M0;yu(b,3,Sac,a.impressionEventID);c.setVeIndex(a.traversalOrder_);Kac(c,a.getTag().visualElementID_);yu(b,2,T0,c)}return b};
ir.prototype.setTimestamp=function(a){if(a instanceof b1&&(!m(a,X0,15)||!m(a,X0,15).getExtension(rbc))){var b=new e1,c=new d1,d=m(a,X0,15);d||(d=new X0);obc(c);b.setTimestamp(c);rbc.setExtensionFn(d,b);Bb(a,15,d)}a instanceof a1&&(b=new e1,c=new d1,obc(c),b.setTimestamp(c),sbc.setExtensionFn(a,b))};
/*

 Copyright 2011 Google LLC.
 SPDX-License-Identifier: Apache-2.0
*/
var ybc=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 zbc=function(){},Abc=[[],[]],Bbc=0,Cbc=!1,Dbc=null,Ebc=0,Fbc=0,Gbc=0,f1=0,Hbc=0,g1=function(a){this.mutate_=this.measure_=void 0;this.runInCurrentFrameIfPossible_=!1;this.context_=a;this.state_ctor_=zbc};g1.prototype.measure=function(a){this.measure_=a;return this};g1.prototype.mutate=function(a){this.mutate_=a;return this};g1.prototype.runInCurrentFrameIfPossible=function(){this.runInCurrentFrameIfPossible_=!0;return this};
g1.prototype.build=function(){return Ibc({measure:this.measure_,mutate:this.mutate_,stateCtor:this.state_ctor_,runInCurrentFrameIfPossible:this.runInCurrentFrameIfPossible_},this.context_)};
var Ibc=function(a,b){var c=Hbc++,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=Bbc,!a.runInCurrentFrameIfPossible||0==f1||a.measure&&1!=f1||(h=(h+1)%2),Abc[h].push(f));return Jbc()}},Kbc=function(a,b){Cbc=!1;var c={};f1=
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,bb(f)}}}f1=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){bb(f)}}0<Ebc&&1<b&&(a=b-Ebc,500>a&&(ybc++,100<a&&Fbc++,Gbc<a&&(Gbc=a)));Ebc=Cbc&&1<b?b:0},Jbc=function(){Cbc||(Cbc=!0,Dbc=new Promise(function(a){window.requestAnimationFrame(function(b){var c=
Abc[Bbc];Bbc=(Bbc+1)%2;try{Kbc(c,b)}finally{f1=0,c.length=0}a()})}));return Dbc};
var Lbc=function(a,b){this.tagPopulator_=a;this.expectXidTagComponents_=b||!1;this.componentID_=void 0},E0=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||Wi(d)||d!=c.getTag().getAttribute()));if(d)return c;d=b.getAttribute("jslog");if(!d)return null;d=Mbc(a,d);if(!d||d.getComponentID()&&d.getComponentID()!=a.componentID_)return null;a=new N0(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(Fu.length){var f=Fu.pop();f.setOptions();f.decoder_.init(c,void 0,void 0,void 0);var h=f}else h=new Yib(c);try{var k=Xaa(Mac);var q=Yaa(new k.ctor,h,k);break b}finally{h.free()}q=void 0}e=m(q,J0,13)}catch(v){e=null}}e&&(a.impressionEventID=e,a.rootImpressionEventID=e)}return b.__ve=a},Mbc=function(a,b){if(Wi(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(!Wi(f)){var h=Zqb(f);if(2>h.length)return null;f=h[0].trim();h=h[1].trim();if(Wi(f)||Wi(h))return null;switch(f){case a.maybeXidPartLabel_(uac):f=h.split(",");for(h=0;h<f.length;++h){var k=f[h].trim();if(a.expectXidTagComponents_){if(!d.xidTagComponents_)throw Error("Le");if(!zac.has(k))throw Error("Me`"+k);d.tracks_.add(k)}else d.tracks_.add(d.maybeXidEventLabel_(k))}break;case a.maybeXidPartLabel_(vac):d.setIndex(Number(h));
break;case a.maybeXidPartLabel_(xac):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_(wac):"true"==h?d.mutable_=!0:"rci"==h&&(d.mutable_=!0,d.retain_cached_impression_=!0)}}}return d.setAttribute(b)};Lbc.prototype.maybeXidPartLabel_=function(a){return this.expectXidTagComponents_?iTa(a):a};Lbc.prototype.setComponentID=function(a){this.componentID_=a};Lbc.prototype.getComponentID=function(){return this.componentID_};
var Nbc=function(a,b){this.visualElementProvider_=a;this.traverseShadowDom_=void 0===b?!1:b},sac=function(a,b){return Obc(a,b).filter(function(c){return null!=E0(this.visualElementProvider_,c)},a)},Pbc=function(a,b){var c=a.visualElementProvider_;a=[];for(var d=void 0,e={},f=0;f<b.length;e={$jscomp$loop$prop$parent$1719:e.$jscomp$loop$prop$parent$1719},++f){var h=E0(c,b[f]);void 0==h.traversalOrder_&&void 0==h.serverVed_&&(e.$jscomp$loop$prop$parent$1719=void 0,mTa(b[f],function(k){return function(q){q=
E0(c,q);return null!=q?(k.$jscomp$loop$prop$parent$1719=q,!0):!1}}(e)),e.$jscomp$loop$prop$parent$1719?d&&d.has(e.$jscomp$loop$prop$parent$1719)||(d=new Map,a.unshift(d),d.set(e.$jscomp$loop$prop$parent$1719,[]),Nac=1):(d=new Map,a.unshift(d),Nac=0),Oac(h),h.setParent(e.$jscomp$loop$prop$parent$1719),d.set(h,[]),e.$jscomp$loop$prop$parent$1719&&d.get(e.$jscomp$loop$prop$parent$1719).push(h.traversalOrder_))}return a},Qbc=function(a,b){var c=a.visualElementProvider_;return b.map(function(d){return E0(c,
d)})},Obc=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},Nac=0;
var Rbc=function(a,b,c){WC.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(Rbc,WC);g=Rbc.prototype;g.stop=function(){this.timer_&&(KD(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(){WC.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_=JD(function(){return a.onTimer_()},this.interval_);var b=this.args_;this.args_=null;this.listener_.apply(null,b)};
var Sbc=function(a,b){YC.call(this,"visibilitychange");this.hidden=a;this.visibilityState=b};U(Sbc,YC);
var Tbc=function(a){Qo.call(this);this.domHelper_=a||Zo();if(this.eventType_=this.getBrowserEventType_())this.eventKey_=Ro(this.domHelper_.document_,this.eventType_,$t(this.handleChange_,this))};du(Tbc,Qo);g=Tbc.prototype;g.getBrowserEventType_=tp(function(){var a=!!this.getHiddenPropertyName_(),b="hidden"!=this.getHiddenPropertyName_();if(a){var c;b?c=(((ku?"Webkit":ju?"Moz":hu?"ms":null)||"")+"visibilitychange").toLowerCase():c="visibilitychange";a=c}else a=null;return a});
g.getHiddenPropertyName_=tp(function(){return dXb("hidden",this.domHelper_.document_)});g.getVisibilityStatePropertyName_=tp(function(){return dXb("visibilityState",this.domHelper_.document_)});g.handleChange_=function(){var a=this.getHiddenPropertyName_()?this.domHelper_.document_[this.getVisibilityStatePropertyName_()]:null;a=new Sbc(!!this.domHelper_.document_[this.getHiddenPropertyName_()],a);this.dispatchEvent(a)};g.disposeInternal=function(){kD(this.eventKey_);Tbc.superClass_.disposeInternal.call(this)};
var h1=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;aH.call(this);this.eventBuilder_=a;this.expectXidTagComponents_=d;this.metadataHandler_=b||new nbc;this.visualElementProvider_=new Lbc(this.metadataHandler_,this.expectXidTagComponents_);if(this.clearcut_=c)this.clearcut_.setClientSideLogOnlyForDevelopment(!1),mvb(this.clearcut_,
!0),this.clearcut_.useGetRequestForFinalFlush=!0;this.maybeXidEventLabel_("generic_click");this.root_=this.domHelper_=this.invariantData_=this.appInfo_=void 0;this.pageVisibilityMonitor_=new Tbc;this.logImpressionsTask_=(new g1(this)).measure(h?function(){return h().then(e.handleImpressions_.bind(e))}:this.handleImpressions_).runInCurrentFrameIfPossible().build();new Rbc(this.logImpressionsTask_,500,this);this.traverser_=new Nbc(this.visualElementProvider_,f);this.impressionListeners_=[];this.eventBuilder_ instanceof
O0&&(this.eventHandler_=this.eventBuilder_)};du(h1,aH);g=h1.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 Ubc=function(a){for(var b=0;b<a.impressionListeners_.length;b++)a.impressionListeners_[b]()};h1.prototype.getIndex=function(a){return a.getTag().getIndex()};var Vbc=function(a){return a.map(function(b){return b.getTag().visualElementID_})};g=h1.prototype;g.getMetadata=function(a,b){var c=new a1;Cac(a.getTag(),c);for(a=0;a<b.length;++a)Cac(b[a].getTag(),c);return c};
g.getAncestry_=function(a){var b=[],c=this.visualElementProvider_;mTa(a,function(d){if(!yD(d))return!1;d=E0(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=sac(this.traverser_,this.root_);if(this.eventHandler_){var c=this.domHelper_.getViewportSize();c=new KU(0,
0,c.width,c.height);tac(this,b,c);b=Qbc(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]);Ubc(this)}else{c=[];var d=this.domHelper_.getViewportSize();d=new KU(0,0,d.width,d.height);for(var e=0;e<b.length;e++){var f=b[e];this.isVisible_(f,d)&&(f=E0(this.visualElementProvider_,f))&&Bac(f.getTag(),yac)&&c.push(f)}for(b=0;b<c.length;b++)if(d=c[b],!d.loggedImpression_){e=
this.getAncestry_(d.getElement());var h=Vbc(e);f=this.getIndex(d);var k=new D0;k=l(k,4);var q=d.getTag().visualElementID_;k=l(k,1,q);h=jl(k,3,h);null!=f&&h.setElementIndex(f);f=new Pac;f.ve_metadata=this.getMetadata(d,e);f.global_metadata=this.invariantData_;f.client_info=this.appInfo_;e=h;e=xE(new wE,e.serialize());e=jl(e,20,f.testCodes);this.clearcut_&&this.clearcut_.log(e);Ubc(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=eXb(b,new KU(a.left,a.top,a.width,a.height)))&&10<=b.width&&10<=b.height?!0:!1};g.maybeXidEventLabel_=function(a){return this.expectXidTagComponents_?gTa(a):a};var tac=function(a,b,c){b=Pbc(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 CTa=function(a,b,c,d,e,f,h,k,q){e=void 0===e?!1:e;k=void 0===k?new vUb(b,c,d,void 0,void 0,void 0,f):k;h1.call(this,a,h||null,k,{expectXidTagComponents:e,backgroundJobDeferrer:f,traverseShadowDom:void 0===q?!1:q})};du(CTa,h1);
var $q=function(){this.filter_=null;this.boostIds_=[];this.queryScope_=0;this.slots_=[];this.entryPoint_=0};g=$q.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 $q;a.filter_=this.filter_;a.boostIds_=this.boostIds_;a.queryScope_=this.queryScope_;a.slots_=this.slots_;a.entryPoint_=this.entryPoint_;return a};
var ks=function(a){Z.call(this,a)};U(ks,Z);var i1=function(a,b){return l(a,1,b)};g=ks.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 Wbc(this)};var Wbc=function(a){if(null!=a)return{isLateLoaded:n(To(a,1)),provenance:n(p(a,2)),code:n(p(a,3))}};
var j1=function(a){Z.call(this,a)};U(j1,Z);j1.prototype.getSource=function(){return m(this,ks,1)};j1.prototype.setSource=function(a){return Bb(this,1,a)};j1.prototype.hasSource=function(){return lj(this,1)};var k1=function(a,b){return l(a,2,b)},l1=function(a,b){return l(a,3,b)};j1.prototype.toObject=function(){return Xbc(this)};var Xbc=function(a){if(null!=a)return{source:Wbc(a.getSource()),statusAtQuery:n(p(a,2)),statusAtResult:n(p(a,3))}};
var Ybc=function(){this.filter_=null};Ybc.prototype.getFilter=function(){return this.filter_};Ybc.prototype.setFilter=function(a){this.filter_=a;return this};
var Zbc=function(a){Z.call(this,a)};U(Zbc,Z);g=Zbc.prototype;g.getEnd=function(){return ej(this,2,0)};g.setEnd=function(a){return l(this,2,a)};g.getTotalItems=function(){return ej(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,j1,5)};g.setCacheState=function(a){return Bb(this,5,a)};g.hasCacheState=function(){return lj(this,5)};
g.toObject=function(){var a=null!=this?{begin:ej(this,1,0),end:ej(this,2,0),totalItems:ej(this,3,0),code:X(this,4,2),cacheState:Xbc(this.getCacheState())}:void 0;return a};
var $bc=function(a,b){this.results_=a;this.metadata_=b};$bc.prototype.getResults=function(){return this.results_};$bc.prototype.getMetadata=function(){return this.metadata_};
var acc=function(){this.filter_=null;this.originator_=this.queryScope_=0;this.useOriginalDisplayValue_=!1};g=acc.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 acc).setFilter(this.getFilter()).setOriginator(this.getOriginator()).setQueryScope(this.getQueryScope());a.useOriginalDisplayValue_=this.useOriginalDisplayValue_;return a};
var bcc=function(){this.isLastCallback_=this.isFirstCallback_=!1;this.callbackNumber_=-1;this.notFoundIdList_=[];this.code_=2;this.cacheState_=new j1};g=bcc.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(a){this.callbackNumber_=a;return this};g.setCode=function(a){this.code_=a;return this};g.setCacheState=function(a){this.cacheState_=a;return this};
var ccc=function(a,b){this.results_=a;this.metadata_=b};ccc.prototype.getResults=function(){return this.results_};ccc.prototype.getMetadata=function(){return this.metadata_};
var m1=function(a){Z.call(this,a)};U(m1,Z);g=m1.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 dj(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,j1,7)};g.setCacheState=function(a){return Bb(this,7,a)};g.hasCacheState=function(){return lj(this,7)};
g.toObject=function(){var a=null!=this?{query:V(this,1,""),isFirstCallback:W(this,2,!1),isLastCallback:W(this,3,!1),callbackNumber:ej(this,4,-1),nextPageToken:V(this,5,""),code:X(this,6,2),cacheState:Xbc(this.getCacheState())}:void 0;return a};
var n1=function(a,b){this.results_=a;this.metadata_=b};n1.prototype.getResults=function(){return this.results_};n1.prototype.getMetadata=function(){return this.metadata_};
var dcc={create:function(a,b,c,d,e){e=void 0===e?new $q:e;return oTa(a,b,c,d,new u8b,{sessionOptions:e})},createWith:function(a,b,c,d,e){e=void 0===e?{}:e;return oTa(a,b,c,d,new u8b,e)},createConfig:function(a){return new I$b(a)}};
var $r=function(a){Z.call(this,a)};U($r,Z);g=$r.prototype;g.getTimestamp=function(){return ej(this,1)};g.setTimestamp=function(a){return l(this,1,a)};g.hasTimestamp=function(){return dj(this,1)};g.getAffinityVersion=function(){return ej(this,2)};g.setAffinityVersion=function(a){l(this,2,a)};g.getTotalItems=function(){return ej(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(To(this,5))}:void 0;return a};
var o1=function(){this.bits_=[]};g=o1.prototype;g.and=function(a){for(var b=new o1,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 o1,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};o1.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 LTa=RegExp("[\\s,;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a]+","g"),KTa=/^[<"']|[>"']$/g,mr=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"),ecc=/[^a-z0-9]+/gi,JTa=String.prototype.normalize?function(a){return a.normalize("NFKC")}:function(a){return a};
var fcc=function(a,b){this.key=a;this.terms=MTa(b)};
var p1=function(a,b,c){b=void 0===b?"":b;c=void 0===c?new o1:c;this.items_=a;this.prefix_=b;this.matchIndices_=c;this.childNodes_={};this.isExpanded_="\u2026"===b};p1.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 p1(b)};
p1.prototype.getMatches=function(a){for(var b=[],c=r(this.prefix_?this.matchIndices_:OTa(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};
p1.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_:OTa(h.items_.length)),q=k.next();!q.done;q=k.next()){var v=h;q=q.value;for(var y=v.prefix_+"\ufdc7",E=r(v.items_[q].terms),I=E.next();!I.done;I=E.next())I=I.value,I.length<=v.prefix_.length||I<v.prefix_||I>y||(I=I.charAt(v.prefix_.length),v.childNodes_[I]||(v.childNodes_[I]=new p1(v.items_,v.prefix_+I)),v.childNodes_[I].matchIndices_.set(q))}h.isExpanded_=
!0}d=d.childNodes_[f]||q1;if(d===q1)break}return d}).reduce(function(c,d){return c.and(d)}):this};var gcc=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_&&gcc(c)};p1.prototype.and=function(a){a=this.matchIndices_.and(a.matchIndices_);return new p1(this.items_,"\u2026",a)};p1.prototype.or=function(a){a=this.matchIndices_.or(a.matchIndices_);return new p1(this.items_,"\u2026",a)};var q1=new p1([]);
q1.isExpanded_=!0;
var r1=function(a,b,c){this.expiry_=a;this.value_=b;this.stale_=c};r1.prototype.getExpiry=function(){return this.expiry_};r1.prototype.getValue=function(){return this.value_};r1.prototype.isExpired=function(){return this.expiry_<Date.now()};r1.prototype.isStale=function(){return this.stale_<Date.now()};
var hcc=function(a){this.shouldEvictItem_=a;this.items_=new Map};g=hcc.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 icc=function(){var a=new hcc(function(){return 1E3<a.size()});return a};
var jcc=function(a,b){var c=this;this.capacity_=a;this.itemFactory_=b;this.delegate_=new hcc(function(d,e){return e.isExpired()||c.delegate_.size()>c.capacity_})};g=jcc.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 s1=function(a,b){return new jcc(a,function(c){var d=Date.now()+b;return new r1(d,c,d)})};
var t1=function(a){Z.call(this,a,-1,kcc)};U(t1,Z);g=t1.prototype;g.getCacheSize=function(){return ej(this,3,500)};g.setCacheSize=function(a){l(this,3,a)};g.hasCacheSize=function(){return dj(this,3)};g.getCacheStaleSec=function(){return zl(this,4,86400)};g.getCacheExpiredSec=function(){return zl(this,5,1209600)};g.getRpcTimeoutSec=function(){return zl(this,12,60)};var kcc=[24,25];t1.prototype.toObject=function(){return lcc(this)};
var lcc=function(a){if(null!=a)return{suggestMaxResults:ej(a,1,5),searchMaxResults:ej(a,2,5),cacheSize:ej(a,3,500),cacheStaleSec:zl(a,4,86400),cacheExpiredSec:zl(a,5,1209600),lruCacheCapacity:ej(a,6,500),lruCacheExpiredSec:ej(a,7,43200),autocompleteIndexCapacity:ej(a,8,250),autocompleteIndexExpiredSec:zl(a,9,3600),notFoundCapacity:ej(a,10,500),notFoundExpiredSec:zl(a,11,600),rpcTimeoutSec:zl(a,12,60),serverWarmupThrottleSec:zl(a,13,60),cacheFlushThrottleSec:zl(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:ej(a,26,10),smartAddressIndexExpiredSec:zl(a,27,600),supportSmtpAddresses:W(a,28,!1),contextualSuggestMaxAdditionResults:ej(a,29,3),enableBoosting:W(a,30,!1),boostIndexCapacity:ej(a,31,5),boostIndexExpiredSec:zl(a,32,3600),enableInterleavedGroups:W(a,
33,!1),enableSlotReservations:W(a,34,!1)}};
var QTa=new Set([10,11]);
var mcc=function(a){this.interleaveGroups_=W(a,33,!1)},ncc=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=RTa(d,e,f,!0);break a;default:d=STa(d,e,f)}}return d}).map(function(d){return String(d.id)})};
var occ=function(a,b){this.metrics_=a;this.state_=new kU(b);this.source=b;this.label_="total"};occ.prototype.call=function(){this.metrics_.count(this.state_);this.metrics_.start(this.state_,this.label_)};occ.prototype.result=function(a){this.metrics_.stop(this.state_,this.label_);this.metrics_.status(this.state_,a)};
var pcc=function(a,b){this.metrics_=a;this.state_=new kU(b);this.source=b};pcc.prototype.increment=function(a){this.metrics_.count(this.state_,void 0===a?1:a)};
var qcc=function(a,b){this.metrics_=a;this.state_=new kU(b);this.source=b};qcc.prototype.report=function(){this.metrics_.error(this.state_)};
var rcc=function(a){Z.call(this,a)};U(rcc,Z);rcc.prototype.toObject=function(){return scc(this)};var scc=function(a){if(null!=a)return{sqliteStatus:n(p(a,1))}};
var tcc=function(a){Z.call(this,a)};U(tcc,Z);tcc.prototype.getSqliteErrorInfo=function(){return yl(this,rcc,2,ucc)};var ucc=[2];tcc.prototype.toObject=function(){return vcc(this)};var vcc=function(a){if(null!=a)return{errorLocation:n(p(a,1)),sqliteErrorInfo:scc(a.getSqliteErrorInfo())}};
var wcc=function(a){Z.call(this,a)};U(wcc,Z);wcc.prototype.getSqliteErrorInfo=function(){return yl(this,rcc,2,xcc)};var xcc=[2];wcc.prototype.toObject=function(){return ycc(this)};var ycc=function(a){if(null!=a)return{errorLocation:n(p(a,1)),sqliteErrorInfo:scc(a.getSqliteErrorInfo())}};
var zcc=function(a){Z.call(this,a)};U(zcc,Z);zcc.prototype.toObject=function(){return Acc(this)};var Acc=function(a){if(null!=a)return{errorLocation:n(p(a,1))}};
var u1=function(a){Z.call(this,a)};U(u1,Z);g=u1.prototype;g.getClientInterface=function(){return m(this,VT,1)};g.setClientInterface=function(a){return Bb(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,Bcc,12)};g.setCacheStatus=function(a){return Bb(this,12,a)};g.getCount=function(){return m(this,v1,4)};g.setCount=function(a){Bb(this,4,a)};g.getLatency=function(){return m(this,w1,5)};
g.setLatency=function(a){return Bb(this,5,a)};g.getError=function(){return m(this,x1,6)};g.setError=function(a){Bb(this,6,a)};g.hasError=function(){return lj(this,6)};g.getRpcRequest=function(){return m(this,y1,7)};g.setRpcRequest=function(a){return Bb(this,7,a)};g.getRpcResponse=function(){return m(this,z1,8)};g.setRpcResponse=function(a){return Bb(this,8,a)};g.getApiCall=function(){return m(this,A1,9)};g.setApiCall=function(a){return Bb(this,9,a)};g.getApiResult=function(){return m(this,B1,10)};
g.setApiResult=function(a){return Bb(this,10,a)};var Bcc=function(a){Z.call(this,a)};U(Bcc,Z);var v1=function(a){Z.call(this,a)};U(v1,Z);g=v1.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 dj(this,4)};g.getValue=function(){return ej(this,2,1)};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return dj(this,2)};
g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return dj(this,1)};var Ccc=function(a){Z.call(this,a)};U(Ccc,Z);var w1=function(a){Z.call(this,a)};U(w1,Z);g=w1.prototype;g.getType=function(){return p(this,3)};g.setType=function(a){return l(this,3,a)};g.hasType=function(){return dj(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 dj(this,1)};var C1=function(a){Z.call(this,a)};U(C1,Z);C1.prototype.getLabel=function(){return p(this,1)};C1.prototype.setLabel=function(a){return l(this,1,a)};C1.prototype.hasLabel=function(){return dj(this,1)};var Dcc=function(a){Z.call(this,a)};U(Dcc,Z);var x1=function(a){Z.call(this,a)};U(x1,Z);g=x1.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 dj(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 dj(this,3)};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 dj(this,1)};var z1=function(a){Z.call(this,a)};U(z1,Z);g=z1.prototype;g.getLabel=function(){return p(this,1)};
g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return dj(this,1)};g.getStatus=function(){return p(this,2)};g.setStatus=function(a){return l(this,2,a)};g.hasStatus=function(){return dj(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 Hr=function(a){Z.call(this,a)};U(Hr,Z);var A1=function(a){Z.call(this,a)};U(A1,Z);g=A1.prototype;
g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return dj(this,1)};g.getItemCount=function(){return p(this,2)};g.setItemCount=function(a){return l(this,2,a)};g.hasItemCount=function(){return dj(this,2)};g.getLookupInfo=function(){return m(this,Hr,3)};g.setLookupInfo=function(a){return Bb(this,3,a)};g.hasLookupInfo=function(){return lj(this,3)};g.getQueryLength=function(){return p(this,4)};g.setQueryLength=function(a){return l(this,4,a)};
g.hasQueryLength=function(){return dj(this,4)};g.getQueryScope=function(){return X(this,5,0)};g.setQueryScope=function(a){return l(this,5,a)};g.hasQueryScope=function(){return dj(this,5)};var B1=function(a){Z.call(this,a)};U(B1,Z);g=B1.prototype;g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return dj(this,1)};g.getStatus=function(){return p(this,2)};g.setStatus=function(a){return l(this,2,a)};g.hasStatus=function(){return dj(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){return l(this,8,a)};g.hasItemCount=function(){return dj(this,8)};g.getLookupInfo=function(){return m(this,Hr,10)};g.setLookupInfo=function(a){return Bb(this,10,a)};g.hasLookupInfo=function(){return lj(this,10)};
g.setStatusCode=function(a){l(this,11,a)};g.getQueryLength=function(){return p(this,13)};g.setQueryLength=function(a){return l(this,13,a)};g.hasQueryLength=function(){return dj(this,13)};g.getQueryScope=function(){return X(this,14,0)};g.setQueryScope=function(a){return l(this,14,a)};g.hasQueryScope=function(){return dj(this,14)};
u1.prototype.toObject=function(){var a=null!=this?{clientInterface:sTb(this.getClientInterface()),autocompleteSessions:FTb(m(this,cU,2)),eventType:n(p(this,3)),cacheStatus:Ecc(this.getCacheStatus()),deviceInfo:Fcc(m(this,Ccc,13)),count:Gcc(this.getCount()),latency:Hcc(this.getLatency()),error:Icc(this.getError()),rpcRequest:Jcc(this.getRpcRequest()),rpcResponse:Kcc(this.getRpcResponse()),apiCall:Lcc(this.getApiCall()),apiResult:Mcc(this.getApiResult()),memory:Ncc(m(this,C1,11))}:void 0;return a};
Bcc.prototype.toObject=function(){return Ecc(this)};var Ecc=function(a){if(null!=a)return{topnCacheItemCount:n(p(a,1)),iosDeviceCacheItemCount:n(p(a,2))}};v1.prototype.toObject=function(){return Gcc(this)};var Gcc=function(a){if(null!=a)return{dataSource:n(p(a,3)),type:n(p(a,4)),value:ej(a,2,1),label:n(p(a,1))}};Ccc.prototype.toObject=function(){return Fcc(this)};var Fcc=function(a){if(null!=a)return{numberOfContacts:n(p(a,1))}};w1.prototype.toObject=function(){return Hcc(this)};
var Hcc=function(a){if(null!=a)return{type:n(p(a,3)),latencyUsec:n(p(a,2)),label:n(p(a,1))}};C1.prototype.toObject=function(){return Ncc(this)};var Ncc=function(a){if(null!=a)return{label:n(p(a,1)),memoryUsedBytes:n(p(a,2)),memoryAverageUsedBytes:n(p(a,3))}};Dcc.prototype.toObject=function(){return Occ(this)};var Occ=function(a){if(null!=a)return{cpuPeakUsageFraction:n(uu(a,1)),cpuAverageUsageFraction:n(uu(a,2)),memoryPeakUsageBytes:n(p(a,3)),memoryAverageUsageBytes:n(p(a,4))}},Pcc=[6,7,8];
x1.prototype.toObject=function(){return Icc(this)};var Icc=function(a){if(null!=a)return{statusCode:X(a,5,2),iosErrorInfo:ycc(yl(a,wcc,6,Pcc)),androidErrorInfo:vcc(yl(a,tcc,7,Pcc)),webErrorInfo:Acc(yl(a,zcc,8,Pcc)),label:n(p(a,1)),cause:n(p(a,2)),type:n(p(a,3)),causeType:n(p(a,4))}};y1.prototype.toObject=function(){return Jcc(this)};var Jcc=function(a){if(null!=a)return{label:n(p(a,1)),requestProtoBytes:n(p(a,2)),requestBytes:n(p(a,3))}};z1.prototype.toObject=function(){return Kcc(this)};
var Kcc=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))}};Hr.prototype.toObject=function(){return Qcc(this)};var Qcc=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))}};
A1.prototype.toObject=function(){return Lcc(this)};var Lcc=function(a){if(null!=a)return{label:n(p(a,1)),itemCount:n(p(a,2)),lookupInfo:Qcc(a.getLookupInfo()),queryLength:n(p(a,4)),queryScope:X(a,5,0)}};B1.prototype.toObject=function(){return Mcc(this)};
var Mcc=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:Occ(m(a,Dcc,9)),lookupInfo:Qcc(a.getLookupInfo()),statusCode:X(a,11,2),queryLength:n(p(a,13)),queryScope:X(a,14,0)}};
var Gr=function(a){Z.call(this,a)};U(Gr,Z);Gr.prototype.getEventType=function(){return X(this,1,0)};Gr.prototype.setEventType=function(a){return l(this,1,a)};var Ir=function(a,b){return l(a,2,b)},lUa=function(a,b){return l(a,3,b)};g=Gr.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 ej(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,j1,11)};g.setCacheState=function(a){return Bb(this,11,a)};g.hasCacheState=function(){return lj(this,11)};g.getQueryLength=function(){return p(this,14)};g.setQueryLength=function(a){return l(this,14,a)};g.hasQueryLength=function(){return dj(this,14)};g.getItemCount=function(){return p(this,15)};
g.setItemCount=function(a){return l(this,15,a)};g.hasItemCount=function(){return dj(this,15)};g.getLookupInfo=function(){return m(this,Hr,16)};g.setLookupInfo=function(a){return Bb(this,16,a)};g.hasLookupInfo=function(){return lj(this,16)};g.getQueryScope=function(){return p(this,17)};g.setQueryScope=function(a){return l(this,17,a)};g.hasQueryScope=function(){return dj(this,17)};
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:ej(this,9,0),token:V(this,10,""),cacheState:Xbc(this.getCacheState()),contentLength:ej(this,12,0),errorHint:X(this,13,0),queryLength:n(p(this,14)),itemCount:n(p(this,15)),lookupInfo:Qcc(this.getLookupInfo()),queryScope:n(p(this,17))}:void 0;return a};
var Rcc=function(a,b,c){this.indexLatency_=a;this.searchLatency_=b;this.errorType_=c};Rcc.prototype.getErrorType=function(){return this.errorType_};
var Scc=function(a,b,c){this.delegate_=a;this.trackers_=b;this.indexingLabel_=c.indexLatency_;this.searchLabel_=c.searchLatency_;this.errorLabel_=c.getErrorType()};g=Scc.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 Tcc=function(){};Tcc.prototype.processItem=function(){};var Ucc=new Tcc;
var xUa=function(){this.familyName_=this.givenName_=this.displayName_="";this.sourceType_=0};g=xUa.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 Vcc=function(){this.altText_=""};Vcc.prototype.getIconUrl=function(){return""};
var Wcc=function(){};Wcc.prototype.configure=function(){};
var D1=function(a){Z.call(this,a,-1,Xcc)};U(D1,Z);D1.prototype.getEnableClearcut=function(){return W(this,1,!1)};D1.prototype.setEnableClearcut=function(a){return l(this,1,a)};D1.prototype.getSocialApplication=function(){return X(this,2,0)};var Xcc=[5,6];D1.prototype.toObject=function(){return Ycc(this)};
var Ycc=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:Cb(rb(a,fs,5),c0),contextualEventSourcesList:Cb(rb(a,gs,6),P7b)}};
var E1=function(a){Z.call(this,a)};U(E1,Z);E1.prototype.getApplication=function(){return X(this,1,0)};E1.prototype.setApplication=function(a){return l(this,1,a)};E1.prototype.getIsEnabled=function(){return W(this,2,!1)};E1.prototype.toObject=function(){return Zcc(this)};var Zcc=function(a){if(null!=a)return{application:X(a,1,0),isEnabled:W(a,2,!1)}};
var F1=function(a){Z.call(this,a)};U(F1,Z);F1.prototype.getApiKey=function(){return V(this,1,"")};F1.prototype.toObject=function(){return $cc(this)};var $cc=function(a){if(null!=a)return{apiKey:V(a,1,""),apiKeyTest:V(a,2,"")}};
var G1=function(a){Z.call(this,a,-1,adc)};U(G1,Z);var adc=[1];G1.prototype.toObject=function(){return H1(this)};var H1=function(a){if(null!=a)return{papiExtensionList:n(jb(a,1))}};
var I1=function(a){Z.call(this,a,-1,bdc)};U(I1,Z);I1.prototype.getClientId=function(){return V(this,1,"CLIENT_UNSPECIFIED")};I1.prototype.setClientId=function(a){return l(this,1,a)};I1.prototype.getAffinityType=function(){return V(this,4,"AFFINITY_TYPE_UNKNOWN")};I1.prototype.setAffinityType=function(a){return l(this,4,a)};var bdc=[7,8];I1.prototype.toObject=function(){return cdc(this)};
var cdc=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:H1(m(a,G1,9)),listPeopleByKnownIdPapiExtensions:H1(m(a,G1,10)),listContactPeoplePapiExtensions:H1(m(a,G1,11)),getPeoplePapiExtensions:H1(m(a,G1,12)),identityAcl:W(a,13,!1),offlineStoreDelayMillis:ej(a,
14,5E3),enablePrivateNames:W(a,15,!1),dasherAdminDisabled:W(a,16,!1),enableSmimeCertificate:W(a,17,!1)}};
var ddc=function(a){Z.call(this,a)};U(ddc,Z);g=ddc.prototype;g.getClient=function(){return m(this,t1,1)};g.setClient=function(a){return Bb(this,1,a)};g.hasClient=function(){return lj(this,1)};g.getGapi=function(){return m(this,F1,2)};g.getPeopleApi=function(){return m(this,I1,3)};g.getClearcut=function(){return m(this,D1,4)};g.setClearcut=function(a){Bb(this,4,a)};g.hasClearcut=function(){return lj(this,4)};g.getExperiments=function(){return m(this,E1,5)};g.setExperiments=function(a){Bb(this,5,a)};
g.hasExperiments=function(){return lj(this,5)};g.toObject=function(){var a=null!=this?{client:lcc(this.getClient()),gapi:$cc(this.getGapi()),peopleApi:cdc(this.getPeopleApi()),clearcut:Ycc(this.getClearcut()),experiments:Zcc(this.getExperiments())}:void 0;return a};
var edc=function(a){Z.call(this,a,1)};U(edc,Z);var fdc={};edc.prototype.toObject=function(){if(null!=this){var a={};Db(this,a,fdc)}else a=void 0;return a};
var hdc=function(a){Z.call(this,a,-1,gdc)};U(hdc,Z);g=hdc.prototype;g.getExperimentIdsList=function(){return jb(this,1)};g.setExperimentIdsList=function(a){return jl(this,1,a)};g.getProfileId=function(){return p(this,2)};g.setProfileId=function(a){return l(this,2,a)};g.hasProfileId=function(){return dj(this,2)};var gdc=[1];hdc.prototype.toObject=function(){var a=null!=this?{experimentIdsList:n(jb(this,1)),profileId:n(p(this,2))}:void 0;return a};
var idc=function(){},jdc=function(){return!1},kdc=function(){this.experiments_=new hdc;this.peopleApiEnv_=4;this.delegatorId_="";this.onAuthError_=idc;this.offlineStorage_=null;this.apiKey_=this.clearcutUrl_="";this.isOffline_=jdc;this.isOrgStateEnabled_=!1};g=kdc.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||idc};g.getApiKey=function(){return this.apiKey_};
var J1=function(a,b){this.delegate_=a;this.runtimeConfig_=b||new kdc;a=this.getPeopleApi();jb(a,7).length||jl(a,7,[2,8,1,7,10,11]);jb(a,8).length||jl(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")}};J1.prototype.getClient=function(){this.delegate_.hasClient()||this.delegate_.setClient(new t1);return this.delegate_.getClient()};
J1.prototype.getGapi=function(){if(!lj(this.delegate_,2)){var a=this.delegate_,b=new F1;Bb(a,2,b)}return this.delegate_.getGapi()};J1.prototype.getPeopleApi=function(){if(!lj(this.delegate_,3)){var a=this.delegate_,b=new I1;Bb(a,3,b)}return this.delegate_.getPeopleApi()};J1.prototype.getClearcut=function(){this.delegate_.hasClearcut()||this.delegate_.setClearcut(new D1);return this.delegate_.getClearcut()};var ldc=function(a){a.delegate_.hasExperiments()||a.delegate_.setExperiments(new E1);return a.delegate_.getExperiments()};
J1.prototype.getAuthErrorHandler=function(){return this.runtimeConfig_.getAuthErrorHandler()};var mdc=function(a){a=a.getClient();return ej(a,6,500)?Math.min(Math.round(ej(a,6,500)/4),500):500};
var es=null;
var ndc=function(a){this.qos=a};ndc.prototype.getIndex=function(){return String(this.qos)};var odc=new ndc(1),pdc=new ndc(2);
var qdc=function(a,b){this.isOrgStateEnabled_=a.runtimeConfig_.isOrgStateEnabled_;this.delegate_=b};qdc.prototype.processItem=function(a){this.delegate_.processItem(a);a=a.target;this.isOrgStateEnabled_||(a.orgState_=0)};
var K1=function(a){Z.call(this,a)};U(K1,Z);K1.prototype.getDescription=function(){return p(this,6)};K1.prototype.setDescription=function(a){return l(this,6,a)};K1.prototype.toObject=function(){return rdc(void 0,this)};var rdc=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:ljb(a,m(b,ijb,8))};a&&(c.$jspbMessageInstance=b);return c}};
var sdc=function(a){Z.call(this,a)};U(sdc,Z);sdc.prototype.toObject=function(){return tdc(void 0,this)};var tdc=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 vr=function(a){Z.call(this,a,5)};U(vr,Z);vr.prototype.getIsPlaceholder=function(){return To(this,2)};vr.prototype.setIsPlaceholder=function(a){l(this,2,a)};vr.prototype.getContactId=function(){return p(this,4)};vr.prototype.setContactId=function(a){l(this,4,a)};var udc={};vr.prototype.toObject=function(){return vdc(void 0,this)};
var vdc=function(a,b){if(null!=b){var c={dynamiteExtendedData:rdc(a,m(b,K1,1)),isPlaceholder:n(To(b,2)),paisaExtendedData:tdc(a,m(b,sdc,3)),contactId:n(p(b,4))};Db(b,c,udc,a);a&&(c.$jspbMessageInstance=b);return c}};
var dUa=zb(417869898,{clientSpecificData:0},vr,vdc);o8b[417869898]=dUa;
var xr=function(a){Z.call(this,a)};U(xr,Z);xr.prototype.toObject=function(){return wdc(void 0,this)};var wdc=function(a,b){if(null!=b){var c={grammaticalGender:n(p(b,1))};a&&(c.$jspbMessageInstance=b);return c}};
var $Ta=zb(417866180,{peopleStackFieldData:0},xr,wdc);o8b[417866180]=$Ta;
var L1=function(a){Z.call(this,a)};U(L1,Z);g=L1.prototype;g.getIdCase=function(){return pb(this,M1)};g.getProfileId=function(){return V(this,qb(this,M1,1))};g.setProfileId=function(a){return co(this,1,M1,a)};g.hasProfileId=function(){return 1===pb(this,M1)};g.getEmail=function(){return V(this,qb(this,M1,2))};g.setEmail=function(a){return co(this,2,M1,a)};g.hasEmail=function(){return 2===pb(this,M1)};g.getPhone=function(){return V(this,qb(this,M1,3))};g.setPhone=function(a){return co(this,3,M1,a)};
g.hasPhone=function(){return 3===pb(this,M1)};var M1=[1,2,3];L1.prototype.toObject=function(){return xdc(void 0,this)};var xdc=function(a,b){if(null!=b){var c={profileId:n(Rr(b,1,M1)),email:n(Rr(b,2,M1)),phone:n(Rr(b,3,M1))};a&&(c.$jspbMessageInstance=b);return c}};
var Ar=function(a){Z.call(this,a,-1,ydc)};U(Ar,Z);Ar.prototype.getHiddenKeysList=function(){return rb(this,L1,3)};var ydc=[3];Ar.prototype.toObject=function(){return zdc(void 0,this)};var zdc=function(a,b){if(null!=b){var c={hideType:n(p(b,1)),hiddenKeysList:Cb(b.getHiddenKeysList(),xdc,a),familyStatus:n(p(b,2)),birthdayStatus:n(p(b,4))};a&&(c.$jspbMessageInstance=b);return c}};
var eUa=zb(417869137,{peopleStackPersonData:0},Ar,zdc);o8b[417869137]=eUa;
var Adc=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},bUa=function(a){if(!a)return 0;a=Array.from(a).map(Adc);a.sort();for(var b=1,c=0,d=a.length;c<d;c++)b=(b<<5)-b+a[c];return b};
var TTa=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 Bdc=function(a){Z.call(this,a)};U(Bdc,Z);g=Bdc.prototype;g.getLoggingId=function(){return vu(this,1)};g.setLoggingId=function(a){l(this,1,a)};g.getValue=function(){return uu(this,2)};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return dj(this,2)};g.toObject=function(){return Cdc(void 0,this)};var Cdc=function(a,b){if(null!=b){var c={loggingId:Fb(b.getLoggingId()),value:n(uu(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Ddc=function(a){Z.call(this,a)};U(Ddc,Z);g=Ddc.prototype;g.getValue=function(){return p(this,1)};g.setValue=function(a){return l(this,1,a)};g.hasValue=function(){return dj(this,1)};g.getGivenName=function(){return p(this,2)};g.setGivenName=function(a){return l(this,2,a)};g.hasGivenName=function(){return dj(this,2)};g.getFamilyName=function(){return p(this,3)};g.setFamilyName=function(a){return l(this,3,a)};g.hasFamilyName=function(){return dj(this,3)};
g.getSourceType=function(){return p(this,4)};g.setSourceType=function(a){return l(this,4,a)};g.toObject=function(){return Edc(void 0,this)};var Edc=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 Fdc=function(a){Z.call(this,a)};U(Fdc,Z);g=Fdc.prototype;g.getUrl=function(){return p(this,1)};g.setUrl=function(a){return l(this,1,a)};g.hasUrl=function(){return dj(this,1)};g.getType=function(){return p(this,2)};g.setType=function(a){return l(this,2,a)};g.hasType=function(){return dj(this,2)};g.getGlyph=function(){return p(this,3)};g.setGlyph=function(a){return l(this,3,a)};g.toObject=function(){return Gdc(void 0,this)};
var Gdc=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 N1=function(a){Z.call(this,a)};U(N1,Z);g=N1.prototype;g.getPhoto=function(){return m(this,Fdc,1)};g.setPhoto=function(a){Bb(this,1,a)};g.hasPhoto=function(){return lj(this,1)};g.getName=function(){return m(this,Ddc,2)};g.setName=function(a){return Bb(this,2,a)};g.hasName=function(){return lj(this,2)};g.getAffinity=function(){return m(this,Bdc,3)};g.hasAffinity=function(){return lj(this,3)};g.getPrimary=function(){return To(this,4)};g.toObject=function(){return Hdc(void 0,this)};
var Hdc=function(a,b){if(null!=b){var c={photo:Gdc(a,b.getPhoto()),name:Edc(a,b.getName()),affinity:Cdc(a,b.getAffinity()),primary:n(To(b,4))};a&&(c.$jspbMessageInstance=b);return c}};
var Idc=function(a){Z.call(this,a)};U(Idc,Z);Idc.prototype.toObject=function(){return Jdc(void 0,this)};var Jdc=function(a,b){if(null!=b){var c={smtpServerSupportsTls:n(To(b,1)),usesConfusingCharacters:n(To(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var O1=function(a){Z.call(this,a,-1,Kdc)};U(O1,Z);O1.prototype.getApplication=function(){return X(this,1,0)};O1.prototype.setApplication=function(a){return l(this,1,a)};var Kr=function(a){Z.call(this,a)};U(Kr,Z);Kr.prototype.getState=function(){return p(this,2)};var Kdc=[2];O1.prototype.toObject=function(){return Ldc(void 0,this)};var Ldc=function(a,b){if(null!=b){var c={application:X(b,1,0),stateStatusList:Cb(rb(b,Kr,2),Mdc,a)};a&&(c.$jspbMessageInstance=b);return c}};
Kr.prototype.toObject=function(){return Mdc(void 0,this)};var Mdc=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 P1=function(a){Z.call(this,a,-1,Ndc)};U(P1,Z);P1.prototype.getValue=function(){return p(this,1)};P1.prototype.setValue=function(a){return l(this,1,a)};P1.prototype.hasValue=function(){return dj(this,1)};var Q1=function(a){Z.call(this,a)};U(Q1,Z);Q1.prototype.getStatus=function(){return p(this,2)};Q1.prototype.setStatus=function(a){return l(this,2,a)};Q1.prototype.hasStatus=function(){return dj(this,2)};var Ndc=[2];P1.prototype.toObject=function(){return Odc(void 0,this)};
var Odc=function(a,b){if(null!=b){var c={value:n(p(b,1)),certificatesList:Cb(rb(b,Q1,2),Pdc,a),securityInfo:Jdc(a,m(b,Idc,3)),internalExternal:Ldc(a,m(b,O1,4))};a&&(c.$jspbMessageInstance=b);return c}};Q1.prototype.toObject=function(){return Pdc(void 0,this)};var Pdc=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 qr=function(a){Z.call(this,a)};U(qr,Z);g=qr.prototype;g.getProfileId=function(){return p(this,1)};g.setProfileId=function(a){return l(this,1,a)};g.hasProfileId=function(){return dj(this,1)};g.getEmail=function(){return Rr(this,2,sr)};g.setEmail=function(a){return co(this,2,sr,a)};g.hasEmail=function(){return 2===pb(this,sr)};g.getPhone=function(){return Rr(this,3,sr)};g.setPhone=function(a){return co(this,3,sr,a)};g.hasPhone=function(){return 3===pb(this,sr)};var sr=[2,3];
qr.prototype.toObject=function(){return Qdc(void 0,this)};var Qdc=function(a,b){if(null!=b){var c={profileId:n(p(b,1)),email:n(Rr(b,2,sr)),phone:n(Rr(b,3,sr))};a&&(c.$jspbMessageInstance=b);return c}};
var Rdc=function(a){Z.call(this,a)};U(Rdc,Z);Rdc.prototype.getDisplayValue=function(){return p(this,1)};Rdc.prototype.toObject=function(){return Sdc(void 0,this)};var Sdc=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 ur=function(a){Z.call(this,a)};U(ur,Z);ur.prototype.getIdCase=function(){return pb(this,R1)};ur.prototype.getProfileId=function(){return Rr(this,1,R1)};ur.prototype.setProfileId=function(a){return co(this,1,R1,a)};ur.prototype.hasProfileId=function(){return 1===pb(this,R1)};var R1=[1];ur.prototype.toObject=function(){return Tdc(void 0,this)};var Tdc=function(a,b){if(null!=b){var c={profileId:n(Rr(b,1,R1))};a&&(c.$jspbMessageInstance=b);return c}};
var Br=function(a){Z.call(this,a,-1,Udc)};U(Br,Z);g=Br.prototype;g.getValueCase=function(){return pb(this,rr)};g.getDisplayInfo=function(){return m(this,N1,1)};g.hasDisplayInfo=function(){return lj(this,1)};g.getEmail=function(){return yl(this,P1,2,rr)};g.setEmail=function(a){return yu(this,2,rr,a)};g.hasEmail=function(){return wl(this,2,rr)};g.getPhone=function(){return yl(this,Rdc,3,rr)};g.setPhone=function(a){return yu(this,3,rr,a)};g.hasPhone=function(){return wl(this,3,rr)};
g.getIsSelf=function(){return To(this,6)};g.getTypeLabel=function(){return p(this,10)};var Udc=[5],rr=[2,3,4];Br.prototype.toObject=function(){return Vdc(void 0,this)};
var Vdc=function(a,b){if(null!=b){var c={displayInfo:Hdc(a,b.getDisplayInfo()),email:Odc(a,b.getEmail()),phone:Sdc(a,b.getPhone()),inAppTarget:Qdc(a,yl(b,qr,4,rr)),sourceIdsList:Cb(rb(b,ur,5),Tdc,a),isSelf:n(To(b,6)),isGoogleGroup:n(To(b,7)),isPersonal:n(To(b,8)),peopleStackFieldExtendedData:wdc(a,m(b,xr,9)),typeLabel:n(p(b,10))};a&&(c.$jspbMessageInstance=b);return c}};
var Er=function(a){Z.call(this,a,-1,Wdc)};U(Er,Z);Er.prototype.getDisplayInfo=function(){return m(this,N1,1)};Er.prototype.hasDisplayInfo=function(){return lj(this,1)};Er.prototype.getMembersList=function(){return rb(this,Br,2)};Er.prototype.getLabelId=function(){return p(this,3)};var Wdc=[2];Er.prototype.toObject=function(){return Xdc(void 0,this)};
var Xdc=function(a,b){if(null!=b){var c={displayInfo:Hdc(a,b.getDisplayInfo()),membersList:Cb(b.getMembersList(),Vdc,a),labelId:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var Pr=function(a){Z.call(this,a)};U(Pr,Z);Pr.prototype.getIdCase=function(){return pb(this,Qr)};var Qr=[1];Pr.prototype.toObject=function(){return Ydc(void 0,this)};var Ydc=function(a,b){if(null!=b){var c={rosterEmail:n(Rr(b,1,Qr))};a&&(c.$jspbMessageInstance=b);return c}};
var $dc=function(a){Z.call(this,a,-1,Zdc)};U($dc,Z);$dc.prototype.getHiddenKeysList=function(){return rb(this,L1,3)};var Zdc=[3];$dc.prototype.toObject=function(){return aec(void 0,this)};var aec=function(a,b){if(null!=b){var c={hideType:n(p(b,1)),hiddenKeysList:Cb(b.getHiddenKeysList(),xdc,a),familyStatus:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Dr=function(a){Z.call(this,a,-1,bec)};U(Dr,Z);Dr.prototype.getAffinity=function(){return m(this,Bdc,2)};Dr.prototype.hasAffinity=function(){return lj(this,2)};var bec=[1];Dr.prototype.toObject=function(){return cec(void 0,this)};
var cec=function(a,b){if(null!=b){var c={affinity:Cdc(a,b.getAffinity()),contactMethodsList:Cb(rb(b,Br,1),Vdc,a),clientSpecificData:vdc(a,m(b,vr,3)),peopleStackExtendedData:aec(a,m(b,$dc,4)),peopleStackPersonExtendedData:zdc(a,m(b,Ar,5))};a&&(c.$jspbMessageInstance=b);return c}};
var eec=function(a){Z.call(this,a,-1,dec)};U(eec,Z);g=eec.prototype;g.getDisplayInfo=function(){return m(this,N1,1)};g.hasDisplayInfo=function(){return lj(this,1)};g.getMembersList=function(){return rb(this,Dr,2)};g.getGroupId=function(){return p(this,4)};g.setGroupId=function(a){l(this,4,a)};g.hasGroupId=function(){return dj(this,4)};var dec=[2,6];eec.prototype.toObject=function(){return fec(void 0,this)};
var fec=function(a,b){if(null!=b){var c={displayInfo:Hdc(a,b.getDisplayInfo()),membersList:Cb(b.getMembersList(),cec,a),fullGroupSize:n(p(b,3)),groupId:n(p(b,4)),groupType:n(p(b,5)),groupAlternateIdList:Cb(rb(b,Pr,6),Ydc,a)};a&&(c.$jspbMessageInstance=b);return c}};
var Fr=function(a){Z.call(this,a)};U(Fr,Z);Fr.prototype.getGroup=function(){return yl(this,eec,2,Cr)};Fr.prototype.setGroup=function(a){yu(this,2,Cr,a)};var Cr=[1,2,3];Fr.prototype.toObject=function(){return gec(void 0,this)};var gec=function(a,b){if(null!=b){var c={person:cec(a,yl(b,Dr,1,Cr)),group:fec(a,b.getGroup()),contactLabel:Xdc(a,yl(b,Er,3,Cr))};a&&(c.$jspbMessageInstance=b);return c}};
var Jr=function(a){Z.call(this,a)};U(Jr,Z);g=Jr.prototype;g.getIdCase=function(){return pb(this,S1)};g.getEmail=function(){return Rr(this,1,S1)};g.setEmail=function(a){return co(this,1,S1,a)};g.hasEmail=function(){return 1===pb(this,S1)};g.getPhone=function(){return Rr(this,2,S1)};g.setPhone=function(a){return co(this,2,S1,a)};g.hasPhone=function(){return 2===pb(this,S1)};g.getProfileId=function(){return Rr(this,3,S1)};g.setProfileId=function(a){return co(this,3,S1,a)};
g.hasProfileId=function(){return 3===pb(this,S1)};var S1=[1,2,3];Jr.prototype.toObject=function(){return hec(void 0,this)};var hec=function(a,b){if(null!=b){var c={email:n(Rr(b,1,S1)),phone:n(Rr(b,2,S1)),profileId:n(Rr(b,3,S1))};a&&(c.$jspbMessageInstance=b);return c}};
var T1=function(a){Z.call(this,a,-1,iec)};U(T1,Z);T1.prototype.getAffinityVersion=function(){return p(this,1)};T1.prototype.setAffinityVersion=function(a){l(this,1,a)};T1.prototype.getAffinityType=function(){return p(this,4)};T1.prototype.setAffinityType=function(a){return l(this,4,a)};var jec=function(a){Z.call(this,a)};U(jec,Z);var iec=[3];T1.prototype.toObject=function(){return kec(void 0,this)};
var kec=function(a,b){if(null!=b){var c={affinityVersion:n(p(b,1)),affinityThreshold:n(uu(b,2)),featureList:Cb(rb(b,jec,3),lec,a),affinityType:n(p(b,4))};a&&(c.$jspbMessageInstance=b);return c}};jec.prototype.toObject=function(){return lec(void 0,this)};var lec=function(a,b){if(null!=b){var c={featureType:X(b,1,0),weight:zl(b,2,0),exponent:zl(b,3,1)};a&&(c.$jspbMessageInstance=b);return c}};
var U1=function(a){Z.call(this,a,-1,mec)};U(U1,Z);var mec=[1];U1.prototype.toObject=function(){return nec(void 0,this)};var nec=function(a,b){if(null!=b){var c={resultsList:Cb(rb(b,Fr,1),gec,a),affinityResponseContext:kec(a,m(b,T1,2))};a&&(c.$jspbMessageInstance=b);return c}};
var pec=function(a){Z.call(this,a,-1,oec)};U(pec,Z);var V1=function(a){Z.call(this,a)};U(V1,Z);V1.prototype.getId=function(){return m(this,Jr,1)};V1.prototype.setId=function(a){return Bb(this,1,a)};var oec=[1];pec.prototype.toObject=function(){var a=null!=this?{matchesList:Cb(rb(this,V1,1),qec)}:void 0;return a};var rec=[2,3];V1.prototype.toObject=function(){return qec(void 0,this)};
var qec=function(a,b){if(null!=b){var c={id:hec(a,b.getId()),autocompletion:gec(a,yl(b,Fr,2,rec)),failureType:n(Rr(b,3,rec))};a&&(c.$jspbMessageInstance=b);return c}};
var nUa=new Map([[0,1],[1,2],[2,3]]);
var W1=function(a){Z.call(this,a)};U(W1,Z);W1.prototype.setDevice=function(a){return l(this,1,a)};W1.prototype.toObject=function(){return sec(this)};var sec=function(a){if(null!=a)return{device:n(p(a,1))}};
var tec=function(a){Z.call(this,a)};U(tec,Z);g=tec.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 dj(this,2)};g.getClientInformation=function(){return m(this,W1,3)};g.setClientInformation=function(a){Bb(this,3,a)};
g.toObject=function(){var a=null!=this?{affinityType:n(p(this,1)),query:n(p(this,2)),clientInformation:sec(this.getClientInformation())}:void 0;return a};
var X1=function(a){Z.call(this,a,-1,uec)};U(X1,Z);X1.prototype.getAffinityType=function(){return p(this,1)};X1.prototype.setAffinityType=function(a){return l(this,1,a)};X1.prototype.getClientInformation=function(){return m(this,W1,2)};X1.prototype.setClientInformation=function(a){Bb(this,2,a)};var vec=function(a,b){Ab(a,3,b)},uec=[3];
X1.prototype.toObject=function(){var a=null!=this?{affinityType:n(p(this,1)),clientInformation:sec(this.getClientInformation()),idsList:Cb(rb(this,Jr,3),hec)}:void 0;return a};
var wec=function(a){Z.call(this,a)};U(wec,Z);g=wec.prototype;g.getAffinityType=function(){return p(this,1)};g.setAffinityType=function(a){return l(this,1,a)};g.getClientInformation=function(){return m(this,W1,2)};g.setClientInformation=function(a){Bb(this,2,a)};g.toObject=function(){var a=null!=this?{affinityType:n(p(this,1)),clientInformation:sec(this.getClientInformation())}:void 0;return a};
var xec=function(a){Z.call(this,a)};U(xec,Z);xec.prototype.toObject=function(){var a=null!=this?{}:void 0;return a};
var yec=new DG("/peoplestack.PeopleStackAutocompleteService/Autocomplete",tec,U1,function(a){return a.serialize()},function(a){return jo(U1,a)});
var zec=new DG("/peoplestack.PeopleStackAutocompleteService/Lookup",X1,pec,function(a){return a.serialize()},function(a){return jo(pec,a)});
var Aec=new DG("/peoplestack.PeopleStackAutocompleteService/Warmup",wec,xec,function(a){return a.serialize()},function(a){return jo(xec,a)});
var Bec=function(a){var b={unaryInterceptors:[new y9b]};b=b||{};b.format="jspb";this.client_=new eH(b);this.hostname_=a};Bec.prototype.autocomplete=function(a,b){return zG(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Autocomplete",a,b||{},yec)};Bec.prototype.lookup=function(a,b){return zG(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Lookup",a,b||{},zec)};
var Y1=function(a,b,c,d){this.grpcClient_=a;d?a=mUa(d):(a=new Gr,lUa(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)};Y1.prototype.getMetric=function(){return this.trackers_.rpc(this.sourceInfo_)};Y1.prototype.send=function(a){var b=new tec;b.setAffinityType(this.affinity_).setQuery(this.query_).setClientInformation((new W1).setDevice(1));return this.grpcClient_.autocomplete(b,a)};
Y1.prototype.processResponse=function(a){var b=kUa(a,this.provenance_),c=new $r;lj(a,2)&&c.setAffinityVersion(m(a,T1,2).getAffinityVersion());return{data:b,metadata:c}};Y1.prototype.close=function(){};
var Z1=function(a,b,c,d,e){this.grpcClient_=a;a=new Gr;lUa(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)};Z1.prototype.getMetric=function(){return this.trackers_.rpc(this.sourceInfo_)};
Z1.prototype.send=function(a){var b=this,c=new X1;c.setAffinityType(this.affinity_).setClientInformation((new W1).setDevice(1));vec(c,this.keys_.map(function(d){return tUa(b.type_,d)}).filter(function(d){return!!d}));return this.grpcClient_.lookup(c,a)};
Z1.prototype.processResponse=function(a){var b=this.provenance_,c=new Map;a=r(rb(a,V1,1));for(var d=a.next();!d.done;d=a.next())if(d=d.value,wl(d,2,rec)){var e=jUa(yl(d,Fr,2,rec),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 $r}};Z1.prototype.close=function(){};
var Cec=function(a){Z.call(this,a)};U(Cec,Z);Cec.prototype.toObject=function(){return Dec(void 0,this)};var Dec=function(a,b){if(null!=b){var c={leanAutocomplete:nec(a,m(b,U1,1))};a&&(c.$jspbMessageInstance=b);return c}},Eec=zb(342338249,{leanOfflineData:0},Cec,Dec);fdc[342338249]=Eec;
var Fec=function(){};Fec.prototype.write=function(a,b){var c=new Cec;b=Bb(c,1,b);Eec.setExtensionFn(a,b)};Fec.prototype.read=function(a){return(a=a.getExtension(Eec))?m(a,U1,1):null};
var a2=function(a,b,c){this.grpcClient_=a;this.sourceInfo_=mUa("");this.trackers_=c;this.affinity_=X(b.getPeopleApi(),5,0)};a2.prototype.getMetric=function(){return this.trackers_.rpc(this.sourceInfo_)};a2.prototype.send=function(a){var b=new wec;b.setAffinityType(this.affinity_).setClientInformation((new W1).setDevice(1));var c=this.grpcClient_;return zG(c.client_,c.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Warmup",b,a||{},Aec)};
a2.prototype.processResponse=function(){return{data:[],metadata:new $r}};a2.prototype.close=function(){};
var Gec=new jzb;
var b2=function(a,b,c){this.delegate_=a;this.runtimeConfig_=b;this.offlineResponse_=c};b2.prototype.send=function(a){var b=this;return bf(function(c){return b.runtimeConfig_.isOffline_()?c.return(Gec):c.return(b.delegate_.send(a))})};b2.prototype.getMetric=function(){return this.delegate_.getMetric()};b2.prototype.processResponse=function(a){return a===Gec?this.offlineResponse_:this.delegate_.processResponse(a)};b2.prototype.close=function(a){this.delegate_.close(a)};
var Hec={data:[],metadata:l(new $r,5,!0)},Iec={data:new Map,metadata:l(new $r,5,!0)};l(new $r,5,!0);
var Jec=function(a){Z.call(this,a)};U(Jec,Z);g=Jec.prototype;g.getTimestamp=function(){return ej(this,1)};g.setTimestamp=function(a){return l(this,1,a)};g.hasTimestamp=function(){return dj(this,1)};g.getOwner=function(){return V(this,2)};g.setOwner=function(a){return l(this,2,a)};g.toObject=function(){return Kec(void 0,this)};var Kec=function(a,b){if(null!=b){var c={timestamp:n(p(b,1)),owner:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}},Lec=zb(342656659,{metadata:0},Jec,Kec);
fdc[342656659]=Lec;
var c2=function(a,b,c,d,e){this.delegate_=a;this.offlineStorage_=b;this.offlineDataTransformer_=c;this.owner_=d;this.storageTaskDelayMillis_=e;this.offlineMetadata_=null},Mec=function(a){var b,c;return bf(function(d){if(1==d.nextAddress)return Qt(d,2),cf(d,a.offlineStorage_.fetch(),4);if(2!=d.nextAddress){b=d.yieldResult;if(!b)return d.return(null);a.offlineMetadata_=b.getExtension(Lec);c=a.offlineMetadata_?n8b(a.offlineMetadata_.getOwner()):tr;return a.owner_.equals(c)?d.return(a.offlineDataTransformer_.read(b)):
d.return(null)}St(d);return d.return(null)})};
c2.prototype.send=function(a){var b=this,c,d,e,f,h;return bf(function(k){switch(k.nextAddress){case 1:return Qt(k,2),cf(k,b.delegate_.send(a),4);case 4:c=k.yieldResult;d=Date.now();if(c!==Gec){k.jumpTo(5);break}return cf(k,Mec(b),6);case 6:return e=k.yieldResult,k.return(e||Gec);case 5:return setTimeout(function(){var q=new edc;yr(q,Lec,(new Jec).setTimestamp(d).setOwner(String(b.owner_)));b.offlineDataTransformer_.write(q,c);b.offlineStorage_.store(q)},b.storageTaskDelayMillis_),k.return(c);case 2:return f=
St(k),cf(k,Mec(b),7);case 7:return(h=k.yieldResult)?k.return(h):k.return(Promise.reject(f))}})};c2.prototype.getMetric=function(){return this.delegate_.getMetric()};c2.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};c2.prototype.close=function(a){this.delegate_.close(a)};
var d2=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 z9b(b);a=ACa("peoplestack-pa",a.runtimeConfig_.getPeopleApiEnv());this.grpcPeopleStackClient_=new Bec(a);this.offlineDataTransformer_=
new Fec};d2.prototype.loadRankedItems=function(){var a=new Y1(this.grpcPeopleStackClient_,this.config_,this.trackers_,"");a=new b2(a,this.config_.runtimeConfig_,Hec);var b=this.config_,c=this.offlineDataTransformer_,d=b.runtimeConfig_.offlineStorage_;if(d){var e=b.runtimeConfig_.getUserEmail();e&&(e=new pr(1,e),b=ej(b.getPeopleApi(),14,5E3),a=new c2(a,d,c,e,b))}return B9b(this.dispatcher_,a)};
d2.prototype.loadAutocompleteItems=function(a){a=a?new Y1(this.grpcPeopleStackClient_,this.config_,this.trackers_,a):new a2(this.grpcPeopleStackClient_,this.config_,this.trackers_);a=new b2(a,this.config_.runtimeConfig_,Hec);return B9b(this.dispatcher_,a)};d2.prototype.loadLookupItems=function(a,b){a=new Z1(this.grpcPeopleStackClient_,this.config_,this.trackers_,a,b);a=new b2(a,this.config_.runtimeConfig_,Iec);return B9b(this.dispatcher_,a)};d2.prototype.loadContactItems=function(){};
var uUa=new Map([[1,1],[2,2]]);
var yUa=new Map([[3,3],[1,2],[2,1]]),Nec=new Map([[2,1],[4,2],[3,3],[1,4]]),Oec=function(a){this.delegate_=a};
Oec.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=Nr(a.id).setValue(c);if(rb(b,Q1,2).length||lj(b,3)){var d=1;if(rb(b,Q1,2).length){var e=rb(b,Q1,2)[0];p(e,1);d=Nec.get(e.getStatus())||d}lj(b,3)&&(e=m(b,Idc,3),To(e,1));4===(void 0===d?1:d)&&Date.now()}lj(b,4)&&(b=vUa(m(b,O1,4)),c.orgState_=b);To(a.contactMethod,7)&&(c.resultType_=2);b=c;break;case 3:b=a.contactMethod.getPhone();
b=b.getDisplayValue()||p(b,2)||"";b=Nr(a.id).setValue(b);break;case 4:b=yl(a.contactMethod,qr,4,rr);b=AUa(a,b);break;default:b=Nr(a.id||tr)}a.containerIds&&(b.sourceIds_=a.containerIds||[]);BUa(b,!!a.isMe);a.person&&a.person.hasAffinity()&&b.setPersonLoggingId(wUa(nba(p(a.person.getAffinity(),1))||""));a.contactMethod.hasDisplayInfo()&&zUa(b,a.contactMethod.getDisplayInfo());dj(a.contactMethod,10)&&(c=b,d=a.contactMethod.getTypeLabel(),e=new Vcc,e.altText_=d||"",c.tags_=[e]);a.target=b}else a.group?
CUa(a,a.group.getDisplayInfo()):a.contactLabel&&CUa(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 Pec=function(a,b){this.metrics_=a;this.state_=new kU(b)};g=Pec.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 e2=function(a){this.metrics_=a};e2.prototype.error=function(a,b){var c=this.metrics_,d=new Gr;a=d.setEventType(3).setErrorType(a);l(a,7,b);return new qcc(c,d)};e2.prototype.latency=function(a){var b=this.metrics_,c=new Gr,d=c.setEventType(2);l(d,5,a);return new s0(b,c)};e2.prototype.count=function(a){var b=this.metrics_,c=new Gr,d=c.setEventType(1);l(d,4,a);return new pcc(b,c)};var f2=function(a,b){return new occ(a.metrics_,b)};e2.prototype.rpc=function(a){return new Pec(this.metrics_,a)};
var Qec=function(a,b){this.ranker_=new mcc(a.getClient());this.loader_=new d2(a,b);b=Ucc;b=void 0===b?Ucc:b;this.targetFactory_=new qdc(a,new Oec(b))};
var Rec=function(){};Rec.prototype.suggest=function(){};var Sec=new Rec;
var Tec=function(){};Tec.prototype.create=function(){return Sec};var DUa=new Tec;
var Uec=function(){this.createSmartAddressFactory_=EUa;this.cacheConfigurators_=[];this.grpcClient_=null};
var FUa=function(a){this.delegate_=a};U(FUa,u0);
var Vec=function(a){this.keys_=new Set(a)};Vec.prototype.loadOrSkip=function(a){return this.keys_.delete(a)?a:null};Vec.prototype.isDone=function(){return!this.keys_.size};
var Wec=function(a){this.keys_=a;this.foundKeys_=new Set;this.delegate_=new Vec(a)};Wec.prototype.loadOrSkip=function(a){return this.delegate_.loadOrSkip(a)?(this.foundKeys_.add(a),!0):!1};Wec.prototype.isDone=function(){return this.delegate_.isDone()};var Xec=function(a){return a.keys_.filter(function(b){return!a.foundKeys_.has(b)})};
var Yec=new $r,Zec=Promise.resolve(new ks),$ec=function(a,b){this.trieFactory_=a;this.indexes_=s1(ej(b,31,5),1E3*zl(b,32,3600))};g=$ec.prototype;g.getCacheType=function(){return 2};g.flush=function(){this.indexes_.clear()};g.fetch=function(a){this.index(a,[],Yec);return Zec};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)||q1).search(a.getTerms()).getMatches(a.getCollector()).map(GUa)};
g.index=function(a){var b=a.getBoostKey();b.cacheKey&&(a=afc(this.trieFactory_,new Wec(b.ids),a.getFormat()),this.indexes_.set(b.cacheKey,a))};
var bfc=new Rcc(60,61,34);
var cfc=function(){};cfc.prototype.configure=function(a){var b=a.trackers,c=a.trieFactory,d=a.prefixCaches;a=a.clientConfig.getClient();W(a,30,!1)&&(c=new $ec(c,a),b=new Scc(c,b,bfc),d.unshift(b))};
var dfc=function(){return Date.now()},efc=function(a,b,c){this.staleMillis_=1E3*a;this.expiredMillis_=1E3*b;this.nowFn_=c;this.timestamp_=0};g=efc.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 IUa=new Map([[1,1],[2,2],[3,3],[8,6],[6,7],[7,5],[4,4],[9,9]]),HUa=new Map([[1,7],[2,5]]);
var ffc=function(a,b){this.delegate_=a;this.extendedData_=b};U(ffc,u0);
var gfc=function(a,b,c){this.group_=a;this.members_=b||[];this.totalMemberCount_=Math.max(c||0,this.members_.length);this.resultType_=W9b.get(this.group_.getTargetType())||0};g=gfc.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("Fe");};g.getDisplayName=function(){return""};
g.getDisplayValue=function(){return""};g.getDescription=function(){return""};g.getPhotoUrl=function(){return""};g.getMatchInfo=function(){return V9b};
var hfc=function(a){this.delegate_=a};g=hfc.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 KUa=function(a,b){this.delegate_=a;this.loggingToken_=b};U(KUa,hfc);KUa.prototype.getLoggingToken=function(){return this.loggingToken_};
var ifc=function(a){this.itemResolver_=a};ifc.prototype.create=function(a,b){var c=this,d=n8b(a);a=g2(this.itemResolver_,a);if(!a)return null;if(Hq(d))return d=(a.memberKeys||[]).map(function(h){return c.create(h,b)}).filter(Boolean),this.createGroup(a,d,b);var e,f=2===b&&1<(null==(e=a.coalescedKeys)?void 0:e.length)?a.coalescedKeys.map(function(h){return g2(c.itemResolver_,h)}).filter(Boolean):[a];return jfc(f,d,b)};
var jfc=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,v=q.getId().equals(b);if(!e||v)e=q.getResultType();q=LUa(q,k.provenance,c);v?(f=k.totalMemberCount,d.unshift(q),h=k.resultExtendedData):d.push(q)}b=Gq(e,d,f);return h?new ffc(b,h):b};
ifc.prototype.createGroup=function(a,b,c){c=LUa(a.target,a.provenance,c);var d=a.totalMemberCount||0;b=void 0===b?[]:b;c=new Fq(new gfc(c,b,void 0===d?0:d));return(a=a.resultExtendedData)?new ffc(c,a):c};
var MUa=[3,1,2,4,5,6,9,7,8],kfc=function(a,b){this.targetFactory_=a;this.resultFactory_=new ifc(this);a=b.getCacheStaleSec();var c=b.getCacheExpiredSec();var d=void 0===d?dfc:d;this.expiry_=new efc(a,c,d);this.affinityVersion_=0;this.ttlStorage_=new Map;this.lruStorage_=s1(ej(b,6,500),1E3*ej(b,7,43200));this.idTypes_=new Set(jb(b,25))};kfc.prototype.load=function(a,b){return this.resultFactory_.create(a,b)};var g2=function(a,b){return a.ttlStorage_.get(b)||a.lruStorage_.get(b)};g=kfc.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||!l8b.includes(b.id.getType())||this.idTypes_.has(b.id.getType())){var d=!1,e=String(b.id),f=(b.containerIds||[]).map(String),h=lfc(this,a,e);mfc(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,mfc(this,a,k,b)&&(h(k,b),d=!0);c&&e!==c&&mfc(this,a,c,b)&&(h(c,b),d=!0);d&&!b.target&&this.targetFactory_.processItem(b)}};
var mfc=function(a,b,c,d){var e=g2(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)?OUa(d)&&!OUa(e)||nfc(a,e)<nfc(a,d)||NUa(d)<NUa(e)||18===d.id.getType()&&18===e.id.getType()?!0:!1:String(d.id)===c},nfc=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},
lfc=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 ofc=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},qfc=function(a){if(a.isCompleted_)return Promise.resolve(i1(new ks,!1).setProvenance(5).setCode(0));a.pendingRequest_||(a.pendingRequest_=(new Promise(function(b,c){pfc(a,a.requestId_,function(d){a.isCompleted_=!0;b(d)},function(d){c(d)})})).finally(function(){a.pendingRequest_=null}));return a.pendingRequest_};
ofc.prototype.flush=function(){this.requestId_++;this.contacts_=[];this.totalItems_=0;this.nextPageToken_="";this.pendingRequest_=null;this.isCompleted_=!1};
var pfc=function(a,b,c,d){a.loader_.loadContactItems(a.nextPageToken_,pdc).then(function(e){if(b!==a.requestId_)d(i1(new ks,!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_?pfc(a,b,c,d):(a.totalItems_=a.contacts_.length,c(i1(new ks,!0).setProvenance(5).setCode(0)))}},function(e){e=isFinite(e)?
e:13;d(i1(new ks,!0).setProvenance(5).setCode(e))})};
ofc.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(),i1(new ks,!1).setProvenance(5).setCode(0)):qfc(this).then(function(q){d(k(),q)},function(q){q instanceof ks||(q=(new ks).setCode(13));d({results:[],begin:a,end:b,totalItems:0},q)})};
var QUa=function(a,b){this.delegate_=a;this.displayValue_=b};U(QUa,hfc);QUa.prototype.getDisplayValue=function(){return this.displayValue_};
var Vr=function(a,b){this.delegate_=a;this.targets_=b};U(Vr,u0);Vr.prototype.getTargetList=function(){return this.targets_};
var rfc=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=rfc.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=RUa(a,this.options);for(var d=r(a.keys()),e=d.next();!e.done;e=d.next())this.remainingIds.delete(String(e.value));d=r(b);for(e=d.next();!e.done;e=d.next()){e=e.value;var f=String(e);this.notFoundIds.set(f,e);this.remainingIds.delete(f)}d=(new bcc).setCallbackNumber(this.callbackNumber).setIsFirstCallback(0===this.callbackNumber).setIsLastCallback(this.isDone()).setCode(c.getCode());d.notFoundIdList_=b;b=new ccc(a,d);this.callbackNumber++;
this.listener(b,c)}};
var sfc=function(a,b){this.stages=a;this.indexer=b};sfc.prototype.flush=function(){this.indexer.flush()};
sfc.prototype.lookup=function(a,b,c,d){var e=this,f,h,k,q,v,y;return bf(function(E){switch(E.nextAddress){case 1:null==(f=d.getFilter())||f.reset(""),h=new rfc(a,b,c,d),k=1===h.queryScope()||2===h.queryScope(),q=r(e.stages),v=q.next();case 2:if(v.done){E.jumpTo(4);break}y=v.value;if(k&&1!==y.getStageType()){E.jumpTo(3);break}if(h.isDone()){E.jumpTo(4);break}return cf(E,y.lookup(h),3);case 3:v=q.next();E.jumpTo(2);break;case 4:return h.isDone()||h.notify(new Map,Array.from(h.remainingIds.values()),
i1((new ks).setProvenance(10),!1).setCode(0)),e.indexer.compact(),E.return()}})};
var tfc=function(){};tfc.prototype.createFromQuery=function(a){var b=a.getPrefix();if(0!==a.getCollector().resultCount()||!f0(b))return null;b=Nr(new pr(1,b)).setValue(b).setDataSource(3);b=Gq(b.getResultType(),[b],null);return(a=a.getResultFilter())?a.filterResult(b):b};tfc.prototype.createFromLookupId=function(a){if(1!==a.getType()||!f0(a.getValue()))return null;a=Nr(a).setValue(a.originalValue_).setDataSource(3);return Gq(a.getResultType(),[a],null)};
var ufc=function(){};ufc.prototype.createFromQuery=function(){return null};ufc.prototype.createFromLookupId=function(){return null};var vfc=new ufc;
var h2=function(a,b){this.storage=a;a=b.getClient();this.placeholderFactory=W(a,21,!1)?new tfc:vfc;this.notFoundIds=s1(ej(a,10,500),1E3*zl(a,11,600))};h2.prototype.compact=function(){this.notFoundIds.compact()};h2.prototype.flush=function(){this.notFoundIds.clear()};
h2.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(gUa(a,String(c)));d=r(d);for(var e=d.next();!e.done;e=d.next())this.storage.store(2,e.value,c)}};h2.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 wfc=new function(){this.ids=[];this.cacheKey=""};
var xfc=function(){};xfc.prototype.loadOrSkip=function(){return null};xfc.prototype.resultCount=function(){return 0};xfc.prototype.isDone=function(){return!0};var yfc=new xfc;
var zfc=function(){this.prefix_="";this.terms_=[];this.format_=0;this.collector_=yfc;this.boostKey_=wfc;this.listener_=function(){}};g=zfc.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 Afc=new zfc;
var Bfc=function(){this.fetchDone_=Promise.resolve((new ks).setCode(0))};g=Bfc.prototype;g.getCacheType=function(){return 0};g.flush=function(){};g.fetch=function(){return this.fetchDone_};g.index=function(){};g.search=function(){return[]};var Cfc=new Bfc;
var Dfc=function(a){a=Array.from(new Set(a));this.primary_=a.find(function(b){return 1===b.getCacheType()})||Cfc;this.prefetched_=a.filter(function(b){return 2===b.getCacheType()||1===b.getCacheType()});this.lazyLoaded_=a.filter(function(b){return 3===b.getCacheType()})};
Dfc.prototype.prefetch=function(a){var b=this,c,d,e,f,h,k;return bf(function(q){if(1==q.nextAddress)return cf(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(v){return v!==b.primary_}));for(e=h.next();!e.done;e=h.next())k=e.value,k.fetch(a);return q.return(c)})};
Dfc.prototype.warmUpSession=function(a){var b=this;if(1===a.queryScope())return Promise.resolve([(new ks).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 Efc=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()},Ffc=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},Hfc=function(a,b,c){var d,e,f,h;return bf(function(k){if(1==k.nextAddress){if(2===b.queryScope())return k.return();d=a.lazyLoaded_[a.lazyLoaded_.length-
1];e=r(a.lazyLoaded_);f=e.next()}if(3!=k.nextAddress){if(f.done)return k.jumpTo(0);h=f.value;return b.isDone()||b.isCancelled()?k.return():cf(k,Gfc(h,b,c,d===h),3)}f=e.next();return k.jumpTo(2)})},Gfc=function(a,b,c,d){var e,f;return bf(function(h){if(1==h.nextAddress)return 1===b.queryScope()?(e=i1((new ks).setProvenance(6).setCode(0),!1),h.jumpTo(2)):cf(h,a.fetch(b),3);2!=h.nextAddress&&(e=h.yieldResult);if(b.isCancelled())return h.return();f=a.search(b);c(f,e,d);df(h)})};
var Ifc=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=Ifc.prototype;g.getLastUpdatedTimestamp=function(){return this.storage_.getExpiry().getTimestamp()};g.getAffinityVersion=function(){return this.storage_.getAffinityVersion()};g.warmUpCache=function(){return i2(this,Afc)};
g.warmUpSession=function(a){var b=this,c,d,e,f,h;return bf(function(k){switch(k.nextAddress){case 1:return cf(k,i2(b,a),2);case 2:return c=k1(new j1,j2(b)),Qt(k,3,4),b.serverWarming_||(b.serverWarming_=b.prefixSearch_.warmUpSession(a)),cf(k,b.serverWarming_,6);case 6:return d=k.yieldResult,e=d.find(function(q){return 2===q.getProvenance()})||(new ks).setProvenance(2).setCode(0),k.return(l1(c.setSource(e),j2(b)));case 4:Tt(k);b.serverWarming_=null;Ut(k,0);break;case 3:return f=St(k),h=f instanceof
ks?f:(new ks).setProvenance(2).setCode(13),k.return(Promise.reject(l1(c.setSource(h),j2(b))))}})};
g.search=function(a){var b=this,c,d,e;return bf(function(f){switch(f.nextAddress){case 1:Jfc(b);Qt(f,2);if(!a.isSuggestQuery()){c=l1(k1((new j1).setSource(i1(new ks,!1).setProvenance(1).setCode(0)),j2(b)),j2(b));i2(b,a);f.jumpTo(4);break}return cf(f,i2(b,a),5);case 5:c=f.yieldResult;case 4:return cf(f,Kfc(b,a,c),6);case 6:Rt(f,0);break;case 2:d=St(f);if(a.isCancelled())return f.return();d instanceof j1?c=d:(e=d instanceof ks?d:(new ks).setCode(13),c=l1((new j1).setSource(e),j2(b)));a.getListener()(new n1([],
(new m1).setQuery(a.getPrefix()).setIsLastCallback(!0).setCacheState(c).setCode(c.getSource().getCode())));df(f)}})};
var Kfc=function(a,b,c){var d,e,f;return bf(function(h){if(1==h.nextAddress){if(b.isCancelled())return h.return();d=Ffc(a.prefixSearch_,b);e=b.isDone()||b.isSuggestQuery();if(d.length||e)if(b.getListener()(new n1(d,(new m1).setIsLastCallback(e).setQuery(b.getPrefix()).setCode(c.getSource().getCode()).setCacheState(c))),e)return h.return();f=!1;return cf(h,Hfc(a.prefixSearch_,b,function(k,q,v){v&&(f=!0);b.getListener()(new n1(k,(new m1).setIsLastCallback(v).setQuery(b.getPrefix()).setCode(q.getCode()).setCacheState(l1(k1((new j1).setSource(q),
p(c,2)),j2(a)))))}),2)}f||b.isCancelled()||b.getListener()(new n1([],(new m1).setIsLastCallback(!0).setQuery(b.getPrefix()).setCode(0).setCacheState(l1(k1((new j1).setSource((new ks).setProvenance(10).setCode(0)),p(c,2)),j2(a)))));df(h)})};Ifc.prototype.lookup=function(a,b,c){var d=this;Jfc(this);i2(this,Afc);var e=k1(new j1,j2(this));this.lookupCache_.lookup(a,X(this.clientInfo_,17,1),function(f,h){e.setSource(h);l1(e,j2(d));f.getMetadata().setCacheState(e);b(f)},c)};
Ifc.prototype.list=function(a,b,c,d){var e=this;i2(this,Afc);var f=k1(new j1,j2(this));this.listCache_.list(a,b,X(this.clientInfo_,18,1),function(h,k){var q=h.results;var v=new Zbc;v=l(v,1,h.begin);c(new $bc(q,v.setEnd(h.end).setTotalItems(h.totalItems).setCode(k.getCode()).setCacheState(l1(f.setSource(k),j2(e)))))},d)};
var i2=function(a,b){var c=j2(a),d=k1(new j1,c);if(a.storage_.getExpiry().isStale()){var e=a.storage_.getExpiry().isExpired();e&&a.storage_.getExpiry().getTimestamp()&&Lfc(a);a.cacheWarming_||(a.cacheWarming_=new Promise(function(f,h){var k,q,v;return bf(function(y){switch(y.nextAddress){case 1:return Qt(y,2,3),cf(y,a.prefixSearch_.prefetch(b),5);case 5:k=y.yieldResult,l1(d,j2(a)).setSource(k),f(d);case 3:Tt(y);a.cacheWarming_=null;Ut(y,0);break;case 2:q=St(y),v=q instanceof ks?q:(new ks).setCode(13),
l1(d,j2(a)).setSource(v),h(d),y.jumpTo(3)}})}));if(e)return a.cacheWarming_}return Promise.resolve(l1(d,c).setSource(i1((new ks).setProvenance(1),!1).setCode(0)))},j2=function(a){return a.storage_.getExpiry().getStatus()},Lfc=function(a){Efc(a.prefixSearch_);a.lookupCache_.flush();a.listCache_.flush();a.storage_.flush()},Jfc=function(a){var b=1===j2(a)?1:2;a.trackers_.count(b).increment()};
var Mfc=function(a){this.itemResolver_=a},Nfc=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(ecc).filter(Boolean),q=k.length-1;if(0<q){var v=k.join(".");k.push(k.join("-"));for(k.push(v);0<q;q--)k[q-1]+=k[q]}k.push(e);k.push(e.replace(LTa,""));"+"===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=g2(a.itemResolver_,d.value))&&Nfc(a,d,c);return c};
var Ofc=new acc,Pfc=function(a,b){this.itemResolver_=a;this.lookupCache_=b;this.indexer_=new Mfc(a);this.trieRoots_=new Map},afc=function(a,b,c){var d=(a.trieRoots_.get(c)||q1).cloneNode(b);b.isDone()||(b=Xec(b).map(n8b),a.lookupCache_.lookup(b,c,function(e){e=Array.from(e.getResults().keys(),String);e=Qfc(a,e);Array.prototype.push.apply(d.items_,e);gcc(d)},Ofc));return d},Rfc=function(a,b){a=Qfc(a,b);return new p1(a)},Qfc=function(a,b){var c=[];b=r(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;
var e=g2(a.itemResolver_,d);e&&(e=Nfc(a.indexer_,e),c.push(new fcc(d,e)))}return c};
var Sfc=function(){this.queryId_=0};Sfc.prototype.getQueryId=function(){return this.queryId_};
var Tfc=function(a){this.delegate=a};g=Tfc.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 bf(function(c){return c.return(b.delegate.warmUpSession(a))})};g.search=function(a){var b=this;return bf(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 Ufc=function(a,b){this.delegate_=a;this.name_=b};U(Ufc,hfc);Ufc.prototype.getName=function(){return this.name_};
var Vfc=function(){};Vfc.prototype.filterResult=function(a){var b=this,c=a.getTargetList().filter(function(d){return!b.shouldRemove(d)});return 0===c.length?null:c.length===a.getTargetList().length?a:new Fq(new Vr(a,c))};Vfc.prototype.reset=function(){};
var Wr=function(a){this.types_=a};U(Wr,Vfc);Wr.prototype.shouldRemove=function(a){return!this.types_.includes(a.getTargetType())};Wr.prototype.reset=function(){};var TUa=function(a){this.filters_=a};TUa.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};TUa.prototype.reset=function(a){for(var b=r(this.filters_),c=b.next();!c.done;c=b.next())c.value.reset(a)};var Wfc=Xr();
var Xfc=function(){this.delegate=Wfc};Xfc.prototype.filterResult=function(a){return this.delegate.filterResult(a)};Xfc.prototype.reset=function(a){this.delegate.reset(a)};var Yfc=function(a,b){a.delegate=null!=b?b:Wfc};
var Zfc=function(a){this.delegate=a};g=Zfc.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 k2=function(a,b){this.delegate_=a;this.limit_=b;this.count_=0};k2.prototype.loadOrSkip=function(a){a=this.delegate_.loadOrSkip(a);if(!a)return null;this.count_++;return a};k2.prototype.resultCount=function(){return this.count_};k2.prototype.isDone=function(){return this.count_>=this.limit_||this.delegate_.isDone()};
var $fc=function(a,b,c,d){this.delegate=a;var e=this;this.isLastSlot=d;d=a.getCollector();0<c.limit&&(d=new k2(d,c.limit));this.collector=d;this.listener=function(h){var k=h.getMetadata();k.getIsLastCallback()&&k.setIsLastCallback(e.isLastSlot);e.delegate.getListener()(h)};d=[];c.filter&&(d.push(c.filter),c.filter.reset(a.getPrefix()));b&&d.push(b);this.resultFilter=d.length?Xr.apply(null,u(d)):null;var f;this.scope=null!=(f=c.scope)?f:a.queryScope()};U($fc,Zfc);g=$fc.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 agc=function(a,b,c,d){this.delegate=a;this.slots=b;this.filterInterceptor=c;this.originalFilter=d};U(agc,Tfc);
agc.prototype.search=function(a){var b=this,c,d,e,f,h;return bf(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,v){return new $fc(a,b.originalFilter,q,v===c.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}Yfc(b.filterInterceptor,h.getResultFilter());return cf(k,b.delegate.search(h),3);
case 3:f=e.next();k.jumpTo(2);break;case 4:return k.return()}})};
var l2=function(a,b,c){this.delegate=a;var d=this;this.query_=b;this.terms_=MTa([b]);this.id_=new pr(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 xUa).setDisplayName(c),q=h.getPrimaryTarget();h=PUa(h,new Ufc(q,k))}return h});e=new n1(f,e.getMetadata());a.getListener()(e)}};U(l2,Zfc);l2.prototype.getPrefix=function(){return this.query_};l2.prototype.getTerms=function(){return this.terms_};
l2.prototype.getListener=function(){return this.listener_};
var bgc=function(a,b,c){this.cache_=a;this.queryFactory_=b;this.querySession_=new Sfc;this.clientInfo_=c};g=bgc.prototype;g.warmUpSession=function(a){a=cgc(this.queryFactory_,"",this.querySession_,a,function(){});return this.cache_.warmUpSession(a)};g.suggest=function(a,b){a=cgc(this.queryFactory_,"",this.querySession_,b,a);this.cache_.search(a)};
g.search=function(a,b,c){a=cgc(this.queryFactory_,a,this.querySession_,c,b);W(this.clientInfo_,28,!1)&&(b=a.getPrefix(),b.includes("<")&&(c=e8b(b),c.isValid()||(c=e8b(b+">")),a=c.isValid()&&c.getName()?new l2(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 m2=function(a,b,c){var d=this;this.cache_=a;this.queryFactory_=b;this.clientInfo_=c;this.getSessionCache_=W(c,34,!1)?function(e){var f=d.cache_,h=e.slots_;if(h.length){var k=e.getFilter(),q=new Xfc;e.setFilter(q);e=new agc(f,h,q,k)}else e=f;return e}:function(){return d.cache_}};m2.prototype.warmUpCache=function(){return this.cache_.warmUpCache()};m2.prototype.lookup=function(a,b,c){this.cache_.lookup(a,b,c)};m2.prototype.list=function(a,b,c,d){this.cache_.list(a,b,c,d)};
m2.prototype.beginSession=function(a){a=this.getSessionCache_(a);return new bgc(a,this.queryFactory_,this.clientInfo_)};
var dgc=function(a){this.ids=a.map(String);this.cacheKey=bUa(this.ids)+":"+this.ids.length};
var egc=function(a,b,c,d,e,f,h){var k=this;this.delegate_=a;this.prefix_=b;this.terms_=c;this.collector_=d;this.boostKey_=e;this.filter_=h;this.delegateListener_=f;this.callbackNumber_=0;this.listener_=function(q){if(!k.isCancelled()){var v=q.getMetadata();v.setCallbackNumber(k.callbackNumber_);v.setIsFirstCallback(!k.callbackNumber_);k.isDone()&&v.setIsLastCallback(!0);if(q.getResults().length||v.getIsLastCallback()||0!==v.getCode())k.callbackNumber_++,k.delegateListener_(q)}}};g=egc.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 fgc=function(a,b,c){this.format_=a;this.querySession_=b;this.queryScope_=c;this.id_=++this.querySession_.queryId_};fgc.prototype.getFormat=function(){return this.format_};fgc.prototype.isCancelled=function(){return this.querySession_.getQueryId()!==this.id_};fgc.prototype.queryScope=function(){return this.queryScope_};
var n2=function(){this.foundKeys_=new Set};U(n2,Vfc);n2.prototype.shouldRemove=function(a){return this.foundKeys_.has(String(a.getId()))};n2.prototype.has=function(a){return this.foundKeys_.has(a)};n2.prototype.add=function(a){this.foundKeys_.add(a)};n2.prototype.reset=function(){this.foundKeys_.clear()};
var ggc=function(a){this.delegate_=a;this.filter_=new n2};ggc.prototype.loadOrSkip=function(a){if(this.filter_.has(a))return null;a=this.delegate_.loadOrSkip(a);if(!a)return null;a=this.filter_.filterResult(a);if(!a)return null;for(var b=r(a.getTargetList()),c=b.next();!c.done;c=b.next())this.filter_.add(String(c.value.getId()));return a};ggc.prototype.resultCount=function(){return this.delegate_.resultCount()};ggc.prototype.isDone=function(){return this.delegate_.isDone()};
var hgc=function(a,b,c){this.delegate_=a;this.filter_=b;this.filter_.reset(c)};hgc.prototype.loadOrSkip=function(a){a=this.delegate_.loadOrSkip(a);return a?(a=this.filter_.filterResult(a))&&a.getTargetList().length?a:null:null};hgc.prototype.resultCount=function(){return this.delegate_.resultCount()};hgc.prototype.isDone=function(){return this.delegate_.isDone()};
var igc=function(a,b){this.storage_=a;this.format_=b};igc.prototype.loadOrSkip=function(a){return this.storage_.load(a,this.format_)||null};igc.prototype.resultCount=function(){return 0};igc.prototype.isDone=function(){return!1};
var jgc=[198,230,306,307,338,339],kgc=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)"+Qn(b),"g")})},UUa=function(a,b){var c=[];if(!b||!a.matchers_.length)return c;var d=or(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++):jgc.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 Yr=function(a,b){this.start_=a;this.end_=b};Yr.prototype.getStart=function(){return this.start_};Yr.prototype.getEnd=function(){return this.end_};
var Zr=function(a,b,c){this.displayNameMatches_=a;this.displayValueMatches_=b;this.givenNameMatches_=c};Zr.prototype.getDisplayNameMatches=function(){return this.displayNameMatches_};Zr.prototype.getDisplayValueMatches=function(){return this.displayValueMatches_};Zr.prototype.getGivenNameMatches=function(){return this.givenNameMatches_};
var o2=function(a,b){this.delegate_=a;this.matcher_=b;this.memberList_=a.getMemberList().map(function(c){return new o2(c,b)});this.matchInfo_=null};U(o2,u0);o2.prototype.getMemberList=function(){return this.memberList_};o2.prototype.getMatchInfo=function(){if(!this.matchInfo_){var a,b=(null==(a=this.getDelegate().getPrimaryTarget().getName())?void 0:a.getGivenName())||"";this.matchInfo_=VUa(this.matcher_,this.getDelegate().getDisplayName(),this.getDelegate().getDisplayValue(),b)}return this.matchInfo_};
var lgc=function(a,b){this.delegate_=a;this.matcher_=new kgc(b)};lgc.prototype.loadOrSkip=function(a){return(a=this.delegate_.loadOrSkip(a))?new o2(a,this.matcher_):null};lgc.prototype.resultCount=function(){return this.delegate_.resultCount()};lgc.prototype.isDone=function(){return this.delegate_.isDone()};
var mgc=/\s+/g,ngc=function(a,b){this.clientInfo_=a;this.storage_=b},cgc=function(a,b,c,d,e){var f=MTa([b]);b=(b||"").replace(mgc," ").trim();var h=!f.length,k=h?X(a.clientInfo_,15,1):X(a.clientInfo_,16,1),q=h?ej(a.clientInfo_,1,5):ej(a.clientInfo_,2,5);h=d.boostIds_;h=h.length?new dgc(h):wfc;var v=d.getFilter();a=new igc(a.storage_,k);v&&(a=new hgc(a,v,b));a=new ggc(a);a=new k2(a,q);a=f.length?new lgc(a,f):a;d=d.getQueryScope();c=new fgc(k,c,d);return new egc(c,b,f,a,h,e,v)};
var ogc=function(a){this.fetcher=a};ogc.prototype.getStageType=function(){return 2};
ogc.prototype.lookup=function(a){var b=this,c,d,e,f,h,k,q,v,y;return bf(function(E){switch(E.nextAddress){case 1:c=XUa(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;v=k;y=q;if(!v){E.jumpTo(3);break}return cf(E,b.fetcher.fetch(y,v,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 pgc=function(a,b){this.delegate=a;this.maxLookupChunkSize=mdc(b)};pgc.prototype.fetch=function(a,b,c,d,e){var f=this,h,k,q;return bf(function(v){switch(v.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){v.jumpTo(4);break}q=k.value;return cf(v,f.delegate.fetch(q,b,c,d,e),3);case 3:k=h.next();v.jumpTo(2);break;case 4:return v.return()}})};
var qgc=function(a,b,c){this.trackers=a;this.loader=b;this.indexer=c};
qgc.prototype.fetch=function(a,b,c,d,e){var f=this,h,k,q,v,y,E,I,N,L,T,Y,ka,ha;return bf(function(ra){switch(ra.nextAddress){case 1:return h=3===b?4:3,k=i1((new ks).setProvenance(h),!0).setCode(0),q=!0,Qt(ra,2),cf(ra,f.loader.loadLookupItems(b,a.map(function(Da){return Da.originalValue_}),pdc),4);case 4:v=ra.yieldResult;q=W(v.metadata,5);try{f.indexer.store(b,v.data,v.metadata)}catch(Da){f.trackers.error(21,10).report(),k.setCode(13),q=!0}Rt(ra,3);break;case 2:y=St(ra),E=Number(y),k.setCode(isFinite(E)&&
E?E:13),q=!0;case 3:I=e.getFilter();N=[];L=new Map;T=r(a);for(Y=T.next();!Y.done;Y=T.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 ra.return()}})};
var rgc=function(a){this.indexer=a};rgc.prototype.getStageType=function(){return 1};
rgc.prototype.lookup=function(a){var b=this,c,d,e,f,h,k;return bf(function(q){c=new Map;d=[];e=r(Array.from(a.remainingIds.values()));for(f=e.next();!f.done;f=e.next())if(h=f.value,k=b.indexer.load(h,a.getFormat(),a.getResultFilter(),!0,!1))c.set(h,k);else{var v=b.indexer;a:switch(h.getType()){case 1:case 6:var y=f0(h.getValue().trim());break a;case 2:case 7:y=h.getValue().replace(g8b,"");y=3<=y.length&&"0"<=y[0]&&"9">=y[0];break a;default:y=!0}(y?v.notFoundIds.get(String(h)):1)&&d.push(h)}a.notify(c,
d,i1((new ks).setProvenance(6),!1).setCode(0));return q.return()})};
var sgc=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 tfc:vfc;this.indexes_=s1(ej(e,8,250),1E3*zl(e,9,3600));this.notFound_=s1(ej(e,10,500),1E3*zl(e,11,600))};g=sgc.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 bf(function(k){switch(k.nextAddress){case 1:c=i1(new ks,!0).setProvenance(2).setCode(0);if(b.indexes_.has(a.getPrefix())||b.notFound_.has(a.getPrefix()))return k.return(i1(c,!1));if(!f0(a.getPrefix()))for(d=a.getPrefix().length;0<d;d--)if(b.notFound_.has(a.getPrefix().substr(0,d)))return k.return(i1(c,!1));e=a.getPrefix()?pdc:odc;Qt(k,2);return cf(k,b.loader_.loadAutocompleteItems(a.getPrefix(),e),4);case 4:f=k.yieldResult;Rt(k,3);break;case 2:return h=
St(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=ncc(this.ranker_,b,1);b=r(b);for(var d=b.next();!d.done;d=b.next())this.storage_.store(1,d.value);c=Rfc(this.trieFactory_,c);this.indexes_.set(a.getPrefix(),c)}else this.notFound_.set(a.getPrefix(),a.getPrefix())};
var tgc=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=tgc.prototype;g.getCacheType=function(){return 1};g.flush=function(){this.indexes_.clear()};
g.fetch=function(a){var b=this,c,d,e,f;return bf(function(h){switch(h.nextAddress){case 1:return c=i1(new ks,!0).setProvenance(1).setCode(0),d=b.storage_.getExpiry().isExpired()?pdc:odc,Qt(h,2),cf(h,b.loader_.loadRankedItems(d),4);case 4:e=h.yieldResult;Rt(h,3);break;case 2:return f=St(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())||q1).search(a.getTerms()).getMatches(a.getCollector()):[]};
g.index=function(a,b,c){if(!W(c,5)){l(c,5,!0);a=1!==this.coalescedSortOrder_?ncc(this.ranker_,b,this.coalescedSortOrder_):null;var d=ncc(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=Rfc(this.trieFactory_,d);a=a?Rfc(this.trieFactory_,a):c;this.indexes_.set(1,c);this.indexes_.set(2,a)}};
var ugc=new Rcc(27,32,33),vgc=new Rcc(24,23,20);
var wgc=function(){};wgc.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_,v=a.clientConfig.getClient();if(0<v.getCacheSize()){var y=X(v,19,1);y=new tgc(e,q,f,c,y);y=new Scc(y,b,vgc);h.push(y);k.push(new rgc(d))}0<ej(v,2,5)&&(c=new sgc(e,q,f,c,v),b=new Scc(c,b,ugc),h.push(b));h=new qgc(a.trackers,a.loader,a.indexer);h=new pgc(h,a.clientConfig);k.push(new ogc(h))};
var xgc=function(a,b,c){this.idType_=a;this.id_=b;this.options_=c};xgc.prototype.getId=function(){return this.id_};xgc.prototype.getIndex=function(){return this.getId()+":"+this.idType_+":"+this.options_.getIndex()};var p2=function(a,b,c){this.idType_=a;this.ids_=b;this.options_=c};p2.prototype.getIdType=function(){return this.idType_};p2.prototype.getOptions=function(){return this.options_};
p2.prototype.getKeys=function(){var a=this;return this.ids_.map(function(b){return new xgc(a.getIdType(),b,a.getOptions())})};var ygc=function(a,b){a.ids_=b;return a};p2.prototype.setIdType=function(a){this.idType_=a};p2.prototype.setOptions=function(){this.options_=void 0};p2.prototype.clone=function(){var a=this.getIdType(),b=this.getOptions();return new p2(a,this.ids_,b)};
var q2=function(a,b){this.ids_=new Set(b.ids_);this.parameters_=b.clone();this.loader_=a;this.resolver_=new v9b;this.isSent_=!1};q2.prototype.send=function(){if(!this.isSent_){this.isSent_=!0;var a=Array.from(this.ids_);this.loader_.load(ygc(this.parameters_,a)).then(this.resolver_.resolve,this.resolver_.reject)}};q2.prototype.promise=function(){return this.resolver_.promise};
q2.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 zgc=function(a,b,c){this.delegate_=a;this.batchedRequest_=null;this.tracker_=b;this.maxRequestSize_=mdc(c);this.lastRequestCreationTime_=0};
zgc.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 q2(this.delegate_,a);a=Date.now();var d=a-this.lastRequestCreationTime_;this.lastRequestCreationTime_=a;JD(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_=icc();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=ygc(a.clone(),d);var q=new q2(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 v=r(k.getKeys()),y=v.next();!y.done;y=v.next())b.inflightRequests_.delete(y.value.getIndex())})}c=Array.from(c);return Promise.all(c.map(function(v){return v.promise()})).then(function(v){return q?q.promise().then(function(y){return YUa(v,y.metadata)}):YUa(v)})};
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 zgc(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 r2=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 bf(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 cf(h,f,4)}if(2!=h.nextAddress)return h.return(h.yieldResult);Tt(h);a.searchRequests_.delete(e);
return Ut(h,0)})};r2.prototype.loadRankedItems=function(a){var b=this;return Dgc(this,81,"",function(){return b.delegate_.loadRankedItems(a)})};r2.prototype.loadAutocompleteItems=function(a,b){var c=this;return Dgc(this,82,a,function(){return c.delegate_.loadAutocompleteItems(a,b)})};r2.prototype.loadLookupItems=function(a,b,c){return this.lookupLoader_.load(new p2(a,b,c))};r2.prototype.loadContactItems=function(a,b){return this.delegate_.loadContactItems(a,b)};
var Egc=function(){return Date.now()},s2=function(a,b,c){this.delegate_=a;this.nowFn_=c;this.cacheFlushRateMillis_=1E3*zl(b.getClient(),14,300);this.serverWarmupRateMillis_=1E3*zl(b.getClient(),13,60);this.lastServerWarmup_=this.lastCacheFlush_=0};s2.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)};
s2.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)};s2.prototype.loadLookupItems=function(a,b,c){return this.delegate_.loadLookupItems(a,b,c)};s2.prototype.loadContactItems=function(a,b){return this.delegate_.loadContactItems(a,b)};
var t2=function(a,b,c){this.delegate_=a;this.listener_=b;this.options_=c;this.delegate_.warmUpSession(c)};t2.prototype.suggest=function(a){a=void 0===a?this.listener_:a;this.delegate_.suggest(a,this.options_)};t2.prototype.search=function(a,b){b=void 0===b?this.listener_:b;this.delegate_.search(a,b,this.options_);return this};t2.prototype.cancel=function(){this.delegate_.cancel();return this};t2.prototype.getReporter=function(a){a=void 0===a?K$b:a;return this.delegate_.getReporter(a)};
var Fgc=function(a,b){this.delegate_=a;this.members_=b};U(Fgc,u0);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(!Dq.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 Fq(new Fgc(a,c))};Ggc.prototype.reset=function(a){this.filter_.reset(a)};var as=function(a){this.filter_=Xr(a,new Ggc(a))};as.prototype.filterResult=function(a){return this.filter_.filterResult(a)};
as.prototype.reset=function(a){this.filter_.reset(a)};
var u2=function(a){this.delegate_=a};u2.prototype.warmUpCache=function(){return this.delegate_.warmUpCache().then(function(){return Promise.resolve()},function(a){var b=2;a instanceof j1&&(a=a.getSource())&&(b=a.getCode());return Promise.reject(b)})};u2.prototype.lookup=function(a,b,c){c=void 0===c?new acc:c;c.setFilter(ZUa(c.getFilter()));this.delegate_.lookup(a,b,c);return this};
u2.prototype.list=function(a,b,c,d){d=void 0===d?new Ybc:d;d.setFilter(ZUa(d.getFilter()));this.delegate_.list(a,b,c,d);return this};u2.prototype.beginSession=function(a,b){b=void 0===b?new $q:b;b=b.clone();b.setFilter(ZUa(b.getFilter()));var c=this.delegate_.beginSession(b);return new t2(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 $Ua=new Map([[1,1],[2,3],[3,5]]),Kgc=new Map([[1,2],[2,4],[3,5],[4,8],[6,15],[10,20]]),Lgc=new Map([[1,2],[2,9],[3,6],[4,6],[6,15],[10,20]]),Mgc=function(a,b){this.logContext_=bVa(a,b)};g=Mgc.prototype;g.getLogContext=function(){return this.logContext_};
g.createCountMetric=function(a,b,c){var d=b.source(),e=new u1;switch(d.getEventType()){case 1:d=e.setCount;b=X(b.source(),4,0);var f=new v1;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 y1;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 A1;b.hasItemCount()&&f.setItemCount(b.getItemCount());b.hasQueryLength()&&f.setQueryLength(b.getQueryLength());b.hasLookupInfo()&&
f.setLookupInfo(b.getLookupInfo());b.hasQueryScope()&&f.setQueryScope(b.getQueryScope());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 u1;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"),v=b.durationUsec("network"),y=b.durationUsec("processed");b=new z1;b.setLabel(h);b.setStatus(k);b.setBlockedUsec(q);b.setLatencyUsec(v);l(b,9,y);b.setStatusCode(c);ej(f,12,0)&&(c=ej(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 B1;f.setLabel(k);f.setStatusCode(c);h.hasItemCount()&&f.setItemCount(h.getItemCount());h.hasQueryLength()&&f.setQueryLength(h.getQueryLength());h.hasLookupInfo()&&f.setLookupInfo(h.getLookupInfo());h.hasQueryScope()&&f.setQueryScope(h.getQueryScope());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=aVa(p(b,2)),l(f,5,c),c=aVa(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 u1;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 w1;f.setType(e);isFinite(b)&&f.setLatencyUsec(b);e=f}else b=b.durationUsec("total"),f=new w1,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 u1;d.setClientInterface(a);a=d.setError;var e=b.source();b=e.getErrorType();e=X(e,7,0);var f=new x1;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 z0: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 Gr;Ir(b.setEventType(6),3);f2(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=!1,e=!1,f=f2(this.trackers_,sUa(b.getQueryScope()));f.call();this.delegate_.suggest(function(h){var k=h.getMetadata(),q=k.getCacheState();f.source.setCacheState(q);f.source.setItemCount(h.getResults().length);f.result(q.getSource().getCode());k.getIsFirstCallback()&&(d?c.trackers_.error(22,19).report():d=!0);k.getIsLastCallback()&&(e?c.trackers_.error(22,20).report():e=!0);k=c.trackers_.latency(90);k.start();try{a(h)}catch(v){throw c.trackers_.error(22,
11).report(),v;}finally{k.stop()}},b)}catch(h){throw this.trackers_.error(22,1).report(),h;}};
g.search=function(a,b,c){var d=this;try{var e=!1,f=!1,h=f2(this.trackers_,rUa(a,c.getQueryScope()));h.call();this.delegate_.search(a,function(k){var q=k.getMetadata(),v=q.getCacheState();h.source.setCacheState(v);h.source.setItemCount(k.getResults().length);h.result(v.getSource().getCode());q.getIsFirstCallback()&&(e?d.trackers_.error(23,19).report():e=!0);q.getIsLastCallback()&&(f?d.trackers_.error(23,20).report():f=!0);q=d.trackers_.latency(91);q.start();try{b(k)}catch(y){throw d.trackers_.error(23,
11).report(),y;}finally{q.stop()}},c)}catch(k){throw this.trackers_.error(23,1).report(),k;}};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 v2=function(a,b){this.delegate_=a;a=this.trackers_=b;b=new Gr;Ir(b.setEventType(6),1);f2(a,b).call()};v2.prototype.warmUpCache=function(){var a=this,b=f2(this.trackers_,qUa());b.call();return this.delegate_.warmUpCache().then(function(c){b.source.setCacheState(c);b.result(c.getSource().getCode());return c},function(c){c instanceof j1?(b.source.setCacheState(c),b.result(c.getSource().getCode())):(a.trackers_.error(17,1).report(),c=(new j1).setSource((new ks).setCode(2)));return Promise.reject(c)})};
v2.prototype.lookup=function(a,b,c){var d=this;try{var e=!1,f=!1,h=f2(this.trackers_,oUa(a,c.getQueryScope()));h.call();this.delegate_.lookup(a,function(k){var q=k.getMetadata(),v=q.getCacheState();h.source.setCacheState(v);h.source.setItemCount(k.getResults().size);for(var y=0,E=0,I=0,N=r(k.getResults().keys()),L=N.next();!L.done;L=N.next()){var T=L.value;i8b.includes(T.getType())?y++:j8b.includes(T.getType())?E++:k8b.includes(T.getType())&&I++}var Y=0;N=T=0;var ka=r(q.notFoundIdList_);for(L=ka.next();!L.done;L=
ka.next())L=L.value,i8b.includes(L.getType())?Y++:j8b.includes(L.getType())?T++:k8b.includes(L.getType())&&N++;L=h.source.getLookupInfo();y=l(L,2,y);E=l(y,1,E);I=l(E,3,I);I=l(I,5,Y);I=l(I,4,T);l(I,6,N);h.result(v.getSource().getCode());q.getIsFirstCallback()&&(e?d.trackers_.error(8,19).report():e=!0);q.getIsLastCallback()&&(f?d.trackers_.error(8,20).report():f=!0);q=d.trackers_.latency(89);q.start();try{b(k)}catch(ha){throw d.trackers_.error(8,11).report(),ha;}finally{q.stop()}},c)}catch(k){throw this.trackers_.error(8,
1).report(),k;}};v2.prototype.list=function(a,b,c,d){var e=this;try{var f=f2(this.trackers_,pUa());f.call();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;}};
v2.prototype.beginSession=function(a){var b=this.trackers_,c=new Gr;Ir(c.setEventType(6),2);f2(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=lU(this.clearcut_);a=this.logEventFactory_.eventsFactory_.create(b,a);a=r(a);for(b=a.next();!b.done;b=a.next())mU(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 WT,e=a.writer_,f=d.getMetadata()||new XT;d.setMetadata(f);var h=Nq(b)||new Tr;a=m(b,Ur,1)||new Ur;e.metadataStateWriter_.write(f,h,(W(a,9,!0)?ej(h,2,0):ej(h,1,0))||0,Tgc(b));e.contactInfoWriter_.write(d,a,c,h.getProvenance()||0);b=m(d,YT,4)||new YT;Bb(d,4,b);m(d,YT,4).setType(a.getFieldType());d.setLoggingId(a.getFieldLoggingId());return d};
var Vgc=function(){};
Vgc.prototype.create=function(a,b,c){var d=new cU,e=ej(b,3,0);l(d,1,e);e=ej(b,4,0);l(d,2,e);e=ej(b,5,0);l(d,3,e);d.setInstanceId(b.getInstanceId());d.setAffinityVersion(b.getAffinityVersion());e=new aU;Bb(e,3,d);7!==c&&b.hasQuery()&&(d=b.getQuery(),2===c&&e.setQuery(d),e.setQueryLength(d.length));var f=new bU;d=FCa(zl(b,9,0)-zl(b,8,0));l(f,2,d);d=new UT;Bb(d,1,e);Bb(d,6,f);e=new kTb;if(f=ej(b,6,0)){l(e,3,1E3*f);var h=1E3*(Date.now()-f);l(e,2,h)}l(e,1,!!f);Bb(d,3,e);d.setAffinityVersion(b.getAffinityVersion());b=
new gTb;b.setEventType(c);b.setMetadata(d);b.setClientInterface(a.clone());return b};
var Wgc=function(){};Wgc.prototype.extractPersonEventSource=function(a){return p(cVa(a),4)};Wgc.prototype.extractFieldEventSource=function(a){return p(cVa(a),3)};
var Xgc=function(){};Xgc.prototype.extractPersonEventSource=function(a){var b=a.getSources()||new fs;return(a.getQuery()||"").length?p(b,2):p(b,4)};Xgc.prototype.extractFieldEventSource=function(a){var b=a.getSources()||new fs;return(a.getQuery()||"").length?p(b,1):p(b,3)};
var Ygc=function(){};Ygc.prototype.extractPersonEventSource=function(a){return p(dVa(a),4)};Ygc.prototype.extractFieldEventSource=function(a){return p(dVa(a),3)};
var Zgc=function(a,b,c){this.defaultTokenGroups_=a;this.additionTokenGroups_=b;this.replacementTokenGroups_=c};
var $gc=new Map([[1,11],[2,12],[0,0]]),ahc=function(){};ahc.prototype.write=function(a,b,c){var d=new ZT;l(d,1,c);c=new dU;c.setPosition(d);c.setExistingSelectionsCount(b.getExistingSelectionsCount());Bb(a,8,c);b=[$gc.get(b.getContext())];jl(a,3,b)};
var bhc=new Map([[1,5],[2,4],[3,6],[7,13]]),chc=function(){};chc.prototype.write=function(a,b,c,d){var e=new ZT;l(e,1,c);a.setPosition(e);c=bhc.get(b.getProvenance())||0;d||1===X(b,4,0)?c=3:2===X(b,4,0)&&(c=10);jl(a,3,[c])};
var dhc=new Set([9,1,2]),ehc=function(){};ehc.prototype.write=function(a,b,c,d){if(8===c||10===c||9===c||2===c&&dhc.has(d))c=new YT,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()),Bb(a,4,c),c=new $T,c.setName(b.getName()),b=a.getMetadata()||new XT,Bb(b,2,c),a.setMetadata(b)};
var fhc=function(a){var b=new ehc;this.metadataStateWriter_=a;this.contactInfoWriter_=b},Tgc=function(a){var b=m(a,Ur,1);if(null==b?0:b.getIsPlaceholder())return!0;var c;a=or(((null==(c=a.getSessionState())?void 0:c.getQuery())||"").trim());b=or(((null==b?void 0:p(b,3))||"").trim());return!!a&&a===b};
var is=function(a){Z.call(this,a,-1,ghc)};U(is,Z);g=is.prototype;g.getEventType=function(){return p(this,1)};g.setEventType=function(a){return l(this,1,a)};g.getSessionState=function(){return m(this,d0,2)};g.setSessionState=function(a){Bb(this,2,a)};g.hasSessionState=function(){return lj(this,2)};var hVa=function(a,b){Bb(a,4,b)},ghc=[3];
is.prototype.toObject=function(){var a=null!=this?{eventType:n(p(this,1)),sessionState:V7b(void 0,this.getSessionState()),tokensList:Cb(rb(this,Sr,3),S7b),eventSources:c0(void 0,m(this,fs,4))}:void 0;return a};
var hhc=new Set([8]),ihc=function(){this.defaultEntityFactory_=new Sgc(new fhc(new chc));this.contextualEntityFactory_=new Sgc(new fhc(new ahc));this.extensionFactory_=new Vgc;this.defaultEventSourceExtractor_=new Xgc;this.additionEventSourceExtractor_=new Wgc;this.replacementEventSourceExtractor_=new Ygc};
ihc.prototype.create=function(a,b){var c=b.getSessionState()||new d0,d=b.getEventType();b=rb(b,Sr,3);var e=hs(b,fVa);var f=e.get(0);b=e.get(1);e=e.get(2);f=f?[].concat(u(hs(f,eVa).values())):[];b=b?[].concat(u(hs(b,eVa).values())):[];e=e?[].concat(u(hs(e,eVa).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(jhc(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(jhc(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(jhc(this,a,d,e.value,c,this.replacementEventSourceExtractor_,this.contextualEntityFactory_)));return b};
var jhc=function(a,b,c,d,e,f,h){var k=[];e=d[0].getSessionState()||e;var q=d.map(function(y){var E=new WT,I=h.writer_,N=E.getMetadata()||new XT;E.setMetadata(N);var L=Nq(y)||new Tr,T=m(y,Ur,1)||new Ur;I.metadataStateWriter_.write(N,L,ej(L,2,0)||0,Tgc(y));I.contactInfoWriter_.write(E,T,c,L.getProvenance()||0);E.setLoggingId(T.getPersonLoggingId());y=m(E,YT,4)||new YT;Bb(E,4,y);y.setType(p(T,8));return E});k.push(khc(a,b,c,f.extractPersonEventSource(e),q,e));q=[];d=r(d);for(var v=d.next();!v.done;v=
d.next())v=v.value,lj(v,1)&&hhc.has(m(v,Ur,1).getFieldType())||q.push(Ugc(h,v,c));q.length&&k.push(khc(a,b,c,f.extractFieldEventSource(e),q,e));return k},khc=function(a,b,c,d,e,f){a=a.extensionFactory_.create(b,f,c);a.getClientInterface().setEventSource(d);Ab(a,2,e);return a};
var lhc=function(a,b){this.logContext_=bs(cs(new ds,"PeopleStore.BigBug").setLogSource(X(a.getClearcut(),3,41)).setApplication(a.getClearcut().getSocialApplication()).setEnvironment(a.runtimeConfig_.getPeopleApiEnv()).setVersion("1002").setBaselineCl(447859179).setEnableClearcut(a.getClearcut().getEnableClearcut()),[].concat(u(a.runtimeConfig_.getExperiments().getExperimentIdsList()),u(es?es.getExperimentIds():[]))).setPeoplekitEntryPoint(b.getPeoplekitEntryPoint()).setClientAgent(2);this.eventsFactory_=
new ihc};lhc.prototype.getLogContext=function(){return this.logContext_};
var mhc=function(a){this.clientConfig_=a;this.reportingCache_=new Map};mhc.prototype.create=function(a){var b=a.serialize();this.reportingCache_.has(a.serialize())||(a=new lhc(this.clientConfig_,a),a=new Rgc(new Qgc(xUb(a),a)),this.reportingCache_.set(b,a));return this.reportingCache_.get(b)};
var nhc=function(a,b){this.reporting_=a;this.sharedSessionState_=b};g=nhc.prototype;g.reportDisplay=function(a){w2(this,js(a,1))};g.reportSelect=function(a,b){b=void 0===b?new z0:b;if(0!==b.getOriginator())for(var c=r(a),d=c.next();!d.done;d=c.next()){d=d.value;if(!lj(d,2)){var e=new Tr;Bb(d,2,e)}d=Nq(d);l(d,4,b.getOriginator())}b=ej(this.sharedSessionState_,4,0)+1;l(this.sharedSessionState_,4,b);w2(this,js(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(!lj(c,2)){var d=new Tr;Bb(c,2,d)}c=Nq(c);l(c,4,2)}b=ej(this.sharedSessionState_,4,0)+1;l(this.sharedSessionState_,4,b);w2(this,js(a,15,this.sharedSessionState_))};g.reportDeselect=function(a){w2(this,js(a,17,this.sharedSessionState_))};g.reportProceed=function(a){w2(this,js(a,10,this.sharedSessionState_))};
g.reportDismiss=function(){var a=this.sharedSessionState_,b=new is;a=a.clone();b.setSessionState(a);b.setEventType(7);hVa(b,a.getSources());w2(this,[b])};g.reportSave=function(a){w2(this,js(a,9,this.sharedSessionState_))};g.reportSend=function(a){w2(this,js(a,8,this.sharedSessionState_,!0))};var w2=function(a,b){b=r(b);for(var c=b.next();!c.done;c=b.next())a.reporting_.report(c.value)};
var ohc=function(a,b,c){this.delegate_=a;this.sharedSessionState_=c;l(this.sharedSessionState_,5,Math.floor(9007199254740991*Math.random()));this.reportingFactory_=b};g=ohc.prototype;g.warmUpSession=function(a){return this.delegate_.warmUpSession(a)};g.suggest=function(a,b){var c=this;Q7b(this.sharedSessionState_,ej(this.sharedSessionState_,3,0)+1);var d=this.sharedSessionState_.clone();d.setQuery("");R7b(d);this.delegate_.suggest(function(e){phc(c,e.getResults(),iVa(e),d,0);a(e)},b)};
g.search=function(a,b,c){var d=this;Q7b(this.sharedSessionState_,ej(this.sharedSessionState_,3,0)+1);var e=this.sharedSessionState_.clone();e.setQuery(a);R7b(e);var f=0;this.delegate_.search(a,function(h){f=phc(d,h.getResults(),iVa(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 nhc(this.reportingFactory_.create(a),this.sharedSessionState_)};g.getSessionState=function(){return this.sharedSessionState_};
var phc=function(a,b,c,d,e){var f=oUb();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=Nq(h)||new Tr;7!==k.getProvenance()&&k.setProvenance(c.getProvenance());l(k,2,e);l(k,1,b);Bb(h,2,k);h.setSessionState(d);b++}e++}return e};
var x2=function(a,b,c){this.delegate_=a;this.reportingFactory_=b;this.instanceId_=tq();this.clearcutConfig_=c};x2.prototype.warmUpCache=function(){return this.delegate_.warmUpCache()};
x2.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 ks;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 v=Nq(q)||new Tr;7!==v.getProvenance()&&v.setProvenance(f.getProvenance());l(v,4,h);Bb(q,2,v)}}b(d)},c)};
x2.prototype.list=function(a,b,c,d){this.delegate_.list(a,b,c,d)};x2.prototype.beginSession=function(a){var b=new d0,c=qhc(this,a);Bb(b,10,c);c=rhc(this,a);Bb(b,12,c);b.setInstanceId(this.instanceId_);a=this.delegate_.beginSession(a);return new ohc(a,this.reportingFactory_,b)};
var qhc=function(a,b){a=rb(a.clearcutConfig_,fs,5);return a.find(function(c){return c.getEntryPoint()===b.getEntryPoint()})||a.find(function(c){return 0===c.getEntryPoint()})||new fs},rhc=function(a,b){a=rb(a.clearcutConfig_,gs,6);return a.find(function(c){return c.getEntryPoint()===b.getEntryPoint()})||a.find(function(c){return 0===c.getEntryPoint()})||new gs};
var shc=function(a){this.delegate_=a};g=shc.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 y2=function(a,b){this.delegate_=a;this.smartAddressFactory_=b};y2.prototype.warmUpCache=function(){return this.delegate_.warmUpCache()};y2.prototype.lookup=function(a,b,c){this.delegate_.lookup(a,b,c)};y2.prototype.list=function(a,b,c,d){this.delegate_.list(a,b,c,d)};y2.prototype.beginSession=function(a){a=this.delegate_.beginSession(a);return new shc(a,this.smartAddressFactory_.create(a.getSessionState()))};
var thc={create:function(a){a=new J1(jo(ddc,'[[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(ldc(a).getIsEnabled()){var b=jo(ar,'[null,null,null,null,null,null,null,"AIzaSyABqJ85_R2irnKzMtGBL0iHuyFBi6Efk1w"]');b=new br(b,1)}else b=new cr;else b=new cr;var c=
a.runtimeConfig_.getExperiments().getProfileId(),d=a.runtimeConfig_;es=b.loadExperiments(ldc(a).getApplication(),(new dr).setPeopleApiEnv(d.getPeopleApiEnv()),c);b=new Uec;b.cacheConfigurators_.push(new Wcc);d=b;d=void 0===d?new Uec:d;b=a.getClearcut();b=new Mgc(b,a.runtimeConfig_);b=Wo(b);b=new e2(b);c=new Qec(a,b);var e=a.getClient();e=new kfc(c.targetFactory_,e);var f=void 0===f?Egc:f;f=new s2(c.loader_,a,f);f=new r2(f,b,a);var h=[new wgc,new cfc].concat(u(d.cacheConfigurators_)),k=[],q=[],v=new h2(e,
a),y=new sfc(q,v);q={clientConfig:a,trackers:b,storage:e,indexer:v,loader:f,loaderFactory:c,trieFactory:new Pfc(e,y),prefixCaches:k,lookupStages:q};h=r(h);for(v=h.next();!v.done;v=h.next())v.value.configure(q);k=new Dfc(k);f=new Ifc(a,b,k,y,new ofc(f,e),e);y=a.getClient();y=new ngc(y,e);k=a.getClient();f=new m2(f,y,k);f=new x2(f,new mhc(a),a.getClearcut());a=(0,d.createSmartAddressFactory_)(a,e,y,c.targetFactory_,b);f=new y2(f,a);f=new v2(f,b);return new u2(f)}};
var z2=function(){};z2.\u0275fac=function(a){return new (a||z2)};z2.\u0275cmp=w({type:z2,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&&(xe(),M(0,jVa,1,0,"div",0),M(1,kVa,2,0,"ng-container",1));a&2&&(C("ngIf",!b.isReady),B(1),C("ngIf",b.isReady))},dependencies:[Cx],encapsulation:2});
var A2=function(a,b){var c=this;this.fridge=a;this.userAccess=b;this.currentComponentId="";this.providedComponentId$=new S.ReplaySubject(1);this.accessCheckIsThinking$=new S.BehaviorSubject(!0);this.component$=this.providedComponentId$.pipe(bg(function(d){return c.fridge.watchOne(d)}));this.userIsComponentReader$=this.providedComponentId$.pipe(bg(function(d){d!==c.currentComponentId&&(c.accessCheckIsThinking$.next(!0),c.currentComponentId=d);return sK(c.userAccess,"reader","components/"+d).then(function(e){return e},
function(){return!1}).finally(function(){c.accessCheckIsThinking$.next(!1)})}));this.isReady$=(0,S.combineLatest)([this.fridge.thinking$,this.accessCheckIsThinking$]).pipe(R(function(d){var e=r(d);d=e.next().value;e=e.next().value;return!d&&!e}),ag(!1));this.manageComponentLink=""};A2.prototype.ngOnInit=function(){this.currentComponentId=this.componentId};A2.prototype.ngOnChanges=function(){this.providedComponentId$.next(this.componentId);this.manageComponentLink="/components/"+this.componentId};
A2.\u0275fac=function(a){return new (a||A2)(D(NJ),D(rK))};
A2.\u0275cmp=w({type:A2,selectors:[["b-async-component"]],inputs:{componentId:"componentId"},features:[Cc],decls:6,vars:7,consts:[[3,"isReady"],[3,"href",4,"ngIf","ngIfElse"],["notComponentReader",""],[3,"href"]],template:function(a,b){a&1&&(F(0,"b-async-data-placeholder",0),P(1,"async"),M(2,lVa,3,4,"a",1),P(3,"async"),M(4,mVa,2,1,"ng-template",null,2,Jf),G());if(a&2){var c=Ce(5);C("isReady",Q(1,3,b.isReady$));B(2);C("ngIf",Q(3,5,b.userIsComponentReader$))("ngIfElse",c)}},dependencies:[Cx,z2,Px],
encapsulation:2});
var B2=function(){};B2.\u0275fac=function(a){return new (a||B2)};
B2.\u0275cmp=w({type:B2,selectors:[["b-issue-priority-display"]],inputs:{issuePriority:"issuePriority"},decls:2,vars:2,consts:[[3,"ngClass"]],template:function(a,b){a&1&&(F(0,"span",0),O(1),G());a&2&&(C("ngClass","priority-"+b.issuePriority),B(1),a=b.issuePriority,a=null==a?"--":"string"===typeof a?CJb.get(a):BJb.get(a),De(" ",a," "))},dependencies:[Fx],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 C2=function(){this.showIssueMetadataContainer=!1;this.manageComponentLink=""};
li.Object.defineProperties(C2.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=qo(a.modifiedTime),a.teamId&&0!==a.teamId&&(this.issueTeamId=String(a.teamId)),a=a.issueState)this.issueType=NCb[a.type],this.issueStatus=OCb[a.status],this.issuePriority=a.priority,this.issueSeverity=DJb.get(a.severity),this.issueComponentId=String(a.componentId)}}});
C2.\u0275fac=function(a){return new (a||C2)};
C2.\u0275cmp=w({type:C2,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&&(F(0,"div",0)(1,"h3",1),O(2," Access is denied to this issue "),G(),M(3,pVa,33,11,"ol",2),G());a&2&&(B(3),C("ngIf",b.showIssueMetadataContainer))},dependencies:[Cx,
A2,B2,jV,Sx],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 D2=function(){};D2.\u0275fac=function(a){return new (a||D2)};D2.\u0275mod=uc({type:D2});D2.\u0275inj=gc({imports:[Wx]});
var E2=function(){};E2.\u0275fac=function(a){return new (a||E2)};E2.\u0275mod=uc({type:E2});E2.\u0275inj=gc({imports:[Wx,D2]});
var F2=function(){};F2.\u0275fac=function(a){return new (a||F2)};F2.\u0275mod=uc({type:F2});F2.\u0275inj=gc({imports:[Wx]});
var G2=function(){};G2.\u0275fac=function(a){return new (a||G2)};G2.\u0275mod=uc({type:G2});G2.\u0275inj=gc({imports:[Wx,E2,F2,kV]});
var qs=Symbol("Oe"),uhc=["OR","AND","NAND"],vhc=["OR","NAND"],whc="LT GT LE GE RANGE NRANGE DURATION NDURATION OR".split(" "),xhc=["AND","OR","NAND"],yhc=["OR","LT","GT","LE","GE"],ps=function(a){this.values=[];this.type="";this.isPendingCustomField=!1;this.label=a.label};ps.prototype[qs]=function(a){this.initType(a);this.initValues(a)};
ps.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]};ps.prototype.initValues=function(a){this.values=(a.values||[]).map(function(b){return{value:b.simpleValues[0].value}})};
var zhc=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}};
ps.prototype.toString=function(){var a=zhc(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=qVa()[b];if(c&&(c=c.queryLabel,null!=c)){b=c;break a}b=Ii(b).toLowerCase()}return b+(a.label.customFieldId||"")};
ps.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value}).filter(function(a){return a})};ps.prototype.getWidgetType=function(){return"default"};ps.prototype.isValid=function(){return this.getLegalTypes().includes(this.type)};ps.prototype.getLegalTypes=function(){return uhc};var Bhc=[],H2=function(a){ps.call(this,a);this.enumValues={}};U(H2,ps);g=H2.prototype;g.getLegalTypes=function(){return vhc};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[tVa(b.value.simpleValues[0].value)]=!0};g.valuesToStrings=function(){return Object.keys($g(this.enumValues,function(a){return a}))};g.getOptions=function(){return Bhc};var Chc=qaa().map(function(a){return{id:"p"+a,label:"P"+a}}),Dhc=function(a){H2.call(this,a)};U(Dhc,H2);
Dhc.prototype.getOptions=function(){return Chc};var Ehc=qaa().map(function(a){return{id:"s"+a,label:"S"+a}}),Fhc=function(a){H2.call(this,a)};U(Fhc,H2);Fhc.prototype.getOptions=function(){return Ehc};
var Ghc=$i("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){H2.call(this,a)};U(Hhc,H2);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){H2.call(this,a)};U(Jhc,H2);
Jhc.prototype.getOptions=function(){return Ihc};var Khc=[{id:"abuse"},{id:"pii"},{id:"user_request",label:"user request"},{id:"retention"}],Lhc=function(a){H2.call(this,a)};U(Lhc,H2);Lhc.prototype.getOptions=function(){return Khc};var ms=function(a){H2.call(this,a);this.allowedValues=[]};U(ms,H2);ms.prototype[qs]=function(a){this.allowedValues=a.customField.allowedValue.map(function(b){return{label:b,id:tVa(b)}});H2.prototype[qs].call(this,a)};
ms.prototype.valuesToStrings=function(){return Object.keys($g(this.enumValues,function(a){return a})).map(function(a){return'"'+a+'"'})};ms.prototype.getOptions=function(){return this.allowedValues};var Ds=function(a){ps.call(this,a);this.csv=""};U(Ds,ps);Ds.prototype.getWidgetType=function(){return"csv"};Ds.prototype.initValues=function(a){this.csv=(a.values||[]).map(function(b){return b.simpleValues[0].value}).join(",")};Ds.prototype.valuesToStrings=function(){return this.csv.split(",").map(function(a){return a.trim()}).filter(function(a){return a})};
var I2=function(a){Ds.call(this,a)};U(I2,Ds);I2.prototype.getWidgetType=function(){return"id"};I2.prototype.valuesToStrings=function(){return Ds.prototype.valuesToStrings.call(this).map(function(a){return"none"===a.toLowerCase()?"none":"any"===a.toLowerCase()?"any":String(Ki(a))})};var Mhc=function(a){Ds.call(this,a)};U(Mhc,I2);Mhc.prototype.getLegalTypes=function(){return vhc};var rs=function(a){Ds.call(this,a)};U(rs,Ds);rs.prototype.getWidgetType=function(){return"user"};
var J2=function(a){Ds.call(this,a)};U(J2,rs);J2.prototype.getLegalTypes=function(){return vhc};var ls=function(a){ps.call(this,a);this.dateTo=this.dateFrom=this.duration=""};U(ls,ps);var oWa=function(a){return a&&"string"===typeof a?a:""};ls.prototype.initType=function(a){ps.prototype.initType.call(this,a);var b=a.values&&a.values[0];b&&("RANGE"===b.type?this.type=a.negated?"NRANGE":"RANGE":eu(b.simpleValues[0].value,"d")&&(this.type=a.negated?"NDURATION":"DURATION"))};
ls.prototype.getWidgetType=function(){return"date"};ls.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)}};
ls.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 CC(2E3);a=Ri(a);var c=-1==a.indexOf("T")?" ":"T";a=a.split(c);var d=a[0].match($qb);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 po("d",h-1))):c?(b.setMonth(0),b.setDate(1),d=b.getDay()||7,b.add(new po("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(brb);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(arb)){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 v=h[4]?1E3*Number(h[4]):0;(h=0<=a&&100>a)&&(a+=400);a=Date.UTC(a,c,k,d,e,f,v);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)};ls.prototype.getLegalTypes=function(){return whc};var K2=function(a){ps.call(this,a)};U(K2,ps);K2.prototype.getWidgetType=function(){return"bool"};
K2.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"};K2.prototype.toString=function(){return Ahc(this)+":"+("OR"===this.type)};K2.prototype.getLegalTypes=function(){return vhc};var L2=function(a){ps.call(this,a)};U(L2,ps);L2.prototype.getWidgetType=function(){return"boolwithall"};
L2.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")};L2.prototype.toString=function(){var a=Ahc(this)+":";switch(this.type){case "OR":return a+"true";case "NAND":return a+"false";default:return a+"all"}};
L2.prototype.getLegalTypes=function(){return xhc};var os=function(a){ps.call(this,a)};U(os,ps);os.prototype.getWidgetType=function(){return"text"};os.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}})};os.prototype.valuesToStrings=function(){return this.values.map(function(a){return-1<a.value.indexOf(" ")?'"'+a.value+'"':a.value})};var M2=function(a){ps.call(this,a)};
U(M2,ps);M2.prototype.getWidgetType=function(){return"component"};M2.prototype.initValues=function(a){a.values&&(this.values=a.values.map(function(b){b=b.simpleValues[0].value;var c={value:b,includeSubs:!1};eu(b,"+")&&(b=b.slice(0,b.length-1),c.value=b,c.includeSubs=!0);return c}))};M2.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value+(a.includeSubs?"+":"")}).filter(function(a){return a})};var Qhc=function(a){ps.call(this,a)};U(Qhc,ps);
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};eu(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){ps.call(this,a)};U(Rhc,Qhc);Rhc.prototype.getWidgetType=function(){return"team"};var Shc=function(a){ps.call(this,a)};
U(Shc,ps);Shc.prototype.getWidgetType=function(){return"hotlist"};var Thc=function(a){ps.call(this,a)};U(Thc,ps);Thc.prototype.getWidgetType=function(){return"savedsearch"};var ns=function(a){Ds.call(this,a)};U(ns,Ds);ns.prototype.getWidgetType=function(){return"number"};ns.prototype.getLegalTypes=function(){return yhc};var Uhc=function(a){ls.call(this,a)};U(Uhc,ls);Uhc.prototype.initType=function(a){ls.prototype.initType.call(this,a);a.negated&&(this.type="ERR")};
var N2={},uVa=(N2.ATTACHMENT={ruleCtor:os,name:"Attachment name"},N2.COMMENT={ruleCtor:os},N2.TITLE={ruleCtor:os},N2.ASSIGNEE={ruleCtor:J2},N2.MODIFIER={ruleCtor:rs},N2.REPORTER={ruleCtor:J2},N2.VERIFIER={ruleCtor:J2},N2.CC={ruleCtor:rs},N2.COMPONENT_ID={ruleCtor:M2,name:"Component"},N2.TEAM_ID={ruleCtor:Rhc,name:"Team"},N2.TYPE={ruleCtor:Hhc},N2.STATUS={ruleCtor:Jhc},N2.PRIORITY={ruleCtor:Dhc},N2.SEVERITY={ruleCtor:Fhc},N2.BLOCKED_BY_ID={ruleCtor:I2},N2.BLOCKING_ID={ruleCtor:I2},N2.PARENT_ID={ruleCtor:I2},
N2.CANONICAL_ID={ruleCtor:Mhc},N2.ID={ruleCtor:Mhc},N2.FOUND_IN={ruleCtor:Ds},N2.TARGETED_TO={ruleCtor:Ds},N2.VERIFIED_IN={ruleCtor:Ds},N2.CL={ruleCtor:Ds,name:"Changelists"},N2.POSTMORTEM={ruleCtor:Ds,name:"Postmortems"},N2.MODIFIED={ruleCtor:ls},N2.RESOLVED={ruleCtor:Uhc},N2.CREATED={ruleCtor:ls},N2.VERIFIED={ruleCtor:Uhc},N2.DELETION_TIME={ruleCtor:ls,name:"Deletion time"},N2.SAVED_SEARCH_ID={ruleCtor:Thc,name:"Saved search"},N2.HOTLIST_ID={ruleCtor:Shc,name:"Hotlist"},N2.STAR={ruleCtor:K2,name:"Starred"},
N2.MUTE={ruleCtor:K2,name:"Muted"},N2.IN_PROD={ruleCtor:K2,name:"In production"},N2.CC_COUNT={ruleCtor:ns},N2.DUPLICATE_COUNT={ruleCtor:ns},N2.VOTE_COUNT={ruleCtor:ns},N2.LAST_MODIFIER={ruleCtor:J2,name:"Last Modified By"},N2.COMMENTER={ruleCtor:rs},N2.LAST_COMMENTER={ruleCtor:J2},N2.ARCHIVED={ruleCtor:L2},N2.IS_DELETED={ruleCtor:K2,name:"Deleted",queryLabel:"deleted"},N2.DELETION_REASON={ruleCtor:Lhc,name:"Deletion reason"},N2.MIN_SLO_TARGET={ruleCtor:ls,name:"Nearest SLO",queryLabel:"nearestslo"},
N2.EFFORT_LABEL={ruleCtor:Ds},N2._TEXT_={ruleCtor:os,queryLabel:"",name:"All fields"},N2);
var vs=function(a){Z.call(this,a,-1,Vhc)};U(vs,Z);vs.prototype.getType=function(){return X(this,1,0)};vs.prototype.setType=function(a){return l(this,1,a)};vs.prototype.hasType=function(){return dj(this,1)};var ws=function(a){Z.call(this,a,-1,Whc)};U(ws,Z);g=ws.prototype;g.getType=function(){return X(this,1,0)};g.setType=function(a){return l(this,1,a)};g.hasType=function(){return dj(this,1)};g.getValuesList=function(){return rb(this,O2,2)};g.setValuesList=function(a){Ab(this,2,a)};
g.getLabel=function(){return m(this,Xhc,4)};g.setLabel=function(a){return Bb(this,4,a)};g.hasLabel=function(){return lj(this,4)};var O2=function(a){Z.call(this,a,-1,Yhc)};U(O2,Z);g=O2.prototype;g.getType=function(){return X(this,1,0)};g.setType=function(a){return l(this,1,a)};g.hasType=function(){return dj(this,1)};g.getValuesList=function(){return rb(this,O2,2)};g.setValuesList=function(a){Ab(this,2,a)};var ss=function(a){Z.call(this,a)};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 dj(this,1)};g.getValue=function(){return V(this,2)};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return dj(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 dj(this,2)};var Vhc=[2];vs.prototype.toObject=function(){return Zhc(this)};var Zhc=function(a){if(null!=a)return{type:n(p(a,1)),expressionsList:Cb(rb(a,ws,2),$hc)}},Whc=[2];ws.prototype.toObject=function(){return $hc(void 0,this)};var $hc=function(a,b){if(null!=b){var c={type:n(p(b,1)),valuesList:Cb(b.getValuesList(),aic,a),negated:n(To(b,3)),label:bic(a,b.getLabel()),operator:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}},Yhc=[2,3];
O2.prototype.toObject=function(){return aic(void 0,this)};var aic=function(a,b){if(null!=b){var c={type:n(p(b,1)),valuesList:Cb(b.getValuesList(),aic,a),simpleValuesList:Cb(rb(b,ss,3),cic,a)};a&&(c.$jspbMessageInstance=b);return c}};ss.prototype.toObject=function(){return cic(void 0,this)};var cic=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 bic(void 0,this)};
var bic=function(a,b){if(null!=b){var c={field:n(p(b,1)),customFieldId:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};vs.messageId="b.QueryBuilderResponse";
var ts=function(a){Z.call(this,a)};U(ts,Z);ts.prototype.toObject=function(){return dic(this)};var dic=function(a){if(null!=a)return{syntaxError:n(p(a,1))}};ts.messageId="b.SyntaxErrorResponse";
var P2=function(a){Z.call(this,a)};U(P2,Z);P2.prototype.getKindCase=function(){return pb(this,us)};var us=[1,2];P2.prototype.toObject=function(){var a=null!=this?{queryBuilderResponse:Zhc(yl(this,vs,1,us)),syntaxErrorResponse:dic(yl(this,ts,2,us))}:void 0;return a};P2.messageId="b.QueryBuilderResponseOrError";
var Q2=function(a){this.executor=a},eic=function(a,b){b=Dm(b);return a.executor.get({url:"action/issue_query_parse/"+b,responseConstructor:P2}).then(FVa).then(function(c){var d;null!=(d=c.syntaxErrorResponse)?c=d:(c=c.queryBuilderResponse,c={type:c.type,expressions:c.expressions.map(vVa)});return c})};Q2.\u0275fac=function(a){return new (a||Q2)(t(oI))};Q2.\u0275prov=dc({token:Q2,factory:Q2.\u0275fac,providedIn:"root"});
var R2=function(a){var b=this;this.teamsService=a;this.placeholder="Choose Team";this.panelWidth="574px";this.disabled=!1;this.onTeamSelect=new Rw;this.onEmptyQuery=new Rw;this.searchQuery$=new S.Subject;this.teamSuggestions$=this.searchQuery$.pipe(Nf(300),Pf(),bg(function(c){return kM(b.teamsService,c)}),R(function(c){return JVa(c)}))};R2.prototype.updateSelectionOnChange=function(a){this.onTeamSelect.emit(a.option.value)};R2.prototype.search=function(a){a||this.onEmptyQuery.emit();this.searchQuery$.next(a)};
R2.prototype.displayFn=function(a){return a?a.name:""};R2.prototype.ngAfterViewInit=function(){};R2.\u0275fac=function(a){return new (a||R2)(D(jM))};
R2.\u0275cmp=w({type:R2,selectors:[["b-team-picker"]],viewQuery:function(a,b){a&1&&Bf(uN,7);if(a&2){var c;Af(c=Df())&&(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();F(0,"div",0)(1,"input",1,2);J("click",function(){z(c);var e=Ce(2);return A(b.search(e.value))})("input",
function(){z(c);var e=Ce(2);return A(b.search(e.value))});G();F(3,"mat-autocomplete",3,4);J("optionSelected",function(e){return b.updateSelectionOnChange(e)});M(5,IVa,6,8,"mat-option",5);P(6,"async");G()()}if(a&2){var d=Ce(4);B(1);Ae("placeholder",b.placeholder);C("ngModel",b.teamSelected)("disabled",b.disabled)("matAutocomplete",d);ge("aria-disabled",b.disabled);B(2);C("panelWidth",b.panelWidth)("displayWith",b.displayFn);B(2);C("ngForOf",Q(6,8,b.teamSuggestions$))}},dependencies:[Gx,Cx,tN,uN,xB,
sF,Jg,ly,ry,Px,Vx],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 xs=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 fic(a.slice(0,e+1),b.slice(0,e+1))})},fic=function(a,b){this.pathIds=a;this.pathNames=b;this.name=0<b.length?b[b.length-1]:"";this.pathNameText=b.join(" > ")};
var S2=function(a,b,c,d,e,f,h,k,q,v,y,E){wI.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=v;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=gic;this.globalTypeLabels=hic;Zg(qVa(),function(N,L){"SAVED_SEARCH_ID"===L||"TEAM_ID"===L&&!I.sessionIsInternal||"PARENT_ID"===L&&!xH(I.activeSession,"enableWtdmMvpUi")||(N.name?I.availableLabels.push([L,N.name]):I.availableLabels.push([L,vua(L)]))},this);this.availableLabels.sort(function(N,L){return oaa(N[1],L[1])});this.availableLabels.push(["SAVED_SEARCH_ID",
"Saved search"]);this.availableLabels.push(["CUSTOM_FIELD","Custom field"]);this.state="INIT"};U(S2,wI);S2.\u0275dir=wI.\u0275dir;S2.prototype.schedule=function(a){this.subscriptions.add(S.asyncScheduler.schedule(a))};S2.prototype.ngOnInit=function(){this.cdr.detectChanges()};
var kic=function(a,b){a.reset();b?iic(a,b):(a.expressions=jic.map(function(c){return sVa(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()},
iic=function(a,b){eic(a.issueSearchResources,b).then(function(c){if(c.syntaxError)return a.state="SYNTAX_ERROR",eo(a.analytics,"search","adv-search-syntax-error"),a.cdr.detectChanges(),null;a.expressionType=c.type;a.expressions=[];c=c.expressions.map(function(d){return lic(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",eo(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()})},lic=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?mic(a,b.label.customFieldId).then(function(c){b.customField=c;return nic(a,b)}):Promise.resolve(nic(a,b))},mic=function(a,b){return a.customFields[b]?Promise.resolve(a.customFields[b]):
a.customFieldsApi.get(b).then(function(c){return a.customFields[b]=c})},nic=function(a,b){b="ERR"===b.type?null:rVa(b);if(!b||b&&!b.isValid())return null;oic(a,b);return b},oic=function(a,b){if("COMPONENT_ID"===b.label.field){var c=r(b.values);for(b=c.next();!b.done;b=c.next())b=AC(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]||pic(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})};S2.prototype.fetchComponent=function(a){var b=this;this.componentActions.get(a).then(function(c){b.components[a]=c})};
var pic=function(a,b){kM(a.teamsService,b).pipe(R(function(c){return c.getTeamSuggestionsList()}),Mf(function(){return(0,S.of)([])}),cg(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:""}})},qic=function(a){var b="AND"===a.expressionType?" ":" | ";return lib(a.expressions.map(function(c){return c.label?c.toString():""}),jaa).join(b)};
S2.prototype.getState=function(){return this.state};S2.prototype.reset=function(){this.expressionType="AND";this.expressions=[];this.state="INIT"};
var LWa=function(a,b){var c=a.expressions[b],d=c.label;"CUSTOM_FIELD"===d.field?c.isPendingCustomField=!0:(a.expressions[b]=sVa(d.field),JWa(a,a.expressions[b]));a.cdr.detectChanges()},JWa=function(a,b){var c=b.getWidgetType();"component"===c||"savedsearch"===c||"hotlist"===c||"text"===c||"team"===c?As(a,b):"date"===c&&(b.dateFrom||(b.dateFrom=Phc(new Ji)),b.dateTo||(b.dateTo=Phc(new Ji)))};S2.prototype.removeExpression=function(a){ya(this.expressions,a);this.cdr.detectChanges()};
var As=function(a,b){var c={value:""};b.values.push(c);"COMPONENT_ID"===b.label.field?ZVa(a,c):"TEAM_ID"===b.label.field?fWa(a,c):Cs(a,c);a.cdr.detectChanges()},zs=function(a,b,c){ya(b.values,c);b.values.length||a.removeExpression(b);a.cdr.detectChanges()},Cs=function(a,b){a.chipUnderEdit=b;a.cdr.detectChanges()},ZVa=function(a,b){Cs(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()})},
fWa=function(a,b){Cs(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()})},Bs=function(a){a.chipUnderEdit=null;a.cdr.detectChanges()},hWa=function(a,b){eo(a.analytics,io.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;Bs(a);a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-team-picker input").focus()})};
S2.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]};S2.prototype.getCustomFieldName=function(a){return(a=a.label.customFieldId)?this.customFields[a].name||a:""};
var hic={AND:"Match all (AND)",OR:"Match any (OR)"},gic={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"}},jic=["COMPONENT_ID","ASSIGNEE","STATUS","_TEXT_"];S2.\u0275fac=function(a){return new (a||S2)(D(QM),D(kL),D(wZ),D(MN),D(eL),D(Q2),D(vH),D(pd),D(IK),D(zT),D(jM),D(sI,2))};
S2.\u0275cmp=w({type:S2,selectors:[["b-advanced-search"]],features:[Ge([sI]),ae],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&&M(0,OWa,9,6,"div",0);a&2&&C("ngIf","SUCCESS"===b.getState())},dependencies:[Gx,Cx,WU,GV,Jg,ly,Dy,ry,bY,BB,oC,dF,iF,gF,lF,XS,xB,tQ,R2,DV,Tx,BM,
CM],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 T2=function(){};T2.\u0275fac=function(a){return new (a||T2)};T2.\u0275mod=uc({type:T2});T2.\u0275inj=gc({imports:[Wx,wN,NO,lH,Gy]});
var U2=function(){};U2.\u0275fac=function(a){return new (a||U2)};U2.\u0275mod=uc({type:U2});U2.\u0275inj=gc({imports:[Wx,XU,HV,Gy,kY,BG,pC,wF,rC,mF,YS,uQ,KM,T2,FV]});
var ric=function(a){Z.call(this,a)};U(ric,Z);g=ric.prototype;g.getExperimentId=function(){return ej(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 sic(void 0,this)};
var sic=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 uic=function(a){Z.call(this,a,-1,tic)};U(uic,Z);var tic=[1];uic.prototype.toObject=function(){var a=null!=this?{featuresList:Cb(rb(this,ric,1),sic)}:void 0;return a};uic.messageId="b.ListBeapFeaturesResponse";
var V2=function(a){this.executor=a};V2.prototype.fetch=function(){return this.executor.get({url:"action/experiments",responseConstructor:uic}).pipe(R(function(a){return rb(a,ric,1)}))};V2.\u0275fac=function(a){return new (a||V2)(t(nI))};V2.\u0275prov=dc({token:V2,factory:V2.\u0275fac,providedIn:"root"});
var W2=function(a){JJ.call(this,{freshUntil:Infinity,ancientAfter:Infinity});this.beapApi=a;this.recordType="beapFeature";this.idForRecord=function(b){return""+b.getExperimentId()}};U(W2,JJ);W2.prototype.fetchAll=function(){return this.beapApi.fetch().pipe(R(function(a){return{results:a}}))};W2.\u0275fac=function(a){return new (a||W2)(t(V2))};W2.\u0275prov=dc({token:W2,factory:W2.\u0275fac,providedIn:"root"});
var X2=function(a){this.beapFridge=a};X2.prototype.getFeature=function(a){return vic(this,"ALL").pipe(R(function(b){return b.find(function(c){return c.getExperimentId()===a})}))};var vic=function(a,b){b=void 0===b?"ALL":b;var c="ALL"===b,d="TEAM_FOOD"===b?1:2;return GGb(a.beapFridge,{}).pipe(R(function(e){return e.results.filter(function(f){return c?!0:X(f,3,0)===d})}))};X2.prototype.refresh=function(){LJ(this.beapFridge,{})};X2.\u0275fac=function(a){return new (a||X2)(t(W2))};
X2.\u0275prov=dc({token:X2,factory:X2.\u0275fac,providedIn:"root"});
var Y2=function(){};Y2.\u0275fac=function(a){return new (a||Y2)};
Y2.\u0275cmp=w({type:Y2,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&&(qe(0,0),M(1,PWa,1,0,"div",1),M(2,QWa,1,0,"div",2),re());a&2&&(C("ngSwitch",b.featureStage),B(1),C("ngSwitchCase","TEAM_FOOD"),B(1),C("ngSwitchCase","EARLY_ACCESS"))},dependencies:[Ix,Jx],styles:[".badged[_ngcontent-%COMP%]::after{margin-left:0}"]});
var Z2=function(a){var b=this;this.beapService=a;this.experimentId$=new S.ReplaySubject(1);this.featureState$=this.experimentId$.pipe(bg(function(c){return b.beapService.getFeature(c)}));this.featureStage$=this.featureState$.pipe(R(function(c){if(!c)return"UNKNOWN";c=X(c,3,0);return 1===c?"TEAM_FOOD":2===c?"EARLY_ACCESS":"UNKNOWN"}))};Z2.prototype.ngOnChanges=function(){this.experimentId$.next(this.experimentId)};Z2.prototype.ngOnInit=function(){};Z2.\u0275fac=function(a){return new (a||Z2)(D(X2))};
Z2.\u0275cmp=w({type:Z2,selectors:[["b-app-beap-state-indicator"]],inputs:{experimentId:"experimentId"},features:[Cc],decls:2,vars:3,consts:[[3,"featureStage"]],template:function(a,b){a&1&&(H(0,"b-feature-stage-label",0),P(1,"async"));if(a&2){var c;C("featureStage",null!==(c=Q(1,1,b.featureStage$))&&void 0!==c?c:void 0)}},dependencies:[Y2,Px],encapsulation:2});
var a3=function(){};a3.\u0275fac=function(a){return new (a||a3)};a3.\u0275mod=uc({type:a3});a3.\u0275inj=gc({imports:[Wx]});
var b3=function(){};b3.\u0275fac=function(a){return new (a||b3)};b3.\u0275mod=uc({type:b3});b3.\u0275inj=gc({imports:[Wx,a3]});
var c3=function(a){this.domSafe=a;this.buttonLabel="";this.alertMode=this.menuMode=!1},RWa=function(a){uP(a.domSafe,"https://g3doc.corp.google.com/company/teams/buganizer/release-notes/b3-releasenotes.md")};c3.\u0275fac=function(a){return new (a||c3)(D(tP))};
c3.\u0275cmp=w({type:c3,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&&(M(0,SWa,3,3,"button",0),M(1,TWa,2,1,"button",1));a&2&&(C("ngIf",!b.menuMode),B(1),C("ngIf",b.menuMode))},dependencies:[Cx,dF,BB,gF,sF],styles:["[_nghost-%COMP%] { display: flex; }"]});
var d3=function(a,b,c){wI.call(this);this.session=a;this.appsEvents=b;this.prefsManager=c;this.density="COMFORTABLE";this.enableWhatsNewDialog=xH(a,"enableWhatsNewDialog");this.enableBeap=xH(a,"enableBeap")};U(d3,wI);d3.\u0275dir=wI.\u0275dir;g=d3.prototype;g.ngOnInit=function(){var a=this;this.prefsManager.preferences$.pipe(cg(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})};d3.\u0275fac=function(a){return new (a||d3)(D(vH),D(MK),D(VI))};
d3.\u0275cmp=w({type:d3,selectors:[["b-app-settings-menu"]],features:[ae],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&&(F(0,"button",0),H(1,"mat-icon",1),G(),F(2,"mat-menu",null,2)(4,"div",3),O(5,"Display Density"),G(),F(6,"button",4),J("click",function(){return b.setDensity("COMFORTABLE")}),F(7,"span",5),H(8,"mat-icon",6),G(),O(9," Comfortable "),G(),F(10,"button",7),J("click",function(){return b.setDensity("COZY")}),F(11,"span",5),H(12,"mat-icon",6),G(),O(13," Cozy "),G(),F(14,"button",8),J("click",function(){return b.setDensity("COMPACT")}),F(15,"span",5),H(16,"mat-icon",6),G(),O(17," Compact "),G(),H(18,"mat-divider"),
F(19,"button",9),J("click",function(d){return b.browseComponents(d)}),O(20,"Browse components"),G(),F(21,"button",9),J("click",function(d){return b.manageHotlists(d)}),O(22,"Manage hotlists"),G(),M(23,UWa,2,0,"button",10),F(24,"button",9),J("click",function(d){b.appsEvents.topBarEvents.openSettings.next({newTab:d.ctrlKey||d.metaKey})}),O(25,"Settings"),G(),M(26,VWa,3,0,"a",11),M(27,WWa,3,1,"ng-container",12),G());if(a&2){var c=Ce(3);C("disabled",b.session.isAnonymous())("matMenuTriggerFor",c);B(6);
le("b-menu-item-checked","COMFORTABLE"===b.density);ge("aria-checked","COMFORTABLE"===b.density);B(4);le("b-menu-item-checked","COZY"===b.density);ge("aria-checked","COZY"===b.density);B(4);le("b-menu-item-checked","COMPACT"===b.density);ge("aria-checked","COMPACT"===b.density);B(12);C("ngIf",b.enableBeap);B(1);C("ngIf",b.enableWhatsNewDialog)}},dependencies:[Cx,iF,gF,lF,BB,YH,sF,dF,c3,qP,Y2],encapsulation:2,changeDetection:0});
var e3=function(a){this.theme=a;this.isDark=!1;this.iconName="brightness-4"};e3.prototype.ngOnInit=function(){this.theme.loadLocalDarkmode();wic(this)};var wic=function(a){a.isDark=a.theme.clientDarkmodeSubject.getValue();a.iconName=a.isDark?"brightness-high":"brightness-4"};e3.\u0275fac=function(a){return new (a||e3)(D(SO))};
e3.\u0275cmp=w({type:e3,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&&(F(0,"button",0),J("click",function(){var c=b.theme;c.setLocalDarkmode(!c.clientDarkmodeSubject.getValue());c.clientStreamzService&&HE(c.clientStreamzService,"toggleDarkmode",!c.clientDarkmodeSubject.getValue());jNb(c,!c.clientDarkmodeSubject.getValue());wic(b)}),
H(1,"mat-icon",1),G());a&2&&(B(1),C("svgIcon",b.iconName))},dependencies:[BB,dF,sF],encapsulation:2});
var f3=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=cj(this.session.getUserPreferences());this.url$=this.router.events.pipe(rf(function(k){return k instanceof zI}),R(function(k){return k.url}),ag(window.location.pathname));this.showNewVersionButton$=this.url$.pipe(R(function(k){return ona()?!1:!!/issues\/\d+/i.test(k)}));this.enableWhatsNewDialog=xH(a,"enableWhatsNewDialog");
this.majorReleaseNotesUpdated=xH(a,"majorReleaseNotesUpdated")};
f3.prototype.toggleNewIssueDetailsPage=function(a){var b=this,c,d;return bf(function(e){if(1==e.nextAddress)return c=b.userPreferencesManager.newIssueDetailsPagePreferencesSubject$.value,cf(e,(0,S.firstValueFrom)(b.userPreferencesManager.save({newIssueDetailsPagePreferences:Object.assign({},c,{enableNewIssueDetailsPage:a,newIdpOptOut:!a})})),2);d=a?"new-idp-on":"new-idp-off";eo(b.analytics,"prefs","change",d);window.location.reload();df(e)})};
f3.\u0275fac=function(a){return new (a||f3)(D(vH),D(UO),D(tP),D(rP),D(VI),D(QM),D(Fk))};
f3.\u0275cmp=w({type:f3,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&&(M(0,ZWa,3,2,"ng-container",0),P(1,"async"),H(2,"theme-change-btn"),M(3,$Wa,1,1,"b-whats-new-button",1),M(4,aXa,2,0,"button",2),F(5,"button",3),J("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)}),H(6,"mat-icon",4),G(),H(7,"b-app-settings-menu"));a&2&&(C("ngIf",Q(1,2,b.showNewVersionButton$)),B(3),C("ngIf",b.enableWhatsNewDialog))},dependencies:[Cx,BB,sF,dF,c3,qP,e3,d3,Px],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 g3=function(a){this.currentTracker=a;this.isTrackerExpanded=!1};g3.\u0275fac=function(a){return new (a||g3)(D(vM))};
g3.\u0275cmp=w({type:g3,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&&(F(0,"button",0),J("menuOpened",function(){return b.isTrackerExpanded=!0})("menuClosed",function(){return b.isTrackerExpanded=!1}),H(1,"mat-icon",1),G(),F(2,"mat-menu",2,3)(4,"span",4),O(5,"Select a tracker"),G(),M(6,bXa,4,4,"button",5),G());if(a&2){var c=Ce(3);C("matMenuTriggerFor",c);ge("aria-label",b.isTrackerExpanded?"Expanded tracker menu":"Collapsed tracker menu");B(6);C("ngForOf",
b.associatedTrackers)}},dependencies:[Gx,BB,dF,iF,gF,lF,sF],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:.8125rem;white-space:nowrap}\n/*# sourceMappingURL=tracker_switcher.css.map */"],
changeDetection:0});
var dXa=function(a){return[a]},eXa=function(){return[]},h3=function(a){this.activeSession=a;this.clickMenu=new Rw;this.showMenu=!1;this.clickLogo=new Rw;this.chips=[]};h3.prototype.ngOnInit=function(){this.showMenu=!this.activeSession.isAnonymous()&&this.clickMenu.observed};h3.\u0275fac=function(a){return new (a||h3)(D(vH))};
h3.\u0275cmp=w({type:h3,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&&(xe(),M(0,cXa,2,0,"button",0),F(1,"a",1),J("click",function(){return b.clickLogo.emit()}),H(2,"img",2)(3,"img",3),F(4,"h1"),O(5),G()(),ye(6),M(7,fXa,2,5,"output",4));a&2&&(C("ngIf",b.showMenu),B(1),ge("href",b.href?b.href:void 0,Md),B(1),C("src",b.imgSrc,Md),B(1),C("src",b.imgSrcDark||b.imgSrc,Md),B(2),Ee(b.name),B(2),C("ngForOf",b.chips))},dependencies:[Fx,
Gx,Cx,BB,dF],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:1.375rem;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 xic=function(){return[]},i3=function(a){this.events=a;this.environmentType="QA";this.frontendAccessMode="INTERNAL";this.href="/";this.chips=[];this.name="Buganizer"};i3.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"})};i3.prototype.ngOnChanges=function(a){if(a.tracker||a.frontendAccessMode)this.name=this.getAppName()};
i3.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:mh(this.frontendAccessMode,"unknown frontend access mode.")}};
li.Object.defineProperties(i3.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"}}});i3.\u0275fac=function(a){return new (a||i3)(D(MK))};
i3.\u0275cmp=w({type:i3,selectors:[["b-app-logo"]],inputs:{environmentType:"environmentType",frontendAccessMode:"frontendAccessMode",tracker:"tracker",associatedTrackers:"associatedTrackers",href:"href"},features:[Cc],decls:2,vars:7,consts:[[3,"name","href","chips","imgSrc","imgSrcDark","clickMenu"],[3,"associatedTrackers",4,"ngIf"],[3,"associatedTrackers"]],template:function(a,b){a&1&&(F(0,"app-logo",0),J("clickMenu",function(){return b.events.onClickAppMenuIcon.next()}),M(1,gXa,1,1,"tracker-switcher",
1),G());if(a&2){var c;C("name",b.name)("href",b.href)("chips",b.chips)("imgSrc",b.imgSrc)("imgSrcDark",b.imgSrcDark);B(1);C("ngIf",0<(null!==(c=b.associatedTrackers)&&void 0!==c?c:He(6,xic)).length)}},dependencies:[Cx,h3,g3],encapsulation:2,changeDetection:0});
var j3=function(){this.isActive=!1;this.optionClicked=new Rw};j3.prototype.ngOnInit=function(){};j3.prototype.onClick=function(){this.optionClicked.emit(this.index)};j3.\u0275fac=function(a){return new (a||j3)};
j3.\u0275cmp=w({type:j3,selectors:[["b-app-search-auto-complete-option"]],hostVars:2,hostBindings:function(a,b){a&1&&J("click",function(){return b.onClick()});a&2&&le("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&&(xe(),F(0,"div",0),ye(1),G())},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 k3=function(a,b){this.ref=a;this.hostElement=b;this.items=[];this.header=null;this.itemSelected=new Rw;this.activeItemChanged=new Rw;this.SPECIAL_ITEM_TYPES="issue hotlist savedsearch atom component team".split(" ")};k3.prototype.ngOnChanges=function(a){a.items&&(0<this.items.length?(this.activeItemIndex=0,this.activeItemChanged.emit(this.items[0])):this.clearActiveItem(),this.ref.markForCheck())};k3.prototype.ngAfterViewInit=function(){};var EXa=function(a){var b=K(3);LXa(a);b.itemSelected.emit(a)};
k3.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(),yic(this))};
k3.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(),yic(this))};var zic=function(a){null!=a.activeItemIndex&&a.itemSelected.emit(a.items[a.activeItemIndex])};k3.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}},yic=function(a){var b=a.itemElements.find(function(c,d){return d===a.activeItemIndex});b&&jXb(b.nativeElement,a.hostElement.nativeElement)},LXa=function(a){Un(io.SEARCH,"autocomplete-select",a.completionCfg.type||"unknown_type",isNaN(Number(a.id))?1:Number(a.id))};k3.\u0275fac=function(a){return new (a||k3)(D(sI,2),D(pd))};
k3.\u0275cmp=w({type:k3,selectors:[["b-app-search-auto-complete-list"]],viewQuery:function(a,b){a&1&&Bf(j3,5,pd);if(a&2){var c;Af(c=Df())&&(b.itemElements=c)}},inputs:{items:"items",header:"header"},outputs:{itemSelected:"itemSelected",activeItemChanged:"activeItemChanged"},features:[Ge([sI]),Cc],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&&(M(0,yXa,6,5,"div",0),F(1,"div",1),M(2,MXa,8,10,"b-app-search-auto-complete-option",
2),G());a&2&&(C("ngIf",b.header&&b.header.type),B(2),C("ngForOf",b.items))},dependencies:[Gx,Cx,SS,j3,Qx],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 l3=function(){this.searchTriggered$=new S.Subject;this.queryState$=new S.BehaviorSubject({query:"",cursorPosition:void 0,setViaInteraction:!1})};l3.\u0275fac=function(a){return new (a||l3)};l3.\u0275prov=dc({token:l3,factory:l3.\u0275fac,providedIn:"root"});
var Bic=["box"],Cic=["initialFocus"],Dic=["finalFocus"],m3=function(a,b){this.documentationLinks=a;this.appSearchState=b;this.placeholder="";this.autoCompleteItems=[];this.autoCompleteHeader=null;this.onAdvancedSearchOpen=new Rw;this.onAdvancedSearchClose=new Rw;this.onAdvancedSearchSubmit=new Rw;this.onSaveSearch=new Rw;this.dropdownStatus="closed";this.searchName="";this.searchHelpLink=this.documentationLinks.baseDocumentationUrl+"/guides/search-editor";this.destroyed$=new S.Subject;this.currentQuery$=
this.appSearchState.queryState$.pipe(R(function(c){return c.query}));this.autoCompleteItemSelected$=new S.Subject};
m3.prototype.ngOnInit=function(){var a=this;this.autoCompleteItemSelected$.pipe(eg(this.currentQuery$),cg(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()})};
m3.prototype.ngAfterViewInit=function(){var a=this;this.appSearchState.queryState$.pipe(rf(function(b){return!b.setViaInteraction}),cg(this.destroyed$)).subscribe(function(b){var c=b.cursorPosition;a.inputBox.nativeElement.value=b.query;null!=c&&(b=a.inputBox.nativeElement,IWb(b)&&(b.selectionStart=c,b.selectionEnd=c))})};m3.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};m3.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})};
m3.prototype.handleKeydown=function(a){switch(a.key){case "Escape":if(!n3(this))return;Fic(this);break;case "ArrowUp":if(!n3(this))return;this.acList.setPreviousItemActive();break;case "ArrowDown":if(!n3(this))return;this.acList.setNextItemActive();break;case "Tab":case "ArrowRight":if(!n3(this)){Eic(this,this.inputBox.nativeElement.value);return}zic(this.acList);break;case "ArrowLeft":Eic(this,this.inputBox.nativeElement.value);return;case "Enter":n3(this)?null!=this.acList.activeItemIndex?zic(this.acList):
this.submitSearch():this.submitSearch();break;default:return}a.preventDefault();a.stopPropagation()};m3.prototype.submitAdvancedSearch=function(){this.onAdvancedSearchSubmit.emit();Gic(this)};m3.prototype.getCursorPosition=function(){var a=JWb(this.inputBox.nativeElement,!0)[0];if(a===JWb(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())},n3=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};
m3.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()})};m3.\u0275fac=function(a){return new (a||m3)(D(rP),D(l3))};
m3.\u0275cmp=w({type:m3,selectors:[["b-app-search-box"]],viewQuery:function(a,b){a&1&&(Bf(k3,7),Bf(Bic,5),Bf(Cic,7,pd),Bf(Dic,7));if(a&2){var c;Af(c=Df())&&(b.acList=c.first);Af(c=Df())&&(b.inputBox=c.first);Af(c=Df())&&(b.advancedSearchInitialFocus=c.first);Af(c=Df())&&(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();xe();F(0,"div",0);J("clickOutside",function(){Fic(b)});F(1,"div",1)(2,"button",2);J("click",function(){return b.submitSearch()});H(3,"mat-icon",3);G();F(4,"textarea",4,5);J("keydown",function(d){return b.handleKeydown(d)})("input",function(){z(c);var d=Ce(5);return A(Eic(b,d.value))})("click",function(){z(c);
var d=Ce(5);return A(Eic(b,d.value))})("focus",function(){b.dropdownStatus="auto_complete"});G();F(6,"button",6);J("click",function(){b.dropdownStatus="advanced_search";b.onAdvancedSearchOpen.emit()});H(7,"mat-icon",7);G()();F(8,"aside",8)(9,"b-app-search-auto-complete-list",9);J("itemSelected",function(d){return b.autoCompleteItemSelected$.next(d)});G();F(10,"div",10)(11,"div",11)(12,"button",12,13);J("keydown",function(d){return Jic(b,d)})("click",function(){return Gic(b)});H(14,"mat-icon",14);
G()();F(15,"div",15);ye(16);G();F(17,"div",16)(18,"button",17);J("click",function(){return b.submitAdvancedSearch()});O(19,"Search");G();F(20,"a",18);O(21,"Search help ");H(22,"mat-icon",19);G();F(23,"div",20)(24,"input",21,22);J("ngModelChange",function(d){return b.searchName=d})("keydown.Tab",function(){return Kic(b)})("keydown.enter",function(){return b.saveSearch()});G();F(26,"button",23);J("click",function(){return b.saveSearch()});H(27,"mat-icon",24);G()()()()()()}a&2&&(le("dropdown-opened",
n3(b)||Hic(b)||Iic(b)),B(1),le("hidden",Iic(b)),B(3),C("placeholder",b.placeholder),ge("aria-activedescendant",Aic(b.acList))("aria-expanded",n3(b)||Hic(b)),B(4),le("advanced-search-open",Iic(b)),B(1),le("hidden",!(n3(b)||Hic(b))),C("items",b.autoCompleteItems)("header",b.autoCompleteHeader),B(1),le("hidden",!Iic(b)),B(10),ge("href",b.searchHelpLink,Md),B(4),C("ngModel",b.searchName),B(2),C("disabled",!b.searchName))},dependencies:[DA,BB,sF,dF,Jg,ly,ry,vQ,fC,k3],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 o3=function(a){this.currentTracker=a;this.logoEnvironmentType="QA";this.logoFrontendAccessMode="INTERNAL";this.searchBoxPlaceholder="";this.searchBoxAutoCompleteItems=[];this.searchBoxAutoCompleteHeader=null;this.searchBoxOnAdvancedSearchOpen=new Rw;this.searchBoxOnAdvancedSearchClose=new Rw;this.searchBoxOnAdvancedSearchSubmit=new Rw;this.searchBoxOnSaveSearch=new Rw};o3.\u0275fac=function(a){return new (a||o3)(D(vM))};
o3.\u0275cmp=w({type:o3,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&&(xe(),H(0,"b-app-logo",0),P(1,"async"),P(2,"async"),F(3,"b-app-search-box",1),J("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)}),ye(4),G(),H(5,"b-app-actions"));a&2&&(C("environmentType",b.logoEnvironmentType)("frontendAccessMode",b.logoFrontendAccessMode)("tracker",Q(1,7,b.currentTracker.tracker$))("associatedTrackers",Q(2,9,b.currentTracker.associatedTrackers$)),B(3),C("placeholder",b.searchBoxPlaceholder)("autoCompleteItems",
b.searchBoxAutoCompleteItems)("autoCompleteHeader",b.searchBoxAutoCompleteHeader))},dependencies:[i3,f3,m3,Px],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 p3=function(){};p3.\u0275fac=function(a){return new (a||p3)};p3.\u0275mod=uc({type:p3});p3.\u0275inj=gc({imports:[Wx,dC,BG,VN]});
var Lic=[g3],q3=function(){};[].concat(u(Lic));[].concat(u(Lic));q3.\u0275fac=function(a){return new (a||q3)};q3.\u0275mod=uc({type:q3});q3.\u0275inj=gc({imports:[Wx,BG,wF,mF,lH]});
var r3=function(){};r3.\u0275fac=function(a){return new (a||r3)};r3.\u0275mod=uc({type:r3});r3.\u0275inj=gc({imports:[Wx,wF,BG,mF,lH]});
var Mic=[h3],s3=function(){};[].concat(u(Mic));[].concat(u(Mic));s3.\u0275fac=function(a){return new (a||s3)};s3.\u0275mod=uc({type:s3});s3.\u0275inj=gc({imports:[Wx,BG,wF,lH]});
var t3=function(){};t3.\u0275fac=function(a){return new (a||t3)};t3.\u0275mod=uc({type:t3});t3.\u0275inj=gc({providers:[SO]});
var u3=function(){};u3.\u0275fac=function(a){return new (a||u3)};u3.\u0275mod=uc({type:u3});u3.\u0275inj=gc({imports:[Wx,BG,wF,lH,t3]});
var v3=function(){};v3.\u0275fac=function(a){return new (a||v3)};v3.\u0275mod=uc({type:v3});v3.\u0275inj=gc({imports:[Wx,mF,BG,cI,lH,wF,IA,Gy,wQ,r3,xP,s3,cT,hC,a3,u3,p3,q3]});
var w3=function(){};w3.\u0275fac=function(a){return new (a||w3)};w3.\u0275mod=uc({type:w3});w3.\u0275inj=gc({imports:[Wx,BG,dC]});
var x3=function(){};x3.\u0275fac=function(a){return new (a||x3)};x3.\u0275mod=uc({type:x3});x3.\u0275inj=gc({imports:[Wx,Gy,BG,rC,pC,dC,FV]});
var y3=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 Rw;this.selectedChange=new Rw;this.cardTitleChange=new Rw;this.onSaveButtonClicked=new Rw;this.onCancelButtonClicked=
new Rw;this.isInheritedChange=new Rw;this.isExpanded=!1};y3.prototype.expand=function(){this.isExpanded=!0};y3.prototype.collapse=function(){this.isExpanded=!1};y3.prototype.onSave=function(){this.collapse();this.onSaveButtonClicked.emit()};y3.\u0275fac=function(a){return new (a||y3)};
y3.\u0275cmp=w({type:y3,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&&(xe(),F(0,"div",0)(1,"div",1)(2,"mat-checkbox",2),J("change",function(d){b.selected=d.checked;b.expand();b.selectedChange.emit(b.selected)}),G(),M(3,NXa,3,3,"ng-container",3),F(4,"button",4),J("click",function(){b.isExpanded?b.collapse():b.expand()}),M(5,OXa,1,0,"mat-icon",5),M(6,PXa,1,0,"mat-icon",6),G(),M(7,UXa,3,7,"ng-template",null,
7,Jf),G(),M(9,VXa,2,0,"div",8),M(10,$Xa,9,6,"div",9),G());if(a&2){var c=Ce(8);ge("aria-expanded",b.isExpanded);B(2);le("expanded-checkbox",b.isExpanded);C("disabled",b.disabled)("checked",b.selected)("aria-label",b.cardTitle);B(1);C("ngIf",!b.isExpanded)("ngIfElse",c);B(1);C("ngClass",b.isExpanded?"collapse-toggle":"expand-toggle");ge("aria-label",b.isExpanded?"Collapse editor":"Expand editor");B(1);C("ngIf",b.isExpanded);B(1);C("ngIf",!b.isExpanded);B(3);C("ngIf",b.isExpanded);B(1);C("ngIf",b.isExpanded)}},
dependencies:[Fx,Gx,Cx,Jg,ly,Cy,Dy,ry,JO,BB,ET,dF,oC,lC,XS,VS,xB,YH,qC,sF],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;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 z3=function(){};z3.\u0275fac=function(a){return new (a||z3)};z3.\u0275mod=uc({type:z3});z3.\u0275inj=gc({imports:[Wx,Gy,NO,BG,GT,wF,YS,cI,rC,lH]});
var A3=function(a){Z.call(this,a,-1,Nic)};U(A3,Z);A3.prototype.getFieldIdList=function(){return rb(this,gl,1)};A3.prototype.setFieldIdList=function(a){return Ab(this,1,a)};var Nic=[1];A3.prototype.toObject=function(){var a=null!=this?{fieldIdList:Cb(this.getFieldIdList(),kJ)}:void 0;return a};A3.messageId="b.ReorderFieldsRequest";
var B3=function(a){Z.call(this,a,-1,Oic)};U(B3,Z);B3.prototype.getFieldIdList=function(){return rb(this,gl,1)};B3.prototype.setFieldIdList=function(a){return Ab(this,1,a)};var Oic=[1];B3.prototype.toObject=function(){var a=null!=this?{fieldIdList:Cb(this.getFieldIdList(),kJ)}:void 0;return a};B3.messageId="b.ReorderFieldsResponse";
var C3=function(a){this.executor=a};C3.prototype.updateCustomFieldState=function(a,b,c){var d=new gl;d.setCustomFieldId(b);var e=new lJ;Bb(e,1,d);e.setStateOnIssues(c);return this.executor.post({url:"action/components/"+a+"/field_configs/custom_field_id/"+b,body:e,responseConstructor:lJ})};C3.prototype.reorder=function(a,b){b=(new A3).setFieldIdList(b);return this.executor.post({url:"action/components/"+a+"/reorder",body:b,responseConstructor:B3})};C3.\u0275fac=function(a){return new (a||C3)(t(nI))};
C3.\u0275prov=dc({token:C3,factory:C3.\u0275fac,providedIn:"root"});
var Pic=["SILENT","MINOR","MAJOR"];
var Qic=["fieldStateMenu"],dYa=function(a){return{type:a}},D3=function(a,b,c,d,e,f,h,k,q,v,y){wI.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=v;this.appEvents=y;this.FieldType=$Xb;this.ListFieldType=SYb;this.getSingleEditFieldType=aYb;this.getListFieldType=TYb;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(tAb).filter(function(I){return!I.includes("REPEATED")});this.significanceChoices=Pic;Object.keys(sFb).slice(0).filter(function(I){return"UNSPECIFIED"!==I});this.componentId_=Ki(this.routeParams.componentId);this.subscriptions.add(bZ(b,function(){return E.hasUnsavedChanges()},!0))};U(D3,wI);
D3.\u0275dir=wI.\u0275dir;D3.prototype.ngOnInit=function(){Ric(this)};D3.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};
D3.prototype.editField=function(a){window.scrollTo({top:0,behavior:"smooth"});if(!this.hasUnsavedChanges()||f5b())this.editableField=Fi(this.customFields[a]),this.originalEditableFieldValue_=Fi(this.editableField),this.serverError=null,this.setType(this.editableField.type),hYa(this,this.editableField.allowedValue)};
var tYa=function(a,b){var c=a.customFields[b];a.confirmationDialog.open({title:"Deleting field: "+c.name,content:Pn("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)}})};
D3.prototype.doDelete=function(a){var b=this;FK(this.butterBar,"Deleting field: "+a.name,2E3);this.customFieldsApi.delete(this.componentId_,a.customFieldId).then(function(){b.appEvents.componentModified.next(b.componentId_);eo(b.analytics,"customField","delete");FK(b.butterBar,"Deleted field: "+a.name,2E3);Ric(b)})};
D3.prototype.save=function(){var a=this;this.isLoading=!0;var b=function(){a.appEvents.componentModified.next(a.componentId_);Ric(a);eo(a.analytics,"customField",d)},c=function(e){a.serverError=Fm(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)};
D3.prototype.updateCustomFieldState=function(a,b,c){var d=this;return new Promise(function(e,f){d.fieldConfigService.updateCustomFieldState(d.componentId_,a.customFieldId,b).pipe(cg(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}eo(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=Fm(h);d.isLoading=!1;f(h)})})};D3.prototype.cancel=function(){this.originalEditableFieldValue_=this.editableField=null};
var kYa=function(a,b){var c=a.editableField.type;a.editableField.typedDefaultValue=new iJ({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})};
D3.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 hYa=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}}):[]};D3.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 fu(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)})},zYa=function(a,b){return a.fieldsEnabledOnParentComponent.has(b)?a.fieldsEnabledOnParentComponent.get(b):!0};D3.prototype.trackClick=function(a){eo(this.analytics,"editComponent","click",a)};
var lYa=function(a){var b,c;return null==(b=a.editableField)?void 0:null==(c=b.typedDefaultValue)?void 0:c.getValue()};D3.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};D3.prototype.setFieldSignificance=function(a){this.editableField.fieldSignificance=a};
D3.\u0275fac=function(a){return new (a||D3)(D(wZ),D(aZ),D(DK),D(QM),D($R),D(zT),D(C3),D(rP),D(TK),D(ZM),D(MK))};
D3.\u0275cmp=w({type:D3,selectors:[["b-component-custom-fields"]],viewQuery:function(a,b){a&1&&Bf(Qic,5);if(a&2){var c;Af(c=Df())&&(b.fieldStateMenus=c)}},inputs:{editMode:"editMode",isSaving:"isSaving",component:"component",parentComponent:"parentComponent"},features:[ae,Cc],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&&(F(0,"div",0),M(1,qYa,68,32,"div",1),M(2,rYa,2,1,"div",2),M(3,FYa,26,7,"div",3),G());a&2&&(B(1),C("ngIf",b.editableField&&!b.isLoading),B(1),C("ngIf",b.isLoading),B(1),C("ngIf",!b.isLoading))},dependencies:[Fx,Gx,Cx,sy,Jg,ly,my,Cy,ry,py,uV,$U,zH,wO,o_,nN,oN,rN,pN,TS,sF,iF,gF,lF,fF,BB,j_,IV,kN,KI,xM,yM,AM],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 E3=function(){};E3.\u0275fac=function(a){return new (a||E3)};E3.\u0275mod=uc({type:E3});E3.\u0275inj=gc({imports:[Wx,Gy,vV,aV,bI,xO,p_,YN,dT,lH,mF,BG,YS,k_,JV,KM,WN,QI]});
var F3=function(){this.options=[];this.disabled=!1;this.removeAtIndex=new Rw;this.addRow=new Rw;this.optionsChange=new Rw};F3.prototype.valueChange=function(a,b){this.options[b].value=Number(a.target.value);this.optionsChange.emit(this.options)};F3.prototype.drop=function(a){lp(this.options,a.previousIndex,a.currentIndex);this.optionsChange.emit(this.options)};F3.\u0275fac=function(a){return new (a||F3)};
F3.\u0275cmp=w({type:F3,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&&(F(0,"div",0)(1,"div",1)(2,"span",2),O(3," Dropdown value "),G()(),F(4,"div",3)(5,"span",4),O(6," Average days "),G(),H(7,"mat-icon",5),G()(),F(8,"div",6),J("cdkDropListDropped",function(c){return b.drop(c)}),M(9,HYa,12,13,"div",7),G(),M(10,IYa,2,0,"button",8));a&2&&(B(2),le("muted",b.disabled),B(3),le("muted",b.disabled),B(2),C("matTooltip","All estimated effort types map to an average number of days."),B(2),C("ngForOf",b.options),B(1),C("ngIf",!b.disabled))},dependencies:[Gx,Cx,oC,qC,BB,
dF,sF,rV,sV,lV],styles:[".delete-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon)}.add-row-button[_ngcontent-%COMP%]{font-size:1rem;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 G3=function(){this.disabled=!1;this.valueChange=new Rw};G3.prototype.onValueChange=function(a){this.valueChange.emit(Number(a.target.value))};G3.\u0275fac=function(a){return new (a||G3)};
G3.\u0275cmp=w({type:G3,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&&(F(0,"div",0)(1,"div",1)(2,"span",2),O(3," Time "),G(),F(4,"span",3),O(5,"1"),G()(),F(6,"div",1)(7,"div",4)(8,"span",5),O(9," Average days "),G(),H(10,"mat-icon",6),G(),F(11,"mat-form-field",
7)(12,"input",8,9),J("change",function(d){return b.onValueChange(d)}),G()()()());if(a&2){var c=Ce(13);B(2);le("muted",b.disabled);B(6);le("muted",b.disabled);B(2);C("matTooltip","All estimated effort types map to an average number of days.");B(1);C("appearance",c.focused?"standard":"none");B(1);C("disabled",b.disabled)("value",b.value)}},dependencies:[oC,qC,dF,sF],styles:[".disabled-time-val[_ngcontent-%COMP%]{color:#bdc1c6;color:var(--text-disabled);font-size:1rem;line-height:24px;font-weight:400;width:168px}\n/*# sourceMappingURL=numeric_config.css.map */"]});
var I3=function(a){this.activeSession=a;this.disabled=!1;this.updateEffortSpec=new Rw;this.configurationOptions=[Sic,Tic,H3];this.estimatedEffortFieldEnabled=this.inherit=!1;this.name="Estimated effort";this.numericSpecMultiplier=1;this.enumSpecOptions=[];this.aggregationRules=HFb;this.selectedAggregationRule=this.aggregationRules.SUM;this.enableAggregationRules=xH(this.activeSession,"enableAggregationRules")};
I3.prototype.ngOnInit=function(){(this.originalEffortSpec=this.effortSpec)&&wl(this.effortSpec,4,xl)&&(this.originalSelectedEffortConfig=H3)};I3.prototype.ngOnChanges=function(a){a.effortSpec&&this.effortSpec&&(this.originalEffortSpec=this.effortSpec.clone(),this.setValues(this.effortSpec))};
I3.prototype.setValues=function(a){if(wl(a,4,xl)){this.selectedEffortConfig=H3;var b,c,d;this.numericSpecMultiplier=null!=(d=null==(b=this.effortSpec)?void 0:null==(c=yl(b,pl,4,xl))?void 0:zl(c,1))?d:1}wl(a,5,xl)&&(this.selectedEffortConfig=void 0,this.enumSpecOptions=Al(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(wl(a,5,xl)||wl(a,4,xl))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:wl(b,5,xl))&&!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)===H3.displayText?"numeric":"empty"};
I3.prototype.addRow=function(){this.enumSpecOptions.push({label:null,value:null})};I3.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"};I3.\u0275fac=function(a){return new (a||I3)(D(vH))};
I3.\u0275cmp=w({type:I3,selectors:[["b-estimated-effort-config"]],inputs:{effortSpec:"effortSpec",parentEffortSpec:"parentEffortSpec",disabled:"disabled"},outputs:{updateEffortSpec:"updateEffortSpec"},features:[Cc],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&&(F(0,"b-collapsible-card",0),J("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===H3.displayText&&(b.numericSpecMultiplier=1,b.name="Days");b.estimatedEffortFieldEnabled=!0})("onSaveButtonClicked",function(){var c=new ol;if(b.estimatedEffortFieldEnabled){c.setName(b.name).setInherit(b.inherit);b.enableAggregationRules&&sl(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)===H3.displayText)rqa(c,sqa(new pl,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 rl).setLabel(f.label).setValue(f.value));tqa(c,(new ql).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 ol).setName("Estimated effort")),b.effortSpec=b.parentEffortSpec,b.effortSpec||Vic(b)):b.effortSpec&&(b.setValues(new ol),Vic(b));b.inherit=c}),F(1,"div",
1),M(2,KYa,2,1,"ng-container",2),M(3,LYa,2,2,"ng-container",2),M(4,MYa,1,0,"ng-container",2),G(),M(5,NYa,23,12,"div",3),G(),M(6,OYa,1,2,"ng-template",null,4,Jf));a&2&&(C("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),C("ngSwitch",Uic(b)),B(1),C("ngSwitchCase","enum"),
B(1),C("ngSwitchCase","numeric"),B(1),C("ngSwitchCase","empty"),B(1),C("ngIf",b.enableAggregationRules&&b.estimatedEffortFieldEnabled))},dependencies:function(){return[Cx,Mx,Ix,Jx,oC,CB,dF,y3,sF,XS,VS,xB,F3,G3,J3]},styles:["[_nghost-%COMP%]     .content .config-title-container{width:168px}[_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:1rem}.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"},H3={displayText:"Time",icon:"time-24px"},J3=function(){};
J3.prototype.transform=function(a){switch(a){case 2:return"Max Point";default:return"Simple Sum"}};J3.\u0275fac=function(a){return new (a||J3)};J3.\u0275pipe=wc({name:"aggregationRuleText",type:J3,pure:!0});
var K3=function(){this.updateComponent=new Rw};K3.prototype.ngOnChanges=function(a){a.effortSpec&&this.effortSpec&&(this.effortSpecJspb=tl(this.effortSpec));a.parentEffortSpec&&this.parentEffortSpec&&(this.parentEffortSpecJspb=tl(this.parentEffortSpec))};K3.\u0275fac=function(a){return new (a||K3)};
K3.\u0275cmp=w({type:K3,selectors:[["b-component-standard-fields"]],inputs:{effortSpec:"effortSpec",parentEffortSpec:"parentEffortSpec"},outputs:{updateComponent:"updateComponent"},features:[Cc],decls:4,vars:2,consts:[[1,"padded","field-container"],[1,"margin-bottom"],[3,"effortSpec","parentEffortSpec","updateEffortSpec"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"div",1),O(2,"Once activated, standard fields appear in the right panel of all issues."),G(),F(3,"b-estimated-effort-config",2),J("updateEffortSpec",
function(c){b.updateComponent.emit(c)}),G()());a&2&&(B(3),C("effortSpec",b.effortSpecJspb)("parentEffortSpec",b.parentEffortSpecJspb))},dependencies:[I3],styles:[".field-container[_ngcontent-%COMP%]{max-width:1100px}"]});
var L3=function(){};L3.\u0275fac=function(a){return new (a||L3)};L3.\u0275mod=uc({type:L3});L3.\u0275inj=gc({imports:[Wx,rC,BG,wF,NO,z3,lH,YS,tV]});
var M3=function(){};M3.\u0275fac=function(a){return new (a||M3)};M3.\u0275mod=uc({type:M3});M3.\u0275inj=gc({imports:[Wx,z3,L3]});
var Yic={MISSING:"MISSING",DELETED:"DELETED",VALID:"VALID"};
var N3=function(a,b,c,d,e,f,h,k,q,v){wI.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=v;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$=zKb(this.teamsService,this.teamSuggestionIds).pipe(R(function(E){var I=[];E=Zi(E,1,fM);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}),ag([]));this.myTeams$=kM(this.teamsService,"").pipe(R(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,S.combineLatest)([this.suggestedTeams$,this.myTeams$]).pipe(R(function(E){var I=r(E);E=I.next().value;I=I.next().value;return[].concat(u(E),u(I))}),R(zBb(function(E){return E.teamId})),cg(this.destroyed$)).subscribe(function(E){y.teamOptions=E;y.selectedTeam=E[0]})};U(N3,wI);N3.\u0275dir=wI.\u0275dir;
N3.prototype.ngOnInit=function(){"MISSING"===this.warningType?this.header="Add team to the component":"DELETED"===this.warningType&&(this.header="Change team mapping for this component")};
N3.prototype.confirm=function(){var a=this;if("CHANGE"===this.teamAction)0<this.parentComponentId?this.componentActions.get(this.parentComponentId).then(function(c){var d;$ic(a,(null==(d=c.team)?void 0:d.id)||"0",a.selectedTeam.teamId)}):$ic(this,"0",this.selectedTeam.teamId);else{var b=Fi(this.userPreferencesManager.teamWarningPreferencesSubject$.value);b.componentTeamWarnings.push({componentId:this.componentId,dismissMillis:(new Date).getTime()});bFb(this.userPreferencesManager,b).pipe(cg(this.destroyed$)).subscribe(function(){eo(a.analytics,
io.TEAM_WARNING,"dismiss","componentId",a.componentId);var c;null==(c=a.dialogRef)||c.close()},function(){})}};var $ic=function(a,b,c){a.componentActions.updateTeam(a.componentId,{inherit:c===b,id:c}).then(function(d){a.componentFridge.announce(d);eo(a.analytics,io.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)})};
N3.prototype.selectOption=function(a){this.selectedTeam=a};N3.prototype.trackClick=function(a){eo(this.analytics,io.TEAM_WARNING,"click",a)};N3.prototype.getMomaTeamLink=function(){return"https://moma.corp.google.com/team/"+this.selectedTeam.teamId};N3.\u0275fac=function(a){return new (a||N3)(D(XB),D(MB),D(cY),D(jM),D(zT),D(VI),D(AK),D(QM),D(IK),D(NJ))};
N3.\u0275cmp=w({type:N3,selectors:[["b-team-warning-dialog"]],features:[ae],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&&(F(0,"h1",0),O(1),G(),M(2,QYa,5,1,"div",1),
M(3,RYa,5,1,"div",1),M(4,SYa,7,1,"mat-radio-group",2),M(5,WYa,6,6,"div",3),F(6,"mat-dialog-actions")(7,"button",4),O(8," Cancel "),G(),F(9,"button",5),J("click",function(){return b.confirm()}),O(10," Confirm "),G()());a&2&&(B(1),Ee(b.header),B(1),C("ngIf",b.warningType===b.WarningType.MISSING),B(1),C("ngIf",b.warningType===b.WarningType.DELETED),B(1),C("ngIf",b.warningType===b.WarningType.MISSING),B(1),C("ngIf",0<b.teamOptions.length))},dependencies:[Cx,ly,ry,BB,CB,$B,aC,bC,cC,dF,eY,gY,sF,aQ],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 O3=function(a,b){wI.call(this);this.matDialogService=a;this.analytics=b;this.teamSuggestions=[];this.messageOnly=!1;this.updateTeam=new Rw};U(O3,wI);O3.\u0275dir=wI.\u0275dir;O3.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")};
O3.prototype.openDialog=function(){var a=this;eo(this.analytics,io.TEAM_WARNING,"open");NB(this.matDialogService.open(N3,{width:"580px",data:{warningType:this.warningType,componentId:this.componentId,parentComponentId:this.parentComponentId,teamSuggestionIds:this.teamSuggestions.map(function(b){return String(b.getTeamId())})}})).pipe(cg(this.destroyed$)).subscribe(function(b){b&&a.updateTeam.emit(b)})};O3.\u0275fac=function(a){return new (a||O3)(D(ZB),D(QM))};
O3.\u0275cmp=w({type:O3,selectors:[["b-team-warning"]],inputs:{warningType:"warningType",componentId:"componentId",parentComponentId:"parentComponentId",teamSuggestions:"teamSuggestions",messageOnly:"messageOnly"},outputs:{updateTeam:"updateTeam"},features:[ae],decls:4,vars:2,consts:[["messageType","caution","format","app"],[4,"ngIf"],["format","fill","mat-button","",3,"click"]],template:function(a,b){a&1&&(F(0,"b-callout",0)(1,"b-callout-body"),O(2),G(),M(3,XYa,3,1,"b-callout-actions",1),G());a&
2&&(B(2),De(" ",b.warningMessage," "),B(1),C("ngIf",!b.messageOnly))},dependencies:[wO,hI,iI,Cx],encapsulation:2});
var P3=function(a){var b=this;this.teamsService=a;this.anchorTarget="_blank";this.useInternalLink=this.isTopLevel=this.isAdmin=!1;this.modelChange=new Rw;this.inherit=!1;this.selectedTeam$=new S.Subject;this.teamIdChanged$=new S.ReplaySubject(1);this.placeholder$=this.teamIdChanged$.pipe(R(function(c){return"0"===c?!b.isAdmin||!b.isTopLevel&&b.inherit?"No team selected":"Type to search for a team (leave blank to disable)":""}),ag(""));this.teamFromId$=this.teamIdChanged$.pipe(bg(function(c){return"0"===
c?(0,S.of)(new xs([c],[""],"")):b.teamsService.getTeam(c).pipe(R(function(d){return new xs([],jb(d,6),d.getDescription())}),Mf(function(){return(0,S.of)(new xs([c],[c],""))}))}));this.displayedTeam$=(0,S.merge)(this.teamFromId$,this.selectedTeam$);this.warningType$=this.teamIdChanged$.pipe(bg(function(c){return"0"===c?(0,S.of)("MISSING"):b.teamsService.getTeam(c).pipe(R(function(d){return d.getDeleted()?"DELETED":"VALID"}))}))};
P3.prototype.updateSelectionOnChange=function(a){Un(io.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)};P3.prototype.ngOnChanges=function(a){a.model&&(this.inherit=this.model.inherit,this.teamIdChanged$.next(this.model.id))};P3.prototype.ngOnInit=function(){Object.assign({},this.model);this.inherit=this.model.inherit;this.teamIdChanged$.next(this.model.id)};
var Fs=function(a){return a.model.id&&"0"!==a.model.id};P3.prototype.getMomaTeamLink=function(){return Fs(this)?"https://moma.corp.google.com/team/"+this.model.id:null};P3.\u0275fac=function(a){return new (a||P3)(D(jM))};
P3.\u0275cmp=w({type:P3,selectors:[["b-component-team-picker"]],inputs:{parentModel:"parentModel",model:"model",anchorTarget:"anchorTarget",isAdmin:"isAdmin",isTopLevel:"isTopLevel",useInternalLink:"useInternalLink"},outputs:{modelChange:"modelChange"},features:[Cc],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&&(F(0,"div"),M(1,ZYa,2,1,"ng-container",0),P(2,"async"),M(3,$Ya,3,2,"div",1),F(4,"div",2)(5,"label",3),O(6,"Team selection"),G(),F(7,"b-team-picker",
4),J("onTeamSelect",function(d){return b.updateSelectionOnChange(d)})("onEmptyQuery",function(){b.model.id="0";b.modelChange.emit(b.model)}),P(8,"async"),P(9,"async"),G(),M(10,bZa,2,1,"ng-container",5),G()(),M(11,dZa,1,1,"ng-template",null,6,Jf));if(a&2){var c=Ce(12);B(1);C("ngIf",Q(2,7,b.warningType$));B(2);C("ngIf",!b.isTopLevel);B(4);C("placeholder",Q(8,9,b.placeholder$))("disabled",!b.isAdmin||!b.isTopLevel&&b.inherit)("teamSelected",Q(9,11,b.displayedTeam$));B(3);C("ngIf",b.useInternalLink)("ngIfElse",
c)}},dependencies:[Cx,JO,sF,R2,O3,dF,CB,KI,Px],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 Q3=function(){};Q3.\u0275fac=function(a){return new (a||Q3)};Q3.\u0275mod=uc({type:Q3});Q3.\u0275inj=gc({imports:[xO,yO,Wx,Gy,BG,dC,wF,nY,yK,lH,pQ]});
var R3=function(){};R3.\u0275fac=function(a){return new (a||R3)};R3.\u0275mod=uc({type:R3});R3.\u0275inj=gc({imports:[Wx,wN,NO,lH,T2,Q3,Gy,wF,BG,QI]});
var ajc=function(){return"mat-radio-group[_ngcontent-%COMP%] {display: flex; flex-direction: column; margin: 15px 0;}"},S3=function(a){this.documentationLinks=a};S3.\u0275fac=function(a){return new (a||S3)(D(rP))};
S3.\u0275cmp=w({type:S3,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&&(F(0,"h1",0),O(1,"Apply component retention settings?"),G(),F(2,"div",
1)(3,"p"),O(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. "),G(),F(5,"a",2),O(6,"Learn more"),G()(),F(7,"div",3)(8,"button",4),O(9," Cancel "),G(),F(10,"button",5),O(11," OK "),G()());a&2&&(B(5),C("href",yt(),Md),B(3),C("mat-dialog-close",!1),B(2),C("mat-dialog-close",!0))},dependencies:[$B,aC,bC,cC,BB],encapsulation:2});
var T3=function(a){this.documentationLinks=a;this.indefiniteRetentionAcknowledged=!1};T3.\u0275fac=function(a){return new (a||T3)(D(rP))};
T3.\u0275cmp=w({type:T3,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&&(F(0,
"h1",0),O(1,"Retain issue indefinitely?"),G(),F(2,"div",1)(3,"p"),O(4," Are you sure you want to override any component retention settings, and retain this issue indefinitely? "),G(),F(5,"p")(6,"b"),O(7,"Please note indefinite retention is not appropriate in many circumstances."),G(),H(8,"br"),O(9," Before selecting this option, you should make sure at least one of the following is true: "),G(),F(10,"ul")(11,"li"),O(12," There is no personal data, user data, or any other forms of sensitive data being stored in this issue. "),
G(),F(13,"li"),O(14," You have a process in place to manually delete this issue within an approved period of time. "),G(),F(15,"li"),O(16," Legal and Privacy have approved this non-standard retention period. "),G()(),H(17,"p"),F(18,"p")(19,"a",2),O(20,"Learn more"),G()(),F(21,"b-checkbox",3),J("change",function(c){return b.indefiniteRetentionAcknowledged=c}),G()(),F(22,"div",4)(23,"button",5),O(24," Cancel "),G(),F(25,"button",6),O(26," OK "),G()());a&2&&(B(19),C("href",yt(),Md),B(2),C("checked",
b.indefiniteRetentionAcknowledged),B(2),C("mat-dialog-close",!1),B(2),C("mat-dialog-close",!0)("disabled",!b.indefiniteRetentionAcknowledged))},dependencies:[$B,aC,bC,cC,BB,tQ],styles:[".mat-dialog-content[_ngcontent-%COMP%] { max-height: unset; overflow: unset; }","ul[_ngcontent-%COMP%] { list-style: disc }"]});var U3=function(a){this.documentationLinks=a;this.REMOVAL_URL=eZa()};U3.\u0275fac=function(a){return new (a||U3)(D(rP))};
U3.\u0275cmp=w({type:U3,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&&(F(0,"h1",0),O(1,"Report spam?"),G(),F(2,"div",1)(3,
"p"),O(4," This will remove the issue from search results but will not delete it from the database. "),F(5,"a",2),O(6,"Learn more"),G()(),H(7,"p"),F(8,"p"),O(9," To delete PII or other sensitive content, "),F(10,"a",2),O(11,"file a support request"),G(),O(12,". "),G()(),F(13,"div",3)(14,"button",4),O(15," Cancel "),G(),F(16,"button",5),O(17," Report spam "),G()());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",
C("href",a,Md),B(5),C("href",b.REMOVAL_URL,Md),B(4),C("mat-dialog-close",!1),B(2),C("mat-dialog-close",!0))},dependencies:[$B,aC,bC,cC,BB],encapsulation:2});var V3=function(a,b){this.dialogRef=b;this.newTitle=a.title};V3.prototype.keydown=function(a){"Enter"===a.key&&this.dialogRef.close(this.newTitle)};V3.\u0275fac=function(a){return new (a||V3)(D(XB),D(MB))};
V3.\u0275cmp=w({type:V3,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&&(F(0,"h1",0),O(1,"Edit issue title"),G(),F(2,"div",
1)(3,"mat-form-field")(4,"mat-label"),O(5,"Enter a new issue title:"),G(),F(6,"input",2),J("ngModelChange",function(c){return b.newTitle=c})("keydown",function(c){return b.keydown(c)}),G()()(),F(7,"div",3)(8,"button",4),O(9," Cancel "),G(),F(10,"button",5),O(11," OK "),G()());a&2&&(B(6),C("ngModel",b.newTitle),B(4),C("mat-dialog-close",b.newTitle))},dependencies:[$B,aC,bC,cC,BB,oC,lC,qC,Jg,ly,ry],styles:["mat-form-field[_ngcontent-%COMP%] { width: 100%; }"]});
var W3=function(a,b){this.documentationLinks=b;this.commentNumber=a.commentNumber;this.issueId=a.issueId;this.deletionReasons=a.deletionReasons};W3.\u0275fac=function(a){return new (a||W3)(D(XB),D(rP))};
W3.\u0275cmp=w({type:W3,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&&(F(0,"h1",0),O(1),G(),F(2,"div",1)(3,"label"),O(4,"Please select the reason for deleting this comment."),G(),F(5,"a",2),O(6," \u00a0Learn more "),G(),F(7,"mat-radio-group",3),J("ngModelChange",function(c){return b.selectedReason=c}),M(8,gZa,3,4,"mat-radio-button",4),G()(),F(9,"div",5)(10,"button",6),O(11," Cancel "),G(),F(12,"button",7),O(13," Delete "),G()());a&2&&(B(1),Fe("Delete Comment #",b.commentNumber," of Issue ",b.issueId,
""),B(4),C("href",HNb(b.documentationLinks),Md),B(2),C("ngModel",b.selectedReason),B(1),C("ngForOf",b.deletionReasons),B(4),C("mat-dialog-close",b.selectedReason)("disabled",!b.selectedReason))},dependencies:[Gx,Cx,$B,aC,bC,cC,BB,ly,ry,eY,gY],styles:[ajc(),"mat-radio-button[_ngcontent-%COMP%] {margin: 5px}"]});var X3=function(a,b){this.documentationLinks=b;this.deletionReasons=a.deletionReasons;this.attachmentId=a.attachmentId};X3.\u0275fac=function(a){return new (a||X3)(D(XB),D(rP))};
X3.\u0275cmp=w({type:X3,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&&(F(0,"h1",0),O(1),G(),F(2,"div",1)(3,"span"),O(4," Please select the reason for deleting this attachment. "),F(5,"a",2),O(6," \u00a0Learn more "),G()(),F(7,"mat-radio-group",3),J("ngModelChange",function(c){return b.selectedReason=c}),M(8,iZa,3,4,"mat-radio-button",4),G()(),F(9,"div",5)(10,"button",6),O(11," Cancel "),G(),F(12,"button",7),O(13," Delete "),G()());a&2&&(B(1),De("Delete attachment ",b.attachmentId,""),B(4),C("href",
HNb(b.documentationLinks),Md),B(2),C("ngModel",b.selectedReason),B(1),C("ngForOf",b.deletionReasons),B(4),C("mat-dialog-close",b.selectedReason)("disabled",!b.selectedReason))},dependencies:[Gx,Cx,$B,aC,bC,cC,BB,ly,ry,eY,gY],styles:[ajc(),"mat-radio-button[_ngcontent-%COMP%] {margin: 5px}"]});var Y3=function(){};Y3.\u0275fac=function(a){return new (a||Y3)};Y3.\u0275mod=uc({type:Y3});Y3.\u0275inj=gc({imports:[Wx,dC,BG,uQ,rC,Gy,pC,wF,nY]});
var Z3=function(){};Z3.\u0275fac=function(a){return new (a||Z3)};Z3.\u0275mod=uc({type:Z3});Z3.\u0275inj=gc({imports:[Wx,Gy,BG,rC,pC,dC]});
var a4=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},bjc=function(a){a.fields.sort(function(b,c){return b.name.localeCompare(c.name)});a.detectChanges()};a4.prototype.drop=function(a){lp(this.fields,a.previousIndex,a.currentIndex);this.detectChanges()};
var jZa=function(a,b){return 0<b?(lp(a.fields,b,b-1),a.detectChanges(),!0):!1},kZa=function(a,b){return b<a.fields.length-1?(lp(a.fields,b,b+1),a.detectChanges(),!0):!1};a4.prototype.trackByFn=function(){return-1};a4.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.")};
a4.prototype.onKeyDown=function(a,b){switch(a.key){case " ":a.preventDefault();cjc(this,b);break;case "Tab":this.grabbed&&cjc(this,b);break;case "ArrowUp":djc(this,a);break;case "ArrowDown":djc(this,a)}};
var cjc=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."))},djc=function(a,b){if(a.grabbed){var c=document.activeElement;if(c&&void 0!==a.grabbedIndex){if("ArrowUp"===b.key){if(jZa(a,a.grabbedIndex)){var d=c.previousElementSibling;
a.grabbedIndex--}}else kZa(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."))}}};a4.prototype.detectChanges=function(){this.hasChanges=!Ei(this.fields,this.originalFields)};a4.\u0275fac=function(a){return new (a||a4)(D(XB),D(MB),D($z))};
a4.\u0275cmp=w({type:a4,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&&(F(0,"div",0)(1,"div",1)(2,"h1",2),O(3," Reorder custom fields "),G(),F(4,"button",3),J("click",function(){return bjc(b)}),H(5,"mat-icon",4),G()()(),F(6,"div",5)(7,"ol",6),J("cdkDropListDropped",function(c){return b.drop(c)}),M(8,lZa,9,7,"li",7),G()(),F(9,"div",8)(10,"button",9),J("click",function(){return b.dialogRef.close()}),O(11," Cancel "),G(),F(12,"button",10),J("click",function(){return b.dialogRef.close(b.fields)}),O(13," Save "),G()());a&2&&(B(8),
C("ngForOf",b.fields)("ngForTrackBy",b.trackByFn),B(4),C("disabled","CUSTOMIZED"===b.fieldOrdering&&!b.hasChanges))},dependencies:[Gx,BB,aC,bC,cC,rV,sV,lV,sF,dF],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 b4=new ld("CDK_TABLE");new ld("text-column-options");
var c4=function(a){this.template=a};c4.\u0275fac=function(a){return new (a||c4)(D(xf))};c4.\u0275dir=w({type:c4,selectors:[["","cdkCellDef",""]]});var d4=function(a){this.template=a};d4.\u0275fac=function(a){return new (a||d4)(D(xf))};d4.\u0275dir=w({type:d4,selectors:[["","cdkHeaderCellDef",""]]});var e4=function(a){this.template=a};e4.\u0275fac=function(a){return new (a||e4)(D(xf))};e4.\u0275dir=w({type:e4,selectors:[["","cdkFooterCellDef",""]]});
var ejc=mZa(function(){}),f4=function(a){var b=ejc.call(this)||this;b._table=a;b._stickyEnd=!1;return b};U(f4,ejc);f4.prototype._updateColumnCssClassName=function(){this._columnCssClassName=["cdk-column-"+this.cssClassFriendlyName]};f4.prototype._setNameInput=function(a){a&&(this._name=a,this.cssClassFriendlyName=a.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())};
li.Object.defineProperties(f4.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=Vg(a);this._hasStickyChanged=b!==this._stickyEnd}}});f4.\u0275fac=function(a){return new (a||f4)(D(b4,8))};
f4.\u0275dir=w({type:f4,selectors:[["","cdkColumnDef",""]],contentQueries:function(a,b,c){a&1&&(Cf(c,c4,5),Cf(c,d4,5),Cf(c,e4,5));if(a&2){var d;Af(d=Df())&&(b.cell=d.first);Af(d=Df())&&(b.headerCell=d.first);Af(d=Df())&&(b.footerCell=d.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[Ge([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:f4}]),ae]});
var fjc=function(a,b){b.nativeElement.classList.add.apply(b.nativeElement.classList,u(a._columnCssClassName))},g4=function(a,b){fjc.call(this,a,b)};U(g4,fjc);g4.\u0275fac=function(a){return new (a||g4)(D(f4),D(pd))};g4.\u0275dir=w({type:g4,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[ae]});
var h4=function(a,b){fjc.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(h4,fjc);h4.\u0275fac=function(a){return new (a||h4)(D(f4),D(pd))};h4.\u0275dir=w({type:h4,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[ae]});
var gjc=function(){this.tasks=[];this.endTasks=[]},hjc=new ld("_COALESCED_STYLE_SCHEDULER"),i4=function(a){this._ngZone=a;this._currentSchedule=null;this._destroyed=new S.Subject};i4.prototype.schedule=function(a){this._createScheduleIfNeeded();this._currentSchedule.tasks.push(a)};i4.prototype.ngOnDestroy=function(){this._destroyed.next();this._destroyed.complete()};
i4.prototype._createScheduleIfNeeded=function(){var a=this;this._currentSchedule||(this._currentSchedule=new gjc,this._getScheduleObservable().pipe(cg(this._destroyed)).subscribe(function(){for(;a._currentSchedule.tasks.length||a._currentSchedule.endTasks.length;){var b=a._currentSchedule;a._currentSchedule=new gjc;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}))};
i4.prototype._getScheduleObservable=function(){return this._ngZone.isStable?(0,S.from)(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Qf())};i4.\u0275fac=function(a){return new (a||i4)(t(jg))};i4.\u0275prov=dc({token:i4,factory:i4.\u0275fac});
var j4=function(a,b){this.template=a;this._differs=b};j4.prototype.ngOnChanges=function(a){this._columnsDiffer||(a=a.columns&&a.columns.currentValue||[],this._columnsDiffer=this._differs.find(a).create(),this._columnsDiffer.diff(a))};j4.\u0275fac=function(a){return new (a||j4)(D(xf),D(Ax))};j4.\u0275dir=w({type:j4,features:[Cc]});var ijc=function(){j4.apply(this,arguments)};U(ijc,j4);ijc.\u0275dir=j4.\u0275dir;ijc.\u0275fac=j4.\u0275fac;
var jjc=mZa(ijc),k4=function(a,b,c){a=jjc.call(this,a,b)||this;a._table=c;return a};U(k4,jjc);k4.prototype.ngOnChanges=function(a){jjc.prototype.ngOnChanges.call(this,a)};k4.\u0275fac=function(a){return new (a||k4)(D(xf),D(Ax),D(b4,8))};k4.\u0275dir=w({type:k4,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[ae,Cc]});var kjc=function(){j4.apply(this,arguments)};U(kjc,j4);kjc.\u0275dir=j4.\u0275dir;
kjc.\u0275fac=j4.\u0275fac;var ljc=mZa(kjc),l4=function(a,b,c){a=ljc.call(this,a,b)||this;a._table=c;return a};U(l4,ljc);l4.prototype.ngOnChanges=function(a){ljc.prototype.ngOnChanges.call(this,a)};l4.\u0275fac=function(a){return new (a||l4)(D(xf),D(Ax),D(b4,8))};l4.\u0275dir=w({type:l4,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[ae,Cc]});var m4=function(a,b,c){j4.call(this,a,b);this._table=c};U(m4,j4);
m4.\u0275fac=function(a){return new (a||m4)(D(xf),D(Ax),D(b4,8))};m4.\u0275dir=w({type:m4,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[ae]});var o4=function(a){this._viewContainer=a;n4=this};o4.prototype.ngOnDestroy=function(){n4===this&&(n4=null)};var n4=null;o4.\u0275fac=function(a){return new (a||o4)(D(yf))};o4.\u0275dir=w({type:o4,selectors:[["","cdkCellOutlet",""]]});var p4=function(){};
p4.\u0275fac=function(a){return new (a||p4)};p4.\u0275cmp=w({type:p4,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&&ue(0,0)},dependencies:[o4],encapsulation:2});var q4=function(){};q4.\u0275fac=function(a){return new (a||q4)};
q4.\u0275cmp=w({type:q4,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&ue(0,0)},dependencies:[o4],encapsulation:2});var r4=function(a){this.templateRef=a;this._contentClassName="cdk-no-data-row"};r4.\u0275fac=function(a){return new (a||r4)(D(xf))};r4.\u0275dir=w({type:r4,selectors:[["ng-template","cdkNoDataRow",""]]});
var mjc=new ld("CDK_SPL");
var njc=["top","bottom","left","right"],ojc=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"}},pjc=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)})},qjc=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),v=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),T=L.next();!T.done;T=L.next()){T=T.value;for(var Y=0;Y<h;Y++){var ka=T.children[Y];c[Y]&&a._addStickyStyle(ka,N,q[Y],Y===y);d[Y]&&a._addStickyStyle(ka,I,v[Y],Y===E)}}a._positionListener&&(a._positionListener.stickyColumnsUpdated({sizes:-1===y?[]:k.slice(0,y+1).map(function(ha,ra){return c[ra]?ha:null})}),a._positionListener.stickyEndColumnsUpdated({sizes:-1===
E?[]:k.slice(E).map(function(ha,ra){return d[ra+E]?ha:null}).reverse()}))})}else a._positionListener&&(a._positionListener.stickyColumnsUpdated({sizes:[]}),a._positionListener.stickyEndColumnsUpdated({sizes:[]}))},rjc=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 v=e[b];q[b]=a._isNativeHtmlTable?Array.from(v.children):[v];v=v.getBoundingClientRect().height;c+=v;k[b]=v}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]),T=L.next();!T.done;T=L.next())a._addStickyStyle(T.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})}})}},sjc=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=ojc.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]);njc.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(njc),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 tjc=[[["caption"]],[["colgroup"],["col"]]],s4=function(a,b){this.viewContainer=a;this.elementRef=b};s4.\u0275fac=function(a){return new (a||s4)(D(yf),D(pd))};s4.\u0275dir=w({type:s4,selectors:[["","rowOutlet",""]]});var t4=function(a,b){this.viewContainer=a;this.elementRef=b};t4.\u0275fac=function(a){return new (a||t4)(D(yf),D(pd))};t4.\u0275dir=w({type:t4,selectors:[["","headerRowOutlet",""]]});var u4=function(a,b){this.viewContainer=a;this.elementRef=b};
u4.\u0275fac=function(a){return new (a||u4)(D(yf),D(pd))};u4.\u0275dir=w({type:u4,selectors:[["","footerRowOutlet",""]]});var v4=function(a,b){this.viewContainer=a;this.elementRef=b};v4.\u0275fac=function(a){return new (a||v4)(D(yf),D(pd))};v4.\u0275dir=w({type:v4,selectors:[["","noDataRowOutlet",""]]});
var w4=function(a,b,c,d,e,f,h,k,q,v,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=v;this._stickyPositioningListener=y;this._ngZone=E;this._onDestroy=new S.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 Rw;d||this._elementRef.nativeElement.setAttribute("role","table");this._document=f;this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName};
w4.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(cg(this._onDestroy)).subscribe(function(){a._forceRecalculateCellWidths=!0})};
w4.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&&x4(this);this._checkStickyStates()};
w4.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)};
w4.prototype.renderRows=function(){var a=this;this._renderRows=this._getAllRenderRows();var b=this._dataDiffer.diff(this._renderRows);if(b){var c=this._rowOutlet.viewContainer;Bpb(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();Omb(b,function(d){c.get(d.currentIndex).context.$implicit=d.item.data});this._updateNoDataRow();this._ngZone&&Uw()?this._ngZone.onStable.pipe(Qf(),
cg(this._onDestroy)).subscribe(function(){x4(a)}):x4(this)}else this._updateNoDataRow();this.contentChanged.next()};
var ujc=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});pjc(a._stickyStyler,b,["top"]);rjc(a._stickyStyler,b,c,"top");a._headerRowDefs.forEach(function(d){return d.resetStickyChanged()})},vjc=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});
pjc(a._stickyStyler,b,["bottom"]);rjc(a._stickyStyler,b,c,"bottom");sjc(a._stickyStyler,a._elementRef.nativeElement,c);a._footerRowDefs.forEach(function(d){return d.resetStickyChanged()})},x4=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)pjc(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=w4.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();Gs(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=Gs(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs);this._footerRowDefs=Gs(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs);this._rowDefs=Gs(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,S.isObservable)(this.dataSource)?b=this.dataSource:Array.isArray(this.dataSource)&&(b=(0,S.of)(this.dataSource));this._renderChangeSubscription=b.pipe(cg(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)});ujc(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)});vjc(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});qjc(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,n4&&n4._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 k4?c.headerCell.template:a instanceof l4?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)&&ujc(this);this._footerRowDefs.reduce(a,!1)&&vjc(this);Array.from(this._columnDefsByName.values()).reduce(a,!1)&&(this._stickyColumnStylesNeedReset=!0,x4(this))};
g._setupStickyStyler=function(){var a=this;this._stickyStyler=new ojc(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,S.of)()).pipe(cg(this._onDestroy)).subscribe(function(b){a._stickyStyler.direction=b;x4(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}}};
li.Object.defineProperties(w4.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=Vg(a);this._rowOutlet&&this._rowOutlet.viewContainer.length&&
(this._forceRenderDataRows(),x4(this))}},fixedLayout:{configurable:!0,enumerable:!0,get:function(){return this._fixedLayout},set:function(a){this._fixedLayout=Vg(a);this._stickyColumnStylesNeedReset=this._forceRecalculateCellWidths=!0}}});w4.\u0275fac=function(a){return new (a||w4)(D(Ax),D(vx),D(pd),Zc("role"),D(rA,8),D(ji),D(Iy),D(Cpb),D(hjc),D(GA),D(mjc,12),D(jg,8))};
w4.\u0275cmp=w({type:w4,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(a,b,c){a&1&&(Cf(c,r4,5),Cf(c,f4,5),Cf(c,m4,5),Cf(c,k4,5),Cf(c,l4,5));if(a&2){var d;Af(d=Df())&&(b._noDataRow=d.first);Af(d=Df())&&(b._contentColumnDefs=d);Af(d=Df())&&(b._contentRowDefs=d);Af(d=Df())&&(b._contentHeaderRowDefs=d);Af(d=Df())&&(b._contentFooterRowDefs=d)}},viewQuery:function(a,b){a&1&&(Bf(s4,7),Bf(t4,7),Bf(u4,7),Bf(v4,7));if(a&2){var c;Af(c=Df())&&(b._rowOutlet=c.first);Af(c=Df())&&(b._headerRowOutlet=
c.first);Af(c=Df())&&(b._footerRowOutlet=c.first);Af(c=Df())&&(b._noDataRowOutlet=c.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(a,b){a&2&&le("cdk-table-fixed-layout",b.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Ge([{provide:b4,useExisting:w4},{provide:Cpb,useClass:Apb},{provide:hjc,useClass:i4},{provide:mjc,
useValue:null}])],ngContentSelectors:["caption","colgroup, col"],decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(a){a&1&&(xe(tjc),ye(0),ye(1,1),ue(2,0)(3,1)(4,2)(5,3))},dependencies:[s4,t4,u4,v4],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2});
var y4=function(){};y4.\u0275fac=function(a){return new (a||y4)};y4.\u0275mod=uc({type:y4});y4.\u0275inj=gc({imports:[IA]});
var z4=function(){c4.apply(this,arguments)};U(z4,c4);z4.\u0275fac=function(){var a;return function(b){return(a||(a=ed(z4)))(b||z4)}}();z4.\u0275dir=w({type:z4,selectors:[["","matCellDef",""]],features:[Ge([{provide:c4,useExisting:z4}]),ae]});var A4=function(){d4.apply(this,arguments)};U(A4,d4);A4.\u0275fac=function(){var a;return function(b){return(a||(a=ed(A4)))(b||A4)}}();A4.\u0275dir=w({type:A4,selectors:[["","matHeaderCellDef",""]],features:[Ge([{provide:d4,useExisting:A4}]),ae]});
var B4=function(){return f4.apply(this,arguments)||this};U(B4,f4);B4.prototype._updateColumnCssClassName=function(){f4.prototype._updateColumnCssClassName.call(this);this._columnCssClassName.push("mat-column-"+this.cssClassFriendlyName)};li.Object.defineProperties(B4.prototype,{name:{configurable:!0,enumerable:!0,get:function(){return this._name},set:function(a){this._setNameInput(a)}}});B4.\u0275fac=function(){var a;return function(b){return(a||(a=ed(B4)))(b||B4)}}();
B4.\u0275dir=w({type:B4,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[Ge([{provide:f4,useExisting:B4},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:B4}]),ae]});var C4=function(){g4.apply(this,arguments)};U(C4,g4);C4.\u0275fac=function(){var a;return function(b){return(a||(a=ed(C4)))(b||C4)}}();C4.\u0275dir=w({type:C4,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[ae]});
var D4=function(){h4.apply(this,arguments)};U(D4,h4);D4.\u0275fac=function(){var a;return function(b){return(a||(a=ed(D4)))(b||D4)}}();D4.\u0275dir=w({type:D4,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[ae]});
var E4=function(){return k4.apply(this,arguments)||this};U(E4,k4);E4.\u0275fac=function(){var a;return function(b){return(a||(a=ed(E4)))(b||E4)}}();E4.\u0275dir=w({type:E4,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[Ge([{provide:k4,useExisting:E4}]),ae]});var F4=function(){m4.apply(this,arguments)};U(F4,m4);F4.\u0275fac=function(){var a;return function(b){return(a||(a=ed(F4)))(b||F4)}}();
F4.\u0275dir=w({type:F4,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[Ge([{provide:m4,useExisting:F4}]),ae]});var G4=function(){};U(G4,p4);G4.\u0275fac=function(){var a;return function(b){return(a||(a=ed(G4)))(b||G4)}}();
G4.\u0275cmp=w({type:G4,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[Ge([{provide:p4,useExisting:G4}]),ae],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&ue(0,0)},dependencies:[o4],encapsulation:2});var H4=function(){};U(H4,q4);H4.\u0275fac=function(){var a;return function(b){return(a||(a=ed(H4)))(b||H4)}}();
H4.\u0275cmp=w({type:H4,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[Ge([{provide:q4,useExisting:H4}]),ae],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&ue(0,0)},dependencies:[o4],encapsulation:2});
var wjc=[[["caption"]],[["colgroup"],["col"]]],I4=function(){w4.apply(this,arguments);this.stickyCssClass="mat-table-sticky";this.needsPositionStickyOnElement=!1};U(I4,w4);I4.\u0275fac=function(){var a;return function(b){return(a||(a=ed(I4)))(b||I4)}}();
I4.\u0275cmp=w({type:I4,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(a,b){a&2&&le("mat-table-fixed-layout",b.fixedLayout)},exportAs:["matTable"],features:[Ge([{provide:Cpb,useClass:Apb},{provide:w4,useExisting:I4},{provide:b4,useExisting:I4},{provide:hjc,useClass:i4},{provide:mjc,useValue:null}]),ae],ngContentSelectors:["caption","colgroup, col"],decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",
""]],template:function(a){a&1&&(xe(wjc),ye(0),ye(1,1),ue(2,0)(3,1)(4,2)(5,3))},dependencies:[s4,t4,u4,v4],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 J4=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 Rw;this.displayedColumn=["index","name","type","required","customFieldId"]},AZa=function(a){return NB(a.matDialog.open(a4,{width:"500PX",autoFocus:!1,data:{fields:a.fields,orderingCustomized:a.fieldOrdering}})).subscribe(function(b){b&&xjc(a,b)})},BZa=function(a){a.confirmationDialog.open({title:"Reset ordering?",content:Pn("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()}})},xjc=function(a,b){eo(a.analytics,io.FIELD_ORDERING,"reorderFields");var c=b.map(function(d){return(new gl).setCustomFieldId(d.customFieldId)});a.componentId?(FK(a.butterBar,"Saving...",0),a.fieldConfigService.reorder(a.componentId,c).subscribe(function(){FK(a.butterBar,"Field ordering saved",5E3);a.fields=b.concat();a.fieldOrdering="CUSTOMIZED"},function(){GK(a.butterBar,"Saving ordering failed, please refresh the page.",5E3)})):GK(a.butterBar,"Saving ordering failed due to the undefined component id.")};
J4.prototype.reset=function(){var a=this;eo(this.analytics,io.FIELD_ORDERING,"resetFields");this.componentId?(FK(this.butterBar,"Resetting orderings..."),this.fieldConfigService.executor.post({url:"action/components/"+this.componentId+"/unorder",body:null,responseConstructor:tL}).subscribe(function(){FK(a.butterBar,"Ordering reset");a.fieldOrdering="INHERITED";a.onReload.emit()},function(){GK(a.butterBar,"Reset failed.")})):GK(this.butterBar,"Reset failed due to the undefined component id.")};
J4.\u0275fac=function(a){return new (a||J4)(D(ZB),D(ZM),D(C3),D(QM),D(DK))};
J4.\u0275cmp=w({type:J4,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&&(F(0,"div",0)(1,"div",1)(2,"table",2),qe(3,3),M(4,nZa,2,0,"th",4),M(5,oZa,2,1,"td",5),re(),qe(6,6),M(7,pZa,2,0,"th",4),M(8,qZa,
2,1,"td",5),re(),qe(9,7),M(10,rZa,2,0,"th",4),M(11,sZa,3,3,"td",5),re(),qe(12,8),M(13,tZa,2,0,"th",4),M(14,uZa,2,1,"td",5),re(),qe(15,9),M(16,vZa,2,0,"th",4),M(17,wZa,2,1,"td",5),re(),M(18,xZa,1,0,"tr",10),M(19,yZa,1,0,"tr",11),G(),M(20,zZa,2,0,"div",12),G(),M(21,CZa,6,2,"div",13),G());a&2&&(B(2),C("dataSource",b.fields),B(16),C("matHeaderRowDef",b.displayedColumn),B(1),C("matRowDefColumns",b.displayedColumn),B(1),C("ngIf",0===b.fields.length),B(1),C("ngIf",b.isAdmin))},dependencies:[Cx,BB,I4,A4,
E4,B4,z4,F4,C4,D4,G4,H4,JS],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 K4=function(){};K4.\u0275fac=function(a){return new (a||K4)};K4.\u0275mod=uc({type:K4});K4.\u0275inj=gc({providers:[ZM],imports:[Wx,BG,dC]});
var L4=function(){};L4.\u0275fac=function(a){return new (a||L4)};L4.\u0275mod=uc({type:L4});L4.\u0275inj=gc({imports:[y4,gB,gB]});
var M4=function(){};M4.\u0275fac=function(a){return new (a||M4)};M4.\u0275mod=uc({type:M4});M4.\u0275inj=gc({imports:[Wx,BG,xO,dC,L4,tV,lH,bI,wF,K4,KS]});
var N4=function(a){this.analytics=a;this.filename=this.packageName=this.issueId="";this.lineNumbers=[];this.changeNumber=0},EZa=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="+yjc+a.issueId+zjc;a.changeNumber&&(c+="&rcl="+a.changeNumber);Array.isArray(b)?c+="&l="+b.join(","):b&&(c+="&l="+b);return c}};
N4.prototype.trackClick=function(a){eo(this.analytics,"codeMentions","clickCodeSearchLink",a)};N4.\u0275fac=function(a){return new (a||N4)(D(QM))};
N4.\u0275cmp=w({type:N4,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&&(F(0,"div",0)(1,"a",1),J("click",function(){return b.trackClick("fileName")}),O(2),G(),M(3,DZa,2,1,"span",2),M(4,GZa,5,1,"span",2),G());a&2&&(B(1),C("href",EZa(b,b.lineNumbers),Md),B(1),De(" ",b.filename," "),B(1),C("ngIf",!(10>=b.lineNumbers.length&&"wiki"!=b.packageName)),B(1),C("ngIf",10>=b.lineNumbers.length&&"wiki"!=b.packageName))},dependencies:[Gx,Cx],encapsulation:2});var yjc=encodeURIComponent("content:(https?://)?b(uganizer)?(\\.corp(\\.google\\.com)?)?/(issues/|issue\\?id=)?"),zjc=encodeURIComponent("(\\b|$)");
var O4=function(){};O4.\u0275fac=function(a){return new (a||O4)};O4.\u0275mod=uc({type:O4});O4.\u0275inj=gc({imports:[Wx]});
var P4=function(){this.isReady=!1};P4.\u0275fac=function(a){return new (a||P4)};P4.\u0275cmp=w({type:P4,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&&(xe(),M(0,HZa,1,0,"div",0),M(1,IZa,2,0,"ng-container",1));a&2&&(C("ngIf",!b.isReady),B(1),C("ngIf",b.isReady))},dependencies:[Cx],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 Q4=function(){this.warning=""};Q4.\u0275fac=function(a){return new (a||Q4)};
Q4.\u0275cmp=w({type:Q4,selectors:[["onedev-warning-icon"]],hostVars:2,hostBindings:function(a,b){a&2&&le("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&&M(0,JZa,2,1,"svg",0);a&2&&
C("ngIf",b.warning)},dependencies:[Cx,sF],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,R4=function(){this.thinking=!1;this.warning=this.labelTooltip="";this.id="onedev-field-label-"+Cjc;Cjc++};R4.\u0275fac=function(a){return new (a||R4)};
R4.\u0275cmp=w({type:R4,selectors:[["onedev-field-label"]],hostVars:1,hostBindings:function(a,b){a&2&&ge("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&&(xe(),F(0,"onedev-async-data-placeholder",0)(1,"span",1),ye(2),G(),H(3,"onedev-warning-icon",2),G());a&2&&(C("isReady",!b.thinking),B(1),C("matTooltip",b.labelTooltip),B(2),C("warning",
b.warning))},dependencies:[P4,sF,Q4],styles:["[_nghost-%COMP%]{line-height:29px;font-size:13px}span.label[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}"]});var S4=function(){this.thinking=!1};S4.\u0275fac=function(a){return new (a||S4)};
S4.\u0275cmp=w({type:S4,selectors:[["onedev-field-value"]],inputs:{thinking:"thinking"},ngContentSelectors:["*","[actions]"],decls:3,vars:1,consts:[[3,"isReady"]],template:function(a,b){a&1&&(xe(Ajc),F(0,"onedev-async-data-placeholder",0),ye(1),ye(2,1),G());a&2&&C("isReady",!b.thinking)},dependencies:[P4],encapsulation:2});var T4=function(){this.labelPosition="left"};T4.prototype.ngAfterContentInit=function(){var a=this;setTimeout(function(){a.field&&a.label&&(a.field.labelledById=a.label.id)})};
T4.\u0275fac=function(a){return new (a||T4)};
T4.\u0275cmp=w({type:T4,selectors:[["onedev-edit-field"]],contentQueries:function(a,b,c){a&1&&(Cf(c,$P,5),Cf(c,R4,7));if(a&2){var d;Af(d=Df())&&(b.field=d.first);Af(d=Df())&&(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&&(xe(Bjc),F(0,"div",0),ye(1),ye(2,1),G());a&2&&le("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"],U4=function(a,b){this.overlay=a;this.viewContainerRef=b;this.newlineWithEnterKey=this.displayUnder=!1;this.hasBackdrop=!0;this.closedWithAction=new Rw;this.isOpen=!1;this.destroyed$=new S.ReplaySubject(1);this.backdropClickSubscription=S.Subscription.EMPTY};U4.prototype.ngOnInit=function(){};U4.prototype.ngOnDestroy=function(){this.close();this.destroyed$.next();this.destroyed$.complete()};
U4.prototype.open=function(){var a=this;this.isOpen||(this.overlayRef=this.createOverlay(),this.attach(),this.isOpen=!0,this.backdropClickSubscription=this.overlayRef.backdropClick().pipe(cg(this.destroyed$)).subscribe(function(){MZa(a)}))};U4.prototype.close=function(){this.isOpen&&this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=void 0,this.isOpen=!1,this.backdropClickSubscription.unsubscribe())};
var LZa=function(a){a.closedWithAction.emit(0);a.close()},MZa=function(a){a.closedWithAction.emit(1);a.close()};g=U4.prototype;g.processKeydown=function(a){switch(a.key){case "Escape":MZa(this);a.stopPropagation();break;case "Enter":if(this.newlineWithEnterKey){if(a.metaKey||a.ctrlKey)LZa(this),a.stopPropagation(),a.preventDefault()}else a.shiftKey||(LZa(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 YA(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=QA(PA(VA(this.overlay.position(),this.anchor),!1),!1);a._offsetX=-4;a._offsetY=this.displayUnder?this.anchor.offsetHeight:-4;return NA(a,Ejc)};g.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};U4.\u0275fac=function(a){return new (a||U4)(D(cB),D(yf))};
U4.\u0275cmp=w({type:U4,selectors:[["onedev-pop-over-edit-panel"]],viewQuery:function(a,b){a&1&&Bf(Djc,7);if(a&2){var c;Af(c=Df())&&(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&&M(0,NZa,8,2,"ng-template",null,0,Jf)},dependencies:[Mx,Py,BB],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"],PZa=function(a){return{$implicit:a}},V4=function(a){this.disabled=!1;this.displayEditIcon=!0;this.openPopOverOnInit=!1;this.valueChange=new Rw;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(V4,$P);g=V4.prototype;g.ngOnInit=function(){};g.ngAfterViewInit=function(){var a=this;this.openPopOverOnInit&&setTimeout(function(){a.startEditing()})};
g.valueChanged=function(){return UZa(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=UZa(this.editingValue),this.valueChange.emit(a))};g.writeValue=function(a){var b=UZa(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};li.Object.defineProperties(V4.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(null!=a?String(a):null)}}});V4.\u0275fac=function(a){return new (a||V4)(Zc("required"))};
V4.\u0275cmp=w({type:V4,selectors:[["onedev-numeric-field"]],viewQuery:function(a,b){a&1&&Bf(Fjc,7);if(a&2){var c;Af(c=Df())&&(b.popOver=c.first)}},inputs:{value:"value",disabled:"disabled",displayEditIcon:"displayEditIcon",labelledById:"labelledById",openPopOverOnInit:"openPopOverOnInit",valueTemplate:"valueTemplate"},outputs:{valueChange:"valueChange"},features:[Ge([{provide:Ex,useExisting:bc(function(){return V4}),multi:!0},{provide:$P,useExisting:bc(function(){return V4}),multi:!0}]),ae],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&&(F(0,"button",0,1),J("click",function(){return b.startEditing()})("focus",function(){return b.headerFocused=!0})("blur",function(){return b.headerFocused=!1}),F(2,"span"),M(3,QZa,2,4,"ng-container",2),M(4,RZa,1,1,"ng-template",null,3,Jf),G(),M(6,SZa,2,0,"svg",4),G(),F(7,"onedev-pop-over-edit-panel",5,6),J("closedWithAction",function(f){return b.stopEditing(f)}),G(),M(9,TZa,1,1,"ng-template",null,7,Jf));if(a&2){var c=Ce(1),
d=Ce(5),e=Ce(10);C("disabled",b.disabled);B(3);C("ngIf",b.valueTemplate)("ngIfElse",d);B(3);C("ngIf",!b.disabled&&b.displayEditIcon);B(1);C("anchor",c)("editorTemplate",e)}},dependencies:[Cx,Mx,Jg,ty,ly,ry,U4],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 ZZa=function(){return[]},W4=function(){this.thinking=!1;this.effortChange=new Rw;this.isCompatibleValue=!0;this.fieldName="";this.fieldType="UNKNOWN";this.isNaN=isNaN};
W4.prototype.ngOnChanges=function(){if("DROPDOWN"===this.getFieldType()){var a;this.effortSpec&&null!=(a=Al(this.effortSpec))&&a.getOptionsList()&&this.effort&&V(this.effort,2)?(a=Gjc(this),a="incompatible"===a?(new rl).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)};W4.prototype.selectOption=function(a){this.selectedOption=a;if(null==a)this.effort=void 0;else{var b,c,d=new ul,e=null!=(c=null==(b=this.effortSpec)?void 0:b.getId())?c:0;b=Uk(d,1,e);a=a.getLabel();this.effort=vl(b,2,a)}this.isCompatibleValue=Hjc(this);this.effortChange.emit(this.effort)};W4.prototype.getFieldName=function(){return this.effortSpec?this.effortSpec.getName():this.effort?"Estimate "+ej(this.effort,1):"Estimate"};
W4.prototype.getFieldType=function(){var a;if(null==(a=this.effortSpec)?0:wl(a,4,xl))return"NUMERIC";var b;return(null==(b=this.effortSpec)?0:wl(b,5,xl))?"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:ej(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=Al(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"}};W4.\u0275fac=function(a){return new (a||W4)};
W4.\u0275cmp=w({type:W4,selectors:[["b-estimated-effort-row"]],inputs:{thinking:"thinking",effort:"effort",effortSpec:"effortSpec"},outputs:{effortChange:"effortChange"},features:[Cc],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&&(M(0,b_a,8,8,"onedev-edit-field",0),M(1,e_a,3,2,"ng-template",null,1,Jf));a&2&&C("ngIf",b.effortSpec)},dependencies:[Cx,Ix,Jx,Kx,R4,S4,T4,aQ,V4],styles:["onedev-numeric-field[_ngcontent-%COMP%], onedev-single-select[_ngcontent-%COMP%]{flex:1;width:100%}\n/*# sourceMappingURL=estimated_effort_row.css.map */"]});
var X4=function(){};X4.\u0275fac=function(a){return new (a||X4)};X4.\u0275mod=uc({type:X4});X4.\u0275inj=gc({imports:[Wx]});
var Y4=function(){};Y4.\u0275fac=function(a){return new (a||Y4)};Y4.\u0275mod=uc({type:Y4});Y4.\u0275inj=gc({imports:[Wx,lH]});
var Z4=function(){};Z4.\u0275fac=function(a){return new (a||Z4)};Z4.\u0275mod=uc({type:Z4});Z4.\u0275inj=gc({imports:[X4,Wx,lH,Y4]});
var a5=function(){};a5.\u0275fac=function(a){return new (a||a5)};a5.\u0275mod=uc({type:a5});a5.\u0275inj=gc({imports:[Wx,aA,fB,bB,BG]});
var b5=function(){};b5.\u0275fac=function(a){return new (a||b5)};b5.\u0275mod=uc({type:b5});b5.\u0275inj=gc({imports:[Wx,Gy,a5]});
var c5=function(){};c5.\u0275fac=function(a){return new (a||c5)};c5.\u0275mod=uc({type:c5});c5.\u0275inj=gc({imports:[Wx,lH,wF,Z4,pQ,b5]});
var d5=function(a,b,c){wI.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=vI};U(d5,wI);d5.\u0275dir=wI.\u0275dir;d5.prototype.ngOnInit=function(){};d5.prototype.openIssueIdPicker=function(){this.disabled||this.trigger.open()};var Hs=function(a,b){a.clipboard.copy(b.value);a.trigger.close()};g=d5.prototype;g.isSessionInternal=function(){return this.activeSession.isInternalSession()};
g.getIssueUrl=function(){return yH(this.activeSession,this.isExternalIssue)+this.issueId};g.getShortIssueUrl=function(){return yH(this.activeSession).replace(/^.*?:\/\//,"")+this.issueId};g.getUrlAndTitle=function(){return yH(this.activeSession,this.isExternalIssue)+this.issueId+" "+this.issueTitle};g.getIssueEmail=function(){return"buganizer-system"+(tBb(this.activeSession)?"":"-qa")+("+"+this.componentId+"+"+this.issueId)+"@google.com"};
g.getTodoComment=function(){return"TODO("+this.getShortIssueUrl()+"): "+this.issueTitle};d5.\u0275fac=function(a){return new (a||d5)(D(vH),D(jT),D(DK))};
d5.\u0275cmp=w({type:d5,selectors:[["b-issue-id-picker"]],viewQuery:function(a,b){a&1&&Bf(WP,7);if(a&2){var c;Af(c=Df())&&(b.trigger=c.first)}},inputs:{componentId:"componentId",issueId:"issueId",issueTitle:"issueTitle",isExternalIssue:"isExternalIssue",disabled:"disabled"},features:[ae],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();F(0,"button",0);J("click",function(){b.clipboard.copy(b.issueId);FK(b.butterBar,"Issue ID copied",2E3)});O(1);G();F(2,"button",1,2);J("onHotkey",function(){return b.openIssueIdPicker()})("click",function(){return b.openIssueIdPicker()});H(4,"mat-icon",3);G();F(5,"onedev-popup-panel",4,5)(7,"div",6)(8,"div",7)(9,"label",8);O(10,"Issue ID");G();F(11,"input",9,10);
J("focus",function(){z(c);var k=Ce(12);return A(k.select())});G();F(13,"button",11);J("click",function(){z(c);var k=Ce(12);return A(Hs(b,k))});H(14,"mat-icon",12);G()();F(15,"div",7)(16,"label",8);O(17,"Issue URL");G();F(18,"input",13,14);J("focus",function(){z(c);var k=Ce(19);return A(k.select())});G();F(20,"button",15);J("click",function(){z(c);var k=Ce(19);return A(Hs(b,k))});H(21,"mat-icon",12);G()();F(22,"div",7)(23,"label",8);O(24,"URL and title");G();F(25,"input",16,17);J("focus",function(){z(c);
var k=Ce(26);return A(k.select())});G();F(27,"button",18);J("click",function(){z(c);var k=Ce(26);return A(Hs(b,k))});H(28,"mat-icon",12);G()();M(29,f_a,7,2,"div",19);M(30,g_a,7,2,"div",19);G()()}if(a&2){var d=Ce(6),e=Ce(12),f=Ce(19),h=Ce(26);ge("aria-label","Copy issue number "+b.issueId);B(1);Ee(b.issueId);B(1);C("onedevPopupPanelTriggerFor",d)("hotkey",b.HOTKEYS.HIGHLIGHT_ISSUE_ID);ge("aria-label","Show links for the issue "+b.issueId);B(7);C("htmlFor",e.id);B(2);ge("value",b.issueId);B(5);C("htmlFor",
f.id);B(2);ge("value",b.getIssueUrl());B(5);C("htmlFor",h.id);B(2);ge("value",b.getUrlAndTitle());B(4);C("ngIf",b.isSessionInternal());B(1);C("ngIf",b.isSessionInternal())}},dependencies:[Cx,dJ,BB,dF,sF,VP,WP],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:.8125rem;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 e5=function(){};e5.\u0275fac=function(a){return new (a||e5)};e5.\u0275mod=uc({type:e5});e5.\u0275inj=gc({imports:[Wx,eJ,BG,wF,lH,nQ]});
var f5=function(a){JJ.call(this);this.observableSlosService=a;this.recordType="slo";this.idForRecord=function(b){return b.getSloId()}};U(f5,JJ);g=f5.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)};
f5.\u0275fac=function(a){return new (a||f5)(t(uY))};f5.\u0275prov=dc({token:f5,factory:f5.\u0275fac,providedIn:"root"});
var g5=function(a,b,c,d){wI.call(this);var e=this;this.userPreferencesManager=a;this.sloStatusHelpersService=b;this.paths=c;this.sloFridge=d;this.onSnoozeChange=new Rw;this.providedSloId$=new S.ReplaySubject(1);this.slo$=this.providedSloId$.pipe(bg(function(f){return e.sloFridge.watchOne(f)}));this.shouldShowSnoozeButton=this.isAccordionExpanded=!1};U(g5,wI);g5.\u0275dir=wI.\u0275dir;
g5.prototype.ngOnInit=function(){var a=this;Ijc(this);this.userPreferencesManager.layoutPreferences$.pipe(cg(this.destroyed$),R(function(b){a.isAccordionExpanded=!!b.expandIssueSlo}))};g5.prototype.ngOnChanges=function(){this.sloId&&this.providedSloId$.next(this.sloId);Ijc(this)};
var Ijc=function(a){a.hasSlo=!!a.sloStatus&&KQb(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;ZEb(a.userPreferencesManager,{expandIssueSlo:a.isAccordionExpanded}).pipe(cg(a.destroyed$)).subscribe();
Un(io.ISSUE_SLO,"toggle",a.isAccordionExpanded?"open":"close")};g5.prototype.trackOpenSlo=function(){Un(io.EDIT_SLO,"open","fromIssueSloBox")};g5.\u0275fac=function(a){return new (a||g5)(D(VI),D(cS),D(TK),D(f5))};
g5.\u0275cmp=w({type:g5,selectors:[["b-issue-slo-box"]],viewQuery:function(a,b){a&1&&Bf(O_,5);if(a&2){var c;Af(c=Df())&&(b.snoozeDateTimePicker=c.first)}},inputs:{sloId:"sloId",componentId:"componentId",sloStatus:"sloStatus",sloSnoozeUntil:"sloSnoozeUntil",isEditable:"isEditable",issueCreationTimestamp:"issueCreationTimestamp"},outputs:{onSnoozeChange:"onSnoozeChange"},features:[ae,Cc],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&&(F(0,"span",0),J("click",function(){return Jjc(b)}),F(1,"label"),O(2,"SLO Status"),G(),F(3,"span",1)(4,"span",2),H(5,"b-icon",3),G(),F(6,"span",2),H(7,"b-icon",3),G()()(),F(8,"div",4)(9,"div",5)(10,"div",2),H(11,"b-aggregated-slo-status-indicator",
6),G(),F(12,"div",2),H(13,"b-slo-status-summary",7),G(),F(14,"button",8),J("click",function(){return Jjc(b)}),F(15,"span",1)(16,"span",2),H(17,"b-icon",3),G(),F(18,"span",2),H(19,"b-icon",3),G()()()(),F(20,"div",9),M(21,k_a,8,4,"div",10),F(22,"snooze-date-time-picker",11),J("snoozeUntilChange",function(c){return b.sloSnoozeUntilUnderEdit=c})("snoozeUntilCommit",function(){b.onSnoozeChange.next(b.sloSnoozeUntilUnderEdit||null)}),G(),M(23,m_a,4,3,"div",10),F(24,"div",12),M(25,n_a,2,1,"a",13),G()()());
a&2&&(B(4),C("hidden",b.isAccordionExpanded),B(1),C("name","arrow-down")("size","small"),B(1),C("hidden",!b.isAccordionExpanded),B(1),C("name","arrow-up")("size","small"),B(3),C("hidden",b.isAccordionExpanded),B(1),C("sloStatus",b.sloStatus)("sloSnoozeUntil",b.sloSnoozeUntilUnderEdit)("includeSloMetric",!0)("includeObjective",!0),B(1),C("hidden",!b.isAccordionExpanded),B(1),C("sloStatus",b.sloStatus)("sloSnoozeUntil",b.sloSnoozeUntilUnderEdit)("includeNoSlo",!0),B(1),C("color","")("matTooltip","Toggle the detailed SLO status"),
ge("aria-label","Toggle the detailed SLO status")("aria-expanded",b.isAccordionExpanded),B(2),C("hidden",b.isAccordionExpanded),B(1),C("name","arrow-down")("size","small"),B(1),C("hidden",!b.isAccordionExpanded),B(1),C("name","arrow-up")("size","small"),B(1),C("hidden",!b.isAccordionExpanded),B(1),C("ngIf",b.shouldShowSnoozeButton),B(1),C("snoozeUntil",b.sloSnoozeUntilUnderEdit),B(1),C("ngIf",b.editSloLink),B(2),C("ngIf",!b.editSloLink&&b.componentSloLink))},dependencies:[Cx,sF,BB,JY,JP,xY,O_,zH,
Px],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 h5=function(){};h5.\u0275fac=function(a){return new (a||h5)};h5.\u0275mod=uc({type:h5});h5.\u0275inj=gc({imports:[Wx,lH,BG,HZ,cQ,FZ,P_,bI,xO]});
var Kjc=function(){return{width:400}},i5=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=gt.COMPONENT_CREATE;a.setTitle("Browse Components");a=q_a(this);b.componentId&&r_a(this,Ki(b.componentId),a);this.isInternalSession=f.isInternalSession()};i5.prototype.viewComponent=function(a,b){b=void 0===b?null:b;a&&(b&&eo(this.analytics,"listComponents",b),this.bLocation.url(this.paths.manageComponent(a.componentId)))};
var q_a=function(a){return a.componentActions.getChildren(0,a.includeArchived).then(function(b){a.topLevelComponents=b;a.cdr.detectChanges();return b})},r_a=function(a,b,c){a.componentActions.get(b).then(function(d){for(var e=maa(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 Ho(f).then(function(q){for(var v=q[0],y=0,E={},I=r(e),N=I.next();!N.done;E=
{$jscomp$loop$prop$parentId$1565$1721:E.$jscomp$loop$prop$parentId$1565$1721},N=I.next()){E.$jscomp$loop$prop$parentId$1565$1721=N.value;N=void 0;var L=null!=(N=v.find(function(T){return function(Y){return Y.componentId==T.$jscomp$loop$prop$parentId$1565$1721}}(E)))?N:null;L&&(L.children=q[E.$jscomp$loop$prop$parentId$1565$1721],L.showChildren=!0,v=L.children,y=L.componentId)}d.archived&&!a.includeArchived&&(b=y);a.cdr.detectChanges();setTimeout(function(){a.componentTree.fireSelectionEvent(b)})})})};
i5.\u0275fac=function(a){return new (a||i5)(D(fO),D($R),D(SK),D(TK),D(QM),D(vH),D(zT),D(sI,2))};
i5.\u0275cmp=w({type:i5,selectors:[["b-list-components-page"]],features:[Ge([sI])],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&&(F(0,"h2",0),O(1,"Browse Components"),G(),F(2,"div",1)(3,"div",2),
M(4,o_a,2,1,"a",3),F(5,"button",4),O(6," Search Components "),G(),M(7,p_a,3,4,"ng-template",null,5,Jf),M(9,s_a,2,2,"div",6),G()(),F(10,"div",7),M(11,t_a,2,0,"div",8),F(12,"component-tree-list",9),J("init",function(d){return b.componentTree=d}),G()());if(a&2){var c=Ce(8);B(4);C("ngIf",b.isInternalSession);B(1);C("xapInlineDialogClick",c)("overlaySize",He(7,Kjc));B(4);C("ngIf",b.isInternalSession);B(2);C("ngIf",!b.topLevelComponents);B(1);C("components",b.topLevelComponents)("includeArchived",b.includeArchived)}},
dependencies:[Cx,kN,AN,zN,EN,HT,BB,CB,BT,DV],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 j5=function(){};j5.\u0275fac=function(a){return new (a||j5)};j5.\u0275mod=uc({type:j5});j5.\u0275inj=gc({imports:[Wx,WN,UN,ZN,aO,wN,IT,BG,DT,FV]});
var k5=function(){this.issueId="";this.packageMentionSet={packageName:"",fileMentionSet:[]};this.displayPackageName=!1};k5.\u0275fac=function(a){return new (a||k5)};
k5.\u0275cmp=w({type:k5,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&&(F(0,"div",0),M(1,u_a,2,1,"p",1),F(2,"ul"),M(3,v_a,2,5,"li",
2),G()());a&2&&(B(1),C("ngIf",b.displayPackageName),B(2),C("ngForOf",b.packageMentionSet.fileMentionSet))},dependencies:[Gx,Cx,N4],encapsulation:2});
var l5=function(){};l5.\u0275fac=function(a){return new (a||l5)};l5.\u0275mod=uc({type:l5});l5.\u0275inj=gc({imports:[Wx,O4]});
var m5=function(){};m5.\u0275fac=function(a){return new (a||m5)};m5.\u0275mod=uc({type:m5});m5.\u0275inj=gc({imports:[Wx,Gy,BG,dC,rC,XU,pC]});
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 dj(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:Cb(rb(this,Fl,1),oJ)}:void 0;return a};Njc.messageId="b.ListContentJudgementsResponse";
var n5=function(a){Z.call(this,a)};U(n5,Z);n5.prototype.getContentJudgement=function(){return m(this,Fl,1)};n5.prototype.setContentJudgement=function(a){return Bb(this,1,a)};n5.prototype.toObject=function(){var a=null!=this?{contentJudgement:oJ(void 0,this.getContentJudgement())}:void 0;return a};n5.messageId="b.UpdateContentJudgementRequest";
var o5=function(a){this.executor=a};o5.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:Fl})};o5.prototype.update=function(a){var b=kj(a,1);a=(new n5).setContentJudgement(a);return this.executor.post({url:"action/content_judgements/"+b,body:a,responseConstructor:Fl})};
o5.prototype.list=function(a){return this.executor.get({url:"action/content_judgements",options:{params:{resource_path:a}},responseConstructor:Njc})};o5.\u0275fac=function(a){return new (a||o5)(t(nI))};o5.\u0275prov=dc({token:o5,factory:o5.\u0275fac,providedIn:"root"});
var p5=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=JFb;this.loaded=!1;this.minimumSeverity=0;this.severity=1;this.processContentJudgements=function(h){var k=0;h=r(rb(h,Fl,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)};p5.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};p5.prototype.getContentJudgement=function(){var a=new Fl;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};
p5.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()})};p5.prototype.onNoClick=function(){this.dialogRef.close(null)};p5.\u0275fac=function(a){return new (a||p5)(D(MB),D(rP),D(o5),D(vH),D(XB))};
p5.\u0275cmp=w({type:p5,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&&(F(0,"h1",0),H(1,"mat-icon",1),F(2,"div"),O(3," Set restriction "),G()(),F(4,"div",2)(5,"span")(6,"label",3),O(7),
F(8,"a",4),O(9," Learn More "),G()(),F(10,"mat-radio-group",5),J("ngModelChange",function(c){return b.severity=c}),F(11,"mat-radio-button",6),O(12," No restriction "),F(13,"div"),O(14,' Users with "View issues" can access. '),G()(),F(15,"mat-radio-button",7),O(16," Restricted "),F(17,"div"),O(18,' Users with "View restricted content" can access. '),G()(),F(19,"mat-radio-button",8),O(20," Restricted+ "),F(21,"div"),O(22,' Users with "View restricted+ content" can access. '),G()()()()(),F(23,"div",
9)(24,"button",10),J("click",function(){return b.onNoClick()}),O(25," Cancel "),G(),F(26,"button",11),J("click",function(){return b.onSaveClick()}),O(27," Set "),G()());a&2&&(B(7),De(" ",Pjc(b)," "),B(1),ge("href",b.documentationLinks.getRestrictedAccessHelpLink(),Md),B(2),C("ngModel",b.severity),B(1),C("value",b.piiSeverity.NONE_DETECTED)("disabled",!b.canInteract()||b.minimumSeverity>b.piiSeverity.NONE_DETECTED),B(4),C("value",b.piiSeverity.PII)("disabled",!b.canInteract()||b.minimumSeverity>b.piiSeverity.PII),
B(4),C("value",b.piiSeverity.SPII)("disabled",!b.canInteract()||b.minimumSeverity>b.piiSeverity.SPII),B(7),C("disabled",!b.canInteract()))},dependencies:[BB,aC,bC,cC,dF,eY,gY,ly,ry],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 q5=function(a,b){this.documentationLinks=a;this.dateFormatter=b;this.retentionModel=xAb;this.label="Restricted";this.contentType="item"};q5.prototype.getRetentionPeriod=function(){if(!this.retentionState||!this.retentionState.retentionPeriod)return"";var a=Ura(this.retentionState.retentionPeriod);return a?ro(Math.floor(1E3*a.getSeconds()/864E5)):""};
var x_a=function(a){var b=new Date(864E13);if(!a.retentionState||!a.retentionState.scheduledDeletionTime)return b;a=qo(Cm(a.retentionState.scheduledDeletionTime));return new Date(a||b)},Qjc=function(a){return a.retentionState&&a.retentionState.scheduledDeletionTime?12096E5>qo(Cm(a.retentionState.scheduledDeletionTime))-Date.now():!1};q5.\u0275fac=function(a){return new (a||q5)(D(rP),D(IP))};
q5.\u0275cmp=w({type:q5,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&&(F(0,"xap-bubble",0)(1,"div",
1),H(2,"mat-icon",2),O(3),G(),M(4,B_a,8,3,"ng-template",null,3,Jf),M(6,C_a,3,1,"ng-template",null,4,Jf),G());if(a&2){var c=Ce(5);C("panelTemplate",c);B(1);le("warning",Qjc(b));B(1);C("svgIcon",Qjc(b)?"delete-alert":"delete-clock");B(1);De(" ",b.label," ")}},dependencies:[Cx,Ix,Jx,dF,RS,Sx],styles:[".chip[_ngcontent-%COMP%]{display:inline-block;border-radius:1em;font-size:.8125rem;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 r5=function(a,b,c){this.dialogRef=a;this.documentationLinks=b;this.data=c};r5.prototype.onNoClick=function(){this.dialogRef.close(!1)};r5.\u0275fac=function(a){return new (a||r5)(D(MB),D(rP),D(XB))};
r5.\u0275cmp=w({type:r5,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&&(F(0,"h1",0),O(1),G(),F(2,"div",1)(3,"p"),O(4),F(5,"a",2),O(6," Learn More "),G()()(),F(7,"div",3)(8,"button",4),J("click",function(){return b.onNoClick()}),O(9," Cancel "),G(),F(10,"button",5),O(11," Confirm "),G()());a&2&&(B(1),Ee(b.data.title),B(3),De(" ",b.data.content," "),B(1),ge("href",b.documentationLinks.getRestrictedAccessHelpLink(),Md),B(5),C("mat-dialog-close",!0))},dependencies:[BB,$B,aC,bC,cC],encapsulation:2});
var s5=function(a,b){this.dialog=a;this.documentationLinks=b;this.disabled=!1;this.onConfirm=new Rw};s5.prototype.openDialog=function(){var a=this;NB(this.dialog.open(r5,{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."}})).subscribe(function(b){b&&a.onConfirm.emit()})};
s5.\u0275fac=function(a){return new (a||s5)(D(ZB),D(rP))};
s5.\u0275cmp=w({type:s5,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&&(F(0,"span")(1,"button",0),J("click",function(){return b.openDialog()}),O(2," Show Restricted Content "),
G(),F(3,"a",1),O(4," Learn More "),G()());a&2&&(B(1),C("disabled",b.disabled),B(2),ge("href",b.documentationLinks.getRestrictedAccessHelpLink(),Md))},dependencies:[BB],styles:[".mat-stroked-button[_ngcontent-%COMP%]{margin-right:1em}\n/*# sourceMappingURL=restricted_comment_placeholder.css.map */"],changeDetection:0});
var t5=function(a,b,c){this.dialogRef=a;this.documentationLinks=b;this.data=c;this.acknowledgeToMatchIssueRetention=!1;this.resource=c.resource;this.piiRetention=c.piiRetention};t5.prototype.canInteract=function(){return 2!==this.piiRetention||this.acknowledgeToMatchIssueRetention};t5.prototype.onSaveClick=function(){this.dialogRef.close(1)};t5.prototype.onNoClick=function(){this.dialogRef.close(0)};t5.\u0275fac=function(a){return new (a||t5)(D(MB),D(rP),D(XB))};
t5.\u0275cmp=w({type:t5,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&&(F(0,"h1",0),H(1,"mat-icon",1),F(2,"div"),M(3,D_a,2,1,"span",2),M(4,E_a,2,0,"span",2),G()(),F(5,"div",3),M(6,F_a,8,1,"span",2),M(7,G_a,3,2,"span",2),F(8,"span")(9,"a",4),O(10," Learn More "),G()()(),F(11,"div")(12,"span"),M(13,H_a,2,1,"mat-checkbox",5),G()(),F(14,"div",6)(15,"button",7),J("click",function(){return b.onNoClick()}),O(16,
" Cancel "),G(),F(17,"button",8),J("click",function(){return b.onSaveClick()}),O(18," Save "),G()());a&2&&(B(3),C("ngIf",2===b.piiRetention),B(1),C("ngIf",2!==b.piiRetention),B(2),C("ngIf",2===b.piiRetention),B(1),C("ngIf",2!==b.piiRetention),B(2),ge("href",yt(),Md),B(4),C("ngIf",2===b.piiRetention),B(4),C("disabled",!b.canInteract()))},dependencies:[Cx,BB,aC,bC,cC,dF,JO,ly,ry],styles:["h1[_ngcontent-%COMP%]{text-align:center}.mat-dialog-content[_ngcontent-%COMP%]{overflow:inherit}\n/*# sourceMappingURL=update_retention_dialog.css.map */"]});
var u5=function(){};u5.\u0275fac=function(a){return new (a||u5)};u5.\u0275mod=uc({type:u5});u5.\u0275inj=gc({imports:[Wx,mF,BG,dC,cI,pC,SP,lH,L4,wF,nY,NO,Gy,bT]});
var v5=function(a,b,c,d,e,f){wI.call(this);var h=this;this.analytics=b;this.location=c;this.prefsManager=e;this.domSafe=f;this.prefsManager.preferences$.pipe(cg(this.destroyed$)).subscribe(function(k){h.prefs=k});a.topBarEvents.browseComponents.pipe(cg(this.destroyed$)).subscribe(function(k){k=k.newTab;Rjc(h,d.listComponents(),k)});a.topBarEvents.manageHotlists.pipe(cg(this.destroyed$)).subscribe(function(k){Rjc(h,d.listHotlists(),k.newTab)});a.topBarEvents.manageSlos.pipe(cg(this.destroyed$)).subscribe(function(k){k=
k.newTab;Rjc(h,d.listSlos(),k)});a.topBarEvents.setDensity.pipe(cg(this.destroyed$)).subscribe(function(k){h.setDensity(k)});a.topBarEvents.openSettings.pipe(cg(this.destroyed$)).subscribe(function(k){var q=k.newTab;Rjc(h,Tsa(k.settingsTabName),q)})};U(v5,wI);v5.\u0275dir=wI.\u0275dir;var Rjc=function(a,b,c){c?a.domSafe.openInNewTab(b):a.location.url(b)};
v5.prototype.setDensity=function(a){this.prefs.themePreferences&&(this.prefs.themePreferences.density=a,this.prefsManager.save(this.prefs).pipe(Qf(),cg(this.destroyed$)).subscribe(),eo(this.analytics,"preferences","setDisplayDensity",a))};v5.\u0275fac=function(a){return new (a||v5)(t(MK),t(QM),t(SK),t(TK),t(VI),t(tP))};v5.\u0275prov=dc({token:v5,factory:v5.\u0275fac,providedIn:"root"});
var w5=function(a,b,c,d,e,f,h,k,q,v,y){wI.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(cg(this.destroyed$)).subscribe(function(){E.items=
E.searchAcData.items;E.acHeader=E.searchAcData.acHeader})};U(w5,wI);w5.\u0275dir=wI.\u0275dir;
w5.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(uMb(this.currentSearch,function(c){a.appSearchState.queryState$.next({query:c,
cursorPosition:void 0,setViaInteraction:!1})}));this.appSearchState.queryState$.pipe(cg(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("ye");e=new t6b(f,h);if(f){var k=f.slice(0,h);for(var q=!1,v=-1,y=-1;-1<(v=k.indexOf('"',v+1));)q=!q,y=v;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=KQa(f.slice(0,h)+(-1<q?k.slice(0,q):k),x6b))?(k={negated:!!k[1],val:k[2].toLowerCase(),operator:k[3],idx:k.index-k[1].length-k[2].length-k[3].length},Ni(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);v=k;if("("===f.charAt(0)){b:{v=[];y=/[()]/g;for(var E;null!=(E=y.exec(f));){var I=v[v.length-1];if(I&&I!==E[0]){if(v.pop(),!v.length){v=
E.index>=h;break b}}else v.push(E[0])}v=!0}v=v?2:0}else v=u6b.includes(v.val)&&-1===f.search("^\\d")?1:0;switch(v){case 2:f=u6b.includes(k.val)?eq(f,h,"([()|]\\s*|OR\\s+|AND\\s+|NOT\\s+|-|\\b\\d+\\s+)","[()|\\s-]"):eq(f,h,"[()|\\s-]");/(OR|AND|NOT|-)$/.test(f.val)&&(f.val="",f.idx=h);e.value=f;break;case 1:e.value=eq(f,h,"[()|]","[()|,\\s]");break;case 0:e.value=eq(f,h,"[\\s()|]");-1<f.slice(0,h).search("[\\s()|]")&&(k=null);break;default:mh(v,"unknown ValueType.")}e.value.idx+=q;e.label=k}else e.value=
eq(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(R(function(c){return c.query}));this.appSearchState.searchTriggered$.pipe(eg(b),cg(this.destroyed$)).subscribe(function(c){c=r(c);c.next();c=c.next().value;a.submitSearch(c)})};w5.prototype.ngAfterViewInit=function(){kic(this.advancedSearchCtrl,this.currentSearch.currentSearch)};
w5.prototype.submitSearch=function(a){var b=this.currentSearch,c=qa(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:qic(a.advancedSearchCtrl).trim()};w5.prototype.onAdvancedSearchOpen=function(){this.advancedSearchCtrl&&(Sjc(this)!==this.currentQuery||"SUCCESS"!==this.advancedSearchCtrl.getState())&&kic(this.advancedSearchCtrl,this.currentQuery)};
w5.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})}};w5.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(),eo(this.analytics,"search","done-builder"))}};
w5.prototype.saveSearch=function(a){var b=this;if(this.advancedSearchCtrl){var c=Sjc(this);void 0!==c&&(FK(this.butterBar,"Saving saved search.",1E3),this.savedSearchApi.create(a,c).then(function(d){b.appEvents.savedSearchModified.next();d=d.searchId;FK(b.butterBar,"Created saved search '"+a+"' ID "+d+".");b.bLocation.url(b.paths.viewSavedSearch(d));eo(b.analytics,"savedSearches","create")}).catch(function(d){GK(b.butterBar,Fm(d))}))}};
w5.\u0275fac=function(a){return new (a||w5)(D(vH),D(ON),D(A_),D(MN),D(DK),D(SK),D(TK),D(QM),D(l3),D(v5),D(MK))};
w5.\u0275cmp=w({type:w5,selectors:[["b-top-bar-outlet"]],viewQuery:function(a,b){a&1&&Bf(S2,5);if(a&2){var c;Af(c=Df())&&(b.advancedSearchCtrl=c.first)}},features:[ae],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&&(F(0,"b-app-top-bar",0),J("searchBoxOnAdvancedSearchOpen",function(){return b.onAdvancedSearchOpen()})("searchBoxOnAdvancedSearchClose",function(){return b.onAdvancedSearchClose()})("searchBoxOnAdvancedSearchSubmit",function(){return b.submitAdvancedSearch()})("searchBoxOnSaveSearch",function(c){return b.saveSearch(c)}),
H(1,"b-advanced-search"),M(2,I_a,4,0,"div",1),M(3,L_a,3,2,"div",2),M(4,M_a,2,0,"div",2),G());a&2&&(C("logoFrontendAccessMode",b.frontendAccessMode)("logoEnvironmentType",b.environmentType)("searchBoxPlaceholder",b.placeholder)("searchBoxAutoCompleteItems",b.items)("searchBoxAutoCompleteHeader",b.acHeader),B(2),C("ngIf","INIT"===(null==b.advancedSearchCtrl?null:b.advancedSearchCtrl.getState())),B(1),C("ngIf","NOT_REPRESENTABLE"===(null==b.advancedSearchCtrl?null:b.advancedSearchCtrl.getState())||"SYNTAX_ERROR"===
(null==b.advancedSearchCtrl?null:b.advancedSearchCtrl.getState())),B(1),C("ngIf","SERVER_ERROR"===(null==b.advancedSearchCtrl?null:b.advancedSearchCtrl.getState())))},dependencies:[Cx,S2,o3,kN,dF],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 x5=function(){};x5.\u0275fac=function(a){return new (a||x5)};x5.\u0275mod=uc({type:x5});x5.\u0275inj=gc({imports:[Wx,U2,v3,WN,wF]});
var y5=function(a,b){this.dialogRef=a;this.data=b;this.userToDisplay=Nl;this.updateDiffs=b.updateDiffs};y5.prototype.close=function(){this.dialogRef.close()};y5.\u0275fac=function(a){return new (a||y5)(D(MB),D(XB))};
y5.\u0275cmp=w({type:y5,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-name",3,"email"],[1,"bv2-event-info"],["mode","datetime",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&&(F(0,"div",0)(1,"ul",1),M(2,V_a,10,4,"li",2),G()(),F(3,"div",3)(4,"button",4),J("click",function(){return b.close()}),O(5," Close "),G()());a&2&&(B(2),C("ngForOf",b.updateDiffs))},dependencies:[Gx,Cx,BB,bC,cC,rS,pS,JP],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}h4[_ngcontent-%COMP%]{margin:0;margin-bottom:8px;font-weight:normal}"]});
var z5=function(){};z5.\u0275fac=function(a){return new (a||z5)};z5.\u0275mod=uc({type:z5});z5.\u0275inj=gc({imports:[Wx,BG,dC,HS,cQ]});
var Tjc=Mt(["https://www.gstatic.com/buganizer/gfx/","/",""]),A5=Mt(["https://www.gstatic.com/buganizer/img/v2/",""]),Ujc=zh(Tjc,"2022-01-24-3a954102","all-icons.svg"),Vjc=zh(A5,"empty_blocker_light.png"),Wjc=zh(A5,"empty_blocker_dark.png"),Xjc=zh(A5,"empty_child_light.png"),Yjc=zh(A5,"empty_child_dark.png"),Zjc=zh(A5,"robot_sleeping.png"),$jc=zh(A5,"tea_light.png"),akc=zh(A5,"tea_dark.png"),bkc=zh(A5,"welcome_graphic_light.png"),ckc=zh(A5,"welcome_graphic_dark.png");
var B5=function(a,b){wI.call(this);this.$window=a;this.currentTracker=b;this.faviconUrl=this.defaultFaviconUrl=$i("enableNewIssueDetailsPage")?yh("https://www.gstatic.com/buganizer/img/v4/favicon.png"):yh("https://www.gstatic.com/buganizer/img/v0/favicon.ico")};U(B5,wI);B5.\u0275dir=wI.\u0275dir;
var dkc=function(a){var b=a.$window.document.head.querySelector('link[rel="shortcut icon"]'),c=null==b?void 0:b.href;a.faviconUrl=c?yh(c):a.defaultFaviconUrl;a.currentTracker.tracker$.pipe(R(function(d){var e;if(null==d?0:null==(e=d.branding)?0:e.logoUrl){var f;d=yh(null==d?void 0:null==(f=d.branding)?void 0:f.logoUrl)}else d=a.faviconUrl;return d}),cg(a.destroyed$)).subscribe(function(d){if(b&&b.href!==d.toString()){if(d instanceof Ry||d instanceof uh)b.href=Sja(d);else{if(-1===$nb.indexOf("icon"))throw Error("bb`icon");
b.href=th(d)}b.rel="icon"}})};B5.\u0275fac=function(a){return new (a||B5)(t(uM),t(vM))};B5.\u0275prov=dc({token:B5,factory:B5.\u0275fac,providedIn:"root"});
var ekc=/^\s*[^:/?#]+:/i,C5=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"))&&!ekc.test(d)&&(c.preventDefault(),b.bLocation.url(d))}}};C5.prototype.install=function(){document.addEventListener("click",this.linkClickHandler)};
C5.\u0275fac=function(a){return new (a||C5)(t(SK))};C5.\u0275prov=dc({token:C5,factory:C5.\u0275fac,providedIn:"root"});
var fkc=[],gkc=!1,D5=function(a,b,c,d,e,f,h,k){wI.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(D5,wI);D5.\u0275dir=wI.\u0275dir;D5.prototype.tearDown=function(){wI.prototype.ngOnDestroy.call(this);document.removeEventListener("click",this.linkClickHandler.linkClickHandler)};D5.\u0275fac=function(a){return new (a||D5)(t(q_),t(cF),t(vH),t(U_),t(X_),t(C5),t(QN),t(B5))};
D5.\u0275prov=dc({token:D5,factory:D5.\u0275fac,providedIn:"root"});
var hkc={provide:Jlb,useFactory:function(a){return function(){Rk("app initializer starting");gkc||(a.iconRegistry._addSvgIconSetConfig("",new bF(Ujc)),gkc=!0);if("INTERNAL"===a.session.frontendAccessMode){aq(a.hatsService,"Y4qgAGETM0g6pPHSLo10T83aMF4T").pipe(Qf(),cg(a.destroyed$)).subscribe();var b=a.session.getUserPreferences();cj(b)&&aq(a.hatsService,"h2NXrGH9G0g6pPHSLo10QFmN4LZt").pipe(Qf(),cg(a.destroyed$)).subscribe();b=r(fkc);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.hatsTriggerId;
xH(a.session,c.flagName)&&aq(a.hatsService,d).pipe(Qf(),cg(a.destroyed$)).subscribe()}}a.appHistory.install();a.routePerformance.install();a.linkClickHandler.install();b=a.issueLru;Fwa(b.viewed,DMb());Fwa(b.edited,BMb());b.appEvents.issueViewed.pipe(cg(b.stop$)).subscribe(b.addViewed);b.appEvents.issueEdited.pipe(cg(b.stop$)).subscribe(b.addEdited);dkc(a.faviconService)}},deps:[D5],multi:!0};
var E5=function(a,b){this.paths=a;this.bLocation=b};E5.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)};E5.\u0275fac=function(a){return new (a||E5)(t(TK),t(SK))};E5.\u0275prov=dc({token:E5,factory:E5.\u0275fac,providedIn:"root"});var ikc={provide:EW,useExisting:E5};
var jkc=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 F5=function(a){WC.call(this);this.errorHandlerFn_=a};du(F5,WC);F5.prototype.wrap=function(a){return kkc(this,a)};var G5=function(a,b){return(b?"__wrapper_":"__protected_")+Ga(a)+"__"},kkc=function(a,b){var c=G5(a,!0);b[c]||((b[c]=lkc(a,b))[G5(a,!1)]=b);return b[c]},lkc=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[G5(a,!1)]=b;return c};
F5.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 mkc(a);};
var nkc=function(a,b){var c=ca.window,d=c[b];if(!d)throw Error("Pe`"+b);c[b]=function(e,f){"string"===typeof e&&(e=au($hb,e));if(!e)throw Error("Pe`"+b);arguments[0]=e=kkc(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][G5(a,!1)]=d};
F5.prototype.disposeInternal=function(){var a=ca.window;var b=a.setTimeout;b=b[G5(this,!1)]||b;a.setTimeout=b;b=a.setInterval;b=b[G5(this,!1)]||b;a.setInterval=b;F5.superClass_.disposeInternal.call(this)};var mkc=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)};du(mkc,aa);
var H5=function(a,b,c){Qo.call(this);this.contextProvider_=b||null;this.additionalArguments_={};this.xhrSender_=okc;this.handlerUrl_=a;if(!c)if(this.errorHandler_=null,hu&&!nu("10"))Hrb($t(this.handleException,this));else{this.errorHandler_=new F5($t(this.handleException,this));nkc(this.errorHandler_,"setTimeout");nkc(this.errorHandler_,"setInterval");a=this.errorHandler_;b=ca.window;c=["requestAnimationFrame","mozRequestAnimationFrame","webkitAnimationFrame","msRequestAnimationFrame"];for(var d=
0;d<c.length;d++){var e=c[d];c[d]in b&&nkc(a,e)}a=this.errorHandler_;Grb=!0;b=$t(a.wrap,a);for(c=0;c<ZC.length;c++)ZC[c](b);$C.push(a)}};du(H5,Qo);var pkc=function(a,b){YC.call(this,"w");this.error=a;this.context=b};du(pkc,YC);var okc=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;wi(a,null,b,c,e)};
H5.prototype.handleException=function(a,b){a=a.error||a;b=b?ch(b):{};a instanceof Error&&Dja(b,a.__closure__error__context__984382||{});var c=Jrb(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=cE(this.handlerUrl_,"script",c.fileName,"error",d,"line",c.lineNumber);ah(this.additionalArguments_)||(e=Usa(e,this.additionalArguments_));d={};d.trace=a;if(b)for(var f in b)d["context."+
f]=b[f];var h=Otb(d);this.xhrSender_(e,"POST",h,this.extraHeaders_)}catch(k){}}try{this.dispatchEvent(new pkc(c,b))}catch(k){}};H5.prototype.disposeInternal=function(){vi(this.errorHandler_);H5.superClass_.disposeInternal.call(this)};
var I5=function(){this.jsBuild="448026779";this.buildLabel="buganizer.frontend_20220511.06_p0"};I5.\u0275fac=function(a){return new (a||I5)};I5.\u0275prov=dc({token:I5,factory:I5.\u0275fac,providedIn:"root"});var J5=function(){};J5.prototype.reportingEnabled=function(){return 4!==jkc};J5.\u0275fac=function(a){return new (a||J5)};J5.\u0275prov=dc({token:J5,factory:J5.\u0275fac,providedIn:"root"});
var K5=function(a,b){var c=this;this.appContext=b;this.context={};this.reportingExtensions=[];this.jsDebugErrorReporter=new H5("/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)};
K5.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()}};K5.\u0275fac=function(a){return new (a||K5)(t(I5),t(J5))};K5.\u0275prov=dc({token:K5,factory:K5.\u0275fac,providedIn:"root"});
var L5=function(a){this._console=console;this.reporter=a};U(L5,Vd);L5.prototype.handleError=function(a){this.reporter.reportError(a)};L5.\u0275fac=function(a){return new (a||L5)(t(K5))};L5.\u0275prov=dc({token:L5,factory:L5.\u0275fac,providedIn:"root"});var M5=function(a){this.activeSession=a};U(M5,J5);M5.prototype.reportingEnabled=function(){return xH(this.activeSession,"reportErrors")};M5.\u0275fac=function(a){return new (a||M5)(t(vH))};M5.\u0275prov=dc({token:M5,factory:M5.\u0275fac,providedIn:"root"});
var qkc={provide:Vd,useClass:L5},rkc={provide:J5,useClass:M5},skc={provide:I5,useValue:{jsBuild:"448026779",buildLabel:"buganizer.frontend_20220511.06_p0"}};
var N5=function(){};N5.\u0275fac=function(a){return new (a||N5)};N5.\u0275cmp=w({type:N5,selectors:[["b-empty"]],decls:0,vars:0,template:function(){},encapsulation:2});var O5=function(){};O5.\u0275fac=function(a){return new (a||O5)};O5.\u0275mod=uc({type:O5});O5.\u0275inj=gc({});
var tkc=function(){};U(tkc,mEb);g=tkc.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 P5=function(a){this.router=a};
P5.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({},Xsa(a.queryParamMap),(d.showInsights="deployments",d)),fragment:null!=
(c=a.fragment)?c:void 0})}return!0};P5.\u0275fac=function(a){return new (a||P5)(t(Fk))};P5.\u0275prov=dc({token:P5,factory:P5.\u0275fac,providedIn:"root"});
var ukc=/^(\d+)$/,Q5=function(a){this.butterBar=a;this.paramNamesToCheck=new Set(Object.values(lDb))};Q5.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=AC(d);if(!ukc.test(d)||isNaN(e)||!Number.isInteger(e))return GK(this.butterBar,"The URL parameter "+c+' has the malformed value "'+d+'".'),!1}return!0};Q5.\u0275fac=function(a){return new (a||Q5)(t(DK))};
Q5.\u0275prov=dc({token:Q5,factory:Q5.\u0275fac,providedIn:"root"});
var R5=function(a){this.routeParamsValidator=a};R5.prototype.canActivate=function(a){return this.routeParamsValidator.validate(a.params)};R5.\u0275fac=function(a){return new (a||R5)(t(Q5))};R5.\u0275prov=dc({token:R5,factory:R5.\u0275fac,providedIn:"root"});
var S5=function(a){this.router=a};S5.prototype.canActivate=function(){return this.router.createUrlTree([W_a()])};S5.\u0275fac=function(a){return new (a||S5)(t(Fk))};S5.\u0275prov=dc({token:S5,factory:S5.\u0275fac,providedIn:"root"});
var vkc=["bookmarkGroupName"],wkc=function(a){return{"bv2-edit-resource-readonly":a}},T5=function(a,b,c,d,e,f,h,k,q,v){wI.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=v;this.error="";this.isSaving=!1;this.bookmarkGroupUnderEdit=new oy({name:new qy("",hy),description:new qy("")});h.setTitle("Create Bookmark Group");this.subscriptions.add(bZ(q,function(){return!(!y.name()&&!y.description())},
!1))};U(T5,wI);T5.\u0275dir=wI.\u0275dir;g=T5.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});eo(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(){V_(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:""};T5.\u0275fac=function(a){return new (a||T5)(D(SK),D(U_),D(AK),D(XM),D(TK),D(QM),D(fO),D(IK),D(aZ),D(MK))};
T5.\u0275cmp=w({type:T5,selectors:[["b-create-bookmark-group"]],viewQuery:function(a,b){a&1&&Bf(vkc,5);if(a&2){var c;Af(c=Df())&&(b.bookmarkGroupName=c.first)}},features:[ae],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&&(F(0,"div",0)(1,"div",1)(2,"button",2),J("click",function(){return b.back()}),H(3,"mat-icon",3),G(),F(4,"h2"),O(5,"Create a new bookmark group"),G()()(),F(6,"div",4)(7,"div",5)(8,"form",6),H(9,"b-error-banner",7),F(10,"div",8)(11,"label",9),O(12,"Name"),G(),H(13,"input",10,11),G(),F(15,"div",8)(16,"label",12),O(17,"Description"),G(),F(18,"textarea",13),O(19,"        "),G()(),F(20,"p",14),O(21," Advanced settings such as selected items and access controls may be defined once the bookmark group is created. "),
G(),F(22,"div",15)(23,"button",16),J("click",function(){return b.save()}),O(24," Save "),G(),F(25,"button",17),J("click",function(){return b.revertChanges()}),O(26," Revert changes "),G()()()()());a&2&&(B(8),C("formGroup",b.bookmarkGroupUnderEdit),B(1),C("error",b.error),B(1),C("ngClass",Ie(7,wkc,b.isSaving)),B(3),C("disabled",b.isSaving),B(2),C("ngClass",Ie(9,wkc,b.isSaving)),B(3),C("disabled",b.isSaving),B(5),C("disabled",b.isSaving))},dependencies:[Fx,BB,sF,dF,sy,Jg,ly,my,Cy,yy,zy,iZ],encapsulation:2});
var xkc=["form"],U5=function(a,b,c,d,e,f,h,k,q,v){wI.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=v;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(U5,wI);U5.\u0275dir=wI.\u0275dir;g=U5.prototype;g.ngAfterViewInit=function(){};
g.create=function(){var a=this;this.validate_()&&(FK(this.butterBar,"Saving component...",0),this.isSaving=!0,this.component.parentComponentId=this.parentComponent.componentId,this.componentActions.create(this.component).then(function(b){FK(a.butterBar,"Component saved, redirecting in "+a.activeSession.getCreateComponentRedirectDelay()/1E3+"s.",a.activeSession.getCreateComponentRedirectDelay());eo(a.analytics,"component","create");a.commentEditsEnabled?eo(a.analytics,"component","comment edits enabled",
"create"):eo(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){GK(a.butterBar,Fm(b),0);a.isSaving=!1}))};g.back=function(){V_(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;ykc(this)};g.accessCheckComplete=function(a){this.componentIsValid=a;ykc(this)};var ykc=function(a){a.parentComponent?(a.component.commentEditState=a.parentComponent.commentEditState,a.commentEditsEnabled="ENABLED"===a.component.commentEditState):(a.component.commentEditState="DISABLED",a.commentEditsEnabled=!1)};
li.Object.defineProperties(U5.prototype,{parentComponent:{configurable:!0,enumerable:!0,get:function(){return this.parentComponentInternal},set:function(a){this.parentComponentInternal=a;ykc(this)}}});U5.\u0275fac=function(a){return new (a||U5)(D(DK),D(TK),D(QM),D(U_),D(SK),D(vH),D(rP),D($R),D(fO),D(zT))};
U5.\u0275cmp=w({type:U5,selectors:[["create-component-page"]],viewQuery:function(a,b){a&1&&Bf(xkc,5);if(a&2){var c;Af(c=Df())&&(b.createComponentForm=c.first)}},features:[ae],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&&(F(0,"div",0)(1,"div",1)(2,"b-button",2),J("onAction",function(){return b.back()}),H(3,"b-icon",3),G()()(),F(4,"div",4)(5,"h2",5),O(6,"Create component"),G(),F(7,"div",
6)(8,"form",7,8),H(10,"b-error-banner",9),F(11,"div",10)(12,"label",11)(13,"span",12),O(14,"Name"),G()(),F(15,"input",13),J("ngModelChange",function(c){return b.component.name=c}),G()(),F(16,"div",10)(17,"label",14)(18,"span",12),O(19,"Description"),G()(),F(20,"textarea",15),J("ngModelChange",function(c){return b.component.description=c}),O(21,"        "),G()(),F(22,"div",10)(23,"label",16)(24,"span",12),O(25,"Parent Component"),G()(),F(26,"b-team-component-picker",17),J("selectedComponentChange",
function(c){return b.onComponentSelect(null!==c&&void 0!==c?c:null)})("accessCheckComplete",function(c){return b.accessCheckComplete(c)}),G()(),F(27,"div",18)(28,"div",19)(29,"b-checkbox",20),J("change",function(c){b.commentEditsEnabled=c;return b.setCommentEditState()}),G()(),F(30,"div")(31,"strong",21),O(32,"Editable Comments"),G(),F(33,"div",22),O(34," When checked, users with comment access can modify their own issue comments, and editors can modify the first issue comment. "),M(35,Y_a,2,1,"a",
23),G()()(),F(36,"div",10)(37,"label",24)(38,"span",12),O(39,"Retention Settings"),G()(),F(40,"div",21)(41,"p"),O(42,"Please choose a period of time to retain the data stored in this component."),H(43,"br"),F(44,"a",25),O(45," Learn more "),G()()(),F(46,"div",26)(47,"b-retention-settings-form",27),J("modelChange",function(c){return b.component.retentionSettings=c})("validChange",function(c){return b.retentionIsValid=c}),G()()(),F(48,"p",28),O(49," Advanced settings such as custom field and access controls may be defined once the component is created. "),
G(),F(50,"div",29)(51,"b-button",30),J("onAction",function(){return b.create()}),O(52," Save "),G(),F(53,"b-button",31),J("onAction",function(){return b.back()}),O(54," Discard "),G()()()()());a&2&&(B(8),le("show-errors",b.error),B(2),C("error",b.error),B(1),le("bv2-edit-resource-readonly",b.isSaving),B(4),C("bFocus",!0)("ngModel",b.component.name)("disabled",b.isSaving)("required",!0),B(1),le("bv2-edit-resource-readonly",b.isSaving),B(4),C("ngModel",b.component.description)("disabled",b.isSaving),
B(2),le("bv2-edit-resource-readonly",b.isSaving),B(4),C("selectedComponent",b.parentComponent)("placeholder","Choose Component")("isRequired",!0)("checkAdminAccess",!0),B(1),le("bv2-edit-resource-readonly",b.isSaving),B(2),C("checked",b.commentEditsEnabled),B(6),C("ngIf",!b.sessionIsExternal),B(9),C("href",yt(),Md),B(2),le("bv2-edit-resource-readonly",b.isSaving),B(1),C("issueRetentionDisabled",b.isSaving)("isExternal",qX(b.parentComponent))("initialModel",b.component.retentionSettings),B(4),C("disabled",
b.isSaving||!b.componentIsValid),B(2),C("disabled",b.isSaving))},dependencies:[wO,Cx,iZ,j_,sy,Jg,ly,my,Cy,ry,py,zH,tQ,y_,DV],styles:["b-team-component-picker[_ngcontent-%COMP%]{display:block;width:600px}\n/*# sourceMappingURL=create_component_page.css.map */"]});
var zkc=["hotlistName"],Akc=function(a){return{"bv2-edit-resource-readonly":a}},V5=function(a,b,c,d,e,f,h,k,q,v){wI.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=v;this.error="";this.isSaving=!1;this.hotlistUnderEdit=new oy({name:new qy("",hy),description:new qy("")});h.setTitle("Create Hotlist");this.subscriptions.add(bZ(q,function(){return!(!y.name()&&!y.description())},!1))};U(V5,wI);
V5.\u0275dir=wI.\u0275dir;g=V5.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});eo(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(){V_(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:""};
V5.\u0275fac=function(a){return new (a||V5)(D(SK),D(U_),D(AK),D(eL),D(TK),D(QM),D(fO),D(IK),D(aZ),D(MK))};
V5.\u0275cmp=w({type:V5,selectors:[["b-create-hotlist"]],viewQuery:function(a,b){a&1&&Bf(zkc,5);if(a&2){var c;Af(c=Df())&&(b.hotlistName=c.first)}},features:[ae],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&&(F(0,"div",0)(1,"div",1)(2,"button",
2),J("click",function(){return b.back()}),H(3,"mat-icon",3),G(),F(4,"h2"),O(5,"Create a new hotlist"),G()()(),F(6,"div",4)(7,"div",5)(8,"form",6),H(9,"b-error-banner",7),F(10,"div",8)(11,"label",9),O(12,"Name"),G(),H(13,"input",10,11),G(),F(15,"div",8)(16,"label",12),O(17,"Description"),G(),F(18,"textarea",13),O(19,"        "),G()(),F(20,"p",14),O(21," Advanced settings such as access controls may be defined once the hotlist is created. "),G(),F(22,"div",15)(23,"button",16),J("click",function(){return b.save()}),
O(24," Save "),G(),F(25,"button",17),J("click",function(){return b.revertChanges()}),O(26," Revert changes "),G()()()()());a&2&&(B(8),C("formGroup",b.hotlistUnderEdit),B(1),C("error",b.error),B(1),C("ngClass",Ie(7,Akc,b.isSaving)),B(3),C("disabled",b.isSaving),B(2),C("ngClass",Ie(9,Akc,b.isSaving)),B(3),C("disabled",b.isSaving),B(5),C("disabled",b.isSaving))},dependencies:[Fx,BB,sF,dF,sy,Jg,ly,my,Cy,yy,zy,iZ],encapsulation:2});
var Bkc=["popOver"],$_a=function(a){return{$implicit:a}},W5=function(a){this.val="";this.allowMultipleLines=!0;this.disabled=this.centerEditIcon=this.newlineWithEnterKey=!1;this.hasBackdrop=!0;this.valueChange=new Rw;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(W5,$P);g=W5.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};li.Object.defineProperties(W5.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});W5.\u0275fac=function(a){return new (a||W5)(Zc("required"))};
W5.\u0275cmp=w({type:W5,selectors:[["onedev-text-field"]],viewQuery:function(a,b){a&1&&Bf(Bkc,7);if(a&2){var c;Af(c=Df())&&(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:[Ge([{provide:Ex,useExisting:bc(function(){return W5}),
multi:!0},{provide:$P,useExisting:bc(function(){return W5}),multi:!0}]),ae],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&&(F(0,"button",0,1),J("click",function(){return b.startEditing()})("focus",function(){return b.headerFocused=!0})("blur",function(){return b.headerFocused=!1}),F(2,"span"),M(3,a0a,2,4,"ng-container",2),M(4,b0a,1,1,"ng-template",null,3,Jf),G(),M(6,c0a,2,2,"svg",4),G(),F(7,"onedev-pop-over-edit-panel",5,6),J("closedWithAction",
function(f){return b.stopEditing(f)}),G(),M(9,f0a,4,2,"ng-template",null,7,Jf));if(a&2){var c=Ce(1),d=Ce(5),e=Ce(10);ge("aria-labelledby",b.labelledById);B(3);C("ngIf",b.valueTemplate)("ngIfElse",d);B(3);C("ngIf",!b.disabled);B(1);C("anchor",c)("editorTemplate",e)("newlineWithEnterKey",b.newlineWithEnterKey)("hasBackdrop",b.hasBackdrop)}},dependencies:[Cx,Mx,Jg,ly,ry,fC,U4],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=Eh("indicatorRotate",[Hh("collapsed, void",Gh({transform:"rotate(0deg)"})),Hh("expanded",Gh({transform:"rotate(180deg)"})),Ih("expanded <=> collapsed, void => collapsed",Fh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),Dkc=Eh("bodyExpansion",[Hh("collapsed, void",Gh({height:"0px",visibility:"hidden"})),Hh("expanded",Gh({height:"*",visibility:"visible"})),Ih("expanded <=> collapsed, void => collapsed",Fh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]);
var Ekc=new ld("CdkAccordion");
var Fkc=0,X5=function(a,b,c){var d=this;this.accordion=a;this._changeDetectorRef=b;this._expansionDispatcher=c;this._openCloseAllSubscription=S.Subscription.EMPTY;this.closed=new Rw;this.opened=new Rw;this.destroyed=new Rw;this.expandedChange=new Rw;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=X5.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)})};
li.Object.defineProperties(X5.prototype,{expanded:{configurable:!0,enumerable:!0,get:function(){return this._expanded},set:function(a){a=Vg(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=Vg(a)}}});
X5.\u0275fac=function(a){return new (a||X5)(D(Ekc,12),D(vx),D(FA))};X5.\u0275dir=w({type:X5,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Ge([{provide:Ekc,useValue:void 0}])]});
var Y5=function(){};Y5.\u0275fac=function(a){return new (a||Y5)};Y5.\u0275mod=uc({type:Y5});Y5.\u0275inj=gc({});
var Gkc=new ld("MAT_ACCORDION");
var Hkc=new ld("MAT_EXPANSION_PANEL");
var Z5=function(a,b){this._template=a;this._expansionPanel=b};Z5.\u0275fac=function(a){return new (a||Z5)(D(xf),D(Hkc,8))};Z5.\u0275dir=w({type:Z5,selectors:[["ng-template","matExpansionPanelContent",""]]});
var Ikc=["body"],Jkc=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Kkc=0,Lkc=new ld("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),$5=function(a,b,c,d,e,f,h){X5.call(this,a,b,c);var k=this;this._viewContainerRef=d;this._animationMode=f;this._hideToggle=!1;this.afterExpand=new Rw;this.afterCollapse=new Rw;this._inputChanges=new S.Subject;this._headerId="mat-expansion-panel-header-"+Kkc++;this._bodyAnimationDone=new S.Subject;this.accordion=a;this._document=e;this._bodyAnimationDone.pipe(Pf(function(q,
v){return q.fromState===v.fromState&&q.toState===v.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($5,X5);$5.\u0275dir=X5.\u0275dir;g=$5.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(ag(null),rf(function(){return a.expanded&&!a._portal}),Qf()).subscribe(function(){a._portal=new YA(a._lazyContent._template,a._viewContainerRef)})};g.ngOnChanges=function(a){this._inputChanges.next(a)};
g.ngOnDestroy=function(){X5.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};
li.Object.defineProperties($5.prototype,{hideToggle:{configurable:!0,enumerable:!0,get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(a){this._hideToggle=Vg(a)}},togglePosition:{configurable:!0,enumerable:!0,get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(a){this._togglePosition=a}}});$5.\u0275fac=function(a){return new (a||$5)(D(Gkc,12),D(vx),D(FA),D(yf),D(ji),D(ew,8),D(Lkc,8))};
$5.\u0275cmp=w({type:$5,selectors:[["mat-expansion-panel"]],contentQueries:function(a,b,c){a&1&&Cf(c,Z5,5);if(a&2){var d;Af(d=Df())&&(b._lazyContent=d.first)}},viewQuery:function(a,b){a&1&&Bf(Ikc,5);if(a&2){var c;Af(c=Df())&&(b._body=c.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(a,b){a&2&&le("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:[Ge([{provide:Gkc,useValue:void 0},{provide:Hkc,useExisting:$5}]),ae,Cc],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&&(xe(Jkc),ye(0),F(1,"div",0,1),J("@bodyExpansion.done",function(c){return b._bodyAnimationDone.next(c)}),F(3,"div",2),ye(4,1),M(5,g0a,0,0,"ng-template",3),G(),ye(6,2),G());a&2&&(B(1),C("@bodyExpansion",b._getExpandedState())("id",b.id),ge("aria-labelledby",b._headerId),B(4),C("cdkPortalOutlet",b._portal))},dependencies:[aB],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 .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .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=pi(function(){}),a6=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=S.Subscription.EMPTY;var q=a.accordion?a.accordion._stateChanges.pipe(rf(function(v){return!(!v.hideToggle&&!v.togglePosition)})):S.EMPTY;k.tabIndex=parseInt(h||"")||0;k._parentChangeSubscription=(0,S.merge)(a.opened,a.closed,q,a._inputChanges.pipe(rf(function(v){return!!(v.hideToggle||
v.disabled||v.togglePosition)}))).subscribe(function(){return k._changeDetectorRef.markForCheck()});a.closed.pipe(rf(function(){return a._containsFocus()})).subscribe(function(){return Tz(c,b,"program")});e&&(k.expandedHeight=e.expandedHeight,k.collapsedHeight=e.collapsedHeight);return k};U(a6,Nkc);g=a6.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:hi(a)||(a.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(a)}};
g.focus=function(a,b){a?Tz(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)};li.Object.defineProperties(a6.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this.panel.disabled}}});
a6.\u0275fac=function(a){return new (a||a6)(D($5,1),D(pd),D(Sz),D(vx),D(Lkc,8),D(ew,8),Zc("tabindex"))};
a6.\u0275cmp=w({type:a6,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(a,b){a&1&&J("click",function(){return b._toggle()})("keydown",function(c){return b._keydown(c)});a&2&&(ge("id",b.panel._headerId)("tabindex",b.tabIndex)("aria-controls",b.panel.id)("aria-expanded",b.panel.expanded)("aria-disabled",b.panel.disabled),ke("height",b._getHeaderHeight()),le("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:[ae],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&&(xe(Mkc),
F(0,"span",0),ye(1),ye(2,1),ye(3,2),G(),M(4,h0a,1,1,"span",1));a&2&&(B(4),C("ngIf",b._showToggle()))},dependencies:[Cx],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 b6=function(){};b6.\u0275fac=function(a){return new (a||b6)};b6.\u0275dir=w({type:b6,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]});
var c6=function(){};c6.\u0275fac=function(a){return new (a||c6)};c6.\u0275mod=uc({type:c6});c6.\u0275inj=gc({imports:[Wx,gB,Y5,bB]});
var Okc=["descriptionConfirmDialog"],j0a=function(a,b){return{partner:a,"public":b}},W0a=function(a){return{required:a}},a1a=function(a){return{"bv2-upload-ongoing":a}},Pkc=function(a){return{submitted:a}},d6=function(a,b,c,d,e,f,h,k,q,v,y,E,I,N,L,T,Y,ka,ha,ra,Da,Ja,Ba,La,hb,fb,Tb,va,Ca,Ia,Xa,$a,jc){wI.call(this);var Va=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=v;this.issueTypeDialog=
y;this.componentActions=E;this.activeSession=I;this.draftStore=N;this.pageTitle=L;this.analytics=T;this.issueApi=Y;this.userApi=ka;this.hotlistApi=ha;this.butterBar=ra;this.errorHandler=Da;this.matDialogService=Ja;this.appEvents=Ba;this.userPreferencesManager=fb;this.cdr=Ca;this.confirmationDialogService=Ia;this.issueRelationshipsFridge=Xa;this.issueFridge=$a;this.clearcut=jc;this.ISSUE_ID_LIST_PATTERN=/^[\s\d,]*$/;this.ISSUE_ID_LIST_DELIMITER=/[\s,]+/;this.userEmail=this.activeSession.getUserEmail();
this.enableWtdmMvpUi=xH(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=wBb;this.FieldType=$Xb;this.initialized=!1;this.getSingleEditFieldType=aYb;this.getListFieldType=TYb;this.fetchUserHotlists();this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(function(){Va.fetchUserHotlists()}));this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(function(){Va.fetchUserHotlists()}));this.subscriptions.add(this.appEvents.bookmarkGroupModified.subscribe(function(){Va.fetchUserHotlists()}));
this.enableCreateIssueWithTemplate=xH(I,"enableCreateIssueWithTemplate");this.frontendIsInternalOrPartner=I.isInternalSession()||wH(I);this.priorityChoices=va.priorities.map(function(Ya){return{value:Ya,displayText:Ya}});this.severityChoices=va.severities.map(function(Ya){return{value:Ya,displayText:Ya}});this.issueTypeChoices=va.editIssueTypes.map(function(Ya){return{value:Ya,displayText:yBb(Ya),altText:va.issueTypesShortDescriptions.get(Ya)}});this.urlTemplate=new q7b(La,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=
La.component;this.templateIssueRequestedInUrl=La.template_issue;La.template&&(a=Ki(La.template),void 0!==a&&(this.preferredTemplateId=a));La.parentIssueId&&(a=La.parentIssueId,this.parentIssueIds=Array.isArray(a)?a:[a]);La.childrenIssueIds&&(a=La.childrenIssueIds,this.childrenIssueIds=Array.isArray(a)?a:[a]);La.afterIssueId&&(a=La.afterIssueId,this.afterIssueId=Array.isArray(a)?a[0]:a);this.issue=Fi(Qkc);d1a(this.issue,this);this.audience=2;La.description?this.comment=new ZR(La.description,!0):(a=
this.draftStore.$window.sessionStorage.getItem(xo(0))||"",this.comment=new ZR(a));a=Rkc(La);this.isFormatInRoute=null!=a;a&&(this.comment.formattingMode=a);this.selectedComponentProcessedPromise=Promise.resolve(void 0);this.subscriptions.add(fb.preferences$.subscribe(function(Ya){var Sa;Va.useCodefont=null!=(Sa=Ya.useCodefont)?Sa:Va.useCodefont}));this.hasAdvancedFieldsInUrlTemplate=s7b(this.urlTemplate)||!!this.parentIssueIds||!!this.childrenIssueIds;this.subscriptions.add(cJ(hb,{title:"Create Issue Page",
hotkeys:[{keys:["h"],displayAs:"h",description:"Edit hotlists",onPress:function(){var Ya;null==(Ya=Va.hotlistPicker)||Ya.open()}},{keys:["u"],displayAs:"u",description:"Back to previous page",onPress:function(){Va.back()}}]}));this.componentRequestedInUrl?(this.newIssueStarted=!0,Skc(this,Ki(this.componentRequestedInUrl))):(x7b(this.urlTemplate,this.issue),this.updateSelectedHotlists());this.templateIssueRequestedInUrl&&(this.newIssueStarted=!0,Tkc(this));this.originalIssueCopy=Fi(this.issue);La.description&&
(this.originalIssueCopy.comment=this.comment.value,this.issue.comment=this.comment.value);this.isFormatInRoute&&(this.issue.formattingMode=Vm[this.comment.formattingMode],this.originalIssueCopy.formattingMode=this.issue.formattingMode);this.pageTitle.setTitle("New issue");this.createRestrictedResourcesComponentWhitelist=jb(I.config,13);this.subscriptions.add(bZ(Tb,function(){return Va.hasUnsavedChanges()},!1))};U(d6,wI);d6.\u0275dir=wI.\u0275dir;g=d6.prototype;
g.ngOnDestroy=function(){wI.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(){V_(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=qX(a.selectedComponent)?2:1,a.createRestrictedResourcesComponentWhitelist.includes(a.selectedComponent.componentId)?(a.judgementForNewContent=new Fl,a.judgementForNewContent.setSeverity(2),a.judgementForNewContent.setJudgementReason("None Specified")):a.judgementForNewContent=
void 0):(bh(a.issue,"componentId"),a.audience=2);a.submitRequested=!1;Wkc(a);a.selectedComponentProcessedPromise=Promise.all([Xkc(a),Ykc(a)]).then(function(){});return a.selectedComponentProcessedPromise},$kc=function(a){a.assigneeText=a.assigneeText?a.assigneeText:null;a.verifierText=a.verifierText?a.verifierText:null;a.reporterText=a.reporterText?a.reporterText:null},k0a=function(a){return s2b(a.selectedComponent)?"External Google partners may be able to see this issue.":rX(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 alc(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;Wi(Vi(f))&&(f=e.default?"(default template)":"(unnamed template)");return new alc(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(){GK(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=sK(a.userAccess,"appender","components/"+b).then(function(f){a.canCreateNewIssuesInComponent=f;a.refreshView()}),e=sK(a.userAccess,"writer",c).then(function(f){a.canEditIssuesInComponent=f;a.refreshView()});c=sK(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(){blc(a);a.refreshView()}).catch(function(f){a.$log.warn(f)}).finally(function(){a.createAclLoading=!1})};
d6.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);$kc(a);e1a(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 v=q.next();!v.done;v=
q.next())Yma(f[k],v.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]?Xma(k.concat(d[h])):k:""!==k&&(d[h]=k));e=e.comment||"";a.comment.value!==a.templateComment&&(CQb(a.comment)||""===e||a.comment.value===e||(a.templateComment=e,clc(a,a.comment.value)),d.comment=a.comment.value);a.templateComment=e;d.reporterUser=Ul(a.userEmail);
a.issue=d;d1a(a.issue,a);blc(a);$kc(a);e1a(a,a.issue);a.comment.value=a.issue.comment||"";x7b(a.urlTemplate,a.issue,a.customFieldMap);d1a(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()});dlc(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&&(vIb(this.issueTemplate,this.selectedTemplate.id).then(b).then(function(c){c&&(Skc(a,c),a.refreshView())}),(0,S.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&&eo(this.analytics,io.CREATE_ISSUE,"changeTemplate");
Wkc(this)}};d6.prototype.isValid=function(){return!(0!==m0a(this).length||0!==n0a(this).length)&&!(!this.isBlockedByIssueIdValid||!this.isBlockingIssueIdValid||!this.isParentIssueIdsValid)&&!Ks(this.comment)};
var m0a=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})},n0a=function(a){return(a.issue.customField||[]).filter(function(b){return a.isCustomFieldRequired(b)&&(new iJ(b)).isEmpty()}).map(function(b){return'custom field "'+a.getCustomFieldName(b)+'"'})},Ms=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)})},H0a=function(a){return a.split(",").map(function(b){return b.trim()})},Ls=function(a){return a?a.join(", "):""},dlc=function(a){if(uja(a.customFieldMap,function(c){return c.required||!1})||a.hasAdvancedFieldsInUrlTemplate){var b;null==(b=a.advancedFieldsZippy)||b.open()}};g=d6.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 iJ(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});eo(this.analytics,io.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 iJ(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(xo(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();eo(this.analytics,io.CREATE_ISSUE,"changeHotlists")};g.removeHotlist=function(a){var b;ya(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:b8a(a)});var b;eo(this.analytics,io.CREATE_ISSUE,"changePriority",null!=(b=this.issue.priority)?b:void 0)};var D0a=function(a,b){a.issue=Object.assign({},a.issue,{type:vBb(b)});var c;eo(a.analytics,io.CREATE_ISSUE,"changeType",null!=(c=a.issue.type)?c:void 0)};
d6.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)});Ka(this.selectedHotlists,function(b,c){return fu(b.name,c.name)})};
var elc=function(a,b){var c,d,e,f,h,k,q,v,y,E,I;return bf(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?cf(N,a.issueRelationshipsFridge.assignParentToIssues(d[0],[{issueId:c,afterIssueId:a.afterIssueId}]),6):cf(N,cKb(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&&GK(a.butterBar,"Unable to add "+e+" as parent(s). "+
f);case 2:q=a.childrenIssueIds;if(null==(v=q)||!v.length){N.jumpTo(7);break}return cf(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&&GK(a.butterBar,"Unable to add "+E+" as children. "+I);case 7:return N.return(b)}})},$0a=function(a,b){var c=a.issue;a.submitRequested=!0;if(a.isValid()){c.comment=a.comment.value;c.formattingMode=Vm[a.comment.formattingMode];var d={snapshot:c,attachments:DQb(a.comment)};
a.selectedTemplate&&"predefined"===a.selectedTemplate.type&&(d.templateId=a.selectedTemplate.id);a.judgementForNewContent&&1!==a.judgementForNewContent.getSeverity()&&(d.contentJudgement=xqa(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=$g(d.snapshot,function(h){return"string"!==typeof h||!Wi(h)});d.snapshot.customField&&(d.snapshot.customField=d.snapshot.customField.filter(function(h){return!(new iJ(h)).isEmpty()}));e1a(a,d.snapshot);d.snapshot.assigneeUser&&(d.snapshot.status="ASSIGNED");var e=function(){a.isSaving=!0;a.newIssueStarted=!1;FK(a.butterBar,"Creating...",0);a.issueApi.createIssue(d).then(function(h){return elc(a,h)}).then(function(h){a.draftStore.$window.sessionStorage.removeItem(xo(0));a.originalIssueCopy=
Fi(a.issue);eo(a.analytics,io.CREATE_ISSUE,"create",2===a.comment.formattingMode?"markdown":"non markdown");flc(a);if(b){var k;eo(a.analytics,io.CREATE_ISSUE,"fileAndRedirect","component",null!=(k=c.componentId)?k:void 0);a.butterBar.dismiss();a.isNavigatingAway=!0;a.isSaving=!1;sK(a.userAccess,"reader","issues/"+h.issueId).then(function(y){a.componentPickerTouched=!1;y?E7b(a.redirectUrl,a.paths.editIssue(h.issueId),String(h.issueId)):(FK(a.butterBar,"New issue created: "+h.issueId+" (view access not granted)",
0),E7b(a.redirectUrl,a.paths.listIssues()));a.refreshView()}).catch(function(y){a.errorHandler.errorHandler(null,y);a.isNavigatingAway=!1})}else{a.componentPickerTouched=!1;var q;eo(a.analytics,io.CREATE_ISSUE,"fileAndNew","component",null!=(q=c.componentId)?q:void 0);k={};tIb(a.butterBar,Sn("New issue created: ",Rn("A",(k.href=a.paths.editIssue(h.issueId),k),String(h.issueId))),0);c.title="";a.comment=new ZR(a.templateComment);c.comment=a.comment.value;a.isSaving=!1;a.submitRequested=!1;var v;k=
r(null!=(v=a.magicBoxes)?v:[]);for(v=k.next();!v.done;v=k.next())v.value.refresh();a.newIssueStarted=!0;a.originalIssueCopy=Fi(a.issue)}a.refreshView()}).catch(function(h){403===h.status&&Em(h)?JK(a.errorHandler,Fm(h)):a.errorHandler.errorHandler(null,h);a.isSaving=!1;a.submitRequested=!1;a.newIssueStarted=!1})};glc(a).then(function(h){return h?hlc(a):Promise.resolve(!1)}).then(function(h){h&&e()})}else{var f=document.querySelector(".bv2-view");f&&(f.scrollTop=0)}},glc=function(a){var b=Kj();!a.canEditIssuesInComponent&&
!a.frontendIsInternalOrPartner&&a.selectedComponent&&a.selectedComponent.accessLimit&&"INTERNAL"!==a.selectedComponent.accessLimit.accessLevel?a.confirmationDialogService.open({title:"",content:Wy("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},hlc=function(a){var b=Kj();!a.canEditIssuesInComponent||"VULNERABILITY"!==a.issue.type&&
"PRIVACY_ISSUE"!==a.issue.type?b.resolve(!0):KR(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(){GK(a.butterBar,"Component ID "+b+" does not exist or you do not have access.")}).finally(function(){a.isLoadingComponent=!1})};
d6.prototype.hasUnsavedChanges=function(){var a=f1a(this.issue),b=f1a(this.originalIssueCopy);return!Ei(a,b)||this.comment.value!==this.originalIssueCopy.comment};
var z0a=function(a){a.showRecentIssuesInline=!a.showRecentIssuesInline;eo(a.analytics,io.CREATE_ISSUE,"toggleRecentIssuesInline",a.showRecentIssuesInline.toString())},clc=function(a,b){NB(a.matDialogService.open(a.descriptionConfirmDialog,{data:b})).pipe(Tf()).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)))},Is=function(a){return a.sessionIsExternal?!1:s2b(a.selectedComponent)},Js=function(a){return"PUBLIC"===a.activeSession.frontendAccessMode?!1:rX(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=ilc(b);jlc(a)}},jlc=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 iJ({customFieldId:d.customFieldId}));a.originalIssueCopy.customField=a.issue.customField}},blc=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=d6.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&&ya(this.hotlists,b);this.hotlistMap[a.hotlistId]=a;this.hotlists.push(a)};
g.createHotlist=function(a){var b=this;eo(this.analytics,"baseIssue","createHotlist");FK(this.butterBar,"Creating hotlist "+a.name+"...",0);this.hotlistApi.createHotlist(a.name).then(function(c){FK(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];bh(b.hotlistMap,c);ya(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}};d6.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(cg(this.destroyed$)).subscribe(function(e){e&&(a.judgementForNewContent=e.contentJudgement)})};
d6.prototype.showContentJudgementDialog=function(a){return NB(this.matDialogService.open(p5,{width:"500px",data:a}))};
var Ukc=function(a){a.componentPickerTouched&&(eo(a.analytics,io.CREATE_ISSUE,"exit-after-component-picker-interaction","new-ui"),a.componentPickerTouched=!1);eo(a.analytics,io.CREATE_ISSUE,"creation-abandon","new-ui")},flc=function(a){var b=(new Date).getTime()-a.startTime.getTime();if(0<b){var c=Math.min(b,108E5);SKb(a.analytics,"createIssue",c,"new-ui");eo(a.analytics,io.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};li.Object.defineProperties(d6.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()})}}}});
d6.\u0275fac=function(a){return new (a||d6)(D(jg),D(HK),D(rLb),D(TK),D(W_),D(rK),D(gO),D(SK),D(U_),D(LK),D(JR),D(zT),D(vH),D(IR),D(fO),D(QM),D(lK),D(kL),D(eL),D(DK),D(IK),D(ZB),D(MK),D($R),D(bJ),D(VI),D(aZ),D(XH),D(sI,2),D(ZM),D(cM),D(wL),D(QO))};
d6.\u0275cmp=w({type:d6,selectors:[["b-create-issue-page"]],viewQuery:function(a,b){a&1&&(Bf(vX,5),Bf(oX,5),Bf(Okc,5),Bf($5,5),Bf(r_,5));if(a&2){var c;Af(c=Df())&&(b.hotlistPicker=c.first);Af(c=Df())&&(b.commentBox=c.first);Af(c=Df())&&(b.descriptionConfirmDialog=c.first);Af(c=Df())&&(b.advancedFieldsZippy=c.first);Af(c=Df())&&(b.magicBoxes=c)}},hostBindings:function(a,b){a&1&&J("unload",function(){return b.unloadPageHandler()},!1,sd)},features:[Ge([sI]),ae],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&&(F(0,"h2",0),O(1,"Create issue"),G(),F(2,"div",1)(3,"div",2)(4,"button",3),J("click",function(){return b.back()}),H(5,"mat-icon",4),G(),F(6,"h2"),O(7,"Create Issue"),G(),M(8,i0a,1,2,"b-hotlist-picker",5),G()(),F(9,"div",6)(10,"div")(11,"div",7)(12,"form",8),M(13,l0a,6,8,"div",9),M(14,r0a,4,3,"div",10),M(15,t0a,2,1,"div",11),F(16,"div",12)(17,"div",13)(18,"div",14)(19,"label",15),O(20,"Component"),G()(),F(21,"div",16)(22,"b-team-component-picker",
17),J("selectedComponentChange",function(d){return Zkc(b,null!==d&&void 0!==d?d:null)})("touched",function(){return b.componentPickerTouched=!0}),G()()(),M(23,w0a,11,5,"div",18),G(),M(24,x0a,3,0,"div",19),M(25,b1a,33,25,"div",20),G()(),F(26,"div",21)(27,"b-magic-box",22),J("headerChange",function(d){return b.magicBoxHeader=d}),G()()()(),M(28,c1a,11,2,"ng-template",null,23,Jf));if(a&2){var c;B(8);C("ngIf",b.canEditIssuesInComponent);B(4);C("ngClass",Ie(15,Pkc,b.submitRequested));B(1);C("ngIf",Is(b)||
Js(b));B(1);C("ngIf",b.submitRequested&&!b.isValid());B(1);C("ngIf",0<b.selectedHotlists.length);B(7);C("selectedComponent",b.selectedComponent)("shouldFocus",!b.componentRequestedInUrl&&!b.templateIssueRequestedInUrl)("isRequired",!0);B(1);C("ngIf",0<b.availablePredefinedTemplates.length||null!=b.availableExistingIssueTemplate);B(1);C("ngIf",!b.isLoadingComponent&&(null!=b.componentRequestedInUrl||null!=b.selectedComponent)&&!b.canCreateNewIssuesInComponent&&!b.createAclLoading&&b.selectedComponent);
B(1);C("ngIf",b.canCreateNewIssuesInComponent||b.createAclLoading||!b.selectedComponent);B(2);C("componentId",null!==(c=b.issue.componentId)&&void 0!==c?c:void 0)("issueTitle",b.issue.title)("issue",b.issue)("customFieldMap",b.customFieldMap)}},dependencies:[wO,oX,SW,WU,aQ,V4,j_,sy,Jg,ly,my,Cy,Ey,ry,py,dY,vX,zH,bY,uV,r_,BB,$B,aC,bC,cC,$5,a6,b6,dF,DA,iF,gF,lF,ET,sF,W5,DV,Fx,Gx,Cx,xM],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 ilc=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:[]},alc=function(a,b,c,d){this.id=a;this.type=b;this.name=c;this.isDefault=d};
var klc=["form"],e6=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")};e6.prototype.ngAfterViewInit=function(){};
e6.prototype.save=function(){var a=this;if(!this.validate())return Promise.reject("Correct the errors in the form");FK(this.butterBar,"Saving SLO...",0);this.isSaving=!0;return this.sloApi.create(this.sloUnderEdit).then(function(b){FK(a.butterBar,"SLO "+b.getName()+" saved.",2E3);eo(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})};e6.prototype.back=function(){V_(this.appHistory)};
e6.prototype.revertChanges=function(){this.sloUnderEdit.setName("");this.sloUnderEdit.setDescription("");Ab(this.sloUnderEdit,6,[])};var llc=function(a){return""!==a.sloUnderEdit.getName()||""!==a.sloUnderEdit.getDescription()||0<Xs(a.sloUnderEdit).length};e6.prototype.updateCollection=function(a){Ab(this.sloUnderEdit,6,a)};
e6.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};e6.\u0275fac=function(a){return new (a||e6)(D(SK),D(vY),D(IK),D(TK),D(QM),D(DK),D(fO),D(U_))};
e6.\u0275cmp=w({type:e6,selectors:[["create-slo-page"]],viewQuery:function(a,b){a&1&&Bf(klc,5);if(a&2){var c;Af(c=Df())&&(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&&(F(0,"div",0)(1,"div",
1)(2,"b-button",2),J("onAction",function(){return b.back()}),H(3,"b-icon",3),G()()(),F(4,"div",4)(5,"h2",5)(6,"span",6),O(7,"Create a new SLO"),G()(),F(8,"div",7)(9,"form",8,9),H(11,"b-error-banner",10),F(12,"div",11)(13,"label",12),O(14,"Name"),G(),F(15,"input",13),J("ngModelChange",function(c){return b.sloUnderEdit.setName(c)}),G()(),F(16,"div",11)(17,"label",14),O(18,"Description"),G(),F(19,"textarea",15),J("ngModelChange",function(c){return b.sloUnderEdit.setDescription(c)}),O(20,"        "),
G()(),F(21,"div",11)(22,"slo-elements-picker",16),J("onCollectionUpdate",function(c){return b.updateCollection(c)})("onValidation",function(c){return b.elementPickerIsValid=c}),G()(),F(23,"p",17),O(24," Access controls may be defined once the slo is created. "),G(),F(25,"div",18)(26,"b-button",19),J("onAction",function(){return b.save()}),O(27," Save "),G(),F(28,"b-button",20),J("onAction",function(){return b.revertChanges()}),O(29," Revert changes "),G()()()()());a&2&&(B(9),le("show-errors",b.error),
B(2),C("error",b.error),B(1),le("bv2-edit-resource-readonly",b.isSaving),B(3),C("required",!0)("bFocus",!0)("ngModel",b.sloUnderEdit.getName())("disabled",b.isSaving),B(1),le("bv2-edit-resource-readonly",b.isSaving),B(3),C("ngModel",b.sloUnderEdit.getDescription())("disabled",b.isSaving),B(3),C("isDisabled",!1)("collection",Xs(b.sloUnderEdit)),B(4),C("disabled",b.isSaving||(null==b.createSloForm?null:b.createSloForm.pending)||(null==b.createSloForm?null:b.createSloForm.invalid)||!b.elementPickerIsValid),
B(2),C("disabled",!llc(b)))},dependencies:[wO,iZ,j_,sy,Jg,ly,my,Cy,ry,py,zH,G_],encapsulation:2});
var f6=function(){this.nextPanelId_=1};f6.\u0275fac=function(a){return new (a||f6)};f6.\u0275prov=dc({token:f6,factory:f6.\u0275fac,providedIn:"root"});
var g6=function(a,b,c,d,e,f,h,k,q,v,y,E,I,N,L,T,Y,ka,ha,ra,Da){wI.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=v;this.pageTitle=y;this.dashboards=E;this.routeParams=I;this.currentSearch=L;this.userAccess=T;this.errorHandler=Y;this.statusMessages=ka;this.appEvents=ha;this.hotlistFridge=ra;this.issueFridge=Da;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(g6,wI);g6.\u0275dir=wI.\u0275dir;
g6.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){mlc(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){nlc(a,
b,function(c){return c+1})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveUp.subscribe(function(b){nlc(a,b,function(c){return c-1})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveToTop.subscribe(function(b){nlc(a,b,function(){return 0})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveToBottom.subscribe(function(b){nlc(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 k1a=function(a,b){var c=b.selectedIssues;if(a=olc(a,b.panelId))a.selectedIssues=null!=c?c:[]},j1a=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)},olc=function(a,b){return a.panels.find(function(c){return c.panelId===b})},plc=function(a,b){a=a.panels.findIndex(function(c){return c.panelId===b});return-1!==a?a:void 0};g=g6.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&&ya(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;eo(this.analytics,this.ANALYTICS_CATEGORY,"createHotlist");FK(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){b.hotlistFridge.announce(e);FK(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;FK(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;wa(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$1723:a.$jscomp$loop$prop$issueRows$1723},d=c.next())e=r(d.value),d=e.next().value,e=e.next().value,a.$jscomp$loop$prop$issueRows$1723=e,this.hotlistApi.get(d).then(function(h){return function(k){b.hotlistFridge.announce(k);
for(var q=r(h.$jscomp$loop$prop$issueRows$1723),v=q.next();!v.done;v=q.next())v.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();FK(this.butterBar,"Marking "+a[0].issueIds.length+" issues  "+(c?"read":"unread")+"...",0);return yL(this.issueFridge,a[0].issueIds,{markRead:c}).then(function(k){FK(b.butterBar,"Issues marked "+
(c?"read":"unread")+".");for(var q=r(b.panels),v=q.next();!v.done;v=q.next()){v=r(v.value.selectedIssues);for(var y=v.next();!y.done;y=v.next()){var E=void 0;y.value.lastViewedTime=null!=(E=k)?E:null}}}).catch(function(k){for(var q=r(b.panels),v=q.next();!v.done;v=q.next()){v=r(v.value.selectedIssues);for(var y=v.next();!y.done;y=v.next())y=y.value,y.isRead=!!y.lastViewedTime&&y.lastViewedTime>=y.majorModifiedTime}b.errorHandler.errorHandler(null,k)}).finally(function(){b.cdr.detectChanges()})}d=
sQb(a).map(function(k){return k.fieldName});eo(this.analytics,this.ANALYTICS_CATEGORY,"bulkEdit",d.join(","));var h={bulkEditOps:a};FK(this.butterBar,"Saving changes...",0);return this.issueApi.issueBulkEdit(h).then(function(k){for(var q=r([].concat(u(b.searchPanels),u(b.hotlistPanels))),v=q.next();!v.done;v=q.next()){v=v.value;var y=k;if(v.searchResults){v.searchResults=v.searchResults.clone();for(var E=0,I=r(v.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=XKb(L,y.componentMap[Number(qa(L.snapshot).componentId)]);L.selected=N.selected;v.searchResults.issues[E]=L;v.resultsLoaded.emit([v.searchResults.issues[E]])}E++}}}k.errors&&k.errors.length?(q=Oi(k.errors,"issueId"),GK(b.butterBar,"Failed to update issue(s) "+q.join(", ")+"."),eo(b.analytics,b.ANALYTICS_CATEGORY,"bulkEditError",""+k.errors.length)):(k=wQb(b.statusMessages,h))?FK(b.butterBar,k):FK(b.butterBar,"Saved "+tQb(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){sK(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 mlc=function(a,b){a.panels=(b.item||[]).map(function(c,d){return qlc(a,c,0===d?0:void 0)})};
g6.prototype.removePanel=function(a){var b=this,c=olc(this,a);if(null!=c){FK(this.butterBar,"Saving changes...",0);a=Fi(this.bookmarkGroup);var d;a.item=(null!=(d=a.item)?d:[]).filter(function(e){return!rlc(b,c,e)});slc(this,a)}};
var nlc=function(a,b,c){b=plc(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 rlc(a,d,k)});void 0!==h&&(raa(b.item,h,c),slc(a,b))}}},slc=function(a,b){a.bookmarkGroupsApi.update(b).then(function(c){a.bookmarkGroup=c;tlc(a,a.bookmarkGroup.item);FK(a.butterBar,"Bookmark group saved.",4E3);a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:a.bookmarkGroup.bookmarkGroupId});
a.cdr.detectChanges()},function(c){a.errorHandler.errorHandler(null,c)})},rlc=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}},ulc=function(a,b){return a.panels.find(function(c){return rlc(a,c,b)})},qlc=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:[]}},tlc=function(a,b){a.panels=(null!=b?b:[]).map(function(c){var d;return null!=(d=ulc(a,c))?d:qlc(a,c)})};
g6.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)})};
g6.prototype.editBookmarkGroup=function(){this.bLocation.url(this.paths.editBookmarkGroup(this.bookmarkGroup.bookmarkGroupId))};g6.\u0275fac=function(a){return new (a||g6)(D(sI),D(TK),D(SK),D(HK),D(QM),D(lK),D(kL),D(XM),D(eL),D(DK),D(fO),D(f6),D($R),D(vH),D(ON),D(rK),D(IK),D(MR),D(MK),D(qL),D(wL))};
g6.\u0275cmp=w({type:g6,selectors:[["dashboard-page"]],viewQuery:function(a,b){a&1&&(Bf(e_,5),Bf(UZ,5));if(a&2){var c;Af(c=Df())&&(b.searchPanels=c);Af(c=Df())&&(b.hotlistPanels=c)}},features:[Ge([sI]),ae],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&&(F(0,"h2",0),O(1,"Dashboard"),G(),F(2,"div",1)(3,"div",2),O(4,"Bookmark groups dashboard"),G(),F(5,"b-dashboard-controls",3),J("onSave",function(c){return b.sendBulkEditRequest(c.bulkEditOps)})("onCreateHotlist",function(c){return b.createHotlist(c)})("onLoadHotlist",function(c){return b.loadHotlist(c)}),G()(),F(6,"div",4),M(7,i1a,8,3,"div",5),M(8,n1a,3,3,"div",6),G());a&2&&(B(5),C("hotlistChoices",b.hotlistChoices)("panels",b.panels),B(1),C("bFocus",!0),B(1),C("ngIf",
b.bookmarkGroup),B(1),C("ngForOf",b.panels))},dependencies:[ZX,iN,e_,UZ,Gx,Cx,Ix,Jx,j_,sF],encapsulation:2});var h6=function(){};h6.\u0275fac=function(a){return new (a||h6)};h6.\u0275mod=uc({type:h6});h6.\u0275inj=gc({imports:[$X,UN,f_,VZ,Wx,k_,lH]});
var vlc=["editBookmarkGroupItemsContainer"],wlc=["bookmarkGroupName"],Ns=function(a){return{"bv2-edit-resource-readonly":a}},O1a=function(a){return{displayText:"Admins",values:a}},N1a=function(a){return[a]},i6=function(a,b,c,d,e,f,h,k,q,v,y,E,I,N,L,T,Y,ka,ha,ra){wI.call(this);var Da=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=v;this.accessPolicyConverter=y;this.userAccess=
E;this.errorHandler=N;this.appEvents=T;this.snackBar=Y;this.confirmationDialog=ka;this.cdr=ha;this.documentationLinks=ra;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=KT();this.flattenedAccessPolicy=KT();a=this.loadBookmarkGroup(this.routeParams.groupId);
b=this.loadUserAccess(this.routeParams.groupId);this.loadAccessPolicy(this.routeParams.groupId);xlc(this);ylc(this);Promise.all([a,b]).then(function(){var Ja;null==(Ja=Da.bookmarkGroupNameInput)||Ja.nativeElement.focus()});this.subscriptions.add(bZ(I,function(){return Da.hasUnsavedChanges()},!1));I=function(){xlc(Da)};this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(I));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(I));this.subscriptions.add(this.appEvents.savedSearchModified.subscribe(function(){ylc(Da)}))};
U(i6,wI);i6.\u0275dir=wI.\u0275dir;g=i6.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(){V_(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=[zlc(this.bookmarkGroup.item.filter(function(a){return a.hasOwnProperty("hotlistId")}))];j6(this)};g.revertAccessPolicyChanges=function(){this.accessPolicyUnderEdit=Fi(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};
g.saveMetadata=function(){this.validate()&&(Nl(this.bookmarkGroupUnderEdit.ownerUser)!==Nl(this.bookmarkGroup.ownerUser)?this.openConfirmationDialog("Change bookmark group owner",Pn("Are you sure you want to transfer ownership of this bookmark\n              group to "+Nl(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",Pn("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",Pn("Do you want to archive this bookmark group?"),function(){Alc(a,"archive")})};g.unarchive=function(){var a=this;this.openConfirmationDialog("Unarchive bookmark group",Pn("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=MT(this.accessPolicyUnderEdit)}catch(c){b="An unknown problem occurred";c instanceof Error&&(b=c.message);GK(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=LT(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})};
i6.prototype.loadBookmarkGroup=function(a){var b=this;this.isLoading=!0;return this.bookmarkGroupsApi.get(a).then(function(c){Blc(b,c);b.selectedHotlistIds=[zlc(b.bookmarkGroup.item)];j6(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)};
i6.prototype.loadAccessPolicy=function(a){var b=this;this.accessPolicyApi.get("BOOKMARK_GROUP",a).then(function(c){b.flattenedAccessPolicy=LT(c);b.accessPolicyUnderEdit=Fi(b.flattenedAccessPolicy);b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};i6.prototype.loadUserAccess=function(a){var b=this;return sK(this.userAccess,"admin","bookmarkGroups/"+a).then(function(c){b.isAdmin=c;b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
var xlc=function(a){a.userApi.getUserHotlists().then(function(b){a.userHotlists=b;a.cdr.detectChanges()})},ylc=function(a){a.userSavedSearches=null;a.userApi.getUserSavedSearches().then(function(b){a.userSavedSearches=b;j6(a);a.cdr.detectChanges()})},j6=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)})}},
r1a=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()},t1a=function(a,b){za(a.bookmarkGroupUnderEdit.item,function(d){return d.savedSearchId===b});j6(a);var c;null==(c=a.editBookmarkGroupItemsContainer)||c.nativeElement.focus()},G1a=function(a,b){switch(b.resourceType){case "SAVED_SEARCH":return a.paths.viewSavedSearch(b.savedSearchId);case "HOTLIST":return a.paths.viewHotlist(b.hotlistId);
default:mh(b.resourceType)}},B1a=function(a,b){for(var c={},d=r(Object.entries(b.newSelectionMap)),e=d.next();!e.done;c={$jscomp$loop$prop$id$1726:c.$jscomp$loop$prop$id$1726},e=d.next()){var f=r(e.value);e=f.next().value;f=f.next().value;c.$jscomp$loop$prop$id$1726=Ki(e);f&&!b.oldSelectionMap[c.$jscomp$loop$prop$id$1726]?(E1a(a,c.$jscomp$loop$prop$id$1726),e=a.userHotlists.find(function(h){return function(k){return k.hotlistId===h.$jscomp$loop$prop$id$1726}}(c)),a.bookmarkGroupUnderEdit.item.push({hotlistId:e.hotlistId,
name:e.name,resourceType:"HOTLIST"})):b.oldSelectionMap[c.$jscomp$loop$prop$id$1726]&&!f&&(Dlc(a,c.$jscomp$loop$prop$id$1726),za(a.bookmarkGroupUnderEdit.item,function(h){return function(k){return k.hotlistId===h.$jscomp$loop$prop$id$1726}}(c)))}},E1a=function(a,b){a.selectedHotlistIds[0].push(b);a.selectedHotlistIds=[a.selectedHotlistIds[0]]},Dlc=function(a,b){ya(a.selectedHotlistIds[0],b);a.selectedHotlistIds=[a.selectedHotlistIds[0]]},x1a=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(){j6(a)})},Clc=function(a){return a?Oi(a,"savedSearchId"):[]},zlc=function(a){return a?Oi(a,"hotlistId"):[]},C1a=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)},
D1a=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)};i6.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:mh(a.resourceType)}};
i6.prototype.openConfirmationDialog=function(a,b,c){this.confirmationDialog.open({title:a,content:b,onConfirm:function(){c()}})};i6.\u0275fac=function(a){return new (a||i6)(D($R),D(SK),D(DK),D(gO),D(kL),D(XM),D(eL),D(TK),D(U_),D(fO),D(JT),D(rK),D(aZ),D(IK),D(vH),D(MK),D(AK),D(ZM),D(sI,2),D(rP))};
i6.\u0275cmp=w({type:i6,selectors:[["b-edit-bookmark-group"]],viewQuery:function(a,b){a&1&&(Bf(vlc,5),Bf(wlc,5),Bf(bX,5,pd));if(a&2){var c;Af(c=Df())&&(b.editBookmarkGroupItemsContainer=c.first);Af(c=Df())&&(b.bookmarkGroupNameInput=c.first);Af(c=Df())&&(b.tabs=c)}},features:[Ge([sI]),ae],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&&(F(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),J("click",function(){return b.back()}),H(4,"mat-icon",
4),G(),M(5,o1a,2,1,"button",5),M(6,p1a,2,1,"button",5),G()()(),F(7,"div",6),M(8,P1a,48,40,"ng-container",7),G());a&2&&(B(5),C("ngIf",b.isAdmin&&!b.isArchived()),B(1),C("ngIf",b.isAdmin&&b.isArchived()),B(2),C("ngIf",!b.isLoading&&b.bookmarkGroup.bookmarkGroupId))},dependencies:[Fx,Gx,Cx,sF,BB,dX,bX,iZ,lY,vX,xN,dF,Jg,ly,Cy,ry,iF,gF,lF,fF,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 jhb=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()}}}},ihb=function(a,b){return b.isInternal?{type:"action",label:"Request issue deletion...",title:"Request issue deletion",action:function(){a.requestIssueDeletion()}}:void 0},khb=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)}}},Elc=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 Os=function(a){Z.call(this,a,-1,Flc)};U(Os,Z);Os.prototype.getFilename=function(){return V(this,1)};Os.prototype.setFilename=function(a){l(this,1,a)};var Flc=[2];Os.prototype.toObject=function(){return Glc(void 0,this)};var Glc=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 Ps=function(a){Z.call(this,a,-1,Hlc)};U(Ps,Z);var Hlc=[2];Ps.prototype.toObject=function(){return Ilc(void 0,this)};var Ilc=function(a,b){if(null!=b){var c={packageName:n(p(b,1)),fileMentionSetList:Cb(rb(b,Os,2),Glc,a)};a&&(c.$jspbMessageInstance=b);return c}};
var Klc=function(a){Z.call(this,a,-1,Jlc)};U(Klc,Z);var Jlc=[3];Klc.prototype.toObject=function(){var a=null!=this?{totalMentions:n(p(this,1)),truncated:n(To(this,2)),packageMentionSetList:Cb(rb(this,Ps,3),Ilc)}:void 0;return a};Klc.messageId="b.MentionSearchResult";
var k6=function(a){this.executor=a};k6.\u0275fac=function(a){return new (a||k6)(t(oI))};k6.\u0275prov=dc({token:k6,factory:k6.\u0275fac,providedIn:"root"});
var l6=function(a,b,c){this.mentionsApi=a;this.refreshMonitor=b;this.analytics=c},Llc=function(a,b){var c=a.getLink(b);a.cachedId===b&&a.cachedEntry||(a.cachedId=b,a.cachedEntry=oJb(a.refreshMonitor,(0,S.defer)(function(){return a.mentionsApi.executor.get({url:"action/issues/"+b+"/mentions",responseConstructor:Klc}).then(T1a).then(function(d){return{mentions:d,loadingState:"OK",link:c}}).catch(function(){return{loadingState:"ERROR",link:c}})}).pipe(ag({loadingState:"LOADING",link:c}))).pipe(Zf({refCount:!0,
bufferSize:1})));return a.cachedEntry};l6.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."}};
l6.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)};l6.prototype.getLink=function(a){return"https://todo.corp.google.com/?issue="+a};l6.prototype.trackSqueegeeClick=function(){eo(this.analytics,"codeMentions","clickSqueegeeLink")};l6.\u0275fac=function(a){return new (a||l6)(t(k6),t(sL),t(QM))};l6.\u0275prov=dc({token:l6,factory:l6.\u0275fac,providedIn:"root"});
var Mlc=new ld("DevopsGraphLogger",{providedIn:"root",factory:function(){return Sk}}),Nlc=new ld("DEV_GRAPH",{providedIn:"root",factory:function(){var a;return bf(function(b){switch(b.nextAddress){case 1:return Qt(b,2),cf(b,AAb(),4);case 4:a=b.yieldResult;Rt(b,3);break;case 2:return St(b),b.return();case 3:return Qt(b,5),cf(b,a.loadGraph(),7);case 7:Rt(b,6);break;case 5:return St(b),b.return();case 6:return b.return(google.corp.devops.tools.graph)}})}});
var Olc=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 S.Subject;this.close$=new S.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 bf(function(h){if(1==h.nextAddress)return b=a.getContainer(),!b||a.graphService&&a.graphController?h.return():cf(h,a.graphBuilder,2);c=h.yieldResult;d=Olc(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")});df(h)})};var Plc=function(a,b){var c;return bf(function(d){switch(d.nextAddress){case 1:return Qt(d,2),cf(d,a.init(),4);case 4:return null==a.graphService?d.return(new Set):cf(d,a.graphService.getAvailableIssueContexts(b),6);case 6:return d.return(d.yieldResult);case 5:Rt(d,0);break;case 2:return c=St(d),a.logger(c),d.return(new Set)}})};
m6.prototype.openSidebar=function(a,b){var c=this,d;return bf(function(e){switch(e.nextAddress){case 1:return cf(e,c.init(),2);case 2:if(!c.graphController)return e.return();Qt(e,3);return cf(e,c.graphController.openIssueContext(a,b),5);case 5:Rt(e,0);break;case 3:d=St(e),c.logger(d),df(e)}})};
m6.prototype.close=function(){var a=this,b;return bf(function(c){switch(c.nextAddress){case 1:return cf(c,a.init(),2);case 2:if(!a.graphController)return c.return();Qt(c,3);return cf(c,a.graphController.close(),5);case 5:Rt(c,0);break;case 3:b=St(c),a.logger(b),df(c)}})};m6.\u0275fac=function(a){return new (a||m6)(t(vH),t(SO),t(Mlc),t(Nlc))};m6.\u0275prov=dc({token:m6,factory:m6.\u0275fac,providedIn:"root"});
var Qlc={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=Qlc};n6.\u0275fac=function(a){return new (a||n6)(D(XB),D(TK))};
n6.\u0275cmp=w({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&&(F(0,"h1",0),O(1,"Archive with all descendant issues?"),G(),
F(2,"div",1),O(3),H(4,"br")(5,"br"),F(6,"a",2),O(7,"View all descendant issues"),G(),H(8,"br"),F(9,"a",3),O(10,"Learn more"),G()(),F(11,"div",4)(12,"button",5),O(13,"Cancel"),G(),F(14,"button",5),O(15," Just this one "),G(),F(16,"button",6),O(17," Archive all "),G()());a&2&&(B(3),De(" 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),Ae("href",b.descendantIssuesUrl,
Md),B(6),C("matDialogClose",b.ActionType.CANCEL),B(2),C("matDialogClose",b.ActionType.ARCHIVE_ONE),B(2),C("matDialogClose",b.ActionType.ARCHIVE_ALL))},dependencies:[BB,$B,aC,bC,cC],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 bf(function(d){if(1==d.nextAddress)return b?cf(d,c.archive(a),5):cf(d,c.editIssueService.unarchive(a),0);it(c.issueFridge,a);it(c.eventsForIssueFridge,a);df(d)})};
o6.prototype.archive=function(a){var b=this,c,d,e,f,h,k,q,v,y,E;return bf(function(I){if(1==I.nextAddress)return cf(I,Promise.all([b.getDescendants(a),(0,S.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;v=q.childToParents;y=q.completeResult;E=[].concat(u(v.keys()));v.set(a,k.parentIssueIds||[]);return 0===E.length?I.return(Rlc(b,a,v)):y?I.return(Slc(b,a,E,v)):I.return(Tlc(b,a,v))})};
var Slc=function(a,b,c,d){var e,f,h;return bf(function(k){if(1==k.nextAddress)return e={numberOfDescendants:c.length,issueId:b},f={data:e,width:"500px"},cf(k,(0,S.firstValueFrom)(NB(a.dialog.open(n6,f))),2);h=k.yieldResult;switch(h){case "ARCHIVE_ALL":return k.return(Ulc(a,[b].concat(u(c)),d));case "ARCHIVE_ONE":return k.return(Rlc(a,b,d));case "CANCEL":return k.return();default:return k.return(mh(h))}})},Ulc=function(a,b,c){var d=[{issueIds:b.map(Number),actions:[{fieldName:"isArchived",value:"true"}]}];
Vlc(a,c);FK(a.butterBar,"Archiving "+b.length+" issues...");return a.issueApi.issueBulkEdit({bulkEditOps:d}).then(function(){FK(a.butterBar,"Archived "+b.length+" issues successfully.")}).catch(function(e){GK(a.butterBar,e);Wlc(a,c)})},Rlc=function(a,b,c){Vlc(a,c);return a.issueApi.updateIssue(b,{issueId:b,actions:[{fieldName:"isArchived",value:"true"}]}).then(function(){FK(a.butterBar,"Archived successfully.")}).catch(function(d){GK(a.butterBar,d);Wlc(a,c)})},Tlc=function(a,b,c){return new Promise(function(d){a.confirmationDialogService.open({title:"Archive issue with descendant issues\uff1f",
content:Sn(Pn("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."),Rn("BR",{}),Rn("BR",{}),Rn("A",{href:a.paths.listIssues({q:"parentId:"+b+"+"}),target:"_blank"},"View all descendant issues"),Rn("BR",{}),Rn("A",{href:"http://go/b-issue-archive",target:"_blank"},"Learn more")),cancelButtonText:"Cancel",confirmButtonText:"Just this one",onConfirm:function(){Rlc(a,
b,c).then(d)},onDismiss:d})})},Vlc=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)}},Wlc=function(a,b){b=[].concat(u(b.values())).flat();b=r(b);for(var c=b.next();!c.done;c=b.next())it(a.issueRelationshipsFridge,c.value)};
o6.prototype.getDescendants=function(a){var b=this,c,d,e,f,h,k,q,v,y,E,I,N;return bf(function(L){if(1==L.nextAddress)return cf(L,(0,S.firstValueFrom)($Jb(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;v=r(q.relatedChildren);for(y=v.next();!y.done;y=v.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(lK),t(ZB),t(ZM),t(cM),t(wL),t(LL),t(TK),t(DK),t(mS))};o6.\u0275prov=dc({token:o6,factory:o6.\u0275fac,providedIn:"root"});
var p6=function(a,b,c,d,e,f,h,k,q){wI.call(this);var v=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 S.BehaviorSubject(null);this.searchResults$=this.internalSearchResults$.pipe(Pf(),bg(function(y){return y?y.changed$:(0,S.of)(null)}));this.issueIds$=this.searchResults$.pipe(R(function(y){var E;return null!=(E=null==
y?void 0:y.issues.map(function(I){return I.id}).map(Tn))?E:[]}),Pf(Ei));this.issues$=this.issueIds$.pipe(bg(function(y){return(0,S.combineLatest)(y.map(function(E){return v.issueFridge.watch(E,{trustUncertainMemory:!0})}))}),bg(function(y){return(0,S.combineLatest)(y.map(function(E){return v.componentFridge.watch(String(null==E?void 0:E.snapshot[0].componentId),{trustUncertainMemory:!0}).pipe(R(function(I){return{issue:E,component:I}}))}))}));this.issueId$=this.issueDetailsBrain.id$;this.totalText$=
this.searchResults$.pipe(R(function(y){var E;return null!=(E=null==y?void 0:y.totalText)?E:""}));this.backNavigationLabel$=this.searchResults$.pipe(R(function(y){return(null==y?0:y.params.returnUrl)?"Back to previous search":"Go home"}));this.issueIndex$=(0,S.combineLatest)([this.searchResults$,this.issueId$]).pipe(R(function(y){var E=r(y);y=E.next().value;E=E.next().value;var I;return null!=(I=null==y?void 0:SM(y,Number(E)))?I:-1}));this.hasPreviousIssue$=(0,S.combineLatest)([this.searchResults$,
this.issueId$]).pipe(R(function(y){var E=r(y);y=E.next().value;E=E.next().value;var I;if(I=E)null==y?y=0:(E=SM(y,Number(E)),y=null==E||-1===E?!1:E>y.startIndex||1<y.params.page),I=y;return!!I}));this.hasNextIssue$=(0,S.combineLatest)([this.searchResults$,this.issueId$]).pipe(R(function(y){var E=r(y);y=E.next().value;E=E.next().value;var I;if(I=E)null==y?y=0:(E=SM(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(){Xlc(v)}));
this.subscriptions.add(this.issueDetailsBrain.id$.subscribe(function(y){v.issueId=y;Xlc(v)}));this.subscriptions.add(this.issues$.subscribe(function(y){var E=v.internalSearchResults$.value;E&&ZKb(E,y.filter(function(I){var N=I.component;return I.issue&&N}))}))};U(p6,wI);p6.\u0275dir=wI.\u0275dir;
var Rs=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)},Ts=function(a){var b=Hk(a.hasNextIssue$),c=Hk(a.issueIndex$);b&&c&&Ylc(a,c+1)},Ss=function(a){var b=Hk(a.hasPreviousIssue$),c=Hk(a.issueIndex$);b&&c&&Ylc(a,c-1)},Xlc=function(a){var b,c,d,e;bf(function(f){if(1==f.nextAddress)return b=function(){},cf(f,gLb(a.issuePagination).catch(b),2);
c=f.yieldResult;a.internalSearchResults$.next(null!=(d=c)?d:null);if(!c||!a.issueId)return f.return();e=SM(c,Number(a.issueId));return-1===e?f.jumpTo(0):cf(f,hLb(a.issuePagination,e).catch(b),0)})},Ylc=function(a,b){hLb(a.issuePagination,b).then(function(c){a.bLocation.url(a.paths.editIssue(c))},function(){GK(a.butterBar,"Can't find issue id for index '"+b+"'")})};p6.\u0275fac=function(a){return new (a||p6)(t(kO),t(TM),t(wL),t(NJ),t(fS),t(SK),t(TK),t(sL),t(DK))};
p6.\u0275prov=dc({token:p6,factory:p6.\u0275fac,providedIn:"root"});
var q6=function(a,b,c,d,e,f,h,k){wI.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 S.ReplaySubject(1);this.subscriptions.add(nJb(this.hotlistFridge).subscribe(function(v){v=r(v);for(var y=v.next();!y.done;y=v.next())q.addHotlist(Zlc(y.value));q.selectableHotlistsChanged$.next()}))};
U(q6,wI);q6.prototype.addHotlist=function(a){var b=this.hotlistMap[a.hotlistId];b&&ya(this.hotlists,b);this.hotlistMap[a.hotlistId]=a;this.hotlists.push(a);$lc(this,a)};var $lc=function(a,b){null!=a.issue&&null!=a.issue.hotlistId&&(b.selected=(a.issue.hotlistId||[]).includes(b.hotlistId))},amc=function(a){a.selectedHotlistIds=[[].concat(u(a.issue.hotlistId||[]))];for(var b=r(a.hotlists),c=b.next();!c.done;c=b.next())$lc(a,c.value)};
q6.prototype.createHotlist=function(a){var b=this,c=a.name,d=a.successCallback,e=a.errorCallback;eo(this.analytics,"baseIssue","createHotlist");FK(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(f){f=Zlc(f);FK(b.butterBar,"Hotlist "+c+" created successfully");b.addHotlist(f);b.appEvents.hotlistCreated.next();d(f);b.selectableHotlistsChanged$.next()}).catch(function(){e();b.selectableHotlistsChanged$.next()})};
q6.prototype.loadHotlist=function(a){var b=this,c=a.hotlistId,d=a.successCallback,e=a.errorCallback;if(this.hotlistMap[c])return $lc(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];bh(b.hotlistMap,c);ya(b.hotlists,f);e();b.selectableHotlistsChanged$.next()})};
q6.\u0275fac=function(a){return new (a||q6)(D(vH),D(QM),D(DK),D(kL),D(eL),D(IK),D(MK),D(qL))};q6.\u0275dir=w({type:q6,features:[ae]});var Zlc=function(a){a=Fi(a);a.selected=!1;return a};
var r6=function(){};r6.prototype.watch=function(a,b){b=void 0===b?document.documentElement:b;return(0,S.concat)((0,S.defer)(function(){return(0,S.of)(document.getElementById(a))}),KKa(b,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0}).pipe(R(function(){return document.getElementById(a)}))).pipe(rf(bl),Qf())};r6.\u0275fac=function(a){return new (a||r6)};r6.\u0275prov=dc({token:r6,factory:r6.\u0275fac,providedIn:"root"});
var s6=function(a){this.idWatch=a},bmc=function(a,b){var c=b.scrollableContainerId,d=void 0===b.scrollPadding?0:b.scrollPadding;return a.idWatch.watch(b.elementId,b.parentElement).pipe(Qf(),R(function(e){e.scrollIntoView();if(e=document.getElementById(c))e.scrollTop-=d}))};s6.\u0275fac=function(a){return new (a||s6)(t(r6))};s6.\u0275prov=dc({token:s6,factory:s6.\u0275fac,providedIn:"root"});
var t6=function(a,b,c,d){this.dynamicScrollIntoView=a;this.paths=b;this.routeParams=c;this.baseIssueReferenceResolver=d;this.destroyed$=new S.ReplaySubject(1);var e;this.issueId=Number(null!=(e=this.routeParams.issueId)?e:"0")};
t6.prototype.visit=function(a){a.event&&(a.event.preventDefault(),a.event.stopPropagation());a.issueId&&a.issueId!==this.issueId||!a.elementId?this.baseIssueReferenceResolver.visit(a):(bmc(this.dynamicScrollIntoView,{elementId:a.elementId,parentElement:document.body,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(cg(this.destroyed$)).subscribe(),history&&history.pushState(null,"",this.paths.editIssue(this.issueId)+"#"+a.elementId))};t6.prototype.ngOnDestroy=function(){this.destroyed$.next()};
t6.\u0275fac=function(a){return new (a||t6)(t(s6),t(TK),t($R),t(E5))};t6.\u0275prov=dc({token:t6,factory:t6.\u0275fac});
var cmc=function(a){Z.call(this,a)};U(cmc,Z);cmc.prototype.toObject=function(){var a=null!=this?{warningHeader:n(p(this,1)),warning:n(p(this,2)),isAllowed:n(To(this,3)),isExternalMove:n(To(this,4))}:void 0;return a};cmc.messageId="b.CompareComponentAccessResponse";
var u6=function(a){this.executor=a};u6.prototype.check=function(a,b,c){return this.executor.get({url:"action/compare_component_access/"+a+"/"+b,options:{params:{issueId:c}},responseConstructor:cmc}).then(Dra)};u6.\u0275fac=function(a){return new (a||u6)(t(oI))};u6.\u0275prov=dc({token:u6,factory:u6.\u0275fac,providedIn:"root"});
var v6=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},N5a=function(a,b,c){var d,e,f,h,k;return bf(function(q){switch(q.nextAddress){case 1:return b=String(b),gS(a.issueInteractionsTracking,b,{label:"changeComponent"}),c?cf(q,(0,S.firstValueFrom)(a.issueFridge.watch(b)),2):q.return();case 2:d=q.yieldResult;if(!d)return GK(a.butterBar,"Could not load issue "+b),q.return();e=d.snapshot[0].componentId;
f=c.componentId;return e===f?q.return():cf(q,a.compareComponentAccess.check(String(e),String(f),b),3);case 3:h=q.yieldResult;if(!h.warning){q.jumpTo(4);break}return cf(q,dmc(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))}})},dmc=function(a,b){return new Promise(function(c){NB(a.matDialogService.open(uT,{width:"580px",data:{response:b,callbacks:{allow:function(){c(!0)},cancel:function(){c(!1)}}}})).subscribe(function(){c(!1)})})};
v6.\u0275fac=function(a){return new (a||v6)(t(fS),t(wL),t(DK),t(u6),t(ZB),t(mS))};v6.\u0275prov=dc({token:v6,factory:v6.\u0275fac,providedIn:"root"});
var w6=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},emc=function(a,b){var c=b.issueId,d=b.newCommentId,e=b.newComment,f=b.newCommentFormattingMode,h,k;bf(function(q){switch(q.nextAddress){case 1:h=a.editIssueService.savingState(c);if(!e.trim())return GK(a.butterBar,"New comment cannot be empty."),q.return();jS(h,"commentEdit");FK(a.butterBar,
"Saving comment edit...",0);gS(a.issueInteractionsTracking,c,{label:1===d?"description":"comment"});Qt(q,2,3);return cf(q,a.issueCommentsService.update(c,d,e,f),5);case 5:FK(a.butterBar,"Comment edit successful.",4E3),1===d?BL(a.issueFetchResponseFridge,c):MJ(a.eventsForIssueFridge,c,function(v){v.events=Dta(v.events,d,{formattedComment:void 0,unlinkifiedComment:e,formattingMode:dl(f,Vm)})}),it(a.eventsForIssueFridge,c);case 3:Tt(q);kS(h,"commentEdit");Ut(q,0);break;case 2:k=St(q),KK(a.errorHandler,
k),q.jumpTo(3)}})};w6.\u0275fac=function(a){return new (a||w6)(t(IK),t(LL),t(zL),t(pO),t(fS),t(DK),t(mS))};w6.\u0275prov=dc({token:w6,factory:w6.\u0275fac,providedIn:"root"});
var fmc=function(a,b){this.displayText=a;this.value=b;this.enabled=!0;this.disabledReason=""};
var x6=function(a){this.matDialog=a};x6.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:wsa(c.formattingMode)}};this.dialog=this.matDialog.open(y6,a);return(0,S.firstValueFrom)(NB(this.dialog))};x6.\u0275fac=function(a){return new (a||x6)(t(ZB))};x6.\u0275prov=dc({token:x6,factory:x6.\u0275fac,providedIn:"root"});
var y6=function(a,b,c,d,e){wI.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(bZ(e,function(){return!Ei(f.newComment,f.origComment)},!1))};U(y6,wI);y6.\u0275dir=wI.\u0275dir;
y6.prototype.ngOnInit=function(){var a=this;this.dialogRef.keydownEvents().pipe(cg(this.destroyed$)).subscribe(function(b){"Escape"===b.key&&gmc(a)});this.dialogRef.backdropClick().pipe(cg(this.destroyed$)).subscribe(function(){gmc(a)})};var gmc=function(a){if(Ei(a.newComment,a.origComment)){var b;null==(b=a.dialogService.dialog)||b.close()}};y6.\u0275fac=function(a){return new (a||y6)(D(vH),D(XB),D(x6),D(MB),D(aZ))};
y6.\u0275cmp=w({type:y6,selectors:[["ng-component"]],features:[ae],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&&(F(0,"h1",0),O(1),G(),F(2,"section",1)(3,"p",2),O(4," Editing comments will not permanently remove old ones from database history. "),H(5,"br"),O(6," For deletion of PII or other sensitive content, please "),F(7,"a",3),O(8," file a support request."),G()(),F(9,"b-comment-draft",4),J("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)}}),G(),F(10,"b-markdown-toggle",5),J("change",function(c){return b.newComment.formattingMode=c}),G(),M(11,U1a,1,4,"b-live-preview",6),G(),F(12,"footer",7)(13,"button",8),O(14," Cancel "),G(),F(15,"button",9),O(16," Save "),G()());a&2&&(B(1),Fe("Editing Comment #",b.origComment.id," of Issue ",b.origComment.issueId,""),B(6),C("href",b.contentRemovalRequestLink,Md),B(2),C("content",b.newComment.text)("issueId",b.origComment.issueId)("audience",b.origComment.audience),
B(1),le("margin-bottom",(null==b.newComment?null:b.newComment.formattingMode)!==b.MARKDOWN),C("initialValue",b.origComment.formattingMode),B(1),C("ngIf",(null==b.newComment?null:b.newComment.formattingMode)===b.MARKDOWN),B(2),C("mat-dialog-close",void 0),B(2),C("mat-dialog-close",b.newComment)("disabled",!!Ei(b.newComment,b.origComment)))},dependencies:[$B,aC,bC,cC,Cx,BB,SW,RW,mX],encapsulation:2,changeDetection:0});
var z6=function(a,b,c,d,e,f,h,k,q,v,y,E,I,N,L,T,Y,ka,ha,ra){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=v;this.confirmationDialogService=y;this.issueComments=E;this.errorHandler=I;this.issueFetchResponseFridge=N;this.eventsForIssueFridge=L;this.componentFridge=T;this.commentFormatter=Y;this.confirmNoAccessService=ka;this.activeSession=
ha;this.appEvents=ra},pt=function(a,b,c){var d,e,f,h;return bf(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 cf(k,a.editCommentDialogService.show(Number(b),f,c),2)}h=k.yieldResult;if(null==h)return k.return();emc(a.issueCommentService,{issueId:b,newCommentId:h.id,newComment:h.text,newCommentFormattingMode:h.formattingMode});df(k)})},imc=function(a,
b,c){var d,e,f;return bf(function(h){if(1==h.nextAddress)return c?cf(h,hmc(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"},cf(h,(0,S.firstValueFrom)(NB(a.matDialogService.open(KX,{data:d}))),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,do_attribution:!0});eo(a.analytics,io.EDIT_ISSUE,
"copyComment",k.relations.join(",")||"NONE");a.domSafe.openInNewTab(q)}df(h)})},hmc=function(a,b){var c,d,e,f,h,k,q,v,y,E,I,N,L,T,Y;return bf(function(ka){if(1==ka.nextAddress)return cf(ka,(0,S.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 cf(ka,(0,S.firstValueFrom)(KJ(a.issueFridge,Ej([].concat(u(e),
u(h),u(q)),Dj))),3)}v=ka.yieldResult;y=new Map(v.map(function(ha){return[ha.issueId,ha]}));E=function(ha){return y.get(ha)};I=q.map(E).filter(bl).map(jmc("BLOCKED_BY"));N=h.map(E).filter(bl).map(jmc("BLOCKING"));L=e.map(E).filter(bl).map(jmc("DUPLICATE"));T=[].concat(u(I),u(N),u(L));Y=V1a(T);return ka.return(Y)})},lmc=function(a,b,c){var d;return bf(function(e){return 1==e.nextAddress?c?cf(e,pLb(a.confirmationDialogService,{title:"Restore comment # "+c+"?",content:Pn("Are you sure you want to restore this comment?")}),
2):e.return():(d=e.yieldResult)?cf(e,kmc(a,b,c),0):e.return()})},kmc=function(a,b,c){var d,e;return bf(function(f){switch(f.nextAddress){case 1:d=a.editIssueService.savingState(b);if(d.get("commentUndelete"))return f.return();FK(a.butterBar,"Restoring comment...",0);Qt(f,2,3);jS(d,"commentUndelete");return cf(f,a.issueComments.undelete(b,c),5);case 5:FK(a.butterBar,"Comment restored successfully.");case 3:Tt(f);kS(d,"commentUndelete");BL(a.issueFetchResponseFridge,b);it(a.eventsForIssueFridge,b);
Ut(f,0);break;case 2:e=St(f),FK(a.butterBar,"Comment restoration failed."),KK(a.errorHandler,e),f.jumpTo(3)}})},omc=function(a,b,c,d){var e,f,h,k;return bf(function(q){if(1==q.nextAddress){if(!c)return q.return();e=a.editIssueService.savingState(b);return e.get("commentDelete")?q.return():cf(q,mmc(a,b),2)}return 3!=q.nextAddress?(f=q.yieldResult,a.butterBar.dismiss(),cf(q,(0,S.firstValueFrom)(NB(a.matDialogService.open(W3,{width:"560px",data:{commentNumber:c,issueId:Number(b),deletionReasons:f}}))),
3)):(h=q.yieldResult)?cf(q,nmc(a,b,c,h.value,null!=(k=d)?k:""),0):q.jumpTo(0)})},nmc=function(a,b,c,d,e){var f,h;return bf(function(k){switch(k.nextAddress){case 1:f=a.editIssueService.savingState(b);if(f.get("commentDelete"))return k.return();Qt(k,2,3);FK(a.butterBar,"Deleting comment...",0);jS(f,"commentDelete");return cf(k,a.issueComments.delete(b,c,d,e),5);case 5:FK(a.butterBar,"Comment deleted. Deleted items may be restored within 30 days."),it(a.eventsForIssueFridge,b);case 3:Tt(k);kS(f,"commentDelete");
BL(a.issueFetchResponseFridge,b);Ut(k,0);break;case 2:h=St(k),FK(a.butterBar,"Comment deletion failed."),KK(a.errorHandler,h),k.jumpTo(3)}})},mmc=function(a,b){var c,d,e,f,h,k,q,v,y;return bf(function(E){switch(E.nextAddress){case 1:return cf(E,(0,S.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 cf(E,(0,S.firstValueFrom)(a.componentFridge.watch(e)),4);case 4:f=
E.yieldResult;case 3:return h=f,k=new fmc("Other","USER_REQUEST"),"DISABLED"===(null==(q=h)?void 0:q.commentEditState)&&(k.enabled=!1,k.disabledReason="comment editing must be enabled"),v=new fmc("Spam or Abuse","ABUSE"),"EXTERNAL_PUBLIC"!==a.issuePermissionService.accessLevel()&&(v.enabled=!1,v.disabledReason="available on Public components"),y=new fmc("Personally Identifiable Information","PII"),E.return([y,v,k])}})},pmc=function(a,b,c){var d,e;return bf(function(f){if(1==f.nextAddress)return d=
lO(a.issuePermissionService,Ql(c.userPerformingActionUser)),eo(a.analytics,io.RESTRICTED_CONTENT,"updateContentJudgement","comment"),cf(f,a.showContentJudgementDialog({severity:Cl(Dl(c.commentContentVerdict)),resourcePath:"issues/"+b+"/comments/"+c.commentNumber,hasAclToCreate:a.issuePermissionService.hasAclToAdmin()||d}),2);if(e=f.yieldResult)c.commentContentVerdict={piiVerdict:{severity:Bl(e.contentJudgement.getSeverity())}},BL(a.issueFetchResponseFridge,b),it(a.eventsForIssueFridge,b),yL(a.issueFridge,
[b],{markRead:!0});df(f)})};z6.prototype.showContentJudgementDialog=function(a){return(0,S.firstValueFrom)(NB(this.matDialogService.open(p5,{width:"500px",data:a})))};
var qmc=function(a,b,c){var d;return bf(function(e){if(1==e.nextAddress)return cf(e,(0,S.firstValueFrom)(NB(a.matDialogService.open(t5,{width:"500px",data:{resource:b,piiRetention:c}}))),2);d=e.yieldResult;return e.return(1===d)})},rmc=function(a,b,c,d){var e;bf(function(f){if(1==f.nextAddress){if(null==d)return f.return();eo(a.analytics,io.RESTRICTED_CONTENT,"updateContentJudgement","attachment");return cf(f,a.showContentJudgementDialog({severity:Cl(Dl(d.contentVerdict)),resourcePath:"issues/"+b+
"/attachments/"+d.attachmentId,hasAclToCreate:a.issuePermissionService.hasAclToAdmin()||c}),2)}if(e=f.yieldResult)d.contentVerdict={piiVerdict:{severity:Bl(e.contentJudgement.getSeverity())}},BL(a.issueFetchResponseFridge,b),it(a.eventsForIssueFridge,b),yL(a.issueFridge,[b],{markRead:!0});df(f)})};
z6.prototype.showDeleteAttachmentDialog=function(a,b){var c=this,d,e,f,h,k,q,v;bf(function(y){if(1==y.nextAddress){d=c.editIssueService.savingState(a);if(d.get("deleteAttachment")||!b.attachmentId)return y.return();e=S;f=e.firstValueFrom;h=c.matDialogService;k=h.open;q=X3;return cf(y,mmc(c,a),3)}return 2!=y.nextAddress?cf(y,f.call(e,NB(k.call(h,q,{width:"560px",data:{deletionReasons:y.yieldResult,attachmentId:b.attachmentId}}))),2):(v=y.yieldResult)?cf(y,gRb(c.editIssueService,a,b,v.value),0):y.jumpTo(0)})};
var smc=function(a,b){var c=b.issueId,d=b.componentId,e=b.comment,f,h,k;return bf(function(q){if(1==q.nextAddress){if("INTERNAL"!==a.issuePermissionService.accessLevel()||a.issuePermissionService.showImplicitAccessIndicator())return q.return(!0);Qt(q,2);return cf(q,(0,S.firstValueFrom)(x1b(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(zQb(a.confirmNoAccessService,{componentId:d,userEmails:h,relation:"reader",analyticsEventLabel:"mention"}));k=St(q);KK(a.errorHandler,k);return q.return(!1)})},tmc=function(a){var b;return bf(function(c){return(b=a.issuePermissionService.accessLevel())&&"INTERNAL"===b||a.issuePermissionService.hasAclToEdit()||a.activeSession.isInternalSession()||wH(a.activeSession)?c.return(!0):c.return(pLb(a.confirmationDialogService,{title:"",content:Pn("Commenting on this bug report means your email address will be shared with the team that works on this product.")}))})};
z6.prototype.submitCommentBox=function(a){var b=this,c,d,e,f,h,k;return bf(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()||!EQb(c)||d.get("comment"))return q.return();jS(d,"comment");f=function(){kS(d,"comment")};return cf(q,smc(b,{issueId:a,componentId:String(e.componentId),comment:c}),2)}if(3!=q.nextAddress)return h=q.yieldResult,h?cf(q,tmc(b),
3):(f(),q.return());k=q.yieldResult;if(!k)return f(),q.return();eo(b.analytics,io.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()}))})};
z6.prototype.showNewContentJudgementDialog=function(a){var b=this,c,d,e,f,h,k;return bf(function(q){if(1==q.nextAddress)return c=b.editIssueService.issueCommentDraft(a),d=c.judgementForNewContent(),h=null!=(f=null==(e=d)?void 0:e.getSeverity())?f:1,cf(q,b.showContentJudgementDialog({severity:h,contentJudgement:d,hasAclToCreate:!0}),2);(k=q.yieldResult)&&c.userDefinedJudgementForNewContent$.next(k.contentJudgement);df(q)})};
z6.\u0275fac=function(a){return new (a||z6)(t(mS),t(DK),t(mO),t(w6),t(x6),t(wL),t(ZB),t(TK),t(QM),t(tP),t(ZM),t(pO),t(IK),t(zL),t(LL),t(NJ),t(QW),t(WR),t(vH),t(MK))};z6.\u0275prov=dc({token:z6,factory:z6.\u0275fac,providedIn:"root"});var jmc=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 A6=function(a,b,c){this.editIssueService=a;this.matDialogService=b;this.analytics=c},$1a=function(a,b){var c,d,e,f,h,k,q;return bf(function(v){if(1==v.nextAddress)return b=String(b),eo(a.analytics,io.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(),cf(v,(0,S.firstValueFrom)(NB(a.matDialogService.open(KX,
{data:e}))),2);h=v.yieldResult;if(null==(k=h)||!k.length)return c.status=d,v.return();q=(new Date).getTime()-f;eo(a.analytics,io.ISSUE_PICKER,"apply","duplicate",q);TKb(a.analytics,q,"duplicate");eo(a.analytics,io.EDIT_ISSUE,"setCanonicalIssue");return v.return(aRb(a.editIssueService,b,String(h.map(function(y){return y.resourceId})[0])))})};A6.\u0275fac=function(a){return new (a||A6)(t(mS),t(ZB),t(QM))};A6.\u0275prov=dc({token:A6,factory:A6.\u0275fac,providedIn:"root"});
var B6=function(a,b,c,d,e,f){wI.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$=sM(this.paramsService,"issueId").pipe(Pf());this.contexts$=this.id$.pipe(bg(function(k){return bf(function(q){return null!=h.devopsGraph.getContainer()&&k?q.return(Plc(h.devopsGraph,Number(k)).then(function(v){return{issueId:k,availablePanels:v}})):q.return(void 0)})}),Zf({refCount:!1,bufferSize:1}));this.availablePanels$=this.contexts$.pipe(R(function(k){return k?
k.availablePanels:new Set}));this.shouldShowInsightsGraphMenu$=this.contexts$.pipe(R(function(k){return!!k&&0<k.availablePanels.size&&aj()&&null!=h.devopsGraph.getContainer()}));this.shouldShowInsightsGraphButton$=this.contexts$.pipe(R(function(k){return!!k&&0<k.availablePanels.size&&aj()&&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():GK(h.butterBar,"Could not open Insights Sidebar: no data for this issue. See go/g3g-guide-buganizer."):k.has(q)?h.openSidebar(q):GK(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(){umc(h,null)}))};U(B6,wI);B6.\u0275dir=wI.\u0275dir;B6.prototype.openSidebar=function(a){var b=this,c,d,e,f,h;return bf(function(k){c=Hk(b.contexts$);if(!c)return k.return();d=c;e=d.issueId;f=d.availablePanels;umc(b,null!=(h=a)?h:"default");("incidents"===a||!a&&1===f.size&&f.has("incidents"))&&MM.setBooleanAt("g3g.incidentSidebarOpened")(!0);return k.return(b.devopsGraph.openSidebar(Number(e),{panel:a}))})};
B6.prototype.track=function(a){eo(this.analytics,"sidebar",a)};var umc=function(a,b){a.router.navigate([],{relativeTo:a.route,queryParams:{showInsights:b},queryParamsHandling:"merge",replaceUrl:!0,preserveFragment:!0})};B6.\u0275fac=function(a){return new (a||B6)(t(m6),t(rM),t(QM),t(DK),t(Fk),t(dk))};B6.\u0275prov=dc({token:B6,factory:B6.\u0275fac,providedIn:"root"});
var u2a=function(a,b){return{"bv2-has-canonical":a,"bv2-archived":b}},vmc={parent:"me"},wmc={voted:!1,starred:!1,notificationSubscription:"UNKNOWN_SUBSCRIPTION",lastViewedTimeMicros:void 0},C6=function(a,b,c,d,e,f,h,k,q,v,y,E,I,N,L,T,Y,ka,ha,ra,Da,Ja,Ba,La,hb,fb,Tb,va,Ca,Ia,Xa,$a,jc,Va,Ya,Sa,vb,eb,yb,Ib,ec,Ac,se,id,Dd,eh,EK,Vl){q6.call(this,v,ka,ha,e,f,Ba,Tb,Va);var kc=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=T;this.routeParams=Y;this.draftStore=ra;this.constants=Da;this.pageTitle=Ja;this.domSafe=La;this.attachmentsMember=hb;this.matDialogService=fb;this.devopsGraph=va;this.routePerformance=Ca;this.refreshMonitor=Ia;this.issueDetailsBrain=Xa;this.permissionsFridge=$a;this.issueFetchResponseFridge=jc;this.eventsForIssueFridge=Ya;this.componentFridge=Sa;this.issueRelationshipService=vb;this.element=
eb;this.issueFridge=yb;this.issueArchiveService=Ib;this.editIssueService=ec;this.issueInteractionsTracking=Ac;this.currentSearchResults=se;this.issuePermissionService=id;this.issueRelationshipsFridge=Dd;this.issueMarkAsDuplicateDialogService=eh;this.issueInsightsSidebarService=EK;this.issueCommentDialogsService=Vl;this.enableG3cWidgetIntegration=xH(this.activeSession,"enableG3cWidgetIntegration");this.enableG3cFeatureHighlighting=xH(this.activeSession,"enableG3cFeatureHighlighting");this.enableWtdmMvpUi=
xH(this.activeSession,"enableWtdmMvpUi");this.codeMentionsEnabled=xH(this.activeSession,"enableCodeMentionsUi");this.sessionIsInternal=this.activeSession.isInternalSession();this.sessionIsExternal=this.activeSession.isExternalSession();this.newComponent=this.currentComponent=null;this.componentPathInfo$=(0,S.combineLatest)([this.issueDetailsBrain.componentId$,this.issueDetailsBrain.componentPathInfo$]).pipe(R(function(fc){var te=r(fc);fc=te.next().value;te=te.next().value;null!=te?fc=te:fc=fc?{componentPathId:[Number(fc)],
componentPathName:["Component "+fc],allCustomField:[]}:void 0;return fc}));this.frontendIsInternalOrPartner=this.sessionIsInternal||wH(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=AC(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$=xH(this.activeSession,"enableCodeMentionsUi")?Llc(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(R(function(fc){var te;return null!=
(te=null==fc?void 0:fc.totalChildCount)?te:0}));this.childIssues$=this.parentChildRelationships$.pipe(bg(function(fc){var te;return(0,S.combineLatest)(null!=(te=null==fc?void 0:fc.relatedChildren.map(function(Li){return kc.issueFridge.watch(Li.targetIssueId)}))?te:[])}),R(function(fc){return fc.filter(bl)}),R(function(fc){return fc.map(function(te){return xmc(te)})}));this.insightsFeatureTooltipPositions=[srb];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 FR;this.isShowAccessDeniedComponent=!1;this.issueMetadata=null;this.issue$=this.issueDetailsBrain.issueJs$;this.events$=this.issueDetailsBrain.eventsJs$;this.componentIds$=(0,S.combineLatest)([this.events$.pipe(R(Cta)),this.issue$.pipe(R(Gta))]).pipe(R(nLa),Pf(mLa));this.hotlistIds$=(0,S.combineLatest)([this.events$.pipe(R(Eta)),
this.issue$.pipe(R(Fta))]).pipe(R(nLa),Pf(mLa));this.userHotlists$=GGb(this.hotlistFridge,vmc).pipe(R(function(fc){return fc.results}));this.issueAndEventHotlists$=this.hotlistIds$.pipe(R(function(fc){return[].concat(u(fc))}),bg(function(fc){return KJ(kc.hotlistFridge,fc)}));this.hotlists$=(0,S.combineLatest)([this.issueAndEventHotlists$,this.userHotlists$]).pipe(R(function(fc){var te=r(fc);fc=te.next().value;te=te.next().value;return[].concat(u(fc),u(te))}),R(zBb(function(fc){return fc.hotlistId})),
R(function(fc){return fc.filter(bl)}),dg(function(fc){fc=r(fc);for(var te=fc.next();!te.done;te=fc.next())te=te.value,null!=te&&kc.addHotlist(Zlc(te))}),Zf({refCount:!0,bufferSize:1}),cg(this.destroyed$));this.onLoad=function(){ymc(kc)};this.UNKNOWN_SUBSCRIPTION="UNKNOWN_SUBSCRIPTION";this.viewInitialized=!1;this.HOTKEYS=vI;this.onIssueError=function(fc){403===fc.status&&kc.frontendIsInternal?zmc(kc):kc.errorHandler.errorHandler(null,fc)};this.onEventsError=function(fc){kc.errorHandler.errorHandler(null,
fc)};this.onChangeIssue=function(fc){kc.firstEvent=null==fc?void 0:fc.firstEvent;if(null!=fc){fc=(fc||{}).issue;var te=fc.aggregatedData,Li=qa((null==fc?void 0:fc.snapshot)||[]),Kn=Li.componentId||0,Tp;kc.userData=Object.assign({},null!=(Tp=fc.userData)?Tp:wmc);kc.aggregatedData=te;Amc(kc);kc.parentIssueIds=fc.parentIssueIds;Bmc(kc,Li);Cmc(kc,Kn)}};this.toggleStar=function(){null==kc.userData||kc.savingState.get("star")||(kc.userData.starred=!kc.userData.starred,kc.frontendIsInternalOrPartner||(Amc(kc),
kc.userData.voted=kc.userData.starred),jS(kc.savingState,"star"),rJb(kc.issueFridge,String(kc.issue.issueId),kc.userData.starred).pipe(Qf(),cg(kc.destroyed$)).subscribe(function(){kS(kc.savingState,"star");kc.refreshView()},function(fc){null!=kc.userData&&(kc.userData.starred=!kc.userData.starred);kS(kc.savingState,"star");kc.errorHandler.errorHandler(null,fc);kc.refreshView()}))};this.toggleStarDebounced=vC(this.toggleStar,1E3)};U(C6,q6);C6.\u0275dir=q6.\u0275dir;g=C6.prototype;
g.ngOnDestroy=function(){q6.prototype.ngOnDestroy.call(this);OQb(this.issueInteractionsTracking,String(this.issueId));this.devopsGraph.close();this.editIssueService.clear(String(this.issueId))};
g.ngOnInit=function(){var a=this;this.appEvents.issueViewed.next(Yk(this.issueId));NQb(this.issueInteractionsTracking,String(this.issueId));this.subscriptions.add(bZ(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!1));this.routerEvents.routeChangeSuccess.pipe(cg(this.destroyed$)).subscribe(function(){a.butterBar.dismiss()});(0,S.combineLatest)([this.events$,this.issue$]).pipe(Qf(),cg(this.destroyed$)).subscribe(this.onLoad);this.refreshMonitor.getObservable().pipe(cg(this.destroyed$)).subscribe(function(){a.refresh()});
this.issueCommentDraft.comment$.pipe(cg(this.destroyed$)).subscribe(function(b){b.hasContent()&&Dmc(a);a.refreshView()});this.eventsForIssueFridge.error$.pipe(cg(this.destroyed$)).subscribe(this.onEventsError);Xp("#comment1 .bv2-event-note-container",this.element.nativeElement).pipe(cg(this.destroyed$)).subscribe(function(){var b=function(){F7b(a.routePerformance,"issue-details-w-comments")};requestAnimationFrame(b);setTimeout(b)});this.userPreferencesManager.preferences$.pipe(cg(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.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.issue$.pipe(cg(this.destroyed$)).subscribe(this.onChangeIssue);
this.issueFetchResponseFridge.error$.pipe(cg(this.destroyed$)).subscribe(this.onIssueError);this.hotlists$.pipe(cg(this.destroyed$)).subscribe(function(){amc(a)});this.componentIds$.pipe(Qf(),cg(this.destroyed$)).subscribe(function(b){KJ(a.componentFridge,[].concat(u(b)))});this.events$.pipe(cg(this.destroyed$)).subscribe(function(b){a.events=b.slice(1);var c=a.activeSession.getCommentNumberLimit();Jta(b)>=c&&(a.commentLimitReached=!0)});this.editIssueService.editableIssue$(String(this.issueId)).pipe(cg(this.destroyed$)).subscribe(function(b){a.issue=
b;amc(a);a.refreshView()});this.issuePermissionService.issuePermissions$.pipe(cg(this.destroyed$)).subscribe(function(){a.refreshView()});this.selectableHotlistsChanged$.pipe(cg(this.destroyed$)).subscribe(function(){a.refreshView()})};g.ngAfterViewInit=function(){this.viewInitialized=!0};g.refreshView=function(){this.viewInitialized&&this.cdr.detectChanges()};g.onVote=function(){gS(this.issueInteractionsTracking,String(this.issueId))};
var t2a=function(a,b){b!==a.rightSidebarWidth&&ZEb(a.userPreferencesManager,{rightSidebarWidth:b}).pipe(cg(a.destroyed$)).subscribe(function(){a.rightSidebarWidth=b;a.refreshView()})},zmc=function(a){a.isShowAccessDeniedComponent=!0;a.issueService.getMetadata(a.issueId).then(function(b){a.issueMetadata=b;a.refreshView()})},Cmc=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?Fua(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},Mgb=function(a,b){var c=
Kj();jS(a.savingState,"parentIssues");var d=a.parentIssues;a.parentIssues=b.items;var e=a.parentIssues.map(function(h){return h.issueId}),f=function(h){JK(a.errorHandler,Fm(h));a.parentIssues=d;c.reject()};b.added?(FK(a.butterBar,"Saving...",0),a.issueRelationshipService.create(String(b.item.issueId),1,UL(new TL,a.issueId)).pipe(cg(a.destroyed$)).subscribe(function(){a.parentIssueIds=e.map(String);a.parentIssues=D6(a,e,function(){a.parentIssues=[].concat(u(a.parentIssues));FK(a.butterBar,'"'+b.item.issueId+
'" added to Parent Issues.',0);c.resolve()})},f)):(FK(a.butterBar,"Saving...",0),a.issueRelationshipService.delete(String(b.item.issueId),1,String(a.issueId)).pipe(cg(a.destroyed$)).subscribe(function(){a.parentIssueIds=e.map(String);a.parentIssues=D6(a,e,function(){a.parentIssues=[].concat(u(a.parentIssues));FK(a.butterBar,'"'+b.item.issueId+'" removed from Parent Issues.',0);c.resolve()})},f));return c.promise.then(function(){BL(a.issueFetchResponseFridge,a.issueId);it(a.eventsForIssueFridge,a.issueId)}).finally(function(){kS(a.savingState,
"parentIssues");a.refreshView()})},Pgb=function(a,b){var c=Kj();jS(a.savingState,"childIssues");FK(a.butterBar,"Saving...",0);var d=function(f){JK(a.errorHandler,Fm(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(),FK(a.butterBar,'"'+b.item.issueId+'" added to Child Issues.',0))}):a.issueRelationshipsFridge.unlinkFromParent(String(b.item.issueId),
String(a.issueId)).then(function(){c.resolve();FK(a.butterBar,'"'+b.item.issueId+'" removed from to Child Issues.',0)}).catch(d);else{var e;dKb(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();FK(a.butterBar,"Moved",0)}).catch(d)}return c.promise.then(function(){BL(a.issueFetchResponseFridge,a.issueId);
it(a.eventsForIssueFridge,a.issueId)}).finally(function(){kS(a.savingState,"childIssues");a.refreshView()})},Emc=function(a){bf(function(b){return a.enableWtdmMvpUi?cf(b,it(a.issueRelationshipsFridge,a.issueId),0):b.return()})};C6.prototype.mentionsLoadingStateTooltipText=function(a){return this.codeMentions.mentionsLoadingStateTooltipText(a)};C6.prototype.displayPackageNames=function(a){return this.codeMentions.displayPackageNames(a)};
var Bmc=function(a,b){a.blockedByIssues=D6(a,b.blockedByIssueId||[],function(){a.blockedByIssues=[].concat(u(a.blockedByIssues))});a.blockingIssues=D6(a,b.blockingIssueId||[],function(){a.blockingIssues=[].concat(u(a.blockingIssues))});a.duplicateIssues=D6(a,b.duplicateIssueId||[],function(){a.duplicateIssues=[].concat(u(a.duplicateIssues))});a.enableWtdmMvpUi&&(a.parentIssues=D6(a,a.parentIssueIds.map(Number),function(){a.parentIssues=[].concat(u(a.parentIssues))}))},D6=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});Fmc(a,b).finally(function(){null==c||c();a.refreshView()});return d},Fmc=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=Kj();KJ(a.issueFridge,c.map(function(f){return f.issueId})).pipe(Mf(function(){return(0,S.of)([])}),
Qf(),cg(a.destroyed$)).subscribe(function(f){f=new Map(f.map(function(v){return[v.issueId,v]}));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,xmc(q)):k.resolved=!0}a.refreshView();e.resolve()});return e.promise},xmc=function(a){var b=qa(a.snapshot);return{issueId:a.issueId,title:b.title,status:b.status,archived:a.isArchived,resolved:!0}},Vs=function(a){return a.filter(function(b){return!(b.resolved&&b.archived)}).length};g=C6.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){eo(this.analytics,io.EDIT_ISSUE,"quickAction ("+a+")",null==b?void 0:b.displayText);return this.editIssueService.performQuickAction(String(this.issueId),null!=b?b:void 0)};var Gt=function(a,b){a.savingState.get("title")||!a.issuePermissionService.hasAclToEdit()||b&&"Enter"!==b.key||NB(a.matDialogService.open(V3,{width:"560px",data:{title:a.issue.title}})).pipe(cg(a.destroyed$)).subscribe(function(c){void 0!==c&&c!==a.issue.title&&(a.issue.title=c,a.updateIssue())})};
C6.prototype.showFlagAsSpamDialog=function(){var a=this;NB(this.matDialogService.open(U3,{maxWidth:560})).pipe(cg(this.destroyed$)).subscribe(function(b){b&&eRb(a.editIssueService,String(a.issueId))})};C6.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)}};
C6.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&&ya(d.hotlistId,h)&&f.push(h))}var q=this.getRequestDataForUpdate();if(q&&q.actions){this.preUpdate(q);var v=this.issueApi.updateIssueHotlists(this.issueId,{addHotlistIds:e,removeHotlistIds:f,
hotlistIssue:{issueId:this.issueId,issue:this.issue}});v.then(function(){q&&(b.postUpdate(v,q),b.refreshView())})}};C6.prototype.submitArchivalState=function(a){return this.issueArchiveService.submitArchivalState(String(this.issueId),a)};
var Dmc=function(a){(0,S.forkJoin)([a.events$.pipe(Qf()),Xp("#AddCommentBox textarea",a.element.nativeElement)]).pipe(cg(a.destroyed$)).subscribe(function(){a.appEvents.scrollToCommentBox.next()})},Gmc=function(a,b,c,d){var e=Pi(b||[],new Set(a));if(0<e.length)return{issueId:c,relation:d,targetIds:e,actionType:"ADD"};a=Pi(a||[],new Set(b));return{issueId:c,relation:d,targetIds:a,actionType:"REMOVE"}},Igb=function(a,b){a.blockingIssues=b;Fmc(a,a.blockingIssues).then(function(){a.blockingIssues=[].concat(u(a.blockingIssues));
a.refreshView()});var c=a.issue.blockingIssueId||[];oQb(a.issue,a.blockingIssues.map(function(e){return e.issueId}));b=a.getRequestDataForUpdate();var d=null;b&&b.actions&&(a.preUpdate(b),c=Gmc(c,a.issue.blockingIssueId||[],a.issueId,"BLOCKING"),c=a.issueApi.relateIssue(a.issueId,c),d=a.postUpdate(c,b));return d},Ggb=function(a,b){a.blockedByIssues=b;Fmc(a,a.blockedByIssues).then(function(){a.blockedByIssues=[].concat(u(a.blockedByIssues));a.refreshView()});var c=a.issue.blockedByIssueId||[];pQb(a.issue,
a.blockedByIssues.map(function(e){return e.issueId}));b=a.getRequestDataForUpdate();var d=null;b&&b.actions&&(a.preUpdate(b),c=Gmc(c,a.issue.blockedByIssueId||[],a.issueId,"BLOCKED_BY"),c=a.issueApi.relateIssue(a.issueId,c),d=a.postUpdate(c,b));return d};C6.prototype.saveCommentDraft=function(){this.draftStore.$window.sessionStorage.setItem(xo(this.issue.issueId),this.comment.value)};C6.prototype.clearCanonicalIssue=function(){eo(this.analytics,io.EDIT_ISSUE,"click","unmarkDuplicate");this.editIssueService.clearCanonicalIssue(String(this.issueId))};
var s2a=function(a){var b=a.preferences.showFullHistory;eo(a.analytics,io.EDIT_ISSUE,"toggleShowFullHistory",String(b));a.userPreferencesManager.save({showFullHistory:b}).pipe(cg(a.destroyed$)).subscribe(function(){},function(){a.$log.warn("Failed to persist showFullHistory.")})};
C6.prototype.toggleAutoCcOnComment=function(){var a=this,b=!Fi(this.userPreferencesManager.preferencesSubject$.getValue()).autoCcOnComment;eo(this.analytics,io.EDIT_ISSUE,"toggleAutoCcOnComment",String(b));this.userPreferencesManager.save({autoCcOnComment:b}).pipe(cg(this.destroyed$)).subscribe(function(){},function(){a.$log.warn("Failed to persist autoCcOnComment.")})};
var Us=function(a,b){eo(a.analytics,io.EDIT_ISSUE,"toggleRelatedIssuesTray",(a.relatedIssuesTrayOpen!==b?"open":"close")+" "+b);a.relatedIssuesTrayOpen=a.relatedIssuesTrayOpen===b?null:b};C6.prototype.updateSubscription=function(a){var b=this;return bf(function(c){if(1==c.nextAddress)return cf(c,b.editIssueService.updateSubscription(String(b.issueId),a),2);eo(b.analytics,io.EDIT_ISSUE,"updateSubscription",a);b.refreshView();df(c)})};
C6.prototype.refresh=function(){this.relatedIssuesCache.removeAll();it(this.permissionsFridge,"issues/"+this.issueId);Emc(this);BL(this.issueFetchResponseFridge,this.issueId);it(this.eventsForIssueFridge,this.issueId);ymc(this);LJ(this.hotlistFridge,vmc);this.issueInteractionsTracking.trackNavigation("refresh")};
var ymc=function(a){var b=void 0===b?!0:b;a.activeSession.isAnonymous()?Promise.resolve():yL(a.issueFridge,[a.issueId],{markRead:b}).then(function(c){a.userData&&(a.userData.lastViewedTimeMicros=c);a.refreshView()})},Ht=function(a){return a.issuePermissionService.hasAclToEdit()?"Set issue title":""},whb=function(a){return a.issuePermissionService.hasAclToComment()&&!a.commentLimitReached&&!a.savingState.get("comment")},xhb=function(a){return a.issuePermissionService.hasAclToComment()&&EQb(a.comment)&&
!a.savingState.get("comment")};C6.prototype.submitCommentBox=function(){var a=this;return bf(function(b){if(1==b.nextAddress)return cf(b,a.issueCommentDialogsService.submitCommentBox(a.issueIdString),2);a.refreshView();df(b)})};var vhb=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=C6.prototype;g.trackSqueegeeClick=function(){this.codeMentions.trackSqueegeeClick()};g.requestIssueDeletion=function(){this.domSafe.openInNewTab(eZa())};g.showIndefiniteRetentionDialog=function(){var a=this;this.savingState.get("retention")||NB(this.matDialogService.open(T3,{maxWidth:560})).pipe(cg(this.destroyed$)).subscribe(function(b){b&&a.editIssueService.updateIssueRetention(String(a.issueId),"INDEFINITE")})};
g.showComponentRetentionDialog=function(){var a=this;this.savingState.get("retention")||NB(this.matDialogService.open(S3,{maxWidth:560})).pipe(cg(this.destroyed$)).subscribe(function(b){b&&a.editIssueService.updateIssueRetention(String(a.issueId),"COMPONENT_DEFAULT")})};g.showNewContentJudgementDialog=function(){var a=this;return bf(function(b){return cf(b,a.issueCommentDialogsService.showNewContentJudgementDialog(String(a.issueId)),0)})};
g.showNotificationSettings=function(a){this.appEvents.topBarEvents.openSettings.next({newTab:a.ctrlKey||a.metaKey,settingsTabName:"notifications"})};var zhb=function(a){var b,c=null!=(b=Hk(a.childIssuesCount$))?b:0;return a.parentIssueIds.length||c||null!=a.issue.type&&ZCb.has(a.issue.type)};
li.Object.defineProperties(C6.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}}});C6.\u0275fac=function(a){return new (a||C6)(D(sI),D(SK),D(TI),D(lK),D(kL),D(eL),D(l6),D(PK),D(TK),D(vH),D(bJ),D(zT),D(bL),D(VI),D(HK),D(aZ),D($R),D(QM),D(DK),D(IR),D(XH),D(fO),D(IK),D(tP),D(SR),D(ZB),D(MK),D(m6),D(X_),D(sL),D(kO),D(dM),D(zL),D(qL),D(LL),D(NJ),D(bM),D(pd),D(wL),D(o6),D(mS),D(fS),D(p6),D(mO),D(cM),D(A6),D(B6),D(z6))};
C6.\u0275cmp=w({type:C6,selectors:[["edit-issue-page"]],features:[Ge([sI,nS,{provide:EW,useClass:t6}]),ae],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&&(F(0,"h2",0),O(1),
G(),M(2,d2a,17,19,"div",1),F(3,"div",2),M(4,e2a,2,1,"div",3),M(5,v2a,45,62,"div",4),G());a&2&&(B(1),De("Issue ",b.issueId,""),B(1),C("ngIf",!b.isShowAccessDeniedComponent),B(1),ge("aria-busy",b.isLoading),B(1),C("ngIf",b.isShowAccessDeniedComponent),B(1),C("ngIf",b.issue&&!b.isShowAccessDeniedComponent))},encapsulation:2});
var Hmc=["savedSearchNameInput"],Ws=function(a){return{"bv2-edit-resource-readonly":a}},B2a=function(a){return{displayText:"Admins",values:a}},A2a=function(a){return[a]},E6=function(a,b,c,d,e,f,h,k,q,v,y,E,I,N,L,T,Y,ka){wI.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=v;this.userAccess=E;this.errorHandler=I;this.snackBar=N;this.confirmationDialog=L;this.cdr=
T;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=KT();this.flattenedAccessPolicy=KT();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 ra;null==(ra=ha.savedSearchName)||ra.nativeElement.focus()});this.subscriptions.add(bZ(y,function(){return ha.hasUnsavedChanges()},!1))};U(E6,wI);E6.\u0275dir=wI.\u0275dir;g=E6.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=LT(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 sK(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(){V_(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",Pn("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=MT(this.accessPolicyUnderEdit)}catch(c){b="An unknown problem occurred";c instanceof Error&&(b=c.message);GK(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=LT(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);GK(a.butterBar,Fm(c),0)}).finally(function(){a.isUpdating=!1})};g.delete=function(){var a=this;this.openConfirmationDialog("Delete saved search",Pn("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"});GIb(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()}})};E6.\u0275fac=function(a){return new (a||E6)(D($R),D(SK),D(gO),D(MN),D(TK),D(U_),D(DK),D(fO),D(vH),D(rP),D(aZ),D(rK),D(IK),D(AK),D(ZM),D(sI,2),D(JT),D(MK))};
E6.\u0275cmp=w({type:E6,selectors:[["b-edit-saved-search"]],viewQuery:function(a,b){a&1&&(Bf(Hmc,5),Bf(bX,5,pd));if(a&2){var c;Af(c=Df())&&(b.savedSearchName=c.first);Af(c=Df())&&(b.tabs=c)}},features:[Ge([sI]),ae],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&&(F(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),J("click",function(){return b.back()}),H(4,"mat-icon",4),G(),M(5,w2a,2,1,"button",5),G()()(),F(6,"div",6),M(7,x2a,
4,0,"ng-container",7),M(8,C2a,51,38,"ng-container",7),G());a&2&&(B(5),C("ngIf",b.isAdmin),B(2),C("ngIf",!b.isLoading&&!b.savedSearch),B(1),C("ngIf",!b.isLoading&&b.savedSearch))},dependencies:[Fx,Cx,sF,BB,dX,bX,iZ,dF,Jg,ly,Cy,ry,YY],encapsulation:2});
var Imc=function(a){Z.call(this,a)};U(Imc,Z);g=Imc.prototype;g.getAuthor=function(){return m(this,Sl,1)};g.getTimestamp=function(){return m(this,sj,2)};g.setTimestamp=function(a){return Bb(this,2,a)};g.hasTimestamp=function(){return lj(this,2)};g.getAdd=function(){return m(this,sY,3)};g.getRemove=function(){return m(this,sY,4)};g.getAddMask=function(){return m(this,gH,5)};g.getRemoveMask=function(){return m(this,gH,6)};g.toObject=function(){return Jmc(void 0,this)};
var Jmc=function(a,b){if(null!=b){var c={author:rJ(a,b.getAuthor()),timestamp:Vu(a,b.getTimestamp()),add:U3b(a,b.getAdd()),remove:U3b(a,b.getRemove()),addMask:hH(a,b.getAddMask()),removeMask:hH(a,b.getRemoveMask())};a&&(c.$jspbMessageInstance=b);return c}};
var F6=function(a){Z.call(this,a,-1,Kmc)};U(F6,Z);F6.prototype.getUpdatesList=function(){return rb(this,Imc,1)};var Kmc=[1];F6.prototype.toObject=function(){var a=null!=this?{updatesList:Cb(this.getUpdatesList(),Jmc)}:void 0;return a};F6.messageId="b.SloHistory";
var G6=function(a,b){this.executor=b;this.sloHistories=a.get("slo_histories-second-level-cache")||a.create("slo_histories-second-level-cache",{capacity:25})};G6.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:F6}))};G6.prototype.getUncached=function(a){this.invalidateCache(a);return this.get(a)};G6.prototype.invalidateCache=function(a){this.sloHistories.remove(String(a))};
G6.\u0275fac=function(a){return new (a||G6)(t(bL),t(oI))};G6.\u0275prov=dc({token:G6,factory:G6.\u0275fac,providedIn:"root"});
var H6=function(a,b,c,d,e,f,h,k,q,v,y,E,I,N,L,T,Y,ka,ha,ra){wI.call(this);var Da=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=T;this.matDialogService=Y;this.analytics=ka;this.confirmationDialogService=ha;this.appEvents=ra;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(Da.validity).some(function(Ja){return!Ja})};this.editableAccessPolicy=KT();this.flattenedAccessPolicy=KT();this.subscriptions.add(bZ(v,function(){return Da.hasUnsavedChanges()},!1));a=this.routeParams.sloId;this.resourceName=go("SLO",Ki(a));if(this.sloEnabled=k.isInternalSession())this.pageTitle.setTitle("SLO Overview"),Lmc(this,a),this.loadUserAccess_(a),
this.loadAccessPolicy_(a),Mmc(this,a);this.alertState={getValue:function(){return Da.editableCopy?1===X(Da.editableCopy,9,0):!1},getSavedValue:function(){return Da.slo?1===X(Da.slo,9,0):!1},setValue:function(Ja){Da.editableCopy&&l(Da.editableCopy,9,Ja?1:0)}};this.currentUserEmail=k.getUserEmail()};U(H6,wI);H6.\u0275dir=wI.\u0275dir;
H6.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)};H6.prototype.ngOnInit=function(){"access"===this.bLocation.hash()&&(this.selectedTabIndex=1)};H6.prototype.updateCollection=function(a){this.editableCopy&&Ab(this.editableCopy,6,a)};
var Lmc=function(a,b){a.isLoading=!0;a.sloApi.get(b).then(function(c){a.slo=c;Xs(a.slo)||Ab(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})};
H6.prototype.loadAccessPolicy_=function(a){var b=this;this.accessPolicyApi.get("SLO",Number(a)).then(function(c){b.flattenedAccessPolicy=LT(c);b.editableAccessPolicy=Fi(b.flattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)})};var Nmc=function(a,b){return a.sloUpdatesApi.get(b).then(function(c){a.historyDiffs=c.getUpdatesList().map(function(d){return n7b(a.sloUpdatesService,d)})}).catch(function(c){a.errorHandler.errorHandler(null,c)})};g=H6.prototype;
g.loadUserAccess_=function(a){var b=this;sK(this.userAccess,"admin",go("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&&Gaa(a.toArrayInternal(),b.toArrayInternal()))};
g.hasUnsavedAccessPolicyChanges=function(){return!Ei(this.flattenedAccessPolicy,this.editableAccessPolicy)};
g.saveMetadata=function(){var a=this;Omc(Xs(this.slo),Xs(this.editableCopy))?Pmc(this):this.confirmationDialogService.open({title:"Save SLO changes?",content:Sn(Pn("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."),Rn("br"),Rn("br"),Pn("Please combine changes into as few updates as possible.")),onConfirm:function(){Pmc(a)},onDismiss:uC})};
var G2a=function(a,b){if(!a.hasUnsavedMetadataChanges()){var c=function(){a.editableCopy.setIsArchived(b);Pmc(a)};b?a.confirmationDialogService.open({title:"Archive SLO?",content:Pn("Archiving this SLO will prevent new usages of the SLO, and will hide the SLO from most searches."),onConfirm:c,onDismiss:uC}):c()}},Omc=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,jm,3),e=m(e,jm,
3),f=null===d&&null===e||null!==d&&null!==e&&d.getSeconds()===e.getSeconds();if(!f)return!1}return!0},Pmc=function(a){var b=a.editableCopy;FK(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.';Omc(Xs(a.slo),Xs(a.editableCopy))||(d+=" Propagating this change may take several hours.");FK(a.butterBar,d);a.slo=c;Xs(a.slo)||Ab(a.slo,6,[]);a.editableCopy=c.clone();a.sloUpdatesApi.invalidateCache(a.slo.getSloId());
eo(a.analytics,io.EDIT_SLO,"update")}).catch(function(c){a.errorHandler.errorHandler(null,c)}).finally(function(){a.isUpdating_=!1})};
H6.prototype.saveAccessPolicy=function(){var a=this;Qmc(this)?this.confirmationDialogService.open({title:"Change SLO admins",content:Pn("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:uC}):this.doSaveAccessPolicy_()};
H6.prototype.doSaveAccessPolicy_=function(){var a=this;try{var b=MT(this.editableAccessPolicy)}catch(c){b="An unknown problem occurred";c instanceof Error&&(b=c.message);GK(this.butterBar,b);return}this.isUpdating_=!0;FK(this.butterBar,"Saving access settings...");this.accessPolicyApi.update("SLO",this.slo.getSloId(),b).then(function(c){FK(a.butterBar,"Access settings saved.");a.flattenedAccessPolicy=LT(c);a.editableAccessPolicy=Fi(a.flattenedAccessPolicy);a.loadUserAccess_(a.slo.getSloId());eo(a.analytics,
io.EDIT_SLO,"updateAccessPolicy")},function(c){GK(a.butterBar,Fm(c),0)}).finally(function(){a.isUpdating_=!1})};
var Mmc=function(a,b){Nmc(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"===Ql(c.author)&&(a.isImportedFromBugScope=!0);d.author&&"buganizer-system@google.com"===Ql(d.author)&&(a.isUneditedFromBugScope=!0)}})},Qmc=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=H6.prototype;g.revertMetadataChanges=function(){var a=this;if(Omc(Xs(this.slo),Xs(this.editableCopy))){var b;this.editableCopy=null==(b=this.slo)?void 0:b.clone()}else this.confirmationDialogService.open({title:"Revert SLO changes?",content:Sn(Pn("Revert all changes to this SLO?")),onConfirm:function(){var c;a.editableCopy=null==(c=a.slo)?void 0:c.clone()},onDismiss:uC})};
g.revertAccessPolicyChanges=function(){this.editableAccessPolicy=Fi(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};g.isSaving=function(){return this.isUpdating_};g.back=function(){V_(this.appHistory)};g.isEditDisabled=function(){return!this.editableCopy||this.isSaving()||!this.isAdmin()};g.isAdmin=function(){return this.isAdmin_};
g.showUpdateHistoryModal=function(){var a=this;Nmc(this,this.slo.getSloId()).then(function(){a.matDialogService.open(y5,{width:"600px",data:{updateDiffs:a.historyDiffs}});eo(a.analytics,io.UPDATE_HISTORY_MODAL,"open");eo(a.analytics,io.EDIT_SLO,"viewHistory")})};H6.\u0275fac=function(a){return new (a||H6)(D($R),D(JT),D(SK),D(TK),D(U_),D(DK),D(fO),D(vH),D(rP),D(aZ),D(rK),D(gO),D(vY),D(G6),D(N_),D(IK),D(ZB),D(QM),D(ZM),D(MK))};
H6.\u0275cmp=w({type:H6,selectors:[["edit-slo-page"]],viewQuery:function(a,b){a&1&&Bf(bX,5,pd);if(a&2){var c;Af(c=Df())&&(b.tabs=c)}},features:[ae],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&&(F(0,"div",0)(1,"div",1)(2,"b-button",2),J("onAction",function(){return b.back()}),H(3,"b-icon",3),G()()(),F(4,"div",4),M(5,D2a,2,0,"div",5),M(6,L2a,55,31,"div",6),G());a&2&&(B(5),C("ngIf",b.isLoading),B(1),C("ngIf",!b.isLoading&&b.slo&&b.slo.getSloId()&&b.editableCopy))},dependencies:[wO,Cx,sy,Jg,ly,my,Cy,ry,py,gZ,zH,dX,bX,YY,tQ,G_,kN],encapsulation:2});
var I6=function(){this.issue=null;this.isDataLoaded=!1};I6.prototype.ngOnChanges=function(){var a;this.assignee=Gua(Ql(null==(a=this.issue)?void 0:a.snapshot[0].assigneeUser)||void 0);this.isDataLoaded=null!==this.issue};I6.\u0275fac=function(a){return new (a||I6)};
I6.\u0275cmp=w({type:I6,selectors:[["b-issue-assignee-cell"]],inputs:{issue:"issue"},features:[Cc],decls:4,vars:3,consts:[[3,"isReady"],[3,"email",4,"ngIf","ngIfElse"],["noData",""],[3,"email"]],template:function(a,b){a&1&&(F(0,"b-async-data-placeholder",0),M(1,M2a,2,2,"b-person-hovercard",1),M(2,N2a,1,0,"ng-template",null,2,Jf),G());if(a&2){var c=Ce(3);C("isReady",b.isDataLoaded);B(1);C("ngIf",b.assignee)("ngIfElse",c)}},dependencies:[z2,Cx,xR],encapsulation:2,changeDetection:0});
var J6=function(){this.isDataLoaded=!1};J6.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};J6.\u0275fac=function(a){return new (a||J6)};
J6.\u0275cmp=w({type:J6,selectors:[["b-issue-created-time-cell"]],inputs:{issue:"issue"},features:[Cc],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&&(F(0,"b-async-data-placeholder",0),M(1,O2a,1,1,"b-formatted-date-time",1),G(),M(2,P2a,1,0,"ng-template",null,2,Jf));if(a&2){var c=Ce(3);C("isReady",b.isDataLoaded);B(1);C("ngIf",b.createdTime)("ngIfElse",c)}},dependencies:[z2,
Cx,JP],encapsulation:2,changeDetection:0});
var K6=function(){};K6.prototype.ngOnInit=function(){};K6.\u0275fac=function(a){return new (a||K6)};K6.\u0275cmp=w({type:K6,selectors:[["b-issue-id-cell"]],inputs:{id:"id"},decls:2,vars:2,consts:[[3,"isReady"]],template:function(a,b){a&1&&(F(0,"b-async-data-placeholder",0),O(1),G());a&2&&(C("isReady",!!b.id),B(1),De(" ",b.id," "))},dependencies:[z2],encapsulation:2,changeDetection:0});
var L6=function(){this.issue=null;this.isDataLoaded=!1};L6.prototype.ngOnChanges=function(){var a;this.reporter=Gua(Ql(null==(a=this.issue)?void 0:a.snapshot[0].reporterUser)||void 0);this.isDataLoaded=null!==this.issue};L6.\u0275fac=function(a){return new (a||L6)};
L6.\u0275cmp=w({type:L6,selectors:[["b-issue-reporter-cell"]],inputs:{issue:"issue"},features:[Cc],decls:4,vars:3,consts:[[3,"isReady"],[3,"email",4,"ngIf","ngIfElse"],["noData",""],[3,"email"]],template:function(a,b){a&1&&(F(0,"b-async-data-placeholder",0),M(1,Q2a,2,2,"b-person-hovercard",1),M(2,R2a,1,0,"ng-template",null,2,Jf),G());if(a&2){var c=Ce(3);C("isReady",b.isDataLoaded);B(1);C("ngIf",b.reporter)("ngIfElse",c)}},dependencies:[z2,Cx,xR],encapsulation:2,changeDetection:0});
var M6=function(){this.IssueStatus_strToTag=Yl;this.STATUS_FULL_TEXT=JL;this.STATUS_TERSE=FL;this.issue=null;this.isDataLoaded=!1};M6.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};M6.\u0275fac=function(a){return new (a||M6)};
M6.\u0275cmp=w({type:M6,selectors:[["b-issue-status-cell"]],inputs:{issue:"issue"},features:[Cc],decls:4,vars:3,consts:[[3,"isReady"],[3,"class","title",4,"ngIf","ngIfElse"],["noData",""],[3,"title"]],template:function(a,b){a&1&&(F(0,"b-async-data-placeholder",0),M(1,S2a,2,5,"div",1),M(2,T2a,1,0,"ng-template",null,2,Jf),G());if(a&2){var c=Ce(3);C("isReady",b.isDataLoaded);B(1);C("ngIf",b.IssueStatus_strToTag[b.status])("ngIfElse",c)}},dependencies:[z2,Cx],encapsulation:2,changeDetection:0});
var N6=function(){this.issue=null;this.componentId=this.teamId="";this.isDataLoaded=!1};N6.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};N6.\u0275fac=function(a){return new (a||N6)};
N6.\u0275cmp=w({type:N6,selectors:[["b-issue-team-cell"]],inputs:{issue:"issue"},features:[Cc],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&&(F(0,"b-async-data-placeholder",0),M(1,U2a,1,3,"b-team-display",1),M(2,V2a,1,0,"ng-template",null,2,Jf),G());if(a&2){var c=Ce(3);C("isReady",b.isDataLoaded);
B(1);C("ngIf",b.teamId)("ngIfElse",c)}},dependencies:[z2,Cx,jV],encapsulation:2,changeDetection:0});
var O6=function(){this.issue=null;this.title="";this.isDataLoaded=!1;this.link={path:""}};O6.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=nn(null!=(d=null==(c=this.issue)?void 0:c.issueId)?d:"")};O6.\u0275fac=function(a){return new (a||O6)};
O6.\u0275cmp=w({type:O6,selectors:[["b-issue-title-cell"]],hostAttrs:[1,"flex-kids-x"],inputs:{issue:"issue"},features:[Cc],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&&(F(0,"b-async-data-placeholder",0)(1,"a",1),J("keydown",function(c){"Enter"===c.key&&c.stopPropagation()})("click",function(c){return c.stopPropagation()}),O(2),G()());a&2&&(C("isReady",b.isDataLoaded),B(1),C("routerLinkObj",
b.link),B(1),Ee(b.title||"--"))},dependencies:[z2,pT],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 P6=function(){this.type=this.issue=null;this.isDataLoaded=!1};P6.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};P6.\u0275fac=function(a){return new (a||P6)};
P6.\u0275cmp=w({type:P6,selectors:[["b-issue-type-cell"]],inputs:{issue:"issue"},features:[Cc],decls:4,vars:3,consts:[[1,"nowrap",3,"isReady"],[4,"ngIf","ngIfElse"],["noData",""]],template:function(a,b){a&1&&(F(0,"b-async-data-placeholder",0),M(1,W2a,3,3,"ng-container",1),M(2,X2a,1,0,"ng-template",null,2,Jf),G());if(a&2){var c=Ce(3);C("isReady",b.isDataLoaded);B(1);C("ngIf",b.type)("ngIfElse",c)}},dependencies:[z2,Cx,xM],encapsulation:2,changeDetection:0});
var Rmc=function(a,b){qA.call(this,a);this.directives=a;this.isEqual=b};U(Rmc,qA);var Ys=function(a,b){var c;return bf(function(d){if(1==d.nextAddress)return cf(d,(0,S.firstValueFrom)(a.directives.changes.pipe(ag(a.directives.toArray()),R(function(e){return e.find(function(f){return a.isEqual(f.row,b)})}),rf(Boolean),tf(3E3))),2);c=d.yieldResult;mA(a,c);df(d)})};
var Q6=function(a,b){this.elementRef=a;this.interactivityHelper=b};Q6.prototype.ngOnInit=function(){};Q6.prototype.focus=function(){var a=K5b(this.interactivityHelper,this.elementRef.nativeElement,!0);a&&a.focus()};li.Object.defineProperties(Q6.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return this.elementRef.nativeElement}}});Q6.\u0275fac=function(a){return new (a||Q6)(D(pd),D(WZ))};Q6.\u0275dir=w({type:Q6,selectors:[["tr","row",""]],inputs:{row:"row"}});
var Smc=Eh("indicator",[Hh("active-asc, asc",Gh({transform:"translateY(0px)"})),Hh("active-desc, desc",Gh({transform:"translateY(10px)"})),Ih("active-asc <=> active-desc",Fh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),Tmc=Eh("leftPointer",[Hh("active-asc, asc",Gh({transform:"rotate(-45deg)"})),Hh("active-desc, desc",Gh({transform:"rotate(45deg)"})),Ih("active-asc <=> active-desc",Fh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),Umc=Eh("rightPointer",[Hh("active-asc, asc",Gh({transform:"rotate(45deg)"})),Hh("active-desc, desc",
Gh({transform:"rotate(-45deg)"})),Ih("active-asc <=> active-desc",Fh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),Vmc=Eh("arrowOpacity",[Hh("desc-to-active, asc-to-active, active",Gh({opacity:1})),Hh("desc-to-hint, asc-to-hint, hint",Gh({opacity:.54})),Hh("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Gh({opacity:0})),Ih("* => asc, * => desc, * => active, * => hint, * => void",Fh("0ms")),Ih("* <=> *",Fh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),Wmc=Eh("arrowPosition",[Ih("* => desc-to-hint, * => desc-to-active",
Fh("225ms cubic-bezier(0.4,0.0,0.2,1)",{type:5,steps:[Gh({transform:"translateY(-25%)"}),Gh({transform:"translateY(0)"})]})),Ih("* => hint-to-desc, * => active-to-desc",Fh("225ms cubic-bezier(0.4,0.0,0.2,1)",{type:5,steps:[Gh({transform:"translateY(0)"}),Gh({transform:"translateY(25%)"})]})),Ih("* => asc-to-hint, * => asc-to-active",Fh("225ms cubic-bezier(0.4,0.0,0.2,1)",{type:5,steps:[Gh({transform:"translateY(25%)"}),Gh({transform:"translateY(0)"})]})),Ih("* => hint-to-asc, * => active-to-asc",
Fh("225ms cubic-bezier(0.4,0.0,0.2,1)",{type:5,steps:[Gh({transform:"translateY(0)"}),Gh({transform:"translateY(-25%)"})]})),Hh("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Gh({transform:"translateY(0)"})),Hh("hint-to-desc, active-to-desc, desc",Gh({transform:"translateY(-25%)"})),Hh("hint-to-asc, active-to-asc, asc",Gh({transform:"translateY(25%)"}))]),Xmc=Eh("allowChildren",[Ih("* <=> *",[Kh("@*",Jh())])]);
var R6=function(){this.changes=new S.Subject};R6.\u0275fac=function(a){return new (a||R6)};R6.\u0275prov=dc({token:R6,factory:R6.\u0275fac,providedIn:"root"});var Ymc={provide:R6,deps:[[new Nv,new Ov,R6]],useFactory:function(a){return a||new R6}};
var Zmc=new ld("MAT_SORT_DEFAULT_OPTIONS"),$mc=nla(oi(function(){})),S6=function(a){var b=$mc.call(this)||this;b._defaultOptions=a;b.sortables=new Map;b._stateChanges=new S.Subject;b.start="asc";b._direction="";b.sortChange=new Rw;return b};U(S6,$mc);g=S6.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()};li.Object.defineProperties(S6.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=Vg(a)}}});S6.\u0275fac=function(a){return new (a||S6)(D(Zmc,8))};
S6.\u0275dir=w({type:S6,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:[ae,Cc]});
var anc=oi(function(){}),T6=function(a,b,c,d,e,f,h,k){var q=anc.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(T6,anc);g=T6.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)||spb(b,this._sortButton,this._sortActionDescription);var c;null==(c=this._ariaDescriber)||rpb(c,this._sortButton,a)}this._sortActionDescription=a};
g._handleStateChanges=function(){var a=this;this._rerenderSubscription=(0,S.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()})};li.Object.defineProperties(T6.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=Vg(a)}}});
T6.\u0275fac=function(a){return new (a||T6)(D(R6),D(vx),D(S6,8),D("MAT_SORT_HEADER_COLUMN_DEF",8),D(Sz),D(pd),D(bA,8),D(Zmc,8))};
T6.\u0275cmp=w({type:T6,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(a,b){a&1&&J("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&&(ge("aria-sort",b._getAriaSortAttribute()),le("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:[ae],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&&(xe(),F(0,"div",0)(1,"div",1),ye(2),G(),M(3,Y2a,6,6,"div",2),G());a&2&&(le("mat-sort-header-sorted",b._isSorted())("mat-sort-header-position-before","before"===b.arrowPosition),ge("tabindex",b._isDisabled()?null:0)("role",b._isDisabled()?null:"button"),B(3),C("ngIf",b._renderArrow()))},dependencies:[Cx],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:[Smc,Tmc,Umc,Vmc,Wmc,Xmc]},changeDetection:0});
var bnc="focus-indicator title type team id assignee status menu".split(" "),U6=function(a,b,c){wI.call(this);var d=this;this.issueFridge=a;this.router=b;this.domSafe=c;this.issueIds$=new S.BehaviorSubject([]);this.menuItemFactory=function(){return[]};this.tableColumns=bnc.slice();this.activeSort$=new S.BehaviorSubject(void 0);this.rows$=this.issueIds$.pipe(Ik(),R(function(e){return e.map(function(f){return{id:f,issue$:d.issueFridge.watch(f)}})}),bg(function(e){return(0,S.combineLatest)([d.activeSort$].concat(u(e.map(function(f){return f.issue$.pipe(ag(null))})))).pipe(R(function(f){var h=
r(f);f=h.next().value;h=qf(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:cnc(d,e,f)}))}),Zf({refCount:!0,bufferSize:1}));this.trackBy=function(e,f){return f.id};this.correctedDisplayedRows=new Ef;this.getIssue=function(e){return Hk(e.issue$)}};U(U6,wI);U6.\u0275dir=wI.\u0275dir;g=U6.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,S.combineLatest)([this.rows$,this.displayedRows.changes.pipe(ag(void 0))]).pipe(cg(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);zf(a.correctedDisplayedRows)});this.focusManager=lA(new Rmc(this.correctedDisplayedRows,u3a))};
g.navigateToIssue=function(a,b){!b||a.defaultPrevented||"mouseup"===a.type&&a instanceof MouseEvent&&1!==a.button||"A"===a.target.tagName||(b=kn(b),a.ctrlKey||a.metaKey||a instanceof MouseEvent&&1===a.button?this.domSafe.openInNewTab(b):a&&a.shiftKey?uP(this.domSafe,b):ft(this.router,b))};g.onRowKeydown=function(a,b){this.focusManager.onKeydown(b)};
var cnc=function(a,b,c){if(!c||!c.direction)return b;switch(c.active){case "status":return Mta(a.getIssue)(b,c.direction);case "assignee":return Nta(a.getIssue)(b,c.direction);case "reporter":return Pta(a.getIssue)(b,c.direction);case "type":return Ota(a.getIssue)(b,c.direction);case "createdTime":return Qta(a.getIssue)(b,c.direction);default:return b}};li.Object.defineProperties(U6.prototype,{issueIds:{configurable:!0,enumerable:!0,set:function(a){this.issueIds$.next(null!=a?a:[])}}});
U6.\u0275fac=function(a){return new (a||U6)(D(wL),D(Fk),D(tP))};
U6.\u0275cmp=w({type:U6,selectors:[["b-issues-table"]],viewQuery:function(a,b){a&1&&Bf(Q6,5);if(a&2){var c;Af(c=Df())&&(b.displayedRows=c)}},inputs:{issueIds:"issueIds",menuItemFactory:"menuItemFactory",initialSort:"initialSort",tableColumns:"tableColumns"},features:[ae],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&&(F(0,"table",0),J("matSortChange",function(e){b.activeSort$.next(e)}),P(1,"async"),P(2,"async"),qe(3,1),M(4,
Z2a,1,0,"th",2),M(5,$2a,1,0,"td",3),re(),qe(6,4),M(7,a3a,2,0,"th",2),M(8,b3a,2,1,"td",5),re(),qe(9,6),M(10,c3a,2,0,"th",2),M(11,d3a,3,3,"td",5),re(),qe(12,7),M(13,e3a,2,0,"th",8),M(14,f3a,3,3,"td",5),re(),qe(15,9),M(16,g3a,2,0,"th",10),M(17,h3a,3,3,"td",5),re(),qe(18,11),M(19,i3a,2,0,"th",12),M(20,j3a,3,3,"td",5),re(),qe(21,13),M(22,k3a,2,0,"th",14),M(23,l3a,3,3,"td",5),re(),qe(24,15),M(25,m3a,2,0,"th",2),M(26,n3a,3,3,"td",5),re(),qe(27,16),M(28,o3a,2,0,"th",17),M(29,p3a,3,3,"td",5),re(),qe(30,18),
M(31,q3a,1,0,"th",2),M(32,r3a,2,1,"td",5),re(),M(33,s3a,1,0,"tr",19),M(34,t3a,1,1,"tr",20),G());if(a&2){var c,d;C("dataSource",b.rows$)("trackBy",b.trackBy)("matSortActive",null!==(c=null==(c=Q(1,6,b.activeSort$))?null:c.active)&&void 0!==c?c:"")("matSortDirection",null!==(d=null==(d=Q(2,8,b.activeSort$))?null:d.direction)&&void 0!==d?d:"");B(33);C("matHeaderRowDef",b.tableColumns);B(1);C("matRowDefColumns",b.tableColumns)}},dependencies:[S6,T6,I4,A4,E4,B4,z4,F4,C4,D4,G4,H4,OZ,jP,I6,L6,K6,M6,N6,O6,
P6,J6,Q6,Px],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 V6=function(a,b,c,d){wI.call(this);var e=this;this.route=a;this.issues=b;this.issuePicker=c;this.snackBar=d;this.TEA_DARK=akc;this.TEA_LIGHT=$jc;this.getStatus=function(f){return f.snapshot[0].status};this.STATUS_FULL_TEXT=JL;this.STATUS_TERSE=FL;this.IssueStatus_strToTag=Yl;this.id$=Gk(this.bestRoute.paramMap.pipe(R(function(f){return Xk(f.get("issueId"))}),rf(bl),cg(this.destroyed$)));this.searchUrl$=this.id$.pipe(R(function(f){return{path:"/issues",params:{q:"blockedbyid:"+f}}}));this.issue$=
this.id$.pipe(bg(function(f){return e.issues.watch(f)}));this.blockingIds$=this.issue$.pipe(R(function(f){var h;return null!=(h=null==f?void 0:f.snapshot[0].blockingIssueId)?h:[]}));this.issuesBeingBlocked$=this.blockingIds$.pipe(bg(function(f){return KJ(e.issues,f)}));this.blockedAndOpen$=this.issuesBeingBlocked$.pipe(R(function(f){return f.filter(Cn)}));this.blockedAndOpenIds$=this.blockedAndOpen$.pipe(R(function(f){return f.map(function(h){return String(h.issueId)})}));this.blockedAndClosed$=this.issuesBeingBlocked$.pipe(R(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==Bn[h])k=!1;else{var v;k=!(null==(v=Bn[h])?0:v.open)}}return k})}));this.blockedAndClosedIds$=this.blockedAndClosed$.pipe(R(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&&xL(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),xL(e.issues,1,1,String(h),f).catch(e.gotErr))};this.gotErr=function(f){e.snackBar.open(Fm(f)||"Error with network request","close",{panelClass:"error"})}};U(V6,wI);V6.\u0275dir=wI.\u0275dir;var v3a=function(a){a.issuePicker.open({title:"Add Blocking",allowMultipleIds:!0},a.didChooseBlocking)};
li.Object.defineProperties(V6.prototype,{bestRoute:{configurable:!0,enumerable:!0,get:function(){var a;return null!=(a=this.route.parent)?a:this.route}}});V6.\u0275fac=function(a){return new (a||V6)(D(dk),D(wL),D(LX),D(AK))};
V6.\u0275cmp=w({type:V6,selectors:[["ng-component"]],features:[ae],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&&(F(0,"section",0),M(1,J3a,4,2,"ng-container",1),P(2,"async"),G(),M(3,K3a,2,0,"aside",2),P(4,"async"));a&2&&(B(1),C("ngIf",Q(2,2,b.blockingIds$)),B(2),C("ngIf",Q(4,4,b.thinking$)))},dependencies:[Gx,Cx,KI,BB,CB,sF,kN,U6,Px],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 W6=function(){this.expandable=this.issue=null;this.expanded=!1;this.level=0;this.expansionChange=new Rw;this.title=""};W6.prototype.ngOnChanges=function(){var a,b;this.title=(null==(a=this.issue)?void 0:null==(b=a.snapshot[0])?void 0:b.title)||""};W6.\u0275fac=function(a){return new (a||W6)};
W6.\u0275cmp=w({type:W6,selectors:[["b-expandable-issue-title-cell"]],inputs:{issue:"issue",expandable:"expandable",expanded:"expanded",level:"level"},outputs:{expansionChange:"expansionChange"},features:[Cc],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&&(F(0,"div",0),M(1,L3a,2,3,"button",1),M(2,M3a,1,0,"div",2),H(3,"b-issue-title-cell",3),G());a&2&&(ke("margin-left",24*b.level,"px"),B(1),C("ngIf",b.expandable),B(1),C("ngIf",!b.expandable),B(1),C("issue",b.issue))},dependencies:[Cx,zH,BB,O6],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 dnc=["theInput"],X6=function(){this.placeholder=this.value="";this.readonly=!1;this.autoFocus=!0;this.valueChange=new Rw;this.commit=new Rw};X6.prototype.ngAfterViewInit=function(){this.autoFocus&&this.input.nativeElement.focus()};X6.\u0275fac=function(a){return new (a||X6)};
X6.\u0275cmp=w({type:X6,selectors:[["b-text-input-cell"]],viewQuery:function(a,b){a&1&&Bf(dnc,5);if(a&2){var c;Af(c=Df())&&(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&&(F(0,"input",0,1),J("keydown.enter",function(c){b.readonly||b.commit.emit(c)})("ngModelChange",
function(c){return b.valueChange.emit(c)}),G());a&2&&(le("readonly",b.readonly)("override",b.readonly),C("placeholder",b.placeholder)("disabled",b.readonly)("ngModel",b.value))},dependencies:[Jg,ly,ry],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 enc=[W6,I6,L6,K6,M6,N6,O6,P6,X6,J6],Y6=function(){};[].concat(u(enc));[].concat(u(enc));Y6.\u0275fac=function(a){return new (a||Y6)};Y6.\u0275mod=uc({type:Y6});Y6.\u0275inj=gc({providers:[],imports:[D2,Wx,Gy,bI,EX,BG,CS,KM,cQ,kV,qT]});
var Z6=function(){};Z6.\u0275fac=function(a){return new (a||Z6)};Z6.\u0275mod=uc({type:Z6});Z6.\u0275inj=gc({providers:[Ymc],imports:[Wx,gB]});
var $6=function(){};$6.\u0275fac=function(a){return new (a||$6)};$6.\u0275mod=uc({type:$6});$6.\u0275inj=gc({imports:[aA,Oz,nz,Wx,Gy,BG,wF,Z6,L4,iX,lH,Hy,QI,RZ,D2,xO,kP,WN,Y6]});
var a7=function(){};a7.\u0275fac=function(a){return new (a||a7)};a7.\u0275mod=uc({type:a7});a7.\u0275inj=gc({imports:[nz,Oz,Gy,Hy,QI,BG,iX,lH,wF,HX,YN,kP,EX,WN,$6]});
var b7=function(a,b,c,d){var e=this;this.issueFridge=a;this.relationshipsFridge=b;this.issuePicker=c;this.butterBar=d;this.issueDetailsRoute=nn;this.parentIds$=new S.ReplaySubject(1);this.parents$=this.parentIds$.pipe(bg(function(f){return KJ(e.issueFridge,f)}));this.isThinking$=new S.BehaviorSubject(!1);this.parentNames$=this.parents$.pipe(R(S3a));this.parentIdAndNames$=(0,S.combineLatest)([this.parentIds$,this.parentNames$])},gnc=function(a){!0!==a.isThinking$.getValue()&&null!=a.issueId&&a.issuePicker.open({title:"Add Parent to b/"+
a.issueId,allowMultipleIds:!1},function(b){fnc(a,a.issueId,b)})},fnc=function(a,b,c){var d=r(c).next().value,e,f,h,k;bf(function(q){if(1==q.nextAddress){e=d;if(null==e)return q.return();a.isThinking$.next(!0);return cf(q,a.relationshipsFridge.assignParentToOneIssue(e,b),2)}if(3!=q.nextAddress)return f=q.yieldResult,h=f.errors,(null==(k=h)?0:k.length)?(GK(a.butterBar,"Could not add parent"),q.jumpTo(3)):cf(q,it(a.issueFridge,b),3);a.isThinking$.next(!1);df(q)})};
li.Object.defineProperties(b7.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:[])}}}});b7.\u0275fac=function(a){return new (a||b7)(D(wL),D(cM),D(LX),D(DK))};
b7.\u0275cmp=w({type:b7,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&&(M(0,Q3a,3,2,"section",0),P(1,"async"),F(2,"button",1),J("click",function(){return gnc(b)}),P(3,"async"),O(4," Add parent "),H(5,"b-spinner",2),G(),M(6,R3a,2,0,"ng-template",null,3,Jf));if(a&2){var c=Ce(7);C("ngIf",Q(1,4,b.parentIdAndNames$))("ngIfElse",
c);B(2);le("thinking",Q(3,6,b.isThinking$))}},dependencies:[Gx,Cx,KI,DX,nN,oN,rN,pN,BB,kN,Px],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 hnc="focus-indicator title type team id assignee status menu".split(" "),inc="focus-indicator drag-handle title type id assignee status menu".split(" ");
var c7=function(a,b,c,d){wI.call(this);var e=this;this.issueFridge=a;this.butterBar=b;this.analytics=c;this.refreshMonitor=d;this.blockerIssueIds$=new S.BehaviorSubject([]);this.tableColumns=hnc;this.initialSort={active:"status",direction:"asc"};this.getMenuItems=function(f){return[{type:"action",label:"Remove blocker",action:function(){jnc(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())it(e.issueFridge,h.value)}))};U(c7,wI);c7.\u0275dir=wI.\u0275dir;c7.prototype.ngOnInit=function(){};var jnc=function(a,b){var c;bf(function(d){if(1==d.nextAddress){eo(a.analytics,io.EDIT_ISSUE,"update","remove-blocker");Qt(d,2);var e=xL(a.issueFridge,2,2,a.issueId,[b]);return cf(d,e,4)}if(2!=d.nextAddress)return Rt(d,0);c=St(d);GK(a.butterBar,"Could not remove blocker "+b+". "+(Em(c)?Fm(c):c));df(d)})};
li.Object.defineProperties(c7.prototype,{blockerIds:{configurable:!0,enumerable:!0,set:function(a){this.blockerIssueIds$.next(null!=a?a:[])}}});c7.\u0275fac=function(a){return new (a||c7)(D(wL),D(DK),D(QM),D(sL))};
c7.\u0275cmp=w({type:c7,selectors:[["b-blockers-table"]],inputs:{blockerIds:"blockerIds",issueId:"issueId"},features:[ae],decls:2,vars:3,consts:[[4,"ngIf"],[3,"issueIds","tableColumns","menuItemFactory","initialSort"]],template:function(a,b){a&1&&(M(0,T3a,2,4,"ng-container",0),P(1,"async"));a&2&&C("ngIf",Q(1,1,b.blockerIssueIds$))},dependencies:[Cx,U6,Px],encapsulation:2,changeDetection:0});
var d7=function(){this.EMPTY_BLOCKER_LIGHT=Vjc;this.EMPTY_BLOCKER_DARK=Wjc;this.EMPTY_CHILD_LIGHT=Xjc;this.EMPTY_CHILD_DARK=Yjc};d7.\u0275fac=function(a){return new (a||d7)};
d7.\u0275cmp=w({type:d7,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&&(F(0,"h1",0),O(1,"Dependencies tab"),G(),F(2,"div",1)(3,"div",2),H(4,"img",3)(5,"img",3)(6,"img",4)(7,"img",4),G(),F(8,"article")(9,"p",5),O(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. "),F(11,"a",6),O(12,"Learn more"),G()()()(),F(13,"div",7)(14,"button",8),O(15,
"Close"),G()());a&2&&(B(4),C("src",b.EMPTY_CHILD_LIGHT,Md),B(1),C("src",b.EMPTY_BLOCKER_LIGHT,Md),B(1),C("src",b.EMPTY_CHILD_DARK,Md),B(1),C("src",b.EMPTY_BLOCKER_DARK,Md))},dependencies:[BB,$B,aC,bC,cC],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 e7=function(a){this.pathToAncestor=a},at=function(a){return new e7(a.split(">"))},knc=function(a,b){return new e7([].concat(u(a.pathToAncestor),[b]))};e7.prototype.hash=function(){return this.pathToAncestor.join(">")};e7.prototype.equals=function(a){return!!a&&Ei(this.pathToAncestor,a.pathToAncestor)};var lnc=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};
e7.prototype.contains=function(a){return this.pathToAncestor.join(",").includes(a.pathToAncestor.join(","))};e7.prototype.some=function(a){return this.pathToAncestor.some(a)};e7.prototype.toString=function(){return this.hash()};
li.Object.defineProperties(e7.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 e7(this.pathToAncestor.slice(0,this.size-1))}},root:{configurable:!0,enumerable:!0,get:function(){return this.pathToAncestor[0]}}});
var f7=function(){var a=this;this.draftRows=new Map;this.changed$=new S.Subject;this.counter=0;this.createId=function(){return String(a.counter++)}};f7.prototype.create=function(a,b,c){var d=this.createId();b={type:"draft-issue",title:"",ancestorChain:knc(a,d),level:a.size-1,issue$:(0,S.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};
f7.prototype.get=function(a){var b;return null!=(b=this.draftRows.get(a.hash()))?b:[]};f7.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 mnc=function(a,b){return bf(function(c){return c.return((0,S.firstValueFrom)(a.changed$.pipe(ag(a.draftRows),R(function(d){return![].concat(u(d.values())).flat().some(function(e){return e.issueId===b||e.id===b})}),rf(Boolean),R(function(){}))))})};f7.prototype.isSaving=function(){return[].concat(u(this.draftRows.values())).flat().some(function(a){return a.saving})};f7.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 nnc={defaultExpandedChildren:0,defaultExpansionLevel:0,maxExpansion:Infinity},onc=function(){var a={defaultExpansionLevel:3,defaultExpandedChildren:10,maxExpansion:500};this.config=a=void 0===a?nnc:a;this.expansionState={};this.changed$=new S.ReplaySubject(1)},pnc=function(a,b){b=b.hash();return a.expansionState[b]},g7=function(a,b,c){b=b.hash();void 0===c?delete a.expansionState[b]:a.expansionState[b]=c;a.changed$.next(a.expansionState)},qnc=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=knc(b,e.nodeId);e.size<=a.config.defaultExpansionLevel&&void 0===pnc(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=at(q);q.contains(e)&&(d=q.pathToAncestor.join(",").replace(e.pathToAncestor.join(","),f.pathToAncestor.join(",")).split(","),d=new e7(d),delete a.expansionState[q.hash()],a.expansionState[d.hash()]=k,d=!0)}}if(!pnc(a,
b)){var v;a.expansionState[b.hash()]=null!=(v=a.config.defaultExpandedChildren)?v:a.config.maxExpansion;d=!0}d&&a.changed$.next(a.expansionState)};
var h7=function(a,b,c,d,e){this.issueApi=a;this.activeSession=b;this.issueFridge=c;this.componentFridge=d;this.componentTemplatesFridge=e;this.currentUser=Ul(this.activeSession.getUserEmail())},snc=function(a,b){var c,d,e;return bf(function(f){if(1==f.nextAddress)return cf(f,rnc(a,b),2);c=f.yieldResult;d=c.component;e=c.defaultTemplate;return f.return(qta(d,e))})},unc=function(a,b){var c;return bf(function(d){if(1==d.nextAddress)return cf(d,tnc(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:[]})})},vnc=function(a,b,c){var d;return bf(function(e){if(1==e.nextAddress)return cf(e,tnc(a,b),2);d=e.yieldResult;d.title=c;return e.return(a.create(d))})};
h7.prototype.create=function(a){var b=this,c,d;return bf(function(e){return 1==e.nextAddress?cf(e,b.issueApi.createIssue({snapshot:a}),2):3!=e.nextAddress?(c=e.yieldResult,d=c.issueId,cf(e,it(b.issueFridge,String(d)),3)):e.return({issueId:String(d)})})};
var tnc=function(a,b){var c,d,e,f,h;return bf(function(k){if(1==k.nextAddress)return cf(k,(0,S.firstValueFrom)(a.issueFridge.watch(b).pipe(rf(bl))),2);if(3!=k.nextAddress)return c=k.yieldResult,cf(k,rnc(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 v={};c.snapshot[0].priority&&
(v.priority=c.snapshot[0].priority);c.snapshot[0].severity&&(v.severity=c.snapshot[0].severity);c.snapshot[0].type&&(v.type=c.snapshot[0].type)}else v={};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]},v,q,wnc(e,f));return k.return(h)})},wnc=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$1728:f.$jscomp$loop$prop$customField$1728},d=a.next())if(f.$jscomp$loop$prop$customField$1728=d.value,f.$jscomp$loop$prop$customField$1728.required){e=void 0;d=null!=(e=f.$jscomp$loop$prop$customField$1728.typedDefaultValue)?e:new iJ({customFieldId:f.$jscomp$loop$prop$customField$1728.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(v){return function(y){return y.customFieldId===
v.$jscomp$loop$prop$customField$1728.customFieldId}}(f)))?k:d;q&&c.push(Object.assign({},q))}return 0===c.length?{}:{customField:c}},rnc=function(a,b){var c,d,e,f,h,k;return bf(function(q){if(1==q.nextAddress)return cf(q,Promise.all([(0,S.firstValueFrom)(a.componentTemplatesFridge.defaultTemplate$(b)),(0,S.firstValueFrom)(a.componentFridge.watch(b).pipe(rf(bl)))]),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})})};
h7.\u0275fac=function(a){return new (a||h7)(t(lK),t(vH),t(wL),t(NJ),t(NK))};h7.\u0275prov=dc({token:h7,factory:h7.\u0275fac,providedIn:"root"});
var znc=function(a,b,c,d,e,f,h,k,q,v,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=v;this.refreshMonitor=y;this.expansion=new onc;this.draftRows=new f7;this.refetchingAll$=new S.BehaviorSubject(!1);this.userRequestedRefresh$=this.refreshMonitor.getObservable().pipe(bg(function(){E.refetchingAll$.next(!0);var I=Hk(E.rows$),N=[];if(!I)return Promise.resolve();
N.push(LJ(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(it(E.issueFridge,L.id)),1<L.level&&N.push(it(E.issueRelationshipsFridge,L.id));return Promise.all(N).then(function(){E.refetchingAll$.next(!1)})}));this.rows$=(0,S.merge)(this.draftRows.changed$,this.expansion.changed$,this.userRequestedRefresh$,(0,S.scheduled)((0,S.of)({}),S.asapScheduler)).pipe(bg(function(){return $Jb(E.issueRelationshipsFridge,
E.rootIssueId,3)}),bg(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 T=L.next().value;L=L.next().value;T=at(T).nodeId;var Y=void 0;L=Math.max(L,null!=(Y=I.get(T))?Y:0);I.set(T,L)}return xnc(E,I)}),R(function(I){return ync(E,I)}),Zf({refCount:!0,bufferSize:1}));this.rootIssue$=this.issueFridge.watch(this.rootIssueId).pipe(rf(bl));this.ROOT_ROW={type:"data",id:this.rootIssueId,level:-1,ancestorChain:new e7([this.rootIssueId]),
expandedCount:500,issue$:S.NEVER,hasChildren$:S.NEVER};this.supportsOneLineCreation=(0,S.firstValueFrom)(this.rootIssue$).then(function(I){return Tn(I.snapshot[0].componentId)}).then(function(I){return snc(E.issueCreationService,I)});this.isOneLineCreationSupported=function(){return E.supportsOneLineCreation}},Anc=function(a,b,c){b=void 0===b?a.ROOT_ROW.ancestorChain:b;var d,e,f,h,k;bf(function(q){switch(q.nextAddress){case 1:return d=b.nodeId,cf(q,(0,S.firstValueFrom)(a.issueFridge.watch(d)),2);
case 2:return(e=q.yieldResult)?cf(q,a.supportsOneLineCreation,3):q.return();case 3:f=q.yieldResult;if(!f){q.jumpTo(4);break}return cf(q,unc(a.issueCreationService,d),5);case 5:return h=q.yieldResult,q.return(a.draftRows.create(b,h,c));case 4:var v=a.router,y=a.paths,E=y.createIssue,I=e.snapshot[0].componentId,N=e.issueId;var L=jn("issues/:issueId/dependencies",{id:a.rootIssueId,params:void 0});return cf(q,ft(v,E.call(y,{component:I,parentIssueId:N,redirectUrl:L,afterIssueId:null==(k=c)?void 0:k.afterIssueId})),
6);case 6:return q.return()}})};
znc.prototype.addExistingChild=function(a){var b=this,c,d,e,f;bf(function(h){if(1==h.nextAddress)return cf(h,(0,S.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 bf(function(q){if(1==q.nextAddress){if(0===k.length)return q.return();b.assignParentToIssues(f,k.map(String));eo(b.analytics,io.EDIT_ISSUE,"add","existing-child-issue");
return cf(q,Io(),2)}a&&g7(b.expansion,a.ancestorChain,500);df(q)})});df(h)})};znc.prototype.saveDraft=function(a){var b=this,c;return bf(function(d){if(1==d.nextAddress){if(a.saving||!a.title)return d.return();a.saving=!0;return cf(d,Bnc(b,a),2)}return(c=d.yieldResult)?d.return(Cnc(b,a,c)):d.return()})};
var Bnc=function(a,b){var c,d,e,f;return bf(function(h){switch(h.nextAddress){case 1:return c=b.ancestorChain.parentNodeId,Qt(h,2),cf(h,vnc(a.issueCreationService,c,b.title),4);case 4:e=h.yieldResult;d=e.issueId;Rt(h,3);break;case 2:return f=St(h),GK(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);SKb(a.analytics,"createIssue",q,"from-tree");eo(a.analytics,
io.CREATE_ISSUE,"createIssue","time-to-create-from-tree",q);q=a.clearcut;q.userLatency.record(k,"createIssue-fromTree",q.frontendAccessMode,q.environmentType)}g7(a.expansion,b.ancestorChain.parentChain,500);k=a.draftRows;q=d;b.issueId=q;for(var v=r(k.draftRows.values()),y=v.next();!y.done;y=v.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)}})},Cnc=function(a,b,c){var d,e,f,h,k,q;return bf(function(v){if(1==
v.nextAddress)return d=b.ancestorChain.parentNodeId,f=null!=(e=b.afterIssueId)?e:b.afterDraftId,void 0===f||"-1"===f?v.jumpTo(2):cf(v,mnc(a.draftRows,f),2);if(4!=v.nextAddress)return cf(v,a.issueRelationshipsFridge.assignParentToIssues(d,[{issueId:c,afterIssueId:b.afterIssueId}]),4);h=v.yieldResult;k=h.errors;(null==(q=k)?0:q.length)&&GK(a.butterBar,"Could not create issue relationship. Error: "+JSON.stringify(k));a.draftRows.remove(b);df(v)})},xnc=function(a,b,c){c=void 0===c?0:c;return(0,S.combineLatest)([a.rootIssueId].concat(u(b.keys())).map(function(d){return a.refetchingAll$.pipe(rf(function(e){return!e}),
bg(function(){return ZJb(a.issueRelationshipsFridge,d)}))})).pipe(R(function(d){return d.filter(Boolean)}),bg(function(d){var e=new Map(d.map(function(f){return[f.issueId,f]}));if(1===c)return(0,S.of)(e);d=Dnc(a,e,c);d=new Map(d.map(function(f){return[f,10]}));return xnc(a,d,c+1).pipe(R(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}))}))},Dnc=function(a,b,c){var d=[];a=[{id:a.rootIssueId,
level:-1}];for(var e={};0<a.length;){e.$jscomp$loop$prop$current$1730=a.pop();e.$jscomp$loop$prop$current$1730.level===c&&d.push(e.$jscomp$loop$prop$current$1730.id);if(!(e.$jscomp$loop$prop$current$1730.level>c)){var f=void 0,h=void 0,k=null!=(h=null==(f=b.get(e.$jscomp$loop$prop$current$1730.id))?void 0:f.relatedChildren)?h:[];a.push.apply(a,u(k.map(function(q){return function(v){return{id:v.targetIssueId,level:q.$jscomp$loop$prop$current$1730.level+1}}}(e))))}e={$jscomp$loop$prop$current$1730:e.$jscomp$loop$prop$current$1730}}return d},
ync=function(a,b){for(var c=[],d=[a.ROOT_ROW],e={};0<d.length;){e.$jscomp$loop$prop$parentRow$1732=d.pop();if("load-more-children"===e.$jscomp$loop$prop$parentRow$1732.type||"draft-issue"===e.$jscomp$loop$prop$parentRow$1732.type)c.push(e.$jscomp$loop$prop$parentRow$1732);else{e.$jscomp$loop$prop$parentRow$1732.id!==a.rootIssueId&&c.push(e.$jscomp$loop$prop$parentRow$1732);var f=void 0,h=void 0,k=null!=(h=null==(f=b.get(e.$jscomp$loop$prop$parentRow$1732.id))?void 0:f.relatedChildren)?h:[];f=k.slice(0,
e.$jscomp$loop$prop$parentRow$1732.expandedCount);e.$jscomp$loop$prop$childrenLevel$1733=e.$jscomp$loop$prop$parentRow$1732.level+1;e.$jscomp$loop$prop$parentRow$1732.expandedCount&&f.length<k.length&&(h=knc(e.$jscomp$loop$prop$parentRow$1732.ancestorChain,"load-more-children"),d.push({type:"load-more-children",id:h.hash(),level:e.$jscomp$loop$prop$childrenLevel$1733,parentIssue$:e.$jscomp$loop$prop$parentRow$1732.issue$,ancestorChain:h,truncatedSiblingCount:k.length-f.length}));k=f.map(function(q){return function(v){var y=
knc(q.$jscomp$loop$prop$parentRow$1732.ancestorChain,v.targetIssueId),E=v.targetIssueId,I=q.$jscomp$loop$prop$childrenLevel$1733,N=a.issueRelationshipsFridge.watch(v.targetIssueId).pipe(R(gua));var L=q.$jscomp$loop$prop$childrenLevel$1733;var T=y.nodeId,Y=pnc(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(T))?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(v.targetIssueId)}}}(e));
d.push.apply(d,u(Enc(a,k,e.$jscomp$loop$prop$parentRow$1732.ancestorChain).reverse()))}e={$jscomp$loop$prop$parentRow$1732:e.$jscomp$loop$prop$parentRow$1732,$jscomp$loop$prop$childrenLevel$1733:e.$jscomp$loop$prop$childrenLevel$1733}}return c},Enc=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$1736:a.$jscomp$loop$prop$draft$1736},e=c.next())a.$jscomp$loop$prop$draft$1736=e.value,b.some(function(f){return function(h){return h.id===
f.$jscomp$loop$prop$draft$1736.issueId}}(a))||(e=d.findIndex(function(f){return function(h){return h.id===f.$jscomp$loop$prop$draft$1736.afterDraftId||h.id===f.$jscomp$loop$prop$draft$1736.afterIssueId}}(a)),d.splice(-1===e?d.length:e+1,0,a.$jscomp$loop$prop$draft$1736));return d};
znc.prototype.assignParentToIssues=function(a,b){var c=this,d,e,f,h;return bf(function(k){if(1==k.nextAddress)return 0===b.length?k.return():cf(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 GK(c.butterBar,"Could not add "+e+" as child of b/"+a+". "+(null==(h=f)?void 0:h.map(function(q){return Fm(q)}))),k.return();df(k)})};
var i7=function(a,b,c,d,e,f,h,k,q,v){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=v};i7.prototype.create=function(a){return new znc(a,this.analytics,this.butterBar,this.issueFridge,this.issuePicker,this.issueRelationshipsFridge,this.paths,this.router,this.issueCreationService,this.clearcut,this.refreshMonitor)};
i7.\u0275fac=function(a){return new (a||i7)(t(QM),t(DK),t(wL),t(LX),t(cM),t(TK),t(Fk),t(h7),t(QO),t(sL))};i7.\u0275prov=dc({token:i7,factory:i7.\u0275fac,providedIn:"root"});
var j7=function(a,b,c,d){var e=this;this.rootElement=a;this.rows=b;this.ngZone=c;this.rowSelectionModel=d;this.onLongHover$=new S.Subject;this.onRowsMoved$=new S.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=Rqb(function(f,h){if(e.activeDrag){var k=f||0,q=h.getBoundingClientRect();f=q.height;k-=q.top;
f=V3a(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 v=(k=null==(v=f.querySelector(".title-location"))?void 0:v.getBoundingClientRect().left)?k-f.getBoundingClientRect().left:0;v=f.offsetLeft+v;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=v+"px";e.insertionBar.style.top=k-1+"px";e.insertionBar.style.width=q-v+"px";break;case "none":e.placeholder.style.display="none",e.insertionBar.style.display="none"}e.currentReorderingGuide={rowElement:f,position:h};Fnc(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(){Gnc(e)});a.addEventListener("drop",function(){e.reorder(e.currentReorderingGuide,Hnc(e.rowSelectionModel),"mouse",4);Gnc(e)})})};
j7.prototype.handleDragStart=function(a){var b=this;this.activeDrag=!0;var c=a.target.closest("tr");this.rowSelectionModel.select(bt(c));Inc(this.rowSelectionModel);Jnc(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 Knc=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",3)},Lnc=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",2)}};
j7.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",0)}};
j7.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?Knc(this,a):(b=c&&b.row.level<$s(c)?{position:"before",rowElement:c}:{position:"after",rowElement:b.element},this.reorder(b,[a.row.ancestorChain],"keyboard",1))}};
j7.prototype.onKeydown=function(a){if(a.ctrlKey){var b,c=null==(b=a.target)?void 0:b.closest("tr");if(c){var d=bt(c);if(b=this.rows.toArray().find(function(e){return e.row.ancestorChain.equals(d)}))switch(a.key){case "ArrowLeft":Knc(this,b);break;case "ArrowRight":Lnc(this,b);break;case "ArrowUp":this.moveUp(b);break;case "ArrowDown":this.moveDown(b)}}}};
j7.prototype.reorder=function(a,b,c,d){var e=this;if(a){var f=bt(a.rowElement),h=void 0,k=f;switch(a.position){case "current":k=f;h={parentId:f.nodeId};break;case "before":case "after":k=f.parentChain,h={parentId:f.parentNodeId,position:{issueId:f.nodeId,position:a.position}}}this.ngZone.run(function(){b.length&&h&&e.onRowsMoved$.next({movedRows:b,insertAt:h,parentAncestorChain:k,origin:c,actionMessage:U3a(d)})})}};
var Gnc=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},Fnc=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 bt(b).equals(e.row.ancestorChain)});d&&(a.ngZone.run(function(){a.onLongHover$.next(d)}),a.longHoveredRow.emitted=!0)}},Jnc=function(a){var b;
null==(b=a.updatingNoDropRows)||b.unsubscribe();a.updatingNoDropRows=a.rows.changes.pipe(ag(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 k7=function(a){wI.call(this);var b=this;this.analytics=a;this.dragStarted$=new S.Subject;this.onRowsMoved$=new S.Subject;(0,S.merge)(this.dragStarted$,this.onRowsMoved$).pipe(Npa(),cg(this.destroyed$)).subscribe(function(c){var d=c[c.length-1].timestamp-c[0].timestamp;c=Ej(c.map(function(e){return e.event.origin}),Dj);c=1===c.length?c[0]:"mixed";eo(b.analytics,io.EDIT_ISSUE,"reorderChildren",c);SKb(b.analytics,"reorderChildren",d,c)})};U(k7,wI);k7.\u0275dir=wI.\u0275dir;
k7.\u0275fac=function(a){return new (a||k7)(t(QM))};k7.\u0275prov=dc({token:k7,factory:k7.\u0275fac,providedIn:"root"});
var l7=function(){this.changed$=new S.Subject;this.selectedRowHashes=new Set;this.isSelectedObservableMap=new Map};l7.prototype.init=function(a){this.visibleRows=a};l7.prototype.isSelected=function(a){return this.selectedRowHashes.has(a.hash())};var y4a=function(a,b){var c=b.hash(),d,e=null!=(d=a.isSelectedObservableMap.get(c))?d:a.changed$.pipe(ag(a.selectedRowHashes),R(function(f){return f.has(b.hash())}),Pf(),Zf({refCount:!0,bufferSize:1}));a.isSelectedObservableMap.set(c,e);return e};
l7.prototype.select=function(a){this.selectedRowHashes.add(a.hash());this.changed$.next(this.selectedRowHashes)};l7.prototype.clear=function(){this.selectedRowHashes.clear();this.changed$.next(this.selectedRowHashes)};
var Inc=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=at(e.value);for(var f=r(b),h=f.next();!h.done;h=f.next())h=h.value,lnc(e,h)&&(a.selectedRowHashes.add(h.hash()),c=!0)}c&&a.changed$.next(a.selectedRowHashes)},Hnc=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 at(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};
li.Object.defineProperties(l7.prototype,{selectedRows:{configurable:!0,enumerable:!0,get:function(){return[].concat(u(this.selectedRowHashes)).map(function(a){return at(a)})}},selectedCount:{configurable:!0,enumerable:!0,get:function(){return this.selectedRowHashes.size}}});
var Mnc=function(){return["focus-indicator","load-more-children"]},Nnc={type:"data",id:"",issue$:S.NEVER,hasChildren$:S.NEVER,ancestorChain:new e7([]),level:0,expandedCount:0},m7=function(a,b,c,d,e,f,h,k,q,v,y,E,I){wI.call(this);var N=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=v;this.cdr=y;this.relationsTableModelFactory=E;this.liveAnnouncer=I;this.tableColumns=
inc;this.trackBy=function(L,T){return T.ancestorChain.hash()+T.type};this.isLoadMoreRow=function(L,T){return"load-more-children"===T.type};this.isDataRow=function(L,T){return"data"===T.type};this.isDraftRow=function(L,T){return"draft-issue"===T.type};this.selectionModel=new l7;this.correctedDisplayedRows=new Ef;this.TITLE_FIXED_OFFSET_PX=42;this.rowDirectiveMap=new Map;this.getRowIndex=function(L){var T;return(null!=(T=Hk(N.rows$))?T:[]).findIndex(function(Y){return Zs(Y,L)})};this.showError=function(L){return function(T){GK(N.butterBar,
L+". "+(Em(T)?Fm(T):T))}};this.subscriptions.add(bZ(k,function(){return N.tableModel.draftRows.isSaving()||N.issueRelationshipsFridge.isSaving()},!1))};U(m7,wI);m7.\u0275dir=wI.\u0275dir;
m7.prototype.ngOnInit=function(){var a=this;this.tableModel=this.relationsTableModelFactory.create(this.rootIssueId);this.rows$=(0,S.scheduled)([this.tableModel.rows$,(0,S.of)([Nnc])],S.asyncScheduler).pipe(lf(1),Zf({refCount:!0,bufferSize:1}));var b=this.rows$.pipe(bg(function(c){return(0,S.combineLatest)(c.filter(function(d){return"data"===d.type}).map(function(d){return d.issue$}))}),Nf(0,S.asapScheduler));this.subscriptions.add(b.subscribe(function(){a.cdr.detectChanges()}));this.rowReorderingModel=
new j7(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?t4a(a,d):"data"===d.type&&(c=a.tableModel.expansion,d=d.ancestorChain,pnc(c,d)||g7(c,d,10))}));this.subscriptions.add(this.rowReorderingModel.onRowsMoved$.subscribe(function(c){var d;return bf(function(e){if(1==e.nextAddress)return dKb(a.issueRelationshipsFridge,c.insertAt,c.movedRows.map(function(f){return{issueId:f.nodeId,
parentId:f.parentNodeId}})).then(function(){return a.liveAnnouncer.announce(c.actionMessage+" successfully.")}).catch(a.showError("Unable to reorder issues")),qnc(a.tableModel.expansion,c.parentAncestorChain,c.movedRows),cf(e,(0,S.firstValueFrom)(a.correctedDisplayedRows.changes.pipe(R(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})}),rf(Boolean),tf(6E4))),2);d=e.yieldResult;
d.focus();df(e)})}));this.subscriptions.add(this.rowReorderingModel.onRowsMoved$.subscribe(function(c){a.reorderingSessionTracker.onRowsMoved$.next(c)}))};
m7.prototype.ngAfterViewInit=function(){var a=this;this.selectionModel.init(this.displayedRows);(0,S.combineLatest)([this.rows$,this.displayedRows.changes]).pipe(cg(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);zf(a.correctedDisplayedRows)});this.focusManager=lA(new Rmc(this.correctedDisplayedRows,
Zs))};m7.prototype.toggleExpansion=function(a){g7(this.tableModel.expansion,a.ancestorChain,a.expandedCount?0:10)};m7.prototype.navigateToIssue=function(a,b){!b.id||a.defaultPrevented||"mouseup"===a.type&&a instanceof MouseEvent&&1!==a.button||"A"===a.target.tagName||(eo(this.analytics,io.EDIT_ISSUE,"navigate","to-child-issue"),b=kn(b.id),a.ctrlKey||a.metaKey||a instanceof MouseEvent&&1===a.button?this.domSafe.openInNewTab(b):a&&a.shiftKey?uP(this.domSafe,b):ft(this.router,b))};
var t4a=function(a,b){var c;return bf(function(d){if(1==d.nextAddress)return c=a.getRowIndex(b),g7(a.tableModel.expansion,b.ancestorChain.parentChain,500),cf(d,Io(),2);a.focusManager.setActiveItem(c);df(d)})};
m7.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 bf(function(c){if(1==c.nextAddress)return cf(c,Io(),2);Onc(b,a);df(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 bf(function(c){if(1==c.nextAddress)return cf(c,Io(),2);Pnc(b,a);df(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(){Lnc(b.rowReorderingModel,b.rowDirectiveMap.get(a.ancestorChain.hash()))},title:"Indent",icon:"arrow-right",hintText:"ctrl+right"},{type:"action",label:"Unindent",action:function(){Knc(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(){Qnc(b,a)},title:"Archive issue",icon:"archive_24px"}]};
m7.prototype.saveDraft=function(a){var b=this,c,d;return bf(function(e){if(1==e.nextAddress){if(!a.title)return e.return();b.tableModel.saveDraft(a);return cf(e,(0,S.firstValueFrom)(b.displayedRows.changes.pipe(R(function(f){return f.find(function(h){return"data"===h.row.type&&h.row.id===a.issueId})}),rf(Boolean),tf(6E4))),2)}c=e.yieldResult;Zs(null==(d=b.focusManager.activeItem)?void 0:d.row,a)&&b.focusManager.setActiveItem(c);df(e)})};
var B4a=function(a,b){if(!b.saving){a.tableModel.draftRows.remove(b);var c;Zs(null==(c=a.focusManager.activeItem)?void 0:c.row,b)&&a.focusManager.setPreviousItemActive()}},Onc=function(a,b){Anc(a.tableModel,null==b?void 0:b.ancestorChain,{afterIssueId:"-1"})},Pnc=function(a,b){"data"===b.type?Anc(a.tableModel,b.ancestorChain.parentChain,{afterIssueId:b.id}):Anc(a.tableModel,b.ancestorChain.parentChain,{afterDraftId:b.id})};m7.prototype.addExistingChild=function(a){this.tableModel.addExistingChild(a)};
var Rnc=function(a){return a.tableColumns.map(function(b){return"title"===b?"editable-title":"menu"===b?"save":"id"===b?"empty-id":b})};m7.prototype.handleDragStart=function(a){this.reorderingSessionTracker.dragStarted$.next({origin:"mouse"});this.rowReorderingModel.handleDragStart(a)};
m7.prototype.onRowKeydown=function(a,b){var c=this,d;return bf(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&&(t4a(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?cf(e,c.tableModel.isOneLineCreationSupported(),
4):e.return();(d=e.yieldResult)&&("data"===a.type||"draft-issue"===a.type&&a.saving)&&(b.shiftKey&&"data"===a.type?Onc(c,a):Pnc(c,a),b.preventDefault());return e.jumpTo(0)})};
var Qnc=function(a,b){var c,d;bf(function(e){if(1==e.nextAddress)return eo(a.analytics,io.EDIT_ISSUE,"update","archive-child-issue"),c=a.getRowIndex(b),a.issueArchiveService.archive(b.id),cf(e,(0,S.firstValueFrom)(a.rows$.pipe(R(function(f){return!f.find(function(h){return"data"===h.type&&h.id===b.id})}),rf(Boolean),tf(6E4))),2);Zs(null==(d=a.focusManager.activeItem)?void 0:d.row,b)&&a.focusManager.setActiveItem(c);df(e)})};
m7.prototype.unlinkFromParent=function(a){var b=this,c,d;return bf(function(e){c=a.ancestorChain.nodeId;d=a.ancestorChain.parentNodeId;eo(b.analytics,io.EDIT_ISSUE,"update","unlink-child-issue");return cf(e,b.issueRelationshipsFridge.unlinkFromParent(c,d).then(function(){FK(b.butterBar,"Unlinked successfully.")}).catch(b.showError("Failed to unlink child "+c+" from parent "+d)),0)})};
m7.\u0275fac=function(a){return new (a||m7)(D(cM),D(Fk),D(DK),D(QM),D(o6),D(jg),D(pd),D(aZ),D(tP),D(k7),D(sI),D(i7),D($z))};
m7.\u0275cmp=w({type:m7,selectors:[["b-issue-relations-table"]],viewQuery:function(a,b){a&1&&Bf(Q6,5);if(a&2){var c;Af(c=Df())&&(b.displayedRows=c)}},inputs:{rootIssueId:"rootIssueId"},features:[Ge([sI]),ae],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&&(F(0,"table",0),qe(1,1),M(2,W3a,1,0,"th",2),M(3,X3a,2,0,"td",3),re(),qe(4,4),M(5,Y3a,1,0,"th",2),M(6,Z3a,3,0,"td",5),re(),qe(7,6),M(8,$3a,2,0,"th",2),M(9,a4a,2,1,"td",7),re(),qe(10,8),M(11,b4a,2,0,"th",2),M(12,c4a,2,0,"td",7),re(),qe(13,9),M(14,d4a,2,0,"th",2),M(15,e4a,4,8,"td",7),re(),qe(16,10),M(17,f4a,2,0,"th",2),M(18,g4a,3,3,"td",7),re(),qe(19,11),M(20,h4a,2,0,"th",2),M(21,i4a,3,3,"td",7),re(),
qe(22,12),M(23,j4a,2,0,"th",2),M(24,k4a,3,3,"td",7),re(),qe(25,13),M(26,l4a,2,0,"th",2),M(27,m4a,3,3,"td",7),re(),qe(28,14),M(29,n4a,1,0,"th",2),M(30,o4a,2,1,"td",7),re(),qe(31,15),M(32,p4a,1,0,"th",2),M(33,s4a,4,2,"td",16),re(),qe(34,17),M(35,u4a,6,7,"td",18),re(),qe(36,19),M(37,v4a,2,0,"th",2),M(38,w4a,2,4,"td",18),re(),M(39,x4a,1,0,"tr",20),M(40,z4a,2,8,"tr",21),M(41,A4a,1,4,"tr",22),M(42,C4a,1,2,"tr",23),G(),H(43,"div",24)(44,"div",25)(45,"div",26));a&2&&(C("dataSource",b.rows$)("trackBy",b.trackBy),
B(39),C("matHeaderRowDef",b.tableColumns),B(1),C("matRowDefColumns",b.tableColumns)("matRowDefWhen",b.isDataRow),B(1),C("matRowDefColumns",He(9,Mnc))("matRowDefWhen",b.isLoadMoreRow),B(1),C("matRowDefColumns",Rnc(b))("matRowDefWhen",b.isDraftRow))},dependencies:[Py,Cx,BB,dF,I4,A4,E4,B4,z4,F4,C4,D4,G4,H4,sF,OZ,z2,wO,W6,I6,K6,M6,N6,P6,X6,jP,bP,kN,Q6,Px],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 n7=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$=sM(this.paramsService,"issueId").pipe(Of(1E3),Pf());this.issue$=this.id$.pipe(bg(function(k){return h.issueFridge.watch(k)}));this.issueEvents$=this.id$.pipe(bg(function(k){return h.eventsForIssue.watch(k)}),R(function(k){var q;return null!=(q=null==k?void 0:k.events)?q:[]}));this.blockerIssueIds$=this.issue$.pipe(R(function(k){var q;
return null!=(q=null==k?void 0:k.snapshot[0].blockedByIssueId)?q:[]}),Pf(Ei));this.blockedIssueIds$=this.issue$.pipe(R(function(k){var q;return null!=(q=null==k?void 0:k.snapshot[0].blockingIssueId)?q:[]}),Pf(Ei));this.childrenIds$=this.id$.pipe(bg(function(k){return h.issueRelationshipsFridge.watch(k)}),R(function(k){var q;return null!=(q=null==k?void 0:k.relatedChildren.map(function(v){return v.targetIssueId}))?q:[]}));this.duplicateIssueIds$=this.issue$.pipe(R(function(k){var q;return null!=(q=
null==k?void 0:k.snapshot[0].duplicateIssueId)?q:[]}),Pf(Ei));this.blockersDualCount$=(0,S.combineLatest)([this.id$,this.blockerIssueIds$]).pipe(bg(function(k){var q=r(k);k=q.next().value;q=q.next().value;return Snc(h,k,q,"BLOCKED_BY")}),Zf({bufferSize:1,refCount:!0}));this.countBlockersDisplay$=this.blockersDualCount$.pipe(R(ct),Zf({bufferSize:1,refCount:!0}));this.blockedDualCount$=(0,S.combineLatest)([this.id$,this.blockedIssueIds$]).pipe(bg(function(k){var q=r(k);k=q.next().value;q=q.next().value;
return Snc(h,k,q,"BLOCKING")}),Zf({bufferSize:1,refCount:!0}));this.countBlockedDisplay$=this.blockedDualCount$.pipe(R(ct),Zf({bufferSize:1,refCount:!0}));this.childrenDualCount$=(0,S.combineLatest)([this.id$,this.childrenIds$]).pipe(bg(function(k){var q=r(k);k=q.next().value;q=q.next().value;return Snc(h,k,q,"CHILDREN")}),Zf({bufferSize:1,refCount:!0}));this.countChildrenDisplay$=this.childrenDualCount$.pipe(R(ct),Zf({bufferSize:1,refCount:!0}));this.dependenciesDualCount$=(0,S.combineLatest)([this.childrenDualCount$,
this.blockersDualCount$]).pipe(R(function(k){var q=r(k);k=q.next().value;q=q.next().value;return{open:et(k.open.count+q.open.count),total:et(k.total.count+q.total.count)}}));this.countDependenciesDisplay$=this.dependenciesDualCount$.pipe(R(ct),Zf({bufferSize:1,refCount:!0}));this.duplicatesDualCount$=(0,S.combineLatest)([this.id$,this.duplicateIssueIds$]).pipe(bg(function(k){var q=r(k);k=q.next().value;q=q.next().value;return Snc(h,k,q,"DUPLICATE")}),Zf({bufferSize:1,refCount:!0}));this.countDuplicateDisplay$=
this.duplicatesDualCount$.pipe(R(function(k){return k.total}),R(dt),Zf({bufferSize:1,refCount:!0}));this.countResourcesDisplay$=this.issue$.pipe(R(function(k){var q;return null!=(q=null==k?void 0:k.relatedLinks)?q:[]}),R(function(k){return et(k.length)}),R(dt),Zf({bufferSize:1,refCount:!0}));this.countTodosDisplay$=this.id$.pipe(rf(bl),R(Number),bg(function(k){return Llc(h.codeMentions,k)}),R(function(k){var q,v;return et(null!=(v=null==(q=k.mentions)?void 0:q.totalMentions)?v:0)}),R(dt),Zf({bufferSize:1,
refCount:!0}));this.countCommentsDisplay$=this.issueEvents$.pipe(R(function(k){return et(k.filter(function(q){return q.isMajorEvent}).length)}),R(dt),Zf({bufferSize:1,refCount:!0}))},Snc=function(a,b,c,d){return b&&0!==c.length?99<c.length?a.issueApi.listIssues(E4a(b,d),{p:1,count:100}).then(function(e){e=e.issues.filter(Cn).filter(Dn).length;return{open:et(e),total:et(c.length)}}):KJ(a.issueFridge,c).pipe(R(function(e){return{open:et(e.filter(Cn).filter(Dn).length),total:et(c.length)}})):(0,S.of)({open:{count:0,
exact:!0},total:{count:0,exact:!0}})};n7.\u0275fac=function(a){return new (a||n7)(t(rM),t(cM),t(wL),t(l6),t(lK),t(LL))};n7.\u0275prov=dc({token:n7,factory:n7.\u0275fac,providedIn:"root"});
var o7=function(a,b,c,d,e,f,h,k,q,v,y,E,I){wI.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=v;this.activeSession=y;this.counts=E;this.matDialog=I;this.issueDetailsRoute=nn;this.EMPTY_BLOCKER_LIGHT=Vjc;this.EMPTY_BLOCKER_DARK=Wjc;this.EMPTY_CHILD_LIGHT=Xjc;this.EMPTY_CHILD_DARK=Yjc;this.isThinking$=(0,S.combineLatest)([this.issueFridge.saving$,
this.issueRelationshipsFridge.saving$]).pipe(R(function(L){return L.some(Boolean)}));this.issueId$=this.brain.id$.pipe(rf(bl),R(Tn));this.issue$=this.brain.issueJs$.pipe(rf(bl));this.blockerIds$=this.issue$.pipe(R(function(L){var T,Y,ka;return null!=(ka=null==(T=L.issue.snapshot[0])?void 0:null==(Y=T.blockedByIssueId)?void 0:Y.map(String))?ka:[]}));this.parentIds$=this.issue$.pipe(R(function(L){var T;return null!=(T=L.issue.parentIssueIds)?T:[]}));this.blockerIssues$=this.blockerIds$.pipe(bg(function(L){return KJ(N.issueFridge,
L)}));this.blockersCount$=this.blockerIssues$.pipe(R(function(L){return L.filter(Dn).length}));this.childrenIds$=this.issueId$.pipe(bg(function(L){return N.issueRelationshipsFridge.watch(L)}),R(function(L){var T;return null!=(T=null==L?void 0:L.relatedChildren.map(function(Y){return Y.targetIssueId}))?T:[]}));this.totalDaysOpen$=this.issue$.pipe(R(function(L){var T,Y;return(null==(T=An(L))?void 0:null==(Y=T.effort)?void 0:zl(Y,4))||0}));this.totalDaysComplete$=this.issue$.pipe(R(function(L){var T,
Y;return(null==(T=An(L))?void 0:null==(Y=T.effort)?void 0:zl(Y,5))||0}));this.unarchivedChildIssueCount$=this.childrenIds$.pipe(R(function(L){return L.length}));this.isTotalEstimatesEnabled=xH(this.activeSession,"enableAggregationRules");this.totalDaysCount$=(0,S.combineLatest)([this.totalDaysOpen$,this.totalDaysComplete$]).pipe(R(function(L){var T=r(L);L=T.next().value;T=T.next().value;return L+T}));this.totalDaysDisplayPercent$=W4a(this.totalDaysComplete$,this.totalDaysCount$);(0,S.combineLatest)([this.blockersCount$,
this.unarchivedChildIssueCount$]).pipe(R(function(L){var T=r(L);L=T.next().value;T=T.next().value;return L+T}));this.progressHovercardContent$=(0,S.combineLatest)([this.totalDaysComplete$,this.totalDaysOpen$,this.totalDaysDisplayPercent$]).pipe(R(function(L){var T=r(L);L=T.next().value;var Y=T.next().value;T=T.next().value;return X4a(Math.round(100*L)/100)+" completed | "+X4a(Math.round(100*Y)/100)+" open | "+T+"% completed"}));this.canEdit$=this.issuePermissionService.hasAclToEdit$;this.rowCreated$=
new S.Subject;(0,S.firstValueFrom)(Xp("b-issue-relations-table tr .mat-column-title span",this.element.nativeElement).pipe(cg((0,S.merge)(this.destroyed$,this.rowCreated$)))).then(function(){var L=function(){F7b(N.routePerformance,"issue-details-w-tree")};requestAnimationFrame(L);setTimeout(L)}).catch(function(){})};U(o7,wI);o7.\u0275dir=wI.\u0275dir;
var T4a=function(a){var b,c;return bf(function(d){if(1==d.nextAddress)return eo(a.analytics,io.EDIT_ISSUE,"update","add-blocker"),cf(d,(0,S.firstValueFrom)(a.issue$),2);b=d.yieldResult;c=b.issue.issueId;a.issuePicker.open({title:"Add Blockers of "+c,allowMultipleIds:!0},function(e){Tnc(a,c,e)});df(d)})};o7.prototype.addChild=function(){this.rowCreated$.next();var a;null==(a=this.table)||a.addExistingChild()};o7.prototype.createChild=function(){this.rowCreated$.next();var a;null==(a=this.table)||Onc(a)};
var Tnc=function(a,b,c){var d;bf(function(e){if(1==e.nextAddress){if(0===c.length)return e.return();Qt(e,2);var f=c.map(String);f=xL(a.issueFridge,1,2,String(b),f);return cf(e,f,4)}if(2!=e.nextAddress)return Rt(e,0);d=St(e);GK(a.butterBar,"Could not add "+c+" as blockers of "+b+". "+d);df(e)})};o7.\u0275fac=function(a){return new (a||o7)(D(kO),D(LX),D(cM),D(wL),D(DK),D(Fk),D(X_),D(pd),D(QM),D(mO),D(vH),D(n7),D(ZB))};
o7.\u0275cmp=w({type:o7,selectors:[["b-issue-dependencies"]],viewQuery:function(a,b){a&1&&Bf(m7,5);if(a&2){var c;Af(c=Df())&&(b.table=c.first)}},features:[ae],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&&(F(0,"div",0)(1,"section",1)(2,"h4",2),O(3,
"Parents:"),G(),O(4,"\u00a0"),H(5,"related-parents-compact",3),P(6,"async"),G(),F(7,"p",4),M(8,F4a,1,0,"b-spinner",5),P(9,"async"),F(10,"button",6),J("click",function(){b.matDialog.open(d7,{maxWidth:"1300px",width:"90%"})}),H(11,"mat-icon",7),G()(),F(12,"section")(13,"div",8)(14,"h4",9)(15,"div",10),H(16,"mat-icon",11),G(),O(17),P(18,"async"),G(),M(19,H4a,2,1,"ng-container",5),P(20,"async"),G(),M(21,J4a,3,4,"ng-container",5),P(22,"async"),M(23,L4a,6,1,"ng-template",null,12,Jf),G(),F(25,"section")(26,
"div",13)(27,"h4",9)(28,"div",14),H(29,"mat-icon",15),G(),O(30),P(31,"async"),G(),M(32,N4a,2,1,"ng-container",5),P(33,"async"),P(34,"async"),G(),M(35,O4a,28,24,"div",16),P(36,"async"),P(37,"async"),M(38,P4a,2,5,"b-issue-relations-table",17),P(39,"async"),M(40,S4a,4,5,"ng-container",5),P(41,"async"),G()(),M(42,U4a,3,3,"ng-template",null,18,Jf),M(44,V4a,6,6,"ng-template",null,19,Jf));if(a&2){var c,d;B(5);C("issue",null==(c=Q(6,10,b.issue$))?null:c.issue);B(3);C("ngIf",Q(9,12,b.isThinking$));B(9);De(" Blockers ",
Q(18,14,b.counts.countBlockersDisplay$)," ");B(2);C("ngIf",Q(20,16,b.blockersCount$));B(2);C("ngIf",Q(22,18,b.issueId$));B(9);De(" Child issues ",Q(31,20,b.counts.countChildrenDisplay$)," ");B(2);C("ngIf",Q(33,22,b.unarchivedChildIssueCount$)||0<((null==(d=Q(34,24,null==b.table?null:b.table.rows$))?null:d.length)||0));B(3);C("ngIf",b.isTotalEstimatesEnabled&&Q(36,26,b.unarchivedChildIssueCount$)&&Q(37,28,b.totalDaysCount$));B(3);C("ngIf",Q(39,30,b.issueId$));B(2);C("ngIf",null!==Q(41,32,b.unarchivedChildIssueCount$))}},
dependencies:[Cx,Mx,nN,rN,BB,dF,sF,wO,kN,b7,c7,m7,Px,Ux],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:.75rem;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 p7=function(){};p7.\u0275fac=function(a){return new (a||p7)};p7.\u0275mod=uc({type:p7});p7.\u0275inj=gc({imports:[Wx,QI,HX,YN,BG,lH,WN]});
var q7=function(){};q7.\u0275fac=function(a){return new (a||q7)};q7.\u0275mod=uc({type:q7});q7.\u0275inj=gc({imports:[aA,Oz,nz,Wx,Gy,YN,BG,dC,wF,Z6,L4,iX,lH,Hy,QI,RZ,D2,xO,Y6,kP,WN,$6,HX,p7]});
var r7=function(){this.availablePanels=new Set;this.iconOnly=!1;this.buttonClassname="";this.openSidebar=new Rw;this.PANEL_OPTIONS=Unc};r7.\u0275fac=function(a){return new (a||r7)};
r7.\u0275cmp=w({type:r7,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&&(F(0,"button",0),J("click",function(){b.openSidebar.emit({panel:void 0})}),Nc(),F(1,"svg",1)(2,"g",2),H(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),G()(),M(13,Y4a,2,1,"ng-container",13),G(),Oc(),F(14,"button",14),H(15,"mat-icon",15),G(),F(16,"mat-menu",16,17),M(18,Z4a,2,2,"button",18),G());if(a&2){var c=Ce(17);le("icon-only-mode",b.iconOnly);C("ngClass",b.buttonClassname)("disabled",0===b.availablePanels.size);
B(13);C("ngIf",!b.iconOnly);B(1);le("icon-only-mode",b.iconOnly);C("ngClass",b.buttonClassname)("disabled",0===b.availablePanels.size)("matMenuTriggerFor",c);B(4);C("ngForOf",b.PANEL_OPTIONS)}},dependencies:[Fx,Gx,Cx,BB,iF,gF,lF,dF],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 Unc=[{panel:"deployments",label:"Deployment Status"},{panel:"incidents",label:"Incident Context"}];
var s7=function(a){this.issueInsightsSidebarService=a;this.iconOnly=!1;this.buttonClassname="";this.availablePanels$=this.issueInsightsSidebarService.availablePanels$;this.shouldShowInsightsGraphMenu$=this.issueInsightsSidebarService.shouldShowInsightsGraphMenu$};s7.prototype.openSidebar=function(a){this.issueInsightsSidebarService.openSidebar(a)};s7.\u0275fac=function(a){return new (a||s7)(D(B6))};
s7.\u0275cmp=w({type:s7,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&&(M(0,a5a,3,3,"ng-container",0),P(1,"async"));a&2&&C("ngIf",Q(1,1,b.availablePanels$))},dependencies:[Cx,r7,Px],encapsulation:2,changeDetection:0});
var Vnc=function(a){return{isDupe:a}},t7=function(a,b,c,d,e){wI.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 S.ReplaySubject(1);this.issue$=this.issueId$.pipe(bg(function(h){return f.fridge.watchOne(h)}));this.isDupe$=this.issue$.pipe(R(function(h){var k;return!!(null==
h?0:null==(k=h.snapshot[0])?0:k.duplicateOfIssueId)}));this.permissions$=this.issueId$.pipe(bg(function(h){return f.permissionsFridge.watchOne("issues/"+h)}));this.canEdit$=this.permissions$.pipe(R(function(h){return!(null==h||!h.writer)}),ag(!0));this.didChooseCanonical=function(h){return function(k){k=k[0];null!=k&&uJb(f.fridge,k,h).then(function(){it(f.eventsForIssueFridge,h)}).catch(f.gotErr)}};this.gotErr=function(h){f.snackBar.open(Fm(h)||"Error with network request","close",{panelClass:"error"})}};
U(t7,wI);t7.\u0275dir=wI.\u0275dir;
var b5a=function(a){var b,c;return bf(function(d){if(1==d.nextAddress)return a.disabled||a.fridge.isSaving(a.internalIssueId)||!Hk(a.canEdit$)?d.return():cf(d,(0,S.firstValueFrom)(a.isDupe$),2);if(3!=d.nextAddress)return b=d.yieldResult,cf(d,(0,S.firstValueFrom)(a.issue$),3);c=d.yieldResult;if(null==c)return d.return();b?Wnc(a,c):a.issuePicker.open({title:"Mark issue as duplicate of:",allowMultipleIds:!1,componentId:c.snapshot[0].componentId},a.didChooseCanonical(c.issueId));df(d)})},Wnc=function(a,
b){var c=b.snapshot[0].duplicateOfIssueId;null!=c&&a.fridge.removeDuplicate(c,b.issueId).then(function(){it(a.eventsForIssueFridge,b.issueId)}).catch(a.gotErr)};li.Object.defineProperties(t7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.internalIssueId=a;this.issueId$.next(a)}}});t7.\u0275fac=function(a){return new (a||t7)(D(wL),D(dM),D(LX),D(AK),D(LL))};
t7.\u0275cmp=w({type:t7,selectors:[["smart-dupe-btn"]],inputs:{disabled:"disabled",issueId:"issueId"},features:[ae],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&&(M(0,c5a,3,5,"button",0),P(1,"async"));a&2&&C("ngIf",Ie(3,Vnc,Q(1,1,b.isDupe$)))},dependencies:[Cx,BB,Px]});
var u7=function(){this.label=""};u7.prototype.toggle=function(){this.hovercardTrigger&&this.hovercardTrigger.toggle(!this.hovercardTrigger.isExpanded())};u7.\u0275fac=function(a){return new (a||u7)};
u7.\u0275cmp=w({type:u7,selectors:[["help-hover"]],viewQuery:function(a,b){a&1&&Bf(rN,5);if(a&2){var c;Af(c=Df())&&(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&&(F(0,"onedev-hovercard",null,0)(2,"div",1)(3,"div",2),
M(4,e5a,2,1,"ng-container",3),G()()(),H(5,"mat-icon",4));if(a&2){var c=Ce(1);B(2);ge("aria-label",b.label);B(2);C("ngIf",b.content);B(1);C("onedevHovercardTrigger",c)}},dependencies:[Cx,Mx,dF,nN,rN],encapsulation:2});var v7=function(){};v7.\u0275fac=function(a){return new (a||v7)};v7.\u0275mod=uc({type:v7});v7.\u0275inj=gc({imports:[Wx,wF,YN]});
var w7=function(a,b,c,d,e,f,h,k,q){wI.call(this);var v=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 S.ReplaySubject(1);this.HOTKEYS=vI;this.issue$=this.issueId$.pipe(bg(function(y){return v.issueFridge.watch(y)}));this.issueDerivedProperties$=this.issue$.pipe(R(function(y){var E,I,N,L,T,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:Zk(null==y?void 0:null==(L=y.userData)?void 0:L.notificationSubscription),retentionState:null==y?void 0:null==(T=y.aggregatedData)?void 0:T.retentionState}}));this.menuItems$=Xnc(this);this.state$=(0,S.combineLatest)([this.issueId$,
this.issueDerivedProperties$,this.menuItems$]).pipe(R(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(w7,wI);w7.\u0275dir=wI.\u0275dir;g=w7.prototype;g.updateSubscription=function(a){var b=this,c;return bf(function(d){if(1==d.nextAddress)return(c=Hk(b.issueId$))?cf(d,b.editIssueService.updateSubscription(c,a),2):d.return();eo(b.analytics,io.EDIT_ISSUE,"updateSubscription",a);df(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 bf(function(d){return 1==d.nextAddress?b.editIssueService.savingState(a).get("retention")?d.return():cf(d,(0,S.firstValueFrom)(NB(b.matDialogService.open(T3,{maxWidth:560}))),2):(c=d.yieldResult)?cf(d,b.editIssueService.updateIssueRetention(a,"INDEFINITE"),0):d.jumpTo(0)})};
g.showComponentRetentionDialog=function(a){var b=this,c;return bf(function(d){return 1==d.nextAddress?b.editIssueService.savingState(a).get("retention")?d.return():cf(d,(0,S.firstValueFrom)(NB(b.matDialogService.open(S3,{maxWidth:560}))),2):(c=d.yieldResult)?cf(d,b.editIssueService.updateIssueRetention(a,"COMPONENT_DEFAULT"),0):d.jumpTo(0)})};
g.showFlagAsSpamDialog=function(a){var b=this,c;return bf(function(d){return 1==d.nextAddress?cf(d,(0,S.firstValueFrom)(NB(b.matDialogService.open(U3,{maxWidth:560}))),2):(c=d.yieldResult)?cf(d,eRb(b.editIssueService,String(a)),0):d.jumpTo(0)})};
var Xnc=function(a){var b={requestIssueDeletion:function(){a.domSafe.openInNewTab(eZa())},showIndefiniteRetentionDialog:function(){var c=Hk(a.issueId$);c&&a.showIndefiniteRetentionDialog(c)},showComponentRetentionDialog:function(){var c=Hk(a.issueId$);c&&a.showComponentRetentionDialog(c)},submitArchivalState:function(c){var d=Hk(a.issueId$);d&&a.issueArchiveService.submitArchivalState(d,c)},showFlagAsSpamDialog:function(){var c=Hk(a.issueId$);c&&a.showFlagAsSpamDialog(c)}};return(0,S.combineLatest)([a.issue$,
a.issuePermissionService.userIsComponentAdmin$,a.issuePermissionService.issuePermissions$]).pipe(R(function(c){var d=r(c);c=d.next().value;var e=d.next().value,f;d={permissions:d.next().value,accessLevel:mxa(c),isArchived:null!=(f=null==c?void 0:c.isArchived)?f:!1,isDeleted:kxa(c),isInternal:a.activeSession.isInternalSession(),isComponentAdmin:e,retentionOverride:pxa(c),retentionState:sxa(c)};return[khb(b,d),Elc(b,d),ihb(b,d),jhb(b,d)].filter(bl)}))};
li.Object.defineProperties(w7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});w7.\u0275fac=function(a){return new (a||w7)(D(wL),D(mO),D(vH),D(MK),D(o6),D(tP),D(mS),D(ZB),D(QM))};
w7.\u0275cmp=w({type:w7,selectors:[["issue-actions"]],viewQuery:function(a,b){a&1&&Bf(u7,5);if(a&2){var c;Af(c=Df())&&(b.helpHover=c.first)}},inputs:{issueId:"issueId"},features:[ae],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&&(M(0,j5a,14,13,"ng-container",0),P(1,"async"));a&2&&C("ngIf",Q(1,1,b.state$))},dependencies:[CX,Gx,Cx,u7,dJ,s7,BB,dF,iF,gF,lF,sF,u_,OY,NY,t7,Px],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 x7=function(a){Z.call(this,a,-1,Ync)};U(x7,Z);x7.prototype.setIssueIdsList=function(a){jl(this,1,a)};x7.prototype.addIssueIds=function(a){ob(this,1,a)};var Ync=[1];x7.prototype.toObject=function(){var a=null!=this?{issueIdsList:n(jb(this,1))}:void 0;return a};x7.messageId="b.BatchIssueDigestRequest";
var y7=function(a){Z.call(this,a,-1,Znc)};U(y7,Z);y7.prototype.getIssueDigestsList=function(){return rb(this,jK,1)};var Znc=[1];y7.prototype.toObject=function(){var a=null!=this?{issueDigestsList:Cb(this.getIssueDigestsList(),hIb)}:void 0;return a};y7.messageId="b.BatchIssueDigestResponse";
var z7=function(a){this.executor=a};z7.prototype.call=function(a){var b=new x7;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:y7})};z7.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 jK};z7.\u0275fac=function(a){return new (a||z7)(t(nI))};
z7.\u0275prov=dc({token:z7,factory:z7.\u0275fac,providedIn:"root"});
var $nc={BLOCKED_BY_ISSUES:"blocked_by",PARENT_ISSUES:"parent"},A7=function(a,b){wI.call(this);var c=this;this.issueFridge=a;this.router=b;this.STATUS_TERSE=FL;this.URLS=gt;this.IssueStatus_strToTag=Yl;this.ListIssuesHovercardMode=$nc;this.mode="blocked_by";this.currentIssueId="";this.issueIds$=new S.ReplaySubject(1);this.init=new S.ReplaySubject(1);this.issues$=this.issueIds$.pipe(rf(bl),bg(function(d){return KJ(c.issueFridge,d)}),R(function(d){return"parent"===c.mode?d.filter(Dn):d.filter(Cn)}))};
U(A7,wI);A7.\u0275dir=wI.\u0275dir;A7.prototype.priorityClass=function(a){switch(a){case "P0":return"high p0";case "P1":return"high";default:return"low"}};var p5a=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([gt.ISSUE_LIST],{queryParams:{q:d}})})};
A7.prototype.ngOnInit=function(){var a=this;this.issues$.pipe(cg(this.destroyed$)).subscribe(function(){a.init.next()})};li.Object.defineProperties(A7.prototype,{issueIds:{configurable:!0,enumerable:!0,set:function(a){this.issueIds$.next(a)}}});A7.\u0275fac=function(a){return new (a||A7)(D(wL),D(Fk))};
A7.\u0275cmp=w({type:A7,selectors:[["b-list-issues-card"]],inputs:{mode:"mode",currentIssueId:"currentIssueId",issueIds:"issueIds",hovercardInstance:"hovercardInstance"},outputs:{init:"init"},features:[ae],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&&(F(0,"div",0),M(1,k5a,5,3,"div",1),M(2,l5a,5,3,"div",1),M(3,s5a,4,3,"div",2),P(4,"async"),G());a&2&&(B(1),
C("ngIf",b.mode===b.ListIssuesHovercardMode.PARENT_ISSUES),B(1),C("ngIf",b.mode===b.ListIssuesHovercardMode.BLOCKED_BY_ISSUES),B(1),C("ngIf",Q(4,3,b.issues$)))},dependencies:[Fx,Gx,Cx,dF,KI,BB,Px],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:.8125rem;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 B7=function(a,b){this.batchIssueDigests=a;this.paths=b;this.ancestors=new Map;this.issueId="";this.ListIssuesHovercardMode=$nc;this.reorderedAncestors=[];this.issueIdToTitle=new Map;this.multiParentIds=[]};B7.prototype.ngOnChanges=function(a){var b=this;a.ancestors&&aoc(this).then(function(c){b.issueIdToTitle=c})};B7.prototype.getIssueLink=function(a){return this.paths.editIssue(a)};
var aoc=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,S.firstValueFrom)(a.batchIssueDigests.call(new Set(a.reorderedAncestors)).pipe(R(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})))};B7.\u0275fac=function(a){return new (a||B7)(D(z7),D(TK))};
B7.\u0275cmp=w({type:B7,selectors:[["ancestors-breadcrumbs"]],inputs:{ancestors:"ancestors",issueId:"issueId"},features:[Cc],decls:3,vars:2,consts:[["svgIcon","account_tree_24px","title","Ancestor issues",1,"icon-xs","margin-s-right"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"muted",3,"onedevHovercardTrigger","title"],["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&&(H(0,"mat-icon",0),M(1,v5a,7,4,"ng-container",1),M(2,x5a,7,6,"ng-container",2));a&2&&(B(1),C("ngIf",1<b.multiParentIds.length),B(1),C("ngForOf",b.reorderedAncestors))},dependencies:[Gx,
Cx,dF,FW,nN,oN,rN,pN,DX,A7],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.muted{color:#5f6368;color:var(--text-muted)}[_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 C7=function(a){wI.call(this);var b=this;this.componentFridge=a;this.componentId$=new S.ReplaySubject(1);this.hidePath=!1;this.error$=this.componentFridge.error$.pipe(rf(function(c){return String(c.idOrKey)===b.componentIdInternal}));this.rawComponent$=this.componentId$.pipe(rf(bl),bg(function(c){return b.componentFridge.watch(c)}),rf(bl));this.component$=(0,S.merge)(this.error$,this.rawComponent$).pipe(R(function(c){return c.componentId&&c.name?c:{componentId:Number(c.idOrKey),name:"(unknown)"}}));
this.isArchived$=this.component$.pipe(R(function(c){return c.archived}));this.componentPath$=this.component$.pipe(R(function(c){return Go(c.componentPathInfo)}));this.init=new S.ReplaySubject(1);this.routes$=this.componentId$.pipe(R(function(c){var d={component:c};d=void 0===d?{}:d;return{createIssue:{path:"/issues/new",queryParams:d},componentSettings:Vsa(c),recentIssues:on(c)}}))};U(C7,wI);C7.\u0275dir=wI.\u0275dir;C7.prototype.ngOnInit=function(){var a=this;this.component$.pipe(Qf(),cg(this.destroyed$)).subscribe(function(){a.init.next()})};
li.Object.defineProperties(C7.prototype,{componentId:{configurable:!0,enumerable:!0,set:function(a){this.componentIdInternal=a=String(a);this.componentId$.next(a)}}});C7.\u0275fac=function(a){return new (a||C7)(D(NJ))};
C7.\u0275cmp=w({type:C7,selectors:[["b-component-path-card"]],inputs:{componentId:"componentId",hidePath:"hidePath"},outputs:{init:"init"},features:[ae],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&&(F(0,"div",0)(1,
"div",1),M(2,B5a,5,6,"div",2),M(3,C5a,9,3,"ng-container",3),P(4,"async"),M(5,D5a,7,3,"div",4),P(6,"async"),G()());a&2&&(B(2),C("ngIf",!b.hidePath),B(1),C("ngIf",Q(4,3,b.component$)),B(2),C("ngIf",Q(6,5,b.routes$)))},dependencies:[Gx,Cx,dF,CB,pT,Px],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 D7=function(a,b){var c=this;this.componentFridge=a;this.issueEditComponentService=b;this.componentId$=new S.ReplaySubject(1);this.compactMode$=new S.BehaviorSubject(!1);this.editing=!1;this.component$=this.componentId$.pipe(bg(function(d){return c.componentFridge.watch(d).pipe(ag(void 0))}));this.isArchived$=this.component$.pipe(R(function(d){return null==d?void 0:d.archived}));this.componentPath$=(0,S.combineLatest)([this.componentId$,this.component$,this.compactMode$]).pipe(R(function(d){var e=
r(d);d=e.next().value;var f=e.next().value;e=e.next().value;if(null==f)return Go({componentPathId:[Number(d)]});d=Go(f.componentPathInfo);if(e){f=[];e=0;for(var h=d.length-1;0<=h;h--){var k=d[h],q=h===d.length-1?48:32;if(e>=q)break;var v=String(k.name),y=void 0;if(e+[].concat(u(v)).length>q){var E=q-e;q="";v=void 0===v?"":v;E=void 0===E?48:E;q=void 0===q?"...":q;y=[].concat(u(v));y.length<=E||(v=E-[].concat(u(q)).length,v=y.slice(-v).join(""),null!=String.prototype.trimStart&&(v=v.trimStart()),v=
q+v);y=!0}e+=[].concat(u(v)).length;f.unshift(Object.assign({},k,{name:v,isTruncated:y}));if(y)break}d.length>f.length&&(f[0].isSpliced=!0);d=f}return d}));this.isEmpty$=this.component$.pipe(R(function(d){return!d}));this.isThinkingAndEmpty$=(0,S.combineLatest)([this.componentFridge.thinking$,this.isEmpty$]).pipe(R(function(d){var e=r(d);d=e.next().value;e=e.next().value;return d&&e}));this.isReady$=this.isThinkingAndEmpty$.pipe(R(function(d){return!d}))};D7.prototype.ngOnInit=function(){};
li.Object.defineProperties(D7.prototype,{componentId:{configurable:!0,enumerable:!0,set:function(a){null!=a&&this.componentId$.next(a)}},compactMode:{configurable:!0,enumerable:!0,set:function(a){this.compactMode$.next(a)}}});D7.\u0275fac=function(a){return new (a||D7)(D(NJ),D(v6))};
D7.\u0275cmp=w({type:D7,selectors:[["b-component-breadcrumb-chip"]],inputs:{componentId:"componentId",issueId:"issueId",compactMode:"compactMode"},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,"ngFor","ngForOf"],["href","javascript:void(0);","title","Show all Components","class","subtle-link",3,"click",4,"ngIf"],[1,"subtle-link",3,"routerLinkObj","onedevHovercardTrigger"],["card",""],[4,"onedevHovercardLazyBody"],["href","javascript:void(0);","title","Show all Components",1,"subtle-link",3,"click"],[3,"onedevIsHovercardReady","componentId"],["cardBody",""],["placeholder","Choose Component",3,"selectedComponent","isRequired","shouldFocus",
"selectedComponentChange","dropdownClosed"]],template:function(a,b){a&1&&(M(0,M5a,10,9,"b-async-data-placeholder",0),M(1,O5a,2,5,"ng-template",null,1,Jf));if(a&2){var c=Ce(2);C("ngIf",!b.editing)("ngIfElse",c)}},dependencies:[z2,Gx,Cx,BB,dF,DV,nN,oN,rN,pN,sF,C7,pT,Px],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 boc=["issueTitleEl"],coc=["issueTitleInputEl"],R5a=function(a){return{"width.px":a}},E7=function(){this.disabled=!1;this.updateTitle=new Rw;this.isEditMode=!1;this.editModeWidth=0};E7.prototype.ngDoCheck=function(){doc(this)};
var T5a=function(a){a.isEditMode=!a.isEditMode;a.isEditMode&&setTimeout(function(){return a.issueTitleInputEl.nativeElement.focus()},0)},eoc=function(a,b){a.isEditMode=!1;doc(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())}},Q5a=function(a,b){if(b)"Enter"===b.key?eoc(a,b.target.value):("Escape"===b.key||"Esc"===b.key)&&T5a(a);else{var c;b=null==(c=a.issueTitleInputEl)?void 0:c.nativeElement.value;eoc(a,b)}},
doc=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};E7.\u0275fac=function(a){return new (a||E7)};
E7.\u0275cmp=w({type:E7,selectors:[["issue-title"]],viewQuery:function(a,b){a&1&&(Bf(boc,5),Bf(coc,5));if(a&2){var c;Af(c=Df())&&(b.issueTitleEl=c.first);Af(c=Df())&&(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&&(M(0,P5a,3,2,"h3",0),M(1,S5a,3,4,"mat-form-field",1),M(2,U5a,2,1,"button",2));a&2&&(C("ngIf",!b.isEditMode),B(1),C("ngIf",
b.isEditMode),B(1),C("ngIf",b.hasAclToEdit))},dependencies:[Cx,Lx,BB,dF,sF,oC,qC],styles:["[_nghost-%COMP%]{display:flex;align-items:center}h3[_ngcontent-%COMP%]{vertical-align:middle;margin-bottom:-1px;word-break:break-word}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 F7=function(a){this.teamsService=a;this.onTeamLoaded=new S.ReplaySubject;this.teamName$=new S.BehaviorSubject("");this.isTeamLoaded=!1};F7.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(Qf(),R(function(c){return c.getName()})).subscribe(function(c){b.teamName$.next(c);b.isTeamLoaded=!0;b.onTeamLoaded.next(b.isTeamLoaded)}))};
F7.\u0275fac=function(a){return new (a||F7)(D(jM))};
F7.\u0275cmp=w({type:F7,selectors:[["b-team-chip"]],inputs:{componentId:"componentId",teamId:"teamId"},outputs:{onTeamLoaded:"onTeamLoaded"},features:[Cc],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&&(F(0,"b-async-data-placeholder",0),M(1,V5a,4,4,"div",1),P(2,
"async"),G(),F(3,"onedev-hovercard",null,2),qe(5),H(6,"b-team-card",3),re(),G());if(a&2){var c;C("isReady",b.isTeamLoaded);B(1);C("ngIf",Q(2,4,b.teamName$));B(5);C("componentId",null==b.componentId?null:b.componentId.toString())("teamId",null!==(c=null==b.teamId?null:b.teamId.toString())&&void 0!==c?c:"0")}},dependencies:[Cx,dF,z2,nN,rN,hV,Px],styles:["[_nghost-%COMP%]{min-height:22px}mat-icon[_ngcontent-%COMP%]{margin-right:4px;vertical-align:middle}"],changeDetection:0});
var G7=function(a,b,c,d,e,f){wI.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 S.ReplaySubject(1);this.internalIssueId="";this.isTeamLoaded=!1;this.ListIssuesHovercardMode=$nc;this.blockedIdsToUrlQuery=function(k){if(!(2>k.length))return{q:"blockingid:"+h.issueId}};this.HOTKEYS=vI;this.issue$=this.issueId$.pipe(bg(function(k){return h.issueFridge.watch(k)}));
this.issueTitle$=this.issue$.pipe(R(function(k){return null==k?void 0:k.snapshot[0].title}));this.starred$=this.issue$.pipe(R(function(k){var q;return Zk(null==k?void 0:null==(q=k.userData)?void 0:q.starred)}));this.componentId$=this.issue$.pipe(R(function(k){return Zk(null==k?void 0:k.snapshot[0].componentId)}));this.ancestors$=this.issue$.pipe(R(function(k){return Zk(null==k?void 0:k.ancestors)}));this.hasAncestors$=this.ancestors$.pipe(R(function(k){return!!(k&&0<k.size)}));this.teamId$=this.issue$.pipe(R(function(k){var q;
return Zk(null==k?void 0:null==(q=k.aggregatedData)?void 0:q.teamId)}));this.blockedByids$=this.issue$.pipe(R(function(k){var q;return null!=(q=null==k?void 0:k.snapshot[0].blockedByIssueId)?q:[]}));this.issuesBlockedByCount$=this.blockedByids$.pipe(bg(function(k){return KJ(h.issueFridge,k)}),R(function(k){return k.filter(Cn)}),R(function(k){return k.length}));Gk(this.issuesBlockedByCount$.pipe(R(f6a),cg(this.destroyed$)),"Blocked");this.blockedByids$.pipe(R(g6a));this.blockedByids$.pipe(R(this.blockedIdsToUrlQuery));
this.isWithinExternalComponent$=this.issuePermissionService.isWithinExternalComponent$;this.toggleStar=function(){var k=!!Hk(h.starred$);h.starToggleDisabled=!0;rJb(h.issueFridge,h.issueId,!k).pipe(Tf(),cg(h.destroyed$)).subscribe(function(){h.starToggleDisabled=!1})};this.toggleStarDebounced=vC(this.toggleStar,1E3)};U(G7,wI);G7.\u0275dir=wI.\u0275dir;
var foc=function(a,b){a.editTitleDisabled=!0;sJb(a.issueFridge,a.issueId,b).pipe(cg(a.destroyed$)).subscribe(function(){a.editTitleDisabled=!1;it(a.eventsForIssueFridge,a.issueId)})};G7.prototype.refresh=function(){this.refreshMonitor.refreshRequest.next()};li.Object.defineProperties(G7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.internalIssueId=a;this.issueId$.next(a)},get:function(){return this.internalIssueId}}});
G7.\u0275fac=function(a){return new (a||G7)(D(wL),D(mO),D(Fk),D(sL),D(p6),D(LL))};
G7.\u0275cmp=w({type:G7,selectors:[["issue-banner"]],inputs:{issueId:"issueId"},features:[ae],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","compactMode","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&&(F(0,"div",0),M(1,X5a,2,1,"ng-container",
1),P(2,"async"),G(),F(3,"div",2)(4,"button",3),J("onHotkey",function(){return Rs(b.currentSearchResults)})("click",function(){return Rs(b.currentSearchResults)}),P(5,"async"),P(6,"async"),H(7,"mat-icon",4),G(),F(8,"button",5),J("onHotkey",function(){return b.refresh()})("click",function(){return b.refresh()}),H(9,"mat-icon",6),G(),F(10,"b-star-toggle",7),J("starClicked",function(){return b.toggleStar()})("onHotkey",function(){return b.toggleStarDebounced()}),P(11,"async"),G(),F(12,"issue-title",8),
J("updateTitle",function(e){return foc(b,e)}),P(13,"async"),P(14,"async"),G(),M(15,Z5a,3,2,"div",9),P(16,"async"),F(17,"onedev-hovercard",null,10),M(19,$5a,4,7,"ng-container",11),G()(),M(20,c6a,4,7,"ng-template",null,12,Jf),M(22,e6a,4,7,"ng-template",null,13,Jf));if(a&2){var c=Ce(23),d;B(1);C("ngIf",Q(2,13,b.hasAncestors$))("ngIfElse",c);B(3);C("hotkey",b.HOTKEYS.GO_UP_TO_LIST)("matTooltip",null!==(d=Q(5,15,b.currentSearchResults.backNavigationLabel$))&&void 0!==d?d:"");ge("aria-label",Q(6,17,b.currentSearchResults.backNavigationLabel$));
B(4);C("hotkey",b.HOTKEYS.REFRESH);B(2);C("starred",Q(11,19,b.starred$))("disabled",b.starToggleDisabled)("hotkey",b.HOTKEYS.TOGGLE_STAR);B(2);C("title",Q(13,21,b.issueTitle$))("disabled",b.editTitleDisabled)("hasAclToEdit",Q(14,23,b.issuePermissionService.hasAclToEdit$));B(3);C("ngIf",Q(16,25,b.issuesBlockedByCount$))}},dependencies:[B7,Cx,Mx,D7,dJ,nN,oN,rN,pN,d5,E7,A7,BB,dF,sF,iN,F7,Px],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 i6a=function(a){return{"invisible zero-width":a}},H7=function(a){this.currentSearchResults=a;this.HOTKEYS=vI};H7.\u0275fac=function(a){return new (a||H7)(D(p6))};
H7.\u0275cmp=w({type:H7,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&&
(M(0,j6a,9,12,"ng-container",0),P(1,"async"));a&2&&C("ngIf",Q(1,1,b.currentSearchResults.issueIndex$))},dependencies:[Fx,Cx,dJ,BB,dF,sF,Px],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 I7=function(a){this.brain=a;this.INTERNAL="INTERNAL";this.issue$=this.brain.issueJs$.pipe(R(function(b){return null==b?void 0:b.issue}),rf(bl));this.retentionState$=this.issue$.pipe(R(function(b){var c;return null==(c=b.aggregatedData)?void 0:c.retentionState}));this.modifiedTime$=this.issue$.pipe(R(function(b){var c;return(null==(c=b.aggregatedData)?0:c.modifiedTimeMicros)?b.aggregatedData.modifiedTimeMicros/1E3:void 0}),rf(bl));this.accessLevel$=this.issue$.pipe(R(function(b){var c;return null==
(c=b.accessLimit)?void 0:c.accessLevel}),rf(bl));this.state$=(0,S.combineLatest)([this.retentionState$,this.modifiedTime$,this.accessLevel$]).pipe(R(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:lLa(b),isShowingPublicPartner:"INTERNAL"!==c,modifiedTime:d,accessLevel:c}}))};I7.\u0275fac=function(a){return new (a||I7)(D(kO))};
I7.\u0275cmp=w({type:I7,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&&(M(0,n6a,2,1,"ng-container",0),P(1,"async"));a&2&&C("ngIf",Q(1,1,b.state$))},dependencies:[Cx,PY,SS,Px],encapsulation:2});
var J7=function(a){this.dialogRef=a;this.WTDM_INTRO_LIGHT=bkc;this.WTDM_INTRO_DARK=ckc};J7.\u0275fac=function(a){return new (a||J7)(D(MB))};
J7.\u0275cmp=w({type:J7,selectors:[["onboarding-dialog"]],hostBindings:function(a,b){a&1&&J("keyup.esc",function(){b.dialogRef.close()},!1,sd)},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&&(H(0,"img",0)(1,"img",1),F(2,"div",
2)(3,"h1"),O(4,"Welcome to a new Issue Detail Page \ud83c\udf89"),G()(),F(5,"ul")(6,"li"),O(7," Model the work required to close any issue through a new parent-child feature, visualized as a 'tree' in the Dependencies tab. "),F(8,"a",3),O(9,"Learn more"),G()(),F(10,"li"),O(11," Break down your goals by size / complexity with new issue types - Project, Milestone, Feature, Epic, Story and Task. "),F(12,"a",4),O(13,"Learn more"),G()(),F(14,"li"),O(15," Specify the effort required to complete an issue with a new \u2018estimated effort\u2019 field. "),
F(16,"a",5),O(17,"Learn more"),G()()(),F(18,"div",2)(19,"button",6),J("click",function(){return b.dialogRef.close()}),O(20," Get started "),G()());a&2&&(C("src",b.WTDM_INTRO_LIGHT,Md),B(1),C("src",b.WTDM_INTRO_DARK,Md))},dependencies:[BB],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 K7=function(a,b){this.dialog=a;this.userPreferencesManager=b;this.shouldShow$=this.userPreferencesManager.newIssueDetailsPagePreferencesSubject$.pipe(R(function(c){return void 0===c.onboardingDialogAcknowledgedMillis}))};K7.prototype.openIfNecessary=function(){var a=this,b,c;bf(function(d){if(1==d.nextAddress)return cf(d,(0,S.firstValueFrom)(a.shouldShow$),2);b=d.yieldResult;if(!b)return d.jumpTo(0);c={maxWidth:"700px",disableClose:!0};a.dialog.open(J7,c);return cf(d,goc(a),0)})};
var goc=function(a){return bf(function(b){return cf(b,(0,S.firstValueFrom)(a.userPreferencesManager.save({newIssueDetailsPagePreferences:Object.assign({},a.userPreferencesManager.newIssueDetailsPagePreferencesSubject$.value,{onboardingDialogAcknowledgedMillis:Date.now()})})),0)})};K7.\u0275fac=function(a){return new (a||K7)(t(ZB),t(VI))};K7.\u0275prov=dc({token:K7,factory:K7.\u0275fac,providedIn:"root"});
var L7=function(){var a=this;this.pressed=new Rw;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"}};L7.\u0275fac=function(a){return new (a||L7)};
L7.\u0275cmp=w({type:L7,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&&(F(0,"button",0),J("click",function(){return b.pressed.emit()}),O(1,"Insights "),Nc(),F(2,"svg",1)(3,"g",2),H(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),G()()());a&2&&(C("title",b.getTooltip())("disabled",b.disabled),ge("aria-label",b.getTooltip()))},dependencies:[BB],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 hoc=new ld("PeoplekitClientConfig"),ioc=function(a){this.matcher=a};ioc.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};ioc.prototype.reset=function(){};
var koc=function(a){var b=new joc;this.apiEnv_=a;this.experimentsConfig_=b};
var joc=function(){};joc.prototype.getProfileId=function(){return""};
var M7=function(a){var b=new kdc;a.peopleApiEnv&&b.setPeopleApiEnv(a.peopleApiEnv);a.customAuthHeaders&&(b.customAuthHeaders_=a.customAuthHeaders);this.peopleStore=a.peopleStoreClient.create(b);this.peopleStore.warmUpCache();this.environmentConfig=new koc(b.getPeopleApiEnv())};M7.\u0275fac=function(a){return new (a||M7)(t(hoc))};M7.\u0275prov=dc({token:M7,factory:M7.\u0275fac});
var N7=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 Rw;this.sessionOptions=(new $q).setFilter(loc);this.inputSearchDelay=200;this.destroyed$=new S.ReplaySubject(1);this.inputChanged$=new S.ReplaySubject(1)};N7.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete();this.autocomplete.dispose()};
N7.prototype.ngOnInit=function(){var a=this,b=this.clientConfig.autocompleteFactory.createConfig(this.peopleKitService.environmentConfig);o6a(b,this.config);var c;this.autocomplete=null==(c=this.clientConfig.autocompleteFactory)?void 0:c.create(moc(this),this.inputEl.nativeElement,this.peopleKitService.peopleStore,b,this.sessionOptions);O$b(this.autocomplete,function(d){a.selectionChange.emit(d)});this.inputChanged$.pipe(Nf(this.inputSearchDelay)).subscribe(function(){a.search()})};
var moc=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=Nva(a.inputEl.nativeElement))?c:a.document.body).append(b)}return a.peopleKitService.autocompleteAnchor};N7.prototype.search=function(){var a=this;this.zone.runOutsideAngular(function(){a.autocomplete.search(a.inputEl.nativeElement.value,a.inputEl.nativeElement)})};
N7.prototype.cancel=function(){var a=this;this.zone.runOutsideAngular(function(){a.autocomplete.cancel()})};N7.\u0275fac=function(a){return new (a||N7)(D(hoc),D(ji),D(M7),D(pd),D(jg),D(Vv))};
N7.\u0275dir=w({type:N7,selectors:[["input","peoplekitAutocomplete",""]],hostBindings:function(a,b){a&1&&J("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 loc=SUa(1);
var noc=["popOver"],ooc=["inputBox"],O7=function(a){this.defaultAutocompleteConfig=a;this.mergedAutocompleteConfig=Object.assign({},poc,this.defaultAutocompleteConfig);this.displayUnder=!1;this.initialInputValue="";this.openPopOverOnInit=!1;this.closed=new Rw;this.inputValue="";this.sessionOptions=qoc};O7.prototype.ngAfterViewInit=function(){this.openPopOverOnInit&&this.openPopOver(this.initialInputValue)};
O7.prototype.ngOnChanges=function(a){a.autocompleteConfig&&(this.mergedAutocompleteConfig=Object.assign({},poc,this.defaultAutocompleteConfig,this.autocompleteConfig))};O7.prototype.openPopOver=function(a){var b=this;this.inputValue=a;this.popOver.open();setTimeout(function(){var c;null==(c=b.inputBox)||c.nativeElement.select()})};O7.prototype.onPopOverClose=function(a){this.closed.emit(0===a?this.inputValue:void 0);this.inputValue=""};O7.\u0275fac=function(a){return new (a||O7)(D(roc,8))};
O7.\u0275cmp=w({type:O7,selectors:[["onedev-user-picker-panel","anchor",""]],viewQuery:function(a,b){a&1&&(Bf(noc,7),Bf(ooc,5));if(a&2){var c;Af(c=Df())&&(b.popOver=c.first);Af(c=Df())&&(b.inputBox=c.first)}},inputs:{anchor:"anchor",autocompleteConfig:"autocompleteConfig",displayUnder:"displayUnder",initialInputValue:"initialInputValue",openPopOverOnInit:"openPopOverOnInit"},outputs:{closed:"closed"},features:[Cc],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&&(F(0,"onedev-pop-over-edit-panel",0,1),J("closedWithAction",function(d){return b.onPopOverClose(d)}),G(),M(2,p6a,2,3,"ng-template",null,2,Jf));if(a&2){var c=Ce(3);C("anchor",b.anchor)("displayUnder",b.displayUnder)("editorTemplate",
c)}},dependencies:[Jg,ly,ry,U4,N7],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 roc=new ld("user-picker-autocomplete-config"),poc={showSuggestions:!0,moveAutocompleteAboveAnchorIfOffscreen:!0,density:2},qoc=(new $q).setFilter(Xr(SUa(1),new ioc(function(a){return 0<=a.indexOf("-pager")||0<=a.indexOf("+pager")||0<=a.indexOf("lifeguard-ng")})));
var r6a=function(a){return{$implicit:a}},soc=0,P7=function(){this.val="";this.disabled=!1;this.emailChange=new Rw;this.popOverOpen=this.active=!1;this.contentId="onedev-user-picker-"+soc;this.onChange=function(){};this.onTouched=function(){};soc++};U(P7,$P);g=P7.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};
li.Object.defineProperties(P7.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});P7.\u0275fac=function(a){return new (a||P7)};
P7.\u0275cmp=w({type:P7,selectors:[["onedev-user-picker"]],viewQuery:function(a,b){a&1&&Bf(O7,7);if(a&2){var c;Af(c=Df())&&(b.popOver=c.first)}},inputs:{email:"email",disabled:"disabled",labelledById:"labelledById",selectedUserTemplate:"selectedUserTemplate",autocompleteConfig:"autocompleteConfig"},outputs:{emailChange:"emailChange"},exportAs:["onedevUserPicker"],features:[Ge([{provide:$P,useExisting:bc(function(){return P7}),multi:!0},{provide:Ex,useExisting:bc(function(){return P7}),multi:!0}]),
ae],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&&(F(0,"button",0,1),J("focus",function(){return b.active=!0})("blur",function(){return b.active=!1})("click",function(){return b.openPopOver()}),M(2,s6a,2,4,"ng-container",2),M(3,t6a,1,1,"ng-template",null,3,Jf),M(5,u6a,2,0,"svg",4),G(),F(6,"onedev-user-picker-panel",5),J("closed",function(e){return b.onPopOverClose(e)}),G());if(a&2){var c=Ce(1),d=Ce(4);le("active",b.isActive());ge("id",b.contentId)("aria-labelledby",b.contentAriaLabelledBy());B(2);C("ngIf",b.selectedUserTemplate)("ngIfElse",
d);B(3);C("ngIf",!b.disabled);B(1);C("anchor",c)("autocompleteConfig",b.autocompleteConfig)}},dependencies:[Cx,Mx,O7],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 toc=["picker"],Q7=function(){this.disabled=!1;this.emailChange=new Rw;this.userEmail=""};U(Q7,$P);Q7.prototype.openPopOver=function(){this.picker.openPopOver()};Q7.prototype.isActive=function(){return this.picker.isActive()};li.Object.defineProperties(Q7.prototype,{user:{configurable:!0,enumerable:!0,set:function(a){this.userEmail=Ql(a)||""}}});Q7.\u0275fac=function(){var a;return function(b){return(a||(a=ed(Q7)))(b||Q7)}}();
Q7.\u0275cmp=w({type:Q7,selectors:[["b-user-picker"]],viewQuery:function(a,b){a&1&&Bf(toc,7);if(a&2){var c;Af(c=Df())&&(b.picker=c.first)}},inputs:{user:"user",teamId:"teamId",disabled:"disabled",labelledById:"labelledById"},outputs:{emailChange:"emailChange"},exportAs:["bUserPicker"],features:[Ge([{provide:$P,useExisting:bc(function(){return Q7}),multi:!0}]),ae],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&&(F(0,"onedev-user-picker",0,1),J("emailChange",function(d){return b.emailChange.emit(d)}),G(),M(2,w6a,1,1,"ng-template",null,2,Jf));if(a&2){var c=Ce(3);C("email",b.userEmail)("disabled",b.disabled)("labelledById",b.labelledById)("selectedUserTemplate",c)}},dependencies:[Cx,GS,P7],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 R7=function(a){Z.call(this,a,-1,uoc)};U(R7,Z);R7.prototype.getName=function(){return V(this,1)};R7.prototype.setName=function(a){return vl(this,1,a)};var voc=function(a){Z.call(this,a)};U(voc,Z);var uoc=[2];R7.prototype.toObject=function(){return woc(void 0,this)};var woc=function(a,b){if(null!=b){var c={name:V(b,1),buganizerOrCustomStatusesList:Cb(rb(b,voc,2),xoc,a)};a&&(c.$jspbMessageInstance=b);return c}},yoc=[1,2];voc.prototype.toObject=function(){return xoc(void 0,this)};
var xoc=function(a,b){if(null!=b){var c={buganizerStatus:n(Rr(b,1,yoc)),customStatusId:n(Rr(b,2,yoc))};a&&(c.$jspbMessageInstance=b);return c}};
var zoc=function(a){Z.call(this,a)};U(zoc,Z);g=zoc.prototype;g.getId=function(){return ej(this,1)};g.setId=function(a){return Uk(this,1,a)};g.getName=function(){return V(this,2)};g.setName=function(a){return vl(this,2,a)};g.setColor=function(a){return vl(this,4,a)};g.getCustomField=function(){return m(this,S7,6)};g.setCustomField=function(a){return Bb(this,6,a)};var S7=function(a){Z.call(this,a)};U(S7,Z);S7.prototype.getCustomFieldId=function(){return ej(this,1)};
S7.prototype.setCustomFieldId=function(a){return Uk(this,1,a)};S7.prototype.getCustomFieldValue=function(){return V(this,2)};S7.prototype.setCustomFieldValue=function(a){return vl(this,2,a)};zoc.prototype.toObject=function(){return Aoc(void 0,this)};var Aoc=function(a,b){if(null!=b){var c={id:ej(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}};S7.prototype.toObject=function(){return Boc(void 0,this)};
var Boc=function(a,b){if(null!=b){var c={customFieldId:ej(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 T7=function(a){Z.call(this,a)};U(T7,Z);T7.prototype.getResourceId=function(){return ej(this,2)};T7.prototype.setResourceId=function(a){Uk(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:Cb(rb(b,T7,3),U7,a),savedQueryMappingsList:Cb(rb(b,T7,9),U7,a),epicMappingsList:Cb(rb(b,T7,4),U7,a),storyMappingsList:Cb(rb(b,T7,5),U7,a),resourceUpdateFailuresList:Cb(rb(b,Eoc,6),Goc,a),migrationAttempts:ej(b,7)};a&&(c.$jspbMessageInstance=b);return c}};T7.prototype.toObject=function(){return U7(void 0,this)};
var U7=function(a,b){if(null!=b){var c={kanbanId:V(b,1),resourceId:ej(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,sj,3)};g.setStart=function(a){return Bb(this,3,a)};g.getEnd=function(){return m(this,sj,4)};g.setEnd=function(a){return Bb(this,4,a)};var Joc=function(a){Z.call(this,a)};U(Joc,Z);Joc.prototype.setWorkItemId=function(a){return vl(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:Vu(a,b.getStart()),end:Vu(a,b.getEnd()),expectedWorkItemUpdatesCount:ej(b,5),workItemUpdatesCount:ej(b,6),workItemUpdateFailuresList:Cb(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 V7=function(a){Z.call(this,a)};U(V7,Z);V7.prototype.getId=function(){return ej(this,1)};V7.prototype.setId=function(a){return Uk(this,1,a)};var Noc=function(a){Z.call(this,a)};U(Noc,Z);Noc.prototype.setWorkItemId=function(a){return vl(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 W7=function(a){Z.call(this,a)};U(W7,Z);W7.prototype.getId=function(){return ej(this,qb(this,X7,1))};
W7.prototype.setId=function(a){return co(this,1,X7,a)};var Y7=function(a){Z.call(this,a)};U(Y7,Z);Y7.prototype.getQuery=function(){return V(this,1)};Y7.prototype.setQuery=function(a){return vl(this,1,a)};var Z7=function(a){Z.call(this,a)};U(Z7,Z);Z7.prototype.getId=function(){return V(this,1)};Z7.prototype.setId=function(a){return vl(this,1,a)};var $7=function(a){Z.call(this,a)};U($7,Z);$7.prototype.getId=function(){return ej(this,1)};$7.prototype.setId=function(a){return Uk(this,1,a)};
var a8=[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,yl(b,V7,1,a8)),drillinScope:Soc(a,yl(b,Noc,2,a8)),goalsScope:Toc(a,yl(b,Ooc,3,a8)),inboxScope:Uoc(a,yl(b,Poc,4,a8)),iterationScope:Voc(a,yl(b,W7,5,a8)),searchScope:Woc(a,yl(b,Y7,6,a8)),tagScope:Xoc(a,yl(b,Z7,7,a8)),savedQueryScope:Yoc(a,yl(b,$7,8,a8))};a&&(c.$jspbMessageInstance=b);return c}};V7.prototype.toObject=function(){return Roc(void 0,this)};
var Roc=function(a,b){if(null!=b){var c={id:ej(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}},X7=[1,2,3];W7.prototype.toObject=function(){return Voc(void 0,this)};var Voc=function(a,b){if(null!=b){var c={id:n(Rr(b,1,X7)),iterationType:n(Rr(b,2,X7)),iterationTag:n(Rr(b,3,X7))};a&&(c.$jspbMessageInstance=b);return c}};Y7.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}};
Z7.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}};$7.prototype.toObject=function(){return Yoc(void 0,this)};var Yoc=function(a,b){if(null!=b){var c={id:ej(b,1)};a&&(c.$jspbMessageInstance=b);return c}};
var b8=function(a){Z.call(this,a)};U(b8,Z);b8.prototype.getScope=function(){return m(this,Moc,2)};b8.prototype.setScope=function(a){return Bb(this,2,a)};b8.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 c8=function(a){Z.call(this,a)};U(c8,Z);g=c8.prototype;g.getComponentId=function(){return ej(this,qb(this,d8,1))};g.setComponentId=function(a){return co(this,1,d8,a)};g.hasComponentId=function(){return 1===pb(this,d8)};g.getHotlistId=function(){return ej(this,qb(this,d8,2))};g.setHotlistId=function(a){co(this,2,d8,a)};var d8=[1,2];c8.prototype.toObject=function(){return $oc(void 0,this)};
var $oc=function(a,b){if(null!=b){var c={componentId:n(Rr(b,1,d8)),hotlistId:n(Rr(b,2,d8)),syncStartTime:Vu(a,m(b,sj,3)),syncEndTime:Vu(a,m(b,sj,4))};a&&(c.$jspbMessageInstance=b);return c}};
var e8=function(a){Z.call(this,a,-1,apc)};U(e8,Z);e8.prototype.getName=function(){return V(this,1)};e8.prototype.setName=function(a){return vl(this,1,a)};e8.prototype.getDescription=function(){return V(this,2)};e8.prototype.setDescription=function(a){return vl(this,2,a)};var bpc=function(a){Z.call(this,a)};U(bpc,Z);var dpc=function(a){Z.call(this,a,-1,cpc)};U(dpc,Z);var epc=function(a){Z.call(this,a)};U(epc,Z);var gpc=function(a){Z.call(this,a,-1,fpc)};U(gpc,Z);
var f8=function(a){Z.call(this,a,-1,hpc)};U(f8,Z);f8.prototype.setAddHotlistIdsList=function(a){jl(this,2,a)};f8.prototype.setRemoveHotlistIdsList=function(a){jl(this,3,a)};var g8=function(a){Z.call(this,a)};U(g8,Z);g8.prototype.getComponentId=function(){return ej(this,1)};g8.prototype.setComponentId=function(a){return Uk(this,1,a)};var h8=function(a){Z.call(this,a)};U(h8,Z);h8.prototype.getStatus=function(){return X(this,1,0)};h8.prototype.setStatus=function(a){return sl(this,1,a)};
var i8=function(a){Z.call(this,a)};U(i8,Z);i8.prototype.getPriority=function(){return X(this,1,0)};i8.prototype.setPriority=function(a){return sl(this,1,a)};var j8=function(a){Z.call(this,a)};U(j8,Z);j8.prototype.getSeverity=function(){return X(this,1,0)};j8.prototype.setSeverity=function(a){return sl(this,1,a)};var k8=function(a){Z.call(this,a)};U(k8,Z);k8.prototype.getItemType=function(){return X(this,1,0)};k8.prototype.setItemType=function(a){sl(this,1,a)};var l8=function(a){Z.call(this,a)};
U(l8,Z);l8.prototype.getAssignee=function(){return V(this,2)};l8.prototype.setAssignee=function(a){vl(this,2,a)};var jpc=function(a){Z.call(this,a,-1,ipc)};U(jpc,Z);var m8=function(a){Z.call(this,a)};U(m8,Z);m8.prototype.getComment=function(){return V(this,2)};m8.prototype.setComment=function(a){return vl(this,2,a)};var apc=[3];e8.prototype.toObject=function(){return kpc(void 0,this)};
var kpc=function(a,b){if(null!=b){var c={name:V(b,1),description:V(b,2),subActionsList:Cb(rb(b,bpc,3),lpc,a)};a&&(c.$jspbMessageInstance=b);return c}},n8=[1,2,3,4,5,6,7,8,9,10,11,12];bpc.prototype.toObject=function(){return lpc(void 0,this)};
var lpc=function(a,b){if(null!=b){var c={goalAction:mpc(a,yl(b,dpc,1,n8)),iterationsBacklogsAction:npc(a,yl(b,epc,2,n8)),tagsAction:opc(a,yl(b,gpc,3,n8)),hotlistsAction:ppc(a,yl(b,f8,4,n8)),componentsAction:qpc(a,yl(b,g8,5,n8)),statusAction:rpc(a,yl(b,h8,6,n8)),priorityAction:spc(a,yl(b,i8,7,n8)),severityAction:tpc(a,yl(b,j8,8,n8)),assigneeAction:upc(a,yl(b,l8,9,n8)),ccAction:vpc(a,yl(b,jpc,10,n8)),commentAction:wpc(a,yl(b,m8,11,n8)),typeAction:xpc(a,yl(b,k8,12,n8))};a&&(c.$jspbMessageInstance=b);
return c}},cpc=[2,3];dpc.prototype.toObject=function(){return mpc(void 0,this)};var mpc=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}};epc.prototype.toObject=function(){return npc(void 0,this)};var npc=function(a,b){if(null!=b){var c={promptUser:W(b,1),iterationId:ej(b,2),iteration:V(b,3),removeIteration:W(b,4)};a&&(c.$jspbMessageInstance=b);return c}},fpc=[2,3];
gpc.prototype.toObject=function(){return opc(void 0,this)};var opc=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}},hpc=[2,3];f8.prototype.toObject=function(){return ppc(void 0,this)};var ppc=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}};g8.prototype.toObject=function(){return qpc(void 0,this)};
var qpc=function(a,b){if(null!=b){var c={componentId:ej(b,1),promptUser:W(b,2)};a&&(c.$jspbMessageInstance=b);return c}};h8.prototype.toObject=function(){return rpc(void 0,this)};var rpc=function(a,b){if(null!=b){var c={status:X(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};i8.prototype.toObject=function(){return spc(void 0,this)};var spc=function(a,b){if(null!=b){var c={priority:X(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};j8.prototype.toObject=function(){return tpc(void 0,this)};
var tpc=function(a,b){if(null!=b){var c={severity:X(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};k8.prototype.toObject=function(){return xpc(void 0,this)};var xpc=function(a,b){if(null!=b){var c={itemType:X(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};l8.prototype.toObject=function(){return upc(void 0,this)};var upc=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}},ipc=[2,3];
jpc.prototype.toObject=function(){return vpc(void 0,this)};var vpc=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}};m8.prototype.toObject=function(){return wpc(void 0,this)};var wpc=function(a,b){if(null!=b){var c={promptUser:W(b,1),comment:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var o8=function(a){Z.call(this,a)};U(o8,Z);g=o8.prototype;g.getUser=function(){return yl(this,PH,1,p8)};g.setUser=function(a){yu(this,1,p8,a)};g.getGroup=function(){return yl(this,PH,2,p8)};g.setGroup=function(a){yu(this,2,p8,a)};g.getAlias=function(){return V(this,qb(this,p8,3))};g.setAlias=function(a){co(this,3,p8,a)};var p8=[1,2,3];o8.prototype.toObject=function(){return q8(void 0,this)};
var q8=function(a,b){if(null!=b){var c={user:QH(a,b.getUser()),group:QH(a,b.getGroup()),alias:n(Rr(b,3,p8))};a&&(c.$jspbMessageInstance=b);return c}};
var zpc=function(a){Z.call(this,a,-1,ypc)};U(zpc,Z);g=zpc.prototype;g.getInheritance=function(){return X(this,1,0)};g.setInheritance=function(a){sl(this,1,a)};g.getAdminsList=function(){return rb(this,o8,2)};g.setAdminsList=function(a){Ab(this,2,a)};g.getInheritedAdminsList=function(){return rb(this,o8,3)};g.getEditorsList=function(){return rb(this,o8,4)};g.setEditorsList=function(a){Ab(this,4,a)};g.getImplicitEditorsList=function(){return rb(this,o8,5)};
g.getAppendersList=function(){return rb(this,o8,6)};g.setAppendersList=function(a){Ab(this,6,a)};g.getImplicitAppendersList=function(){return rb(this,o8,7)};g.getReadersList=function(){return rb(this,o8,8)};g.setReadersList=function(a){Ab(this,8,a)};g.getImplicitReadersList=function(){return rb(this,o8,9)};g.getImplicitAccess=function(){return X(this,10,0)};g.setImplicitAccess=function(a){return sl(this,10,a)};g.getRestrictedReadersList=function(){return rb(this,o8,11)};
g.setRestrictedReadersList=function(a){Ab(this,11,a)};g.getRestrictedPlusReadersList=function(){return rb(this,o8,12)};g.setRestrictedPlusReadersList=function(a){Ab(this,12,a)};var ypc=[2,3,4,5,6,7,8,9,11,12];zpc.prototype.toObject=function(){return Apc(void 0,this)};
var Apc=function(a,b){if(null!=b){var c={inheritance:X(b,1,0),adminsList:Cb(b.getAdminsList(),q8,a),inheritedAdminsList:Cb(b.getInheritedAdminsList(),q8,a),editorsList:Cb(b.getEditorsList(),q8,a),implicitEditorsList:Cb(b.getImplicitEditorsList(),q8,a),appendersList:Cb(b.getAppendersList(),q8,a),implicitAppendersList:Cb(b.getImplicitAppendersList(),q8,a),readersList:Cb(b.getReadersList(),q8,a),implicitReadersList:Cb(b.getImplicitReadersList(),q8,a),implicitAccess:X(b,10,0),restrictedReadersList:Cb(b.getRestrictedReadersList(),
q8,a),restrictedPlusReadersList:Cb(b.getRestrictedPlusReadersList(),q8,a)};a&&(c.$jspbMessageInstance=b);return c}};
var ht=function(a){Z.call(this,a,-1,Bpc)};U(ht,Z);g=ht.prototype;g.getWorkspaceId=function(){return ej(this,1)};g.getName=function(){return V(this,2)};g.setName=function(a){return vl(this,2,a)};g.getTimeZone=function(){return m(this,uG,8)};g.setTimeZone=function(a){return Bb(this,8,a)};g.hasTimeZone=function(){return lj(this,8)};g.getMembersList=function(){return rb(this,r8,9)};g.getBookmarkGroupId=function(){return ej(this,14)};g.setBookmarkGroupId=function(a){Uk(this,14,a)};
var Cpc=function(a){return jo(ht,a)},Epc=function(a){Z.call(this,a,-1,Dpc)};U(Epc,Z);var s8=function(a){Z.call(this,a)};U(s8,Z);s8.prototype.getHotlistId=function(){return ej(this,1)};s8.prototype.setHotlistId=function(a){Uk(this,1,a)};var r8=function(a){Z.call(this,a)};U(r8,Z);r8.prototype.getEmail=function(){return V(this,1)};r8.prototype.setEmail=function(a){return vl(this,1,a)};var Bpc=[5,9,13,15,16,17,18],Fpc=[6,7];ht.prototype.toObject=function(){return Gpc(void 0,this)};
var Gpc=function(a,b){if(null!=b){var c={workspaceId:ej(b,1),name:V(b,2),defaultComponentId:ej(b,3),inboxQuery:V(b,4),componentIdsList:n(jb(b,5)),componentBased:Hpc(a,yl(b,Epc,6,Fpc)),hotlistBased:Ipc(a,yl(b,s8,7,Fpc)),timeZone:ezb(a,b.getTimeZone()),membersList:Cb(b.getMembersList(),Jpc,a),trashComponentId:ej(b,10),defaultHotlistAcls:Apc(a,m(b,zpc,11)),updateTime:Vu(a,m(b,sj,12)),triageActionsList:Cb(rb(b,e8,13),kpc,a),bookmarkGroupId:ej(b,14),defaultSavedViewsList:Cb(rb(b,b8,15),Zoc,a),tagMigrationJobDatasList:Cb(rb(b,
Ioc,16),Koc,a),kanbanMigrationJobData:Foc(a,m(b,Doc,19)),customStatusesList:Cb(rb(b,zoc,17),Aoc,a),boardColumnsList:Cb(rb(b,R7,18),woc,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:Cb(rb(b,c8,2),$oc,a)};a&&(c.$jspbMessageInstance=b);return c}};s8.prototype.toObject=function(){return Ipc(void 0,this)};
var Ipc=function(a,b){if(null!=b){var c={hotlistId:ej(b,1),sourceSyncState:$oc(a,m(b,c8,2))};a&&(c.$jspbMessageInstance=b);return c}};r8.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 ej(this,1)};Kpc.prototype.toObject=function(){var a=null!=this?{workspaceId:ej(this,1)}:void 0;return a};
var Lpc=new DG("/google.corp.devtools.worktracker.v1.WorkspaceService/Get",Kpc,ht,function(a){return a.serialize()},Cpc);
var t8=function(a){Z.call(this,a)};U(t8,Z);t8.prototype.setWorkItemId=function(a){return co(this,1,Mpc,a)};var Npc=function(a){Z.call(this,a)};U(Npc,Z);var Mpc=[1,2];t8.prototype.toObject=function(){if(null!=this){var a=n(Rr(this,1,Mpc));var b=null!=yl(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:Cb(rb(this,ht,1),Gpc)}:void 0;return a};
var Qpc=new DG("/google.corp.devtools.worktracker.v1.WorkspaceService/List",t8,Ppc,function(a){return a.serialize()},function(a){return jo(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,ht,1)),updateMask:hH(void 0,m(this,gH,2))}:void 0;return a};
var Spc=new DG("/google.corp.devtools.worktracker.v1.WorkspaceService/Update",Rpc,ht,function(a){return a.serialize()},Cpc);
var Tpc=function(a){var b={withCredentials:!0,suppressCorsPreflight:!0};b=b||{};b.format="jspb";this.client_=new eH(b);this.hostname_=a};Tpc.prototype.get=function(a,b){return zG(this.client_,this.hostname_+"/$rpc/google.corp.devtools.worktracker.v1.WorkspaceService/Get",a,b||{},Lpc)};Tpc.prototype.list=function(a,b){return zG(this.client_,this.hostname_+"/$rpc/google.corp.devtools.worktracker.v1.WorkspaceService/List",a,b||{},Qpc)};
Tpc.prototype.update=function(a,b){return zG(this.client_,this.hostname_+"/$rpc/google.corp.devtools.worktracker.v1.WorkspaceService/Update",a,b||{},Spc)};
var Upc={},Vpc;Upc.Authorization=null!=(Vpc=Oo([]))?Vpc:"";Upc["X-Goog-Api-Key"]="AIzaSyAVSCxcE30nYSaySrZXBXCTumqIjorZA2c";Upc["X-Goog-AuthUser"]="0";
var u8=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,S.of)([]):(0,S.from)(a.client.list((new t8).setWorkItemId("b/"+
b),Upc)).pipe(R(x6a(b)),Mf(function(){return(0,S.of)([])}))};u8.\u0275fac=function(a){return new (a||u8)(t(vH),t(v8))};u8.\u0275prov=dc({token:u8,factory:u8.\u0275fac,providedIn:"root"});var v8=function(){};v8.prototype.create=function(a){return new Tpc(a)};v8.\u0275fac=function(a){return new (a||v8)};v8.\u0275prov=dc({token:v8,factory:v8.\u0275fac,providedIn:"root"});
var Xpc=0,w8=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++};w8.prototype.toggleExpansion=function(){var a=this;this.isExpanded||setTimeout(function(){return a.elementRef.nativeElement.scrollIntoView({behavior:"smooth",block:"nearest"})},200);this.isExpanded=!this.isExpanded};
li.Object.defineProperties(w8.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"}}});w8.\u0275fac=function(a){return new (a||w8)(D(pd))};
w8.\u0275cmp=w({type:w8,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&&(xe(),F(0,"div",0)(1,"button",1),J("click",function(){return b.toggleExpansion()})("mouseup",
function(){b.elementRef.nativeElement.querySelector(".title-bar").blur()}),F(2,"span",2),O(3),G(),H(4,"mat-icon",3),G(),F(5,"div",4),ye(6),G()());a&2&&(B(1),ge("id",b.headerId)("aria-expanded",b.isExpanded)("aria-controls",b.id),B(2),Ee(b.title),B(1),C("@expandCollapseIcon",b.expandedState),B(1),C("@expandCollapseContent",b.expandedState),ge("id",b.id)("aria-labelledby",b.headerId))},dependencies:[dF],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:[Eh("expandCollapseContent",[Hh("expanded",Gh({height:"*",visibility:"visible"})),Hh("collapsed",Gh({height:"0",visibility:"hidden"})),Ih("expanded <=> collapsed",[Fh("200ms")])]),Eh("expandCollapseIcon",[Hh("expanded",Gh({transform:"rotate(-180deg)"})),Hh("collapsed",Gh({transform:"*"})),Ih("expanded <=> collapsed",[Fh("200ms")])])]}});
var A6a=function(a){return[a]},D6a=function(){return[]},p7a=function(a){return{$implicit:a}},x8=function(a,b,c,d,e,f,h,k,q,v,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=v;this.changelistApi=y;this.issueMarkAsDuplicateDialogService=E;this.analytics=I;this.issueInsightsSidebarService=N;this.issueId$=
new S.ReplaySubject(1);this.distinctIssueId$=this.issueId$.pipe(Pf());this.issue$=this.distinctIssueId$.pipe(bg(function(T){return L.editIssueService.editableIssue$(T)}));this.enablePeoplekitAc=xH(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=vI;this.trackCustomField=function(T,Y){return"{"+Y.componentId+", "+Y.customFieldId+"}"};this.FieldType=$Xb;this.ListFieldType=SYb;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(R(function(T){return!L.activeSession.isExternalSession()&&xH(L.activeSession,"enableWtdmMvpUi")&&!T}));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(R(PYa));this.component$=this.issueDetailsBrain.component$;this.effort$=this.issueDetailsBrain.effort$;this.issueFields$=this.distinctIssueId$.pipe(R(function(T){return L.editIssueService.issueFields(T)}),Zf({refCount:!0,bufferSize:1}));this.isForgottenFourPrimary$=this.issueFields$.pipe(bg(function(T){return T.isForgottenFourPrimary$}));
this.showHiddenFieldsLabel$=this.issueFields$.pipe(bg(function(T){return T.showHiddenFieldsLabel$}));this.hasHiddenFields$=this.issueFields$.pipe(bg(function(T){return T.hasHiddenFields$}));this.isChangelistPrimary$=this.issueFields$.pipe(bg(function(T){return T.isChangelistPrimary$}));this.isSeverityPrimary$=this.issueFields$.pipe(bg(function(T){return T.isSeverityPrimary$}));this.isSloStatusPrimary$=this.issueFields$.pipe(bg(function(T){return T.isSloStatusPrimary$}));this.hiddenCustomFields$=this.issueFields$.pipe(bg(function(T){return T.hiddenCustomFields$}));
this.visibleCustomFields$=this.issueFields$.pipe(bg(function(T){return T.visibleCustomFields$}));this.issueQuickActions$=this.distinctIssueId$.pipe(R(function(T){return L.editIssueService.issueQuickActions(T)}),Zf({refCount:!0,bufferSize:1}));this.issueAssigneeQuickAction$=this.issueQuickActions$.pipe(bg(function(T){return T.issueAssigneeQuickAction$}));this.issueStatusQuickAction$=this.issueQuickActions$.pipe(bg(function(T){return T.issueStatusQuickAction$}));this.priorityChoices=this.constants.priorities.map(function(T){return{value:T,
displayText:T}});this.severityChoices=this.constants.severities.map(function(T){return{value:T,displayText:T}});this.typeChoices=this.constants.editIssueTypeChoices;this.teamHovercardInputs$=(0,S.combineLatest)([this.issueDetailsBrain.componentId$,this.teamId$]).pipe(R(function(T){var Y=r(T);T=Y.next().value;Y=Y.next().value;return{teamId:Y?String(Y):"0",componentId:T?String(T):"0"}}));this.isTeamWarningDismissed$=(0,S.combineLatest)([this.issue$,this.userPreferencesManager.preferences$]).pipe(R(function(T){T=
r(T);var Y=T.next().value,ka,ha;return null==(ka=T.next().value.teamWarningPreferences)?void 0:null==(ha=ka.componentTeamWarnings)?void 0:ha.some(function(ra){return ra.componentId===Y.componentId})}));this.shouldDisplayTeamSuggestions$=(0,S.combineLatest)([this.issuePermissionService.userIsComponentAdmin$,this.isTeamWarningDismissed$,this.teamWarningType$]).pipe(R(function(T){var Y=r(T);T=Y.next().value;var ka=Y.next().value;Y=Y.next().value;return xH(L.activeSession,"enableTeamSuggestions")&&T&&
!ka&&("MISSING"===Y||"DELETED"===Y)}));this.statusChoices$=this.canonicalIssueId$.pipe(R(function(T){return[].concat(u(yJb.filter(function(Y){return"DUPLICATE"!==Y.value})),[{value:"DUPLICATE",displayText:T?"Duplicate of "+T:"Duplicate"}])}));this.workspaces$=this.distinctIssueId$.pipe(bg(function(T){return Wpc(L.workspaceService,Number(T))}),Zf({refCount:!0,bufferSize:1}));this.pendingChangelists$=oJb(this.refreshMonitor,this.distinctIssueId$).pipe(bg(function(T){return L.changelistApi.getPendingChangelistsForIssue(T)}),
R(function(T){return T.changelistNumbers}),R(function(T){return{cls:T,hasError:!1}}),Mf(function(){return(0,S.of)({cls:[],hasError:!0})}),Zf({refCount:!0,bufferSize:1}));this.reconcileView={assignee:function(T){var Y,ka;T.value=null!=(ka=null==(Y=Hk(L.issue$))?void 0:Y.assignee)?ka:""},reporter:function(T){var Y,ka;T.value=null!=(ka=null==(Y=Hk(L.issue$))?void 0:Y.reporter)?ka:""},verifier:function(T){var Y,ka;T.value=null!=(ka=null==(Y=Hk(L.issue$))?void 0:Y.verifier)?ka:""},ccs:function(T){var Y,
ka;T.values=null!=(ka=null==(Y=Hk(L.issue$))?void 0:Y.cc)?ka:[]}}};x8.prototype.ngOnChanges=function(){this.issueId$.next(this.issueId)};
var i7a=function(a){var b=a.issuePermissionService.isCurrentUserCCd();eo(a.analytics,io.EDIT_ISSUE,"toggleCC (appbar)",(!b).toString());var c=a.editIssueService.editableIssue(a.issueId),d=[];d=b?c.cc.filter(function(e){return!lO(a.issuePermissionService,e)}):[].concat(u(c.cc),[a.activeSession.getUserEmail()]);return dRb(a.editIssueService,a.issueId,d)},X6a=function(a,b,c){return kt(a.editIssueService,a.issueId,c).finally(function(){a.reconcileView.assignee(b)})},G6a=function(a,b,c){return I6a(a.editIssueService,
a.issueId,c).finally(function(){a.reconcileView.reporter(b)})},c7a=function(a,b,c){return e7a(a.editIssueService,a.issueId,c).finally(function(){a.reconcileView.verifier(b)})},e8a=function(a,b,c){return dRb(a.editIssueService,a.issueId,c).finally(function(){a.reconcileView.ccs(b)})},jt=function(a,b){eo(a.analytics,io.EDIT_ISSUE,"quickAction (sidebar)",null==b?void 0:b.displayText);return a.editIssueService.performQuickAction(a.issueId,b)},d8a=function(a,b){var c;return bf(function(d){return(c=xBb(b))?
"DUPLICATE"===c?d.return($1a(a.issueMarkAsDuplicateDialogService,a.issueId)):d.return(bRb(a.editIssueService,a.issueId,c)):d.return()})};x8.prototype.isSaving$=function(a){var b=this;return this.distinctIssueId$.pipe(R(function(c){return b.editIssueService.savingState(c)}),bg(function(c){return Qs(c.propertiesBeingSaved,Tn(String(a)))}))};x8.\u0275fac=function(a){return new (a||x8)(D(vH),D(mS),D(wL),D(mO),D(kO),D(XH),D(sL),D(VI),D(rP),D(u8),D(dV),D(A6),D(QM),D(B6))};
x8.\u0275cmp=w({type:x8,selectors:[["edit-issue-metadata"]],inputs:{issueId:"issueId"},features:[Cc],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&&(M(0,f8a,84,115,"ng-container",0),P(1,"async"));a&2&&C("ngIf",Q(1,1,b.issue$))},dependencies:[w8,Gx,Cx,Mx,wV,$U,W4,R4,S4,T4,dJ,nN,oN,rN,pN,L7,DX,g5,uV,dF,sF,cP,O3,Q7,RS,GN,JM,Px],styles:["hr.hidden-fields-separator[_ngcontent-%COMP%]{margin-left:16px;margin-right:10px}.bv2-field-label-spacer[_ngcontent-%COMP%]{width:23%;display:inline-block;min-width:70px;max-width:120px;padding-right:10px}\n/*# sourceMappingURL=edit_issue_metadata.css.map */"]});
var Ypc={},Zpc=(Ypc.COMFORTABLE=330,Ypc.COZY=300,Ypc.COMPACT=270,Ypc),y8=function(a){wI.call(this);var b=this;this.userPreferencesManager=a;this.RIGHT_SIDEBAR_MIN_WIDTH=245;this.density$=this.userPreferencesManager.preferences$.pipe(R(function(c){var d;return null==(d=c.themePreferences)?void 0:d.density}));this.sidebarWidthPreference$=this.userPreferencesManager.preferences$.pipe(R(function(c){var d;return null==(d=c.layoutPreferences)?void 0:d.rightSidebarWidth}));this.rightSidebarWidthChanged$=
new S.Subject;this.currentSidebarWidth$=(0,S.combineLatest)([this.density$,this.sidebarWidthPreference$,this.rightSidebarWidthChanged$.pipe(ag(void 0))]).pipe(R(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,S.combineLatest)([this.rightSidebarWidthChanged$.pipe(Pf()),this.sidebarWidthPreference$]).pipe(rf(function(c){c=r(c);var d=c.next().value;return c.next().value!==d}),bg(function(c){c=r(c);var d=c.next().value;
c.next();return ZEb(b.userPreferencesManager,{rightSidebarWidth:d})}),cg(this.destroyed$)).subscribe()};U(y8,wI);y8.\u0275dir=wI.\u0275dir;y8.prototype.ngOnInit=function(){};y8.\u0275fac=function(a){return new (a||y8)(D(VI))};
y8.\u0275cmp=w({type:y8,selectors:[["issue-metadata-sidebar"]],inputs:{issueId:"issueId"},features:[ae],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&&(F(0,"h3",0),O(1,"Issue metadata"),G(),F(2,"b-resizable-sidebar",1),J("widthChanged",function(d){return b.rightSidebarWidthChanged$.next(d)}),P(3,"async"),
F(4,"div",2)(5,"div",3),M(6,g8a,1,1,"edit-issue-metadata",4),G()()());if(a&2){var c;B(2);C("disableToggleBtn",!1)("hideToggleBtnOnOpen",!0)("minWidth",b.RIGHT_SIDEBAR_MIN_WIDTH)("size",null!==(c=Q(3,5,b.currentSidebarWidth$))&&void 0!==c?c:0);B(4);C("ngIf",b.issueId)}},dependencies:[Cx,dP,x8,Px],styles:["[_nghost-%COMP%] {\n      display: inherit;\n    }"],changeDetection:0});
var t8a=function(){return{exact:!0}},z8=function(a,b,c,d,e,f,h,k,q,v,y,E,I,N,L,T,Y,ka,ha,ra,Da){wI.call(this);var Ja=this;this.paramsService=a;this.issueFridge=b;this.onboardingDialogService=c;this.activeSession=d;this.permissions=e;this.editIssueService=f;this.counts=h;this.appEvents=k;this.issueInteractionsTracking=q;this.checkBeforeExit=v;this.butterBar=y;this.routerEvents=E;this.devopsGraph=I;this.refreshMonitor=N;this.eventsForIssueFridge=L;this.issueFetchResponseFridge=T;this.hotlistFridge=
Y;this.permissionsFridge=ka;this.issueRelationshipsFridge=ha;this.issueService=ra;this.errorHandler=Da;this.STATUS_IS_FEATURED=AJb;this.id$=sM(this.paramsService,"issueId").pipe(Pf());this.issue$=this.id$.pipe(bg(function(Ba){return Ja.issueFridge.watch(Ba)}));this.snapshot$=this.issue$.pipe(R(function(Ba){return null==Ba?void 0:Ba.snapshot[0]}));this.archived$=this.snapshot$.pipe(R(function(Ba){return null==Ba?void 0:Ba.isArchived}));this.deleted$=this.snapshot$.pipe(R(function(Ba){return null==
Ba?void 0:Ba.isDeleted}));this.undeleteButtonTooltip$=this.permissions.canUndeleteIssue$.pipe(R(function(Ba){return Ba?void 0:"Only issue admins can undelete issues"}));this.inArchivedComponent$=this.issue$.pipe(R(function(Ba){return(null==Ba?void 0:Ba.isArchived)&&!(null==Ba?0:Ba.snapshot[0].isArchived)}));this.status$=this.issue$.pipe(R(function(Ba){return null==Ba?void 0:Ba.snapshot[0].status}),R(function(Ba){return Yl[Ba]}));this.prettyStatus$=this.status$.pipe(rf(bl),R(function(Ba){return JL[Ba]}));
this.title$=this.issue$.pipe(R(function(Ba){var La;return null!=(La=null==Ba?void 0:Ba.snapshot[0].title)?La:""}));this.issuesBeingBlocked$=this.issue$.pipe(R(function(Ba){var La;return null!=(La=null==Ba?void 0:Ba.snapshot[0].blockingIssueId)?La:[]}),Of(1E3),bg(function(Ba){return KJ(Ja.issueFridge,Ba)}));this.issue$.pipe(R(function(Ba){var La;return null!=(La=null==Ba?void 0:Ba.snapshot[0].duplicateIssueId)?La:[]}),Of(1E3),bg(function(Ba){return KJ(Ja.issueFridge,Ba)}));this.userHasReadAccess$=
this.issueFetchResponseFridge.error$.pipe(R(function(Ba){if(403===Ba.status&&Ja.activeSession.isInternalSession())return!1;Ja.errorHandler.errorHandler(null,Ba);return!0}),ag(!0),Zf({refCount:!0,bufferSize:1}));this.issueMetadata$=(0,S.defer)(function(){return Ja.id$}).pipe(rf(bl),bg(function(Ba){return Ja.issueService.getMetadata(Number(Ba))}),Zf({refCount:!0,bufferSize:1}));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(xH(this.activeSession,"enableCodeMentionsUi")?[{link:"./todos",title:"TODOs",count$:this.counts.countTodosDisplay$}]:[]))};U(z8,wI);z8.\u0275dir=wI.\u0275dir;
z8.prototype.ngOnInit=function(){var a=this,b,c,d;return bf(function(e){if(1==e.nextAddress)return b=OC,c=b.assertExists,cf(e,(0,S.firstValueFrom)(a.id$),2);d=c.call(b,e.yieldResult);a.appEvents.issueViewed.next(d);NQb(a.issueInteractionsTracking,d);a.subscriptions.add(bZ(a.checkBeforeExit,function(){return a.editIssueService.issueCommentDraft(d).comment().hasContent()},!1));a.subscriptions.add(a.routerEvents.routeChangeSuccess.subscribe(function(){a.butterBar.dismiss()}));a.subscriptions.add(a.issue$.pipe(rf(bl),
Qf()).subscribe(function(f){yL(a.issueFridge,[f.issueId])}));a.subscriptions.add(a.refreshMonitor.getObservable().subscribe(function(){a.issueInteractionsTracking.trackNavigation("refresh");it(a.permissionsFridge,"issues/"+d);it(a.issueRelationshipsFridge,d);BL(a.issueFetchResponseFridge,d);it(a.eventsForIssueFridge,d);LJ(a.hotlistFridge,mJb);yL(a.issueFridge,[d])}));a.destroyed$.subscribe(function(){a.devopsGraph.close();OQb(a.issueInteractionsTracking,d);a.editIssueService.clear(d)});df(e)})};
z8.prototype.ngAfterViewInit=function(){this.onboardingDialogService.openIfNecessary()};z8.\u0275fac=function(a){return new (a||z8)(D(rM),D(wL),D(K7),D(vH),D(mO),D(mS),D(n7),D(MK),D(fS),D(aZ),D(DK),D(TI),D(m6),D(sL),D(LL),D(zL),D(qL),D(dM),D(cM),D(PK),D(IK))};
z8.\u0275cmp=w({type:z8,selectors:[["issue-details-wrapper"]],features:[Ge([{provide:o3b,useValue:n3b},cY,sI,nS,{provide:EW,useClass:t6}]),ae],decls:6,vars:7,consts:[["class","a11y-only",4,"ngIf"],["class","flex-kids-y pos-fill",3,"issue-editor-false",4,"ngIf","ngIfElse"],["showNoAccessScreen",""],[1,"a11y-only"],[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,"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"],[1,"bv2-access-denied"],[3,"issueMetadata"]],template:function(a,b){a&1&&(M(0,h8a,2,1,"h2",0),P(1,"async"),M(2,x8a,15,19,"div",1),P(3,"async"),M(4,y8a,3,3,"ng-template",null,2,Jf));if(a&2){var c=
Ce(5);C("ngIf",Q(1,3,b.id$));B(2);C("ngIf",Q(3,5,b.userHasReadAccess$))("ngIfElse",c)}},dependencies:[Fx,Gx,Cx,FI,KI,LI,BB,fX,gX,gZ,DA,sF,hI,iI,G7,w7,H7,C2,y8,I7,Px],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 A8=function(a,b){wI.call(this);var c=this;this.issueFridge=a;this.butterBar=b;this.duplicateIssueIds$=new S.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(A8,wI);A8.\u0275dir=wI.\u0275dir;A8.prototype.ngOnInit=function(){};
A8.prototype.removeDuplicate=function(a){var b=this,c;return bf(function(d){if(1==d.nextAddress)return Qt(d,2),cf(d,b.issueFridge.removeDuplicate(b.issueId,a),4);if(2!=d.nextAddress)return Rt(d,0);c=St(d);GK(b.butterBar,"Could not remove duplicate "+a+". "+c);df(d)})};li.Object.defineProperties(A8.prototype,{duplicateIds:{configurable:!0,enumerable:!0,set:function(a){this.duplicateIssueIds$.next((null!=a?a:[]).map(function(b){return String(b)}))}}});
A8.\u0275fac=function(a){return new (a||A8)(D(wL),D(DK))};A8.\u0275cmp=w({type:A8,selectors:[["b-duplicates-table"]],inputs:{duplicateIds:"duplicateIds",issueId:"issueId"},features:[ae],decls:2,vars:3,consts:[[4,"ngIf"],[3,"issueIds","menuItemFactory","tableColumns","initialSort"]],template:function(a,b){a&1&&(M(0,z8a,2,4,"ng-container",0),P(1,"async"));a&2&&C("ngIf",Q(1,1,b.duplicateIssueIds$))},dependencies:[Cx,U6,Px],encapsulation:2,changeDetection:0});
var B8=function(a,b,c,d){wI.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(R(function(f){return f.get("issueId")}),rf(bl),dg(function(f){e.lastKnownId=f}));this.dupeUrl$=this.id$.pipe(R(function(f){return{path:"/issues",params:{q:"canonicalid:"+f}}}));this.issue$=this.id$.pipe(bg(function(f){return e.issues.watch(f)}));this.duplicateIds$=this.issue$.pipe(R(function(f){var h;return null!=(h=null==f?void 0:
f.snapshot[0].duplicateIssueId)?h:[]}));this.didChooseDupes=function(f){null!=e.lastKnownId&&uJb(e.issues,e.lastKnownId,f[0]).catch(e.gotErr)};this.gotErr=function(f){e.snackBar.open(Fm(f)||"Error with network request","close",{panelClass:"error"})}};U(B8,wI);B8.\u0275dir=wI.\u0275dir;B8.prototype.isThinking=function(){return this.issues.isThinking()};var A8a=function(a){a.issuePicker.open({title:"Add Duplicate",allowMultipleIds:!1},a.didChooseDupes)};
li.Object.defineProperties(B8.prototype,{bestRoute:{configurable:!0,enumerable:!0,get:function(){var a;return null!=(a=this.route.parent)?a:this.route}}});B8.\u0275fac=function(a){return new (a||B8)(D(dk),D(wL),D(LX),D(AK))};
B8.\u0275cmp=w({type:B8,selectors:[["ng-component"]],features:[ae],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&&(F(0,"section",0),
M(1,F8a,4,2,"ng-container",1),P(2,"async"),G(),M(3,G8a,2,0,"aside",2));a&2&&(B(1),C("ngIf",Q(2,2,b.duplicateIds$)),B(2),C("ngIf",b.isThinking()))},dependencies:[Cx,KI,BB,CB,sF,kN,A8,Px],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 C8=function(){};C8.\u0275fac=function(a){return new (a||C8)};C8.\u0275mod=uc({type:C8});C8.\u0275inj=gc({imports:[Wx,nz,Oz,Gy,Hy,QI,BG,iX,lH,wF,YN,HX,kP,WN,$6]});
var D8=function(a){wI.call(this);this.preferences=a;this.showRecentEventsFirst=!1};U(D8,wI);D8.\u0275dir=wI.\u0275dir;D8.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(rf(bl),cg(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst=b})};D8.\u0275fac=function(a){return new (a||D8)(D(VI))};
D8.\u0275cmp=w({type:D8,selectors:[["b-event-stream-header"]],features:[ae],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&&(F(0,"div",0)(1,"span",1),O(2,"Comments"),G(),F(3,"div")(4,"button",2),J("click",function(){MM.setBooleanAt("hasClickedCommentSortBtn")(!0);
b.preferences.save({showRecentEventsFirst:!b.showRecentEventsFirst}).pipe(cg(b.destroyed$)).subscribe()}),M(5,H8a,3,0,"ng-container",3),M(6,I8a,3,0,"ng-container",3),G()()());a&2&&(B(5),C("ngIf",!b.showRecentEventsFirst),B(1),C("ngIf",b.showRecentEventsFirst))},dependencies:[Cx,dF,BB],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;text-transform:uppercase}.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 $pc=function(a){Z.call(this,a)};U($pc,Z);g=$pc.prototype;g.getIssueId=function(){return kj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getCommentNumber=function(){return ej(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 E8=function(a){this.executor=a};E8.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:mh(c)}c=void 0}return this.executor.get({url:"action/issues/"+a+"/comment/"+b,options:{headers:{"X-Restricted-Content-Limit":d(c)}},responseConstructor:hK})};
E8.prototype.updateRetention=function(a,b,c){c=(new $pc).setIssueId(String(a)).setCommentNumber(b).setPiiRetention(c);return this.executor.post({url:"action/issues/"+a+"/comment/"+b+"/update_retention",body:c,responseConstructor:hK})};E8.\u0275fac=function(a){return new (a||E8)(t(nI))};E8.\u0275prov=dc({token:E8,factory:E8.\u0275fac,providedIn:"root"});
var aqc=function(a){Z.call(this,a)};U(aqc,Z);g=aqc.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 F8=function(a){this.executor=a};F8.prototype.updateRetention=function(a,b,c){var d=new aqc;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:Wm})};F8.\u0275fac=function(a){return new (a||F8)(t(nI))};F8.\u0275prov=dc({token:F8,factory:F8.\u0275fac,providedIn:"root"});
var G8=function(a,b,c,d,e,f,h,k,q,v,y,E,I,N,L,T){wI.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=v;this.errorHandler=y;this.analytics=E;this.issueCommentDialogsService=I;this.issuePermissionService=N;this.editIssueService=L;this.routeParams=T;this.isInternalSession=this.activeSession.isInternalSession();this.hasViewAccess=!1;this.actionMenuItems=[];this.attachmentRetentionSaveInProgress=
!1};U(G8,wI);G8.\u0275dir=wI.\u0275dir;G8.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;bqc(this);cqc(this)};G8.prototype.ngDoCheck=function(){this.attachmentDiffer&&this.attachmentDiffer.diff(this.attachment)&&(bqc(this),this.cdr.markForCheck())};
G8.prototype.ngOnChanges=function(a){this.setHasViewAccess();a.attachment&&this.attachment&&(this.attachmentDiffer=this.differs.find(this.attachment).create())};
var bqc=function(a){a.actionMenuItems=[];dqc(a)&&a.actionMenuItems.push({type:"action",action:function(){a.showDeleteAttachmentDialog()},label:"Delete attachment..."});eqc(a)&&a.actionMenuItems.push({type:"action",action:function(){fRb(a.editIssueService,String(a.issueId),a.attachment)},label:"Restore attachment"});a.isInternalSession&&a.actionMenuItems.push({type:"action",action:function(){rmc(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;qmc(a.issueCommentDialogsService,"attachment",c).then(function(d){d&&fqc(a,c)})},label:b?"Match issue retention...":"Revert to component retention..."})}};
G8.prototype.setHasViewAccess=function(){var a=this;this.isRestricted()?null==this.attachment?this.hasViewAccess=!1:(this.hasViewAccess=!1,sK(this.userAccess,"reader","issues/"+this.issueId+"/attachments/"+this.attachment.attachmentId).then(function(b){a.hasViewAccess=b;a.cdr.detectChanges()})):this.hasViewAccess=!0};G8.prototype.getFilename=function(){var a;return(null==(a=this.attachment)?void 0:a.filename)||""};
G8.prototype.getSize=function(){var a;return(null==(a=this.attachment)?void 0:a.length)||0};var lt=function(a,b){b=void 0===b?!0:b;var c;if(null==(c=a.attachment)||!c.attachmentId)throw Error("Qe");c=a.paths.getAttachmentAction(a.issueId,a.attachment.attachmentId);a=a.paths.getBaseUrl()+"/"+c;return dE(a,"download",b)};G8.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)};
G8.prototype.isRestricted=function(){return"NONE_DETECTED"!==this.getPiiSeverity()};G8.prototype.getPiiSeverity=function(){var a;return Dl(null==(a=this.attachment)?void 0:a.contentVerdict)};G8.prototype.getRestrictedLabel=function(){return wqa(this.getPiiSeverity())};
var O8a=function(a){return(a=a.getPiiSeverity())?"bv2-restricted-content-limit-"+El(a):""},N8a=function(a,b){eo(a.analytics,io.RESTRICTED_CONTENT,"viewRestrictedContent","attachment");a.matDialogService.open(wP,{width:"400px",data:{attachment:a.attachment,issueId:a.issueId,download:b}})},dqc=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()||lO(b,a)?!0:!1:!1:
!1}else b=!1;return b},eqc=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()||lO(b,a)?!0:!1:!1:!1}else b=!1;return b};G8.prototype.showDeleteAttachmentDialog=function(){var a;null!=(a=this.attachment)&&a.attachmentId&&this.issueCommentDialogsService.showDeleteAttachmentDialog(String(this.issueId),this.attachment)};
var fqc=function(a,b){var c;null!=(c=a.attachment)&&c.attachmentId?(eo(a.analytics,io.RESTRICTED_CONTENT,"updateRetention","attachment"),a.attachmentRetentionSaveInProgress=!0,a.attachmentService.updateRetention(a.issueId,a.attachment.attachmentId||0,b).pipe(cg(a.destroyed$)).subscribe({next:function(d){a.attachmentRetentionSaveInProgress=!1;a.attachment&&(a.attachment.piiRetention=J8a(d.getPiiRetention()),a.attachment.piiRetentionState=d.hasPiiRetentionState()?K8a(d.getPiiRetentionState()):void 0);
FK(a.butterBar,"Attachment retention updated",4E3);a.attachmentRetentionOverride=2===b?"INDEFINITE":"COMPONENT_DEFAULT";bqc(a);a.cdr.detectChanges()},error:function(){a.attachmentRetentionSaveInProgress=!1;JK(a.errorHandler,"Attachment retention update failed")}})):JK(a.errorHandler,"Attachment id is missing")},cqc=function(a){var b,c,d;bf(function(e){(b=Number(a.routeParams.downloadAttachment))&&b===(null==(c=a.attachment)?void 0:c.attachmentId)&&(d="true"===a.routeParams.download,N8a(a,d));df(e)})};
G8.\u0275fac=function(a){return new (a||G8)(D(vH),D(rP),D(tP),D(ZB),D(F8),D(sI,2),D(Bx),D(TK),D(rK),D(DK),D(IK),D(QM),D(z6),D(mO),D(mS),D($R))};
G8.\u0275cmp=w({type:G8,selectors:[["b-attachment-viewer"]],inputs:{attachment:"attachment",issueId:"issueId",attachmentUploader:"attachmentUploader"},features:[Ge([sI]),ae,Cc],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&&(F(0,"div",0),H(1,"b-icon",1),G(),F(2,"div")(3,"div",2),O(4),F(5,"span",3),M(6,L8a,1,3,"b-restricted-chip",4),M(7,M8a,2,3,"span",5),G()(),F(8,"div"),O(9),M(10,P8a,2,8,"span",6),M(11,Q8a,2,8,"span",6),F(12,"xap-bubble",7),M(13,R8a,3,3,"span",8),M(14,S8a,4,1,"ng-template",null,9,Jf),G()()());if(a&2){var c=Ce(15);B(4);De(" ",b.getFilename()," ");B(2);C("ngIf",b.isRestricted());
B(1);C("ngIf",0<b.actionMenuItems.length);B(2);De(" ",Eua(b.getSize())," ");B(1);var d;a=b.isActive()&&hna(null==(d=b.attachment)?void 0:d.contentType);C("ngIf",a);B(1);C("ngIf",b.isActive());B(1);C("panelTemplate",c);B(1);C("ngIf",b.isRestricted()&&!b.hasViewAccess)}},dependencies:[Cx,OZ,gT,zH,CB,dF,sF,q5,RS],encapsulation:2,changeDetection:0});
var gqc=["commentActionsMenu"],hqc=["editDescription"],i9a=function(){return[]},H8=function(a,b,c,d,e,f,h,k,q,v,y,E,I,N){wI.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=v;this.issueCommentDialogsService=y;this.issuePermissionService=E;this.commentHistoryDialogService=I;this.dateFormatter=N;this.id$=new S.ReplaySubject(1);
this.idAsNumber$=this.id$.pipe(R(function(T){return Number(T)}));this.accessLevel$=this.id$.pipe(bg(function(T){return L.issueFridge.watch(T)}),R(function(T){var Y;return null==T?void 0:null==(Y=T.accessLimit)?void 0:Y.accessLevel}));this.firstEvent$=new S.ReplaySubject(1);this.firstNote$=this.firstEvent$.pipe(R(function(T){return T}));this.commentActionMenuItems$=new S.BehaviorSubject([]);this.isFormattingOverrideEnabled=!1;this.formattingMode=1;this.formattingMode$=Gk(this.firstEvent$.pipe(rf(bl),
R(function(T){return wsa(T.formattingMode)})),1);this.isRedacted$=this.firstEvent$.pipe(rf(bl),R(function(T){return T.commentRedacted}));this.isDeleted$=this.firstEvent$.pipe(rf(bl),R(function(T){return"DELETED"===T.commentDeletionStatus}));this.shouldShowRestrictedPlaceholder$=(0,S.combineLatest)([this.isRedacted$,this.isDeleted$]).pipe(R(function(T){var Y=r(T);T=Y.next().value;Y=Y.next().value;return!(!T||Y)}));this.isRestricted$=this.firstEvent$.pipe(rf(bl),R(function(T){return Dl(T.commentContentVerdict)}),
R(function(T){if(!L.isInternalSession)return!1;switch(T){case "NONE_DETECTED":case "PII_SEVERITY_UNSPECIFIED":return!1;case "PII":case "SPII":return!0;default:mh(T)}}));this.commentRetentionOverride$=this.firstEvent$.pipe(rf(bl),R(function(T){return T.commentRetention}));this.commentHistoryEnabled=xH(this.activeSession,"enableCommentHistoryUi");this.isShowCommentHistoryActionInMenu$=(0,S.combineLatest)([this.firstEvent$,this.isRedacted$]).pipe(R(function(T){var Y=r(T);T=Y.next().value;Y=Y.next().value;
return!(!(xH(L.activeSession,"enableCommentHistoryUi")&&0<((null==T?void 0:T.commentVersion)||0))||Y)}));this.canEditComment$=this.firstEvent$.pipe(bg(function(T){return T?L.issuePermissionService.canEditComment$(T):(0,S.of)(!1)}),Zf({refCount:!0,bufferSize:1}));this.canEditComment=function(){return!!Hk(L.canEditComment$)};this.isInternalSession=this.activeSession.isInternalSession();this.mayReadPii$=this.isRestricted$.pipe(bg(function(T){return T?L.mayReadPii():(0,S.of)(void 0)}));this.reporterUser$=
this.id$.pipe(cg(this.destroyed$),bg(function(T){return L.issueFridge.watch(T)}),R(function(T){var Y;return null==T?void 0:null==(Y=T.snapshot[0])?void 0:Y.reporterUser}));this.reporterUserEmailAddress$=this.reporterUser$.pipe(cg(this.destroyed$),R(function(T){return(null==T?void 0:T.emailAddress)||(null==T?void 0:T.obfuscatedEmailAddress)||""}));this.isAuthorNotReporter$=(0,S.combineLatest)([this.reporterUser$,this.firstEvent$]).pipe(R(function(T){var Y=r(T);T=Y.next().value;Y=Y.next().value;return!Ei(T,
null==Y?void 0:Y.userPerformingActionUser)}))};U(H8,wI);H8.\u0275dir=wI.\u0275dir;H8.prototype.mayReadPii=function(){var a=this;return this.id$.pipe(bg(function(b){return(0,S.defer)(function(){return sK(a.userAccess,"reader","issues/"+b+"/comments/1").catch(function(c){Sk("error: ",c);return!1})})}))};
H8.prototype.ngOnInit=function(){var a=this;iqc(this,1);this.id$.pipe(bg(function(b){return a.eventsForIssue.watch(b)}),R(function(b){var c;return null!=(c=null==b?void 0:b.events)?c:[]}),R(function(b){return b[0]}),cg(this.destroyed$)).subscribe(function(b){a.firstEvent$.next(b)});this.canEditComment$.pipe(cg(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()});this.userPreferencesManager.textDisplayPreferencesSubject$.pipe(cg(this.destroyed$)).subscribe(function(b){a.isFormattingOverrideEnabled=
null!=b.commentDisplayOverride;a.initializeActionsMenu()});this.formattingMode$.pipe(cg(this.destroyed$)).subscribe(function(b){a.formattingMode=b;iqc(a,b)});this.issuePermissionService.canChangeCommentRetention$.pipe(cg(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()})};
H8.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=Hk(this.firstEvent$);this.canEditComment()&&c&&b.push({type:"action",action:function(){pt(a.issueCommentDialogsService,a.id,c).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Edit description...",disabled:Hk(this.isRedacted$)});
Hk(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&&KMb(this.issuePermissionService,c)&&b.push({type:"action",action:function(){c.commentEtag&&omc(a.issueCommentDialogsService,a.id,1,c.commentEtag).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Delete description"});c&&JMb(this.issuePermissionService,
c)&&b.push({type:"action",action:function(){lmc(a.issueCommentDialogsService,a.id,1).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Restore description"});this.isInternalSession&&c&&b.push({type:"action",action:function(){pmc(a.issueCommentDialogsService,a.id,c).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Restriction settings..."});if(this.isInternalSession&&Hk(this.isRestricted$)&&this.issuePermissionService.canChangeCommentRetention()&&
!Hk(this.isDeleted$)){var d="COMPONENT_DEFAULT"===Hk(this.commentRetentionOverride$);b.push({type:"action",action:function(){var e=d?2:1;qmc(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 iqc=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)};
H8.prototype.updateCommentRetention=function(a){var b=this,c=Hk(this.firstEvent$),d=Hk(this.idAsNumber$);c&&!c.commentNumber&&JK(this.errorHandler,"Comment number is missing");eo(this.analytics,io.RESTRICTED_CONTENT,"updateRetention","comment");d&&c&&this.commentService.updateRetention(d,c.commentNumber||0,a).pipe(cg(this.destroyed$)).subscribe({next:function(){it(b.eventsForIssue,d);FK(b.butterBar,"Comment retention updated",4E3);b.initializeActionsMenu()},error:function(){JK(b.errorHandler,"Comment retention update failed")}})};
H8.prototype.loadRestrictedComment=function(a,b){var c=this;eo(this.analytics,io.RESTRICTED_CONTENT,"viewRestrictedContent","comment");var d=(null==b?void 0:b.commentNumber)||0;b=Cl(Dl(null==b?void 0:b.commentContentVerdict));a&&this.commentService.get(a,d,b).pipe(Qf(),cg(this.destroyed$)).subscribe(function(e){e=Sm(e);e=Object.assign({},Hk(c.firstEvent$),e);c.firstEvent$.next(e);c.initializeActionsMenu()},function(e){var f;GK(c.butterBar,"Error showing comment "+d+": "+(null==(f=e.error)?void 0:
f.message))})};H8.prototype.showCommentHistoryDialog=function(a){return this.commentHistoryDialogService.show(Number(this.id),a,-1)};H8.prototype.getUserEmailIfAvailable=function(){var a;return Ql(null==(a=Hk(this.firstEvent$))?void 0:a.userPerformingActionUser)};
var T8a=function(a){var b=Hk(a.firstEvent$);b&&pt(a.issueCommentDialogsService,a.id,b).then(function(){a.editDescriptionButton.focus()})},X8a=function(a,b){var c="Last edited by ";0===b.version&&b.lastCommentEditorUser&&(c+=Nl(b.lastCommentEditorUser));b.commentLastModifiedAtDate&&(c+=" on ",tOb(a.dateFormatter,new Date(b.commentLastModifiedAtDate)).subscribe(function(d){c+=d}));return c};
li.Object.defineProperties(H8.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)},get:function(){return Hk(this.id$)}}});H8.\u0275fac=function(a){return new (a||H8)(D(LL),D(VI),D(wL),D(EW),D(vH),D(E8),D(IK),D(QM),D(DK),D(rK),D(z6),D(mO),D(MS),D(IP))};
H8.\u0275cmp=w({type:H8,selectors:[["b-issue-description"]],viewQuery:function(a,b){a&1&&(Bf(gqc,5),Bf(hqc,5));if(a&2){var c;Af(c=Df())&&(b.commentActionsMenu=c.first);Af(c=Df())&&(b.editDescriptionButton=c.first)}},inputs:{id:"id"},features:[ae],decls:2,vars:3,consts:[["id","comment1",4,"ngIf"],["id","comment1"],[1,"flex-kids-x","description-heading"],[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&&(M(0,j9a,28,26,"div",0),P(1,"async"));a&2&&C("ngIf",Q(1,1,b.firstEvent$))},
dependencies:[OZ,G8,TW,Gx,Cx,JP,nN,rN,oS,BB,dF,sF,s5,pT,qS,Px],styles:[".description-heading[_ngcontent-%COMP%]{font-weight:400;margin:0 0 12px}.description-heading   .d-cozy[_nghost-%COMP%]   .description-heading[_ngcontent-%COMP%], .d-cozy   [_nghost-%COMP%]   .description-heading[_ngcontent-%COMP%]{margin-bottom:10px}.description-heading   .d-compact[_nghost-%COMP%]   .description-heading[_ngcontent-%COMP%], .d-compact   [_nghost-%COMP%]   .description-heading[_ngcontent-%COMP%]{margin-bottom:8px}.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;text-transform:uppercase}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 I8=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(R(function(e){return e?"(Showing full history) Click for major events only":"(Showing major events) Click for full history"}),ag(""))};I8.prototype.onClick=function(){var a=this,b;return bf(function(c){if(1==c.nextAddress)return a.isSaving?c.return():cf(c,(0,S.firstValueFrom)(a.on$),2);b=c.yieldResult;a.save(!b);df(c)})};
I8.prototype.save=function(a){var b=this;eo(this.analytics,io.EDIT_ISSUE,"toggleShowFullHistory",String(a));this.isSaving=!0;a=(0,S.firstValueFrom)(this.prefs.save({showFullHistory:a}));a.then(function(){b.isSaving=!1;b.cdr.markForCheck()});a.catch(function(){GK(b.butterBar,'Couldn\'t save "full history" setting.');b.isSaving=!1;b.cdr.markForCheck()})};I8.\u0275fac=function(a){return new (a||I8)(D(VI),D(vx),D(QM),D(DK))};
I8.\u0275cmp=w({type:I8,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&&(F(0,"button",0),J("click",function(){return b.onClick()}),P(1,"async"),P(2,"async"),P(3,"async"),P(4,"async"),M(5,k9a,1,0,"mat-icon",1),M(6,l9a,1,0,"b-spinner",2),G());a&2&&(le("on",Q(1,8,b.on$)),C("matTooltip",Q(2,10,b.tooltip$))("disabled",
b.isSaving),ge("aria-pressed",Q(3,12,b.on$))("aria-label",Q(4,14,b.tooltip$)),B(5),C("ngIf",!b.isSaving),B(1),C("ngIf",b.isSaving))},dependencies:[Cx,sF,dF,BB,kN,Px],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 jqc=function(){this.tokens=new Map};jqc.prototype.add=function(a,b){var c=this.tokens.get(a);c?c.push(b):this.tokens.set(a,[b]);return this};jqc.prototype.build=function(){var a=this,b=Array.from(this.tokens.keys()).sort();return new kqc(b.map(function(c){return{token:c,labels:a.tokens.get(c)}}))};var kqc=function(a){this.sortedEntries=a};
kqc.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};kqc.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 lqc=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 mqc=function(a){this.hotlists=a;var b=new jqc,c=new jqc;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())?mya(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())?mya(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]}))};
mqc.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;(fna(a)&&String(h).includes(a)||(null==(k=f)?0:k.includes(a))||(null==(q=e)?0:q.includes(a)))&&b.add(d)}c=mya(a);d=r(lqc(this.nameTokenMatcher,c));for(a=d.next();!a.done;a=d.next())b.add(a.value);c=r(lqc(this.descriptionTokenMatcher,c));
for(a=c.next();!a.done;a=c.next())b.add(a.value);return nqc(this,b)};var nqc=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 J8=function(){this.innerHeight$=(0,S.concat)((0,S.defer)(function(){return(0,S.of)(window.innerHeight)}),(0,S.fromEvent)(window,"resize").pipe(R(function(){return window.innerHeight})))};J8.\u0275fac=function(a){return new (a||J8)};J8.\u0275prov=dc({token:J8,factory:J8.\u0275fac,providedIn:"root"});
var u9a=function(a){return{hotlist:a,isCompact:!0}},y9a=function(a){return{hotlist:a,isCompact:!1}},K8=function(a,b,c,d,e,f,h,k,q,v,y,E){wI.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=v;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 S.BehaviorSubject("");this.debouncedQuery$=this.query$.pipe(Nf(100),ag(""));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 oy({name:new qy("",hy),description:new qy("")});this.currentUserEmail=this.activeSession.getUserEmail();this.starredHotlists=
new iS;this.isSavingStar=new iS;this.userHotlists$=nJb(this.hotlistFridge);this.issueHotlists$=KJ(this.hotlistFridge,Array.from(this.data.selectedHotlistIds));this.combineHotlistsWithPermissions=R(function(N){var L=KJ(I.permissionsFridge,N.map(function(T){return fo(T.hotlistId)}));return N.map(function(T,Y){return Object.assign({},T,{permissions$:L.pipe(R(function(ka){return ka[Y]}))})})});this.hotlists$=(0,S.combineLatest)([this.issueHotlists$,this.userHotlists$]).pipe(R(function(N){var L=r(N);N=
L.next().value;L=L.next().value;return[].concat(u(N),u(L))}),R(zBb(function(N){return N.hotlistId})),R(function(N){return N.filter(bl)}),R(function(N){return N.sort(N9a)}),R(function(N){return N.sort(function(L,T){var Y=I.selectedHotlistIds;L=Y.has(L.hotlistId);T=Y.has(T.hotlistId);return L&&T?0:L?-1:T?1:0})}),this.combineHotlistsWithPermissions,Zf({bufferSize:1,refCount:!0}));this.hotlistQuerySearcher$=this.hotlists$.pipe(R(function(N){return new mqc(N)}),Zf({bufferSize:1,refCount:!0}));this.visibleHotlists$=
(0,S.combineLatest)([this.debouncedQuery$,this.hotlistQuerySearcher$,this.hotlists$]).pipe(R(function(N){var L=r(N);N=L.next().value;var T=L.next().value;L=L.next().value;return""!==N.trim()?T.search(N):L}),Zf({bufferSize:1,refCount:!0}));this.showLoadById$=this.query$.pipe(R(function(N){N=N.trim();return!I.allHotlistIds.has(Number(N))&&fna(N)}));this.showCreateNew$=(0,S.combineLatest)([this.query$,this.visibleHotlists$]).pipe(R(function(N){var L=r(N);N=L.next().value;L=L.next().value;return O9a(N,
L)}));this.isCompactMode$=this.visibleHotlists$.pipe(R(function(N){return 200<N.length}));this.compactHotlistItemHeight=24;this.compactNumberOfHotlistsToShow$=this.windowHeight.innerHeight$.pipe(R(function(N){return Math.max(1,Math.floor(.5*N/24))}),Pf());this.hotlistViewportContainerHeight$=this.compactNumberOfHotlistsToShow$.pipe(R(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(K8,wI);K8.\u0275dir=wI.\u0275dir;K8.prototype.ngOnInit=function(){var a=this;oqc(this);this.query$.pipe(cg(this.destroyed$)).subscribe(function(){a.hotlistUnderEdit.setValue({name:a.query$.value,description:""})})};
var G9a=function(a,b){b.options.forEach(function(d){d.selected?a.selectedHotlistIds.add(d.value):a.selectedHotlistIds.delete(d.value)});b=oLa(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},mt=function(a){a.dialogRef.close(a.selectedHotlistIds)},r9a=function(a){var b;return(a=null==(b=a.hotlistUnderEdit.get("name"))?void 0:b.value)?a:""},pqc=function(a){var b;return(a=null==(b=a.hotlistUnderEdit.get("description"))?
void 0:b.value)?a:""},q9a=function(a){a.snackBar.open("Saving hotlist...","dismiss",{duration:0});var b=r9a(a),c=pqc(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)})},oqc=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)})};K8.prototype.isDirectAdmin=function(a){return a?Ol(a.adminUsers).includes(this.currentUserEmail):!1};
K8.prototype.shouldShowStar=function(a){return!this.isDirectAdmin(a)&&!a.archived};
K8.prototype.toggleStar=function(a){var b=this,c,d,e;return bf(function(f){switch(f.nextAddress){case 1:c=b.starredHotlists.has(a);d={resourceType:"HOTLIST",resourceId:a,userLogin:b.currentUserEmail};Qt(f,2,3);b.isSavingStar.add(a);if(c)return b.starredHotlists.delete(a),cf(f,b.userApi.deleteFavorite(d),3);b.starredHotlists.add(a);return cf(f,b.userApi.saveFavorite(d),3);case 3:Tt(f);b.isSavingStar.delete(a);Ut(f,4);break;case 2:e=St(f);KK(b.errorHandler,e);f.jumpTo(3);break;case 4:b.appEvents.hotlistChanged.next(),
b.appEvents.favoritesModified.next(),oqc(b),df(f)}})};var D9a=function(a,b){a.hotlistApi.get(b).then(function(c){a.hotlists.push(c);a.selectedHotlistIds.add(c.hotlistId);mt(a)}).catch(function(c){a.errorHandler.errorHandler(null,c)})};K8.prototype.trackByHotlistId=function(a,b){return b.hotlistId};K8.\u0275fac=function(a){return new (a||K8)(D(MB),D(XB),D(TK),D(qL),D(eL),D(AK),D(MK),D(IK),D(vH),D(kL),D(J8),D(dM))};
K8.\u0275cmp=w({type:K8,selectors:[["ng-component"]],hostBindings:function(a,b){a&1&&J("keydown.meta.enter",function(){return mt(b)})("keydown.shift.enter",function(){return mt(b)})("keydown.control.enter",function(){return mt(b)})},features:[ae],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&&(M(0,n9a,2,1,"ng-container",0),F(1,"mat-dialog-actions")(2,"button",1),J("click",function(){b.dialogRef.close()}),O(3," Cancel "),G(),M(4,p9a,2,1,"ng-container",0),G(),M(5,s9a,2,1,"ng-template",null,2,Jf),M(7,t9a,2,5,"ng-template",null,3,Jf),M(9,H9a,19,12,"ng-template",null,4,Jf),M(11,L9a,1,1,"ng-template",null,5,Jf),M(13,M9a,14,1,"ng-template",null,6,Jf));if(a&2){var c=Ce(8),d=Ce(10);C("ngIf",b.showCreateNewPane)("ngIfElse",d);B(4);C("ngIf",b.showCreateNewPane)("ngIfElse",c)}},dependencies:function(){return[Gx,
Cx,Mx,dF,$B,aC,bC,cC,KI,BB,QP,RP,sy,Jg,ly,my,Cy,yy,zy,iN,sF,Px,L8]},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 L8=function(){};L8.prototype.transform=function(a){return Mpa(a)};L8.\u0275fac=function(a){return new (a||L8)};L8.\u0275pipe=wc({name:"stagedHotlistSlice",type:L8,pure:!0});
var M8=function(a,b,c,d){this.dialog=a;this.issueFridge=b;this.eventsForIssueFridge=c;this.errorHandler=d},qqc=function(a,b){var c,d,e,f,h,k,q,v;return bf(function(y){switch(y.nextAddress){case 1:return cf(y,(0,S.firstValueFrom)(b),2);case 2:return c=y.yieldResult,(e=null==(d=c)?void 0:d.snapshot[0].hotlistId)&&c?cf(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);Qt(y,4,5);return cf(y,tJb(a.issueFridge,
q,h,k),5);case 5:Tt(y);it(a.eventsForIssueFridge,q);Ut(y,0);break;case 4:v=St(y),KK(a.errorHandler,v),y.jumpTo(5)}})};M8.prototype.openModal=function(a){var b=this,c,d,e,f;return bf(function(h){if(1==h.nextAddress)return c={panelClass:"no-jitter",data:{selectedHotlistIds:a},ariaLabel:"Search for Hotlists"},d=b.dialog.open(K8,c),cf(h,(0,S.firstValueFrom)(NB(d)),2);e=h.yieldResult;if(!e)return h.return(Promise.resolve());f=oLa(new Set(a),new Set(e));return h.return(Promise.resolve(f))})};
M8.\u0275fac=function(a){return new (a||M8)(t(ZB),t(wL),t(LL),t(IK))};M8.\u0275prov=dc({token:M8,factory:M8.\u0275fac,providedIn:"root"});
var N8=function(a,b,c,d,e,f){wI.call(this);var h=this;this.issueFridge=a;this.eventsForIssueFridge=b;this.hotlistPickerService=c;this.issueInteractionsTracking=d;this.errorHandler=e;this.liveAnnouncer=f;this.ISSUE_TYPE_TEXT=EJb;this.STATUS_FULL_TEXT=JL;this.STATUS_TERSE=FL;this.DUPLICATE=10;this.id$=new S.ReplaySubject(1);this.issue$=this.id$.pipe(bg(function(k){return h.issueFridge.watch(k)}));this.hotlistIds$=this.issue$.pipe(R(Y9a));this.textOfHotlistBtn$=this.hotlistIds$.pipe(R(function(k){var q;
return null!=(q=null==k?void 0:k.length)?q:0}),R(function(k){return 5>=k?"Add Hotlist":""}));this.priority$=this.issue$.pipe(R(function(k){return null==k?void 0:k.snapshot[0].priority}),R(function(k){return Wqa[k]}));this.type$=this.issue$.pipe(R(function(k){return null==k?void 0:k.snapshot[0].type}),R(function(k){return Vqa[k]}));this.canonicalId$=this.issue$.pipe(R(function(k){return null==k?void 0:k.snapshot[0].duplicateOfIssueId}));this.statusForChip$=this.issue$.pipe(R(function(k){return null==
k?void 0:k.snapshot[0].status}),R(function(k){return Yl[k]}),R(function(k){return AJb[k]?k:void 0}));this.HOTKEYS=vI};U(N8,wI);N8.\u0275dir=wI.\u0275dir;
var V9a=function(a){return bf(function(b){return cf(b,qqc(a.hotlistPickerService,a.issue$),0)})},T9a=function(a,b){var c,d;return bf(function(e){switch(e.nextAddress){case 1:return cf(e,(0,S.firstValueFrom)(a.id$),2);case 2:c=e.yieldResult;gS(a.issueInteractionsTracking,c,{label:"remove-hotlists",value:1});Qt(e,3,4);var f=tJb(a.issueFridge,c,[],[String(b)]);return cf(e,f,6);case 6:return cf(e,a.liveAnnouncer.announce("Hotlist removed successfully"),4);case 4:Tt(e);it(a.eventsForIssueFridge,c);Ut(e,
0);break;case 3:d=St(e),KK(a.errorHandler,d),e.jumpTo(4)}})};li.Object.defineProperties(N8.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)}}});N8.\u0275fac=function(a){return new (a||N8)(D(wL),D(LL),D(M8),D(fS),D(IK),D($z))};
N8.\u0275cmp=w({type:N8,selectors:[["issue-description-area"]],inputs:{id:"id"},features:[ae],decls:15,vars:12,consts:[[1,"flex-kids-x","gap-s"],[1,"chip-container","border-right","padded-s-right"],[4,"ngIf"],[3,"class",4,"ngIf"],[3,"issuePriority"],["class","flex-1 hotlist-container 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","hotlist-container","chip-container"],["mat-stroked-button","","aria-label","Add Hotlist","matTooltip","Add Hotlist",1,"gmat-button","small","add-hotlists-btn",3,"hotkey","onHotkey","click"],["svgIcon","add",1,"icon-xs"],["removable","check-acl",3,"id","removeHotlist",4,"ngFor","ngForOf"],["removable","check-acl",3,"id","removeHotlist"],[3,"onedevIsHovercardReady","issueId"],["canonicalCardBody",""]],template:function(a,b){a&1&&(F(0,"div",0)(1,
"div",1),M(2,R9a,5,8,"div",2),P(3,"async"),M(4,S9a,2,4,"span",3),P(5,"async"),H(6,"b-issue-priority-display",4),P(7,"async"),G(),M(8,W9a,6,5,"div",5),P(9,"async"),F(10,"div",6),H(11,"smart-full-history-btn"),G()(),F(12,"onedev-hovercard",null,7),M(14,X9a,3,4,"b-issue-card",8),G());a&2&&(B(2),C("ngIf",Q(3,4,b.statusForChip$)),B(2),C("ngIf",Q(5,6,b.type$)),B(2),C("issuePriority",Q(7,8,b.priority$)),B(2),C("ngIf",Q(9,10,b.hotlistIds$)))},dependencies:[Gx,Cx,dJ,lY,nN,oN,rN,pN,DX,B2,BB,dF,sF,KI,I8,Px],
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;line-height:22px}.hotlist-container[_ngcontent-%COMP%]{max-height:72px;overflow-y:auto;padding-bottom:5px}[_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 O8=function(){};O8.\u0275fac=function(a){return new (a||O8)};O8.\u0275cmp=w({type:O8,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&&M(0,$9a,7,2,"ng-container",0);a&2&&C("ngIf",b.event.commentLastModifiedAtDate)},dependencies:[Cx,JP],encapsulation:2,changeDetection:0});
var P8=function(){this.texts=[]};P8.prototype.getIssueId=function(a){return Number(a.text)};P8.prototype.trackByIndex=function(a){return a};P8.\u0275fac=function(a){return new (a||P8)};
P8.\u0275cmp=w({type:P8,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&&M(0,d$a,5,3,"ng-container",0);a&2&&C("ngForOf",b.texts)("ngForTrackBy",b.trackByIndex)},dependencies:[FW,Gx,Ix,Jx,Kx,FS],encapsulation:2,changeDetection:0});
var Q8=function(a){this.hotlists=a;this.HOTLIST_SEARCH=gt.HOTLIST_SEARCH};Q8.\u0275fac=function(a){return new (a||Q8)(D(qL))};Q8.\u0275cmp=w({type:Q8,selectors:[["hotlist-link"]],inputs:{id:"id"},decls:3,vars:4,consts:[[3,"href"]],template:function(a,b){a&1&&(F(0,"a",0),O(1),P(2,"async"),G());if(a&2){var c;C("href",b.HOTLIST_SEARCH(b.id),Md);B(1);Ee((null==(c=Q(2,2,b.hotlists.watch(b.id)))?null:c.name)||b.id)}},dependencies:[Px],encapsulation:2,changeDetection:0});
var R8=function(a){var b=this;this.componentFridge=a;this.id$=new S.ReplaySubject(1);this.name$=this.id$.pipe(Pf(),bg(function(c){return b.componentFridge.watchOne(c).pipe(R(function(d){var e;return d?t2b(null==(e=d.componentPathInfo)?void 0:e.componentPathName,c):c}))}))};R8.prototype.ngOnChanges=function(){this.id$.next(this.id)};R8.\u0275fac=function(a){return new (a||R8)(D(NJ))};
R8.\u0275cmp=w({type:R8,selectors:[["plain-component-path"]],inputs:{id:"id"},features:[Cc],decls:6,vars:4,consts:[[3,"onedevHovercardTrigger"],["thisHovercard","onedevHovercard"],[4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","componentId"],["cardBody",""]],template:function(a,b){a&1&&(F(0,"span",0),O(1),P(2,"async"),G(),F(3,"onedev-hovercard",null,1),M(5,e$a,3,2,"ng-container",2),G());if(a&2){var c=Ce(4);C("onedevHovercardTrigger",c);B(1);Ee(Q(2,2,b.name$)||b.id)}},dependencies:[nN,oN,
rN,pN,TS,Px],encapsulation:2,changeDetection:0});
var u$a=function(a){return{"bv2-diff-newvalue-nextline":a}},O$a=function(a,b,c){return{diff:a,change:b,isLast:c}},S8=function(a,b){wI.call(this);this.activeSession=a;this.preferences=b;this.customFieldMap={};this.effortEnabled=!0;this.isStringArray=cna;this.isLinkedItemArray=wta;this.isIssueDiff=tta;this.isHotlistDiff=uta};U(S8,wI);S8.\u0275dir=wI.\u0275dir;
var rqc=function(a){if(2>a.internalDiffs.length)return!1;var b=a.internalDiffs[0];a=a.internalDiffs.slice(1).find(function(e){return e.timestamp!==b.timestamp});if(!a)return!1;var c,d;return(null!=(c=b.timestamp)?c:0)<=(null!=(d=a.timestamp)?d:0)},sqc=function(a){if(2>a.internalDiffs.length)return!1;var b=a.internalDiffs[0];a=a.internalDiffs.slice(1).find(function(e){return e.timestamp!==b.timestamp});if(!a)return!1;var c,d;return(null!=(c=b.timestamp)?c:0)>=(null!=(d=a.timestamp)?d:0)};
S8.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(rf(bl),cg(this.destroyed$)).subscribe(function(b){2>a.internalDiffs.length||(b&&rqc(a)||!b&&sqc(a))&&a.internalDiffs.reverse()})};S8.prototype.trackByIndex=function(a){return a};
var nt=function(a,b,c){return"<none>"===Bja(b,c)?!1:b.customFieldId&&a.customFieldMap[b.customFieldId]&&"DATE"===a.customFieldMap[b.customFieldId].type?!0:!1},ot=function(a,b,c){return"<none>"===Bja(b,c)?!1:b.customFieldId&&a.customFieldMap[b.customFieldId]&&"REPEATED_DATE"===a.customFieldMap[b.customFieldId].type?!0:!1};S8.prototype.asNumber=function(a){return Number(a)};
S8.prototype.customFieldName=function(a){if(a.customFieldId){var b;return(null==(b=this.customFieldMap[a.customFieldId])?void 0:b.customFieldName)||"customfield"+a.customFieldId}return""};li.Object.defineProperties(S8.prototype,{diffs:{configurable:!0,enumerable:!0,set:function(a){this.internalDiffs=[].concat(u(a))}}});S8.\u0275fac=function(a){return new (a||S8)(D(vH),D(VI))};
S8.\u0275cmp=w({type:S8,selectors:[["b-issue-event-details"]],inputs:{diffs:"diffs",customFieldMap:"customFieldMap",effortSpecName:"effortSpecName",effortEnabled:"effortEnabled"},features:[ae],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,"float-right",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&&(F(0,"div",0),M(1,iab,2,1,"div",1),G(),M(2,sab,1,1,"ng-template",null,2,Jf),M(4,tab,2,0,"ng-template",null,3,Jf));a&2&&(B(1),C("ngForOf",b.internalDiffs)("ngForTrackBy",b.trackByIndex))},dependencies:[Fx,Gx,Cx,Mx,nN,oN,rN,pN,DX,JP,pS,FW,Q8,R8],styles:["\n/*# sourceMappingURL=issue_event_details.css.map */"],changeDetection:0});
var tqc=["commentActionsMenu"],Cab=function(){return[]},T8=function(a,b,c,d,e,f,h,k,q,v,y,E,I,N,L,T,Y,ka){wI.call(this);var ha=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=v;this.issueDetailsBrain=y;this.editIssueService=E;this.issuePermissionService=I;this.commentHistoryDialogService=N;this.issueCommentDialogsService=L;this.dateFormatter=
T;this.paths=Y;this.domSafe=ka;this.issueId$=new S.ReplaySubject(1);this.distinctIssueId$=this.issueId$.pipe(Pf());this.event$=new S.ReplaySubject(1);this.isCommentEvent=zn;this.isNonObfuscatedEmail=Nn;this.commentActionMenuItems$=new S.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(){ha.formattingMode=
1;ha.initializeActionsMenu()},label:"Classic",selected:!0},a[2]={type:"select",action:function(){ha.formattingMode=2;ha.initializeActionsMenu()},label:"Markdown",selected:!1},a[3]={type:"select",action:function(){ha.formattingMode=3;ha.initializeActionsMenu()},label:"Source",selected:!1},a);this.isFormattingOverrideEnabled=!1;this.canEditComment$=this.event$.pipe(bg(function(ra){return ha.issuePermissionService.canEditComment$(ra)}),Zf({refCount:!0,bufferSize:1}));this.canEditComment=function(){return!!Hk(ha.canEditComment$)};
this.commentHistoryEnabled=xH(this.activeSession,"enableCommentHistoryUi");this.effortSpec$=this.issueDetailsBrain.effortSpec$;this.isEffortEnabled$=this.issueDetailsBrain.isEffortEnabled$;this.teamId$=this.issueDetailsBrain.teamId$;this.issue$=this.distinctIssueId$.pipe(bg(function(ra){return ha.editIssueService.editableIssue$(ra)}));this.modifiedDateDisplay$=this.event$.pipe(R(function(ra){return new Date(ra.modifiedDate)}),bg(function(ra){return tOb(ha.dateFormatter,ra)}));this.ariaLabelHeading$=
(0,S.combineLatest)([this.event$,this.modifiedDateDisplay$]).pipe(R(function(ra){var Da=r(ra);ra=Da.next().value;Da=Da.next().value;if(null==ra)ra="";else{var Ja=[];ra.commentNumber&&Ja.push("Comment #"+ra.commentNumber);ra.userPerformingActionUser&&Ja.push(Nl(ra.userPerformingActionUser));Ja.push("Modified: "+Da);ra=Ja.join(", ")}return ra}));this.showFullHistory$=this.userPreferencesManager.showFullHistory$;this.showRecentEventsFirst$=this.userPreferencesManager.showRecentEventsFirst$;this.preEventDiffs$=
(0,S.combineLatest)([this.event$,this.showRecentEventsFirst$]).pipe(R(function(ra){ra=r(ra);var Da=ra.next().value;return ra.next().value?Da.postDiffs:Da.preDiffs}));this.postEventDiffs$=(0,S.combineLatest)([this.event$,this.showRecentEventsFirst$]).pipe(R(function(ra){ra=r(ra);var Da=ra.next().value;return ra.next().value?Da.preDiffs:Da.postDiffs}));this.isShowingCommentTimestamp$=this.showFullHistory$.pipe(R(function(ra){return ra&&zn(ha.event)&&!!ha.event.unlinkifiedComment&&(0<ha.event.preDiffs.length||
0<ha.event.postDiffs.length)}));this.getCommentNumberLink=function(ra){return nn(ha.issueId,{comment:ra})}};U(T8,wI);T8.\u0275dir=wI.\u0275dir;
T8.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(cg(this.destroyed$)).subscribe(function(){zn(a.event)&&a.isRestricted()?a.mayReadPii$=a.mayReadPii():a.mayReadPii$=(0,S.of)(void 0)});uqc(this);this.userPreferencesManager.textDisplayPreferencesSubject$.pipe(cg(this.destroyed$)).subscribe(function(b){a.isFormattingOverrideEnabled=
null!=b.commentDisplayOverride;a.initializeActionsMenu()});this.issueDetailsBrain.canonicalIssueId$.pipe(cg(this.destroyed$)).subscribe(function(b){a.canonicalIssueId=b;a.initializeActionsMenu()});this.canEditComment$.pipe(cg(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()});this.issuePermissionService.canChangeCommentRetention$.pipe(cg(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()})};
var uqc=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=T8.prototype;
g.updateCommentRetention=function(a){var b=this;this.event.commentNumber||JK(this.errorHandler,"Comment number is missing");eo(this.analytics,io.RESTRICTED_CONTENT,"updateRetention","comment");this.commentService.updateRetention(this.issueId,this.event.commentNumber||0,a).pipe(cg(this.destroyed$)).subscribe({next:function(c){b.event=Object.assign({},b.event,{commentRetention:J8a(c.getPiiRetention()),commentRetentionState:c.hasPiiRetentionState()?K8a(c.getPiiRetentionState()):null});FK(b.butterBar,
"Comment retention updated",4E3);b.commentRetentionOverride=2===a?"INDEFINITE":"COMPONENT_DEFAULT";b.initializeActionsMenu()},error:function(){JK(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=wsa(this.event.formattingMode),0===this.formattingMode&&(this.formattingMode=1));this.initializeActionsMenu()};
g.getRestrictedLabel=function(){return wqa(Dl(this.event.commentContentVerdict))};g.isRestricted=function(){if(!this.isInternalSession)return!1;var a=Dl(this.event.commentContentVerdict);switch(a){case "NONE_DETECTED":case "PII_SEVERITY_UNSPECIFIED":return!1;case "PII":case "SPII":return!0;default:mh(a)}};g.isDeleted=function(){return"DELETED"===this.event.commentDeletionStatus};var qt=function(a){var b;return(null==(b=a.event)?void 0:b.commentRedacted)&&!a.deobfuscatedEvent};g=T8.prototype;
g.loadRestrictedComment=function(){var a=this;eo(this.analytics,io.RESTRICTED_CONTENT,"viewRestrictedContent","comment");var b=String(this.issueId),c=this.event.commentNumber||0,d=Cl(Dl(this.event.commentContentVerdict));this.commentService.get(b,c,d).pipe(Qf()).subscribe(function(e){e=Sm(e);a.deobfuscatedEvent=Object.assign({},a.event,e);a.initializeActionsMenu()},function(e){var f;GK(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]]}),uqc(this)),this.canEditComment()&&b.push({type:"action",action:function(){pt(a.issueCommentDialogsService,String(a.issueId),a.deobfuscatedEvent||a.event).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Edit comment...",
disabled:qt(this)}),this.commentHistoryEnabled&&0<(this.event.commentVersion||0)&&!qt(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.canonicalIssueId||this.isDeleted()||this.activeSession.isAnonymous()||b.push({type:"action",action:function(){var d=a.paths.editIssue(a.canonicalIssueId,{template_issue:a.issueId,template_comment:a.event.commentNumber,
do_attribution:!0});a.domSafe.openInNewTab(d);a.commentActionsMenu.actionsMenuIconButton.focus()},label:"Copy to canonical issue",disabled:qt(this)}),this.isDeleted()||this.activeSession.isAnonymous()||b.push({type:"action",action:function(){imc(a.issueCommentDialogsService,String(a.issueId),a.event.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Copy comment to...",disabled:qt(this)}),KMb(this.issuePermissionService,this.event)&&b.push({type:"action",action:function(){omc(a.issueCommentDialogsService,
String(a.issueId),a.event.commentNumber,a.event.commentEtag).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Delete comment"}),JMb(this.issuePermissionService,this.event)&&b.push({type:"action",action:function(){lmc(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(){pmc(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;qmc(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 Ql(this.event.userPerformingActionUser)};g.showCommentHistoryDialog=function(a){return this.commentHistoryDialogService.show(this.issueId,a,-1)};g.mayReadPii=function(){var a=sK(this.userAccess,"reader","issues/"+this.issueId+"/comments/"+this.event.commentNumber);a.catch(function(b){Sk("error: ",b);return!1});return(0,S.from)(a)};
li.Object.defineProperties(T8.prototype,{event:{configurable:!0,enumerable:!0,set:function(a){this.internalEvent=a;this.event$.next(a)},get:function(){return this.internalEvent}}});T8.\u0275fac=function(a){return new (a||T8)(D(rP),D(vH),D(EW),D(E8),D(pd),D(rK),D(DK),D(IK),D(QM),D(VI),D(kO),D(mS),D(mO),D(MS),D(z6),D(IP),D(TK),D(tP))};
T8.\u0275cmp=w({type:T8,selectors:[["b-history-event"]],viewQuery:function(a,b){a&1&&Bf(tqc,5);if(a&2){var c;Af(c=Df())&&(b.commentActionsMenu=c.first)}},inputs:{issueId:"issueId",issueAccessLevel:"issueAccessLevel",event:"event"},features:[ae,Cc],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"],
["mode","time","class","float-right muted type-s",3,"timestamp",4,"ngIf"],["class","muted italic",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",
"vertical-centered",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,"float-right","muted","type-s",3,"timestamp"],[1,"muted","italic"],
[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&&(M(0,Pab,37,30,"ng-container",0),P(1,"async"));a&2&&C("ngIf",Q(1,1,b.issue$))},
dependencies:[OZ,G8,TW,Gx,Cx,Mx,JP,nN,rN,S8,oS,q5,s5,pT,rS,qS,GS,O8,P8,Px],styles:[".bv2-event-user[_ngcontent-%COMP%]{font-weight:400;margin:0 0 12px}.bv2-event-user[_ngcontent-%COMP%]   b-user-membership-chip[_ngcontent-%COMP%]{margin-left:-8px}.bv2-event-user   .d-cozy[_nghost-%COMP%]   .bv2-event-user[_ngcontent-%COMP%], .d-cozy   [_nghost-%COMP%]   .bv2-event-user[_ngcontent-%COMP%]{margin-bottom:10px}.bv2-event-user   .d-compact[_nghost-%COMP%]   .bv2-event-user[_ngcontent-%COMP%], .d-compact   [_nghost-%COMP%]   .bv2-event-user[_ngcontent-%COMP%]{margin-bottom:8px}\n/*# sourceMappingURL=history_event.css.map */"],
changeDetection:0});
var Uab=function(){return[]},U8=function(a,b,c,d,e){wI.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 S.ReplaySubject(1);this.internalIssueId=0;this.issue$=this.issueId$.pipe(bg(function(h){return f.editIssueService.editableIssue$(h.toString())}));this.effortSpec$=this.issueDetailsBrain.effortSpec$;this.isEffortEnabled$=this.issueDetailsBrain.isEffortEnabled$;
this.events$=new S.ReplaySubject(1);this.commentsToFormat$=new S.ReplaySubject(1);this.internalEvents=[];this.allEventsToDisplay=[];this.firstEventPostDiffs$=new S.ReplaySubject(1);this.allEvents$=(0,S.combineLatest)([this.events$,this.firstEventPostDiffs$]).pipe(R(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(v){return k[0].preDiffs.includes(v)})||(q=Object.assign({},k[0],{preDiffs:[].concat(u(q),u(k[0].preDiffs))}),h[0]=q),h):[]}))};
U(U8,wI);U8.\u0275dir=wI.\u0275dir;
U8.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(rf(bl),cg(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst=b;vqc(a)});this.allEvents$.pipe(rf(bl),cg(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(rf(bl),cg(this.destroyed$),bg(function(b){return KJ(a.formattedCommentsForIssueFridge,
b)})).subscribe(function(b){wqc(a,b)})};
var wqc=function(a,b){a.allEventsToDisplay=[];var c,d=null!=(c=Hk(a.allEvents$))?c:[];c={};d=r(d);for(var e=d.next();!e.done;c={$jscomp$loop$prop$event$1738:c.$jscomp$loop$prop$event$1738},e=d.next())if(c.$jscomp$loop$prop$event$1738=e.value,c.$jscomp$loop$prop$event$1738.commentNumber){if(e=b.find(function(f){return function(h){return h.id.commentId===f.$jscomp$loop$prop$event$1738.commentNumber}}(c)))c.$jscomp$loop$prop$event$1738.formattedComment=e.formattedComment.formattedComment,c.$jscomp$loop$prop$event$1738.formattingMode=
e.formattedComment.formattingMode,a.allEventsToDisplay.push(Object.assign({},c.$jscomp$loop$prop$event$1738))}else a.allEventsToDisplay.push(Object.assign({},c.$jscomp$loop$prop$event$1738));vqc(a)};U8.prototype.showEvent=function(a){return(this.showFullHistory||a.isMajorEvent)&&(zn(a)&&!!a.unlinkifiedComment||Bta(a)||0<a.preDiffs.length||0<a.postDiffs.length)};
var vqc=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()};U8.prototype.isLoading=function(){return this.formattedCommentsForIssueFridge.isThinking()||this.eventsForIssue.isThinking(this.internalIssueId)};U8.prototype.trackEventByVersion=function(a,b){return b.version};
li.Object.defineProperties(U8.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&&!Pna(this.internalEvents,a)&&(this.internalEvents=a,this.events$.next(a))}},firstEventPostDiffs:{configurable:!0,enumerable:!0,set:function(a){a&&this.firstEventPostDiffs$.next(a)}}});U8.\u0275fac=function(a){return new (a||U8)(D(PL),D(VI),D(LL),D(mS),D(kO))};
U8.\u0275cmp=w({type:U8,selectors:[["b-event-stream"]],inputs:{issueAccessLevel:"issueAccessLevel",showFullHistory:"showFullHistory",issueId:"issueId",events:"events",firstEventPostDiffs:"firstEventPostDiffs"},features:[ae],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&&(M(0,Qab,2,0,"aside",0),F(1,"div",1),M(2,Sab,2,1,"ng-container",2),M(3,Wab,2,1,"ng-container",3),P(4,"async"),G(),M(5,Xab,2,0,"aside",0));a&2&&(C("ngIf",b.isLoading()&&b.showRecentEventsFirst),B(2),C("ngForOf",b.allEventsToDisplay)("ngForTrackBy",b.trackEventByVersion),B(1),C("ngIf",Q(4,5,b.issue$)),B(2),C("ngIf",b.isLoading()&&
!b.showRecentEventsFirst))},dependencies:[Gx,Cx,T8,S8,kN,Px],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}.bv2-event[_ngcontent-%COMP%]:last-of-type{border-bottom:none}"]});
var V8=function(a,b,c){wI.call(this);var d=this;this.dynamicScrollIntoView=a;this.bLocation=b;this.elementRef=c;this.scrollToCommentOrAttachmentOnce=fua(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=Jta(d.events);if(-1===e)return;q=String(e);h="comment"}h&&q&&(e=d.events.some(function(v){return v.commentNumber===Number(q)}),f=d.events.flatMap(function(v){return v.attachments}).some(function(v){return v.attachmentId===
Number(q)}),(e||f)&&bmc(d.dynamicScrollIntoView,{elementId:h+q,parentElement:d.elementRef.nativeElement,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(cg(d.destroyed$)).subscribe())}})};U(V8,wI);V8.\u0275dir=wI.\u0275dir;V8.prototype.ngOnChanges=function(a){a.events&&this.events&&this.scrollToCommentOrAttachmentOnce()};V8.prototype.trackEventByVersion=function(a,b){return b.version};
V8.prototype.showEvent=function(a){return(this.showFullHistory||a.isMajorEvent)&&(zn(a)&&!!a.unlinkifiedComment||Bta(a)||0<a.preDiffs.length||0<a.postDiffs.length)};V8.\u0275fac=function(a){return new (a||V8)(D(s6),D(SK),D(pd))};
V8.\u0275cmp=w({type:V8,selectors:[["b-history-event-stream"]],inputs:{issueId:"issueId",issueAccessLevel:"issueAccessLevel",showFullHistory:"showFullHistory",events:"events"},features:[ae,Cc],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&&(F(0,"div",0),M(1,Zab,2,1,"ng-container",1),G());a&2&&(B(1),C("ngForOf",b.events)("ngForTrackBy",
b.trackEventByVersion))},dependencies:[T8,Gx,Cx],encapsulation:2,changeDetection:0});
var $ab=function(a){return[a]},W8=function(a,b,c,d,e,f,h){wI.call(this);var k=this;this.eventsForIssue=a;this.issueFetchResponseFridge=b;this.preferences=c;this.activeSession=d;this.commentHistoryDialogService=e;this.issueDetailsBrain=f;this.errorHandler=h;this.id$=new S.ReplaySubject(1);this.events$=this.id$.pipe(bg(function(q){return k.eventsForIssue.watch(q)}),R(function(q){var v;return null!=(v=null==q?void 0:q.events)?v:[]}));this.firstEventPostDiffs$=this.events$.pipe(R(function(q){return q[0].postDiffs}));
this.issue$=this.id$.pipe(bg(function(q){return AL(k.issueFetchResponseFridge,q)}));this.idNumber$=this.id$.pipe(R(Number));this.accessLevel$=this.issue$.pipe(R(function(q){var v,y;return null==q?void 0:null==(v=q.issue)?void 0:null==(y=v.accessLimit)?void 0:y.accessLevel}));this.enableEnhancedCommentThread=xH(this.activeSession,"enableEnhancedCommentThread")};U(W8,wI);W8.\u0275dir=wI.\u0275dir;
W8.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=Hk(a.id$);d&&a.commentHistoryDialogService.show(Number(d),c,null!=b?b:-1)}}));this.subscriptions.add(this.eventsForIssue.error$.subscribe(function(b){a.errorHandler.errorHandler(null,b)}))};li.Object.defineProperties(W8.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)}}});
W8.\u0275fac=function(a){return new (a||W8)(D(LL),D(zL),D(VI),D(vH),D(MS),D(kO),D(IK))};
W8.\u0275cmp=w({type:W8,selectors:[["issue-event-list"]],inputs:{id:"id"},features:[ae],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&&(M(0,abb,4,12,"b-history-event-stream",0),P(1,"async"),M(2,bbb,7,18,"b-event-stream",1),M(3,cbb,6,15,"ng-template",null,2,Jf),M(5,dbb,2,0,"aside",3));if(a&2){var c=Ce(4),d;C("ngIf",!b.enableEnhancedCommentThread&&(null==(d=Q(1,4,b.issue$))?null:d.firstEvent));B(2);C("ngIf",b.enableEnhancedCommentThread)("ngIfElse",c);B(3);C("ngIf",b.eventsForIssue.isThinking(b.id)&&!b.enableEnhancedCommentThread)}},
dependencies:[Cx,U8,V8,kN,Px,Vx],styles:["[_nghost-%COMP%]     .bv2-edit-issue-history-stream {\n      padding-left: 0;\n    }"]});
var jbb=function(a,b){return{empty:a,"never-focused":b}},X8=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.issueCommentDialogsService=k;this.issueId$=new S.ReplaySubject(1);this.distinctIssueId$=this.issueId$.pipe(Pf());this.issue$=this.distinctIssueId$.pipe(bg(function(v){return q.editIssueService.editableIssue$(v)}));this.wasFocused=!1;this.commentSubmitted=
new Rw;this.HOTKEYS=vI;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(R(function(v){return v.autoCcOnComment}));this.issueCommentDraft$=this.issueId$.pipe(R(function(v){return q.editIssueService.issueCommentDraft(v)}));
this.judgementForNewContent$=this.issueCommentDraft$.pipe(bg(function(v){return v.judgementForNewContent$}));this.comment$=this.issueCommentDraft$.pipe(bg(function(v){return v.comment$}));this.events$=this.issueDetailsBrain.eventsJs$;this.savingState$=this.issueId$.pipe(R(function(v){return q.editIssueService.savingState(v)}));this.isSaving$=this.savingState$.pipe(bg(function(v){return Qs(v.propertiesBeingSaved,Tn("comment"))}));this.commentLimitReached$=this.events$.pipe(R(function(v){var y=q.activeSession.getCommentNumberLimit();
return Jta(v)>=y}));this.commentPlaceholderText$=this.commentLimitReached$.pipe(R(function(v){return v?"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,S.combineLatest)([this.hasAclToComment$,this.commentLimitReached$,this.isSaving$]).pipe(R(function(v){var y=r(v);v=y.next().value;
var E=y.next().value;y=y.next().value;return v&&!E&&!y}));this.commentDraftUpdated$=new S.BehaviorSubject(!0);this.commentButtonEnabled$=(0,S.combineLatest)([this.hasAclToComment$,this.comment$,this.isSaving$,this.commentDraftUpdated$]).pipe(R(function(v){var y=r(v);v=y.next().value;var E=y.next().value;y=y.next().value;return v&&EQb(E)&&!y}));this.empty$=(0,S.combineLatest)([this.comment$,this.commentDraftUpdated$]).pipe(R(function(v){var y,E;return null!=(E=null==(y=r(v).next().value)?void 0:y.value)?
E:""}),R(function(v){return 0===v.length}))};X8.prototype.toggleAutoCcOnComment=function(){var a=this,b;return bf(function(c){b=!Fi(a.userPreferencesManager.preferencesSubject$.getValue()).autoCcOnComment;eo(a.analytics,io.EDIT_ISSUE,"toggleAutoCcOnComment",String(b));return cf(c,(0,S.firstValueFrom)(a.userPreferencesManager.save({autoCcOnComment:b})),0)})};
X8.prototype.saveCommentDraft=function(){var a=this,b;return bf(function(c){if(1==c.nextAddress)return cf(c,(0,S.firstValueFrom)(a.comment$),2);b=c.yieldResult;a.draftStore.$window.sessionStorage.setItem(xo(Number(a.internalIssueId)),b.value);a.commentDraftUpdated$.next(!0);df(c)})};X8.prototype.submitCommentBox=function(){var a=this;return bf(function(b){if(1==b.nextAddress)return cf(b,a.issueCommentDialogsService.submitCommentBox(a.internalIssueId),2);a.commentSubmitted.emit();df(b)})};
X8.prototype.showNewContentJudgementDialog=function(){var a=this;return bf(function(b){return cf(b,a.issueCommentDialogsService.showNewContentJudgementDialog(a.internalIssueId),0)})};li.Object.defineProperties(X8.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a);this.internalIssueId=a},get:function(){return this.internalIssueId}}});X8.\u0275fac=function(a){return new (a||X8)(D(mO),D(VI),D(mS),D(QM),D(IR),D(vH),D(kO),D(z6))};
X8.\u0275cmp=w({type:X8,selectors:[["b-post-comment"]],inputs:{issueId:"issueId"},outputs:{commentSubmitted:"commentSubmitted"},decls:2,vars:3,consts:[[4,"ngIf"],[1,"a11y-only"],[1,"bv2-edit-issue-add-comment",3,"ngClass"],["id","AddCommentBox",3,"hotkey","supportsPreview","issueId","comment","componentId","placeholder","judgementForNewContent","audience","disabled","onHotkey","onChange","onFocusEvent","onSubmit","onRestrict"],["commentBox",""],[1,"goog-inline-block"],["format","fill",3,"disabled",
"onAction","click"],["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&&(M(0,lbb,2,1,"ng-container",0),P(1,"async"));a&2&&C("ngIf",Q(1,1,b.issue$))},dependencies:[wO,oX,SW,Fx,Cx,SS,dJ,tQ,Px],styles:["[_nghost-%COMP%]{display:block;margin-bottom:8px}[_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}.recent-first   [_nghost-%COMP%]     .empty.never-focused textarea{min-height:32px;height:32px !important}.recent-first   [_nghost-%COMP%]     .empty.never-focused textarea:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}.recent-first   [_nghost-%COMP%]     .empty.never-focused b-live-preview{display:none}\n/*# sourceMappingURL=post_comment.css.map */"]});
var Y8=function(a,b,c,d,e,f,h,k,q){wI.call(this);var v=this;this.brain=a;this.activeSession=b;this.preferences=c;this.scrollTiming=d;this.analytics=e;this.element=f;this.editIssueService=h;this.appEvents=k;this.routePerformance=q;this.id$=this.brain.id$;this.enableEnhancedCommentThread=xH(this.activeSession,"enableEnhancedCommentThread");this.showRecentEventsFirst=!1;this.comment$=this.id$.pipe(rf(bl),bg(function(y){return v.editIssueService.issueCommentDraft(y).comment$}));this.finishedRendering$=
(0,S.combineLatest)([this.brain.eventsJs$.pipe(Of(0)),Xp("#AddCommentBox textarea",this.element.nativeElement)]).pipe(Qf())};U(Y8,wI);Y8.\u0275dir=wI.\u0275dir;
Y8.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(rf(bl),cg(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst=b});this.destroyed$.subscribe(function(){xqc(a)});Xp("#comment1 .bv2-event-note-container",this.element.nativeElement).pipe(cg(this.destroyed$)).subscribe(function(){var b=function(){F7b(a.routePerformance,"issue-details-w-comments")};requestAnimationFrame(b);setTimeout(b)});this.subscriptions.add(this.finishedRendering$.pipe(eg(this.comment$)).subscribe(function(b){b=
r(b);b.next();b.next().value.hasContent()&&a.appEvents.scrollToCommentBox.next()}))};Y8.prototype.unloadPageHandler=function(){xqc(this)};
var xqc=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);eo(a.analytics,io.EDIT_ISSUE,"scroll","commentThread",e)}};Y8.\u0275fac=function(a){return new (a||Y8)(D(kO),D(vH),D(VI),D(ZO),D(QM),D(pd),D(mS),D(MK),D(X_))};
Y8.\u0275cmp=w({type:Y8,selectors:[["ng-component"]],hostBindings:function(a,b){a&1&&J("unload",function(){return b.unloadPageHandler()},!1,sd)},features:[ae],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,"recent-first","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&&(M(0,mbb,3,2,"div",0),P(1,"async"),M(2,rbb,6,8,"div",1),P(3,"async"));a&2&&(C("ngIf",b.enableEnhancedCommentThread&&Q(1,2,b.id$)),B(2),C("ngIf",Q(3,4,b.id$)))},dependencies:[Cx,X8,N8,W8,j_,H8,D8,Px],encapsulation:2});
var Z8=function(){};Z8.\u0275fac=function(a){return new (a||Z8)};Z8.\u0275mod=uc({type:Z8});Z8.\u0275inj=gc({imports:[Wx,wF,BG]});
var $8=function(){};$8.\u0275fac=function(a){return new (a||$8)};$8.\u0275mod=uc({type:$8});$8.\u0275inj=gc({providers:[],imports:[Wx,RZ,hT,bI,BG,wF,lH,u5,bT]});
var a9=function(){};a9.\u0275fac=function(a){return new (a||a9)};a9.\u0275mod=uc({type:a9});a9.\u0275inj=gc({imports:[RZ,$8,jX,Wx,cQ,YN,ES,BG,wF,lH,u5,qT,HS]});
var b9=function(){};b9.\u0275fac=function(a){return new (a||b9)};b9.\u0275mod=uc({type:b9});b9.\u0275inj=gc({imports:[Wx,cI,wF,dC,QI,NO,BG,SP,yK,Gy,Hy,UN,lH,IA]});
var c9=function(){};c9.\u0275fac=function(a){return new (a||c9)};c9.\u0275mod=uc({type:c9});c9.\u0275inj=gc({imports:[Wx,BG,wF,lH,pC,rC]});
var d9=function(a){wI.call(this);this.prefs=a};U(d9,wI);d9.\u0275dir=wI.\u0275dir;d9.prototype.onChange=function(a){this.prefs.save({useCodefont:a.checked}).pipe(cg(this.destroyed$)).subscribe()};d9.\u0275fac=function(a){return new (a||d9)(D(VI))};
d9.\u0275cmp=w({type:d9,selectors:[["b-toggle-code-font"]],features:[ae],ngContentSelectors:["*"],decls:3,vars:3,consts:[["matTooltip","Use a monospace typeface to display all comments",3,"checked","change"]],template:function(a,b){a&1&&(xe(),F(0,"mat-slide-toggle",0),J("change",function(c){return b.onChange(c)}),P(1,"async"),ye(2),G());a&2&&C("checked",Q(1,1,b.prefs.codeFont$))},dependencies:[sF,ET,Px],changeDetection:0});
var e9=function(){};e9.\u0275fac=function(a){return new (a||e9)};e9.\u0275mod=uc({type:e9});e9.\u0275inj=gc({imports:[Wx,lH,NO,GT,wF,BG,WN]});
var f9=function(){};f9.\u0275fac=function(a){return new (a||f9)};f9.\u0275mod=uc({type:f9});f9.\u0275inj=gc({providers:[M8],imports:[Wx,cT,eJ,mY,b9,YN,HX,e5,F2,c9,BG,wF,lH,QI,UN,e9]});
var yqc=[Q8,S8,R8],g9=function(){};[].concat(u(yqc));[].concat(u(yqc));g9.\u0275fac=function(a){return new (a||g9)};g9.\u0275mod=uc({type:g9});g9.\u0275inj=gc({imports:[Wx,YN,HX,cQ,HS,dT,jX]});
var h9=function(){};h9.\u0275fac=function(a){return new (a||h9)};h9.\u0275mod=uc({type:h9});h9.\u0275inj=gc({providers:[],imports:[RZ,$8,jX,Wx,cQ,YN,g9,ES,u5,qT,HS]});
var i9=function(){};i9.\u0275fac=function(a){return new (a||i9)};i9.\u0275mod=uc({type:i9});i9.\u0275inj=gc({imports:[Wx,h9,g9,BG,wF,WN]});
var zqc=[V8],j9=function(){};[].concat(u(zqc));[].concat(u(zqc));j9.\u0275fac=function(a){return new (a||j9)};j9.\u0275mod=uc({type:j9});j9.\u0275inj=gc({imports:[h9,Wx]});
var k9=function(){};k9.\u0275fac=function(a){return new (a||k9)};k9.\u0275mod=uc({type:k9});k9.\u0275inj=gc({imports:[jX,Wx,i9,j9,a9,e5,c9,BG,wF,lH,WN,UN,HS]});
var l9=function(){};l9.\u0275fac=function(a){return new (a||l9)};l9.\u0275mod=uc({type:l9});l9.\u0275inj=gc({imports:[xO,WX,jX,Wx,cT,Gy,eJ,BG,NO,wF,uQ]});
var m9=function(){};m9.\u0275fac=function(a){return new (a||m9)};m9.\u0275mod=uc({type:m9});m9.\u0275inj=gc({imports:[nz,Oz,Gy,Hy,QI,BG,iX,kP,l9,HS,f9,k9,k_,a9,Z8]});
var n9=function(a,b){var c=this;this.issueFridge=a;this.issueDetailsBrain=b;this.ROBOT_SLEEPING=Zjc;this.issue$=this.issueDetailsBrain.id$.pipe(bg(function(d){return c.issueFridge.watch(d)}),rf(bl));this.relatedLinks$=this.issue$.pipe(R(function(d){return d.relatedLinks||[]}));this.issueReferences$=this.relatedLinks$.pipe(R(function(d){return d.filter(function(e){return"issueReference"===e.type})}));this.ids$=(0,S.combineLatest)([this.issueReferences$.pipe(R(function(d){return d.map(function(e){return e.issueId})})),
this.issue$]).pipe(R(function(d){var e=r(d);d=e.next().value;e=e.next().value;return Aqc(d,e)}));this.urls$=this.relatedLinks$.pipe(R(function(d){return d.filter(function(e){return"hyperlink"===e.type})}),R(function(d){return d.map(function(e){return e.href})}),R(function(d){return[].concat(u(new Set(d)))}));this.state$=(0,S.combineLatest)([this.ids$,this.urls$]).pipe(R(function(d){var e=r(d);d=e.next().value;e=e.next().value;return{ids:d,urls:e,hasNoResults:0===d.length&&0===e.length}}))},Aqc=function(a,
b){var c=String(b.issueId);return[].concat(u(new Set(a))).filter(function(d){return d!==c})};n9.\u0275fac=function(a){return new (a||n9)(D(wL),D(kO))};
n9.\u0275cmp=w({type:n9,selectors:[["issue-resources"]],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/b-resources-and-links","target","_blank"],[1,"gap"],[4,"ngFor","ngForOf"],[1,"margin-bottom"],["svgIcon","info",1,"icon-s","valign-middle"],[3,"issueIds"],[3,"href","originalHref"]],
template:function(a,b){a&1&&(F(0,"section",0),M(1,xbb,4,2,"ng-container",1),P(2,"async"),G());a&2&&(B(1),C("ngIf",Q(2,1,b.state$)))},dependencies:[Gx,Cx,BW,U6,dF,Px],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 o9=function(){};o9.\u0275fac=function(a){return new (a||o9)};o9.\u0275mod=uc({type:o9});o9.\u0275inj=gc({imports:[Wx,jX,$6,wF]});
var p9=function(a,b){var c=this;this.brain=a;this.codeMentions=b;this.ROBOT_SLEEPING=Zjc;this.id$=this.brain.id$.pipe(rf(bl));this.codeMentionsState$=this.id$.pipe(bg(function(d){return Llc(c.codeMentions,Number(d))}))};p9.prototype.displayPackageNames=function(a){return this.codeMentions.displayPackageNames(a)};p9.prototype.trackSqueegeeClick=function(){this.codeMentions.trackSqueegeeClick()};p9.\u0275fac=function(a){return new (a||p9)(D(kO),D(l6))};
p9.\u0275cmp=w({type:p9,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&&(F(0,"section",0),M(1,Dbb,3,3,"ng-container",1),P(2,"async"),G());a&2&&(B(1),C("ngIf",Q(2,1,b.id$)))},dependencies:[Gx,Cx,k5,Px],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 q9=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()};q9.prototype.ngOnInit=function(){this.pageTitle.setTitle("All of my hotlists");this.fetchUserHotlists()};
q9.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)})};q9.\u0275fac=function(a){return new (a||q9)(D(sI,2),D(fO),D(kL),D(TK),D(IK))};
q9.\u0275cmp=w({type:q9,selectors:[["list-hotlists-page"]],features:[Ge([sI])],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&&(F(0,"h2",0),O(1,"Browse Hotlists"),G(),F(2,"div",1)(3,"a",2),O(4," Create Hotlist "),G()(),F(5,"div",3),M(6,Ebb,1,1,"b-spinner",4),M(7,Fbb,1,1,"b-hotlist-grid",5),G());a&
2&&(B(3),C("href",b.createHotlistPath,Md),B(3),C("ngIf",b.isLoading),B(1),C("ngIf",!b.isLoading))},dependencies:[Cx,rZ,kN,CB],encapsulation:2});
var Bqc=new Set(["issueId","modifiedTime","createdTime"]),r9=function(a,b,c,d,e,f,h,k,q,v,y,E,I,N,L,T,Y,ka,ha,ra,Da,Ja,Ba,La){wI.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=v;this.analytics=y;this.currentSearch=E;this.issuePagination=I;this.userPreferencesManager=N;this.urlPreferences=L;this.gridPreferencesFetcher=T;this.paths=Y;this.timeout=ka;this.errorHandler=
ha;this.statusMessages=ra;this.domSafe=Da;this.appEvents=Ja;this.hotlistFridge=Ba;this.issueFridge=La;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)||H4b(fb)}},{keys:["k"],displayAs:"k",description:"Move to the previous issue",onPress:function(){var fb;null==(fb=hb.resultsGrid)||I4b(fb)}},{keys:["x"],displayAs:"x",description:"Select/Deselect the current issue",onPress:function(){var fb;null==(fb=hb.resultsGrid)||G4b(fb)}},{keys:["s"],displayAs:"s",description:"Star/Unstar the current issue",onPress:function(){var fb;null==(fb=hb.resultsGrid)||K4b(fb)}},{keys:[Nj("i")],displayAs:"Shift+i",description:"Mark as read",
onPress:function(){var fb;null==(fb=hb.resultsGrid)||L4b(fb,!0)}},{keys:[Nj("u")],displayAs:"Shift+u",description:"Mark as unread",onPress:function(){var fb;null==(fb=hb.resultsGrid)||L4b(fb,!1)}},{keys:[Oj("*","a")],displayAs:"* then a",description:"Select all issues on this page",onPress:function(){var fb;null==(fb=hb.resultsGrid)||fb.selectAll()}},{keys:[Oj("*","n")],displayAs:"* then n",description:"Deselect all issues on this page",onPress:function(){var fb;null==(fb=hb.resultsGrid)||D4b(fb)}},
{keys:["a"],displayAs:"a",description:"Change assignee",onPress:function(){var fb;null==(fb=hb.gridControls)||PX(fb,null,0)}},{keys:["d"],displayAs:"d",description:"Mark as duplicate",onPress:function(){var fb;null==(fb=hb.gridControls)||PX(fb,Bn.DUPLICATE,3)}},{keys:["h"],displayAs:"h",description:"Edit hotlists",onPress:function(){var fb;if(null!=(fb=hb.gridControls)&&fb.hasSelectedIssues()){var Tb;null==(Tb=fb.hotlistPicker)||Tb.open()}}},{keys:["r"],displayAs:"r",description:"Add comment",onPress:function(){var fb;
null==(fb=hb.gridControls)||c3b(fb)}},{keys:["u",Nj("r")],displayAs:"u / Shift+r",description:"Refresh search results",onPress:function(){return hb.refreshResults()}},{keys:[Oj("p","0"),Oj("p","1"),Oj("p","2"),Oj("p","3"),Oj("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:Oi(hb.resultsGrid.getSelectedIssues(),"issueId")}])}},{keys:["o","ENTER",moa("ENTER")],
displayAs:"o / Enter",description:"Open the current issue",onPress:function(fb){var Tb=c.document.activeElement;if(1==fb&&"A"==Tb.tagName)if(Tb.href)fb=hb.paths.getBaseUrl(),Ni(Tb.href,fb)?hb.bLocation.url(Tb.href.slice(fb.length)):hb.domSafe.openInNewTab(Tb.href);else{var va;null==(va=hb.resultsGrid)||RY(va)}else if(2===fb){var Ca;null==(Ca=hb.resultsGrid)||RY(Ca,{openInNewTab:!0})}else{var Ia;null==(Ia=hb.resultsGrid)||RY(Ia)}}}]};U(r9,wI);
r9.prototype.ngOnInit=function(){var a=this;Cqc(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(cg(this.destroyed$)).subscribe(function(){Cqc(a)})};
var Dqc=function(a){var b=["priority","type","title","assignee","status"];a.activeSession.isInternalSession()&&b.push("minSlo");b.push("issueId","modifiedTime");return b.map(Ui)};
r9.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&&ya(a.hotlistChoices,d),a.hotlistChoices.push(c),a.hotlistMap[c.hotlistId]=c,a.cdr.detectChanges())}}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
var Cqc=function(a){return Eqc(a).then(function(){return a.getIssues()}).then(function(){return a.searchResults?Fqc(a,a.searchResults.startIndex,a.searchResults.endIndex):Promise.resolve()}).finally(function(){a.cdr.detectChanges()})},Gqc=function(a){return null!=a.window.document.activeElement&&a.window.document.activeElement!==a.window.document.body},Hqc=function(a){var b,c;return null!=(c=null==(b=a.window.document.activeElement)?void 0:b.classList.contains("search-box"))?c:!1},Eqc=function(a){var b=
Kj();Gqc(a)&&Hqc(a)&&a.window.document.activeElement.blur();a.timeout.schedule(function(){b.resolve()});return b.promise},Fqc=function(a,b,c){var d=Kj();Gqc(a)||Iqc(a,b,c);a.timeout.schedule(function(){d.resolve()});return d.promise},Jqc=function(a,b){var c=a.activeSession.getMaxAccurateSearchResults();b.numResults>c&&!b.isPreSort&&(b=Sn("Number of search results exceeds "+c+"; some matching issues may be omitted.",Rn("BR"),"Please try to restrict your search further or change the sort column to either CREATED or LAST MODIFIED. "),
c={},c=Rn("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=Sn(Rn("BR"),"See ",c," for more details."),b=a.activeSession.isInternalSession()?Sn(b,c):b,tIb(a.butterBar,b))};g=r9.prototype;
g.setSort=function(a,b,c){c=void 0===c?!0:c;var d=Ui(a);if(d){var e=new Xi(d,"ASC"==b?"ASCENDING":"DESCENDING");za(this.sortPreferences,function(f){return Ei(f.fieldId,e.fieldId)});!c||Bqc.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){uZ(this.urlPreferences,{sortColumns:a,page:1})};
g.initColumns=function(a,b){var c=this;b=void 0===b?Kqc:b;a.then(function(d){c.displayColumns=d;c.metaColumns=b;c.isColumnSaveEnabled=!0;c.issueColumnsInternal=[].concat(u(b),u(g4b(d)));c.cdr.detectChanges()})};g.saveColumns=function(a){this.displayColumns=a.map(function(b){return Ui(b.name)});uZ(this.urlPreferences,{displayColumns:this.displayColumns})};
g.goToIssue=function(a,b,c){var d;c&&"A"===(null==(d=c.target)?void 0:d.tagName)||(eo(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?uP(this.domSafe,a):this.bLocation.url(a))};g.goToPage=function(a){this.bLocation.search("p",a)};var rt=function(a,b,c){void 0!==b&&a.goToPage(b+c)};g=r9.prototype;g.refreshResults=function(){UM(this.issuePagination);return Cqc(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)||$Kb(f,e,c)}this.cdr.detectChanges();FK(this.butterBar,"Saving changes...",0);return yL(this.issueFridge,a[0].issueIds,{markRead:c}).then(function(k){for(var q=r(a[0].issueIds),v=q.next();!v.done;v=q.next()){v=v.value;var y=void 0,E=void 0;
null==(y=b.searchResults)||$Kb(y,v,void 0,null!=(E=k)?E:null)}FK(b.butterBar,"Successfully marked issues "+(c?"read.":"unread."))}).catch(function(k){for(var q=r(a[0].issueIds),v=q.next();!v.done;v=q.next()){v=v.value;var y=void 0;null==(y=b.searchResults)||$Kb(y,v)}b.errorHandler.errorHandler(null,k)}).finally(function(){b.cdr.detectChanges()})}d=sQb(a).map(function(k){return k.fieldName});eo(this.analytics,this.ANALYTICS_CATEGORY,"bulkEdit",d.join(","));var h={bulkEditOps:a};FK(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()),v=q.next();!v.done;v=q.next()){var y=r(v.value);v=y.next().value;y=y.next().value;k.affectedIssues[y.issueId]&&(y=k.affectedIssues[y.issueId],v=b.searchResults.issues[v],WKb(v,y,k.componentMap[qa(y.snapshot).componentId]),v.selected=!0,b.loadHotlists(v),Object.assign(b.customFieldMap,v.customFieldMap))}}k.errors&&k.errors.length?(q="Failed to update issue(s) "+
(Oi(k.errors,"issueId").join(", ")+"."),GK(b.butterBar,q),eo(b.analytics,b.ANALYTICS_CATEGORY,"bulkEditError",""+k.errors.length)):(k=wQb(b.statusMessages,h,b.customFieldMap))?FK(b.butterBar,k):FK(b.butterBar,"Saved "+tQb(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$1740:h.$jscomp$loop$prop$loadedHotlists$1740},q=k.next()){q=q.value;if(!q.hotlistId)return;
h.$jscomp$loop$prop$loadedHotlists$1740=[];q.hotlists=h.$jscomp$loop$prop$loadedHotlists$1740;q=r(q.hotlistId);for(var v=q.next();!v.done;v=q.next())v=v.value,b.hotlistMap[v]?h.$jscomp$loop$prop$loadedHotlists$1740.push(b.hotlistMap[v]):b.hotlistApi.get(v).then(function(y){return function(E){b.hotlistFridge.announce(E);b.addHotlist(E);y.$jscomp$loop$prop$loadedHotlists$1740.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;eo(this.analytics,this.ANALYTICS_CATEGORY,"createHotlist");FK(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){b.hotlistFridge.announce(e);FK(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;FK(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(){eo(this.analytics,this.ANALYTICS_CATEGORY,"exportCsv");vP(this.domSafe,this.getCsvUrl())};
var Lqc=function(a,b){a.userPreferencesManager.save({resultsPerPage:b}).pipe(cg(a.destroyed$)).subscribe(function(){a.resultsPerPage=b;uZ(a.urlPreferences,{page:1});eo(a.analytics,a.ANALYTICS_CATEGORY,"resultsPerPageSave",b.toString());a.refreshResults();a.cdr.detectChanges()},function(c){Rk(c)})},Iqc=function(a,b,c){var d=a.issuePagination.focusedIssueIndex_;a.timeout.schedule(function(){if(d>=b&&d<=c)a.focusedRowIndex=d-b;else{iLb(a.issuePagination);a.focusedRowIndex=0;var e=document.querySelector(".bv2-view");
e&&(e.scrollTop=0)}a.cdr.detectChanges()})},Kbb=function(){setTimeout(function(){var a=document.querySelector(".b-select-all-toggle");a&&a.focus()})};
li.Object.defineProperties(r9.prototype,{issueColumns:{configurable:!0,enumerable:!0,get:function(){return this.issueColumnsInternal},set:function(a){Ei(this.issueColumnsInternal,a)||(eo(this.analytics,this.ANALYTICS_CATEGORY,"columnModification",gva(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 Kqc=[SY,TY,UY];
r9.\u0275fac=function(a){return new (a||r9)(D(sI),D(TI),D(Window),D(QK),D(HK),D(lK),D(kL),D(eL),D(vH),D(DK),D(QM),D(ON),D(TM),D(VI),D(tZ),D(zZ),D(TK),D(lI),D(IK),D(MR),D(tP),D(MK),D(qL),D(wL))};r9.\u0275dir=w({type:r9,features:[ae]});
var s9=function(a,b,c,d,e,f,h,k,q,v,y,E,I,N,L,T,Y,ka,ha,ra,Da,Ja,Ba,La,hb,fb,Tb,va){r9.call(this,a,b,c,d,f,h,k,q,e,v,y,E,I,N,L,T,Y,ka,Ba,ha,ra,hb,Tb,va);this.hotkeys=Da;this.pageTitle=Ja;this.routePerformance=La;this.element=fb;this.ANALYTICS_CATEGORY=io.LIST_ISSUES;this.isLoading=!0;this.showHotlists=!1};U(s9,r9);s9.\u0275dir=r9.\u0275dir;g=s9.prototype;
g.ngOnInit=function(){var a=this;r9.prototype.ngOnInit.call(this);this.subscriptions.add(cJ(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]),GK(this.butterBar,b));this.query=this.urlPreferences.getQuery();if(!this.query)return this.activeSession.isAnonymous()?(this.query="",PN(this.currentSearch,this.query),this.searchResults=null,this.setPageTitle(),this.isLoading=!1):(this.routePerformance.ignoringNextNav=!0,uZ(this.urlPreferences,{query:"assignee:"+this.currentUserEmail+" status:open"},!0)),Promise.resolve(void 0);PN(this.currentSearch,
this.query);b=xMb(this.currentSearch);if(0<b)return GIb(this.bLocation,this.paths.viewHotlist(b)),uZ(this.urlPreferences,{query:null},!0),Promise.resolve(void 0);b=yMb(this.currentSearch);if(0<b)return GIb(this.bLocation,this.paths.viewSavedSearch(b)),uZ(this.urlPreferences,{query:null},!0),Promise.resolve(void 0);this.searchResults=null;this.isLoading=!0;this.setPageTitle();this.subscriptions.add((0,S.concat)((0,S.timer)(0).pipe(qha()),Xp("b-issues-grid, #no-results",this.element.nativeElement)).subscribe(function(){var c=
function(){F7b(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:Dqc(this)}),c=b.searchPreferences.then(function(f){f=Fi(f);f.query=a.computeQuery(f);f.returnUrl=a.bLocation.url();return eLb(a.issuePagination,f)}),d;(null==(d=this.query)?0:d.includes("teamid:"))&&eo(this.analytics,this.ANALYTICS_CATEGORY,"searchByTeam");var e;(null==(e=this.query)?0:e.includes("componentid:"))&&eo(this.analytics,this.ANALYTICS_CATEGORY,"searchByComponent");
c.then(function(f){Jqc(a,f)}).catch(function(f){"number"===typeof f?uZ(a.urlPreferences,{page:f}):a.errorHandler.errorHandler(null,f)});b=b.displayColumns;this.initColumns(b);return Ho({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();eo(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 Ui(b.name)});aFb(this.userPreferencesManager,h4b(a)).pipe(cg(this.destroyed$)).subscribe()};
g.setPageTitle=function(){this.currentSearch.currentSearch===vMb(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===wMb(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(cg(this.destroyed$)).subscribe(function(){uZ(b.urlPreferences,{page:1,sortColumns:null});b.refreshResults().finally(function(){b.isLoading=!1;b.cdr.detectChanges();Kbb()})})};g.getCsvUrl=function(){return this.paths.issuesCsvAction(this.query,this.sortPreferences,this.displayColumns,this.showHotlists)};
s9.\u0275fac=function(a){return new (a||s9)(D(sI),D(TI),D(uM),D(SK),D(vH),D(HK),D(lK),D(kL),D(eL),D(DK),D(QM),D(ON),D(TM),D(VI),D(tZ),D(zZ),D(TK),D(lI),D(MR),D(tP),D(bJ),D(fO),D(IK),D(X_),D(MK),D(pd),D(qL),D(wL))};
s9.\u0275cmp=w({type:s9,selectors:[["list-issues-page"]],features:[Ge([sI]),ae],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&&(F(0,"h2",0),O(1,"Issue search results"),G(),F(2,"div",1)(3,"b-grid-controls",2),J("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()}),G(),F(4,"div",3)(5,"b-pagination",4),J("pageChange",function(c){return b.goToPage(c.page)})("resultsPerPageChange",function(c){return Lqc(b,c.option)}),G()()(),F(6,"div",5),M(7,Gbb,4,1,"div",6),M(8,Jbb,4,3,"div",7),M(9,Lbb,2,5,"div",8),G());a&2&&(B(3),C("grid",b.resultsGrid)("hotlistChoices",
b.hotlistChoices),B(2),C("searchResults",b.searchResults),B(1),ge("aria-busy",b.isLoading),B(1),C("ngIf",b.isLoading),B(1),C("ngIf",!b.isLoading&&!b.hasResults()),B(1),C("ngIf",!b.isLoading&&b.hasResults()))},dependencies:[XY,QZ,QY,Cx,kN,j_],encapsulation:2});var t9=function(){};t9.\u0275fac=function(a){return new (a||t9)};t9.\u0275mod=uc({type:t9});t9.\u0275inj=gc({imports:[qZ,TZ,MZ,xO,yO,Wx,WN,k_]});
var u9=function(a,b,c,d,e,f,h,k,q,v,y,E,I,N,L,T,Y,ka,ha,ra,Da,Ja,Ba,La,hb,fb,Tb,va,Ca){s9.call(this,a,b,c,d,e,f,h,k,q,v,y,E,I,N,L,T,Y,ka,ha,ra,Da,Ja,Ba,La,hb,fb,va,Ca);this.issueLru=Tb;this.ANALYTICS_CATEGORY="recentIssues";this.recentIds=Array.from(this.issueLru.viewed.keys());this.initialLoad=!0};U(u9,s9);u9.\u0275dir=s9.\u0275dir;u9.prototype.ngOnInit=function(){s9.prototype.ngOnInit.call(this);this.pageTitle.setTitle("Recent Issues");this.currentSearch.clear();this.initialLoad=!0};
u9.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()})};u9.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("|")};
u9.prototype.processSearchResults=function(a){this.initialLoad&&(a.params.sortColumns=[]);var b;null!=(b=a.params.sortColumns)&&b.length||(a.issues=Pbb(this.recentIds,a.issues));return a};u9.\u0275fac=function(a){return new (a||u9)(D(sI),D(TI),D(uM),D(SK),D(vH),D(HK),D(lK),D(kL),D(eL),D(DK),D(QM),D(ON),D(TM),D(VI),D(tZ),D(zZ),D(TK),D(lI),D(MR),D(tP),D(bJ),D(fO),D(IK),D(X_),D(MK),D(pd),D(QN),D(qL),D(wL))};
u9.\u0275cmp=w({type:u9,selectors:[["list-issues-recent"]],features:[Ge([sI]),ae],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&&(F(0,"h2",0),O(1,"Recent Issues"),G(),F(2,"div",1)(3,"b-grid-controls",2),J("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()}),G(),F(4,"div",3)(5,"b-pagination",4),J("pageChange",function(d){return b.goToPage(d.page)})("resultsPerPageChange",function(d){return Lqc(b,d.option)}),G()()(),F(6,"div",5),M(7,Mbb,3,0,"div",6),M(8,Nbb,2,0,"div",7),M(9,Obb,2,5,"div",8),G());if(a&2){var c;B(3);C("grid",null!==(c=b.resultsGrid)&&void 0!==c?c:void 0)("hotlistChoices",b.hotlistChoices);B(2);C("searchResults",
b.searchResults);B(1);ge("aria-busy",b.isLoading);B(1);C("ngIf",b.isLoading);B(1);C("ngIf",!b.isLoading&&!b.hasResults());B(1);C("ngIf",!b.isLoading&&b.hasResults())}},dependencies:[kN,XY,QZ,QY,Cx],encapsulation:2});
var v9=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};v9.prototype.ngOnInit=function(){this.sloEnabled&&(this.pageTitle.setTitle("Manage SLOs"),Mqc(this))};
var Mqc=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)})};v9.\u0275fac=function(a){return new (a||v9)(D(sI,2),D(fO),D(TK),D(vY),D(IK),D(vH))};
v9.\u0275cmp=w({type:v9,selectors:[["list-slos-page"]],features:[Ge([sI])],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&&(F(0,"div",0)(1,"a",1),O(2," Create SLO "),G()(),F(3,"div",2),M(4,Qbb,5,0,"div",3),M(5,Rbb,1,1,"b-spinner",4),M(6,Ubb,3,2,"ng-container",5),M(7,Ybb,6,5,"ng-container",5),G());a&2&&(B(1),C("href",b.createSloPath,Md),B(3),C("ngIf",b.sloEnabled),B(1),C("ngIf",b.isLoading),B(1),C("ngIf",!b.isLoading),B(1),C("ngIf",!b.isLoading))},dependencies:[Cx,
CB,dF,L_,kN],encapsulation:2});
var Nqc=function(a){Z.call(this,a)};U(Nqc,Z);g=Nqc.prototype;g.getAuthor=function(){return m(this,Sl,1)};g.getTimestamp=function(){return m(this,sj,2)};g.setTimestamp=function(a){return Bb(this,2,a)};g.hasTimestamp=function(){return lj(this,2)};g.getAdd=function(){return m(this,rm,3)};g.getRemove=function(){return m(this,rm,4)};g.getAddMask=function(){return m(this,gH,5)};g.getRemoveMask=function(){return m(this,gH,6)};g.toObject=function(){return Oqc(void 0,this)};
var Oqc=function(a,b){if(null!=b){var c={author:rJ(a,b.getAuthor()),timestamp:Vu(a,b.getTimestamp()),add:xJ(a,b.getAdd()),remove:xJ(a,b.getRemove()),addMask:hH(a,b.getAddMask()),removeMask:hH(a,b.getRemoveMask())};a&&(c.$jspbMessageInstance=b);return c}};
var w9=function(a){Z.call(this,a,-1,Pqc)};U(w9,Z);w9.prototype.getUpdatesList=function(){return rb(this,Nqc,1)};var Pqc=[1];w9.prototype.toObject=function(){var a=null!=this?{updatesList:Cb(this.getUpdatesList(),Oqc)}:void 0;return a};w9.messageId="b.ComponentHistory";
var x9=function(a,b){this.executor=b;this.componentHistoriesCache=a.get("component_histories-second-level-cache")||a.create("component_histories-second-level-cache",{capacity:25})};x9.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:w9}))};x9.prototype.getUncached=function(a){this.invalidateCache(a);return this.get(a)};
x9.prototype.invalidateCache=function(a){this.componentHistoriesCache.remove(String(a))};x9.\u0275fac=function(a){return new (a||x9)(t(bL),t(oI))};x9.\u0275prov=dc({token:x9,factory:x9.\u0275fac,providedIn:"root"});
var st=function(a){Z.call(this,a)};U(st,Z);st.prototype.toObject=function(){return Qqc(void 0,this)};var Qqc=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 Sqc=function(a){Z.call(this,a,-1,Rqc)};U(Sqc,Z);var Rqc=[1];Sqc.prototype.toObject=function(){var a=null!=this?{groupMetadataList:Cb(rb(this,st,1),Qqc)}:void 0;return a};Sqc.messageId="b.BatchGroupMetadataResult";
var y9=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=Zbb(e);return gu(d,function(h){return f[h]||null})})})};y9.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"}})};y9.\u0275fac=function(a){return new (a||y9)(t(z9),t(mI))};
y9.\u0275prov=dc({token:y9,factory:y9.\u0275fac,providedIn:"root"});var z9=function(a){this.executor=a};z9.prototype.bulkGet=function(a){a=[].concat(u(new Set(a)));a=Dm(a.join(","));return this.executor.get({url:"action/group_metadata/"+a,responseConstructor:Sqc}).then(ccb)};z9.\u0275fac=function(a){return new (a||z9)(t(oI))};z9.\u0275prov=dc({token:z9,factory:z9.\u0275fac,providedIn:"root"});
var Uqc=function(a){Z.call(this,a,-1,Tqc)};U(Uqc,Z);var A9=function(a){Z.call(this,a)};U(A9,Z);A9.prototype.getRetentionSettings=function(){return m(this,Gl,2)};A9.prototype.setRetentionSettings=function(a){Bb(this,2,a)};A9.prototype.hasRetentionSettings=function(){return lj(this,2)};var Tqc=[2];Uqc.prototype.toObject=function(){var a=null!=this?{descendantsList:Cb(rb(this,A9,2),Vqc)}:void 0;return a};A9.prototype.toObject=function(){return Vqc(void 0,this)};
var Vqc=function(a,b){if(null!=b){var c={componentPath:n(p(b,1)),retentionSettings:MFb(a,b.getRetentionSettings())};a&&(c.$jspbMessageInstance=b);return c}};Uqc.messageId="b.SubcomponentsResponse";
var B9=function(a){this.executor=a};B9.prototype.getDescendants=function(a){return this.executor.get({url:"action/components/"+a+"/descendants",responseConstructor:Uqc})};B9.\u0275fac=function(a){return new (a||B9)(t(oI))};B9.\u0275prov=dc({token:B9,factory:B9.\u0275fac,providedIn:"root"});
var C9=function(){};C9.prototype.ngOnInit=function(){};C9.\u0275fac=function(a){return new (a||C9)};
C9.\u0275cmp=w({type:C9,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&&(M(0,dcb,4,1,"ng-container",0),M(1,ecb,4,1,"ng-container",0));a&2&&(C("ngIf",b.teamPath),B(1),C("ngIf",b.componentPath))},dependencies:[Cx,rT,h_],styles:["b-component-breadcrumb[_ngcontent-%COMP%], b-team-breadcrumb[_ngcontent-%COMP%]{display:inline-block}"]});
var fcb=[{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 D9=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 rX(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:Pn("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:Pn('"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();pcb(k,f.componentFlattenedAccessPolicy,f.componentAccessPolicyUnderEdit)?f.confirmationDialogService.open({title:"Component Administrators Changed",
content:Pn("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){ocb(f.issueDefaultFlattenedAccessPolicy,f.issueDefaultAccessPolicyUnderEdit)?f.confirmationDialogService.open({title:"Group Removed from Restricted+ Readers",
content:Pn("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 Kk(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(Qi(f.componentAccessPolicyUnderEdit.admins,f.componentFlattenedAccessPolicy.admins)),u(Qi(f.issueDefaultAccessPolicyUnderEdit.admins,f.issueDefaultFlattenedAccessPolicy.admins)),u(Qi(f.issueDefaultAccessPolicyUnderEdit.editors,f.issueDefaultFlattenedAccessPolicy.editors)),u(Qi(f.issueDefaultAccessPolicyUnderEdit.appenders,f.issueDefaultFlattenedAccessPolicy.appenders)),u(Qi(f.issueDefaultAccessPolicyUnderEdit.readers,f.issueDefaultFlattenedAccessPolicy.readers)),
u(Qi(f.issueDefaultAccessPolicyUnderEdit.restrictedReaders,f.issueDefaultFlattenedAccessPolicy.restrictedReaders)),u(Qi(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=jcb(h);h=ncb(h);if(0===k.size&&0===h.size)return Promise.resolve(!0);
var q=kcb(k.size,h.size);k=lcb(k);h=mcb(h);var v=Sn(k,k===tt?tt:Rn("BR"),h);k={};v=Sn(v,Rn("P",{},Sn("Please review the ",Rn("A",(k.href=ENb(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:v,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()&&icb(f.issueDefaultAccessPolicyUnderEdit,f.issueDefaultFlattenedAccessPolicy)){var k={};k=Sn(Rn("P",{},"You are about to give a broad category of users permissions on a public component."),Rn("P",{},Sn("Please review the ",Rn("A",(k.href=FNb(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=Rn("A",(h.href=R6a(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:Sn("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:Sn("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(gcb(f.issueDefaultFlattenedAccessPolicy,f.issueDefaultAccessPolicyUnderEdit)),u(gcb(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 v=q.next();!v.done;v=q.next())v=f.accessPolicyConverter.stringToAccessPolicyPrincipal(v.value),(Jk(v)?On(v.user.emailAddress):Kk(v)&&On(v.group.emailAddress))&&k.add(v)}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=Rn("A",(q.href=DNb(f.documentationLinks),q)," automation account documentation");f.confirmationDialogService.open({title:"Adding automation accounts",content:Sn(Pn("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"),Rn("wbr"),q,Pn("."),Rn.apply(ph,["OL",{}].concat(u(h.map(function(v){if(Jk(v)){var y;return Rn("LI",{},Pn(null!=(y=v.user.emailAddress)?y:""))}if(Kk(v)){var E;return Rn("LI",
{},Pn(null!=(E=v.group.emailAddress)?E:""))}throw Error("Re`"+JSON.stringify(v));})))),Rn("BR",{}),Pn("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,v;return bf(function(y){switch(y.nextAddress){case 1:k=r(h),q=k.next();case 2:if(q.done){y.jumpTo(4);break}v=q.value;return cf(y,v(),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=xH(this.activeSession,"enableRostersChecks");this.enableComponentAutomationCheck=xH(this.activeSession,"enableComponentAutomationCheck")},Wqc=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,v,y;return bf(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,v=[a.performAccessLimitCheck,a.performDeletedAccountsCheck,a.performAdminAccessRemovalCheck,a.performRestrictedPlusGroupRemovalCheck,a.performAddedLargeOrOpenGroupCheck,a.performAddedNewInternalAliasesCheck,a.performChangedImplicitAccessCheck,a.performAutomationUserAccessCheck],cf(E,a.runValidation(v),2);y=E.yieldResult;return E.return(y)})};
D9.\u0275fac=function(a){return new (a||D9)(t(JT),t(vH),t(ZM),t(rP),t(y9))};D9.\u0275prov=dc({token:D9,factory:D9.\u0275fac});
var E9=function(a){wI.call(this);this.principalTypes=a;this.componentReaders=[];this.templates=[]};U(E9,wI);E9.\u0275dir=wI.\u0275dir;
E9.prototype.ngOnChanges=function(){var a=this.componentAccessPolicy,b=this.issueAccessPolicy,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(ut)},{permission:"Component Admin",principals:[].concat(u(d)).map(ut)},{permission:"Issue Commenter",principals:[].concat(u(h)).map(ut)},{permission:"Issue Editor",principals:[].concat(u(f)).map(ut)},{permission:"Issue Admin",principals:[].concat(u(e)).map(ut)},{permission:"Component Reader",principals:[].concat(u(c)).map(ut)},{permission:"Issue Reader",principals:[].concat(u(b)).map(ut)},{permission:"Restricted Reader",principals:[].concat(u(q)).map(ut)},
{permission:"Restricted+ Reader",principals:[].concat(u(k)).map(ut)}];Xqc(this,this.templates)};
var Xqc=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$1742:d.$jscomp$loop$prop$principal$1742},e=c.next())d.$jscomp$loop$prop$principal$1742=e.value,4===d.$jscomp$loop$prop$principal$1742.principalType?d.$jscomp$loop$prop$principal$1742.detailedUserType=0:qI(a.principalTypes,d.$jscomp$loop$prop$principal$1742.value,!0).then(function(f){return function(h){f.$jscomp$loop$prop$principal$1742.detailedUserType=
X(h,2,0)}}(d))}};E9.\u0275fac=function(a){return new (a||E9)(D(pI))};
E9.\u0275cmp=w({type:E9,selectors:[["permissions-view"]],inputs:{issueAccessPolicy:"issueAccessPolicy",componentAccessPolicy:"componentAccessPolicy",componentReaders:"componentReaders",accessLevel:"accessLevel"},features:[ae,Cc],decls:7,vars:1,consts:[[1,"permissions-column-headers"],["scope","col"],[4,"ngFor","ngForOf"],[1,"permission-row"],["scope","row"],[3,"value","detailedUserType","principalType","accessLevel","displayText",4,"ngFor","ngForOf"],[3,"value","detailedUserType","principalType",
"accessLevel","displayText"]],template:function(a,b){a&1&&(F(0,"table")(1,"tr",0)(2,"th",1),O(3,"Permission"),G(),F(4,"th",1),O(5,"Users With Permission"),G()(),M(6,rcb,6,2,"ng-container",2),G());a&2&&(B(6),C("ngForOf",b.templates))},dependencies:[Gx,mZ],styles:["table[_ngcontent-%COMP%]{border-collapse:collapse;margin-top:10px}.permissions-column-headers[_ngcontent-%COMP%]{display:none}.permission-row[_ngcontent-%COMP%]{border-top:1px solid;border-color:#dadce0;border-color:var(--divider)}.permission-row[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], .permission-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{height:auto;padding:8px;font-size:.8125rem;text-align:left}.permission-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center}b-contact-chip[_ngcontent-%COMP%]{margin-right:5px;margin-top:5px}\n/*# sourceMappingURL=permissions_view.css.map */"]});
var Yqc={componentAdmin:[],inheritedComponentAdmin:[],componentAdminOnly:[],inheritedComponentAdminOnly:[],issueAdmin:[],editor:[],contributor:[],viewer:[],editExistingIssuesOnly:[],createIssuesOnly:[],commentOnly:[],viewRestricted:[],viewRestrictedPlus:[]},Zqc={inheritance:"INHERIT_NOTHING",admins:[],editors:[],appenders:[],readers:[],restrictedReaders:[],restrictedPlusReaders:[],inheritedAdmins:[],implicitAccess:null};
var F9=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=Yqc;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.issueDefaultFlattenedAccessPolicy=
this.componentFlattenedAccessPolicy=Zqc;this.componentAccessPolicyUnderEdit=KT();this.issueDefaultAccessPolicyUnderEdit=KT();this.restrictedPlusReadersValidators={noRestrictedPlusGroups:function(q){a:{var v=k.issueDefaultFlattenedAccessPolicy;if(q&&v){v=v.restrictedPlusReaders;q=r(q);for(var y=q.next();!y.done;y=q.next())if(y=y.value,0===y.indexOf("3:")&&-1===v.indexOf(y)){v=!1;break a}}v=!0}return v}}};
F9.prototype.hasUnsavedAccessLimitChanges=function(){var a=this.originalComponent,b=this.component;return a&&b?a.accessLimit.accessLevel!==b.accessLimit.accessLevel:!1};
var $qc=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;FK(a.butterBar,"Changed access level.")},function(b){a.component.accessLimit.accessLevel=a.originalComponent.accessLimit.accessLevel;
var c="Could not change access level. ";Em(b)&&(c+=Fm(b));GK(a.butterBar,c)}).finally(function(){a.isUpdatingAccessLimit=!1;a.isSaving=a.isUpdatingAccessPolicy||a.isUpdatingAccessLimit})};F9.prototype.updateComponentAndOriginalComponent=function(a){this.component=Fi(a);this.originalComponent=Fi(a)};
F9.prototype.loadComponent=function(){var a=this;return this.componentActions.getUncached(this.componentId,!0).then(function(b){a.updateComponentAndOriginalComponent(b);0<b.parentComponentId&&arc(a,b.parentComponentId)}).catch(function(b){a.errorHandler.errorHandler(null,b)})};var arc=function(a,b){a.componentActions.get(b).then(function(c){return a.parentComponent=c}).catch(function(c){a.errorHandler.errorHandler(null,c)})};
F9.prototype.initialize=function(a){var b=this;a=void 0===a?this.componentId:a;if(!a&&!this.componentId)return GK(this.butterBar,"No component found!"),Promise.resolve();this.componentId=a;return Promise.all([this.accessPolicyApi.get("COMPONENT",this.componentId).then(function(c){b.componentFlattenedAccessPolicy=LT(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=
LT(c);b.issueDefaultAccessPolicyUnderEdit=Fi(b.issueDefaultFlattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)}),this.loadComponent(),this.loadUserAccess(this.componentId)]).then(function(){})};
var brc=function(a){var b=[Icb,Jcb,Kcb,Lcb];var c=[Mcb],d=[Ncb,Ocb,Pcb,Qcb,Rcb,Scb],e=[Tcb,Ucb];b=Ecb(Object.assign({},{componentAccessPolicy:a.componentAccessPolicyUnderEdit,issueAccessPolicy:a.issueDefaultAccessPolicyUnderEdit},{rolesMap:Yqc}),[].concat(u(b),u(c),u(d),u(e)));a.rolesMap=b},crc=function(a,b){var c=a.issueDefaultFlattenedAccessPolicy;if(!c||!Vcb(c,a.issueDefaultAccessPolicyUnderEdit))return Promise.resolve(void 0);b.inheritance="INHERIT_NOTHING";return a.accessPolicyApi.update("ISSUE_DEFAULTS",
a.componentId,b)},drc=function(a){var b=xt(a.componentAccessPolicyUnderEdit,a.componentFlattenedAccessPolicy),c=a.issueDefaultFlattenedAccessPolicy;a=!(!c||!Vcb(c,a.issueDefaultAccessPolicyUnderEdit));return b||a},erc=function(a,b){return xt(a.componentAccessPolicyUnderEdit,a.componentFlattenedAccessPolicy)?a.accessPolicyApi.get("COMPONENT",a.componentId).then(function(c){var d=LT(c);if(xt(d,a.componentAccessPolicyUnderEdit)){if(xt(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)};F9.prototype.loadUserAccess=function(a){var b=this;return sK(this.userAccess,"admin","components/"+String(a)).then(function(c){b.isAdmin=c;return b.isAdmin?Promise.resolve(!0):sK(b.userAccess,"writer","components/"+String(a))}).catch(function(c){b.errorHandler.errorHandler(null,c);return Promise.resolve(!1)})};
F9.prototype.doSaveAccessPolicy=function(){var a=this;try{var b=MT(this.componentAccessPolicyUnderEdit);var c=MT(this.issueDefaultAccessPolicyUnderEdit)}catch(d){return c="An unknown problem occurred",d instanceof Error&&(c=d.message),GK(this.butterBar,c),Promise.resolve()}return drc(this)?(this.isSaving=this.isUpdatingAccessPolicy=!0,FK(this.butterBar,"Saving access settings...",0),crc(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 erc(a,b)}).then(function(){return $qc(a)}).then(function(){return a.initialize()}).then(function(){FK(a.butterBar,"Access settings saved",0)}).catch(function(d){GK(a.butterBar,Fm(d),0)}).finally(function(){return bf(function(d){if(1==d.nextAddress)return cf(d,a.loadUserAccess(a.componentId),2);a.isUpdatingAccessPolicy=!1;a.isSaving=a.isUpdatingAccessPolicy||a.isUpdatingAccessLimit;brc(a);df(d)})})):$qc(this)};
var frc=function(a,b){b=Dcb({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)},gdb=function(a,b){a.component&&a.originalComponent&&
a.componentFlattenedAccessPolicy&&a.componentAccessPolicyUnderEdit&&a.issueDefaultFlattenedAccessPolicy&&a.issueDefaultAccessPolicyUnderEdit?(frc(a,b),Wqc(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();
FK(a.butterBar,"Update failed: Invalid changes to component permissions",0);return Promise.resolve()})):Promise.resolve()};
li.Object.defineProperties(F9.prototype,{componentAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){Ei(a,this.componentAccessPolicyUnderEditInternal)||(this.componentAccessPolicyUnderEditInternal=a,this.componentReaders=Hcb({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=Hcb({componentAccessPolicy:this.componentAccessPolicyUnderEdit,issueAccessPolicy:this.issueDefaultAccessPolicyUnderEdit}))},get:function(){return this.issueDefaultAccessPolicyUnderEditInternal}}});F9.\u0275fac=function(a){return new (a||F9)(t(gO),t(JT),t(IK),t(DK),t(rK),t(zT),t(D9))};F9.\u0275prov=dc({token:F9,factory:F9.\u0275fac});
var G9=function(a,b,c,d){this.activeSession=a;this.analytics=b;this.documentationLinks=c;this.rolesEditor=d;this.AccessLevelStrings=sAb};g=G9.prototype;g.getRecentIssuesLink=function(){return on(this.rolesEditor.component.componentId,{includeArchived:this.rolesEditor.component?this.rolesEditor.component.archived:!1})};g.trackClick=function(a){eo(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 qX(this.rolesEditor.parentComponent)||qX(this.rolesEditor.component)}else return!1};g.isParentPartner=function(){return!(!this.rolesEditor.parentComponent||!s2b(this.rolesEditor.parentComponent))};g.isParentPublic=function(){return!(!this.rolesEditor.parentComponent||!rX(this.rolesEditor.parentComponent))};
g.getAccessLevelDescription=function(a){return u2b(a)};G9.\u0275fac=function(a){return new (a||G9)(D(vH),D(QM),D(rP),D(F9))};
G9.\u0275cmp=w({type:G9,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&&(M(0,$cb,20,7,"div",0),F(1,"div",1)(2,"p"),O(3," Access to issues is granted per component using the settings below. All settings provide access to view the component. "),F(4,"a",2),O(5,"Learn more"),G()()());a&2&&(C("ngIf",b.shouldShowAccessLimitChangeUi()),B(4),ze("href","",Fo(b.documentationLinks),"#components",Md))},dependencies:[Cx,Jg,uy,ly,ry],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;margin-bottom:20px}.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 0 0;padding:16px}.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);margin:15px 0px 10px 0}\n/*# sourceMappingURL=access_limit_settings.css.map */"]});
var H9=function(a,b){this.documentationLinks=a;this.rolesEditor=b};H9.prototype.isAccessEditDisabled=function(){return this.rolesEditor.isSaving||!this.rolesEditor.isAdmin};H9.prototype.setImplicitAccess=function(a){var b;null==(b=this.rolesEditor.implicitAccess)||b.setValue(a)};H9.\u0275fac=function(a){return new (a||H9)(D(rP),D(F9))};
H9.\u0275cmp=w({type:H9,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&&(F(0,"div",0)(1,"span",1)(2,"mat-checkbox",2),J("change",function(d){return b.setImplicitAccess(d.checked)}),G()(),F(3,"div",3)(4,"strong",4),O(5,"Expanded access"),G(),F(6,"div",5),O(7," When checked, verifiers and assignees can edit issues for this component, and CC'd users can add comments. "),F(8,"a",6),O(9,"Learn more"),G()()()());if(a&2){var c;le("bv2-edit-resource-readonly",b.isAccessEditDisabled());B(2);C("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);C("href",Fo(b.documentationLinks),Md)}},dependencies:[JO],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 adb=function(){return{}},cdb=function(a,b){return{displayText:a,values:b}},bdb=function(a){return[a]},ddb=function(){return[]},I9=function(){this.rolesTableData=[];this.canEdit=!1;this.rolesMapUpdated=new Rw;this.formIsValid=new Rw;this.aclFormValidity=new Map};I9.prototype.getIconName=function(a,b){return a.grantedPermissions[b]?"done":"issue-status-wont-fix"};I9.prototype.updateRolesMap=function(a,b){this.rolesMapUpdated.emit({role:a,assignees:b})};I9.\u0275fac=function(a){return new (a||I9)};
I9.\u0275cmp=w({type:I9,selectors:[["roles-view-table"]],inputs:{rolesTableData:"rolesTableData",displayedTableColumns:"displayedTableColumns",canEdit:"canEdit",accessLevel:"accessLevel"},outputs:{rolesMapUpdated:"rolesMapUpdated",formIsValid:"formIsValid"},decls:31,vars:1,consts:[["scope","col"],[4,"ngFor","ngForOf"],[1,"edit-field"],[1,"role-title"],[3,"htmlFor"],["mat-icon-button","",3,"matTooltip"],["svgIcon","help-outline"],[3,"idForInputBox","users","ariaLabel","accessLevel","customValidators",
"includeAliases","includeViewAliases","containerChips","usersChange","isValid"],["size","large",3,"name"]],template:function(a,b){a&1&&(F(0,"table")(1,"thead")(2,"tr")(3,"th",0),O(4,"Role Assignments"),G(),F(5,"th",0)(6,"h6"),O(7,"Admin Component"),G()(),F(8,"th",0)(9,"h6"),O(10,"Create Issues"),G()(),F(11,"th",0)(12,"h6"),O(13,"Admin Issues"),G()(),F(14,"th",0)(15,"h6"),O(16,"Edit Issues"),G()(),F(17,"th",0)(18,"h6"),O(19,"Comment Issues"),G()(),F(20,"th",0)(21,"h6"),O(22,"Read Issues"),G()(),F(23,
"th",0)(24,"h6"),O(25,"Read Restricted"),G()(),F(26,"th",0)(27,"h6"),O(28,"Read Restricted+"),G()()()(),F(29,"tbody"),M(30,edb,26,29,"ng-container",1),G()());a&2&&(B(30),C("ngForOf",b.rolesTableData))},dependencies:[Gx,YY,zH,BB,dF,sF],styles:["table[_ngcontent-%COMP%]{width:100%;font-size:.8125rem;font-family:Roboto,Arial,sans-serif}table[_ngcontent-%COMP%], thead[_ngcontent-%COMP%], tbody[_ngcontent-%COMP%]{display:flex;flex-direction:column}tr[_ngcontent-%COMP%]{display:flex}th[_ngcontent-%COMP%]:first-child{visibility:hidden;flex:0 0 40%}th[_ngcontent-%COMP%]:not(:first-child){width:20em;height:20px;text-align:center}th[_ngcontent-%COMP%]:not(:first-child)   h6[_ngcontent-%COMP%]{display:inline;font-size:.8125rem}td[_ngcontent-%COMP%]:first-child{width:40%;min-width:250px;flex:0 0 40%}td[_ngcontent-%COMP%]:not(:first-child){display:flex;justify-content:center;width:20em;padding-top:16px}.edit-field[_ngcontent-%COMP%]{margin:14px 0 0}.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}[_nghost-%COMP%]     b-multi-user-input .bv2-multi-user-input{width:95%}[_nghost-%COMP%]     b-icon{width:2em;margin:30px 0px}\n/*# sourceMappingURL=roles_view_table.css.map */"]});
var J9=function(){this.rolesMap=Yqc;this.isSaving=!1;this.saveRolesMap=new Rw;this.rolesUnderEdit=Yqc;this.formIsValid=!0;this.displayedTableColumns="role componentAdmin createIssues issueAdmin issueEditor issueCommenter issueReader restrictedReader restrictedPlusReader".split(" ");this.standardRolesTableData=[];this.advancedRolesTableData=[]},grc=function(a){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},includeAliases:!1,includeViewAliases:!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},includeAliases:!1,includeViewAliases:!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},includeAliases:!0,includeViewAliases:!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},includeAliases:!0,includeViewAliases:!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},
includeAliases:!1,includeViewAliases:!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},
includeAliases:!0,includeViewAliases:!0,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},includeAliases:!0,includeViewAliases:!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},includeAliases:!0,includeViewAliases:!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},includeAliases:!0,includeViewAliases:!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},includeAliases:!1,includeViewAliases:!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},includeAliases:!1,includeViewAliases:!1,tooltip:"Users with the View Restricted Plus role are granted View Restricted Plus permissions",customValidators:a.rolesEditor.restrictedPlusReadersValidators}];a.advancedRolesTableData=b},hrc=function(a){return a.advancedRolesTableData.some(function(b){return 0<b.users.length})},irc=function(a){a.rolesUnderEdit=Object.assign({},a.rolesMap)};g=J9.prototype;
g.ngOnInit=function(){irc(this);grc(this)};g.ngOnChanges=function(a){a.rolesMap&&irc(this);grc(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&&this.rolesEditor.isAdmin};
g.canSave=function(){return this.canEdit()&&(!Ei(this.rolesMap,this.rolesUnderEdit)||this.rolesEditor.implicitAccess.isUpdated()||this.hasUnsavedAccessLimitChanges())&&this.formIsValid};J9.\u0275fac=function(a){return new (a||J9)};
J9.\u0275cmp=w({type:J9,selectors:[["roles-view"]],inputs:{rolesMap:"rolesMap",isSaving:"isSaving",component:"component",rolesEditor:"rolesEditor"},outputs:{saveRolesMap:"saveRolesMap"},features:[Cc],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&&(H(0,"access-limit-settings"),F(1,"roles-view-table",0),J("rolesMapUpdated",function(c){return b.updateRolesMap(c)})("formIsValid",function(c){return b.formIsValid=c}),G(),F(2,"mat-expansion-panel",1)(3,"mat-expansion-panel-header")(4,"mat-panel-title"),O(5," Advanced Roles "),G()(),F(6,"roles-view-table",0),J("rolesMapUpdated",function(c){return b.updateRolesMap(c)})("formIsValid",function(c){return b.formIsValid=c}),G()(),H(7,"expanded-access-settings"),
F(8,"button",2),J("click",function(){b.canSave()&&b.saveRolesMap.emit(b.rolesUnderEdit)}),O(9,"Update"),G(),F(10,"button",3),J("click",function(){irc(b);grc(b)}),O(11," Revert Changes\n"),G());a&2&&(B(1),C("rolesTableData",b.standardRolesTableData)("displayedTableColumns",b.displayedTableColumns)("canEdit",b.canEdit())("accessLevel",b.getComponentAccessLevel()),B(1),C("expanded",hrc(b)),B(4),C("rolesTableData",b.advancedRolesTableData)("displayedTableColumns",b.displayedTableColumns)("canEdit",b.canEdit())("accessLevel",
b.getComponentAccessLevel()),B(2),C("disabled",!b.canSave()),B(2),C("disabled",!!Ei(b.rolesMap,b.rolesUnderEdit)))},dependencies:[$5,a6,b6,BB,I9,G9,H9],styles:["[_nghost-%COMP%]     mat-expansion-panel{margin:0 0 0 -1%}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 K9=function(a,b){wI.call(this);this.rolesEditor=a;this.route=b};U(K9,wI);K9.\u0275dir=wI.\u0275dir;K9.prototype.ngOnInit=function(){var a=this;this.route.paramMap.pipe(R(function(b){return b.get("componentId")}),rf(bl),bg(function(b){return a.rolesEditor.initialize(Number(b))}),cg(this.destroyed$)).subscribe(function(){brc(a.rolesEditor)})};K9.prototype.isSaving=function(){return this.rolesEditor.isSaving};K9.\u0275fac=function(a){return new (a||K9)(D(F9),D(dk))};
K9.\u0275cmp=w({type:K9,selectors:[["role-based-permissions"]],features:[Ge([F9,D9]),ae],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","componentAccessPolicy","issueAccessPolicy","accessLevel"]],template:function(a,b){a&1&&(M(0,fdb,2,0,"div",0),M(1,hdb,7,8,"div",1));a&2&&(C("ngIf",!(null==b.rolesEditor.component?
0:b.rolesEditor.component.componentId)),B(1),C("ngIf",null==b.rolesEditor.component?null:b.rolesEditor.component.componentId))},dependencies:[Cx,dX,bX,kN,E9,J9],styles:["\n/*# sourceMappingURL=role_based_permissions.css.map */"]});
var L9=function(a){wI.call(this);this.userPreferencesManager=a;this.timestamps$=this.userPreferencesManager.preferences$.pipe(R(function(b){var c;return null!=(c=b.dismissalTimestamps)?c:void 0}));this.timestampsSubject$=Gk(this.timestamps$.pipe(cg(this.destroyed$)),{})};U(L9,wI);L9.\u0275dir=wI.\u0275dir;var jrc=function(a,b){return a.timestamps$.pipe(R(function(c){return c?!!c[b]:!1}))};L9.prototype.isDismissed=function(a){return!!Hk(jrc(this,a))};
L9.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(R(function(c){if(c.dismissalTimestamps&&c.dismissalTimestamps[a])return c.dismissalTimestamps[a]}))};L9.\u0275fac=function(a){return new (a||L9)(t(VI))};L9.\u0275prov=dc({token:L9,factory:L9.\u0275fac,providedIn:"root"});
var M9=function(a){this.dialogRef=a};M9.\u0275fac=function(a){return new (a||M9)(D(MB))};
M9.\u0275cmp=w({type:M9,selectors:[["role-based-permissions-onboarding-dialog"]],decls:15,vars:0,consts:[[1,"center"],"href;https://developers.google.com/issue-tracker/concepts/access-control;target;_blank;aria-label;Learn more about roles".split(";"),"href;https://developers.google.com/issue-tracker/concepts/access-control;target;_blank;aria-label;Learn more about permissions".split(";"),["mat-raised-button","","color","primary","aria-label","Close Dialog",3,"click"]],template:function(a,b){a&1&&
(F(0,"div",0)(1,"h1"),O(2,"Welcome to Role Based Permissions! \ud83c\udf89"),G()(),F(3,"ul")(4,"li"),O(5," Roles allow us to set permissions in a more natural way, considering the kind of user that we want to empower, and assigning permissions based on that. "),F(6,"a",1),O(7,"Learn more"),G()(),F(8,"li"),O(9," Roles are a better way to give access control permissions to users of a Buganizer component. Fuzzy on which permissions do what? "),F(10,"a",2),O(11,"Learn more"),G()()(),F(12,"div",0)(13,
"button",3),J("click",function(){return b.dialogRef.close()}),O(14," Get started "),G()())},styles:['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:1.4;margin:10px}.center[_ngcontent-%COMP%]{display:flex;justify-content:center;margin:10px}.center[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{cursor:pointer}\n/*# sourceMappingURL=role_based_permissions_onboarding_dialog.css.map */']});
var N9=function(a,b){this.dialog=a;this.dismissalService=b};N9.prototype.openIfNecessary=function(){var a=this,b,c,d;bf(function(e){b=a.dismissalService.isDismissed("roles_based_permissions_onboarding_dialog");if(c=!b)d={maxWidth:"700px"},a.dialog.open(M9,d),a.dismissalService.dismiss("roles_based_permissions_onboarding_dialog").pipe(Qf()).subscribe();df(e)})};N9.\u0275fac=function(a){return new (a||N9)(t(ZB),t(L9))};N9.\u0275prov=dc({token:N9,factory:N9.\u0275fac,providedIn:"root"});
var krc=["archiveDialog"],lrc=["archiveButton"],mrc=["metadataForm"],web=function(a){return{displayText:"Inherited Admins",values:a}},Bt=function(a){return[a]},xeb=function(a){return{displayText:"Component Admins",values:a}},yeb=function(a){return{displayText:"Issue Admins",values:a}},zeb=function(a){return{displayText:"Issue Admins & Editors",values:a}},Aeb=function(a){return{displayText:"Restricted+ Viewers",values:a}},nrc={BASIC:"basic",CUSTOM_FIELDS:"customFields",FIELD_ORDERING:"fieldOrdering",
TEMPLATES:"templates",ACCESS:"access"},O9=function(a,b,c,d,e,f,h,k,q,v,y,E,I,N,L,T,Y,ka,ha,ra,Da,Ja,Ba,La,hb,fb,Tb,va,Ca){wI.call(this);var Ia=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=v;this.activeSession=y;this.documentationLinks=E;this.matDialogService=I;this.analytics=N;this.checkBeforeExit=L;this.userAccess=T;this.groupMetadata=Y;this.componentActions=ka;this.errorHandler=
ha;this.componentService=ra;this.componentUpdates=Da;this.componentUpdatesApi=Ja;this.accessPolicyConverter=Ba;this.confirmationDialogService=La;this.appEvents=hb;this.teamsService=fb;this.sloApi=Tb;this.sloService=va;this.roleBasedPermissionsOnboardingDialogService=Ca;this.componentId$=new S.ReplaySubject(1);this.Tab=nrc;this.AccessLevelStrings=sAb;this.componentListRoute=Wsa;this.showSloInheritancePath=!1;this.component$=new S.BehaviorSubject(null);this.parentComponent$=new S.BehaviorSubject(null);
this.componentTeam$=new S.BehaviorSubject(null);this.team$=this.componentTeam$.pipe(bg(function(Xa){return(Xa=null==Xa?void 0:Xa.id)&&"0"!==Xa?Ia.teamsService.getTeam(Xa):(0,S.of)(null)}));this.parentComponentTeam$=this.parentComponent$.pipe(bg(function(Xa){var $a;return(Xa=null==Xa?void 0:null==($a=Xa.team)?void 0:$a.id)&&"0"!==Xa?Ia.teamsService.getTeam(Xa):(0,S.of)(null)}));this.inheritedSloMetadata$=(0,S.combineLatest)([this.component$,this.parentComponent$,this.team$]).pipe(R(function(Xa){var $a=
r(Xa);Xa=$a.next().value;var jc=$a.next().value;$a=$a.next().value;if((null==Xa?0:Xa.team)&&!Xa.team.inherit&&"0"!==Xa.team.id){var Va;return null!=(Va=null==$a?void 0:$a.getSlo())?Va:null}var Ya;return null!=(Ya=null==jc?void 0:jc.slo)?Ya:null}));this.inheritedSlo$=this.inheritedSloMetadata$.pipe(Pf(),bg(function(Xa){var $a="0";Xa instanceof Et?$a=Xa.getSloId():Xa&&($a=Xa.id);return"0"===$a?(0,S.of)({id:"0"}):Ia.sloService.get($a).then(function(jc){return{id:$a,slo:jc}})}));this.sloPolicySource$=
this.inheritedSloMetadata$.pipe(Pf(),bg(function(Xa){if(!Xa)return(0,S.of)({name:"None",type:"none"});Xa=Ieb(Xa);var $a=Xa.sourceTeamId,jc=Xa.sourceComponentId;return $a&&"0"!==$a?Ia.teamsService.getTeam($a).pipe(R(function(Va){var Ya;return{name:null!=(Ya=Va.getName())?Ya:$a,type:"team",link:{path:"/teams/"+$a+"/edit",fragment:"slo"}}})):jc?Ia.componentActions.get(Number(jc)).then(function(Va){var Ya;return{name:null!=(Ya=Va.name)?Ya:jc,type:"component",link:{path:"/components/"+jc+"/edit"}}}):(0,S.of)(null)}));
this.policySourcePath$=(0,S.combineLatest)([this.component$,this.team$,this.parentComponentTeam$,this.inheritedSloMetadata$]).pipe(R(function(Xa){var $a=r(Xa);Xa=$a.next().value;var jc=$a.next().value,Va=$a.next().value;$a=$a.next().value;if(!Xa||!Xa.componentPathInfo||!$a)return null;var Ya=Ieb($a);$a=Ya.sourceComponentId;jc=Keb(jc,Ya.sourceTeamId,Xa.team,Va);return null===$a?{componentPath:null,teamPath:jc}:{componentPath:Jeb(Xa,$a),teamPath:jc}}));this.enableRoleBasedPermissions=xH(this.activeSession,
"enableRoleBasedPermissions");this.enableSloLockingCheck=xH(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=xH(this.activeSession,"enableSloLockingUi");this.sloLocked$=this.componentId$.pipe(rf(Boolean),bg(function(Xa){return Ia.sloApi.executor.get({url:"action/components/"+Xa+"/slo_edit_policy",
responseConstructor:S3b}).pipe(R(Hqa))}));this.aclFormValidity={};this.aclFormIsInvalid=function(){return Object.values(Ia.aclFormValidity).some(function(Xa){return!Xa})};this.getSloManagementLink=pn};U(O9,wI);O9.\u0275dir=wI.\u0275dir;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.bLocation.hash(e,!0);this.enableRoleBasedPermissions&&4===a&&this.roleBasedPermissionsOnboardingDialogService.openIfNecessary()};
O9.prototype.ngOnInit=function(){var a=this;this.componentId=Ki(this.routeParams.componentId);this.componentId$.next(String(this.componentId));this.componentAccessPolicyUnderEdit=KT();this.issueDefaultAccessPolicyUnderEdit=KT();this.sessionIsExternal=this.activeSession.isExternalSession();this.sessionIsInternal=this.activeSession.isInternalSession();this.selectedTabIndex=0;this.subscriptions.add(bZ(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!1));this.loadUserAccess_(this.componentId);
this.enableSloLockingCheck&&orc(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();prc(this);this.enableComponentAutomationCheck=xH(this.activeSession,"enableComponentAutomationCheck");this.enableRostersChecks=xH(this.activeSession,"enableRostersChecks");this.subscriptions.add(this.appEvents.customFieldsModified.subscribe(function(b){a.effectiveCustomFields=
qrc(b)}));this.hasInitialized=!0;this.route.fragment.pipe(cg(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 prc=function(a){a=[rrc(a,a.componentId),src(a,a.componentId),trc(a,a.componentId)].concat(u(a.loadAccessPolicy_(a.componentId)));return Promise.all(a).then(function(){})};g=O9.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 rX(this.component)};g.isExternal=function(){return qX(this.component)};g.isParentPublic=function(){return!(!this.parentComponent||!rX(this.parentComponent))};g.isParentPartner=function(){return!(!this.parentComponent||!s2b(this.parentComponent))};
var Odb=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};O9.prototype.shouldShowAccessLimitChangeUi=function(){if(this.sessionIsExternal)return!1;if(this.component)if(this.component.parentComponentId){if(this.parentComponent)return qX(this.parentComponent)||qX(this.component)}else return!1};
O9.prototype.hasUnsavedMetadataChanges=function(){return!(Ei(this.component,this.originalComponent)&&Ei(this.parentComponent,this.originalParentComponent_))};O9.prototype.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||Ct(this)||Dt(this)};
var urc=function(a){var b=Kj();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:Pn("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},vrc=function(a){var b=Kj();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:Sn(Pn('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.'),Rn("BR",{}),Rn("BR",{}),Pn('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.'),
Rn("BR",{}),Rn("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},wrc=function(a){if(!a.enableComponentAutomationCheck)return Promise.resolve(!0);var b=Kj(),c=a.getAddedAutomationInPolicyChange();if(c.length){var d={};d=Rn("A",(d.href=DNb(a.documentationLinks),d)," automation account documentation");a.confirmationDialogService.open({title:"Adding automation accounts",
content:Sn(Pn("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"),Rn("wbr"),d,Pn("."),Rn.apply(ph,["OL",{}].concat(u(c.map(function(e){if(Jk(e)){var f;return Rn("LI",{},Pn(null!=(f=e.user.emailAddress)?f:""))}if(Kk(e)){var h;return Rn("LI",{},Pn(null!=(h=e.group.emailAddress)?h:""))}throw Error("Re`"+JSON.stringify(e));})))),Rn("BR",{}),Pn("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};O9.prototype.saveMetadata=function(){var a=this;return this.validate_()?vrc(this).then(function(b){return b?urc(a):Promise.resolve(!1)}).then(function(b){b&&xrc(a).then(function(){return prc(a)})}):Promise.resolve()};
var At=function(a,b){a.issueDefaultAccessPolicyUnderEdit=Object.assign({},a.issueDefaultAccessPolicyUnderEdit,b)},xrc=function(a){a.isUpdating_=!0;FK(a.butterBar,"Saving changes ...",0);return yrc(a).then(function(){a.parentComponent&&(a.component.parentComponentId=a.parentComponent.componentId)}).then(function(){return zrc(a)}).then(function(){return Arc(a)}).then(function(){return Brc(a)}).then(function(){FK(a.butterBar,"Save complete.")}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.componentUpdatesApi.invalidateCache(a.componentId);
a.isUpdating_=!1})},yrc=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)},zrc=function(a){return a.component.slo&&!Ei(a.originalComponent.slo,a.component.slo)?a.componentActions.updateSlo(a.component.componentId,
a.component.slo).then(function(){eo(a.analytics,io.MANAGE_COMPONENT,"updateSlo");return!0}).catch(function(b){a.component.slo=a.originalComponent.slo;return Promise.reject(b)}):Promise.resolve(!1)},Arc=function(a){return a.component.team&&!Ei(a.originalComponent.team,a.component.team)?a.componentActions.updateTeam(a.component.componentId,a.component.team).then(function(){eo(a.analytics,io.MANAGE_COMPONENT,"updateTeam");return!0}).catch(function(b){a.component.team=a.originalComponent.team;return Promise.reject(b)}):
Promise.resolve(!1)},Brc=function(a){return Crc(a)?a.componentActions.update(a.component).then(function(){eo(a.analytics,io.MANAGE_COMPONENT,"update");a.commentEditsEnabled?eo(a.analytics,"component","comment edits enabled","update"):eo(a.analytics,"component","comment edits disabled","update");return!0}):Promise.resolve(!1)},Crc=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)};O9.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};
O9.prototype.saveAccessPolicy=function(){var a=this;Drc(this).then(function(b){return b?Erc(a):Promise.resolve(!1)}).then(function(b){return b?Frc(a):Promise.resolve(!1)}).then(function(b){return b?Grc(a):Promise.resolve(!1)}).then(function(b){return b?Hrc(a):Promise.resolve(!1)}).then(function(b){return b?Irc(a):Promise.resolve(!1)}).then(function(b){return b?Jrc(a):Promise.resolve(!1)}).then(function(b){return b?wrc(a):Promise.resolve(!1)}).then(function(b){b&&a.doSaveAccessPolicy_()})};
O9.prototype.getComponentAccessLevel=function(){if(this.component&&this.component.accessLimit)return this.component.accessLimit.accessLevel};
var Dt=function(a){return a.originalComponent&&a.component?a.originalComponent.accessLimit.accessLevel!==a.component.accessLimit.accessLevel:!1},Drc=function(a){var b=Kj();Dt(a)&&"INTERNAL"===a.component.accessLimit.accessLevel?a.confirmationDialogService.open({title:"Component Visibility Changed",content:Pn("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},Frc=function(a){var b=Kj();Krc(a)?a.confirmationDialogService.open({title:"Component Administrators Changed",content:Pn("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},Grc=function(a){var b=Kj();Lrc(a)?a.confirmationDialogService.open({title:"Group Removed from Restricted+ Readers",content:Pn("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},Erc=function(a){var b=Kj();a.componentReaders.includes("3:nobody@google.com")?a.confirmationDialogService.open({title:'"nobody@google.com" is on the access policy',
content:Pn('"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},Jrc=function(a){var b=Kj(),c={};c=Rn("A",(c.href=R6a(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:Sn("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:Sn("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},Hrc=function(a){return a.enableRostersChecks&&Ct(a)?Mrc(a).then(function(b){var c=Nrc(b),d=Orc(b);if(0===c.size&&0===d.size)return Promise.resolve(!0);
b=Prc(c.size,d.size);c=Qrc(c);d=Rrc(d);c=Sn(c,c===tt?tt:Rn("BR"),d);d={};c=Sn(c,Rn("P",{},Sn("Please review the ",Rn("A",(d.href=ENb(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=Kj();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)},
Nrc=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},Orc=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},Prc=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"},Qrc=function(a){if(0===a.size)return tt;for(var b=1===a.size?Rn("P",{},"The following large group is added: "):Rn("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(Rn("P",{},Sn(Rn("B",{},e)," has approximately ",Rn("B",{},f)," Googlers.")))}return Sn(b,c)},Rrc=function(a){if(0===a.size)return tt;var b=1===a.size?
Rn("P",{},"The following open group is added: "):Rn("P",{},"The following open groups are added: "),c=[];a=r(a.keys());for(var d=a.next();!d.done;d=a.next())c.push(Rn("P",{},Rn("B",{},d.value)));return Sn(b,c)},Irc=function(a){var b=Kj();if(a.isPublic()&&Src(a)){var c={};c=Sn(Rn("P",{},"You are about to give a broad category of users permissions on a public component."),Rn("P",{},Sn("Please review the ",Rn("A",(c.href=FNb(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};
O9.prototype.doSaveAccessPolicy_=function(){var a=this;try{var b=MT(this.componentAccessPolicyUnderEdit);var c=MT(this.issueDefaultAccessPolicyUnderEdit)}catch(d){c="An unknown problem occurred";d instanceof Error&&(c=d.message);GK(this.butterBar,c);return}Ct(this)?(this.isUpdating_=this.isUpdatingAccessPolicy_=!0,FK(this.butterBar,"Saving access settings...",0),Trc(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 Urc(a,b)}).then(function(){return Vrc(a)}).then(function(){return Promise.all([].concat(u(a.loadAccessPolicy_(a.componentId))))}).then(function(){FK(a.butterBar,"Access settings saved",0)}).catch(function(d){GK(a.butterBar,Fm(d),0)}).finally(function(){a.loadUserAccess_(a.componentId);a.isUpdatingAccessPolicy_=!1;a.isUpdating_=a.isUpdatingAccessPolicy_||a.isUpdatingAccessLimit_})):Vrc(this)};
var Urc=function(a,b){return a.componentFlattenedAccessPolicy_&&Wrc(a.componentFlattenedAccessPolicy_,a.componentAccessPolicyUnderEdit)?a.accessPolicyApi.get("COMPONENT",a.componentId).then(function(c){var d=LT(c);if(a.componentAccessPolicyUnderEdit&&!Wrc(d,a.componentAccessPolicyUnderEdit))return Promise.resolve(void 0);if(a.componentFlattenedAccessPolicy_&&Wrc(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)},Trc=function(a,b){if(!a.issueDefaultFlattenedAccessPolicy_||!Xrc(a.issueDefaultFlattenedAccessPolicy_,a.issueDefaultAccessPolicyUnderEdit))return Promise.resolve(void 0);b.inheritance="INHERIT_NOTHING";return a.accessPolicyApi.update("ISSUE_DEFAULTS",a.componentId,b)},Vrc=function(a){if(!Dt(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;FK(a.butterBar,"Changed access level.")},function(b){a.component.accessLimit.accessLevel=a.originalComponent.accessLimit.accessLevel;var c="Could not change access level. ";Em(b)&&(c+=Fm(b));
GK(a.butterBar,c)}).finally(function(){a.isUpdatingAccessLimit_=!1;a.isUpdating_=a.isUpdatingAccessPolicy_||a.isUpdatingAccessLimit_})},Krc=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},Lrc=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},Src=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,hcb.has(c)&&!a.issueDefaultFlattenedAccessPolicy_.appenders.includes(c))return!0;return!1},Mrc=function(a){var b=[].concat(u(new Set([].concat(u(Qi(a.componentAccessPolicyUnderEdit.admins,a.componentFlattenedAccessPolicy_.admins)),u(Qi(a.issueDefaultAccessPolicyUnderEdit.admins,a.issueDefaultFlattenedAccessPolicy_.admins)),u(Qi(a.issueDefaultAccessPolicyUnderEdit.editors,
a.issueDefaultFlattenedAccessPolicy_.editors)),u(Qi(a.issueDefaultAccessPolicyUnderEdit.appenders,a.issueDefaultFlattenedAccessPolicy_.appenders)),u(Qi(a.issueDefaultAccessPolicyUnderEdit.readers,a.issueDefaultFlattenedAccessPolicy_.readers)),u(Qi(a.issueDefaultAccessPolicyUnderEdit.restrictedReaders,a.issueDefaultFlattenedAccessPolicy_.restrictedReaders)),u(Qi(a.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders,a.issueDefaultFlattenedAccessPolicy_.restrictedPlusReaders))))));return Promise.all(b.map(function(c){c=
a.accessPolicyConverter.stringToAccessPolicyPrincipal(c);return Kk(c)&&c.group.emailAddress?a.groupMetadata.get(c.group.emailAddress):Promise.resolve({approximateSize:0,groupEmail:"",sizeCategory:"UNKNOWN",permissionCategory:"UNKNOWN_PERMISSION"})}))},Ct=function(a){return!(!a.componentFlattenedAccessPolicy_||!Wrc(a.componentFlattenedAccessPolicy_,a.componentAccessPolicyUnderEdit))||!(!a.issueDefaultFlattenedAccessPolicy_||!Xrc(a.issueDefaultFlattenedAccessPolicy_,a.issueDefaultAccessPolicyUnderEdit))},
Wrc=function(a,b){return b&&a?!Ei(a.admins,b.admins)||!Ei(a.appenders,b.appenders)||!Ei(a.implicitAccess,b.implicitAccess):!1},Xrc=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},rrc=function(a,b){return a.componentActions.getChildren(b).then(function(c){a.childComponents=c}).catch(function(c){a.errorHandler.errorHandler(null,
c)})};O9.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};
O9.prototype.revertAccessPolicyChanges=function(){this.componentFlattenedAccessPolicy_&&(this.componentAccessPolicyUnderEdit=Fi(this.componentFlattenedAccessPolicy_));this.issueDefaultFlattenedAccessPolicy_&&(this.issueDefaultAccessPolicyUnderEdit=Fi(this.issueDefaultFlattenedAccessPolicy_));this.appEvents.contactChipsRevertChanges.next()};
var feb=function(a){a.componentActions.getUncached(a.componentId).then(function(b){a.effectiveCustomFields=qrc(b.componentPathInfo.allCustomField)})},qrc=function(a){return a?a.filter(function(b){return b.enabledOnIssues}):[]},src=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=qrc(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()})};
O9.prototype.loadAccessPolicy_=function(){var a=this;return[this.accessPolicyApi.get("COMPONENT",this.componentId).then(function(b){a.componentFlattenedAccessPolicy_=LT(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_=LT(b);a.issueDefaultAccessPolicyUnderEdit=Fi(a.issueDefaultFlattenedAccessPolicy_)}).catch(function(b){a.errorHandler.errorHandler(null,
b)})]};O9.prototype.loadUserAccess_=function(a){var b=this;sK(this.userAccess,"admin","components/"+a).then(function(c){b.isAdmin_=c;return b.isAdmin_?!0:sK(b.userAccess,"writer","components/"+a)}).then(function(c){b.isEditor_=c}).catch(function(c){b.errorHandler.errorHandler(null,c)})};var orc=function(a){sK(a.userAccess,"writer","components/"+a.componentId+"/slo").then(function(b){a.isComponentSloEditor=b})},zt=function(a){return a.isSaving()||!a.isEditor_};g=O9.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 on(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){eo(this.analytics,"editComponent","click",a)};
var idb=function(a){a.butterBar.dismiss();a.retentionIsValid?a.hasUnsavedChanges()?GK(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,FK(a.butterBar,"Looking up subcomponents...",0),a.componentService.getDescendants(a.component.componentId).then(function(b){a.butterBar.dismiss();a.descendants=rb(b,A9,2);NB(a.matDialogService.open(a.confirmArchiveDialog,{restoreFocus:!1})).pipe(cg(a.destroyed$)).subscribe(function(){a.archiveButton.focus()})}).catch(function(b){a.errorHandler.errorHandler(null,
b)})):GK(a.butterBar,"Required retention settings are missing or invalid. Please set retention settings before "+a.archiveAction.slice(0,-1)+"ing.")};O9.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=ej(a.getRetentionSettings(),2),ro(a);default:throw Error("Se`"+b);}}return"Retention period unspecified"};
O9.prototype.archive=function(){var a=this;this.isArchiving_=!0;FK(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);FK(a.butterBar,a.archiveAction+'d component "'+a.component.name+'"',4E3);eo(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;FK(a.butterBar,"Could not "+a.archiveAction.toLowerCase()+" component: "+(Em(b)?Fm(b):b));a.isArchiving_=!1})};
var trc=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)})},Yrc=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||
[])):[])))))};O9.prototype.setCommentEditState=function(){this.component.commentEditState=this.commentEditsEnabled?"ENABLED":"DISABLED"};O9.prototype.getAccessLevelDescription=function(a){return u2b(a)};
var Zrc=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=bSb(d.getAddMask()),h=bSb(d.getRemoveMask()),k={author:d.getAuthor(),timestamp:d.getTimestamp(),diffs:[]},q=d.getAdd()||new rm;d=d.getRemove()||new rm;for(var v=r(new Set([].concat(u(f),u(h)))),y=v.next();!y.done;y=v.next()){var E=y.value;if(y=YRb.get(E))if("name"===E){var I=OS(h,E,d.getName());E=OS(f,E,q.getName());k.diffs.push(PS(y,
I,E))}else if("description"===E)I=OS(h,E,d.getDescription()),E=OS(f,E,q.getDescription()),k.diffs.push(PS(y,I,E));else if("parentComponentId"===E)I=OS(h,E,String(kj(d,2))),E=OS(f,E,String(kj(q,2))),k.diffs.push(PS(y,I,E));else if("isArchived"===E)I=OS(h,E,String(d.getArchived())),E=OS(f,E,String(q.getArchived())),k.diffs.push(PS(y,I,E));else if("commentEditState"===E){var N=ZRb.get(X(d,15,0));I=ZRb.get(X(q,15,0));N&&I&&(N=OS(h,E,N),E=OS(f,E,I),k.diffs.push(PS(y,N,E)))}else"defaultTemplateId"===E?
(I=OS(h,E,String(kj(d,18))),E=OS(f,E,String(kj(q,18))),k.diffs.push(PS(y,I,E))):"slo"===E?e.sessionIsInternal&&(I=OS(h,E,fSb(d.getSlo())),E=OS(f,E,fSb(q.getSlo())),k.diffs.push(PS(y,I,E))):"team"===E?e.sessionIsInternal&&(I=OS(h,E,gSb(d.getTeam())),E=OS(f,E,gSb(q.getTeam())),k.diffs.push(PS(y,I,E))):"retentionSettings"===E?(I=OS(h,E,dSb(d.getRetentionSettings())),E=OS(f,E,dSb(q.getRetentionSettings())),k.diffs.push(PS(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()};O9.prototype.showUpdateHistoryModal=function(){var a=this;Zrc(this,this.componentId).then(function(){a.matDialogService.open(y5,{width:"600px",data:{updateDiffs:a.updateDiffs}});eo(a.analytics,io.UPDATE_HISTORY_MODAL,"open");eo(a.analytics,io.MANAGE_COMPONENT,"viewHistory")})};O9.prototype.onSloChange=function(a){this.component.slo.id=a?a.getSloId():"0";a&&$rc(this)};
var Kdb=function(a){var b=!!a.parentComponent,c="0"!==a.component.team.id;return(a.enableSloLockingCheck?a.isComponentSloEditor:a.isAdmin())&&(c||b)},Qdb=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)},wdb=function(a){var b,c,d,e;bf(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?cf(f,(0,S.firstValueFrom)(a.team$.pipe(R(function(h){h=h.getSlo();a.component.slo.id=h.getSloId();$rc(a)}))),0):(d=asc(a),e=d.id,a.component.slo.id=e,$rc(a),f.jumpTo(0))})},Pdb=function(a){var b=a.parentComponent||a.isParentComponentRequired;return"0"!==a.component.team.id||b?!0:!1},asc=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}},bsc=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=Qi(e.accessor(b)||[],e.accessor(a)||[]);f.length&&c.push({field:e.field,addedPrincipals:f})}return c};
O9.prototype.getAddedAutomationInPolicyChange=function(){var a=[].concat(u(bsc(this.issueDefaultFlattenedAccessPolicy_,this.issueDefaultAccessPolicyUnderEdit)),u(bsc(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),(Jk(d)?On(d.user.emailAddress):Kk(d)&&On(d.group.emailAddress))&&b.add(d)}return[].concat(u(b.values()))};
var $db=function(a,b){FK(a.butterBar,"Saving effort spec...",0);a.component&&(a.component.effortSpec=vqa(b),a.componentActions.update(a.component).then(function(c){a.updateComponentAndOriginalComponent(c);eo(a.analytics,io.MANAGE_COMPONENT,"updateEffort");var d,e;if(null==(d=a.component)?0:null==(e=d.effortSpec)?0:e.name){var f;FK(a.butterBar,(null==(f=a.component.effortSpec)?void 0:f.name)+" saved")}else FK(a.butterBar,"Estimated Effort saved")}).catch(function(c){a.errorHandler.errorHandler(null,
c)}))};O9.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);$rc(this)};O9.prototype.back=function(){V_(this.appHistory)};var $rc=function(a){var b;(null==(b=a.component)?0:b.slo)?a.isEnableSloChecked="0"!==a.component.slo.id:a.isEnableSloChecked=!1};
li.Object.defineProperties(O9.prototype,{componentAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){Ei(a,this.componentAccessPolicyUnderEditInternal)||(this.componentAccessPolicyUnderEditInternal=a,Yrc(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,Yrc(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}}});
O9.\u0275fac=function(a){return new (a||O9)(D(dk),D(sI,2),D($R),D(SK),D(gO),D(VJ),D(TK),D(U_),D(DK),D(fO),D(vH),D(rP),D(ZB),D(QM),D(aZ),D(rK),D(y9),D(zT),D(IK),D(B9),D(QS),D(x9),D(JT),D(ZM),D(MK),D(jM),D(uY),D(vY),D(N9))};
O9.\u0275cmp=w({type:O9,selectors:[["manage-component-page"]],viewQuery:function(a,b){a&1&&(Bf(krc,5),Bf(lrc,5),Bf(mrc,5),Bf(bX,5,pd));if(a&2){var c;Af(c=Df())&&(b.confirmArchiveDialog=c.first);Af(c=Df())&&(b.archiveButton=c.first);Af(c=Df())&&(b.metadataForm=c.first);Af(c=Df())&&(b.tabs=c)}},features:[Ge([sI]),ae],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&&(F(0,"div",0)(1,"div",1)(2,"div",2)(3,"b-button",3),J("onAction",function(){return b.back()}),H(4,"b-icon",4),G(),M(5,ldb,5,3,"ng-container",5),G()()(),F(6,"div",6),M(7,mdb,2,0,"div",7),M(8,Deb,32,20,"div",5),G(),M(9,Heb,13,3,"ng-template",null,8,Jf));
a&2&&(B(5),C("ngIf",b.component),B(2),C("ngIf",b.isLoading),B(1),C("ngIf",!b.isLoading&&b.component&&b.component.componentId))},dependencies:[wO,Gx,Cx,Mx,SS,rT,aT,D3,K3,P3,iY,iZ,J4,sy,Jg,uy,ly,my,Cy,ry,py,rQ,gZ,zH,BB,CB,JO,$B,aC,bC,cC,dF,DA,ET,dX,bX,sF,YY,tQ,y_,C9,w_,kN,DV,K9,pT,Px,Rx],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 gfb=function(a){return[a]},hfb=function(){return[]},qfb=function(a){return{value:a}},csc={BASIC:"basic",SLO:"slo",MAPPINGS:"componentMapping"},P9=function(a,b,c,d,e,f,h,k,q,v,y,E,I,N){wI.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=v;this.teamsService=y;this.userAccess=E;this.sloApi=I;this.sloService=N;this.originalSloLock=
!1;this.canEditSloLock=!0;this.sloJustification$=new S.BehaviorSubject("");this.error="";this.justificationRequiredText="Justification is required to override the org SLO.";this.selectedTabIndex=0;this.teamId=this.routeParams.teamId;this.team$=new S.ReplaySubject(1);this.teamSlo$=this.team$.pipe(R(function(Y){return Y.getSlo()}));this.isSloLeadValid=!1;this.sloLeadEmail$=new S.BehaviorSubject("");this.sloLead$=new S.BehaviorSubject("");this.sloLeadValidators={sloLeadNotUser:function(Y){if(Y){Y=r(Y);
for(var ka=Y.next();!ka.done;ka=Y.next())if(0!==ka.value.indexOf("2:"))return!1}return!0}};this.teamAdmins$=(0,S.from)(this.accessPolicyApi.get("TEAM",this.teamId)).pipe(R(function(Y){return Y.admins.filter(Jk).map(Jn)}));this.teamLeads$=this.team$.pipe(R(function(Y){return Y.getMembersList().filter(function(ka){return W(ka,2)}).map(function(ka){var ha,ra;return"2:"+(null!=(ra=null==(ha=ka.getUser())?void 0:ha.getEmailAddress())?ra:"")})}));this.adminsAndLeads$=(0,S.combineLatest)([this.teamAdmins$,
this.teamLeads$]).pipe(R(function(Y){var ka=r(Y);Y=ka.next().value;ka=ka.next().value;var ha=new Set(Y);ka=ka.filter(function(ra){return!ha.has(ra)});return[].concat(u(Y),u(ka))}));this.associatedComponents$=(0,S.from)(this.componentActions.search("directteamid:"+this.teamId));this.teamPath$=this.team$.pipe(R(function(Y){var ka=Y.getPathNamesList();return Y.getPathIdsList().map(function(ha,ra){return{id:ha,name:ka[ra]}})}));this.isRootTeam$=this.teamPath$.pipe(R(function(Y){return 1>=Y.length?!0:
!1}));this.parentTeam$=(0,S.combineLatest)([this.isRootTeam$,this.teamPath$]).pipe(bg(function(Y){var ka=r(Y);Y=ka.next().value;ka=ka.next().value;return Y?(0,S.of)(null):L.teamsService.getTeam(""+ka[ka.length-2].id)}));this.parentTeam=null;this.inheritedSlo$=this.parentTeam$.pipe(bg(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(ra){return{id:ha,link:pn(ha),slo:ra}}):(0,S.of)({id:"0"})}));this.sloPolicySource$=
(0,S.combineLatest)([this.parentTeam$,this.teamPath$]).pipe(R(function(Y){var ka=r(Y);Y=ka.next().value;ka=ka.next().value;var ha,ra=null==Y?void 0:null==(ha=Y.getSlo())?void 0:ha.getSourceTeamId();ha=ka.find(function(Da){return""+Da.id===ra});return ra&&ha?{name:ha.name,link:{path:"/teams/"+ra+"/edit",fragment:"slo"}}:null}));this.Tab=csc;this.enableSloLockingUi=xH(this.activeSession,"enableSloLockingUi");this.enableSloLead=xH(this.activeSession,"enableSloLead");this.isSloInheritEnabled$=new S.BehaviorSubject(!0);
this.sloId$=new S.BehaviorSubject("0");this.enableSloCheckedInternal=!1;this.sloLocked$=new S.BehaviorSubject(!1);this.hasSloReadAccess$=this.sloId$.pipe(bg(function(Y){return sK(L.userAccess,"reader","slos/"+Y)}),ag(!1));this.sloPickerLink$=(0,S.combineLatest)([this.sloId$,this.hasSloReadAccess$]).pipe(R(function(Y){var ka=r(Y);Y=ka.next().value;ka=ka.next().value;return Y&&0<Number(Y)&&ka?pn(Y):null}));this.hasUnsavedChanges$=(0,S.combineLatest)([this.team$,this.sloId$,this.isSloInheritEnabled$,
this.sloLocked$,this.sloJustification$,this.sloLeadEmail$]).pipe(R(function(Y){var ka=r(Y),ha=ka.next().value;Y=ka.next().value;var ra=ka.next().value,Da=ka.next().value,Ja=ka.next().value;ka=ka.next().value;var Ba=ha.getSlo(),La,hb;ha=null!=(hb=null==(La=m(ha,Sl,12))?void 0:La.getEmailAddress())?hb:"";return Ba.getInherit()!==ra||Ba.getSloId()!==Y||Da!==L.originalSloLock||Ba.getComment()!==Ja||ha!==ka}));this.hasEditAccess=!1;this.pageTitle.setTitle("Team Overview");this.team$.pipe(cg(this.destroyed$)).subscribe(function(Y){L.pageTitle.setTitle("Team: "+
Y.getName())});a=xH(this.activeSession,"enableSloLockingCheck")?"teams/"+this.teamId+"/slo":"teams/"+this.teamId;sK(this.userAccess,"writer",a).then(function(Y){L.hasEditAccess=Y});this.childTeams$=this.teamsService.getChildTeams([this.teamId]).pipe(R(function(Y){return Y.values().next().value}));this.sloLock$=this.sloApi.executor.get({url:"action/teams/"+this.teamId+"/slo_edit_policy",responseConstructor:rY}).pipe(R(Gqa));var T=Gk(this.hasUnsavedChanges$.pipe(cg(this.destroyed$)),!1);this.subscriptions.add(bZ(this.checkBeforeExit,
function(){return T.getValue()},!1))};U(P9,wI);P9.\u0275dir=wI.\u0275dir;
P9.prototype.ngOnInit=function(){var a=this,b,c,d;return bf(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),cf(e,(0,S.firstValueFrom)(a.teamsService.get(a.teamId)),2);if(3!=e.nextAddress)return c=e.yieldResult,"0"===c.getTeamId()?GK(a.butterBar,"Unable to fetch team ID '"+a.teamId+"'"):a.team$.next(c),kfb(a),d=a,cf(e,(0,S.firstValueFrom)(a.parentTeam$),3);d.parentTeam=e.yieldResult;
df(e)})};P9.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)};P9.prototype.onSloChange=function(a){a&&(this.sloId=a.getSloId())};
var jfb=function(a,b){var c,d,e,f,h,k;return bf(function(q){switch(q.nextAddress){case 1:if(!a.validate())return q.return();FK(a.butterBar,"Saving changes...",0);Qt(q,2);if(!a.enableSloLead||(null==(c=m(b,Sl,12))?void 0:c.getEmailAddress())===a.sloLeadEmail){q.jumpTo(4);break}var v=S.firstValueFrom;var y=(new Sl).setEmailAddress(a.sloLeadEmail);y=Bb(b,12,y);y=a.teamsService.updateTeam(y);return cf(q,v.call(S,y),5);case 5:d=q.yieldResult,a.team$.next(d);case 4:if(a.sloLocked===a.originalSloLock){q.jumpTo(6);
break}v=S.firstValueFrom;y=a.sloApi;var E=a.teamId,I=a.sloLocked,N=new qJ;I=sl(N,2,I?1:2).setTeamId(Number(E));y=y.executor.post({url:"action/teams/"+E+"/slo_edit_policy",responseConstructor:tY,body:I}).pipe(R(Gqa));return cf(q,v.call(S,y),7);case 7:e=q.yieldResult,a.originalSloLock=e;case 6:f=b.getSlo();if(f.getInherit()===a.isSloInheritEnabled&&f.getSloId()===a.sloId&&a.originalSloLock===a.sloLocked&&f.getComment()===a.sloJustification){q.jumpTo(8);break}v=S.firstValueFrom;I=(new Et).setSloId(a.sloId).setInherit(a.isSloInheritEnabled);
a.isSloInheritEnabled||I.setComment(a.sloJustification$.getValue());y=a.teamsService;E=a.teamId;N=(new iM).setTeamId(E);I=Bb(N,2,I);y=y.executor.post({url:"/action/teams/"+E+"/update_slo",body:I,responseConstructor:fM});return cf(q,v.call(S,y),9);case 9:h=q.yieldResult,a.team$.next(h);case 8:FK(a.butterBar,"Save complete.");Rt(q,0);break;case 2:k=St(q),KK(a.errorHandler,k),df(q)}})};
P9.prototype.validate=function(){if(!this.isSloInheritEnabled&&""===this.sloJustification$.getValue())return this.error="Justification is required",!1;if(this.enableSloLead&&!this.isSloLeadValid)return this.error="Please provide a valid SLO lead",!1;this.error="";return!0};
var dsc=function(a){(0,S.firstValueFrom)(a.team$).then(function(b){var c;b=null==(c=m(b,Sl,12))?void 0:c.getEmailAddress();a.sloLead=b?"2:"+b:""})},esc=function(a){(0,S.firstValueFrom)(a.teamSlo$).then(function(b){a.sloId=b.getSloId();a.isSloInheritEnabled=b.getInherit();a.sloJustification$.next(b.getComment())})},fsc=function(a){(0,S.firstValueFrom)(a.sloLock$).then(function(b){a.originalSloLock=b;a.sloLocked=b})},kfb=function(a){a.error="";dsc(a);esc(a);a.enableSloLockingUi&&fsc(a)};
P9.prototype.back=function(){V_(this.appHistory)};
li.Object.defineProperties(P9.prototype,{sloJustification:{configurable:!0,enumerable:!0,get:function(){return this.sloJustification$.getValue()}},sloLeadEmail:{configurable:!0,enumerable:!0,get:function(){return this.sloLeadEmail$.getValue()}},sloLead:{configurable:!0,enumerable:!0,set:function(a){a!==this.sloLead$.getValue()&&(this.sloLead$.next(a),this.sloLeadEmail$.next(a?a.split(":")[1]:""))},get:function(){return this.sloLead$.getValue()}},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()}}});P9.\u0275fac=function(a){return new (a||P9)(D(vH),D(gO),D(U_),D(DK),D(aZ),D(zT),D(IK),D(SK),D(fO),D($R),D(jM),D(rK),D(uY),D(vY))};
P9.\u0275cmp=w({type:P9,selectors:[["manage-team-page"]],viewQuery:function(a,b){a&1&&Bf(bX,5,pd);if(a&2){var c;Af(c=Df())&&(b.tabs=c)}},features:[ae],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"],["idForInputBox","team-slo-lead","ariaLabel","Team SLO lead email",3,"users","customValidators","maxUserAllowed","usersChange","isValid"],[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&&(F(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),J("click",function(){return b.back()}),H(4,"mat-icon",4),G()()()(),F(5,"div",5),M(6,rfb,86,39,"ng-container",6),P(7,"async"),G());a&2&&(B(6),C("ngIf",Q(7,1,b.team$)))},dependencies:[Fx,Gx,Cx,iZ,Jg,ly,Cy,ry,rQ,gZ,BB,CB,JO,dF,dX,bX,sF,DA,ET,YY,KI,pT,w_,h_,Px],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 tfb=function(a){return{feature:a}},Q9=function(a){this.beapService=a;this.beapFeaturesTF$=vic(this.beapService,"TEAM_FOOD");this.beapFeaturesEA$=vic(this.beapService,"EARLY_ACCESS");this.hasFeatures$=(0,S.combineLatest)([this.beapFeaturesTF$,this.beapFeaturesEA$]).pipe(R(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(R(function(b){return 0<b.length}));this.hasFeaturesEA$=this.beapFeaturesEA$.pipe(R(function(b){return 0<
b.length}));this.linkClicked={}},Dfb=function(a,b){return!!a.linkClicked[b]};Q9.\u0275fac=function(a){return new (a||Q9)(D(X2))};
Q9.\u0275cmp=w({type:Q9,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&&(M(0,zfb,5,6,"ng-container",0),P(1,"async"),M(2,Afb,2,0,"ng-template",null,1,Jf),M(4,Efb,20,16,"ng-template",null,2,Jf));if(a&2){var c=Ce(3);C("ngIf",Q(1,2,b.hasFeatures$))("ngIfElse",c)}},dependencies:function(){return[Z2,hI,iI,Gx,Cx,Mx,CB,dF,ET,sF,Px,R9]},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 R9=function(){};R9.prototype.transform=function(a){return 2===a?!0:!1};R9.\u0275fac=function(a){return new (a||R9)};R9.\u0275pipe=wc({name:"featureState",type:R9,pure:!0});
var gsc=function(){this.name="Assigned issues";this.resourceType=null;this.hasOptions=!1;this.options=[]};gsc.prototype.shouldDisplay=function(){return!0};gsc.prototype.getDefaultOptionId=function(){return null};var S9=function(a,b){this.name=a;this.resourceType=b;this.hasOptions=!0;this.options=[]};S9.prototype.shouldDisplay=function(){return 0<this.options.length};S9.prototype.getDefaultOptionId=function(){return this.options[0].id};
var hsc=function(a,b){this.id=a;this.name=b},jsc=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 S.Subscription;this.hotlistMainOption=new S9("Hotlist","HOTLIST");this.savedSearchMainOption=new S9("Saved search","SAVED_SEARCH");this.bookmarkGroupMainOption=new S9("Bookmark group","BOOKMARK_GROUP");this.mainOptions=[new gsc,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];isc(this);this.subscriptions.add(this.appEvents.sidebarUpdated.subscribe(function(){isc(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,isc(f)):(f.selectedMainOption=f.mainOptions[0],f.selectedOptionId=null))}))};jsc.prototype.destroy=function(){this.subscriptions.unsubscribe()};
var Ifb=function(a){FK(a.butterBar,"Saving preferences...",0);(null==a.selectedMainOption.resourceType||null==a.selectedOptionId?a.userPreferencesManager.clearHomepagePreferences():$Eb(a.userPreferencesManager,{resourceType:a.selectedMainOption.resourceType,resourceId:a.selectedOptionId})).subscribe(function(){FK(a.butterBar,"Preferences saved.",4E3)})},isc=function(a){var b=function(c){return new hsc(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 hsc(String(a.selectedOptionId),a.selectedMainOption.name+" "+a.selectedOptionId)))};
var ksc=bj[3],T9=function(a,b,c,d,e,f,h,k,q){wI.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(v){return{value:v.id,label:v.name}})));this.sloEnabled=d.isInternalSession();this.showBugScreensaverSetting=d.isInternalSession()};U(T9,wI);T9.\u0275dir=wI.\u0275dir;
T9.prototype.ngOnInit=function(){var a=this;this.destroyed$.subscribe(function(){var b;null==(b=a.preferredHomepage)||b.destroy()});this.preferredHomepage=new jsc(this.butterBar,this.sidebar,this.userPreferencesManager,this.cdr,this.appEvents);this.userPreferencesManager.preferences$.pipe(cg(this.destroyed$)).subscribe(function(b){a.userPreferences=b;a.cdr.detectChanges()})};
T9.prototype.save=function(a,b,c){var d=this;FK(this.butterBar,"Saving preferences...",0);this.userPreferencesManager.save(this.userPreferences).subscribe(function(){FK(d.butterBar,"Preferences saved.",4E3)});eo(this.analytics,"preferences",a,b,c)};var lsc=function(a){var b;return(null==(b=a.userPreferences.textDisplayPreferences)?void 0:b.commentDisplayOverride)===ksc};T9.\u0275fac=function(a){return new (a||T9)(D(sI,2),D(VI),D(DK),D(vH),D(rP),D(QM),D(XH),D(aN),D(MK))};
T9.\u0275cmp=w({type:T9,selectors:[["b-general-settings"]],features:[Ge([sI]),ae],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&&(F(0,"div",0)(1,"div",1)(2,"div",2),O(3," Preferred homepage "),F(4,"p",3),O(5," See your preferred homepage selection. "),F(6,"a",4),O(7," Learn more "),G()()(),F(8,"div",5)(9,"div",6)(10,"label",7),O(11," Current selection "),G(),F(12,"mat-form-field",8)(13,"mat-select",9),J("ngModelChange",function(c){return b.preferredHomepage.selectedMainOption=c})("selectionChange",function(){var c=b.preferredHomepage;c.selectedOptionId=c.selectedMainOption.getDefaultOptionId();Ifb(c);c.cdr.detectChanges()}),
M(14,Gfb,2,1,"ng-container",10),G()(),M(15,Jfb,3,2,"mat-form-field",11),G()()(),H(16,"hr"),F(17,"div",1)(18,"div",2),O(19," Date/time formatting settings "),F(20,"p",3),O(21," Select how you want dates and times to be formatted. "),F(22,"a",4),O(23," Learn more "),G()()(),F(24,"div",5)(25,"div",6)(26,"label",12),O(27," Dates "),G(),F(28,"mat-form-field",13)(29,"mat-select",14),J("ngModelChange",function(c){return b.userPreferences.dateTimePreferences.calendarFormat=c})("selectionChange",function(){return b.save("saveDateTimePreferences")}),
M(30,Kfb,2,2,"mat-option",15),G()()(),F(31,"div",6)(32,"label",16),O(33," Times "),G(),F(34,"mat-form-field",17)(35,"mat-select",14),J("ngModelChange",function(c){return b.userPreferences.dateTimePreferences.timeFormat=c})("selectionChange",function(){return b.save("saveDateTimePreferences")}),M(36,Lfb,2,2,"mat-option",15),G()()(),F(37,"div",6)(38,"label",18),O(39," Time Zones "),G(),F(40,"mat-form-field",19)(41,"mat-select",14),J("ngModelChange",function(c){return b.userPreferences.dateTimePreferences.timeZone=
c})("selectionChange",function(){return b.save("saveDateTimePreferences")}),M(42,Mfb,2,2,"mat-option",15),G()()()(),H(43,"hr"),F(44,"div",1)(45,"div",2),O(46," Keyboard settings "),G(),F(47,"div",5)(48,"div",6)(49,"label",20),O(50," Enable all hotkeys? "),G(),F(51,"b-slide-toggle",21),J("modelChange",function(c){b.userPreferences.keyboardPreferences.enableAllHotkeys=c;return b.save("saveKeyboardPreferences")}),G()()()(),F(52,"div"),H(53,"hr"),F(54,"div",1)(55,"div",2),O(56," Display settings "),G(),
F(57,"div",5)(58,"div",6)(59,"label",22),O(60," Force comments to display as plain text? "),G(),F(61,"b-slide-toggle",23),J("modelChange",function(c){b.userPreferences.textDisplayPreferences&&(b.userPreferences.textDisplayPreferences.commentDisplayOverride=c?ksc:void 0,b.save("saveTextDisplayPreferences.commentDisplayOverride"))}),G()(),F(62,"div",6)(63,"label",24),O(64," Force comments to display with code font? "),G(),H(65,"b-toggle-code-font",25),G()()()(),M(66,Nfb,10,1,"div",26),G()());a&2&&(B(6),
C("href",b.documentationLinks.baseDocumentationUrl+"/guides/set-a-homepage",Md),B(7),C("ngModel",b.preferredHomepage.selectedMainOption),B(1),C("ngForOf",b.preferredHomepage.mainOptions),B(1),C("ngIf",b.preferredHomepage.selectedMainOption.hasOptions),B(7),C("href",b.documentationLinks.baseDocumentationUrl+"/guides/set-date-time-formatting",Md),B(7),C("ngModel",b.userPreferences.dateTimePreferences.calendarFormat),B(1),C("ngForOf",b.dateFormats),B(5),C("ngModel",b.userPreferences.dateTimePreferences.timeFormat),
B(1),C("ngForOf",b.timeFormats),B(5),C("ngModel",b.userPreferences.dateTimePreferences.timeZone),B(1),C("ngForOf",b.timeZones),B(9),C("model",b.userPreferences.keyboardPreferences.enableAllHotkeys),B(10),C("model",lsc(b)),B(5),C("ngIf",b.showBugScreensaverSetting))},dependencies:[Gx,Cx,ly,ry,oC,XS,xB,sF,HT,d9],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 U9=function(a,b,c,d){wI.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(cg(this.destroyed$)).subscribe(function(f){e.userPreferences=f})};U(U9,wI);U9.\u0275dir=wI.\u0275dir;
U9.prototype.save=function(a,b,c){var d=this;FK(this.butterBar,"Saving preferences...",0);this.userPreferencesManager.save(this.userPreferences).subscribe(function(){FK(d.butterBar,"Preferences saved.",4E3)});eo(this.analytics,"preferences",a,b,c)};U9.\u0275fac=function(a){return new (a||U9)(D(VI),D(DK),D(rP),D(QM))};
U9.\u0275cmp=w({type:U9,selectors:[["b-notification-settings"]],features:[ae],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&&(F(0,"div",0)(1,"div",1),O(2," Notification settings "),F(3,"p",2),O(4," Select the level of email you want to receive for each issue role. "),F(5,"a",3),O(6," Learn more "),G()()(),F(7,"div",4)(8,"div",5)(9,"label",6),O(10," Assignee "),G(),F(11,"mat-form-field",7)(12,
"mat-select",8),J("ngModelChange",function(c){return b.userPreferences.notificationPreferences.assignedPriority=c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),M(13,Ofb,3,4,"mat-option",9),G()()(),F(14,"div",5)(15,"label",10),O(16," Reporter "),G(),F(17,"mat-form-field",11)(18,"mat-select",8),J("ngModelChange",function(c){return b.userPreferences.notificationPreferences.reportedPriority=c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),
M(19,Pfb,3,4,"mat-option",9),G()()(),F(20,"div",5)(21,"label",12),O(22," Verifier "),G(),F(23,"mat-form-field",13)(24,"mat-select",8),J("ngModelChange",function(c){return b.userPreferences.notificationPreferences.verifiedPriority=c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),M(25,Qfb,3,4,"mat-option",9),G()()(),F(26,"div",5)(27,"label",14),O(28," CC'd "),G(),F(29,"mat-form-field",15)(30,"mat-select",8),J("ngModelChange",function(c){return b.userPreferences.notificationPreferences.ccdPriority=
c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),M(31,Rfb,3,4,"mat-option",9),G()()(),F(32,"div",5)(33,"label",16),O(34," Starred "),G(),F(35,"mat-form-field",17)(36,"mat-select",8),J("ngModelChange",function(c){return b.userPreferences.notificationPreferences.starredPriority=c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),M(37,Sfb,3,4,"mat-option",9),G()()(),F(38,"div",5)(39,"label",18),O(40," Exclude edits made by you? "),G(),F(41,"b-slide-toggle",
19),J("modelChange",function(c){b.userPreferences.notificationPreferences.excludeChangesByMe=c;return b.save("saveNotificationPreferences")}),G()()()());a&2&&(B(5),C("href",b.documentationLinks.baseDocumentationUrl+"/concepts/settings#email",Md),B(7),C("ngModel",b.userPreferences.notificationPreferences.assignedPriority),B(1),C("ngForOf",b.priorities),B(5),C("ngModel",b.userPreferences.notificationPreferences.reportedPriority),B(1),C("ngForOf",b.priorities),B(5),C("ngModel",b.userPreferences.notificationPreferences.verifiedPriority),
B(1),C("ngForOf",b.priorities),B(5),C("ngModel",b.userPreferences.notificationPreferences.ccdPriority),B(1),C("ngForOf",b.priorities),B(5),C("ngModel",b.userPreferences.notificationPreferences.starredPriority),B(1),C("ngForOf",b.priorities),B(4),C("model",b.userPreferences.notificationPreferences.excludeChangesByMe))},dependencies:[Gx,ly,ry,oC,XS,xB,sF,HT,wM],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 msc=[[["","page-bar-left",""]],[["","page-bar-right",""]]],V9=function(){this.showRefresh=this.showBack=!0;this.backLabel="Go back";this.refreshLabel="Refresh";this.onBack=new Rw;this.onRefresh=new Rw};V9.\u0275fac=function(a){return new (a||V9)};
V9.\u0275cmp=w({type:V9,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&&(xe(msc),M(0,Tfb,2,1,"button",0),M(1,Ufb,2,1,"button",0),M(2,Vfb,2,1,"h2",1),ye(3),F(4,"div",2),ye(5,1),G());a&2&&(C("ngIf",b.showBack),B(1),C("ngIf",b.showRefresh),B(1),C("ngIf",b.title))},dependencies:[Cx,BB,sF,dF],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 W9=function(a,b,c,d){this.activeSession=a;this.location=b;this.routeParams=c;this.beapEnabled=xH(this.activeSession,"enableBeap");this.selectedTabIndex=0;d.setTitle("Settings")};W9.prototype.ngAfterViewInit=function(){this.selectedTabIndex=nsc(this,this.routeParams.settingsTab)};W9.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(Tsa(d))};
var nsc=function(a,b){a=a.tabs.toArray().findIndex(function(c){return c.nativeElement.id===b});return 0>a?0:a};W9.\u0275fac=function(a){return new (a||W9)(D(vH),D(SK),D($R),D(fO))};
W9.\u0275cmp=w({type:W9,selectors:[["b-settings"]],viewQuery:function(a,b){a&1&&Bf(bX,5,pd);if(a&2){var c;Af(c=Df())&&(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&&(H(0,"b-page-bar",0),F(1,"mat-tab-group",
1),J("selectedIndexChange",function(c){return b.tabChange(c)}),F(2,"mat-tab",2)(3,"div",3),H(4,"b-general-settings"),G()(),F(5,"mat-tab",4)(6,"div",3),H(7,"b-notification-settings"),G()(),M(8,Wfb,3,0,"mat-tab",5),G());a&2&&(C("showRefresh",!1)("showBack",!1),B(1),C("selectedIndex",b.selectedTabIndex),B(7),C("ngIf",b.beapEnabled))},dependencies:[Cx,gZ,dX,bX,V9,Q9,T9,U9],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 X9=function(a,b,c,d,e,f,h,k,q){wI.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(X9,wI);X9.\u0275dir=wI.\u0275dir;g=X9.prototype;
g.ngOnInit=function(){var a=this,b=function(c){a.bookmarkGroup=c;a.userIsOwner=Nl(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("Te`"+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("Te`"+a.resourceType);}};X9.\u0275fac=function(a){return new (a||X9)(D(sI,2),D($R),D(SK),D(fO),D(kL),D(XM),D(TK),D(vH),D(MK))};
X9.\u0275cmp=w({type:X9,selectors:[["view-bookmark-group-page"]],features:[Ge([sI]),ae],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&&(F(0,"h2",0),O(1),G(),H(2,"div",1),F(3,"div",2),M(4,$fb,12,5,"div",3),G());a&2&&(B(1),De("View Bookmark Group ",null==b.bookmarkGroup?null:b.bookmarkGroup.name,""),B(2),ge("aria-busy",
!b.bookmarkGroup),B(1),C("ngIf",b.bookmarkGroup))},dependencies:[Gx,Cx,iN,sF],encapsulation:2});var Y9=function(){};Y9.\u0275fac=function(a){return new (a||Y9)};Y9.\u0275mod=uc({type:Y9});Y9.\u0275inj=gc({imports:[Wx,UN,lH]});
var Z9=function(a,b,c,d,e,f,h,k,q,v,y,E,I,N,L,T,Y,ka,ha,ra,Da,Ja,Ba,La,hb,fb,Tb,va,Ca,Ia){r9.call(this,b,c,d,e,h,k,q,v,f,y,E,I,L,T,Y,ka,ha,ra,hb,Da,Ja,va,Ca,Ia);this.ngZone=a;this.hotlists=N;this.hotkeys=Ba;this.pageTitle=La;this.userAccess=Tb;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(Z9,r9);Z9.\u0275dir=r9.\u0275dir;
Z9.prototype.ngOnInit=function(){var a=this;r9.prototype.ngOnInit.call(this);this.subscriptions.add(cJ(this.hotkeys,{title:"Hotlist",hotkeys:[].concat(u(this.BASE_HOTKEYS),[{keys:[Nj("j")],displayAs:"Shift+j",description:"Move the current issue down (when sorting by POS)",onPress:function(){osc(a,1)}},{keys:[Nj("k")],displayAs:"Shift+k",description:"Move the current issue up (when sorting by POS)",onPress:function(){osc(a,-1)}}])}));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(function(b){b&&
b.hotlistId==a.hotlistId&&"view-hotlist"!=b.origin&&psc(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)};Z9.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)}};
Z9.prototype.loadUserAccess=function(a){var b=this;sK(this.userAccess,"admin","hotlists/"+a).then(function(c){b.isAdmin=c},function(c){b.errorHandler.errorHandler(null,c)});sK(this.userAccess,"appender","hotlists/"+a).then(function(c){b.canAppend=c},function(c){b.errorHandler.errorHandler(null,c)})};
Z9.prototype.getIssues=function(){var a=this;this.searchResults=null;this.isLoading=!0;PN(this.currentSearch,"hotlistid:"+this.hotlistId);var b=this.hotlist?Promise.resolve(this.hotlist):psc(this);return this.doSearch(b).finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
var psc=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};
Z9.prototype.doSearch=function(a){var b=this,c="priority type title assignee status issueId modifiedTime".split(" ").map(Ui),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 eLb(b.issuePagination,f)});a.then(function(f){Jqc(b,
f)}).catch(function(f){"number"===typeof f?uZ(b.urlPreferences,{page:f}):b.errorHandler.errorHandler(null,f)});return Ho({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,qsc(b)?rsc:ssc);b.loadHotlists()}).catch(function(){})};var qsc=function(a){return 0===a.sortPreferences.length||1===a.sortPreferences.length&&"POSITION"==a.sortPreferences[0].fieldId.type};
Z9.prototype.getCsvUrl=function(){return this.paths.hotlistIssuesCsvAction(this.hotlistId,this.sortPreferences,this.displayColumns,this.showHotlists)};
Z9.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;eo(d.analytics,d.ANALYTICS_CATEGORY,c?"reorderByKeyboard":"issueDragDrop")}).finally(function(){d.repositioning=!1}))};
var osc=function(a,b){if(a.searchResults&&!a.repositioning&&qsc(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)||H4b(f)}else if(-1===b){var h;null==(h=a.resultsGrid)||I4b(h)}a.repositionIssue(e,c,!0)}}};g=Z9.prototype;
g.save=function(){var a=this;if(this.hotlist){var b=this.hotlist,c=this.urlPreferences.getDisplayColumns();if(c){var d=gva(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}});FK(this.butterBar,"Saving changes to hotlist...");tsc(this,b).then(function(e){FK(a.butterBar,'Saved changes to hotlist "'+
e.name+'".');uZ(a.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null});eo(a.analytics,a.ANALYTICS_CATEGORY,"savedParams",d)})}};g.discardChanges=function(){eo(this.analytics,this.ANALYTICS_CATEGORY,"discardChanges");uZ(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?Ol(this.hotlist.adminUsers).includes(this.currentUserEmail):!1};g.setSort=function(a,b){var c=this.getSort();"position"==a||c&&"position"==c.field?r9.prototype.setSort.call(this,a,b,!1):r9.prototype.setSort.call(this,a,b)};
var tsc=function(a,b){return a.hotlistApi.updateMetadata(b.hotlistId,b).then(function(c){a.hotlist=c;usc(a,c.hotlistId);return c},function(c){a.errorHandler.errorHandler(null,c);return Promise.reject(c)})},usc=function(a,b){a.appEvents.hotlistChanged.next({hotlistId:b,origin:"view-hotlist"})};
Z9.prototype.toggleStar=function(){var a=this;this.isStarred=!this.isStarred;var b=AC(this.hotlistId),c=function(){usc(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)};Z9.prototype.openEditHotlist=function(){this.bLocation.url(this.paths.editHotlist(this.hotlistId))};var ssc=[SY,TY,UY,N4b],rsc=[SY,M4b,TY,UY,N4b];
Z9.\u0275fac=function(a){return new (a||Z9)(D(jg),D(sI),D(TI),D(uM),D(SK),D(vH),D(HK),D(lK),D(kL),D(eL),D(DK),D(QM),D(ON),D(NZ),D(TM),D(VI),D(tZ),D(zZ),D(TK),D(lI),D(MR),D(tP),D(bJ),D(fO),D(IK),D($R),D(rK),D(MK),D(qL),D(wL))};
Z9.\u0275cmp=w({type:Z9,selectors:[["view-hotlist-page"]],features:[Ge([sI]),ae],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&&(F(0,"div",0)(1,"b-grid-controls",1),J("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()}),G(),F(2,"div",2)(3,"b-pagination",3),J("pageChange",function(c){return b.goToPage(c.page)})("resultsPerPageChange",
function(c){return Lqc(b,c.option)}),G()()(),F(4,"div",4),M(5,kgb,9,7,"div",5),M(6,lgb,4,1,"div",6),M(7,mgb,2,2,"div",7),M(8,ngb,2,5,"div",8),G());a&2&&(B(1),C("grid",b.resultsGrid)("hotlistChoices",b.hotlistChoices)("showHotlistButtons",b.canAppend)("currentHotlistId",b.hotlistId)("isHotlistAdmin",b.isAdmin),B(2),C("searchResults",b.searchResults),B(1),ge("aria-busy",b.isLoading),B(1),C("ngIf",!b.isInitializing),B(1),C("ngIf",b.isLoading),B(1),C("ngIf",!b.isLoading&&!b.hasResults()),B(1),C("ngIf",
!b.isLoading&&b.hasResults()))},dependencies:[XY,QZ,iN,QY,sF,Cx,kN,j_,BB],encapsulation:2});var $9=function(){};$9.\u0275fac=function(a){return new (a||$9)};$9.\u0275mod=uc({type:$9});$9.\u0275inj=gc({imports:[qZ,TZ,UN,MZ,lH,Wx,WN,k_,BG]});
var a$=function(a,b,c,d,e,f,h,k,q,v,y,E,I,N,L,T,Y,ka,ha,ra,Da,Ja,Ba,La,hb,fb,Tb,va,Ca){r9.call(this,a,b,c,d,f,h,k,v,e,y,E,I,N,L,T,Y,ka,ha,La,ra,Da,Tb,va,Ca);this.savedSearchApi=q;this.hotkeys=Ja;this.pageTitle=Ba;this.userAccess=fb;this.ANALYTICS_CATEGORY="savedSearchIssues";this.isAdmin=!1;this.savedSearch=null;this.isLoading=!0;this.showHotlists=!1;this.savedSearchId=hb.savedSearchId};U(a$,r9);a$.\u0275dir=r9.\u0275dir;g=a$.prototype;
g.ngOnInit=function(){var a=this;r9.prototype.ngOnInit.call(this);this.subscriptions.add(cJ(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(zMb(this.currentSearch,function(b){a.savedSearch?uZ(a.urlPreferences,{query:b}):(b=a.paths.listIssues({q:b}),a.bLocation.url(b));eo(a.analytics,"search","savedsearch-context")}));this.loadUserAccess(this.savedSearchId)};g.loadUserAccess=function(a){var b=this;sK(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;PN(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:Dqc(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;PN(b.currentSearch,d.query);b.exitLink=b.paths.listIssues({q:d.query});b.cdr.detectChanges();d=Fi(d);d.returnUrl=b.bLocation.url();return eLb(b.issuePagination,
d)});c.then(function(d){Jqc(b,d)}).catch(function(d){"number"===typeof d?uZ(b.urlPreferences,{page:d}):d&&b.errorHandler.errorHandler(null,d)});this.initColumns(a.displayColumns);return Ho({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;FK(this.butterBar,"Saving changes to search...");this.savedSearchApi.update(this.savedSearch.searchId,this.savedSearch).then(function(c){FK(a.butterBar,'Saved changes to search "'+
c.name+'".');a.savedSearch=c;uZ(a.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null});eo(a.analytics,a.ANALYTICS_CATEGORY,"savedParams");a.cdr.detectChanges()}).catch(function(c){a.errorHandler.errorHandler(null,c)})};g.discardChanges=function(){eo(this.analytics,this.ANALYTICS_CATEGORY,"discardChanges");uZ(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))};
a$.\u0275fac=function(a){return new (a||a$)(D(sI),D(TI),D(uM),D(SK),D(vH),D(HK),D(lK),D(kL),D(MN),D(eL),D(DK),D(QM),D(ON),D(TM),D(VI),D(tZ),D(zZ),D(TK),D(lI),D(MR),D(tP),D(bJ),D(fO),D(IK),D($R),D(rK),D(MK),D(qL),D(wL))};
a$.\u0275cmp=w({type:a$,selectors:[["view-saved-search-page"]],features:[Ge([sI]),ae],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&&(F(0,"div",0)(1,"b-grid-controls",1),J("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()}),G(),F(2,"div",2)(3,"b-pagination",3),J("pageChange",function(c){return b.goToPage(c.page)})("resultsPerPageChange",function(c){return Lqc(b,c.option)}),G()()(),F(4,"div",4)(5,"div",5),M(6,sgb,4,3,"div",6),M(7,tgb,8,1,"div",7),G(),M(8,ygb,4,3,"div",8),G());a&2&&(B(1),C("grid",b.resultsGrid)("hotlistChoices",b.hotlistChoices),B(2),C("searchResults",b.searchResults),
B(1),ge("aria-busy",b.isLoading),B(2),C("ngIf",!b.isInitializing),B(1),C("ngIf",b.hasParamChanges()),B(1),C("ngIf",b.savedSearch))},dependencies:[XY,QZ,QY,Cx,sF,kN,j_,BB],encapsulation:2});var b$=function(){};b$.\u0275fac=function(a){return new (a||b$)};b$.\u0275mod=uc({type:b$});b$.\u0275inj=gc({imports:[qZ,TZ,MZ,Wx,lH,WN,k_,BG]});
var vsc=Bna(Yi().getUserPreferences()||new tj),wsc;if(cj(vsc)){var xsc=[{path:"",pathMatch:"full",component:Y8},{path:"dependencies",component:o7},{path:"dupes",component:B8},{path:"blocking",component:V6},{path:"resources",component:n9}],ysc=xsc.concat,zsc,Asc={path:"todos",component:p9};zsc=$i("enableCodeMentionsUi")?[Asc]:[];wsc={path:"issues/:issueId",component:z8,children:ysc.call(xsc,u(zsc))}}else wsc={path:"issues/:issueId",component:C6};
var Bsc=[{path:"",component:N5,canActivateGuards:[S5]},{path:"issues",component:s9},{path:"recent",component:u9},{path:"issues/new",component:d6},wsc,{path:"components",component:i5},{path:"components/new",component:U5},{path:"components/:componentId/edit",component:O9},{path:"components/:componentId",component:O9},{path:"components/:componentId/manage",component:O9},{path:"teams/:teamId/edit",component:P9},{path:"teams/:teamId",component:P9},{path:"bookmark-groups/new",component:T5},{path:"bookmark-groups/:groupId",
component:X9},{path:"bookmark-groups/:groupId/edit",component:i6},{path:"hotlists/new",component:V5},{path:"hotlists/:hotlistId",component:Z9},{path:"hotlists/:hotlistId/edit",component:hZ},{path:"slos/new",component:e6},{path:"slos/:sloId",component:H6},{path:"slos/:sloId/edit",component:H6},{path:"savedsearches/:savedSearchId/edit",component:E6},{path:"hotlists",component:q9},{path:"slos",component:v9},{path:"savedsearches/:savedSearchId",component:a$},{path:"dashboard/:groupId",component:g6},{path:"settings/:settingsTab?",
component:W9},{path:"settings",component:W9},{path:"**",component:N5,canActivateGuards:[S5]}];
var Csc=[L7,r7,s7],c$=function(){};[].concat(u(Csc));[].concat(u(Csc));c$.\u0275fac=function(a){return new (a||c$)};c$.\u0275mod=uc({type:c$});c$.\u0275inj=gc({imports:[Wx,BG,mF,wF,QI]});
var d$=function(){};d$.\u0275fac=function(a){return new (a||d$)};d$.\u0275mod=uc({type:d$});d$.\u0275inj=gc({imports:[GX,Wx,v7,eJ,c$,BG,cI,wF,mF,lH,v_,LZ,e9]});
var e$=function(){};e$.\u0275fac=function(a){return new (a||e$)};e$.\u0275mod=uc({type:e$});e$.\u0275inj=gc({imports:[Wx,wF,F2,EX,QI,BG]});
var f$=function(){};f$.\u0275fac=function(a){return new (a||f$)};f$.\u0275mod=uc({type:f$});f$.\u0275inj=gc({imports:[Wx,wF,jX,YN,HX,e$]});
var g$=function(){};g$.\u0275fac=function(a){return new (a||g$)};g$.\u0275mod=uc({type:g$});g$.\u0275inj=gc({imports:[Wx,wF,BG,QI,qT]});
var h$=function(){};h$.\u0275fac=function(a){return new (a||h$)};h$.\u0275mod=uc({type:h$});h$.\u0275inj=gc({imports:[D2,Wx,BG,wF,FV,YN,lH,g$,QI,qT]});
var i$=function(){};i$.\u0275fac=function(a){return new (a||i$)};i$.\u0275mod=uc({type:i$});i$.\u0275inj=gc({imports:[Wx,wF,D2,YN,iV]});
var j$=function(){};j$.\u0275fac=function(a){return new (a||j$)};j$.\u0275mod=uc({type:j$});j$.\u0275inj=gc({imports:[f$,D2,Wx,h$,dT,eJ,YN,e5,c9,e$,BG,cI,wF,lH,QI,UN,iV,i$]});
var k$=function(){};k$.\u0275fac=function(a){return new (a||k$)};k$.\u0275mod=uc({type:k$});k$.\u0275inj=gc({imports:[Wx,eJ,BG,wF,lH]});
var l$=function(){};l$.\u0275fac=function(a){return new (a||l$)};l$.\u0275mod=uc({type:l$});l$.\u0275inj=gc({imports:[Wx]});
var m$=function(){};m$.\u0275fac=function(a){return new (a||m$)};m$.\u0275mod=uc({type:m$});m$.\u0275inj=gc({imports:[Wx,Gy,a5,l$]});
var n$=function(){};n$.\u0275fac=function(a){return new (a||n$)};n$.\u0275mod=uc({type:n$});n$.\u0275inj=gc({imports:[Wx,HS,m$]});
var o$=function(){};o$.\u0275fac=function(a){return new (a||o$)};o$.\u0275mod=uc({type:o$});o$.\u0275inj=gc({imports:[Wx,wF]});
var p$=function(){};p$.\u0275fac=function(a){return new (a||p$)};p$.\u0275mod=uc({type:p$});p$.\u0275inj=gc({imports:[KM,o$,Wx,xV,aV,c5,Z4,eJ,YN,c$,HX,h5,vV,wF,lH,kP,Q3,n$,bT,aO]});
var q$=function(){};q$.\u0275fac=function(a){return new (a||q$)};q$.\u0275mod=uc({type:q$});q$.\u0275inj=gc({imports:[nz,Oz,Gy,Hy,QI,BG,dC,iX,oZ,HA,lH,yO,kP,j$,d$,k$,G2,LZ,cT,jX,p$]});
var r$=function(){};r$.\u0275fac=function(a){return new (a||r$)};r$.\u0275mod=uc({type:r$});r$.\u0275inj=gc({imports:[Wx,l5]});
var s$=function(){};s$.\u0275fac=function(a){return new (a||s$)};s$.\u0275mod=uc({type:s$});s$.\u0275inj=gc({imports:[nz,Oz,Gy,Hy,QI,BG,iX,oZ,kP,FX,q$,m9,q7,a7,C8,r$,o9]});
var Dsc=Bsc.map(function(a){return{path:a.path,component:a.component,canDeactivate:[aZ],canActivate:[P5,R5].concat(u(a.canActivateGuards||[])),children:a.children,isRootRoute:!0}});Dsc.push({path:"**",canActivate:["dontActivate"],component:N5,isRootRoute:!0});var Esc=V(Yi(),10),Fsc,t$={initialNavigation:"disabled",relativeLinkResolution:"legacy"},Gsc=[];
Fsc={ngModule:QI,providers:[VEb,[{provide:Kmb,multi:!0,useValue:Gsc},{provide:pEb,multi:!0,useValue:Gsc}],{provide:UEb,useFactory:function(){return"guarded"},deps:[[Fk,new Nv,new Ov]]},{provide:PI,useValue:t$?t$:{}},{provide:Zx,useFactory:function(a,b,c){c=void 0===c?{}:c;return c.useHash?new cy(a,b):new ay(a,b)},deps:[Xx,[new flb(by),new Nv],PI]},{provide:OI,useFactory:function(a,b,c){c.scrollOffset&&b.setOffset(c.scrollOffset);return new OI(a,b,c)},deps:[Fk,enb,PI]},{provide:MEb,useExisting:t$&&
t$.preloadingStrategy?t$.preloadingStrategy:OEb},{provide:Emb,multi:!0,useFactory:function(){return new Emb("Router",Fk)}},[RI,{provide:Jlb,multi:!0,useFactory:function(a){return a.appInitializer.bind(a)},deps:[RI]},{provide:WEb,useFactory:function(a){return a.bootstrapListener.bind(a)},deps:[RI]},{provide:Mlb,multi:!0,useExisting:WEb}]]};var u$=function(a,b){a.config=Dsc.map(mk);a.navigated=!1;a.lastSuccessfulId=-1;a.initialNavigation();FKb(b)};u$.\u0275fac=function(a){return new (a||u$)(t(Fk),t(rM))};
u$.\u0275mod=uc({type:u$});u$.\u0275inj=gc({providers:[{provide:"dontActivate",useValue:function(){return!1}},{provide:mEb,useClass:tkc},{provide:by,useValue:Esc},R5,P5],imports:[Fsc,O5,s$,QI]});
var v$=function(){};v$.\u0275fac=function(a){return new (a||v$)};v$.\u0275mod=uc({type:v$});v$.\u0275inj=gc({imports:[Wx,BG,lH,wF,yK,Gy,Hy,jZ]});
var w$=function(){};w$.\u0275fac=function(a){return new (a||w$)};w$.\u0275mod=uc({type:w$});w$.\u0275inj=gc({imports:[xO,Wx,jZ,k_,Gy,bI,lH,uQ,z_,FV]});
var x$=function(){};x$.\u0275fac=function(a){return new (a||x$)};x$.\u0275mod=uc({type:x$});x$.\u0275inj=gc({imports:[Wx,BG,lH,wF,yK,Gy,Hy,jZ]});
var y$=function(){};y$.\u0275fac=function(a){return new (a||y$)};y$.\u0275mod=uc({type:y$});y$.\u0275inj=gc({imports:[Wx,Gy,hC,a5]});
var z$=function(){};z$.\u0275fac=function(a){return new (a||z$)};z$.\u0275mod=uc({type:z$});z$.\u0275inj=gc({imports:[xO,WX,jX,XU,pQ,b5,k_,Gy,mY,YX,bI,kY,vV,s_,BG,dC,c6,wF,mF,GT,lH,b5,KM,Hy,y$,FV,Wx,IA]});
var A$=function(){};A$.\u0275fac=function(a){return new (a||A$)};A$.\u0275mod=uc({type:A$});A$.\u0275inj=gc({imports:[xO,Wx,jZ,k_,Gy,bI,lH,K_]});
var B$=function(){};B$.\u0275fac=function(a){return new (a||B$)};B$.\u0275mod=uc({type:B$});B$.\u0275inj=gc({imports:[Wx,lH,BG,iX,jZ,mY,YX,bO,yK,dC,wF,Gy,Hy,mF,nZ]});
var C$=function(){};[].concat(u([y6]));C$.\u0275fac=function(a){return new (a||C$)};C$.\u0275mod=uc({type:C$});C$.\u0275inj=gc({imports:[dC,NO,Wx,fB,wF,BG,jX,nX]});
var D$=function(a,b,c){wI.call(this);this.activeSession=a;this.clipboard=b;this.analytics=c;this.issueId=this.componentId=0;this.issueTitle="";this.isExternalIssue=!1;this.HOTKEYS=vI};U(D$,wI);D$.\u0275dir=wI.\u0275dir;D$.prototype.ngOnInit=function(){};D$.prototype.openIssueIdPicker=function(){eo(this.analytics,io.EDIT_ISSUE,"click","issueIdPicker");this.trigger.open()};var Ft=function(a,b){a.clipboard.copy(b.value);a.trigger.close()};g=D$.prototype;g.isSessionInternal=function(){return this.activeSession.isInternalSession()};
g.getIssueUrl=function(){return yH(this.activeSession,this.isExternalIssue)+this.issueId};g.getShortIssueUrl=function(){return yH(this.activeSession).replace(/^.*?:\/\//,"")+this.issueId};g.getUrlAndTitle=function(){return yH(this.activeSession)+this.issueId+" "+this.issueTitle};g.getIssueEmail=function(){return"buganizer-system"+(tBb(this.activeSession)?"":"-qa")+("+"+this.componentId+"+"+this.issueId)+"@google.com"};g.getTodoComment=function(){return"TODO("+this.getShortIssueUrl()+"): "+this.issueTitle};
D$.\u0275fac=function(a){return new (a||D$)(D(vH),D(jT),D(QM))};
D$.\u0275cmp=w({type:D$,selectors:[["b-issue-id-picker-legacy"]],viewQuery:function(a,b){a&1&&Bf(WP,7);if(a&2){var c;Af(c=Df())&&(b.trigger=c.first)}},inputs:{componentId:"componentId",issueId:"issueId",issueTitle:"issueTitle",isExternalIssue:"isExternalIssue"},features:[ae],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();F(0,"button",0,
1);J("onHotkey",function(){return b.openIssueIdPicker()})("click",function(){return b.openIssueIdPicker()});F(2,"span",2);O(3);G();H(4,"mat-icon",3);G();F(5,"onedev-popup-panel",4,5)(7,"div",6)(8,"div",7)(9,"label",8);O(10,"Issue ID");G();F(11,"input",9,10);J("focus",function(){z(c);var q=Ce(12);return A(q.select())});G();F(13,"button",11);J("click",function(){z(c);var q=Ce(12);return A(Ft(b,q))});H(14,"mat-icon",12);G()();F(15,"div",7)(16,"label",8);O(17,"Issue URL");G();F(18,"input",13,14);J("focus",
function(){z(c);var q=Ce(19);return A(q.select())});G();F(20,"button",15);J("click",function(){z(c);var q=Ce(19);return A(Ft(b,q))});H(21,"mat-icon",12);G()();F(22,"div",7)(23,"label",8);O(24,"URL and title");G();F(25,"input",16,17);J("focus",function(){z(c);var q=Ce(26);return A(q.select())});G();F(27,"button",18);J("click",function(){z(c);var q=Ce(26);return A(Ft(b,q))});H(28,"mat-icon",12);G()();M(29,zgb,7,2,"div",19);M(30,Agb,7,2,"div",19);G()()}if(a&2){var d=Ce(1),e=Ce(6),f=Ce(12),h=Ce(19),k=
Ce(26);le("expanded",d.isOpen);C("hotkey",b.HOTKEYS.HIGHLIGHT_ISSUE_ID)("onedevPopupPanelTriggerFor",e);ge("aria-label","Show links for the issue "+b.issueId);B(3);Ee(b.issueId);B(6);C("htmlFor",f.id);B(2);ge("value",b.issueId);B(5);C("htmlFor",h.id);B(2);ge("value",b.getIssueUrl());B(5);C("htmlFor",k.id);B(2);ge("value",b.getUrlAndTitle());B(4);C("ngIf",b.isSessionInternal());B(1);C("ngIf",b.isSessionInternal())}},dependencies:[Cx,dJ,BB,dF,sF,VP,WP],styles:[".container[_ngcontent-%COMP%]{display:inline-block}button.id-expand[_ngcontent-%COMP%]{font-size:.6875rem;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:.8125rem;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 E$=function(){};E$.\u0275fac=function(a){return new (a||E$)};E$.\u0275mod=uc({type:E$});E$.\u0275inj=gc({imports:[Wx,eJ,BG,wF,lH,nQ]});
var F$=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 Rw;this.quickAction=new Rw;this.markAsDuplicate=new Rw;this.clearCanonical=new Rw;this.frontendIsInternalOrPartner=!1;this.frontendIsInternalOrPartner=a.isInternalSession()||wH(a)};F$.\u0275fac=function(a){return new (a||F$)(D(vH),D(MK))};
F$.\u0275cmp=w({type:F$,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&&(F(0,"b-button-group",0)(1,"b-button",1),J("onAction",function(){return b.quickAction.emit(b.issueStatusQuickAction)}),F(2,"span"),O(3),G()(),F(4,"b-button",2),J("onAction",function(){return b.appEvents.focusCommentBox.next("editpage-appbar")}),F(5,"span"),O(6,"Comment"),G()(),M(7,Bgb,3,1,"b-button",3),M(8,Cgb,3,1,"b-button",4),M(9,Dgb,1,3,"b-app-vote-button",5),G());a&2&&(C("roundCorners",!0),B(1),C("tooltip",null==b.issueStatusQuickAction?
null:b.issueStatusQuickAction.description)("disabled",!b.hasAclToEdit||!b.issueStatusQuickAction||b.statusIsSaving),B(2),Ee(null==b.issueStatusQuickAction?null:b.issueStatusQuickAction.displayText),B(1),C("disabled",!b.hasAclToComment),B(3),C("ngIf",!b.isDuplicate),B(1),C("ngIf",b.isDuplicate),B(1),C("ngIf",b.frontendIsInternalOrPartner))},dependencies:[CX,nH,wO,Cx],encapsulation:2});
var G$=function(a,b){wI.call(this);var c=this;this.session=a;this.dismissalService=b;this.shouldEnableEaCallout$=(0,S.iif)(function(){return c.session.isInternalSession()&&xH(c.session,"enableEaCallout")},jrc(this.dismissalService,"wtdm-ea-announcement").pipe(R(function(d){return!d})))};U(G$,wI);G$.\u0275dir=wI.\u0275dir;G$.\u0275fac=function(a){return new (a||G$)(t(vH),t(L9))};G$.\u0275prov=dc({token:G$,factory:G$.\u0275fac,providedIn:"root"});
var Hsc=["content"],H$=function(a,b,c,d,e){wI.call(this);this.appEvents=a;this.scrolledOnScreen=b;this.editIssueService=c;this.issueDetailsBrain=d;this.issuePermissionService=e;this.eclipsing=new Rw;this.shouldEclipse=!1;this.HOTKEYS=vI;this.IssueSavingKey=XQb;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.accessLevel$=this.issuePermissionService.accessLevel$;this.isWithinExternalComponent$=this.issuePermissionService.isWithinExternalComponent$};U(H$,wI);H$.\u0275dir=wI.\u0275dir;
H$.prototype.ngOnInit=function(){};
H$.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(cg(a.destroyed$)).subscribe(function(e){e?a.shouldEclipse=!1:(d(),a.shouldEclipse=!0);a.eclipsing.emit(a.shouldEclipse)});(0,S.merge)((0,S.fromEvent)(window,"resize"),a.appEvents.sidebarWidthChanged).pipe(Lf(200),cg(a.destroyed$)).subscribe(d)})};
H$.prototype.isSaving$=function(a){var b=this;return this.issueDetailsBrain.id$.pipe(rf(bl),R(function(c){return b.editIssueService.savingState(c)}),bg(function(c){return Qs(c.propertiesBeingSaved,Tn(a))}))};H$.\u0275fac=function(a){return new (a||H$)(D(MK),D(eP),D(mS),D(kO),D(mO))};
H$.\u0275cmp=w({type:H$,selectors:[["edit-issue-scroll-eclipse"]],viewQuery:function(a,b){a&1&&Bf(Hsc,5);if(a&2){var c;Af(c=Df())&&(b.mainDiv=c.first)}},inputs:{parent:"parent"},outputs:{eclipsing:"eclipsing"},features:[ae],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&&(F(0,
"div",0,1)(2,"b-star-toggle",2),J("onHotkey",function(){return b.parent.toggleStarDebounced()})("starClicked",function(){return b.parent.toggleStar()}),P(3,"async"),G(),M(4,Egb,2,6,"b-issue-id-picker-legacy",3),H(5,"b-access-level-indicator",4),P(6,"async"),F(7,"h3",5)(8,"span",6),O(9),G(),M(10,Fgb,5,13,"span",7),P(11,"async"),G()());a&2&&(le("scroll-eclipse-hide",!b.shouldEclipse),C("hidden",b.parent.isLoading),B(2),C("starMessage",b.parent.starTooltip)("unStarMessage",b.parent.unStarTooltip)("starred",
!(null==b.parent.userData||!b.parent.userData.starred))("hotkey",b.HOTKEYS.TOGGLE_STAR)("disabled",!!Q(3,13,b.isSaving$("star"))),B(2),C("ngIf",b.shouldEclipse),B(1),C("accessLevel",Q(6,15,b.accessLevel$)),B(2),ge("aria-label",b.parent.ariaIssueTitle),B(2),De(" ",b.parent.issue.title," "),B(1),C("ngIf",Q(11,17,b.hasAclToEdit$)))},dependencies:[Cx,SS,sF,iN,D$,dJ,Px],encapsulation:2});var I$=function(){};I$.\u0275fac=function(a){return new (a||I$)};I$.\u0275mod=uc({type:I$});
I$.\u0275inj=gc({imports:[Wx,cT,lH,UN,E$,eJ]});
var Isc=["editIssueTitle"],Qgb=function(){return[]},nhb=function(a){return[a]},J$=function(a,b,c,d,e,f,h,k,q,v,y,E){wI.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=v;this.eventsForIssueFridge=y;this.issueFridge=E;this.scrollEclipseShowing=!1;this.isSaving$=function(N){return I.issueDetailsBrain.id$.pipe(rf(bl),
R(function(L){return I.editIssueService.savingState(L)}),bg(function(L){return Qs(L.propertiesBeingSaved,Tn(N))}))};this.HOTKEYS=vI;this.IssueSavingKey=XQb;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(R(function(N){return N?"":"Only component editors can undelete this issue."}));this.modifiedTime$=this.issueDetailsBrain.modifiedTime$;this.retentionState$=this.issueDetailsBrain.retentionState$};
U(J$,wI);J$.\u0275dir=wI.\u0275dir;
var chb=function(a,b){var c,d;return bf(function(e){if(1==e.nextAddress){a.editIssueTitle.nativeElement.focus();c=a.parent.issueIdString;gS(a.issueInteractionsTracking,c,{label:"remove-hotlists",value:1});Qt(e,2,3);var f=tJb(a.issueFridge,c,[],[String(b)]);return cf(e,f,3)}if(2!=e.nextAddress)return Tt(e),it(a.eventsForIssueFridge,c),Ut(e,0);d=St(e);KK(a.errorHandler,d);return e.jumpTo(3)})},Ahb=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};J$.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)}}))};J$.\u0275fac=function(a){return new (a||J$)(D(G$),D(vH),D(mS),D(kO),D(mO),D(TK),D(v6),D(MS),D(fS),D(IK),D(LL),D(wL))};
J$.\u0275cmp=w({type:J$,selectors:[["edit-issue-main-content"]],viewQuery:function(a,b){a&1&&Bf(Isc,5);if(a&2){var c;Af(c=Df())&&(b.editIssueTitle=c.first)}},inputs:{parent:"parent"},features:[ae],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&&M(0,Bhb,46,49,"div",0);a&2&&C("ngIf",b.parent)},dependencies:[OZ,z2,wO,hI,iI,DA,oX,SW,Gx,Cx,SS,rT,H$,j_,V8,dJ,lY,zH,D$,sF,tQ,k5,c_,PY,kN,iN,DV,R_,AN,zN,$N,Px],encapsulation:2});
var K$=function(){};K$.\u0275fac=function(a){return new (a||K$)};K$.\u0275mod=uc({type:K$});K$.\u0275inj=gc({imports:[G2,RZ,GX,D2,zP,KM,aI,xO,cO,yO,HA,o$,WX,jX,LS,Wx,cT,sT,xV,aV,I$,c5,CG,Z4,k_,mH,j9,eJ,mY,YX,YN,bI,c$,HX,E$,p$,h5,vV,BG,wF,lH,uQ,IT,v_,l5,d_,LZ,kP,WN,UN,FV,Q3,n$,S_,bT,ZN,aO]});uca(C6,[C2,wO,hI,iI,Fx,Cx,PC,KE,LE,PE,AG,dJ,vX,nN,oN,rN,pN,r7,DX,x8,BB,dF,sF,HT,u_,dP,F$,J$],[DM,EM,FM,IM,Px]);
var L$=function(){};L$.\u0275fac=function(a){return new (a||L$)};L$.\u0275mod=uc({type:L$});L$.\u0275inj=gc({imports:[Wx,lH,BG,iX,jZ,yK,dC,wF,Gy,Hy,mF,nZ]});
var M$=function(){};M$.\u0275fac=function(a){return new (a||M$)};M$.\u0275mod=uc({type:M$});M$.\u0275inj=gc({imports:[xO,Wx,jZ,Gy,oZ,bI,iX,lH,nZ,uQ,K_,WN]});
var N$=function(){};N$.\u0275fac=function(a){return new (a||N$)};N$.\u0275mod=uc({type:N$});N$.\u0275inj=gc({imports:[Wx,sZ,WN,BG]});
var O$=function(){};O$.\u0275fac=function(a){return new (a||O$)};O$.\u0275mod=uc({type:O$});O$.\u0275inj=gc({imports:[Wx,BG,wF,M_,WN]});
var P$=function(){};P$.\u0275fac=function(a){return new (a||P$)};P$.\u0275mod=uc({type:P$});P$.\u0275inj=gc({imports:[Wx,sT,i_]});
var Q$=function(){};Q$.\u0275fac=function(a){return new (a||Q$)};Q$.\u0275mod=uc({type:Q$});Q$.\u0275inj=gc({imports:[Wx,cT,Gy,iX,HS,nZ,bI,c6,BG,NO,wF,lH,dC,qT,WN]});
var R$=function(){};R$.\u0275fac=function(a){return new (a||R$)};R$.\u0275mod=uc({type:R$});R$.\u0275inj=gc({imports:[xO,Wx,cT,sT,fT,E3,M3,R3,oY,jZ,M4,Gy,sQ,oZ,bI,BG,NO,dC,wF,YS,GT,iX,lH,nZ,uQ,z_,QI,P$,x_,WN,FV,IA,Q$,qT]});
var S$=function(){};S$.\u0275fac=function(a){return new (a||S$)};S$.\u0275mod=uc({type:S$});S$.\u0275inj=gc({imports:[Wx,jZ,Gy,sQ,oZ,BG,NO,wF,iX,lH,GT,nZ,QI,qT,IA,x_,i_]});
var T$=function(){};T$.\u0275fac=function(a){return new (a||T$)};T$.\u0275mod=uc({type:T$});T$.\u0275inj=gc({imports:[Wx,BG,lH,wF]});
var U$=function(){};U$.\u0275fac=function(a){return new (a||U$)};U$.\u0275mod=uc({type:U$});U$.\u0275inj=gc({providers:[{provide:n5b,useValue:{enabled:!0}}],imports:[b3,yO,Wx,Wx,Gy,oZ,BG,BG,wF,YS,GT,iX,lH,lH,IT,T$,KM,e9]});
var V$=function(){this.isMultiCharShortName=Dhb;this.getTooltip=Ehb};V$.\u0275fac=function(a){return new (a||V$)};
V$.\u0275cmp=w({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&&M(0,Chb,2,12,"output",0);a&2&&C("ngIf",!!b.entity&&(b.entity.color||b.entity.shortName))},dependencies:[Cx],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 Rw;this.broadcastEntityChanged=vC(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=w({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&&M(0,Fhb,12,3,"ng-container",0);a&2&&C("ngIf",b.entity)},dependencies:[Cx,Jg,ly,ry,oC,kC,qC],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=Dhb;this.getTooltip=Ehb};X$.\u0275fac=function(a){return new (a||X$)};
X$.\u0275cmp=w({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&&(H(0,"b-entity-chip",0),F(1,"span",1),O(2),G());a&2&&(C("entity",b.entity),B(1),C("title",b.getTooltip(b.entity)),B(1),Ee(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 Jsc=[X$,V$,W$],Y$=function(){};[].concat(u(Jsc));[].concat(u(Jsc));Y$.\u0275fac=function(a){return new (a||Y$)};Y$.\u0275mod=uc({type:Y$});Y$.\u0275inj=gc({imports:[Wx,Gy,lH,pC,rC]});
var Z$=function(){};Z$.\u0275fac=function(a){return new (a||Z$)};Z$.\u0275mod=uc({type:Z$});Z$.\u0275inj=gc({imports:[Wx,yK,BG,wF]});
var Ksc=function(){};Ksc.prototype.send=function(a,b){Oza(a);return this.makeRequest(a).then(function(c){return b?Xza(b,c):c})};
var Jt=function(a,b,c,d,e){this.gapiUrl=a;this.gapiKey=b;this.gapiConfigUpdates=c||{};this.gapiAuthParams=d||{};this.defaultApiId=e};U(Jt,Ksc);Jt.prototype.getGapi=function(){var a=this;return YAa().then(function(b){b=b||window.gapi;a.setGapiConfig(b);return cBa(b,{apiKey:a.gapiKey,clientId:a.gapiAuthParams.clientId,scope:a.gapiAuthParams.scope,hostedDomain:a.gapiAuthParams.hostedDomain,fetchBasicProfile:a.gapiAuthParams.fetchBasicProfile}).then(function(){return b})})};
Jt.prototype.makeRequest=function(a){var b=this;return this.getGapi().then(function(c){return bf(function(d){if(1==d.nextAddress)return void 0===b.gapiAuthParams.minAuthTokenTimeRemaining?d.jumpTo(2):cf(d,bBa(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})))})})};
Jt.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)})})};Jt.prototype.setGapiConfig=function(a){for(var b in this.gapiConfigUpdates)this.gapiConfigUpdates.hasOwnProperty(b)&&aBa(a,b,this.gapiConfigUpdates[b])};Jt.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];
var Lsc={disableCheatSheet:!0};Lsc=void 0===Lsc?{}:Lsc;
var Msc=[nP,DS,nz,Oz,hT,kQ,kY,dQ,uI,bI,uQ,dO,IT,gJ,z_,UN,eO,e5,xO,DZ,HV,dI,v3,x5,u5,aV,vV,xV,lT,GX,s_,d_,A$,M$,O$,N$,h6,t9,$9,b$,w$,R$,S$,Y9,sZ,M_,oY,FX,O4,l5,g_,ZU,qZ,$X,z5,w3,MX,Z3,x3,m5,VZ,f_,Y3,TZ,XX,PO,yO,jX,nX,I$,K$,C$,JX,aI,p_,bO,o$,v_,Q_,KZ,LZ,j5,U2,WN,zP,RZ,Y$,iV,T2,R3,Z$,M4,G2,HS,EX,cT,cQ,U$,b3,gV,CS,EZ,HZ,K_,x_,FZ,jZ,z3,b_,v$,x$,L3,C_,DT,sT,vT,fT,GZ,MZ,JV,lZ,S_,c5,YX,I_,P_,h5,M3,lQ,qQ,nZ,pZ,WX,E3,B$,zO,CO,L$,z$,LS,q$,b0,wF,oB,$E,{ngModule:mH,providers:[{provide:yF,useFactory:function(){var a,
b=(null==(a=Yi().getConfig())?void 0:a.getEnvironmentType())||"QA";return"PROD"===b||"NIGHTLY"===b?{apikey:"AIzaSyB9Ljnt9FDyfTnTH2yeDn6lGM40PQm6Gsk",environment:"prod"}:{apikey:"AIzaSyBEveljwBki0sKCHdprNdJJPZrqTnIwIcM",environment:"nonprod"}},deps:[Qv]}]},{ngModule:AS,providers:[gR,{provide:HPb,useFactory:function(a){return new It(new ERb("https://appswaldo-pa.clients6.google.com",a.waldoApiKey,a.globalApiKey,GRb,{scope:"https://www.googleapis.com/auth/calendar.readonly"}))},deps:[FRb]},{provide:FRb,
useFactory:function(){return{waldoApiKey:"AIzaSyDvxpDVHooCQawPUQkmQxwrtt-Xdp3Q3so",globalApiKey:"AIzaSyBuUpn1wi2-0JpM3S-tq2csYx0z2_m_pqc"}}}]},{ngModule:l$,providers:[M7,{provide:hoc,useFactory:function(){return{authRealm:1,peopleApiEnv:4,peopleStoreClient:thc,autocompleteFactory:dcc}}}]},{ngModule:YI,providers:[XI,{provide:fFb,useValue:Lsc}]}],Nsc=[hkc,K7b,L7b,M7b,N7b,dDb,{provide:E1b,useValue:{animationDuration:"0ms"}},{provide:xvb,useValue:{productName:"Buganizer",cooldownMilliseconds:864E5,enableUsageTracking:!0}},
{provide:uwb,useValue:{disableTooltipInteractivity:!0}},{provide:Y5b,useValue:"AIzaSyCBj23e6C2MNif_tvceM-CPTXcVDK3sarY"},{provide:a6b,useValue:"92912"},{provide:uPb,useFactory:Ghb},ikc,qkc,rkc,skc],sx=function(){};sx.prototype.ngDoBootstrap=function(){Rk("bootstrapping AppModule")};[].concat(u(Msc),[u$,FO]);[].concat(u(Nsc));sx.\u0275fac=function(a){return new (a||sx)};sx.\u0275mod=uc({type:sx,bootstrap:[mP,w5]});sx.\u0275inj=gc({providers:[].concat(u(Nsc)),imports:[Msc,u$,FO]});
gD(document,"DOMContentLoaded",function(){Hmb()});

__._ModuleManager_initialize=function(){};

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

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