You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gns3-server/gns3server/static/web-ui/main.99bd505aa7e5588a7375.js

1 line
3.2 MiB

(self.webpackChunkgns3_web_ui=self.webpackChunkgns3_web_ui||[]).push([[179],{98255:function(ce){function q(f){return Promise.resolve().then(function(){var U=new Error("Cannot find module '"+f+"'");throw U.code="MODULE_NOT_FOUND",U})}q.keys=function(){return[]},q.resolve=q,q.id=98255,ce.exports=q},82908:function(ce){ce.exports=function(f,U){(null==U||U>f.length)&&(U=f.length);for(var B=0,V=new Array(U);B<U;B++)V[B]=f[B];return V},ce.exports.default=ce.exports,ce.exports.__esModule=!0},36457:function(ce){ce.exports=function(f){if(Array.isArray(f))return f},ce.exports.default=ce.exports,ce.exports.__esModule=!0},35036:function(ce){ce.exports=function(f,U){var B=null==f?null:"undefined"!=typeof Symbol&&f[Symbol.iterator]||f["@@iterator"];if(null!=B){var I,C,V=[],Z=!0,T=!1;try{for(B=B.call(f);!(Z=(I=B.next()).done)&&(V.push(I.value),!U||V.length!==U);Z=!0);}catch(v){T=!0,C=v}finally{try{!Z&&null!=B.return&&B.return()}finally{if(T)throw C}}return V}},ce.exports.default=ce.exports,ce.exports.__esModule=!0},13969:function(ce){ce.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},ce.exports.default=ce.exports,ce.exports.__esModule=!0},6326:function(ce,q,f){var U=f(36457),B=f(35036),V=f(54850),Z=f(13969);ce.exports=function(I,C){return U(I)||B(I,C)||V(I,C)||Z()},ce.exports.default=ce.exports,ce.exports.__esModule=!0},54850:function(ce,q,f){var U=f(82908);ce.exports=function(V,Z){if(V){if("string"==typeof V)return U(V,Z);var T=Object.prototype.toString.call(V).slice(8,-1);if("Object"===T&&V.constructor&&(T=V.constructor.name),"Map"===T||"Set"===T)return Array.from(V);if("Arguments"===T||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return U(V,Z)}},ce.exports.default=ce.exports,ce.exports.__esModule=!0},26552:function(ce,q,f){ce.exports=f(55590)},61855:function(ce,q,f){"use strict";f.d(q,{ZT:function(){return B},mG:function(){return v},Jh:function(){return P},ev:function(){return N}});var U=function(te,se){return(U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,de){le.__proto__=de}||function(le,de){for(var ue in de)Object.prototype.hasOwnProperty.call(de,ue)&&(le[ue]=de[ue])})(te,se)};function B(te,se){if("function"!=typeof se&&null!==se)throw new TypeError("Class extends value "+String(se)+" is not a constructor or null");function le(){this.constructor=te}U(te,se),te.prototype=null===se?Object.create(se):(le.prototype=se.prototype,new le)}function v(te,se,le,de){return new(le||(le=Promise))(function(ae,Me){function ye(_t){try{He(de.next(_t))}catch(yt){Me(yt)}}function ot(_t){try{He(de.throw(_t))}catch(yt){Me(yt)}}function He(_t){_t.done?ae(_t.value):function(ae){return ae instanceof le?ae:new le(function(Me){Me(ae)})}(_t.value).then(ye,ot)}He((de=de.apply(te,se||[])).next())})}function P(te,se){var de,ue,ae,Me,le={label:0,sent:function(){if(1&ae[0])throw ae[1];return ae[1]},trys:[],ops:[]};return Me={next:ye(0),throw:ye(1),return:ye(2)},"function"==typeof Symbol&&(Me[Symbol.iterator]=function(){return this}),Me;function ye(He){return function(_t){return function(He){if(de)throw new TypeError("Generator is already executing.");for(;le;)try{if(de=1,ue&&(ae=2&He[0]?ue.return:He[0]?ue.throw||((ae=ue.return)&&ae.call(ue),0):ue.next)&&!(ae=ae.call(ue,He[1])).done)return ae;switch(ue=0,ae&&(He=[2&He[0],ae.value]),He[0]){case 0:case 1:ae=He;break;case 4:return le.label++,{value:He[1],done:!1};case 5:le.label++,ue=He[1],He=[0];continue;case 7:He=le.ops.pop(),le.trys.pop();continue;default:if(!(ae=(ae=le.trys).length>0&&ae[ae.length-1])&&(6===He[0]||2===He[0])){le=0;continue}if(3===He[0]&&(!ae||He[1]>ae[0]&&He[1]<ae[3])){le.label=He[1];break}if(6===He[0]&&le.label<ae[1]){le.label=ae[1],ae=He;break}if(ae&&le.label<ae[2]){le.label=ae[2],le.ops.push(He);break}ae[2]&&le.ops.pop(),le.trys.pop();continue}He=se.call(te,le)}catch(_t){He=[6,_t],ue=0}finally{de=ae=0}if(5&He[0])throw He[1];return{value:He[0]?He[1]:void 0,done:!0}}([He,_t])}}}function N(te,se,le){if(le||2===arguments.length)for(var ae,de=0,ue=se.length;de<ue;de++)(ae||!(de in se))&&(ae||(ae=Array.prototype.slice.call(se,0,de)),ae[de]=se[de]);return te.concat(ae||Array.prototype.slice.call(se))}},739:function(ce,q,f){"use strict";f.d(q,{l3:function(){return T},_j:function(){return V},LC:function(){return Z},ZN:function(){return O},jt:function(){return C},pV:function(){return k},F4:function(){return A},IO:function(){return E},vP:function(){return P},SB:function(){return M},oB:function(){return D},eR:function(){return y},X$:function(){return I},ZE:function(){return L},k1:function(){return j}});var U=f(14105),B=f(18967),V=function K(){(0,B.Z)(this,K)},Z=function K(){(0,B.Z)(this,K)},T="*";function I(K,W){return{type:7,name:K,definitions:W,options:{}}}function C(K){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:W,timings:K}}function P(K){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:K,options:W}}function D(K){return{type:6,styles:K,offset:null}}function M(K,W,J){return{type:0,name:K,styles:W,options:J}}function A(K){return{type:5,steps:K}}function y(K,W){var J=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:K,animation:W,options:J}}function k(){var K=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:K}}function E(K,W){var J=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:K,animation:W,options:J}}function S(K){Promise.resolve(null).then(K)}var O=function(){function K(){var W=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,B.Z)(this,K),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=W+J}return(0,U.Z)(K,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(J){return J()}),this._onDoneFns=[])}},{key:"onStart",value:function(J){this._onStartFns.push(J)}},{key:"onDone",value:function(J){this._onDoneFns.push(J)}},{key:"onDestroy",value:function(J){this._onDestroyFns.push(J)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var J=this;S(function(){return J._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(J){return J()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(J){return J()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(J){this._position=this.totalTime?J*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(J){var oe="start"==J?this._onStartFns:this._onDoneFns;oe.forEach(function(te){return te()}),oe.length=0}}]),K}(),L=function(){function K(W){var J=this;(0,B.Z)(this,K),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=W;var oe=0,te=0,se=0,le=this.players.length;0==le?S(function(){return J._onFinish()}):this.players.forEach(function(de){de.onDone(function(){++oe==le&&J._onFinish()}),de.onDestroy(function(){++te==le&&J._onDestroy()}),de.onStart(function(){++se==le&&J._onStart()})}),this.totalTime=this.players.reduce(function(de,ue){return Math.max(de,ue.totalTime)},0)}return(0,U.Z)(K,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(J){return J()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(J){return J.init()})}},{key:"onStart",value:function(J){this._onStartFns.push(J)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(J){return J()}),this._onStartFns=[])}},{key:"onDone",value:function(J){this._onDoneFns.push(J)}},{key:"onDestroy",value:function(J){this._onDestroyFns.push(J)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(J){return J.play()})}},{key:"pause",value:function(){this.players.forEach(function(J){return J.pause()})}},{key:"restart",value:function(){this.players.forEach(function(J){return J.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(J){return J.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(J){return J.destroy()}),this._onDestroyFns.forEach(function(J){return J()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(J){return J.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(J){var oe=J*this.totalTime;this.players.forEach(function(te){var se=te.totalTime?Math.min(1,oe/te.totalTime):1;te.setPosition(se)})}},{key:"getPosition",value:function(){var J=this.players.reduce(function(oe,te){return null===oe||te.totalTime>oe.totalTime?te:oe},null);return null!=J?J.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(J){J.beforeDestroy&&J.beforeDestroy()})}},{key:"triggerCallback",value:function(J){var oe="start"==J?this._onStartFns:this._onDoneFns;oe.forEach(function(te){return te()}),oe.length=0}}]),K}(),j="!"},6517:function(ce,q,f){"use strict";f.d(q,{rt:function(){return at},s1:function(){return Se},$s:function(){return He},kH:function(){return Ht},Em:function(){return De},tE:function(){return $n},qV:function(){return Zn},qm:function(){return Ue},Kd:function(){return In},X6:function(){return ve},yG:function(){return Ge}});var U=f(27235),B=f(20901),V=f(89200),Z=f(10509),T=f(97154),I=f(18967),C=f(14105),v=f(40098),P=f(65508),D=f(68707),M=f(5051),A=f(90838),y=f(43161),g=f(32819),k=f(59371),N=f(57263),E=f(58780),x=f(85639),S=f(48359),O=f(18756),L=f(76161),j=f(44213),K=f(78081),W=f(15427),J=f(96798);function le(xe,Fe){return(xe.getAttribute(Fe)||"").match(/\S+/g)||[]}var de="cdk-describedby-message-container",ue="cdk-describedby-message",ae="cdk-describedby-host",Me=0,ye=new Map,ot=null,He=function(){var xe=function(){function Fe(Oe){(0,I.Z)(this,Fe),this._document=Oe}return(0,C.Z)(Fe,[{key:"describe",value:function(Le,qe,Nt){if(this._canBeDescribed(Le,qe)){var cn=_t(qe,Nt);"string"!=typeof qe?(yt(qe),ye.set(cn,{messageElement:qe,referenceCount:0})):ye.has(cn)||this._createMessageElement(qe,Nt),this._isElementDescribedByMessage(Le,cn)||this._addMessageReference(Le,cn)}}},{key:"removeDescription",value:function(Le,qe,Nt){if(qe&&this._isElementNode(Le)){var cn=_t(qe,Nt);if(this._isElementDescribedByMessage(Le,cn)&&this._removeMessageReference(Le,cn),"string"==typeof qe){var Jn=ye.get(cn);Jn&&0===Jn.referenceCount&&this._deleteMessageElement(cn)}ot&&0===ot.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var Le=this._document.querySelectorAll("[".concat(ae,"]")),qe=0;qe<Le.length;qe++)this._removeCdkDescribedByReferenceIds(Le[qe]),Le[qe].removeAttribute(ae);ot&&this._deleteMessagesContainer(),ye.clear()}},{key:"_createMessageElement",value:function(Le,qe){var Nt=this._document.createElement("div");yt(Nt),Nt.textContent=Le,qe&&Nt.setAttribute("role",qe),this._createMessagesContainer(),ot.appendChild(Nt),ye.set(_t(Le,qe),{messageElement:Nt,referenceCount:0})}},{key:"_deleteMessageElement",value:function(Le){var qe=ye.get(Le),Nt=qe&&qe.messageElement;ot&&Nt&&ot.removeChild(Nt),ye.delete(Le)}},{key:"_createMessagesContainer",value:function(){if(!ot){var Le=this._document.getElementById(de);Le&&Le.parentNode&&Le.parentNode.removeChild(Le),(ot=this._document.createElement("div")).id=de,ot.style.visibility="hidden",ot.classList.add("cdk-visually-hidden"),this._document.body.appendChild(ot)}}},{key:"_deleteMessagesContainer",value:function(){ot&&ot.parentNode&&(ot.parentNode.removeChild(ot),ot=null)}},{key:"_removeCdkDescribedByReferenceIds",value:function(Le){var qe=le(Le,"aria-describedby").filter(function(Nt){return 0!=Nt.indexOf(ue)});Le.setAttribute("aria-describedby",qe.join(" "))}},{key:"_addMessageReference",value:function(Le,qe){var Nt=ye.get(qe);(function(xe,Fe,Oe){var Le=le(xe,Fe);Le.some(function(qe){return qe.trim()==Oe.trim()})||(Le.push(Oe.trim()),xe.setAttribute(Fe,Le.join(" ")))})(Le,"aria-describedby",Nt.messageElement.id),Le.setAttribute(ae,""),Nt.referenceCount++}},{key:"_removeMessageReference",value:function(Le,qe){var Nt=ye.get(qe);Nt.referenceCount--,function(xe,Fe,Oe){var qe=le(xe,Fe).filter(function(Nt){return Nt!=Oe.trim()});qe.length?xe.setAttribute(Fe,qe.join(" ")):xe.removeAttribute(Fe)}(Le,"aria-describedby",Nt.messageElement.id),Le.removeAttribute(ae)}},{key:"_isElementDescribedByMessage",value:function(Le,qe){var Nt=le(Le,"aria-describedby"),cn=ye.get(qe),Jn=cn&&cn.messageElement.id;return!!Jn&&-1!=Nt.indexOf(Jn)}},{key:"_canBeDescribed",value:function(Le,qe){if(!this._isElementNode(Le))return!1;if(qe&&"object"==typeof qe)return!0;var Nt=null==qe?"":"".concat(qe).trim(),cn=Le.getAttribute("aria-label");return!(!Nt||cn&&cn.trim()===Nt)}},{key:"_isElementNode",value:function(Le){return Le.nodeType===this._document.ELEMENT_NODE}}]),Fe}();return xe.\u0275fac=function(Oe){return new(Oe||xe)(P.LFG(v.K0))},xe.\u0275prov=P.Yz7({factory:function(){return new xe(P.LFG(v.K0))},token:xe,providedIn:"root"}),xe}();function _t(xe,Fe){return"string"==typeof xe?"".concat(Fe||"","/").concat(xe):xe}function yt(xe){xe.id||(xe.id="".concat(ue,"-").concat(Me++))}var Bt=function(){function xe(Fe){var Oe=this;(0,I.Z)(this,xe),this._items=Fe,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new D.xQ,this._typeaheadSubscription=M.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(Le){return Le.disabled},this._pressedLetters=[],this.tabOut=new D.xQ,this.change=new D.xQ,Fe instanceof P.n_E&&Fe.changes.subscribe(function(Le){if(Oe._activeItem){var Nt=Le.toArray().indexOf(Oe._activeItem);Nt>-1&&Nt!==Oe._activeItemIndex&&(Oe._activeItemIndex=Nt)}})}return(0,C.Z)(xe,[{key:"skipPredicate",value:function(Oe){return this._skipPredicateFn=Oe,this}},{key:"withWrap",value:function(){var Oe=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=Oe,this}},{key:"withVerticalOrientation",value:function(){var Oe=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=Oe,this}},{key:"withHorizontalOrientation",value:function(Oe){return this._horizontal=Oe,this}},{key:"withAllowedModifierKeys",value:function(Oe){return this._allowedModifierKeys=Oe,this}},{key:"withTypeAhead",value:function(){var Oe=this,Le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,k.b)(function(qe){return Oe._pressedLetters.push(qe)}),(0,N.b)(Le),(0,E.h)(function(){return Oe._pressedLetters.length>0}),(0,x.U)(function(){return Oe._pressedLetters.join("")})).subscribe(function(qe){for(var Nt=Oe._getItemsArray(),cn=1;cn<Nt.length+1;cn++){var Jn=(Oe._activeItemIndex+cn)%Nt.length,Zr=Nt[Jn];if(!Oe._skipPredicateFn(Zr)&&0===Zr.getLabel().toUpperCase().trim().indexOf(qe)){Oe.setActiveItem(Jn);break}}Oe._pressedLetters=[]}),this}},{key:"withHomeAndEnd",value:function(){var Oe=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=Oe,this}},{key:"setActiveItem",value:function(Oe){var Le=this._activeItem;this.updateActiveItem(Oe),this._activeItem!==Le&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(Oe){var Le=this,qe=Oe.keyCode,cn=["altKey","ctrlKey","metaKey","shiftKey"].every(function(Jn){return!Oe[Jn]||Le._allowedModifierKeys.indexOf(Jn)>-1});switch(qe){case g.Mf:return void this.tabOut.next();case g.JH:if(this._vertical&&cn){this.setNextItemActive();break}return;case g.LH:if(this._vertical&&cn){this.setPreviousItemActive();break}return;case g.SV:if(this._horizontal&&cn){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case g.oh:if(this._horizontal&&cn){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case g.Sd:if(this._homeAndEnd&&cn){this.setFirstItemActive();break}return;case g.uR:if(this._homeAndEnd&&cn){this.setLastItemActive();break}return;default:return void((cn||(0,g.Vb)(Oe,"shiftKey"))&&(Oe.key&&1===Oe.key.length?this._letterKeyStream.next(Oe.key.toLocaleUpperCase()):(qe>=g.A&&qe<=g.Z||qe>=g.xE&&qe<=g.aO)&&this._letterKeyStream.next(String.fromCharCode(qe))))}this._pressedLetters=[],Oe.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(Oe){var Le=this._getItemsArray(),qe="number"==typeof Oe?Oe:Le.indexOf(Oe),Nt=Le[qe];this._activeItem=null==Nt?null:Nt,this._activeItemIndex=qe}},{key:"_setActiveItemByDelta",value:function(Oe){this._wrap?this._setActiveInWrapMode(Oe):this._setActiveInDefaultMode(Oe)}},{key:"_setActiveInWrapMode",value:function(Oe){for(var Le=this._getItemsArray(),qe=1;qe<=Le.length;qe++){var Nt=(this._activeItemIndex+Oe*qe+Le.length)%Le.length;if(!this._skipPredicateFn(Le[Nt]))return void this.setActiveItem(Nt)}}},{key:"_setActiveInDefaultMode",value:function(Oe){this._setActiveItemByIndex(this._activeItemIndex+Oe,Oe)}},{key:"_setActiveItemByIndex",value:function(Oe,Le){var qe=this._getItemsArray();if(qe[Oe]){for(;this._skipPredicateFn(qe[Oe]);)if(!qe[Oe+=Le])return;this.setActiveItem(Oe)}}},{key:"_getItemsArray",value:function(){return this._items instanceof P.n_E?this._items.toArray():this._items}}]),xe}(),Se=function(xe){(0,Z.Z)(Oe,xe);var Fe=(0,T.Z)(Oe);function Oe(){return(0,I.Z)(this,Oe),Fe.apply(this,arguments)}return(0,C.Z)(Oe,[{key:"setActiveItem",value:function(qe){this.activeItem&&this.activeItem.setInactiveStyles(),(0,B.Z)((0,V.Z)(Oe.prototype),"setActiveItem",this).call(this,qe),this.activeItem&&this.activeItem.setActiveStyles()}}]),Oe}(Bt),De=function(xe){(0,Z.Z)(Oe,xe);var Fe=(0,T.Z)(Oe);function Oe(){var Le;return(0,I.Z)(this,Oe),(Le=Fe.apply(this,arguments))._origin="program",Le}return(0,C.Z)(Oe,[{key:"setFocusOrigin",value:function(qe){return this._origin=qe,this}},{key:"setActiveItem",value:function(qe){(0,B.Z)((0,V.Z)(Oe.prototype),"setActiveItem",this).call(this,qe),this.activeItem&&this.activeItem.focus(this._origin)}}]),Oe}(Bt),ct=function(){var xe=function(){function Fe(Oe){(0,I.Z)(this,Fe),this._platform=Oe}return(0,C.Z)(Fe,[{key:"isDisabled",value:function(Le){return Le.hasAttribute("disabled")}},{key:"isVisible",value:function(Le){return function(xe){return!!(xe.offsetWidth||xe.offsetHeight||"function"==typeof xe.getClientRects&&xe.getClientRects().length)}(Le)&&"visible"===getComputedStyle(Le).visibility}},{key:"isTabbable",value:function(Le){if(!this._platform.isBrowser)return!1;var qe=function(xe){try{return xe.frameElement}catch(Fe){return null}}(function(xe){return xe.ownerDocument&&xe.ownerDocument.defaultView||window}(Le));if(qe&&(-1===Ct(qe)||!this.isVisible(qe)))return!1;var Nt=Le.nodeName.toLowerCase(),cn=Ct(Le);return Le.hasAttribute("contenteditable")?-1!==cn:!("iframe"===Nt||"object"===Nt||this._platform.WEBKIT&&this._platform.IOS&&!function(xe){var Fe=xe.nodeName.toLowerCase(),Oe="input"===Fe&&xe.type;return"text"===Oe||"password"===Oe||"select"===Fe||"textarea"===Fe}(Le))&&("audio"===Nt?!!Le.hasAttribute("controls")&&-1!==cn:"video"===Nt?-1!==cn&&(null!==cn||this._platform.FIREFOX||Le.hasAttribute("controls")):Le.tabIndex>=0)}},{key:"isFocusable",value:function(Le,qe){return function(xe){return!function(xe){return function(xe){return"input"==xe.nodeName.toLowerCase()}(xe)&&"hidden"==xe.type}(xe)&&(function(xe){var Fe=xe.nodeName.toLowerCase();return"input"===Fe||"select"===Fe||"button"===Fe||"textarea"===Fe}(xe)||function(xe){return function(xe){return"a"==xe.nodeName.toLowerCase()}(xe)&&xe.hasAttribute("href")}(xe)||xe.hasAttribute("contenteditable")||qt(xe))}(Le)&&!this.isDisabled(Le)&&((null==qe?void 0:qe.ignoreVisibility)||this.isVisible(Le))}}]),Fe}();return xe.\u0275fac=function(Oe){return new(Oe||xe)(P.LFG(W.t4))},xe.\u0275prov=P.Yz7({factory:function(){return new xe(P.LFG(W.t4))},token:xe,providedIn:"root"}),xe}();function qt(xe){if(!xe.hasAttribute("tabindex")||void 0===xe.tabIndex)return!1;var Fe=xe.getAttribute("tabindex");return"-32768"!=Fe&&!(!Fe||isNaN(parseInt(Fe,10)))}function Ct(xe){if(!qt(xe))return null;var Fe=parseInt(xe.getAttribute("tabindex")||"",10);return isNaN(Fe)?-1:Fe}var En=function(){function xe(Fe,Oe,Le,qe){var Nt=this,cn=arguments.length>4&&void 0!==arguments[4]&&arguments[4];(0,I.Z)(this,xe),this._element=Fe,this._checker=Oe,this._ngZone=Le,this._document=qe,this._hasAttached=!1,this.startAnchorListener=function(){return Nt.focusLastTabbableElement()},this.endAnchorListener=function(){return Nt.focusFirstTabbableElement()},this._enabled=!0,cn||this.attachAnchors()}return(0,C.Z)(xe,[{key:"enabled",get:function(){return this._enabled},set:function(Oe){this._enabled=Oe,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Oe,this._startAnchor),this._toggleAnchorTabIndex(Oe,this._endAnchor))}},{key:"destroy",value:function(){var Oe=this._startAnchor,Le=this._endAnchor;Oe&&(Oe.removeEventListener("focus",this.startAnchorListener),Oe.parentNode&&Oe.parentNode.removeChild(Oe)),Le&&(Le.removeEventListener("focus",this.endAnchorListener),Le.parentNode&&Le.parentNode.removeChild(Le)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var Oe=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){Oe._startAnchor||(Oe._startAnchor=Oe._createAnchor(),Oe._startAnchor.addEventListener("focus",Oe.startAnchorListener)),Oe._endAnchor||(Oe._endAnchor=Oe._createAnchor(),Oe._endAnchor.addEventListener("focus",Oe.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(Oe){var Le=this;return new Promise(function(qe){Le._executeOnStable(function(){return qe(Le.focusInitialElement(Oe))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(Oe){var Le=this;return new Promise(function(qe){Le._executeOnStable(function(){return qe(Le.focusFirstTabbableElement(Oe))})})}},{key:"focusLastTabbableElementWhenReady",value:function(Oe){var Le=this;return new Promise(function(qe){Le._executeOnStable(function(){return qe(Le.focusLastTabbableElement(Oe))})})}},{key:"_getRegionBoundary",value:function(Oe){for(var Le=this._element.querySelectorAll("[cdk-focus-region-".concat(Oe,"], ")+"[cdkFocusRegion".concat(Oe,"], ")+"[cdk-focus-".concat(Oe,"]")),qe=0;qe<Le.length;qe++)Le[qe].hasAttribute("cdk-focus-".concat(Oe))?console.warn("Found use of deprecated attribute 'cdk-focus-".concat(Oe,"', ")+"use 'cdkFocusRegion".concat(Oe,"' instead. The deprecated ")+"attribute will be removed in 8.0.0.",Le[qe]):Le[qe].hasAttribute("cdk-focus-region-".concat(Oe))&&console.warn("Found use of deprecated attribute 'cdk-focus-region-".concat(Oe,"', ")+"use 'cdkFocusRegion".concat(Oe,"' instead. The deprecated attribute ")+"will be removed in 8.0.0.",Le[qe]);return"start"==Oe?Le.length?Le[0]:this._getFirstTabbableElement(this._element):Le.length?Le[Le.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(Oe){var Le=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Le){if(Le.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",Le),!this._checker.isFocusable(Le)){var qe=this._getFirstTabbableElement(Le);return null==qe||qe.focus(Oe),!!qe}return Le.focus(Oe),!0}return this.focusFirstTabbableElement(Oe)}},{key:"focusFirstTabbableElement",value:function(Oe){var Le=this._getRegionBoundary("start");return Le&&Le.focus(Oe),!!Le}},{key:"focusLastTabbableElement",value:function(Oe){var Le=this._getRegionBoundary("end");return Le&&Le.focus(Oe),!!Le}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(Oe){if(this._checker.isFocusable(Oe)&&this._checker.isTabbable(Oe))return Oe;for(var Le=Oe.children||Oe.childNodes,qe=0;qe<Le.length;qe++){var Nt=Le[qe].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(Le[qe]):null;if(Nt)return Nt}return null}},{key:"_getLastTabbableElement",value:function(Oe){if(this._checker.isFocusable(Oe)&&this._checker.isTabbable(Oe))return Oe;for(var Le=Oe.children||Oe.childNodes,qe=Le.length-1;qe>=0;qe--){var Nt=Le[qe].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Le[qe]):null;if(Nt)return Nt}return null}},{key:"_createAnchor",value:function(){var Oe=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Oe),Oe.classList.add("cdk-visually-hidden"),Oe.classList.add("cdk-focus-trap-anchor"),Oe.setAttribute("aria-hidden","true"),Oe}},{key:"_toggleAnchorTabIndex",value:function(Oe,Le){Oe?Le.setAttribute("tabindex","0"):Le.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(Oe){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Oe,this._startAnchor),this._toggleAnchorTabIndex(Oe,this._endAnchor))}},{key:"_executeOnStable",value:function(Oe){this._ngZone.isStable?Oe():this._ngZone.onStable.pipe((0,S.q)(1)).subscribe(Oe)}}]),xe}(),Zn=function(){var xe=function(){function Fe(Oe,Le,qe){(0,I.Z)(this,Fe),this._checker=Oe,this._ngZone=Le,this._document=qe}return(0,C.Z)(Fe,[{key:"create",value:function(Le){var qe=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new En(Le,this._checker,this._ngZone,this._document,qe)}}]),Fe}();return xe.\u0275fac=function(Oe){return new(Oe||xe)(P.LFG(ct),P.LFG(P.R0b),P.LFG(v.K0))},xe.\u0275prov=P.Yz7({factory:function(){return new xe(P.LFG(ct),P.LFG(P.R0b),P.LFG(v.K0))},token:xe,providedIn:"root"}),xe}();function ve(xe){return 0===xe.offsetX&&0===xe.offsetY}function Ge(xe){var Fe=xe.touches&&xe.touches[0]||xe.changedTouches&&xe.changedTouches[0];return!(!Fe||-1!==Fe.identifier||null!=Fe.radiusX&&1!==Fe.radiusX||null!=Fe.radiusY&&1!==Fe.radiusY)}"undefined"!=typeof Element&&Element;var Ye=new P.OlP("cdk-input-modality-detector-options"),bt={ignoreKeys:[g.zL,g.jx,g.b2,g.MW,g.JU]},zt=(0,W.i$)({passive:!0,capture:!0}),tn=function(){var xe=function(){function Fe(Oe,Le,qe,Nt){var cn=this;(0,I.Z)(this,Fe),this._platform=Oe,this._mostRecentTarget=null,this._modality=new A.X(null),this._lastTouchMs=0,this._onKeydown=function(Jn){var Zr,jr;(null===(jr=null===(Zr=cn._options)||void 0===Zr?void 0:Zr.ignoreKeys)||void 0===jr?void 0:jr.some(function(Cr){return Cr===Jn.keyCode}))||(cn._modality.next("keyboard"),cn._mostRecentTarget=(0,W.sA)(Jn))},this._onMousedown=function(Jn){Date.now()-cn._lastTouchMs<650||(cn._modality.next(ve(Jn)?"keyboard":"mouse"),cn._mostRecentTarget=(0,W.sA)(Jn))},this._onTouchstart=function(Jn){Ge(Jn)?cn._modality.next("keyboard"):(cn._lastTouchMs=Date.now(),cn._modality.next("touch"),cn._mostRecentTarget=(0,W.sA)(Jn))},this._options=Object.assign(Object.assign({},bt),Nt),this.modalityDetected=this._modality.pipe((0,O.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,L.x)()),Oe.isBrowser&&Le.runOutsideAngular(function(){qe.addEventListener("keydown",cn._onKeydown,zt),qe.addEventListener("mousedown",cn._onMousedown,zt),qe.addEventListener("touchstart",cn._onTouchstart,zt)})}return(0,C.Z)(Fe,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){!this._platform.isBrowser||(document.removeEventListener("keydown",this._onKeydown,zt),document.removeEventListener("mousedown",this._onMousedown,zt),document.removeEventListener("touchstart",this._onTouchstart,zt))}}]),Fe}();return xe.\u0275fac=function(Oe){return new(Oe||xe)(P.LFG(W.t4),P.LFG(P.R0b),P.LFG(v.K0),P.LFG(Ye,8))},xe.\u0275prov=P.Yz7({factory:function(){return new xe(P.LFG(W.t4),P.LFG(P.R0b),P.LFG(v.K0),P.LFG(Ye,8))},token:xe,providedIn:"root"}),xe}(),sn=new P.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Cn=new P.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),In=function(){var xe=function(){function Fe(Oe,Le,qe,Nt){(0,I.Z)(this,Fe),this._ngZone=Le,this._defaultOptions=Nt,this._document=qe,this._liveElement=Oe||this._createLiveElement()}return(0,C.Z)(Fe,[{key:"announce",value:function(Le){for(var cn,Jn,qe=this,Nt=this._defaultOptions,Zr=arguments.length,jr=new Array(Zr>1?Zr-1:0),Cr=1;Cr<Zr;Cr++)jr[Cr-1]=arguments[Cr];return 1===jr.length&&"number"==typeof jr[0]?Jn=jr[0]:(cn=jr[0],Jn=jr[1]),this.clear(),clearTimeout(this._previousTimeout),cn||(cn=Nt&&Nt.politeness?Nt.politeness:"polite"),null==Jn&&Nt&&(Jn=Nt.duration),this._liveElement.setAttribute("aria-live",cn),this._ngZone.runOutsideAngular(function(){return new Promise(function(Kr){clearTimeout(qe._previousTimeout),qe._previousTimeout=setTimeout(function(){qe._liveElement.textContent=Le,Kr(),"number"==typeof Jn&&(qe._previousTimeout=setTimeout(function(){return qe.clear()},Jn))},100)})})}},{key:"clear",value:function(){this._liveElement&&(this._liveElement.textContent="")}},{key:"ngOnDestroy",value:function(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}},{key:"_createLiveElement",value:function(){for(var Le="cdk-live-announcer-element",qe=this._document.getElementsByClassName(Le),Nt=this._document.createElement("div"),cn=0;cn<qe.length;cn++)qe[cn].parentNode.removeChild(qe[cn]);return Nt.classList.add(Le),Nt.classList.add("cdk-visually-hidden"),Nt.setAttribute("aria-atomic","true"),Nt.setAttribute("aria-live","polite"),this._document.body.appendChild(Nt),Nt}}]),Fe}();return xe.\u0275fac=function(Oe){return new(Oe||xe)(P.LFG(sn,8),P.LFG(P.R0b),P.LFG(v.K0),P.LFG(Cn,8))},xe.\u0275prov=P.Yz7({factory:function(){return new xe(P.LFG(sn,8),P.LFG(P.R0b),P.LFG(v.K0),P.LFG(Cn,8))},token:xe,providedIn:"root"}),xe}(),xn=new P.OlP("cdk-focus-monitor-default-options"),Sn=(0,W.i$)({passive:!0,capture:!0}),$n=function(){var xe=function(){function Fe(Oe,Le,qe,Nt,cn){var Jn=this;(0,I.Z)(this,Fe),this._ngZone=Oe,this._platform=Le,this._inputModalityDetector=qe,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=function(){Jn._windowFocused=!0,Jn._windowFocusTimeoutId=setTimeout(function(){return Jn._windowFocused=!1})},this._stopInputModalityDetector=new D.xQ,this._rootNodeFocusAndBlurListener=function(Zr){for(var jr=(0,W.sA)(Zr),Cr="focus"===Zr.type?Jn._onFocus:Jn._onBlur,Kr=jr;Kr;Kr=Kr.parentElement)Cr.call(Jn,Zr,Kr)},this._document=Nt,this._detectionMode=(null==cn?void 0:cn.detectionMode)||0}return(0,C.Z)(Fe,[{key:"monitor",value:function(Le){var qe=arguments.length>1&&void 0!==arguments[1]&&arguments[1],Nt=(0,K.fI)(Le);if(!this._platform.isBrowser||1!==Nt.nodeType)return(0,y.of)(null);var cn=(0,W.kV)(Nt)||this._getDocument(),Jn=this._elementInfo.get(Nt);if(Jn)return qe&&(Jn.checkChildren=!0),Jn.subject;var Zr={checkChildren:qe,subject:new D.xQ,rootNode:cn};return this._elementInfo.set(Nt,Zr),this._registerGlobalListeners(Zr),Zr.subject}},{key:"stopMonitoring",value:function(Le){var qe=(0,K.fI)(Le),Nt=this._elementInfo.get(qe);Nt&&(Nt.subject.complete(),this._setClasses(qe),this._elementInfo.delete(qe),this._removeGlobalListeners(Nt))}},{key:"focusVia",value:function(Le,qe,Nt){var cn=this,Jn=(0,K.fI)(Le);Jn===this._getDocument().activeElement?this._getClosestElementsInfo(Jn).forEach(function(jr){var Cr=(0,U.Z)(jr,2);return cn._originChanged(Cr[0],qe,Cr[1])}):(this._setOrigin(qe),"function"==typeof Jn.focus&&Jn.focus(Nt))}},{key:"ngOnDestroy",value:function(){var Le=this;this._elementInfo.forEach(function(qe,Nt){return Le.stopMonitoring(Nt)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(Le,qe,Nt){Nt?Le.classList.add(qe):Le.classList.remove(qe)}},{key:"_getFocusOrigin",value:function(Le){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Le)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(Le){return 1===this._detectionMode||!!(null==Le?void 0:Le.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(Le,qe){this._toggleClass(Le,"cdk-focused",!!qe),this._toggleClass(Le,"cdk-touch-focused","touch"===qe),this._toggleClass(Le,"cdk-keyboard-focused","keyboard"===qe),this._toggleClass(Le,"cdk-mouse-focused","mouse"===qe),this._toggleClass(Le,"cdk-program-focused","program"===qe)}},{key:"_setOrigin",value:function(Le){var qe=this,Nt=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){qe._origin=Le,qe._originFromTouchInteraction="touch"===Le&&Nt,0===qe._detectionMode&&(clearTimeout(qe._originTimeoutId),qe._originTimeoutId=setTimeout(function(){return qe._origin=null},qe._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(Le,qe){var Nt=this._elementInfo.get(qe),cn=(0,W.sA)(Le);!Nt||!Nt.checkChildren&&qe!==cn||this._originChanged(qe,this._getFocusOrigin(cn),Nt)}},{key:"_onBlur",value:function(Le,qe){var Nt=this._elementInfo.get(qe);!Nt||Nt.checkChildren&&Le.relatedTarget instanceof Node&&qe.contains(Le.relatedTarget)||(this._setClasses(qe),this._emitOrigin(Nt.subject,null))}},{key:"_emitOrigin",value:function(Le,qe){this._ngZone.run(function(){return Le.next(qe)})}},{key:"_registerGlobalListeners",value:function(Le){var qe=this;if(this._platform.isBrowser){var Nt=Le.rootNode,cn=this._rootNodeFocusListenerCount.get(Nt)||0;cn||this._ngZone.runOutsideAngular(function(){Nt.addEventListener("focus",qe._rootNodeFocusAndBlurListener,Sn),Nt.addEventListener("blur",qe._rootNodeFocusAndBlurListener,Sn)}),this._rootNodeFocusListenerCount.set(Nt,cn+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){qe._getWindow().addEventListener("focus",qe._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,j.R)(this._stopInputModalityDetector)).subscribe(function(Jn){qe._setOrigin(Jn,!0)}))}}},{key:"_removeGlobalListeners",value:function(Le){var qe=Le.rootNode;if(this._rootNodeFocusListenerCount.has(qe)){var Nt=this._rootNodeFocusListenerCount.get(qe);Nt>1?this._rootNodeFocusListenerCount.set(qe,Nt-1):(qe.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Sn),qe.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Sn),this._rootNodeFocusListenerCount.delete(qe))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(Le,qe,Nt){this._setClasses(Le,qe),this._emitOrigin(Nt.subject,qe),this._lastFocusOrigin=qe}},{key:"_getClosestElementsInfo",value:function(Le){var qe=[];return this._elementInfo.forEach(function(Nt,cn){(cn===Le||Nt.checkChildren&&cn.contains(Le))&&qe.push([cn,Nt])}),qe}}]),Fe}();return xe.\u0275fac=function(Oe){return new(Oe||xe)(P.LFG(P.R0b),P.LFG(W.t4),P.LFG(tn),P.LFG(v.K0,8),P.LFG(xn,8))},xe.\u0275prov=P.Yz7({factory:function(){return new xe(P.LFG(P.R0b),P.LFG(W.t4),P.LFG(tn),P.LFG(v.K0,8),P.LFG(xn,8))},token:xe,providedIn:"root"}),xe}(),Ht=function(){var xe=function(){function Fe(Oe,Le){(0,I.Z)(this,Fe),this._elementRef=Oe,this._focusMonitor=Le,this.cdkFocusChange=new P.vpe}return(0,C.Z)(Fe,[{key:"ngAfterViewInit",value:function(){var Le=this,qe=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(qe,1===qe.nodeType&&qe.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(Nt){return Le.cdkFocusChange.emit(Nt)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),Fe}();return xe.\u0275fac=function(Oe){return new(Oe||xe)(P.Y36(P.SBq),P.Y36($n))},xe.\u0275dir=P.lG2({type:xe,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),xe}(),rn="cdk-high-contrast-black-on-white",ft="cdk-high-contrast-white-on-black",dt="cdk-high-contrast-active",Ue=function(){var xe=function(){function Fe(Oe,Le){(0,I.Z)(this,Fe),this._platform=Oe,this._document=Le}return(0,C.Z)(Fe,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var Le=this._document.createElement("div");Le.style.backgroundColor="rgb(1,2,3)",Le.style.position="absolute",this._document.body.appendChild(Le);var qe=this._document.defaultView||window,Nt=qe&&qe.getComputedStyle?qe.getComputedStyle(Le):null,cn=(Nt&&Nt.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(Le),cn){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var Le=this._document.body.classList;Le.remove(dt),Le.remove(rn),Le.remove(ft),this._hasCheckedHighContrastMode=!0;var qe=this.getHighContrastMode();1===qe?(Le.add(dt),Le.add(rn)):2===qe&&(Le.add(dt),Le.add(ft))}}}]),Fe}();return xe.\u0275fac=function(Oe){return new(Oe||xe)(P.LFG(W.t4),P.LFG(v.K0))},xe.\u0275prov=P.Yz7({factory:function(){return new xe(P.LFG(W.t4),P.LFG(v.K0))},token:xe,providedIn:"root"}),xe}(),at=function(){var xe=function Fe(Oe){(0,I.Z)(this,Fe),Oe._applyBodyHighContrastModeCssClasses()};return xe.\u0275fac=function(Oe){return new(Oe||xe)(P.LFG(Ue))},xe.\u0275mod=P.oAB({type:xe}),xe.\u0275inj=P.cJS({imports:[[W.ud,J.Q8]]}),xe}()},8392:function(ce,q,f){"use strict";f.d(q,{vT:function(){return P},Is:function(){return C}});var U=f(18967),B=f(14105),V=f(65508),Z=f(40098),T=new V.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,V.f3M)(Z.K0)}}),C=function(){var D=function(){function M(A){if((0,U.Z)(this,M),this.value="ltr",this.change=new V.vpe,A){var k=(A.body?A.body.dir:null)||(A.documentElement?A.documentElement.dir:null);this.value="ltr"===k||"rtl"===k?k:"ltr"}}return(0,B.Z)(M,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),M}();return D.\u0275fac=function(A){return new(A||D)(V.LFG(T,8))},D.\u0275prov=V.Yz7({factory:function(){return new D(V.LFG(T,8))},token:D,providedIn:"root"}),D}(),P=function(){var D=function M(){(0,U.Z)(this,M)};return D.\u0275fac=function(A){return new(A||D)},D.\u0275mod=V.oAB({type:D}),D.\u0275inj=V.cJS({}),D}()},37429:function(ce,q,f){"use strict";f.d(q,{P3:function(){return A},o2:function(){return D},Ov:function(){return k},A8:function(){return E},yy:function(){return y},eX:function(){return g},k:function(){return x},Z9:function(){return M}});var U=f(36683),B=f(14105),V=f(10509),Z=f(97154),T=f(18967),I=f(17504),C=f(43161),v=f(68707),P=f(65508),D=function S(){(0,T.Z)(this,S)};function M(S){return S&&"function"==typeof S.connect}var A=function(S){(0,V.Z)(L,S);var O=(0,Z.Z)(L);function L(j){var K;return(0,T.Z)(this,L),(K=O.call(this))._data=j,K}return(0,B.Z)(L,[{key:"connect",value:function(){return(0,I.b)(this._data)?this._data:(0,C.of)(this._data)}},{key:"disconnect",value:function(){}}]),L}(D),y=function(){function S(){(0,T.Z)(this,S)}return(0,B.Z)(S,[{key:"applyChanges",value:function(L,j,K,W,J){L.forEachOperation(function(oe,te,se){var le,de;if(null==oe.previousIndex){var ue=K(oe,te,se);le=j.createEmbeddedView(ue.templateRef,ue.context,ue.index),de=1}else null==se?(j.remove(te),de=3):(le=j.get(te),j.move(le,se),de=2);J&&J({context:null==le?void 0:le.context,operation:de,record:oe})})}},{key:"detach",value:function(){}}]),S}(),g=function(){function S(){(0,T.Z)(this,S),this.viewCacheSize=20,this._viewCache=[]}return(0,B.Z)(S,[{key:"applyChanges",value:function(L,j,K,W,J){var oe=this;L.forEachOperation(function(te,se,le){var de,ue;null==te.previousIndex?ue=(de=oe._insertView(function(){return K(te,se,le)},le,j,W(te)))?1:0:null==le?(oe._detachAndCacheView(se,j),ue=3):(de=oe._moveView(se,le,j,W(te)),ue=2),J&&J({context:null==de?void 0:de.context,operation:ue,record:te})})}},{key:"detach",value:function(){var j,L=(0,U.Z)(this._viewCache);try{for(L.s();!(j=L.n()).done;)j.value.destroy()}catch(W){L.e(W)}finally{L.f()}this._viewCache=[]}},{key:"_insertView",value:function(L,j,K,W){var J=this._insertViewFromCache(j,K);if(!J){var oe=L();return K.createEmbeddedView(oe.templateRef,oe.context,oe.index)}J.context.$implicit=W}},{key:"_detachAndCacheView",value:function(L,j){var K=j.detach(L);this._maybeCacheView(K,j)}},{key:"_moveView",value:function(L,j,K,W){var J=K.get(L);return K.move(J,j),J.context.$implicit=W,J}},{key:"_maybeCacheView",value:function(L,j){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(L);else{var K=j.indexOf(L);-1===K?L.destroy():j.remove(K)}}},{key:"_insertViewFromCache",value:function(L,j){var K=this._viewCache.pop();return K&&j.insert(K,L),K||null}}]),S}(),k=function(){function S(){var O=this,L=arguments.length>0&&void 0!==arguments[0]&&arguments[0],j=arguments.length>1?arguments[1]:void 0,K=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];(0,T.Z)(this,S),this._multiple=L,this._emitChanges=K,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new v.xQ,j&&j.length&&(L?j.forEach(function(W){return O._markSelected(W)}):this._markSelected(j[0]),this._selectedToEmit.length=0)}return(0,B.Z)(S,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var L=this,j=arguments.length,K=new Array(j),W=0;W<j;W++)K[W]=arguments[W];this._verifyValueAssignment(K),K.forEach(function(J){return L._markSelected(J)}),this._emitChangeEvent()}},{key:"deselect",value:function(){for(var L=this,j=arguments.length,K=new Array(j),W=0;W<j;W++)K[W]=arguments[W];this._verifyValueAssignment(K),K.forEach(function(J){return L._unmarkSelected(J)}),this._emitChangeEvent()}},{key:"toggle",value:function(L){this.isSelected(L)?this.deselect(L):this.select(L)}},{key:"clear",value:function(){this._unmarkAll(),this._emitChangeEvent()}},{key:"isSelected",value:function(L){return this._selection.has(L)}},{key:"isEmpty",value:function(){return 0===this._selection.size}},{key:"hasValue",value:function(){return!this.isEmpty()}},{key:"sort",value:function(L){this._multiple&&this.selected&&this._selected.sort(L)}},{key:"isMultipleSelection",value:function(){return this._multiple}},{key:"_emitChangeEvent",value:function(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}},{key:"_markSelected",value:function(L){this.isSelected(L)||(this._multiple||this._unmarkAll(),this._selection.add(L),this._emitChanges&&this._selectedToEmit.push(L))}},{key:"_unmarkSelected",value:function(L){this.isSelected(L)&&(this._selection.delete(L),this._emitChanges&&this._deselectedToEmit.push(L))}},{key:"_unmarkAll",value:function(){var L=this;this.isEmpty()||this._selection.forEach(function(j){return L._unmarkSelected(j)})}},{key:"_verifyValueAssignment",value:function(L){}}]),S}(),E=function(){var S=function(){function O(){(0,T.Z)(this,O),this._listeners=[]}return(0,B.Z)(O,[{key:"notify",value:function(j,K){var J,W=(0,U.Z)(this._listeners);try{for(W.s();!(J=W.n()).done;)(0,J.value)(j,K)}catch(te){W.e(te)}finally{W.f()}}},{key:"listen",value:function(j){var K=this;return this._listeners.push(j),function(){K._listeners=K._listeners.filter(function(W){return j!==W})}}},{key:"ngOnDestroy",value:function(){this._listeners=[]}}]),O}();return S.\u0275fac=function(L){return new(L||S)},S.\u0275prov=P.Yz7({factory:function(){return new S},token:S,providedIn:"root"}),S}(),x=new P.OlP("_ViewRepeater")},32819:function(ce,q,f){"use strict";f.d(q,{A:function(){return Bt},zL:function(){return v},ZH:function(){return B},jx:function(){return C},yY:function(){return W},JH:function(){return O},uR:function(){return k},K5:function(){return T},hY:function(){return M},Sd:function(){return N},oh:function(){return E},b2:function(){return Qt},MW:function(){return rt},aO:function(){return ye},SV:function(){return S},JU:function(){return I},L_:function(){return A},Mf:function(){return V},LH:function(){return x},Z:function(){return Mt},xE:function(){return J},Vb:function(){return Xt}});var B=8,V=9,T=13,I=16,C=17,v=18,M=27,A=32,k=35,N=36,E=37,x=38,S=39,O=40,W=46,J=48,ye=57,Bt=65,Mt=90,rt=91,Qt=224;function Xt(yn){for(var Gn=arguments.length,jn=new Array(Gn>1?Gn-1:0),zn=1;zn<Gn;zn++)jn[zn-1]=arguments[zn];return jn.length?jn.some(function(li){return yn[li]}):yn.altKey||yn.shiftKey||yn.ctrlKey||yn.metaKey}},96798:function(ce,q,f){"use strict";f.d(q,{wD:function(){return D},yq:function(){return P},Q8:function(){return M}});var U=f(18967),B=f(14105),V=f(78081),Z=f(65508),T=f(89797),I=f(68707),C=f(57263),v=function(){var A=function(){function y(){(0,U.Z)(this,y)}return(0,B.Z)(y,[{key:"create",value:function(k){return"undefined"==typeof MutationObserver?null:new MutationObserver(k)}}]),y}();return A.\u0275fac=function(g){return new(g||A)},A.\u0275prov=Z.Yz7({factory:function(){return new A},token:A,providedIn:"root"}),A}(),P=function(){var A=function(){function y(g){(0,U.Z)(this,y),this._mutationObserverFactory=g,this._observedElements=new Map}return(0,B.Z)(y,[{key:"ngOnDestroy",value:function(){var k=this;this._observedElements.forEach(function(N,E){return k._cleanupObserver(E)})}},{key:"observe",value:function(k){var N=this,E=(0,V.fI)(k);return new T.y(function(x){var O=N._observeElement(E).subscribe(x);return function(){O.unsubscribe(),N._unobserveElement(E)}})}},{key:"_observeElement",value:function(k){if(this._observedElements.has(k))this._observedElements.get(k).count++;else{var N=new I.xQ,E=this._mutationObserverFactory.create(function(x){return N.next(x)});E&&E.observe(k,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(k,{observer:E,stream:N,count:1})}return this._observedElements.get(k).stream}},{key:"_unobserveElement",value:function(k){this._observedElements.has(k)&&(this._observedElements.get(k).count--,this._observedElements.get(k).count||this._cleanupObserver(k))}},{key:"_cleanupObserver",value:function(k){if(this._observedElements.has(k)){var N=this._observedElements.get(k),E=N.observer,x=N.stream;E&&E.disconnect(),x.complete(),this._observedElements.delete(k)}}}]),y}();return A.\u0275fac=function(g){return new(g||A)(Z.LFG(v))},A.\u0275prov=Z.Yz7({factory:function(){return new A(Z.LFG(v))},token:A,providedIn:"root"}),A}(),D=function(){var A=function(){function y(g,k,N){(0,U.Z)(this,y),this._contentObserver=g,this._elementRef=k,this._ngZone=N,this.event=new Z.vpe,this._disabled=!1,this._currentSubscription=null}return(0,B.Z)(y,[{key:"disabled",get:function(){return this._disabled},set:function(k){this._disabled=(0,V.Ig)(k),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(k){this._debounce=(0,V.su)(k),this._subscribe()}},{key:"ngAfterContentInit",value:function(){!this._currentSubscription&&!this.disabled&&this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var k=this;this._unsubscribe();var N=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){k._currentSubscription=(k.debounce?N.pipe((0,C.b)(k.debounce)):N).subscribe(k.event)})}},{key:"_unsubscribe",value:function(){var k;null===(k=this._currentSubscription)||void 0===k||k.unsubscribe()}}]),y}();return A.\u0275fac=function(g){return new(g||A)(Z.Y36(P),Z.Y36(Z.SBq),Z.Y36(Z.R0b))},A.\u0275dir=Z.lG2({type:A,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),A}(),M=function(){var A=function y(){(0,U.Z)(this,y)};return A.\u0275fac=function(g){return new(g||A)},A.\u0275mod=Z.oAB({type:A}),A.\u0275inj=Z.cJS({providers:[v]}),A}()},93889:function(ce,q,f){"use strict";f.d(q,{pI:function(){return Nn},xu:function(){return tr},aV:function(){return En},X_:function(){return ae},Xj:function(){return ct},U8:function(){return Wt}});var U=f(27235),B=f(36683),V=f(20901),Z=f(89200),T=f(10509),I=f(97154),C=f(18967),v=f(14105),P=f(28722),D=f(65508),M=f(15427),A=f(8392),y=f(40098),g=f(78081),k=f(80785),N=f(68707),E=f(5051),x=f(55371),S=f(48359),O=f(44213),L=f(49196),j=f(32819),K=(0,M.Mq)(),W=function(){function rt(Te,re){(0,C.Z)(this,rt),this._viewportRuler=Te,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=re}return(0,v.Z)(rt,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var re=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=re.style.left||"",this._previousHTMLStyles.top=re.style.top||"",re.style.left=(0,g.HM)(-this._previousScrollPosition.left),re.style.top=(0,g.HM)(-this._previousScrollPosition.top),re.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var re=this._document.documentElement,Ge=re.style,Ye=this._document.body.style,bt=Ge.scrollBehavior||"",Lt=Ye.scrollBehavior||"";this._isEnabled=!1,Ge.left=this._previousHTMLStyles.left,Ge.top=this._previousHTMLStyles.top,re.classList.remove("cdk-global-scrollblock"),K&&(Ge.scrollBehavior=Ye.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),K&&(Ge.scrollBehavior=bt,Ye.scrollBehavior=Lt)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var ve=this._document.body,Ge=this._viewportRuler.getViewportSize();return ve.scrollHeight>Ge.height||ve.scrollWidth>Ge.width}}]),rt}(),oe=function(){function rt(Te,re,ve,Ge){var Ye=this;(0,C.Z)(this,rt),this._scrollDispatcher=Te,this._ngZone=re,this._viewportRuler=ve,this._config=Ge,this._scrollSubscription=null,this._detach=function(){Ye.disable(),Ye._overlayRef.hasAttached()&&Ye._ngZone.run(function(){return Ye._overlayRef.detach()})}}return(0,v.Z)(rt,[{key:"attach",value:function(re){this._overlayRef=re}},{key:"enable",value:function(){var re=this;if(!this._scrollSubscription){var ve=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=ve.subscribe(function(){var Ge=re._viewportRuler.getViewportScrollPosition().top;Math.abs(Ge-re._initialScrollPosition)>re._config.threshold?re._detach():re._overlayRef.updatePosition()})):this._scrollSubscription=ve.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),rt}(),te=function(){function rt(){(0,C.Z)(this,rt)}return(0,v.Z)(rt,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),rt}();function se(rt,Te){return Te.some(function(re){return rt.bottom<re.top||rt.top>re.bottom||rt.right<re.left||rt.left>re.right})}function le(rt,Te){return Te.some(function(re){return rt.top<re.top||rt.bottom>re.bottom||rt.left<re.left||rt.right>re.right})}var de=function(){function rt(Te,re,ve,Ge){(0,C.Z)(this,rt),this._scrollDispatcher=Te,this._viewportRuler=re,this._ngZone=ve,this._config=Ge,this._scrollSubscription=null}return(0,v.Z)(rt,[{key:"attach",value:function(re){this._overlayRef=re}},{key:"enable",value:function(){var re=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(re._overlayRef.updatePosition(),re._config&&re._config.autoClose){var Ge=re._overlayRef.overlayElement.getBoundingClientRect(),Ye=re._viewportRuler.getViewportSize(),bt=Ye.width,Lt=Ye.height;se(Ge,[{width:bt,height:Lt,bottom:Lt,right:bt,top:0,left:0}])&&(re.disable(),re._ngZone.run(function(){return re._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),rt}(),ue=function(){var rt=function Te(re,ve,Ge,Ye){var bt=this;(0,C.Z)(this,Te),this._scrollDispatcher=re,this._viewportRuler=ve,this._ngZone=Ge,this.noop=function(){return new te},this.close=function(Lt){return new oe(bt._scrollDispatcher,bt._ngZone,bt._viewportRuler,Lt)},this.block=function(){return new W(bt._viewportRuler,bt._document)},this.reposition=function(Lt){return new de(bt._scrollDispatcher,bt._viewportRuler,bt._ngZone,Lt)},this._document=Ye};return rt.\u0275fac=function(re){return new(re||rt)(D.LFG(P.mF),D.LFG(P.rL),D.LFG(D.R0b),D.LFG(y.K0))},rt.\u0275prov=D.Yz7({factory:function(){return new rt(D.LFG(P.mF),D.LFG(P.rL),D.LFG(D.R0b),D.LFG(y.K0))},token:rt,providedIn:"root"}),rt}(),ae=function rt(Te){if((0,C.Z)(this,rt),this.scrollStrategy=new te,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,Te)for(var ve=0,Ge=Object.keys(Te);ve<Ge.length;ve++){var Ye=Ge[ve];void 0!==Te[Ye]&&(this[Ye]=Te[Ye])}},Me=function rt(Te,re,ve,Ge,Ye){(0,C.Z)(this,rt),this.offsetX=ve,this.offsetY=Ge,this.panelClass=Ye,this.originX=Te.originX,this.originY=Te.originY,this.overlayX=re.overlayX,this.overlayY=re.overlayY},ot=function rt(Te,re){(0,C.Z)(this,rt),this.connectionPair=Te,this.scrollableViewProperties=re},yt=function(){var rt=function(){function Te(re){(0,C.Z)(this,Te),this._attachedOverlays=[],this._document=re}return(0,v.Z)(Te,[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(ve){this.remove(ve),this._attachedOverlays.push(ve)}},{key:"remove",value:function(ve){var Ge=this._attachedOverlays.indexOf(ve);Ge>-1&&this._attachedOverlays.splice(Ge,1),0===this._attachedOverlays.length&&this.detach()}}]),Te}();return rt.\u0275fac=function(re){return new(re||rt)(D.LFG(y.K0))},rt.\u0275prov=D.Yz7({factory:function(){return new rt(D.LFG(y.K0))},token:rt,providedIn:"root"}),rt}(),Bt=function(){var rt=function(Te){(0,T.Z)(ve,Te);var re=(0,I.Z)(ve);function ve(Ge){var Ye;return(0,C.Z)(this,ve),(Ye=re.call(this,Ge))._keydownListener=function(bt){for(var Lt=Ye._attachedOverlays,zt=Lt.length-1;zt>-1;zt--)if(Lt[zt]._keydownEvents.observers.length>0){Lt[zt]._keydownEvents.next(bt);break}},Ye}return(0,v.Z)(ve,[{key:"add",value:function(Ye){(0,V.Z)((0,Z.Z)(ve.prototype),"add",this).call(this,Ye),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),ve}(yt);return rt.\u0275fac=function(re){return new(re||rt)(D.LFG(y.K0))},rt.\u0275prov=D.Yz7({factory:function(){return new rt(D.LFG(y.K0))},token:rt,providedIn:"root"}),rt}(),Se=function(){var rt=function(Te){(0,T.Z)(ve,Te);var re=(0,I.Z)(ve);function ve(Ge,Ye){var bt;return(0,C.Z)(this,ve),(bt=re.call(this,Ge))._platform=Ye,bt._cursorStyleIsSet=!1,bt._clickListener=function(Lt){for(var zt=(0,M.sA)(Lt),tn=bt._attachedOverlays.slice(),sn=tn.length-1;sn>-1;sn--){var hn=tn[sn];if(!(hn._outsidePointerEvents.observers.length<1)&&hn.hasAttached()){if(hn.overlayElement.contains(zt))break;hn._outsidePointerEvents.next(Lt)}}},bt}return(0,v.Z)(ve,[{key:"add",value:function(Ye){if((0,V.Z)((0,Z.Z)(ve.prototype),"add",this).call(this,Ye),!this._isAttached){var bt=this._document.body;bt.addEventListener("click",this._clickListener,!0),bt.addEventListener("auxclick",this._clickListener,!0),bt.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=bt.style.cursor,bt.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var Ye=this._document.body;Ye.removeEventListener("click",this._clickListener,!0),Ye.removeEventListener("auxclick",this._clickListener,!0),Ye.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(Ye.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),ve}(yt);return rt.\u0275fac=function(re){return new(re||rt)(D.LFG(y.K0),D.LFG(M.t4))},rt.\u0275prov=D.Yz7({factory:function(){return new rt(D.LFG(y.K0),D.LFG(M.t4))},token:rt,providedIn:"root"}),rt}(),De="undefined"!=typeof window?window:{},Ve=void 0!==De.__karma__&&!!De.__karma__||void 0!==De.jasmine&&!!De.jasmine||void 0!==De.jest&&!!De.jest||void 0!==De.Mocha&&!!De.Mocha,ct=function(){var rt=function(){function Te(re,ve){(0,C.Z)(this,Te),this._platform=ve,this._document=re}return(0,v.Z)(Te,[{key:"ngOnDestroy",value:function(){var ve=this._containerElement;ve&&ve.parentNode&&ve.parentNode.removeChild(ve)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var ve="cdk-overlay-container";if(this._platform.isBrowser||Ve)for(var Ge=this._document.querySelectorAll(".".concat(ve,'[platform="server"], ')+".".concat(ve,'[platform="test"]')),Ye=0;Ye<Ge.length;Ye++)Ge[Ye].parentNode.removeChild(Ge[Ye]);var bt=this._document.createElement("div");bt.classList.add(ve),Ve?bt.setAttribute("platform","test"):this._platform.isBrowser||bt.setAttribute("platform","server"),this._document.body.appendChild(bt),this._containerElement=bt}}]),Te}();return rt.\u0275fac=function(re){return new(re||rt)(D.LFG(y.K0),D.LFG(M.t4))},rt.\u0275prov=D.Yz7({factory:function(){return new rt(D.LFG(y.K0),D.LFG(M.t4))},token:rt,providedIn:"root"}),rt}(),Je=function(){function rt(Te,re,ve,Ge,Ye,bt,Lt,zt,tn){var sn=this;(0,C.Z)(this,rt),this._portalOutlet=Te,this._host=re,this._pane=ve,this._config=Ge,this._ngZone=Ye,this._keyboardDispatcher=bt,this._document=Lt,this._location=zt,this._outsideClickDispatcher=tn,this._backdropElement=null,this._backdropClick=new N.xQ,this._attachments=new N.xQ,this._detachments=new N.xQ,this._locationChanges=E.w.EMPTY,this._backdropClickHandler=function(hn){return sn._backdropClick.next(hn)},this._keydownEvents=new N.xQ,this._outsidePointerEvents=new N.xQ,Ge.scrollStrategy&&(this._scrollStrategy=Ge.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Ge.positionStrategy}return(0,v.Z)(rt,[{key:"overlayElement",get:function(){return this._pane}},{key:"backdropElement",get:function(){return this._backdropElement}},{key:"hostElement",get:function(){return this._host}},{key:"attach",value:function(re){var ve=this,Ge=this._portalOutlet.attach(re);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,S.q)(1)).subscribe(function(){ve.hasAttached()&&ve.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 ve.dispose()})),this._outsideClickDispatcher.add(this),Ge}},{key:"detach",value:function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();var re=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),re}}},{key:"dispose",value:function(){var re=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,re&&this._detachments.next(),this._detachments.complete()}},{key:"hasAttached",value:function(){return this._portalOutlet.hasAttached()}},{key:"backdropClick",value:function(){return this._backdropClick}},{key:"attachments",value:function(){return this._attachments}},{key:"detachments",value:function(){return this._detachments}},{key:"keydownEvents",value:function(){return this._keydownEvents}},{key:"outsidePointerEvents",value:function(){return this._outsidePointerEvents}},{key:"getConfig",value:function(){return this._config}},{key:"updatePosition",value:function(){this._positionStrategy&&this._positionStrategy.apply()}},{key:"updatePositionStrategy",value:function(re){re!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=re,this.hasAttached()&&(re.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(re){this._config=Object.assign(Object.assign({},this._config),re),this._updateElementSize()}},{key:"setDirection",value:function(re){this._config=Object.assign(Object.assign({},this._config),{direction:re}),this._updateElementDirection()}},{key:"addPanelClass",value:function(re){this._pane&&this._toggleClasses(this._pane,re,!0)}},{key:"removePanelClass",value:function(re){this._pane&&this._toggleClasses(this._pane,re,!1)}},{key:"getDirection",value:function(){var re=this._config.direction;return re?"string"==typeof re?re:re.value:"ltr"}},{key:"updateScrollStrategy",value:function(re){re!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=re,this.hasAttached()&&(re.attach(this),re.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var re=this._pane.style;re.width=(0,g.HM)(this._config.width),re.height=(0,g.HM)(this._config.height),re.minWidth=(0,g.HM)(this._config.minWidth),re.minHeight=(0,g.HM)(this._config.minHeight),re.maxWidth=(0,g.HM)(this._config.maxWidth),re.maxHeight=(0,g.HM)(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(re){this._pane.style.pointerEvents=re?"":"none"}},{key:"_attachBackdrop",value:function(){var re=this,ve="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){re._backdropElement&&re._backdropElement.classList.add(ve)})}):this._backdropElement.classList.add(ve)}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var re=this,ve=this._backdropElement;if(ve){var Ge,Ye=function bt(){ve&&(ve.removeEventListener("click",re._backdropClickHandler),ve.removeEventListener("transitionend",bt),ve.parentNode&&ve.parentNode.removeChild(ve)),re._backdropElement==ve&&(re._backdropElement=null),re._config.backdropClass&&re._toggleClasses(ve,re._config.backdropClass,!1),clearTimeout(Ge)};ve.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(function(){ve.addEventListener("transitionend",Ye)}),ve.style.pointerEvents="none",Ge=this._ngZone.runOutsideAngular(function(){return setTimeout(Ye,500)})}}},{key:"_toggleClasses",value:function(re,ve,Ge){var Ye=re.classList;(0,g.Eq)(ve).forEach(function(bt){bt&&(Ge?Ye.add(bt):Ye.remove(bt))})}},{key:"_detachContentWhenStable",value:function(){var re=this;this._ngZone.runOutsideAngular(function(){var ve=re._ngZone.onStable.pipe((0,O.R)((0,x.T)(re._attachments,re._detachments))).subscribe(function(){(!re._pane||!re._host||0===re._pane.children.length)&&(re._pane&&re._config.panelClass&&re._toggleClasses(re._pane,re._config.panelClass,!1),re._host&&re._host.parentElement&&(re._previousHostParent=re._host.parentElement,re._previousHostParent.removeChild(re._host)),ve.unsubscribe())})})}},{key:"_disposeScrollStrategy",value:function(){var re=this._scrollStrategy;re&&(re.disable(),re.detach&&re.detach())}}]),rt}(),Ut="cdk-overlay-connected-position-bounding-box",Et=/([A-Za-z%]+)$/,vt=function(){function rt(Te,re,ve,Ge,Ye){(0,C.Z)(this,rt),this._viewportRuler=re,this._document=ve,this._platform=Ge,this._overlayContainer=Ye,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 N.xQ,this._resizeSubscription=E.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(Te)}return(0,v.Z)(rt,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(re){var ve=this;this._validatePositions(),re.hostElement.classList.add(Ut),this._overlayRef=re,this._boundingBox=re.hostElement,this._pane=re.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){ve._isInitialRender=!0,ve.apply()})}},{key:"apply",value:function(){if(!this._isDisposed&&this._platform.isBrowser){if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();var bt,zt,re=this._originRect,ve=this._overlayRect,Ge=this._viewportRect,Ye=[],Lt=(0,B.Z)(this._preferredPositions);try{for(Lt.s();!(zt=Lt.n()).done;){var tn=zt.value,sn=this._getOriginPoint(re,tn),hn=this._getOverlayPoint(sn,ve,tn),Cn=this._getOverlayFit(hn,ve,Ge,tn);if(Cn.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(tn,sn);this._canFitWithFlexibleDimensions(Cn,hn,Ge)?Ye.push({position:tn,origin:sn,overlayRect:ve,boundingBoxRect:this._calculateBoundingBoxRect(sn,tn)}):(!bt||bt.overlayFit.visibleArea<Cn.visibleArea)&&(bt={overlayFit:Cn,overlayPoint:hn,originPoint:sn,position:tn,overlayRect:ve})}}catch(rn){Lt.e(rn)}finally{Lt.f()}if(Ye.length){var Sn,In=null,Yn=-1,xn=(0,B.Z)(Ye);try{for(xn.s();!(Sn=xn.n()).done;){var $n=Sn.value,Ht=$n.boundingBoxRect.width*$n.boundingBoxRect.height*($n.position.weight||1);Ht>Yn&&(Yn=Ht,In=$n)}}catch(rn){xn.e(rn)}finally{xn.f()}return this._isPushed=!1,void this._applyPosition(In.position,In.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(bt.position,bt.originPoint);this._applyPosition(bt.position,bt.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&Kt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Ut),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var re=this._lastPosition||this._preferredPositions[0],ve=this._getOriginPoint(this._originRect,re);this._applyPosition(re,ve)}}},{key:"withScrollableContainers",value:function(re){return this._scrollables=re,this}},{key:"withPositions",value:function(re){return this._preferredPositions=re,-1===re.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(re){return this._viewportMargin=re,this}},{key:"withFlexibleDimensions",value:function(){var re=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=re,this}},{key:"withGrowAfterOpen",value:function(){var re=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=re,this}},{key:"withPush",value:function(){var re=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=re,this}},{key:"withLockedPosition",value:function(){var re=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=re,this}},{key:"setOrigin",value:function(re){return this._origin=re,this}},{key:"withDefaultOffsetX",value:function(re){return this._offsetX=re,this}},{key:"withDefaultOffsetY",value:function(re){return this._offsetY=re,this}},{key:"withTransformOriginOn",value:function(re){return this._transformOriginSelector=re,this}},{key:"_getOriginPoint",value:function(re,ve){var Ge;if("center"==ve.originX)Ge=re.left+re.width/2;else{var Ye=this._isRtl()?re.right:re.left,bt=this._isRtl()?re.left:re.right;Ge="start"==ve.originX?Ye:bt}return{x:Ge,y:"center"==ve.originY?re.top+re.height/2:"top"==ve.originY?re.top:re.bottom}}},{key:"_getOverlayPoint",value:function(re,ve,Ge){var Ye;return Ye="center"==Ge.overlayX?-ve.width/2:"start"===Ge.overlayX?this._isRtl()?-ve.width:0:this._isRtl()?0:-ve.width,{x:re.x+Ye,y:re.y+("center"==Ge.overlayY?-ve.height/2:"top"==Ge.overlayY?0:-ve.height)}}},{key:"_getOverlayFit",value:function(re,ve,Ge,Ye){var bt=St(ve),Lt=re.x,zt=re.y,tn=this._getOffset(Ye,"x"),sn=this._getOffset(Ye,"y");tn&&(Lt+=tn),sn&&(zt+=sn);var In=0-zt,Yn=zt+bt.height-Ge.height,xn=this._subtractOverflows(bt.width,0-Lt,Lt+bt.width-Ge.width),Sn=this._subtractOverflows(bt.height,In,Yn),$n=xn*Sn;return{visibleArea:$n,isCompletelyWithinViewport:bt.width*bt.height===$n,fitsInViewportVertically:Sn===bt.height,fitsInViewportHorizontally:xn==bt.width}}},{key:"_canFitWithFlexibleDimensions",value:function(re,ve,Ge){if(this._hasFlexibleDimensions){var Ye=Ge.bottom-ve.y,bt=Ge.right-ve.x,Lt=Vt(this._overlayRef.getConfig().minHeight),zt=Vt(this._overlayRef.getConfig().minWidth);return(re.fitsInViewportVertically||null!=Lt&&Lt<=Ye)&&(re.fitsInViewportHorizontally||null!=zt&&zt<=bt)}return!1}},{key:"_pushOverlayOnScreen",value:function(re,ve,Ge){if(this._previousPushAmount&&this._positionLocked)return{x:re.x+this._previousPushAmount.x,y:re.y+this._previousPushAmount.y};var hn,Cn,Ye=St(ve),bt=this._viewportRect,Lt=Math.max(re.x+Ye.width-bt.width,0),zt=Math.max(re.y+Ye.height-bt.height,0),tn=Math.max(bt.top-Ge.top-re.y,0),sn=Math.max(bt.left-Ge.left-re.x,0);return this._previousPushAmount={x:hn=Ye.width<=bt.width?sn||-Lt:re.x<this._viewportMargin?bt.left-Ge.left-re.x:0,y:Cn=Ye.height<=bt.height?tn||-zt:re.y<this._viewportMargin?bt.top-Ge.top-re.y:0},{x:re.x+hn,y:re.y+Cn}}},{key:"_applyPosition",value:function(re,ve){if(this._setTransformOrigin(re),this._setOverlayElementStyles(ve,re),this._setBoundingBoxStyles(ve,re),re.panelClass&&this._addPanelClasses(re.panelClass),this._lastPosition=re,this._positionChanges.observers.length){var Ge=this._getScrollVisibility(),Ye=new ot(re,Ge);this._positionChanges.next(Ye)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(re){if(this._transformOriginSelector){var Ge,ve=this._boundingBox.querySelectorAll(this._transformOriginSelector),Ye=re.overlayY;Ge="center"===re.overlayX?"center":this._isRtl()?"start"===re.overlayX?"right":"left":"start"===re.overlayX?"left":"right";for(var bt=0;bt<ve.length;bt++)ve[bt].style.transformOrigin="".concat(Ge," ").concat(Ye)}}},{key:"_calculateBoundingBoxRect",value:function(re,ve){var bt,Lt,zt,In,Yn,xn,Ge=this._viewportRect,Ye=this._isRtl();if("top"===ve.overlayY)bt=Ge.height-(Lt=re.y)+this._viewportMargin;else if("bottom"===ve.overlayY)bt=Ge.height-(zt=Ge.height-re.y+2*this._viewportMargin)+this._viewportMargin;else{var tn=Math.min(Ge.bottom-re.y+Ge.top,re.y),sn=this._lastBoundingBoxSize.height;Lt=re.y-tn,(bt=2*tn)>sn&&!this._isInitialRender&&!this._growAfterOpen&&(Lt=re.y-sn/2)}if("end"===ve.overlayX&&!Ye||"start"===ve.overlayX&&Ye)xn=Ge.width-re.x+this._viewportMargin,In=re.x-this._viewportMargin;else if("start"===ve.overlayX&&!Ye||"end"===ve.overlayX&&Ye)Yn=re.x,In=Ge.right-re.x;else{var Sn=Math.min(Ge.right-re.x+Ge.left,re.x),$n=this._lastBoundingBoxSize.width;Yn=re.x-Sn,(In=2*Sn)>$n&&!this._isInitialRender&&!this._growAfterOpen&&(Yn=re.x-$n/2)}return{top:Lt,left:Yn,bottom:zt,right:xn,width:In,height:bt}}},{key:"_setBoundingBoxStyles",value:function(re,ve){var Ge=this._calculateBoundingBoxRect(re,ve);!this._isInitialRender&&!this._growAfterOpen&&(Ge.height=Math.min(Ge.height,this._lastBoundingBoxSize.height),Ge.width=Math.min(Ge.width,this._lastBoundingBoxSize.width));var Ye={};if(this._hasExactPosition())Ye.top=Ye.left="0",Ye.bottom=Ye.right=Ye.maxHeight=Ye.maxWidth="",Ye.width=Ye.height="100%";else{var bt=this._overlayRef.getConfig().maxHeight,Lt=this._overlayRef.getConfig().maxWidth;Ye.height=(0,g.HM)(Ge.height),Ye.top=(0,g.HM)(Ge.top),Ye.bottom=(0,g.HM)(Ge.bottom),Ye.width=(0,g.HM)(Ge.width),Ye.left=(0,g.HM)(Ge.left),Ye.right=(0,g.HM)(Ge.right),Ye.alignItems="center"===ve.overlayX?"center":"end"===ve.overlayX?"flex-end":"flex-start",Ye.justifyContent="center"===ve.overlayY?"center":"bottom"===ve.overlayY?"flex-end":"flex-start",bt&&(Ye.maxHeight=(0,g.HM)(bt)),Lt&&(Ye.maxWidth=(0,g.HM)(Lt))}this._lastBoundingBoxSize=Ge,Kt(this._boundingBox.style,Ye)}},{key:"_resetBoundingBoxStyles",value:function(){Kt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){Kt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(re,ve){var Ge={},Ye=this._hasExactPosition(),bt=this._hasFlexibleDimensions,Lt=this._overlayRef.getConfig();if(Ye){var zt=this._viewportRuler.getViewportScrollPosition();Kt(Ge,this._getExactOverlayY(ve,re,zt)),Kt(Ge,this._getExactOverlayX(ve,re,zt))}else Ge.position="static";var tn="",sn=this._getOffset(ve,"x"),hn=this._getOffset(ve,"y");sn&&(tn+="translateX(".concat(sn,"px) ")),hn&&(tn+="translateY(".concat(hn,"px)")),Ge.transform=tn.trim(),Lt.maxHeight&&(Ye?Ge.maxHeight=(0,g.HM)(Lt.maxHeight):bt&&(Ge.maxHeight="")),Lt.maxWidth&&(Ye?Ge.maxWidth=(0,g.HM)(Lt.maxWidth):bt&&(Ge.maxWidth="")),Kt(this._pane.style,Ge)}},{key:"_getExactOverlayY",value:function(re,ve,Ge){var Ye={top:"",bottom:""},bt=this._getOverlayPoint(ve,this._overlayRect,re);this._isPushed&&(bt=this._pushOverlayOnScreen(bt,this._overlayRect,Ge));var Lt=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return bt.y-=Lt,"bottom"===re.overlayY?Ye.bottom="".concat(this._document.documentElement.clientHeight-(bt.y+this._overlayRect.height),"px"):Ye.top=(0,g.HM)(bt.y),Ye}},{key:"_getExactOverlayX",value:function(re,ve,Ge){var Ye={left:"",right:""},bt=this._getOverlayPoint(ve,this._overlayRect,re);return this._isPushed&&(bt=this._pushOverlayOnScreen(bt,this._overlayRect,Ge)),"right"==(this._isRtl()?"end"===re.overlayX?"left":"right":"end"===re.overlayX?"right":"left")?Ye.right="".concat(this._document.documentElement.clientWidth-(bt.x+this._overlayRect.width),"px"):Ye.left=(0,g.HM)(bt.x),Ye}},{key:"_getScrollVisibility",value:function(){var re=this._getOriginRect(),ve=this._pane.getBoundingClientRect(),Ge=this._scrollables.map(function(Ye){return Ye.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:le(re,Ge),isOriginOutsideView:se(re,Ge),isOverlayClipped:le(ve,Ge),isOverlayOutsideView:se(ve,Ge)}}},{key:"_subtractOverflows",value:function(re){for(var ve=arguments.length,Ge=new Array(ve>1?ve-1:0),Ye=1;Ye<ve;Ye++)Ge[Ye-1]=arguments[Ye];return Ge.reduce(function(bt,Lt){return bt-Math.max(Lt,0)},re)}},{key:"_getNarrowedViewportRect",value:function(){var re=this._document.documentElement.clientWidth,ve=this._document.documentElement.clientHeight,Ge=this._viewportRuler.getViewportScrollPosition();return{top:Ge.top+this._viewportMargin,left:Ge.left+this._viewportMargin,right:Ge.left+re-this._viewportMargin,bottom:Ge.top+ve-this._viewportMargin,width:re-2*this._viewportMargin,height:ve-2*this._viewportMargin}}},{key:"_isRtl",value:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"_hasExactPosition",value:function(){return!this._hasFlexibleDimensions||this._isPushed}},{key:"_getOffset",value:function(re,ve){return"x"===ve?null==re.offsetX?this._offsetX:re.offsetX:null==re.offsetY?this._offsetY:re.offsetY}},{key:"_validatePositions",value:function(){}},{key:"_addPanelClasses",value:function(re){var ve=this;this._pane&&(0,g.Eq)(re).forEach(function(Ge){""!==Ge&&-1===ve._appliedPanelClasses.indexOf(Ge)&&(ve._appliedPanelClasses.push(Ge),ve._pane.classList.add(Ge))})}},{key:"_clearPanelClasses",value:function(){var re=this;this._pane&&(this._appliedPanelClasses.forEach(function(ve){re._pane.classList.remove(ve)}),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var re=this._origin;if(re instanceof D.SBq)return re.nativeElement.getBoundingClientRect();if(re instanceof Element)return re.getBoundingClientRect();var ve=re.width||0,Ge=re.height||0;return{top:re.y,bottom:re.y+Ge,left:re.x,right:re.x+ve,height:Ge,width:ve}}}]),rt}();function Kt(rt,Te){for(var re in Te)Te.hasOwnProperty(re)&&(rt[re]=Te[re]);return rt}function Vt(rt){if("number"!=typeof rt&&null!=rt){var Te=rt.split(Et),re=(0,U.Z)(Te,2),Ge=re[1];return Ge&&"px"!==Ge?null:parseFloat(re[0])}return rt||null}function St(rt){return{top:Math.floor(rt.top),right:Math.floor(rt.right),bottom:Math.floor(rt.bottom),left:Math.floor(rt.left),width:Math.floor(rt.width),height:Math.floor(rt.height)}}var qt=function(){function rt(Te,re,ve,Ge,Ye,bt,Lt){(0,C.Z)(this,rt),this._preferredPositions=[],this._positionStrategy=new vt(ve,Ge,Ye,bt,Lt).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(Te,re),this.onPositionChange=this._positionStrategy.positionChanges}return(0,v.Z)(rt,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(re){this._overlayRef=re,this._positionStrategy.attach(re),this._direction&&(re.setDirection(this._direction),this._direction=null)}},{key:"dispose",value:function(){this._positionStrategy.dispose()}},{key:"detach",value:function(){this._positionStrategy.detach()}},{key:"apply",value:function(){this._positionStrategy.apply()}},{key:"recalculateLastPosition",value:function(){this._positionStrategy.reapplyLastPosition()}},{key:"withScrollableContainers",value:function(re){this._positionStrategy.withScrollableContainers(re)}},{key:"withFallbackPosition",value:function(re,ve,Ge,Ye){var bt=new Me(re,ve,Ge,Ye);return this._preferredPositions.push(bt),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"withDirection",value:function(re){return this._overlayRef?this._overlayRef.setDirection(re):this._direction=re,this}},{key:"withOffsetX",value:function(re){return this._positionStrategy.withDefaultOffsetX(re),this}},{key:"withOffsetY",value:function(re){return this._positionStrategy.withDefaultOffsetY(re),this}},{key:"withLockedPosition",value:function(re){return this._positionStrategy.withLockedPosition(re),this}},{key:"withPositions",value:function(re){return this._preferredPositions=re.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"setOrigin",value:function(re){return this._positionStrategy.setOrigin(re),this}}]),rt}(),Ct="cdk-global-overlay-wrapper",en=function(){function rt(){(0,C.Z)(this,rt),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return(0,v.Z)(rt,[{key:"attach",value:function(re){var ve=re.getConfig();this._overlayRef=re,this._width&&!ve.width&&re.updateSize({width:this._width}),this._height&&!ve.height&&re.updateSize({height:this._height}),re.hostElement.classList.add(Ct),this._isDisposed=!1}},{key:"top",value:function(){var re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=re,this._alignItems="flex-start",this}},{key:"left",value:function(){var re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=re,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=re,this._alignItems="flex-end",this}},{key:"right",value:function(){var re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=re,this._justifyContent="flex-end",this}},{key:"width",value:function(){var re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:re}):this._width=re,this}},{key:"height",value:function(){var re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:re}):this._height=re,this}},{key:"centerHorizontally",value:function(){var re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(re),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(re),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var re=this._overlayRef.overlayElement.style,ve=this._overlayRef.hostElement.style,Ge=this._overlayRef.getConfig(),Ye=Ge.width,bt=Ge.height,Lt=Ge.maxWidth,zt=Ge.maxHeight,tn=!("100%"!==Ye&&"100vw"!==Ye||Lt&&"100%"!==Lt&&"100vw"!==Lt),sn=!("100%"!==bt&&"100vh"!==bt||zt&&"100%"!==zt&&"100vh"!==zt);re.position=this._cssPosition,re.marginLeft=tn?"0":this._leftOffset,re.marginTop=sn?"0":this._topOffset,re.marginBottom=this._bottomOffset,re.marginRight=this._rightOffset,tn?ve.justifyContent="flex-start":"center"===this._justifyContent?ve.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?ve.justifyContent="flex-end":"flex-end"===this._justifyContent&&(ve.justifyContent="flex-start"):ve.justifyContent=this._justifyContent,ve.alignItems=sn?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var re=this._overlayRef.overlayElement.style,ve=this._overlayRef.hostElement,Ge=ve.style;ve.classList.remove(Ct),Ge.justifyContent=Ge.alignItems=re.marginTop=re.marginBottom=re.marginLeft=re.marginRight=re.position="",this._overlayRef=null,this._isDisposed=!0}}}]),rt}(),Ft=function(){var rt=function(){function Te(re,ve,Ge,Ye){(0,C.Z)(this,Te),this._viewportRuler=re,this._document=ve,this._platform=Ge,this._overlayContainer=Ye}return(0,v.Z)(Te,[{key:"global",value:function(){return new en}},{key:"connectedTo",value:function(ve,Ge,Ye){return new qt(Ge,Ye,ve,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(ve){return new vt(ve,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),Te}();return rt.\u0275fac=function(re){return new(re||rt)(D.LFG(P.rL),D.LFG(y.K0),D.LFG(M.t4),D.LFG(ct))},rt.\u0275prov=D.Yz7({factory:function(){return new rt(D.LFG(P.rL),D.LFG(y.K0),D.LFG(M.t4),D.LFG(ct))},token:rt,providedIn:"root"}),rt}(),on=0,En=function(){var rt=function(){function Te(re,ve,Ge,Ye,bt,Lt,zt,tn,sn,hn,Cn){(0,C.Z)(this,Te),this.scrollStrategies=re,this._overlayContainer=ve,this._componentFactoryResolver=Ge,this._positionBuilder=Ye,this._keyboardDispatcher=bt,this._injector=Lt,this._ngZone=zt,this._document=tn,this._directionality=sn,this._location=hn,this._outsideClickDispatcher=Cn}return(0,v.Z)(Te,[{key:"create",value:function(ve){var Ge=this._createHostElement(),Ye=this._createPaneElement(Ge),bt=this._createPortalOutlet(Ye),Lt=new ae(ve);return Lt.direction=Lt.direction||this._directionality.value,new Je(bt,Ge,Ye,Lt,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(ve){var Ge=this._document.createElement("div");return Ge.id="cdk-overlay-".concat(on++),Ge.classList.add("cdk-overlay-pane"),ve.appendChild(Ge),Ge}},{key:"_createHostElement",value:function(){var ve=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(ve),ve}},{key:"_createPortalOutlet",value:function(ve){return this._appRef||(this._appRef=this._injector.get(D.z2F)),new k.u0(ve,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),Te}();return rt.\u0275fac=function(re){return new(re||rt)(D.LFG(ue),D.LFG(ct),D.LFG(D._Vd),D.LFG(Ft),D.LFG(Bt),D.LFG(D.zs3),D.LFG(D.R0b),D.LFG(y.K0),D.LFG(A.Is),D.LFG(y.Ye),D.LFG(Se))},rt.\u0275prov=D.Yz7({token:rt,factory:rt.\u0275fac}),rt}(),Zn=[{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"}],Rn=new D.OlP("cdk-connected-overlay-scroll-strategy"),tr=function(){var rt=function Te(re){(0,C.Z)(this,Te),this.elementRef=re};return rt.\u0275fac=function(re){return new(re||rt)(D.Y36(D.SBq))},rt.\u0275dir=D.lG2({type:rt,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),rt}(),Nn=function(){var rt=function(){function Te(re,ve,Ge,Ye,bt){(0,C.Z)(this,Te),this._overlay=re,this._dir=bt,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=E.w.EMPTY,this._attachSubscription=E.w.EMPTY,this._detachSubscription=E.w.EMPTY,this._positionSubscription=E.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new D.vpe,this.positionChange=new D.vpe,this.attach=new D.vpe,this.detach=new D.vpe,this.overlayKeydown=new D.vpe,this.overlayOutsideClick=new D.vpe,this._templatePortal=new k.UE(ve,Ge),this._scrollStrategyFactory=Ye,this.scrollStrategy=this._scrollStrategyFactory()}return(0,v.Z)(Te,[{key:"offsetX",get:function(){return this._offsetX},set:function(ve){this._offsetX=ve,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(ve){this._offsetY=ve,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(ve){this._hasBackdrop=(0,g.Ig)(ve)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(ve){this._lockPosition=(0,g.Ig)(ve)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(ve){this._flexibleDimensions=(0,g.Ig)(ve)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(ve){this._growAfterOpen=(0,g.Ig)(ve)}},{key:"push",get:function(){return this._push},set:function(ve){this._push=(0,g.Ig)(ve)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(ve){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),ve.origin&&this.open&&this._position.apply()),ve.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var ve=this;(!this.positions||!this.positions.length)&&(this.positions=Zn);var Ge=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=Ge.attachments().subscribe(function(){return ve.attach.emit()}),this._detachSubscription=Ge.detachments().subscribe(function(){return ve.detach.emit()}),Ge.keydownEvents().subscribe(function(Ye){ve.overlayKeydown.next(Ye),Ye.keyCode===j.hY&&!ve.disableClose&&!(0,j.Vb)(Ye)&&(Ye.preventDefault(),ve._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(Ye){ve.overlayOutsideClick.next(Ye)})}},{key:"_buildConfig",value:function(){var ve=this._position=this.positionStrategy||this._createPositionStrategy(),Ge=new ae({direction:this._dir,positionStrategy:ve,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(Ge.width=this.width),(this.height||0===this.height)&&(Ge.height=this.height),(this.minWidth||0===this.minWidth)&&(Ge.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Ge.minHeight=this.minHeight),this.backdropClass&&(Ge.backdropClass=this.backdropClass),this.panelClass&&(Ge.panelClass=this.panelClass),Ge}},{key:"_updatePositionStrategy",value:function(ve){var Ge=this,Ye=this.positions.map(function(bt){return{originX:bt.originX,originY:bt.originY,overlayX:bt.overlayX,overlayY:bt.overlayY,offsetX:bt.offsetX||Ge.offsetX,offsetY:bt.offsetY||Ge.offsetY,panelClass:bt.panelClass||void 0}});return ve.setOrigin(this.origin.elementRef).withPositions(Ye).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var ve=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(ve),ve}},{key:"_attachOverlay",value:function(){var ve=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(Ge){ve.backdropClick.emit(Ge)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,L.o)(function(){return ve.positionChange.observers.length>0})).subscribe(function(Ge){ve.positionChange.emit(Ge),0===ve.positionChange.observers.length&&ve._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),Te}();return rt.\u0275fac=function(re){return new(re||rt)(D.Y36(En),D.Y36(D.Rgc),D.Y36(D.s_b),D.Y36(Rn),D.Y36(A.Is,8))},rt.\u0275dir=D.lG2({type:rt,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[D.TTD]}),rt}(),yr={provide:Rn,deps:[En],useFactory:function(rt){return function(){return rt.scrollStrategies.reposition()}}},Wt=function(){var rt=function Te(){(0,C.Z)(this,Te)};return rt.\u0275fac=function(re){return new(re||rt)},rt.\u0275mod=D.oAB({type:rt}),rt.\u0275inj=D.cJS({providers:[En,yr],imports:[[A.vT,k.eL,P.Cl],P.Cl]}),rt}()},15427:function(ce,q,f){"use strict";f.d(q,{t4:function(){return T},ud:function(){return I},sA:function(){return L},ht:function(){return O},kV:function(){return S},_i:function(){return N},qK:function(){return P},i$:function(){return A},Mq:function(){return k}});var Z,U=f(18967),B=f(65508),V=f(40098);try{Z="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(j){Z=!1}var C,D,y,g,E,T=function(){var j=function K(W){(0,U.Z)(this,K),this._platformId=W,this.isBrowser=this._platformId?(0,V.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Z)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT};return j.\u0275fac=function(W){return new(W||j)(B.LFG(B.Lbi))},j.\u0275prov=B.Yz7({factory:function(){return new j(B.LFG(B.Lbi))},token:j,providedIn:"root"}),j}(),I=function(){var j=function K(){(0,U.Z)(this,K)};return j.\u0275fac=function(W){return new(W||j)},j.\u0275mod=B.oAB({type:j}),j.\u0275inj=B.cJS({}),j}(),v=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function P(){if(C)return C;if("object"!=typeof document||!document)return C=new Set(v);var j=document.createElement("input");return C=new Set(v.filter(function(K){return j.setAttribute("type",K),j.type===K}))}function A(j){return function(){if(null==D&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return D=!0}}))}finally{D=D||!1}return D}()?j:!!j.capture}function k(){if(null==g){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return g=!1;if("scrollBehavior"in document.documentElement.style)g=!0;else{var j=Element.prototype.scrollTo;g=!!j&&!/\{\s*\[native code\]\s*\}/.test(j.toString())}}return g}function N(){if("object"!=typeof document||!document)return 0;if(null==y){var j=document.createElement("div"),K=j.style;j.dir="rtl",K.width="1px",K.overflow="auto",K.visibility="hidden",K.pointerEvents="none",K.position="absolute";var W=document.createElement("div"),J=W.style;J.width="2px",J.height="1px",j.appendChild(W),document.body.appendChild(j),y=0,0===j.scrollLeft&&(j.scrollLeft=1,y=0===j.scrollLeft?1:2),j.parentNode.removeChild(j)}return y}function S(j){if(function(){if(null==E){var j="undefined"!=typeof document?document.head:null;E=!(!j||!j.createShadowRoot&&!j.attachShadow)}return E}()){var K=j.getRootNode?j.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&K instanceof ShadowRoot)return K}return null}function O(){for(var j="undefined"!=typeof document&&document?document.activeElement:null;j&&j.shadowRoot;){var K=j.shadowRoot.activeElement;if(K===j)break;j=K}return j}function L(j){return j.composedPath?j.composedPath()[0]:j.target}},80785:function(ce,q,f){"use strict";f.d(q,{en:function(){return O},ig:function(){return W},Pl:function(){return oe},C5:function(){return E},u0:function(){return j},eL:function(){return se},UE:function(){return x}});var U=f(88009),B=f(20901),V=f(89200),Z=f(10509),T=f(97154),I=f(18967),C=f(14105),v=f(65508),P=f(40098),N=function(){function de(){(0,I.Z)(this,de)}return(0,C.Z)(de,[{key:"attach",value:function(ae){return this._attachedHost=ae,ae.attach(this)}},{key:"detach",value:function(){var ae=this._attachedHost;null!=ae&&(this._attachedHost=null,ae.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(ae){this._attachedHost=ae}}]),de}(),E=function(de){(0,Z.Z)(ae,de);var ue=(0,T.Z)(ae);function ae(Me,ye,ot,He){var _t;return(0,I.Z)(this,ae),(_t=ue.call(this)).component=Me,_t.viewContainerRef=ye,_t.injector=ot,_t.componentFactoryResolver=He,_t}return ae}(N),x=function(de){(0,Z.Z)(ae,de);var ue=(0,T.Z)(ae);function ae(Me,ye,ot){var He;return(0,I.Z)(this,ae),(He=ue.call(this)).templateRef=Me,He.viewContainerRef=ye,He.context=ot,He}return(0,C.Z)(ae,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(ye){var ot=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=ot,(0,B.Z)((0,V.Z)(ae.prototype),"attach",this).call(this,ye)}},{key:"detach",value:function(){return this.context=void 0,(0,B.Z)((0,V.Z)(ae.prototype),"detach",this).call(this)}}]),ae}(N),S=function(de){(0,Z.Z)(ae,de);var ue=(0,T.Z)(ae);function ae(Me){var ye;return(0,I.Z)(this,ae),(ye=ue.call(this)).element=Me instanceof v.SBq?Me.nativeElement:Me,ye}return ae}(N),O=function(){function de(){(0,I.Z)(this,de),this._isDisposed=!1,this.attachDomPortal=null}return(0,C.Z)(de,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(ae){return ae instanceof E?(this._attachedPortal=ae,this.attachComponentPortal(ae)):ae instanceof x?(this._attachedPortal=ae,this.attachTemplatePortal(ae)):this.attachDomPortal&&ae instanceof S?(this._attachedPortal=ae,this.attachDomPortal(ae)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(ae){this._disposeFn=ae}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),de}(),j=function(de){(0,Z.Z)(ae,de);var ue=(0,T.Z)(ae);function ae(Me,ye,ot,He,_t){var yt,Bt;return(0,I.Z)(this,ae),(Bt=ue.call(this)).outletElement=Me,Bt._componentFactoryResolver=ye,Bt._appRef=ot,Bt._defaultInjector=He,Bt.attachDomPortal=function(Se){var De=Se.element,Ve=Bt._document.createComment("dom-portal");De.parentNode.insertBefore(Ve,De),Bt.outletElement.appendChild(De),Bt._attachedPortal=Se,(0,B.Z)((yt=(0,U.Z)(Bt),(0,V.Z)(ae.prototype)),"setDisposeFn",yt).call(yt,function(){Ve.parentNode&&Ve.parentNode.replaceChild(De,Ve)})},Bt._document=_t,Bt}return(0,C.Z)(ae,[{key:"attachComponentPortal",value:function(ye){var yt,ot=this,_t=(ye.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ye.component);return ye.viewContainerRef?(yt=ye.viewContainerRef.createComponent(_t,ye.viewContainerRef.length,ye.injector||ye.viewContainerRef.injector),this.setDisposeFn(function(){return yt.destroy()})):(yt=_t.create(ye.injector||this._defaultInjector),this._appRef.attachView(yt.hostView),this.setDisposeFn(function(){ot._appRef.detachView(yt.hostView),yt.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(yt)),this._attachedPortal=ye,yt}},{key:"attachTemplatePortal",value:function(ye){var ot=this,He=ye.viewContainerRef,_t=He.createEmbeddedView(ye.templateRef,ye.context);return _t.rootNodes.forEach(function(yt){return ot.outletElement.appendChild(yt)}),_t.detectChanges(),this.setDisposeFn(function(){var yt=He.indexOf(_t);-1!==yt&&He.remove(yt)}),this._attachedPortal=ye,_t}},{key:"dispose",value:function(){(0,B.Z)((0,V.Z)(ae.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(ye){return ye.hostView.rootNodes[0]}}]),ae}(O),W=function(){var de=function(ue){(0,Z.Z)(Me,ue);var ae=(0,T.Z)(Me);function Me(ye,ot){return(0,I.Z)(this,Me),ae.call(this,ye,ot)}return Me}(x);return de.\u0275fac=function(ae){return new(ae||de)(v.Y36(v.Rgc),v.Y36(v.s_b))},de.\u0275dir=v.lG2({type:de,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[v.qOj]}),de}(),oe=function(){var de=function(ue){(0,Z.Z)(Me,ue);var ae=(0,T.Z)(Me);function Me(ye,ot,He){var _t,yt;return(0,I.Z)(this,Me),(yt=ae.call(this))._componentFactoryResolver=ye,yt._viewContainerRef=ot,yt._isInitialized=!1,yt.attached=new v.vpe,yt.attachDomPortal=function(Bt){var Se=Bt.element,De=yt._document.createComment("dom-portal");Bt.setAttachedHost((0,U.Z)(yt)),Se.parentNode.insertBefore(De,Se),yt._getRootNode().appendChild(Se),yt._attachedPortal=Bt,(0,B.Z)((_t=(0,U.Z)(yt),(0,V.Z)(Me.prototype)),"setDisposeFn",_t).call(_t,function(){De.parentNode&&De.parentNode.replaceChild(Se,De)})},yt._document=He,yt}return(0,C.Z)(Me,[{key:"portal",get:function(){return this._attachedPortal},set:function(ot){this.hasAttached()&&!ot&&!this._isInitialized||(this.hasAttached()&&(0,B.Z)((0,V.Z)(Me.prototype),"detach",this).call(this),ot&&(0,B.Z)((0,V.Z)(Me.prototype),"attach",this).call(this,ot),this._attachedPortal=ot)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){(0,B.Z)((0,V.Z)(Me.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(ot){ot.setAttachedHost(this);var He=null!=ot.viewContainerRef?ot.viewContainerRef:this._viewContainerRef,yt=(ot.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ot.component),Bt=He.createComponent(yt,He.length,ot.injector||He.injector);return He!==this._viewContainerRef&&this._getRootNode().appendChild(Bt.hostView.rootNodes[0]),(0,B.Z)((0,V.Z)(Me.prototype),"setDisposeFn",this).call(this,function(){return Bt.destroy()}),this._attachedPortal=ot,this._attachedRef=Bt,this.attached.emit(Bt),Bt}},{key:"attachTemplatePortal",value:function(ot){var He=this;ot.setAttachedHost(this);var _t=this._viewContainerRef.createEmbeddedView(ot.templateRef,ot.context);return(0,B.Z)((0,V.Z)(Me.prototype),"setDisposeFn",this).call(this,function(){return He._viewContainerRef.clear()}),this._attachedPortal=ot,this._attachedRef=_t,this.attached.emit(_t),_t}},{key:"_getRootNode",value:function(){var ot=this._viewContainerRef.element.nativeElement;return ot.nodeType===ot.ELEMENT_NODE?ot:ot.parentNode}}]),Me}(O);return de.\u0275fac=function(ae){return new(ae||de)(v.Y36(v._Vd),v.Y36(v.s_b),v.Y36(P.K0))},de.\u0275dir=v.lG2({type:de,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[v.qOj]}),de}(),se=function(){var de=function ue(){(0,I.Z)(this,ue)};return de.\u0275fac=function(ae){return new(ae||de)},de.\u0275mod=v.oAB({type:de}),de.\u0275inj=v.cJS({}),de}()},28722:function(ce,q,f){"use strict";f.d(q,{PQ:function(){return Bt},ZD:function(){return vt},mF:function(){return yt},Cl:function(){return Kt},rL:function(){return De}}),f(27235),f(36683),f(20901),f(89200),f(10509),f(97154);var C=f(18967),v=f(14105),P=f(78081),D=f(65508),M=f(68707),A=f(43161),y=f(89797),g=f(33090),O=(f(58172),f(8285),f(5051),f(17504),f(76161),f(54562)),L=f(58780),j=f(44213),te=(f(57682),f(4363),f(34487),f(61106),f(15427)),se=f(40098),le=f(8392);f(37429);var yt=function(){var Vt=function(){function St(qt,Ct,en){(0,C.Z)(this,St),this._ngZone=qt,this._platform=Ct,this._scrolled=new M.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=en}return(0,v.Z)(St,[{key:"register",value:function(Ct){var en=this;this.scrollContainers.has(Ct)||this.scrollContainers.set(Ct,Ct.elementScrolled().subscribe(function(){return en._scrolled.next(Ct)}))}},{key:"deregister",value:function(Ct){var en=this.scrollContainers.get(Ct);en&&(en.unsubscribe(),this.scrollContainers.delete(Ct))}},{key:"scrolled",value:function(){var Ct=this,en=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new y.y(function(Ft){Ct._globalSubscription||Ct._addGlobalListener();var on=en>0?Ct._scrolled.pipe((0,O.e)(en)).subscribe(Ft):Ct._scrolled.subscribe(Ft);return Ct._scrolledCount++,function(){on.unsubscribe(),Ct._scrolledCount--,Ct._scrolledCount||Ct._removeGlobalListener()}}):(0,A.of)()}},{key:"ngOnDestroy",value:function(){var Ct=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(en,Ft){return Ct.deregister(Ft)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(Ct,en){var Ft=this.getAncestorScrollContainers(Ct);return this.scrolled(en).pipe((0,L.h)(function(on){return!on||Ft.indexOf(on)>-1}))}},{key:"getAncestorScrollContainers",value:function(Ct){var en=this,Ft=[];return this.scrollContainers.forEach(function(on,En){en._scrollableContainsElement(En,Ct)&&Ft.push(En)}),Ft}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(Ct,en){var Ft=(0,P.fI)(en),on=Ct.getElementRef().nativeElement;do{if(Ft==on)return!0}while(Ft=Ft.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var Ct=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){var en=Ct._getWindow();return(0,g.R)(en.document,"scroll").subscribe(function(){return Ct._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),St}();return Vt.\u0275fac=function(qt){return new(qt||Vt)(D.LFG(D.R0b),D.LFG(te.t4),D.LFG(se.K0,8))},Vt.\u0275prov=D.Yz7({factory:function(){return new Vt(D.LFG(D.R0b),D.LFG(te.t4),D.LFG(se.K0,8))},token:Vt,providedIn:"root"}),Vt}(),Bt=function(){var Vt=function(){function St(qt,Ct,en,Ft){var on=this;(0,C.Z)(this,St),this.elementRef=qt,this.scrollDispatcher=Ct,this.ngZone=en,this.dir=Ft,this._destroyed=new M.xQ,this._elementScrolled=new y.y(function(En){return on.ngZone.runOutsideAngular(function(){return(0,g.R)(on.elementRef.nativeElement,"scroll").pipe((0,j.R)(on._destroyed)).subscribe(En)})})}return(0,v.Z)(St,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(Ct){var en=this.elementRef.nativeElement,Ft=this.dir&&"rtl"==this.dir.value;null==Ct.left&&(Ct.left=Ft?Ct.end:Ct.start),null==Ct.right&&(Ct.right=Ft?Ct.start:Ct.end),null!=Ct.bottom&&(Ct.top=en.scrollHeight-en.clientHeight-Ct.bottom),Ft&&0!=(0,te._i)()?(null!=Ct.left&&(Ct.right=en.scrollWidth-en.clientWidth-Ct.left),2==(0,te._i)()?Ct.left=Ct.right:1==(0,te._i)()&&(Ct.left=Ct.right?-Ct.right:Ct.right)):null!=Ct.right&&(Ct.left=en.scrollWidth-en.clientWidth-Ct.right),this._applyScrollToOptions(Ct)}},{key:"_applyScrollToOptions",value:function(Ct){var en=this.elementRef.nativeElement;(0,te.Mq)()?en.scrollTo(Ct):(null!=Ct.top&&(en.scrollTop=Ct.top),null!=Ct.left&&(en.scrollLeft=Ct.left))}},{key:"measureScrollOffset",value:function(Ct){var en="left",on=this.elementRef.nativeElement;if("top"==Ct)return on.scrollTop;if("bottom"==Ct)return on.scrollHeight-on.clientHeight-on.scrollTop;var En=this.dir&&"rtl"==this.dir.value;return"start"==Ct?Ct=En?"right":en:"end"==Ct&&(Ct=En?en:"right"),En&&2==(0,te._i)()?Ct==en?on.scrollWidth-on.clientWidth-on.scrollLeft:on.scrollLeft:En&&1==(0,te._i)()?Ct==en?on.scrollLeft+on.scrollWidth-on.clientWidth:-on.scrollLeft:Ct==en?on.scrollLeft:on.scrollWidth-on.clientWidth-on.scrollLeft}}]),St}();return Vt.\u0275fac=function(qt){return new(qt||Vt)(D.Y36(D.SBq),D.Y36(yt),D.Y36(D.R0b),D.Y36(le.Is,8))},Vt.\u0275dir=D.lG2({type:Vt,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Vt}(),De=function(){var Vt=function(){function St(qt,Ct,en){var Ft=this;(0,C.Z)(this,St),this._platform=qt,this._change=new M.xQ,this._changeListener=function(on){Ft._change.next(on)},this._document=en,Ct.runOutsideAngular(function(){if(qt.isBrowser){var on=Ft._getWindow();on.addEventListener("resize",Ft._changeListener),on.addEventListener("orientationchange",Ft._changeListener)}Ft.change().subscribe(function(){return Ft._viewportSize=null})})}return(0,v.Z)(St,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var Ct=this._getWindow();Ct.removeEventListener("resize",this._changeListener),Ct.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var Ct={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),Ct}},{key:"getViewportRect",value:function(){var Ct=this.getViewportScrollPosition(),en=this.getViewportSize(),Ft=en.width,on=en.height;return{top:Ct.top,left:Ct.left,bottom:Ct.top+on,right:Ct.left+Ft,height:on,width:Ft}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var Ct=this._document,en=this._getWindow(),Ft=Ct.documentElement,on=Ft.getBoundingClientRect();return{top:-on.top||Ct.body.scrollTop||en.scrollY||Ft.scrollTop||0,left:-on.left||Ct.body.scrollLeft||en.scrollX||Ft.scrollLeft||0}}},{key:"change",value:function(){var Ct=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return Ct>0?this._change.pipe((0,O.e)(Ct)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var Ct=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:Ct.innerWidth,height:Ct.innerHeight}:{width:0,height:0}}}]),St}();return Vt.\u0275fac=function(qt){return new(qt||Vt)(D.LFG(te.t4),D.LFG(D.R0b),D.LFG(se.K0,8))},Vt.\u0275prov=D.Yz7({factory:function(){return new Vt(D.LFG(te.t4),D.LFG(D.R0b),D.LFG(se.K0,8))},token:Vt,providedIn:"root"}),Vt}(),vt=function(){var Vt=function St(){(0,C.Z)(this,St)};return Vt.\u0275fac=function(qt){return new(qt||Vt)},Vt.\u0275mod=D.oAB({type:Vt}),Vt.\u0275inj=D.cJS({}),Vt}(),Kt=function(){var Vt=function St(){(0,C.Z)(this,St)};return Vt.\u0275fac=function(qt){return new(qt||Vt)},Vt.\u0275mod=D.oAB({type:Vt}),Vt.\u0275inj=D.cJS({imports:[[le.vT,te.ud,vt],le.vT,vt]}),Vt}()},78081:function(ce,q,f){"use strict";f.d(q,{t6:function(){return Z},Eq:function(){return T},Ig:function(){return B},HM:function(){return I},fI:function(){return C},su:function(){return V}});var U=f(65508);function B(P){return null!=P&&"false"!=="".concat(P)}function V(P){var D=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Z(P)?Number(P):D}function Z(P){return!isNaN(parseFloat(P))&&!isNaN(Number(P))}function T(P){return Array.isArray(P)?P:[P]}function I(P){return null==P?"":"string"==typeof P?P:"".concat(P,"px")}function C(P){return P instanceof U.SBq?P.nativeElement:P}},40098:function(ce,q,f){"use strict";f.d(q,{mr:function(){return J},Ov:function(){return ho},ez:function(){return Fn},K0:function(){return y},Do:function(){return te},V_:function(){return N},Ye:function(){return se},S$:function(){return K},mk:function(){return Xt},sg:function(){return jn},O5:function(){return bi},PC:function(){return ji},RF:function(){return Io},n9:function(){return $o},ED:function(){return Eo},tP:function(){return Ji},b0:function(){return oe},lw:function(){return g},EM:function(){return za},JF:function(){return Tl},NF:function(){return zi},w_:function(){return A},bD:function(){return Da},q:function(){return P},Mx:function(){return Qt},HT:function(){return M}});var U=f(36683),B=f(27235),V=f(10509),Z=f(97154),T=f(14105),I=f(18967),C=f(65508),v=null;function P(){return v}function M(fe){v||(v=fe)}var A=function fe(){(0,I.Z)(this,fe)},y=new C.OlP("DocumentToken"),g=function(){var fe=function(){function Re(){(0,I.Z)(this,Re)}return(0,T.Z)(Re,[{key:"historyGo",value:function(je){throw new Error("Not implemented")}}]),Re}();return fe.\u0275fac=function($e){return new($e||fe)},fe.\u0275prov=(0,C.Yz7)({factory:k,token:fe,providedIn:"platform"}),fe}();function k(){return(0,C.LFG)(E)}var N=new C.OlP("Location Initialized"),E=function(){var fe=function(Re){(0,V.Z)(je,Re);var $e=(0,Z.Z)(je);function je(ie){var he;return(0,I.Z)(this,je),(he=$e.call(this))._doc=ie,he._init(),he}return(0,T.Z)(je,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return P().getBaseHref(this._doc)}},{key:"onPopState",value:function(he){var _e=P().getGlobalEventTarget(this._doc,"window");return _e.addEventListener("popstate",he,!1),function(){return _e.removeEventListener("popstate",he)}}},{key:"onHashChange",value:function(he){var _e=P().getGlobalEventTarget(this._doc,"window");return _e.addEventListener("hashchange",he,!1),function(){return _e.removeEventListener("hashchange",he)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(he){this.location.pathname=he}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(he,_e,be){x()?this._history.pushState(he,_e,be):this.location.hash=be}},{key:"replaceState",value:function(he,_e,be){x()?this._history.replaceState(he,_e,be):this.location.hash=be}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var he=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(he)}},{key:"getState",value:function(){return this._history.state}}]),je}(g);return fe.\u0275fac=function($e){return new($e||fe)(C.LFG(y))},fe.\u0275prov=(0,C.Yz7)({factory:S,token:fe,providedIn:"platform"}),fe}();function x(){return!!window.history.pushState}function S(){return new E((0,C.LFG)(y))}function O(fe,Re){if(0==fe.length)return Re;if(0==Re.length)return fe;var $e=0;return fe.endsWith("/")&&$e++,Re.startsWith("/")&&$e++,2==$e?fe+Re.substring(1):1==$e?fe+Re:fe+"/"+Re}function L(fe){var Re=fe.match(/#|\?|$/),$e=Re&&Re.index||fe.length;return fe.slice(0,$e-("/"===fe[$e-1]?1:0))+fe.slice($e)}function j(fe){return fe&&"?"!==fe[0]?"?"+fe:fe}var K=function(){var fe=function(){function Re(){(0,I.Z)(this,Re)}return(0,T.Z)(Re,[{key:"historyGo",value:function(je){throw new Error("Not implemented")}}]),Re}();return fe.\u0275fac=function($e){return new($e||fe)},fe.\u0275prov=(0,C.Yz7)({factory:W,token:fe,providedIn:"root"}),fe}();function W(fe){var Re=(0,C.LFG)(y).location;return new oe((0,C.LFG)(g),Re&&Re.origin||"")}var J=new C.OlP("appBaseHref"),oe=function(){var fe=function(Re){(0,V.Z)(je,Re);var $e=(0,Z.Z)(je);function je(ie,he){var _e;if((0,I.Z)(this,je),(_e=$e.call(this))._platformLocation=ie,_e._removeListenerFns=[],null==he&&(he=_e._platformLocation.getBaseHrefFromDOM()),null==he)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return _e._baseHref=he,_e}return(0,T.Z)(je,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(he){this._removeListenerFns.push(this._platformLocation.onPopState(he),this._platformLocation.onHashChange(he))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(he){return O(this._baseHref,he)}},{key:"path",value:function(){var he=arguments.length>0&&void 0!==arguments[0]&&arguments[0],_e=this._platformLocation.pathname+j(this._platformLocation.search),be=this._platformLocation.hash;return be&&he?"".concat(_e).concat(be):_e}},{key:"pushState",value:function(he,_e,be,Pe){var ze=this.prepareExternalUrl(be+j(Pe));this._platformLocation.pushState(he,_e,ze)}},{key:"replaceState",value:function(he,_e,be,Pe){var ze=this.prepareExternalUrl(be+j(Pe));this._platformLocation.replaceState(he,_e,ze)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var _e,be,he=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(be=(_e=this._platformLocation).historyGo)||void 0===be||be.call(_e,he)}}]),je}(K);return fe.\u0275fac=function($e){return new($e||fe)(C.LFG(g),C.LFG(J,8))},fe.\u0275prov=C.Yz7({token:fe,factory:fe.\u0275fac}),fe}(),te=function(){var fe=function(Re){(0,V.Z)(je,Re);var $e=(0,Z.Z)(je);function je(ie,he){var _e;return(0,I.Z)(this,je),(_e=$e.call(this))._platformLocation=ie,_e._baseHref="",_e._removeListenerFns=[],null!=he&&(_e._baseHref=he),_e}return(0,T.Z)(je,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(he){this._removeListenerFns.push(this._platformLocation.onPopState(he),this._platformLocation.onHashChange(he))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var _e=this._platformLocation.hash;return null==_e&&(_e="#"),_e.length>0?_e.substring(1):_e}},{key:"prepareExternalUrl",value:function(he){var _e=O(this._baseHref,he);return _e.length>0?"#"+_e:_e}},{key:"pushState",value:function(he,_e,be,Pe){var ze=this.prepareExternalUrl(be+j(Pe));0==ze.length&&(ze=this._platformLocation.pathname),this._platformLocation.pushState(he,_e,ze)}},{key:"replaceState",value:function(he,_e,be,Pe){var ze=this.prepareExternalUrl(be+j(Pe));0==ze.length&&(ze=this._platformLocation.pathname),this._platformLocation.replaceState(he,_e,ze)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var _e,be,he=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(be=(_e=this._platformLocation).historyGo)||void 0===be||be.call(_e,he)}}]),je}(K);return fe.\u0275fac=function($e){return new($e||fe)(C.LFG(g),C.LFG(J,8))},fe.\u0275prov=C.Yz7({token:fe,factory:fe.\u0275fac}),fe}(),se=function(){var fe=function(){function Re($e,je){var ie=this;(0,I.Z)(this,Re),this._subject=new C.vpe,this._urlChangeListeners=[],this._platformStrategy=$e;var he=this._platformStrategy.getBaseHref();this._platformLocation=je,this._baseHref=L(ue(he)),this._platformStrategy.onPopState(function(_e){ie._subject.emit({url:ie.path(!0),pop:!0,state:_e.state,type:_e.type})})}return(0,T.Z)(Re,[{key:"path",value:function(){var je=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(je))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(je){var ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(je+j(ie))}},{key:"normalize",value:function(je){return Re.stripTrailingSlash(function(fe,Re){return fe&&Re.startsWith(fe)?Re.substring(fe.length):Re}(this._baseHref,ue(je)))}},{key:"prepareExternalUrl",value:function(je){return je&&"/"!==je[0]&&(je="/"+je),this._platformStrategy.prepareExternalUrl(je)}},{key:"go",value:function(je){var ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",he=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(he,"",je,ie),this._notifyUrlChangeListeners(this.prepareExternalUrl(je+j(ie)),he)}},{key:"replaceState",value:function(je){var ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",he=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(he,"",je,ie),this._notifyUrlChangeListeners(this.prepareExternalUrl(je+j(ie)),he)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var ie,he,je=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(he=(ie=this._platformStrategy).historyGo)||void 0===he||he.call(ie,je)}},{key:"onUrlChange",value:function(je){var ie=this;this._urlChangeListeners.push(je),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(he){ie._notifyUrlChangeListeners(he.url,he.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var je=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",ie=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(he){return he(je,ie)})}},{key:"subscribe",value:function(je,ie,he){return this._subject.subscribe({next:je,error:ie,complete:he})}}]),Re}();return fe.\u0275fac=function($e){return new($e||fe)(C.LFG(K),C.LFG(g))},fe.normalizeQueryParams=j,fe.joinWithSlash=O,fe.stripTrailingSlash=L,fe.\u0275prov=(0,C.Yz7)({factory:le,token:fe,providedIn:"root"}),fe}();function le(){return new se((0,C.LFG)(K),(0,C.LFG)(g))}function ue(fe){return fe.replace(/\/index.html$/,"")}var ye=function(fe){return fe[fe.Zero=0]="Zero",fe[fe.One=1]="One",fe[fe.Two=2]="Two",fe[fe.Few=3]="Few",fe[fe.Many=4]="Many",fe[fe.Other=5]="Other",fe}({}),En=C.kL8,Pt=function fe(){(0,I.Z)(this,fe)},It=function(){var fe=function(Re){(0,V.Z)(je,Re);var $e=(0,Z.Z)(je);function je(ie){var he;return(0,I.Z)(this,je),(he=$e.call(this)).locale=ie,he}return(0,T.Z)(je,[{key:"getPluralCategory",value:function(he,_e){switch(En(_e||this.locale)(he)){case ye.Zero:return"zero";case ye.One:return"one";case ye.Two:return"two";case ye.Few:return"few";case ye.Many:return"many";default:return"other"}}}]),je}(Pt);return fe.\u0275fac=function($e){return new($e||fe)(C.LFG(C.soG))},fe.\u0275prov=C.Yz7({token:fe,factory:fe.\u0275fac}),fe}();function Qt(fe,Re){Re=encodeURIComponent(Re);var je,$e=(0,U.Z)(fe.split(";"));try{for($e.s();!(je=$e.n()).done;){var ie=je.value,he=ie.indexOf("="),_e=-1==he?[ie,""]:[ie.slice(0,he),ie.slice(he+1)],be=(0,B.Z)(_e,2),ze=be[1];if(be[0].trim()===Re)return decodeURIComponent(ze)}}catch(Tt){$e.e(Tt)}finally{$e.f()}return null}var Xt=function(){var fe=function(){function Re($e,je,ie,he){(0,I.Z)(this,Re),this._iterableDiffers=$e,this._keyValueDiffers=je,this._ngEl=ie,this._renderer=he,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return(0,T.Z)(Re,[{key:"klass",set:function(je){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof je?je.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(je){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof je?je.split(/\s+/):je,this._rawClass&&((0,C.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var je=this._iterableDiffer.diff(this._rawClass);je&&this._applyIterableChanges(je)}else if(this._keyValueDiffer){var ie=this._keyValueDiffer.diff(this._rawClass);ie&&this._applyKeyValueChanges(ie)}}},{key:"_applyKeyValueChanges",value:function(je){var ie=this;je.forEachAddedItem(function(he){return ie._toggleClass(he.key,he.currentValue)}),je.forEachChangedItem(function(he){return ie._toggleClass(he.key,he.currentValue)}),je.forEachRemovedItem(function(he){he.previousValue&&ie._toggleClass(he.key,!1)})}},{key:"_applyIterableChanges",value:function(je){var ie=this;je.forEachAddedItem(function(he){if("string"!=typeof he.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat((0,C.AaK)(he.item)));ie._toggleClass(he.item,!0)}),je.forEachRemovedItem(function(he){return ie._toggleClass(he.item,!1)})}},{key:"_applyClasses",value:function(je){var ie=this;je&&(Array.isArray(je)||je instanceof Set?je.forEach(function(he){return ie._toggleClass(he,!0)}):Object.keys(je).forEach(function(he){return ie._toggleClass(he,!!je[he])}))}},{key:"_removeClasses",value:function(je){var ie=this;je&&(Array.isArray(je)||je instanceof Set?je.forEach(function(he){return ie._toggleClass(he,!1)}):Object.keys(je).forEach(function(he){return ie._toggleClass(he,!1)}))}},{key:"_toggleClass",value:function(je,ie){var he=this;(je=je.trim())&&je.split(/\s+/g).forEach(function(_e){ie?he._renderer.addClass(he._ngEl.nativeElement,_e):he._renderer.removeClass(he._ngEl.nativeElement,_e)})}}]),Re}();return fe.\u0275fac=function($e){return new($e||fe)(C.Y36(C.ZZ4),C.Y36(C.aQg),C.Y36(C.SBq),C.Y36(C.Qsj))},fe.\u0275dir=C.lG2({type:fe,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),fe}(),Gn=function(){function fe(Re,$e,je,ie){(0,I.Z)(this,fe),this.$implicit=Re,this.ngForOf=$e,this.index=je,this.count=ie}return(0,T.Z)(fe,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),fe}(),jn=function(){var fe=function(){function Re($e,je,ie){(0,I.Z)(this,Re),this._viewContainer=$e,this._template=je,this._differs=ie,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return(0,T.Z)(Re,[{key:"ngForOf",set:function(je){this._ngForOf=je,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(je){this._trackByFn=je}},{key:"ngForTemplate",set:function(je){je&&(this._template=je)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var je=this._ngForOf;if(!this._differ&&je)try{this._differ=this._differs.find(je).create(this.ngForTrackBy)}catch(he){throw new Error("Cannot find a differ supporting object '".concat(je,"' of type '").concat(function(fe){return fe.name||typeof fe}(je),"'. NgFor only supports binding to Iterables such as Arrays."))}}if(this._differ){var ie=this._differ.diff(this._ngForOf);ie&&this._applyChanges(ie)}}},{key:"_applyChanges",value:function(je){var ie=this,he=[];je.forEachOperation(function(Tt,pt,gt){if(null==Tt.previousIndex){var $r=ie._viewContainer.createEmbeddedView(ie._template,new Gn(null,ie._ngForOf,-1,-1),null===gt?void 0:gt),zr=new zn(Tt,$r);he.push(zr)}else if(null==gt)ie._viewContainer.remove(null===pt?void 0:pt);else if(null!==pt){var Pi=ie._viewContainer.get(pt);ie._viewContainer.move(Pi,gt);var ya=new zn(Tt,Pi);he.push(ya)}});for(var _e=0;_e<he.length;_e++)this._perViewChange(he[_e].view,he[_e].record);for(var be=0,Pe=this._viewContainer.length;be<Pe;be++){var ze=this._viewContainer.get(be);ze.context.index=be,ze.context.count=Pe,ze.context.ngForOf=this._ngForOf}je.forEachIdentityChange(function(Tt){ie._viewContainer.get(Tt.currentIndex).context.$implicit=Tt.item})}},{key:"_perViewChange",value:function(je,ie){je.context.$implicit=ie.item}}],[{key:"ngTemplateContextGuard",value:function(je,ie){return!0}}]),Re}();return fe.\u0275fac=function($e){return new($e||fe)(C.Y36(C.s_b),C.Y36(C.Rgc),C.Y36(C.ZZ4))},fe.\u0275dir=C.lG2({type:fe,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),fe}(),zn=function fe(Re,$e){(0,I.Z)(this,fe),this.record=Re,this.view=$e},bi=function(){var fe=function(){function Re($e,je){(0,I.Z)(this,Re),this._viewContainer=$e,this._context=new io,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=je}return(0,T.Z)(Re,[{key:"ngIf",set:function(je){this._context.$implicit=this._context.ngIf=je,this._updateView()}},{key:"ngIfThen",set:function(je){Co("ngIfThen",je),this._thenTemplateRef=je,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(je){Co("ngIfElse",je),this._elseTemplateRef=je,this._elseViewRef=null,this._updateView()}},{key:"_updateView",value: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)))}}],[{key:"ngTemplateContextGuard",value:function(je,ie){return!0}}]),Re}();return fe.\u0275fac=function($e){return new($e||fe)(C.Y36(C.s_b),C.Y36(C.Rgc))},fe.\u0275dir=C.lG2({type:fe,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),fe}(),io=function fe(){(0,I.Z)(this,fe),this.$implicit=null,this.ngIf=null};function Co(fe,Re){if(Re&&!Re.createEmbeddedView)throw new Error("".concat(fe," must be a TemplateRef, but received '").concat((0,C.AaK)(Re),"'."))}var Fi=function(){function fe(Re,$e){(0,I.Z)(this,fe),this._viewContainerRef=Re,this._templateRef=$e,this._created=!1}return(0,T.Z)(fe,[{key:"create",value:function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}},{key:"destroy",value:function(){this._created=!1,this._viewContainerRef.clear()}},{key:"enforceState",value:function($e){$e&&!this._created?this.create():!$e&&this._created&&this.destroy()}}]),fe}(),Io=function(){var fe=function(){function Re(){(0,I.Z)(this,Re),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return(0,T.Z)(Re,[{key:"ngSwitch",set:function(je){this._ngSwitch=je,0===this._caseCount&&this._updateDefaultCases(!0)}},{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(je){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(je)}},{key:"_matchCase",value:function(je){var ie=je==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||ie,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),ie}},{key:"_updateDefaultCases",value:function(je){if(this._defaultViews&&je!==this._defaultUsed){this._defaultUsed=je;for(var ie=0;ie<this._defaultViews.length;ie++)this._defaultViews[ie].enforceState(je)}}}]),Re}();return fe.\u0275fac=function($e){return new($e||fe)},fe.\u0275dir=C.lG2({type:fe,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),fe}(),$o=function(){var fe=function(){function Re($e,je,ie){(0,I.Z)(this,Re),this.ngSwitch=ie,ie._addCase(),this._view=new Fi($e,je)}return(0,T.Z)(Re,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),Re}();return fe.\u0275fac=function($e){return new($e||fe)(C.Y36(C.s_b),C.Y36(C.Rgc),C.Y36(Io,9))},fe.\u0275dir=C.lG2({type:fe,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),fe}(),Eo=function(){var fe=function Re($e,je,ie){(0,I.Z)(this,Re),ie._addDefault(new Fi($e,je))};return fe.\u0275fac=function($e){return new($e||fe)(C.Y36(C.s_b),C.Y36(C.Rgc),C.Y36(Io,9))},fe.\u0275dir=C.lG2({type:fe,selectors:[["","ngSwitchDefault",""]]}),fe}(),ji=function(){var fe=function(){function Re($e,je,ie){(0,I.Z)(this,Re),this._ngEl=$e,this._differs=je,this._renderer=ie,this._ngStyle=null,this._differ=null}return(0,T.Z)(Re,[{key:"ngStyle",set:function(je){this._ngStyle=je,!this._differ&&je&&(this._differ=this._differs.find(je).create())}},{key:"ngDoCheck",value:function(){if(this._differ){var je=this._differ.diff(this._ngStyle);je&&this._applyChanges(je)}}},{key:"_setStyle",value:function(je,ie){var he=je.split("."),_e=(0,B.Z)(he,2),be=_e[0],Pe=_e[1];null!=(ie=null!=ie&&Pe?"".concat(ie).concat(Pe):ie)?this._renderer.setStyle(this._ngEl.nativeElement,be,ie):this._renderer.removeStyle(this._ngEl.nativeElement,be)}},{key:"_applyChanges",value:function(je){var ie=this;je.forEachRemovedItem(function(he){return ie._setStyle(he.key,null)}),je.forEachAddedItem(function(he){return ie._setStyle(he.key,he.currentValue)}),je.forEachChangedItem(function(he){return ie._setStyle(he.key,he.currentValue)})}}]),Re}();return fe.\u0275fac=function($e){return new($e||fe)(C.Y36(C.SBq),C.Y36(C.aQg),C.Y36(C.Qsj))},fe.\u0275dir=C.lG2({type:fe,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),fe}(),Ji=function(){var fe=function(){function Re($e){(0,I.Z)(this,Re),this._viewContainerRef=$e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}return(0,T.Z)(Re,[{key:"ngOnChanges",value:function(je){if(je.ngTemplateOutlet){var ie=this._viewContainerRef;this._viewRef&&ie.remove(ie.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?ie.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&je.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}]),Re}();return fe.\u0275fac=function($e){return new($e||fe)(C.Y36(C.s_b))},fe.\u0275dir=C.lG2({type:fe,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[C.TTD]}),fe}();var Qi=function(){function fe(){(0,I.Z)(this,fe)}return(0,T.Z)(fe,[{key:"createSubscription",value:function($e,je){return $e.subscribe({next:je,error:function(he){throw he}})}},{key:"dispose",value:function($e){$e.unsubscribe()}},{key:"onDestroy",value:function($e){$e.unsubscribe()}}]),fe}(),_n=new(function(){function fe(){(0,I.Z)(this,fe)}return(0,T.Z)(fe,[{key:"createSubscription",value:function($e,je){return $e.then(je,function(ie){throw ie})}},{key:"dispose",value:function($e){}},{key:"onDestroy",value:function($e){}}]),fe}()),hr=new Qi,ho=function(){var fe=function(){function Re($e){(0,I.Z)(this,Re),this._ref=$e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}return(0,T.Z)(Re,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose()}},{key:"transform",value:function(je){return this._obj?je!==this._obj?(this._dispose(),this.transform(je)):this._latestValue:(je&&this._subscribe(je),this._latestValue)}},{key:"_subscribe",value:function(je){var ie=this;this._obj=je,this._strategy=this._selectStrategy(je),this._subscription=this._strategy.createSubscription(je,function(he){return ie._updateLatestValue(je,he)})}},{key:"_selectStrategy",value:function(je){if((0,C.QGY)(je))return _n;if((0,C.F4k)(je))return hr;throw function(fe,Re){return Error("InvalidPipeArgument: '".concat(Re,"' for pipe '").concat((0,C.AaK)(fe),"'"))}(Re,je)}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(je,ie){je===this._obj&&(this._latestValue=ie,this._ref.markForCheck())}}]),Re}();return fe.\u0275fac=function($e){return new($e||fe)(C.Y36(C.sBO,16))},fe.\u0275pipe=C.Yjl({name:"async",type:fe,pure:!1}),fe}(),Fn=function(){var fe=function Re(){(0,I.Z)(this,Re)};return fe.\u0275fac=function($e){return new($e||fe)},fe.\u0275mod=C.oAB({type:fe}),fe.\u0275inj=C.cJS({providers:[{provide:Pt,useClass:It}]}),fe}(),Da="browser";function zi(fe){return fe===Da}var za=function(){var fe=function Re(){(0,I.Z)(this,Re)};return fe.\u0275prov=(0,C.Yz7)({token:fe,providedIn:"root",factory:function(){return new Cl((0,C.LFG)(y),window)}}),fe}(),Cl=function(){function fe(Re,$e){(0,I.Z)(this,fe),this.document=Re,this.window=$e,this.offset=function(){return[0,0]}}return(0,T.Z)(fe,[{key:"setOffset",value:function($e){this.offset=Array.isArray($e)?function(){return $e}:$e}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function($e){this.supportsScrolling()&&this.window.scrollTo($e[0],$e[1])}},{key:"scrollToAnchor",value:function($e){if(this.supportsScrolling()){var je=function(fe,Re){var $e=fe.getElementById(Re)||fe.getElementsByName(Re)[0];if($e)return $e;if("function"==typeof fe.createTreeWalker&&fe.body&&(fe.body.createShadowRoot||fe.body.attachShadow))for(var je=fe.createTreeWalker(fe.body,NodeFilter.SHOW_ELEMENT),ie=je.currentNode;ie;){var he=ie.shadowRoot;if(he){var _e=he.getElementById(Re)||he.querySelector('[name="'.concat(Re,'"]'));if(_e)return _e}ie=je.nextNode()}return null}(this.document,$e);je&&(this.scrollToElement(je),this.attemptFocus(je))}}},{key:"setHistoryScrollRestoration",value:function($e){if(this.supportScrollRestoration()){var je=this.window.history;je&&je.scrollRestoration&&(je.scrollRestoration=$e)}}},{key:"scrollToElement",value:function($e){var je=$e.getBoundingClientRect(),ie=je.left+this.window.pageXOffset,he=je.top+this.window.pageYOffset,_e=this.offset();this.window.scrollTo(ie-_e[0],he-_e[1])}},{key:"attemptFocus",value:function($e){return $e.focus(),this.document.activeElement===$e}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var $e=nn(this.window.history)||nn(Object.getPrototypeOf(this.window.history));return!(!$e||!$e.writable&&!$e.set)}catch(je){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch($e){return!1}}}]),fe}();function nn(fe){return Object.getOwnPropertyDescriptor(fe,"scrollRestoration")}var Tl=function fe(){(0,I.Z)(this,fe)}},75472:function(ce,q,f){"use strict";f.d(q,{eN:function(){return yt},JF:function(){return wn},UA:function(){return He}});var U=f(10509),B=f(97154),V=f(27235),Z=f(10629),T=f(14105),I=f(18967),C=f(40098),v=f(65508),P=f(43161),D=f(89797),M=f(38575),A=f(58780),y=f(85639),g=function Mt(){(0,I.Z)(this,Mt)},k=function Mt(){(0,I.Z)(this,Mt)},N=function(){function Mt(rt){var Te=this;(0,I.Z)(this,Mt),this.normalizedNames=new Map,this.lazyUpdate=null,rt?this.lazyInit="string"==typeof rt?function(){Te.headers=new Map,rt.split("\n").forEach(function(re){var ve=re.indexOf(":");if(ve>0){var Ge=re.slice(0,ve),Ye=Ge.toLowerCase(),bt=re.slice(ve+1).trim();Te.maybeSetNormalizedName(Ge,Ye),Te.headers.has(Ye)?Te.headers.get(Ye).push(bt):Te.headers.set(Ye,[bt])}})}:function(){Te.headers=new Map,Object.keys(rt).forEach(function(re){var ve=rt[re],Ge=re.toLowerCase();"string"==typeof ve&&(ve=[ve]),ve.length>0&&(Te.headers.set(Ge,ve),Te.maybeSetNormalizedName(re,Ge))})}:this.headers=new Map}return(0,T.Z)(Mt,[{key:"has",value:function(Te){return this.init(),this.headers.has(Te.toLowerCase())}},{key:"get",value:function(Te){this.init();var re=this.headers.get(Te.toLowerCase());return re&&re.length>0?re[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(Te){return this.init(),this.headers.get(Te.toLowerCase())||null}},{key:"append",value:function(Te,re){return this.clone({name:Te,value:re,op:"a"})}},{key:"set",value:function(Te,re){return this.clone({name:Te,value:re,op:"s"})}},{key:"delete",value:function(Te,re){return this.clone({name:Te,value:re,op:"d"})}},{key:"maybeSetNormalizedName",value:function(Te,re){this.normalizedNames.has(re)||this.normalizedNames.set(re,Te)}},{key:"init",value:function(){var Te=this;this.lazyInit&&(this.lazyInit instanceof Mt?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(re){return Te.applyUpdate(re)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(Te){var re=this;Te.init(),Array.from(Te.headers.keys()).forEach(function(ve){re.headers.set(ve,Te.headers.get(ve)),re.normalizedNames.set(ve,Te.normalizedNames.get(ve))})}},{key:"clone",value:function(Te){var re=new Mt;return re.lazyInit=this.lazyInit&&this.lazyInit instanceof Mt?this.lazyInit:this,re.lazyUpdate=(this.lazyUpdate||[]).concat([Te]),re}},{key:"applyUpdate",value:function(Te){var re=Te.name.toLowerCase();switch(Te.op){case"a":case"s":var ve=Te.value;if("string"==typeof ve&&(ve=[ve]),0===ve.length)return;this.maybeSetNormalizedName(Te.name,re);var Ge=("a"===Te.op?this.headers.get(re):void 0)||[];Ge.push.apply(Ge,(0,Z.Z)(ve)),this.headers.set(re,Ge);break;case"d":var Ye=Te.value;if(Ye){var bt=this.headers.get(re);if(!bt)return;0===(bt=bt.filter(function(Lt){return-1===Ye.indexOf(Lt)})).length?(this.headers.delete(re),this.normalizedNames.delete(re)):this.headers.set(re,bt)}else this.headers.delete(re),this.normalizedNames.delete(re)}}},{key:"forEach",value:function(Te){var re=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(ve){return Te(re.normalizedNames.get(ve),re.headers.get(ve))})}}]),Mt}(),E=function(){function Mt(){(0,I.Z)(this,Mt)}return(0,T.Z)(Mt,[{key:"encodeKey",value:function(Te){return L(Te)}},{key:"encodeValue",value:function(Te){return L(Te)}},{key:"decodeKey",value:function(Te){return decodeURIComponent(Te)}},{key:"decodeValue",value:function(Te){return decodeURIComponent(Te)}}]),Mt}();function x(Mt,rt){var Te=new Map;return Mt.length>0&&Mt.replace(/^\?/,"").split("&").forEach(function(ve){var Ge=ve.indexOf("="),Ye=-1==Ge?[rt.decodeKey(ve),""]:[rt.decodeKey(ve.slice(0,Ge)),rt.decodeValue(ve.slice(Ge+1))],bt=(0,V.Z)(Ye,2),Lt=bt[0],zt=bt[1],tn=Te.get(Lt)||[];tn.push(zt),Te.set(Lt,tn)}),Te}var S=/%(\d[a-f0-9])/gi,O={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function L(Mt){return encodeURIComponent(Mt).replace(S,function(rt,Te){var re;return null!==(re=O[Te])&&void 0!==re?re:rt})}function j(Mt){return"".concat(Mt)}var K=function(){function Mt(){var rt=this,Te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,I.Z)(this,Mt),this.updates=null,this.cloneFrom=null,this.encoder=Te.encoder||new E,Te.fromString){if(Te.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=x(Te.fromString,this.encoder)}else Te.fromObject?(this.map=new Map,Object.keys(Te.fromObject).forEach(function(re){var ve=Te.fromObject[re];rt.map.set(re,Array.isArray(ve)?ve:[ve])})):this.map=null}return(0,T.Z)(Mt,[{key:"has",value:function(Te){return this.init(),this.map.has(Te)}},{key:"get",value:function(Te){this.init();var re=this.map.get(Te);return re?re[0]:null}},{key:"getAll",value:function(Te){return this.init(),this.map.get(Te)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(Te,re){return this.clone({param:Te,value:re,op:"a"})}},{key:"appendAll",value:function(Te){var re=[];return Object.keys(Te).forEach(function(ve){var Ge=Te[ve];Array.isArray(Ge)?Ge.forEach(function(Ye){re.push({param:ve,value:Ye,op:"a"})}):re.push({param:ve,value:Ge,op:"a"})}),this.clone(re)}},{key:"set",value:function(Te,re){return this.clone({param:Te,value:re,op:"s"})}},{key:"delete",value:function(Te,re){return this.clone({param:Te,value:re,op:"d"})}},{key:"toString",value:function(){var Te=this;return this.init(),this.keys().map(function(re){var ve=Te.encoder.encodeKey(re);return Te.map.get(re).map(function(Ge){return ve+"="+Te.encoder.encodeValue(Ge)}).join("&")}).filter(function(re){return""!==re}).join("&")}},{key:"clone",value:function(Te){var re=new Mt({encoder:this.encoder});return re.cloneFrom=this.cloneFrom||this,re.updates=(this.updates||[]).concat(Te),re}},{key:"init",value:function(){var Te=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(re){return Te.map.set(re,Te.cloneFrom.map.get(re))}),this.updates.forEach(function(re){switch(re.op){case"a":case"s":var ve=("a"===re.op?Te.map.get(re.param):void 0)||[];ve.push(j(re.value)),Te.map.set(re.param,ve);break;case"d":if(void 0===re.value){Te.map.delete(re.param);break}var Ge=Te.map.get(re.param)||[],Ye=Ge.indexOf(j(re.value));-1!==Ye&&Ge.splice(Ye,1),Ge.length>0?Te.map.set(re.param,Ge):Te.map.delete(re.param)}}),this.cloneFrom=this.updates=null)}}]),Mt}(),J=function(){function Mt(){(0,I.Z)(this,Mt),this.map=new Map}return(0,T.Z)(Mt,[{key:"set",value:function(Te,re){return this.map.set(Te,re),this}},{key:"get",value:function(Te){return this.map.has(Te)||this.map.set(Te,Te.defaultValue()),this.map.get(Te)}},{key:"delete",value:function(Te){return this.map.delete(Te),this}},{key:"keys",value:function(){return this.map.keys()}}]),Mt}();function te(Mt){return"undefined"!=typeof ArrayBuffer&&Mt instanceof ArrayBuffer}function se(Mt){return"undefined"!=typeof Blob&&Mt instanceof Blob}function le(Mt){return"undefined"!=typeof FormData&&Mt instanceof FormData}var ue=function(){function Mt(rt,Te,re,ve){var Ge;if((0,I.Z)(this,Mt),this.url=Te,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=rt.toUpperCase(),function(Mt){switch(Mt){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||ve?(this.body=void 0!==re?re:null,Ge=ve):Ge=re,Ge&&(this.reportProgress=!!Ge.reportProgress,this.withCredentials=!!Ge.withCredentials,Ge.responseType&&(this.responseType=Ge.responseType),Ge.headers&&(this.headers=Ge.headers),Ge.context&&(this.context=Ge.context),Ge.params&&(this.params=Ge.params)),this.headers||(this.headers=new N),this.context||(this.context=new J),this.params){var Ye=this.params.toString();if(0===Ye.length)this.urlWithParams=Te;else{var bt=Te.indexOf("?");this.urlWithParams=Te+(-1===bt?"?":bt<Te.length-1?"&":"")+Ye}}else this.params=new K,this.urlWithParams=Te}return(0,T.Z)(Mt,[{key:"serializeBody",value:function(){return null===this.body?null:te(this.body)||se(this.body)||le(this.body)||function(Mt){return"undefined"!=typeof URLSearchParams&&Mt instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof K?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body||le(this.body)?null:se(this.body)?this.body.type||null:te(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof K?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}},{key:"clone",value:function(){var re,Te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ve=Te.method||this.method,Ge=Te.url||this.url,Ye=Te.responseType||this.responseType,bt=void 0!==Te.body?Te.body:this.body,Lt=void 0!==Te.withCredentials?Te.withCredentials:this.withCredentials,zt=void 0!==Te.reportProgress?Te.reportProgress:this.reportProgress,tn=Te.headers||this.headers,sn=Te.params||this.params,hn=null!==(re=Te.context)&&void 0!==re?re:this.context;return void 0!==Te.setHeaders&&(tn=Object.keys(Te.setHeaders).reduce(function(Cn,In){return Cn.set(In,Te.setHeaders[In])},tn)),Te.setParams&&(sn=Object.keys(Te.setParams).reduce(function(Cn,In){return Cn.set(In,Te.setParams[In])},sn)),new Mt(ve,Ge,bt,{params:sn,headers:tn,context:hn,reportProgress:zt,responseType:Ye,withCredentials:Lt})}}]),Mt}(),ae=function(Mt){return Mt[Mt.Sent=0]="Sent",Mt[Mt.UploadProgress=1]="UploadProgress",Mt[Mt.ResponseHeader=2]="ResponseHeader",Mt[Mt.DownloadProgress=3]="DownloadProgress",Mt[Mt.Response=4]="Response",Mt[Mt.User=5]="User",Mt}({}),Me=function Mt(rt){var Te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,re=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";(0,I.Z)(this,Mt),this.headers=rt.headers||new N,this.status=void 0!==rt.status?rt.status:Te,this.statusText=rt.statusText||re,this.url=rt.url||null,this.ok=this.status>=200&&this.status<300},ye=function(Mt){(0,U.Z)(Te,Mt);var rt=(0,B.Z)(Te);function Te(){var re,ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,I.Z)(this,Te),(re=rt.call(this,ve)).type=ae.ResponseHeader,re}return(0,T.Z)(Te,[{key:"clone",value:function(){var ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Te({headers:ve.headers||this.headers,status:void 0!==ve.status?ve.status:this.status,statusText:ve.statusText||this.statusText,url:ve.url||this.url||void 0})}}]),Te}(Me),ot=function(Mt){(0,U.Z)(Te,Mt);var rt=(0,B.Z)(Te);function Te(){var re,ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,I.Z)(this,Te),(re=rt.call(this,ve)).type=ae.Response,re.body=void 0!==ve.body?ve.body:null,re}return(0,T.Z)(Te,[{key:"clone",value:function(){var ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Te({body:void 0!==ve.body?ve.body:this.body,headers:ve.headers||this.headers,status:void 0!==ve.status?ve.status:this.status,statusText:ve.statusText||this.statusText,url:ve.url||this.url||void 0})}}]),Te}(Me),He=function(Mt){(0,U.Z)(Te,Mt);var rt=(0,B.Z)(Te);function Te(re){var ve;return(0,I.Z)(this,Te),(ve=rt.call(this,re,0,"Unknown Error")).name="HttpErrorResponse",ve.ok=!1,ve.message=ve.status>=200&&ve.status<300?"Http failure during parsing for ".concat(re.url||"(unknown url)"):"Http failure response for ".concat(re.url||"(unknown url)",": ").concat(re.status," ").concat(re.statusText),ve.error=re.error||null,ve}return Te}(Me);function _t(Mt,rt){return{body:rt,headers:Mt.headers,context:Mt.context,observe:Mt.observe,params:Mt.params,reportProgress:Mt.reportProgress,responseType:Mt.responseType,withCredentials:Mt.withCredentials}}var yt=function(){var Mt=function(){function rt(Te){(0,I.Z)(this,rt),this.handler=Te}return(0,T.Z)(rt,[{key:"request",value:function(re,ve){var bt,Ge=this,Ye=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(re instanceof ue)bt=re;else{var Lt=void 0;Lt=Ye.headers instanceof N?Ye.headers:new N(Ye.headers);var zt=void 0;Ye.params&&(zt=Ye.params instanceof K?Ye.params:new K({fromObject:Ye.params})),bt=new ue(re,ve,void 0!==Ye.body?Ye.body:null,{headers:Lt,context:Ye.context,params:zt,reportProgress:Ye.reportProgress,responseType:Ye.responseType||"json",withCredentials:Ye.withCredentials})}var tn=(0,P.of)(bt).pipe((0,M.b)(function(hn){return Ge.handler.handle(hn)}));if(re instanceof ue||"events"===Ye.observe)return tn;var sn=tn.pipe((0,A.h)(function(hn){return hn instanceof ot}));switch(Ye.observe||"body"){case"body":switch(bt.responseType){case"arraybuffer":return sn.pipe((0,y.U)(function(hn){if(null!==hn.body&&!(hn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return hn.body}));case"blob":return sn.pipe((0,y.U)(function(hn){if(null!==hn.body&&!(hn.body instanceof Blob))throw new Error("Response is not a Blob.");return hn.body}));case"text":return sn.pipe((0,y.U)(function(hn){if(null!==hn.body&&"string"!=typeof hn.body)throw new Error("Response is not a string.");return hn.body}));case"json":default:return sn.pipe((0,y.U)(function(hn){return hn.body}))}case"response":return sn;default:throw new Error("Unreachable: unhandled observe type ".concat(Ye.observe,"}"))}}},{key:"delete",value:function(re){var ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",re,ve)}},{key:"get",value:function(re){var ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",re,ve)}},{key:"head",value:function(re){var ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",re,ve)}},{key:"jsonp",value:function(re,ve){return this.request("JSONP",re,{params:(new K).append(ve,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(re){var ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",re,ve)}},{key:"patch",value:function(re,ve){var Ge=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",re,_t(Ge,ve))}},{key:"post",value:function(re,ve){var Ge=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",re,_t(Ge,ve))}},{key:"put",value:function(re,ve){var Ge=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",re,_t(Ge,ve))}}]),rt}();return Mt.\u0275fac=function(Te){return new(Te||Mt)(v.LFG(g))},Mt.\u0275prov=v.Yz7({token:Mt,factory:Mt.\u0275fac}),Mt}(),Bt=function(){function Mt(rt,Te){(0,I.Z)(this,Mt),this.next=rt,this.interceptor=Te}return(0,T.Z)(Mt,[{key:"handle",value:function(Te){return this.interceptor.intercept(Te,this.next)}}]),Mt}(),Se=new v.OlP("HTTP_INTERCEPTORS"),De=function(){var Mt=function(){function rt(){(0,I.Z)(this,rt)}return(0,T.Z)(rt,[{key:"intercept",value:function(re,ve){return ve.handle(re)}}]),rt}();return Mt.\u0275fac=function(Te){return new(Te||Mt)},Mt.\u0275prov=v.Yz7({token:Mt,factory:Mt.\u0275fac}),Mt}(),Vt=/^\)\]\}',?\n/,qt=function(){var Mt=function(){function rt(Te){(0,I.Z)(this,rt),this.xhrFactory=Te}return(0,T.Z)(rt,[{key:"handle",value:function(re){var ve=this;if("JSONP"===re.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new D.y(function(Ge){var Ye=ve.xhrFactory.build();if(Ye.open(re.method,re.urlWithParams),re.withCredentials&&(Ye.withCredentials=!0),re.headers.forEach(function(Sn,$n){return Ye.setRequestHeader(Sn,$n.join(","))}),re.headers.has("Accept")||Ye.setRequestHeader("Accept","application/json, text/plain, */*"),!re.headers.has("Content-Type")){var bt=re.detectContentTypeHeader();null!==bt&&Ye.setRequestHeader("Content-Type",bt)}if(re.responseType){var Lt=re.responseType.toLowerCase();Ye.responseType="json"!==Lt?Lt:"text"}var zt=re.serializeBody(),tn=null,sn=function(){if(null!==tn)return tn;var $n=1223===Ye.status?204:Ye.status,Ht=Ye.statusText||"OK",rn=new N(Ye.getAllResponseHeaders()),ft=function(Mt){return"responseURL"in Mt&&Mt.responseURL?Mt.responseURL:/^X-Request-URL:/m.test(Mt.getAllResponseHeaders())?Mt.getResponseHeader("X-Request-URL"):null}(Ye)||re.url;return tn=new ye({headers:rn,status:$n,statusText:Ht,url:ft})},hn=function(){var $n=sn(),Ht=$n.headers,rn=$n.status,ft=$n.statusText,dt=$n.url,Ue=null;204!==rn&&(Ue=void 0===Ye.response?Ye.responseText:Ye.response),0===rn&&(rn=Ue?200:0);var at=rn>=200&&rn<300;if("json"===re.responseType&&"string"==typeof Ue){var xe=Ue;Ue=Ue.replace(Vt,"");try{Ue=""!==Ue?JSON.parse(Ue):null}catch(Fe){Ue=xe,at&&(at=!1,Ue={error:Fe,text:Ue})}}at?(Ge.next(new ot({body:Ue,headers:Ht,status:rn,statusText:ft,url:dt||void 0})),Ge.complete()):Ge.error(new He({error:Ue,headers:Ht,status:rn,statusText:ft,url:dt||void 0}))},Cn=function($n){var Ht=sn(),ft=new He({error:$n,status:Ye.status||0,statusText:Ye.statusText||"Unknown Error",url:Ht.url||void 0});Ge.error(ft)},In=!1,Yn=function($n){In||(Ge.next(sn()),In=!0);var Ht={type:ae.DownloadProgress,loaded:$n.loaded};$n.lengthComputable&&(Ht.total=$n.total),"text"===re.responseType&&!!Ye.responseText&&(Ht.partialText=Ye.responseText),Ge.next(Ht)},xn=function($n){var Ht={type:ae.UploadProgress,loaded:$n.loaded};$n.lengthComputable&&(Ht.total=$n.total),Ge.next(Ht)};return Ye.addEventListener("load",hn),Ye.addEventListener("error",Cn),Ye.addEventListener("timeout",Cn),Ye.addEventListener("abort",Cn),re.reportProgress&&(Ye.addEventListener("progress",Yn),null!==zt&&Ye.upload&&Ye.upload.addEventListener("progress",xn)),Ye.send(zt),Ge.next({type:ae.Sent}),function(){Ye.removeEventListener("error",Cn),Ye.removeEventListener("abort",Cn),Ye.removeEventListener("load",hn),Ye.removeEventListener("timeout",Cn),re.reportProgress&&(Ye.removeEventListener("progress",Yn),null!==zt&&Ye.upload&&Ye.upload.removeEventListener("progress",xn)),Ye.readyState!==Ye.DONE&&Ye.abort()}})}}]),rt}();return Mt.\u0275fac=function(Te){return new(Te||Mt)(v.LFG(C.JF))},Mt.\u0275prov=v.Yz7({token:Mt,factory:Mt.\u0275fac}),Mt}(),Ct=new v.OlP("XSRF_COOKIE_NAME"),en=new v.OlP("XSRF_HEADER_NAME"),Ft=function Mt(){(0,I.Z)(this,Mt)},on=function(){var Mt=function(){function rt(Te,re,ve){(0,I.Z)(this,rt),this.doc=Te,this.platform=re,this.cookieName=ve,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return(0,T.Z)(rt,[{key:"getToken",value:function(){if("server"===this.platform)return null;var re=this.doc.cookie||"";return re!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,C.Mx)(re,this.cookieName),this.lastCookieString=re),this.lastToken}}]),rt}();return Mt.\u0275fac=function(Te){return new(Te||Mt)(v.LFG(C.K0),v.LFG(v.Lbi),v.LFG(Ct))},Mt.\u0275prov=v.Yz7({token:Mt,factory:Mt.\u0275fac}),Mt}(),En=function(){var Mt=function(){function rt(Te,re){(0,I.Z)(this,rt),this.tokenService=Te,this.headerName=re}return(0,T.Z)(rt,[{key:"intercept",value:function(re,ve){var Ge=re.url.toLowerCase();if("GET"===re.method||"HEAD"===re.method||Ge.startsWith("http://")||Ge.startsWith("https://"))return ve.handle(re);var Ye=this.tokenService.getToken();return null!==Ye&&!re.headers.has(this.headerName)&&(re=re.clone({headers:re.headers.set(this.headerName,Ye)})),ve.handle(re)}}]),rt}();return Mt.\u0275fac=function(Te){return new(Te||Mt)(v.LFG(Ft),v.LFG(en))},Mt.\u0275prov=v.Yz7({token:Mt,factory:Mt.\u0275fac}),Mt}(),Zn=function(){var Mt=function(){function rt(Te,re){(0,I.Z)(this,rt),this.backend=Te,this.injector=re,this.chain=null}return(0,T.Z)(rt,[{key:"handle",value:function(re){if(null===this.chain){var ve=this.injector.get(Se,[]);this.chain=ve.reduceRight(function(Ge,Ye){return new Bt(Ge,Ye)},this.backend)}return this.chain.handle(re)}}]),rt}();return Mt.\u0275fac=function(Te){return new(Te||Mt)(v.LFG(k),v.LFG(v.zs3))},Mt.\u0275prov=v.Yz7({token:Mt,factory:Mt.\u0275fac}),Mt}(),Nn=function(){var Mt=function(){function rt(){(0,I.Z)(this,rt)}return(0,T.Z)(rt,null,[{key:"disable",value:function(){return{ngModule:rt,providers:[{provide:En,useClass:De}]}}},{key:"withOptions",value:function(){var re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:rt,providers:[re.cookieName?{provide:Ct,useValue:re.cookieName}:[],re.headerName?{provide:en,useValue:re.headerName}:[]]}}}]),rt}();return Mt.\u0275fac=function(Te){return new(Te||Mt)},Mt.\u0275mod=v.oAB({type:Mt}),Mt.\u0275inj=v.cJS({providers:[En,{provide:Se,useExisting:En,multi:!0},{provide:Ft,useClass:on},{provide:Ct,useValue:"XSRF-TOKEN"},{provide:en,useValue:"X-XSRF-TOKEN"}]}),Mt}(),wn=function(){var Mt=function rt(){(0,I.Z)(this,rt)};return Mt.\u0275fac=function(Te){return new(Te||Mt)},Mt.\u0275mod=v.oAB({type:Mt}),Mt.\u0275inj=v.cJS({providers:[yt,{provide:g,useClass:Zn},qt,{provide:k,useExisting:qt}],imports:[[Nn.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Mt}()},65508:function(ce,q,f){"use strict";f.d(q,{deG:function(){return fD},tb:function(){return Xg},AFp:function(){return dE},ip1:function(){return Kd},CZH:function(){return Vl},hGG:function(){return gR},z2F:function(){return vm},sBO:function(){return LI},Sil:function(){return Tf},_Vd:function(){return kg},EJc:function(){return MC},SBq:function(){return gu},a5r:function(){return nR},qLn:function(){return kc},vpe:function(){return bu},gxx:function(){return sg},tBr:function(){return hh},XFs:function(){return Ye},OlP:function(){return No},zs3:function(){return Za},ZZ4:function(){return Eg},aQg:function(){return Mg},soG:function(){return cm},YKP:function(){return U0},v3s:function(){return ME},h0i:function(){return Vc},PXZ:function(){return FC},R0b:function(){return Su},FiY:function(){return Lu},Lbi:function(){return Xd},g9A:function(){return Yo},n_E:function(){return jc},Qsj:function(){return vB},FYo:function(){return F0},JOm:function(){return Th},Tiy:function(){return ik},q3G:function(){return Rs},tp0:function(){return Fu},EAV:function(){return tR},Rgc:function(){return Gh},dDg:function(){return bE},DyG:function(){return lu},GfV:function(){return ok},s_b:function(){return df},ifc:function(){return xn},eFA:function(){return BC},Ez6:function(){return tr},G48:function(){return TE},Gpc:function(){return te},f3M:function(){return CD},X6Q:function(){return fm},_c5:function(){return cR},VLi:function(){return W3},c2e:function(){return EC},zSh:function(){return jd},wAp:function(){return Cg},vHH:function(){return ue},EiD:function(){return wc},mCW:function(){return Up},qzn:function(){return Pl},JVY:function(){return ED},pB0:function(){return CT},eBb:function(){return Ov},L6k:function(){return MD},LAX:function(){return vh},cg1:function(){return Rw},Tjo:function(){return lR},kL8:function(){return VP},yhl:function(){return bT},dqk:function(){return ft},sIi:function(){return Hu},CqO:function(){return a0},QGY:function(){return Hc},F4k:function(){return ew},RDi:function(){return be},AaK:function(){return W},z3N:function(){return pu},qOj:function(){return cg},TTD:function(){return za},_Bn:function(){return TI},xp6:function(){return nO},uIk:function(){return qb},Q2q:function(){return jb},zWS:function(){return fg},Tol:function(){return m0},Gre:function(){return Aw},ekj:function(){return h0},Suo:function(){return Wk},Xpm:function(){return jr},lG2:function(){return ki},Yz7:function(){return Rn},cJS:function(){return Nn},oAB:function(){return bo},Yjl:function(){return ro},Y36:function(){return Fh},_UZ:function(){return $x},GkF:function(){return r0},BQk:function(){return Bh},ynx:function(){return Yd},qZA:function(){return n0},TgZ:function(){return mg},EpF:function(){return o0},n5z:function(){return ch},Ikx:function(){return Pw},LFG:function(){return Go},$8M:function(){return Cy},NdJ:function(){return s0},CRH:function(){return Gk},kcU:function(){return Iu},O4$:function(){return oh},oxw:function(){return Uh},ALo:function(){return Wi},lcZ:function(){return to},xi3:function(){return Hg},Hsn:function(){return ow},F$t:function(){return iw},Q6J:function(){return hg},s9C:function(){return l0},MGl:function(){return sf},hYB:function(){return _g},DdM:function(){return g3},VKq:function(){return Lk},WLB:function(){return lC},iGM:function(){return zk},MAs:function(){return Lx},evT:function(){return Fd},Jf7:function(){return Zl},CHM:function(){return Q},oJD:function(){return jp},Ckj:function(){return ID},LSH:function(){return Vy},B6R:function(){return Cr},kYT:function(){return po},Akn:function(){return Bl},Udp:function(){return f0},WFA:function(){return vg},d8E:function(){return Iw},YNc:function(){return Zx},W1O:function(){return Wg},_uU:function(){return T0},Oqu:function(){return x0},hij:function(){return bg},AsE:function(){return w0},lnq:function(){return k0},Gf:function(){return gf}});var U=f(20901),B=f(89200),V=f(88009),Z=f(27235),C=(f(42515),f(99890),f(36683)),v=f(10629),P=f(99740),D=f(14105),M=f(18967),A=f(10509),y=f(97154),g=f(35470);function N(l){var c="function"==typeof Map?new Map:void 0;return(N=function(h){if(null===h||!function(l){return-1!==Function.toString.call(l).indexOf("[native code]")}(h))return h;if("function"!=typeof h)throw new TypeError("Super expression must either be null or a function");if(void 0!==c){if(c.has(h))return c.get(h);c.set(h,_)}function _(){return(0,P.Z)(h,arguments,(0,B.Z)(this).constructor)}return _.prototype=Object.create(h.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),(0,g.Z)(_,h)})(l)}var E=f(5051),x=f(68707),S=f(89797),O=f(55371),L=f(16338);function j(l){for(var c in l)if(l[c]===j)return c;throw Error("Could not find renamed property on target object.")}function K(l,c){for(var d in c)c.hasOwnProperty(d)&&!l.hasOwnProperty(d)&&(l[d]=c[d])}function W(l){if("string"==typeof l)return l;if(Array.isArray(l))return"["+l.map(W).join(", ")+"]";if(null==l)return""+l;if(l.overriddenName)return"".concat(l.overriddenName);if(l.name)return"".concat(l.name);var c=l.toString();if(null==c)return""+c;var d=c.indexOf("\n");return-1===d?c:c.substring(0,d)}function J(l,c){return null==l||""===l?null===c?"":c:null==c||""===c?l:l+" "+c}var oe=j({__forward_ref__:j});function te(l){return l.__forward_ref__=te,l.toString=function(){return W(this())},l}function se(l){return le(l)?l():l}function le(l){return"function"==typeof l&&l.hasOwnProperty(oe)&&l.__forward_ref__===te}var ue=function(l){(0,A.Z)(d,l);var c=(0,y.Z)(d);function d(h,_){var w;return(0,M.Z)(this,d),(w=c.call(this,function(l,c){var d=l?"NG0".concat(l,": "):"";return"".concat(d).concat(c)}(h,_))).code=h,w}return d}(N(Error));function ye(l){return"string"==typeof l?l:null==l?"":String(l)}function ot(l){return"function"==typeof l?l.name||l.toString():"object"==typeof l&&null!=l&&"function"==typeof l.type?l.type.name||l.type.toString():ye(l)}function Bt(l,c){var d=c?" in ".concat(c):"";throw new ue("201","No provider for ".concat(ot(l)," found").concat(d))}function en(l,c){null==l&&function(l,c,d,h){throw new Error("ASSERTION ERROR: ".concat(l)+(null==h?"":" [Expected=> ".concat(d," ").concat(h," ").concat(c," <=Actual]")))}(c,l,null,"!=")}function Rn(l){return{token:l.token,providedIn:l.providedIn||null,factory:l.factory,value:void 0}}var tr=Rn;function Nn(l){return{providers:l.providers||[],imports:l.imports||[]}}function wn(l){return yr(l,Te)||yr(l,ve)}function yr(l,c){return l.hasOwnProperty(c)?l[c]:null}function rt(l){return l&&(l.hasOwnProperty(re)||l.hasOwnProperty(Ge))?l[re]:null}var bt,Te=j({"\u0275prov":j}),re=j({"\u0275inj":j}),ve=j({ngInjectableDef:j}),Ge=j({ngInjectorDef:j}),Ye=function(l){return l[l.Default=0]="Default",l[l.Host=1]="Host",l[l.Self=2]="Self",l[l.SkipSelf=4]="SkipSelf",l[l.Optional=8]="Optional",l}({});function Lt(){return bt}function zt(l){var c=bt;return bt=l,c}function tn(l,c,d){var h=wn(l);return h&&"root"==h.providedIn?void 0===h.value?h.value=h.factory():h.value:d&Ye.Optional?null:void 0!==c?c:void Bt(W(l),"Injector")}function hn(l){return{toString:l}.toString()}var Cn=function(l){return l[l.OnPush=0]="OnPush",l[l.Default=1]="Default",l}({}),xn=function(l){return l[l.Emulated=0]="Emulated",l[l.None=2]="None",l[l.ShadowDom=3]="ShadowDom",l}({}),Sn="undefined"!=typeof globalThis&&globalThis,$n="undefined"!=typeof window&&window,Ht="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,rn="undefined"!=typeof global&&global,ft=Sn||rn||$n||Ht,at={},xe=[],Fe=j({"\u0275cmp":j}),Oe=j({"\u0275dir":j}),Le=j({"\u0275pipe":j}),qe=j({"\u0275mod":j}),Nt=j({"\u0275loc":j}),cn=j({"\u0275fac":j}),Jn=j({__NG_ELEMENT_ID__:j}),Zr=0;function jr(l){return hn(function(){var d={},h={type:l.type,providersResolver:null,decls:l.decls,vars:l.vars,factory:null,template:l.template||null,consts:l.consts||null,ngContentSelectors:l.ngContentSelectors,hostBindings:l.hostBindings||null,hostVars:l.hostVars||0,hostAttrs:l.hostAttrs||null,contentQueries:l.contentQueries||null,declaredInputs:d,inputs:null,outputs:null,exportAs:l.exportAs||null,onPush:l.changeDetection===Cn.OnPush,directiveDefs:null,pipeDefs:null,selectors:l.selectors||xe,viewQuery:l.viewQuery||null,features:l.features||null,data:l.data||{},encapsulation:l.encapsulation||xn.Emulated,id:"c",styles:l.styles||xe,_:null,setInput:null,schemas:l.schemas||null,tView:null},_=l.directives,w=l.features,H=l.pipes;return h.id+=Zr++,h.inputs=Xo(l.inputs,d),h.outputs=Xo(l.outputs),w&&w.forEach(function(z){return z(h)}),h.directiveDefs=_?function(){return("function"==typeof _?_():_).map(Kr)}:null,h.pipeDefs=H?function(){return("function"==typeof H?H():H).map(co)}:null,h})}function Cr(l,c,d){var h=l.\u0275cmp;h.directiveDefs=function(){return c.map(Kr)},h.pipeDefs=function(){return d.map(co)}}function Kr(l){return yi(l)||function(l){return l[Oe]||null}(l)}function co(l){return function(l){return l[Le]||null}(l)}var Ni={};function bo(l){return hn(function(){var c={type:l.type,bootstrap:l.bootstrap||xe,declarations:l.declarations||xe,imports:l.imports||xe,exports:l.exports||xe,transitiveCompileScopes:null,schemas:l.schemas||null,id:l.id||null};return null!=l.id&&(Ni[l.id]=l.type),c})}function po(l,c){return hn(function(){var d=hi(l,!0);d.declarations=c.declarations||xe,d.imports=c.imports||xe,d.exports=c.exports||xe})}function Xo(l,c){if(null==l)return at;var d={};for(var h in l)if(l.hasOwnProperty(h)){var _=l[h],w=_;Array.isArray(_)&&(w=_[1],_=_[0]),d[_]=h,c&&(c[_]=w)}return d}var ki=jr;function ro(l){return{type:l.type,name:l.name,factory:null,pure:!1!==l.pure,onDestroy:l.type.prototype.ngOnDestroy||null}}function yi(l){return l[Fe]||null}function hi(l,c){var d=l[qe]||null;if(!d&&!0===c)throw new Error("Type ".concat(W(l)," does not have '\u0275mod' property."));return d}function hr(l){return Array.isArray(l)&&"object"==typeof l[1]}function ho(l){return Array.isArray(l)&&!0===l[1]}function ha(l){return 0!=(8&l.flags)}function Si(l){return 2==(2&l.flags)}function So(l){return 1==(1&l.flags)}function Zi(l){return null!==l.template}function ma(l){return 0!=(512&l[2])}function ts(l,c){return l.hasOwnProperty(cn)?l[cn]:null}var Xi=function(){function l(c,d,h){(0,M.Z)(this,l),this.previousValue=c,this.currentValue=d,this.firstChange=h}return(0,D.Z)(l,[{key:"isFirstChange",value:function(){return this.firstChange}}]),l}();function za(){return Cl}function Cl(l){return l.type.prototype.ngOnChanges&&(l.setInput=ou),nn}function nn(){var l=Tl(this),c=null==l?void 0:l.current;if(c){var d=l.previous;if(d===at)l.previous=c;else for(var h in c)d[h]=c[h];l.current=null,this.ngOnChanges(c)}}function ou(l,c,d,h){var _=Tl(l)||function(l,c){return l[Sl]=c}(l,{previous:at,current:null}),w=_.current||(_.current={}),H=_.previous,z=this.declaredInputs[d],X=H[z];w[z]=new Xi(X&&X.currentValue,c,H===at),l[h]=c}za.ngInherit=!0;var Sl="__ngSimpleChanges__";function Tl(l){return l[Sl]||null}var ie="http://www.w3.org/2000/svg",_e=void 0;function be(l){_e=l}function Pe(){return void 0!==_e?_e:"undefined"!=typeof document?document:void 0}function Tt(l){return!!l.listen}var gt={createRenderer:function(c,d){return Pe()}};function zr(l){for(;Array.isArray(l);)l=l[0];return l}function ui(l,c){return zr(c[l])}function Ii(l,c){return zr(c[l.index])}function Oa(l,c){return l.data[c]}function ns(l,c){return l[c]}function ba(l,c){var d=c[l];return hr(d)?d:d[0]}function Ds(l){return 4==(4&l[2])}function Tp(l){return 128==(128&l[2])}function Qs(l,c){return null==c?null:l[c]}function pc(l){l[18]=0}function wl(l,c){l[5]+=c;for(var d=l,h=l[3];null!==h&&(1===c&&1===d[5]||-1===c&&0===d[5]);)h[5]+=c,d=h,h=h[3]}var Dr={lFrame:Tn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function yd(){return Dr.bindingsEnabled}function Ce(){return Dr.lFrame.lView}function ge(){return Dr.lFrame.tView}function Q(l){return Dr.lFrame.contextLView=l,l[8]}function $(){for(var l=ke();null!==l&&64===l.type;)l=l.parent;return l}function ke(){return Dr.lFrame.currentTNode}function ut(l,c){var d=Dr.lFrame;d.currentTNode=l,d.isParent=c}function wt(){return Dr.lFrame.isParent}function Zt(){Dr.lFrame.isParent=!1}function Dn(){return Dr.isInCheckNoChangesMode}function Un(l){Dr.isInCheckNoChangesMode=l}function Kn(){var l=Dr.lFrame,c=l.bindingRootIndex;return-1===c&&(c=l.bindingRootIndex=l.tView.bindingStartIndex),c}function mr(){return Dr.lFrame.bindingIndex}function Sr(){return Dr.lFrame.bindingIndex++}function Mr(l){var c=Dr.lFrame,d=c.bindingIndex;return c.bindingIndex=c.bindingIndex+l,d}function ai(l,c){var d=Dr.lFrame;d.bindingIndex=d.bindingRootIndex=l,Ne(c)}function Ne(l){Dr.lFrame.currentDirectiveIndex=l}function We(l){var c=Dr.lFrame.currentDirectiveIndex;return-1===c?null:l[c]}function we(){return Dr.lFrame.currentQueryIndex}function Ze(l){Dr.lFrame.currentQueryIndex=l}function Ie(l){var c=l[1];return 2===c.type?c.declTNode:1===c.type?l[6]:null}function nt(l,c,d){if(d&Ye.SkipSelf){for(var h=c,_=l;!(null!==(h=h.parent)||d&Ye.Host||null===(h=Ie(_))||(_=_[15],10&h.type)););if(null===h)return!1;c=h,l=_}var w=Dr.lFrame=ln();return w.currentTNode=c,w.lView=l,!0}function xt(l){var c=ln(),d=l[1];Dr.lFrame=c,c.currentTNode=d.firstChild,c.lView=l,c.tView=d,c.contextLView=l,c.bindingIndex=d.bindingStartIndex,c.inI18n=!1}function ln(){var l=Dr.lFrame,c=null===l?null:l.child;return null===c?Tn(l):c}function Tn(l){var c={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:l,child:null,inI18n:!1};return null!==l&&(l.child=c),c}function wr(){var l=Dr.lFrame;return Dr.lFrame=l.parent,l.currentTNode=null,l.lView=null,l}var Ri=wr;function ea(){var l=wr();l.isParent=!0,l.tView=null,l.selectedIndex=-1,l.contextLView=null,l.elementDepthCount=0,l.currentDirectiveIndex=-1,l.currentNamespace=null,l.bindingRootIndex=-1,l.bindingIndex=-1,l.currentQueryIndex=0}function Pa(l){return(Dr.lFrame.contextLView=function(l,c){for(;l>0;)c=c[15],l--;return c}(l,Dr.lFrame.contextLView))[8]}function Do(){return Dr.lFrame.selectedIndex}function _s(l){Dr.lFrame.selectedIndex=l}function mo(){var l=Dr.lFrame;return Oa(l.tView,l.selectedIndex)}function oh(){Dr.lFrame.currentNamespace=ie}function Iu(){Dr.lFrame.currentNamespace=null}function zo(l,c){for(var d=c.directiveStart,h=c.directiveEnd;d<h;d++){var w=l.data[d].type.prototype,H=w.ngAfterContentInit,z=w.ngAfterContentChecked,X=w.ngAfterViewInit,me=w.ngAfterViewChecked,Ae=w.ngOnDestroy;H&&(l.contentHooks||(l.contentHooks=[])).push(-d,H),z&&((l.contentHooks||(l.contentHooks=[])).push(d,z),(l.contentCheckHooks||(l.contentCheckHooks=[])).push(d,z)),X&&(l.viewHooks||(l.viewHooks=[])).push(-d,X),me&&((l.viewHooks||(l.viewHooks=[])).push(d,me),(l.viewCheckHooks||(l.viewCheckHooks=[])).push(d,me)),null!=Ae&&(l.destroyHooks||(l.destroyHooks=[])).push(d,Ae)}}function Ru(l,c,d){rr(l,c,3,d)}function hc(l,c,d,h){(3&l[2])===d&&rr(l,c,d,h)}function Oo(l,c){var d=l[2];(3&d)===c&&(d&=2047,l[2]=d+=1)}function rr(l,c,d,h){for(var w=null!=h?h:-1,H=c.length-1,z=0,X=void 0!==h?65535&l[18]:0;X<H;X++)if("number"==typeof c[X+1]){if(z=c[X],null!=h&&z>=h)break}else c[X]<0&&(l[18]+=65536),(z<w||-1==w)&&(Nr(l,d,c,X),l[18]=(4294901760&l[18])+X+2),X++}function Nr(l,c,d,h){var _=d[h]<0,w=d[h+1],z=l[_?-d[h]:d[h]];if(_){if(l[2]>>11<l[18]>>16&&(3&l[2])===c){l[2]+=2048;try{w.call(z)}finally{}}}else try{w.call(z)}finally{}}var $i=function l(c,d,h){(0,M.Z)(this,l),this.factory=c,this.resolving=!1,this.canSeeViewProviders=d,this.injectImpl=h};function Xs(l,c,d){for(var h=Tt(l),_=0;_<d.length;){var w=d[_];if("number"==typeof w){if(0!==w)break;_++;var H=d[_++],z=d[_++],X=d[_++];h?l.setAttribute(c,z,X,H):c.setAttributeNS(H,z,X)}else{var me=w,Ae=d[++_];QS(me)?h&&l.setProperty(c,me,Ae):h?l.setAttribute(c,me,Ae):c.setAttribute(me,Ae),_++}}return _}function Dp(l){return 3===l||4===l||6===l}function QS(l){return 64===l.charCodeAt(0)}function vy(l,c){if(null!==c&&0!==c.length)if(null===l||0===l.length)l=c.slice();else for(var d=-1,h=0;h<c.length;h++){var _=c[h];"number"==typeof _?d=_:0===d||sD(l,d,_,null,-1===d||2===d?c[++h]:null)}return l}function sD(l,c,d,h,_){var w=0,H=l.length;if(-1===c)H=-1;else for(;w<l.length;){var z=l[w++];if("number"==typeof z){if(z===c){H=-1;break}if(z>c){H=w-1;break}}}for(;w<l.length;){var X=l[w];if("number"==typeof X)break;if(X===d){if(null===h)return void(null!==_&&(l[w+1]=_));if(h===l[w+1])return void(l[w+2]=_)}w++,null!==h&&w++,null!==_&&w++}-1!==H&&(l.splice(H,0,c),w=H+1),l.splice(w++,0,d),null!==h&&l.splice(w++,0,h),null!==_&&l.splice(w++,0,_)}function lD(l){return-1!==l}function sh(l){return 32767&l}function Op(l,c){for(var d=function(l){return l>>16}(l),h=c;d>0;)h=h[15],d--;return h}var KS=!0;function gy(l){var c=KS;return KS=l,c}var uF=0;function lh(l,c){var d=$S(l,c);if(-1!==d)return d;var h=c[1];h.firstCreatePass&&(l.injectorIndex=c.length,XS(h.data,l),XS(c,null),XS(h.blueprint,null));var _=_y(l,c),w=l.injectorIndex;if(lD(_))for(var H=sh(_),z=Op(_,c),X=z[1].data,me=0;me<8;me++)c[w+me]=z[H+me]|X[H+me];return c[w+8]=_,w}function XS(l,c){l.push(0,0,0,0,0,0,0,0,c)}function $S(l,c){return-1===l.injectorIndex||l.parent&&l.parent.injectorIndex===l.injectorIndex||null===c[l.injectorIndex+8]?-1:l.injectorIndex}function _y(l,c){if(l.parent&&-1!==l.parent.injectorIndex)return l.parent.injectorIndex;for(var d=0,h=null,_=c;null!==_;){var w=_[1],H=w.type;if(null===(h=2===H?w.declTNode:1===H?_[6]:null))return-1;if(d++,_=_[15],-1!==h.injectorIndex)return h.injectorIndex|d<<16}return-1}function _v(l,c,d){!function(l,c,d){var h;"string"==typeof d?h=d.charCodeAt(0)||0:d.hasOwnProperty(Jn)&&(h=d[Jn]),null==h&&(h=d[Jn]=uF++);var _=255&h;c.data[l+(_>>5)]|=1<<_}(l,c,d)}function eT(l,c,d){if(d&Ye.Optional)return l;Bt(c,"NodeInjector")}function yy(l,c,d,h){if(d&Ye.Optional&&void 0===h&&(h=null),0==(d&(Ye.Self|Ye.Host))){var _=l[9],w=zt(void 0);try{return _?_.get(c,h,d&Ye.Optional):tn(c,h,d&Ye.Optional)}finally{zt(w)}}return eT(h,c,d)}function yv(l,c,d){var h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ye.Default,_=arguments.length>4?arguments[4]:void 0;if(null!==l){var w=bv(d);if("function"==typeof w){if(!nt(c,l,h))return h&Ye.Host?eT(_,d,h):yy(c,d,h,_);try{var H=w(h);if(null!=H||h&Ye.Optional)return H;Bt(d)}finally{Ri()}}else if("number"==typeof w){var z=null,X=$S(l,c),me=-1,Ae=h&Ye.Host?c[16][6]:null;for((-1===X||h&Ye.SkipSelf)&&(-1!==(me=-1===X?_y(l,c):c[X+8])&&iT(h,!1)?(z=c[1],X=sh(me),c=Op(me,c)):X=-1);-1!==X;){var Xe=c[1];if(rT(w,X,Xe.data)){var Qe=nT(X,c,d,z,h,Ae);if(Qe!==tT)return Qe}-1!==(me=c[X+8])&&iT(h,c[1].data[X+8]===Ae)&&rT(w,X,c)?(z=Xe,X=sh(me),c=Op(me,c)):X=-1}}}return yy(c,d,h,_)}var tT={};function pD(){return new Sd($(),Ce())}function nT(l,c,d,h,_,w){var H=c[1],z=H.data[l+8],Ae=uh(z,H,d,null==h?Si(z)&&KS:h!=H&&0!=(3&z.type),_&Ye.Host&&w===z);return null!==Ae?Nu(c,H,Ae,z):tT}function uh(l,c,d,h,_){for(var w=l.providerIndexes,H=c.data,z=1048575&w,X=l.directiveStart,Ae=w>>20,Qe=_?z+Ae:l.directiveEnd,ht=h?z:z+Ae;ht<Qe;ht++){var Dt=H[ht];if(ht<X&&d===Dt||ht>=X&&Dt.type===d)return ht}if(_){var Yt=H[X];if(Yt&&Zi(Yt)&&Yt.type===d)return X}return null}function Nu(l,c,d,h){var _=l[d],w=c.data;if(function(l){return l instanceof $i}(_)){var H=_;H.resolving&&function(l,c){throw new ue("200","Circular dependency in DI detected for ".concat(l).concat(""))}(ot(w[d]));var z=gy(H.canSeeViewProviders);H.resolving=!0;var X=H.injectImpl?zt(H.injectImpl):null;nt(l,h,Ye.Default);try{_=l[d]=H.factory(void 0,w,l,h),c.firstCreatePass&&d>=h.directiveStart&&function(l,c,d){var h=c.type.prototype,w=h.ngOnInit,H=h.ngDoCheck;if(h.ngOnChanges){var z=Cl(c);(d.preOrderHooks||(d.preOrderHooks=[])).push(l,z),(d.preOrderCheckHooks||(d.preOrderCheckHooks=[])).push(l,z)}w&&(d.preOrderHooks||(d.preOrderHooks=[])).push(0-l,w),H&&((d.preOrderHooks||(d.preOrderHooks=[])).push(l,H),(d.preOrderCheckHooks||(d.preOrderCheckHooks=[])).push(l,H))}(d,w[d],c)}finally{null!==X&&zt(X),gy(z),H.resolving=!1,Ri()}}return _}function bv(l){if("string"==typeof l)return l.charCodeAt(0)||0;var c=l.hasOwnProperty(Jn)?l[Jn]:void 0;return"number"==typeof c?c>=0?255&c:pD:c}function rT(l,c,d){return!!(d[c+(l>>5)]&1<<l)}function iT(l,c){return!(l&Ye.Self||l&Ye.Host&&c)}var Sd=function(){function l(c,d){(0,M.Z)(this,l),this._tNode=c,this._lView=d}return(0,D.Z)(l,[{key:"get",value:function(d,h){return yv(this._tNode,this._lView,d,void 0,h)}}]),l}();function ch(l){return hn(function(){for(var c=l.prototype.constructor,d=c[cn]||by(c),h=Object.prototype,_=Object.getPrototypeOf(l.prototype).constructor;_&&_!==h;){var w=_[cn]||by(_);if(w&&w!==d)return w;_=Object.getPrototypeOf(_)}return function(H){return new H}})}function by(l){return le(l)?function(){var c=by(se(l));return c&&c()}:ts(l)}function Cy(l){return function(l,c){if("class"===c)return l.classes;if("style"===c)return l.styles;var d=l.attrs;if(d)for(var h=d.length,_=0;_<h;){var w=d[_];if(Dp(w))break;if(0===w)_+=2;else if("number"==typeof w)for(_++;_<h&&"string"==typeof d[_];)_++;else{if(w===c)return d[_+1];_+=2}}return null}($(),l)}var Zu="__parameters__";function vc(l,c,d){return hn(function(){var h=function(l){return function(){if(l){var d=l.apply(void 0,arguments);for(var h in d)this[h]=d[h]}}}(c);function _(){for(var w=arguments.length,H=new Array(w),z=0;z<w;z++)H[z]=arguments[z];if(this instanceof _)return h.apply(this,H),this;var X=(0,P.Z)(_,H);return me.annotation=X,me;function me(Ae,Xe,Qe){for(var ht=Ae.hasOwnProperty(Zu)?Ae[Zu]:Object.defineProperty(Ae,Zu,{value:[]})[Zu];ht.length<=Qe;)ht.push(null);return(ht[Qe]=ht[Qe]||[]).push(X),Ae}}return d&&(_.prototype=Object.create(d.prototype)),_.prototype.ngMetadataName=l,_.annotationCls=_,_})}var No=function(){function l(c,d){(0,M.Z)(this,l),this._desc=c,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof d?this.__NG_ELEMENT_ID__=d:void 0!==d&&(this.\u0275prov=Rn({token:this,providedIn:d.providedIn||"root",factory:d.factory}))}return(0,D.Z)(l,[{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),l}(),fD=new No("AnalyzeForEntryComponents"),lu=Function;function Ps(l,c){void 0===c&&(c=l);for(var d=0;d<l.length;d++){var h=l[d];Array.isArray(h)?(c===l&&(c=l.slice(0,d)),Ps(h,c)):c!==l&&c.push(h)}return c}function Is(l,c){l.forEach(function(d){return Array.isArray(d)?Is(d,c):c(d)})}function Sv(l,c,d){c>=l.length?l.push(d):l.splice(c,0,d)}function kd(l,c){return c>=l.length-1?l.pop():l.splice(c,1)[0]}function _c(l,c){for(var d=[],h=0;h<l;h++)d.push(c);return d}function is(l,c,d){var h=Ed(l,c);return h>=0?l[1|h]=d:function(l,c,d,h){var _=l.length;if(_==c)l.push(d,h);else if(1===_)l.push(h,l[0]),l[0]=d;else{for(_--,l.push(l[_-1],l[_]);_>c;)l[_]=l[_-2],_--;l[c]=d,l[c+1]=h}}(l,h=~h,c,d),h}function ph(l,c){var d=Ed(l,c);if(d>=0)return l[1|d]}function Ed(l,c){return function(l,c,d){for(var h=0,_=l.length>>d;_!==h;){var w=h+(_-h>>1),H=l[w<<d];if(c===H)return w<<d;H>c?_=w:h=w+1}return~(_<<d)}(l,c,1)}var fh={},ky="__NG_DI_FLAG__",Ad="ngTempTokenPath",Ml=/\n/gm,Al="__source",Ev=j({provide:String,useValue:j}),Rp=void 0;function Mv(l){var c=Rp;return Rp=l,c}function bD(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ye.Default;if(void 0===Rp)throw new Error("inject() must be called from an injection context");return null===Rp?tn(l,void 0,c):Rp.get(l,c&Ye.Optional?null:void 0,c)}function Go(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ye.Default;return(Lt()||bD)(se(l),c)}var CD=Go;function Od(l){for(var c=[],d=0;d<l.length;d++){var h=se(l[d]);if(Array.isArray(h)){if(0===h.length)throw new Error("Arguments array must have arguments.");for(var _=void 0,w=Ye.Default,H=0;H<h.length;H++){var z=h[H],X=fT(z);"number"==typeof X?-1===X?_=z.token:w|=X:_=z}c.push(Go(_,w))}else c.push(Go(h))}return c}function Np(l,c){return l[ky]=c,l.prototype[ky]=c,l}function fT(l){return l[ky]}function hT(l,c,d,h){var _=l[Ad];throw c[Al]&&_.unshift(c[Al]),l.message=function(l,c,d){var h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;l=l&&"\n"===l.charAt(0)&&"\u0275"==l.charAt(1)?l.substr(2):l;var _=W(c);if(Array.isArray(c))_=c.map(W).join(" -> ");else if("object"==typeof c){var w=[];for(var H in c)if(c.hasOwnProperty(H)){var z=c[H];w.push(H+":"+("string"==typeof z?JSON.stringify(z):W(z)))}_="{".concat(w.join(", "),"}")}return"".concat(d).concat(h?"("+h+")":"","[").concat(_,"]: ").concat(l.replace(Ml,"\n "))}("\n"+l.message,_,d,h),l.ngTokenPath=_,l[Ad]=null,l}var yc,Rd,hh=Np(vc("Inject",function(c){return{token:c}}),-1),Lu=Np(vc("Optional"),8),Fu=Np(vc("SkipSelf"),4);function Ol(l){var c;return(null===(c=function(){if(void 0===yc&&(yc=null,ft.trustedTypes))try{yc=ft.trustedTypes.createPolicy("angular",{createHTML:function(c){return c},createScript:function(c){return c},createScriptURL:function(c){return c}})}catch(l){}return yc}())||void 0===c?void 0:c.createHTML(l))||l}function cu(l){var c;return(null===(c=function(){if(void 0===Rd&&(Rd=null,ft.trustedTypes))try{Rd=ft.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(c){return c},createScript:function(c){return c},createScriptURL:function(c){return c}})}catch(l){}return Rd}())||void 0===c?void 0:c.createHTML(l))||l}var $s=function(){function l(c){(0,M.Z)(this,l),this.changingThisBreaksApplicationSecurity=c}return(0,D.Z)(l,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),l}(),Fp=function(l){(0,A.Z)(d,l);var c=(0,y.Z)(d);function d(){return(0,M.Z)(this,d),c.apply(this,arguments)}return(0,D.Z)(d,[{key:"getTypeName",value:function(){return"HTML"}}]),d}($s),Sc=function(l){(0,A.Z)(d,l);var c=(0,y.Z)(d);function d(){return(0,M.Z)(this,d),c.apply(this,arguments)}return(0,D.Z)(d,[{key:"getTypeName",value:function(){return"Style"}}]),d}($s),yT=function(l){(0,A.Z)(d,l);var c=(0,y.Z)(d);function d(){return(0,M.Z)(this,d),c.apply(this,arguments)}return(0,D.Z)(d,[{key:"getTypeName",value:function(){return"Script"}}]),d}($s),Ry=function(l){(0,A.Z)(d,l);var c=(0,y.Z)(d);function d(){return(0,M.Z)(this,d),c.apply(this,arguments)}return(0,D.Z)(d,[{key:"getTypeName",value:function(){return"URL"}}]),d}($s),kD=function(l){(0,A.Z)(d,l);var c=(0,y.Z)(d);function d(){return(0,M.Z)(this,d),c.apply(this,arguments)}return(0,D.Z)(d,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),d}($s);function pu(l){return l instanceof $s?l.changingThisBreaksApplicationSecurity:l}function Pl(l,c){var d=bT(l);if(null!=d&&d!==c){if("ResourceURL"===d&&"URL"===c)return!0;throw new Error("Required a safe ".concat(c,", got a ").concat(d," (see https://g.co/ng/security#xss)"))}return d===c}function bT(l){return l instanceof $s&&l.getTypeName()||null}function ED(l){return new Fp(l)}function MD(l){return new Sc(l)}function Ov(l){return new yT(l)}function vh(l){return new Ry(l)}function CT(l){return new kD(l)}var AD=function(){function l(c){(0,M.Z)(this,l),this.inertDocumentHelper=c}return(0,D.Z)(l,[{key:"getInertBodyElement",value:function(d){d="<body><remove></remove>"+d;try{var h=(new window.DOMParser).parseFromString(Ol(d),"text/html").body;return null===h?this.inertDocumentHelper.getInertBodyElement(d):(h.removeChild(h.firstChild),h)}catch(_){return null}}}]),l}(),Ny=function(){function l(c){if((0,M.Z)(this,l),this.defaultDoc=c,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var d=this.inertDocument.createElement("html");this.inertDocument.appendChild(d);var h=this.inertDocument.createElement("body");d.appendChild(h)}}return(0,D.Z)(l,[{key:"getInertBodyElement",value:function(d){var h=this.inertDocument.createElement("template");if("content"in h)return h.innerHTML=Ol(d),h;var _=this.inertDocument.createElement("body");return _.innerHTML=Ol(d),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}},{key:"stripCustomNsAttrs",value:function(d){for(var h=d.attributes,_=h.length-1;0<_;_--){var H=h.item(_).name;("xmlns:ns1"===H||0===H.indexOf("ns1:"))&&d.removeAttribute(H)}for(var z=d.firstChild;z;)z.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(z),z=z.nextSibling}}]),l}(),DD=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Zy=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Up(l){return(l=String(l)).match(DD)||l.match(Zy)?l:"unsafe:"+l}function Ly(l){return(l=String(l)).split(",").map(function(c){return Up(c.trim())}).join(", ")}function Il(l){var h,c={},d=(0,C.Z)(l.split(","));try{for(d.s();!(h=d.n()).done;)c[h.value]=!0}catch(w){d.e(w)}finally{d.f()}return c}function Hp(){for(var l={},c=arguments.length,d=new Array(c),h=0;h<c;h++)d[h]=arguments[h];for(var _=0,w=d;_<w.length;_++){var H=w[_];for(var z in H)H.hasOwnProperty(z)&&(l[z]=!0)}return l}var gh,Fy=Il("area,br,col,hr,img,wbr"),By=Il("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Vp=Il("rp,rt"),Tc=Hp(Vp,By),Pv=Hp(Fy,Hp(By,Il("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")),Hp(Vp,Il("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")),Tc),TT=Il("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),xT=Il("srcset"),Iv=Hp(TT,xT,Il("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"),Il("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")),xc=Il("script,style,template"),Uy=function(){function l(){(0,M.Z)(this,l),this.sanitizedSomething=!1,this.buf=[]}return(0,D.Z)(l,[{key:"sanitizeChildren",value:function(d){for(var h=d.firstChild,_=!0;h;)if(h.nodeType===Node.ELEMENT_NODE?_=this.startElement(h):h.nodeType===Node.TEXT_NODE?this.chars(h.nodeValue):this.sanitizedSomething=!0,_&&h.firstChild)h=h.firstChild;else for(;h;){h.nodeType===Node.ELEMENT_NODE&&this.endElement(h);var w=this.checkClobberedElement(h,h.nextSibling);if(w){h=w;break}h=this.checkClobberedElement(h,h.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(d){var h=d.nodeName.toLowerCase();if(!Pv.hasOwnProperty(h))return this.sanitizedSomething=!0,!xc.hasOwnProperty(h);this.buf.push("<"),this.buf.push(h);for(var _=d.attributes,w=0;w<_.length;w++){var H=_.item(w),z=H.name,X=z.toLowerCase();if(Iv.hasOwnProperty(X)){var me=H.value;TT[X]&&(me=Up(me)),xT[X]&&(me=Ly(me)),this.buf.push(" ",z,'="',Hy(me),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(d){var h=d.nodeName.toLowerCase();Pv.hasOwnProperty(h)&&!Fy.hasOwnProperty(h)&&(this.buf.push("</"),this.buf.push(h),this.buf.push(">"))}},{key:"chars",value:function(d){this.buf.push(Hy(d))}},{key:"checkClobberedElement",value:function(d,h){if(h&&(d.compareDocumentPosition(h)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(d.outerHTML));return h}}]),l}(),PD=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wT=/([^\#-~ |!])/g;function Hy(l){return l.replace(/&/g,"&amp;").replace(PD,function(c){return"&#"+(1024*(c.charCodeAt(0)-55296)+(c.charCodeAt(1)-56320)+65536)+";"}).replace(wT,function(c){return"&#"+c.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function wc(l,c){var d=null;try{gh=gh||function(l){var c=new Ny(l);return function(){try{return!!(new window.DOMParser).parseFromString(Ol(""),"text/html")}catch(l){return!1}}()?new AD(c):c}(l);var h=c?String(c):"";d=gh.getInertBodyElement(h);var _=5,w=h;do{if(0===_)throw new Error("Failed to sanitize html because the input is unstable");_--,h=w,w=d.innerHTML,d=gh.getInertBodyElement(h)}while(h!==w);return Ol((new Uy).sanitizeChildren(qp(d)||d))}finally{if(d)for(var X=qp(d)||d;X.firstChild;)X.removeChild(X.firstChild)}}function qp(l){return"content"in l&&function(l){return l.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===l.nodeName}(l)?l.content:null}var Rs=function(l){return l[l.NONE=0]="NONE",l[l.HTML=1]="HTML",l[l.STYLE=2]="STYLE",l[l.SCRIPT=3]="SCRIPT",l[l.URL=4]="URL",l[l.RESOURCE_URL=5]="RESOURCE_URL",l}({});function jp(l){var c=Rl();return c?cu(c.sanitize(Rs.HTML,l)||""):Pl(l,"HTML")?cu(pu(l)):wc(Pe(),ye(l))}function ID(l){var c=Rl();return c?c.sanitize(Rs.STYLE,l)||"":Pl(l,"Style")?pu(l):ye(l)}function Vy(l){var c=Rl();return c?c.sanitize(Rs.URL,l)||"":Pl(l,"URL")?pu(l):Up(ye(l))}function Rl(){var l=Ce();return l&&l[12]}var MT="__ngContext__";function Ya(l,c){l[MT]=c}function jy(l){var c=function(l){return l[MT]||null}(l);return c?Array.isArray(c)?c:c.lView:null}function bh(l){return l.ngOriginalError}function Ch(l){for(var c=arguments.length,d=new Array(c>1?c-1:0),h=1;h<c;h++)d[h-1]=arguments[h];l.error.apply(l,d)}var kc=function(){function l(){(0,M.Z)(this,l),this._console=console}return(0,D.Z)(l,[{key:"handleError",value:function(d){var h=this._findOriginalError(d),_=this._findContext(d),w=function(l){return l&&l.ngErrorLogger||Ch}(d);w(this._console,"ERROR",d),h&&w(this._console,"ORIGINAL ERROR",h),_&&w(this._console,"ERROR CONTEXT",_)}},{key:"_findContext",value:function(d){return d?function(l){return l.ngDebugContext}(d)||this._findContext(bh(d)):null}},{key:"_findOriginalError",value:function(d){for(var h=d&&bh(d);h&&bh(h);)h=bh(h);return h||null}}]),l}(),Ra=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ft)}();function Zl(l){return l.ownerDocument.defaultView}function Fd(l){return l.ownerDocument}function Ls(l){return l instanceof Function?l():l}var Th=function(l){return l[l.Important=1]="Important",l[l.DashCase=2]="DashCase",l}({});function Bv(l,c){return undefined(l,c)}function Bd(l){var c=l[3];return ho(c)?c[3]:c}function rb(l){return Or(l[13])}function Uv(l){return Or(l[4])}function Or(l){for(;null!==l&&!ho(l);)l=l[4];return l}function Qp(l,c,d,h,_){if(null!=h){var w,H=!1;ho(h)?w=h:hr(h)&&(H=!0,h=h[0]);var z=zr(h);0===l&&null!==d?null==_?jv(c,d,z):Ud(c,d,z,_||null,!0):1===l&&null!==d?Ud(c,d,z,_||null,!0):2===l?function(l,c,d){var h=zv(l,c);h&&function(l,c,d,h){Tt(l)?l.removeChild(c,d,h):c.removeChild(d)}(l,h,c,d)}(c,z,H):3===l&&c.destroyNode(z),null!=w&&function(l,c,d,h,_){var w=d[7];w!==zr(d)&&Qp(c,l,h,w,_);for(var z=10;z<d.length;z++){var X=d[z];Mh(X[1],X,l,c,h,w)}}(c,l,w,d,_)}}function Hv(l,c){return Tt(l)?l.createText(c):l.createTextNode(c)}function ib(l,c,d){return Tt(l)?l.createElement(c,d):null===d?l.createElement(c):l.createElementNS(d,c)}function ZT(l,c){var d=l[9],h=d.indexOf(c),_=c[3];1024&c[2]&&(c[2]&=-1025,wl(_,-1)),d.splice(h,1)}function xh(l,c){if(!(l.length<=10)){var d=10+c,h=l[d];if(h){var _=h[17];null!==_&&_!==l&&ZT(_,h),c>0&&(l[d-1][4]=h[4]);var w=kd(l,10+c);!function(l,c){Mh(l,c,c[11],2,null,null),c[0]=null,c[6]=null}(h[1],h);var H=w[19];null!==H&&H.detachView(w[1]),h[3]=null,h[4]=null,h[2]&=-129}return h}}function ab(l,c){if(!(256&c[2])){var d=c[11];Tt(d)&&d.destroyNode&&Mh(l,c,d,3,null,null),function(l){var c=l[13];if(!c)return sb(l[1],l);for(;c;){var d=null;if(hr(c))d=c[13];else{var h=c[10];h&&(d=h)}if(!d){for(;c&&!c[4]&&c!==l;)hr(c)&&sb(c[1],c),c=c[3];null===c&&(c=l),hr(c)&&sb(c[1],c),d=c&&c[4]}c=d}}(c)}}function sb(l,c){if(!(256&c[2])){c[2]&=-129,c[2]|=256,function(l,c){var d;if(null!=l&&null!=(d=l.destroyHooks))for(var h=0;h<d.length;h+=2){var _=c[d[h]];if(!(_ instanceof $i)){var w=d[h+1];if(Array.isArray(w))for(var H=0;H<w.length;H+=2){var z=_[w[H]],X=w[H+1];try{X.call(z)}finally{}}else try{w.call(_)}finally{}}}}(l,c),function(l,c){var d=l.cleanup,h=c[7],_=-1;if(null!==d)for(var w=0;w<d.length-1;w+=2)if("string"==typeof d[w]){var H=d[w+1],z="function"==typeof H?H(c):zr(c[H]),X=h[_=d[w+2]],me=d[w+3];"boolean"==typeof me?z.removeEventListener(d[w],X,me):me>=0?h[_=me]():h[_=-me].unsubscribe(),w+=2}else{var Ae=h[_=d[w+1]];d[w].call(Ae)}if(null!==h){for(var Xe=_+1;Xe<h.length;Xe++)(0,h[Xe])();c[7]=null}}(l,c),1===c[1].type&&Tt(c[11])&&c[11].destroy();var d=c[17];if(null!==d&&ho(c[3])){d!==c[3]&&ZT(d,c);var h=c[19];null!==h&&h.detachView(l)}}}function lb(l,c,d){return function(l,c,d){for(var h=c;null!==h&&40&h.type;)h=(c=h).parent;if(null===h)return d[0];if(2&h.flags){var _=l.data[h.directiveStart].encapsulation;if(_===xn.None||_===xn.Emulated)return null}return Ii(h,d)}(l,c.parent,d)}function Ud(l,c,d,h,_){Tt(l)?l.insertBefore(c,d,h,_):c.insertBefore(d,h,_)}function jv(l,c,d){Tt(l)?l.appendChild(c,d):c.appendChild(d)}function ub(l,c,d,h,_){null!==h?Ud(l,c,d,h,_):jv(l,c,d)}function zv(l,c){return Tt(l)?l.parentNode(c):c.parentNode}function FT(l,c,d){return BT(l,c,d)}var BT=function(l,c,d){return 40&l.type?Ii(l,d):null};function Wv(l,c,d,h){var _=lb(l,h,c),w=c[11],z=FT(h.parent||c[6],h,c);if(null!=_)if(Array.isArray(d))for(var X=0;X<d.length;X++)ub(w,_,d[X],z,!1);else ub(w,_,d,z,!1)}function wh(l,c){if(null!==c){var d=c.type;if(3&d)return Ii(c,l);if(4&d)return Eh(-1,l[c.index]);if(8&d){var h=c.child;if(null!==h)return wh(l,h);var _=l[c.index];return ho(_)?Eh(-1,_):zr(_)}if(32&d)return Bv(c,l)()||zr(l[c.index]);var z=kh(l,c);return null!==z?Array.isArray(z)?z[0]:wh(Bd(l[16]),z):wh(l,c.next)}return null}function kh(l,c){return null!==c?l[16][6].projection[c.projection]:null}function Eh(l,c){var d=10+l+1;if(d<c.length){var h=c[d],_=h[1].firstChild;if(null!==_)return wh(h,_)}return c[7]}function db(l,c,d,h,_,w,H){for(;null!=d;){var z=h[d.index],X=d.type;if(H&&0===c&&(z&&Ya(zr(z),h),d.flags|=4),64!=(64&d.flags))if(8&X)db(l,c,d.child,h,_,w,!1),Qp(c,l,_,z,w);else if(32&X){for(var me=Bv(d,h),Ae=void 0;Ae=me();)Qp(c,l,_,Ae,w);Qp(c,l,_,z,w)}else 16&X?Ac(l,c,h,d,_,w):Qp(c,l,_,z,w);d=H?d.projectionNext:d.next}}function Mh(l,c,d,h,_,w){db(d,h,l.firstChild,c,_,w,!1)}function zD(l,c,d){Ac(c[11],0,c,d,lb(l,d,c),FT(d.parent||c[6],d,c))}function Ac(l,c,d,h,_,w){var H=d[16],X=H[6].projection[h.projection];if(Array.isArray(X))for(var me=0;me<X.length;me++)Qp(c,l,_,X[me],w);else db(l,c,X,H[3],_,w,!0)}function pb(l,c,d){Tt(l)?l.setAttribute(c,"style",d):c.style.cssText=d}function fb(l,c,d){Tt(l)?""===d?l.removeAttribute(c,"class"):l.setAttribute(c,"class",d):c.className=d}function Vd(l,c,d){for(var h=l.length;;){var _=l.indexOf(c,d);if(-1===_)return _;if(0===_||l.charCodeAt(_-1)<=32){var w=c.length;if(_+w===h||l.charCodeAt(_+w)<=32)return _}d=_+1}}var VT="ng-template";function GD(l,c,d){for(var h=0;h<l.length;){var _=l[h++];if(d&&"class"===_){if(-1!==Vd((_=l[h]).toLowerCase(),c,0))return!0}else if(1===_){for(;h<l.length&&"string"==typeof(_=l[h++]);)if(_.toLowerCase()===c)return!0;return!1}}return!1}function qT(l){return 4===l.type&&l.value!==VT}function YD(l,c,d){return c===(4!==l.type||d?l.value:VT)}function JD(l,c,d){for(var h=4,_=l.attrs||[],w=function(l){for(var c=0;c<l.length;c++)if(Dp(l[c]))return c;return l.length}(_),H=!1,z=0;z<c.length;z++){var X=c[z];if("number"!=typeof X){if(!H)if(4&h){if(h=2|1&h,""!==X&&!YD(l,X,d)||""===X&&1===c.length){if(Fs(h))return!1;H=!0}}else{var me=8&h?X:c[++z];if(8&h&&null!==l.attrs){if(!GD(l.attrs,me,d)){if(Fs(h))return!1;H=!0}continue}var Xe=QD(8&h?"class":X,_,qT(l),d);if(-1===Xe){if(Fs(h))return!1;H=!0;continue}if(""!==me){var Qe;Qe=Xe>w?"":_[Xe+1].toLowerCase();var ht=8&h?Qe:null;if(ht&&-1!==Vd(ht,me,0)||2&h&&me!==Qe){if(Fs(h))return!1;H=!0}}}}else{if(!H&&!Fs(h)&&!Fs(X))return!1;if(H&&Fs(X))continue;H=!1,h=X|1&h}}return Fs(h)||H}function Fs(l){return 0==(1&l)}function QD(l,c,d,h){if(null===c)return-1;var _=0;if(h||!d){for(var w=!1;_<c.length;){var H=c[_];if(H===l)return _;if(3===H||6===H)w=!0;else{if(1===H||2===H){for(var z=c[++_];"string"==typeof z;)z=c[++_];continue}if(4===H)break;if(0===H){_+=4;continue}}_+=w?1:2}return-1}return function(l,c){var d=l.indexOf(4);if(d>-1)for(d++;d<l.length;){var h=l[d];if("number"==typeof h)return-1;if(h===c)return d;d++}return-1}(c,l)}function jT(l,c){for(var d=arguments.length>2&&void 0!==arguments[2]&&arguments[2],h=0;h<c.length;h++)if(JD(l,c[h],d))return!0;return!1}function hb(l,c){e:for(var d=0;d<c.length;d++){var h=c[d];if(l.length===h.length){for(var _=0;_<l.length;_++)if(l[_]!==h[_])continue e;return!0}}return!1}function mb(l,c){return l?":not("+c.trim()+")":c}function eO(l){for(var c=l[0],d=1,h=2,_="",w=!1;d<l.length;){var H=l[d];if("string"==typeof H)if(2&h){var z=l[++d];_+="["+H+(z.length>0?'="'+z+'"':"")+"]"}else 8&h?_+="."+H:4&h&&(_+=" "+H);else""!==_&&!Fs(H)&&(c+=mb(w,_),_=""),h=H,w=w||!Fs(h);d++}return""!==_&&(c+=mb(w,_)),c}var Ur={};function nO(l){rO(ge(),Ce(),Do()+l,Dn())}function rO(l,c,d,h){if(!h)if(3==(3&c[2])){var w=l.preOrderCheckHooks;null!==w&&Ru(c,w,d)}else{var H=l.preOrderHooks;null!==H&&hc(c,H,0,d)}_s(d)}function vb(l,c){return l<<17|c<<2}function hu(l){return l>>17&32767}function gb(l){return 2|l}function ls(l){return(131068&l)>>2}function WT(l,c){return-131069&l|c<<2}function GT(l){return 1|l}function xb(l,c){var d=l.contentQueries;if(null!==d)for(var h=0;h<d.length;h+=2){var w=d[h+1];if(-1!==w){var H=l.data[w];Ze(d[h]),H.contentQueries(2,c[w],w)}}}function Na(l,c,d,h,_,w,H,z,X,me){var Ae=c.blueprint.slice();return Ae[0]=_,Ae[2]=140|h,pc(Ae),Ae[3]=Ae[15]=l,Ae[8]=d,Ae[10]=H||l&&l[10],Ae[11]=z||l&&l[11],Ae[12]=X||l&&l[12]||null,Ae[9]=me||l&&l[9]||null,Ae[6]=w,Ae[16]=2==c.type?l[16]:Ae,Ae}function qd(l,c,d,h,_){var w=l.data[c];if(null===w)w=function(l,c,d,h,_){var w=ke(),H=wt(),X=l.data[c]=function(l,c,d,h,_,w){return{type:d,index:h,insertBeforeIndex:null,injectorIndex:c?c.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:_,attrs:w,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:c,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,H?w:w&&w.parent,d,c,h,_);return null===l.firstChild&&(l.firstChild=X),null!==w&&(H?null==w.child&&null!==X.parent&&(w.child=X):null===w.next&&(w.next=X)),X}(l,c,d,h,_),Dr.lFrame.inI18n&&(w.flags|=64);else if(64&w.type){w.type=d,w.value=h,w.attrs=_;var H=function(){var l=Dr.lFrame,c=l.currentTNode;return l.isParent?c:c.parent}();w.injectorIndex=null===H?-1:H.injectorIndex}return ut(w,!0),w}function Kp(l,c,d,h){if(0===d)return-1;for(var _=c.length,w=0;w<d;w++)c.push(h),l.blueprint.push(h),l.data.push(null);return _}function Ph(l,c,d){xt(c);try{var h=l.viewQuery;null!==h&&og(1,h,d);var _=l.template;null!==_&&Eb(l,c,_,1,d),l.firstCreatePass&&(l.firstCreatePass=!1),l.staticContentQueries&&xb(l,c),l.staticViewQueries&&og(2,l.viewQuery,d);var w=l.components;null!==w&&function(l,c){for(var d=0;d<c.length;d++)SO(l,c[d])}(c,w)}catch(H){throw l.firstCreatePass&&(l.incompleteFirstPass=!0,l.firstCreatePass=!1),H}finally{c[2]&=-5,ea()}}function Xp(l,c,d,h){var _=c[2];if(256!=(256&_)){xt(c);var w=Dn();try{pc(c),function(l){Dr.lFrame.bindingIndex=l}(l.bindingStartIndex),null!==d&&Eb(l,c,d,2,h);var H=3==(3&_);if(!w)if(H){var z=l.preOrderCheckHooks;null!==z&&Ru(c,z,null)}else{var X=l.preOrderHooks;null!==X&&hc(c,X,0,null),Oo(c,0)}if(function(l){for(var c=rb(l);null!==c;c=Uv(c))if(c[2])for(var d=c[9],h=0;h<d.length;h++){var _=d[h];0==(1024&_[2])&&wl(_[3],1),_[2]|=1024}}(c),function(l){for(var c=rb(l);null!==c;c=Uv(c))for(var d=10;d<c.length;d++){var h=c[d],_=h[1];Tp(h)&&Xp(_,h,_.template,h[8])}}(c),null!==l.contentQueries&&xb(l,c),!w)if(H){var me=l.contentCheckHooks;null!==me&&Ru(c,me)}else{var Ae=l.contentHooks;null!==Ae&&hc(c,Ae,1),Oo(c,1)}!function(l,c){var d=l.hostBindingOpCodes;if(null!==d)try{for(var h=0;h<d.length;h++){var _=d[h];if(_<0)_s(~_);else{var w=_,H=d[++h],z=d[++h];ai(H,w),z(2,c[w])}}}finally{_s(-1)}}(l,c);var Xe=l.components;null!==Xe&&function(l,c){for(var d=0;d<c.length;d++)VF(l,c[d])}(c,Xe);var Qe=l.viewQuery;if(null!==Qe&&og(2,Qe,h),!w)if(H){var ht=l.viewCheckHooks;null!==ht&&Ru(c,ht)}else{var Dt=l.viewHooks;null!==Dt&&hc(c,Dt,2),Oo(c,2)}!0===l.firstUpdatePass&&(l.firstUpdatePass=!1),w||(c[2]&=-73),1024&c[2]&&(c[2]&=-1025,wl(c[3],-1))}finally{ea()}}}function pO(l,c,d,h){var _=c[10],w=!Dn(),H=Ds(c);try{w&&!H&&_.begin&&_.begin(),H&&Ph(l,c,h),Xp(l,c,d,h)}finally{w&&!H&&_.end&&_.end()}}function Eb(l,c,d,h,_){var w=Do(),H=2&h;try{_s(-1),H&&c.length>20&&rO(l,c,20,Dn()),d(h,_)}finally{_s(w)}}function XT(l,c,d){if(ha(c))for(var _=c.directiveEnd,w=c.directiveStart;w<_;w++){var H=l.data[w];H.contentQueries&&H.contentQueries(1,d[w],w)}}function tg(l,c,d){!yd()||(function(l,c,d,h){var _=d.directiveStart,w=d.directiveEnd;l.firstCreatePass||lh(d,c),Ya(h,c);for(var H=d.initialInputs,z=_;z<w;z++){var X=l.data[z],me=Zi(X);me&&FF(c,d,X);var Ae=Nu(c,l,z,d);Ya(Ae,c),null!==H&&BF(0,z-_,Ae,X,0,H),me&&(ba(d.index,c)[8]=Ae)}}(l,c,d,Ii(d,c)),128==(128&d.flags)&&function(l,c,d){var h=d.directiveStart,_=d.directiveEnd,H=d.index,z=Dr.lFrame.currentDirectiveIndex;try{_s(H);for(var X=h;X<_;X++){var me=l.data[X],Ae=c[X];Ne(X),(null!==me.hostBindings||0!==me.hostVars||null!==me.hostAttrs)&&sx(me,Ae)}}finally{_s(-1),Ne(z)}}(l,c,d))}function Mb(l,c){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ii,h=c.localNames;if(null!==h)for(var _=c.index+1,w=0;w<h.length;w+=2){var H=h[w+1],z=-1===H?d(c,l):l[H];l[_++]=z}}function ng(l){var c=l.tView;return null===c||c.incompleteFirstPass?l.tView=tl(1,null,l.template,l.decls,l.vars,l.directiveDefs,l.pipeDefs,l.viewQuery,l.schemas,l.consts):c}function tl(l,c,d,h,_,w,H,z,X,me){var Ae=20+h,Xe=Ae+_,Qe=function(l,c){for(var d=[],h=0;h<c;h++)d.push(h<l?null:Ur);return d}(Ae,Xe),ht="function"==typeof me?me():me;return Qe[1]={type:l,blueprint:Qe,template:d,queries:null,viewQuery:z,declTNode:c,data:Qe.slice().fill(null,Ae),bindingStartIndex:Ae,expandoStartIndex:Xe,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 w?w():w,pipeRegistry:"function"==typeof H?H():H,firstChild:null,schemas:X,consts:ht,incompleteFirstPass:!1}}function rg(l,c,d,h){var _=xO(c);null===d?_.push(h):(_.push(d),l.firstCreatePass&&hx(l).push(h,_.length-1))}function tx(l,c,d){for(var h in l)if(l.hasOwnProperty(h)){var _=l[h];(d=null===d?{}:d).hasOwnProperty(h)?d[h].push(c,_):d[h]=[c,_]}return d}function Bs(l,c,d,h,_,w,H,z){var Ae,X=Ii(c,d),me=c.inputs;!z&&null!=me&&(Ae=me[h])?(Rb(l,d,Ae,h,_),Si(c)&&function(l,c){var d=ba(c,l);16&d[2]||(d[2]|=64)}(d,c.index)):3&c.type&&(h=function(l){return"class"===l?"className":"for"===l?"htmlFor":"formaction"===l?"formAction":"innerHtml"===l?"innerHTML":"readonly"===l?"readOnly":"tabindex"===l?"tabIndex":l}(h),_=null!=H?H(_,c.value||"",h):_,Tt(w)?w.setProperty(X,h,_):QS(h)||(X.setProperty?X.setProperty(h,_):X[h]=_))}function Ob(l,c,d,h){var _=!1;if(yd()){var w=function(l,c,d){var h=l.directiveRegistry,_=null;if(h)for(var w=0;w<h.length;w++){var H=h[w];jT(d,H.selectors,!1)&&(_||(_=[]),_v(lh(d,c),l,H.type),Zi(H)?(lx(l,d),_.unshift(H)):_.push(H))}return _}(l,c,d),H=null===h?null:{"":-1};if(null!==w){_=!0,_O(d,l.data.length,w.length);for(var z=0;z<w.length;z++){var X=w[z];X.providersResolver&&X.providersResolver(X)}for(var me=!1,Ae=!1,Xe=Kp(l,c,w.length,null),Qe=0;Qe<w.length;Qe++){var ht=w[Qe];d.mergedAttrs=vy(d.mergedAttrs,ht.hostAttrs),yO(l,d,c,Xe,ht),LF(Xe,ht,H),null!==ht.contentQueries&&(d.flags|=8),(null!==ht.hostBindings||null!==ht.hostAttrs||0!==ht.hostVars)&&(d.flags|=128);var Dt=ht.type.prototype;!me&&(Dt.ngOnChanges||Dt.ngOnInit||Dt.ngDoCheck)&&((l.preOrderHooks||(l.preOrderHooks=[])).push(d.index),me=!0),!Ae&&(Dt.ngOnChanges||Dt.ngDoCheck)&&((l.preOrderCheckHooks||(l.preOrderCheckHooks=[])).push(d.index),Ae=!0),Xe++}!function(l,c){for(var h=c.directiveEnd,_=l.data,w=c.attrs,H=[],z=null,X=null,me=c.directiveStart;me<h;me++){var Ae=_[me],Xe=Ae.inputs,Qe=null===w||qT(c)?null:UF(Xe,w);H.push(Qe),z=tx(Xe,me,z),X=tx(Ae.outputs,me,X)}null!==z&&(z.hasOwnProperty("class")&&(c.flags|=16),z.hasOwnProperty("style")&&(c.flags|=32)),c.initialInputs=H,c.inputs=z,c.outputs=X}(l,d)}H&&function(l,c,d){if(c)for(var h=l.localNames=[],_=0;_<c.length;_+=2){var w=d[c[_+1]];if(null==w)throw new ue("301","Export of name '".concat(c[_+1],"' not found!"));h.push(c[_],w)}}(d,h,H)}return d.mergedAttrs=vy(d.mergedAttrs,d.attrs),_}function ax(l,c,d,h,_,w){var H=w.hostBindings;if(H){var z=l.hostBindingOpCodes;null===z&&(z=l.hostBindingOpCodes=[]);var X=~c.index;(function(l){for(var c=l.length;c>0;){var d=l[--c];if("number"==typeof d&&d<0)return d}return 0})(z)!=X&&z.push(X),z.push(h,_,H)}}function sx(l,c){null!==l.hostBindings&&l.hostBindings(1,c)}function lx(l,c){c.flags|=2,(l.components||(l.components=[])).push(c.index)}function LF(l,c,d){if(d){if(c.exportAs)for(var h=0;h<c.exportAs.length;h++)d[c.exportAs[h]]=l;Zi(c)&&(d[""]=l)}}function _O(l,c,d){l.flags|=1,l.directiveStart=c,l.directiveEnd=c+d,l.providerIndexes=c}function yO(l,c,d,h,_){l.data[h]=_;var w=_.factory||(_.factory=ts(_.type)),H=new $i(w,Zi(_),null);l.blueprint[h]=H,d[h]=H,ax(l,c,0,h,Kp(l,d,_.hostVars,Ur),_)}function FF(l,c,d){var h=Ii(c,l),_=ng(d),w=l[10],H=Ib(l,Na(l,_,null,d.onPush?64:16,h,c,w,w.createRenderer(h,d),null,null));l[c.index]=H}function Ll(l,c,d,h,_,w){var H=Ii(l,c);!function(l,c,d,h,_,w,H){if(null==w)Tt(l)?l.removeAttribute(c,_,d):c.removeAttribute(_);else{var z=null==H?ye(w):H(w,h||"",_);Tt(l)?l.setAttribute(c,_,z,d):d?c.setAttributeNS(d,_,z):c.setAttribute(_,z)}}(c[11],H,w,l.value,d,h,_)}function BF(l,c,d,h,_,w){var H=w[c];if(null!==H)for(var z=h.setInput,X=0;X<H.length;){var me=H[X++],Ae=H[X++],Xe=H[X++];null!==z?h.setInput(d,Xe,me,Ae):d[Ae]=Xe}}function UF(l,c){for(var d=null,h=0;h<c.length;){var _=c[h];if(0!==_)if(5!==_){if("number"==typeof _)break;l.hasOwnProperty(_)&&(null===d&&(d=[]),d.push(_,l[_],c[h+1])),h+=2}else h+=2;else h+=4}return d}function Fl(l,c,d,h){return new Array(l,!0,!1,c,null,0,h,d,null,null)}function VF(l,c){var d=ba(c,l);if(Tp(d)){var h=d[1];80&d[2]?Xp(h,d,h.template,d[8]):d[5]>0&&ux(d)}}function ux(l){for(var c=rb(l);null!==c;c=Uv(c))for(var d=10;d<c.length;d++){var h=c[d];if(1024&h[2]){var _=h[1];Xp(_,h,_.template,h[8])}else h[5]>0&&ux(h)}var H=l[1].components;if(null!==H)for(var z=0;z<H.length;z++){var X=ba(H[z],l);Tp(X)&&X[5]>0&&ux(X)}}function SO(l,c){var d=ba(c,l),h=d[1];(function(l,c){for(var d=c.length;d<l.blueprint.length;d++)c.push(l.blueprint[d])})(h,d),Ph(h,d,d[8])}function Ib(l,c){return l[13]?l[14][4]=c:l[13]=c,l[14]=c,c}function cx(l){for(;l;){l[2]|=64;var c=Bd(l);if(ma(l)&&!c)return l;l=c}return null}function px(l,c,d){var h=c[10];h.begin&&h.begin();try{Xp(l,c,l.template,d)}catch(_){throw vx(c,_),_}finally{h.end&&h.end()}}function ig(l){!function(l){for(var c=0;c<l.components.length;c++){var d=l.components[c],h=jy(d),_=h[1];pO(_,h,_.template,d)}}(l[8])}function og(l,c,d){Ze(0),c(l,d)}var fx=function(){return Promise.resolve(null)}();function xO(l){return l[7]||(l[7]=[])}function hx(l){return l.cleanup||(l.cleanup=[])}function mx(l,c,d){return(null===l||Zi(l))&&(d=function(l){for(;Array.isArray(l);){if("object"==typeof l[1])return l;l=l[0]}return null}(d[c.index])),d[11]}function vx(l,c){var d=l[9],h=d?d.get(kc,null):null;h&&h.handleError(c)}function Rb(l,c,d,h,_){for(var w=0;w<d.length;){var H=d[w++],z=d[w++],X=c[H],me=l.data[H];null!==me.setInput?me.setInput(X,_,h,z):X[z]=_}}function Uu(l,c,d){var h=ui(c,l);!function(l,c,d){Tt(l)?l.setValue(c,d):c.textContent=d}(l[11],h,d)}function ag(l,c,d){var h=d?l.styles:null,_=d?l.classes:null,w=0;if(null!==c)for(var H=0;H<c.length;H++){var z=c[H];"number"==typeof z?w=z:1==w?_=J(_,z):2==w&&(h=J(h,z+": "+c[++H]+";"))}d?l.styles=h:l.stylesWithoutHost=h,d?l.classes=_:l.classesWithoutHost=_}var sg=new No("INJECTOR",-1),_x=function(){function l(){(0,M.Z)(this,l)}return(0,D.Z)(l,[{key:"get",value:function(d){var h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fh;if(h===fh){var _=new Error("NullInjectorError: No provider for ".concat(W(d),"!"));throw _.name="NullInjectorError",_}return h}}]),l}(),jd=new No("Set Injector scope."),zd={},Rc={},Nb=void 0;function yx(){return void 0===Nb&&(Nb=new _x),Nb}function bx(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,h=arguments.length>3?arguments[3]:void 0;return new MO(l,d,c||yx(),h)}var MO=function(){function l(c,d,h){var _=this,w=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;(0,M.Z)(this,l),this.parent=h,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var H=[];d&&Is(d,function(X){return _.processProvider(X,c,d)}),Is([c],function(X){return _.processInjectorType(X,[],H)}),this.records.set(sg,Nc(void 0,this));var z=this.records.get(jd);this.scope=null!=z?z.value:null,this.source=w||("object"==typeof c?null:W(c))}return(0,D.Z)(l,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(d){return d.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(d){var h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fh,_=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ye.Default;this.assertNotDestroyed();var w=Mv(this),H=zt(void 0);try{if(!(_&Ye.SkipSelf)){var z=this.records.get(d);if(void 0===z){var X=QF(d)&&wn(d);z=X&&this.injectableDefInScope(X)?Nc(Zb(d),zd):null,this.records.set(d,z)}if(null!=z)return this.hydrate(d,z)}var me=_&Ye.Self?yx():this.parent;return me.get(d,h=_&Ye.Optional&&h===fh?null:h)}catch(Xe){if("NullInjectorError"===Xe.name){var Ae=Xe[Ad]=Xe[Ad]||[];if(Ae.unshift(W(d)),w)throw Xe;return hT(Xe,d,"R3InjectorError",this.source)}throw Xe}finally{zt(H),Mv(w)}}},{key:"_resolveInjectorDefTypes",value:function(){var d=this;this.injectorDefTypes.forEach(function(h){return d.get(h)})}},{key:"toString",value:function(){var d=[];return this.records.forEach(function(_,w){return d.push(W(w))}),"R3Injector[".concat(d.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(d,h,_){var w=this;if(!(d=se(d)))return!1;var H=rt(d),z=null==H&&d.ngModule||void 0,X=void 0===z?d:z,Xe=-1!==_.indexOf(X);if(void 0!==z&&(H=rt(z)),null==H)return!1;if(null!=H.imports&&!Xe){var Qe;_.push(X);try{Is(H.imports,function(bn){w.processInjectorType(bn,h,_)&&(void 0===Qe&&(Qe=[]),Qe.push(bn))})}finally{}if(void 0!==Qe)for(var ht=function(Xn){var cr=Qe[Xn],Gr=cr.ngModule,Ai=cr.providers;Is(Ai,function(_o){return w.processProvider(_o,Gr,Ai||xe)})},Dt=0;Dt<Qe.length;Dt++)ht(Dt)}this.injectorDefTypes.add(X);var Yt=ts(X)||function(){return new X};this.records.set(X,Nc(Yt,zd));var vn=H.providers;if(null!=vn&&!Xe){var Bn=d;Is(vn,function(bn){return w.processProvider(bn,Bn,vn)})}return void 0!==z&&void 0!==d.providers}},{key:"processProvider",value:function(d,h,_){var w=Ih(d=se(d))?d:se(d&&d.provide),H=function(l,c,d){return Ja(l)?Nc(void 0,l.useValue):Nc(Cx(l),zd)}(d);if(Ih(d)||!0!==d.multi)this.records.get(w);else{var z=this.records.get(w);z||((z=Nc(void 0,zd,!0)).factory=function(){return Od(z.multi)},this.records.set(w,z)),w=d,z.multi.push(d)}this.records.set(w,H)}},{key:"hydrate",value:function(d,h){return h.value===zd&&(h.value=Rc,h.value=h.factory()),"object"==typeof h.value&&h.value&&function(l){return null!==l&&"object"==typeof l&&"function"==typeof l.ngOnDestroy}(h.value)&&this.onDestroy.add(h.value),h.value}},{key:"injectableDefInScope",value:function(d){if(!d.providedIn)return!1;var h=se(d.providedIn);return"string"==typeof h?"any"===h||h===this.scope:this.injectorDefTypes.has(h)}}]),l}();function Zb(l){var c=wn(l),d=null!==c?c.factory:ts(l);if(null!==d)return d;if(l instanceof No)throw new Error("Token ".concat(W(l)," is missing a \u0275prov definition."));if(l instanceof Function)return function(l){var c=l.length;if(c>0){var d=_c(c,"?");throw new Error("Can't resolve all parameters for ".concat(W(l),": (").concat(d.join(", "),")."))}var h=function(l){var c=l&&(l[Te]||l[ve]);if(c){var d=function(l){if(l.hasOwnProperty("name"))return l.name;var c=(""+l).match(/^function\s*([^\s(]+)/);return null===c?"":c[1]}(l);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(d,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(d,'" class.')),c}return null}(l);return null!==h?function(){return h.factory(l)}:function(){return new l}}(l);throw new Error("unreachable")}function Cx(l,c,d){var h=void 0;if(Ih(l)){var _=se(l);return ts(_)||Zb(_)}if(Ja(l))h=function(){return se(l.useValue)};else if(function(l){return!(!l||!l.useFactory)}(l))h=function(){return l.useFactory.apply(l,(0,v.Z)(Od(l.deps||[])))};else if(function(l){return!(!l||!l.useExisting)}(l))h=function(){return Go(se(l.useExisting))};else{var w=se(l&&(l.useClass||l.provide));if(!function(l){return!!l.deps}(l))return ts(w)||Zb(w);h=function(){return(0,P.Z)(w,(0,v.Z)(Od(l.deps)))}}return h}function Nc(l,c){var d=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:l,value:c,multi:d?[]:void 0}}function Ja(l){return null!==l&&"object"==typeof l&&Ev in l}function Ih(l){return"function"==typeof l}function QF(l){return"function"==typeof l||"object"==typeof l&&l instanceof No}var IO=function(l,c,d){return function(l){var _=bx(l,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0);return _._resolveInjectorDefTypes(),_}({name:d},c,l,d)},Za=function(){var l=function(){function c(){(0,M.Z)(this,c)}return(0,D.Z)(c,null,[{key:"create",value:function(h,_){return Array.isArray(h)?IO(h,_,""):IO(h.providers,h.parent,h.name||"")}}]),c}();return l.THROW_IF_NOT_FOUND=fh,l.NULL=new _x,l.\u0275prov=Rn({token:l,providedIn:"any",factory:function(){return Go(sg)}}),l.__NG_ELEMENT_ID__=-1,l}();function zO(l,c){zo(jy(l)[1],$())}function cg(l){for(var c=function(l){return Object.getPrototypeOf(l.prototype).constructor}(l.type),d=!0,h=[l];c;){var _=void 0;if(Zi(l))_=c.\u0275cmp||c.\u0275dir;else{if(c.\u0275cmp)throw new Error("Directives cannot inherit Components");_=c.\u0275dir}if(_){if(d){h.push(_);var w=l;w.inputs=Hb(l.inputs),w.declaredInputs=Hb(l.declaredInputs),w.outputs=Hb(l.outputs);var H=_.hostBindings;H&&GO(l,H);var z=_.viewQuery,X=_.contentQueries;if(z&&Vb(l,z),X&&WO(l,X),K(l.inputs,_.inputs),K(l.declaredInputs,_.declaredInputs),K(l.outputs,_.outputs),Zi(_)&&_.data.animation){var me=l.data;me.animation=(me.animation||[]).concat(_.data.animation)}}var Ae=_.features;if(Ae)for(var Xe=0;Xe<Ae.length;Xe++){var Qe=Ae[Xe];Qe&&Qe.ngInherit&&Qe(l),Qe===cg&&(d=!1)}}c=Object.getPrototypeOf(c)}!function(l){for(var c=0,d=null,h=l.length-1;h>=0;h--){var _=l[h];_.hostVars=c+=_.hostVars,_.hostAttrs=vy(_.hostAttrs,d=vy(d,_.hostAttrs))}}(h)}function Hb(l){return l===at?{}:l===xe?[]:l}function Vb(l,c){var d=l.viewQuery;l.viewQuery=d?function(h,_){c(h,_),d(h,_)}:c}function WO(l,c){var d=l.contentQueries;l.contentQueries=d?function(h,_,w){c(h,_,w),d(h,_,w)}:c}function GO(l,c){var d=l.hostBindings;l.hostBindings=d?function(h,_){c(h,_),d(h,_)}:c}var dg=null;function Zc(){if(!dg){var l=ft.Symbol;if(l&&l.iterator)dg=l.iterator;else for(var c=Object.getOwnPropertyNames(Map.prototype),d=0;d<c.length;++d){var h=c[d];"entries"!==h&&"size"!==h&&Map.prototype[h]===Map.prototype.entries&&(dg=h)}}return dg}var mu=function(){function l(c){(0,M.Z)(this,l),this.wrapped=c}return(0,D.Z)(l,null,[{key:"wrap",value:function(d){return new l(d)}},{key:"unwrap",value:function(d){return l.isWrapped(d)?d.wrapped:d}},{key:"isWrapped",value:function(d){return d instanceof l}}]),l}();function Hu(l){return!!Ix(l)&&(Array.isArray(l)||!(l instanceof Map)&&Zc()in l)}function Ix(l){return null!==l&&("function"==typeof l||"object"==typeof l)}function nl(l,c,d){return l[c]=d}function La(l,c,d){return!Object.is(l[c],d)&&(l[c]=d,!0)}function vu(l,c,d,h){var _=La(l,c,d);return La(l,c+1,h)||_}function qb(l,c,d,h){var _=Ce();return La(_,Sr(),c)&&(ge(),Ll(mo(),_,l,c,d,h)),qb}function ef(l,c,d,h){return La(l,Sr(),d)?c+ye(d)+h:Ur}function tf(l,c,d,h,_,w){var z=vu(l,mr(),d,_);return Mr(2),z?c+ye(d)+h+ye(_)+w:Ur}function Fc(l,c,d,h,_,w,H,z){var me=function(l,c,d,h,_){var w=vu(l,c,d,h);return La(l,c+2,_)||w}(l,mr(),d,_,H);return Mr(3),me?c+ye(d)+h+ye(_)+w+ye(H)+z:Ur}function jb(l,c,d,h,_,w){var H=Ce(),z=ef(H,c,d,h);return z!==Ur&&Ll(mo(),H,l,z,_,w),jb}function fg(l,c,d,h,_,w,H,z){var X=Ce(),me=tf(X,c,d,h,_,w);return me!==Ur&&Ll(mo(),X,l,me,H,z),fg}function Zx(l,c,d,h,_,w,H,z){var X=Ce(),me=ge(),Ae=l+20,Xe=me.firstCreatePass?function(l,c,d,h,_,w,H,z,X){var me=c.consts,Ae=qd(c,l,4,H||null,Qs(me,z));Ob(c,d,Ae,Qs(me,X)),zo(c,Ae);var Xe=Ae.tViews=tl(2,Ae,h,_,w,c.directiveRegistry,c.pipeRegistry,null,c.schemas,me);return null!==c.queries&&(c.queries.template(c,Ae),Xe.queries=c.queries.embeddedTView(Ae)),Ae}(Ae,me,X,c,d,h,_,w,H):me.data[Ae];ut(Xe,!1);var Qe=X[11].createComment("");Wv(me,X,Qe,Xe),Ya(Qe,X),Ib(X,X[Ae]=Fl(Qe,X,Qe,Xe)),So(Xe)&&tg(me,X,Xe),null!=H&&Mb(X,Xe,z)}function Lx(l){return ns(Dr.lFrame.contextLView,20+l)}function Fh(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ye.Default,d=Ce();if(null===d)return Go(l,c);var h=$();return yv(h,d,se(l),c)}function hg(l,c,d){var h=Ce();return La(h,Sr(),c)&&Bs(ge(),mo(),h,l,c,h[11],d,!1),hg}function t0(l,c,d,h,_){var H=_?"class":"style";Rb(l,d,c.inputs[H],H,h)}function mg(l,c,d,h){var _=Ce(),w=ge(),H=20+l,z=_[11],X=_[H]=ib(z,c,Dr.lFrame.currentNamespace),me=w.firstCreatePass?function(l,c,d,h,_,w,H){var z=c.consts,me=qd(c,l,2,_,Qs(z,w));return Ob(c,d,me,Qs(z,H)),null!==me.attrs&&ag(me,me.attrs,!1),null!==me.mergedAttrs&&ag(me,me.mergedAttrs,!0),null!==c.queries&&c.queries.elementStart(c,me),me}(H,w,_,0,c,d,h):w.data[H];ut(me,!0);var Ae=me.mergedAttrs;null!==Ae&&Xs(z,X,Ae);var Xe=me.classes;null!==Xe&&fb(z,X,Xe);var Qe=me.styles;null!==Qe&&pb(z,X,Qe),64!=(64&me.flags)&&Wv(w,_,X,me),0===Dr.lFrame.elementDepthCount&&Ya(X,_),Dr.lFrame.elementDepthCount++,So(me)&&(tg(w,_,me),XT(w,me,_)),null!==h&&Mb(_,me)}function n0(){var l=$();wt()?Zt():ut(l=l.parent,!1);var c=l;Dr.lFrame.elementDepthCount--;var d=ge();d.firstCreatePass&&(zo(d,l),ha(l)&&d.queries.elementEnd(l)),null!=c.classesWithoutHost&&function(l){return 0!=(16&l.flags)}(c)&&t0(d,c,Ce(),c.classesWithoutHost,!0),null!=c.stylesWithoutHost&&function(l){return 0!=(32&l.flags)}(c)&&t0(d,c,Ce(),c.stylesWithoutHost,!1)}function $x(l,c,d,h){mg(l,c,d,h),n0()}function Yd(l,c,d){var h=Ce(),_=ge(),w=l+20,H=_.firstCreatePass?function(l,c,d,h,_){var w=c.consts,H=Qs(w,h),z=qd(c,l,8,"ng-container",H);return null!==H&&ag(z,H,!0),Ob(c,d,z,Qs(w,_)),null!==c.queries&&c.queries.elementStart(c,z),z}(w,_,h,c,d):_.data[w];ut(H,!0);var z=h[w]=h[11].createComment("");Wv(_,h,z,H),Ya(z,h),So(H)&&(tg(_,h,H),XT(_,H,h)),null!=d&&Mb(h,H)}function Bh(){var l=$(),c=ge();wt()?Zt():ut(l=l.parent,!1),c.firstCreatePass&&(zo(c,l),ha(l)&&c.queries.elementEnd(l))}function r0(l,c,d){Yd(l,c,d),Bh()}function o0(){return Ce()}function Hc(l){return!!l&&"function"==typeof l.then}function ew(l){return!!l&&"function"==typeof l.subscribe}var a0=ew;function s0(l,c,d,h){var _=Ce(),w=ge(),H=$();return tw(w,_,_[11],H,l,c,!!d,h),s0}function vg(l,c){var d=$(),h=Ce(),_=ge();return tw(_,h,mx(We(_.data),d,h),d,l,c,!1),vg}function tw(l,c,d,h,_,w,H,z){var X=So(h),Ae=l.firstCreatePass&&hx(l),Xe=c[8],Qe=xO(c),ht=!0;if(3&h.type||z){var Dt=Ii(h,c),Yt=z?z(Dt):Dt,vn=Qe.length,Bn=z?function($c){return z(zr($c[h.index]))}:h.index;if(Tt(d)){var bn=null;if(!z&&X&&(bn=function(l,c,d,h){var _=l.cleanup;if(null!=_)for(var w=0;w<_.length-1;w+=2){var H=_[w];if(H===d&&_[w+1]===h){var z=c[7],X=_[w+2];return z.length>X?z[X]:null}"string"==typeof H&&(w+=2)}return null}(l,c,_,h.index)),null!==bn)(bn.__ngLastListenerFn__||bn).__ngNextListenerFn__=w,bn.__ngLastListenerFn__=w,ht=!1;else{w=gg(h,c,Xe,w,!1);var cr=d.listen(Yt,_,w);Qe.push(w,cr),Ae&&Ae.push(_,Bn,vn,vn+1)}}else w=gg(h,c,Xe,w,!0),Yt.addEventListener(_,w,H),Qe.push(w),Ae&&Ae.push(_,Bn,vn,H)}else w=gg(h,c,Xe,w,!1);var Ai,Gr=h.outputs;if(ht&&null!==Gr&&(Ai=Gr[_])){var _o=Ai.length;if(_o)for(var ca=0;ca<_o;ca+=2){var xu=c[Ai[ca]][Ai[ca+1]].subscribe(w),Yl=Qe.length;Qe.push(w,xu),Ae&&Ae.push(_,h.index,Yl,-(Yl+1))}}}function nw(l,c,d,h){try{return!1!==d(h)}catch(_){return vx(l,_),!1}}function gg(l,c,d,h,_){return function w(H){if(H===Function)return h;var z=2&l.flags?ba(l.index,c):c;0==(32&c[2])&&cx(z);for(var X=nw(c,0,h,H),me=w.__ngNextListenerFn__;me;)X=nw(c,0,me,H)&&X,me=me.__ngNextListenerFn__;return _&&!1===X&&(H.preventDefault(),H.returnValue=!1),X}}function Uh(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return Pa(l)}function rw(l,c){for(var d=null,h=function(l){var c=l.attrs;if(null!=c){var d=c.indexOf(5);if(0==(1&d))return c[d+1]}return null}(l),_=0;_<c.length;_++){var w=c[_];if("*"!==w){if(null===h?jT(l,w,!0):hb(h,w))return _}else d=_}return d}function iw(l){var c=Ce()[16][6];if(!c.projection)for(var h=c.projection=_c(l?l.length:1,null),_=h.slice(),w=c.child;null!==w;){var H=l?rw(w,l):0;null!==H&&(_[H]?_[H].projectionNext=w:h[H]=w,_[H]=w),w=w.next}}function ow(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,d=arguments.length>2?arguments[2]:void 0,h=Ce(),_=ge(),w=qd(_,20+l,16,null,d||null);null===w.projection&&(w.projection=c),Zt(),64!=(64&w.flags)&&zD(_,h,w)}function l0(l,c,d){return sf(l,"",c,"",d),l0}function sf(l,c,d,h,_){var w=Ce(),H=ef(w,c,d,h);return H!==Ur&&Bs(ge(),mo(),w,l,H,w[11],_,!1),sf}function _g(l,c,d,h,_,w,H){var z=Ce(),X=tf(z,c,d,h,_,w);return X!==Ur&&Bs(ge(),mo(),z,l,X,z[11],H,!1),_g}function fw(l,c,d,h,_){for(var w=l[d+1],H=null===c,z=h?hu(w):ls(w),X=!1;0!==z&&(!1===X||H);){var Ae=l[z+1];SP(l[z],c)&&(X=!0,l[z+1]=h?GT(Ae):gb(Ae)),z=h?hu(Ae):ls(Ae)}X&&(l[d+1]=h?gb(w):GT(w))}function SP(l,c){return null===l||null==c||(Array.isArray(l)?l[1]:l)===c||!(!Array.isArray(l)||"string"!=typeof c)&&Ed(l,c)>=0}var la={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function hw(l){return l.substring(la.key,la.keyEnd)}function mw(l){return l.substring(la.value,la.valueEnd)}function p0(l,c){var d=la.textEnd;return d===c?-1:(c=la.keyEnd=function(l,c,d){for(;c<d&&l.charCodeAt(c)>32;)c++;return c}(l,la.key=c,d),Jd(l,c,d))}function gw(l,c){var d=la.textEnd,h=la.key=Jd(l,c,d);return d===h?-1:(h=la.keyEnd=function(l,c,d){for(var h;c<d&&(45===(h=l.charCodeAt(c))||95===h||(-33&h)>=65&&(-33&h)<=90||h>=48&&h<=57);)c++;return c}(l,h,d),h=yw(l,h,d),h=la.value=Jd(l,h,d),h=la.valueEnd=function(l,c,d){for(var h=-1,_=-1,w=-1,H=c,z=H;H<d;){var X=l.charCodeAt(H++);if(59===X)return z;34===X||39===X?z=H=Cw(l,X,H,d):c===H-4&&85===w&&82===_&&76===h&&40===X?z=H=Cw(l,41,H,d):X>32&&(z=H),w=_,_=h,h=-33&X}return z}(l,h,d),yw(l,h,d))}function _w(l){la.key=0,la.keyEnd=0,la.value=0,la.valueEnd=0,la.textEnd=l.length}function Jd(l,c,d){for(;c<d&&l.charCodeAt(c)<=32;)c++;return c}function yw(l,c,d,h){return(c=Jd(l,c,d))<d&&c++,c}function Cw(l,c,d,h){for(var _=-1,w=d;w<h;){var H=l.charCodeAt(w++);if(H==c&&92!==_)return w;_=92==H&&92===_?0:H}throw new Error}function f0(l,c,d){return il(l,c,d,!1),f0}function h0(l,c){return il(l,c,null,!0),h0}function Bl(l){ol(y0,wP,l,!1)}function wP(l,c){for(var d=function(l){return _w(l),gw(l,Jd(l,0,la.textEnd))}(c);d>=0;d=gw(c,d))y0(l,hw(c),mw(c))}function m0(l){ol(is,Ul,l,!0)}function Ul(l,c){for(var d=function(l){return _w(l),p0(l,Jd(l,0,la.textEnd))}(c);d>=0;d=p0(c,d))is(l,hw(c),!0)}function il(l,c,d,h){var _=Ce(),w=ge(),H=Mr(2);w.firstUpdatePass&&g0(w,l,H,h),c!==Ur&&La(_,H,c)&&b0(w,w.data[Do()],_,_[11],l,_[H+1]=function(l,c){return null==l||("string"==typeof c?l+=c:"object"==typeof l&&(l=W(pu(l)))),l}(c,d),h,H)}function ol(l,c,d,h){var _=ge(),w=Mr(2);_.firstUpdatePass&&g0(_,null,w,h);var H=Ce();if(d!==Ur&&La(H,w,d)){var z=_.data[Do()];if(S0(z,h)&&!v0(_,w)){var me=h?z.classesWithoutHost:z.stylesWithoutHost;null!==me&&(d=J(me,d||"")),t0(_,z,H,d,h)}else!function(l,c,d,h,_,w,H,z){_===Ur&&(_=xe);for(var X=0,me=0,Ae=0<_.length?_[0]:null,Xe=0<w.length?w[0]:null;null!==Ae||null!==Xe;){var Qe=X<_.length?_[X+1]:void 0,ht=me<w.length?w[me+1]:void 0,Dt=null,Yt=void 0;Ae===Xe?(X+=2,me+=2,Qe!==ht&&(Dt=Xe,Yt=ht)):null===Xe||null!==Ae&&Ae<Xe?(X+=2,Dt=Ae):(me+=2,Dt=Xe,Yt=ht),null!==Dt&&b0(l,c,d,h,Dt,Yt,H,z),Ae=X<_.length?_[X]:null,Xe=me<w.length?w[me]:null}}(_,z,H,H[11],H[w+1],H[w+1]=function(l,c,d){if(null==d||""===d)return xe;var h=[],_=pu(d);if(Array.isArray(_))for(var w=0;w<_.length;w++)l(h,_[w],!0);else if("object"==typeof _)for(var H in _)_.hasOwnProperty(H)&&l(h,H,_[H]);else"string"==typeof _&&c(h,_);return h}(l,c,d),h,w)}}function v0(l,c){return c>=l.expandoStartIndex}function g0(l,c,d,h){var _=l.data;if(null===_[d+1]){var w=_[Do()],H=v0(l,d);S0(w,h)&&null===c&&!H&&(c=!1),c=function(l,c,d,h){var _=We(l),w=h?c.residualClasses:c.residualStyles;if(null===_)0===(h?c.classBindings:c.styleBindings)&&(d=Hh(d=_0(null,l,c,d,h),c.attrs,h),w=null);else{var z=c.directiveStylingLast;if(-1===z||l[z]!==_)if(d=_0(_,l,c,d,h),null===w){var me=function(l,c,d){var h=d?c.classBindings:c.styleBindings;if(0!==ls(h))return l[hu(h)]}(l,c,h);void 0!==me&&Array.isArray(me)&&function(l,c,d,h){l[hu(d?c.classBindings:c.styleBindings)]=h}(l,c,h,me=Hh(me=_0(null,l,c,me[1],h),c.attrs,h))}else w=function(l,c,d){for(var h=void 0,_=c.directiveEnd,w=1+c.directiveStylingLast;w<_;w++)h=Hh(h,l[w].hostAttrs,d);return Hh(h,c.attrs,d)}(l,c,h)}return void 0!==w&&(h?c.residualClasses=w:c.residualStyles=w),d}(_,w,c,h),function(l,c,d,h,_,w){var H=w?c.classBindings:c.styleBindings,z=hu(H),X=ls(H);l[h]=d;var Ae,me=!1;if(Array.isArray(d)?(null===(Ae=d[1])||Ed(d,Ae)>0)&&(me=!0):Ae=d,_)if(0!==X){var ht=hu(l[z+1]);l[h+1]=vb(ht,z),0!==ht&&(l[ht+1]=WT(l[ht+1],h)),l[z+1]=function(l,c){return 131071&l|c<<17}(l[z+1],h)}else l[h+1]=vb(z,0),0!==z&&(l[z+1]=WT(l[z+1],h)),z=h;else l[h+1]=vb(X,0),0===z?z=h:l[X+1]=WT(l[X+1],h),X=h;me&&(l[h+1]=gb(l[h+1])),fw(l,Ae,h,!0),fw(l,Ae,h,!1),function(l,c,d,h,_){var w=_?l.residualClasses:l.residualStyles;null!=w&&"string"==typeof c&&Ed(w,c)>=0&&(d[h+1]=GT(d[h+1]))}(c,Ae,l,h,w),H=vb(z,X),w?c.classBindings=H:c.styleBindings=H}(_,w,c,d,H,h)}}function _0(l,c,d,h,_){var w=null,H=d.directiveEnd,z=d.directiveStylingLast;for(-1===z?z=d.directiveStart:z++;z<H&&(h=Hh(h,(w=c[z]).hostAttrs,_),w!==l);)z++;return null!==l&&(d.directiveStylingLast=z),h}function Hh(l,c,d){var h=d?1:2,_=-1;if(null!==c)for(var w=0;w<c.length;w++){var H=c[w];"number"==typeof H?_=H:_===h&&(Array.isArray(l)||(l=void 0===l?[]:["",l]),is(l,H,!!d||c[++w]))}return void 0===l?null:l}function y0(l,c,d){is(l,c,pu(d))}function b0(l,c,d,h,_,w,H,z){if(3&c.type){var X=l.data,me=X[z+1];yg(function(l){return 1==(1&l)}(me)?C0(X,c,d,_,ls(me),H):void 0)||(yg(w)||function(l){return 2==(2&l)}(me)&&(w=C0(X,null,d,_,z,H)),function(l,c,d,h,_){var w=Tt(l);if(c)_?w?l.addClass(d,h):d.classList.add(h):w?l.removeClass(d,h):d.classList.remove(h);else{var H=-1===h.indexOf("-")?void 0:Th.DashCase;if(null==_)w?l.removeStyle(d,h,H):d.style.removeProperty(h);else{var z="string"==typeof _&&_.endsWith("!important");z&&(_=_.slice(0,-10),H|=Th.Important),w?l.setStyle(d,h,_,H):d.style.setProperty(h,_,z?"important":"")}}}(h,H,ui(Do(),d),_,w))}}function C0(l,c,d,h,_,w){for(var H=null===c,z=void 0;_>0;){var X=l[_],me=Array.isArray(X),Ae=me?X[1]:X,Xe=null===Ae,Qe=d[_+1];Qe===Ur&&(Qe=Xe?xe:void 0);var ht=Xe?ph(Qe,h):Ae===h?Qe:void 0;if(me&&!yg(ht)&&(ht=ph(X,h)),yg(ht)&&(z=ht,H))return z;var Dt=l[_+1];_=H?hu(Dt):ls(Dt)}if(null!==c){var Yt=w?c.residualClasses:c.residualStyles;null!=Yt&&(z=ph(Yt,h))}return z}function yg(l){return void 0!==l}function S0(l,c){return 0!=(l.flags&(c?16:32))}function T0(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",d=Ce(),h=ge(),_=l+20,w=h.firstCreatePass?qd(h,_,1,c,null):h.data[_],H=d[_]=Hv(d[11],c);Wv(h,d,H,w),ut(w,!1)}function x0(l){return bg("",l,""),x0}function bg(l,c,d){var h=Ce(),_=ef(h,l,c,d);return _!==Ur&&Uu(h,Do(),_),bg}function w0(l,c,d,h,_){var w=Ce(),H=tf(w,l,c,d,h,_);return H!==Ur&&Uu(w,Do(),H),w0}function k0(l,c,d,h,_,w,H){var z=Ce(),X=Fc(z,l,c,d,h,_,w,H);return X!==Ur&&Uu(z,Do(),X),k0}function Aw(l,c,d){ol(is,Ul,ef(Ce(),l,c,d),!0)}function Pw(l,c,d){var h=Ce();return La(h,Sr(),c)&&Bs(ge(),mo(),h,l,c,h[11],d,!0),Pw}function Iw(l,c,d){var h=Ce();if(La(h,Sr(),c)){var w=ge(),H=mo();Bs(w,H,h,l,c,mx(We(w.data),H,h),d,!0)}return Iw}var uf=void 0,R5=["en",[["a","p"],["AM","PM"],uf],[["AM","PM"],uf,uf],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],uf,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],uf,[["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}",uf,"{1} 'at' {0}",uf],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(l){var c=Math.floor(Math.abs(l)),d=l.toString().replace(/^[^.]*\.?/,"").length;return 1===c&&0===d?1:5}],Vh={};function Rw(l){var c=function(l){return l.toLowerCase().replace(/_/g,"-")}(l),d=qP(c);if(d)return d;var h=c.split("-")[0];if(d=qP(h))return d;if("en"===h)return R5;throw new Error('Missing locale data for the locale "'.concat(l,'".'))}function VP(l){return Rw(l)[Cg.PluralCase]}function qP(l){return l in Vh||(Vh[l]=ft.ng&&ft.ng.common&&ft.ng.common.locales&&ft.ng.common.locales[l]),Vh[l]}var Cg=function(l){return l[l.LocaleId=0]="LocaleId",l[l.DayPeriodsFormat=1]="DayPeriodsFormat",l[l.DayPeriodsStandalone=2]="DayPeriodsStandalone",l[l.DaysFormat=3]="DaysFormat",l[l.DaysStandalone=4]="DaysStandalone",l[l.MonthsFormat=5]="MonthsFormat",l[l.MonthsStandalone=6]="MonthsStandalone",l[l.Eras=7]="Eras",l[l.FirstDayOfWeek=8]="FirstDayOfWeek",l[l.WeekendRange=9]="WeekendRange",l[l.DateFormat=10]="DateFormat",l[l.TimeFormat=11]="TimeFormat",l[l.DateTimeFormat=12]="DateTimeFormat",l[l.NumberSymbols=13]="NumberSymbols",l[l.NumberFormats=14]="NumberFormats",l[l.CurrencyCode=15]="CurrencyCode",l[l.CurrencySymbol=16]="CurrencySymbol",l[l.CurrencyName=17]="CurrencyName",l[l.Currencies=18]="Currencies",l[l.Directionality=19]="Directionality",l[l.PluralCase=20]="PluralCase",l[l.ExtraData=21]="ExtraData",l}({}),A0="en-US";function Nw(l){en(l,"Expected localeId to be defined"),"string"==typeof l&&l.toLowerCase().replace(/_/g,"-")}function SI(l,c,d){var h=ge();if(h.firstCreatePass){var _=Zi(l);Jw(d,h.data,h.blueprint,_,!0),Jw(c,h.data,h.blueprint,_,!1)}}function Jw(l,c,d,h,_){if(l=se(l),Array.isArray(l))for(var w=0;w<l.length;w++)Jw(l[w],c,d,h,_);else{var H=ge(),z=Ce(),X=Ih(l)?l:se(l.provide),me=Cx(l),Ae=$(),Xe=1048575&Ae.providerIndexes,Qe=Ae.directiveStart,ht=Ae.providerIndexes>>20;if(Ih(l)||!l.multi){var Dt=new $i(me,_,Fh),Yt=Xw(X,c,_?Xe:Xe+ht,Qe);-1===Yt?(_v(lh(Ae,z),H,X),Qw(H,l,c.length),c.push(X),Ae.directiveStart++,Ae.directiveEnd++,_&&(Ae.providerIndexes+=1048576),d.push(Dt),z.push(Dt)):(d[Yt]=Dt,z[Yt]=Dt)}else{var vn=Xw(X,c,Xe+ht,Qe),Bn=Xw(X,c,Xe,Xe+ht),Xn=Bn>=0&&d[Bn];if(_&&!Xn||!_&&!(vn>=0&&d[vn])){_v(lh(Ae,z),H,X);var cr=function(l,c,d,h,_){var w=new $i(l,d,Fh);return w.multi=[],w.index=c,w.componentProviders=0,Kw(w,_,h&&!d),w}(_?$w:Z0,d.length,_,h,me);!_&&Xn&&(d[Bn].providerFactory=cr),Qw(H,l,c.length,0),c.push(X),Ae.directiveStart++,Ae.directiveEnd++,_&&(Ae.providerIndexes+=1048576),d.push(cr),z.push(cr)}else Qw(H,l,vn>-1?vn:Bn,Kw(d[_?Bn:vn],me,!_&&h));!_&&h&&Xn&&d[Bn].componentProviders++}}}function Qw(l,c,d,h){var _=Ih(c);if(_||function(l){return!!l.useClass}(c)){var H=(c.useClass||c).prototype.ngOnDestroy;if(H){var z=l.destroyHooks||(l.destroyHooks=[]);if(!_&&c.multi){var X=z.indexOf(d);-1===X?z.push(d,[h,H]):z[X+1].push(h,H)}else z.push(d,H)}}}function Kw(l,c,d){return d&&l.componentProviders++,l.multi.push(c)-1}function Xw(l,c,d,h){for(var _=d;_<h;_++)if(c[_]===l)return _;return-1}function Z0(l,c,d,h){return ek(this.multi,[])}function $w(l,c,d,h){var w,_=this.multi;if(this.providerFactory){var H=this.providerFactory.componentProviders,z=Nu(d,d[1],this.providerFactory.index,h);ek(_,w=z.slice(0,H));for(var X=H;X<z.length;X++)w.push(z[X])}else ek(_,w=[]);return w}function ek(l,c){for(var d=0;d<l.length;d++)c.push((0,l[d])());return c}function TI(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(d){d.providersResolver=function(h,_){return SI(h,_?_(l):l,c)}}}var lB=function l(){(0,M.Z)(this,l)},tk=function l(){(0,M.Z)(this,l)},dB=function(){function l(){(0,M.Z)(this,l)}return(0,D.Z)(l,[{key:"resolveComponentFactory",value:function(d){throw function(l){var c=Error("No component factory found for ".concat(W(l),". Did you add it to @NgModule.entryComponents?"));return c.ngComponent=l,c}(d)}}]),l}(),kg=function(){var l=function c(){(0,M.Z)(this,c)};return l.NULL=new dB,l}();function L0(){}function zh(l,c){return new gu(Ii(l,c))}var mB=function(){return zh($(),Ce())},gu=function(){var l=function c(d){(0,M.Z)(this,c),this.nativeElement=d};return l.__NG_ELEMENT_ID__=mB,l}();function nk(l){return l instanceof gu?l.nativeElement:l}var F0=function l(){(0,M.Z)(this,l)},vB=function(){var l=function c(){(0,M.Z)(this,c)};return l.__NG_ELEMENT_ID__=function(){return rk()},l}(),rk=function(){var l=Ce(),d=ba($().index,l);return function(l){return l[11]}(hr(d)?d:l)},ik=function(){var l=function c(){(0,M.Z)(this,c)};return l.\u0275prov=Rn({token:l,providedIn:"root",factory:function(){return null}}),l}(),ok=function l(c){(0,M.Z)(this,l),this.full=c,this.major=c.split(".")[0],this.minor=c.split(".")[1],this.patch=c.split(".").slice(2).join(".")},kI=new ok("12.2.5"),ak=function(){function l(){(0,M.Z)(this,l)}return(0,D.Z)(l,[{key:"supports",value:function(d){return Hu(d)}},{key:"create",value:function(d){return new yB(d)}}]),l}(),EI=function(c,d){return d},yB=function(){function l(c){(0,M.Z)(this,l),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=c||EI}return(0,D.Z)(l,[{key:"forEachItem",value:function(d){var h;for(h=this._itHead;null!==h;h=h._next)d(h)}},{key:"forEachOperation",value:function(d){for(var h=this._itHead,_=this._removalsHead,w=0,H=null;h||_;){var z=!_||h&&h.currentIndex<OI(_,w,H)?h:_,X=OI(z,w,H),me=z.currentIndex;if(z===_)w--,_=_._nextRemoved;else if(h=h._next,null==z.previousIndex)w++;else{H||(H=[]);var Ae=X-w,Xe=me-w;if(Ae!=Xe){for(var Qe=0;Qe<Ae;Qe++){var ht=Qe<H.length?H[Qe]:H[Qe]=0,Dt=ht+Qe;Xe<=Dt&&Dt<Ae&&(H[Qe]=ht+1)}H[z.previousIndex]=Xe-Ae}}X!==me&&d(z,X,me)}}},{key:"forEachPreviousItem",value:function(d){var h;for(h=this._previousItHead;null!==h;h=h._nextPrevious)d(h)}},{key:"forEachAddedItem",value:function(d){var h;for(h=this._additionsHead;null!==h;h=h._nextAdded)d(h)}},{key:"forEachMovedItem",value:function(d){var h;for(h=this._movesHead;null!==h;h=h._nextMoved)d(h)}},{key:"forEachRemovedItem",value:function(d){var h;for(h=this._removalsHead;null!==h;h=h._nextRemoved)d(h)}},{key:"forEachIdentityChange",value:function(d){var h;for(h=this._identityChangesHead;null!==h;h=h._nextIdentityChange)d(h)}},{key:"diff",value:function(d){if(null==d&&(d=[]),!Hu(d))throw new Error("Error trying to diff '".concat(W(d),"'. Only arrays and iterables are allowed"));return this.check(d)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(d){var h=this;this._reset();var H,z,X,_=this._itHead,w=!1;if(Array.isArray(d)){this.length=d.length;for(var me=0;me<this.length;me++)X=this._trackByFn(me,z=d[me]),null!==_&&Object.is(_.trackById,X)?(w&&(_=this._verifyReinsertion(_,z,X,me)),Object.is(_.item,z)||this._addIdentityChange(_,z)):(_=this._mismatch(_,z,X,me),w=!0),_=_._next}else H=0,function(l,c){if(Array.isArray(l))for(var d=0;d<l.length;d++)c(l[d]);else for(var _,h=l[Zc()]();!(_=h.next()).done;)c(_.value)}(d,function(Ae){X=h._trackByFn(H,Ae),null!==_&&Object.is(_.trackById,X)?(w&&(_=h._verifyReinsertion(_,Ae,X,H)),Object.is(_.item,Ae)||h._addIdentityChange(_,Ae)):(_=h._mismatch(_,Ae,X,H),w=!0),_=_._next,H++}),this.length=H;return this._truncate(_),this.collection=d,this.isDirty}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}},{key:"_reset",value:function(){if(this.isDirty){var d;for(d=this._previousItHead=this._itHead;null!==d;d=d._next)d._nextPrevious=d._next;for(d=this._additionsHead;null!==d;d=d._nextAdded)d.previousIndex=d.currentIndex;for(this._additionsHead=this._additionsTail=null,d=this._movesHead;null!==d;d=d._nextMoved)d.previousIndex=d.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(d,h,_,w){var H;return null===d?H=this._itTail:(H=d._prev,this._remove(d)),null!==(d=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(d.item,h)||this._addIdentityChange(d,h),this._reinsertAfter(d,H,w)):null!==(d=null===this._linkedRecords?null:this._linkedRecords.get(_,w))?(Object.is(d.item,h)||this._addIdentityChange(d,h),this._moveAfter(d,H,w)):d=this._addAfter(new bB(h,_),H,w),d}},{key:"_verifyReinsertion",value:function(d,h,_,w){var H=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==H?d=this._reinsertAfter(H,d._prev,w):d.currentIndex!=w&&(d.currentIndex=w,this._addToMoves(d,w)),d}},{key:"_truncate",value:function(d){for(;null!==d;){var h=d._next;this._addToRemovals(this._unlink(d)),d=h}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)}},{key:"_reinsertAfter",value:function(d,h,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(d);var w=d._prevRemoved,H=d._nextRemoved;return null===w?this._removalsHead=H:w._nextRemoved=H,null===H?this._removalsTail=w:H._prevRemoved=w,this._insertAfter(d,h,_),this._addToMoves(d,_),d}},{key:"_moveAfter",value:function(d,h,_){return this._unlink(d),this._insertAfter(d,h,_),this._addToMoves(d,_),d}},{key:"_addAfter",value:function(d,h,_){return this._insertAfter(d,h,_),this._additionsTail=null===this._additionsTail?this._additionsHead=d:this._additionsTail._nextAdded=d,d}},{key:"_insertAfter",value:function(d,h,_){var w=null===h?this._itHead:h._next;return d._next=w,d._prev=h,null===w?this._itTail=d:w._prev=d,null===h?this._itHead=d:h._next=d,null===this._linkedRecords&&(this._linkedRecords=new DI),this._linkedRecords.put(d),d.currentIndex=_,d}},{key:"_remove",value:function(d){return this._addToRemovals(this._unlink(d))}},{key:"_unlink",value:function(d){null!==this._linkedRecords&&this._linkedRecords.remove(d);var h=d._prev,_=d._next;return null===h?this._itHead=_:h._next=_,null===_?this._itTail=h:_._prev=h,d}},{key:"_addToMoves",value:function(d,h){return d.previousIndex===h||(this._movesTail=null===this._movesTail?this._movesHead=d:this._movesTail._nextMoved=d),d}},{key:"_addToRemovals",value:function(d){return null===this._unlinkedRecords&&(this._unlinkedRecords=new DI),this._unlinkedRecords.put(d),d.currentIndex=null,d._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=d,d._prevRemoved=null):(d._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=d),d}},{key:"_addIdentityChange",value:function(d,h){return d.item=h,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=d:this._identityChangesTail._nextIdentityChange=d,d}}]),l}(),bB=function l(c,d){(0,M.Z)(this,l),this.item=c,this.trackById=d,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null},AI=function(){function l(){(0,M.Z)(this,l),this._head=null,this._tail=null}return(0,D.Z)(l,[{key:"add",value:function(d){null===this._head?(this._head=this._tail=d,d._nextDup=null,d._prevDup=null):(this._tail._nextDup=d,d._prevDup=this._tail,d._nextDup=null,this._tail=d)}},{key:"get",value:function(d,h){var _;for(_=this._head;null!==_;_=_._nextDup)if((null===h||h<=_.currentIndex)&&Object.is(_.trackById,d))return _;return null}},{key:"remove",value:function(d){var h=d._prevDup,_=d._nextDup;return null===h?this._head=_:h._nextDup=_,null===_?this._tail=h:_._prevDup=h,null===this._head}}]),l}(),DI=function(){function l(){(0,M.Z)(this,l),this.map=new Map}return(0,D.Z)(l,[{key:"put",value:function(d){var h=d.trackById,_=this.map.get(h);_||(_=new AI,this.map.set(h,_)),_.add(d)}},{key:"get",value:function(d,h){var w=this.map.get(d);return w?w.get(d,h):null}},{key:"remove",value:function(d){var h=d.trackById;return this.map.get(h).remove(d)&&this.map.delete(h),d}},{key:"isEmpty",get:function(){return 0===this.map.size}},{key:"clear",value:function(){this.map.clear()}}]),l}();function OI(l,c,d){var h=l.previousIndex;if(null===h)return h;var _=0;return d&&h<d.length&&(_=d[h]),h+c+_}var sk=function(){function l(){(0,M.Z)(this,l)}return(0,D.Z)(l,[{key:"supports",value:function(d){return d instanceof Map||Ix(d)}},{key:"create",value:function(){return new PI}}]),l}(),PI=function(){function l(){(0,M.Z)(this,l),this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return(0,D.Z)(l,[{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}},{key:"forEachItem",value:function(d){var h;for(h=this._mapHead;null!==h;h=h._next)d(h)}},{key:"forEachPreviousItem",value:function(d){var h;for(h=this._previousMapHead;null!==h;h=h._nextPrevious)d(h)}},{key:"forEachChangedItem",value:function(d){var h;for(h=this._changesHead;null!==h;h=h._nextChanged)d(h)}},{key:"forEachAddedItem",value:function(d){var h;for(h=this._additionsHead;null!==h;h=h._nextAdded)d(h)}},{key:"forEachRemovedItem",value:function(d){var h;for(h=this._removalsHead;null!==h;h=h._nextRemoved)d(h)}},{key:"diff",value:function(d){if(d){if(!(d instanceof Map||Ix(d)))throw new Error("Error trying to diff '".concat(W(d),"'. Only maps and objects are allowed"))}else d=new Map;return this.check(d)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(d){var h=this;this._reset();var _=this._mapHead;if(this._appendAfter=null,this._forEach(d,function(H,z){if(_&&_.key===z)h._maybeAddToChanges(_,H),h._appendAfter=_,_=_._next;else{var X=h._getOrCreateRecordForKey(z,H);_=h._insertBeforeOrAppend(_,X)}}),_){_._prev&&(_._prev._next=null),this._removalsHead=_;for(var w=_;null!==w;w=w._nextRemoved)w===this._mapHead&&(this._mapHead=null),this._records.delete(w.key),w._nextRemoved=w._next,w.previousValue=w.currentValue,w.currentValue=null,w._prev=null,w._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(d,h){if(d){var _=d._prev;return h._next=d,h._prev=_,d._prev=h,_&&(_._next=h),d===this._mapHead&&(this._mapHead=h),this._appendAfter=d,d}return this._appendAfter?(this._appendAfter._next=h,h._prev=this._appendAfter):this._mapHead=h,this._appendAfter=h,null}},{key:"_getOrCreateRecordForKey",value:function(d,h){if(this._records.has(d)){var _=this._records.get(d);this._maybeAddToChanges(_,h);var w=_._prev,H=_._next;return w&&(w._next=H),H&&(H._prev=w),_._next=null,_._prev=null,_}var z=new CB(d);return this._records.set(d,z),z.currentValue=h,this._addToAdditions(z),z}},{key:"_reset",value:function(){if(this.isDirty){var d;for(this._previousMapHead=this._mapHead,d=this._previousMapHead;null!==d;d=d._next)d._nextPrevious=d._next;for(d=this._changesHead;null!==d;d=d._nextChanged)d.previousValue=d.currentValue;for(d=this._additionsHead;null!=d;d=d._nextAdded)d.previousValue=d.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(d,h){Object.is(h,d.currentValue)||(d.previousValue=d.currentValue,d.currentValue=h,this._addToChanges(d))}},{key:"_addToAdditions",value:function(d){null===this._additionsHead?this._additionsHead=this._additionsTail=d:(this._additionsTail._nextAdded=d,this._additionsTail=d)}},{key:"_addToChanges",value:function(d){null===this._changesHead?this._changesHead=this._changesTail=d:(this._changesTail._nextChanged=d,this._changesTail=d)}},{key:"_forEach",value:function(d,h){d instanceof Map?d.forEach(h):Object.keys(d).forEach(function(_){return h(d[_],_)})}}]),l}(),CB=function l(c){(0,M.Z)(this,l),this.key=c,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null};function B0(){return new Eg([new ak])}var Eg=function(){var l=function(){function c(d){(0,M.Z)(this,c),this.factories=d}return(0,D.Z)(c,[{key:"find",value:function(h){var _=this.factories.find(function(w){return w.supports(h)});if(null!=_)return _;throw new Error("Cannot find a differ supporting object '".concat(h,"' of type '").concat(function(l){return l.name||typeof l}(h),"'"))}}],[{key:"create",value:function(h,_){if(null!=_){var w=_.factories.slice();h=h.concat(w)}return new c(h)}},{key:"extend",value:function(h){return{provide:c,useFactory:function(w){return c.create(h,w||B0())},deps:[[c,new Fu,new Lu]]}}}]),c}();return l.\u0275prov=Rn({token:l,providedIn:"root",factory:B0}),l}();function RI(){return new Mg([new sk])}var Mg=function(){var l=function(){function c(d){(0,M.Z)(this,c),this.factories=d}return(0,D.Z)(c,[{key:"find",value:function(h){var _=this.factories.find(function(w){return w.supports(h)});if(_)return _;throw new Error("Cannot find a differ supporting object '".concat(h,"'"))}}],[{key:"create",value:function(h,_){if(_){var w=_.factories.slice();h=h.concat(w)}return new c(h)}},{key:"extend",value:function(h){return{provide:c,useFactory:function(w){return c.create(h,w||RI())},deps:[[c,new Fu,new Lu]]}}}]),c}();return l.\u0275prov=Rn({token:l,providedIn:"root",factory:RI}),l}();function Wh(l,c,d,h){for(var _=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==d;){var w=c[d.index];if(null!==w&&h.push(zr(w)),ho(w))for(var H=10;H<w.length;H++){var z=w[H],X=z[1].firstChild;null!==X&&Wh(z[1],z,X,h)}var me=d.type;if(8&me)Wh(l,c,d.child,h);else if(32&me)for(var Ae=Bv(d,c),Xe=void 0;Xe=Ae();)h.push(Xe);else if(16&me){var Qe=kh(c,d);if(Array.isArray(Qe))h.push.apply(h,(0,v.Z)(Qe));else{var ht=Bd(c[16]);Wh(ht[1],ht,Qe,h,!0)}}d=_?d.projectionNext:d.next}return h}var Ag=function(){function l(c,d){(0,M.Z)(this,l),this._lView=c,this._cdRefInjectingView=d,this._appRef=null,this._attachedToViewContainer=!1}return(0,D.Z)(l,[{key:"rootNodes",get:function(){var d=this._lView,h=d[1];return Wh(h,d,h.firstChild,[])}},{key:"context",get:function(){return this._lView[8]},set:function(d){this._lView[8]=d}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}},{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var d=this._lView[3];if(ho(d)){var h=d[8],_=h?h.indexOf(this):-1;_>-1&&(xh(d,_),kd(h,_))}this._attachedToViewContainer=!1}ab(this._lView[1],this._lView)}},{key:"onDestroy",value:function(d){rg(this._lView[1],this._lView,null,d)}},{key:"markForCheck",value:function(){cx(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){px(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(l,c,d){Un(!0);try{px(l,c,d)}finally{Un(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function(l,c){Mh(l,c,c[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(d){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=d}}]),l}(),lk=function(l){(0,A.Z)(d,l);var c=(0,y.Z)(d);function d(h){var _;return(0,M.Z)(this,d),(_=c.call(this,h))._view=h,_}return(0,D.Z)(d,[{key:"detectChanges",value:function(){ig(this._view)}},{key:"checkNoChanges",value:function(){!function(l){Un(!0);try{ig(l)}finally{Un(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),d}(Ag),ZI=function(l){return function(l,c,d){if(Si(l)&&!d){var h=ba(l.index,c);return new Ag(h,h)}return 47&l.type?new Ag(c[16],c):null}($(),Ce(),16==(16&l))},LI=function(){var l=function c(){(0,M.Z)(this,c)};return l.__NG_ELEMENT_ID__=ZI,l}(),FI=[new sk],BI=new Eg([new ak]),wB=new Mg(FI),EB=function(){return Dg($(),Ce())},Gh=function(){var l=function c(){(0,M.Z)(this,c)};return l.__NG_ELEMENT_ID__=EB,l}(),ck=function(l){(0,A.Z)(d,l);var c=(0,y.Z)(d);function d(h,_,w){var H;return(0,M.Z)(this,d),(H=c.call(this))._declarationLView=h,H._declarationTContainer=_,H.elementRef=w,H}return(0,D.Z)(d,[{key:"createEmbeddedView",value:function(_){var w=this._declarationTContainer.tViews,H=Na(this._declarationLView,w,_,16,null,w.declTNode,null,null,null,null);H[17]=this._declarationLView[this._declarationTContainer.index];var X=this._declarationLView[19];return null!==X&&(H[19]=X.createEmbeddedView(w)),Ph(w,H,_),new Ag(H)}}]),d}(Gh);function Dg(l,c){return 4&l.type?new ck(c,l,zh(l,c)):null}var Vc=function l(){(0,M.Z)(this,l)},U0=function l(){(0,M.Z)(this,l)},dk=function(){return jI($(),Ce())},df=function(){var l=function c(){(0,M.Z)(this,c)};return l.__NG_ELEMENT_ID__=dk,l}(),fk=function(l){(0,A.Z)(d,l);var c=(0,y.Z)(d);function d(h,_,w){var H;return(0,M.Z)(this,d),(H=c.call(this))._lContainer=h,H._hostTNode=_,H._hostLView=w,H}return(0,D.Z)(d,[{key:"element",get:function(){return zh(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new Sd(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var _=_y(this._hostTNode,this._hostLView);if(lD(_)){var w=Op(_,this._hostLView),H=sh(_);return new Sd(w[1].data[H+8],w)}return new Sd(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(_){var w=qI(this._lContainer);return null!==w&&w[_]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(_,w,H){var z=_.createEmbeddedView(w||{});return this.insert(z,H),z}},{key:"createComponent",value:function(_,w,H,z,X){var me=H||this.parentInjector;if(!X&&null==_.ngModule&&me){var Ae=me.get(Vc,null);Ae&&(X=Ae)}var Xe=_.create(me,z,void 0,X);return this.insert(Xe.hostView,w),Xe}},{key:"insert",value:function(_,w){var H=_._lView,z=H[1];if(function(l){return ho(l[3])}(H)){var X=this.indexOf(_);if(-1!==X)this.detach(X);else{var me=H[3],Ae=new fk(me,me[6],me[3]);Ae.detach(Ae.indexOf(_))}}var Xe=this._adjustIndex(w),Qe=this._lContainer;!function(l,c,d,h){var _=10+h,w=d.length;h>0&&(d[_-1][4]=c),h<w-10?(c[4]=d[_],Sv(d,10+h,c)):(d.push(c),c[4]=null),c[3]=d;var H=c[17];null!==H&&d!==H&&function(l,c){var d=l[9];c[16]!==c[3][3][16]&&(l[2]=!0),null===d?l[9]=[c]:d.push(c)}(H,c);var z=c[19];null!==z&&z.insertView(l),c[2]|=128}(z,H,Qe,Xe);var ht=Eh(Xe,Qe),Dt=H[11],Yt=zv(Dt,Qe[7]);return null!==Yt&&function(l,c,d,h,_,w){h[0]=_,h[6]=c,Mh(l,h,d,1,_,w)}(z,Qe[6],Dt,H,Yt,ht),_.attachToViewContainerRef(),Sv(hk(Qe),Xe,_),_}},{key:"move",value:function(_,w){return this.insert(_,w)}},{key:"indexOf",value:function(_){var w=qI(this._lContainer);return null!==w?w.indexOf(_):-1}},{key:"remove",value:function(_){var w=this._adjustIndex(_,-1),H=xh(this._lContainer,w);H&&(kd(hk(this._lContainer),w),ab(H[1],H))}},{key:"detach",value:function(_){var w=this._adjustIndex(_,-1),H=xh(this._lContainer,w);return H&&null!=kd(hk(this._lContainer),w)?new Ag(H):null}},{key:"_adjustIndex",value:function(_){var w=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==_?this.length+w:_}}]),d}(df);function qI(l){return l[8]}function hk(l){return l[8]||(l[8]=[])}function jI(l,c){var d,h=c[l.index];if(ho(h))d=h;else{var _;if(8&l.type)_=zr(h);else{var w=c[11];_=w.createComment("");var H=Ii(l,c);Ud(w,zv(w,H),_,function(l,c){return Tt(l)?l.nextSibling(c):c.nextSibling}(w,H),!1)}c[l.index]=d=Fl(h,c,_,l),Ib(c,d)}return new fk(d,l,c)}var ju={},mf=function(l){(0,A.Z)(d,l);var c=(0,y.Z)(d);function d(h){var _;return(0,M.Z)(this,d),(_=c.call(this)).ngModule=h,_}return(0,D.Z)(d,[{key:"resolveComponentFactory",value:function(_){var w=yi(_);return new aC(w,this.ngModule)}}]),d}(kg);function iC(l){var c=[];for(var d in l)l.hasOwnProperty(d)&&c.push({propName:l[d],templateName:d});return c}var f3=new No("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Ra}}),aC=function(l){(0,A.Z)(d,l);var c=(0,y.Z)(d);function d(h,_){var w;return(0,M.Z)(this,d),(w=c.call(this)).componentDef=h,w.ngModule=_,w.componentType=h.type,w.selector=function(l){return l.map(eO).join(",")}(h.selectors),w.ngContentSelectors=h.ngContentSelectors?h.ngContentSelectors:[],w.isBoundToModule=!!_,w}return(0,D.Z)(d,[{key:"inputs",get:function(){return iC(this.componentDef.inputs)}},{key:"outputs",get:function(){return iC(this.componentDef.outputs)}},{key:"create",value:function(_,w,H,z){var bn,Xn,X=(z=z||this.ngModule)?function(l,c){return{get:function(h,_,w){var H=l.get(h,ju,w);return H!==ju||_===ju?H:c.get(h,_,w)}}}(_,z.injector):_,me=X.get(F0,gt),Ae=X.get(ik,null),Xe=me.createRenderer(null,this.componentDef),Qe=this.componentDef.selectors[0][0]||"div",ht=H?function(l,c,d){if(Tt(l))return l.selectRootElement(c,d===xn.ShadowDom);var _="string"==typeof c?l.querySelector(c):c;return _.textContent="",_}(Xe,H,this.componentDef.encapsulation):ib(me.createRenderer(null,this.componentDef),Qe,function(l){var c=l.toLowerCase();return"svg"===c?ie:"math"===c?"http://www.w3.org/1998/MathML/":null}(Qe)),Dt=this.componentDef.onPush?576:528,Yt=function(l,c){return{components:[],scheduler:l||Ra,clean:fx,playerHandler:c||null,flags:0}}(),vn=tl(0,null,null,1,0,null,null,null,null,null),Bn=Na(null,vn,Yt,Dt,null,null,me,Xe,Ae,X);xt(Bn);try{var cr=function(l,c,d,h,_,w){var H=d[1];d[20]=l;var X=qd(H,20,2,"#host",null),me=X.mergedAttrs=c.hostAttrs;null!==me&&(ag(X,me,!0),null!==l&&(Xs(_,l,me),null!==X.classes&&fb(_,l,X.classes),null!==X.styles&&pb(_,l,X.styles)));var Ae=h.createRenderer(l,c),Xe=Na(d,ng(c),null,c.onPush?64:16,d[20],X,h,Ae,w||null,null);return H.firstCreatePass&&(_v(lh(X,d),H,c.type),lx(H,X),_O(X,d.length,1)),Ib(d,Xe),d[20]=Xe}(ht,this.componentDef,Bn,me,Xe);if(ht)if(H)Xs(Xe,ht,["ng-version",kI.full]);else{var Gr=function(l){for(var c=[],d=[],h=1,_=2;h<l.length;){var w=l[h];if("string"==typeof w)2===_?""!==w&&c.push(w,l[++h]):8===_&&d.push(w);else{if(!Fs(_))break;_=w}h++}return{attrs:c,classes:d}}(this.componentDef.selectors[0]),Ai=Gr.attrs,_o=Gr.classes;Ai&&Xs(Xe,ht,Ai),_o&&_o.length>0&&fb(Xe,ht,_o.join(" "))}if(Xn=Oa(vn,20),void 0!==w)for(var ca=Xn.projection=[],da=0;da<this.ngContentSelectors.length;da++){var Gl=w[da];ca.push(null!=Gl?Array.from(Gl):null)}bn=function(l,c,d,h,_){var w=d[1],H=function(l,c,d){var h=$();l.firstCreatePass&&(d.providersResolver&&d.providersResolver(d),yO(l,h,c,Kp(l,c,1,null),d));var w=Nu(c,l,h.directiveStart,h);Ya(w,c);var H=Ii(h,c);return H&&Ya(H,c),w}(w,d,c);if(h.components.push(H),l[8]=H,_&&_.forEach(function(Ae){return Ae(H,c)}),c.contentQueries){var z=$();c.contentQueries(1,H,z.directiveStart)}var X=$();return!w.firstCreatePass||null===c.hostBindings&&null===c.hostAttrs||(_s(X.index),ax(d[1],X,0,X.directiveStart,X.directiveEnd,c),sx(c,H)),H}(cr,this.componentDef,Bn,Yt,[zO]),Ph(vn,Bn,null)}finally{ea()}return new Rk(this.componentType,bn,zh(Xn,Bn),Bn,Xn)}}]),d}(tk),Rk=function(l){(0,A.Z)(d,l);var c=(0,y.Z)(d);function d(h,_,w,H,z){var X;return(0,M.Z)(this,d),(X=c.call(this)).location=w,X._rootLView=H,X._tNode=z,X.instance=_,X.hostView=X.changeDetectorRef=new lk(H),X.componentType=h,X}return(0,D.Z)(d,[{key:"injector",get:function(){return new Sd(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.hostView.destroy()}},{key:"onDestroy",value:function(_){this.hostView.onDestroy(_)}}]),d}(lB),zu=new Map;var WB=function(l){(0,A.Z)(d,l);var c=(0,y.Z)(d);function d(h,_){var w;(0,M.Z)(this,d),(w=c.call(this))._parent=_,w._bootstrapComponents=[],w.injector=(0,V.Z)(w),w.destroyCbs=[],w.componentFactoryResolver=new mf((0,V.Z)(w));var H=hi(h),z=function(l){return l[Nt]||null}(h);return z&&Nw(z),w._bootstrapComponents=Ls(H.bootstrap),w._r3Injector=bx(h,_,[{provide:Vc,useValue:(0,V.Z)(w)},{provide:kg,useValue:w.componentFactoryResolver}],W(h)),w._r3Injector._resolveInjectorDefTypes(),w.instance=w.get(h),w}return(0,D.Z)(d,[{key:"get",value:function(_){var w=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Za.THROW_IF_NOT_FOUND,H=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ye.Default;return _===Za||_===Vc||_===sg?this:this._r3Injector.get(_,w,H)}},{key:"destroy",value:function(){var _=this._r3Injector;!_.destroyed&&_.destroy(),this.destroyCbs.forEach(function(w){return w()}),this.destroyCbs=null}},{key:"onDestroy",value:function(_){this.destroyCbs.push(_)}}]),d}(Vc),Bg=function(l){(0,A.Z)(d,l);var c=(0,y.Z)(d);function d(h){var _;return(0,M.Z)(this,d),(_=c.call(this)).moduleType=h,null!==hi(h)&&function(l){var c=new Set;!function d(h){var _=hi(h,!0),w=_.id;null!==w&&(function(l,c,d){if(c&&c!==d)throw new Error("Duplicate module registered for ".concat(l," - ").concat(W(c)," vs ").concat(W(c.name)))}(w,zu.get(w),h),zu.set(w,h));var me,z=Ls(_.imports),X=(0,C.Z)(z);try{for(X.s();!(me=X.n()).done;){var Ae=me.value;c.has(Ae)||(c.add(Ae),d(Ae))}}catch(Xe){X.e(Xe)}finally{X.f()}}(l)}(h),_}return(0,D.Z)(d,[{key:"create",value:function(_){return new WB(this.moduleType,_)}}]),d}(U0);function g3(l,c,d){var h=Kn()+l,_=Ce();return _[h]===Ur?nl(_,h,d?c.call(d):c()):function(l,c){return l[c]}(_,h)}function Lk(l,c,d,h){return Uk(Ce(),Kn(),l,c,d,h)}function lC(l,c,d,h,_){return y3(Ce(),Kn(),l,c,d,h,_)}function Ug(l,c){var d=l[c];return d===Ur?void 0:d}function Uk(l,c,d,h,_,w){var H=c+d;return La(l,H,_)?nl(l,H+1,w?h.call(w,_):h(_)):Ug(l,H+1)}function y3(l,c,d,h,_,w,H){var z=c+d;return vu(l,z,_,w)?nl(l,z+2,H?h.call(H,_,w):h(_,w)):Ug(l,z+2)}function Wi(l,c){var h,d=ge(),_=l+20;d.firstCreatePass?(h=function(l,c){if(c)for(var d=c.length-1;d>=0;d--){var h=c[d];if(l===h.name)return h}throw new ue("302","The pipe '".concat(l,"' could not be found!"))}(c,d.pipeRegistry),d.data[_]=h,h.onDestroy&&(d.destroyHooks||(d.destroyHooks=[])).push(_,h.onDestroy)):h=d.data[_];var w=h.factory||(h.factory=ts(h.type)),H=zt(Fh);try{var z=gy(!1),X=w();return gy(z),function(l,c,d,h){d>=l.data.length&&(l.data[d]=null,l.blueprint[d]=null),c[d]=h}(d,Ce(),_,X),X}finally{zt(H)}}function to(l,c,d){var h=l+20,_=Ce(),w=ns(_,h);return em(_,$h(_,h)?Uk(_,Kn(),c,w.transform,d,w):w.transform(d))}function Hg(l,c,d,h){var _=l+20,w=Ce(),H=ns(w,_);return em(w,$h(w,_)?y3(w,Kn(),c,H.transform,d,h,H):H.transform(d,h))}function $h(l,c){return l[1].data[c].pure}function em(l,c){return mu.isWrapped(c)&&(c=mu.unwrap(c),l[mr()]=Ur),c}function qc(l){return function(c){setTimeout(l,void 0,c)}}var bu=function(l){(0,A.Z)(d,l);var c=(0,y.Z)(d);function d(){var h,_=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,M.Z)(this,d),(h=c.call(this)).__isAsync=_,h}return(0,D.Z)(d,[{key:"emit",value:function(_){(0,U.Z)((0,B.Z)(d.prototype),"next",this).call(this,_)}},{key:"subscribe",value:function(_,w,H){var z,X,me,Ae=_,Xe=w||function(){return null},Qe=H;if(_&&"object"==typeof _){var ht=_;Ae=null===(z=ht.next)||void 0===z?void 0:z.bind(ht),Xe=null===(X=ht.error)||void 0===X?void 0:X.bind(ht),Qe=null===(me=ht.complete)||void 0===me?void 0:me.bind(ht)}this.__isAsync&&(Xe=qc(Xe),Ae&&(Ae=qc(Ae)),Qe&&(Qe=qc(Qe)));var Dt=(0,U.Z)((0,B.Z)(d.prototype),"subscribe",this).call(this,{next:Ae,error:Xe,complete:Qe});return _ instanceof E.w&&_.add(Dt),Dt}}]),d}(x.xQ);function vf(){return this._results[Zc()]()}var jc=function(){function l(){var c=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,M.Z)(this,l),this._emitDistinctChangesOnly=c,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var d=Zc(),h=l.prototype;h[d]||(h[d]=vf)}return(0,D.Z)(l,[{key:"changes",get:function(){return this._changes||(this._changes=new bu)}},{key:"get",value:function(d){return this._results[d]}},{key:"map",value:function(d){return this._results.map(d)}},{key:"filter",value:function(d){return this._results.filter(d)}},{key:"find",value:function(d){return this._results.find(d)}},{key:"reduce",value:function(d,h){return this._results.reduce(d,h)}},{key:"forEach",value:function(d){this._results.forEach(d)}},{key:"some",value:function(d){return this._results.some(d)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(d,h){var _=this;_.dirty=!1;var w=Ps(d);(this._changesDetected=!function(l,c,d){if(l.length!==c.length)return!1;for(var h=0;h<l.length;h++){var _=l[h],w=c[h];if(d&&(_=d(_),w=d(w)),w!==_)return!1}return!0}(_._results,w,h))&&(_._results=w,_.length=w.length,_.last=w[this.length-1],_.first=w[0])}},{key:"notifyOnChanges",value:function(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),l}();Symbol;var Wu=function(){function l(c){(0,M.Z)(this,l),this.queryList=c,this.matches=null}return(0,D.Z)(l,[{key:"clone",value:function(){return new l(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),l}(),pC=function(){function l(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,M.Z)(this,l),this.queries=c}return(0,D.Z)(l,[{key:"createEmbeddedView",value:function(d){var h=d.queries;if(null!==h){for(var _=null!==d.contentQueries?d.contentQueries[0]:h.length,w=[],H=0;H<_;H++){var z=h.getByIndex(H);w.push(this.queries[z.indexInDeclarationView].clone())}return new l(w)}return null}},{key:"insertView",value:function(d){this.dirtyQueriesWithMatches(d)}},{key:"detachView",value:function(d){this.dirtyQueriesWithMatches(d)}},{key:"dirtyQueriesWithMatches",value:function(d){for(var h=0;h<this.queries.length;h++)null!==zg(d,h).matches&&this.queries[h].setDirty()}}]),l}(),qg=function l(c,d){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(0,M.Z)(this,l),this.predicate=c,this.flags=d,this.read=h},Vk=function(){function l(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,M.Z)(this,l),this.queries=c}return(0,D.Z)(l,[{key:"elementStart",value:function(d,h){for(var _=0;_<this.queries.length;_++)this.queries[_].elementStart(d,h)}},{key:"elementEnd",value:function(d){for(var h=0;h<this.queries.length;h++)this.queries[h].elementEnd(d)}},{key:"embeddedTView",value:function(d){for(var h=null,_=0;_<this.length;_++){var w=null!==h?h.length:0,H=this.getByIndex(_).embeddedTView(d,w);H&&(H.indexInDeclarationView=_,null!==h?h.push(H):h=[H])}return null!==h?new l(h):null}},{key:"template",value:function(d,h){for(var _=0;_<this.queries.length;_++)this.queries[_].template(d,h)}},{key:"getByIndex",value:function(d){return this.queries[d]}},{key:"length",get:function(){return this.queries.length}},{key:"track",value:function(d){this.queries.push(d)}}]),l}(),fC=function(){function l(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;(0,M.Z)(this,l),this.metadata=c,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=d}return(0,D.Z)(l,[{key:"elementStart",value:function(d,h){this.isApplyingToNode(h)&&this.matchTNode(d,h)}},{key:"elementEnd",value:function(d){this._declarationNodeIndex===d.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(d,h){this.elementStart(d,h)}},{key:"embeddedTView",value:function(d,h){return this.isApplyingToNode(d)?(this.crossesNgTemplate=!0,this.addMatch(-d.index,h),new l(this.metadata)):null}},{key:"isApplyingToNode",value:function(d){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var h=this._declarationNodeIndex,_=d.parent;null!==_&&8&_.type&&_.index!==h;)_=_.parent;return h===(null!==_?_.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(d,h){var _=this.metadata.predicate;if(Array.isArray(_))for(var w=0;w<_.length;w++){var H=_[w];this.matchTNodeWithReadOption(d,h,qk(h,H)),this.matchTNodeWithReadOption(d,h,uh(h,d,H,!1,!1))}else _===Gh?4&h.type&&this.matchTNodeWithReadOption(d,h,-1):this.matchTNodeWithReadOption(d,h,uh(h,d,_,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(d,h,_){if(null!==_){var w=this.metadata.read;if(null!==w)if(w===gu||w===df||w===Gh&&4&h.type)this.addMatch(h.index,-2);else{var H=uh(h,d,w,!1,!1);null!==H&&this.addMatch(h.index,H)}else this.addMatch(h.index,_)}}},{key:"addMatch",value:function(d,h){null===this.matches?this.matches=[d,h]:this.matches.push(d,h)}}]),l}();function qk(l,c){var d=l.localNames;if(null!==d)for(var h=0;h<d.length;h+=2)if(d[h]===c)return d[h+1];return null}function jk(l,c,d,h){return-1===d?function(l,c){return 11&l.type?zh(l,c):4&l.type?Dg(l,c):null}(c,l):-2===d?function(l,c,d){return d===gu?zh(c,l):d===Gh?Dg(c,l):d===df?jI(c,l):void 0}(l,c,h):Nu(l,l[1],d,c)}function jg(l,c,d,h){var _=c[19].queries[h];if(null===_.matches){for(var w=l.data,H=d.matches,z=[],X=0;X<H.length;X+=2){var me=H[X];z.push(me<0?null:jk(c,w[me],H[X+1],d.metadata.read))}_.matches=z}return _.matches}function mC(l,c,d,h){var _=l.queries.getByIndex(d),w=_.matches;if(null!==w)for(var H=jg(l,c,_,d),z=0;z<w.length;z+=2){var X=w[z];if(X>0)h.push(H[z/2]);else{for(var me=w[z+1],Ae=c[-X],Xe=10;Xe<Ae.length;Xe++){var Qe=Ae[Xe];Qe[17]===Qe[3]&&mC(Qe[1],Qe,me,h)}if(null!==Ae[9])for(var ht=Ae[9],Dt=0;Dt<ht.length;Dt++){var Yt=ht[Dt];mC(Yt[1],Yt,me,h)}}}return h}function zk(l){var c=Ce(),d=ge(),h=we();Ze(h+1);var _=zg(d,h);if(l.dirty&&Ds(c)===(2==(2&_.metadata.flags))){if(null===_.matches)l.reset([]);else{var w=_.crossesNgTemplate?mC(d,c,h,[]):jg(d,c,_,h);l.reset(w,nk),l.notifyOnChanges()}return!0}return!1}function gf(l,c,d){var h=ge();h.firstCreatePass&&(Cu(h,new qg(l,c,d),-1),2==(2&c)&&(h.staticViewQueries=!0)),nm(h,Ce(),c)}function Wk(l,c,d,h){var _=ge();if(_.firstCreatePass){var w=$();Cu(_,new qg(c,d,h),w.index),function(l,c){var d=l.contentQueries||(l.contentQueries=[]);c!==(d.length?d[d.length-1]:-1)&&d.push(l.queries.length-1,c)}(_,l),2==(2&d)&&(_.staticContentQueries=!0)}nm(_,Ce(),d)}function Gk(){return l=Ce(),c=we(),l[19].queries[c].queryList;var l,c}function nm(l,c,d){var h=new jc(4==(4&d));rg(l,c,h,h.destroy),null===c[19]&&(c[19]=new pC),c[19].queries.push(new Wu(h))}function Cu(l,c,d){null===l.queries&&(l.queries=new Vk),l.queries.track(new fC(c,d))}function zg(l,c){return l.queries.getByIndex(c)}function Wg(l,c){return Dg(l,c)}var Kd=new No("Application Initializer"),Vl=function(){var l=function(){function c(d){var h=this;(0,M.Z)(this,c),this.appInits=d,this.resolve=L0,this.reject=L0,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(_,w){h.resolve=_,h.reject=w})}return(0,D.Z)(c,[{key:"runInitializers",value:function(){var h=this;if(!this.initialized){var _=[],w=function(){h.done=!0,h.resolve()};if(this.appInits)for(var H=function(me){var Ae=h.appInits[me]();if(Hc(Ae))_.push(Ae);else if(a0(Ae)){var Xe=new Promise(function(Qe,ht){Ae.subscribe({complete:Qe,error:ht})});_.push(Xe)}},z=0;z<this.appInits.length;z++)H(z);Promise.all(_).then(function(){w()}).catch(function(X){h.reject(X)}),0===_.length&&w(),this.initialized=!0}}}]),c}();return l.\u0275fac=function(d){return new(d||l)(Go(Kd,8))},l.\u0275prov=Rn({token:l,factory:l.\u0275fac}),l}(),dE=new No("AppId"),pE={provide:dE,useFactory:function(){return"".concat(kC()).concat(kC()).concat(kC())},deps:[]};function kC(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var Yo=new No("Platform Initializer"),Xd=new No("Platform ID"),Xg=new No("appBootstrapListener"),EC=function(){var l=function(){function c(){(0,M.Z)(this,c)}return(0,D.Z)(c,[{key:"log",value:function(h){console.log(h)}},{key:"warn",value:function(h){console.warn(h)}}]),c}();return l.\u0275fac=function(d){return new(d||l)},l.\u0275prov=Rn({token:l,factory:l.\u0275fac}),l}(),cm=new No("LocaleId"),MC=new No("DefaultCurrencyCode"),mE=function l(c,d){(0,M.Z)(this,l),this.ngModuleFactory=c,this.componentFactories=d},DC=function(c){return new Bg(c)},gE=DC,Sf=function(c){return Promise.resolve(DC(c))},OC=function(c){var d=DC(c),_=Ls(hi(c).declarations).reduce(function(w,H){var z=yi(H);return z&&w.push(new aC(z)),w},[]);return new mE(d,_)},q3=OC,_E=function(c){return Promise.resolve(OC(c))},Tf=function(){var l=function(){function c(){(0,M.Z)(this,c),this.compileModuleSync=gE,this.compileModuleAsync=Sf,this.compileModuleAndAllComponentsSync=q3,this.compileModuleAndAllComponentsAsync=_E}return(0,D.Z)(c,[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(h){}},{key:"getModuleId",value:function(h){}}]),c}();return l.\u0275fac=function(d){return new(d||l)},l.\u0275prov=Rn({token:l,factory:l.\u0275fac}),l}(),j3=function(){return Promise.resolve(0)}();function IC(l){"undefined"==typeof Zone?j3.then(function(){l&&l.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",l)}var Su=function(){function l(c){var d=c.enableLongStackTrace,h=void 0!==d&&d,_=c.shouldCoalesceEventChangeDetection,w=void 0!==_&&_,H=c.shouldCoalesceRunChangeDetection,z=void 0!==H&&H;if((0,M.Z)(this,l),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new bu(!1),this.onMicrotaskEmpty=new bu(!1),this.onStable=new bu(!1),this.onError=new bu(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();var X=this;X._nesting=0,X._outer=X._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(X._inner=X._inner.fork(new Zone.TaskTrackingZoneSpec)),h&&Zone.longStackTraceZoneSpec&&(X._inner=X._inner.fork(Zone.longStackTraceZoneSpec)),X.shouldCoalesceEventChangeDetection=!z&&w,X.shouldCoalesceRunChangeDetection=z,X.lastRequestAnimationFrameId=-1,X.nativeRequestAnimationFrame=function(){var l=ft.requestAnimationFrame,c=ft.cancelAnimationFrame;if("undefined"!=typeof Zone&&l&&c){var d=l[Zone.__symbol__("OriginalDelegate")];d&&(l=d);var h=c[Zone.__symbol__("OriginalDelegate")];h&&(c=h)}return{nativeRequestAnimationFrame:l,nativeCancelAnimationFrame:c}}().nativeRequestAnimationFrame,function(l){var c=function(){!function(l){l.isCheckStableRunning||-1!==l.lastRequestAnimationFrameId||(l.lastRequestAnimationFrameId=l.nativeRequestAnimationFrame.call(ft,function(){l.fakeTopEventTask||(l.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){l.lastRequestAnimationFrameId=-1,pm(l),l.isCheckStableRunning=!0,dm(l),l.isCheckStableRunning=!1},void 0,function(){},function(){})),l.fakeTopEventTask.invoke()}),pm(l))}(l)};l._inner=l._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(h,_,w,H,z,X){try{return xf(l),h.invokeTask(w,H,z,X)}finally{(l.shouldCoalesceEventChangeDetection&&"eventTask"===H.type||l.shouldCoalesceRunChangeDetection)&&c(),Gc(l)}},onInvoke:function(h,_,w,H,z,X,me){try{return xf(l),h.invoke(w,H,z,X,me)}finally{l.shouldCoalesceRunChangeDetection&&c(),Gc(l)}},onHasTask:function(h,_,w,H){h.hasTask(w,H),_===w&&("microTask"==H.change?(l._hasPendingMicrotasks=H.microTask,pm(l),dm(l)):"macroTask"==H.change&&(l.hasPendingMacrotasks=H.macroTask))},onHandleError:function(h,_,w,H){return h.handleError(w,H),l.runOutsideAngular(function(){return l.onError.emit(H)}),!1}})}(X)}return(0,D.Z)(l,[{key:"run",value:function(d,h,_){return this._inner.run(d,h,_)}},{key:"runTask",value:function(d,h,_,w){var H=this._inner,z=H.scheduleEventTask("NgZoneEvent: "+w,d,Vs,L0,L0);try{return H.runTask(z,h,_)}finally{H.cancelTask(z)}}},{key:"runGuarded",value:function(d,h,_){return this._inner.runGuarded(d,h,_)}},{key:"runOutsideAngular",value:function(d){return this._outer.run(d)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!l.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(l.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),l}(),Vs={};function dm(l){if(0==l._nesting&&!l.hasPendingMicrotasks&&!l.isStable)try{l._nesting++,l.onMicrotaskEmpty.emit(null)}finally{if(l._nesting--,!l.hasPendingMicrotasks)try{l.runOutsideAngular(function(){return l.onStable.emit(null)})}finally{l.isStable=!0}}}function pm(l){l.hasPendingMicrotasks=!!(l._hasPendingMicrotasks||(l.shouldCoalesceEventChangeDetection||l.shouldCoalesceRunChangeDetection)&&-1!==l.lastRequestAnimationFrameId)}function xf(l){l._nesting++,l.isStable&&(l.isStable=!1,l.onUnstable.emit(null))}function Gc(l){l._nesting--,dm(l)}var ZC=function(){function l(){(0,M.Z)(this,l),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new bu,this.onMicrotaskEmpty=new bu,this.onStable=new bu,this.onError=new bu}return(0,D.Z)(l,[{key:"run",value:function(d,h,_){return d.apply(h,_)}},{key:"runGuarded",value:function(d,h,_){return d.apply(h,_)}},{key:"runOutsideAngular",value:function(d){return d()}},{key:"runTask",value:function(d,h,_,w){return d.apply(h,_)}}]),l}(),bE=function(){var l=function(){function c(d){var h=this;(0,M.Z)(this,c),this._ngZone=d,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),d.run(function(){h.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}return(0,D.Z)(c,[{key:"_watchAngularEvents",value:function(){var h=this;this._ngZone.onUnstable.subscribe({next:function(){h._didWork=!0,h._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){h._ngZone.onStable.subscribe({next:function(){Su.assertNotInAngularZone(),IC(function(){h._isZoneStable=!0,h._runCallbacksIfReady()})}})})}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var h=this;if(this.isStable())IC(function(){for(;0!==h._callbacks.length;){var w=h._callbacks.pop();clearTimeout(w.timeoutId),w.doneCb(h._didWork)}h._didWork=!1});else{var _=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(w){return!w.updateCb||!w.updateCb(_)||(clearTimeout(w.timeoutId),!1)}),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(h){return{source:h.source,creationLocation:h.creationLocation,data:h.data}}):[]}},{key:"addCallback",value:function(h,_,w){var H=this,z=-1;_&&_>0&&(z=setTimeout(function(){H._callbacks=H._callbacks.filter(function(X){return X.timeoutId!==z}),h(H._didWork,H.getPendingTasks())},_)),this._callbacks.push({doneCb:h,timeoutId:z,updateCb:w})}},{key:"whenStable",value:function(h,_,w){if(w&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(h,_,w),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(h,_,w){return[]}}]),c}();return l.\u0275fac=function(d){return new(d||l)(Go(Su))},l.\u0275prov=Rn({token:l,factory:l.\u0275fac}),l}(),wf=function(){var l=function(){function c(){(0,M.Z)(this,c),this._applications=new Map,t_.addToWindow(this)}return(0,D.Z)(c,[{key:"registerApplication",value:function(h,_){this._applications.set(h,_)}},{key:"unregisterApplication",value:function(h){this._applications.delete(h)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(h){return this._applications.get(h)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(h){var _=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t_.findTestabilityInTree(this,h,_)}}]),c}();return l.\u0275fac=function(d){return new(d||l)},l.\u0275prov=Rn({token:l,factory:l.\u0275fac}),l}();function W3(l){t_=l}var t_=new(function(){function l(){(0,M.Z)(this,l)}return(0,D.Z)(l,[{key:"addToWindow",value:function(d){}},{key:"findTestabilityInTree",value:function(d,h,_){return null}}]),l}()),CE=!0,SE=!1;function fm(){return SE=!0,CE}function TE(){if(SE)throw new Error("Cannot enable prod mode after platform setup.");CE=!1}var ql,G3=function(l,c,d){var h=new Bg(d);return Promise.resolve(h)},hm=new No("AllowMultipleToken"),FC=function l(c,d){(0,M.Z)(this,l),this.name=c,this.token=d};function mm(l){if(ql&&!ql.destroyed&&!ql.injector.get(hm,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ql=l.get(wE);var c=l.get(Yo,null);return c&&c.forEach(function(d){return d()}),ql}function BC(l,c){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],h="Platform: ".concat(c),_=new No(h);return function(){var w=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],H=xE();if(!H||H.injector.get(hm,!1))if(l)l(d.concat(w).concat({provide:_,useValue:!0}));else{var z=d.concat(w).concat({provide:_,useValue:!0},{provide:jd,useValue:"platform"});mm(Za.create({providers:z,name:h}))}return X3(_)}}function X3(l){var c=xE();if(!c)throw new Error("No platform exists!");if(!c.injector.get(l,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return c}function xE(){return ql&&!ql.destroyed?ql:null}var wE=function(){var l=function(){function c(d){(0,M.Z)(this,c),this._injector=d,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return(0,D.Z)(c,[{key:"bootstrapModuleFactory",value:function(h,_){var w=this,me=function(l,c){return"noop"===l?new ZC:("zone.js"===l?void 0:l)||new Su({enableLongStackTrace:fm(),shouldCoalesceEventChangeDetection:!!(null==c?void 0:c.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==c?void 0:c.ngZoneRunCoalescing)})}(_?_.ngZone:void 0,{ngZoneEventCoalescing:_&&_.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:_&&_.ngZoneRunCoalescing||!1}),Ae=[{provide:Su,useValue:me}];return me.run(function(){var Xe=Za.create({providers:Ae,parent:w.injector,name:h.moduleType.name}),Qe=h.create(Xe),ht=Qe.injector.get(kc,null);if(!ht)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return me.runOutsideAngular(function(){var Dt=me.onError.subscribe({next:function(vn){ht.handleError(vn)}});Qe.onDestroy(function(){UC(w._modules,Qe),Dt.unsubscribe()})}),function(l,c,d){try{var h=((Dt=Qe.injector.get(Vl)).runInitializers(),Dt.donePromise.then(function(){return Nw(Qe.injector.get(cm,A0)||A0),w._moduleDoBootstrap(Qe),Qe}));return Hc(h)?h.catch(function(_){throw c.runOutsideAngular(function(){return l.handleError(_)}),_}):h}catch(_){throw c.runOutsideAngular(function(){return l.handleError(_)}),_}var Dt}(ht,me)})}},{key:"bootstrapModule",value:function(h){var _=this,w=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],H=kE({},w);return G3(0,0,h).then(function(z){return _.bootstrapModuleFactory(z,H)})}},{key:"_moduleDoBootstrap",value:function(h){var _=h.injector.get(vm);if(h._bootstrapComponents.length>0)h._bootstrapComponents.forEach(function(w){return _.bootstrap(w)});else{if(!h.instance.ngDoBootstrap)throw new Error("The module ".concat(W(h.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");h.instance.ngDoBootstrap(_)}this._modules.push(h)}},{key:"onDestroy",value:function(h){this._destroyListeners.push(h)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(h){return h.destroy()}),this._destroyListeners.forEach(function(h){return h()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),c}();return l.\u0275fac=function(d){return new(d||l)(Go(Za))},l.\u0275prov=Rn({token:l,factory:l.\u0275fac}),l}();function kE(l,c){return Array.isArray(c)?c.reduce(kE,l):Object.assign(Object.assign({},l),c)}var vm=function(){var l=function(){function c(d,h,_,w,H){var z=this;(0,M.Z)(this,c),this._zone=d,this._injector=h,this._exceptionHandler=_,this._componentFactoryResolver=w,this._initStatus=H,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){z._zone.run(function(){z.tick()})}});var X=new S.y(function(Ae){z._stable=z._zone.isStable&&!z._zone.hasPendingMacrotasks&&!z._zone.hasPendingMicrotasks,z._zone.runOutsideAngular(function(){Ae.next(z._stable),Ae.complete()})}),me=new S.y(function(Ae){var Xe;z._zone.runOutsideAngular(function(){Xe=z._zone.onStable.subscribe(function(){Su.assertNotInAngularZone(),IC(function(){!z._stable&&!z._zone.hasPendingMacrotasks&&!z._zone.hasPendingMicrotasks&&(z._stable=!0,Ae.next(!0))})})});var Qe=z._zone.onUnstable.subscribe(function(){Su.assertInAngularZone(),z._stable&&(z._stable=!1,z._zone.runOutsideAngular(function(){Ae.next(!1)}))});return function(){Xe.unsubscribe(),Qe.unsubscribe()}});this.isStable=(0,O.T)(X,me.pipe((0,L.B)()))}return(0,D.Z)(c,[{key:"bootstrap",value:function(h,_){var H,w=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");H=h instanceof tk?h:this._componentFactoryResolver.resolveComponentFactory(h),this.componentTypes.push(H.componentType);var z=function(l){return l.isBoundToModule}(H)?void 0:this._injector.get(Vc),me=H.create(Za.NULL,[],_||H.selector,z),Ae=me.location.nativeElement,Xe=me.injector.get(bE,null),Qe=Xe&&me.injector.get(wf);return Xe&&Qe&&Qe.registerApplication(Ae,Xe),me.onDestroy(function(){w.detachView(me.hostView),UC(w.components,me),Qe&&Qe.unregisterApplication(Ae)}),this._loadComponent(me),me}},{key:"tick",value:function(){var h=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var w,_=(0,C.Z)(this._views);try{for(_.s();!(w=_.n()).done;)w.value.detectChanges()}catch(Ae){_.e(Ae)}finally{_.f()}}catch(Ae){this._zone.runOutsideAngular(function(){return h._exceptionHandler.handleError(Ae)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(h){var _=h;this._views.push(_),_.attachToAppRef(this)}},{key:"detachView",value:function(h){var _=h;UC(this._views,_),_.detachFromAppRef()}},{key:"_loadComponent",value:function(h){this.attachView(h.hostView),this.tick(),this.components.push(h),this._injector.get(Xg,[]).concat(this._bootstrapListeners).forEach(function(w){return w(h)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(h){return h.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),c}();return l.\u0275fac=function(d){return new(d||l)(Go(Su),Go(Za),Go(kc),Go(kg),Go(Vl))},l.\u0275prov=Rn({token:l,factory:l.\u0275fac}),l}();function UC(l,c){var d=l.indexOf(c);d>-1&&l.splice(d,1)}var ME=function l(){(0,M.Z)(this,l)},jC=function l(){(0,M.Z)(this,l)},gm={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},tR=function(){var l=function(){function c(d,h){(0,M.Z)(this,c),this._compiler=d,this._config=h||gm}return(0,D.Z)(c,[{key:"load",value:function(h){return this.loadAndCompile(h)}},{key:"loadAndCompile",value:function(h){var _=this,w=h.split("#"),H=(0,Z.Z)(w,2),z=H[0],X=H[1];return void 0===X&&(X="default"),f(98255)(z).then(function(me){return me[X]}).then(function(me){return AE(me,z,X)}).then(function(me){return _._compiler.compileModuleAsync(me)})}},{key:"loadFactory",value:function(h){var _=h.split("#"),w=(0,Z.Z)(_,2),H=w[0],z=w[1],X="NgFactory";return void 0===z&&(z="default",X=""),f(98255)(this._config.factoryPathPrefix+H+this._config.factoryPathSuffix).then(function(me){return me[z+X]}).then(function(me){return AE(me,H,z)})}}]),c}();return l.\u0275fac=function(d){return new(d||l)(Go(Tf),Go(jC,8))},l.\u0275prov=Rn({token:l,factory:l.\u0275fac}),l}();function AE(l,c,d){if(!l)throw new Error("Cannot find '".concat(d,"' in '").concat(c,"'"));return l}var nR=function(l){(0,A.Z)(d,l);var c=(0,y.Z)(d);function d(){return(0,M.Z)(this,d),c.apply(this,arguments)}return d}(function(l){(0,A.Z)(d,l);var c=(0,y.Z)(d);function d(){return(0,M.Z)(this,d),c.apply(this,arguments)}return d}(LI)),lR=function(l){return null},cR=BC(null,"core",[{provide:Xd,useValue:"unknown"},{provide:wE,deps:[Za]},{provide:wf,deps:[]},{provide:EC,deps:[]}]),QC=[{provide:vm,useClass:vm,deps:[Su,Za,kc,kg,Vl]},{provide:f3,deps:[Su],useFactory:function(l){var c=[];return l.onStable.subscribe(function(){for(;c.length;)c.pop()()}),function(d){c.push(d)}}},{provide:Vl,useClass:Vl,deps:[[new Lu,Kd]]},{provide:Tf,useClass:Tf,deps:[]},pE,{provide:Eg,useFactory:function(){return BI},deps:[]},{provide:Mg,useFactory:function(){return wB},deps:[]},{provide:cm,useFactory:function(l){return Nw(l=l||"undefined"!=typeof $localize&&$localize.locale||A0),l},deps:[[new hh(cm),new Lu,new Fu]]},{provide:MC,useValue:"USD"}],gR=function(){var l=function c(d){(0,M.Z)(this,c)};return l.\u0275fac=function(d){return new(d||l)(Go(vm))},l.\u0275mod=bo({type:l}),l.\u0275inj=Nn({providers:QC}),l}()},19061:function(ce,q,f){"use strict";f.d(q,{Zs:function(){return Ui},Fj:function(){return L},qu:function(){return $e},NI:function(){return ki},u:function(){return ha},cw:function(){return ro},sg:function(){return qo},u5:function(){return Tl},Cf:function(){return W},JU:function(){return k},a5:function(){return En},JJ:function(){return Nn},JL:function(){return wn},F:function(){return Ho},On:function(){return jn},wV:function(){return bi},UX:function(){return fe},kI:function(){return te},_Y:function(){return zn}});var U=f(88009),B=f(36683),V=f(10629),Z=f(10509),T=f(97154),I=f(18967),C=f(14105),v=f(65508),P=f(40098),D=f(61493),M=f(91925),A=f(85639),y=function(){var ie=function(){function he(_e,be){(0,I.Z)(this,he),this._renderer=_e,this._elementRef=be,this.onChange=function(Pe){},this.onTouched=function(){}}return(0,C.Z)(he,[{key:"setProperty",value:function(be,Pe){this._renderer.setProperty(this._elementRef.nativeElement,be,Pe)}},{key:"registerOnTouched",value:function(be){this.onTouched=be}},{key:"registerOnChange",value:function(be){this.onChange=be}},{key:"setDisabledState",value:function(be){this.setProperty("disabled",be)}}]),he}();return ie.\u0275fac=function(_e){return new(_e||ie)(v.Y36(v.Qsj),v.Y36(v.SBq))},ie.\u0275dir=v.lG2({type:ie}),ie}(),g=function(){var ie=function(he){(0,Z.Z)(be,he);var _e=(0,T.Z)(be);function be(){return(0,I.Z)(this,be),_e.apply(this,arguments)}return be}(y);return ie.\u0275fac=function(){var he;return function(be){return(he||(he=v.n5z(ie)))(be||ie)}}(),ie.\u0275dir=v.lG2({type:ie,features:[v.qOj]}),ie}(),k=new v.OlP("NgValueAccessor"),x={provide:k,useExisting:(0,v.Gpc)(function(){return L}),multi:!0},O=new v.OlP("CompositionEventMode"),L=function(){var ie=function(he){(0,Z.Z)(be,he);var _e=(0,T.Z)(be);function be(Pe,ze,Tt){var pt;return(0,I.Z)(this,be),(pt=_e.call(this,Pe,ze))._compositionMode=Tt,pt._composing=!1,null==pt._compositionMode&&(pt._compositionMode=!function(){var ie=(0,P.q)()?(0,P.q)().getUserAgent():"";return/android (\d+)/.test(ie.toLowerCase())}()),pt}return(0,C.Z)(be,[{key:"writeValue",value:function(ze){this.setProperty("value",null==ze?"":ze)}},{key:"_handleInput",value:function(ze){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(ze)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(ze){this._composing=!1,this._compositionMode&&this.onChange(ze)}}]),be}(y);return ie.\u0275fac=function(_e){return new(_e||ie)(v.Y36(v.Qsj),v.Y36(v.SBq),v.Y36(O,8))},ie.\u0275dir=v.lG2({type:ie,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(_e,be){1&_e&&v.NdJ("input",function(ze){return be._handleInput(ze.target.value)})("blur",function(){return be.onTouched()})("compositionstart",function(){return be._compositionStart()})("compositionend",function(ze){return be._compositionEnd(ze.target.value)})},features:[v._Bn([x]),v.qOj]}),ie}();function j(ie){return null==ie||0===ie.length}function K(ie){return null!=ie&&"number"==typeof ie.length}var W=new v.OlP("NgValidators"),J=new v.OlP("NgAsyncValidators"),oe=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,te=function(){function ie(){(0,I.Z)(this,ie)}return(0,C.Z)(ie,null,[{key:"min",value:function(_e){return function(ie){return function(he){if(j(he.value)||j(ie))return null;var _e=parseFloat(he.value);return!isNaN(_e)&&_e<ie?{min:{min:ie,actual:he.value}}:null}}(_e)}},{key:"max",value:function(_e){return function(ie){return function(he){if(j(he.value)||j(ie))return null;var _e=parseFloat(he.value);return!isNaN(_e)&&_e>ie?{max:{max:ie,actual:he.value}}:null}}(_e)}},{key:"required",value:function(_e){return de(_e)}},{key:"requiredTrue",value:function(_e){return ue(_e)}},{key:"email",value:function(_e){return function(ie){return j(ie.value)||oe.test(ie.value)?null:{email:!0}}(_e)}},{key:"minLength",value:function(_e){return function(ie){return function(he){return j(he.value)||!K(he.value)?null:he.value.length<ie?{minlength:{requiredLength:ie,actualLength:he.value.length}}:null}}(_e)}},{key:"maxLength",value:function(_e){return function(ie){return function(he){return K(he.value)&&he.value.length>ie?{maxlength:{requiredLength:ie,actualLength:he.value.length}}:null}}(_e)}},{key:"pattern",value:function(_e){return function(ie){return ie?("string"==typeof ie?(_e="","^"!==ie.charAt(0)&&(_e+="^"),_e+=ie,"$"!==ie.charAt(ie.length-1)&&(_e+="$"),he=new RegExp(_e)):(_e=ie.toString(),he=ie),function(be){if(j(be.value))return null;var Pe=be.value;return he.test(Pe)?null:{pattern:{requiredPattern:_e,actualValue:Pe}}}):He;var he,_e}(_e)}},{key:"nullValidator",value:function(_e){return null}},{key:"compose",value:function(_e){return ct(_e)}},{key:"composeAsync",value:function(_e){return Ut(_e)}}]),ie}();function de(ie){return j(ie.value)?{required:!0}:null}function ue(ie){return!0===ie.value?null:{required:!0}}function He(ie){return null}function _t(ie){return null!=ie}function yt(ie){var he=(0,v.QGY)(ie)?(0,D.D)(ie):ie;return(0,v.CqO)(he),he}function Bt(ie){var he={};return ie.forEach(function(_e){he=null!=_e?Object.assign(Object.assign({},he),_e):he}),0===Object.keys(he).length?null:he}function Se(ie,he){return he.map(function(_e){return _e(ie)})}function Ve(ie){return ie.map(function(he){return function(ie){return!ie.validate}(he)?he:function(_e){return he.validate(_e)}})}function ct(ie){if(!ie)return null;var he=ie.filter(_t);return 0==he.length?null:function(_e){return Bt(Se(_e,he))}}function Je(ie){return null!=ie?ct(Ve(ie)):null}function Ut(ie){if(!ie)return null;var he=ie.filter(_t);return 0==he.length?null:function(_e){var be=Se(_e,he).map(yt);return(0,M.D)(be).pipe((0,A.U)(Bt))}}function Et(ie){return null!=ie?Ut(Ve(ie)):null}function vt(ie,he){return null===ie?[he]:Array.isArray(ie)?[].concat((0,V.Z)(ie),[he]):[ie,he]}function Kt(ie){return ie._rawValidators}function Vt(ie){return ie._rawAsyncValidators}function St(ie){return ie?Array.isArray(ie)?ie:[ie]:[]}function qt(ie,he){return Array.isArray(ie)?ie.includes(he):ie===he}function Ct(ie,he){var _e=St(he);return St(ie).forEach(function(Pe){qt(_e,Pe)||_e.push(Pe)}),_e}function en(ie,he){return St(he).filter(function(_e){return!qt(ie,_e)})}var Ft=function(){var ie=function(){function he(){(0,I.Z)(this,he),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return(0,C.Z)(he,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(be){this._rawValidators=be||[],this._composedValidatorFn=Je(this._rawValidators)}},{key:"_setAsyncValidators",value:function(be){this._rawAsyncValidators=be||[],this._composedAsyncValidatorFn=Et(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(be){this._onDestroyCallbacks.push(be)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(be){return be()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(){var be=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(be)}},{key:"hasError",value:function(be,Pe){return!!this.control&&this.control.hasError(be,Pe)}},{key:"getError",value:function(be,Pe){return this.control?this.control.getError(be,Pe):null}}]),he}();return ie.\u0275fac=function(_e){return new(_e||ie)},ie.\u0275dir=v.lG2({type:ie}),ie}(),on=function(){var ie=function(he){(0,Z.Z)(be,he);var _e=(0,T.Z)(be);function be(){return(0,I.Z)(this,be),_e.apply(this,arguments)}return(0,C.Z)(be,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),be}(Ft);return ie.\u0275fac=function(){var he;return function(be){return(he||(he=v.n5z(ie)))(be||ie)}}(),ie.\u0275dir=v.lG2({type:ie,features:[v.qOj]}),ie}(),En=function(ie){(0,Z.Z)(_e,ie);var he=(0,T.Z)(_e);function _e(){var be;return(0,I.Z)(this,_e),(be=he.apply(this,arguments))._parent=null,be.name=null,be.valueAccessor=null,be}return _e}(Ft),Zn=function(){function ie(he){(0,I.Z)(this,ie),this._cd=he}return(0,C.Z)(ie,[{key:"is",value:function(_e){var be,Pe,ze;return"submitted"===_e?!!(null===(be=this._cd)||void 0===be?void 0:be.submitted):!!(null===(ze=null===(Pe=this._cd)||void 0===Pe?void 0:Pe.control)||void 0===ze?void 0:ze[_e])}}]),ie}(),Nn=function(){var ie=function(he){(0,Z.Z)(be,he);var _e=(0,T.Z)(be);function be(Pe){return(0,I.Z)(this,be),_e.call(this,Pe)}return be}(Zn);return ie.\u0275fac=function(_e){return new(_e||ie)(v.Y36(En,2))},ie.\u0275dir=v.lG2({type:ie,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(_e,be){2&_e&&v.ekj("ng-untouched",be.is("untouched"))("ng-touched",be.is("touched"))("ng-pristine",be.is("pristine"))("ng-dirty",be.is("dirty"))("ng-valid",be.is("valid"))("ng-invalid",be.is("invalid"))("ng-pending",be.is("pending"))},features:[v.qOj]}),ie}(),wn=function(){var ie=function(he){(0,Z.Z)(be,he);var _e=(0,T.Z)(be);function be(Pe){return(0,I.Z)(this,be),_e.call(this,Pe)}return be}(Zn);return ie.\u0275fac=function(_e){return new(_e||ie)(v.Y36(on,10))},ie.\u0275dir=v.lG2({type:ie,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(_e,be){2&_e&&v.ekj("ng-untouched",be.is("untouched"))("ng-touched",be.is("touched"))("ng-pristine",be.is("pristine"))("ng-dirty",be.is("dirty"))("ng-valid",be.is("valid"))("ng-invalid",be.is("invalid"))("ng-pending",be.is("pending"))("ng-submitted",be.is("submitted"))},features:[v.qOj]}),ie}();function tn(ie,he){return[].concat((0,V.Z)(he.path),[ie])}function sn(ie,he){Yn(ie,he),he.valueAccessor.writeValue(ie.value),function(ie,he){he.valueAccessor.registerOnChange(function(_e){ie._pendingValue=_e,ie._pendingChange=!0,ie._pendingDirty=!0,"change"===ie.updateOn&&Ht(ie,he)})}(ie,he),function(ie,he){var _e=function(Pe,ze){he.valueAccessor.writeValue(Pe),ze&&he.viewToModelUpdate(Pe)};ie.registerOnChange(_e),he._registerOnDestroy(function(){ie._unregisterOnChange(_e)})}(ie,he),function(ie,he){he.valueAccessor.registerOnTouched(function(){ie._pendingTouched=!0,"blur"===ie.updateOn&&ie._pendingChange&&Ht(ie,he),"submit"!==ie.updateOn&&ie.markAsTouched()})}(ie,he),function(ie,he){if(he.valueAccessor.setDisabledState){var _e=function(Pe){he.valueAccessor.setDisabledState(Pe)};ie.registerOnDisabledChange(_e),he._registerOnDestroy(function(){ie._unregisterOnDisabledChange(_e)})}}(ie,he)}function hn(ie,he){var be=function(){};he.valueAccessor&&(he.valueAccessor.registerOnChange(be),he.valueAccessor.registerOnTouched(be)),xn(ie,he),ie&&(he._invokeOnDestroyCallbacks(),ie._registerOnCollectionChange(function(){}))}function Cn(ie,he){ie.forEach(function(_e){_e.registerOnValidatorChange&&_e.registerOnValidatorChange(he)})}function Yn(ie,he){var _e=Kt(ie);null!==he.validator?ie.setValidators(vt(_e,he.validator)):"function"==typeof _e&&ie.setValidators([_e]);var be=Vt(ie);null!==he.asyncValidator?ie.setAsyncValidators(vt(be,he.asyncValidator)):"function"==typeof be&&ie.setAsyncValidators([be]);var Pe=function(){return ie.updateValueAndValidity()};Cn(he._rawValidators,Pe),Cn(he._rawAsyncValidators,Pe)}function xn(ie,he){var _e=!1;if(null!==ie){if(null!==he.validator){var be=Kt(ie);if(Array.isArray(be)&&be.length>0){var Pe=be.filter(function(gt){return gt!==he.validator});Pe.length!==be.length&&(_e=!0,ie.setValidators(Pe))}}if(null!==he.asyncValidator){var ze=Vt(ie);if(Array.isArray(ze)&&ze.length>0){var Tt=ze.filter(function(gt){return gt!==he.asyncValidator});Tt.length!==ze.length&&(_e=!0,ie.setAsyncValidators(Tt))}}}var pt=function(){};return Cn(he._rawValidators,pt),Cn(he._rawAsyncValidators,pt),_e}function Ht(ie,he){ie._pendingDirty&&ie.markAsDirty(),ie.setValue(ie._pendingValue,{emitModelToViewChange:!1}),he.viewToModelUpdate(ie._pendingValue),ie._pendingChange=!1}function ft(ie,he){Yn(ie,he)}function xe(ie,he){if(!ie.hasOwnProperty("model"))return!1;var _e=ie.model;return!!_e.isFirstChange()||!Object.is(he,_e.currentValue)}function Oe(ie,he){ie._syncPendingControls(),he.forEach(function(_e){var be=_e.control;"submit"===be.updateOn&&be._pendingChange&&(_e.viewToModelUpdate(be._pendingValue),be._pendingChange=!1)})}function Le(ie,he){if(!he)return null;Array.isArray(he);var _e=void 0,be=void 0,Pe=void 0;return he.forEach(function(ze){ze.constructor===L?_e=ze:function(ie){return Object.getPrototypeOf(ie.constructor)===g}(ze)?be=ze:Pe=ze}),Pe||be||_e||null}function qe(ie,he){var _e=ie.indexOf(he);_e>-1&&ie.splice(_e,1)}var cn="VALID",Jn="INVALID",Zr="PENDING",jr="DISABLED";function Kr(ie){return(po(ie)?ie.validators:ie)||null}function co(ie){return Array.isArray(ie)?Je(ie):ie||null}function Ni(ie,he){return(po(he)?he.asyncValidators:ie)||null}function bo(ie){return Array.isArray(ie)?Et(ie):ie||null}function po(ie){return null!=ie&&!Array.isArray(ie)&&"object"==typeof ie}var Xo=function(){function ie(he,_e){(0,I.Z)(this,ie),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=he,this._rawAsyncValidators=_e,this._composedValidatorFn=co(this._rawValidators),this._composedAsyncValidatorFn=bo(this._rawAsyncValidators)}return(0,C.Z)(ie,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(_e){this._rawValidators=this._composedValidatorFn=_e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(_e){this._rawAsyncValidators=this._composedAsyncValidatorFn=_e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===cn}},{key:"invalid",get:function(){return this.status===Jn}},{key:"pending",get:function(){return this.status==Zr}},{key:"disabled",get:function(){return this.status===jr}},{key:"enabled",get:function(){return this.status!==jr}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(_e){this._rawValidators=_e,this._composedValidatorFn=co(_e)}},{key:"setAsyncValidators",value:function(_e){this._rawAsyncValidators=_e,this._composedAsyncValidatorFn=bo(_e)}},{key:"addValidators",value:function(_e){this.setValidators(Ct(_e,this._rawValidators))}},{key:"addAsyncValidators",value:function(_e){this.setAsyncValidators(Ct(_e,this._rawAsyncValidators))}},{key:"removeValidators",value:function(_e){this.setValidators(en(_e,this._rawValidators))}},{key:"removeAsyncValidators",value:function(_e){this.setAsyncValidators(en(_e,this._rawAsyncValidators))}},{key:"hasValidator",value:function(_e){return qt(this._rawValidators,_e)}},{key:"hasAsyncValidator",value:function(_e){return qt(this._rawAsyncValidators,_e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!_e.onlySelf&&this._parent.markAsTouched(_e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(_e){return _e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(be){be.markAsUntouched({onlySelf:!0})}),this._parent&&!_e.onlySelf&&this._parent._updateTouched(_e)}},{key:"markAsDirty",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!_e.onlySelf&&this._parent.markAsDirty(_e)}},{key:"markAsPristine",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(be){be.markAsPristine({onlySelf:!0})}),this._parent&&!_e.onlySelf&&this._parent._updatePristine(_e)}},{key:"markAsPending",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=Zr,!1!==_e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!_e.onlySelf&&this._parent.markAsPending(_e)}},{key:"disable",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},be=this._parentMarkedDirty(_e.onlySelf);this.status=jr,this.errors=null,this._forEachChild(function(Pe){Pe.disable(Object.assign(Object.assign({},_e),{onlySelf:!0}))}),this._updateValue(),!1!==_e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},_e),{skipPristineCheck:be})),this._onDisabledChange.forEach(function(Pe){return Pe(!0)})}},{key:"enable",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},be=this._parentMarkedDirty(_e.onlySelf);this.status=cn,this._forEachChild(function(Pe){Pe.enable(Object.assign(Object.assign({},_e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:_e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},_e),{skipPristineCheck:be})),this._onDisabledChange.forEach(function(Pe){return Pe(!1)})}},{key:"_updateAncestors",value:function(_e){this._parent&&!_e.onlySelf&&(this._parent.updateValueAndValidity(_e),_e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(_e){this._parent=_e}},{key:"updateValueAndValidity",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===cn||this.status===Zr)&&this._runAsyncValidator(_e.emitEvent)),!1!==_e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!_e.onlySelf&&this._parent.updateValueAndValidity(_e)}},{key:"_updateTreeValidity",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(be){return be._updateTreeValidity(_e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:_e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?jr:cn}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(_e){var be=this;if(this.asyncValidator){this.status=Zr,this._hasOwnPendingAsyncValidator=!0;var Pe=yt(this.asyncValidator(this));this._asyncValidationSubscription=Pe.subscribe(function(ze){be._hasOwnPendingAsyncValidator=!1,be.setErrors(ze,{emitEvent:_e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(_e){var be=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=_e,this._updateControlsErrors(!1!==be.emitEvent)}},{key:"get",value:function(_e){return function(ie,he,_e){if(null==he||(Array.isArray(he)||(he=he.split(".")),Array.isArray(he)&&0===he.length))return null;var be=ie;return he.forEach(function(Pe){be=be instanceof ro?be.controls.hasOwnProperty(Pe)?be.controls[Pe]:null:be instanceof yi&&be.at(Pe)||null}),be}(this,_e)}},{key:"getError",value:function(_e,be){var Pe=be?this.get(be):this;return Pe&&Pe.errors?Pe.errors[_e]:null}},{key:"hasError",value:function(_e,be){return!!this.getError(_e,be)}},{key:"root",get:function(){for(var _e=this;_e._parent;)_e=_e._parent;return _e}},{key:"_updateControlsErrors",value:function(_e){this.status=this._calculateStatus(),_e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(_e)}},{key:"_initObservables",value:function(){this.valueChanges=new v.vpe,this.statusChanges=new v.vpe}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?jr:this.errors?Jn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Zr)?Zr:this._anyControlsHaveStatus(Jn)?Jn:cn}},{key:"_anyControlsHaveStatus",value:function(_e){return this._anyControls(function(be){return be.status===_e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(_e){return _e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(_e){return _e.touched})}},{key:"_updatePristine",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!_e.onlySelf&&this._parent._updatePristine(_e)}},{key:"_updateTouched",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!_e.onlySelf&&this._parent._updateTouched(_e)}},{key:"_isBoxedValue",value:function(_e){return"object"==typeof _e&&null!==_e&&2===Object.keys(_e).length&&"value"in _e&&"disabled"in _e}},{key:"_registerOnCollectionChange",value:function(_e){this._onCollectionChange=_e}},{key:"_setUpdateStrategy",value:function(_e){po(_e)&&null!=_e.updateOn&&(this._updateOn=_e.updateOn)}},{key:"_parentMarkedDirty",value:function(_e){return!_e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),ie}(),ki=function(ie){(0,Z.Z)(_e,ie);var he=(0,T.Z)(_e);function _e(){var be,Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,ze=arguments.length>1?arguments[1]:void 0,Tt=arguments.length>2?arguments[2]:void 0;return(0,I.Z)(this,_e),(be=he.call(this,Kr(ze),Ni(Tt,ze)))._onChange=[],be._applyFormState(Pe),be._setUpdateStrategy(ze),be._initObservables(),be.updateValueAndValidity({onlySelf:!0,emitEvent:!!be.asyncValidator}),be}return(0,C.Z)(_e,[{key:"setValue",value:function(Pe){var ze=this,Tt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=Pe,this._onChange.length&&!1!==Tt.emitModelToViewChange&&this._onChange.forEach(function(pt){return pt(ze.value,!1!==Tt.emitViewToModelChange)}),this.updateValueAndValidity(Tt)}},{key:"patchValue",value:function(Pe){var ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(Pe,ze)}},{key:"reset",value:function(){var Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(Pe),this.markAsPristine(ze),this.markAsUntouched(ze),this.setValue(this.value,ze),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(Pe){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(Pe){this._onChange.push(Pe)}},{key:"_unregisterOnChange",value:function(Pe){qe(this._onChange,Pe)}},{key:"registerOnDisabledChange",value:function(Pe){this._onDisabledChange.push(Pe)}},{key:"_unregisterOnDisabledChange",value:function(Pe){qe(this._onDisabledChange,Pe)}},{key:"_forEachChild",value:function(Pe){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(Pe){this._isBoxedValue(Pe)?(this.value=this._pendingValue=Pe.value,Pe.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Pe}}]),_e}(Xo),ro=function(ie){(0,Z.Z)(_e,ie);var he=(0,T.Z)(_e);function _e(be,Pe,ze){var Tt;return(0,I.Z)(this,_e),(Tt=he.call(this,Kr(Pe),Ni(ze,Pe))).controls=be,Tt._initObservables(),Tt._setUpdateStrategy(Pe),Tt._setUpControls(),Tt.updateValueAndValidity({onlySelf:!0,emitEvent:!!Tt.asyncValidator}),Tt}return(0,C.Z)(_e,[{key:"registerControl",value:function(Pe,ze){return this.controls[Pe]?this.controls[Pe]:(this.controls[Pe]=ze,ze.setParent(this),ze._registerOnCollectionChange(this._onCollectionChange),ze)}},{key:"addControl",value:function(Pe,ze){var Tt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(Pe,ze),this.updateValueAndValidity({emitEvent:Tt.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(Pe){var ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[Pe]&&this.controls[Pe]._registerOnCollectionChange(function(){}),delete this.controls[Pe],this.updateValueAndValidity({emitEvent:ze.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(Pe,ze){var Tt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[Pe]&&this.controls[Pe]._registerOnCollectionChange(function(){}),delete this.controls[Pe],ze&&this.registerControl(Pe,ze),this.updateValueAndValidity({emitEvent:Tt.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(Pe){return this.controls.hasOwnProperty(Pe)&&this.controls[Pe].enabled}},{key:"setValue",value:function(Pe){var ze=this,Tt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(Pe),Object.keys(Pe).forEach(function(pt){ze._throwIfControlMissing(pt),ze.controls[pt].setValue(Pe[pt],{onlySelf:!0,emitEvent:Tt.emitEvent})}),this.updateValueAndValidity(Tt)}},{key:"patchValue",value:function(Pe){var ze=this,Tt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=Pe&&(Object.keys(Pe).forEach(function(pt){ze.controls[pt]&&ze.controls[pt].patchValue(Pe[pt],{onlySelf:!0,emitEvent:Tt.emitEvent})}),this.updateValueAndValidity(Tt))}},{key:"reset",value:function(){var Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(Tt,pt){Tt.reset(Pe[pt],{onlySelf:!0,emitEvent:ze.emitEvent})}),this._updatePristine(ze),this._updateTouched(ze),this.updateValueAndValidity(ze)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(Pe,ze,Tt){return Pe[Tt]=ze instanceof ki?ze.value:ze.getRawValue(),Pe})}},{key:"_syncPendingControls",value:function(){var Pe=this._reduceChildren(!1,function(ze,Tt){return!!Tt._syncPendingControls()||ze});return Pe&&this.updateValueAndValidity({onlySelf:!0}),Pe}},{key:"_throwIfControlMissing",value:function(Pe){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[Pe])throw new Error("Cannot find form control with name: ".concat(Pe,"."))}},{key:"_forEachChild",value:function(Pe){var ze=this;Object.keys(this.controls).forEach(function(Tt){var pt=ze.controls[Tt];pt&&Pe(pt,Tt)})}},{key:"_setUpControls",value:function(){var Pe=this;this._forEachChild(function(ze){ze.setParent(Pe),ze._registerOnCollectionChange(Pe._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(Pe){for(var ze=0,Tt=Object.keys(this.controls);ze<Tt.length;ze++){var pt=Tt[ze],gt=this.controls[pt];if(this.contains(pt)&&Pe(gt))return!0}return!1}},{key:"_reduceValue",value:function(){var Pe=this;return this._reduceChildren({},function(ze,Tt,pt){return(Tt.enabled||Pe.disabled)&&(ze[pt]=Tt.value),ze})}},{key:"_reduceChildren",value:function(Pe,ze){var Tt=Pe;return this._forEachChild(function(pt,gt){Tt=ze(Tt,pt,gt)}),Tt}},{key:"_allControlsDisabled",value:function(){for(var Pe=0,ze=Object.keys(this.controls);Pe<ze.length;Pe++)if(this.controls[ze[Pe]].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}},{key:"_checkAllValuesPresent",value:function(Pe){this._forEachChild(function(ze,Tt){if(void 0===Pe[Tt])throw new Error("Must supply a value for form control with name: '".concat(Tt,"'."))})}}]),_e}(Xo),yi=function(ie){(0,Z.Z)(_e,ie);var he=(0,T.Z)(_e);function _e(be,Pe,ze){var Tt;return(0,I.Z)(this,_e),(Tt=he.call(this,Kr(Pe),Ni(ze,Pe))).controls=be,Tt._initObservables(),Tt._setUpdateStrategy(Pe),Tt._setUpControls(),Tt.updateValueAndValidity({onlySelf:!0,emitEvent:!!Tt.asyncValidator}),Tt}return(0,C.Z)(_e,[{key:"at",value:function(Pe){return this.controls[Pe]}},{key:"push",value:function(Pe){var ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(Pe),this._registerControl(Pe),this.updateValueAndValidity({emitEvent:ze.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(Pe,ze){var Tt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(Pe,0,ze),this._registerControl(ze),this.updateValueAndValidity({emitEvent:Tt.emitEvent})}},{key:"removeAt",value:function(Pe){var ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[Pe]&&this.controls[Pe]._registerOnCollectionChange(function(){}),this.controls.splice(Pe,1),this.updateValueAndValidity({emitEvent:ze.emitEvent})}},{key:"setControl",value:function(Pe,ze){var Tt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[Pe]&&this.controls[Pe]._registerOnCollectionChange(function(){}),this.controls.splice(Pe,1),ze&&(this.controls.splice(Pe,0,ze),this._registerControl(ze)),this.updateValueAndValidity({emitEvent:Tt.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(Pe){var ze=this,Tt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(Pe),Pe.forEach(function(pt,gt){ze._throwIfControlMissing(gt),ze.at(gt).setValue(pt,{onlySelf:!0,emitEvent:Tt.emitEvent})}),this.updateValueAndValidity(Tt)}},{key:"patchValue",value:function(Pe){var ze=this,Tt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=Pe&&(Pe.forEach(function(pt,gt){ze.at(gt)&&ze.at(gt).patchValue(pt,{onlySelf:!0,emitEvent:Tt.emitEvent})}),this.updateValueAndValidity(Tt))}},{key:"reset",value:function(){var Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(Tt,pt){Tt.reset(Pe[pt],{onlySelf:!0,emitEvent:ze.emitEvent})}),this._updatePristine(ze),this._updateTouched(ze),this.updateValueAndValidity(ze)}},{key:"getRawValue",value:function(){return this.controls.map(function(Pe){return Pe instanceof ki?Pe.value:Pe.getRawValue()})}},{key:"clear",value:function(){var Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(ze){return ze._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Pe.emitEvent}))}},{key:"_syncPendingControls",value:function(){var Pe=this.controls.reduce(function(ze,Tt){return!!Tt._syncPendingControls()||ze},!1);return Pe&&this.updateValueAndValidity({onlySelf:!0}),Pe}},{key:"_throwIfControlMissing",value:function(Pe){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(Pe))throw new Error("Cannot find form control at index ".concat(Pe))}},{key:"_forEachChild",value:function(Pe){this.controls.forEach(function(ze,Tt){Pe(ze,Tt)})}},{key:"_updateValue",value:function(){var Pe=this;this.value=this.controls.filter(function(ze){return ze.enabled||Pe.disabled}).map(function(ze){return ze.value})}},{key:"_anyControls",value:function(Pe){return this.controls.some(function(ze){return ze.enabled&&Pe(ze)})}},{key:"_setUpControls",value:function(){var Pe=this;this._forEachChild(function(ze){return Pe._registerControl(ze)})}},{key:"_checkAllValuesPresent",value:function(Pe){this._forEachChild(function(ze,Tt){if(void 0===Pe[Tt])throw new Error("Must supply a value for form control at index: ".concat(Tt,"."))})}},{key:"_allControlsDisabled",value:function(){var ze,Pe=(0,B.Z)(this.controls);try{for(Pe.s();!(ze=Pe.n()).done;)if(ze.value.enabled)return!1}catch(pt){Pe.e(pt)}finally{Pe.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(Pe){Pe.setParent(this),Pe._registerOnCollectionChange(this._onCollectionChange)}}]),_e}(Xo),Yi={provide:on,useExisting:(0,v.Gpc)(function(){return Ho})},hi=function(){return Promise.resolve(null)}(),Ho=function(){var ie=function(he){(0,Z.Z)(be,he);var _e=(0,T.Z)(be);function be(Pe,ze){var Tt;return(0,I.Z)(this,be),(Tt=_e.call(this)).submitted=!1,Tt._directives=[],Tt.ngSubmit=new v.vpe,Tt.form=new ro({},Je(Pe),Et(ze)),Tt}return(0,C.Z)(be,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(ze){var Tt=this;hi.then(function(){var pt=Tt._findContainer(ze.path);ze.control=pt.registerControl(ze.name,ze.control),sn(ze.control,ze),ze.control.updateValueAndValidity({emitEvent:!1}),Tt._directives.push(ze)})}},{key:"getControl",value:function(ze){return this.form.get(ze.path)}},{key:"removeControl",value:function(ze){var Tt=this;hi.then(function(){var pt=Tt._findContainer(ze.path);pt&&pt.removeControl(ze.name),qe(Tt._directives,ze)})}},{key:"addFormGroup",value:function(ze){var Tt=this;hi.then(function(){var pt=Tt._findContainer(ze.path),gt=new ro({});ft(gt,ze),pt.registerControl(ze.name,gt),gt.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(ze){var Tt=this;hi.then(function(){var pt=Tt._findContainer(ze.path);pt&&pt.removeControl(ze.name)})}},{key:"getFormGroup",value:function(ze){return this.form.get(ze.path)}},{key:"updateModel",value:function(ze,Tt){var pt=this;hi.then(function(){pt.form.get(ze.path).setValue(Tt)})}},{key:"setValue",value:function(ze){this.control.setValue(ze)}},{key:"onSubmit",value:function(ze){return this.submitted=!0,Oe(this.form,this._directives),this.ngSubmit.emit(ze),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var ze=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(ze),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(ze){return ze.pop(),ze.length?this.form.get(ze):this.form}}]),be}(on);return ie.\u0275fac=function(_e){return new(_e||ie)(v.Y36(W,10),v.Y36(J,10))},ie.\u0275dir=v.lG2({type:ie,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(_e,be){1&_e&&v.NdJ("submit",function(ze){return be.onSubmit(ze)})("reset",function(){return be.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[v._Bn([Yi]),v.qOj]}),ie}(),Xt={provide:En,useExisting:(0,v.Gpc)(function(){return jn})},Gn=function(){return Promise.resolve(null)}(),jn=function(){var ie=function(he){(0,Z.Z)(be,he);var _e=(0,T.Z)(be);function be(Pe,ze,Tt,pt){var gt;return(0,I.Z)(this,be),(gt=_e.call(this)).control=new ki,gt._registered=!1,gt.update=new v.vpe,gt._parent=Pe,gt._setValidators(ze),gt._setAsyncValidators(Tt),gt.valueAccessor=Le((0,U.Z)(gt),pt),gt}return(0,C.Z)(be,[{key:"ngOnChanges",value:function(ze){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in ze&&this._updateDisabled(ze),xe(ze,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?tn(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(ze){this.viewModel=ze,this.update.emit(ze)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){sn(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(ze){var Tt=this;Gn.then(function(){Tt.control.setValue(ze,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(ze){var Tt=this,pt=ze.isDisabled.currentValue,gt=""===pt||pt&&"false"!==pt;Gn.then(function(){gt&&!Tt.control.disabled?Tt.control.disable():!gt&&Tt.control.disabled&&Tt.control.enable()})}}]),be}(En);return ie.\u0275fac=function(_e){return new(_e||ie)(v.Y36(on,9),v.Y36(W,10),v.Y36(J,10),v.Y36(k,10))},ie.\u0275dir=v.lG2({type:ie,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[v._Bn([Xt]),v.qOj,v.TTD]}),ie}(),zn=function(){var ie=function he(){(0,I.Z)(this,he)};return ie.\u0275fac=function(_e){return new(_e||ie)},ie.\u0275dir=v.lG2({type:ie,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),ie}(),li={provide:k,useExisting:(0,v.Gpc)(function(){return bi}),multi:!0},bi=function(){var ie=function(he){(0,Z.Z)(be,he);var _e=(0,T.Z)(be);function be(){return(0,I.Z)(this,be),_e.apply(this,arguments)}return(0,C.Z)(be,[{key:"writeValue",value:function(ze){this.setProperty("value",null==ze?"":ze)}},{key:"registerOnChange",value:function(ze){this.onChange=function(Tt){ze(""==Tt?null:parseFloat(Tt))}}}]),be}(g);return ie.\u0275fac=function(){var he;return function(be){return(he||(he=v.n5z(ie)))(be||ie)}}(),ie.\u0275dir=v.lG2({type:ie,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(_e,be){1&_e&&v.NdJ("input",function(ze){return be.onChange(ze.target.value)})("blur",function(){return be.onTouched()})},features:[v._Bn([li]),v.qOj]}),ie}(),Fi=function(){var ie=function he(){(0,I.Z)(this,he)};return ie.\u0275fac=function(_e){return new(_e||ie)},ie.\u0275mod=v.oAB({type:ie}),ie.\u0275inj=v.cJS({}),ie}(),Vo=new v.OlP("NgModelWithFormControlWarning"),Ji={provide:on,useExisting:(0,v.Gpc)(function(){return qo})},qo=function(){var ie=function(he){(0,Z.Z)(be,he);var _e=(0,T.Z)(be);function be(Pe,ze){var Tt;return(0,I.Z)(this,be),(Tt=_e.call(this)).validators=Pe,Tt.asyncValidators=ze,Tt.submitted=!1,Tt._onCollectionChange=function(){return Tt._updateDomValue()},Tt.directives=[],Tt.form=null,Tt.ngSubmit=new v.vpe,Tt._setValidators(Pe),Tt._setAsyncValidators(ze),Tt}return(0,C.Z)(be,[{key:"ngOnChanges",value:function(ze){this._checkFormPresent(),ze.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(xn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(ze){var Tt=this.form.get(ze.path);return sn(Tt,ze),Tt.updateValueAndValidity({emitEvent:!1}),this.directives.push(ze),Tt}},{key:"getControl",value:function(ze){return this.form.get(ze.path)}},{key:"removeControl",value:function(ze){hn(ze.control||null,ze),qe(this.directives,ze)}},{key:"addFormGroup",value:function(ze){this._setUpFormContainer(ze)}},{key:"removeFormGroup",value:function(ze){this._cleanUpFormContainer(ze)}},{key:"getFormGroup",value:function(ze){return this.form.get(ze.path)}},{key:"addFormArray",value:function(ze){this._setUpFormContainer(ze)}},{key:"removeFormArray",value:function(ze){this._cleanUpFormContainer(ze)}},{key:"getFormArray",value:function(ze){return this.form.get(ze.path)}},{key:"updateModel",value:function(ze,Tt){this.form.get(ze.path).setValue(Tt)}},{key:"onSubmit",value:function(ze){return this.submitted=!0,Oe(this.form,this.directives),this.ngSubmit.emit(ze),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var ze=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(ze),this.submitted=!1}},{key:"_updateDomValue",value:function(){var ze=this;this.directives.forEach(function(Tt){var pt=Tt.control,gt=ze.form.get(Tt.path);pt!==gt&&(hn(pt||null,Tt),gt instanceof ki&&(sn(gt,Tt),Tt.control=gt))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(ze){var Tt=this.form.get(ze.path);ft(Tt,ze),Tt.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(ze){if(this.form){var Tt=this.form.get(ze.path);Tt&&function(ie,he){return xn(ie,he)}(Tt,ze)&&Tt.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){Yn(this.form,this),this._oldForm&&xn(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),be}(on);return ie.\u0275fac=function(_e){return new(_e||ie)(v.Y36(W,10),v.Y36(J,10))},ie.\u0275dir=v.lG2({type:ie,selectors:[["","formGroup",""]],hostBindings:function(_e,be){1&_e&&v.NdJ("submit",function(ze){return be.onSubmit(ze)})("reset",function(){return be.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[v._Bn([Ji]),v.qOj,v.TTD]}),ie}(),ho={provide:En,useExisting:(0,v.Gpc)(function(){return ha})},ha=function(){var ie=function(he){(0,Z.Z)(be,he);var _e=(0,T.Z)(be);function be(Pe,ze,Tt,pt,gt){var $r;return(0,I.Z)(this,be),($r=_e.call(this))._ngModelWarningConfig=gt,$r._added=!1,$r.update=new v.vpe,$r._ngModelWarningSent=!1,$r._parent=Pe,$r._setValidators(ze),$r._setAsyncValidators(Tt),$r.valueAccessor=Le((0,U.Z)($r),pt),$r}return(0,C.Z)(be,[{key:"isDisabled",set:function(ze){}},{key:"ngOnChanges",value:function(ze){this._added||this._setUpControl(),xe(ze,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(ze){this.viewModel=ze,this.update.emit(ze)}},{key:"path",get:function(){return tn(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}]),be}(En);return ie.\u0275fac=function(_e){return new(_e||ie)(v.Y36(on,13),v.Y36(W,10),v.Y36(J,10),v.Y36(k,10),v.Y36(Vo,8))},ie.\u0275dir=v.lG2({type:ie,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[v._Bn([ho]),v.qOj,v.TTD]}),ie._ngModelWarningSentOnce=!1,ie}(),br={provide:W,useExisting:(0,v.Gpc)(function(){return Da}),multi:!0},Fn={provide:W,useExisting:(0,v.Gpc)(function(){return Ui}),multi:!0},Da=function(){var ie=function(){function he(){(0,I.Z)(this,he),this._required=!1}return(0,C.Z)(he,[{key:"required",get:function(){return this._required},set:function(be){this._required=null!=be&&!1!==be&&"false"!=="".concat(be),this._onChange&&this._onChange()}},{key:"validate",value:function(be){return this.required?de(be):null}},{key:"registerOnValidatorChange",value:function(be){this._onChange=be}}]),he}();return ie.\u0275fac=function(_e){return new(_e||ie)},ie.\u0275dir=v.lG2({type:ie,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(_e,be){2&_e&&v.uIk("required",be.required?"":null)},inputs:{required:"required"},features:[v._Bn([br])]}),ie}(),Ui=function(){var ie=function(he){(0,Z.Z)(be,he);var _e=(0,T.Z)(be);function be(){return(0,I.Z)(this,be),_e.apply(this,arguments)}return(0,C.Z)(be,[{key:"validate",value:function(ze){return this.required?ue(ze):null}}]),be}(Da);return ie.\u0275fac=function(){var he;return function(be){return(he||(he=v.n5z(ie)))(be||ie)}}(),ie.\u0275dir=v.lG2({type:ie,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(_e,be){2&_e&&v.uIk("required",be.required?"":null)},features:[v._Bn([Fn]),v.qOj]}),ie}(),Sl=function(){var ie=function he(){(0,I.Z)(this,he)};return ie.\u0275fac=function(_e){return new(_e||ie)},ie.\u0275mod=v.oAB({type:ie}),ie.\u0275inj=v.cJS({imports:[[Fi]]}),ie}(),Tl=function(){var ie=function he(){(0,I.Z)(this,he)};return ie.\u0275fac=function(_e){return new(_e||ie)},ie.\u0275mod=v.oAB({type:ie}),ie.\u0275inj=v.cJS({imports:[Sl]}),ie}(),fe=function(){var ie=function(){function he(){(0,I.Z)(this,he)}return(0,C.Z)(he,null,[{key:"withConfig",value:function(be){return{ngModule:he,providers:[{provide:Vo,useValue:be.warnOnNgModelWithFormControl}]}}}]),he}();return ie.\u0275fac=function(_e){return new(_e||ie)},ie.\u0275mod=v.oAB({type:ie}),ie.\u0275inj=v.cJS({imports:[Sl]}),ie}();function Re(ie){return void 0!==ie.asyncValidators||void 0!==ie.validators||void 0!==ie.updateOn}var $e=function(){var ie=function(){function he(){(0,I.Z)(this,he)}return(0,C.Z)(he,[{key:"group",value:function(be){var Pe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,ze=this._reduceControls(be),Tt=null,pt=null,gt=void 0;return null!=Pe&&(Re(Pe)?(Tt=null!=Pe.validators?Pe.validators:null,pt=null!=Pe.asyncValidators?Pe.asyncValidators:null,gt=null!=Pe.updateOn?Pe.updateOn:void 0):(Tt=null!=Pe.validator?Pe.validator:null,pt=null!=Pe.asyncValidator?Pe.asyncValidator:null)),new ro(ze,{asyncValidators:pt,updateOn:gt,validators:Tt})}},{key:"control",value:function(be,Pe,ze){return new ki(be,Pe,ze)}},{key:"array",value:function(be,Pe,ze){var Tt=this,pt=be.map(function(gt){return Tt._createControl(gt)});return new yi(pt,Pe,ze)}},{key:"_reduceControls",value:function(be){var Pe=this,ze={};return Object.keys(be).forEach(function(Tt){ze[Tt]=Pe._createControl(be[Tt])}),ze}},{key:"_createControl",value:function(be){return be instanceof ki||be instanceof ro||be instanceof yi?be:Array.isArray(be)?this.control(be[0],be.length>1?be[1]:null,be.length>2?be[2]:null):this.control(be)}}]),he}();return ie.\u0275fac=function(_e){return new(_e||ie)},ie.\u0275prov=(0,v.Yz7)({factory:function(){return new ie},token:ie,providedIn:fe}),ie}()},59412:function(ce,q,f){"use strict";f.d(q,{yN:function(){return oe},mZ:function(){return te},rD:function(){return on},K7:function(){return In},HF:function(){return tn},Y2:function(){return Ge},BQ:function(){return ue},X2:function(){return En},uc:function(){return tr},Nv:function(){return Yn},ey:function(){return Ht},Ng:function(){return dt},nP:function(){return Lt},us:function(){return zt},wG:function(){return Ye},si:function(){return bt},IR:function(){return Te},CB:function(){return rn},jH:function(){return ft},pj:function(){return Me},Kr:function(){return ye},Id:function(){return ae},FD:function(){return He},dB:function(){return _t},sb:function(){return ot},E0:function(){return Zn}}),f(88009),f(20901),f(89200);var Z=f(10509),T=f(97154),I=f(14105),C=f(18967),v=f(65508),P=f(6517),D=f(8392),M=new v.GfV("12.2.5"),A=f(40098),y=f(78081),g=f(68707),k=f(89797),N=f(15427),E=f(57682),x=f(38480),S=f(32819),O=["*",[["mat-option"],["ng-container"]]],L=["*","mat-option, ng-container"];function j(Ue,at){if(1&Ue&&v._UZ(0,"mat-pseudo-checkbox",4),2&Ue){var xe=v.oxw();v.Q6J("state",xe.selected?"checked":"unchecked")("disabled",xe.disabled)}}function K(Ue,at){if(1&Ue&&(v.TgZ(0,"span",5),v._uU(1),v.qZA()),2&Ue){var xe=v.oxw();v.xp6(1),v.hij("(",xe.group.label,")")}}var W=["*"],oe=function(){var Ue=function at(){(0,C.Z)(this,at)};return Ue.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Ue.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Ue.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Ue.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Ue}(),te=function(){var Ue=function at(){(0,C.Z)(this,at)};return Ue.COMPLEX="375ms",Ue.ENTERING="225ms",Ue.EXITING="195ms",Ue}(),se=new v.GfV("12.2.5"),de=new v.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),ue=function(){var Ue=function(){function at(xe,Fe,Oe){(0,C.Z)(this,at),this._hasDoneGlobalChecks=!1,this._document=Oe,xe._applyBodyHighContrastModeCssClasses(),this._sanityChecks=Fe,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return(0,I.Z)(at,[{key:"_getWindow",value:function(){var Fe=this._document.defaultView||window;return"object"==typeof Fe&&Fe?Fe:null}},{key:"_checkIsEnabled",value:function(Fe){return!(!(0,v.X6Q)()||this._isTestEnv())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Fe])}},{key:"_isTestEnv",value:function(){var Fe=this._getWindow();return Fe&&(Fe.__karma__||Fe.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checkIsEnabled("theme")&&this._document.body&&"function"==typeof getComputedStyle){var Fe=this._document.createElement("div");Fe.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(Fe);var Oe=getComputedStyle(Fe);Oe&&"none"!==Oe.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(Fe)}}},{key:"_checkCdkVersionMatch",value:function(){this._checkIsEnabled("version")&&se.full!==M.full&&console.warn("The Angular Material version ("+se.full+") does not match the Angular CDK version ("+M.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),at}();return Ue.\u0275fac=function(xe){return new(xe||Ue)(v.LFG(P.qm),v.LFG(de,8),v.LFG(A.K0))},Ue.\u0275mod=v.oAB({type:Ue}),Ue.\u0275inj=v.cJS({imports:[[D.vT],D.vT]}),Ue}();function ae(Ue){return function(at){(0,Z.Z)(Fe,at);var xe=(0,T.Z)(Fe);function Fe(){var Oe;(0,C.Z)(this,Fe);for(var Le=arguments.length,qe=new Array(Le),Nt=0;Nt<Le;Nt++)qe[Nt]=arguments[Nt];return(Oe=xe.call.apply(xe,[this].concat(qe)))._disabled=!1,Oe}return(0,I.Z)(Fe,[{key:"disabled",get:function(){return this._disabled},set:function(Le){this._disabled=(0,y.Ig)(Le)}}]),Fe}(Ue)}function Me(Ue,at){return function(xe){(0,Z.Z)(Oe,xe);var Fe=(0,T.Z)(Oe);function Oe(){var Le;(0,C.Z)(this,Oe);for(var qe=arguments.length,Nt=new Array(qe),cn=0;cn<qe;cn++)Nt[cn]=arguments[cn];return(Le=Fe.call.apply(Fe,[this].concat(Nt))).defaultColor=at,Le.color=at,Le}return(0,I.Z)(Oe,[{key:"color",get:function(){return this._color},set:function(qe){var Nt=qe||this.defaultColor;Nt!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-".concat(this._color)),Nt&&this._elementRef.nativeElement.classList.add("mat-".concat(Nt)),this._color=Nt)}}]),Oe}(Ue)}function ye(Ue){return function(at){(0,Z.Z)(Fe,at);var xe=(0,T.Z)(Fe);function Fe(){var Oe;(0,C.Z)(this,Fe);for(var Le=arguments.length,qe=new Array(Le),Nt=0;Nt<Le;Nt++)qe[Nt]=arguments[Nt];return(Oe=xe.call.apply(xe,[this].concat(qe)))._disableRipple=!1,Oe}return(0,I.Z)(Fe,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(Le){this._disableRipple=(0,y.Ig)(Le)}}]),Fe}(Ue)}function ot(Ue){var at=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(xe){(0,Z.Z)(Oe,xe);var Fe=(0,T.Z)(Oe);function Oe(){var Le;(0,C.Z)(this,Oe);for(var qe=arguments.length,Nt=new Array(qe),cn=0;cn<qe;cn++)Nt[cn]=arguments[cn];return(Le=Fe.call.apply(Fe,[this].concat(Nt)))._tabIndex=at,Le.defaultTabIndex=at,Le}return(0,I.Z)(Oe,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(qe){this._tabIndex=null!=qe?(0,y.su)(qe):this.defaultTabIndex}}]),Oe}(Ue)}function He(Ue){return function(at){(0,Z.Z)(Fe,at);var xe=(0,T.Z)(Fe);function Fe(){var Oe;(0,C.Z)(this,Fe);for(var Le=arguments.length,qe=new Array(Le),Nt=0;Nt<Le;Nt++)qe[Nt]=arguments[Nt];return(Oe=xe.call.apply(xe,[this].concat(qe))).stateChanges=new g.xQ,Oe.errorState=!1,Oe}return(0,I.Z)(Fe,[{key:"updateErrorState",value:function(){var Le=this.errorState,Jn=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Jn!==Le&&(this.errorState=Jn,this.stateChanges.next())}}]),Fe}(Ue)}function _t(Ue){return function(at){(0,Z.Z)(Fe,at);var xe=(0,T.Z)(Fe);function Fe(){var Oe;(0,C.Z)(this,Fe);for(var Le=arguments.length,qe=new Array(Le),Nt=0;Nt<Le;Nt++)qe[Nt]=arguments[Nt];return(Oe=xe.call.apply(xe,[this].concat(qe)))._isInitialized=!1,Oe._pendingSubscribers=[],Oe.initialized=new k.y(function(cn){Oe._isInitialized?Oe._notifySubscriber(cn):Oe._pendingSubscribers.push(cn)}),Oe}return(0,I.Z)(Fe,[{key:"_markInitialized",value:function(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}},{key:"_notifySubscriber",value:function(Le){Le.next(),Le.complete()}}]),Fe}(Ue)}var on=function(){var Ue=function(){function at(){(0,C.Z)(this,at)}return(0,I.Z)(at,[{key:"isErrorState",value:function(Fe,Oe){return!!(Fe&&Fe.invalid&&(Fe.touched||Oe&&Oe.submitted))}}]),at}();return Ue.\u0275fac=function(xe){return new(xe||Ue)},Ue.\u0275prov=v.Yz7({factory:function(){return new Ue},token:Ue,providedIn:"root"}),Ue}(),En=function(){var Ue=function at(){(0,C.Z)(this,at)};return Ue.\u0275fac=function(xe){return new(xe||Ue)},Ue.\u0275dir=v.lG2({type:Ue,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Ue}();function Zn(Ue,at){var xe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";Ue.changes.pipe((0,E.O)(Ue)).subscribe(function(Fe){var Oe=Fe.length;Rn(at,"".concat(xe,"-2-line"),!1),Rn(at,"".concat(xe,"-3-line"),!1),Rn(at,"".concat(xe,"-multi-line"),!1),2===Oe||3===Oe?Rn(at,"".concat(xe,"-").concat(Oe,"-line"),!0):Oe>3&&Rn(at,"".concat(xe,"-multi-line"),!0)})}function Rn(Ue,at,xe){var Fe=Ue.nativeElement.classList;xe?Fe.add(at):Fe.remove(at)}var tr=function(){var Ue=function at(){(0,C.Z)(this,at)};return Ue.\u0275fac=function(xe){return new(xe||Ue)},Ue.\u0275mod=v.oAB({type:Ue}),Ue.\u0275inj=v.cJS({imports:[[ue],ue]}),Ue}(),Nn=function(){function Ue(at,xe,Fe){(0,C.Z)(this,Ue),this._renderer=at,this.element=xe,this.config=Fe,this.state=3}return(0,I.Z)(Ue,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),Ue}(),wn={enterDuration:225,exitDuration:150},Wt=(0,N.i$)({passive:!0}),Mt=["mousedown","touchstart"],rt=["mouseup","mouseleave","touchend","touchcancel"],Te=function(){function Ue(at,xe,Fe,Oe){(0,C.Z)(this,Ue),this._target=at,this._ngZone=xe,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,Oe.isBrowser&&(this._containerElement=(0,y.fI)(Fe))}return(0,I.Z)(Ue,[{key:"fadeInRipple",value:function(xe,Fe){var Oe=this,Le=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},qe=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Nt=Object.assign(Object.assign({},wn),Le.animation);Le.centered&&(xe=qe.left+qe.width/2,Fe=qe.top+qe.height/2);var cn=Le.radius||ve(xe,Fe,qe),Jn=xe-qe.left,Zr=Fe-qe.top,jr=Nt.enterDuration,Cr=document.createElement("div");Cr.classList.add("mat-ripple-element"),Cr.style.left="".concat(Jn-cn,"px"),Cr.style.top="".concat(Zr-cn,"px"),Cr.style.height="".concat(2*cn,"px"),Cr.style.width="".concat(2*cn,"px"),null!=Le.color&&(Cr.style.backgroundColor=Le.color),Cr.style.transitionDuration="".concat(jr,"ms"),this._containerElement.appendChild(Cr),re(Cr),Cr.style.transform="scale(1)";var Kr=new Nn(this,Cr,Le);return Kr.state=0,this._activeRipples.add(Kr),Le.persistent||(this._mostRecentTransientRipple=Kr),this._runTimeoutOutsideZone(function(){var co=Kr===Oe._mostRecentTransientRipple;Kr.state=1,!Le.persistent&&(!co||!Oe._isPointerDown)&&Kr.fadeOut()},jr),Kr}},{key:"fadeOutRipple",value:function(xe){var Fe=this._activeRipples.delete(xe);if(xe===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),Fe){var Oe=xe.element,Le=Object.assign(Object.assign({},wn),xe.config.animation);Oe.style.transitionDuration="".concat(Le.exitDuration,"ms"),Oe.style.opacity="0",xe.state=2,this._runTimeoutOutsideZone(function(){xe.state=3,Oe.parentNode.removeChild(Oe)},Le.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(xe){return xe.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(xe){xe.config.persistent||xe.fadeOut()})}},{key:"setupTriggerEvents",value:function(xe){var Fe=(0,y.fI)(xe);!Fe||Fe===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Fe,this._registerEvents(Mt))}},{key:"handleEvent",value:function(xe){"mousedown"===xe.type?this._onMousedown(xe):"touchstart"===xe.type?this._onTouchStart(xe):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(rt),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(xe){var Fe=(0,P.X6)(xe),Oe=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!Fe&&!Oe&&(this._isPointerDown=!0,this.fadeInRipple(xe.clientX,xe.clientY,this._target.rippleConfig))}},{key:"_onTouchStart",value:function(xe){if(!this._target.rippleDisabled&&!(0,P.yG)(xe)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var Fe=xe.changedTouches,Oe=0;Oe<Fe.length;Oe++)this.fadeInRipple(Fe[Oe].clientX,Fe[Oe].clientY,this._target.rippleConfig)}}},{key:"_onPointerUp",value:function(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(function(xe){!xe.config.persistent&&(1===xe.state||xe.config.terminateOnPointerUp&&0===xe.state)&&xe.fadeOut()}))}},{key:"_runTimeoutOutsideZone",value:function(xe){var Fe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(xe,Fe)})}},{key:"_registerEvents",value:function(xe){var Fe=this;this._ngZone.runOutsideAngular(function(){xe.forEach(function(Oe){Fe._triggerElement.addEventListener(Oe,Fe,Wt)})})}},{key:"_removeTriggerEvents",value:function(){var xe=this;this._triggerElement&&(Mt.forEach(function(Fe){xe._triggerElement.removeEventListener(Fe,xe,Wt)}),this._pointerUpEventsRegistered&&rt.forEach(function(Fe){xe._triggerElement.removeEventListener(Fe,xe,Wt)}))}}]),Ue}();function re(Ue){window.getComputedStyle(Ue).getPropertyValue("opacity")}function ve(Ue,at,xe){var Fe=Math.max(Math.abs(Ue-xe.left),Math.abs(Ue-xe.right)),Oe=Math.max(Math.abs(at-xe.top),Math.abs(at-xe.bottom));return Math.sqrt(Fe*Fe+Oe*Oe)}var Ge=new v.OlP("mat-ripple-global-options"),Ye=function(){var Ue=function(){function at(xe,Fe,Oe,Le,qe){(0,C.Z)(this,at),this._elementRef=xe,this._animationMode=qe,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Le||{},this._rippleRenderer=new Te(this,Fe,xe,Oe)}return(0,I.Z)(at,[{key:"disabled",get:function(){return this._disabled},set:function(Fe){Fe&&this.fadeOutAllNonPersistent(),this._disabled=Fe,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(Fe){this._trigger=Fe,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(Fe){var Oe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,Le=arguments.length>2?arguments[2]:void 0;return"number"==typeof Fe?this._rippleRenderer.fadeInRipple(Fe,Oe,Object.assign(Object.assign({},this.rippleConfig),Le)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),Fe))}}]),at}();return Ue.\u0275fac=function(xe){return new(xe||Ue)(v.Y36(v.SBq),v.Y36(v.R0b),v.Y36(N.t4),v.Y36(Ge,8),v.Y36(x.Qb,8))},Ue.\u0275dir=v.lG2({type:Ue,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(xe,Fe){2&xe&&v.ekj("mat-ripple-unbounded",Fe.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),Ue}(),bt=function(){var Ue=function at(){(0,C.Z)(this,at)};return Ue.\u0275fac=function(xe){return new(xe||Ue)},Ue.\u0275mod=v.oAB({type:Ue}),Ue.\u0275inj=v.cJS({imports:[[ue,N.ud],ue]}),Ue}(),Lt=function(){var Ue=function at(xe){(0,C.Z)(this,at),this._animationMode=xe,this.state="unchecked",this.disabled=!1};return Ue.\u0275fac=function(xe){return new(xe||Ue)(v.Y36(x.Qb,8))},Ue.\u0275cmp=v.Xpm({type:Ue,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(xe,Fe){2&xe&&v.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Fe.state)("mat-pseudo-checkbox-checked","checked"===Fe.state)("mat-pseudo-checkbox-disabled",Fe.disabled)("_mat-animation-noopable","NoopAnimations"===Fe._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(xe,Fe){},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}),Ue}(),zt=function(){var Ue=function at(){(0,C.Z)(this,at)};return Ue.\u0275fac=function(xe){return new(xe||Ue)},Ue.\u0275mod=v.oAB({type:Ue}),Ue.\u0275inj=v.cJS({imports:[[ue]]}),Ue}(),tn=new v.OlP("MAT_OPTION_PARENT_COMPONENT"),sn=ae(function(){return function Ue(){(0,C.Z)(this,Ue)}}()),hn=0,Cn=function(){var Ue=function(at){(0,Z.Z)(Fe,at);var xe=(0,T.Z)(Fe);function Fe(Oe){var Le,qe;return(0,C.Z)(this,Fe),(Le=xe.call(this))._labelId="mat-optgroup-label-".concat(hn++),Le._inert=null!==(qe=null==Oe?void 0:Oe.inertGroups)&&void 0!==qe&&qe,Le}return Fe}(sn);return Ue.\u0275fac=function(xe){return new(xe||Ue)(v.Y36(tn,8))},Ue.\u0275dir=v.lG2({type:Ue,inputs:{label:"label"},features:[v.qOj]}),Ue}(),In=new v.OlP("MatOptgroup"),Yn=function(){var Ue=function(at){(0,Z.Z)(Fe,at);var xe=(0,T.Z)(Fe);function Fe(){return(0,C.Z)(this,Fe),xe.apply(this,arguments)}return Fe}(Cn);return Ue.\u0275fac=function(){var at;return function(Fe){return(at||(at=v.n5z(Ue)))(Fe||Ue)}}(),Ue.\u0275cmp=v.Xpm({type:Ue,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(xe,Fe){2&xe&&(v.uIk("role",Fe._inert?null:"group")("aria-disabled",Fe._inert?null:Fe.disabled.toString())("aria-labelledby",Fe._inert?null:Fe._labelId),v.ekj("mat-optgroup-disabled",Fe.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[v._Bn([{provide:In,useExisting:Ue}]),v.qOj],ngContentSelectors:L,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(xe,Fe){1&xe&&(v.F$t(O),v.TgZ(0,"span",0),v._uU(1),v.Hsn(2),v.qZA(),v.Hsn(3,1)),2&xe&&(v.Q6J("id",Fe._labelId),v.xp6(1),v.hij("",Fe.label," "))},styles:[".mat-optgroup-label{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%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Ue}(),xn=0,Sn=function Ue(at){var xe=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,C.Z)(this,Ue),this.source=at,this.isUserInput=xe},$n=function(){var Ue=function(){function at(xe,Fe,Oe,Le){(0,C.Z)(this,at),this._element=xe,this._changeDetectorRef=Fe,this._parent=Oe,this.group=Le,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(xn++),this.onSelectionChange=new v.vpe,this._stateChanges=new g.xQ}return(0,I.Z)(at,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(Fe){this._disabled=(0,y.Ig)(Fe)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(Fe,Oe){var Le=this._getHostElement();"function"==typeof Le.focus&&Le.focus(Oe)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(Fe){(Fe.keyCode===S.K5||Fe.keyCode===S.L_)&&!(0,S.Vb)(Fe)&&(this._selectViaInteraction(),Fe.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var Fe=this.viewValue;Fe!==this._mostRecentViewValue&&(this._mostRecentViewValue=Fe,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var Fe=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new Sn(this,Fe))}}]),at}();return Ue.\u0275fac=function(xe){return new(xe||Ue)(v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(void 0),v.Y36(Cn))},Ue.\u0275dir=v.lG2({type:Ue,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),Ue}(),Ht=function(){var Ue=function(at){(0,Z.Z)(Fe,at);var xe=(0,T.Z)(Fe);function Fe(Oe,Le,qe,Nt){return(0,C.Z)(this,Fe),xe.call(this,Oe,Le,qe,Nt)}return Fe}($n);return Ue.\u0275fac=function(xe){return new(xe||Ue)(v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(tn,8),v.Y36(In,8))},Ue.\u0275cmp=v.Xpm({type:Ue,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(xe,Fe){1&xe&&v.NdJ("click",function(){return Fe._selectViaInteraction()})("keydown",function(Le){return Fe._handleKeydown(Le)}),2&xe&&(v.Ikx("id",Fe.id),v.uIk("tabindex",Fe._getTabIndex())("aria-selected",Fe._getAriaSelected())("aria-disabled",Fe.disabled.toString()),v.ekj("mat-selected",Fe.selected)("mat-option-multiple",Fe.multiple)("mat-active",Fe.active)("mat-option-disabled",Fe.disabled))},exportAs:["matOption"],features:[v.qOj],ngContentSelectors:W,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(xe,Fe){1&xe&&(v.F$t(),v.YNc(0,j,1,2,"mat-pseudo-checkbox",0),v.TgZ(1,"span",1),v.Hsn(2),v.qZA(),v.YNc(3,K,2,1,"span",2),v._UZ(4,"div",3)),2&xe&&(v.Q6J("ngIf",Fe.multiple),v.xp6(3),v.Q6J("ngIf",Fe.group&&Fe.group._inert),v.xp6(1),v.Q6J("matRippleTrigger",Fe._getHostElement())("matRippleDisabled",Fe.disabled||Fe.disableRipple))},directives:[A.O5,Ye,Lt],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-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}),Ue}();function rn(Ue,at,xe){if(xe.length){for(var Fe=at.toArray(),Oe=xe.toArray(),Le=0,qe=0;qe<Ue+1;qe++)Fe[qe].group&&Fe[qe].group===Oe[Le]&&Le++;return Le}return 0}function ft(Ue,at,xe,Fe){return Ue<xe?Ue:Ue+at>xe+Fe?Math.max(0,Ue-Fe+at):xe}var dt=function(){var Ue=function at(){(0,C.Z)(this,at)};return Ue.\u0275fac=function(xe){return new(xe||Ue)},Ue.\u0275mod=v.oAB({type:Ue}),Ue.\u0275inj=v.cJS({imports:[[bt,A.ez,ue,zt]]}),Ue}()},93386:function(ce,q,f){"use strict";f.d(q,{d:function(){return I},t:function(){return C}});var U=f(18967),B=f(14105),V=f(78081),Z=f(59412),T=f(65508),I=function(){var v=function(){function P(){(0,U.Z)(this,P),this._vertical=!1,this._inset=!1}return(0,B.Z)(P,[{key:"vertical",get:function(){return this._vertical},set:function(M){this._vertical=(0,V.Ig)(M)}},{key:"inset",get:function(){return this._inset},set:function(M){this._inset=(0,V.Ig)(M)}}]),P}();return v.\u0275fac=function(D){return new(D||v)},v.\u0275cmp=T.Xpm({type:v,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(D,M){2&D&&(T.uIk("aria-orientation",M.vertical?"vertical":"horizontal"),T.ekj("mat-divider-vertical",M.vertical)("mat-divider-horizontal",!M.vertical)("mat-divider-inset",M.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(D,M){},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}),v}(),C=function(){var v=function P(){(0,U.Z)(this,P)};return v.\u0275fac=function(D){return new(D||v)},v.\u0275mod=T.oAB({type:v}),v.\u0275inj=T.cJS({imports:[[Z.BQ],Z.BQ]}),v}()},36410:function(ce,q,f){"use strict";f.d(q,{G_:function(){return Nn},TO:function(){return Se},KE:function(){return wn},Eo:function(){return Ve},lN:function(){return yr},hX:function(){return Vt},R9:function(){return Ft}});var U=f(10629),B=f(14105),V=f(10509),Z=f(97154),T=f(18967),I=f(96798),C=f(40098),v=f(65508),P=f(59412),D=f(78081),M=f(68707),A=f(55371),y=f(33090),g=f(57682),k=f(44213),N=f(48359),E=f(739),x=f(38480),S=f(8392),O=f(15427),L=["underline"],j=["connectionContainer"],K=["inputContainer"],W=["label"];function J(Wt,Mt){1&Wt&&(v.ynx(0),v.TgZ(1,"div",14),v._UZ(2,"div",15),v._UZ(3,"div",16),v._UZ(4,"div",17),v.qZA(),v.TgZ(5,"div",18),v._UZ(6,"div",15),v._UZ(7,"div",16),v._UZ(8,"div",17),v.qZA(),v.BQk())}function oe(Wt,Mt){1&Wt&&(v.TgZ(0,"div",19),v.Hsn(1,1),v.qZA())}function te(Wt,Mt){if(1&Wt&&(v.ynx(0),v.Hsn(1,2),v.TgZ(2,"span"),v._uU(3),v.qZA(),v.BQk()),2&Wt){var rt=v.oxw(2);v.xp6(3),v.Oqu(rt._control.placeholder)}}function se(Wt,Mt){1&Wt&&v.Hsn(0,3,["*ngSwitchCase","true"])}function le(Wt,Mt){1&Wt&&(v.TgZ(0,"span",23),v._uU(1," *"),v.qZA())}function de(Wt,Mt){if(1&Wt){var rt=v.EpF();v.TgZ(0,"label",20,21),v.NdJ("cdkObserveContent",function(){return v.CHM(rt),v.oxw().updateOutlineGap()}),v.YNc(2,te,4,1,"ng-container",12),v.YNc(3,se,1,0,"ng-content",12),v.YNc(4,le,2,0,"span",22),v.qZA()}if(2&Wt){var Te=v.oxw();v.ekj("mat-empty",Te._control.empty&&!Te._shouldAlwaysFloat())("mat-form-field-empty",Te._control.empty&&!Te._shouldAlwaysFloat())("mat-accent","accent"==Te.color)("mat-warn","warn"==Te.color),v.Q6J("cdkObserveContentDisabled","outline"!=Te.appearance)("id",Te._labelId)("ngSwitch",Te._hasLabel()),v.uIk("for",Te._control.id)("aria-owns",Te._control.id),v.xp6(2),v.Q6J("ngSwitchCase",!1),v.xp6(1),v.Q6J("ngSwitchCase",!0),v.xp6(1),v.Q6J("ngIf",!Te.hideRequiredMarker&&Te._control.required&&!Te._control.disabled)}}function ue(Wt,Mt){1&Wt&&(v.TgZ(0,"div",24),v.Hsn(1,4),v.qZA())}function ae(Wt,Mt){if(1&Wt&&(v.TgZ(0,"div",25,26),v._UZ(2,"span",27),v.qZA()),2&Wt){var rt=v.oxw();v.xp6(2),v.ekj("mat-accent","accent"==rt.color)("mat-warn","warn"==rt.color)}}function Me(Wt,Mt){if(1&Wt&&(v.TgZ(0,"div"),v.Hsn(1,5),v.qZA()),2&Wt){var rt=v.oxw();v.Q6J("@transitionMessages",rt._subscriptAnimationState)}}function ye(Wt,Mt){if(1&Wt&&(v.TgZ(0,"div",31),v._uU(1),v.qZA()),2&Wt){var rt=v.oxw(2);v.Q6J("id",rt._hintLabelId),v.xp6(1),v.Oqu(rt.hintLabel)}}function ot(Wt,Mt){if(1&Wt&&(v.TgZ(0,"div",28),v.YNc(1,ye,2,2,"div",29),v.Hsn(2,6),v._UZ(3,"div",30),v.Hsn(4,7),v.qZA()),2&Wt){var rt=v.oxw();v.Q6J("@transitionMessages",rt._subscriptAnimationState),v.xp6(1),v.Q6J("ngIf",rt.hintLabel)}}var He=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],_t=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],yt=0,Bt=new v.OlP("MatError"),Se=function(){var Wt=function Mt(rt,Te){(0,T.Z)(this,Mt),this.id="mat-error-".concat(yt++),rt||Te.nativeElement.setAttribute("aria-live","polite")};return Wt.\u0275fac=function(rt){return new(rt||Wt)(v.$8M("aria-live"),v.Y36(v.SBq))},Wt.\u0275dir=v.lG2({type:Wt,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(rt,Te){2&rt&&v.uIk("id",Te.id)},inputs:{id:"id"},features:[v._Bn([{provide:Bt,useExisting:Wt}])]}),Wt}(),De={transitionMessages:(0,E.X$)("transitionMessages",[(0,E.SB)("enter",(0,E.oB)({opacity:1,transform:"translateY(0%)"})),(0,E.eR)("void => enter",[(0,E.oB)({opacity:0,transform:"translateY(-5px)"}),(0,E.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ve=function(){var Wt=function Mt(){(0,T.Z)(this,Mt)};return Wt.\u0275fac=function(rt){return new(rt||Wt)},Wt.\u0275dir=v.lG2({type:Wt}),Wt}(),vt=new v.OlP("MatHint"),Vt=function(){var Wt=function Mt(){(0,T.Z)(this,Mt)};return Wt.\u0275fac=function(rt){return new(rt||Wt)},Wt.\u0275dir=v.lG2({type:Wt,selectors:[["mat-label"]]}),Wt}(),St=function(){var Wt=function Mt(){(0,T.Z)(this,Mt)};return Wt.\u0275fac=function(rt){return new(rt||Wt)},Wt.\u0275dir=v.lG2({type:Wt,selectors:[["mat-placeholder"]]}),Wt}(),qt=new v.OlP("MatPrefix"),en=new v.OlP("MatSuffix"),Ft=function(){var Wt=function Mt(){(0,T.Z)(this,Mt)};return Wt.\u0275fac=function(rt){return new(rt||Wt)},Wt.\u0275dir=v.lG2({type:Wt,selectors:[["","matSuffix",""]],features:[v._Bn([{provide:en,useExisting:Wt}])]}),Wt}(),on=0,Rn=(0,P.pj)(function(){return function Wt(Mt){(0,T.Z)(this,Wt),this._elementRef=Mt}}(),"primary"),tr=new v.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Nn=new v.OlP("MatFormField"),wn=function(){var Wt=function(Mt){(0,V.Z)(Te,Mt);var rt=(0,Z.Z)(Te);function Te(re,ve,Ge,Ye,bt,Lt,zt,tn){var sn;return(0,T.Z)(this,Te),(sn=rt.call(this,re))._changeDetectorRef=ve,sn._dir=Ye,sn._defaults=bt,sn._platform=Lt,sn._ngZone=zt,sn._outlineGapCalculationNeededImmediately=!1,sn._outlineGapCalculationNeededOnStable=!1,sn._destroyed=new M.xQ,sn._showAlwaysAnimate=!1,sn._subscriptAnimationState="",sn._hintLabel="",sn._hintLabelId="mat-hint-".concat(on++),sn._labelId="mat-form-field-label-".concat(on++),sn.floatLabel=sn._getDefaultFloatLabelState(),sn._animationsEnabled="NoopAnimations"!==tn,sn.appearance=bt&&bt.appearance?bt.appearance:"legacy",sn._hideRequiredMarker=!(!bt||null==bt.hideRequiredMarker)&&bt.hideRequiredMarker,sn}return(0,B.Z)(Te,[{key:"appearance",get:function(){return this._appearance},set:function(ve){var Ge=this._appearance;this._appearance=ve||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&Ge!==ve&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(ve){this._hideRequiredMarker=(0,D.Ig)(ve)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(ve){this._hintLabel=ve,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(ve){ve!==this._floatLabel&&(this._floatLabel=ve||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(ve){this._explicitFormFieldControl=ve}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var ve=this;this._validateControlChild();var Ge=this._control;Ge.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(Ge.controlType)),Ge.stateChanges.pipe((0,g.O)(null)).subscribe(function(){ve._validatePlaceholders(),ve._syncDescribedByIds(),ve._changeDetectorRef.markForCheck()}),Ge.ngControl&&Ge.ngControl.valueChanges&&Ge.ngControl.valueChanges.pipe((0,k.R)(this._destroyed)).subscribe(function(){return ve._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){ve._ngZone.onStable.pipe((0,k.R)(ve._destroyed)).subscribe(function(){ve._outlineGapCalculationNeededOnStable&&ve.updateOutlineGap()})}),(0,A.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){ve._outlineGapCalculationNeededOnStable=!0,ve._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,g.O)(null)).subscribe(function(){ve._processHints(),ve._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,g.O)(null)).subscribe(function(){ve._syncDescribedByIds(),ve._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,k.R)(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?ve._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return ve.updateOutlineGap()})}):ve.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(ve){var Ge=this._control?this._control.ngControl:null;return Ge&&Ge[ve]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var ve=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,y.R)(this._label.nativeElement,"transitionend").pipe((0,N.q)(1)).subscribe(function(){ve._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var ve=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&ve.push.apply(ve,(0,U.Z)(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var Ge=this._hintChildren?this._hintChildren.find(function(bt){return"start"===bt.align}):null,Ye=this._hintChildren?this._hintChildren.find(function(bt){return"end"===bt.align}):null;Ge?ve.push(Ge.id):this._hintLabel&&ve.push(this._hintLabelId),Ye&&ve.push(Ye.id)}else this._errorChildren&&ve.push.apply(ve,(0,U.Z)(this._errorChildren.map(function(bt){return bt.id})));this._control.setDescribedByIds(ve)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var ve=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&ve&&ve.children.length&&ve.textContent.trim()&&this._platform.isBrowser){if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);var Ge=0,Ye=0,bt=this._connectionContainerRef.nativeElement,Lt=bt.querySelectorAll(".mat-form-field-outline-start"),zt=bt.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var tn=bt.getBoundingClientRect();if(0===tn.width&&0===tn.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var sn=this._getStartEnd(tn),hn=ve.children,Cn=this._getStartEnd(hn[0].getBoundingClientRect()),In=0,Yn=0;Yn<hn.length;Yn++)In+=hn[Yn].offsetWidth;Ge=Math.abs(Cn-sn)-5,Ye=In>0?.75*In+10:0}for(var xn=0;xn<Lt.length;xn++)Lt[xn].style.width="".concat(Ge,"px");for(var Sn=0;Sn<zt.length;Sn++)zt[Sn].style.width="".concat(Ye,"px");this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}}},{key:"_getStartEnd",value:function(ve){return this._dir&&"rtl"===this._dir.value?ve.right:ve.left}},{key:"_isAttachedToDOM",value:function(){var ve=this._elementRef.nativeElement;if(ve.getRootNode){var Ge=ve.getRootNode();return Ge&&Ge!==ve}return document.documentElement.contains(ve)}}]),Te}(Rn);return Wt.\u0275fac=function(rt){return new(rt||Wt)(v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(v.SBq),v.Y36(S.Is,8),v.Y36(tr,8),v.Y36(O.t4),v.Y36(v.R0b),v.Y36(x.Qb,8))},Wt.\u0275cmp=v.Xpm({type:Wt,selectors:[["mat-form-field"]],contentQueries:function(rt,Te,re){var ve;1&rt&&(v.Suo(re,Ve,5),v.Suo(re,Ve,7),v.Suo(re,Vt,5),v.Suo(re,Vt,7),v.Suo(re,St,5),v.Suo(re,Bt,5),v.Suo(re,vt,5),v.Suo(re,qt,5),v.Suo(re,en,5)),2&rt&&(v.iGM(ve=v.CRH())&&(Te._controlNonStatic=ve.first),v.iGM(ve=v.CRH())&&(Te._controlStatic=ve.first),v.iGM(ve=v.CRH())&&(Te._labelChildNonStatic=ve.first),v.iGM(ve=v.CRH())&&(Te._labelChildStatic=ve.first),v.iGM(ve=v.CRH())&&(Te._placeholderChild=ve.first),v.iGM(ve=v.CRH())&&(Te._errorChildren=ve),v.iGM(ve=v.CRH())&&(Te._hintChildren=ve),v.iGM(ve=v.CRH())&&(Te._prefixChildren=ve),v.iGM(ve=v.CRH())&&(Te._suffixChildren=ve))},viewQuery:function(rt,Te){var re;1&rt&&(v.Gf(L,5),v.Gf(j,7),v.Gf(K,5),v.Gf(W,5)),2&rt&&(v.iGM(re=v.CRH())&&(Te.underlineRef=re.first),v.iGM(re=v.CRH())&&(Te._connectionContainerRef=re.first),v.iGM(re=v.CRH())&&(Te._inputContainerRef=re.first),v.iGM(re=v.CRH())&&(Te._label=re.first))},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(rt,Te){2&rt&&v.ekj("mat-form-field-appearance-standard","standard"==Te.appearance)("mat-form-field-appearance-fill","fill"==Te.appearance)("mat-form-field-appearance-outline","outline"==Te.appearance)("mat-form-field-appearance-legacy","legacy"==Te.appearance)("mat-form-field-invalid",Te._control.errorState)("mat-form-field-can-float",Te._canLabelFloat())("mat-form-field-should-float",Te._shouldLabelFloat())("mat-form-field-has-label",Te._hasFloatingLabel())("mat-form-field-hide-placeholder",Te._hideControlPlaceholder())("mat-form-field-disabled",Te._control.disabled)("mat-form-field-autofilled",Te._control.autofilled)("mat-focused",Te._control.focused)("ng-untouched",Te._shouldForward("untouched"))("ng-touched",Te._shouldForward("touched"))("ng-pristine",Te._shouldForward("pristine"))("ng-dirty",Te._shouldForward("dirty"))("ng-valid",Te._shouldForward("valid"))("ng-invalid",Te._shouldForward("invalid"))("ng-pending",Te._shouldForward("pending"))("_mat-animation-noopable",!Te._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[v._Bn([{provide:Nn,useExisting:Wt}]),v.qOj],ngContentSelectors:_t,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",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"],[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"],["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(rt,Te){1&rt&&(v.F$t(He),v.TgZ(0,"div",0),v.TgZ(1,"div",1,2),v.NdJ("click",function(ve){return Te._control.onContainerClick&&Te._control.onContainerClick(ve)}),v.YNc(3,J,9,0,"ng-container",3),v.YNc(4,oe,2,0,"div",4),v.TgZ(5,"div",5,6),v.Hsn(7),v.TgZ(8,"span",7),v.YNc(9,de,5,16,"label",8),v.qZA(),v.qZA(),v.YNc(10,ue,2,0,"div",9),v.qZA(),v.YNc(11,ae,3,4,"div",10),v.TgZ(12,"div",11),v.YNc(13,Me,2,1,"div",12),v.YNc(14,ot,5,2,"div",13),v.qZA(),v.qZA()),2&rt&&(v.xp6(3),v.Q6J("ngIf","outline"==Te.appearance),v.xp6(1),v.Q6J("ngIf",Te._prefixChildren.length),v.xp6(5),v.Q6J("ngIf",Te._hasFloatingLabel()),v.xp6(1),v.Q6J("ngIf",Te._suffixChildren.length),v.xp6(1),v.Q6J("ngIf","outline"!=Te.appearance),v.xp6(1),v.Q6J("ngSwitch",Te._getDisplayedMessages()),v.xp6(1),v.Q6J("ngSwitchCase","error"),v.xp6(1),v.Q6J("ngSwitchCase","hint"))},directives:[C.O5,C.RF,C.n9,I.wD],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}.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-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::-ms-clear,.mat-input-element::-ms-reveal{display: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::-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;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-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:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-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:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-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:-ms-input-placeholder{-ms-user-select:text}.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}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::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.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);-ms-transform:none}.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}.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}.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:[De.transitionMessages]},changeDetection:0}),Wt}(),yr=function(){var Wt=function Mt(){(0,T.Z)(this,Mt)};return Wt.\u0275fac=function(rt){return new(rt||Wt)},Wt.\u0275mod=v.oAB({type:Wt}),Wt.\u0275inj=v.cJS({imports:[[C.ez,P.BQ,I.Q8],P.BQ]}),Wt}()},73044:function(ce,q,f){"use strict";f.d(q,{gD:function(){return wn},LD:function(){return yr}});var U=f(20901),B=f(89200),V=f(10629),Z=f(14105),T=f(88009),I=f(10509),C=f(97154),v=f(18967),P=f(93889),D=f(40098),M=f(65508),A=f(59412),y=f(36410),g=f(28722),k=f(6517),N=f(78081),E=f(37429),x=f(32819),S=f(68707),O=f(4499),L=f(55371),j=f(57682),K=f(34487),W=f(48359),J=f(58780),oe=f(85639),te=f(76161),se=f(44213),le=f(739),de=f(8392),ue=f(19061),ae=["trigger"],Me=["panel"];function ye(Wt,Mt){if(1&Wt&&(M.TgZ(0,"span",8),M._uU(1),M.qZA()),2&Wt){var rt=M.oxw();M.xp6(1),M.Oqu(rt.placeholder)}}function ot(Wt,Mt){if(1&Wt&&(M.TgZ(0,"span",12),M._uU(1),M.qZA()),2&Wt){var rt=M.oxw(2);M.xp6(1),M.Oqu(rt.triggerValue)}}function He(Wt,Mt){1&Wt&&M.Hsn(0,0,["*ngSwitchCase","true"])}function _t(Wt,Mt){if(1&Wt&&(M.TgZ(0,"span",9),M.YNc(1,ot,2,1,"span",10),M.YNc(2,He,1,0,"ng-content",11),M.qZA()),2&Wt){var rt=M.oxw();M.Q6J("ngSwitch",!!rt.customTrigger),M.xp6(2),M.Q6J("ngSwitchCase",!0)}}function yt(Wt,Mt){if(1&Wt){var rt=M.EpF();M.TgZ(0,"div",13),M.TgZ(1,"div",14,15),M.NdJ("@transformPanel.done",function(ve){return M.CHM(rt),M.oxw()._panelDoneAnimatingStream.next(ve.toState)})("keydown",function(ve){return M.CHM(rt),M.oxw()._handleKeydown(ve)}),M.Hsn(3,1),M.qZA(),M.qZA()}if(2&Wt){var Te=M.oxw();M.Q6J("@transformPanelWrap",void 0),M.xp6(1),M.Gre("mat-select-panel ",Te._getPanelTheme(),""),M.Udp("transform-origin",Te._transformOrigin)("font-size",Te._triggerFontSize,"px"),M.Q6J("ngClass",Te.panelClass)("@transformPanel",Te.multiple?"showing-multiple":"showing"),M.uIk("id",Te.id+"-panel")("aria-multiselectable",Te.multiple)("aria-label",Te.ariaLabel||null)("aria-labelledby",Te._getPanelAriaLabelledby())}}var Bt=[[["mat-select-trigger"]],"*"],Se=["mat-select-trigger","*"],De={transformPanelWrap:(0,le.X$)("transformPanelWrap",[(0,le.eR)("* => void",(0,le.IO)("@transformPanel",[(0,le.pV)()],{optional:!0}))]),transformPanel:(0,le.X$)("transformPanel",[(0,le.SB)("void",(0,le.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,le.SB)("showing",(0,le.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,le.SB)("showing-multiple",(0,le.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,le.eR)("void => *",(0,le.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,le.eR)("* => void",(0,le.jt)("100ms 25ms linear",(0,le.oB)({opacity:0})))])},Ut=0,Ct=new M.OlP("mat-select-scroll-strategy"),Ft=new M.OlP("MAT_SELECT_CONFIG"),on={provide:Ct,deps:[P.aV],useFactory:function(Wt){return function(){return Wt.scrollStrategies.reposition()}}},En=function Wt(Mt,rt){(0,v.Z)(this,Wt),this.source=Mt,this.value=rt},Zn=(0,A.Kr)((0,A.sb)((0,A.Id)((0,A.FD)(function(){return function Wt(Mt,rt,Te,re,ve){(0,v.Z)(this,Wt),this._elementRef=Mt,this._defaultErrorStateMatcher=rt,this._parentForm=Te,this._parentFormGroup=re,this.ngControl=ve}}())))),Rn=new M.OlP("MatSelectTrigger"),Nn=function(){var Wt=function(Mt){(0,I.Z)(Te,Mt);var rt=(0,C.Z)(Te);function Te(re,ve,Ge,Ye,bt,Lt,zt,tn,sn,hn,Cn,In,Yn,xn){var Sn,$n,Ht,rn;return(0,v.Z)(this,Te),(Sn=rt.call(this,bt,Ye,zt,tn,hn))._viewportRuler=re,Sn._changeDetectorRef=ve,Sn._ngZone=Ge,Sn._dir=Lt,Sn._parentFormField=sn,Sn._liveAnnouncer=Yn,Sn._defaultOptions=xn,Sn._panelOpen=!1,Sn._compareWith=function(ft,dt){return ft===dt},Sn._uid="mat-select-".concat(Ut++),Sn._triggerAriaLabelledBy=null,Sn._destroy=new S.xQ,Sn._onChange=function(){},Sn._onTouched=function(){},Sn._valueId="mat-select-value-".concat(Ut++),Sn._panelDoneAnimatingStream=new S.xQ,Sn._overlayPanelClass=(null===($n=Sn._defaultOptions)||void 0===$n?void 0:$n.overlayPanelClass)||"",Sn._focused=!1,Sn.controlType="mat-select",Sn._required=!1,Sn._multiple=!1,Sn._disableOptionCentering=null!==(rn=null===(Ht=Sn._defaultOptions)||void 0===Ht?void 0:Ht.disableOptionCentering)&&void 0!==rn&&rn,Sn.ariaLabel="",Sn.optionSelectionChanges=(0,O.P)(function(){var ft=Sn.options;return ft?ft.changes.pipe((0,j.O)(ft),(0,K.w)(function(){return L.T.apply(void 0,(0,V.Z)(ft.map(function(dt){return dt.onSelectionChange})))})):Sn._ngZone.onStable.pipe((0,W.q)(1),(0,K.w)(function(){return Sn.optionSelectionChanges}))}),Sn.openedChange=new M.vpe,Sn._openedStream=Sn.openedChange.pipe((0,J.h)(function(ft){return ft}),(0,oe.U)(function(){})),Sn._closedStream=Sn.openedChange.pipe((0,J.h)(function(ft){return!ft}),(0,oe.U)(function(){})),Sn.selectionChange=new M.vpe,Sn.valueChange=new M.vpe,Sn.ngControl&&(Sn.ngControl.valueAccessor=(0,T.Z)(Sn)),null!=(null==xn?void 0:xn.typeaheadDebounceInterval)&&(Sn._typeaheadDebounceInterval=xn.typeaheadDebounceInterval),Sn._scrollStrategyFactory=In,Sn._scrollStrategy=Sn._scrollStrategyFactory(),Sn.tabIndex=parseInt(Cn)||0,Sn.id=Sn.id,Sn}return(0,Z.Z)(Te,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(ve){this._placeholder=ve,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(ve){this._required=(0,N.Ig)(ve),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(ve){this._multiple=(0,N.Ig)(ve)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(ve){this._disableOptionCentering=(0,N.Ig)(ve)}},{key:"compareWith",get:function(){return this._compareWith},set:function(ve){this._compareWith=ve,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(ve){(ve!==this._value||this._multiple&&Array.isArray(ve))&&(this.options&&this._setSelectionByValue(ve),this._value=ve)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(ve){this._typeaheadDebounceInterval=(0,N.su)(ve)}},{key:"id",get:function(){return this._id},set:function(ve){this._id=ve||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var ve=this;this._selectionModel=new E.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,te.x)(),(0,se.R)(this._destroy)).subscribe(function(){return ve._panelDoneAnimating(ve.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var ve=this;this._initKeyManager(),this._selectionModel.changed.pipe((0,se.R)(this._destroy)).subscribe(function(Ge){Ge.added.forEach(function(Ye){return Ye.select()}),Ge.removed.forEach(function(Ye){return Ye.deselect()})}),this.options.changes.pipe((0,j.O)(null),(0,se.R)(this._destroy)).subscribe(function(){ve._resetOptions(),ve._initializeSelection()})}},{key:"ngDoCheck",value:function(){var ve=this._getTriggerAriaLabelledby();if(ve!==this._triggerAriaLabelledBy){var Ge=this._elementRef.nativeElement;this._triggerAriaLabelledBy=ve,ve?Ge.setAttribute("aria-labelledby",ve):Ge.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(ve){ve.disabled&&this.stateChanges.next(),ve.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(ve){this.value=ve}},{key:"registerOnChange",value:function(ve){this._onChange=ve}},{key:"registerOnTouched",value:function(ve){this._onTouched=ve}},{key:"setDisabledState",value:function(ve){this.disabled=ve,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var ve=this._selectionModel.selected.map(function(Ge){return Ge.viewValue});return this._isRtl()&&ve.reverse(),ve.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(ve){this.disabled||(this.panelOpen?this._handleOpenKeydown(ve):this._handleClosedKeydown(ve))}},{key:"_handleClosedKeydown",value:function(ve){var Ge=ve.keyCode,Ye=Ge===x.JH||Ge===x.LH||Ge===x.oh||Ge===x.SV,bt=Ge===x.K5||Ge===x.L_,Lt=this._keyManager;if(!Lt.isTyping()&&bt&&!(0,x.Vb)(ve)||(this.multiple||ve.altKey)&&Ye)ve.preventDefault(),this.open();else if(!this.multiple){var zt=this.selected;Lt.onKeydown(ve);var tn=this.selected;tn&&zt!==tn&&this._liveAnnouncer.announce(tn.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(ve){var Ge=this._keyManager,Ye=ve.keyCode,bt=Ye===x.JH||Ye===x.LH,Lt=Ge.isTyping();if(bt&&ve.altKey)ve.preventDefault(),this.close();else if(Lt||Ye!==x.K5&&Ye!==x.L_||!Ge.activeItem||(0,x.Vb)(ve))if(!Lt&&this._multiple&&Ye===x.A&&ve.ctrlKey){ve.preventDefault();var zt=this.options.some(function(sn){return!sn.disabled&&!sn.selected});this.options.forEach(function(sn){sn.disabled||(zt?sn.select():sn.deselect())})}else{var tn=Ge.activeItemIndex;Ge.onKeydown(ve),this._multiple&&bt&&ve.shiftKey&&Ge.activeItem&&Ge.activeItemIndex!==tn&&Ge.activeItem._selectViaInteraction()}else ve.preventDefault(),Ge.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var ve=this;this._overlayDir.positionChange.pipe((0,W.q)(1)).subscribe(function(){ve._changeDetectorRef.detectChanges(),ve._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var ve=this;Promise.resolve().then(function(){ve._setSelectionByValue(ve.ngControl?ve.ngControl.value:ve._value),ve.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(ve){var Ge=this;if(this._selectionModel.selected.forEach(function(bt){return bt.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&ve)Array.isArray(ve),ve.forEach(function(bt){return Ge._selectValue(bt)}),this._sortValues();else{var Ye=this._selectValue(ve);Ye?this._keyManager.updateActiveItem(Ye):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(ve){var Ge=this,Ye=this.options.find(function(bt){if(Ge._selectionModel.isSelected(bt))return!1;try{return null!=bt.value&&Ge._compareWith(bt.value,ve)}catch(Lt){return!1}});return Ye&&this._selectionModel.select(Ye),Ye}},{key:"_initKeyManager",value:function(){var ve=this;this._keyManager=new k.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,se.R)(this._destroy)).subscribe(function(){ve.panelOpen&&(!ve.multiple&&ve._keyManager.activeItem&&ve._keyManager.activeItem._selectViaInteraction(),ve.focus(),ve.close())}),this._keyManager.change.pipe((0,se.R)(this._destroy)).subscribe(function(){ve._panelOpen&&ve.panel?ve._scrollOptionIntoView(ve._keyManager.activeItemIndex||0):!ve._panelOpen&&!ve.multiple&&ve._keyManager.activeItem&&ve._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var ve=this,Ge=(0,L.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,se.R)(Ge)).subscribe(function(Ye){ve._onSelect(Ye.source,Ye.isUserInput),Ye.isUserInput&&!ve.multiple&&ve._panelOpen&&(ve.close(),ve.focus())}),L.T.apply(void 0,(0,V.Z)(this.options.map(function(Ye){return Ye._stateChanges}))).pipe((0,se.R)(Ge)).subscribe(function(){ve._changeDetectorRef.markForCheck(),ve.stateChanges.next()})}},{key:"_onSelect",value:function(ve,Ge){var Ye=this._selectionModel.isSelected(ve);null!=ve.value||this._multiple?(Ye!==ve.selected&&(ve.selected?this._selectionModel.select(ve):this._selectionModel.deselect(ve)),Ge&&this._keyManager.setActiveItem(ve),this.multiple&&(this._sortValues(),Ge&&this.focus())):(ve.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(ve.value)),Ye!==this._selectionModel.isSelected(ve)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var ve=this;if(this.multiple){var Ge=this.options.toArray();this._selectionModel.sort(function(Ye,bt){return ve.sortComparator?ve.sortComparator(Ye,bt,Ge):Ge.indexOf(Ye)-Ge.indexOf(bt)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(ve){var Ge;Ge=this.multiple?this.selected.map(function(Ye){return Ye.value}):this.selected?this.selected.value:ve,this._value=Ge,this.valueChange.emit(Ge),this._onChange(Ge),this.selectionChange.emit(this._getChangeEvent(Ge)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var ve;return!this._panelOpen&&!this.disabled&&(null===(ve=this.options)||void 0===ve?void 0:ve.length)>0}},{key:"focus",value:function(ve){this._elementRef.nativeElement.focus(ve)}},{key:"_getPanelAriaLabelledby",value:function(){var ve;if(this.ariaLabel)return null;var Ge=null===(ve=this._parentFormField)||void 0===ve?void 0:ve.getLabelId();return this.ariaLabelledby?(Ge?Ge+" ":"")+this.ariaLabelledby:Ge}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var ve;if(this.ariaLabel)return null;var Ge=null===(ve=this._parentFormField)||void 0===ve?void 0:ve.getLabelId(),Ye=(Ge?Ge+" ":"")+this._valueId;return this.ariaLabelledby&&(Ye+=" "+this.ariaLabelledby),Ye}},{key:"_panelDoneAnimating",value:function(ve){this.openedChange.emit(ve)}},{key:"setDescribedByIds",value:function(ve){this._ariaDescribedby=ve.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),Te}(Zn);return Wt.\u0275fac=function(rt){return new(rt||Wt)(M.Y36(g.rL),M.Y36(M.sBO),M.Y36(M.R0b),M.Y36(A.rD),M.Y36(M.SBq),M.Y36(de.Is,8),M.Y36(ue.F,8),M.Y36(ue.sg,8),M.Y36(y.G_,8),M.Y36(ue.a5,10),M.$8M("tabindex"),M.Y36(Ct),M.Y36(k.Kd),M.Y36(Ft,8))},Wt.\u0275dir=M.lG2({type:Wt,viewQuery:function(rt,Te){var re;1&rt&&(M.Gf(ae,5),M.Gf(Me,5),M.Gf(P.pI,5)),2&rt&&(M.iGM(re=M.CRH())&&(Te.trigger=re.first),M.iGM(re=M.CRH())&&(Te.panel=re.first),M.iGM(re=M.CRH())&&(Te._overlayDir=re.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[M.qOj,M.TTD]}),Wt}(),wn=function(){var Wt=function(Mt){(0,I.Z)(Te,Mt);var rt=(0,C.Z)(Te);function Te(){var re;return(0,v.Z)(this,Te),(re=rt.apply(this,arguments))._scrollTop=0,re._triggerFontSize=0,re._transformOrigin="top",re._offsetY=0,re._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],re}return(0,Z.Z)(Te,[{key:"_calculateOverlayScroll",value:function(ve,Ge,Ye){var bt=this._getItemHeight();return Math.min(Math.max(0,bt*ve-Ge+bt/2),Ye)}},{key:"ngOnInit",value:function(){var ve=this;(0,U.Z)((0,B.Z)(Te.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe((0,se.R)(this._destroy)).subscribe(function(){ve.panelOpen&&(ve._triggerRect=ve.trigger.nativeElement.getBoundingClientRect(),ve._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var ve=this;(0,U.Z)((0,B.Z)(Te.prototype),"_canOpen",this).call(this)&&((0,U.Z)((0,B.Z)(Te.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,W.q)(1)).subscribe(function(){ve._triggerFontSize&&ve._overlayDir.overlayRef&&ve._overlayDir.overlayRef.overlayElement&&(ve._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(ve._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(ve){var Ge=(0,A.CB)(ve,this.options,this.optionGroups),Ye=this._getItemHeight();this.panel.nativeElement.scrollTop=0===ve&&1===Ge?0:(0,A.jH)((ve+Ge)*Ye,Ye,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(ve){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),(0,U.Z)((0,B.Z)(Te.prototype),"_panelDoneAnimating",this).call(this,ve)}},{key:"_getChangeEvent",value:function(ve){return new En(this,ve)}},{key:"_calculateOverlayOffsetX",value:function(){var Lt,ve=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),Ge=this._viewportRuler.getViewportSize(),Ye=this._isRtl(),bt=this.multiple?56:32;if(this.multiple)Lt=40;else if(this.disableOptionCentering)Lt=16;else{var zt=this._selectionModel.selected[0]||this.options.first;Lt=zt&&zt.group?32:16}Ye||(Lt*=-1);var tn=0-(ve.left+Lt-(Ye?bt:0)),sn=ve.right+Lt-Ge.width+(Ye?0:bt);tn>0?Lt+=tn+8:sn>0&&(Lt-=sn+8),this._overlayDir.offsetX=Math.round(Lt),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(ve,Ge,Ye){var tn,bt=this._getItemHeight(),Lt=(bt-this._triggerRect.height)/2,zt=Math.floor(256/bt);return this.disableOptionCentering?0:(tn=0===this._scrollTop?ve*bt:this._scrollTop===Ye?(ve-(this._getItemCount()-zt))*bt+(bt-(this._getItemCount()*bt-256)%bt):Ge-bt/2,Math.round(-1*tn-Lt))}},{key:"_checkOverlayWithinViewport",value:function(ve){var Ge=this._getItemHeight(),Ye=this._viewportRuler.getViewportSize(),bt=this._triggerRect.top-8,Lt=Ye.height-this._triggerRect.bottom-8,zt=Math.abs(this._offsetY),sn=Math.min(this._getItemCount()*Ge,256)-zt-this._triggerRect.height;sn>Lt?this._adjustPanelUp(sn,Lt):zt>bt?this._adjustPanelDown(zt,bt,ve):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(ve,Ge){var Ye=Math.round(ve-Ge);this._scrollTop-=Ye,this._offsetY-=Ye,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(ve,Ge,Ye){var bt=Math.round(ve-Ge);if(this._scrollTop+=bt,this._offsetY+=bt,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=Ye)return this._scrollTop=Ye,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var zt,ve=this._getItemHeight(),Ge=this._getItemCount(),Ye=Math.min(Ge*ve,256),Lt=Ge*ve-Ye;zt=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),zt+=(0,A.CB)(zt,this.options,this.optionGroups);var tn=Ye/2;this._scrollTop=this._calculateOverlayScroll(zt,tn,Lt),this._offsetY=this._calculateOverlayOffsetY(zt,tn,Lt),this._checkOverlayWithinViewport(Lt)}},{key:"_getOriginBasedOnOption",value:function(){var ve=this._getItemHeight(),Ge=(ve-this._triggerRect.height)/2,Ye=Math.abs(this._offsetY)-Ge+ve/2;return"50% ".concat(Ye,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),Te}(Nn);return Wt.\u0275fac=function(){var Mt;return function(Te){return(Mt||(Mt=M.n5z(Wt)))(Te||Wt)}}(),Wt.\u0275cmp=M.Xpm({type:Wt,selectors:[["mat-select"]],contentQueries:function(rt,Te,re){var ve;1&rt&&(M.Suo(re,Rn,5),M.Suo(re,A.ey,5),M.Suo(re,A.K7,5)),2&rt&&(M.iGM(ve=M.CRH())&&(Te.customTrigger=ve.first),M.iGM(ve=M.CRH())&&(Te.options=ve),M.iGM(ve=M.CRH())&&(Te.optionGroups=ve))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(rt,Te){1&rt&&M.NdJ("keydown",function(ve){return Te._handleKeydown(ve)})("focus",function(){return Te._onFocus()})("blur",function(){return Te._onBlur()}),2&rt&&(M.uIk("id",Te.id)("tabindex",Te.tabIndex)("aria-controls",Te.panelOpen?Te.id+"-panel":null)("aria-expanded",Te.panelOpen)("aria-label",Te.ariaLabel||null)("aria-required",Te.required.toString())("aria-disabled",Te.disabled.toString())("aria-invalid",Te.errorState)("aria-describedby",Te._ariaDescribedby||null)("aria-activedescendant",Te._getAriaActiveDescendant()),M.ekj("mat-select-disabled",Te.disabled)("mat-select-invalid",Te.errorState)("mat-select-required",Te.required)("mat-select-empty",Te.empty)("mat-select-multiple",Te.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[M._Bn([{provide:y.Eo,useExisting:Wt},{provide:A.HF,useExisting:Wt}]),M.qOj],ngContentSelectors:Se,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(rt,Te){if(1&rt&&(M.F$t(Bt),M.TgZ(0,"div",0,1),M.NdJ("click",function(){return Te.toggle()}),M.TgZ(3,"div",2),M.YNc(4,ye,2,1,"span",3),M.YNc(5,_t,3,2,"span",4),M.qZA(),M.TgZ(6,"div",5),M._UZ(7,"div",6),M.qZA(),M.qZA(),M.YNc(8,yt,4,14,"ng-template",7),M.NdJ("backdropClick",function(){return Te.close()})("attach",function(){return Te._onAttached()})("detach",function(){return Te.close()})),2&rt){var re=M.MAs(1);M.uIk("aria-owns",Te.panelOpen?Te.id+"-panel":null),M.xp6(3),M.Q6J("ngSwitch",Te.empty),M.uIk("id",Te._valueId),M.xp6(1),M.Q6J("ngSwitchCase",!0),M.xp6(1),M.Q6J("ngSwitchCase",!1),M.xp6(3),M.Q6J("cdkConnectedOverlayPanelClass",Te._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",Te._scrollStrategy)("cdkConnectedOverlayOrigin",re)("cdkConnectedOverlayOpen",Te.panelOpen)("cdkConnectedOverlayPositions",Te._positions)("cdkConnectedOverlayMinWidth",null==Te._triggerRect?null:Te._triggerRect.width)("cdkConnectedOverlayOffsetY",Te._offsetY)}},directives:[P.xu,D.RF,D.n9,P.pI,D.ED,D.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[De.transformPanelWrap,De.transformPanel]},changeDetection:0}),Wt}(),yr=function(){var Wt=function Mt(){(0,v.Z)(this,Mt)};return Wt.\u0275fac=function(rt){return new(rt||Wt)},Wt.\u0275mod=M.oAB({type:Wt}),Wt.\u0275inj=M.cJS({providers:[on],imports:[[D.ez,P.U8,A.Ng,A.BQ],g.ZD,y.lN,A.Ng,A.BQ]}),Wt}()},88802:function(ce,q,f){"use strict";f.d(q,{uX:function(){return Zn},SP:function(){return re},uD:function(){return Ft},Nh:function(){return $n}}),f(88009);var B=f(10629),V=f(20901),Z=f(89200),T=f(10509),I=f(97154),C=f(18967),v=f(14105),P=f(6517),D=f(96798),M=f(80785),A=f(40098),y=f(65508),g=f(59412),k=f(38480),N=f(68707),E=f(5051),x=f(55371),S=f(33090),O=f(43161),L=f(5041),j=f(739),K=f(57682),W=f(76161),J=f(44213),oe=f(78081),te=f(15427),se=f(32819),le=f(8392),de=f(28722);function ue(Ht,rn){1&Ht&&y.Hsn(0)}var ae=["*"];function Me(Ht,rn){}var ye=function(rn){return{animationDuration:rn}},ot=function(rn,ft){return{value:rn,params:ft}},He=["tabBodyWrapper"],_t=["tabHeader"];function yt(Ht,rn){}function Bt(Ht,rn){if(1&Ht&&y.YNc(0,yt,0,0,"ng-template",9),2&Ht){var ft=y.oxw().$implicit;y.Q6J("cdkPortalOutlet",ft.templateLabel)}}function Se(Ht,rn){if(1&Ht&&y._uU(0),2&Ht){var ft=y.oxw().$implicit;y.Oqu(ft.textLabel)}}function De(Ht,rn){if(1&Ht){var ft=y.EpF();y.TgZ(0,"div",6),y.NdJ("click",function(){var Fe=y.CHM(ft),Oe=Fe.$implicit,Le=Fe.index,qe=y.oxw(),Nt=y.MAs(1);return qe._handleClick(Oe,Nt,Le)})("cdkFocusChange",function(Fe){var Le=y.CHM(ft).index;return y.oxw()._tabFocusChanged(Fe,Le)}),y.TgZ(1,"div",7),y.YNc(2,Bt,1,1,"ng-template",8),y.YNc(3,Se,1,1,"ng-template",8),y.qZA(),y.qZA()}if(2&Ht){var dt=rn.$implicit,Ue=rn.index,at=y.oxw();y.ekj("mat-tab-label-active",at.selectedIndex==Ue),y.Q6J("id",at._getTabLabelId(Ue))("disabled",dt.disabled)("matRippleDisabled",dt.disabled||at.disableRipple),y.uIk("tabIndex",at._getTabIndex(dt,Ue))("aria-posinset",Ue+1)("aria-setsize",at._tabs.length)("aria-controls",at._getTabContentId(Ue))("aria-selected",at.selectedIndex==Ue)("aria-label",dt.ariaLabel||null)("aria-labelledby",!dt.ariaLabel&&dt.ariaLabelledby?dt.ariaLabelledby:null),y.xp6(2),y.Q6J("ngIf",dt.templateLabel),y.xp6(1),y.Q6J("ngIf",!dt.templateLabel)}}function Ve(Ht,rn){if(1&Ht){var ft=y.EpF();y.TgZ(0,"mat-tab-body",10),y.NdJ("_onCentered",function(){return y.CHM(ft),y.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(Fe){return y.CHM(ft),y.oxw()._setTabBodyWrapperHeight(Fe)}),y.qZA()}if(2&Ht){var dt=rn.$implicit,Ue=rn.index,at=y.oxw();y.ekj("mat-tab-body-active",at.selectedIndex===Ue),y.Q6J("id",at._getTabContentId(Ue))("content",dt.content)("position",dt.position)("origin",dt.origin)("animationDuration",at.animationDuration),y.uIk("tabindex",null!=at.contentTabIndex&&at.selectedIndex===Ue?at.contentTabIndex:null)("aria-labelledby",at._getTabLabelId(Ue))}}var ct=["tabListContainer"],Je=["tabList"],Ut=["nextPaginator"],Et=["previousPaginator"],Kt=new y.OlP("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(ft){return{left:ft?(ft.offsetLeft||0)+"px":"0",width:ft?(ft.offsetWidth||0)+"px":"0"}}}}),St=function(){var Ht=function(){function rn(ft,dt,Ue,at){(0,C.Z)(this,rn),this._elementRef=ft,this._ngZone=dt,this._inkBarPositioner=Ue,this._animationMode=at}return(0,v.Z)(rn,[{key:"alignToElement",value:function(dt){var Ue=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return Ue._setStyles(dt)})}):this._setStyles(dt)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(dt){var Ue=this._inkBarPositioner(dt),at=this._elementRef.nativeElement;at.style.left=Ue.left,at.style.width=Ue.width}}]),rn}();return Ht.\u0275fac=function(ft){return new(ft||Ht)(y.Y36(y.SBq),y.Y36(y.R0b),y.Y36(Kt),y.Y36(k.Qb,8))},Ht.\u0275dir=y.lG2({type:Ht,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(ft,dt){2&ft&&y.ekj("_mat-animation-noopable","NoopAnimations"===dt._animationMode)}}),Ht}(),qt=new y.OlP("MatTabContent"),en=new y.OlP("MatTabLabel"),Ft=function(){var Ht=function(rn){(0,T.Z)(dt,rn);var ft=(0,I.Z)(dt);function dt(){return(0,C.Z)(this,dt),ft.apply(this,arguments)}return dt}(M.ig);return Ht.\u0275fac=function(){var rn;return function(dt){return(rn||(rn=y.n5z(Ht)))(dt||Ht)}}(),Ht.\u0275dir=y.lG2({type:Ht,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[y._Bn([{provide:en,useExisting:Ht}]),y.qOj]}),Ht}(),on=(0,g.Id)(function(){return function Ht(){(0,C.Z)(this,Ht)}}()),En=new y.OlP("MAT_TAB_GROUP"),Zn=function(){var Ht=function(rn){(0,T.Z)(dt,rn);var ft=(0,I.Z)(dt);function dt(Ue,at){var xe;return(0,C.Z)(this,dt),(xe=ft.call(this))._viewContainerRef=Ue,xe._closestTabGroup=at,xe.textLabel="",xe._contentPortal=null,xe._stateChanges=new N.xQ,xe.position=null,xe.origin=null,xe.isActive=!1,xe}return(0,v.Z)(dt,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(at){this._setTemplateLabelInput(at)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(at){(at.hasOwnProperty("textLabel")||at.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new M.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(at){at&&(this._templateLabel=at)}}]),dt}(on);return Ht.\u0275fac=function(ft){return new(ft||Ht)(y.Y36(y.s_b),y.Y36(En,8))},Ht.\u0275cmp=y.Xpm({type:Ht,selectors:[["mat-tab"]],contentQueries:function(ft,dt,Ue){var at;1&ft&&(y.Suo(Ue,en,5),y.Suo(Ue,qt,7,y.Rgc)),2&ft&&(y.iGM(at=y.CRH())&&(dt.templateLabel=at.first),y.iGM(at=y.CRH())&&(dt._explicitContent=at.first))},viewQuery:function(ft,dt){var Ue;1&ft&&y.Gf(y.Rgc,7),2&ft&&y.iGM(Ue=y.CRH())&&(dt._implicitContent=Ue.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[y.qOj,y.TTD],ngContentSelectors:ae,decls:1,vars:0,template:function(ft,dt){1&ft&&(y.F$t(),y.YNc(0,ue,1,0,"ng-template"))},encapsulation:2}),Ht}(),Rn={translateTab:(0,j.X$)("translateTab",[(0,j.SB)("center, void, left-origin-center, right-origin-center",(0,j.oB)({transform:"none"})),(0,j.SB)("left",(0,j.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,j.SB)("right",(0,j.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,j.eR)("* => left, * => right, left => center, right => center",(0,j.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,j.eR)("void => left-origin-center",[(0,j.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,j.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,j.eR)("void => right-origin-center",[(0,j.oB)({transform:"translate3d(100%, 0, 0)"}),(0,j.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},tr=function(){var Ht=function(rn){(0,T.Z)(dt,rn);var ft=(0,I.Z)(dt);function dt(Ue,at,xe,Fe){var Oe;return(0,C.Z)(this,dt),(Oe=ft.call(this,Ue,at,Fe))._host=xe,Oe._centeringSub=E.w.EMPTY,Oe._leavingSub=E.w.EMPTY,Oe}return(0,v.Z)(dt,[{key:"ngOnInit",value:function(){var at=this;(0,V.Z)((0,Z.Z)(dt.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe((0,K.O)(this._host._isCenterPosition(this._host._position))).subscribe(function(xe){xe&&!at.hasAttached()&&at.attach(at._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){at.detach()})}},{key:"ngOnDestroy",value:function(){(0,V.Z)((0,Z.Z)(dt.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),dt}(M.Pl);return Ht.\u0275fac=function(ft){return new(ft||Ht)(y.Y36(y._Vd),y.Y36(y.s_b),y.Y36((0,y.Gpc)(function(){return wn})),y.Y36(A.K0))},Ht.\u0275dir=y.lG2({type:Ht,selectors:[["","matTabBodyHost",""]],features:[y.qOj]}),Ht}(),Nn=function(){var Ht=function(){function rn(ft,dt,Ue){var at=this;(0,C.Z)(this,rn),this._elementRef=ft,this._dir=dt,this._dirChangeSubscription=E.w.EMPTY,this._translateTabComplete=new N.xQ,this._onCentering=new y.vpe,this._beforeCentering=new y.vpe,this._afterLeavingCenter=new y.vpe,this._onCentered=new y.vpe(!0),this.animationDuration="500ms",dt&&(this._dirChangeSubscription=dt.change.subscribe(function(xe){at._computePositionAnimationState(xe),Ue.markForCheck()})),this._translateTabComplete.pipe((0,W.x)(function(xe,Fe){return xe.fromState===Fe.fromState&&xe.toState===Fe.toState})).subscribe(function(xe){at._isCenterPosition(xe.toState)&&at._isCenterPosition(at._position)&&at._onCentered.emit(),at._isCenterPosition(xe.fromState)&&!at._isCenterPosition(at._position)&&at._afterLeavingCenter.emit()})}return(0,v.Z)(rn,[{key:"position",set:function(dt){this._positionIndex=dt,this._computePositionAnimationState()}},{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(dt){var Ue=this._isCenterPosition(dt.toState);this._beforeCentering.emit(Ue),Ue&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(dt){return"center"==dt||"left-origin-center"==dt||"right-origin-center"==dt}},{key:"_computePositionAnimationState",value:function(){var dt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==dt?"left":"right":this._positionIndex>0?"ltr"==dt?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(dt){var Ue=this._getLayoutDirection();return"ltr"==Ue&&dt<=0||"rtl"==Ue&&dt>0?"left-origin-center":"right-origin-center"}}]),rn}();return Ht.\u0275fac=function(ft){return new(ft||Ht)(y.Y36(y.SBq),y.Y36(le.Is,8),y.Y36(y.sBO))},Ht.\u0275dir=y.lG2({type:Ht,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Ht}(),wn=function(){var Ht=function(rn){(0,T.Z)(dt,rn);var ft=(0,I.Z)(dt);function dt(Ue,at,xe){return(0,C.Z)(this,dt),ft.call(this,Ue,at,xe)}return dt}(Nn);return Ht.\u0275fac=function(ft){return new(ft||Ht)(y.Y36(y.SBq),y.Y36(le.Is,8),y.Y36(y.sBO))},Ht.\u0275cmp=y.Xpm({type:Ht,selectors:[["mat-tab-body"]],viewQuery:function(ft,dt){var Ue;1&ft&&y.Gf(M.Pl,5),2&ft&&y.iGM(Ue=y.CRH())&&(dt._portalHost=Ue.first)},hostAttrs:[1,"mat-tab-body"],features:[y.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(ft,dt){1&ft&&(y.TgZ(0,"div",0,1),y.NdJ("@translateTab.start",function(at){return dt._onTranslateTabStarted(at)})("@translateTab.done",function(at){return dt._translateTabComplete.next(at)}),y.YNc(2,Me,0,0,"ng-template",2),y.qZA()),2&ft&&y.Q6J("@translateTab",y.WLB(3,ot,dt._position,y.VKq(1,ye,dt.animationDuration)))},directives:[tr],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Rn.translateTab]}}),Ht}(),yr=new y.OlP("MAT_TABS_CONFIG"),Wt=0,Mt=function Ht(){(0,C.Z)(this,Ht)},rt=(0,g.pj)((0,g.Kr)(function(){return function Ht(rn){(0,C.Z)(this,Ht),this._elementRef=rn}}()),"primary"),Te=function(){var Ht=function(rn){(0,T.Z)(dt,rn);var ft=(0,I.Z)(dt);function dt(Ue,at,xe,Fe){var Oe,Le;return(0,C.Z)(this,dt),(Oe=ft.call(this,Ue))._changeDetectorRef=at,Oe._animationMode=Fe,Oe._tabs=new y.n_E,Oe._indexToSelect=0,Oe._tabBodyWrapperHeight=0,Oe._tabsSubscription=E.w.EMPTY,Oe._tabLabelSubscription=E.w.EMPTY,Oe._selectedIndex=null,Oe.headerPosition="above",Oe.selectedIndexChange=new y.vpe,Oe.focusChange=new y.vpe,Oe.animationDone=new y.vpe,Oe.selectedTabChange=new y.vpe(!0),Oe._groupId=Wt++,Oe.animationDuration=xe&&xe.animationDuration?xe.animationDuration:"500ms",Oe.disablePagination=!(!xe||null==xe.disablePagination)&&xe.disablePagination,Oe.dynamicHeight=!(!xe||null==xe.dynamicHeight)&&xe.dynamicHeight,Oe.contentTabIndex=null!==(Le=null==xe?void 0:xe.contentTabIndex)&&void 0!==Le?Le:null,Oe}return(0,v.Z)(dt,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(at){this._dynamicHeight=(0,oe.Ig)(at)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(at){this._indexToSelect=(0,oe.su)(at,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(at){this._animationDuration=/^\d+$/.test(at)?at+"ms":at}},{key:"contentTabIndex",get:function(){return this._contentTabIndex},set:function(at){this._contentTabIndex=(0,oe.su)(at,null)}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(at){var xe=this._elementRef.nativeElement;xe.classList.remove("mat-background-".concat(this.backgroundColor)),at&&xe.classList.add("mat-background-".concat(at)),this._backgroundColor=at}},{key:"ngAfterContentChecked",value:function(){var at=this,xe=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=xe){var Fe=null==this._selectedIndex;if(!Fe){this.selectedTabChange.emit(this._createChangeEvent(xe));var Oe=this._tabBodyWrapper.nativeElement;Oe.style.minHeight=Oe.clientHeight+"px"}Promise.resolve().then(function(){at._tabs.forEach(function(Le,qe){return Le.isActive=qe===xe}),Fe||(at.selectedIndexChange.emit(xe),at._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(Le,qe){Le.position=qe-xe,null!=at._selectedIndex&&0==Le.position&&!Le.origin&&(Le.origin=xe-at._selectedIndex)}),this._selectedIndex!==xe&&(this._selectedIndex=xe,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var at=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(at._clampTabIndex(at._indexToSelect)===at._selectedIndex)for(var Fe=at._tabs.toArray(),Oe=0;Oe<Fe.length;Oe++)if(Fe[Oe].isActive){at._indexToSelect=at._selectedIndex=Oe;break}at._changeDetectorRef.markForCheck()})}},{key:"_subscribeToAllTabChanges",value:function(){var at=this;this._allTabs.changes.pipe((0,K.O)(this._allTabs)).subscribe(function(xe){at._tabs.reset(xe.filter(function(Fe){return Fe._closestTabGroup===at||!Fe._closestTabGroup})),at._tabs.notifyOnChanges()})}},{key:"ngOnDestroy",value:function(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}},{key:"realignInkBar",value:function(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}},{key:"focusTab",value:function(at){var xe=this._tabHeader;xe&&(xe.focusIndex=at)}},{key:"_focusChanged",value:function(at){this.focusChange.emit(this._createChangeEvent(at))}},{key:"_createChangeEvent",value:function(at){var xe=new Mt;return xe.index=at,this._tabs&&this._tabs.length&&(xe.tab=this._tabs.toArray()[at]),xe}},{key:"_subscribeToTabLabels",value:function(){var at=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=x.T.apply(void 0,(0,B.Z)(this._tabs.map(function(xe){return xe._stateChanges}))).subscribe(function(){return at._changeDetectorRef.markForCheck()})}},{key:"_clampTabIndex",value:function(at){return Math.min(this._tabs.length-1,Math.max(at||0,0))}},{key:"_getTabLabelId",value:function(at){return"mat-tab-label-".concat(this._groupId,"-").concat(at)}},{key:"_getTabContentId",value:function(at){return"mat-tab-content-".concat(this._groupId,"-").concat(at)}},{key:"_setTabBodyWrapperHeight",value:function(at){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var xe=this._tabBodyWrapper.nativeElement;xe.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(xe.style.height=at+"px")}}},{key:"_removeTabBodyWrapperHeight",value:function(){var at=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=at.clientHeight,at.style.height="",this.animationDone.emit()}},{key:"_handleClick",value:function(at,xe,Fe){at.disabled||(this.selectedIndex=xe.focusIndex=Fe)}},{key:"_getTabIndex",value:function(at,xe){return at.disabled?null:this.selectedIndex===xe?0:-1}},{key:"_tabFocusChanged",value:function(at,xe){at&&"mouse"!==at&&"touch"!==at&&(this._tabHeader.focusIndex=xe)}}]),dt}(rt);return Ht.\u0275fac=function(ft){return new(ft||Ht)(y.Y36(y.SBq),y.Y36(y.sBO),y.Y36(yr,8),y.Y36(k.Qb,8))},Ht.\u0275dir=y.lG2({type:Ht,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",contentTabIndex:"contentTabIndex",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[y.qOj]}),Ht}(),re=function(){var Ht=function(rn){(0,T.Z)(dt,rn);var ft=(0,I.Z)(dt);function dt(Ue,at,xe,Fe){return(0,C.Z)(this,dt),ft.call(this,Ue,at,xe,Fe)}return dt}(Te);return Ht.\u0275fac=function(ft){return new(ft||Ht)(y.Y36(y.SBq),y.Y36(y.sBO),y.Y36(yr,8),y.Y36(k.Qb,8))},Ht.\u0275cmp=y.Xpm({type:Ht,selectors:[["mat-tab-group"]],contentQueries:function(ft,dt,Ue){var at;1&ft&&y.Suo(Ue,Zn,5),2&ft&&y.iGM(at=y.CRH())&&(dt._allTabs=at)},viewQuery:function(ft,dt){var Ue;1&ft&&(y.Gf(He,5),y.Gf(_t,5)),2&ft&&(y.iGM(Ue=y.CRH())&&(dt._tabBodyWrapper=Ue.first),y.iGM(Ue=y.CRH())&&(dt._tabHeader=Ue.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(ft,dt){2&ft&&y.ekj("mat-tab-group-dynamic-height",dt.dynamicHeight)("mat-tab-group-inverted-header","below"===dt.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[y._Bn([{provide:En,useExisting:Ht}]),y.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(ft,dt){1&ft&&(y.TgZ(0,"mat-tab-header",0,1),y.NdJ("indexFocused",function(at){return dt._focusChanged(at)})("selectFocusedIndex",function(at){return dt.selectedIndex=at}),y.YNc(2,De,4,14,"div",2),y.qZA(),y.TgZ(3,"div",3,4),y.YNc(5,Ve,1,9,"mat-tab-body",5),y.qZA()),2&ft&&(y.Q6J("selectedIndex",dt.selectedIndex||0)("disableRipple",dt.disableRipple)("disablePagination",dt.disablePagination),y.xp6(2),y.Q6J("ngForOf",dt._tabs),y.xp6(1),y.ekj("_mat-animation-noopable","NoopAnimations"===dt._animationMode),y.xp6(2),y.Q6J("ngForOf",dt._tabs))},directives:function(){return[hn,A.sg,Ge,g.wG,P.kH,A.O5,M.Pl,wn]},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}),Ht}(),ve=(0,g.Id)(function(){return function Ht(){(0,C.Z)(this,Ht)}}()),Ge=function(){var Ht=function(rn){(0,T.Z)(dt,rn);var ft=(0,I.Z)(dt);function dt(Ue){var at;return(0,C.Z)(this,dt),(at=ft.call(this)).elementRef=Ue,at}return(0,v.Z)(dt,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),dt}(ve);return Ht.\u0275fac=function(ft){return new(ft||Ht)(y.Y36(y.SBq))},Ht.\u0275dir=y.lG2({type:Ht,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(ft,dt){2&ft&&(y.uIk("aria-disabled",!!dt.disabled),y.ekj("mat-tab-disabled",dt.disabled))},inputs:{disabled:"disabled"},features:[y.qOj]}),Ht}(),Ye=(0,te.i$)({passive:!0}),tn=function(){var Ht=function(){function rn(ft,dt,Ue,at,xe,Fe,Oe){var Le=this;(0,C.Z)(this,rn),this._elementRef=ft,this._changeDetectorRef=dt,this._viewportRuler=Ue,this._dir=at,this._ngZone=xe,this._platform=Fe,this._animationMode=Oe,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new N.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new N.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new y.vpe,this.indexFocused=new y.vpe,xe.runOutsideAngular(function(){(0,S.R)(ft.nativeElement,"mouseleave").pipe((0,J.R)(Le._destroyed)).subscribe(function(){Le._stopInterval()})})}return(0,v.Z)(rn,[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(dt){dt=(0,oe.su)(dt),this._selectedIndex!=dt&&(this._selectedIndexChanged=!0,this._selectedIndex=dt,this._keyManager&&this._keyManager.updateActiveItem(dt))}},{key:"ngAfterViewInit",value:function(){var dt=this;(0,S.R)(this._previousPaginator.nativeElement,"touchstart",Ye).pipe((0,J.R)(this._destroyed)).subscribe(function(){dt._handlePaginatorPress("before")}),(0,S.R)(this._nextPaginator.nativeElement,"touchstart",Ye).pipe((0,J.R)(this._destroyed)).subscribe(function(){dt._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var dt=this,Ue=this._dir?this._dir.change:(0,O.of)("ltr"),at=this._viewportRuler.change(150),xe=function(){dt.updatePagination(),dt._alignInkBarToSelectedTab()};this._keyManager=new P.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(xe):xe(),(0,x.T)(Ue,at,this._items.changes).pipe((0,J.R)(this._destroyed)).subscribe(function(){dt._ngZone.run(function(){return Promise.resolve().then(xe)}),dt._keyManager.withHorizontalOrientation(dt._getLayoutDirection())}),this._keyManager.change.pipe((0,J.R)(this._destroyed)).subscribe(function(Fe){dt.indexFocused.emit(Fe),dt._setTabFocus(Fe)})}},{key:"ngAfterContentChecked",value: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())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(dt){if(!(0,se.Vb)(dt))switch(dt.keyCode){case se.K5:case se.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(dt));break;default:this._keyManager.onKeydown(dt)}}},{key:"_onContentChanges",value:function(){var dt=this,Ue=this._elementRef.nativeElement.textContent;Ue!==this._currentTextContent&&(this._currentTextContent=Ue||"",this._ngZone.run(function(){dt.updatePagination(),dt._alignInkBarToSelectedTab(),dt._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(dt){!this._isValidIndex(dt)||this.focusIndex===dt||!this._keyManager||this._keyManager.setActiveItem(dt)}},{key:"_isValidIndex",value:function(dt){if(!this._items)return!0;var Ue=this._items?this._items.toArray()[dt]:null;return!!Ue&&!Ue.disabled}},{key:"_setTabFocus",value:function(dt){if(this._showPaginationControls&&this._scrollToLabel(dt),this._items&&this._items.length){this._items.toArray()[dt].focus();var Ue=this._tabListContainer.nativeElement,at=this._getLayoutDirection();Ue.scrollLeft="ltr"==at?0:Ue.scrollWidth-Ue.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var dt=this.scrollDistance,Ue="ltr"===this._getLayoutDirection()?-dt:dt;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(Ue),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(dt){this._scrollTo(dt)}},{key:"_scrollHeader",value:function(dt){return this._scrollTo(this._scrollDistance+("before"==dt?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(dt){this._stopInterval(),this._scrollHeader(dt)}},{key:"_scrollToLabel",value:function(dt){if(!this.disablePagination){var Ue=this._items?this._items.toArray()[dt]:null;if(Ue){var Le,qe,at=this._tabListContainer.nativeElement.offsetWidth,xe=Ue.elementRef.nativeElement,Fe=xe.offsetLeft,Oe=xe.offsetWidth;"ltr"==this._getLayoutDirection()?qe=(Le=Fe)+Oe:Le=(qe=this._tabList.nativeElement.offsetWidth-Fe)-Oe;var Nt=this.scrollDistance,cn=this.scrollDistance+at;Le<Nt?this.scrollDistance-=Nt-Le+60:qe>cn&&(this.scrollDistance+=qe-cn+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var dt=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;dt||(this.scrollDistance=0),dt!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=dt}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var dt=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Ue=dt?dt.elementRef.nativeElement:null;Ue?this._inkBar.alignToElement(Ue):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(dt,Ue){var at=this;Ue&&null!=Ue.button&&0!==Ue.button||(this._stopInterval(),(0,L.H)(650,100).pipe((0,J.R)((0,x.T)(this._stopScrolling,this._destroyed))).subscribe(function(){var xe=at._scrollHeader(dt),Oe=xe.distance;(0===Oe||Oe>=xe.maxScrollDistance)&&at._stopInterval()}))}},{key:"_scrollTo",value:function(dt){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var Ue=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Ue,dt)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Ue,distance:this._scrollDistance}}}]),rn}();return Ht.\u0275fac=function(ft){return new(ft||Ht)(y.Y36(y.SBq),y.Y36(y.sBO),y.Y36(de.rL),y.Y36(le.Is,8),y.Y36(y.R0b),y.Y36(te.t4),y.Y36(k.Qb,8))},Ht.\u0275dir=y.lG2({type:Ht,inputs:{disablePagination:"disablePagination"}}),Ht}(),sn=function(){var Ht=function(rn){(0,T.Z)(dt,rn);var ft=(0,I.Z)(dt);function dt(Ue,at,xe,Fe,Oe,Le,qe){var Nt;return(0,C.Z)(this,dt),(Nt=ft.call(this,Ue,at,xe,Fe,Oe,Le,qe))._disableRipple=!1,Nt}return(0,v.Z)(dt,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(at){this._disableRipple=(0,oe.Ig)(at)}},{key:"_itemSelected",value:function(at){at.preventDefault()}}]),dt}(tn);return Ht.\u0275fac=function(ft){return new(ft||Ht)(y.Y36(y.SBq),y.Y36(y.sBO),y.Y36(de.rL),y.Y36(le.Is,8),y.Y36(y.R0b),y.Y36(te.t4),y.Y36(k.Qb,8))},Ht.\u0275dir=y.lG2({type:Ht,inputs:{disableRipple:"disableRipple"},features:[y.qOj]}),Ht}(),hn=function(){var Ht=function(rn){(0,T.Z)(dt,rn);var ft=(0,I.Z)(dt);function dt(Ue,at,xe,Fe,Oe,Le,qe){return(0,C.Z)(this,dt),ft.call(this,Ue,at,xe,Fe,Oe,Le,qe)}return dt}(sn);return Ht.\u0275fac=function(ft){return new(ft||Ht)(y.Y36(y.SBq),y.Y36(y.sBO),y.Y36(de.rL),y.Y36(le.Is,8),y.Y36(y.R0b),y.Y36(te.t4),y.Y36(k.Qb,8))},Ht.\u0275cmp=y.Xpm({type:Ht,selectors:[["mat-tab-header"]],contentQueries:function(ft,dt,Ue){var at;1&ft&&y.Suo(Ue,Ge,4),2&ft&&y.iGM(at=y.CRH())&&(dt._items=at)},viewQuery:function(ft,dt){var Ue;1&ft&&(y.Gf(St,7),y.Gf(ct,7),y.Gf(Je,7),y.Gf(Ut,5),y.Gf(Et,5)),2&ft&&(y.iGM(Ue=y.CRH())&&(dt._inkBar=Ue.first),y.iGM(Ue=y.CRH())&&(dt._tabListContainer=Ue.first),y.iGM(Ue=y.CRH())&&(dt._tabList=Ue.first),y.iGM(Ue=y.CRH())&&(dt._nextPaginator=Ue.first),y.iGM(Ue=y.CRH())&&(dt._previousPaginator=Ue.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(ft,dt){2&ft&&y.ekj("mat-tab-header-pagination-controls-enabled",dt._showPaginationControls)("mat-tab-header-rtl","rtl"==dt._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[y.qOj],ngContentSelectors:ae,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(ft,dt){1&ft&&(y.F$t(),y.TgZ(0,"div",0,1),y.NdJ("click",function(){return dt._handlePaginatorClick("before")})("mousedown",function(at){return dt._handlePaginatorPress("before",at)})("touchend",function(){return dt._stopInterval()}),y._UZ(2,"div",2),y.qZA(),y.TgZ(3,"div",3,4),y.NdJ("keydown",function(at){return dt._handleKeydown(at)}),y.TgZ(5,"div",5,6),y.NdJ("cdkObserveContent",function(){return dt._onContentChanges()}),y.TgZ(7,"div",7),y.Hsn(8),y.qZA(),y._UZ(9,"mat-ink-bar"),y.qZA(),y.qZA(),y.TgZ(10,"div",8,9),y.NdJ("mousedown",function(at){return dt._handlePaginatorPress("after",at)})("click",function(){return dt._handlePaginatorClick("after")})("touchend",function(){return dt._stopInterval()}),y._UZ(12,"div",2),y.qZA()),2&ft&&(y.ekj("mat-tab-header-pagination-disabled",dt._disableScrollBefore),y.Q6J("matRippleDisabled",dt._disableScrollBefore||dt.disableRipple),y.xp6(5),y.ekj("_mat-animation-noopable","NoopAnimations"===dt._animationMode),y.xp6(5),y.ekj("mat-tab-header-pagination-disabled",dt._disableScrollAfter),y.Q6J("matRippleDisabled",dt._disableScrollAfter||dt.disableRipple))},directives:[g.wG,D.wD,St],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-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}.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;content:"";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}),Ht}(),$n=function(){var Ht=function rn(){(0,C.Z)(this,rn)};return Ht.\u0275fac=function(ft){return new(ft||Ht)},Ht.\u0275mod=y.oAB({type:Ht}),Ht.\u0275inj=y.cJS({imports:[[A.ez,g.BQ,M.eL,g.si,D.Q8,P.rt],g.BQ]}),Ht}()},38480:function(ce,q,f){"use strict";f.d(q,{Qb:function(){return _d},PW:function(){return au}});var U=f(27235),B=f(18967),V=f(14105),Z=f(10509),T=f(97154),I=f(65508),C=f(29176),v=f(739),P=f(20901),D=f(89200),M=f(36683),A=f(10629);function y(){return"undefined"!=typeof window&&void 0!==window.document}function g(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function k(Ce){switch(Ce.length){case 0:return new v.ZN;case 1:return Ce[0];default:return new v.ZE(Ce)}}function N(Ce,ge,Q,$){var ke=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},Be=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},ut=[],wt=[],Zt=-1,$t=null;if($.forEach(function(Dn){var Un=Dn.offset,Kn=Un==Zt,mr=Kn&&$t||{};Object.keys(Dn).forEach(function(Rr){var Sr=Rr,Mr=Dn[Rr];if("offset"!==Rr)switch(Sr=ge.normalizePropertyName(Sr,ut),Mr){case v.k1:Mr=ke[Rr];break;case v.l3:Mr=Be[Rr];break;default:Mr=ge.normalizeStyleValue(Rr,Sr,Mr,ut)}mr[Sr]=Mr}),Kn||wt.push(mr),$t=mr,Zt=Un}),ut.length){var dn="\n - ";throw new Error("Unable to animate due to the following errors:".concat(dn).concat(ut.join(dn)))}return wt}function E(Ce,ge,Q,$){switch(ge){case"start":Ce.onStart(function(){return $(Q&&x(Q,"start",Ce))});break;case"done":Ce.onDone(function(){return $(Q&&x(Q,"done",Ce))});break;case"destroy":Ce.onDestroy(function(){return $(Q&&x(Q,"destroy",Ce))})}}function x(Ce,ge,Q){var $=Q.totalTime,Be=S(Ce.element,Ce.triggerName,Ce.fromState,Ce.toState,ge||Ce.phaseName,null==$?Ce.totalTime:$,!!Q.disabled),ut=Ce._data;return null!=ut&&(Be._data=ut),Be}function S(Ce,ge,Q,$){var ke=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",Be=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,ut=arguments.length>6?arguments[6]:void 0;return{element:Ce,triggerName:ge,fromState:Q,toState:$,phaseName:ke,totalTime:Be,disabled:!!ut}}function O(Ce,ge,Q){var $;return Ce instanceof Map?($=Ce.get(ge))||Ce.set(ge,$=Q):($=Ce[ge])||($=Ce[ge]=Q),$}function L(Ce){var ge=Ce.indexOf(":");return[Ce.substring(1,ge),Ce.substr(ge+1)]}var j=function(ge,Q){return!1},W=function(ge,Q){return!1},oe=function(ge,Q,$){return[]},se=g();(se||"undefined"!=typeof Element)&&(j=y()?function(ge,Q){for(;Q&&Q!==document.documentElement;){if(Q===ge)return!0;Q=Q.parentNode||Q.host}return!1}:function(ge,Q){return ge.contains(Q)},W=function(){if(se||Element.prototype.matches)return function(Q,$){return Q.matches($)};var Ce=Element.prototype,ge=Ce.matchesSelector||Ce.mozMatchesSelector||Ce.msMatchesSelector||Ce.oMatchesSelector||Ce.webkitMatchesSelector;return ge?function(Q,$){return ge.apply(Q,[$])}:W}(),oe=function(ge,Q,$){var ke=[];if($)for(var Be=ge.querySelectorAll(Q),ut=0;ut<Be.length;ut++)ke.push(Be[ut]);else{var wt=ge.querySelector(Q);wt&&ke.push(wt)}return ke});var de=null,ue=!1;function ae(Ce){de||(de=("undefined"!=typeof document?document.body:null)||{},ue=!!de.style&&"WebkitAppearance"in de.style);var ge=!0;return de.style&&!function(Ce){return"ebkit"==Ce.substring(1,6)}(Ce)&&!(ge=Ce in de.style)&&ue&&(ge="Webkit"+Ce.charAt(0).toUpperCase()+Ce.substr(1)in de.style),ge}var ye=W,ot=j,He=oe;function _t(Ce){var ge={};return Object.keys(Ce).forEach(function(Q){var $=Q.replace(/([a-z])([A-Z])/g,"$1-$2");ge[$]=Ce[Q]}),ge}var yt=function(){var Ce=function(){function ge(){(0,B.Z)(this,ge)}return(0,V.Z)(ge,[{key:"validateStyleProperty",value:function($){return ae($)}},{key:"matchesElement",value:function($,ke){return ye($,ke)}},{key:"containsElement",value:function($,ke){return ot($,ke)}},{key:"query",value:function($,ke,Be){return He($,ke,Be)}},{key:"computeStyle",value:function($,ke,Be){return Be||""}},{key:"animate",value:function($,ke,Be,ut,wt){return new v.ZN(Be,ut)}}]),ge}();return Ce.\u0275fac=function(Q){return new(Q||Ce)},Ce.\u0275prov=I.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce}(),Bt=function(){var Ce=function ge(){(0,B.Z)(this,ge)};return Ce.NOOP=new yt,Ce}(),ct="ng-enter",Je="ng-leave",vt="ng-trigger",Kt=".ng-trigger",Vt="ng-animating",St=".ng-animating";function qt(Ce){if("number"==typeof Ce)return Ce;var ge=Ce.match(/^(-?[\.\d]+)(m?s)/);return!ge||ge.length<2?0:Ct(parseFloat(ge[1]),ge[2])}function Ct(Ce,ge){switch(ge){case"s":return 1e3*Ce;default:return Ce}}function en(Ce,ge,Q){return Ce.hasOwnProperty("duration")?Ce:function(Ce,ge,Q){var ke,Be=0,ut="";if("string"==typeof Ce){var wt=Ce.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===wt)return ge.push('The provided timing value "'.concat(Ce,'" is invalid.')),{duration:0,delay:0,easing:""};ke=Ct(parseFloat(wt[1]),wt[2]);var Zt=wt[3];null!=Zt&&(Be=Ct(parseFloat(Zt),wt[4]));var $t=wt[5];$t&&(ut=$t)}else ke=Ce;if(!Q){var dn=!1,Dn=ge.length;ke<0&&(ge.push("Duration values below 0 are not allowed for this animation step."),dn=!0),Be<0&&(ge.push("Delay values below 0 are not allowed for this animation step."),dn=!0),dn&&ge.splice(Dn,0,'The provided timing value "'.concat(Ce,'" is invalid.'))}return{duration:ke,delay:Be,easing:ut}}(Ce,ge,Q)}function on(Ce){var ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(Ce).forEach(function(Q){ge[Q]=Ce[Q]}),ge}function Zn(Ce,ge){var Q=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ge)for(var $ in Ce)Q[$]=Ce[$];else on(Ce,Q);return Q}function Rn(Ce,ge,Q){return Q?ge+":"+Q+";":""}function tr(Ce){for(var ge="",Q=0;Q<Ce.style.length;Q++){var $=Ce.style.item(Q);ge+=Rn(0,$,Ce.style.getPropertyValue($))}for(var ke in Ce.style)Ce.style.hasOwnProperty(ke)&&!ke.startsWith("_")&&(ge+=Rn(0,Ye(ke),Ce.style[ke]));Ce.setAttribute("style",ge)}function Nn(Ce,ge,Q){Ce.style&&(Object.keys(ge).forEach(function($){var ke=Ge($);Q&&!Q.hasOwnProperty($)&&(Q[$]=Ce.style[ke]),Ce.style[ke]=ge[$]}),g()&&tr(Ce))}function wn(Ce,ge){Ce.style&&(Object.keys(ge).forEach(function(Q){var $=Ge(Q);Ce.style[$]=""}),g()&&tr(Ce))}function yr(Ce){return Array.isArray(Ce)?1==Ce.length?Ce[0]:(0,v.vP)(Ce):Ce}var Mt=new RegExp("".concat("{{","\\s*(.+?)\\s*").concat("}}"),"g");function rt(Ce){var ge=[];if("string"==typeof Ce){for(var Q;Q=Mt.exec(Ce);)ge.push(Q[1]);Mt.lastIndex=0}return ge}function Te(Ce,ge,Q){var $=Ce.toString(),ke=$.replace(Mt,function(Be,ut){var wt=ge[ut];return ge.hasOwnProperty(ut)||(Q.push("Please provide a value for the animation param ".concat(ut)),wt=""),wt.toString()});return ke==$?Ce:ke}function re(Ce){for(var ge=[],Q=Ce.next();!Q.done;)ge.push(Q.value),Q=Ce.next();return ge}var ve=/-+([a-z0-9])/g;function Ge(Ce){return Ce.replace(ve,function(){for(var ge=arguments.length,Q=new Array(ge),$=0;$<ge;$++)Q[$]=arguments[$];return Q[1].toUpperCase()})}function Ye(Ce){return Ce.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function bt(Ce,ge){return 0===Ce||0===ge}function Lt(Ce,ge,Q){var $=Object.keys(Q);if($.length&&ge.length){var ke=ge[0],Be=[];if($.forEach(function(Zt){ke.hasOwnProperty(Zt)||Be.push(Zt),ke[Zt]=Q[Zt]}),Be.length)for(var ut=function(){var $t=ge[wt];Be.forEach(function(dn){$t[dn]=tn(Ce,dn)})},wt=1;wt<ge.length;wt++)ut()}return ge}function zt(Ce,ge,Q){switch(ge.type){case 7:return Ce.visitTrigger(ge,Q);case 0:return Ce.visitState(ge,Q);case 1:return Ce.visitTransition(ge,Q);case 2:return Ce.visitSequence(ge,Q);case 3:return Ce.visitGroup(ge,Q);case 4:return Ce.visitAnimate(ge,Q);case 5:return Ce.visitKeyframes(ge,Q);case 6:return Ce.visitStyle(ge,Q);case 8:return Ce.visitReference(ge,Q);case 9:return Ce.visitAnimateChild(ge,Q);case 10:return Ce.visitAnimateRef(ge,Q);case 11:return Ce.visitQuery(ge,Q);case 12:return Ce.visitStagger(ge,Q);default:throw new Error("Unable to resolve animation metadata node #".concat(ge.type))}}function tn(Ce,ge){return window.getComputedStyle(Ce)[ge]}function hn(Ce,ge){var Q=[];return"string"==typeof Ce?Ce.split(/\s*,\s*/).forEach(function($){return function(Ce,ge,Q){if(":"==Ce[0]){var $=function(Ce,ge){switch(Ce){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(Q,$){return parseFloat($)>parseFloat(Q)};case":decrement":return function(Q,$){return parseFloat($)<parseFloat(Q)};default:return ge.push('The transition alias value "'.concat(Ce,'" is not supported')),"* => *"}}(Ce,Q);if("function"==typeof $)return void ge.push($);Ce=$}var ke=Ce.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==ke||ke.length<4)return Q.push('The provided transition expression "'.concat(Ce,'" is not supported')),ge;var Be=ke[1],ut=ke[2],wt=ke[3];ge.push(Sn(Be,wt)),"<"==ut[0]&&!("*"==Be&&"*"==wt)&&ge.push(Sn(wt,Be))}($,Q,ge)}):Q.push(Ce),Q}var Yn=new Set(["true","1"]),xn=new Set(["false","0"]);function Sn(Ce,ge){var Q=Yn.has(Ce)||xn.has(Ce),$=Yn.has(ge)||xn.has(ge);return function(ke,Be){var ut="*"==Ce||Ce==ke,wt="*"==ge||ge==Be;return!ut&&Q&&"boolean"==typeof ke&&(ut=ke?Yn.has(Ce):xn.has(Ce)),!wt&&$&&"boolean"==typeof Be&&(wt=Be?Yn.has(ge):xn.has(ge)),ut&&wt}}var Ht=new RegExp("s*".concat(":self","s*,?"),"g");function rn(Ce,ge,Q){return new dt(Ce).build(ge,Q)}var dt=function(){function Ce(ge){(0,B.Z)(this,Ce),this._driver=ge}return(0,V.Z)(Ce,[{key:"build",value:function(Q,$){var ke=new xe($);return this._resetContextStyleTimingState(ke),zt(this,yr(Q),ke)}},{key:"_resetContextStyleTimingState",value:function(Q){Q.currentQuerySelector="",Q.collectedStyles={},Q.collectedStyles[""]={},Q.currentTime=0}},{key:"visitTrigger",value:function(Q,$){var ke=this,Be=$.queryCount=0,ut=$.depCount=0,wt=[],Zt=[];return"@"==Q.name.charAt(0)&&$.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),Q.definitions.forEach(function($t){if(ke._resetContextStyleTimingState($),0==$t.type){var dn=$t,Dn=dn.name;Dn.toString().split(/\s*,\s*/).forEach(function(Kn){dn.name=Kn,wt.push(ke.visitState(dn,$))}),dn.name=Dn}else if(1==$t.type){var Un=ke.visitTransition($t,$);Be+=Un.queryCount,ut+=Un.depCount,Zt.push(Un)}else $.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:Q.name,states:wt,transitions:Zt,queryCount:Be,depCount:ut,options:null}}},{key:"visitState",value:function(Q,$){var ke=this.visitStyle(Q.styles,$),Be=Q.options&&Q.options.params||null;if(ke.containsDynamicStyles){var ut=new Set,wt=Be||{};if(ke.styles.forEach(function($t){if(Oe($t)){var dn=$t;Object.keys(dn).forEach(function(Dn){rt(dn[Dn]).forEach(function(Un){wt.hasOwnProperty(Un)||ut.add(Un)})})}}),ut.size){var Zt=re(ut.values());$.errors.push('state("'.concat(Q.name,'", ...) must define default values for all the following style substitutions: ').concat(Zt.join(", ")))}}return{type:0,name:Q.name,style:ke,options:Be?{params:Be}:null}}},{key:"visitTransition",value:function(Q,$){$.queryCount=0,$.depCount=0;var ke=zt(this,yr(Q.animation),$);return{type:1,matchers:hn(Q.expr,$.errors),animation:ke,queryCount:$.queryCount,depCount:$.depCount,options:qe(Q.options)}}},{key:"visitSequence",value:function(Q,$){var ke=this;return{type:2,steps:Q.steps.map(function(Be){return zt(ke,Be,$)}),options:qe(Q.options)}}},{key:"visitGroup",value:function(Q,$){var ke=this,Be=$.currentTime,ut=0,wt=Q.steps.map(function(Zt){$.currentTime=Be;var $t=zt(ke,Zt,$);return ut=Math.max(ut,$.currentTime),$t});return $.currentTime=ut,{type:3,steps:wt,options:qe(Q.options)}}},{key:"visitAnimate",value:function(Q,$){var ke=function(Ce,ge){var Q=null;if(Ce.hasOwnProperty("duration"))Q=Ce;else if("number"==typeof Ce)return Nt(en(Ce,ge).duration,0,"");var ke=Ce;if(ke.split(/\s+/).some(function(wt){return"{"==wt.charAt(0)&&"{"==wt.charAt(1)})){var ut=Nt(0,0,"");return ut.dynamic=!0,ut.strValue=ke,ut}return Nt((Q=Q||en(ke,ge)).duration,Q.delay,Q.easing)}(Q.timings,$.errors);$.currentAnimateTimings=ke;var Be,ut=Q.styles?Q.styles:(0,v.oB)({});if(5==ut.type)Be=this.visitKeyframes(ut,$);else{var wt=Q.styles,Zt=!1;if(!wt){Zt=!0;var $t={};ke.easing&&($t.easing=ke.easing),wt=(0,v.oB)($t)}$.currentTime+=ke.duration+ke.delay;var dn=this.visitStyle(wt,$);dn.isEmptyStep=Zt,Be=dn}return $.currentAnimateTimings=null,{type:4,timings:ke,style:Be,options:null}}},{key:"visitStyle",value:function(Q,$){var ke=this._makeStyleAst(Q,$);return this._validateStyleAst(ke,$),ke}},{key:"_makeStyleAst",value:function(Q,$){var ke=[];Array.isArray(Q.styles)?Q.styles.forEach(function(wt){"string"==typeof wt?wt==v.l3?ke.push(wt):$.errors.push("The provided style string value ".concat(wt," is not allowed.")):ke.push(wt)}):ke.push(Q.styles);var Be=!1,ut=null;return ke.forEach(function(wt){if(Oe(wt)){var Zt=wt,$t=Zt.easing;if($t&&(ut=$t,delete Zt.easing),!Be)for(var dn in Zt)if(Zt[dn].toString().indexOf("{{")>=0){Be=!0;break}}}),{type:6,styles:ke,easing:ut,offset:Q.offset,containsDynamicStyles:Be,options:null}}},{key:"_validateStyleAst",value:function(Q,$){var ke=this,Be=$.currentAnimateTimings,ut=$.currentTime,wt=$.currentTime;Be&&wt>0&&(wt-=Be.duration+Be.delay),Q.styles.forEach(function(Zt){"string"!=typeof Zt&&Object.keys(Zt).forEach(function($t){if(ke._driver.validateStyleProperty($t)){var dn=$.collectedStyles[$.currentQuerySelector],Dn=dn[$t],Un=!0;Dn&&(wt!=ut&&wt>=Dn.startTime&&ut<=Dn.endTime&&($.errors.push('The CSS property "'.concat($t,'" that exists between the times of "').concat(Dn.startTime,'ms" and "').concat(Dn.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(wt,'ms" and "').concat(ut,'ms"')),Un=!1),wt=Dn.startTime),Un&&(dn[$t]={startTime:wt,endTime:ut}),$.options&&function(Ce,ge,Q){var $=ge.params||{},ke=rt(Ce);ke.length&&ke.forEach(function(Be){$.hasOwnProperty(Be)||Q.push("Unable to resolve the local animation param ".concat(Be," in the given list of values"))})}(Zt[$t],$.options,$.errors)}else $.errors.push('The provided animation property "'.concat($t,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(Q,$){var ke=this,Be={type:5,styles:[],options:null};if(!$.currentAnimateTimings)return $.errors.push("keyframes() must be placed inside of a call to animate()"),Be;var wt=0,Zt=[],$t=!1,dn=!1,Dn=0,Un=Q.steps.map(function(Ti){var ai=ke._makeStyleAst(Ti,$),Ao=null!=ai.offset?ai.offset:function(Ce){if("string"==typeof Ce)return null;var ge=null;if(Array.isArray(Ce))Ce.forEach(function($){if(Oe($)&&$.hasOwnProperty("offset")){var ke=$;ge=parseFloat(ke.offset),delete ke.offset}});else if(Oe(Ce)&&Ce.hasOwnProperty("offset")){var Q=Ce;ge=parseFloat(Q.offset),delete Q.offset}return ge}(ai.styles),Ne=0;return null!=Ao&&(wt++,Ne=ai.offset=Ao),dn=dn||Ne<0||Ne>1,$t=$t||Ne<Dn,Dn=Ne,Zt.push(Ne),ai});dn&&$.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),$t&&$.errors.push("Please ensure that all keyframe offsets are in order");var Kn=Q.steps.length,mr=0;wt>0&&wt<Kn?$.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==wt&&(mr=1/(Kn-1));var Rr=Kn-1,Sr=$.currentTime,Mr=$.currentAnimateTimings,ci=Mr.duration;return Un.forEach(function(Ti,ai){var Ao=mr>0?ai==Rr?1:mr*ai:Zt[ai],Ne=Ao*ci;$.currentTime=Sr+Mr.delay+Ne,Mr.duration=Ne,ke._validateStyleAst(Ti,$),Ti.offset=Ao,Be.styles.push(Ti)}),Be}},{key:"visitReference",value:function(Q,$){return{type:8,animation:zt(this,yr(Q.animation),$),options:qe(Q.options)}}},{key:"visitAnimateChild",value:function(Q,$){return $.depCount++,{type:9,options:qe(Q.options)}}},{key:"visitAnimateRef",value:function(Q,$){return{type:10,animation:this.visitReference(Q.animation,$),options:qe(Q.options)}}},{key:"visitQuery",value:function(Q,$){var ke=$.currentQuerySelector,Be=Q.options||{};$.queryCount++,$.currentQuery=Q;var ut=function(Ce){var ge=!!Ce.split(/\s*,\s*/).find(function(Q){return":self"==Q});return ge&&(Ce=Ce.replace(Ht,"")),[Ce=Ce.replace(/@\*/g,Kt).replace(/@\w+/g,function(Q){return Kt+"-"+Q.substr(1)}).replace(/:animating/g,St),ge]}(Q.selector),wt=(0,U.Z)(ut,2),Zt=wt[0],$t=wt[1];$.currentQuerySelector=ke.length?ke+" "+Zt:Zt,O($.collectedStyles,$.currentQuerySelector,{});var dn=zt(this,yr(Q.animation),$);return $.currentQuery=null,$.currentQuerySelector=ke,{type:11,selector:Zt,limit:Be.limit||0,optional:!!Be.optional,includeSelf:$t,animation:dn,originalSelector:Q.selector,options:qe(Q.options)}}},{key:"visitStagger",value:function(Q,$){$.currentQuery||$.errors.push("stagger() can only be used inside of query()");var ke="full"===Q.timings?{duration:0,delay:0,easing:"full"}:en(Q.timings,$.errors,!0);return{type:12,animation:zt(this,yr(Q.animation),$),timings:ke,options:null}}}]),Ce}(),xe=function Ce(ge){(0,B.Z)(this,Ce),this.errors=ge,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function Oe(Ce){return!Array.isArray(Ce)&&"object"==typeof Ce}function qe(Ce){return Ce?(Ce=on(Ce)).params&&(Ce.params=function(Ce){return Ce?on(Ce):null}(Ce.params)):Ce={},Ce}function Nt(Ce,ge,Q){return{duration:Ce,delay:ge,easing:Q}}function cn(Ce,ge,Q,$,ke,Be){var ut=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,wt=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:Ce,keyframes:ge,preStyleProps:Q,postStyleProps:$,duration:ke,delay:Be,totalTime:ke+Be,easing:ut,subTimeline:wt}}var Jn=function(){function Ce(){(0,B.Z)(this,Ce),this._map=new Map}return(0,V.Z)(Ce,[{key:"consume",value:function(Q){var $=this._map.get(Q);return $?this._map.delete(Q):$=[],$}},{key:"append",value:function(Q,$){var ke,Be=this._map.get(Q);Be||this._map.set(Q,Be=[]),(ke=Be).push.apply(ke,(0,A.Z)($))}},{key:"has",value:function(Q){return this._map.has(Q)}},{key:"clear",value:function(){this._map.clear()}}]),Ce}(),Cr=new RegExp(":enter","g"),co=new RegExp(":leave","g");function Ni(Ce,ge,Q,$,ke){var Be=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},ut=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},wt=arguments.length>7?arguments[7]:void 0,Zt=arguments.length>8?arguments[8]:void 0,$t=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new bo).buildKeyframes(Ce,ge,Q,$,ke,Be,ut,wt,Zt,$t)}var bo=function(){function Ce(){(0,B.Z)(this,Ce)}return(0,V.Z)(Ce,[{key:"buildKeyframes",value:function(Q,$,ke,Be,ut,wt,Zt,$t,dn){var Dn=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];dn=dn||new Jn;var Un=new Xo(Q,$,dn,Be,ut,Dn,[]);Un.options=$t,Un.currentTimeline.setStyles([wt],null,Un.errors,$t),zt(this,ke,Un);var Kn=Un.timelines.filter(function(Rr){return Rr.containsAnimation()});if(Kn.length&&Object.keys(Zt).length){var mr=Kn[Kn.length-1];mr.allowOnlyTimelineStyles()||mr.setStyles([Zt],null,Un.errors,$t)}return Kn.length?Kn.map(function(Rr){return Rr.buildKeyframes()}):[cn($,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(Q,$){}},{key:"visitState",value:function(Q,$){}},{key:"visitTransition",value:function(Q,$){}},{key:"visitAnimateChild",value:function(Q,$){var ke=$.subInstructions.consume($.element);if(ke){var Be=$.createSubContext(Q.options),ut=$.currentTimeline.currentTime,wt=this._visitSubInstructions(ke,Be,Be.options);ut!=wt&&$.transformIntoNewTimeline(wt)}$.previousNode=Q}},{key:"visitAnimateRef",value:function(Q,$){var ke=$.createSubContext(Q.options);ke.transformIntoNewTimeline(),this.visitReference(Q.animation,ke),$.transformIntoNewTimeline(ke.currentTimeline.currentTime),$.previousNode=Q}},{key:"_visitSubInstructions",value:function(Q,$,ke){var ut=$.currentTimeline.currentTime,wt=null!=ke.duration?qt(ke.duration):null,Zt=null!=ke.delay?qt(ke.delay):null;return 0!==wt&&Q.forEach(function($t){var dn=$.appendInstructionToTimeline($t,wt,Zt);ut=Math.max(ut,dn.duration+dn.delay)}),ut}},{key:"visitReference",value:function(Q,$){$.updateOptions(Q.options,!0),zt(this,Q.animation,$),$.previousNode=Q}},{key:"visitSequence",value:function(Q,$){var ke=this,Be=$.subContextCount,ut=$,wt=Q.options;if(wt&&(wt.params||wt.delay)&&((ut=$.createSubContext(wt)).transformIntoNewTimeline(),null!=wt.delay)){6==ut.previousNode.type&&(ut.currentTimeline.snapshotCurrentStyles(),ut.previousNode=po);var Zt=qt(wt.delay);ut.delayNextStep(Zt)}Q.steps.length&&(Q.steps.forEach(function($t){return zt(ke,$t,ut)}),ut.currentTimeline.applyStylesToKeyframe(),ut.subContextCount>Be&&ut.transformIntoNewTimeline()),$.previousNode=Q}},{key:"visitGroup",value:function(Q,$){var ke=this,Be=[],ut=$.currentTimeline.currentTime,wt=Q.options&&Q.options.delay?qt(Q.options.delay):0;Q.steps.forEach(function(Zt){var $t=$.createSubContext(Q.options);wt&&$t.delayNextStep(wt),zt(ke,Zt,$t),ut=Math.max(ut,$t.currentTimeline.currentTime),Be.push($t.currentTimeline)}),Be.forEach(function(Zt){return $.currentTimeline.mergeTimelineCollectedStyles(Zt)}),$.transformIntoNewTimeline(ut),$.previousNode=Q}},{key:"_visitTiming",value:function(Q,$){if(Q.dynamic){var ke=Q.strValue;return en($.params?Te(ke,$.params,$.errors):ke,$.errors)}return{duration:Q.duration,delay:Q.delay,easing:Q.easing}}},{key:"visitAnimate",value:function(Q,$){var ke=$.currentAnimateTimings=this._visitTiming(Q.timings,$),Be=$.currentTimeline;ke.delay&&($.incrementTime(ke.delay),Be.snapshotCurrentStyles());var ut=Q.style;5==ut.type?this.visitKeyframes(ut,$):($.incrementTime(ke.duration),this.visitStyle(ut,$),Be.applyStylesToKeyframe()),$.currentAnimateTimings=null,$.previousNode=Q}},{key:"visitStyle",value:function(Q,$){var ke=$.currentTimeline,Be=$.currentAnimateTimings;!Be&&ke.getCurrentStyleProperties().length&&ke.forwardFrame();var ut=Be&&Be.easing||Q.easing;Q.isEmptyStep?ke.applyEmptyStep(ut):ke.setStyles(Q.styles,ut,$.errors,$.options),$.previousNode=Q}},{key:"visitKeyframes",value:function(Q,$){var ke=$.currentAnimateTimings,Be=$.currentTimeline.duration,ut=ke.duration,Zt=$.createSubContext().currentTimeline;Zt.easing=ke.easing,Q.styles.forEach(function($t){Zt.forwardTime(($t.offset||0)*ut),Zt.setStyles($t.styles,$t.easing,$.errors,$.options),Zt.applyStylesToKeyframe()}),$.currentTimeline.mergeTimelineCollectedStyles(Zt),$.transformIntoNewTimeline(Be+ut),$.previousNode=Q}},{key:"visitQuery",value:function(Q,$){var ke=this,Be=$.currentTimeline.currentTime,ut=Q.options||{},wt=ut.delay?qt(ut.delay):0;wt&&(6===$.previousNode.type||0==Be&&$.currentTimeline.getCurrentStyleProperties().length)&&($.currentTimeline.snapshotCurrentStyles(),$.previousNode=po);var Zt=Be,$t=$.invokeQuery(Q.selector,Q.originalSelector,Q.limit,Q.includeSelf,!!ut.optional,$.errors);$.currentQueryTotal=$t.length;var dn=null;$t.forEach(function(Dn,Un){$.currentQueryIndex=Un;var Kn=$.createSubContext(Q.options,Dn);wt&&Kn.delayNextStep(wt),Dn===$.element&&(dn=Kn.currentTimeline),zt(ke,Q.animation,Kn),Kn.currentTimeline.applyStylesToKeyframe(),Zt=Math.max(Zt,Kn.currentTimeline.currentTime)}),$.currentQueryIndex=0,$.currentQueryTotal=0,$.transformIntoNewTimeline(Zt),dn&&($.currentTimeline.mergeTimelineCollectedStyles(dn),$.currentTimeline.snapshotCurrentStyles()),$.previousNode=Q}},{key:"visitStagger",value:function(Q,$){var ke=$.parentContext,Be=$.currentTimeline,ut=Q.timings,wt=Math.abs(ut.duration),Zt=wt*($.currentQueryTotal-1),$t=wt*$.currentQueryIndex;switch(ut.duration<0?"reverse":ut.easing){case"reverse":$t=Zt-$t;break;case"full":$t=ke.currentStaggerTime}var Dn=$.currentTimeline;$t&&Dn.delayNextStep($t);var Un=Dn.currentTime;zt(this,Q.animation,$),$.previousNode=Q,ke.currentStaggerTime=Be.currentTime-Un+(Be.startTime-ke.currentTimeline.startTime)}}]),Ce}(),po={},Xo=function(){function Ce(ge,Q,$,ke,Be,ut,wt,Zt){(0,B.Z)(this,Ce),this._driver=ge,this.element=Q,this.subInstructions=$,this._enterClassName=ke,this._leaveClassName=Be,this.errors=ut,this.timelines=wt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=po,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Zt||new ki(this._driver,Q,0),wt.push(this.currentTimeline)}return(0,V.Z)(Ce,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(Q,$){var ke=this;if(Q){var Be=Q,ut=this.options;null!=Be.duration&&(ut.duration=qt(Be.duration)),null!=Be.delay&&(ut.delay=qt(Be.delay));var wt=Be.params;if(wt){var Zt=ut.params;Zt||(Zt=this.options.params={}),Object.keys(wt).forEach(function($t){(!$||!Zt.hasOwnProperty($t))&&(Zt[$t]=Te(wt[$t],Zt,ke.errors))})}}}},{key:"_copyOptions",value:function(){var Q={};if(this.options){var $=this.options.params;if($){var ke=Q.params={};Object.keys($).forEach(function(Be){ke[Be]=$[Be]})}}return Q}},{key:"createSubContext",value:function(){var Q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,$=arguments.length>1?arguments[1]:void 0,ke=arguments.length>2?arguments[2]:void 0,Be=$||this.element,ut=new Ce(this._driver,Be,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Be,ke||0));return ut.previousNode=this.previousNode,ut.currentAnimateTimings=this.currentAnimateTimings,ut.options=this._copyOptions(),ut.updateOptions(Q),ut.currentQueryIndex=this.currentQueryIndex,ut.currentQueryTotal=this.currentQueryTotal,ut.parentContext=this,this.subContextCount++,ut}},{key:"transformIntoNewTimeline",value:function(Q){return this.previousNode=po,this.currentTimeline=this.currentTimeline.fork(this.element,Q),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(Q,$,ke){var Be={duration:null!=$?$:Q.duration,delay:this.currentTimeline.currentTime+(null!=ke?ke:0)+Q.delay,easing:""},ut=new ro(this._driver,Q.element,Q.keyframes,Q.preStyleProps,Q.postStyleProps,Be,Q.stretchStartingKeyframe);return this.timelines.push(ut),Be}},{key:"incrementTime",value:function(Q){this.currentTimeline.forwardTime(this.currentTimeline.duration+Q)}},{key:"delayNextStep",value:function(Q){Q>0&&this.currentTimeline.delayNextStep(Q)}},{key:"invokeQuery",value:function(Q,$,ke,Be,ut,wt){var Zt=[];if(Be&&Zt.push(this.element),Q.length>0){Q=(Q=Q.replace(Cr,"."+this._enterClassName)).replace(co,"."+this._leaveClassName);var dn=this._driver.query(this.element,Q,1!=ke);0!==ke&&(dn=ke<0?dn.slice(dn.length+ke,dn.length):dn.slice(0,ke)),Zt.push.apply(Zt,(0,A.Z)(dn))}return!ut&&0==Zt.length&&wt.push('`query("'.concat($,'")` returned zero elements. (Use `query("').concat($,'", { optional: true })` if you wish to allow this.)')),Zt}}]),Ce}(),ki=function(){function Ce(ge,Q,$,ke){(0,B.Z)(this,Ce),this._driver=ge,this.element=Q,this.startTime=$,this._elementTimelineStylesLookup=ke,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(Q),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(Q,this._localTimelineStyles)),this._loadKeyframe()}return(0,V.Z)(Ce,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(Q){var $=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||$?(this.forwardTime(this.currentTime+Q),$&&this.snapshotCurrentStyles()):this.startTime+=Q}},{key:"fork",value:function(Q,$){return this.applyStylesToKeyframe(),new Ce(this._driver,Q,$||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(Q){this.applyStylesToKeyframe(),this.duration=Q,this._loadKeyframe()}},{key:"_updateStyle",value:function(Q,$){this._localTimelineStyles[Q]=$,this._globalTimelineStyles[Q]=$,this._styleSummary[Q]={time:this.currentTime,value:$}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(Q){var $=this;Q&&(this._previousKeyframe.easing=Q),Object.keys(this._globalTimelineStyles).forEach(function(ke){$._backFill[ke]=$._globalTimelineStyles[ke]||v.l3,$._currentKeyframe[ke]=v.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(Q,$,ke,Be){var ut=this;$&&(this._previousKeyframe.easing=$);var wt=Be&&Be.params||{},Zt=function(Ce,ge){var $,Q={};return Ce.forEach(function(ke){"*"===ke?($=$||Object.keys(ge)).forEach(function(Be){Q[Be]=v.l3}):Zn(ke,!1,Q)}),Q}(Q,this._globalTimelineStyles);Object.keys(Zt).forEach(function($t){var dn=Te(Zt[$t],wt,ke);ut._pendingStyles[$t]=dn,ut._localTimelineStyles.hasOwnProperty($t)||(ut._backFill[$t]=ut._globalTimelineStyles.hasOwnProperty($t)?ut._globalTimelineStyles[$t]:v.l3),ut._updateStyle($t,dn)})}},{key:"applyStylesToKeyframe",value:function(){var Q=this,$=this._pendingStyles,ke=Object.keys($);0!=ke.length&&(this._pendingStyles={},ke.forEach(function(Be){Q._currentKeyframe[Be]=$[Be]}),Object.keys(this._localTimelineStyles).forEach(function(Be){Q._currentKeyframe.hasOwnProperty(Be)||(Q._currentKeyframe[Be]=Q._localTimelineStyles[Be])}))}},{key:"snapshotCurrentStyles",value:function(){var Q=this;Object.keys(this._localTimelineStyles).forEach(function($){var ke=Q._localTimelineStyles[$];Q._pendingStyles[$]=ke,Q._updateStyle($,ke)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var Q=[];for(var $ in this._currentKeyframe)Q.push($);return Q}},{key:"mergeTimelineCollectedStyles",value:function(Q){var $=this;Object.keys(Q._styleSummary).forEach(function(ke){var Be=$._styleSummary[ke],ut=Q._styleSummary[ke];(!Be||ut.time>Be.time)&&$._updateStyle(ke,ut.value)})}},{key:"buildKeyframes",value:function(){var Q=this;this.applyStylesToKeyframe();var $=new Set,ke=new Set,Be=1===this._keyframes.size&&0===this.duration,ut=[];this._keyframes.forEach(function(Dn,Un){var Kn=Zn(Dn,!0);Object.keys(Kn).forEach(function(mr){var Rr=Kn[mr];Rr==v.k1?$.add(mr):Rr==v.l3&&ke.add(mr)}),Be||(Kn.offset=Un/Q.duration),ut.push(Kn)});var wt=$.size?re($.values()):[],Zt=ke.size?re(ke.values()):[];if(Be){var $t=ut[0],dn=on($t);$t.offset=0,dn.offset=1,ut=[$t,dn]}return cn(this.element,ut,wt,Zt,this.duration,this.startTime,this.easing,!1)}}]),Ce}(),ro=function(Ce){(0,Z.Z)(Q,Ce);var ge=(0,T.Z)(Q);function Q($,ke,Be,ut,wt,Zt){var $t,dn=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return(0,B.Z)(this,Q),($t=ge.call(this,$,ke,Zt.delay)).keyframes=Be,$t.preStyleProps=ut,$t.postStyleProps=wt,$t._stretchStartingKeyframe=dn,$t.timings={duration:Zt.duration,delay:Zt.delay,easing:Zt.easing},$t}return(0,V.Z)(Q,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var ke=this.keyframes,Be=this.timings,ut=Be.delay,wt=Be.duration,Zt=Be.easing;if(this._stretchStartingKeyframe&&ut){var $t=[],dn=wt+ut,Dn=ut/dn,Un=Zn(ke[0],!1);Un.offset=0,$t.push(Un);var Kn=Zn(ke[0],!1);Kn.offset=yi(Dn),$t.push(Kn);for(var mr=ke.length-1,Rr=1;Rr<=mr;Rr++){var Sr=Zn(ke[Rr],!1);Sr.offset=yi((ut+Sr.offset*wt)/dn),$t.push(Sr)}wt=dn,ut=0,Zt="",ke=$t}return cn(this.element,ke,this.preStyleProps,this.postStyleProps,wt,ut,Zt,!0)}}]),Q}(ki);function yi(Ce){var ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,Q=Math.pow(10,ge-1);return Math.round(Ce*Q)/Q}var hi=function Ce(){(0,B.Z)(this,Ce)},Ei=function(Ce){(0,Z.Z)(Q,Ce);var ge=(0,T.Z)(Q);function Q(){return(0,B.Z)(this,Q),ge.apply(this,arguments)}return(0,V.Z)(Q,[{key:"normalizePropertyName",value:function(ke,Be){return Ge(ke)}},{key:"normalizeStyleValue",value:function(ke,Be,ut,wt){var Zt="",$t=ut.toString().trim();if(Pt[Be]&&0!==ut&&"0"!==ut)if("number"==typeof ut)Zt="px";else{var dn=ut.match(/^[+-]?[\d\.]+([a-z]*)$/);dn&&0==dn[1].length&&wt.push("Please provide a CSS unit value for ".concat(ke,":").concat(ut))}return $t+Zt}}]),Q}(hi),Pt=function(){return Ce="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(","),ge={},Ce.forEach(function(Q){return ge[Q]=!0}),ge;var Ce,ge}();function It(Ce,ge,Q,$,ke,Be,ut,wt,Zt,$t,dn,Dn,Un){return{type:0,element:Ce,triggerName:ge,isRemovalTransition:ke,fromState:Q,fromStyles:Be,toState:$,toStyles:ut,timelines:wt,queriedElements:Zt,preStyleProps:$t,postStyleProps:dn,totalTime:Dn,errors:Un}}var jt={},Qt=function(){function Ce(ge,Q,$){(0,B.Z)(this,Ce),this._triggerName=ge,this.ast=Q,this._stateStyles=$}return(0,V.Z)(Ce,[{key:"match",value:function(Q,$,ke,Be){return function(Ce,ge,Q,$,ke){return Ce.some(function(Be){return Be(ge,Q,$,ke)})}(this.ast.matchers,Q,$,ke,Be)}},{key:"buildStyles",value:function(Q,$,ke){var Be=this._stateStyles["*"],ut=this._stateStyles[Q],wt=Be?Be.buildStyles($,ke):{};return ut?ut.buildStyles($,ke):wt}},{key:"build",value:function(Q,$,ke,Be,ut,wt,Zt,$t,dn,Dn){var Un=[],Kn=this.ast.options&&this.ast.options.params||jt,Rr=this.buildStyles(ke,Zt&&Zt.params||jt,Un),Sr=$t&&$t.params||jt,Mr=this.buildStyles(Be,Sr,Un),ci=new Set,Ti=new Map,ai=new Map,Ao="void"===Be,Ne={params:Object.assign(Object.assign({},Kn),Sr)},We=Dn?[]:Ni(Q,$,this.ast.animation,ut,wt,Rr,Mr,Ne,dn,Un),we=0;if(We.forEach(function(Ie){we=Math.max(Ie.duration+Ie.delay,we)}),Un.length)return It($,this._triggerName,ke,Be,Ao,Rr,Mr,[],[],Ti,ai,we,Un);We.forEach(function(Ie){var nt=Ie.element,xt=O(Ti,nt,{});Ie.preStyleProps.forEach(function(Tn){return xt[Tn]=!0});var ln=O(ai,nt,{});Ie.postStyleProps.forEach(function(Tn){return ln[Tn]=!0}),nt!==$&&ci.add(nt)});var Ze=re(ci.values());return It($,this._triggerName,ke,Be,Ao,Rr,Mr,We,Ze,Ti,ai,we)}}]),Ce}(),yn=function(){function Ce(ge,Q,$){(0,B.Z)(this,Ce),this.styles=ge,this.defaultParams=Q,this.normalizer=$}return(0,V.Z)(Ce,[{key:"buildStyles",value:function(Q,$){var ke=this,Be={},ut=on(this.defaultParams);return Object.keys(Q).forEach(function(wt){var Zt=Q[wt];null!=Zt&&(ut[wt]=Zt)}),this.styles.styles.forEach(function(wt){if("string"!=typeof wt){var Zt=wt;Object.keys(Zt).forEach(function($t){var dn=Zt[$t];dn.length>1&&(dn=Te(dn,ut,$));var Dn=ke.normalizer.normalizePropertyName($t,$);dn=ke.normalizer.normalizeStyleValue($t,Dn,dn,$),Be[Dn]=dn})}}),Be}}]),Ce}(),jn=function(){function Ce(ge,Q,$){var ke=this;(0,B.Z)(this,Ce),this.name=ge,this.ast=Q,this._normalizer=$,this.transitionFactories=[],this.states={},Q.states.forEach(function(Be){ke.states[Be.name]=new yn(Be.style,Be.options&&Be.options.params||{},$)}),li(this.states,"true","1"),li(this.states,"false","0"),Q.transitions.forEach(function(Be){ke.transitionFactories.push(new Qt(ge,Be,ke.states))}),this.fallbackTransition=function(Ce,ge,Q){return new Qt(Ce,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(ut,wt){return!0}],options:null,queryCount:0,depCount:0},ge)}(ge,this.states)}return(0,V.Z)(Ce,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(Q,$,ke,Be){return this.transitionFactories.find(function(wt){return wt.match(Q,$,ke,Be)})||null}},{key:"matchStyles",value:function(Q,$,ke){return this.fallbackTransition.buildStyles(Q,$,ke)}}]),Ce}();function li(Ce,ge,Q){Ce.hasOwnProperty(ge)?Ce.hasOwnProperty(Q)||(Ce[Q]=Ce[ge]):Ce.hasOwnProperty(Q)&&(Ce[ge]=Ce[Q])}var bi=new Jn,io=function(){function Ce(ge,Q,$){(0,B.Z)(this,Ce),this.bodyNode=ge,this._driver=Q,this._normalizer=$,this._animations={},this._playersById={},this.players=[]}return(0,V.Z)(Ce,[{key:"register",value:function(Q,$){var ke=[],Be=rn(this._driver,$,ke);if(ke.length)throw new Error("Unable to build the animation due to the following errors: ".concat(ke.join("\n")));this._animations[Q]=Be}},{key:"_buildPlayer",value:function(Q,$,ke){var Be=Q.element,ut=N(this._driver,this._normalizer,Be,Q.keyframes,$,ke);return this._driver.animate(Be,ut,Q.duration,Q.delay,Q.easing,[],!0)}},{key:"create",value:function(Q,$){var Zt,ke=this,Be=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ut=[],wt=this._animations[Q],$t=new Map;if(wt?(Zt=Ni(this._driver,$,wt,ct,Je,{},{},Be,bi,ut)).forEach(function(Un){var Kn=O($t,Un.element,{});Un.postStyleProps.forEach(function(mr){return Kn[mr]=null})}):(ut.push("The requested animation doesn't exist or has already been destroyed"),Zt=[]),ut.length)throw new Error("Unable to create the animation due to the following errors: ".concat(ut.join("\n")));$t.forEach(function(Un,Kn){Object.keys(Un).forEach(function(mr){Un[mr]=ke._driver.computeStyle(Kn,mr,v.l3)})});var dn=Zt.map(function(Un){var Kn=$t.get(Un.element);return ke._buildPlayer(Un,{},Kn)}),Dn=k(dn);return this._playersById[Q]=Dn,Dn.onDestroy(function(){return ke.destroy(Q)}),this.players.push(Dn),Dn}},{key:"destroy",value:function(Q){var $=this._getPlayer(Q);$.destroy(),delete this._playersById[Q];var ke=this.players.indexOf($);ke>=0&&this.players.splice(ke,1)}},{key:"_getPlayer",value:function(Q){var $=this._playersById[Q];if(!$)throw new Error("Unable to find the timeline player referenced by ".concat(Q));return $}},{key:"listen",value:function(Q,$,ke,Be){var ut=S($,"","","");return E(this._getPlayer(Q),ke,ut,Be),function(){}}},{key:"command",value:function(Q,$,ke,Be){if("register"!=ke)if("create"!=ke){var wt=this._getPlayer(Q);switch(ke){case"play":wt.play();break;case"pause":wt.pause();break;case"reset":wt.reset();break;case"restart":wt.restart();break;case"finish":wt.finish();break;case"init":wt.init();break;case"setPosition":wt.setPosition(parseFloat(Be[0]));break;case"destroy":this.destroy(Q)}}else this.create(Q,$,Be[0]||{});else this.register(Q,Be[0])}}]),Ce}(),Co="ng-animate-queued",Io="ng-animate-disabled",$o=".ng-animate-disabled",Eo="ng-star-inserted",Vo=[],oo={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ji={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ji="__ng_removed",qo=function(){function Ce(ge){var Q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,B.Z)(this,Ce),this.namespaceId=Q;var $=ge&&ge.hasOwnProperty("value"),ke=$?ge.value:ge;if(this.value=ha(ke),$){var Be=on(ge);delete Be.value,this.options=Be}else this.options={};this.options.params||(this.options.params={})}return(0,V.Z)(Ce,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(Q){var $=Q.params;if($){var ke=this.options.params;Object.keys($).forEach(function(Be){null==ke[Be]&&(ke[Be]=$[Be])})}}}]),Ce}(),Ci="void",Qi=new qo(Ci),mn=function(){function Ce(ge,Q,$){(0,B.Z)(this,Ce),this.id=ge,this.hostElement=Q,this._engine=$,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+ge,To(Q,this._hostClassName)}return(0,V.Z)(Ce,[{key:"listen",value:function(Q,$,ke,Be){var ut=this;if(!this._triggers.hasOwnProperty($))throw new Error('Unable to listen on the animation trigger event "'.concat(ke,'" because the animation trigger "').concat($,"\" doesn't exist!"));if(null==ke||0==ke.length)throw new Error('Unable to listen on the animation trigger "'.concat($,'" because the provided event is undefined!'));if(!function(Ce){return"start"==Ce||"done"==Ce}(ke))throw new Error('The provided animation trigger event "'.concat(ke,'" for the animation trigger "').concat($,'" is not supported!'));var wt=O(this._elementListeners,Q,[]),Zt={name:$,phase:ke,callback:Be};wt.push(Zt);var $t=O(this._engine.statesByElement,Q,{});return $t.hasOwnProperty($)||(To(Q,vt),To(Q,vt+"-"+$),$t[$]=Qi),function(){ut._engine.afterFlush(function(){var dn=wt.indexOf(Zt);dn>=0&&wt.splice(dn,1),ut._triggers[$]||delete $t[$]})}}},{key:"register",value:function(Q,$){return!this._triggers[Q]&&(this._triggers[Q]=$,!0)}},{key:"_getTrigger",value:function(Q){var $=this._triggers[Q];if(!$)throw new Error('The provided animation trigger "'.concat(Q,'" has not been registered!'));return $}},{key:"trigger",value:function(Q,$,ke){var Be=this,ut=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],wt=this._getTrigger($),Zt=new hr(this.id,$,Q),$t=this._engine.statesByElement.get(Q);$t||(To(Q,vt),To(Q,vt+"-"+$),this._engine.statesByElement.set(Q,$t={}));var dn=$t[$],Dn=new qo(ke,this.id),Un=ke&&ke.hasOwnProperty("value");!Un&&dn&&Dn.absorbOptions(dn.options),$t[$]=Dn,dn||(dn=Qi);var Kn=Dn.value===Ci;if(Kn||dn.value!==Dn.value){var Mr=O(this._engine.playersByElement,Q,[]);Mr.forEach(function(ai){ai.namespaceId==Be.id&&ai.triggerName==$&&ai.queued&&ai.destroy()});var ci=wt.matchTransition(dn.value,Dn.value,Q,Dn.params),Ti=!1;if(!ci){if(!ut)return;ci=wt.fallbackTransition,Ti=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:Q,triggerName:$,transition:ci,fromState:dn,toState:Dn,player:Zt,isFallbackTransition:Ti}),Ti||(To(Q,Co),Zt.onStart(function(){va(Q,Co)})),Zt.onDone(function(){var ai=Be.players.indexOf(Zt);ai>=0&&Be.players.splice(ai,1);var Ao=Be._engine.playersByElement.get(Q);if(Ao){var Ne=Ao.indexOf(Zt);Ne>=0&&Ao.splice(Ne,1)}}),this.players.push(Zt),Mr.push(Zt),Zt}if(!Bi(dn.params,Dn.params)){var mr=[],Rr=wt.matchStyles(dn.value,dn.params,mr),Sr=wt.matchStyles(Dn.value,Dn.params,mr);mr.length?this._engine.reportError(mr):this._engine.afterFlush(function(){wn(Q,Rr),Nn(Q,Sr)})}}},{key:"deregister",value:function(Q){var $=this;delete this._triggers[Q],this._engine.statesByElement.forEach(function(ke,Be){delete ke[Q]}),this._elementListeners.forEach(function(ke,Be){$._elementListeners.set(Be,ke.filter(function(ut){return ut.name!=Q}))})}},{key:"clearElementCache",value:function(Q){this._engine.statesByElement.delete(Q),this._elementListeners.delete(Q);var $=this._engine.playersByElement.get(Q);$&&($.forEach(function(ke){return ke.destroy()}),this._engine.playersByElement.delete(Q))}},{key:"_signalRemovalForInnerTriggers",value:function(Q,$){var ke=this,Be=this._engine.driver.query(Q,Kt,!0);Be.forEach(function(ut){if(!ut[Ji]){var wt=ke._engine.fetchNamespacesByElement(ut);wt.size?wt.forEach(function(Zt){return Zt.triggerLeaveAnimation(ut,$,!1,!0)}):ke.clearElementCache(ut)}}),this._engine.afterFlushAnimationsDone(function(){return Be.forEach(function(ut){return ke.clearElementCache(ut)})})}},{key:"triggerLeaveAnimation",value:function(Q,$,ke,Be){var ut=this,wt=this._engine.statesByElement.get(Q);if(wt){var Zt=[];if(Object.keys(wt).forEach(function($t){if(ut._triggers[$t]){var dn=ut.trigger(Q,$t,Ci,Be);dn&&Zt.push(dn)}}),Zt.length)return this._engine.markElementAsRemoved(this.id,Q,!0,$),ke&&k(Zt).onDone(function(){return ut._engine.processLeaveNode(Q)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(Q){var $=this,ke=this._elementListeners.get(Q),Be=this._engine.statesByElement.get(Q);if(ke&&Be){var ut=new Set;ke.forEach(function(wt){var Zt=wt.name;if(!ut.has(Zt)){ut.add(Zt);var dn=$._triggers[Zt].fallbackTransition,Dn=Be[Zt]||Qi,Un=new qo(Ci),Kn=new hr($.id,Zt,Q);$._engine.totalQueuedPlayers++,$._queue.push({element:Q,triggerName:Zt,transition:dn,fromState:Dn,toState:Un,player:Kn,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(Q,$){var ke=this,Be=this._engine;if(Q.childElementCount&&this._signalRemovalForInnerTriggers(Q,$),!this.triggerLeaveAnimation(Q,$,!0)){var ut=!1;if(Be.totalAnimations){var wt=Be.players.length?Be.playersByQueriedElement.get(Q):[];if(wt&&wt.length)ut=!0;else for(var Zt=Q;Zt=Zt.parentNode;)if(Be.statesByElement.get(Zt)){ut=!0;break}}if(this.prepareLeaveAnimationListeners(Q),ut)Be.markElementAsRemoved(this.id,Q,!1,$);else{var dn=Q[Ji];(!dn||dn===oo)&&(Be.afterFlush(function(){return ke.clearElementCache(Q)}),Be.destroyInnerAnimations(Q),Be._onRemovalComplete(Q,$))}}}},{key:"insertNode",value:function(Q,$){To(Q,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(Q){var $=this,ke=[];return this._queue.forEach(function(Be){var ut=Be.player;if(!ut.destroyed){var wt=Be.element,Zt=$._elementListeners.get(wt);Zt&&Zt.forEach(function($t){if($t.name==Be.triggerName){var dn=S(wt,Be.triggerName,Be.fromState.value,Be.toState.value);dn._data=Q,E(Be.player,$t.phase,dn,$t.callback)}}),ut.markedForDestroy?$._engine.afterFlush(function(){ut.destroy()}):ke.push(Be)}}),this._queue=[],ke.sort(function(Be,ut){var wt=Be.transition.ast.depCount,Zt=ut.transition.ast.depCount;return 0==wt||0==Zt?wt-Zt:$._engine.driver.containsElement(Be.element,ut.element)?1:-1})}},{key:"destroy",value:function(Q){this.players.forEach(function($){return $.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,Q)}},{key:"elementContainsData",value:function(Q){var $=!1;return this._elementListeners.has(Q)&&($=!0),!!this._queue.find(function(ke){return ke.element===Q})||$}}]),Ce}(),_n=function(){function Ce(ge,Q,$){(0,B.Z)(this,Ce),this.bodyNode=ge,this.driver=Q,this._normalizer=$,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(ke,Be){}}return(0,V.Z)(Ce,[{key:"_onRemovalComplete",value:function(Q,$){this.onRemovalComplete(Q,$)}},{key:"queuedPlayers",get:function(){var Q=[];return this._namespaceList.forEach(function($){$.players.forEach(function(ke){ke.queued&&Q.push(ke)})}),Q}},{key:"createNamespace",value:function(Q,$){var ke=new mn(Q,$,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,$)?this._balanceNamespaceList(ke,$):(this.newHostElements.set($,ke),this.collectEnterElement($)),this._namespaceLookup[Q]=ke}},{key:"_balanceNamespaceList",value:function(Q,$){var ke=this._namespaceList.length-1;if(ke>=0){for(var Be=!1,ut=ke;ut>=0;ut--)if(this.driver.containsElement(this._namespaceList[ut].hostElement,$)){this._namespaceList.splice(ut+1,0,Q),Be=!0;break}Be||this._namespaceList.splice(0,0,Q)}else this._namespaceList.push(Q);return this.namespacesByHostElement.set($,Q),Q}},{key:"register",value:function(Q,$){var ke=this._namespaceLookup[Q];return ke||(ke=this.createNamespace(Q,$)),ke}},{key:"registerTrigger",value:function(Q,$,ke){var Be=this._namespaceLookup[Q];Be&&Be.register($,ke)&&this.totalAnimations++}},{key:"destroy",value:function(Q,$){var ke=this;if(Q){var Be=this._fetchNamespace(Q);this.afterFlush(function(){ke.namespacesByHostElement.delete(Be.hostElement),delete ke._namespaceLookup[Q];var ut=ke._namespaceList.indexOf(Be);ut>=0&&ke._namespaceList.splice(ut,1)}),this.afterFlushAnimationsDone(function(){return Be.destroy($)})}}},{key:"_fetchNamespace",value:function(Q){return this._namespaceLookup[Q]}},{key:"fetchNamespacesByElement",value:function(Q){var $=new Set,ke=this.statesByElement.get(Q);if(ke)for(var Be=Object.keys(ke),ut=0;ut<Be.length;ut++){var wt=ke[Be[ut]].namespaceId;if(wt){var Zt=this._fetchNamespace(wt);Zt&&$.add(Zt)}}return $}},{key:"trigger",value:function(Q,$,ke,Be){if(Si($)){var ut=this._fetchNamespace(Q);if(ut)return ut.trigger($,ke,Be),!0}return!1}},{key:"insertNode",value:function(Q,$,ke,Be){if(Si($)){var ut=$[Ji];if(ut&&ut.setForRemoval){ut.setForRemoval=!1,ut.setForMove=!0;var wt=this.collectedLeaveElements.indexOf($);wt>=0&&this.collectedLeaveElements.splice(wt,1)}if(Q){var Zt=this._fetchNamespace(Q);Zt&&Zt.insertNode($,ke)}Be&&this.collectEnterElement($)}}},{key:"collectEnterElement",value:function(Q){this.collectedEnterElements.push(Q)}},{key:"markElementAsDisabled",value:function(Q,$){$?this.disabledNodes.has(Q)||(this.disabledNodes.add(Q),To(Q,Io)):this.disabledNodes.has(Q)&&(this.disabledNodes.delete(Q),va(Q,Io))}},{key:"removeNode",value:function(Q,$,ke,Be){if(Si($)){var ut=Q?this._fetchNamespace(Q):null;if(ut?ut.removeNode($,Be):this.markElementAsRemoved(Q,$,!1,Be),ke){var wt=this.namespacesByHostElement.get($);wt&&wt.id!==Q&&wt.removeNode($,Be)}}else this._onRemovalComplete($,Be)}},{key:"markElementAsRemoved",value:function(Q,$,ke,Be){this.collectedLeaveElements.push($),$[Ji]={namespaceId:Q,setForRemoval:Be,hasAnimation:ke,removedBeforeQueried:!1}}},{key:"listen",value:function(Q,$,ke,Be,ut){return Si($)?this._fetchNamespace(Q).listen($,ke,Be,ut):function(){}}},{key:"_buildInstruction",value:function(Q,$,ke,Be,ut){return Q.transition.build(this.driver,Q.element,Q.fromState.value,Q.toState.value,ke,Be,Q.fromState.options,Q.toState.options,$,ut)}},{key:"destroyInnerAnimations",value:function(Q){var $=this,ke=this.driver.query(Q,Kt,!0);ke.forEach(function(Be){return $.destroyActiveAnimationsForElement(Be)}),0!=this.playersByQueriedElement.size&&(ke=this.driver.query(Q,St,!0)).forEach(function(Be){return $.finishActiveQueriedAnimationOnElement(Be)})}},{key:"destroyActiveAnimationsForElement",value:function(Q){var $=this.playersByElement.get(Q);$&&$.forEach(function(ke){ke.queued?ke.markedForDestroy=!0:ke.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(Q){var $=this.playersByQueriedElement.get(Q);$&&$.forEach(function(ke){return ke.finish()})}},{key:"whenRenderingDone",value:function(){var Q=this;return new Promise(function($){if(Q.players.length)return k(Q.players).onDone(function(){return $()});$()})}},{key:"processLeaveNode",value:function(Q){var $=this,ke=Q[Ji];if(ke&&ke.setForRemoval){if(Q[Ji]=oo,ke.namespaceId){this.destroyInnerAnimations(Q);var Be=this._fetchNamespace(ke.namespaceId);Be&&Be.clearElementCache(Q)}this._onRemovalComplete(Q,ke.setForRemoval)}this.driver.matchesElement(Q,$o)&&this.markElementAsDisabled(Q,!1),this.driver.query(Q,$o,!0).forEach(function(ut){$.markElementAsDisabled(ut,!1)})}},{key:"flush",value:function(){var Q=this,$=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,ke=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(Un,Kn){return Q._balanceNamespaceList(Un,Kn)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var Be=0;Be<this.collectedEnterElements.length;Be++){var ut=this.collectedEnterElements[Be];To(ut,Eo)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var wt=[];try{ke=this._flushAnimations(wt,$)}finally{for(var Zt=0;Zt<wt.length;Zt++)wt[Zt]()}}else for(var $t=0;$t<this.collectedLeaveElements.length;$t++){var dn=this.collectedLeaveElements[$t];this.processLeaveNode(dn)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(Un){return Un()}),this._flushFns=[],this._whenQuietFns.length){var Dn=this._whenQuietFns;this._whenQuietFns=[],ke.length?k(ke).onDone(function(){Dn.forEach(function(Un){return Un()})}):Dn.forEach(function(Un){return Un()})}}},{key:"reportError",value:function(Q){throw new Error("Unable to process animations due to the following failed trigger transitions\n ".concat(Q.join("\n")))}},{key:"_flushAnimations",value:function(Q,$){var ke=this,Be=new Jn,ut=[],wt=new Map,Zt=[],$t=new Map,dn=new Map,Dn=new Map,Un=new Set;this.disabledNodes.forEach(function(rr){Un.add(rr);for(var Nr=ke.driver.query(rr,".ng-animate-queued",!0),Ar=0;Ar<Nr.length;Ar++)Un.add(Nr[Ar])});var Kn=this.bodyNode,mr=Array.from(this.statesByElement.keys()),Rr=Mo(mr,this.collectedEnterElements),Sr=new Map,Mr=0;Rr.forEach(function(rr,Nr){var Ar=ct+Mr++;Sr.set(Nr,Ar),rr.forEach(function($i){return To($i,Ar)})});for(var ci=[],Ti=new Set,ai=new Set,Ao=0;Ao<this.collectedLeaveElements.length;Ao++){var Ne=this.collectedLeaveElements[Ao],We=Ne[Ji];We&&We.setForRemoval&&(ci.push(Ne),Ti.add(Ne),We.hasAnimation?this.driver.query(Ne,".ng-star-inserted",!0).forEach(function(rr){return Ti.add(rr)}):ai.add(Ne))}var we=new Map,Ze=Mo(mr,Array.from(Ti));Ze.forEach(function(rr,Nr){var Ar=Je+Mr++;we.set(Nr,Ar),rr.forEach(function($i){return To($i,Ar)})}),Q.push(function(){Rr.forEach(function(rr,Nr){var Ar=Sr.get(Nr);rr.forEach(function($i){return va($i,Ar)})}),Ze.forEach(function(rr,Nr){var Ar=we.get(Nr);rr.forEach(function($i){return va($i,Ar)})}),ci.forEach(function(rr){ke.processLeaveNode(rr)})});for(var Ie=[],nt=[],xt=this._namespaceList.length-1;xt>=0;xt--)this._namespaceList[xt].drainQueuedTransitions($).forEach(function(rr){var Nr=rr.player,Ar=rr.element;if(Ie.push(Nr),ke.collectedEnterElements.length){var $i=Ar[Ji];if($i&&$i.setForMove)return void Nr.destroy()}var rs=!Kn||!ke.driver.containsElement(Kn,Ar),mc=we.get(Ar),su=Sr.get(Ar),ta=ke._buildInstruction(rr,Be,su,mc,rs);if(ta.errors&&ta.errors.length)nt.push(ta);else{if(rs)return Nr.onStart(function(){return wn(Ar,ta.fromStyles)}),Nr.onDestroy(function(){return Nn(Ar,ta.toStyles)}),void ut.push(Nr);if(rr.isFallbackTransition)return Nr.onStart(function(){return wn(Ar,ta.fromStyles)}),Nr.onDestroy(function(){return Nn(Ar,ta.toStyles)}),void ut.push(Nr);ta.timelines.forEach(function(Os){return Os.stretchStartingKeyframe=!0}),Be.append(Ar,ta.timelines),Zt.push({instruction:ta,player:Nr,element:Ar}),ta.queriedElements.forEach(function(Os){return O($t,Os,[]).push(Nr)}),ta.preStyleProps.forEach(function(Os,Cd){var gv=Object.keys(Os);if(gv.length){var Xs=dn.get(Cd);Xs||dn.set(Cd,Xs=new Set),gv.forEach(function(Dp){return Xs.add(Dp)})}}),ta.postStyleProps.forEach(function(Os,Cd){var gv=Object.keys(Os),Xs=Dn.get(Cd);Xs||Dn.set(Cd,Xs=new Set),gv.forEach(function(Dp){return Xs.add(Dp)})})}});if(nt.length){var Tn=[];nt.forEach(function(rr){Tn.push("@".concat(rr.triggerName," has failed due to:\n")),rr.errors.forEach(function(Nr){return Tn.push("- ".concat(Nr,"\n"))})}),Ie.forEach(function(rr){return rr.destroy()}),this.reportError(Tn)}var wr=new Map,Ri=new Map;Zt.forEach(function(rr){var Nr=rr.element;Be.has(Nr)&&(Ri.set(Nr,Nr),ke._beforeAnimationBuild(rr.player.namespaceId,rr.instruction,wr))}),ut.forEach(function(rr){var Nr=rr.element;ke._getPreviousPlayers(Nr,!1,rr.namespaceId,rr.triggerName,null).forEach(function($i){O(wr,Nr,[]).push($i),$i.destroy()})});var ea=ci.filter(function(rr){return ga(rr,dn,Dn)}),Pa=new Map;ma(Pa,this.driver,ai,Dn,v.l3).forEach(function(rr){ga(rr,dn,Dn)&&ea.push(rr)});var Do=new Map;Rr.forEach(function(rr,Nr){ma(Do,ke.driver,new Set(rr),dn,v.k1)}),ea.forEach(function(rr){var Nr=Pa.get(rr),Ar=Do.get(rr);Pa.set(rr,Object.assign(Object.assign({},Nr),Ar))});var _s=[],mo=[],oh={};Zt.forEach(function(rr){var Nr=rr.element,Ar=rr.player,$i=rr.instruction;if(Be.has(Nr)){if(Un.has(Nr))return Ar.onDestroy(function(){return Nn(Nr,$i.toStyles)}),Ar.disabled=!0,Ar.overrideTotalTime($i.totalTime),void ut.push(Ar);var rs=oh;if(Ri.size>1){for(var mc=Nr,su=[];mc=mc.parentNode;){var ta=Ri.get(mc);if(ta){rs=ta;break}su.push(mc)}su.forEach(function(Cd){return Ri.set(Cd,rs)})}var Ap=ke._buildAnimation(Ar.namespaceId,$i,wr,wt,Do,Pa);if(Ar.setRealPlayer(Ap),rs===oh)_s.push(Ar);else{var Os=ke.playersByElement.get(rs);Os&&Os.length&&(Ar.parentPlayer=k(Os)),ut.push(Ar)}}else wn(Nr,$i.fromStyles),Ar.onDestroy(function(){return Nn(Nr,$i.toStyles)}),mo.push(Ar),Un.has(Nr)&&ut.push(Ar)}),mo.forEach(function(rr){var Nr=wt.get(rr.element);if(Nr&&Nr.length){var Ar=k(Nr);rr.setRealPlayer(Ar)}}),ut.forEach(function(rr){rr.parentPlayer?rr.syncPlayerEvents(rr.parentPlayer):rr.destroy()});for(var Mp=0;Mp<ci.length;Mp++){var Iu=ci[Mp],ah=Iu[Ji];if(va(Iu,Je),!ah||!ah.hasAnimation){var fc=[];if($t.size){var Ks=$t.get(Iu);Ks&&Ks.length&&fc.push.apply(fc,(0,A.Z)(Ks));for(var zo=this.driver.query(Iu,St,!0),Ru=0;Ru<zo.length;Ru++){var hc=$t.get(zo[Ru]);hc&&hc.length&&fc.push.apply(fc,(0,A.Z)(hc))}}var Oo=fc.filter(function(rr){return!rr.destroyed});Oo.length?Ma(this,Iu,Oo):this.processLeaveNode(Iu)}}return ci.length=0,_s.forEach(function(rr){ke.players.push(rr),rr.onDone(function(){rr.destroy();var Nr=ke.players.indexOf(rr);ke.players.splice(Nr,1)}),rr.play()}),_s}},{key:"elementContainsData",value:function(Q,$){var ke=!1,Be=$[Ji];return Be&&Be.setForRemoval&&(ke=!0),this.playersByElement.has($)&&(ke=!0),this.playersByQueriedElement.has($)&&(ke=!0),this.statesByElement.has($)&&(ke=!0),this._fetchNamespace(Q).elementContainsData($)||ke}},{key:"afterFlush",value:function(Q){this._flushFns.push(Q)}},{key:"afterFlushAnimationsDone",value:function(Q){this._whenQuietFns.push(Q)}},{key:"_getPreviousPlayers",value:function(Q,$,ke,Be,ut){var wt=[];if($){var Zt=this.playersByQueriedElement.get(Q);Zt&&(wt=Zt)}else{var $t=this.playersByElement.get(Q);if($t){var dn=!ut||ut==Ci;$t.forEach(function(Dn){Dn.queued||!dn&&Dn.triggerName!=Be||wt.push(Dn)})}}return(ke||Be)&&(wt=wt.filter(function(Dn){return!(ke&&ke!=Dn.namespaceId||Be&&Be!=Dn.triggerName)})),wt}},{key:"_beforeAnimationBuild",value:function(Q,$,ke){var Dn,Be=this,wt=$.element,Zt=$.isRemovalTransition?void 0:Q,$t=$.isRemovalTransition?void 0:$.triggerName,dn=(0,M.Z)($.timelines);try{var Un=function(){var Rr=Dn.value.element,Sr=Rr!==wt,Mr=O(ke,Rr,[]);Be._getPreviousPlayers(Rr,Sr,Zt,$t,$.toState).forEach(function(Ti){var ai=Ti.getRealPlayer();ai.beforeDestroy&&ai.beforeDestroy(),Ti.destroy(),Mr.push(Ti)})};for(dn.s();!(Dn=dn.n()).done;)Un()}catch(Kn){dn.e(Kn)}finally{dn.f()}wn(wt,$.fromStyles)}},{key:"_buildAnimation",value:function(Q,$,ke,Be,ut,wt){var Zt=this,$t=$.triggerName,dn=$.element,Dn=[],Un=new Set,Kn=new Set,mr=$.timelines.map(function(Sr){var Mr=Sr.element;Un.add(Mr);var ci=Mr[Ji];if(ci&&ci.removedBeforeQueried)return new v.ZN(Sr.duration,Sr.delay);var Ti=Mr!==dn,ai=function(Ce){var ge=[];return xo(Ce,ge),ge}((ke.get(Mr)||Vo).map(function(Ie){return Ie.getRealPlayer()})).filter(function(Ie){return!!Ie.element&&Ie.element===Mr}),Ao=ut.get(Mr),Ne=wt.get(Mr),We=N(Zt.driver,Zt._normalizer,Mr,Sr.keyframes,Ao,Ne),we=Zt._buildPlayer(Sr,We,ai);if(Sr.subTimeline&&Be&&Kn.add(Mr),Ti){var Ze=new hr(Q,$t,Mr);Ze.setRealPlayer(we),Dn.push(Ze)}return we});Dn.forEach(function(Sr){O(Zt.playersByQueriedElement,Sr.element,[]).push(Sr),Sr.onDone(function(){return function(Ce,ge,Q){var $;if(Ce instanceof Map){if($=Ce.get(ge)){if($.length){var ke=$.indexOf(Q);$.splice(ke,1)}0==$.length&&Ce.delete(ge)}}else if($=Ce[ge]){if($.length){var Be=$.indexOf(Q);$.splice(Be,1)}0==$.length&&delete Ce[ge]}return $}(Zt.playersByQueriedElement,Sr.element,Sr)})}),Un.forEach(function(Sr){return To(Sr,Vt)});var Rr=k(mr);return Rr.onDestroy(function(){Un.forEach(function(Sr){return va(Sr,Vt)}),Nn(dn,$.toStyles)}),Kn.forEach(function(Sr){O(Be,Sr,[]).push(Rr)}),Rr}},{key:"_buildPlayer",value:function(Q,$,ke){return $.length>0?this.driver.animate(Q.element,$,Q.duration,Q.delay,Q.easing,ke):new v.ZN(Q.duration,Q.delay)}}]),Ce}(),hr=function(){function Ce(ge,Q,$){(0,B.Z)(this,Ce),this.namespaceId=ge,this.triggerName=Q,this.element=$,this._player=new v.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return(0,V.Z)(Ce,[{key:"setRealPlayer",value:function(Q){var $=this;this._containsRealPlayer||(this._player=Q,Object.keys(this._queuedCallbacks).forEach(function(ke){$._queuedCallbacks[ke].forEach(function(Be){return E(Q,ke,void 0,Be)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(Q.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(Q){this.totalTime=Q}},{key:"syncPlayerEvents",value:function(Q){var $=this,ke=this._player;ke.triggerCallback&&Q.onStart(function(){return ke.triggerCallback("start")}),Q.onDone(function(){return $.finish()}),Q.onDestroy(function(){return $.destroy()})}},{key:"_queueEvent",value:function(Q,$){O(this._queuedCallbacks,Q,[]).push($)}},{key:"onDone",value:function(Q){this.queued&&this._queueEvent("done",Q),this._player.onDone(Q)}},{key:"onStart",value:function(Q){this.queued&&this._queueEvent("start",Q),this._player.onStart(Q)}},{key:"onDestroy",value:function(Q){this.queued&&this._queueEvent("destroy",Q),this._player.onDestroy(Q)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(Q){this.queued||this._player.setPosition(Q)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(Q){var $=this._player;$.triggerCallback&&$.triggerCallback(Q)}}]),Ce}();function ha(Ce){return null!=Ce?Ce:null}function Si(Ce){return Ce&&1===Ce.nodeType}function Zi(Ce,ge){var Q=Ce.style.display;return Ce.style.display=null!=ge?ge:"none",Q}function ma(Ce,ge,Q,$,ke){var Be=[];Q.forEach(function(Zt){return Be.push(Zi(Zt))});var ut=[];$.forEach(function(Zt,$t){var dn={};Zt.forEach(function(Dn){var Un=dn[Dn]=ge.computeStyle($t,Dn,ke);(!Un||0==Un.length)&&($t[Ji]=ji,ut.push($t))}),Ce.set($t,dn)});var wt=0;return Q.forEach(function(Zt){return Zi(Zt,Be[wt++])}),ut}function Mo(Ce,ge){var Q=new Map;if(Ce.forEach(function(wt){return Q.set(wt,[])}),0==ge.length)return Q;var ke=new Set(ge),Be=new Map;function ut(wt){if(!wt)return 1;var Zt=Be.get(wt);if(Zt)return Zt;var $t=wt.parentNode;return Zt=Q.has($t)?$t:ke.has($t)?1:ut($t),Be.set(wt,Zt),Zt}return ge.forEach(function(wt){var Zt=ut(wt);1!==Zt&&Q.get(Zt).push(wt)}),Q}var Ro="$$classes";function To(Ce,ge){if(Ce.classList)Ce.classList.add(ge);else{var Q=Ce[Ro];Q||(Q=Ce[Ro]={}),Q[ge]=!0}}function va(Ce,ge){if(Ce.classList)Ce.classList.remove(ge);else{var Q=Ce[Ro];Q&&delete Q[ge]}}function Ma(Ce,ge,Q){k(Q).onDone(function(){return Ce.processLeaveNode(ge)})}function xo(Ce,ge){for(var Q=0;Q<Ce.length;Q++){var $=Ce[Q];$ instanceof v.ZE?xo($.players,ge):ge.push($)}}function Bi(Ce,ge){var Q=Object.keys(Ce),$=Object.keys(ge);if(Q.length!=$.length)return!1;for(var ke=0;ke<Q.length;ke++){var Be=Q[ke];if(!ge.hasOwnProperty(Be)||Ce[Be]!==ge[Be])return!1}return!0}function ga(Ce,ge,Q){var $=Q.get(Ce);if(!$)return!1;var ke=ge.get(Ce);return ke?$.forEach(function(Be){return ke.add(Be)}):ge.set(Ce,$),Q.delete(Ce),!0}var Ki=function(){function Ce(ge,Q,$){var ke=this;(0,B.Z)(this,Ce),this.bodyNode=ge,this._driver=Q,this._normalizer=$,this._triggerCache={},this.onRemovalComplete=function(Be,ut){},this._transitionEngine=new _n(ge,Q,$),this._timelineEngine=new io(ge,Q,$),this._transitionEngine.onRemovalComplete=function(Be,ut){return ke.onRemovalComplete(Be,ut)}}return(0,V.Z)(Ce,[{key:"registerTrigger",value:function(Q,$,ke,Be,ut){var wt=Q+"-"+Be,Zt=this._triggerCache[wt];if(!Zt){var $t=[],dn=rn(this._driver,ut,$t);if($t.length)throw new Error('The animation trigger "'.concat(Be,'" has failed to build due to the following errors:\n - ').concat($t.join("\n - ")));Zt=function(Ce,ge,Q){return new jn(Ce,ge,Q)}(Be,dn,this._normalizer),this._triggerCache[wt]=Zt}this._transitionEngine.registerTrigger($,Be,Zt)}},{key:"register",value:function(Q,$){this._transitionEngine.register(Q,$)}},{key:"destroy",value:function(Q,$){this._transitionEngine.destroy(Q,$)}},{key:"onInsert",value:function(Q,$,ke,Be){this._transitionEngine.insertNode(Q,$,ke,Be)}},{key:"onRemove",value:function(Q,$,ke,Be){this._transitionEngine.removeNode(Q,$,Be||!1,ke)}},{key:"disableAnimations",value:function(Q,$){this._transitionEngine.markElementAsDisabled(Q,$)}},{key:"process",value:function(Q,$,ke,Be){if("@"==ke.charAt(0)){var ut=L(ke),wt=(0,U.Z)(ut,2);this._timelineEngine.command(wt[0],$,wt[1],Be)}else this._transitionEngine.trigger(Q,$,ke,Be)}},{key:"listen",value:function(Q,$,ke,Be,ut){if("@"==ke.charAt(0)){var wt=L(ke),Zt=(0,U.Z)(wt,2);return this._timelineEngine.listen(Zt[0],$,Zt[1],ut)}return this._transitionEngine.listen(Q,$,ke,Be,ut)}},{key:"flush",value:function(){var Q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(Q)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),Ce}();function _a(Ce,ge){var Q=null,$=null;return Array.isArray(ge)&&ge.length?(Q=br(ge[0]),ge.length>1&&($=br(ge[ge.length-1]))):ge&&(Q=br(ge)),Q||$?new Aa(Ce,Q,$):null}var Aa=function(){var Ce=function(){function ge(Q,$,ke){(0,B.Z)(this,ge),this._element=Q,this._startStyles=$,this._endStyles=ke,this._state=0;var Be=ge.initialStylesByElement.get(Q);Be||ge.initialStylesByElement.set(Q,Be={}),this._initialStyles=Be}return(0,V.Z)(ge,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Nn(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Nn(this._element,this._initialStyles),this._endStyles&&(Nn(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(ge.initialStylesByElement.delete(this._element),this._startStyles&&(wn(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(wn(this._element,this._endStyles),this._endStyles=null),Nn(this._element,this._initialStyles),this._state=3)}}]),ge}();return Ce.initialStylesByElement=new WeakMap,Ce}();function br(Ce){for(var ge=null,Q=Object.keys(Ce),$=0;$<Q.length;$++){var ke=Q[$];Fn(ke)&&((ge=ge||{})[ke]=Ce[ke])}return ge}function Fn(Ce){return"display"===Ce||"position"===Ce}var Ui="animation",qa="animationend",zi=function(){function Ce(ge,Q,$,ke,Be,ut,wt){var Zt=this;(0,B.Z)(this,Ce),this._element=ge,this._name=Q,this._duration=$,this._delay=ke,this._easing=Be,this._fillMode=ut,this._onDoneFn=wt,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function($t){return Zt._handleCallback($t)}}return(0,V.Z)(Ce,[{key:"apply",value:function(){(function(Ce,ge){var Q=ou(Ce,"").trim();Q.length&&(function(Ce,ge){for(var Q=0,$=0;$<Ce.length;$++)","===Ce.charAt($)&&Q++;return Q}(Q)+1,ge="".concat(Q,", ").concat(ge)),nn(Ce,"",ge)})(this._element,"".concat(this._duration,"ms ").concat(this._easing," ").concat(this._delay,"ms 1 normal ").concat(this._fillMode," ").concat(this._name)),Cl(this._element,this._eventFn,!1),this._startTime=Date.now()}},{key:"pause",value:function(){ja(this._element,this._name,"paused")}},{key:"resume",value:function(){ja(this._element,this._name,"running")}},{key:"setPosition",value:function(Q){var $=Xi(this._element,this._name);this._position=Q*this._duration,nn(this._element,"Delay","-".concat(this._position,"ms"),$)}},{key:"getPosition",value:function(){return this._position}},{key:"_handleCallback",value:function(Q){var $=Q._ngTestManualTimestamp||Date.now(),ke=1e3*parseFloat(Q.elapsedTime.toFixed(3));Q.animationName==this._name&&Math.max($-this._startTime,0)>=this._delay&&ke>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),Cl(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),function(Ce,ge){var $=ou(Ce,"").split(","),ke=za($,ge);ke>=0&&($.splice(ke,1),nn(Ce,"",$.join(",")))}(this._element,this._name))}}]),Ce}();function ja(Ce,ge,Q){nn(Ce,"PlayState",Q,Xi(Ce,ge))}function Xi(Ce,ge){var Q=ou(Ce,"");return Q.indexOf(",")>0?za(Q.split(","),ge):za([Q],ge)}function za(Ce,ge){for(var Q=0;Q<Ce.length;Q++)if(Ce[Q].indexOf(ge)>=0)return Q;return-1}function Cl(Ce,ge,Q){Q?Ce.removeEventListener(qa,ge):Ce.addEventListener(qa,ge)}function nn(Ce,ge,Q,$){var ke=Ui+ge;if(null!=$){var Be=Ce.style[ke];if(Be.length){var ut=Be.split(",");ut[$]=Q,Q=ut.join(",")}}Ce.style[ke]=Q}function ou(Ce,ge){return Ce.style[Ui+ge]||""}var Re=function(){function Ce(ge,Q,$,ke,Be,ut,wt,Zt){(0,B.Z)(this,Ce),this.element=ge,this.keyframes=Q,this.animationName=$,this._duration=ke,this._delay=Be,this._finalStyles=wt,this._specialStyles=Zt,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=ut||"linear",this.totalTime=ke+Be,this._buildStyler()}return(0,V.Z)(Ce,[{key:"onStart",value:function(Q){this._onStartFns.push(Q)}},{key:"onDone",value:function(Q){this._onDoneFns.push(Q)}},{key:"onDestroy",value:function(Q){this._onDestroyFns.push(Q)}},{key:"destroy",value:function(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(Q){return Q()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(Q){return Q()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(Q){return Q()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(Q){this._styler.setPosition(Q)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var Q=this;this._styler=new zi(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return Q.finish()})}},{key:"triggerCallback",value:function(Q){var $="start"==Q?this._onStartFns:this._onDoneFns;$.forEach(function(ke){return ke()}),$.length=0}},{key:"beforeDestroy",value:function(){var Q=this;this.init();var $={};if(this.hasStarted()){var ke=this._state>=3;Object.keys(this._finalStyles).forEach(function(Be){"offset"!=Be&&($[Be]=ke?Q._finalStyles[Be]:tn(Q.element,Be))})}this.currentSnapshot=$}}]),Ce}(),$e=function(Ce){(0,Z.Z)(Q,Ce);var ge=(0,T.Z)(Q);function Q($,ke){var Be;return(0,B.Z)(this,Q),(Be=ge.call(this)).element=$,Be._startingStyles={},Be.__initialized=!1,Be._styles=_t(ke),Be}return(0,V.Z)(Q,[{key:"init",value:function(){var ke=this;this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(function(Be){ke._startingStyles[Be]=ke.element.style[Be]}),(0,P.Z)((0,D.Z)(Q.prototype),"init",this).call(this))}},{key:"play",value:function(){var ke=this;!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(function(Be){return ke.element.style.setProperty(Be,ke._styles[Be])}),(0,P.Z)((0,D.Z)(Q.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var ke=this;!this._startingStyles||(Object.keys(this._startingStyles).forEach(function(Be){var ut=ke._startingStyles[Be];ut?ke.element.style.setProperty(Be,ut):ke.element.style.removeProperty(Be)}),this._startingStyles=null,(0,P.Z)((0,D.Z)(Q.prototype),"destroy",this).call(this))}}]),Q}(v.ZN),je="gen_css_kf_",he=function(){function Ce(){(0,B.Z)(this,Ce),this._count=0}return(0,V.Z)(Ce,[{key:"validateStyleProperty",value:function(Q){return ae(Q)}},{key:"matchesElement",value:function(Q,$){return ye(Q,$)}},{key:"containsElement",value:function(Q,$){return ot(Q,$)}},{key:"query",value:function(Q,$,ke){return He(Q,$,ke)}},{key:"computeStyle",value:function(Q,$,ke){return window.getComputedStyle(Q)[$]}},{key:"buildKeyframeElement",value:function(Q,$,ke){ke=ke.map(function(Zt){return _t(Zt)});var Be="@keyframes ".concat($," {\n"),ut="";ke.forEach(function(Zt){ut=" ";var $t=parseFloat(Zt.offset);Be+="".concat(ut).concat(100*$t,"% {\n"),ut+=" ",Object.keys(Zt).forEach(function(dn){var Dn=Zt[dn];switch(dn){case"offset":return;case"easing":return void(Dn&&(Be+="".concat(ut,"animation-timing-function: ").concat(Dn,";\n")));default:return void(Be+="".concat(ut).concat(dn,": ").concat(Dn,";\n"))}}),Be+="".concat(ut,"}\n")}),Be+="}\n";var wt=document.createElement("style");return wt.textContent=Be,wt}},{key:"animate",value:function(Q,$,ke,Be,ut){var wt=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],$t=wt.filter(function(Mr){return Mr instanceof Re}),dn={};bt(ke,Be)&&$t.forEach(function(Mr){var ci=Mr.currentSnapshot;Object.keys(ci).forEach(function(Ti){return dn[Ti]=ci[Ti]})});var Dn=be($=Lt(Q,$,dn));if(0==ke)return new $e(Q,Dn);var Un="".concat(je).concat(this._count++),Kn=this.buildKeyframeElement(Q,Un,$),mr=_e(Q);mr.appendChild(Kn);var Rr=_a(Q,$),Sr=new Re(Q,$,Un,ke,Be,ut,Dn,Rr);return Sr.onDestroy(function(){return Pe(Kn)}),Sr}}]),Ce}();function _e(Ce){var ge,Q=null===(ge=Ce.getRootNode)||void 0===ge?void 0:ge.call(Ce);return"undefined"!=typeof ShadowRoot&&Q instanceof ShadowRoot?Q:document.head}function be(Ce){var ge={};return Ce&&(Array.isArray(Ce)?Ce:[Ce]).forEach(function($){Object.keys($).forEach(function(ke){"offset"==ke||"easing"==ke||(ge[ke]=$[ke])})}),ge}function Pe(Ce){Ce.parentNode.removeChild(Ce)}var pt=function(){function Ce(ge,Q,$,ke){(0,B.Z)(this,Ce),this.element=ge,this.keyframes=Q,this.options=$,this._specialStyles=ke,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=$.duration,this._delay=$.delay||0,this.time=this._duration+this._delay}return(0,V.Z)(Ce,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(Q){return Q()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var Q=this;if(!this._initialized){this._initialized=!0;var $=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,$,this.options),this._finalKeyframe=$.length?$[$.length-1]:{},this.domPlayer.addEventListener("finish",function(){return Q._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(Q,$,ke){return Q.animate($,ke)}},{key:"onStart",value:function(Q){this._onStartFns.push(Q)}},{key:"onDone",value:function(Q){this._onDoneFns.push(Q)}},{key:"onDestroy",value:function(Q){this._onDestroyFns.push(Q)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(Q){return Q()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(Q){return Q()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(Q){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=Q*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var Q=this,$={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(ke){"offset"!=ke&&($[ke]=Q._finished?Q._finalKeyframe[ke]:tn(Q.element,ke))}),this.currentSnapshot=$}},{key:"triggerCallback",value:function(Q){var $="start"==Q?this._onStartFns:this._onDoneFns;$.forEach(function(ke){return ke()}),$.length=0}}]),Ce}(),gt=function(){function Ce(){(0,B.Z)(this,Ce),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(zr().toString()),this._cssKeyframesDriver=new he}return(0,V.Z)(Ce,[{key:"validateStyleProperty",value:function(Q){return ae(Q)}},{key:"matchesElement",value:function(Q,$){return ye(Q,$)}},{key:"containsElement",value:function(Q,$){return ot(Q,$)}},{key:"query",value:function(Q,$,ke){return He(Q,$,ke)}},{key:"computeStyle",value:function(Q,$,ke){return window.getComputedStyle(Q)[$]}},{key:"overrideWebAnimationsSupport",value:function(Q){this._isNativeImpl=Q}},{key:"animate",value:function(Q,$,ke,Be,ut){var wt=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],Zt=arguments.length>6?arguments[6]:void 0,$t=!Zt&&!this._isNativeImpl;if($t)return this._cssKeyframesDriver.animate(Q,$,ke,Be,ut,wt);var dn=0==Be?"both":"forwards",Dn={duration:ke,delay:Be,fill:dn};ut&&(Dn.easing=ut);var Un={},Kn=wt.filter(function(Rr){return Rr instanceof pt});bt(ke,Be)&&Kn.forEach(function(Rr){var Sr=Rr.currentSnapshot;Object.keys(Sr).forEach(function(Mr){return Un[Mr]=Sr[Mr]})});var mr=_a(Q,$=Lt(Q,$=$.map(function(Rr){return Zn(Rr,!1)}),Un));return new pt(Q,$,Dn,mr)}}]),Ce}();function zr(){return y()&&Element.prototype.animate||{}}var Pi=f(40098),ya=function(){var Ce=function(ge){(0,Z.Z)($,ge);var Q=(0,T.Z)($);function $(ke,Be){var ut;return(0,B.Z)(this,$),(ut=Q.call(this))._nextAnimationId=0,ut._renderer=ke.createRenderer(Be.body,{id:"0",encapsulation:I.ifc.None,styles:[],data:{animation:[]}}),ut}return(0,V.Z)($,[{key:"build",value:function(Be){var ut=this._nextAnimationId.toString();this._nextAnimationId++;var wt=Array.isArray(Be)?(0,v.vP)(Be):Be;return xl(this._renderer,null,ut,"register",[wt]),new ui(ut,this._renderer)}}]),$}(v._j);return Ce.\u0275fac=function(Q){return new(Q||Ce)(I.LFG(I.FYo),I.LFG(Pi.K0))},Ce.\u0275prov=I.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce}(),ui=function(Ce){(0,Z.Z)(Q,Ce);var ge=(0,T.Z)(Q);function Q($,ke){var Be;return(0,B.Z)(this,Q),(Be=ge.call(this))._id=$,Be._renderer=ke,Be}return(0,V.Z)(Q,[{key:"create",value:function(ke,Be){return new Ii(this._id,ke,Be||{},this._renderer)}}]),Q}(v.LC),Ii=function(){function Ce(ge,Q,$,ke){(0,B.Z)(this,Ce),this.id=ge,this.element=Q,this._renderer=ke,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",$)}return(0,V.Z)(Ce,[{key:"_listen",value:function(Q,$){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(Q),$)}},{key:"_command",value:function(Q){for(var $=arguments.length,ke=new Array($>1?$-1:0),Be=1;Be<$;Be++)ke[Be-1]=arguments[Be];return xl(this._renderer,this.element,this.id,Q,ke)}},{key:"onDone",value:function(Q){this._listen("done",Q)}},{key:"onStart",value:function(Q){this._listen("start",Q)}},{key:"onDestroy",value:function(Q){this._listen("destroy",Q)}},{key:"init",value:function(){this._command("init")}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this._command("play"),this._started=!0}},{key:"pause",value:function(){this._command("pause")}},{key:"restart",value:function(){this._command("restart")}},{key:"finish",value:function(){this._command("finish")}},{key:"destroy",value:function(){this._command("destroy")}},{key:"reset",value:function(){this._command("reset"),this._started=!1}},{key:"setPosition",value:function(Q){this._command("setPosition",Q)}},{key:"getPosition",value:function(){var Q,$;return null!==($=null===(Q=this._renderer.engine.players[+this.id])||void 0===Q?void 0:Q.getPosition())&&void 0!==$?$:0}}]),Ce}();function xl(Ce,ge,Q,$,ke){return Ce.setProperty(ge,"@@".concat(Q,":").concat($),ke)}var ns="@.disabled",ba=function(){var Ce=function(){function ge(Q,$,ke){(0,B.Z)(this,ge),this.delegate=Q,this.engine=$,this._zone=ke,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),$.onRemovalComplete=function(Be,ut){ut&&ut.parentNode(Be)&&ut.removeChild(Be.parentNode,Be)}}return(0,V.Z)(ge,[{key:"createRenderer",value:function($,ke){var Be=this,wt=this.delegate.createRenderer($,ke);if(!($&&ke&&ke.data&&ke.data.animation)){var Zt=this._rendererCache.get(wt);return Zt||(Zt=new Ds("",wt,this.engine),this._rendererCache.set(wt,Zt)),Zt}var $t=ke.id,dn=ke.id+"-"+this._currentId;return this._currentId++,this.engine.register(dn,$),ke.data.animation.forEach(function Kn(mr){Array.isArray(mr)?mr.forEach(Kn):Be.engine.registerTrigger($t,dn,$,mr.name,mr)}),new Tp(this,dn,wt,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var $=this;this.promise.then(function(){$._microtaskId++})}},{key:"scheduleListenerCallback",value:function($,ke,Be){var ut=this;$>=0&&$<this._microtaskId?this._zone.run(function(){return ke(Be)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){ut._zone.run(function(){ut._animationCallbacksBuffer.forEach(function(wt){var Zt=(0,U.Z)(wt,2);(0,Zt[0])(Zt[1])}),ut._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([ke,Be]))}},{key:"end",value:function(){var $=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){$._scheduleCountTask(),$.engine.flush($._microtaskId)}),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),ge}();return Ce.\u0275fac=function(Q){return new(Q||Ce)(I.LFG(I.FYo),I.LFG(Ki),I.LFG(I.R0b))},Ce.\u0275prov=I.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce}(),Ds=function(){function Ce(ge,Q,$){(0,B.Z)(this,Ce),this.namespaceId=ge,this.delegate=Q,this.engine=$,this.destroyNode=this.delegate.destroyNode?function(ke){return Q.destroyNode(ke)}:null}return(0,V.Z)(Ce,[{key:"data",get:function(){return this.delegate.data}},{key:"destroy",value:function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}},{key:"createElement",value:function(Q,$){return this.delegate.createElement(Q,$)}},{key:"createComment",value:function(Q){return this.delegate.createComment(Q)}},{key:"createText",value:function(Q){return this.delegate.createText(Q)}},{key:"appendChild",value:function(Q,$){this.delegate.appendChild(Q,$),this.engine.onInsert(this.namespaceId,$,Q,!1)}},{key:"insertBefore",value:function(Q,$,ke){var Be=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(Q,$,ke),this.engine.onInsert(this.namespaceId,$,Q,Be)}},{key:"removeChild",value:function(Q,$,ke){this.engine.onRemove(this.namespaceId,$,this.delegate,ke)}},{key:"selectRootElement",value:function(Q,$){return this.delegate.selectRootElement(Q,$)}},{key:"parentNode",value:function(Q){return this.delegate.parentNode(Q)}},{key:"nextSibling",value:function(Q){return this.delegate.nextSibling(Q)}},{key:"setAttribute",value:function(Q,$,ke,Be){this.delegate.setAttribute(Q,$,ke,Be)}},{key:"removeAttribute",value:function(Q,$,ke){this.delegate.removeAttribute(Q,$,ke)}},{key:"addClass",value:function(Q,$){this.delegate.addClass(Q,$)}},{key:"removeClass",value:function(Q,$){this.delegate.removeClass(Q,$)}},{key:"setStyle",value:function(Q,$,ke,Be){this.delegate.setStyle(Q,$,ke,Be)}},{key:"removeStyle",value:function(Q,$,ke){this.delegate.removeStyle(Q,$,ke)}},{key:"setProperty",value:function(Q,$,ke){"@"==$.charAt(0)&&$==ns?this.disableAnimations(Q,!!ke):this.delegate.setProperty(Q,$,ke)}},{key:"setValue",value:function(Q,$){this.delegate.setValue(Q,$)}},{key:"listen",value:function(Q,$,ke){return this.delegate.listen(Q,$,ke)}},{key:"disableAnimations",value:function(Q,$){this.engine.disableAnimations(Q,$)}}]),Ce}(),Tp=function(Ce){(0,Z.Z)(Q,Ce);var ge=(0,T.Z)(Q);function Q($,ke,Be,ut){var wt;return(0,B.Z)(this,Q),(wt=ge.call(this,ke,Be,ut)).factory=$,wt.namespaceId=ke,wt}return(0,V.Z)(Q,[{key:"setProperty",value:function(ke,Be,ut){"@"==Be.charAt(0)?"."==Be.charAt(1)&&Be==ns?this.disableAnimations(ke,ut=void 0===ut||!!ut):this.engine.process(this.namespaceId,ke,Be.substr(1),ut):this.delegate.setProperty(ke,Be,ut)}},{key:"listen",value:function(ke,Be,ut){var wt=this;if("@"==Be.charAt(0)){var Zt=function(Ce){switch(Ce){case"body":return document.body;case"document":return document;case"window":return window;default:return Ce}}(ke),$t=Be.substr(1),dn="";if("@"!=$t.charAt(0)){var Dn=function(Ce){var ge=Ce.indexOf(".");return[Ce.substring(0,ge),Ce.substr(ge+1)]}($t),Un=(0,U.Z)(Dn,2);$t=Un[0],dn=Un[1]}return this.engine.listen(this.namespaceId,Zt,$t,dn,function(Kn){wt.factory.scheduleListenerCallback(Kn._data||-1,ut,Kn)})}return this.delegate.listen(ke,Be,ut)}}]),Q}(Ds),pc=function(){var Ce=function(ge){(0,Z.Z)($,ge);var Q=(0,T.Z)($);function $(ke,Be,ut){return(0,B.Z)(this,$),Q.call(this,ke.body,Be,ut)}return(0,V.Z)($,[{key:"ngOnDestroy",value:function(){this.flush()}}]),$}(Ki);return Ce.\u0275fac=function(Q){return new(Q||Ce)(I.LFG(Pi.K0),I.LFG(Bt),I.LFG(hi))},Ce.\u0275prov=I.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce}(),_d=new I.OlP("AnimationModuleType"),kp=[{provide:v._j,useClass:ya},{provide:hi,useFactory:function(){return new Ei}},{provide:Ki,useClass:pc},{provide:I.FYo,useFactory:function(Ce,ge,Q){return new ba(Ce,ge,Q)},deps:[C.se,Ki,I.R0b]}],Ep=[{provide:Bt,useFactory:function(){return"function"==typeof zr()?new gt:new he}},{provide:_d,useValue:"BrowserAnimations"}].concat(kp),yd=[{provide:Bt,useClass:yt},{provide:_d,useValue:"NoopAnimations"}].concat(kp),au=function(){var Ce=function(){function ge(){(0,B.Z)(this,ge)}return(0,V.Z)(ge,null,[{key:"withConfig",value:function($){return{ngModule:ge,providers:$.disableAnimations?yd:Ep}}}]),ge}();return Ce.\u0275fac=function(Q){return new(Q||Ce)},Ce.\u0275mod=I.oAB({type:Ce}),Ce.\u0275inj=I.cJS({providers:Ep,imports:[C.b2]}),Ce}()},29176:function(ce,q,f){"use strict";f.d(q,{b2:function(){return qe},H7:function(){return xn},Dx:function(){return jr},HJ:function(){return po},q6:function(){return Oe},se:function(){return Ct}});var y,U=f(20901),B=f(89200),V=f(14105),Z=f(18967),T=f(10509),I=f(97154),C=f(40098),v=f(65508),D=function(Pt){(0,T.Z)(It,Pt);var Gt=(0,I.Z)(It);function It(){return(0,Z.Z)(this,It),Gt.apply(this,arguments)}return(0,V.Z)(It,[{key:"onAndCancel",value:function(Qt,Xt,yn){return Qt.addEventListener(Xt,yn,!1),function(){Qt.removeEventListener(Xt,yn,!1)}}},{key:"dispatchEvent",value:function(Qt,Xt){Qt.dispatchEvent(Xt)}},{key:"remove",value:function(Qt){Qt.parentNode&&Qt.parentNode.removeChild(Qt)}},{key:"createElement",value:function(Qt,Xt){return(Xt=Xt||this.getDefaultDocument()).createElement(Qt)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(Qt){return Qt.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(Qt){return Qt instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(Qt,Xt){return"window"===Xt?window:"document"===Xt?Qt:"body"===Xt?Qt.body:null}},{key:"getBaseHref",value:function(Qt){var Xt=(M=M||document.querySelector("base"))?M.getAttribute("href"):null;return null==Xt?null:function(Pt){(y=y||document.createElement("a")).setAttribute("href",Pt);var Gt=y.pathname;return"/"===Gt.charAt(0)?Gt:"/".concat(Gt)}(Xt)}},{key:"resetBaseElement",value:function(){M=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(Qt){return(0,C.Mx)(document.cookie,Qt)}}],[{key:"makeCurrent",value:function(){(0,C.HT)(new It)}}]),It}(function(Pt){(0,T.Z)(It,Pt);var Gt=(0,I.Z)(It);function It(){var jt;return(0,Z.Z)(this,It),(jt=Gt.apply(this,arguments)).supportsDOMEvents=!0,jt}return It}(C.w_)),M=null,k=new v.OlP("TRANSITION_ID"),E=[{provide:v.ip1,useFactory:function(Pt,Gt,It){return function(){It.get(v.CZH).donePromise.then(function(){for(var jt=(0,C.q)(),Qt=Gt.querySelectorAll('style[ng-transition="'.concat(Pt,'"]')),Xt=0;Xt<Qt.length;Xt++)jt.remove(Qt[Xt])})}},deps:[k,C.K0,v.zs3],multi:!0}],x=function(){function Pt(){(0,Z.Z)(this,Pt)}return(0,V.Z)(Pt,[{key:"addToWindow",value:function(It){v.dqk.getAngularTestability=function(Qt){var Xt=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],yn=It.findTestabilityInTree(Qt,Xt);if(null==yn)throw new Error("Could not find testability for element.");return yn},v.dqk.getAllAngularTestabilities=function(){return It.getAllTestabilities()},v.dqk.getAllAngularRootElements=function(){return It.getAllRootElements()},v.dqk.frameworkStabilizers||(v.dqk.frameworkStabilizers=[]),v.dqk.frameworkStabilizers.push(function(Xt){var yn=v.dqk.getAllAngularTestabilities(),Gn=yn.length,jn=!1,zn=function(bi){jn=jn||bi,0==--Gn&&Xt(jn)};yn.forEach(function(li){li.whenStable(zn)})})}},{key:"findTestabilityInTree",value:function(It,jt,Qt){if(null==jt)return null;var Xt=It.getTestability(jt);return null!=Xt?Xt:Qt?(0,C.q)().isShadowRoot(jt)?this.findTestabilityInTree(It,jt.host,!0):this.findTestabilityInTree(It,jt.parentElement,!0):null}}],[{key:"init",value:function(){(0,v.VLi)(new Pt)}}]),Pt}(),S=function(){var Pt=function(){function Gt(){(0,Z.Z)(this,Gt)}return(0,V.Z)(Gt,[{key:"build",value:function(){return new XMLHttpRequest}}]),Gt}();return Pt.\u0275fac=function(It){return new(It||Pt)},Pt.\u0275prov=v.Yz7({token:Pt,factory:Pt.\u0275fac}),Pt}();var ot=new v.OlP("EventManagerPlugins"),He=function(){var Pt=function(){function Gt(It,jt){var Qt=this;(0,Z.Z)(this,Gt),this._zone=jt,this._eventNameToPlugin=new Map,It.forEach(function(Xt){return Xt.manager=Qt}),this._plugins=It.slice().reverse()}return(0,V.Z)(Gt,[{key:"addEventListener",value:function(jt,Qt,Xt){return this._findPluginFor(Qt).addEventListener(jt,Qt,Xt)}},{key:"addGlobalEventListener",value:function(jt,Qt,Xt){return this._findPluginFor(Qt).addGlobalEventListener(jt,Qt,Xt)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(jt){var Qt=this._eventNameToPlugin.get(jt);if(Qt)return Qt;for(var Xt=this._plugins,yn=0;yn<Xt.length;yn++){var Gn=Xt[yn];if(Gn.supports(jt))return this._eventNameToPlugin.set(jt,Gn),Gn}throw new Error("No event manager plugin found for event ".concat(jt))}}]),Gt}();return Pt.\u0275fac=function(It){return new(It||Pt)(v.LFG(ot),v.LFG(v.R0b))},Pt.\u0275prov=v.Yz7({token:Pt,factory:Pt.\u0275fac}),Pt}(),_t=function(){function Pt(Gt){(0,Z.Z)(this,Pt),this._doc=Gt}return(0,V.Z)(Pt,[{key:"addGlobalEventListener",value:function(It,jt,Qt){var Xt=(0,C.q)().getGlobalEventTarget(this._doc,It);if(!Xt)throw new Error("Unsupported event target ".concat(Xt," for event ").concat(jt));return this.addEventListener(Xt,jt,Qt)}}]),Pt}(),yt=function(){var Pt=function(){function Gt(){(0,Z.Z)(this,Gt),this._stylesSet=new Set}return(0,V.Z)(Gt,[{key:"addStyles",value:function(jt){var Qt=this,Xt=new Set;jt.forEach(function(yn){Qt._stylesSet.has(yn)||(Qt._stylesSet.add(yn),Xt.add(yn))}),this.onStylesAdded(Xt)}},{key:"onStylesAdded",value:function(jt){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),Gt}();return Pt.\u0275fac=function(It){return new(It||Pt)},Pt.\u0275prov=v.Yz7({token:Pt,factory:Pt.\u0275fac}),Pt}(),Bt=function(){var Pt=function(Gt){(0,T.Z)(jt,Gt);var It=(0,I.Z)(jt);function jt(Qt){var Xt;return(0,Z.Z)(this,jt),(Xt=It.call(this))._doc=Qt,Xt._hostNodes=new Map,Xt._hostNodes.set(Qt.head,[]),Xt}return(0,V.Z)(jt,[{key:"_addStylesToHost",value:function(Xt,yn,Gn){var jn=this;Xt.forEach(function(zn){var li=jn._doc.createElement("style");li.textContent=zn,Gn.push(yn.appendChild(li))})}},{key:"addHost",value:function(Xt){var yn=[];this._addStylesToHost(this._stylesSet,Xt,yn),this._hostNodes.set(Xt,yn)}},{key:"removeHost",value:function(Xt){var yn=this._hostNodes.get(Xt);yn&&yn.forEach(Se),this._hostNodes.delete(Xt)}},{key:"onStylesAdded",value:function(Xt){var yn=this;this._hostNodes.forEach(function(Gn,jn){yn._addStylesToHost(Xt,jn,Gn)})}},{key:"ngOnDestroy",value:function(){this._hostNodes.forEach(function(Xt){return Xt.forEach(Se)})}}]),jt}(yt);return Pt.\u0275fac=function(It){return new(It||Pt)(v.LFG(C.K0))},Pt.\u0275prov=v.Yz7({token:Pt,factory:Pt.\u0275fac}),Pt}();function Se(Pt){(0,C.q)().remove(Pt)}var De={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Ve=/%COMP%/g,Ut="_nghost-".concat("%COMP%"),Et="_ngcontent-".concat("%COMP%");function Vt(Pt,Gt,It){for(var jt=0;jt<Gt.length;jt++){var Qt=Gt[jt];Array.isArray(Qt)?Vt(Pt,Qt,It):(Qt=Qt.replace(Ve,Pt),It.push(Qt))}return It}function St(Pt){return function(Gt){if("__ngUnwrap__"===Gt)return Pt;!1===Pt(Gt)&&(Gt.preventDefault(),Gt.returnValue=!1)}}var Ct=function(){var Pt=function(){function Gt(It,jt,Qt){(0,Z.Z)(this,Gt),this.eventManager=It,this.sharedStylesHost=jt,this.appId=Qt,this.rendererByCompId=new Map,this.defaultRenderer=new en(It)}return(0,V.Z)(Gt,[{key:"createRenderer",value:function(jt,Qt){if(!jt||!Qt)return this.defaultRenderer;switch(Qt.encapsulation){case v.ifc.Emulated:var Xt=this.rendererByCompId.get(Qt.id);return Xt||(Xt=new Zn(this.eventManager,this.sharedStylesHost,Qt,this.appId),this.rendererByCompId.set(Qt.id,Xt)),Xt.applyToHost(jt),Xt;case 1:case v.ifc.ShadowDom:return new Rn(this.eventManager,this.sharedStylesHost,jt,Qt);default:if(!this.rendererByCompId.has(Qt.id)){var yn=Vt(Qt.id,Qt.styles,[]);this.sharedStylesHost.addStyles(yn),this.rendererByCompId.set(Qt.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),Gt}();return Pt.\u0275fac=function(It){return new(It||Pt)(v.LFG(He),v.LFG(Bt),v.LFG(v.AFp))},Pt.\u0275prov=v.Yz7({token:Pt,factory:Pt.\u0275fac}),Pt}(),en=function(){function Pt(Gt){(0,Z.Z)(this,Pt),this.eventManager=Gt,this.data=Object.create(null)}return(0,V.Z)(Pt,[{key:"destroy",value:function(){}},{key:"createElement",value:function(It,jt){return jt?document.createElementNS(De[jt]||jt,It):document.createElement(It)}},{key:"createComment",value:function(It){return document.createComment(It)}},{key:"createText",value:function(It){return document.createTextNode(It)}},{key:"appendChild",value:function(It,jt){It.appendChild(jt)}},{key:"insertBefore",value:function(It,jt,Qt){It&&It.insertBefore(jt,Qt)}},{key:"removeChild",value:function(It,jt){It&&It.removeChild(jt)}},{key:"selectRootElement",value:function(It,jt){var Qt="string"==typeof It?document.querySelector(It):It;if(!Qt)throw new Error('The selector "'.concat(It,'" did not match any elements'));return jt||(Qt.textContent=""),Qt}},{key:"parentNode",value:function(It){return It.parentNode}},{key:"nextSibling",value:function(It){return It.nextSibling}},{key:"setAttribute",value:function(It,jt,Qt,Xt){if(Xt){jt=Xt+":"+jt;var yn=De[Xt];yn?It.setAttributeNS(yn,jt,Qt):It.setAttribute(jt,Qt)}else It.setAttribute(jt,Qt)}},{key:"removeAttribute",value:function(It,jt,Qt){if(Qt){var Xt=De[Qt];Xt?It.removeAttributeNS(Xt,jt):It.removeAttribute("".concat(Qt,":").concat(jt))}else It.removeAttribute(jt)}},{key:"addClass",value:function(It,jt){It.classList.add(jt)}},{key:"removeClass",value:function(It,jt){It.classList.remove(jt)}},{key:"setStyle",value:function(It,jt,Qt,Xt){Xt&(v.JOm.DashCase|v.JOm.Important)?It.style.setProperty(jt,Qt,Xt&v.JOm.Important?"important":""):It.style[jt]=Qt}},{key:"removeStyle",value:function(It,jt,Qt){Qt&v.JOm.DashCase?It.style.removeProperty(jt):It.style[jt]=""}},{key:"setProperty",value:function(It,jt,Qt){It[jt]=Qt}},{key:"setValue",value:function(It,jt){It.nodeValue=jt}},{key:"listen",value:function(It,jt,Qt){return"string"==typeof It?this.eventManager.addGlobalEventListener(It,jt,St(Qt)):this.eventManager.addEventListener(It,jt,St(Qt))}}]),Pt}(),Zn=function(Pt){(0,T.Z)(It,Pt);var Gt=(0,I.Z)(It);function It(jt,Qt,Xt,yn){var Gn;(0,Z.Z)(this,It),(Gn=Gt.call(this,jt)).component=Xt;var jn=Vt(yn+"-"+Xt.id,Xt.styles,[]);return Qt.addStyles(jn),Gn.contentAttr=function(Pt){return Et.replace(Ve,Pt)}(yn+"-"+Xt.id),Gn.hostAttr=function(Pt){return Ut.replace(Ve,Pt)}(yn+"-"+Xt.id),Gn}return(0,V.Z)(It,[{key:"applyToHost",value:function(Qt){(0,U.Z)((0,B.Z)(It.prototype),"setAttribute",this).call(this,Qt,this.hostAttr,"")}},{key:"createElement",value:function(Qt,Xt){var yn=(0,U.Z)((0,B.Z)(It.prototype),"createElement",this).call(this,Qt,Xt);return(0,U.Z)((0,B.Z)(It.prototype),"setAttribute",this).call(this,yn,this.contentAttr,""),yn}}]),It}(en),Rn=function(Pt){(0,T.Z)(It,Pt);var Gt=(0,I.Z)(It);function It(jt,Qt,Xt,yn){var Gn;(0,Z.Z)(this,It),(Gn=Gt.call(this,jt)).sharedStylesHost=Qt,Gn.hostEl=Xt,Gn.shadowRoot=Xt.attachShadow({mode:"open"}),Gn.sharedStylesHost.addHost(Gn.shadowRoot);for(var jn=Vt(yn.id,yn.styles,[]),zn=0;zn<jn.length;zn++){var li=document.createElement("style");li.textContent=jn[zn],Gn.shadowRoot.appendChild(li)}return Gn}return(0,V.Z)(It,[{key:"nodeOrShadowRoot",value:function(Qt){return Qt===this.hostEl?this.shadowRoot:Qt}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(Qt,Xt){return(0,U.Z)((0,B.Z)(It.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(Qt),Xt)}},{key:"insertBefore",value:function(Qt,Xt,yn){return(0,U.Z)((0,B.Z)(It.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(Qt),Xt,yn)}},{key:"removeChild",value:function(Qt,Xt){return(0,U.Z)((0,B.Z)(It.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(Qt),Xt)}},{key:"parentNode",value:function(Qt){return this.nodeOrShadowRoot((0,U.Z)((0,B.Z)(It.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(Qt)))}}]),It}(en),tr=function(){var Pt=function(Gt){(0,T.Z)(jt,Gt);var It=(0,I.Z)(jt);function jt(Qt){return(0,Z.Z)(this,jt),It.call(this,Qt)}return(0,V.Z)(jt,[{key:"supports",value:function(Xt){return!0}},{key:"addEventListener",value:function(Xt,yn,Gn){var jn=this;return Xt.addEventListener(yn,Gn,!1),function(){return jn.removeEventListener(Xt,yn,Gn)}}},{key:"removeEventListener",value:function(Xt,yn,Gn){return Xt.removeEventListener(yn,Gn)}}]),jt}(_t);return Pt.\u0275fac=function(It){return new(It||Pt)(v.LFG(C.K0))},Pt.\u0275prov=v.Yz7({token:Pt,factory:Pt.\u0275fac}),Pt}(),Ge=["alt","control","meta","shift"],bt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Lt={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Cn={alt:function(Gt){return Gt.altKey},control:function(Gt){return Gt.ctrlKey},meta:function(Gt){return Gt.metaKey},shift:function(Gt){return Gt.shiftKey}},In=function(){var Pt=function(Gt){(0,T.Z)(jt,Gt);var It=(0,I.Z)(jt);function jt(Qt){return(0,Z.Z)(this,jt),It.call(this,Qt)}return(0,V.Z)(jt,[{key:"supports",value:function(Xt){return null!=jt.parseEventName(Xt)}},{key:"addEventListener",value:function(Xt,yn,Gn){var jn=jt.parseEventName(yn),zn=jt.eventCallback(jn.fullKey,Gn,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return(0,C.q)().onAndCancel(Xt,jn.domEventName,zn)})}}],[{key:"parseEventName",value:function(Xt){var yn=Xt.toLowerCase().split("."),Gn=yn.shift();if(0===yn.length||"keydown"!==Gn&&"keyup"!==Gn)return null;var jn=jt._normalizeKey(yn.pop()),zn="";if(Ge.forEach(function(bi){var io=yn.indexOf(bi);io>-1&&(yn.splice(io,1),zn+=bi+".")}),zn+=jn,0!=yn.length||0===jn.length)return null;var li={};return li.domEventName=Gn,li.fullKey=zn,li}},{key:"getEventFullKey",value:function(Xt){var yn="",Gn=function(Pt){var Gt=Pt.key;if(null==Gt){if(null==(Gt=Pt.keyIdentifier))return"Unidentified";Gt.startsWith("U+")&&(Gt=String.fromCharCode(parseInt(Gt.substring(2),16)),3===Pt.location&&Lt.hasOwnProperty(Gt)&&(Gt=Lt[Gt]))}return bt[Gt]||Gt}(Xt);return" "===(Gn=Gn.toLowerCase())?Gn="space":"."===Gn&&(Gn="dot"),Ge.forEach(function(jn){jn!=Gn&&(0,Cn[jn])(Xt)&&(yn+=jn+".")}),yn+=Gn}},{key:"eventCallback",value:function(Xt,yn,Gn){return function(jn){jt.getEventFullKey(jn)===Xt&&Gn.runGuarded(function(){return yn(jn)})}}},{key:"_normalizeKey",value:function(Xt){switch(Xt){case"esc":return"escape";default:return Xt}}}]),jt}(_t);return Pt.\u0275fac=function(It){return new(It||Pt)(v.LFG(C.K0))},Pt.\u0275prov=v.Yz7({token:Pt,factory:Pt.\u0275fac}),Pt}(),xn=function(){var Pt=function Gt(){(0,Z.Z)(this,Gt)};return Pt.\u0275fac=function(It){return new(It||Pt)},Pt.\u0275prov=(0,v.Yz7)({factory:function(){return(0,v.LFG)($n)},token:Pt,providedIn:"root"}),Pt}(),$n=function(){var Pt=function(Gt){(0,T.Z)(jt,Gt);var It=(0,I.Z)(jt);function jt(Qt){var Xt;return(0,Z.Z)(this,jt),(Xt=It.call(this))._doc=Qt,Xt}return(0,V.Z)(jt,[{key:"sanitize",value:function(Xt,yn){if(null==yn)return null;switch(Xt){case v.q3G.NONE:return yn;case v.q3G.HTML:return(0,v.qzn)(yn,"HTML")?(0,v.z3N)(yn):(0,v.EiD)(this._doc,String(yn)).toString();case v.q3G.STYLE:return(0,v.qzn)(yn,"Style")?(0,v.z3N)(yn):yn;case v.q3G.SCRIPT:if((0,v.qzn)(yn,"Script"))return(0,v.z3N)(yn);throw new Error("unsafe value used in a script context");case v.q3G.URL:return(0,v.yhl)(yn),(0,v.qzn)(yn,"URL")?(0,v.z3N)(yn):(0,v.mCW)(String(yn));case v.q3G.RESOURCE_URL:if((0,v.qzn)(yn,"ResourceURL"))return(0,v.z3N)(yn);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(Xt," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(Xt){return(0,v.JVY)(Xt)}},{key:"bypassSecurityTrustStyle",value:function(Xt){return(0,v.L6k)(Xt)}},{key:"bypassSecurityTrustScript",value:function(Xt){return(0,v.eBb)(Xt)}},{key:"bypassSecurityTrustUrl",value:function(Xt){return(0,v.LAX)(Xt)}},{key:"bypassSecurityTrustResourceUrl",value:function(Xt){return(0,v.pB0)(Xt)}}]),jt}(xn);return Pt.\u0275fac=function(It){return new(It||Pt)(v.LFG(C.K0))},Pt.\u0275prov=(0,v.Yz7)({factory:function(){return function(Pt){return new $n(Pt.get(C.K0))}((0,v.LFG)(v.gxx))},token:Pt,providedIn:"root"}),Pt}(),Oe=(0,v.eFA)(v._c5,"browser",[{provide:v.Lbi,useValue:C.bD},{provide:v.g9A,useValue:function(){D.makeCurrent(),x.init()},multi:!0},{provide:C.K0,useFactory:function(){return(0,v.RDi)(document),document},deps:[]}]),Le=[[],{provide:v.zSh,useValue:"root"},{provide:v.qLn,useFactory:function(){return new v.qLn},deps:[]},{provide:ot,useClass:tr,multi:!0,deps:[C.K0,v.R0b,v.Lbi]},{provide:ot,useClass:In,multi:!0,deps:[C.K0]},[],{provide:Ct,useClass:Ct,deps:[He,Bt,v.AFp]},{provide:v.FYo,useExisting:Ct},{provide:yt,useExisting:Bt},{provide:Bt,useClass:Bt,deps:[C.K0]},{provide:v.dDg,useClass:v.dDg,deps:[v.R0b]},{provide:He,useClass:He,deps:[ot,v.R0b]},{provide:C.JF,useClass:S,deps:[]},[]],qe=function(){var Pt=function(){function Gt(It){if((0,Z.Z)(this,Gt),It)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return(0,V.Z)(Gt,null,[{key:"withServerTransition",value:function(jt){return{ngModule:Gt,providers:[{provide:v.AFp,useValue:jt.appId},{provide:k,useExisting:v.AFp},E]}}}]),Gt}();return Pt.\u0275fac=function(It){return new(It||Pt)(v.LFG(Pt,12))},Pt.\u0275mod=v.oAB({type:Pt}),Pt.\u0275inj=v.cJS({providers:Le,imports:[C.ez,v.hGG]}),Pt}();function Zr(){return new jr((0,v.LFG)(C.K0))}var jr=function(){var Pt=function(){function Gt(It){(0,Z.Z)(this,Gt),this._doc=It}return(0,V.Z)(Gt,[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(jt){this._doc.title=jt||""}}]),Gt}();return Pt.\u0275fac=function(It){return new(It||Pt)(v.LFG(C.K0))},Pt.\u0275prov=(0,v.Yz7)({factory:Zr,token:Pt,providedIn:"root"}),Pt}(),Cr="undefined"!=typeof window&&window||{},Kr=function Pt(Gt,It){(0,Z.Z)(this,Pt),this.msPerTick=Gt,this.numTicks=It},co=function(){function Pt(Gt){(0,Z.Z)(this,Pt),this.appRef=Gt.injector.get(v.z2F)}return(0,V.Z)(Pt,[{key:"timeChangeDetection",value:function(It){var jt=It&&It.record,Qt="Change Detection",Xt=null!=Cr.console.profile;jt&&Xt&&Cr.console.profile(Qt);for(var yn=Ni(),Gn=0;Gn<5||Ni()-yn<500;)this.appRef.tick(),Gn++;var jn=Ni();jt&&Xt&&Cr.console.profileEnd(Qt);var zn=(jn-yn)/Gn;return Cr.console.log("ran ".concat(Gn," change detection cycles")),Cr.console.log("".concat(zn.toFixed(2)," ms per check")),new Kr(zn,Gn)}}]),Pt}();function Ni(){return Cr.performance&&Cr.performance.now?Cr.performance.now():(new Date).getTime()}function po(Pt){return function(Pt,Gt){"undefined"!=typeof COMPILED&&COMPILED||((v.dqk.ng=v.dqk.ng||{})[Pt]=Gt)}("profiler",new co(Pt)),Pt}},82605:function(ce,q,f){"use strict";f.d(q,{Rf:function(){return V},DM:function(){return Z},en:function(){return T},jH:function(){return I},Cf:function(){return C},Db:function(){return v},EG:function(){return P},l4:function(){return D},JY:function(){return g}});var U=f(4839),B={};function V(){return(0,U.KV)()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:B}function Z(){var E=V(),x=E.crypto||E.msCrypto;if(void 0!==x&&x.getRandomValues){var S=new Uint16Array(8);x.getRandomValues(S),S[3]=4095&S[3]|16384,S[4]=16383&S[4]|32768;var O=function(j){for(var K=j.toString(16);K.length<4;)K="0"+K;return K};return O(S[0])+O(S[1])+O(S[2])+O(S[3])+O(S[4])+O(S[5])+O(S[6])+O(S[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(L){var j=16*Math.random()|0;return("x"===L?j:3&j|8).toString(16)})}function T(E){if(!E)return{};var x=E.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);return x?{host:x[4],path:x[5],protocol:x[2],relative:x[5]+(x[6]||"")+(x[8]||"")}:{}}function I(E){if(E.message)return E.message;if(E.exception&&E.exception.values&&E.exception.values[0]){var x=E.exception.values[0];return x.type&&x.value?x.type+": "+x.value:x.type||x.value||E.event_id||"<unknown>"}return E.event_id||"<unknown>"}function C(E){var x=V();if(!("console"in x))return E();var O=x.console,L={};["debug","info","warn","error","log","assert"].forEach(function(K){K in x.console&&O[K].__sentry_original__&&(L[K]=O[K],O[K]=O[K].__sentry_original__)});var j=E();return Object.keys(L).forEach(function(K){O[K]=L[K]}),j}function v(E,x,S){E.exception=E.exception||{},E.exception.values=E.exception.values||[],E.exception.values[0]=E.exception.values[0]||{},E.exception.values[0].value=E.exception.values[0].value||x||"",E.exception.values[0].type=E.exception.values[0].type||S||"Error"}function P(E,x){void 0===x&&(x={});try{E.exception.values[0].mechanism=E.exception.values[0].mechanism||{},Object.keys(x).forEach(function(S){E.exception.values[0].mechanism[S]=x[S]})}catch(S){}}function D(){try{return document.location.href}catch(E){return""}}function g(E,x){if(!x)return 6e4;var S=parseInt(""+x,10);if(!isNaN(S))return 1e3*S;var O=Date.parse(""+x);return isNaN(O)?6e4:O-E}},4839:function(ce,q,f){"use strict";function U(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function B(Z,T){return Z.require(T)}f.d(q,{KV:function(){return U},l$:function(){return B}}),ce=f.hmd(ce)},46354:function(ce,q,f){"use strict";f.d(q,{yW:function(){return v},ph:function(){return P}});var U=f(82605),B=f(4839);ce=f.hmd(ce);var V={nowSeconds:function(){return Date.now()/1e3}},I=(0,B.KV)()?function(){try{return(0,B.l$)(ce,"perf_hooks").performance}catch(k){return}}():function(){var g=(0,U.Rf)().performance;if(g&&g.now)return{now:function(){return g.now()},timeOrigin:Date.now()-g.now()}}(),C=void 0===I?V:{nowSeconds:function(){return(I.timeOrigin+I.now())/1e3}},v=V.nowSeconds.bind(V),P=C.nowSeconds.bind(C);!function(){var g=(0,U.Rf)().performance;if(g&&g.now){var k=36e5,N=g.now(),E=Date.now(),x=g.timeOrigin?Math.abs(g.timeOrigin+N-E):k,S=x<k,O=g.timing&&g.timing.navigationStart,j="number"==typeof O?Math.abs(O+N-E):k}}()},39095:function(ce,q,f){"use strict";f.d(q,{E$:function(){return Bt},ym:function(){return Ve}});var U=f(27235),B=f(18967),V=f(14105),Z=f(40098),T=f(65508),I=f(68707),C=f(55371),v=f(93487),P=f(89797),M=(f(33090),f(59371)),A=f(16338),y=f(57682),g=f(85639),k=f(34487),N=f(54562),E=f(44213),x=f(35135),S=f(48359),O=f(4363),L=f(58780),j="undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0);function K(ct,Je){var Ut=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,Et=Math.abs(ct-Je);return Et<Ut}function W(ct,Je,Ut,Et){var vt={top:ct.top,bottom:ct.bottom,left:ct.left,right:ct.right};return Je.top&&(vt.top+=Et),Je.bottom&&(vt.bottom+=Et),Je.left&&(vt.left+=Ut),Je.right&&(vt.right+=Ut),vt.height=vt.bottom-vt.top,vt.width=vt.right-vt.left,vt}function oe(ct){var Je=ct.clientY,Ut=ct.rect;return Je>=Ut.top&&Je<=Ut.bottom}function te(ct){var Je=ct.clientX,Ut=ct.rect;return Je>=Ut.left&&Je<=Ut.right}function se(ct){var Je=ct.clientX,Ut=ct.clientY,vt=ct.allowedEdges,Kt=ct.cursorPrecision,Vt=ct.elm.nativeElement.getBoundingClientRect(),St={};return vt.left&&K(Je,Vt.left,Kt)&&oe({clientY:Ut,rect:Vt})&&(St.left=!0),vt.right&&K(Je,Vt.right,Kt)&&oe({clientY:Ut,rect:Vt})&&(St.right=!0),vt.top&&K(Ut,Vt.top,Kt)&&te({clientX:Je,rect:Vt})&&(St.top=!0),vt.bottom&&K(Ut,Vt.bottom,Kt)&&te({clientX:Je,rect:Vt})&&(St.bottom=!0),St}var le=Object.freeze({topLeft:"nw-resize",topRight:"ne-resize",bottomLeft:"sw-resize",bottomRight:"se-resize",leftOrRight:"col-resize",topOrBottom:"row-resize"});function de(ct,Je){return ct.left&&ct.top?Je.topLeft:ct.right&&ct.top?Je.topRight:ct.left&&ct.bottom?Je.bottomLeft:ct.right&&ct.bottom?Je.bottomRight:ct.left||ct.right?Je.leftOrRight:ct.top||ct.bottom?Je.topOrBottom:""}function ue(ct){var Ut=ct.initialRectangle,Et=ct.newRectangle,vt={};return Object.keys(ct.edges).forEach(function(Kt){vt[Kt]=(Et[Kt]||0)-(Ut[Kt]||0)}),vt}var ae="resize-active",Bt=function(){var ct=function(){function Je(Ut,Et,vt,Kt){(0,B.Z)(this,Je),this.platformId=Ut,this.renderer=Et,this.elm=vt,this.zone=Kt,this.resizeEdges={},this.enableGhostResize=!1,this.resizeSnapGrid={},this.resizeCursors=le,this.resizeCursorPrecision=3,this.ghostElementPositioning="fixed",this.allowNegativeResizes=!1,this.mouseMoveThrottleMS=50,this.resizeStart=new T.vpe,this.resizing=new T.vpe,this.resizeEnd=new T.vpe,this.mouseup=new I.xQ,this.mousedown=new I.xQ,this.mousemove=new I.xQ,this.destroy$=new I.xQ,this.resizeEdges$=new I.xQ,this.pointerEventListeners=Se.getInstance(Et,Kt)}return(0,V.Z)(Je,[{key:"ngOnInit",value:function(){var St,Et=this,vt=(0,C.T)(this.pointerEventListeners.pointerDown,this.mousedown),Kt=(0,C.T)(this.pointerEventListeners.pointerMove,this.mousemove).pipe((0,M.b)(function(Ft){var on=Ft.event;if(St)try{on.preventDefault()}catch(En){}}),(0,A.B)()),Vt=(0,C.T)(this.pointerEventListeners.pointerUp,this.mouseup),qt=function(){St&&St.clonedNode&&(Et.elm.nativeElement.parentElement.removeChild(St.clonedNode),Et.renderer.setStyle(Et.elm.nativeElement,"visibility","inherit"))},Ct=function(){return Object.assign({},le,Et.resizeCursors)};this.resizeEdges$.pipe((0,y.O)(this.resizeEdges),(0,g.U)(function(){return Et.resizeEdges&&Object.keys(Et.resizeEdges).some(function(Ft){return!!Et.resizeEdges[Ft]})}),(0,k.w)(function(Ft){return Ft?Kt:v.E}),(0,N.e)(this.mouseMoveThrottleMS),(0,E.R)(this.destroy$)).subscribe(function(Ft){var Zn=se({clientX:Ft.clientX,clientY:Ft.clientY,elm:Et.elm,allowedEdges:Et.resizeEdges,cursorPrecision:Et.resizeCursorPrecision}),Rn=Ct();if(!St){var tr=de(Zn,Rn);Et.renderer.setStyle(Et.elm.nativeElement,"cursor",tr)}Et.setElementClass(Et.elm,"resize-left-hover",!0===Zn.left),Et.setElementClass(Et.elm,"resize-right-hover",!0===Zn.right),Et.setElementClass(Et.elm,"resize-top-hover",!0===Zn.top),Et.setElementClass(Et.elm,"resize-bottom-hover",!0===Zn.bottom)}),vt.pipe((0,x.zg)(function(Ft){function on(Rn){return{clientX:Rn.clientX-Ft.clientX,clientY:Rn.clientY-Ft.clientY}}var En=function(){var tr={x:1,y:1};return St&&(Et.resizeSnapGrid.left&&St.edges.left?tr.x=+Et.resizeSnapGrid.left:Et.resizeSnapGrid.right&&St.edges.right&&(tr.x=+Et.resizeSnapGrid.right),Et.resizeSnapGrid.top&&St.edges.top?tr.y=+Et.resizeSnapGrid.top:Et.resizeSnapGrid.bottom&&St.edges.bottom&&(tr.y=+Et.resizeSnapGrid.bottom)),tr};function Zn(Rn,tr){return{x:Math.ceil(Rn.clientX/tr.x),y:Math.ceil(Rn.clientY/tr.y)}}return(0,C.T)(Kt.pipe((0,S.q)(1)).pipe((0,g.U)(function(Rn){return[,Rn]})),Kt.pipe((0,O.G)())).pipe((0,g.U)(function(Rn){var tr=(0,U.Z)(Rn,2),Nn=tr[0],wn=tr[1];return[Nn&&on(Nn),on(wn)]})).pipe((0,L.h)(function(Rn){var tr=(0,U.Z)(Rn,2),Nn=tr[0],wn=tr[1];if(!Nn)return!0;var yr=En(),Wt=Zn(Nn,yr),Mt=Zn(wn,yr);return Wt.x!==Mt.x||Wt.y!==Mt.y})).pipe((0,g.U)(function(Rn){var Nn=(0,U.Z)(Rn,2)[1],wn=En();return{clientX:Math.round(Nn.clientX/wn.x)*wn.x,clientY:Math.round(Nn.clientY/wn.y)*wn.y}})).pipe((0,E.R)((0,C.T)(Vt,vt)))})).pipe((0,L.h)(function(){return!!St})).pipe((0,g.U)(function(Ft){return W(St.startingRect,St.edges,Ft.clientX,Ft.clientY)})).pipe((0,L.h)(function(Ft){return Et.allowNegativeResizes||!!(Ft.height&&Ft.width&&Ft.height>0&&Ft.width>0)})).pipe((0,L.h)(function(Ft){return!Et.validateResize||Et.validateResize({rectangle:Ft,edges:ue({edges:St.edges,initialRectangle:St.startingRect,newRectangle:Ft})})}),(0,E.R)(this.destroy$)).subscribe(function(Ft){St&&St.clonedNode&&(Et.renderer.setStyle(St.clonedNode,"height","".concat(Ft.height,"px")),Et.renderer.setStyle(St.clonedNode,"width","".concat(Ft.width,"px")),Et.renderer.setStyle(St.clonedNode,"top","".concat(Ft.top,"px")),Et.renderer.setStyle(St.clonedNode,"left","".concat(Ft.left,"px"))),Et.resizing.observers.length>0&&Et.zone.run(function(){Et.resizing.emit({edges:ue({edges:St.edges,initialRectangle:St.startingRect,newRectangle:Ft}),rectangle:Ft})}),St.currentRect=Ft}),vt.pipe((0,g.U)(function(Ft){return Ft.edges||se({clientX:Ft.clientX,clientY:Ft.clientY,elm:Et.elm,allowedEdges:Et.resizeEdges,cursorPrecision:Et.resizeCursorPrecision})})).pipe((0,L.h)(function(Ft){return Object.keys(Ft).length>0}),(0,E.R)(this.destroy$)).subscribe(function(Ft){St&&qt();var on=function(ct,Je){var Ut=0,Et=0,vt=ct.nativeElement.style,Vt=["transform","-ms-transform","-moz-transform","-o-transform"].map(function(qt){return vt[qt]}).find(function(qt){return!!qt});if(Vt&&Vt.includes("translate")&&(Ut=Vt.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$1"),Et=Vt.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$2")),"absolute"===Je)return{height:ct.nativeElement.offsetHeight,width:ct.nativeElement.offsetWidth,top:ct.nativeElement.offsetTop-Et,bottom:ct.nativeElement.offsetHeight+ct.nativeElement.offsetTop-Et,left:ct.nativeElement.offsetLeft-Ut,right:ct.nativeElement.offsetWidth+ct.nativeElement.offsetLeft-Ut};var St=ct.nativeElement.getBoundingClientRect();return{height:St.height,width:St.width,top:St.top-Et,bottom:St.bottom-Et,left:St.left-Ut,right:St.right-Ut,scrollTop:ct.nativeElement.scrollTop,scrollLeft:ct.nativeElement.scrollLeft}}(Et.elm,Et.ghostElementPositioning);St={edges:Ft,startingRect:on,currentRect:on};var En=Ct(),Zn=de(St.edges,En);Et.renderer.setStyle(document.body,"cursor",Zn),Et.setElementClass(Et.elm,ae,!0),Et.enableGhostResize&&(St.clonedNode=Et.elm.nativeElement.cloneNode(!0),Et.elm.nativeElement.parentElement.appendChild(St.clonedNode),Et.renderer.setStyle(Et.elm.nativeElement,"visibility","hidden"),Et.renderer.setStyle(St.clonedNode,"position",Et.ghostElementPositioning),Et.renderer.setStyle(St.clonedNode,"left","".concat(St.startingRect.left,"px")),Et.renderer.setStyle(St.clonedNode,"top","".concat(St.startingRect.top,"px")),Et.renderer.setStyle(St.clonedNode,"height","".concat(St.startingRect.height,"px")),Et.renderer.setStyle(St.clonedNode,"width","".concat(St.startingRect.width,"px")),Et.renderer.setStyle(St.clonedNode,"cursor",de(St.edges,En)),Et.renderer.addClass(St.clonedNode,"resize-ghost-element"),St.clonedNode.scrollTop=St.startingRect.scrollTop,St.clonedNode.scrollLeft=St.startingRect.scrollLeft),Et.resizeStart.observers.length>0&&Et.zone.run(function(){Et.resizeStart.emit({edges:ue({edges:Ft,initialRectangle:on,newRectangle:on}),rectangle:W(on,{},0,0)})})}),Vt.pipe((0,E.R)(this.destroy$)).subscribe(function(){St&&(Et.renderer.removeClass(Et.elm.nativeElement,ae),Et.renderer.setStyle(document.body,"cursor",""),Et.renderer.setStyle(Et.elm.nativeElement,"cursor",""),Et.resizeEnd.observers.length>0&&Et.zone.run(function(){Et.resizeEnd.emit({edges:ue({edges:St.edges,initialRectangle:St.startingRect,newRectangle:St.currentRect}),rectangle:St.currentRect})}),qt(),St=null)})}},{key:"ngOnChanges",value:function(Et){Et.resizeEdges&&this.resizeEdges$.next(this.resizeEdges)}},{key:"ngOnDestroy",value:function(){(0,Z.NF)(this.platformId)&&this.renderer.setStyle(document.body,"cursor",""),this.mousedown.complete(),this.mouseup.complete(),this.mousemove.complete(),this.resizeEdges$.complete(),this.destroy$.next()}},{key:"setElementClass",value:function(Et,vt,Kt){Kt?this.renderer.addClass(Et.nativeElement,vt):this.renderer.removeClass(Et.nativeElement,vt)}}]),Je}();return ct.\u0275fac=function(Ut){return new(Ut||ct)(T.Y36(T.Lbi),T.Y36(T.Qsj),T.Y36(T.SBq),T.Y36(T.R0b))},ct.\u0275dir=T.lG2({type:ct,selectors:[["","mwlResizable",""]],inputs:{resizeEdges:"resizeEdges",enableGhostResize:"enableGhostResize",resizeSnapGrid:"resizeSnapGrid",resizeCursors:"resizeCursors",resizeCursorPrecision:"resizeCursorPrecision",ghostElementPositioning:"ghostElementPositioning",allowNegativeResizes:"allowNegativeResizes",mouseMoveThrottleMS:"mouseMoveThrottleMS",validateResize:"validateResize"},outputs:{resizeStart:"resizeStart",resizing:"resizing",resizeEnd:"resizeEnd"},exportAs:["mwlResizable"],features:[T.TTD]}),ct}(),Se=function(){function ct(Je,Ut){(0,B.Z)(this,ct),this.pointerDown=new P.y(function(Et){var vt,Kt;return Ut.runOutsideAngular(function(){vt=Je.listen("document","mousedown",function(Vt){Et.next({clientX:Vt.clientX,clientY:Vt.clientY,event:Vt})}),j&&(Kt=Je.listen("document","touchstart",function(Vt){Et.next({clientX:Vt.touches[0].clientX,clientY:Vt.touches[0].clientY,event:Vt})}))}),function(){vt(),j&&Kt()}}).pipe((0,A.B)()),this.pointerMove=new P.y(function(Et){var vt,Kt;return Ut.runOutsideAngular(function(){vt=Je.listen("document","mousemove",function(Vt){Et.next({clientX:Vt.clientX,clientY:Vt.clientY,event:Vt})}),j&&(Kt=Je.listen("document","touchmove",function(Vt){Et.next({clientX:Vt.targetTouches[0].clientX,clientY:Vt.targetTouches[0].clientY,event:Vt})}))}),function(){vt(),j&&Kt()}}).pipe((0,A.B)()),this.pointerUp=new P.y(function(Et){var vt,Kt,Vt;return Ut.runOutsideAngular(function(){vt=Je.listen("document","mouseup",function(St){Et.next({clientX:St.clientX,clientY:St.clientY,event:St})}),j&&(Kt=Je.listen("document","touchend",function(St){Et.next({clientX:St.changedTouches[0].clientX,clientY:St.changedTouches[0].clientY,event:St})}),Vt=Je.listen("document","touchcancel",function(St){Et.next({clientX:St.changedTouches[0].clientX,clientY:St.changedTouches[0].clientY,event:St})}))}),function(){vt(),j&&(Kt(),Vt())}}).pipe((0,A.B)())}return(0,V.Z)(ct,null,[{key:"getInstance",value:function(Ut,Et){return ct.instance||(ct.instance=new ct(Ut,Et)),ct.instance}}]),ct}(),Ve=function(){var ct=function Je(){(0,B.Z)(this,Je)};return ct.\u0275fac=function(Ut){return new(Ut||ct)},ct.\u0275mod=T.oAB({type:ct}),ct.\u0275inj=T.cJS({}),ct}()},57695:function(ce,q,f){var U=f(94518),B=f(23050),V=f(99262),Z=f(44900),T=/^\s*\|\s*/;function C(D,M){var A={};for(var y in D)A[y]=D[y].syntax||D[y];for(var g in M)g in D?M[g].syntax?A[g]=T.test(M[g].syntax)?A[g]+" "+M[g].syntax.trim():M[g].syntax:delete A[g]:M[g].syntax&&(A[g]=M[g].syntax.replace(T,""));return A}function v(D){var M={};for(var A in D)M[A]=D[A].syntax;return M}ce.exports={types:C(V,Z.syntaxes),atrules:function(D,M){var A={};for(var y in D){var g=M[y]&&M[y].descriptors||null;A[y]={prelude:y in M&&"prelude"in M[y]?M[y].prelude:D[y].prelude||null,descriptors:D[y].descriptors?C(D[y].descriptors,g||{}):g&&v(g)}}for(var k in M)hasOwnProperty.call(D,k)||(A[k]={prelude:M[k].prelude||null,descriptors:M[k].descriptors&&v(M[k].descriptors)});return A}(function(D){var M=Object.create(null);for(var A in D){var y=D[A],g=null;if(y.descriptors)for(var k in g=Object.create(null),y.descriptors)g[k]=y.descriptors[k].syntax;M[A.substr(1)]={prelude:y.syntax.trim().match(/^@\S+\s+([^;\{]*)/)[1].trim()||null,descriptors:g}}return M}(U),Z.atrules),properties:C(B,Z.properties)}},63335:function(ce){function q(Z){return{prev:null,next:null,data:Z}}function f(Z,T,I){var C;return null!==B?(C=B,B=B.cursor,C.prev=T,C.next=I,C.cursor=Z.cursor):C={prev:T,next:I,cursor:Z.cursor},Z.cursor=C,C}function U(Z){var T=Z.cursor;Z.cursor=T.cursor,T.prev=null,T.next=null,T.cursor=B,B=T}var B=null,V=function(){this.cursor=null,this.head=null,this.tail=null};V.createItem=q,V.prototype.createItem=q,V.prototype.updateCursors=function(Z,T,I,C){for(var v=this.cursor;null!==v;)v.prev===Z&&(v.prev=T),v.next===I&&(v.next=C),v=v.cursor},V.prototype.getSize=function(){for(var Z=0,T=this.head;T;)Z++,T=T.next;return Z},V.prototype.fromArray=function(Z){var T=null;this.head=null;for(var I=0;I<Z.length;I++){var C=q(Z[I]);null!==T?T.next=C:this.head=C,C.prev=T,T=C}return this.tail=T,this},V.prototype.toJSON=V.prototype.toArray=function(){for(var Z=this.head,T=[];Z;)T.push(Z.data),Z=Z.next;return T},V.prototype.isEmpty=function(){return null===this.head},V.prototype.first=function(){return this.head&&this.head.data},V.prototype.last=function(){return this.tail&&this.tail.data},V.prototype.forEach=V.prototype.each=function(Z,T){var I;void 0===T&&(T=this);for(var C=f(this,null,this.head);null!==C.next;)C.next=(I=C.next).next,Z.call(T,I.data,I,this);U(this)},V.prototype.forEachRight=V.prototype.eachRight=function(Z,T){var I;void 0===T&&(T=this);for(var C=f(this,this.tail,null);null!==C.prev;)C.prev=(I=C.prev).prev,Z.call(T,I.data,I,this);U(this)},V.prototype.reduce=function(Z,T,I){var C;void 0===I&&(I=this);for(var v=f(this,null,this.head),P=T;null!==v.next;)v.next=(C=v.next).next,P=Z.call(I,P,C.data,C,this);return U(this),P},V.prototype.reduceRight=function(Z,T,I){var C;void 0===I&&(I=this);for(var v=f(this,this.tail,null),P=T;null!==v.prev;)v.prev=(C=v.prev).prev,P=Z.call(I,P,C.data,C,this);return U(this),P},V.prototype.nextUntil=function(Z,T,I){if(null!==Z){var C;void 0===I&&(I=this);for(var v=f(this,null,Z);null!==v.next&&(v.next=(C=v.next).next,!T.call(I,C.data,C,this)););U(this)}},V.prototype.prevUntil=function(Z,T,I){if(null!==Z){var C;void 0===I&&(I=this);for(var v=f(this,Z,null);null!==v.prev&&(v.prev=(C=v.prev).prev,!T.call(I,C.data,C,this)););U(this)}},V.prototype.some=function(Z,T){var I=this.head;for(void 0===T&&(T=this);null!==I;){if(Z.call(T,I.data,I,this))return!0;I=I.next}return!1},V.prototype.map=function(Z,T){var I=new V,C=this.head;for(void 0===T&&(T=this);null!==C;)I.appendData(Z.call(T,C.data,C,this)),C=C.next;return I},V.prototype.filter=function(Z,T){var I=new V,C=this.head;for(void 0===T&&(T=this);null!==C;)Z.call(T,C.data,C,this)&&I.appendData(C.data),C=C.next;return I},V.prototype.clear=function(){this.head=null,this.tail=null},V.prototype.copy=function(){for(var Z=new V,T=this.head;null!==T;)Z.insert(q(T.data)),T=T.next;return Z},V.prototype.prepend=function(Z){return this.updateCursors(null,Z,this.head,Z),null!==this.head?(this.head.prev=Z,Z.next=this.head):this.tail=Z,this.head=Z,this},V.prototype.prependData=function(Z){return this.prepend(q(Z))},V.prototype.append=function(Z){return this.insert(Z)},V.prototype.appendData=function(Z){return this.insert(q(Z))},V.prototype.insert=function(Z,T){if(null!=T)if(this.updateCursors(T.prev,Z,T,Z),null===T.prev){if(this.head!==T)throw new Error("before doesn't belong to list");this.head=Z,T.prev=Z,Z.next=T,this.updateCursors(null,Z)}else T.prev.next=Z,Z.prev=T.prev,T.prev=Z,Z.next=T;else this.updateCursors(this.tail,Z,null,Z),null!==this.tail?(this.tail.next=Z,Z.prev=this.tail):this.head=Z,this.tail=Z;return this},V.prototype.insertData=function(Z,T){return this.insert(q(Z),T)},V.prototype.remove=function(Z){if(this.updateCursors(Z,Z.prev,Z,Z.next),null!==Z.prev)Z.prev.next=Z.next;else{if(this.head!==Z)throw new Error("item doesn't belong to list");this.head=Z.next}if(null!==Z.next)Z.next.prev=Z.prev;else{if(this.tail!==Z)throw new Error("item doesn't belong to list");this.tail=Z.prev}return Z.prev=null,Z.next=null,Z},V.prototype.push=function(Z){this.insert(q(Z))},V.prototype.pop=function(){if(null!==this.tail)return this.remove(this.tail)},V.prototype.unshift=function(Z){this.prepend(q(Z))},V.prototype.shift=function(){if(null!==this.head)return this.remove(this.head)},V.prototype.prependList=function(Z){return this.insertList(Z,this.head)},V.prototype.appendList=function(Z){return this.insertList(Z)},V.prototype.insertList=function(Z,T){return null===Z.head||(null!=T?(this.updateCursors(T.prev,Z.tail,T,Z.head),null!==T.prev?(T.prev.next=Z.head,Z.head.prev=T.prev):this.head=Z.head,T.prev=Z.tail,Z.tail.next=T):(this.updateCursors(this.tail,Z.tail,null,Z.head),null!==this.tail?(this.tail.next=Z.head,Z.head.prev=this.tail):this.head=Z.head,this.tail=Z.tail),Z.head=null,Z.tail=null),this},V.prototype.replace=function(Z,T){"head"in T?this.insertList(T,Z):this.insert(T,Z),this.remove(Z)},ce.exports=V},88373:function(ce,q,f){var U=f(62146),B=f(97555).isBOM,C=function(){this.lines=null,this.columns=null,this.linesAndColumnsComputed=!1};C.prototype={setSource:function(P,D,M,A){this.source=P,this.startOffset=void 0===D?0:D,this.startLine=void 0===M?1:M,this.startColumn=void 0===A?1:A,this.linesAndColumnsComputed=!1},ensureLinesAndColumnsComputed:function(){this.linesAndColumnsComputed||(function(v,P){for(var D=P.length,M=U(v.lines,D),A=v.startLine,y=U(v.columns,D),g=v.startColumn,N=P.length>0?B(P.charCodeAt(0)):0;N<D;N++){var E=P.charCodeAt(N);M[N]=A,y[N]=g++,(10===E||13===E||12===E)&&(13===E&&N+1<D&&10===P.charCodeAt(N+1)&&(M[++N]=A,y[N]=g),A++,g=1)}M[N]=A,y[N]=g,v.lines=M,v.columns=y}(this,this.source),this.linesAndColumnsComputed=!0)},getLocation:function(P,D){return this.ensureLinesAndColumnsComputed(),{source:D,offset:this.startOffset+P,line:this.lines[P],column:this.columns[P]}},getLocationRange:function(P,D,M){return this.ensureLinesAndColumnsComputed(),{source:M,start:{offset:this.startOffset+P,line:this.lines[P],column:this.columns[P]},end:{offset:this.startOffset+D,line:this.lines[D],column:this.columns[D]}}}},ce.exports=C},52556:function(ce,q,f){var U=f(92455),Z=" ";function T(C,v){function P(x,S){return D.slice(x,S).map(function(O,L){for(var j=String(x+L+1);j.length<k;)j=" "+j;return j+" |"+O}).join("\n")}var D=C.source.split(/\r\n?|\n|\f/),M=C.line,A=C.column,y=Math.max(1,M-v)-1,g=Math.min(M+v,D.length+1),k=Math.max(4,String(g).length)+1,N=0;(A+=(Z.length-1)*(D[M-1].substr(0,A-1).match(/\t/g)||[]).length)>100&&(N=A-60+3,A=58);for(var E=y;E<=g;E++)E>=0&&E<D.length&&(D[E]=D[E].replace(/\t/g,Z),D[E]=(N>0&&D[E].length>N?"\u2026":"")+D[E].substr(N,98)+(D[E].length>N+100-1?"\u2026":""));return[P(y,M),new Array(A+k+2).join("-")+"^",P(M,g)].filter(Boolean).join("\n")}ce.exports=function(v,P,D,M,A){var y=U("SyntaxError",v);return y.source=P,y.offset=D,y.line=M,y.column=A,y.sourceFragment=function(g){return T(y,isNaN(g)?0:g)},Object.defineProperty(y,"formattedMessage",{get:function(){return"Parse error: "+y.message+"\n"+T(y,2)}}),y.parseError={offset:D,line:M,column:A},y}},13146:function(ce,q,f){var U=f(97077),B=U.TYPE,V=U.NAME,T=f(74586).cmpStr,I=B.EOF,C=B.WhiteSpace,v=B.Comment,P=16777215,D=24,M=function(){this.offsetAndType=null,this.balance=null,this.reset()};M.prototype={reset:function(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset},lookupType:function(y){return(y+=this.tokenIndex)<this.tokenCount?this.offsetAndType[y]>>D:I},lookupOffset:function(y){return(y+=this.tokenIndex)<this.tokenCount?this.offsetAndType[y-1]&P:this.source.length},lookupValue:function(y,g){return(y+=this.tokenIndex)<this.tokenCount&&T(this.source,this.offsetAndType[y-1]&P,this.offsetAndType[y]&P,g)},getTokenStart:function(y){return y===this.tokenIndex?this.tokenStart:y>0?y<this.tokenCount?this.offsetAndType[y-1]&P:this.offsetAndType[this.tokenCount]&P:this.firstCharOffset},getRawLength:function(y,g){var N,k=y,E=this.offsetAndType[Math.max(k-1,0)]&P;e:for(;k<this.tokenCount&&!((N=this.balance[k])<y);k++)switch(g(this.offsetAndType[k]>>D,this.source,E)){case 1:break e;case 2:k++;break e;default:this.balance[N]===k&&(k=N),E=this.offsetAndType[k]&P}return k-this.tokenIndex},isBalanceEdge:function(y){return this.balance[this.tokenIndex]<y},isDelim:function(y,g){return g?this.lookupType(g)===B.Delim&&this.source.charCodeAt(this.lookupOffset(g))===y:this.tokenType===B.Delim&&this.source.charCodeAt(this.tokenStart)===y},getTokenValue:function(){return this.source.substring(this.tokenStart,this.tokenEnd)},getTokenLength:function(){return this.tokenEnd-this.tokenStart},substrToCursor:function(y){return this.source.substring(y,this.tokenStart)},skipWS:function(){for(var y=this.tokenIndex,g=0;y<this.tokenCount&&this.offsetAndType[y]>>D===C;y++,g++);g>0&&this.skip(g)},skipSC:function(){for(;this.tokenType===C||this.tokenType===v;)this.next()},skip:function(y){var g=this.tokenIndex+y;g<this.tokenCount?(this.tokenIndex=g,this.tokenStart=this.offsetAndType[g-1]&P,this.tokenType=(g=this.offsetAndType[g])>>D,this.tokenEnd=g&P):(this.tokenIndex=this.tokenCount,this.next())},next:function(){var y=this.tokenIndex+1;y<this.tokenCount?(this.tokenIndex=y,this.tokenStart=this.tokenEnd,this.tokenType=(y=this.offsetAndType[y])>>D,this.tokenEnd=y&P):(this.tokenIndex=this.tokenCount,this.eof=!0,this.tokenType=I,this.tokenStart=this.tokenEnd=this.source.length)},forEachToken:function(y){for(var g=0,k=this.firstCharOffset;g<this.tokenCount;g++){var N=k,E=this.offsetAndType[g],x=E&P;k=x,y(E>>D,N,x,g)}},dump:function(){var y=this,g=new Array(this.tokenCount);return this.forEachToken(function(k,N,E,x){g[x]={idx:x,type:V[k],chunk:y.source.substring(N,E),balance:y.balance[x]}}),g}},ce.exports=M},62146:function(ce){var f="undefined"!=typeof Uint32Array?Uint32Array:Array;ce.exports=function(B,V){return null===B||B.length<V?new f(Math.max(V+1024,16384)):B}},62139:function(ce,q,f){var U=f(63335);ce.exports=function(V){return{fromPlainObject:function(T){return V(T,{enter:function(C){C.children&&!(C.children instanceof U)&&(C.children=(new U).fromArray(C.children))}}),T},toPlainObject:function(T){return V(T,{leave:function(C){C.children&&C.children instanceof U&&(C.children=C.children.toArray())}}),T}}}},6063:function(ce,q,f){var U=f(92455);ce.exports=function(V,Z,T){var I=U("SyntaxError",V);return I.input=Z,I.offset=T,I.rawMessage=V,I.message=I.rawMessage+"\n "+I.input+"\n--"+new Array((I.offset||I.input.length)+1).join("-")+"^",I}},58298:function(ce){function q(Z){return Z}function V(Z,T,I,C){var v;switch(Z.type){case"Group":v=function(Z,T,I,C){var v=" "===Z.combinator||C?Z.combinator:" "+Z.combinator+" ",P=Z.terms.map(function(D){return V(D,T,I,C)}).join(v);return(Z.explicit||I)&&(P=(C||","===P[0]?"[":"[ ")+P+(C?"]":" ]")),P}(Z,T,I,C)+(Z.disallowEmpty?"!":"");break;case"Multiplier":return V(Z.term,T,I,C)+T(function(Z){return 0===Z.min&&0===Z.max?"*":0===Z.min&&1===Z.max?"?":1===Z.min&&0===Z.max?Z.comma?"#":"+":1===Z.min&&1===Z.max?"":(Z.comma?"#":"")+(Z.min===Z.max?"{"+Z.min+"}":"{"+Z.min+","+(0!==Z.max?Z.max:"")+"}")}(Z),Z);case"Type":v="<"+Z.name+(Z.opts?T(function(Z){switch(Z.type){case"Range":return" ["+(null===Z.min?"-\u221e":Z.min)+","+(null===Z.max?"\u221e":Z.max)+"]";default:throw new Error("Unknown node type `"+Z.type+"`")}}(Z.opts),Z.opts):"")+">";break;case"Property":v="<'"+Z.name+"'>";break;case"Keyword":v=Z.name;break;case"AtKeyword":v="@"+Z.name;break;case"Function":v=Z.name+"(";break;case"String":case"Token":v=Z.value;break;case"Comma":v=",";break;default:throw new Error("Unknown node type `"+Z.type+"`")}return T(v,Z)}ce.exports=function(Z,T){var I=q,C=!1,v=!1;return"function"==typeof T?I=T:T&&(C=Boolean(T.forceBraces),v=Boolean(T.compact),"function"==typeof T.decorate&&(I=T.decorate)),V(Z,I,C,v)}},37149:function(ce,q,f){ce.exports={SyntaxError:f(6063),parse:f(11261),generate:f(58298),walk:f(37363)}},11261:function(ce,q,f){var U=f(57674),K=123,te=function(vt){for(var Kt="function"==typeof Uint32Array?new Uint32Array(128):new Array(128),Vt=0;Vt<128;Vt++)Kt[Vt]=vt(String.fromCharCode(Vt))?1:0;return Kt}(function(vt){return/[a-zA-Z0-9\-]/.test(vt)}),se={" ":1,"&&":2,"||":3,"|":4};function de(vt){return vt.substringToPos(vt.findWsEnd(vt.pos))}function ue(vt){for(var Kt=vt.pos;Kt<vt.str.length;Kt++){var Vt=vt.str.charCodeAt(Kt);if(Vt>=128||0===te[Vt])break}return vt.pos===Kt&&vt.error("Expect a keyword"),vt.substringToPos(Kt)}function ae(vt){for(var Kt=vt.pos;Kt<vt.str.length;Kt++){var Vt=vt.str.charCodeAt(Kt);if(Vt<48||Vt>57)break}return vt.pos===Kt&&vt.error("Expect a number"),vt.substringToPos(Kt)}function Me(vt){var Kt=vt.str.indexOf("'",vt.pos+1);return-1===Kt&&(vt.pos=vt.str.length,vt.error("Expect an apostrophe")),vt.substringToPos(Kt+1)}function ye(vt){var Kt,Vt=null;return vt.eat(K),Kt=ae(vt),44===vt.charCode()?(vt.pos++,125!==vt.charCode()&&(Vt=ae(vt))):Vt=Kt,vt.eat(125),{min:Number(Kt),max:Vt?Number(Vt):0}}function He(vt,Kt){var Vt=function(vt){var Kt=null,Vt=!1;switch(vt.charCode()){case 42:vt.pos++,Kt={min:0,max:0};break;case 43:vt.pos++,Kt={min:1,max:0};break;case 63:vt.pos++,Kt={min:0,max:1};break;case 35:vt.pos++,Vt=!0,Kt=vt.charCode()===K?ye(vt):{min:1,max:0};break;case K:Kt=ye(vt);break;default:return null}return{type:"Multiplier",comma:Vt,min:Kt.min,max:Kt.max,term:null}}(vt);return null!==Vt?(Vt.term=Kt,Vt):Kt}function _t(vt){var Kt=vt.peek();return""===Kt?null:{type:"Token",value:Kt}}function Ve(vt,Kt){function Vt(Ft,on){return{type:"Group",terms:Ft,combinator:on,disallowEmpty:!1,explicit:!1}}for(Kt=Object.keys(Kt).sort(function(Ft,on){return se[Ft]-se[on]});Kt.length>0;){for(var St=Kt.shift(),qt=0,Ct=0;qt<vt.length;qt++){var en=vt[qt];"Combinator"===en.type&&(en.value===St?(-1===Ct&&(Ct=qt-1),vt.splice(qt,1),qt--):(-1!==Ct&&qt-Ct>1&&(vt.splice(Ct,qt-Ct,Vt(vt.slice(Ct,qt),St)),qt=Ct+1),Ct=-1))}-1!==Ct&&Kt.length&&vt.splice(Ct,qt-Ct,Vt(vt.slice(Ct,qt),St))}return St}function ct(vt){for(var St,Kt=[],Vt={},qt=null,Ct=vt.pos;St=Ut(vt);)"Spaces"!==St.type&&("Combinator"===St.type?((null===qt||"Combinator"===qt.type)&&(vt.pos=Ct,vt.error("Unexpected combinator")),Vt[St.value]=!0):null!==qt&&"Combinator"!==qt.type&&(Vt[" "]=!0,Kt.push({type:"Combinator",value:" "})),Kt.push(St),qt=St,Ct=vt.pos);return null!==qt&&"Combinator"===qt.type&&(vt.pos-=Ct,vt.error("Unexpected combinator")),{type:"Group",terms:Kt,combinator:Ve(Kt,Vt)||" ",disallowEmpty:!1,explicit:!1}}function Ut(vt){var Kt=vt.charCode();if(Kt<128&&1===te[Kt])return function(vt){var Kt;return Kt=ue(vt),40===vt.charCode()?(vt.pos++,{type:"Function",name:Kt}):He(vt,{type:"Keyword",name:Kt})}(vt);switch(Kt){case 93:break;case 91:return He(vt,function(vt){var Kt;return vt.eat(91),Kt=ct(vt),vt.eat(93),Kt.explicit=!0,33===vt.charCode()&&(vt.pos++,Kt.disallowEmpty=!0),Kt}(vt));case 60:return 39===vt.nextCharCode()?function(vt){var Kt;return vt.eat(60),vt.eat(39),Kt=ue(vt),vt.eat(39),vt.eat(62),He(vt,{type:"Property",name:Kt})}(vt):function(vt){var Kt,Vt=null;return vt.eat(60),Kt=ue(vt),40===vt.charCode()&&41===vt.nextCharCode()&&(vt.pos+=2,Kt+="()"),91===vt.charCodeAt(vt.findWsEnd(vt.pos))&&(de(vt),Vt=function(vt){var Kt=null,Vt=null,St=1;return vt.eat(91),45===vt.charCode()&&(vt.peek(),St=-1),-1==St&&8734===vt.charCode()?vt.peek():Kt=St*Number(ae(vt)),de(vt),vt.eat(44),de(vt),8734===vt.charCode()?vt.peek():(St=1,45===vt.charCode()&&(vt.peek(),St=-1),Vt=St*Number(ae(vt))),vt.eat(93),null===Kt&&null===Vt?null:{type:"Range",min:Kt,max:Vt}}(vt)),vt.eat(62),He(vt,{type:"Type",name:Kt,opts:Vt})}(vt);case 124:return{type:"Combinator",value:vt.substringToPos(124===vt.nextCharCode()?vt.pos+2:vt.pos+1)};case 38:return vt.pos++,vt.eat(38),{type:"Combinator",value:"&&"};case 44:return vt.pos++,{type:"Comma"};case 39:return He(vt,{type:"String",value:Me(vt)});case 32:case 9:case 10:case 13:case 12:return{type:"Spaces",value:de(vt)};case 64:return(Kt=vt.nextCharCode())<128&&1===te[Kt]?(vt.pos++,{type:"AtKeyword",name:ue(vt)}):_t(vt);case 42:case 43:case 63:case 35:case 33:break;case K:if((Kt=vt.nextCharCode())<48||Kt>57)return _t(vt);break;default:return _t(vt)}}function Et(vt){var Kt=new U(vt),Vt=ct(Kt);return Kt.pos!==vt.length&&Kt.error("Unexpected input"),1===Vt.terms.length&&"Group"===Vt.terms[0].type&&(Vt=Vt.terms[0]),Vt}Et("[a&&<b>#|<'c'>*||e() f{2} /,(% g#{1,2} h{2,})]!"),ce.exports=Et},57674:function(ce,q,f){var U=f(6063),C=function(P){this.str=P,this.pos=0};C.prototype={charCodeAt:function(P){return P<this.str.length?this.str.charCodeAt(P):0},charCode:function(){return this.charCodeAt(this.pos)},nextCharCode:function(){return this.charCodeAt(this.pos+1)},nextNonWsCode:function(P){return this.charCodeAt(this.findWsEnd(P))},findWsEnd:function(P){for(;P<this.str.length;P++){var D=this.str.charCodeAt(P);if(13!==D&&10!==D&&12!==D&&32!==D&&9!==D)break}return P},substringToPos:function(P){return this.str.substring(this.pos,this.pos=P)},eat:function(P){this.charCode()!==P&&this.error("Expect `"+String.fromCharCode(P)+"`"),this.pos++},peek:function(){return this.pos<this.str.length?this.str.charAt(this.pos++):""},error:function(P){throw new U(P,this.str,this.pos)}},ce.exports=C},37363:function(ce){var q=function(){};function f(U){return"function"==typeof U?U:q}ce.exports=function(U,B,V){var T=q,I=q;if("function"==typeof B?T=B:B&&(T=f(B.enter),I=f(B.leave)),T===q&&I===q)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");!function Z(C){switch(T.call(V,C),C.type){case"Group":C.terms.forEach(Z);break;case"Multiplier":Z(C.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+C.type)}I.call(V,C)}(U)}},9861:function(ce,q,f){var U=f(79274),B=Object.prototype.hasOwnProperty;function V(Z,T){var C=null;Z.children.forEach("function"!=typeof T?this.node:function(v){null!==C&&T.call(this,C),this.node(v),C=v},this)}ce.exports=function(T){function I(P){if(!B.call(C,P.type))throw new Error("Unknown node type: "+P.type);C[P.type].call(this,P)}var C={};if(T.node)for(var v in T.node)C[v]=T.node[v].generate;return function(P,D){var M="",A={children:V,node:I,chunk:function(g){M+=g},result:function(){return M}};return D&&("function"==typeof D.decorator&&(A=D.decorator(A)),D.sourceMap&&(A=U(A))),A.node(P),A.result()}}},79274:function(ce,q,f){var U=f(30673).h,B={Atrule:!0,Selector:!0,Declaration:!0};ce.exports=function(Z){var T=new U,I=1,C=0,v={line:1,column:0},P={line:0,column:0},D=!1,M={line:1,column:0},A={generated:M},y=Z.node;Z.node=function(N){if(N.loc&&N.loc.start&&B.hasOwnProperty(N.type)){var E=N.loc.start.line,x=N.loc.start.column-1;(P.line!==E||P.column!==x)&&(P.line=E,P.column=x,v.line=I,v.column=C,D&&(D=!1,(v.line!==M.line||v.column!==M.column)&&T.addMapping(A)),D=!0,T.addMapping({source:N.loc.source,original:P,generated:v}))}y.call(this,N),D&&B.hasOwnProperty(N.type)&&(M.line=I,M.column=C)};var g=Z.chunk;Z.chunk=function(N){for(var E=0;E<N.length;E++)10===N.charCodeAt(E)?(I++,C=0):C++;g(N)};var k=Z.result;return Z.result=function(){return D&&T.addMapping(A),{css:k(),map:T}},Z}},59473:function(ce,q,f){ce.exports=f(39158)},63539:function(ce,q,f){var U=f(6326).default,B=f(40533).SyntaxReferenceError,V=f(40533).SyntaxMatchError,Z=f(50643),T=f(71473),I=f(11261),C=f(58298),v=f(37363),P=f(73130),D=f(60997).buildMatchGraph,M=f(77569).matchAsTree,A=f(24988),y=f(62798),g=f(92363).getStructureFromConfig,k=D("inherit | initial | unset"),N=D("inherit | initial | unset | <-ms-legacy-expression>");function E(K,W,J){var oe={};for(var te in K)K[te].syntax&&(oe[te]=J?K[te].syntax:C(K[te].syntax,{compact:W}));return oe}function x(K,W,J){for(var oe={},te=0,se=Object.entries(K);te<se.length;te++){var le=U(se[te],2),ue=le[1];oe[le[0]]={prelude:ue.prelude&&(J?ue.prelude.syntax:C(ue.prelude.syntax,{compact:W})),descriptors:ue.descriptors&&E(ue.descriptors,W,J)}}return oe}function O(K,W,J){return{matched:K,iterations:J,error:W,getTrace:A.getTrace,isType:A.isType,isProperty:A.isProperty,isKeyword:A.isKeyword}}function L(K,W,J,oe){var se,te=P(J,K.syntax);return function(K){for(var W=0;W<K.length;W++)if("var("===K[W].value.toLowerCase())return!0;return!1}(te)?O(null,new Error("Matching for a tree with var() is not supported")):(oe&&(se=M(te,K.valueCommonSyntax,K)),oe&&se.match||(se=M(te,W.match,K)).match?O(se.match,null,se.iterations):O(null,new V(se.reason,W.syntax,J,se),se.iterations))}var j=function(W,J,oe){if(this.valueCommonSyntax=k,this.syntax=J,this.generic=!1,this.atrules={},this.properties={},this.types={},this.structure=oe||g(W),W){if(W.types)for(var te in W.types)this.addType_(te,W.types[te]);if(W.generic)for(var te in this.generic=!0,T)this.addType_(te,T[te]);if(W.atrules)for(var te in W.atrules)this.addAtrule_(te,W.atrules[te]);if(W.properties)for(var te in W.properties)this.addProperty_(te,W.properties[te])}};j.prototype={structure:{},checkStructure:function(W){function J(se,le){te.push({node:se,message:le})}var oe=this.structure,te=[];return this.syntax.walk(W,function(se){oe.hasOwnProperty(se.type)?oe[se.type].check(se,J):J(se,"Unknown node type `"+se.type+"`")}),!!te.length&&te},createDescriptor:function(W,J,oe){var te=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,se={type:J,name:oe},le={type:J,name:oe,parent:te,syntax:null,match:null};return"function"==typeof W?le.match=D(W,se):("string"==typeof W?Object.defineProperty(le,"syntax",{get:function(){return Object.defineProperty(le,"syntax",{value:I(W)}),le.syntax}}):le.syntax=W,Object.defineProperty(le,"match",{get:function(){return Object.defineProperty(le,"match",{value:D(le.syntax,se)}),le.match}})),le},addAtrule_:function(W,J){var oe=this;!J||(this.atrules[W]={type:"Atrule",name:W,prelude:J.prelude?this.createDescriptor(J.prelude,"AtrulePrelude",W):null,descriptors:J.descriptors?Object.keys(J.descriptors).reduce(function(te,se){return te[se]=oe.createDescriptor(J.descriptors[se],"AtruleDescriptor",se,W),te},{}):null})},addProperty_:function(W,J){!J||(this.properties[W]=this.createDescriptor(J,"Property",W))},addType_:function(W,J){!J||(this.types[W]=this.createDescriptor(J,"Type",W),J===T["-ms-legacy-expression"]&&(this.valueCommonSyntax=N))},checkAtruleName:function(W){if(!this.getAtrule(W))return new B("Unknown at-rule","@"+W)},checkAtrulePrelude:function(W,J){var oe=this.checkAtruleName(W);if(oe)return oe;var te=this.getAtrule(W);return!te.prelude&&J?new SyntaxError("At-rule `@"+W+"` should not contain a prelude"):te.prelude&&!J?new SyntaxError("At-rule `@"+W+"` should contain a prelude"):void 0},checkAtruleDescriptorName:function(W,J){var oe=this.checkAtruleName(W);if(oe)return oe;var te=this.getAtrule(W),se=Z.keyword(J);return te.descriptors?te.descriptors[se.name]||te.descriptors[se.basename]?void 0:new B("Unknown at-rule descriptor",J):new SyntaxError("At-rule `@"+W+"` has no known descriptors")},checkPropertyName:function(W){return Z.property(W).custom?new Error("Lexer matching doesn't applicable for custom properties"):this.getProperty(W)?void 0:new B("Unknown property",W)},matchAtrulePrelude:function(W,J){var oe=this.checkAtrulePrelude(W,J);return oe?O(null,oe):J?L(this,this.getAtrule(W).prelude,J,!1):O(null,null)},matchAtruleDescriptor:function(W,J,oe){var te=this.checkAtruleDescriptorName(W,J);if(te)return O(null,te);var se=this.getAtrule(W),le=Z.keyword(J);return L(this,se.descriptors[le.name]||se.descriptors[le.basename],oe,!1)},matchDeclaration:function(W){return"Declaration"!==W.type?O(null,new Error("Not a Declaration node")):this.matchProperty(W.property,W.value)},matchProperty:function(W,J){var oe=this.checkPropertyName(W);return oe?O(null,oe):L(this,this.getProperty(W),J,!0)},matchType:function(W,J){var oe=this.getType(W);return oe?L(this,oe,J,!1):O(null,new B("Unknown type",W))},match:function(W,J){return"string"==typeof W||W&&W.type?(("string"==typeof W||!W.match)&&(W=this.createDescriptor(W,"Type","anonymous")),L(this,W,J,!1)):O(null,new B("Bad syntax"))},findValueFragments:function(W,J,oe,te){return y.matchFragments(this,J,this.matchProperty(W,J),oe,te)},findDeclarationValueFragments:function(W,J,oe){return y.matchFragments(this,W.value,this.matchDeclaration(W),J,oe)},findAllFragments:function(W,J,oe){var te=[];return this.syntax.walk(W,{visit:"Declaration",enter:function(se){te.push.apply(te,this.findDeclarationValueFragments(se,J,oe))}.bind(this)}),te},getAtrule:function(W){var J=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],oe=Z.keyword(W),te=oe.vendor&&J?this.atrules[oe.name]||this.atrules[oe.basename]:this.atrules[oe.name];return te||null},getAtrulePrelude:function(W){var J=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],oe=this.getAtrule(W,J);return oe&&oe.prelude||null},getAtruleDescriptor:function(W,J){return this.atrules.hasOwnProperty(W)&&this.atrules.declarators&&this.atrules[W].declarators[J]||null},getProperty:function(W){var J=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],oe=Z.property(W),te=oe.vendor&&J?this.properties[oe.name]||this.properties[oe.basename]:this.properties[oe.name];return te||null},getType:function(W){return this.types.hasOwnProperty(W)?this.types[W]:null},validate:function(){function W(se,le,de,ue){if(de.hasOwnProperty(le))return de[le];de[le]=!1,null!==ue.syntax&&v(ue.syntax,function(ae){if("Type"===ae.type||"Property"===ae.type){var Me="Type"===ae.type?se.types:se.properties,ye="Type"===ae.type?J:oe;(!Me.hasOwnProperty(ae.name)||W(se,ae.name,ye,Me[ae.name]))&&(de[le]=!0)}},this)}var J={},oe={};for(var te in this.types)W(this,te,J,this.types[te]);for(var te in this.properties)W(this,te,oe,this.properties[te]);return J=Object.keys(J).filter(function(se){return J[se]}),oe=Object.keys(oe).filter(function(se){return oe[se]}),J.length||oe.length?{types:J,properties:oe}:null},dump:function(W,J){return{generic:this.generic,types:E(this.types,!J,W),properties:E(this.properties,!J,W),atrules:x(this.atrules,!J,W)}},toString:function(){return JSON.stringify(this.dump())}},ce.exports=j},40533:function(ce,q,f){var U=f(92455),B=f(58298),V={offset:0,line:1,column:1};function T(P,D){var M=P&&P.loc&&P.loc[D];return M?"line"in M?I(M):M:null}function I(P,D){var g={offset:P.offset,line:P.line,column:P.column};if(D){var k=D.split(/\n|\r\n?|\f/);g.offset+=D.length,g.line+=k.length-1,g.column=1===k.length?g.column+D.length:k.pop().length+1}return g}ce.exports={SyntaxReferenceError:function(D,M){var A=U("SyntaxReferenceError",D+(M?" `"+M+"`":""));return A.reference=M,A},SyntaxMatchError:function(D,M,A,y){var g=U("SyntaxMatchError",D),k=function(P,D){for(var S,O,M=P.tokens,A=P.longestMatch,y=A<M.length&&M[A].node||null,g=y!==D?y:null,k=0,N=0,E=0,x="",L=0;L<M.length;L++){var j=M[L].value;L===A&&(N=j.length,k=x.length),null!==g&&M[L].node===g&&(L<=A?E++:E=0),x+=j}return A===M.length||E>1?(S=T(g||D,"end")||I(V,x),O=I(S)):(S=T(g,"start")||I(T(D,"start")||V,x.slice(0,k)),O=T(g,"end")||I(S,x.substr(k,N))),{css:x,mismatchOffset:k,mismatchLength:N,start:S,end:O}}(y,A),N=k.css,E=k.mismatchOffset,x=k.mismatchLength,S=k.start,O=k.end;return g.rawMessage=D,g.syntax=M?B(M):"<generic>",g.css=N,g.mismatchOffset=E,g.mismatchLength=x,g.message=D+"\n syntax: "+g.syntax+"\n value: "+(N||"<empty string>")+"\n --------"+new Array(g.mismatchOffset+1).join("-")+"^",Object.assign(g,S),g.loc={source:A&&A.loc&&A.loc.source||"<unknown>",start:S,end:O},g}}},25533:function(ce,q,f){var U=f(97555).isDigit,B=f(97555).cmpChar,V=f(97555).TYPE,Z=V.Delim,T=V.WhiteSpace,I=V.Comment,C=V.Ident,v=V.Number,P=V.Dimension,M=45,y=!0;function k(S,O){return null!==S&&S.type===Z&&S.value.charCodeAt(0)===O}function N(S,O,L){for(;null!==S&&(S.type===T||S.type===I);)S=L(++O);return O}function E(S,O,L,j){if(!S)return 0;var K=S.value.charCodeAt(O);if(43===K||K===M){if(L)return 0;O++}for(;O<S.value.length;O++)if(!U(S.value.charCodeAt(O)))return 0;return j+1}function x(S,O,L){var j=!1,K=N(S,O,L);if(null===(S=L(K)))return O;if(S.type!==v){if(!k(S,43)&&!k(S,M))return O;if(j=!0,K=N(L(++K),K,L),null===(S=L(K))&&S.type!==v)return 0}if(!j){var W=S.value.charCodeAt(0);if(43!==W&&W!==M)return 0}return E(S,j?0:1,j,K)}ce.exports=function(O,L){var j=0;if(!O)return 0;if(O.type===v)return E(O,0,!1,j);if(O.type===C&&O.value.charCodeAt(0)===M){if(!B(O.value,1,110))return 0;switch(O.value.length){case 2:return x(L(++j),j,L);case 3:return O.value.charCodeAt(2)!==M?0:(j=N(L(++j),j,L),E(O=L(j),0,y,j));default:return O.value.charCodeAt(2)!==M?0:E(O,3,y,j)}}else if(O.type===C||k(O,43)&&L(j+1).type===C){if(O.type!==C&&(O=L(++j)),null===O||!B(O.value,0,110))return 0;switch(O.value.length){case 1:return x(L(++j),j,L);case 2:return O.value.charCodeAt(1)!==M?0:(j=N(L(++j),j,L),E(O=L(j),0,y,j));default:return O.value.charCodeAt(1)!==M?0:E(O,2,y,j)}}else if(O.type===P){for(var K=O.value.charCodeAt(0),W=43===K||K===M?1:0,J=W;J<O.value.length&&U(O.value.charCodeAt(J));J++);return J!==W&&B(O.value,J,110)?J+1===O.value.length?x(L(++j),j,L):O.value.charCodeAt(J+1)!==M?0:J+2===O.value.length?(j=N(L(++j),j,L),E(O=L(j),0,y,j)):E(O,J+2,y,j):0}return 0}},70156:function(ce,q,f){var U=f(97555).isHexDigit,B=f(97555).cmpChar,V=f(97555).TYPE,Z=V.Ident,T=V.Delim,I=V.Number,C=V.Dimension;function A(N,E){return null!==N&&N.type===T&&N.value.charCodeAt(0)===E}function y(N,E){return N.value.charCodeAt(0)===E}function g(N,E,x){for(var S=E,O=0;S<N.value.length;S++){var L=N.value.charCodeAt(S);if(45===L&&x&&0!==O)return g(N,E+O+1,!1)>0?6:0;if(!U(L)||++O>6)return 0}return O}function k(N,E,x){if(!N)return 0;for(;A(x(E),63);){if(++N>6)return 0;E++}return E}ce.exports=function(E,x){var S=0;if(null===E||E.type!==Z||!B(E.value,0,117)||null===(E=x(++S)))return 0;if(A(E,43))return null===(E=x(++S))?0:E.type===Z?k(g(E,0,!0),++S,x):A(E,63)?k(1,++S,x):0;if(E.type===I){if(!y(E,43))return 0;var O=g(E,1,!0);return 0===O?0:null===(E=x(++S))?S:E.type===C||E.type===I?y(E,45)&&g(E,1,!1)?S+1:0:k(O,S,x)}return E.type===C&&y(E,43)?k(g(E,1,!0),++S,x):0}},71473:function(ce,q,f){var U=f(97555),B=U.isIdentifierStart,V=U.isHexDigit,Z=U.isDigit,T=U.cmpStr,I=U.consumeNumber,C=U.TYPE,v=f(25533),P=f(70156),D=["unset","initial","inherit"],M=["calc(","-moz-calc(","-webkit-calc("];function O(Se,De){return De<Se.length?Se.charCodeAt(De):0}function L(Se,De){return T(Se,0,Se.length,De)}function j(Se,De){for(var Ve=0;Ve<De.length;Ve++)if(L(Se,De[Ve]))return!0;return!1}function K(Se,De){return De===Se.length-2&&92===Se.charCodeAt(De)&&Z(Se.charCodeAt(De+1))}function W(Se,De,Ve){if(Se&&"Range"===Se.type){var ct=Number(void 0!==Ve&&Ve!==De.length?De.substr(0,Ve):De);if(isNaN(ct)||null!==Se.min&&ct<Se.min||null!==Se.max&&ct>Se.max)return!0}return!1}function J(Se,De){var Ve=Se.index,ct=0;do{if(ct++,Se.balance<=Ve)break}while(Se=De(ct));return ct}function oe(Se){return function(De,Ve,ct){return null===De?0:De.type===C.Function&&j(De.value,M)?J(De,Ve):Se(De,Ve,ct)}}function te(Se){return function(De){return null===De||De.type!==Se?0:1}}function ot(Se){return function(De,Ve,ct){if(null===De||De.type!==C.Dimension)return 0;var Je=I(De.value,0);if(null!==Se){var Ut=De.value.indexOf("\\",Je),Et=-1!==Ut&&K(De.value,Ut)?De.value.substring(Je,Ut):De.value.substr(Je);if(!1===Se.hasOwnProperty(Et.toLowerCase()))return 0}return W(ct,De.value,Je)?0:1}}function _t(Se){return"function"!=typeof Se&&(Se=function(){return 0}),function(De,Ve,ct){return null!==De&&De.type===C.Number&&0===Number(De.value)?1:Se(De,Ve,ct)}}ce.exports={"ident-token":te(C.Ident),"function-token":te(C.Function),"at-keyword-token":te(C.AtKeyword),"hash-token":te(C.Hash),"string-token":te(C.String),"bad-string-token":te(C.BadString),"url-token":te(C.Url),"bad-url-token":te(C.BadUrl),"delim-token":te(C.Delim),"number-token":te(C.Number),"percentage-token":te(C.Percentage),"dimension-token":te(C.Dimension),"whitespace-token":te(C.WhiteSpace),"CDO-token":te(C.CDO),"CDC-token":te(C.CDC),"colon-token":te(C.Colon),"semicolon-token":te(C.Semicolon),"comma-token":te(C.Comma),"[-token":te(C.LeftSquareBracket),"]-token":te(C.RightSquareBracket),"(-token":te(C.LeftParenthesis),")-token":te(C.RightParenthesis),"{-token":te(C.LeftCurlyBracket),"}-token":te(C.RightCurlyBracket),string:te(C.String),ident:te(C.Ident),"custom-ident":function(Se){if(null===Se||Se.type!==C.Ident)return 0;var De=Se.value.toLowerCase();return j(De,D)||L(De,"default")?0:1},"custom-property-name":function(Se){return null===Se||Se.type!==C.Ident||45!==O(Se.value,0)||45!==O(Se.value,1)?0:1},"hex-color":function(Se){if(null===Se||Se.type!==C.Hash)return 0;var De=Se.value.length;if(4!==De&&5!==De&&7!==De&&9!==De)return 0;for(var Ve=1;Ve<De;Ve++)if(!V(Se.value.charCodeAt(Ve)))return 0;return 1},"id-selector":function(Se){return null!==Se&&Se.type===C.Hash&&B(O(Se.value,1),O(Se.value,2),O(Se.value,3))?1:0},"an-plus-b":v,urange:P,"declaration-value":function(Se,De){if(!Se)return 0;var Ve=0,ct=0,Je=Se.index;e:do{switch(Se.type){case C.BadString:case C.BadUrl:break e;case C.RightCurlyBracket:case C.RightParenthesis:case C.RightSquareBracket:if(Se.balance>Se.index||Se.balance<Je)break e;ct--;break;case C.Semicolon:if(0===ct)break e;break;case C.Delim:if("!"===Se.value&&0===ct)break e;break;case C.Function:case C.LeftParenthesis:case C.LeftSquareBracket:case C.LeftCurlyBracket:ct++}if(Ve++,Se.balance<=Je)break}while(Se=De(Ve));return Ve},"any-value":function(Se,De){if(!Se)return 0;var Ve=Se.index,ct=0;e:do{switch(Se.type){case C.BadString:case C.BadUrl:break e;case C.RightCurlyBracket:case C.RightParenthesis:case C.RightSquareBracket:if(Se.balance>Se.index||Se.balance<Ve)break e}if(ct++,Se.balance<=Ve)break}while(Se=De(ct));return ct},dimension:oe(ot(null)),angle:oe(ot({deg:!0,grad:!0,rad:!0,turn:!0})),decibel:oe(ot({db:!0})),frequency:oe(ot({hz:!0,khz:!0})),flex:oe(ot({fr:!0})),length:oe(_t(ot({px:!0,mm:!0,cm:!0,in:!0,pt:!0,pc:!0,q:!0,em:!0,ex:!0,ch:!0,rem:!0,vh:!0,vw:!0,vmin:!0,vmax:!0,vm:!0}))),resolution:oe(ot({dpi:!0,dpcm:!0,dppx:!0,x:!0})),semitones:oe(ot({st:!0})),time:oe(ot({s:!0,ms:!0})),percentage:oe(function(Se,De,Ve){return null===Se||Se.type!==C.Percentage||W(Ve,Se.value,Se.value.length-1)?0:1}),zero:_t(),number:oe(function(Se,De,Ve){if(null===Se)return 0;var ct=I(Se.value,0);return ct!==Se.value.length&&!K(Se.value,ct)||W(Ve,Se.value,ct)?0:1}),integer:oe(function(Se,De,Ve){if(null===Se||Se.type!==C.Number)return 0;for(var ct=43===Se.value.charCodeAt(0)||45===Se.value.charCodeAt(0)?1:0;ct<Se.value.length;ct++)if(!Z(Se.value.charCodeAt(ct)))return 0;return W(Ve,Se.value,ct)?0:1}),"-ms-legacy-expression":("expression","(",function(De,Ve){return null!==De&&L(De.value,"expression(")?J(De,Ve):0})}},60997:function(ce,q,f){var U=f(11261),B={type:"Match"},V={type:"Mismatch"},Z={type:"DisallowEmpty"};function C(y,g,k){return g===B&&k===V||y===B&&g===B&&k===B?y:("If"===y.type&&y.else===V&&g===B&&(g=y.then,y=y.match),{type:"If",match:y,then:g,else:k})}function v(y){return y.length>2&&40===y.charCodeAt(y.length-2)&&41===y.charCodeAt(y.length-1)}function P(y){return"Keyword"===y.type||"AtKeyword"===y.type||"Function"===y.type||"Type"===y.type&&v(y.name)}function D(y,g,k){switch(y){case" ":for(var N=B,E=g.length-1;E>=0;E--)N=C(x=g[E],N,V);return N;case"|":N=V;var S=null;for(E=g.length-1;E>=0;E--){if(P(x=g[E])&&(null===S&&E>0&&P(g[E-1])&&(N=C({type:"Enum",map:S=Object.create(null)},B,N)),null!==S)){var O=(v(x.name)?x.name.slice(0,-1):x.name).toLowerCase();if(!(O in S)){S[O]=x;continue}}S=null,N=C(x,B,N)}return N;case"&&":if(g.length>5)return{type:"MatchOnce",terms:g,all:!0};for(N=V,E=g.length-1;E>=0;E--){var x=g[E];L=g.length>1?D(y,g.filter(function(W){return W!==x}),!1):B,N=C(x,L,N)}return N;case"||":if(g.length>5)return{type:"MatchOnce",terms:g,all:!1};for(N=k?B:V,E=g.length-1;E>=0;E--){var L;x=g[E],L=g.length>1?D(y,g.filter(function(J){return J!==x}),!0):B,N=C(x,L,N)}return N}}function A(y){if("function"==typeof y)return{type:"Generic",fn:y};switch(y.type){case"Group":var g=D(y.combinator,y.terms.map(A),!1);return y.disallowEmpty&&(g=C(g,Z,V)),g;case"Multiplier":return function(y){var g=B,k=A(y.term);if(0===y.max)k=C(k,Z,V),(g=C(k,null,V)).then=C(B,B,g),y.comma&&(g.then.else=C({type:"Comma",syntax:y},g,V));else for(var N=y.min||1;N<=y.max;N++)y.comma&&g!==B&&(g=C({type:"Comma",syntax:y},g,V)),g=C(k,C(B,B,g),V);if(0===y.min)g=C(B,B,g);else for(N=0;N<y.min-1;N++)y.comma&&g!==B&&(g=C({type:"Comma",syntax:y},g,V)),g=C(k,g,V);return g}(y);case"Type":case"Property":return{type:y.type,name:y.name,syntax:y};case"Keyword":return{type:y.type,name:y.name.toLowerCase(),syntax:y};case"AtKeyword":return{type:y.type,name:"@"+y.name.toLowerCase(),syntax:y};case"Function":return{type:y.type,name:y.name.toLowerCase()+"(",syntax:y};case"String":return 3===y.value.length?{type:"Token",value:y.value.charAt(1),syntax:y}:{type:y.type,value:y.value.substr(1,y.value.length-2).replace(/\\'/g,"'"),syntax:y};case"Token":return{type:y.type,value:y.value,syntax:y};case"Comma":return{type:y.type,syntax:y};default:throw new Error("Unknown node type:",y.type)}}ce.exports={MATCH:B,MISMATCH:V,DISALLOW_EMPTY:Z,buildMatchGraph:function(g,k){return"string"==typeof g&&(g=U(g)),{type:"MatchGraph",match:A(g),syntax:k||null,source:g}}}},77569:function(ce,q,f){var U=Object.prototype.hasOwnProperty,B=f(60997),V=B.MATCH,Z=B.MISMATCH,T=B.DISALLOW_EMPTY,I=f(97077).TYPE,M="Match",k=0;function N(W){for(var J=null,oe=null,te=W;null!==te;)oe=te.prev,te.prev=J,J=te,te=oe;return J}function E(W,J){if(W.length!==J.length)return!1;for(var oe=0;oe<W.length;oe++){var te=W.charCodeAt(oe);if(te>=65&&te<=90&&(te|=32),te!==J.charCodeAt(oe))return!1}return!0}function S(W){return null===W||W.type===I.Comma||W.type===I.Function||W.type===I.LeftParenthesis||W.type===I.LeftSquareBracket||W.type===I.LeftCurlyBracket||function(W){return W.type===I.Delim&&"?"!==W.value}(W)}function O(W){return null===W||W.type===I.RightParenthesis||W.type===I.RightSquareBracket||W.type===I.RightCurlyBracket||W.type===I.Delim}function L(W,J,oe){function te(){do{Ve++,De=Ve<W.length?W[Ve]:null}while(null!==De&&(De.type===I.WhiteSpace||De.type===I.Comment))}function se(on){var En=Ve+on;return En<W.length?W[En]:null}function le(on,En){return{nextState:on,matchStack:Je,syntaxStack:ot,thenStack:He,tokenIndex:Ve,prev:En}}function de(on){He={nextState:on,matchStack:Je,syntaxStack:ot,prev:He}}function ue(on){_t=le(on,_t)}function ae(){Je={type:1,syntax:J.syntax,token:De,prev:Je},te(),yt=null,Ve>ct&&(ct=Ve)}function ye(){Je=2===Je.type?Je.prev:{type:3,syntax:ot.syntax,token:Je.token,prev:Je},ot=ot.prev}var ot=null,He=null,_t=null,yt=null,Bt=0,Se=null,De=null,Ve=-1,ct=0,Je={type:0,syntax:null,token:null,prev:null};for(te();null===Se&&++Bt<15e3;)switch(J.type){case"Match":if(null===He){if(null!==De&&(Ve!==W.length-1||"\\0"!==De.value&&"\\9"!==De.value)){J=Z;break}Se=M;break}if((J=He.nextState)===T){if(He.matchStack===Je){J=Z;break}J=V}for(;He.syntaxStack!==ot;)ye();He=He.prev;break;case"Mismatch":if(null!==yt&&!1!==yt)(null===_t||Ve>_t.tokenIndex)&&(_t=yt,yt=!1);else if(null===_t){Se="Mismatch";break}J=_t.nextState,He=_t.thenStack,ot=_t.syntaxStack,Je=_t.matchStack,De=(Ve=_t.tokenIndex)<W.length?W[Ve]:null,_t=_t.prev;break;case"MatchGraph":J=J.match;break;case"If":J.else!==Z&&ue(J.else),J.then!==V&&de(J.then),J=J.match;break;case"MatchOnce":J={type:"MatchOnceBuffer",syntax:J,index:0,mask:0};break;case"MatchOnceBuffer":var Ut=J.syntax.terms;if(J.index===Ut.length){if(0===J.mask||J.syntax.all){J=Z;break}J=V;break}if(J.mask===(1<<Ut.length)-1){J=V;break}for(;J.index<Ut.length;J.index++){var Et=1<<J.index;if(0==(J.mask&Et)){ue(J),de({type:"AddMatchOnce",syntax:J.syntax,mask:J.mask|Et}),J=Ut[J.index++];break}}break;case"AddMatchOnce":J={type:"MatchOnceBuffer",syntax:J.syntax,index:0,mask:J.mask};break;case"Enum":if(null!==De&&(-1!==(Ct=De.value.toLowerCase()).indexOf("\\")&&(Ct=Ct.replace(/\\[09].*$/,"")),U.call(J.map,Ct))){J=J.map[Ct];break}J=Z;break;case"Generic":var Kt=Ve+Math.floor(J.fn(De,se,null!==ot?ot.opts:null));if(!isNaN(Kt)&&Kt>Ve){for(;Ve<Kt;)ae();J=V}else J=Z;break;case"Type":case"Property":var Vt="Type"===J.type?"types":"properties",St=U.call(oe,Vt)?oe[Vt][J.name]:null;if(!St||!St.match)throw new Error("Bad syntax reference: "+("Type"===J.type?"<"+J.name+">":"<'"+J.name+"'>"));if(!1!==yt&&null!==De&&"Type"===J.type&&("custom-ident"===J.name&&De.type===I.Ident||"length"===J.name&&"0"===De.value)){null===yt&&(yt=le(J,_t)),J=Z;break}ot={syntax:J.syntax,opts:J.syntax.opts||null!==ot&&ot.opts||null,prev:ot},Je={type:2,syntax:J.syntax,token:Je.token,prev:Je},J=St.match;break;case"Keyword":var Ct=J.name;if(null!==De){var en=De.value;if(-1!==en.indexOf("\\")&&(en=en.replace(/\\[09].*$/,"")),E(en,Ct)){ae(),J=V;break}}J=Z;break;case"AtKeyword":case"Function":if(null!==De&&E(De.value,J.name)){ae(),J=V;break}J=Z;break;case"Token":if(null!==De&&De.value===J.value){ae(),J=V;break}J=Z;break;case"Comma":null!==De&&De.type===I.Comma?S(Je.token)?J=Z:(ae(),J=O(De)?Z:V):J=S(Je.token)||O(De)?V:Z;break;case"String":var Ft="";for(Kt=Ve;Kt<W.length&&Ft.length<J.value.length;Kt++)Ft+=W[Kt].value;if(E(Ft,J.value)){for(;Ve<Kt;)ae();J=V}else J=Z;break;default:throw new Error("Unknown node type: "+J.type)}switch(k+=Bt,Se){case null:console.warn("[csstree-match] BREAK after 15000 iterations"),Se="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",Je=null;break;case M:for(;null!==ot;)ye();break;default:Je=null}return{tokens:W,reason:Se,iterations:Bt,match:Je,longestMatch:ct}}ce.exports={matchAsList:function(W,J,oe){var te=L(W,J,oe||{});if(null!==te.match){var se=N(te.match).prev;for(te.match=[];null!==se;){switch(se.type){case 0:break;case 2:case 3:te.match.push({type:se.type,syntax:se.syntax});break;default:te.match.push({token:se.token.value,node:se.token.node})}se=se.prev}}return te},matchAsTree:function(W,J,oe){var te=L(W,J,oe||{});if(null===te.match)return te;var se=te.match,le=te.match={syntax:J.syntax||null,match:[]},de=[le];for(se=N(se).prev;null!==se;){switch(se.type){case 2:le.match.push(le={syntax:se.syntax,match:[]}),de.push(le);break;case 3:de.pop(),le=de[de.length-1];break;default:le.match.push({syntax:se.syntax||null,token:se.token.value,node:se.token.node})}se=se.prev}return te},getTotalIterationCount:function(){return k}}},73130:function(ce,q,f){var U=f(97555),V=new(f(13146)),Z={decorator:function(C){var v=null,P={len:0,node:null},D=[P],M="";return{children:C.children,node:function(y){var g=v;v=y,C.node.call(this,y),v=g},chunk:function(y){M+=y,P.node!==v?D.push({len:y.length,node:v}):P.len+=y.length},result:function(){return T(M,D)}}}};function T(I,C){var v=[],P=0,D=0,M=C?C[D].node:null;for(U(I,V);!V.eof;){if(C)for(;D<C.length&&P+C[D].len<=V.tokenStart;)P+=C[D++].len,M=C[D].node;v.push({type:V.tokenType,value:V.getTokenValue(),index:V.tokenIndex,balance:V.balance[V.tokenIndex],node:M}),V.next()}return v}ce.exports=function(I,C){return"string"==typeof I?T(I,null):C.generate(I,Z)}},62798:function(ce,q,f){var U=f(63335);function B(T){return"node"in T?T.node:B(T.match[0])}function V(T){return"node"in T?T.node:V(T.match[T.match.length-1])}ce.exports={matchFragments:function(T,I,C,v,P){var M=[];return null!==C.matched&&function D(A){if(null!==A.syntax&&A.syntax.type===v&&A.syntax.name===P){var y=B(A),g=V(A);T.syntax.walk(I,function(k,N,E){if(k===y){var x=new U;do{if(x.appendData(N.data),N.data===g)break;N=N.next}while(null!==N);M.push({parent:E,nodes:x})}})}Array.isArray(A.match)&&A.match.forEach(D)}(C.matched),M}}},92363:function(ce,q,f){var U=f(63335),B=Object.prototype.hasOwnProperty;function V(C){return"number"==typeof C&&isFinite(C)&&Math.floor(C)===C&&C>=0}function Z(C){return Boolean(C)&&V(C.offset)&&V(C.line)&&V(C.column)}function T(C,v){return function(D,M){if(!D||D.constructor!==Object)return M(D,"Type of node should be an Object");for(var A in D){var y=!0;if(!1!==B.call(D,A)){if("type"===A)D.type!==C&&M(D,"Wrong node type `"+D.type+"`, expected `"+C+"`");else if("loc"===A){if(null===D.loc)continue;if(D.loc&&D.loc.constructor===Object)if("string"!=typeof D.loc.source)A+=".source";else if(Z(D.loc.start)){if(Z(D.loc.end))continue;A+=".end"}else A+=".start";y=!1}else if(v.hasOwnProperty(A)){var g=0;for(y=!1;!y&&g<v[A].length;g++){var k=v[A][g];switch(k){case String:y="string"==typeof D[A];break;case Boolean:y="boolean"==typeof D[A];break;case null:y=null===D[A];break;default:"string"==typeof k?y=D[A]&&D[A].type===k:Array.isArray(k)&&(y=D[A]instanceof U)}}}else M(D,"Unknown field `"+A+"` for "+C+" node type");y||M(D,"Bad value for `"+C+"."+A+"`")}}for(var A in v)B.call(v,A)&&!1===B.call(D,A)&&M(D,"Field `"+C+"."+A+"` is missed")}}function I(C,v){var P=v.structure,D={type:String,loc:!0},M={type:'"'+C+'"'};for(var A in P)if(!1!==B.call(P,A)){for(var y=[],g=D[A]=Array.isArray(P[A])?P[A].slice():[P[A]],k=0;k<g.length;k++){var N=g[k];if(N===String||N===Boolean)y.push(N.name);else if(null===N)y.push("null");else if("string"==typeof N)y.push("<"+N+">");else{if(!Array.isArray(N))throw new Error("Wrong value `"+N+"` in `"+C+"."+A+"` structure definition");y.push("List")}}M[A]=y.join(" | ")}return{docs:M,check:T(C,D)}}ce.exports={getStructureFromConfig:function(v){var P={};if(v.node)for(var D in v.node)if(B.call(v.node,D)){var M=v.node[D];if(!M.structure)throw new Error("Missed `structure` field in `"+D+"` node type definition");P[D]=I(D,M)}return P}}},24988:function(ce){function q(Z){function T(v){return null!==v&&("Type"===v.type||"Property"===v.type||"Keyword"===v.type)}var C=null;return null!==this.matched&&function I(v){if(Array.isArray(v.match)){for(var P=0;P<v.match.length;P++)if(I(v.match[P]))return T(v.syntax)&&C.unshift(v.syntax),!0}else if(v.node===Z)return C=T(v.syntax)?[v.syntax]:[],!0;return!1}(this.matched),C}function f(Z,T,I){var C=q.call(Z,T);return null!==C&&C.some(I)}ce.exports={getTrace:q,isType:function(Z,T){return f(this,Z,function(I){return"Type"===I.type&&I.name===T})},isProperty:function(Z,T){return f(this,Z,function(I){return"Property"===I.type&&I.name===T})},isKeyword:function(Z){return f(this,Z,function(T){return"Keyword"===T.type})}}},29365:function(ce,q,f){var U=f(88373),B=f(52556),V=f(13146),Z=f(63335),T=f(97555),I=f(97077),C=f(74586),v=C.findWhiteSpaceStart,P=C.cmpStr,D=f(15785),M=function(){},A=I.TYPE,y=I.NAME,g=A.WhiteSpace,k=A.Comment,N=A.Ident,E=A.Function,x=A.Url,S=A.Hash,O=A.Percentage,L=A.Number;function W(oe){return function(){return this[oe]()}}ce.exports=function(te){var se={scanner:new V,locationMap:new U,filename:"<unknown>",needPositions:!1,onParseError:M,onParseErrorThrow:!1,parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:D,createList:function(){return new Z},createSingleNodeList:function(ue){return(new Z).appendData(ue)},getFirstListNode:function(ue){return ue&&ue.first()},getLastListNode:function(ue){return ue.last()},parseWithFallback:function(ue,ae){var Me=this.scanner.tokenIndex;try{return ue.call(this)}catch(ot){if(this.onParseErrorThrow)throw ot;var ye=ae.call(this,Me);return this.onParseErrorThrow=!0,this.onParseError(ot,ye),this.onParseErrorThrow=!1,ye}},lookupNonWSType:function(ue){do{var ae=this.scanner.lookupType(ue++);if(ae!==g)return ae}while(0!==ae);return 0},eat:function(ue){if(this.scanner.tokenType!==ue){var ae=this.scanner.tokenStart,Me=y[ue]+" is expected";switch(ue){case N:this.scanner.tokenType===E||this.scanner.tokenType===x?(ae=this.scanner.tokenEnd-1,Me="Identifier is expected but function found"):Me="Identifier is expected";break;case S:this.scanner.isDelim(35)&&(this.scanner.next(),ae++,Me="Name is expected");break;case O:this.scanner.tokenType===L&&(ae=this.scanner.tokenEnd,Me="Percent sign is expected");break;default:this.scanner.source.charCodeAt(this.scanner.tokenStart)===ue&&(ae+=1)}this.error(Me,ae)}this.scanner.next()},consume:function(ue){var ae=this.scanner.getTokenValue();return this.eat(ue),ae},consumeFunctionName:function(){var ue=this.scanner.source.substring(this.scanner.tokenStart,this.scanner.tokenEnd-1);return this.eat(E),ue},getLocation:function(ue,ae){return this.needPositions?this.locationMap.getLocationRange(ue,ae,this.filename):null},getLocationFromList:function(ue){if(this.needPositions){var ae=this.getFirstListNode(ue),Me=this.getLastListNode(ue);return this.locationMap.getLocationRange(null!==ae?ae.loc.start.offset-this.locationMap.startOffset:this.scanner.tokenStart,null!==Me?Me.loc.end.offset-this.locationMap.startOffset:this.scanner.tokenStart,this.filename)}return null},error:function(ue,ae){var Me=this.locationMap.getLocation(void 0!==ae&&ae<this.scanner.source.length?ae:this.scanner.eof?v(this.scanner.source,this.scanner.source.length-1):this.scanner.tokenStart);throw new B(ue||"Unexpected input",this.scanner.source,Me.offset,Me.line,Me.column)}};for(var le in te=function(oe){var te={context:{},scope:{},atrule:{},pseudo:{}};if(oe.parseContext)for(var se in oe.parseContext)switch(typeof oe.parseContext[se]){case"function":te.context[se]=oe.parseContext[se];break;case"string":te.context[se]=W(oe.parseContext[se])}if(oe.scope)for(var se in oe.scope)te.scope[se]=oe.scope[se];if(oe.atrule)for(var se in oe.atrule){var le=oe.atrule[se];le.parse&&(te.atrule[se]=le.parse)}if(oe.pseudo)for(var se in oe.pseudo){var de=oe.pseudo[se];de.parse&&(te.pseudo[se]=de.parse)}if(oe.node)for(var se in oe.node)te[se]=oe.node[se].parse;return te}(te||{}))se[le]=te[le];return function(de,ue){var ye,ae=(ue=ue||{}).context||"default",Me=ue.onComment;if(T(de,se.scanner),se.locationMap.setSource(de,ue.offset,ue.line,ue.column),se.filename=ue.filename||"<unknown>",se.needPositions=Boolean(ue.positions),se.onParseError="function"==typeof ue.onParseError?ue.onParseError:M,se.onParseErrorThrow=!1,se.parseAtrulePrelude=!("parseAtrulePrelude"in ue)||Boolean(ue.parseAtrulePrelude),se.parseRulePrelude=!("parseRulePrelude"in ue)||Boolean(ue.parseRulePrelude),se.parseValue=!("parseValue"in ue)||Boolean(ue.parseValue),se.parseCustomProperty="parseCustomProperty"in ue&&Boolean(ue.parseCustomProperty),!se.context.hasOwnProperty(ae))throw new Error("Unknown context `"+ae+"`");return"function"==typeof Me&&se.scanner.forEachToken(function(ot,He,_t){if(ot===k){var yt=se.getLocation(He,_t),Bt=P(de,_t-2,_t,"*/")?de.slice(He+2,_t-2):de.slice(He+2,_t);Me(Bt,yt)}}),ye=se.context[ae].call(se,ue),se.scanner.eof||se.error(),ye}}},15785:function(ce,q,f){var U=f(97555).TYPE,B=U.WhiteSpace,V=U.Comment;ce.exports=function(T){var I=this.createList(),C=null,v={recognizer:T,space:null,ignoreWS:!1,ignoreWSAfter:!1};for(this.scanner.skipSC();!this.scanner.eof;){switch(this.scanner.tokenType){case V:this.scanner.next();continue;case B:v.ignoreWS?this.scanner.next():v.space=this.WhiteSpace();continue}if(void 0===(C=T.getNode.call(this,v)))break;null!==v.space&&(I.push(v.space),v.space=null),I.push(C),v.ignoreWSAfter?(v.ignoreWSAfter=!1,v.ignoreWS=!0):v.ignoreWS=!1}return I}},71713:function(ce){ce.exports={parse:{prelude:null,block:function(){return this.Block(!0)}}}},88208:function(ce,q,f){var U=f(97555).TYPE,B=U.String,V=U.Ident,Z=U.Url,T=U.Function,I=U.LeftParenthesis;ce.exports={parse:{prelude:function(){var v=this.createList();switch(this.scanner.skipSC(),this.scanner.tokenType){case B:v.push(this.String());break;case Z:case T:v.push(this.Url());break;default:this.error("String or url() is expected")}return(this.lookupNonWSType(0)===V||this.lookupNonWSType(0)===I)&&(v.push(this.WhiteSpace()),v.push(this.MediaQueryList())),v},block:null}}},55682:function(ce,q,f){ce.exports={"font-face":f(71713),import:f(88208),media:f(81706),page:f(93949),supports:f(46928)}},81706:function(ce){ce.exports={parse:{prelude:function(){return this.createSingleNodeList(this.MediaQueryList())},block:function(){return this.Block(!1)}}}},93949:function(ce){ce.exports={parse:{prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(!0)}}}},46928:function(ce,q,f){var U=f(97555).TYPE,B=U.WhiteSpace,V=U.Comment,Z=U.Ident,T=U.Function,I=U.Colon,C=U.LeftParenthesis;function v(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))}function P(){return this.scanner.skipSC(),this.scanner.tokenType===Z&&this.lookupNonWSType(1)===I?this.createSingleNodeList(this.Declaration()):D.call(this)}function D(){var y,M=this.createList(),A=null;this.scanner.skipSC();e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case B:A=this.WhiteSpace();continue;case V:this.scanner.next();continue;case T:y=this.Function(v,this.scope.AtrulePrelude);break;case Z:y=this.Identifier();break;case C:y=this.Parentheses(P,this.scope.AtrulePrelude);break;default:break e}null!==A&&(M.push(A),A=null),M.push(y)}return M}ce.exports={parse:{prelude:function(){var A=D.call(this);return null===this.getFirstListNode(A)&&this.error("Condition is expected"),A},block:function(){return this.Block(!1)}}}},53901:function(ce,q,f){var U=f(57695);ce.exports={generic:!0,types:U.types,atrules:U.atrules,properties:U.properties,node:f(5678)}},15249:function(ce,q,f){var U=f(6326).default,B=Object.prototype.hasOwnProperty,V={generic:!0,types:P,atrules:{prelude:D,descriptors:D},properties:P,parseContext:function(A,y){return Object.assign(A,y)},scope:function C(A,y){for(var g in y)B.call(y,g)&&(Z(A[g])?C(A[g],T(y[g])):A[g]=T(y[g]));return A},atrule:["parse"],pseudo:["parse"],node:["name","structure","parse","generate","walkContext"]};function Z(A){return A&&A.constructor===Object}function T(A){return Z(A)?Object.assign({},A):A}function v(A,y){return"string"==typeof y&&/^\s*\|/.test(y)?"string"==typeof A?A+y:y.replace(/^\s*\|\s*/,""):y||null}function P(A,y){if("string"==typeof y)return v(A,y);var g=Object.assign({},A);for(var k in y)B.call(y,k)&&(g[k]=v(B.call(A,k)?A[k]:void 0,y[k]));return g}function D(A,y){var g=P(A,y);return!Z(g)||Object.keys(g).length?g:null}function M(A,y,g){for(var k in g)if(!1!==B.call(g,k))if(!0===g[k])k in y&&B.call(y,k)&&(A[k]=T(y[k]));else if(g[k])if("function"==typeof g[k]){var N=g[k];A[k]=N({},A[k]),A[k]=N(A[k]||{},y[k])}else if(Z(g[k])){var E={};for(var x in A[k])E[x]=M({},A[k][x],g[k]);for(var S in y[k])E[S]=M(E[S]||{},y[k][S],g[k]);A[k]=E}else if(Array.isArray(g[k])){for(var O={},L=g[k].reduce(function(se,le){return se[le]=!0,se},{}),j=0,K=Object.entries(A[k]||{});j<K.length;j++){var W=U(K[j],2),J=W[0],oe=W[1];O[J]={},oe&&M(O[J],oe,L)}for(var te in y[k])B.call(y[k],te)&&(O[te]||(O[te]={}),y[k]&&y[k][te]&&M(O[te],y[k][te],L));A[k]=O}return A}ce.exports=function(A,y){return M(A,y,V)}},76816:function(ce,q,f){ce.exports={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude:function(B){return this.AtrulePrelude(B.atrule?String(B.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",rule:"Rule",selectorList:"SelectorList",selector:"Selector",block:function(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},scope:f(73241),atrule:f(55682),pseudo:f(31947),node:f(5678)}},29897:function(ce,q,f){ce.exports={node:f(5678)}},15067:function(ce,q,f){var U=f(63335),B=f(52556),V=f(13146),Z=f(63539),T=f(37149),I=f(97555),C=f(29365),v=f(9861),P=f(62139),D=f(24523),M=f(30714),A=f(50643),y=f(15249);function g(k){var N=C(k),E=D(k),x=v(k),S=P(E),O={List:U,SyntaxError:B,TokenStream:V,Lexer:Z,vendorPrefix:A.vendorPrefix,keyword:A.keyword,property:A.property,isCustomProperty:A.isCustomProperty,definitionSyntax:T,lexer:null,createLexer:function(j){return new Z(j,O,O.lexer.structure)},tokenize:I,parse:N,walk:E,generate:x,find:E.find,findLast:E.findLast,findAll:E.findAll,clone:M,fromPlainObject:S.fromPlainObject,toPlainObject:S.toPlainObject,createSyntax:function(j){return g(y({},j))},fork:function(j){var K=y({},k);return g("function"==typeof j?j(K,Object.assign):y(K,j))}};return O.lexer=new Z({generic:!0,types:k.types,atrules:k.atrules,properties:k.properties,node:k.node},O),O}q.create=function(k){return g(y({},k))}},36728:function(ce){ce.exports=function(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))}},82418:function(ce,q,f){var U=f(97555).TYPE,B=f(89604).mode,V=U.Comma,Z=U.WhiteSpace;ce.exports=function(){var T=this.createList();if(this.scanner.skipSC(),T.push(this.Identifier()),this.scanner.skipSC(),this.scanner.tokenType===V){T.push(this.Operator());var I=this.scanner.tokenIndex,C=this.parseCustomProperty?this.Value(null):this.Raw(this.scanner.tokenIndex,B.exclamationMarkOrSemicolon,!1);if("Value"===C.type&&C.children.isEmpty())for(var v=I-this.scanner.tokenIndex;v<=0;v++)if(this.scanner.lookupType(v)===Z){C.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}T.push(C)}return T}},39158:function(ce,q,f){ce.exports=f(15067).create(function(){for(var B={},V=0;V<arguments.length;V++){var Z=arguments[V];for(var T in Z)B[T]=Z[T]}return B}(f(53901),f(76816),f(29897))),ce.exports.version=f(37151).version},34230:function(ce,q,f){var U=f(97555).cmpChar,B=f(97555).isDigit,V=f(97555).TYPE,Z=V.WhiteSpace,T=V.Comment,I=V.Ident,C=V.Number,v=V.Dimension,P=43,D=45,M=110,A=!0;function g(x,S){var O=this.scanner.tokenStart+x,L=this.scanner.source.charCodeAt(O);for((L===P||L===D)&&(S&&this.error("Number sign is not allowed"),O++);O<this.scanner.tokenEnd;O++)B(this.scanner.source.charCodeAt(O))||this.error("Integer is expected",O)}function k(x){return g.call(this,0,x)}function N(x,S){if(!U(this.scanner.source,this.scanner.tokenStart+x,S)){var O="";switch(S){case M:O="N is expected";break;case D:O="HyphenMinus is expected"}this.error(O,this.scanner.tokenStart+x)}}function E(){for(var x=0,S=0,O=this.scanner.tokenType;O===Z||O===T;)O=this.scanner.lookupType(++x);if(O!==C){if(!this.scanner.isDelim(P,x)&&!this.scanner.isDelim(D,x))return null;S=this.scanner.isDelim(P,x)?P:D;do{O=this.scanner.lookupType(++x)}while(O===Z||O===T);O!==C&&(this.scanner.skip(x),k.call(this,A))}return x>0&&this.scanner.skip(x),0===S&&(O=this.scanner.source.charCodeAt(this.scanner.tokenStart))!==P&&O!==D&&this.error("Number sign is expected"),k.call(this,0!==S),S===D?"-"+this.consume(C):this.consume(C)}ce.exports={name:"AnPlusB",structure:{a:[String,null],b:[String,null]},parse:function(){var S=this.scanner.tokenStart,O=null,L=null;if(this.scanner.tokenType===C)k.call(this,!1),L=this.consume(C);else if(this.scanner.tokenType===I&&U(this.scanner.source,this.scanner.tokenStart,D))switch(O="-1",N.call(this,1,M),this.scanner.getTokenLength()){case 2:this.scanner.next(),L=E.call(this);break;case 3:N.call(this,2,D),this.scanner.next(),this.scanner.skipSC(),k.call(this,A),L="-"+this.consume(C);break;default:N.call(this,2,D),g.call(this,3,A),this.scanner.next(),L=this.scanner.substrToCursor(S+2)}else if(this.scanner.tokenType===I||this.scanner.isDelim(P)&&this.scanner.lookupType(1)===I){var j=0;switch(O="1",this.scanner.isDelim(P)&&(j=1,this.scanner.next()),N.call(this,0,M),this.scanner.getTokenLength()){case 1:this.scanner.next(),L=E.call(this);break;case 2:N.call(this,1,D),this.scanner.next(),this.scanner.skipSC(),k.call(this,A),L="-"+this.consume(C);break;default:N.call(this,1,D),g.call(this,2,A),this.scanner.next(),L=this.scanner.substrToCursor(S+j+1)}}else if(this.scanner.tokenType===v){for(var K=this.scanner.source.charCodeAt(this.scanner.tokenStart),W=this.scanner.tokenStart+(j=K===P||K===D);W<this.scanner.tokenEnd&&B(this.scanner.source.charCodeAt(W));W++);W===this.scanner.tokenStart+j&&this.error("Integer is expected",this.scanner.tokenStart+j),N.call(this,W-this.scanner.tokenStart,M),O=this.scanner.source.substring(S,W),W+1===this.scanner.tokenEnd?(this.scanner.next(),L=E.call(this)):(N.call(this,W-this.scanner.tokenStart+1,D),W+2===this.scanner.tokenEnd?(this.scanner.next(),this.scanner.skipSC(),k.call(this,A),L="-"+this.consume(C)):(g.call(this,W-this.scanner.tokenStart+2,A),this.scanner.next(),L=this.scanner.substrToCursor(W+1)))}else this.error();return null!==O&&O.charCodeAt(0)===P&&(O=O.substr(1)),null!==L&&L.charCodeAt(0)===P&&(L=L.substr(1)),{type:"AnPlusB",loc:this.getLocation(S,this.scanner.tokenStart),a:O,b:L}},generate:function(S){var L=null!=S.b;null!=S.a?(this.chunk("+1"===S.a?"+n":"1"===S.a?"n":"-1"===S.a?"-n":S.a+"n"),L&&("-"===(L=String(S.b)).charAt(0)||"+"===L.charAt(0)?(this.chunk(L.charAt(0)),this.chunk(L.substr(1))):(this.chunk("+"),this.chunk(L)))):this.chunk(String(S.b))}}},24867:function(ce,q,f){var U=f(97555).TYPE,B=f(89604).mode,V=U.AtKeyword,Z=U.Semicolon,T=U.LeftCurlyBracket,I=U.RightCurlyBracket;function C(P){return this.Raw(P,B.leftCurlyBracketOrSemicolon,!0)}function v(){for(var D,P=1;D=this.scanner.lookupType(P);P++){if(D===I)return!0;if(D===T||D===V)return!1}return!1}ce.exports={name:"Atrule",structure:{name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]},parse:function(){var M,A,D=this.scanner.tokenStart,y=null,g=null;switch(this.eat(V),A=(M=this.scanner.substrToCursor(D+1)).toLowerCase(),this.scanner.skipSC(),!1===this.scanner.eof&&this.scanner.tokenType!==T&&this.scanner.tokenType!==Z&&(this.parseAtrulePrelude?"AtrulePrelude"===(y=this.parseWithFallback(this.AtrulePrelude.bind(this,M),C)).type&&null===y.children.head&&(y=null):y=C.call(this,this.scanner.tokenIndex),this.scanner.skipSC()),this.scanner.tokenType){case Z:this.scanner.next();break;case T:g=this.atrule.hasOwnProperty(A)&&"function"==typeof this.atrule[A].block?this.atrule[A].block.call(this):this.Block(v.call(this))}return{type:"Atrule",loc:this.getLocation(D,this.scanner.tokenStart),name:M,prelude:y,block:g}},generate:function(D){this.chunk("@"),this.chunk(D.name),null!==D.prelude&&(this.chunk(" "),this.node(D.prelude)),D.block?this.node(D.block):this.chunk(";")},walkContext:"atrule"}},19121:function(ce,q,f){var U=f(97555).TYPE,B=U.Semicolon,V=U.LeftCurlyBracket;ce.exports={name:"AtrulePrelude",structure:{children:[[]]},parse:function(T){var I=null;return null!==T&&(T=T.toLowerCase()),this.scanner.skipSC(),I=this.atrule.hasOwnProperty(T)&&"function"==typeof this.atrule[T].prelude?this.atrule[T].prelude.call(this):this.readSequence(this.scope.AtrulePrelude),this.scanner.skipSC(),!0!==this.scanner.eof&&this.scanner.tokenType!==V&&this.scanner.tokenType!==B&&this.error("Semicolon or block is expected"),null===I&&(I=this.createList()),{type:"AtrulePrelude",loc:this.getLocationFromList(I),children:I}},generate:function(T){this.children(T)},walkContext:"atrulePrelude"}},87446:function(ce,q,f){var U=f(97555).TYPE,B=U.Ident,V=U.String,Z=U.Colon,T=U.LeftSquareBracket,I=U.RightSquareBracket;function y(){this.scanner.eof&&this.error("Unexpected end of input");var k=this.scanner.tokenStart,N=!1,E=!0;return this.scanner.isDelim(42)?(N=!0,E=!1,this.scanner.next()):this.scanner.isDelim(124)||this.eat(B),this.scanner.isDelim(124)?61!==this.scanner.source.charCodeAt(this.scanner.tokenStart+1)?(this.scanner.next(),this.eat(B)):N&&this.error("Identifier is expected",this.scanner.tokenEnd):N&&this.error("Vertical line is expected"),E&&this.scanner.tokenType===Z&&(this.scanner.next(),this.eat(B)),{type:"Identifier",loc:this.getLocation(k,this.scanner.tokenStart),name:this.scanner.substrToCursor(k)}}function g(){var k=this.scanner.tokenStart,N=this.scanner.source.charCodeAt(k);return 61!==N&&126!==N&&94!==N&&36!==N&&42!==N&&124!==N&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.scanner.next(),61!==N&&(this.scanner.isDelim(61)||this.error("Equal sign is expected"),this.scanner.next()),this.scanner.substrToCursor(k)}ce.exports={name:"AttributeSelector",structure:{name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]},parse:function(){var E,N=this.scanner.tokenStart,x=null,S=null,O=null;return this.eat(T),this.scanner.skipSC(),E=y.call(this),this.scanner.skipSC(),this.scanner.tokenType!==I&&(this.scanner.tokenType!==B&&(x=g.call(this),this.scanner.skipSC(),S=this.scanner.tokenType===V?this.String():this.Identifier(),this.scanner.skipSC()),this.scanner.tokenType===B&&(O=this.scanner.getTokenValue(),this.scanner.next(),this.scanner.skipSC())),this.eat(I),{type:"AttributeSelector",loc:this.getLocation(N,this.scanner.tokenStart),name:E,matcher:x,value:S,flags:O}},generate:function(N){var E=" ";this.chunk("["),this.node(N.name),null!==N.matcher&&(this.chunk(N.matcher),null!==N.value&&(this.node(N.value),"String"===N.value.type&&(E=""))),null!==N.flags&&(this.chunk(E),this.chunk(N.flags)),this.chunk("]")}}},33570:function(ce,q,f){var U=f(97555).TYPE,B=f(89604).mode,V=U.WhiteSpace,Z=U.Comment,T=U.Semicolon,I=U.AtKeyword,C=U.LeftCurlyBracket,v=U.RightCurlyBracket;function P(y){return this.Raw(y,null,!0)}function D(){return this.parseWithFallback(this.Rule,P)}function M(y){return this.Raw(y,B.semicolonIncluded,!0)}function A(){if(this.scanner.tokenType===T)return M.call(this,this.scanner.tokenIndex);var y=this.parseWithFallback(this.Declaration,M);return this.scanner.tokenType===T&&this.scanner.next(),y}ce.exports={name:"Block",structure:{children:[["Atrule","Rule","Declaration"]]},parse:function(g){var k=g?A:D,N=this.scanner.tokenStart,E=this.createList();this.eat(C);e:for(;!this.scanner.eof;)switch(this.scanner.tokenType){case v:break e;case V:case Z:this.scanner.next();break;case I:E.push(this.parseWithFallback(this.Atrule,P));break;default:E.push(k.call(this))}return this.scanner.eof||this.eat(v),{type:"Block",loc:this.getLocation(N,this.scanner.tokenStart),children:E}},generate:function(g){this.chunk("{"),this.children(g,function(k){"Declaration"===k.type&&this.chunk(";")}),this.chunk("}")},walkContext:"block"}},8916:function(ce,q,f){var U=f(97555).TYPE,B=U.LeftSquareBracket,V=U.RightSquareBracket;ce.exports={name:"Brackets",structure:{children:[[]]},parse:function(T,I){var v,C=this.scanner.tokenStart;return this.eat(B),v=T.call(this,I),this.scanner.eof||this.eat(V),{type:"Brackets",loc:this.getLocation(C,this.scanner.tokenStart),children:v}},generate:function(T){this.chunk("["),this.children(T),this.chunk("]")}}},91485:function(ce,q,f){var U=f(97555).TYPE.CDC;ce.exports={name:"CDC",structure:[],parse:function(){var V=this.scanner.tokenStart;return this.eat(U),{type:"CDC",loc:this.getLocation(V,this.scanner.tokenStart)}},generate:function(){this.chunk("--\x3e")}}},59315:function(ce,q,f){var U=f(97555).TYPE.CDO;ce.exports={name:"CDO",structure:[],parse:function(){var V=this.scanner.tokenStart;return this.eat(U),{type:"CDO",loc:this.getLocation(V,this.scanner.tokenStart)}},generate:function(){this.chunk("\x3c!--")}}},37016:function(ce,q,f){var B=f(97555).TYPE.Ident;ce.exports={name:"ClassSelector",structure:{name:String},parse:function(){return this.scanner.isDelim(46)||this.error("Full stop is expected"),this.scanner.next(),{type:"ClassSelector",loc:this.getLocation(this.scanner.tokenStart-1,this.scanner.tokenEnd),name:this.consume(B)}},generate:function(T){this.chunk("."),this.chunk(T.name)}}},55136:function(ce,q,f){var B=f(97555).TYPE.Ident;ce.exports={name:"Combinator",structure:{name:String},parse:function(){var v=this.scanner.tokenStart;switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case 62:case 43:case 126:this.scanner.next();break;case 47:this.scanner.next(),(this.scanner.tokenType!==B||!1===this.scanner.lookupValue(0,"deep"))&&this.error("Identifier `deep` is expected"),this.scanner.next(),this.scanner.isDelim(47)||this.error("Solidus is expected"),this.scanner.next();break;default:this.error("Combinator is expected")}return{type:"Combinator",loc:this.getLocation(v,this.scanner.tokenStart),name:this.scanner.substrToCursor(v)}},generate:function(v){this.chunk(v.name)}}},6875:function(ce,q,f){var B=f(97555).TYPE.Comment;ce.exports={name:"Comment",structure:{value:String},parse:function(){var I=this.scanner.tokenStart,C=this.scanner.tokenEnd;return this.eat(B),C-I+2>=2&&42===this.scanner.source.charCodeAt(C-2)&&47===this.scanner.source.charCodeAt(C-1)&&(C-=2),{type:"Comment",loc:this.getLocation(I,this.scanner.tokenStart),value:this.scanner.source.substring(I+2,C)}},generate:function(I){this.chunk("/*"),this.chunk(I.value),this.chunk("*/")}}},7217:function(ce,q,f){var U=f(50643).isCustomProperty,B=f(97555).TYPE,V=f(89604).mode,Z=B.Ident,T=B.Hash,I=B.Colon,C=B.Semicolon,v=B.Delim,P=B.WhiteSpace;function E(j){return this.Raw(j,V.exclamationMarkOrSemicolon,!0)}function x(j){return this.Raw(j,V.exclamationMarkOrSemicolon,!1)}function S(){var j=this.scanner.tokenIndex,K=this.Value();return"Raw"!==K.type&&!1===this.scanner.eof&&this.scanner.tokenType!==C&&!1===this.scanner.isDelim(33)&&!1===this.scanner.isBalanceEdge(j)&&this.error(),K}function O(){var j=this.scanner.tokenStart;if(this.scanner.tokenType===v)switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case 42:case 36:case 43:case 35:case 38:this.scanner.next();break;case 47:this.scanner.next(),this.scanner.isDelim(47)&&this.scanner.next()}return this.eat(this.scanner.tokenType===T?T:Z),this.scanner.substrToCursor(j)}function L(){this.eat(v),this.scanner.skipSC();var j=this.consume(Z);return"important"===j||j}ce.exports={name:"Declaration",structure:{important:[Boolean,String],property:String,value:["Value","Raw"]},parse:function(){var de,K=this.scanner.tokenStart,W=this.scanner.tokenIndex,J=O.call(this),oe=U(J),te=oe?this.parseCustomProperty:this.parseValue,se=oe?x:E,le=!1;this.scanner.skipSC(),this.eat(I);var ue=this.scanner.tokenIndex;if(oe||this.scanner.skipSC(),de=te?this.parseWithFallback(S,se):se.call(this,this.scanner.tokenIndex),oe&&"Value"===de.type&&de.children.isEmpty())for(var ae=ue-this.scanner.tokenIndex;ae<=0;ae++)if(this.scanner.lookupType(ae)===P){de.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.scanner.isDelim(33)&&(le=L.call(this),this.scanner.skipSC()),!1===this.scanner.eof&&this.scanner.tokenType!==C&&!1===this.scanner.isBalanceEdge(W)&&this.error(),{type:"Declaration",loc:this.getLocation(K,this.scanner.tokenStart),important:le,property:J,value:de}},generate:function(K){this.chunk(K.property),this.chunk(":"),this.node(K.value),K.important&&this.chunk(!0===K.important?"!important":"!"+K.important)},walkContext:"declaration"}},69013:function(ce,q,f){var U=f(97555).TYPE,B=f(89604).mode,V=U.WhiteSpace,Z=U.Comment,T=U.Semicolon;function I(C){return this.Raw(C,B.semicolonIncluded,!0)}ce.exports={name:"DeclarationList",structure:{children:[["Declaration"]]},parse:function(){for(var v=this.createList();!this.scanner.eof;)switch(this.scanner.tokenType){case V:case Z:case T:this.scanner.next();break;default:v.push(this.parseWithFallback(this.Declaration,I))}return{type:"DeclarationList",loc:this.getLocationFromList(v),children:v}},generate:function(v){this.children(v,function(P){"Declaration"===P.type&&this.chunk(";")})}}},68241:function(ce,q,f){var U=f(74586).consumeNumber,V=f(97555).TYPE.Dimension;ce.exports={name:"Dimension",structure:{value:String,unit:String},parse:function(){var T=this.scanner.tokenStart,I=U(this.scanner.source,T);return this.eat(V),{type:"Dimension",loc:this.getLocation(T,this.scanner.tokenStart),value:this.scanner.source.substring(T,I),unit:this.scanner.source.substring(I,this.scanner.tokenStart)}},generate:function(T){this.chunk(T.value),this.chunk(T.unit)}}},60298:function(ce,q,f){var B=f(97555).TYPE.RightParenthesis;ce.exports={name:"Function",structure:{name:String,children:[[]]},parse:function(Z,T){var P,I=this.scanner.tokenStart,C=this.consumeFunctionName(),v=C.toLowerCase();return P=T.hasOwnProperty(v)?T[v].call(this,T):Z.call(this,T),this.scanner.eof||this.eat(B),{type:"Function",loc:this.getLocation(I,this.scanner.tokenStart),name:C,children:P}},generate:function(Z){this.chunk(Z.name),this.chunk("("),this.children(Z),this.chunk(")")},walkContext:"function"}},50759:function(ce,q,f){var B=f(97555).TYPE.Hash;ce.exports={name:"Hash",structure:{value:String},parse:function(){var Z=this.scanner.tokenStart;return this.eat(B),{type:"Hash",loc:this.getLocation(Z,this.scanner.tokenStart),value:this.scanner.substrToCursor(Z+1)}},generate:function(Z){this.chunk("#"),this.chunk(Z.value)}}},37701:function(ce,q,f){var B=f(97555).TYPE.Hash;ce.exports={name:"IdSelector",structure:{name:String},parse:function(){var Z=this.scanner.tokenStart;return this.eat(B),{type:"IdSelector",loc:this.getLocation(Z,this.scanner.tokenStart),name:this.scanner.substrToCursor(Z+1)}},generate:function(Z){this.chunk("#"),this.chunk(Z.name)}}},71392:function(ce,q,f){var B=f(97555).TYPE.Ident;ce.exports={name:"Identifier",structure:{name:String},parse:function(){return{type:"Identifier",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),name:this.consume(B)}},generate:function(Z){this.chunk(Z.name)}}},94179:function(ce,q,f){var U=f(97555).TYPE,B=U.Ident,V=U.Number,Z=U.Dimension,T=U.LeftParenthesis,I=U.RightParenthesis,C=U.Colon,v=U.Delim;ce.exports={name:"MediaFeature",structure:{name:String,value:["Identifier","Number","Dimension","Ratio",null]},parse:function(){var M,D=this.scanner.tokenStart,A=null;if(this.eat(T),this.scanner.skipSC(),M=this.consume(B),this.scanner.skipSC(),this.scanner.tokenType!==I){switch(this.eat(C),this.scanner.skipSC(),this.scanner.tokenType){case V:A=this.lookupNonWSType(1)===v?this.Ratio():this.Number();break;case Z:A=this.Dimension();break;case B:A=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.scanner.skipSC()}return this.eat(I),{type:"MediaFeature",loc:this.getLocation(D,this.scanner.tokenStart),name:M,value:A}},generate:function(D){this.chunk("("),this.chunk(D.name),null!==D.value&&(this.chunk(":"),this.node(D.value)),this.chunk(")")}}},32107:function(ce,q,f){var U=f(97555).TYPE,B=U.WhiteSpace,V=U.Comment,Z=U.Ident,T=U.LeftParenthesis;ce.exports={name:"MediaQuery",structure:{children:[["Identifier","MediaFeature","WhiteSpace"]]},parse:function(){this.scanner.skipSC();var C=this.createList(),v=null,P=null;e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case V:this.scanner.next();continue;case B:P=this.WhiteSpace();continue;case Z:v=this.Identifier();break;case T:v=this.MediaFeature();break;default:break e}null!==P&&(C.push(P),P=null),C.push(v)}return null===v&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(C),children:C}},generate:function(C){this.children(C)}}},54459:function(ce,q,f){var U=f(97555).TYPE.Comma;ce.exports={name:"MediaQueryList",structure:{children:[["MediaQuery"]]},parse:function(V){var Z=this.createList();for(this.scanner.skipSC();!this.scanner.eof&&(Z.push(this.MediaQuery(V)),this.scanner.tokenType===U);)this.scanner.next();return{type:"MediaQueryList",loc:this.getLocationFromList(Z),children:Z}},generate:function(V){this.children(V,function(){this.chunk(",")})}}},61123:function(ce){ce.exports={name:"Nth",structure:{nth:["AnPlusB","Identifier"],selector:["SelectorList",null]},parse:function(f){this.scanner.skipSC();var Z,U=this.scanner.tokenStart,B=U,V=null;return Z=this.scanner.lookupValue(0,"odd")||this.scanner.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),this.scanner.skipSC(),f&&this.scanner.lookupValue(0,"of")?(this.scanner.next(),V=this.SelectorList(),this.needPositions&&(B=this.getLastListNode(V.children).loc.end.offset)):this.needPositions&&(B=Z.loc.end.offset),{type:"Nth",loc:this.getLocation(U,B),nth:Z,selector:V}},generate:function(f){this.node(f.nth),null!==f.selector&&(this.chunk(" of "),this.node(f.selector))}}},63902:function(ce,q,f){var U=f(97555).TYPE.Number;ce.exports={name:"Number",structure:{value:String},parse:function(){return{type:"Number",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(U)}},generate:function(V){this.chunk(V.value)}}},7249:function(ce){ce.exports={name:"Operator",structure:{value:String},parse:function(){var f=this.scanner.tokenStart;return this.scanner.next(),{type:"Operator",loc:this.getLocation(f,this.scanner.tokenStart),value:this.scanner.substrToCursor(f)}},generate:function(f){this.chunk(f.value)}}},34875:function(ce,q,f){var U=f(97555).TYPE,B=U.LeftParenthesis,V=U.RightParenthesis;ce.exports={name:"Parentheses",structure:{children:[[]]},parse:function(T,I){var v,C=this.scanner.tokenStart;return this.eat(B),v=T.call(this,I),this.scanner.eof||this.eat(V),{type:"Parentheses",loc:this.getLocation(C,this.scanner.tokenStart),children:v}},generate:function(T){this.chunk("("),this.children(T),this.chunk(")")}}},62173:function(ce,q,f){var U=f(74586).consumeNumber,V=f(97555).TYPE.Percentage;ce.exports={name:"Percentage",structure:{value:String},parse:function(){var T=this.scanner.tokenStart,I=U(this.scanner.source,T);return this.eat(V),{type:"Percentage",loc:this.getLocation(T,this.scanner.tokenStart),value:this.scanner.source.substring(T,I)}},generate:function(T){this.chunk(T.value),this.chunk("%")}}},38887:function(ce,q,f){var U=f(97555).TYPE,B=U.Ident,V=U.Function,Z=U.Colon,T=U.RightParenthesis;ce.exports={name:"PseudoClassSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var P,D,C=this.scanner.tokenStart,v=null;return this.eat(Z),this.scanner.tokenType===V?(D=(P=this.consumeFunctionName()).toLowerCase(),this.pseudo.hasOwnProperty(D)?(this.scanner.skipSC(),v=this.pseudo[D].call(this),this.scanner.skipSC()):(v=this.createList()).push(this.Raw(this.scanner.tokenIndex,null,!1)),this.eat(T)):P=this.consume(B),{type:"PseudoClassSelector",loc:this.getLocation(C,this.scanner.tokenStart),name:P,children:v}},generate:function(C){this.chunk(":"),this.chunk(C.name),null!==C.children&&(this.chunk("("),this.children(C),this.chunk(")"))},walkContext:"function"}},78076:function(ce,q,f){var U=f(97555).TYPE,B=U.Ident,V=U.Function,Z=U.Colon,T=U.RightParenthesis;ce.exports={name:"PseudoElementSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var P,D,C=this.scanner.tokenStart,v=null;return this.eat(Z),this.eat(Z),this.scanner.tokenType===V?(D=(P=this.consumeFunctionName()).toLowerCase(),this.pseudo.hasOwnProperty(D)?(this.scanner.skipSC(),v=this.pseudo[D].call(this),this.scanner.skipSC()):(v=this.createList()).push(this.Raw(this.scanner.tokenIndex,null,!1)),this.eat(T)):P=this.consume(B),{type:"PseudoElementSelector",loc:this.getLocation(C,this.scanner.tokenStart),name:P,children:v}},generate:function(C){this.chunk("::"),this.chunk(C.name),null!==C.children&&(this.chunk("("),this.children(C),this.chunk(")"))},walkContext:"function"}},15482:function(ce,q,f){var U=f(97555).isDigit,B=f(97555).TYPE,V=B.Number,Z=B.Delim;function C(){this.scanner.skipWS();for(var v=this.consume(V),P=0;P<v.length;P++){var D=v.charCodeAt(P);!U(D)&&46!==D&&this.error("Unsigned number is expected",this.scanner.tokenStart-v.length+P)}return 0===Number(v)&&this.error("Zero number is not allowed",this.scanner.tokenStart-v.length),v}ce.exports={name:"Ratio",structure:{left:String,right:String},parse:function(){var M,P=this.scanner.tokenStart,D=C.call(this);return this.scanner.skipWS(),this.scanner.isDelim(47)||this.error("Solidus is expected"),this.eat(Z),M=C.call(this),{type:"Ratio",loc:this.getLocation(P,this.scanner.tokenStart),left:D,right:M}},generate:function(P){this.chunk(P.left),this.chunk("/"),this.chunk(P.right)}}},89604:function(ce,q,f){var B=f(97555).TYPE,V=B.WhiteSpace,Z=B.Semicolon,T=B.LeftCurlyBracket,I=B.Delim;function v(){return this.scanner.tokenIndex>0&&this.scanner.lookupType(-1)===V?this.scanner.tokenIndex>1?this.scanner.getTokenStart(this.scanner.tokenIndex-1):this.scanner.firstCharOffset:this.scanner.tokenStart}function P(){return 0}ce.exports={name:"Raw",structure:{value:String},parse:function(k,N,E){var S,x=this.scanner.getTokenStart(k);return this.scanner.skip(this.scanner.getRawLength(k,N||P)),S=E&&this.scanner.tokenStart>x?v.call(this):this.scanner.tokenStart,{type:"Raw",loc:this.getLocation(x,S),value:this.scanner.source.substring(x,S)}},generate:function(k){this.chunk(k.value)},mode:{default:P,leftCurlyBracket:function(g){return g===T?1:0},leftCurlyBracketOrSemicolon:function(g){return g===T||g===Z?1:0},exclamationMarkOrSemicolon:function(g,k,N){return g===I&&33===k.charCodeAt(N)||g===Z?1:0},semicolonIncluded:function(g){return g===Z?2:0}}}},56064:function(ce,q,f){var U=f(97555).TYPE,B=f(89604).mode,V=U.LeftCurlyBracket;function Z(I){return this.Raw(I,B.leftCurlyBracket,!0)}function T(){var I=this.SelectorList();return"Raw"!==I.type&&!1===this.scanner.eof&&this.scanner.tokenType!==V&&this.error(),I}ce.exports={name:"Rule",structure:{prelude:["SelectorList","Raw"],block:["Block"]},parse:function(){var P,D,C=this.scanner.tokenIndex,v=this.scanner.tokenStart;return P=this.parseRulePrelude?this.parseWithFallback(T,Z):Z.call(this,C),D=this.Block(!0),{type:"Rule",loc:this.getLocation(v,this.scanner.tokenStart),prelude:P,block:D}},generate:function(C){this.node(C.prelude),this.node(C.block)},walkContext:"rule"}},43042:function(ce){ce.exports={name:"Selector",structure:{children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]},parse:function(){var f=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(f)&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(f),children:f}},generate:function(f){this.children(f)}}},38444:function(ce,q,f){var B=f(97555).TYPE.Comma;ce.exports={name:"SelectorList",structure:{children:[["Selector","Raw"]]},parse:function(){for(var Z=this.createList();!this.scanner.eof&&(Z.push(this.Selector()),this.scanner.tokenType===B);)this.scanner.next();return{type:"SelectorList",loc:this.getLocationFromList(Z),children:Z}},generate:function(Z){this.children(Z,function(){this.chunk(",")})},walkContext:"selector"}},12565:function(ce,q,f){var U=f(97555).TYPE.String;ce.exports={name:"String",structure:{value:String},parse:function(){return{type:"String",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(U)}},generate:function(V){this.chunk(V.value)}}},91348:function(ce,q,f){var U=f(97555).TYPE,B=U.WhiteSpace,V=U.Comment,Z=U.AtKeyword,T=U.CDO,I=U.CDC;function v(P){return this.Raw(P,null,!1)}ce.exports={name:"StyleSheet",structure:{children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]},parse:function(){for(var A,D=this.scanner.tokenStart,M=this.createList();!this.scanner.eof;){switch(this.scanner.tokenType){case B:this.scanner.next();continue;case V:if(33!==this.scanner.source.charCodeAt(this.scanner.tokenStart+2)){this.scanner.next();continue}A=this.Comment();break;case T:A=this.CDO();break;case I:A=this.CDC();break;case Z:A=this.parseWithFallback(this.Atrule,v);break;default:A=this.parseWithFallback(this.Rule,v)}M.push(A)}return{type:"StyleSheet",loc:this.getLocation(D,this.scanner.tokenStart),children:M}},generate:function(D){this.children(D)},walkContext:"stylesheet"}},16983:function(ce,q,f){var B=f(97555).TYPE.Ident;function T(){this.scanner.tokenType!==B&&!1===this.scanner.isDelim(42)&&this.error("Identifier or asterisk is expected"),this.scanner.next()}ce.exports={name:"TypeSelector",structure:{name:String},parse:function(){var C=this.scanner.tokenStart;return this.scanner.isDelim(124)?(this.scanner.next(),T.call(this)):(T.call(this),this.scanner.isDelim(124)&&(this.scanner.next(),T.call(this))),{type:"TypeSelector",loc:this.getLocation(C,this.scanner.tokenStart),name:this.scanner.substrToCursor(C)}},generate:function(C){this.chunk(C.name)}}},95616:function(ce,q,f){var U=f(97555).isHexDigit,B=f(97555).cmpChar,V=f(97555).TYPE,Z=f(97555).NAME,T=V.Ident,I=V.Number,C=V.Dimension;function A(N,E){for(var x=this.scanner.tokenStart+N,S=0;x<this.scanner.tokenEnd;x++){var O=this.scanner.source.charCodeAt(x);if(45===O&&E&&0!==S)return 0===A.call(this,N+S+1,!1)&&this.error(),-1;U(O)||this.error(E&&0!==S?"HyphenMinus"+(S<6?" or hex digit":"")+" is expected":S<6?"Hex digit is expected":"Unexpected input",x),++S>6&&this.error("Too many hex digits",x)}return this.scanner.next(),S}function y(N){for(var E=0;this.scanner.isDelim(63);)++E>N&&this.error("Too many question marks"),this.scanner.next()}function g(N){this.scanner.source.charCodeAt(this.scanner.tokenStart)!==N&&this.error(Z[N]+" is expected")}function k(){var N=0;return this.scanner.isDelim(43)?(this.scanner.next(),this.scanner.tokenType===T?void((N=A.call(this,0,!0))>0&&y.call(this,6-N)):this.scanner.isDelim(63)?(this.scanner.next(),void y.call(this,5)):void this.error("Hex digit or question mark is expected")):this.scanner.tokenType===I?(g.call(this,43),N=A.call(this,1,!0),this.scanner.isDelim(63)?void y.call(this,6-N):this.scanner.tokenType===C||this.scanner.tokenType===I?(g.call(this,45),void A.call(this,1,!1)):void 0):this.scanner.tokenType===C?(g.call(this,43),void((N=A.call(this,1,!0))>0&&y.call(this,6-N))):void this.error()}ce.exports={name:"UnicodeRange",structure:{value:String},parse:function(){var E=this.scanner.tokenStart;return B(this.scanner.source,E,117)||this.error("U is expected"),B(this.scanner.source,E+1,43)||this.error("Plus sign is expected"),this.scanner.next(),k.call(this),{type:"UnicodeRange",loc:this.getLocation(E,this.scanner.tokenStart),value:this.scanner.substrToCursor(E)}},generate:function(E){this.chunk(E.value)}}},72796:function(ce,q,f){var U=f(97555).isWhiteSpace,B=f(97555).cmpStr,V=f(97555).TYPE,Z=V.Function,T=V.Url,I=V.RightParenthesis;ce.exports={name:"Url",structure:{value:["String","Raw"]},parse:function(){var P,v=this.scanner.tokenStart;switch(this.scanner.tokenType){case T:for(var D=v+4,M=this.scanner.tokenEnd-1;D<M&&U(this.scanner.source.charCodeAt(D));)D++;for(;D<M&&U(this.scanner.source.charCodeAt(M-1));)M--;P={type:"Raw",loc:this.getLocation(D,M),value:this.scanner.source.substring(D,M)},this.eat(T);break;case Z:B(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(Z),this.scanner.skipSC(),P=this.String(),this.scanner.skipSC(),this.eat(I);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(v,this.scanner.tokenStart),value:P}},generate:function(v){this.chunk("url"),this.chunk("("),this.node(v.value),this.chunk(")")}}},605:function(ce){ce.exports={name:"Value",structure:{children:[[]]},parse:function(){var f=this.scanner.tokenStart,U=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(f,this.scanner.tokenStart),children:U}},generate:function(f){this.children(f)}}},48360:function(ce,q,f){var U=f(97555).TYPE.WhiteSpace,B=Object.freeze({type:"WhiteSpace",loc:null,value:" "});ce.exports={name:"WhiteSpace",structure:{value:String},parse:function(){return this.eat(U),B},generate:function(Z){this.chunk(Z.value)}}},5678:function(ce,q,f){ce.exports={AnPlusB:f(34230),Atrule:f(24867),AtrulePrelude:f(19121),AttributeSelector:f(87446),Block:f(33570),Brackets:f(8916),CDC:f(91485),CDO:f(59315),ClassSelector:f(37016),Combinator:f(55136),Comment:f(6875),Declaration:f(7217),DeclarationList:f(69013),Dimension:f(68241),Function:f(60298),Hash:f(50759),Identifier:f(71392),IdSelector:f(37701),MediaFeature:f(94179),MediaQuery:f(32107),MediaQueryList:f(54459),Nth:f(61123),Number:f(63902),Operator:f(7249),Parentheses:f(34875),Percentage:f(62173),PseudoClassSelector:f(38887),PseudoElementSelector:f(78076),Ratio:f(15482),Raw:f(89604),Rule:f(56064),Selector:f(43042),SelectorList:f(38444),String:f(12565),StyleSheet:f(91348),TypeSelector:f(16983),UnicodeRange:f(95616),Url:f(72796),Value:f(605),WhiteSpace:f(48360)}},99281:function(ce){ce.exports={parse:function(){return this.createSingleNodeList(this.Nth(!1))}}},56849:function(ce){ce.exports={parse:function(){return this.createSingleNodeList(this.Nth(!0))}}},23317:function(ce){ce.exports={parse:function(){return this.createSingleNodeList(this.SelectorList())}}},41448:function(ce){ce.exports={parse:function(){return this.createSingleNodeList(this.Identifier())}}},12742:function(ce){ce.exports={parse:function(){return this.createSingleNodeList(this.SelectorList())}}},31947:function(ce,q,f){ce.exports={dir:f(41448),has:f(12742),lang:f(90367),matches:f(74468),not:f(13251),"nth-child":f(3198),"nth-last-child":f(78171),"nth-last-of-type":f(36963),"nth-of-type":f(91002),slotted:f(81307)}},90367:function(ce){ce.exports={parse:function(){return this.createSingleNodeList(this.Identifier())}}},74468:function(ce,q,f){ce.exports=f(23317)},13251:function(ce,q,f){ce.exports=f(23317)},3198:function(ce,q,f){ce.exports=f(56849)},78171:function(ce,q,f){ce.exports=f(56849)},36963:function(ce,q,f){ce.exports=f(99281)},91002:function(ce,q,f){ce.exports=f(99281)},81307:function(ce){ce.exports={parse:function(){return this.createSingleNodeList(this.Selector())}}},87714:function(ce,q,f){ce.exports={getNode:f(5495)}},5495:function(ce,q,f){var U=f(97555).cmpChar,B=f(97555).cmpStr,V=f(97555).TYPE,Z=V.Ident,T=V.String,I=V.Number,C=V.Function,v=V.Url,P=V.Hash,D=V.Dimension,M=V.Percentage,A=V.LeftParenthesis,y=V.LeftSquareBracket,g=V.Comma,k=V.Delim;ce.exports=function(K){switch(this.scanner.tokenType){case P:return this.Hash();case g:return K.space=null,K.ignoreWSAfter=!0,this.Operator();case A:return this.Parentheses(this.readSequence,K.recognizer);case y:return this.Brackets(this.readSequence,K.recognizer);case T:return this.String();case D:return this.Dimension();case M:return this.Percentage();case I:return this.Number();case C:return B(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,K.recognizer);case v:return this.Url();case Z:return U(this.scanner.source,this.scanner.tokenStart,117)&&U(this.scanner.source,this.scanner.tokenStart+1,43)?this.UnicodeRange():this.Identifier();case k:var W=this.scanner.source.charCodeAt(this.scanner.tokenStart);if(47===W||42===W||43===W||45===W)return this.Operator();35===W&&this.error("Hex or identifier is expected",this.scanner.tokenStart+1)}}},73241:function(ce,q,f){ce.exports={AtrulePrelude:f(87714),Selector:f(59604),Value:f(84761)}},59604:function(ce,q,f){var U=f(97555).TYPE,B=U.Delim,V=U.Ident,Z=U.Dimension,T=U.Percentage,I=U.Number,C=U.Hash,v=U.Colon,P=U.LeftSquareBracket;ce.exports={getNode:function(S){switch(this.scanner.tokenType){case P:return this.AttributeSelector();case C:return this.IdSelector();case v:return this.scanner.lookupType(1)===v?this.PseudoElementSelector():this.PseudoClassSelector();case V:return this.TypeSelector();case I:case T:return this.Percentage();case Z:46===this.scanner.source.charCodeAt(this.scanner.tokenStart)&&this.error("Identifier is expected",this.scanner.tokenStart+1);break;case B:switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case 43:case 62:case 126:return S.space=null,S.ignoreWSAfter=!0,this.Combinator();case 47:return this.Combinator();case 46:return this.ClassSelector();case 42:case 124:return this.TypeSelector();case 35:return this.IdSelector()}}}}},84761:function(ce,q,f){ce.exports={getNode:f(5495),expression:f(36728),var:f(82418)}},88312:function(ce){function f(x){return x>=48&&x<=57}function B(x){return x>=65&&x<=90}function V(x){return x>=97&&x<=122}function Z(x){return B(x)||V(x)}function T(x){return x>=128}function I(x){return Z(x)||T(x)||95===x}function v(x){return x>=0&&x<=8||11===x||x>=14&&x<=31||127===x}function P(x){return 10===x||13===x||12===x}function D(x){return P(x)||32===x||9===x}function M(x,S){return!(92!==x||P(S)||0===S)}var k=new Array(128);E.Eof=128,E.WhiteSpace=130,E.Digit=131,E.NameStart=132,E.NonPrintable=133;for(var N=0;N<k.length;N++)switch(!0){case D(N):k[N]=E.WhiteSpace;break;case f(N):k[N]=E.Digit;break;case I(N):k[N]=E.NameStart;break;case v(N):k[N]=E.NonPrintable;break;default:k[N]=N||E.Eof}function E(x){return x<128?k[x]:E.NameStart}ce.exports={isDigit:f,isHexDigit:function(x){return f(x)||x>=65&&x<=70||x>=97&&x<=102},isUppercaseLetter:B,isLowercaseLetter:V,isLetter:Z,isNonAscii:T,isNameStart:I,isName:function(x){return I(x)||f(x)||45===x},isNonPrintable:v,isNewline:P,isWhiteSpace:D,isValidEscape:M,isIdentifierStart:function(x,S,O){return 45===x?I(S)||45===S||M(S,O):!!I(x)||92===x&&M(x,S)},isNumberStart:function(x,S,O){return 43===x||45===x?f(S)?2:46===S&&f(O)?3:0:46===x?f(S)?2:0:f(x)?1:0},isBOM:function(x){return 65279===x||65534===x?1:0},charCodeCategory:E}},97077:function(ce){var q={EOF:0,Ident:1,Function:2,AtKeyword:3,Hash:4,String:5,BadString:6,Url:7,BadUrl:8,Delim:9,Number:10,Percentage:11,Dimension:12,WhiteSpace:13,CDO:14,CDC:15,Colon:16,Semicolon:17,Comma:18,LeftSquareBracket:19,RightSquareBracket:20,LeftParenthesis:21,RightParenthesis:22,LeftCurlyBracket:23,RightCurlyBracket:24,Comment:25},f=Object.keys(q).reduce(function(U,B){return U[q[B]]=B,U},{});ce.exports={TYPE:q,NAME:f}},97555:function(ce,q,f){var U=f(13146),B=f(62146),V=f(97077),Z=V.TYPE,T=f(88312),I=T.isNewline,C=T.isName,v=T.isValidEscape,P=T.isNumberStart,D=T.isIdentifierStart,M=T.charCodeCategory,A=T.isBOM,y=f(74586),g=y.cmpStr,k=y.getNewlineLength,N=y.findWhiteSpaceEnd,E=y.consumeEscaped,x=y.consumeName,S=y.consumeNumber,O=y.consumeBadUrlRemnants,L=16777215,j=24;function K(W,J){function oe(Ve){return Ve<ue?W.charCodeAt(Ve):0}function te(){return He=S(W,He),D(oe(He),oe(He+1),oe(He+2))?(De=Z.Dimension,void(He=x(W,He))):37===oe(He)?(De=Z.Percentage,void He++):void(De=Z.Number)}function se(){var Ve=He;return He=x(W,He),g(W,Ve,He,"url")&&40===oe(He)?34===oe(He=N(W,He+1))||39===oe(He)?(De=Z.Function,void(He=Ve+4)):void function(){for(De=Z.Url,He=N(W,He);He<W.length;He++){var Ve=W.charCodeAt(He);switch(M(Ve)){case 41:return void He++;case M.Eof:return;case M.WhiteSpace:return 41===oe(He=N(W,He))||He>=W.length?void(He<W.length&&He++):(He=O(W,He),void(De=Z.BadUrl));case 34:case 39:case 40:case M.NonPrintable:return He=O(W,He),void(De=Z.BadUrl);case 92:if(v(Ve,oe(He+1))){He=E(W,He)-1;break}return He=O(W,He),void(De=Z.BadUrl)}}}():40===oe(He)?(De=Z.Function,void He++):void(De=Z.Ident)}function le(Ve){for(Ve||(Ve=oe(He++)),De=Z.String;He<W.length;He++){var ct=W.charCodeAt(He);switch(M(ct)){case Ve:return void He++;case M.Eof:return;case M.WhiteSpace:if(I(ct))return He+=k(W,He,ct),void(De=Z.BadString);break;case 92:if(He===W.length-1)break;var Je=oe(He+1);I(Je)?He+=k(W,He+1,Je):v(ct,Je)&&(He=E(W,He)-1)}}}J||(J=new U);for(var ue=(W=String(W||"")).length,ae=B(J.offsetAndType,ue+1),Me=B(J.balance,ue+1),ye=0,ot=A(oe(0)),He=ot,_t=0,yt=0,Bt=0;He<ue;){var Se=W.charCodeAt(He),De=0;switch(Me[ye]=ue,M(Se)){case M.WhiteSpace:De=Z.WhiteSpace,He=N(W,He+1);break;case 34:le();break;case 35:C(oe(He+1))||v(oe(He+1),oe(He+2))?(De=Z.Hash,He=x(W,He+1)):(De=Z.Delim,He++);break;case 39:le();break;case 40:De=Z.LeftParenthesis,He++;break;case 41:De=Z.RightParenthesis,He++;break;case 43:P(Se,oe(He+1),oe(He+2))?te():(De=Z.Delim,He++);break;case 44:De=Z.Comma,He++;break;case 45:P(Se,oe(He+1),oe(He+2))?te():45===oe(He+1)&&62===oe(He+2)?(De=Z.CDC,He+=3):D(Se,oe(He+1),oe(He+2))?se():(De=Z.Delim,He++);break;case 46:P(Se,oe(He+1),oe(He+2))?te():(De=Z.Delim,He++);break;case 47:42===oe(He+1)?(De=Z.Comment,1===(He=W.indexOf("*/",He+2)+2)&&(He=W.length)):(De=Z.Delim,He++);break;case 58:De=Z.Colon,He++;break;case 59:De=Z.Semicolon,He++;break;case 60:33===oe(He+1)&&45===oe(He+2)&&45===oe(He+3)?(De=Z.CDO,He+=4):(De=Z.Delim,He++);break;case 64:D(oe(He+1),oe(He+2),oe(He+3))?(De=Z.AtKeyword,He=x(W,He+1)):(De=Z.Delim,He++);break;case 91:De=Z.LeftSquareBracket,He++;break;case 92:v(Se,oe(He+1))?se():(De=Z.Delim,He++);break;case 93:De=Z.RightSquareBracket,He++;break;case 123:De=Z.LeftCurlyBracket,He++;break;case 125:De=Z.RightCurlyBracket,He++;break;case M.Digit:te();break;case M.NameStart:se();break;case M.Eof:break;default:De=Z.Delim,He++}switch(De){case _t:for(_t=(yt=Me[Bt=yt&L])>>j,Me[ye]=Bt,Me[Bt++]=ye;Bt<ye;Bt++)Me[Bt]===ue&&(Me[Bt]=ye);break;case Z.LeftParenthesis:case Z.Function:Me[ye]=yt,yt=(_t=Z.RightParenthesis)<<j|ye;break;case Z.LeftSquareBracket:Me[ye]=yt,yt=(_t=Z.RightSquareBracket)<<j|ye;break;case Z.LeftCurlyBracket:Me[ye]=yt,yt=(_t=Z.RightCurlyBracket)<<j|ye}ae[ye++]=De<<j|He}for(ae[ye]=Z.EOF<<j|He,Me[ye]=ue,Me[ue]=ue;0!==yt;)yt=Me[Bt=yt&L],Me[Bt]=ue;return J.source=W,J.firstCharOffset=ot,J.offsetAndType=ae,J.tokenCount=ye,J.balance=Me,J.reset(),J.next(),J}Object.keys(V).forEach(function(W){K[W]=V[W]}),Object.keys(T).forEach(function(W){K[W]=T[W]}),Object.keys(y).forEach(function(W){K[W]=y[W]}),ce.exports=K},74586:function(ce,q,f){var U=f(88312),B=U.isDigit,V=U.isHexDigit,Z=U.isUppercaseLetter,T=U.isName,I=U.isWhiteSpace,C=U.isValidEscape;function v(S,O){return O<S.length?S.charCodeAt(O):0}function P(S,O,L){return 13===L&&10===v(S,O+1)?2:1}function D(S,O,L){var j=S.charCodeAt(O);return Z(j)&&(j|=32),j===L}function g(S,O){for(;O<S.length&&B(S.charCodeAt(O));O++);return O}function k(S,O){if(V(v(S,(O+=2)-1))){for(var L=Math.min(S.length,O+5);O<L&&V(v(S,O));O++);var j=v(S,O);I(j)&&(O+=P(S,O,j))}return O}ce.exports={consumeEscaped:k,consumeName:function(S,O){for(;O<S.length;O++){var L=S.charCodeAt(O);if(!T(L)){if(C(L,v(S,O+1))){O=k(S,O)-1;continue}break}}return O},consumeNumber:function(S,O){var L=S.charCodeAt(O);if((43===L||45===L)&&(L=S.charCodeAt(O+=1)),B(L)&&(O=g(S,O+1),L=S.charCodeAt(O)),46===L&&B(S.charCodeAt(O+1))&&(L=S.charCodeAt(O+=2),O=g(S,O)),D(S,O,101)){var j=0;(45===(L=S.charCodeAt(O+1))||43===L)&&(j=1,L=S.charCodeAt(O+2)),B(L)&&(O=g(S,O+1+j+1))}return O},consumeBadUrlRemnants:function(S,O){for(;O<S.length;O++){var L=S.charCodeAt(O);if(41===L){O++;break}C(L,v(S,O+1))&&(O=k(S,O))}return O},cmpChar:D,cmpStr:function(S,O,L,j){if(L-O!==j.length||O<0||L>S.length)return!1;for(var K=O;K<L;K++){var W=S.charCodeAt(K),J=j.charCodeAt(K-O);if(Z(W)&&(W|=32),W!==J)return!1}return!0},getNewlineLength:P,findWhiteSpaceStart:function(S,O){for(;O>=0&&I(S.charCodeAt(O));O--);return O+1},findWhiteSpaceEnd:function(S,O){for(;O<S.length&&I(S.charCodeAt(O));O++);return O}}},30714:function(ce,q,f){var U=f(63335);ce.exports=function B(V){var Z={};for(var T in V){var I=V[T];I&&(Array.isArray(I)||I instanceof U?I=I.map(B):I.constructor===Object&&(I=B(I))),Z[T]=I}return Z}},92455:function(ce){ce.exports=function(f,U){var B=Object.create(SyntaxError.prototype),V=new Error;return B.name=f,B.message=U,Object.defineProperty(B,"stack",{get:function(){return(V.stack||"").replace(/^(.+\n){1,3}/,f+": "+U+"\n")}}),B}},50643:function(ce){var q=Object.prototype.hasOwnProperty,f=Object.create(null),U=Object.create(null);function V(C,v){return C.length-(v=v||0)>=2&&45===C.charCodeAt(v)&&45===C.charCodeAt(v+1)}function Z(C,v){if(C.length-(v=v||0)>=3&&45===C.charCodeAt(v)&&45!==C.charCodeAt(v+1)){var P=C.indexOf("-",v+2);if(-1!==P)return C.substring(v,P+1)}return""}ce.exports={keyword:function(C){if(q.call(f,C))return f[C];var v=C.toLowerCase();if(q.call(f,v))return f[C]=f[v];var P=V(v,0),D=P?"":Z(v,0);return f[C]=Object.freeze({basename:v.substr(D.length),name:v,vendor:D,prefix:D,custom:P})},property:function(C){if(q.call(U,C))return U[C];var v=C,P=C[0];"/"===P?P="/"===C[1]?"//":"/":"_"!==P&&"*"!==P&&"$"!==P&&"#"!==P&&"+"!==P&&"&"!==P&&(P="");var D=V(v,P.length);if(!D&&(v=v.toLowerCase(),q.call(U,v)))return U[C]=U[v];var M=D?"":Z(v,P.length),A=v.substr(0,P.length+M.length);return U[C]=Object.freeze({basename:v.substr(A.length),name:v.substr(P.length),hack:P,vendor:M,prefix:A,custom:D})},isCustomProperty:V,vendorPrefix:Z}},24523:function(ce){var q=Object.prototype.hasOwnProperty,f=function(){};function U(C){return"function"==typeof C?C:f}function B(C,v){return function(P,D,M){P.type===v&&C.call(this,P,D,M)}}function V(C,v){var P=v.structure,D=[];for(var M in P)if(!1!==q.call(P,M)){var A=P[M],y={name:M,type:!1,nullable:!1};Array.isArray(P[M])||(A=[P[M]]);for(var g=0;g<A.length;g++){var k=A[g];null===k?y.nullable=!0:"string"==typeof k?y.type="node":Array.isArray(k)&&(y.type="list")}y.type&&D.push(y)}return D.length?{context:v.walkContext,fields:D}:null}function T(C,v){var P=C.fields.slice(),D=C.context,M="string"==typeof D;return v&&P.reverse(),function(A,y,g,k){var N;M&&(N=y[D],y[D]=A);for(var E=0;E<P.length;E++){var x=P[E],S=A[x.name];if(!x.nullable||S)if("list"===x.type){if(v?S.reduceRight(k,!1):S.reduce(k,!1))return!0}else if(g(S))return!0}M&&(y[D]=N)}}function I(C){return{Atrule:{StyleSheet:C.StyleSheet,Atrule:C.Atrule,Rule:C.Rule,Block:C.Block},Rule:{StyleSheet:C.StyleSheet,Atrule:C.Atrule,Rule:C.Rule,Block:C.Block},Declaration:{StyleSheet:C.StyleSheet,Atrule:C.Atrule,Rule:C.Rule,Block:C.Block,DeclarationList:C.DeclarationList}}}ce.exports=function(v){var P=function(C){var v={};for(var P in C.node)if(q.call(C.node,P)){var D=C.node[P];if(!D.structure)throw new Error("Missed `structure` field in `"+P+"` node type definition");v[P]=V(0,D)}return v}(v),D={},M={},A=Symbol("break-walk"),y=Symbol("skip-node");for(var g in P)q.call(P,g)&&null!==P[g]&&(D[g]=T(P[g],!1),M[g]=T(P[g],!0));var k=I(D),N=I(M),E=function(S,O){function L(te,se,le){var de=K.call(oe,te,se,le);return de===A||de!==y&&!!(J.hasOwnProperty(te.type)&&J[te.type](te,oe,L,j)||W.call(oe,te,se,le)===A)}var j=function(se,le,de,ue){return se||L(le,de,ue)},K=f,W=f,J=D,oe={break:A,skip:y,root:S,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if("function"==typeof O)K=O;else if(O&&(K=U(O.enter),W=U(O.leave),O.reverse&&(J=M),O.visit)){if(k.hasOwnProperty(O.visit))J=O.reverse?N[O.visit]:k[O.visit];else if(!P.hasOwnProperty(O.visit))throw new Error("Bad value `"+O.visit+"` for `visit` option (should be: "+Object.keys(P).join(", ")+")");K=B(K,O.visit),W=B(W,O.visit)}if(K===f&&W===f)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");L(S)};return E.break=A,E.skip=y,E.find=function(x,S){var O=null;return E(x,function(L,j,K){if(S.call(this,L,j,K))return O=L,A}),O},E.findLast=function(x,S){var O=null;return E(x,{reverse:!0,enter:function(j,K,W){if(S.call(this,j,K,W))return O=j,A}}),O},E.findAll=function(x,S){var O=[];return E(x,function(L,j,K){S.call(this,L,j,K)&&O.push(L)}),O},E}},33931:function(ce,q,f){var U;!function(B,V,Z){if(B){for(var P,T={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"},I={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},C={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},v={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},D=1;D<20;++D)T[111+D]="f"+D;for(D=0;D<=9;++D)T[D+96]=D.toString();K.prototype.bind=function(W,J,oe){return this._bindMultiple.call(this,W=W instanceof Array?W:[W],J,oe),this},K.prototype.unbind=function(W,J){return this.bind.call(this,W,function(){},J)},K.prototype.trigger=function(W,J){return this._directMap[W+":"+J]&&this._directMap[W+":"+J]({},W),this},K.prototype.reset=function(){var W=this;return W._callbacks={},W._directMap={},W},K.prototype.stopCallback=function(W,J){if((" "+J.className+" ").indexOf(" mousetrap ")>-1||j(J,this.target))return!1;if("composedPath"in W&&"function"==typeof W.composedPath){var te=W.composedPath()[0];te!==W.target&&(J=te)}return"INPUT"==J.tagName||"SELECT"==J.tagName||"TEXTAREA"==J.tagName||J.isContentEditable},K.prototype.handleKey=function(){var W=this;return W._handleKey.apply(W,arguments)},K.addKeycodes=function(W){for(var J in W)W.hasOwnProperty(J)&&(T[J]=W[J]);P=null},K.init=function(){var W=K(V);for(var J in W)"_"!==J.charAt(0)&&(K[J]=function(oe){return function(){return W[oe].apply(W,arguments)}}(J))},K.init(),B.Mousetrap=K,ce.exports&&(ce.exports=K),void 0!==(U=function(){return K}.call(q,f,q,ce))&&(ce.exports=U)}function M(W,J,oe){W.addEventListener?W.addEventListener(J,oe,!1):W.attachEvent("on"+J,oe)}function A(W){if("keypress"==W.type){var J=String.fromCharCode(W.which);return W.shiftKey||(J=J.toLowerCase()),J}return T[W.which]?T[W.which]:I[W.which]?I[W.which]:String.fromCharCode(W.which).toLowerCase()}function y(W,J){return W.sort().join(",")===J.sort().join(",")}function E(W){return"shift"==W||"ctrl"==W||"alt"==W||"meta"==W}function S(W,J,oe){return oe||(oe=function(){if(!P)for(var W in P={},T)W>95&&W<112||T.hasOwnProperty(W)&&(P[T[W]]=W);return P}()[W]?"keydown":"keypress"),"keypress"==oe&&J.length&&(oe="keydown"),oe}function L(W,J){var oe,te,se,le=[];for(oe=function(W){return"+"===W?["+"]:(W=W.replace(/\+{2}/g,"+plus")).split("+")}(W),se=0;se<oe.length;++se)v[te=oe[se]]&&(te=v[te]),J&&"keypress"!=J&&C[te]&&(te=C[te],le.push("shift")),E(te)&&le.push(te);return{key:te,modifiers:le,action:J=S(te,le,J)}}function j(W,J){return null!==W&&W!==V&&(W===J||j(W.parentNode,J))}function K(W){var J=this;if(W=W||V,!(J instanceof K))return new K(W);J.target=W,J._callbacks={},J._directMap={};var te,oe={},se=!1,le=!1,de=!1;function ue(yt){yt=yt||{};var Se,Bt=!1;for(Se in oe)yt[Se]?Bt=!0:oe[Se]=0;Bt||(de=!1)}function ae(yt,Bt,Se,De,Ve,ct){var Je,Ut,Et=[],vt=Se.type;if(!J._callbacks[yt])return[];for("keyup"==vt&&E(yt)&&(Bt=[yt]),Je=0;Je<J._callbacks[yt].length;++Je)Ut=J._callbacks[yt][Je],!De&&Ut.seq&&oe[Ut.seq]!=Ut.level||vt!=Ut.action||("keypress"!=vt||Se.metaKey||Se.ctrlKey)&&!y(Bt,Ut.modifiers)||((!De&&Ut.combo==Ve||De&&Ut.seq==De&&Ut.level==ct)&&J._callbacks[yt].splice(Je,1),Et.push(Ut));return Et}function Me(yt,Bt,Se,De){J.stopCallback(Bt,Bt.target||Bt.srcElement,Se,De)||!1===yt(Bt,Se)&&(function(W){W.preventDefault?W.preventDefault():W.returnValue=!1}(Bt),function(W){W.stopPropagation?W.stopPropagation():W.cancelBubble=!0}(Bt))}function ye(yt){"number"!=typeof yt.which&&(yt.which=yt.keyCode);var Bt=A(yt);if(Bt){if("keyup"==yt.type&&se===Bt)return void(se=!1);J.handleKey(Bt,function(W){var J=[];return W.shiftKey&&J.push("shift"),W.altKey&&J.push("alt"),W.ctrlKey&&J.push("ctrl"),W.metaKey&&J.push("meta"),J}(yt),yt)}}function _t(yt,Bt,Se,De,Ve){J._directMap[yt+":"+Se]=Bt;var Je,ct=(yt=yt.replace(/\s+/g," ")).split(" ");ct.length>1?function(yt,Bt,Se,De){function Ve(vt){return function(){de=vt,++oe[yt],clearTimeout(te),te=setTimeout(ue,1e3)}}function ct(vt){Me(Se,vt,yt),"keyup"!==De&&(se=A(vt)),setTimeout(ue,10)}oe[yt]=0;for(var Je=0;Je<Bt.length;++Je){var Et=Je+1===Bt.length?ct:Ve(De||L(Bt[Je+1]).action);_t(Bt[Je],Et,De,yt,Je)}}(yt,ct,Bt,Se):(Je=L(yt,Se),J._callbacks[Je.key]=J._callbacks[Je.key]||[],ae(Je.key,Je.modifiers,{type:Je.action},De,yt,Ve),J._callbacks[Je.key][De?"unshift":"push"]({callback:Bt,modifiers:Je.modifiers,action:Je.action,seq:De,level:Ve,combo:yt}))}J._handleKey=function(yt,Bt,Se){var Ve,De=ae(yt,Bt,Se),ct={},Je=0,Ut=!1;for(Ve=0;Ve<De.length;++Ve)De[Ve].seq&&(Je=Math.max(Je,De[Ve].level));for(Ve=0;Ve<De.length;++Ve)if(De[Ve].seq){if(De[Ve].level!=Je)continue;Ut=!0,ct[De[Ve].seq]=1,Me(De[Ve].callback,Se,De[Ve].combo,De[Ve].seq)}else Ut||Me(De[Ve].callback,Se,De[Ve].combo);var Et="keypress"==Se.type&&le;Se.type==de&&!E(yt)&&!Et&&ue(ct),le=Ut&&"keydown"==Se.type},J._bindMultiple=function(yt,Bt,Se){for(var De=0;De<yt.length;++De)_t(yt[De],Bt,Se)},M(W,"keypress",ye),M(W,"keydown",ye),M(W,"keyup",ye)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},55590:function(ce){var q=function(f){"use strict";var V,U=Object.prototype,B=U.hasOwnProperty,Z="function"==typeof Symbol?Symbol:{},T=Z.iterator||"@@iterator",I=Z.asyncIterator||"@@asyncIterator",C=Z.toStringTag||"@@toStringTag";function v(ae,Me,ye){return Object.defineProperty(ae,Me,{value:ye,enumerable:!0,configurable:!0,writable:!0}),ae[Me]}try{v({},"")}catch(ae){v=function(ye,ot,He){return ye[ot]=He}}function P(ae,Me,ye,ot){var _t=Object.create((Me&&Me.prototype instanceof N?Me:N).prototype),yt=new le(ot||[]);return _t._invoke=function(ae,Me,ye){var ot=M;return function(_t,yt){if(ot===y)throw new Error("Generator is already running");if(ot===g){if("throw"===_t)throw yt;return ue()}for(ye.method=_t,ye.arg=yt;;){var Bt=ye.delegate;if(Bt){var Se=oe(Bt,ye);if(Se){if(Se===k)continue;return Se}}if("next"===ye.method)ye.sent=ye._sent=ye.arg;else if("throw"===ye.method){if(ot===M)throw ot=g,ye.arg;ye.dispatchException(ye.arg)}else"return"===ye.method&&ye.abrupt("return",ye.arg);ot=y;var De=D(ae,Me,ye);if("normal"===De.type){if(ot=ye.done?g:A,De.arg===k)continue;return{value:De.arg,done:ye.done}}"throw"===De.type&&(ot=g,ye.method="throw",ye.arg=De.arg)}}}(ae,ye,yt),_t}function D(ae,Me,ye){try{return{type:"normal",arg:ae.call(Me,ye)}}catch(ot){return{type:"throw",arg:ot}}}f.wrap=P;var M="suspendedStart",A="suspendedYield",y="executing",g="completed",k={};function N(){}function E(){}function x(){}var S={};S[T]=function(){return this};var O=Object.getPrototypeOf,L=O&&O(O(de([])));L&&L!==U&&B.call(L,T)&&(S=L);var j=x.prototype=N.prototype=Object.create(S);function K(ae){["next","throw","return"].forEach(function(Me){v(ae,Me,function(ye){return this._invoke(Me,ye)})})}function W(ae,Me){function ye(_t,yt,Bt,Se){var De=D(ae[_t],ae,yt);if("throw"!==De.type){var Ve=De.arg,ct=Ve.value;return ct&&"object"==typeof ct&&B.call(ct,"__await")?Me.resolve(ct.__await).then(function(Je){ye("next",Je,Bt,Se)},function(Je){ye("throw",Je,Bt,Se)}):Me.resolve(ct).then(function(Je){Ve.value=Je,Bt(Ve)},function(Je){return ye("throw",Je,Bt,Se)})}Se(De.arg)}var ot;this._invoke=function(_t,yt){function Bt(){return new Me(function(Se,De){ye(_t,yt,Se,De)})}return ot=ot?ot.then(Bt,Bt):Bt()}}function oe(ae,Me){var ye=ae.iterator[Me.method];if(ye===V){if(Me.delegate=null,"throw"===Me.method){if(ae.iterator.return&&(Me.method="return",Me.arg=V,oe(ae,Me),"throw"===Me.method))return k;Me.method="throw",Me.arg=new TypeError("The iterator does not provide a 'throw' method")}return k}var ot=D(ye,ae.iterator,Me.arg);if("throw"===ot.type)return Me.method="throw",Me.arg=ot.arg,Me.delegate=null,k;var He=ot.arg;return He?He.done?(Me[ae.resultName]=He.value,Me.next=ae.nextLoc,"return"!==Me.method&&(Me.method="next",Me.arg=V),Me.delegate=null,k):He:(Me.method="throw",Me.arg=new TypeError("iterator result is not an object"),Me.delegate=null,k)}function te(ae){var Me={tryLoc:ae[0]};1 in ae&&(Me.catchLoc=ae[1]),2 in ae&&(Me.finallyLoc=ae[2],Me.afterLoc=ae[3]),this.tryEntries.push(Me)}function se(ae){var Me=ae.completion||{};Me.type="normal",delete Me.arg,ae.completion=Me}function le(ae){this.tryEntries=[{tryLoc:"root"}],ae.forEach(te,this),this.reset(!0)}function de(ae){if(ae){var Me=ae[T];if(Me)return Me.call(ae);if("function"==typeof ae.next)return ae;if(!isNaN(ae.length)){var ye=-1,ot=function He(){for(;++ye<ae.length;)if(B.call(ae,ye))return He.value=ae[ye],He.done=!1,He;return He.value=V,He.done=!0,He};return ot.next=ot}}return{next:ue}}function ue(){return{value:V,done:!0}}return E.prototype=j.constructor=x,x.constructor=E,E.displayName=v(x,C,"GeneratorFunction"),f.isGeneratorFunction=function(ae){var Me="function"==typeof ae&&ae.constructor;return!!Me&&(Me===E||"GeneratorFunction"===(Me.displayName||Me.name))},f.mark=function(ae){return Object.setPrototypeOf?Object.setPrototypeOf(ae,x):(ae.__proto__=x,v(ae,C,"GeneratorFunction")),ae.prototype=Object.create(j),ae},f.awrap=function(ae){return{__await:ae}},K(W.prototype),W.prototype[I]=function(){return this},f.AsyncIterator=W,f.async=function(ae,Me,ye,ot,He){void 0===He&&(He=Promise);var _t=new W(P(ae,Me,ye,ot),He);return f.isGeneratorFunction(Me)?_t:_t.next().then(function(yt){return yt.done?yt.value:_t.next()})},K(j),v(j,C,"Generator"),j[T]=function(){return this},j.toString=function(){return"[object Generator]"},f.keys=function(ae){var Me=[];for(var ye in ae)Me.push(ye);return Me.reverse(),function ot(){for(;Me.length;){var He=Me.pop();if(He in ae)return ot.value=He,ot.done=!1,ot}return ot.done=!0,ot}},f.values=de,le.prototype={constructor:le,reset:function(Me){if(this.prev=0,this.next=0,this.sent=this._sent=V,this.done=!1,this.delegate=null,this.method="next",this.arg=V,this.tryEntries.forEach(se),!Me)for(var ye in this)"t"===ye.charAt(0)&&B.call(this,ye)&&!isNaN(+ye.slice(1))&&(this[ye]=V)},stop:function(){this.done=!0;var ye=this.tryEntries[0].completion;if("throw"===ye.type)throw ye.arg;return this.rval},dispatchException:function(Me){if(this.done)throw Me;var ye=this;function ot(De,Ve){return yt.type="throw",yt.arg=Me,ye.next=De,Ve&&(ye.method="next",ye.arg=V),!!Ve}for(var He=this.tryEntries.length-1;He>=0;--He){var _t=this.tryEntries[He],yt=_t.completion;if("root"===_t.tryLoc)return ot("end");if(_t.tryLoc<=this.prev){var Bt=B.call(_t,"catchLoc"),Se=B.call(_t,"finallyLoc");if(Bt&&Se){if(this.prev<_t.catchLoc)return ot(_t.catchLoc,!0);if(this.prev<_t.finallyLoc)return ot(_t.finallyLoc)}else if(Bt){if(this.prev<_t.catchLoc)return ot(_t.catchLoc,!0)}else{if(!Se)throw new Error("try statement without catch or finally");if(this.prev<_t.finallyLoc)return ot(_t.finallyLoc)}}}},abrupt:function(Me,ye){for(var ot=this.tryEntries.length-1;ot>=0;--ot){var He=this.tryEntries[ot];if(He.tryLoc<=this.prev&&B.call(He,"finallyLoc")&&this.prev<He.finallyLoc){var _t=He;break}}_t&&("break"===Me||"continue"===Me)&&_t.tryLoc<=ye&&ye<=_t.finallyLoc&&(_t=null);var yt=_t?_t.completion:{};return yt.type=Me,yt.arg=ye,_t?(this.method="next",this.next=_t.finallyLoc,k):this.complete(yt)},complete:function(Me,ye){if("throw"===Me.type)throw Me.arg;return"break"===Me.type||"continue"===Me.type?this.next=Me.arg:"return"===Me.type?(this.rval=this.arg=Me.arg,this.method="return",this.next="end"):"normal"===Me.type&&ye&&(this.next=ye),k},finish:function(Me){for(var ye=this.tryEntries.length-1;ye>=0;--ye){var ot=this.tryEntries[ye];if(ot.finallyLoc===Me)return this.complete(ot.completion,ot.afterLoc),se(ot),k}},catch:function(Me){for(var ye=this.tryEntries.length-1;ye>=0;--ye){var ot=this.tryEntries[ye];if(ot.tryLoc===Me){var He=ot.completion;if("throw"===He.type){var _t=He.arg;se(ot)}return _t}}throw new Error("illegal catch attempt")},delegateYield:function(Me,ye,ot){return this.delegate={iterator:de(Me),resultName:ye,nextLoc:ot},"next"===this.method&&(this.arg=V),k}},f}(ce.exports);try{regeneratorRuntime=q}catch(f){Function("r","regeneratorRuntime = r")(q)}},56938:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);q.Observable=U.Observable,q.Subject=U.Subject;var B=f(37294);q.AnonymousSubject=B.AnonymousSubject;var V=f(37294);q.config=V.config,f(26598),f(87663),f(95351),f(66981),f(31881),f(36800),f(52413),f(86376),f(41029),f(30918),f(79817),f(29023),f(48668),f(61975),f(92442),f(42697),f(63990),f(86230),f(61201),f(32171),f(40439),f(69079),f(9222),f(52357),f(36294),f(12782),f(94618),f(93231),f(96547),f(62374),f(35595),f(57540),f(97010),f(56518),f(59982),f(70198),f(3943),f(95297),f(53842),f(46085),f(46753),f(12452),f(51341),f(41575),f(42657),f(17109),f(89716),f(71255),f(75197),f(70992),f(3106),f(54506),f(16161),f(11405),f(37132),f(45396),f(41154),f(96986),f(67259),f(89015),f(57301),f(4993),f(77490),f(4533),f(42215),f(95564),f(61431),f(68663),f(63566),f(62729),f(48483),f(32979),f(78104),f(64259),f(30336),f(46315),f(60771),f(92700),f(43545),f(89242),f(70177),f(43800),f(33434),f(37179),f(97810),f(27430),f(44633),f(37953),f(58435),f(14234),f(98741),f(43263),f(57180),f(87700),f(34860),f(67751),f(63733),f(38596),f(20038),f(58186),f(77538),f(33866),f(1676),f(3018),f(58003),f(77394),f(92947),f(27971),f(33934),f(43126),f(6320),f(96813),f(20425),f(70140),f(32035),f(49421),f(9693),f(87276),f(63934),f(17360),f(37222),f(55214),f(22854),f(65259),f(84715),f(27798),f(98441),f(56238),f(42145);var Z=f(94117);q.Subscription=Z.Subscription,q.ReplaySubject=Z.ReplaySubject,q.BehaviorSubject=Z.BehaviorSubject,q.Notification=Z.Notification,q.EmptyError=Z.EmptyError,q.ArgumentOutOfRangeError=Z.ArgumentOutOfRangeError,q.ObjectUnsubscribedError=Z.ObjectUnsubscribedError,q.UnsubscriptionError=Z.UnsubscriptionError,q.pipe=Z.pipe;var T=f(53520);q.TestScheduler=T.TestScheduler;var I=f(94117);q.Subscriber=I.Subscriber,q.AsyncSubject=I.AsyncSubject,q.ConnectableObservable=I.ConnectableObservable,q.TimeoutError=I.TimeoutError,q.VirtualTimeScheduler=I.VirtualTimeScheduler;var C=f(55905);q.AjaxResponse=C.AjaxResponse,q.AjaxError=C.AjaxError,q.AjaxTimeoutError=C.AjaxTimeoutError;var v=f(94117),P=f(37294),D=f(37294);q.TimeInterval=D.TimeInterval,q.Timestamp=D.Timestamp;var M=f(73033);q.operators=M,q.Scheduler={asap:v.asapScheduler,queue:v.queueScheduler,animationFrame:v.animationFrameScheduler,async:v.asyncScheduler},q.Symbol={rxSubscriber:P.rxSubscriber,observable:P.observable,iterator:P.iterator}},26598:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.bindCallback=U.bindCallback},87663:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.bindNodeCallback=U.bindNodeCallback},95351:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.combineLatest=U.combineLatest},66981:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.concat=U.concat},31881:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.defer=U.defer},12782:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(55905);U.Observable.ajax=B.ajax},94618:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(4194);U.Observable.webSocket=B.webSocket},36800:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.empty=U.empty},52413:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.forkJoin=U.forkJoin},86376:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.from=U.from},41029:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.fromEvent=U.fromEvent},30918:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.fromEventPattern=U.fromEventPattern},79817:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.fromPromise=U.from},29023:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.generate=U.generate},48668:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.if=U.iif},61975:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.interval=U.interval},92442:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.merge=U.merge},63990:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);function B(){return U.NEVER}q.staticNever=B,U.Observable.never=B},86230:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.of=U.of},61201:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.onErrorResumeNext=U.onErrorResumeNext},32171:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.pairs=U.pairs},42697:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.race=U.race},40439:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.range=U.range},9222:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.throw=U.throwError,U.Observable.throwError=U.throwError},52357:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.timer=U.timer},69079:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.using=U.using},36294:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.zip=U.zip},77490:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(20325);U.Observable.prototype.audit=B.audit},4533:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(55702);U.Observable.prototype.auditTime=B.auditTime},93231:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(19931);U.Observable.prototype.buffer=B.buffer},96547:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(38173);U.Observable.prototype.bufferCount=B.bufferCount},62374:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(93690);U.Observable.prototype.bufferTime=B.bufferTime},35595:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(79681);U.Observable.prototype.bufferToggle=B.bufferToggle},57540:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(75311);U.Observable.prototype.bufferWhen=B.bufferWhen},97010:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(26306);U.Observable.prototype.catch=B._catch,U.Observable.prototype._catch=B._catch},56518:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(15869);U.Observable.prototype.combineAll=B.combineAll},59982:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(23265);U.Observable.prototype.combineLatest=B.combineLatest},70198:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(31179);U.Observable.prototype.concat=B.concat},3943:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(16148);U.Observable.prototype.concatAll=B.concatAll},95297:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(28552);U.Observable.prototype.concatMap=B.concatMap},53842:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(91798);U.Observable.prototype.concatMapTo=B.concatMapTo},46085:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(93653);U.Observable.prototype.count=B.count},12452:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(36477);U.Observable.prototype.debounce=B.debounce},51341:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(61529);U.Observable.prototype.debounceTime=B.debounceTime},41575:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(64502);U.Observable.prototype.defaultIfEmpty=B.defaultIfEmpty},42657:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(33674);U.Observable.prototype.delay=B.delay},17109:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(49477);U.Observable.prototype.delayWhen=B.delayWhen},46753:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(21941);U.Observable.prototype.dematerialize=B.dematerialize},89716:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(18053);U.Observable.prototype.distinct=B.distinct},71255:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(13598);U.Observable.prototype.distinctUntilChanged=B.distinctUntilChanged},75197:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(94936);U.Observable.prototype.distinctUntilKeyChanged=B.distinctUntilKeyChanged},70992:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(21790);U.Observable.prototype.do=B._do,U.Observable.prototype._do=B._do},11405:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(2538);U.Observable.prototype.elementAt=B.elementAt},61431:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(58136);U.Observable.prototype.every=B.every},3106:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(26734);U.Observable.prototype.exhaust=B.exhaust},54506:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(2084);U.Observable.prototype.exhaustMap=B.exhaustMap},16161:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(2945);U.Observable.prototype.expand=B.expand},37132:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(3704);U.Observable.prototype.filter=B.filter},45396:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(58870);U.Observable.prototype.finally=B._finally,U.Observable.prototype._finally=B._finally},41154:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(16201);U.Observable.prototype.find=B.find},96986:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(95148);U.Observable.prototype.findIndex=B.findIndex},67259:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(96050);U.Observable.prototype.first=B.first},89015:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(16309);U.Observable.prototype.groupBy=B.groupBy},57301:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(3640);U.Observable.prototype.ignoreElements=B.ignoreElements},4993:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(87486);U.Observable.prototype.isEmpty=B.isEmpty},42215:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(30274);U.Observable.prototype.last=B.last},95564:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(11668);U.Observable.prototype.let=B.letProto,U.Observable.prototype.letBind=B.letProto},68663:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(23307);U.Observable.prototype.map=B.map},63566:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(3498);U.Observable.prototype.mapTo=B.mapTo},62729:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(70845);U.Observable.prototype.materialize=B.materialize},48483:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(96415);U.Observable.prototype.max=B.max},32979:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(33836);U.Observable.prototype.merge=B.merge},78104:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(58610);U.Observable.prototype.mergeAll=B.mergeAll},64259:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(36098);U.Observable.prototype.mergeMap=B.mergeMap,U.Observable.prototype.flatMap=B.mergeMap},30336:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(53033);U.Observable.prototype.flatMapTo=B.mergeMapTo,U.Observable.prototype.mergeMapTo=B.mergeMapTo},46315:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(11444);U.Observable.prototype.mergeScan=B.mergeScan},60771:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(6626);U.Observable.prototype.min=B.min},92700:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(4291);U.Observable.prototype.multicast=B.multicast},43545:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(37675);U.Observable.prototype.observeOn=B.observeOn},89242:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(92878);U.Observable.prototype.onErrorResumeNext=B.onErrorResumeNext},70177:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(94401);U.Observable.prototype.pairwise=B.pairwise},43800:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(93110);U.Observable.prototype.partition=B.partition},33434:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(53937);U.Observable.prototype.pluck=B.pluck},37179:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(81e3);U.Observable.prototype.publish=B.publish},97810:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(78665);U.Observable.prototype.publishBehavior=B.publishBehavior},44633:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(34696);U.Observable.prototype.publishLast=B.publishLast},27430:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(35543);U.Observable.prototype.publishReplay=B.publishReplay},37953:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(33963);U.Observable.prototype.race=B.race},58435:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(99216);U.Observable.prototype.reduce=B.reduce},14234:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(19613);U.Observable.prototype.repeat=B.repeat},98741:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(72798);U.Observable.prototype.repeatWhen=B.repeatWhen},43263:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(59813);U.Observable.prototype.retry=B.retry},57180:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(5419);U.Observable.prototype.retryWhen=B.retryWhen},87700:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(58693);U.Observable.prototype.sample=B.sample},34860:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(86803);U.Observable.prototype.sampleTime=B.sampleTime},67751:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(65036);U.Observable.prototype.scan=B.scan},63733:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(12201);U.Observable.prototype.sequenceEqual=B.sequenceEqual},38596:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(86892);U.Observable.prototype.share=B.share},20038:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(9050);U.Observable.prototype.shareReplay=B.shareReplay},58186:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(13533);U.Observable.prototype.single=B.single},77538:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(65846);U.Observable.prototype.skip=B.skip},33866:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(90955);U.Observable.prototype.skipLast=B.skipLast},1676:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(75479);U.Observable.prototype.skipUntil=B.skipUntil},3018:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(76841);U.Observable.prototype.skipWhile=B.skipWhile},58003:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(66560);U.Observable.prototype.startWith=B.startWith},77394:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(92265);U.Observable.prototype.subscribeOn=B.subscribeOn},92947:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(41428);U.Observable.prototype.switch=B._switch,U.Observable.prototype._switch=B._switch},27971:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(5193);U.Observable.prototype.switchMap=B.switchMap},33934:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(34022);U.Observable.prototype.switchMapTo=B.switchMapTo},43126:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(204);U.Observable.prototype.take=B.take},6320:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(62299);U.Observable.prototype.takeLast=B.takeLast},96813:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(93542);U.Observable.prototype.takeUntil=B.takeUntil},20425:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(79214);U.Observable.prototype.takeWhile=B.takeWhile},70140:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(35922);U.Observable.prototype.throttle=B.throttle},32035:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(41941);U.Observable.prototype.throttleTime=B.throttleTime},49421:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(99194);U.Observable.prototype.timeInterval=B.timeInterval},9693:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(53358);U.Observable.prototype.timeout=B.timeout},87276:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(41237);U.Observable.prototype.timeoutWith=B.timeoutWith},63934:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(84485);U.Observable.prototype.timestamp=B.timestamp},17360:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(23552);U.Observable.prototype.toArray=B.toArray},37222:function(){},55214:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(13977);U.Observable.prototype.window=B.window},22854:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(54052);U.Observable.prototype.windowCount=B.windowCount},65259:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(17884);U.Observable.prototype.windowTime=B.windowTime},84715:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(18835);U.Observable.prototype.windowToggle=B.windowToggle},27798:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(84220);U.Observable.prototype.windowWhen=B.windowWhen},98441:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(41603);U.Observable.prototype.withLatestFrom=B.withLatestFrom},56238:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(83313);U.Observable.prototype.zip=B.zipProto},42145:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(80396);U.Observable.prototype.zipAll=B.zipAll},20325:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.audit=function(V){return U.audit(V)(this)}},55702:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(73033);q.auditTime=function(Z,T){return void 0===T&&(T=U.asyncScheduler),B.auditTime(Z,T)(this)}},19931:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.buffer=function(V){return U.buffer(V)(this)}},38173:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.bufferCount=function(V,Z){return void 0===Z&&(Z=null),U.bufferCount(V,Z)(this)}},93690:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(37294),V=f(73033);q.bufferTime=function(T){var I=arguments.length,C=U.asyncScheduler;B.isScheduler(arguments[arguments.length-1])&&(C=arguments[arguments.length-1],I--);var v=null;I>=2&&(v=arguments[1]);var P=Number.POSITIVE_INFINITY;return I>=3&&(P=arguments[2]),V.bufferTime(T,v,P,C)(this)}},79681:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.bufferToggle=function(V,Z){return U.bufferToggle(V,Z)(this)}},75311:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.bufferWhen=function(V){return U.bufferWhen(V)(this)}},26306:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q._catch=function(V){return U.catchError(V)(this)}},15869:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.combineAll=function(V){return U.combineAll(V)(this)}},23265:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(37294);q.combineLatest=function(){for(var Z=[],T=0;T<arguments.length;T++)Z[T]=arguments[T];var I=null;return"function"==typeof Z[Z.length-1]&&(I=Z.pop()),1===Z.length&&B.isArray(Z[0])&&(Z=Z[0].slice()),this.lift.call(U.of.apply(void 0,[this].concat(Z)),new B.CombineLatestOperator(I))}},31179:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);q.concat=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return this.lift.call(U.concat.apply(void 0,[this].concat(V)))}},16148:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.concatAll=function(){return U.concatAll()(this)}},28552:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.concatMap=function(V){return U.concatMap(V)(this)}},91798:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.concatMapTo=function(V){return U.concatMapTo(V)(this)}},93653:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.count=function(V){return U.count(V)(this)}},36477:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.debounce=function(V){return U.debounce(V)(this)}},61529:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(73033);q.debounceTime=function(Z,T){return void 0===T&&(T=U.asyncScheduler),B.debounceTime(Z,T)(this)}},64502:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.defaultIfEmpty=function(V){return void 0===V&&(V=null),U.defaultIfEmpty(V)(this)}},33674:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(73033);q.delay=function(Z,T){return void 0===T&&(T=U.asyncScheduler),B.delay(Z,T)(this)}},49477:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.delayWhen=function(V,Z){return U.delayWhen(V,Z)(this)}},21941:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.dematerialize=function(){return U.dematerialize()(this)}},18053:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.distinct=function(V,Z){return U.distinct(V,Z)(this)}},13598:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.distinctUntilChanged=function(V,Z){return U.distinctUntilChanged(V,Z)(this)}},94936:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.distinctUntilKeyChanged=function(V,Z){return U.distinctUntilKeyChanged(V,Z)(this)}},21790:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q._do=function(V,Z,T){return U.tap(V,Z,T)(this)}},2538:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.elementAt=function(V,Z){return U.elementAt.apply(void 0,arguments)(this)}},58136:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.every=function(V,Z){return U.every(V,Z)(this)}},26734:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.exhaust=function(){return U.exhaust()(this)}},2084:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.exhaustMap=function(V){return U.exhaustMap(V)(this)}},2945:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.expand=function(V,Z,T){return void 0===Z&&(Z=Number.POSITIVE_INFINITY),void 0===T&&(T=void 0),U.expand(V,Z=(Z||0)<1?Number.POSITIVE_INFINITY:Z,T)(this)}},3704:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.filter=function(V,Z){return U.filter(V,Z)(this)}},58870:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q._finally=function(V){return U.finalize(V)(this)}},16201:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.find=function(V,Z){return U.find(V,Z)(this)}},95148:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.findIndex=function(V,Z){return U.findIndex(V,Z)(this)}},96050:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.first=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return U.first.apply(void 0,V)(this)}},16309:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.groupBy=function(V,Z,T,I){return U.groupBy(V,Z,T,I)(this)}},3640:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.ignoreElements=function(){return U.ignoreElements()(this)}},87486:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.isEmpty=function(){return U.isEmpty()(this)}},30274:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.last=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return U.last.apply(void 0,V)(this)}},11668:function(ce,q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.letProto=function(U){return U(this)}},23307:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.map=function(V,Z){return U.map(V,Z)(this)}},3498:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.mapTo=function(V){return U.mapTo(V)(this)}},70845:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.materialize=function(){return U.materialize()(this)}},96415:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.max=function(V){return U.max(V)(this)}},33836:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);q.merge=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return this.lift.call(U.merge.apply(void 0,[this].concat(V)))}},58610:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.mergeAll=function(V){return void 0===V&&(V=Number.POSITIVE_INFINITY),U.mergeAll(V)(this)}},36098:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.mergeMap=function(V,Z){return void 0===Z&&(Z=Number.POSITIVE_INFINITY),U.mergeMap(V,Z)(this)}},53033:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.mergeMapTo=function(V,Z){return void 0===Z&&(Z=Number.POSITIVE_INFINITY),U.mergeMapTo(V,Z)(this)}},11444:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.mergeScan=function(V,Z,T){return void 0===T&&(T=Number.POSITIVE_INFINITY),U.mergeScan(V,Z,T)(this)}},6626:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.min=function(V){return U.min(V)(this)}},4291:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.multicast=function(V,Z){return U.multicast(V,Z)(this)}},37675:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.observeOn=function(V,Z){return void 0===Z&&(Z=0),U.observeOn(V,Z)(this)}},92878:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.onErrorResumeNext=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return U.onErrorResumeNext.apply(void 0,V)(this)}},94401:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.pairwise=function(){return U.pairwise()(this)}},93110:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.partition=function(V,Z){return U.partition(V,Z)(this)}},53937:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.pluck=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return U.pluck.apply(void 0,V)(this)}},81e3:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.publish=function(V){return U.publish(V)(this)}},78665:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.publishBehavior=function(V){return U.publishBehavior(V)(this)}},34696:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.publishLast=function(){return U.publishLast()(this)}},35543:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.publishReplay=function(V,Z,T,I){return U.publishReplay(V,Z,T,I)(this)}},33963:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.race=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return U.race.apply(void 0,V)(this)}},99216:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.reduce=function(V,Z){return arguments.length>=2?U.reduce(V,Z)(this):U.reduce(V)(this)}},19613:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.repeat=function(V){return void 0===V&&(V=-1),U.repeat(V)(this)}},72798:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.repeatWhen=function(V){return U.repeatWhen(V)(this)}},59813:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.retry=function(V){return void 0===V&&(V=-1),U.retry(V)(this)}},5419:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.retryWhen=function(V){return U.retryWhen(V)(this)}},58693:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.sample=function(V){return U.sample(V)(this)}},86803:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(73033);q.sampleTime=function(Z,T){return void 0===T&&(T=U.asyncScheduler),B.sampleTime(Z,T)(this)}},65036:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.scan=function(V,Z){return arguments.length>=2?U.scan(V,Z)(this):U.scan(V)(this)}},12201:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.sequenceEqual=function(V,Z){return U.sequenceEqual(V,Z)(this)}},86892:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.share=function(){return U.share()(this)}},9050:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.shareReplay=function(V,Z,T){return V&&"object"==typeof V?U.shareReplay(V)(this):U.shareReplay(V,Z,T)(this)}},13533:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.single=function(V){return U.single(V)(this)}},65846:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.skip=function(V){return U.skip(V)(this)}},90955:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.skipLast=function(V){return U.skipLast(V)(this)}},75479:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.skipUntil=function(V){return U.skipUntil(V)(this)}},76841:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.skipWhile=function(V){return U.skipWhile(V)(this)}},66560:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.startWith=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return U.startWith.apply(void 0,V)(this)}},92265:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.subscribeOn=function(V,Z){return void 0===Z&&(Z=0),U.subscribeOn(V,Z)(this)}},41428:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q._switch=function(){return U.switchAll()(this)}},5193:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.switchMap=function(V){return U.switchMap(V)(this)}},34022:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.switchMapTo=function(V){return U.switchMapTo(V)(this)}},204:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.take=function(V){return U.take(V)(this)}},62299:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.takeLast=function(V){return U.takeLast(V)(this)}},93542:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.takeUntil=function(V){return U.takeUntil(V)(this)}},79214:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.takeWhile=function(V){return U.takeWhile(V)(this)}},35922:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033),B=f(37294);q.throttle=function(Z,T){return void 0===T&&(T=B.defaultThrottleConfig),U.throttle(Z,T)(this)}},41941:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(37294),V=f(73033);q.throttleTime=function(T,I,C){return void 0===I&&(I=U.asyncScheduler),void 0===C&&(C=B.defaultThrottleConfig),V.throttleTime(T,I,C)(this)}},99194:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(73033);q.timeInterval=function(Z){return void 0===Z&&(Z=U.asyncScheduler),B.timeInterval(Z)(this)}},53358:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(73033);q.timeout=function(Z,T){return void 0===T&&(T=U.asyncScheduler),B.timeout(Z,T)(this)}},41237:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(73033);q.timeoutWith=function(Z,T,I){return void 0===I&&(I=U.asyncScheduler),B.timeoutWith(Z,T,I)(this)}},84485:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(73033);q.timestamp=function(Z){return void 0===Z&&(Z=U.asyncScheduler),B.timestamp(Z)(this)}},23552:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.toArray=function(){return U.toArray()(this)}},13977:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.window=function(V){return U.window(V)(this)}},54052:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.windowCount=function(V,Z){return void 0===Z&&(Z=0),U.windowCount(V,Z)(this)}},17884:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(37294),V=f(73033);q.windowTime=function(T){var I=U.asyncScheduler,C=null,v=Number.POSITIVE_INFINITY;return B.isScheduler(arguments[3])&&(I=arguments[3]),B.isScheduler(arguments[2])?I=arguments[2]:B.isNumeric(arguments[2])&&(v=Number(arguments[2])),B.isScheduler(arguments[1])?I=arguments[1]:B.isNumeric(arguments[1])&&(C=Number(arguments[1])),V.windowTime(T,C,v,I)(this)}},18835:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.windowToggle=function(V,Z){return U.windowToggle(V,Z)(this)}},84220:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.windowWhen=function(V){return U.windowWhen(V)(this)}},41603:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.withLatestFrom=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return U.withLatestFrom.apply(void 0,V)(this)}},83313:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);q.zipProto=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return this.lift.call(U.zip.apply(void 0,[this].concat(V)))}},80396:function(ce,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.zipAll=function(V){return U.zipAll(V)(this)}},53628:function(ce,q,f){},55905:function(ce,q,f){"use strict";f.r(q),f.d(q,{ajax:function(){return U.h},AjaxResponse:function(){return B.vD},AjaxError:function(){return B.iM},AjaxTimeoutError:function(){return B.cw}});var U=f(30437),B=f(51361)},94117:function(ce,q,f){"use strict";f.r(q),f.d(q,{ArgumentOutOfRangeError:function(){return j.W},AsyncSubject:function(){return v.c},BehaviorSubject:function(){return I.X},ConnectableObservable:function(){return B.c},EMPTY:function(){return ct.E},EmptyError:function(){return K.K},GroupedObservable:function(){return V.T},NEVER:function(){return Ft},Notification:function(){return E.P},NotificationKind:function(){return E.W},ObjectUnsubscribedError:function(){return W.N},Observable:function(){return U.y},ReplaySubject:function(){return C.t},Scheduler:function(){return g.b},Subject:function(){return T.xQ},Subscriber:function(){return N.L},Subscription:function(){return k.w},TimeoutError:function(){return oe.W},UnsubscriptionError:function(){return J.B},VirtualAction:function(){return y.h},VirtualTimeScheduler:function(){return y.y},animationFrame:function(){return A.r},animationFrameScheduler:function(){return A.Z},asap:function(){return P.e},asapScheduler:function(){return P.E},async:function(){return D.P},asyncScheduler:function(){return D.z},bindCallback:function(){return ae},bindNodeCallback:function(){return He},combineLatest:function(){return Se.aj},concat:function(){return De.z},config:function(){return bt.v},defer:function(){return Ve.P},empty:function(){return ct.c},forkJoin:function(){return Je.D},from:function(){return Ut.D},fromEvent:function(){return Et.R},fromEventPattern:function(){return Kt},generate:function(){return Vt},identity:function(){return O.y},iif:function(){return qt},interval:function(){return Ct.F},isObservable:function(){return L.b},merge:function(){return en.T},never:function(){return on},noop:function(){return S.Z},observable:function(){return Z.L},of:function(){return En.of},onErrorResumeNext:function(){return Zn},pairs:function(){return Rn},partition:function(){return Wt},pipe:function(){return x.z},queue:function(){return M.c},queueScheduler:function(){return M.N},race:function(){return Mt.S3},range:function(){return rt.w},scheduled:function(){return Ye.x},throwError:function(){return Te._},timer:function(){return re.H},using:function(){return ve},zip:function(){return Ge.$R}});var U=f(89797),B=f(39887),V=f(86072),Z=f(57694),T=f(68707),I=f(90838),C=f(82667),v=f(3435),P=f(8285),D=f(46813),M=f(60641),A=f(58172),y=f(2296),g=f(67801),k=f(5051),N=f(39874),E=f(80286),x=f(96194),S=f(66029),O=f(57070),L=f(17504),j=f(9855),K=f(64646),W=f(1696),J=f(66351),oe=f(98691),te=f(10629),se=f(85639),le=f(20006),de=f(78985),ue=f(91299);function ae(Lt,zt,tn){if(zt){if(!(0,ue.K)(zt))return function(){return ae(Lt,tn).apply(void 0,arguments).pipe((0,se.U)(function(sn){return(0,de.k)(sn)?zt.apply(void 0,(0,te.Z)(sn)):zt(sn)}))};tn=zt}return function(){for(var sn=arguments.length,hn=new Array(sn),Cn=0;Cn<sn;Cn++)hn[Cn]=arguments[Cn];var Yn,In=this,xn={context:In,subject:Yn,callbackFunc:Lt,scheduler:tn};return new U.y(function(Sn){if(tn)return tn.schedule(Me,0,{args:hn,subscriber:Sn,params:xn});if(!Yn){Yn=new v.c;try{Lt.apply(In,[].concat(hn,[function(){for(var ft=arguments.length,dt=new Array(ft),Ue=0;Ue<ft;Ue++)dt[Ue]=arguments[Ue];Yn.next(dt.length<=1?dt[0]:dt),Yn.complete()}]))}catch(rn){(0,le._)(Yn)?Yn.error(rn):console.warn(rn)}}return Yn.subscribe(Sn)})}}function Me(Lt){var zt=this,sn=Lt.args,hn=Lt.subscriber,Cn=Lt.params,In=Cn.callbackFunc,Yn=Cn.context,xn=Cn.scheduler,Sn=Cn.subject;if(!Sn){Sn=Cn.subject=new v.c;try{In.apply(Yn,[].concat((0,te.Z)(sn),[function(){for(var rn=arguments.length,ft=new Array(rn),dt=0;dt<rn;dt++)ft[dt]=arguments[dt];zt.add(xn.schedule(ye,0,{value:ft.length<=1?ft[0]:ft,subject:Sn}))}]))}catch(Ht){Sn.error(Ht)}}this.add(Sn.subscribe(hn))}function ye(Lt){var tn=Lt.subject;tn.next(Lt.value),tn.complete()}function He(Lt,zt,tn){if(zt){if(!(0,ue.K)(zt))return function(){return He(Lt,tn).apply(void 0,arguments).pipe((0,se.U)(function(sn){return(0,de.k)(sn)?zt.apply(void 0,(0,te.Z)(sn)):zt(sn)}))};tn=zt}return function(){for(var sn=arguments.length,hn=new Array(sn),Cn=0;Cn<sn;Cn++)hn[Cn]=arguments[Cn];var In={subject:void 0,args:hn,callbackFunc:Lt,scheduler:tn,context:this};return new U.y(function(Yn){var xn=In.context,Sn=In.subject;if(tn)return tn.schedule(_t,0,{params:In,subscriber:Yn,context:xn});if(!Sn){Sn=In.subject=new v.c;try{Lt.apply(xn,[].concat(hn,[function(){for(var rn=arguments.length,ft=new Array(rn),dt=0;dt<rn;dt++)ft[dt]=arguments[dt];var Ue=ft.shift();Ue?Sn.error(Ue):(Sn.next(ft.length<=1?ft[0]:ft),Sn.complete())}]))}catch(Ht){(0,le._)(Sn)?Sn.error(Ht):console.warn(Ht)}}return Sn.subscribe(Yn)})}}function _t(Lt){var zt=this,tn=Lt.params,sn=Lt.subscriber,hn=Lt.context,Cn=tn.callbackFunc,In=tn.args,Yn=tn.scheduler,xn=tn.subject;if(!xn){xn=tn.subject=new v.c;try{Cn.apply(hn,[].concat((0,te.Z)(In),[function(){for(var Ht=arguments.length,rn=new Array(Ht),ft=0;ft<Ht;ft++)rn[ft]=arguments[ft];var dt=rn.shift();zt.add(dt?Yn.schedule(Bt,0,{err:dt,subject:xn}):Yn.schedule(yt,0,{value:rn.length<=1?rn[0]:rn,subject:xn}))}]))}catch($n){this.add(Yn.schedule(Bt,0,{err:$n,subject:xn}))}}this.add(xn.subscribe(sn))}function yt(Lt){var tn=Lt.subject;tn.next(Lt.value),tn.complete()}function Bt(Lt){Lt.subject.error(Lt.err)}var Se=f(81370),De=f(60131),Ve=f(4499),ct=f(93487),Je=f(91925),Ut=f(61493),Et=f(33090),vt=f(20684);function Kt(Lt,zt,tn){return tn?Kt(Lt,zt).pipe((0,se.U)(function(sn){return(0,de.k)(sn)?tn.apply(void 0,(0,te.Z)(sn)):tn(sn)})):new U.y(function(sn){var Cn,hn=function(){for(var Yn=arguments.length,xn=new Array(Yn),Sn=0;Sn<Yn;Sn++)xn[Sn]=arguments[Sn];return sn.next(1===xn.length?xn[0]:xn)};try{Cn=Lt(hn)}catch(In){return void sn.error(In)}if((0,vt.m)(zt))return function(){return zt(hn,Cn)}})}function Vt(Lt,zt,tn,sn,hn){var Cn,In;return 1==arguments.length?(In=Lt.initialState,zt=Lt.condition,tn=Lt.iterate,Cn=Lt.resultSelector||O.y,hn=Lt.scheduler):void 0===sn||(0,ue.K)(sn)?(In=Lt,Cn=O.y,hn=sn):(In=Lt,Cn=sn),new U.y(function(xn){var Sn=In;if(hn)return hn.schedule(St,0,{subscriber:xn,iterate:tn,condition:zt,resultSelector:Cn,state:Sn});for(;;){if(zt){var $n=void 0;try{$n=zt(Sn)}catch(rn){return void xn.error(rn)}if(!$n){xn.complete();break}}var Ht=void 0;try{Ht=Cn(Sn)}catch(rn){return void xn.error(rn)}if(xn.next(Ht),xn.closed)break;try{Sn=tn(Sn)}catch(rn){return void xn.error(rn)}}})}function St(Lt){var zt=Lt.subscriber,tn=Lt.condition;if(!zt.closed){if(Lt.needIterate)try{Lt.state=Lt.iterate(Lt.state)}catch(Cn){return void zt.error(Cn)}else Lt.needIterate=!0;if(tn){var sn;try{sn=tn(Lt.state)}catch(Cn){return void zt.error(Cn)}if(!sn)return void zt.complete();if(zt.closed)return}var hn;try{hn=Lt.resultSelector(Lt.state)}catch(Cn){return void zt.error(Cn)}if(!zt.closed&&(zt.next(hn),!zt.closed))return this.schedule(Lt)}}function qt(Lt){var zt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ct.E,tn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ct.E;return(0,Ve.P)(function(){return Lt()?zt:tn})}var Ct=f(57434),en=f(55371),Ft=new U.y(S.Z);function on(){return Ft}var En=f(43161);function Zn(){for(var Lt=arguments.length,zt=new Array(Lt),tn=0;tn<Lt;tn++)zt[tn]=arguments[tn];if(0===zt.length)return ct.E;var sn=zt[0],hn=zt.slice(1);return 1===zt.length&&(0,de.k)(sn)?Zn.apply(void 0,(0,te.Z)(sn)):new U.y(function(Cn){var In=function(){return Cn.add(Zn.apply(void 0,(0,te.Z)(hn)).subscribe(Cn))};return(0,Ut.D)(sn).subscribe({next:function(xn){Cn.next(xn)},error:In,complete:In})})}function Rn(Lt,zt){return new U.y(zt?function(tn){var sn=Object.keys(Lt),hn=new k.w;return hn.add(zt.schedule(tr,0,{keys:sn,index:0,subscriber:tn,subscription:hn,obj:Lt})),hn}:function(tn){for(var sn=Object.keys(Lt),hn=0;hn<sn.length&&!tn.closed;hn++){var Cn=sn[hn];Lt.hasOwnProperty(Cn)&&tn.next([Cn,Lt[Cn]])}tn.complete()})}function tr(Lt){var zt=Lt.keys,tn=Lt.index,sn=Lt.subscriber,hn=Lt.subscription,Cn=Lt.obj;if(!sn.closed)if(tn<zt.length){var In=zt[tn];sn.next([In,Cn[In]]),hn.add(this.schedule({keys:zt,index:tn+1,subscriber:sn,subscription:hn,obj:Cn}))}else sn.complete()}var Nn=f(59849),wn=f(20735),yr=f(58780);function Wt(Lt,zt,tn){return[(0,yr.h)(zt,tn)(new U.y((0,wn.s)(Lt))),(0,yr.h)((0,Nn.f)(zt,tn))(new U.y((0,wn.s)(Lt)))]}var Mt=f(31695),rt=f(10961),Te=f(11363),re=f(5041);function ve(Lt,zt){return new U.y(function(tn){var sn,hn;try{sn=Lt()}catch(Yn){return void tn.error(Yn)}try{hn=zt(sn)}catch(Yn){return void tn.error(Yn)}var In=(hn?(0,Ut.D)(hn):ct.E).subscribe(tn);return function(){In.unsubscribe(),sn&&sn.unsubscribe()}})}var Ge=f(43008),Ye=f(77493),bt=f(10817)},37294:function(ce,q,f){"use strict";f.r(q),f.d(q,{AjaxError:function(){return E.iM},AjaxObservable:function(){return E.i6},AjaxResponse:function(){return E.vD},AjaxSubscriber:function(){return E.de},AjaxTimeoutError:function(){return E.cw},AnonymousSubject:function(){return T.ug},ArgumentOutOfRangeError:function(){return le.W},CombineLatestOperator:function(){return S.Ms},EmptyError:function(){return de.K},GroupedObservable:function(){return W.T},Immediate:function(){return ue.H},InnerSubscriber:function(){return B.d},ObjectUnsubscribedError:function(){return ae.N},OuterSubscriber:function(){return V.L},Scheduler:function(){return Z.b},SubjectSubscription:function(){return I.W},SubscribeOnObservable:function(){return L.e},Subscriber:function(){return C.L},TimeInterval:function(){return K.R},TimeoutError:function(){return Me.W},Timestamp:function(){return j.E},UnsubscriptionError:function(){return ye.B},WebSocketSubject:function(){return x.p},ajax:function(){return k.h},ajaxDelete:function(){return E._c},ajaxGet:function(){return E.Ck},ajaxGetJSON:function(){return E.uX},ajaxPatch:function(){return E.YB},ajaxPost:function(){return E.tB},ajaxPut:function(){return E.Vk},applyMixins:function(){return ot.e},config:function(){return U.v},defaultThrottleConfig:function(){return J.d},dispatch:function(){return O.W},errorObject:function(){return He},fromIterable:function(){return g},fromPromise:function(){return M},hostReportError:function(){return _t.z},identity:function(){return yt.y},isArray:function(){return Bt.k},isArrayLike:function(){return Se.z},isDate:function(){return De.J},isFunction:function(){return Ve.m},isIterable:function(){return ct.T},isNumeric:function(){return Je.k},isObject:function(){return Ut.K},isObservable:function(){return Et.c},isPromise:function(){return vt.t},isScheduler:function(){return Kt.K},iterator:function(){return te.hZ},noop:function(){return Vt.Z},not:function(){return St.f},observable:function(){return se.L},pipe:function(){return qt.z},root:function(){return Ct.J},rxSubscriber:function(){return oe.b},subscribeTo:function(){return en.s},subscribeToArray:function(){return Ft.V},subscribeToIterable:function(){return A.u},subscribeToObservable:function(){return on.h},subscribeToPromise:function(){return P.A},subscribeToResult:function(){return En.D},toSubscriber:function(){return Zn.Y},tryCatch:function(){return Nn},webSocket:function(){return N.j}});var U=f(10817),B=f(22320),V=f(7283),Z=f(67801),T=f(68707),I=f(18480),C=f(39874),v=f(89797),P=f(56112),D=f(10498);function M(wn,yr){return yr?(0,D.c)(wn,yr):new v.y((0,P.A)(wn))}var A=f(49089),y=f(60612);function g(wn,yr){if(!wn)throw new Error("Iterable cannot be null");return yr?(0,y.Q)(wn,yr):new v.y((0,A.u)(wn))}var Rn,k=f(30437),N=f(99298),E=f(51361),x=f(46095),S=f(81370),O=f(10961),L=f(18613),j=f(63706),K=f(73445),W=f(86072),J=f(243),oe=f(79542),te=f(81695),se=f(57694),le=f(9855),de=f(64646),ue=f(96421),ae=f(1696),Me=f(98691),ye=f(66351),ot=f(2808),He={e:{}},_t=f(82009),yt=f(57070),Bt=f(78985),Se=f(30621),De=f(88972),Ve=f(20684),ct=f(2762),Je=f(11705),Ut=f(64902),Et=f(19104),vt=f(36514),Kt=f(91299),Vt=f(66029),St=f(59849),qt=f(96194),Ct=f(44962),en=f(20735),Ft=f(22312),on=f(71414),En=f(61454),Zn=f(3410);function tr(){He.e=void 0;try{return Rn.apply(this,arguments)}catch(wn){return He.e=wn,He}finally{Rn=void 0}}function Nn(wn){return Rn=wn,tr}},3435:function(ce,q,f){"use strict";f.d(q,{c:function(){return P}});var U=f(18967),B=f(14105),V=f(20901),Z=f(89200),T=f(10509),I=f(97154),C=f(68707),v=f(5051),P=function(D){(0,T.Z)(A,D);var M=(0,I.Z)(A);function A(){var y;return(0,U.Z)(this,A),(y=M.apply(this,arguments)).value=null,y.hasNext=!1,y.hasCompleted=!1,y}return(0,B.Z)(A,[{key:"_subscribe",value:function(g){return this.hasError?(g.error(this.thrownError),v.w.EMPTY):this.hasCompleted&&this.hasNext?(g.next(this.value),g.complete(),v.w.EMPTY):(0,V.Z)((0,Z.Z)(A.prototype),"_subscribe",this).call(this,g)}},{key:"next",value:function(g){this.hasCompleted||(this.value=g,this.hasNext=!0)}},{key:"error",value:function(g){this.hasCompleted||(0,V.Z)((0,Z.Z)(A.prototype),"error",this).call(this,g)}},{key:"complete",value:function(){this.hasCompleted=!0,this.hasNext&&(0,V.Z)((0,Z.Z)(A.prototype),"next",this).call(this,this.value),(0,V.Z)((0,Z.Z)(A.prototype),"complete",this).call(this)}}]),A}(C.xQ)},90838:function(ce,q,f){"use strict";f.d(q,{X:function(){return P}});var U=f(18967),B=f(14105),V=f(20901),Z=f(89200),T=f(10509),I=f(97154),C=f(68707),v=f(1696),P=function(D){(0,T.Z)(A,D);var M=(0,I.Z)(A);function A(y){var g;return(0,U.Z)(this,A),(g=M.call(this))._value=y,g}return(0,B.Z)(A,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(g){var k=(0,V.Z)((0,Z.Z)(A.prototype),"_subscribe",this).call(this,g);return k&&!k.closed&&g.next(this._value),k}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new v.N;return this._value}},{key:"next",value:function(g){(0,V.Z)((0,Z.Z)(A.prototype),"next",this).call(this,this._value=g)}}]),A}(C.xQ)},22320:function(ce,q,f){"use strict";f.d(q,{d:function(){return I}});var U=f(18967),B=f(14105),V=f(10509),Z=f(97154),I=function(C){(0,V.Z)(P,C);var v=(0,Z.Z)(P);function P(D,M,A){var y;return(0,U.Z)(this,P),(y=v.call(this)).parent=D,y.outerValue=M,y.outerIndex=A,y.index=0,y}return(0,B.Z)(P,[{key:"_next",value:function(M){this.parent.notifyNext(this.outerValue,M,this.outerIndex,this.index++,this)}},{key:"_error",value:function(M){this.parent.notifyError(M,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),P}(f(39874).L)},80286:function(ce,q,f){"use strict";f.d(q,{W:function(){return I},P:function(){return C}});var U=f(18967),B=f(14105),V=f(93487),Z=f(43161),T=f(11363),I=function(v){return v.NEXT="N",v.ERROR="E",v.COMPLETE="C",v}({}),C=function(){var v=function(){function P(D,M,A){(0,U.Z)(this,P),this.kind=D,this.value=M,this.error=A,this.hasValue="N"===D}return(0,B.Z)(P,[{key:"observe",value:function(M){switch(this.kind){case"N":return M.next&&M.next(this.value);case"E":return M.error&&M.error(this.error);case"C":return M.complete&&M.complete()}}},{key:"do",value:function(M,A,y){switch(this.kind){case"N":return M&&M(this.value);case"E":return A&&A(this.error);case"C":return y&&y()}}},{key:"accept",value:function(M,A,y){return M&&"function"==typeof M.next?this.observe(M):this.do(M,A,y)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return(0,Z.of)(this.value);case"E":return(0,T._)(this.error);case"C":return(0,V.c)()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(M){return void 0!==M?new P("N",M):P.undefinedValueNotification}},{key:"createError",value:function(M){return new P("E",void 0,M)}},{key:"createComplete",value:function(){return P.completeNotification}}]),P}();return v.completeNotification=new v("C"),v.undefinedValueNotification=new v("N",void 0),v}()},89797:function(ce,q,f){"use strict";f.d(q,{y:function(){return v}});var U=f(18967),B=f(14105),V=f(20006),Z=f(3410),T=f(57694),I=f(96194),C=f(10817),v=function(){var D=function(){function M(A){(0,U.Z)(this,M),this._isScalar=!1,A&&(this._subscribe=A)}return(0,B.Z)(M,[{key:"lift",value:function(y){var g=new M;return g.source=this,g.operator=y,g}},{key:"subscribe",value:function(y,g,k){var N=this.operator,E=(0,Z.Y)(y,g,k);if(E.add(N?N.call(E,this.source):this.source||C.v.useDeprecatedSynchronousErrorHandling&&!E.syncErrorThrowable?this._subscribe(E):this._trySubscribe(E)),C.v.useDeprecatedSynchronousErrorHandling&&E.syncErrorThrowable&&(E.syncErrorThrowable=!1,E.syncErrorThrown))throw E.syncErrorValue;return E}},{key:"_trySubscribe",value:function(y){try{return this._subscribe(y)}catch(g){C.v.useDeprecatedSynchronousErrorHandling&&(y.syncErrorThrown=!0,y.syncErrorValue=g),(0,V._)(y)?y.error(g):console.warn(g)}}},{key:"forEach",value:function(y,g){var k=this;return new(g=P(g))(function(N,E){var x;x=k.subscribe(function(S){try{y(S)}catch(O){E(O),x&&x.unsubscribe()}},E,N)})}},{key:"_subscribe",value:function(y){var g=this.source;return g&&g.subscribe(y)}},{key:T.L,value:function(){return this}},{key:"pipe",value:function(){for(var y=arguments.length,g=new Array(y),k=0;k<y;k++)g[k]=arguments[k];return 0===g.length?this:(0,I.U)(g)(this)}},{key:"toPromise",value:function(y){var g=this;return new(y=P(y))(function(k,N){var E;g.subscribe(function(x){return E=x},function(x){return N(x)},function(){return k(E)})})}}]),M}();return D.create=function(M){return new D(M)},D}();function P(D){if(D||(D=C.v.Promise||Promise),!D)throw new Error("no Promise impl found");return D}},88944:function(ce,q,f){"use strict";f.d(q,{c:function(){return V}});var U=f(10817),B=f(82009),V={closed:!0,next:function(T){},error:function(T){if(U.v.useDeprecatedSynchronousErrorHandling)throw T;(0,B.z)(T)},complete:function(){}}},7283:function(ce,q,f){"use strict";f.d(q,{L:function(){return I}});var U=f(18967),B=f(14105),V=f(10509),Z=f(97154),I=function(C){(0,V.Z)(P,C);var v=(0,Z.Z)(P);function P(){return(0,U.Z)(this,P),v.apply(this,arguments)}return(0,B.Z)(P,[{key:"notifyNext",value:function(M,A,y,g,k){this.destination.next(A)}},{key:"notifyError",value:function(M,A){this.destination.error(M)}},{key:"notifyComplete",value:function(M){this.destination.complete()}}]),P}(f(39874).L)},82667:function(ce,q,f){"use strict";f.d(q,{t:function(){return y}});var U=f(18967),B=f(14105),V=f(20901),Z=f(89200),T=f(10509),I=f(97154),C=f(68707),v=f(60641),P=f(5051),D=f(25110),M=f(1696),A=f(18480),y=function(k){(0,T.Z)(E,k);var N=(0,I.Z)(E);function E(){var x,S=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,L=arguments.length>2?arguments[2]:void 0;return(0,U.Z)(this,E),(x=N.call(this)).scheduler=L,x._events=[],x._infiniteTimeWindow=!1,x._bufferSize=S<1?1:S,x._windowTime=O<1?1:O,O===Number.POSITIVE_INFINITY?(x._infiniteTimeWindow=!0,x.next=x.nextInfiniteTimeWindow):x.next=x.nextTimeWindow,x}return(0,B.Z)(E,[{key:"nextInfiniteTimeWindow",value:function(S){if(!this.isStopped){var O=this._events;O.push(S),O.length>this._bufferSize&&O.shift()}(0,V.Z)((0,Z.Z)(E.prototype),"next",this).call(this,S)}},{key:"nextTimeWindow",value:function(S){this.isStopped||(this._events.push(new g(this._getNow(),S)),this._trimBufferThenGetEvents()),(0,V.Z)((0,Z.Z)(E.prototype),"next",this).call(this,S)}},{key:"_subscribe",value:function(S){var W,O=this._infiniteTimeWindow,L=O?this._events:this._trimBufferThenGetEvents(),j=this.scheduler,K=L.length;if(this.closed)throw new M.N;if(this.isStopped||this.hasError?W=P.w.EMPTY:(this.observers.push(S),W=new A.W(this,S)),j&&S.add(S=new D.ht(S,j)),O)for(var J=0;J<K&&!S.closed;J++)S.next(L[J]);else for(var oe=0;oe<K&&!S.closed;oe++)S.next(L[oe].value);return this.hasError?S.error(this.thrownError):this.isStopped&&S.complete(),W}},{key:"_getNow",value:function(){return(this.scheduler||v.c).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var S=this._getNow(),O=this._bufferSize,L=this._windowTime,j=this._events,K=j.length,W=0;W<K&&!(S-j[W].time<L);)W++;return K>O&&(W=Math.max(W,K-O)),W>0&&j.splice(0,W),j}}]),E}(C.xQ),g=function k(N,E){(0,U.Z)(this,k),this.time=N,this.value=E}},67801:function(ce,q,f){"use strict";f.d(q,{b:function(){return V}});var U=f(18967),B=f(14105),V=function(){var Z=function(){function T(I){var C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T.now;(0,U.Z)(this,T),this.SchedulerAction=I,this.now=C}return(0,B.Z)(T,[{key:"schedule",value:function(C){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,P=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,C).schedule(P,v)}}]),T}();return Z.now=function(){return Date.now()},Z}()},68707:function(ce,q,f){"use strict";f.d(q,{Yc:function(){return y},xQ:function(){return g},ug:function(){return k}});var U=f(14105),B=f(20901),V=f(89200),Z=f(18967),T=f(10509),I=f(97154),C=f(89797),v=f(39874),P=f(5051),D=f(1696),M=f(18480),A=f(79542),y=function(N){(0,T.Z)(x,N);var E=(0,I.Z)(x);function x(S){var O;return(0,Z.Z)(this,x),(O=E.call(this,S)).destination=S,O}return x}(v.L),g=function(){var N=function(E){(0,T.Z)(S,E);var x=(0,I.Z)(S);function S(){var O;return(0,Z.Z)(this,S),(O=x.call(this)).observers=[],O.closed=!1,O.isStopped=!1,O.hasError=!1,O.thrownError=null,O}return(0,U.Z)(S,[{key:A.b,value:function(){return new y(this)}},{key:"lift",value:function(L){var j=new k(this,this);return j.operator=L,j}},{key:"next",value:function(L){if(this.closed)throw new D.N;if(!this.isStopped)for(var j=this.observers,K=j.length,W=j.slice(),J=0;J<K;J++)W[J].next(L)}},{key:"error",value:function(L){if(this.closed)throw new D.N;this.hasError=!0,this.thrownError=L,this.isStopped=!0;for(var j=this.observers,K=j.length,W=j.slice(),J=0;J<K;J++)W[J].error(L);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new D.N;this.isStopped=!0;for(var L=this.observers,j=L.length,K=L.slice(),W=0;W<j;W++)K[W].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(L){if(this.closed)throw new D.N;return(0,B.Z)((0,V.Z)(S.prototype),"_trySubscribe",this).call(this,L)}},{key:"_subscribe",value:function(L){if(this.closed)throw new D.N;return this.hasError?(L.error(this.thrownError),P.w.EMPTY):this.isStopped?(L.complete(),P.w.EMPTY):(this.observers.push(L),new M.W(this,L))}},{key:"asObservable",value:function(){var L=new C.y;return L.source=this,L}}]),S}(C.y);return N.create=function(E,x){return new k(E,x)},N}(),k=function(N){(0,T.Z)(x,N);var E=(0,I.Z)(x);function x(S,O){var L;return(0,Z.Z)(this,x),(L=E.call(this)).destination=S,L.source=O,L}return(0,U.Z)(x,[{key:"next",value:function(O){var L=this.destination;L&&L.next&&L.next(O)}},{key:"error",value:function(O){var L=this.destination;L&&L.error&&this.destination.error(O)}},{key:"complete",value:function(){var O=this.destination;O&&O.complete&&this.destination.complete()}},{key:"_subscribe",value:function(O){return this.source?this.source.subscribe(O):P.w.EMPTY}}]),x}(g)},18480:function(ce,q,f){"use strict";f.d(q,{W:function(){return I}});var U=f(18967),B=f(14105),V=f(10509),Z=f(97154),I=function(C){(0,V.Z)(P,C);var v=(0,Z.Z)(P);function P(D,M){var A;return(0,U.Z)(this,P),(A=v.call(this)).subject=D,A.subscriber=M,A.closed=!1,A}return(0,B.Z)(P,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var M=this.subject,A=M.observers;if(this.subject=null,A&&0!==A.length&&!M.isStopped&&!M.closed){var y=A.indexOf(this.subscriber);-1!==y&&A.splice(y,1)}}}}]),P}(f(5051).w)},39874:function(ce,q,f){"use strict";f.d(q,{L:function(){return g}});var U=f(18967),B=f(14105),V=f(88009),Z=f(20901),T=f(89200),I=f(10509),C=f(97154),v=f(20684),P=f(88944),D=f(5051),M=f(79542),A=f(10817),y=f(82009),g=function(N){(0,I.Z)(x,N);var E=(0,C.Z)(x);function x(S,O,L){var j;switch((0,U.Z)(this,x),(j=E.call(this)).syncErrorValue=null,j.syncErrorThrown=!1,j.syncErrorThrowable=!1,j.isStopped=!1,arguments.length){case 0:j.destination=P.c;break;case 1:if(!S){j.destination=P.c;break}if("object"==typeof S){S instanceof x?(j.syncErrorThrowable=S.syncErrorThrowable,j.destination=S,S.add((0,V.Z)(j))):(j.syncErrorThrowable=!0,j.destination=new k((0,V.Z)(j),S));break}default:j.syncErrorThrowable=!0,j.destination=new k((0,V.Z)(j),S,O,L)}return j}return(0,B.Z)(x,[{key:M.b,value:function(){return this}},{key:"next",value:function(O){this.isStopped||this._next(O)}},{key:"error",value:function(O){this.isStopped||(this.isStopped=!0,this._error(O))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,(0,Z.Z)((0,T.Z)(x.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(O){this.destination.next(O)}},{key:"_error",value:function(O){this.destination.error(O),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var O=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=O,this}}],[{key:"create",value:function(O,L,j){var K=new x(O,L,j);return K.syncErrorThrowable=!1,K}}]),x}(D.w),k=function(N){(0,I.Z)(x,N);var E=(0,C.Z)(x);function x(S,O,L,j){var K;(0,U.Z)(this,x),(K=E.call(this))._parentSubscriber=S;var W,J=(0,V.Z)(K);return(0,v.m)(O)?W=O:O&&(W=O.next,L=O.error,j=O.complete,O!==P.c&&(J=Object.create(O),(0,v.m)(J.unsubscribe)&&K.add(J.unsubscribe.bind(J)),J.unsubscribe=K.unsubscribe.bind((0,V.Z)(K)))),K._context=J,K._next=W,K._error=L,K._complete=j,K}return(0,B.Z)(x,[{key:"next",value:function(O){if(!this.isStopped&&this._next){var L=this._parentSubscriber;A.v.useDeprecatedSynchronousErrorHandling&&L.syncErrorThrowable?this.__tryOrSetError(L,this._next,O)&&this.unsubscribe():this.__tryOrUnsub(this._next,O)}}},{key:"error",value:function(O){if(!this.isStopped){var L=this._parentSubscriber,j=A.v.useDeprecatedSynchronousErrorHandling;if(this._error)j&&L.syncErrorThrowable?(this.__tryOrSetError(L,this._error,O),this.unsubscribe()):(this.__tryOrUnsub(this._error,O),this.unsubscribe());else if(L.syncErrorThrowable)j?(L.syncErrorValue=O,L.syncErrorThrown=!0):(0,y.z)(O),this.unsubscribe();else{if(this.unsubscribe(),j)throw O;(0,y.z)(O)}}}},{key:"complete",value:function(){var O=this;if(!this.isStopped){var L=this._parentSubscriber;if(this._complete){var j=function(){return O._complete.call(O._context)};A.v.useDeprecatedSynchronousErrorHandling&&L.syncErrorThrowable?(this.__tryOrSetError(L,j),this.unsubscribe()):(this.__tryOrUnsub(j),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(O,L){try{O.call(this._context,L)}catch(j){if(this.unsubscribe(),A.v.useDeprecatedSynchronousErrorHandling)throw j;(0,y.z)(j)}}},{key:"__tryOrSetError",value:function(O,L,j){if(!A.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{L.call(this._context,j)}catch(K){return A.v.useDeprecatedSynchronousErrorHandling?(O.syncErrorValue=K,O.syncErrorThrown=!0,!0):((0,y.z)(K),!0)}return!1}},{key:"_unsubscribe",value:function(){var O=this._parentSubscriber;this._context=null,this._parentSubscriber=null,O.unsubscribe()}}]),x}(g)},5051:function(ce,q,f){"use strict";f.d(q,{w:function(){return C}});var U=f(18967),B=f(14105),V=f(78985),Z=f(64902),T=f(20684),I=f(66351),C=function(){var D,P=function(){function D(M){(0,U.Z)(this,D),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,M&&(this._ctorUnsubscribe=!0,this._unsubscribe=M)}return(0,B.Z)(D,[{key:"unsubscribe",value:function(){var A;if(!this.closed){var y=this._parentOrParents,g=this._ctorUnsubscribe,k=this._unsubscribe,N=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,y instanceof D)y.remove(this);else if(null!==y)for(var E=0;E<y.length;++E)y[E].remove(this);if((0,T.m)(k)){g&&(this._unsubscribe=void 0);try{k.call(this)}catch(j){A=j instanceof I.B?v(j.errors):[j]}}if((0,V.k)(N))for(var S=-1,O=N.length;++S<O;){var L=N[S];if((0,Z.K)(L))try{L.unsubscribe()}catch(j){A=A||[],j instanceof I.B?A=A.concat(v(j.errors)):A.push(j)}}if(A)throw new I.B(A)}}},{key:"add",value:function(A){var y=A;if(!A)return D.EMPTY;switch(typeof A){case"function":y=new D(A);case"object":if(y===this||y.closed||"function"!=typeof y.unsubscribe)return y;if(this.closed)return y.unsubscribe(),y;if(!(y instanceof D)){var g=y;(y=new D)._subscriptions=[g]}break;default:throw new Error("unrecognized teardown "+A+" added to Subscription.")}var N=y._parentOrParents;if(null===N)y._parentOrParents=this;else if(N instanceof D){if(N===this)return y;y._parentOrParents=[N,this]}else{if(-1!==N.indexOf(this))return y;N.push(this)}var E=this._subscriptions;return null===E?this._subscriptions=[y]:E.push(y),y}},{key:"remove",value:function(A){var y=this._subscriptions;if(y){var g=y.indexOf(A);-1!==g&&y.splice(g,1)}}}]),D}();return P.EMPTY=((D=new P).closed=!0,D),P}();function v(P){return P.reduce(function(D,M){return D.concat(M instanceof I.B?M.errors:M)},[])}},10817:function(ce,q,f){"use strict";f.d(q,{v:function(){return B}});var U=!1,B={Promise:void 0,set useDeprecatedSynchronousErrorHandling(V){if(V){var Z=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+Z.stack)}else U&&console.log("RxJS: Back to a better error behavior. Thank you. <3");U=V},get useDeprecatedSynchronousErrorHandling(){return U}}},32124:function(ce,q,f){"use strict";f.d(q,{IY:function(){return v},Ds:function(){return D},ft:function(){return A}});var U=f(18967),B=f(14105),V=f(10509),Z=f(97154),T=f(39874),I=f(89797),C=f(20735),v=function(y){(0,V.Z)(k,y);var g=(0,Z.Z)(k);function k(N){var E;return(0,U.Z)(this,k),(E=g.call(this)).parent=N,E}return(0,B.Z)(k,[{key:"_next",value:function(E){this.parent.notifyNext(E)}},{key:"_error",value:function(E){this.parent.notifyError(E),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),k}(T.L),D=function(y){(0,V.Z)(k,y);var g=(0,Z.Z)(k);function k(){return(0,U.Z)(this,k),g.apply(this,arguments)}return(0,B.Z)(k,[{key:"notifyNext",value:function(E){this.destination.next(E)}},{key:"notifyError",value:function(E){this.destination.error(E)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),k}(T.L);function A(y,g){if(!g.closed){if(y instanceof I.y)return y.subscribe(g);var k;try{k=(0,C.s)(y)(g)}catch(N){g.error(N)}return k}}},39887:function(ce,q,f){"use strict";f.d(q,{c:function(){return A},N:function(){return y}});var U=f(20901),B=f(89200),V=f(18967),Z=f(14105),T=f(10509),I=f(97154),C=f(68707),v=f(89797),D=(f(39874),f(5051)),M=f(26575),A=function(E){(0,T.Z)(S,E);var x=(0,I.Z)(S);function S(O,L){var j;return(0,V.Z)(this,S),(j=x.call(this)).source=O,j.subjectFactory=L,j._refCount=0,j._isComplete=!1,j}return(0,Z.Z)(S,[{key:"_subscribe",value:function(L){return this.getSubject().subscribe(L)}},{key:"getSubject",value:function(){var L=this._subject;return(!L||L.isStopped)&&(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var L=this._connection;return L||(this._isComplete=!1,(L=this._connection=new D.w).add(this.source.subscribe(new g(this.getSubject(),this))),L.closed&&(this._connection=null,L=D.w.EMPTY)),L}},{key:"refCount",value:function(){return(0,M.x)()(this)}}]),S}(v.y),y=function(){var E=A.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:E._subscribe},_isComplete:{value:E._isComplete,writable:!0},getSubject:{value:E.getSubject},connect:{value:E.connect},refCount:{value:E.refCount}}}(),g=function(E){(0,T.Z)(S,E);var x=(0,I.Z)(S);function S(O,L){var j;return(0,V.Z)(this,S),(j=x.call(this,O)).connectable=L,j}return(0,Z.Z)(S,[{key:"_error",value:function(L){this._unsubscribe(),(0,U.Z)((0,B.Z)(S.prototype),"_error",this).call(this,L)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),(0,U.Z)((0,B.Z)(S.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var L=this.connectable;if(L){this.connectable=null;var j=L._connection;L._refCount=0,L._subject=null,L._connection=null,j&&j.unsubscribe()}}}]),S}(C.Yc)},18613:function(ce,q,f){"use strict";f.d(q,{e:function(){return v}});var U=f(18967),B=f(14105),V=f(10509),Z=f(97154),T=f(89797),I=f(8285),C=f(11705),v=function(P){(0,V.Z)(M,P);var D=(0,Z.Z)(M);function M(A){var y,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,k=arguments.length>2&&void 0!==arguments[2]?arguments[2]:I.e;return(0,U.Z)(this,M),(y=D.call(this)).source=A,y.delayTime=g,y.scheduler=k,(!(0,C.k)(g)||g<0)&&(y.delayTime=0),(!k||"function"!=typeof k.schedule)&&(y.scheduler=I.e),y}return(0,B.Z)(M,[{key:"_subscribe",value:function(y){return this.scheduler.schedule(M.dispatch,this.delayTime,{source:this.source,subscriber:y})}}],[{key:"create",value:function(y){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,k=arguments.length>2&&void 0!==arguments[2]?arguments[2]:I.e;return new M(y,g,k)}},{key:"dispatch",value:function(y){return this.add(y.source.subscribe(y.subscriber))}}]),M}(T.y)},81370:function(ce,q,f){"use strict";f.d(q,{aj:function(){return M},Ms:function(){return A}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(91299),I=f(78985),C=f(7283),v=f(61454),P=f(80503),D={};function M(){for(var g=arguments.length,k=new Array(g),N=0;N<g;N++)k[N]=arguments[N];var E=void 0,x=void 0;return(0,T.K)(k[k.length-1])&&(x=k.pop()),"function"==typeof k[k.length-1]&&(E=k.pop()),1===k.length&&(0,I.k)(k[0])&&(k=k[0]),(0,P.n)(k,x).lift(new A(E))}var A=function(){function g(k){(0,V.Z)(this,g),this.resultSelector=k}return(0,Z.Z)(g,[{key:"call",value:function(N,E){return E.subscribe(new y(N,this.resultSelector))}}]),g}(),y=function(g){(0,U.Z)(N,g);var k=(0,B.Z)(N);function N(E,x){var S;return(0,V.Z)(this,N),(S=k.call(this,E)).resultSelector=x,S.active=0,S.values=[],S.observables=[],S}return(0,Z.Z)(N,[{key:"_next",value:function(x){this.values.push(D),this.observables.push(x)}},{key:"_complete",value:function(){var x=this.observables,S=x.length;if(0===S)this.destination.complete();else{this.active=S,this.toRespond=S;for(var O=0;O<S;O++)this.add((0,v.D)(this,x[O],void 0,O))}}},{key:"notifyComplete",value:function(x){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(x,S,O){var L=this.values,K=this.toRespond?L[O]===D?--this.toRespond:this.toRespond:0;L[O]=S,0===K&&(this.resultSelector?this._tryResultSelector(L):this.destination.next(L.slice()))}},{key:"_tryResultSelector",value:function(x){var S;try{S=this.resultSelector.apply(this,x)}catch(O){return void this.destination.error(O)}this.destination.next(S)}}]),N}(C.L)},60131:function(ce,q,f){"use strict";f.d(q,{z:function(){return V}});var U=f(43161),B=f(95416);function V(){return(0,B.u)()(U.of.apply(void 0,arguments))}},4499:function(ce,q,f){"use strict";f.d(q,{P:function(){return Z}});var U=f(89797),B=f(61493),V=f(93487);function Z(T){return new U.y(function(I){var C;try{C=T()}catch(P){return void I.error(P)}return(C?(0,B.D)(C):(0,V.c)()).subscribe(I)})}},51361:function(ce,q,f){"use strict";f.d(q,{Ck:function(){return y},tB:function(){return g},_c:function(){return k},Vk:function(){return N},YB:function(){return E},uX:function(){return S},i6:function(){return O},de:function(){return L},vD:function(){return j},iM:function(){return W},cw:function(){return se}});var U=f(20901),B=f(89200),V=f(18967),Z=f(14105),T=f(10509),I=f(97154),C=f(44962),v=f(89797),P=f(39874);function y(le){var de=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new O({method:"GET",url:le,headers:de})}function g(le,de,ue){return new O({method:"POST",url:le,body:de,headers:ue})}function k(le,de){return new O({method:"DELETE",url:le,headers:de})}function N(le,de,ue){return new O({method:"PUT",url:le,body:de,headers:ue})}function E(le,de,ue){return new O({method:"PATCH",url:le,body:de,headers:ue})}var x=(0,f(85639).U)(function(le,de){return le.response});function S(le,de){return x(new O({method:"GET",url:le,responseType:"json",headers:de}))}var O=function(){var le=function(de){(0,T.Z)(ae,de);var ue=(0,I.Z)(ae);function ae(Me){var ye;(0,V.Z)(this,ae),ye=ue.call(this);var ot={async:!0,createXHR:function(){return this.crossDomain?function(){if(C.J.XMLHttpRequest)return new C.J.XMLHttpRequest;if(C.J.XDomainRequest)return new C.J.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function(){if(C.J.XMLHttpRequest)return new C.J.XMLHttpRequest;var le;try{for(var de=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],ue=0;ue<3;ue++)try{if(new C.J.ActiveXObject(le=de[ue]))break}catch(ae){}return new C.J.ActiveXObject(le)}catch(ae){throw new Error("XMLHttpRequest is not supported by your browser")}}()},crossDomain:!0,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof Me)ot.url=Me;else for(var He in Me)Me.hasOwnProperty(He)&&(ot[He]=Me[He]);return ye.request=ot,ye}return(0,Z.Z)(ae,[{key:"_subscribe",value:function(ye){return new L(ye,this.request)}}]),ae}(v.y);return le.create=function(){var de=function(ae){return new le(ae)};return de.get=y,de.post=g,de.delete=k,de.put=N,de.patch=E,de.getJSON=S,de}(),le}(),L=function(le){(0,T.Z)(ue,le);var de=(0,I.Z)(ue);function ue(ae,Me){var ye;(0,V.Z)(this,ue),(ye=de.call(this,ae)).request=Me,ye.done=!1;var ot=Me.headers=Me.headers||{};return!Me.crossDomain&&!ye.getHeader(ot,"X-Requested-With")&&(ot["X-Requested-With"]="XMLHttpRequest"),!ye.getHeader(ot,"Content-Type")&&!(C.J.FormData&&Me.body instanceof C.J.FormData)&&void 0!==Me.body&&(ot["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),Me.body=ye.serializeBody(Me.body,ye.getHeader(Me.headers,"Content-Type")),ye.send(),ye}return(0,Z.Z)(ue,[{key:"next",value:function(Me){this.done=!0;var _t,ye=this.xhr,ot=this.request,He=this.destination;try{_t=new j(Me,ye,ot)}catch(yt){return He.error(yt)}He.next(_t)}},{key:"send",value:function(){var Me=this.request,ye=this.request,ot=ye.user,He=ye.method,_t=ye.url,yt=ye.async,Bt=ye.password,Se=ye.headers,De=ye.body;try{var Ve=this.xhr=Me.createXHR();this.setupEvents(Ve,Me),ot?Ve.open(He,_t,yt,ot,Bt):Ve.open(He,_t,yt),yt&&(Ve.timeout=Me.timeout,Ve.responseType=Me.responseType),"withCredentials"in Ve&&(Ve.withCredentials=!!Me.withCredentials),this.setHeaders(Ve,Se),De?Ve.send(De):Ve.send()}catch(ct){this.error(ct)}}},{key:"serializeBody",value:function(Me,ye){if(!Me||"string"==typeof Me)return Me;if(C.J.FormData&&Me instanceof C.J.FormData)return Me;if(ye){var ot=ye.indexOf(";");-1!==ot&&(ye=ye.substring(0,ot))}switch(ye){case"application/x-www-form-urlencoded":return Object.keys(Me).map(function(He){return"".concat(encodeURIComponent(He),"=").concat(encodeURIComponent(Me[He]))}).join("&");case"application/json":return JSON.stringify(Me);default:return Me}}},{key:"setHeaders",value:function(Me,ye){for(var ot in ye)ye.hasOwnProperty(ot)&&Me.setRequestHeader(ot,ye[ot])}},{key:"getHeader",value:function(Me,ye){for(var ot in Me)if(ot.toLowerCase()===ye.toLowerCase())return Me[ot]}},{key:"setupEvents",value:function(Me,ye){var _t,yt,ot=ye.progressSubscriber;function He(De){var Ut,Ve=He.subscriber,ct=He.progressSubscriber,Je=He.request;ct&&ct.error(De);try{Ut=new se(this,Je)}catch(Et){Ut=Et}Ve.error(Ut)}(Me.ontimeout=He,He.request=ye,He.subscriber=this,He.progressSubscriber=ot,Me.upload&&"withCredentials"in Me)&&(ot&&(_t=function(Ve){_t.progressSubscriber.next(Ve)},C.J.XDomainRequest?Me.onprogress=_t:Me.upload.onprogress=_t,_t.progressSubscriber=ot),Me.onerror=yt=function(Ve){var vt,Je=yt.progressSubscriber,Ut=yt.subscriber,Et=yt.request;Je&&Je.error(Ve);try{vt=new W("ajax error",this,Et)}catch(Kt){vt=Kt}Ut.error(vt)},yt.request=ye,yt.subscriber=this,yt.progressSubscriber=ot);function Bt(De){}function Se(De){var Ve=Se.subscriber,ct=Se.progressSubscriber,Je=Se.request;if(4===this.readyState){var Ut=1223===this.status?204:this.status;if(0===Ut&&(Ut=("text"===this.responseType?this.response||this.responseText:this.response)?200:0),Ut<400)ct&&ct.complete(),Ve.next(De),Ve.complete();else{var vt;ct&&ct.error(De);try{vt=new W("ajax error "+Ut,this,Je)}catch(Kt){vt=Kt}Ve.error(vt)}}}Me.onreadystatechange=Bt,Bt.subscriber=this,Bt.progressSubscriber=ot,Bt.request=ye,Me.onload=Se,Se.subscriber=this,Se.progressSubscriber=ot,Se.request=ye}},{key:"unsubscribe",value:function(){var ye=this.xhr;!this.done&&ye&&4!==ye.readyState&&"function"==typeof ye.abort&&ye.abort(),(0,U.Z)((0,B.Z)(ue.prototype),"unsubscribe",this).call(this)}}]),ue}(P.L),j=function le(de,ue,ae){(0,V.Z)(this,le),this.originalEvent=de,this.xhr=ue,this.request=ae,this.status=ue.status,this.responseType=ue.responseType||ae.responseType,this.response=oe(this.responseType,ue)},W=function(){function le(de,ue,ae){return Error.call(this),this.message=de,this.name="AjaxError",this.xhr=ue,this.request=ae,this.status=ue.status,this.responseType=ue.responseType||ae.responseType,this.response=oe(this.responseType,ue),this}return le.prototype=Object.create(Error.prototype),le}();function oe(le,de){switch(le){case"json":return function(le){return"response"in le?le.responseType?le.response:JSON.parse(le.response||le.responseText||"null"):JSON.parse(le.responseText||"null")}(de);case"xml":return de.responseXML;case"text":default:return"response"in de?de.response:de.responseText}}var se=function(le,de){return W.call(this,"ajax timeout",le,de),this.name="AjaxTimeoutError",this}},46095:function(ce,q,f){"use strict";f.d(q,{p:function(){return g}});var U=f(18967),B=f(14105),V=f(20901),Z=f(89200),T=f(10509),I=f(97154),C=f(68707),v=f(39874),P=f(89797),D=f(5051),M=f(82667),A={url:"",deserializer:function(N){return JSON.parse(N.data)},serializer:function(N){return JSON.stringify(N)}},g=function(k){(0,T.Z)(E,k);var N=(0,I.Z)(E);function E(x,S){var O;if((0,U.Z)(this,E),O=N.call(this),x instanceof P.y)O.destination=S,O.source=x;else{var L=O._config=Object.assign({},A);if(O._output=new C.xQ,"string"==typeof x)L.url=x;else for(var j in x)x.hasOwnProperty(j)&&(L[j]=x[j]);if(!L.WebSocketCtor&&WebSocket)L.WebSocketCtor=WebSocket;else if(!L.WebSocketCtor)throw new Error("no WebSocket constructor can be found");O.destination=new M.t}return O}return(0,B.Z)(E,[{key:"lift",value:function(S){var O=new E(this._config,this.destination);return O.operator=S,O.source=this,O}},{key:"_resetState",value:function(){this._socket=null,this.source||(this.destination=new M.t),this._output=new C.xQ}},{key:"multiplex",value:function(S,O,L){var j=this;return new P.y(function(K){try{j.next(S())}catch(J){K.error(J)}var W=j.subscribe(function(J){try{L(J)&&K.next(J)}catch(oe){K.error(oe)}},function(J){return K.error(J)},function(){return K.complete()});return function(){try{j.next(O())}catch(J){K.error(J)}W.unsubscribe()}})}},{key:"_connectSocket",value:function(){var S=this,O=this._config,L=O.WebSocketCtor,j=O.protocol,K=O.url,W=O.binaryType,J=this._output,oe=null;try{oe=j?new L(K,j):new L(K),this._socket=oe,W&&(this._socket.binaryType=W)}catch(se){return void J.error(se)}var te=new D.w(function(){S._socket=null,oe&&1===oe.readyState&&oe.close()});oe.onopen=function(se){if(!S._socket)return oe.close(),void S._resetState();var de=S._config.openObserver;de&&de.next(se);var ue=S.destination;S.destination=v.L.create(function(ae){if(1===oe.readyState)try{oe.send((0,S._config.serializer)(ae))}catch(ye){S.destination.error(ye)}},function(ae){var Me=S._config.closingObserver;Me&&Me.next(void 0),ae&&ae.code?oe.close(ae.code,ae.reason):J.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),S._resetState()},function(){var ae=S._config.closingObserver;ae&&ae.next(void 0),oe.close(),S._resetState()}),ue&&ue instanceof M.t&&te.add(ue.subscribe(S.destination))},oe.onerror=function(se){S._resetState(),J.error(se)},oe.onclose=function(se){S._resetState();var le=S._config.closeObserver;le&&le.next(se),se.wasClean?J.complete():J.error(se)},oe.onmessage=function(se){try{J.next((0,S._config.deserializer)(se))}catch(de){J.error(de)}}}},{key:"_subscribe",value:function(S){var O=this,L=this.source;return L?L.subscribe(S):(this._socket||this._connectSocket(),this._output.subscribe(S),S.add(function(){var j=O._socket;0===O._output.observers.length&&(j&&1===j.readyState&&j.close(),O._resetState())}),S)}},{key:"unsubscribe",value:function(){var S=this._socket;S&&1===S.readyState&&S.close(),this._resetState(),(0,V.Z)((0,Z.Z)(E.prototype),"unsubscribe",this).call(this)}}]),E}(C.ug)},30437:function(ce,q,f){"use strict";f.d(q,{h:function(){return B}});var U=f(51361),B=function(){return U.i6.create}()},99298:function(ce,q,f){"use strict";f.d(q,{j:function(){return B}});var U=f(46095);function B(V){return new U.p(V)}},93487:function(ce,q,f){"use strict";f.d(q,{E:function(){return B},c:function(){return V}});var U=f(89797),B=new U.y(function(T){return T.complete()});function V(T){return T?function(T){return new U.y(function(I){return T.schedule(function(){return I.complete()})})}(T):B}},91925:function(ce,q,f){"use strict";f.d(q,{D:function(){return C}});var U=f(10629),B=f(89797),V=f(78985),Z=f(85639),T=f(64902),I=f(61493);function C(){for(var P=arguments.length,D=new Array(P),M=0;M<P;M++)D[M]=arguments[M];if(1===D.length){var A=D[0];if((0,V.k)(A))return v(A,null);if((0,T.K)(A)&&Object.getPrototypeOf(A)===Object.prototype){var y=Object.keys(A);return v(y.map(function(k){return A[k]}),y)}}if("function"==typeof D[D.length-1]){var g=D.pop();return v(D=1===D.length&&(0,V.k)(D[0])?D[0]:D,null).pipe((0,Z.U)(function(k){return g.apply(void 0,(0,U.Z)(k))}))}return v(D,null)}function v(P,D){return new B.y(function(M){var A=P.length;if(0!==A)for(var y=new Array(A),g=0,k=0,N=function(S){var O=(0,I.D)(P[S]),L=!1;M.add(O.subscribe({next:function(K){L||(L=!0,k++),y[S]=K},error:function(K){return M.error(K)},complete:function(){(++g===A||!L)&&(k===A&&M.next(D?D.reduce(function(K,W,J){return K[W]=y[J],K},{}):y),M.complete())}}))},E=0;E<A;E++)N(E);else M.complete()})}},61493:function(ce,q,f){"use strict";f.d(q,{D:function(){return Z}});var U=f(89797),B=f(20735),V=f(77493);function Z(T,I){return I?(0,V.x)(T,I):T instanceof U.y?T:new U.y((0,B.s)(T))}},80503:function(ce,q,f){"use strict";f.d(q,{n:function(){return Z}});var U=f(89797),B=f(22312),V=f(55835);function Z(T,I){return I?(0,V.r)(T,I):new U.y((0,B.V)(T))}},33090:function(ce,q,f){"use strict";f.d(q,{R:function(){return C}});var U=f(10629),B=f(89797),V=f(78985),Z=f(20684),T=f(85639);function C(A,y,g,k){return(0,Z.m)(g)&&(k=g,g=void 0),k?C(A,y,g).pipe((0,T.U)(function(N){return(0,V.k)(N)?k.apply(void 0,(0,U.Z)(N)):k(N)})):new B.y(function(N){v(A,y,function(x){N.next(arguments.length>1?Array.prototype.slice.call(arguments):x)},N,g)})}function v(A,y,g,k,N){var E;if(function(A){return A&&"function"==typeof A.addEventListener&&"function"==typeof A.removeEventListener}(A)){var x=A;A.addEventListener(y,g,N),E=function(){return x.removeEventListener(y,g,N)}}else if(function(A){return A&&"function"==typeof A.on&&"function"==typeof A.off}(A)){var S=A;A.on(y,g),E=function(){return S.off(y,g)}}else if(function(A){return A&&"function"==typeof A.addListener&&"function"==typeof A.removeListener}(A)){var O=A;A.addListener(y,g),E=function(){return O.removeListener(y,g)}}else{if(!A||!A.length)throw new TypeError("Invalid event target");for(var L=0,j=A.length;L<j;L++)v(A[L],y,g,k,N)}k.add(E)}},57434:function(ce,q,f){"use strict";f.d(q,{F:function(){return Z}});var U=f(89797),B=f(46813),V=f(11705);function Z(){var I=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B.P;return(!(0,V.k)(I)||I<0)&&(I=0),(!C||"function"!=typeof C.schedule)&&(C=B.P),new U.y(function(v){return v.add(C.schedule(T,I,{subscriber:v,counter:0,period:I})),v})}function T(I){var C=I.subscriber,v=I.counter,P=I.period;C.next(v),this.schedule({subscriber:C,counter:v+1,period:P},P)}},55371:function(ce,q,f){"use strict";f.d(q,{T:function(){return T}});var U=f(89797),B=f(91299),V=f(65890),Z=f(80503);function T(){for(var I=Number.POSITIVE_INFINITY,C=null,v=arguments.length,P=new Array(v),D=0;D<v;D++)P[D]=arguments[D];var M=P[P.length-1];return(0,B.K)(M)?(C=P.pop(),P.length>1&&"number"==typeof P[P.length-1]&&(I=P.pop())):"number"==typeof M&&(I=P.pop()),null===C&&1===P.length&&P[0]instanceof U.y?P[0]:(0,V.J)(I)((0,Z.n)(P,C))}},43161:function(ce,q,f){"use strict";f.d(q,{of:function(){return Z}});var U=f(91299),B=f(80503),V=f(55835);function Z(){for(var T=arguments.length,I=new Array(T),C=0;C<T;C++)I[C]=arguments[C];var v=I[I.length-1];return(0,U.K)(v)?(I.pop(),(0,V.r)(I,v)):(0,B.n)(I)}},31695:function(ce,q,f){"use strict";f.d(q,{S3:function(){return P}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(78985),I=f(80503),C=f(7283),v=f(61454);function P(){for(var A=arguments.length,y=new Array(A),g=0;g<A;g++)y[g]=arguments[g];if(1===y.length){if(!(0,T.k)(y[0]))return y[0];y=y[0]}return(0,I.n)(y,void 0).lift(new D)}var D=function(){function A(){(0,V.Z)(this,A)}return(0,Z.Z)(A,[{key:"call",value:function(g,k){return k.subscribe(new M(g))}}]),A}(),M=function(A){(0,U.Z)(g,A);var y=(0,B.Z)(g);function g(k){var N;return(0,V.Z)(this,g),(N=y.call(this,k)).hasFirst=!1,N.observables=[],N.subscriptions=[],N}return(0,Z.Z)(g,[{key:"_next",value:function(N){this.observables.push(N)}},{key:"_complete",value:function(){var N=this.observables,E=N.length;if(0===E)this.destination.complete();else{for(var x=0;x<E&&!this.hasFirst;x++){var O=(0,v.D)(this,N[x],void 0,x);this.subscriptions&&this.subscriptions.push(O),this.add(O)}this.observables=null}}},{key:"notifyNext",value:function(N,E,x){if(!this.hasFirst){this.hasFirst=!0;for(var S=0;S<this.subscriptions.length;S++)if(S!==x){var O=this.subscriptions[S];O.unsubscribe(),this.remove(O)}this.subscriptions=null}this.destination.next(E)}}]),g}(C.L)},10961:function(ce,q,f){"use strict";f.d(q,{w:function(){return B},W:function(){return V}});var U=f(89797);function B(){var Z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,T=arguments.length>1?arguments[1]:void 0,I=arguments.length>2?arguments[2]:void 0;return new U.y(function(C){void 0===T&&(T=Z,Z=0);var v=0,P=Z;if(I)return I.schedule(V,0,{index:v,count:T,start:Z,subscriber:C});for(;;){if(v++>=T){C.complete();break}if(C.next(P++),C.closed)break}})}function V(Z){var T=Z.start,I=Z.index,v=Z.subscriber;I>=Z.count?v.complete():(v.next(T),!v.closed&&(Z.index=I+1,Z.start=T+1,this.schedule(Z)))}},11363:function(ce,q,f){"use strict";f.d(q,{_:function(){return B}});var U=f(89797);function B(Z,T){return new U.y(T?function(I){return T.schedule(V,0,{error:Z,subscriber:I})}:function(I){return I.error(Z)})}function V(Z){Z.subscriber.error(Z.error)}},5041:function(ce,q,f){"use strict";f.d(q,{H:function(){return T}});var U=f(89797),B=f(46813),V=f(11705),Z=f(91299);function T(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,v=arguments.length>1?arguments[1]:void 0,P=arguments.length>2?arguments[2]:void 0,D=-1;return(0,V.k)(v)?D=Number(v)<1?1:Number(v):(0,Z.K)(v)&&(P=v),(0,Z.K)(P)||(P=B.P),new U.y(function(M){var A=(0,V.k)(C)?C:+C-P.now();return P.schedule(I,A,{index:0,period:D,subscriber:M})})}function I(C){var v=C.index,P=C.period,D=C.subscriber;if(D.next(v),!D.closed){if(-1===P)return D.complete();C.index=v+1,this.schedule(C,P)}}},43008:function(ce,q,f){"use strict";f.d(q,{$R:function(){return D},mx:function(){return M}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(80503),I=f(78985),C=f(39874),v=f(81695),P=f(32124);function D(){for(var N=arguments.length,E=new Array(N),x=0;x<N;x++)E[x]=arguments[x];var S=E[E.length-1];return"function"==typeof S&&E.pop(),(0,T.n)(E,void 0).lift(new M(S))}var M=function(){function N(E){(0,V.Z)(this,N),this.resultSelector=E}return(0,Z.Z)(N,[{key:"call",value:function(x,S){return S.subscribe(new A(x,this.resultSelector))}}]),N}(),A=function(N){(0,U.Z)(x,N);var E=(0,B.Z)(x);function x(S,O){var L;return arguments.length>2&&void 0!==arguments[2]||Object.create(null),(0,V.Z)(this,x),(L=E.call(this,S)).resultSelector=O,L.iterators=[],L.active=0,L.resultSelector="function"==typeof O?O:void 0,L}return(0,Z.Z)(x,[{key:"_next",value:function(O){var L=this.iterators;(0,I.k)(O)?L.push(new g(O)):L.push("function"==typeof O[v.hZ]?new y(O[v.hZ]()):new k(this.destination,this,O))}},{key:"_complete",value:function(){var O=this.iterators,L=O.length;if(this.unsubscribe(),0!==L){this.active=L;for(var j=0;j<L;j++){var K=O[j];K.stillUnsubscribed?this.destination.add(K.subscribe()):this.active--}}else this.destination.complete()}},{key:"notifyInactive",value:function(){this.active--,0===this.active&&this.destination.complete()}},{key:"checkIterators",value:function(){for(var O=this.iterators,L=O.length,j=this.destination,K=0;K<L;K++){var W=O[K];if("function"==typeof W.hasValue&&!W.hasValue())return}for(var J=!1,oe=[],te=0;te<L;te++){var se=O[te],le=se.next();if(se.hasCompleted()&&(J=!0),le.done)return void j.complete();oe.push(le.value)}this.resultSelector?this._tryresultSelector(oe):j.next(oe),J&&j.complete()}},{key:"_tryresultSelector",value:function(O){var L;try{L=this.resultSelector.apply(this,O)}catch(j){return void this.destination.error(j)}this.destination.next(L)}}]),x}(C.L),y=function(){function N(E){(0,V.Z)(this,N),this.iterator=E,this.nextResult=E.next()}return(0,Z.Z)(N,[{key:"hasValue",value:function(){return!0}},{key:"next",value:function(){var x=this.nextResult;return this.nextResult=this.iterator.next(),x}},{key:"hasCompleted",value:function(){var x=this.nextResult;return Boolean(x&&x.done)}}]),N}(),g=function(){function N(E){(0,V.Z)(this,N),this.array=E,this.index=0,this.length=0,this.length=E.length}return(0,Z.Z)(N,[{key:v.hZ,value:function(){return this}},{key:"next",value:function(x){var S=this.index++;return S<this.length?{value:this.array[S],done:!1}:{value:null,done:!0}}},{key:"hasValue",value:function(){return this.array.length>this.index}},{key:"hasCompleted",value:function(){return this.array.length===this.index}}]),N}(),k=function(N){(0,U.Z)(x,N);var E=(0,B.Z)(x);function x(S,O,L){var j;return(0,V.Z)(this,x),(j=E.call(this,S)).parent=O,j.observable=L,j.stillUnsubscribed=!0,j.buffer=[],j.isComplete=!1,j}return(0,Z.Z)(x,[{key:v.hZ,value:function(){return this}},{key:"next",value:function(){var O=this.buffer;return 0===O.length&&this.isComplete?{value:null,done:!0}:{value:O.shift(),done:!1}}},{key:"hasValue",value:function(){return this.buffer.length>0}},{key:"hasCompleted",value:function(){return 0===this.buffer.length&&this.isComplete}},{key:"notifyComplete",value:function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}},{key:"notifyNext",value:function(O){this.buffer.push(O),this.parent.checkIterators()}},{key:"subscribe",value:function(){return(0,P.ft)(this.observable,new P.IY(this))}}]),x}(P.Ds)},67494:function(ce,q,f){"use strict";f.d(q,{U:function(){return I}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(32124);function I(P){return function(M){return M.lift(new C(P))}}var C=function(){function P(D){(0,V.Z)(this,P),this.durationSelector=D}return(0,Z.Z)(P,[{key:"call",value:function(M,A){return A.subscribe(new v(M,this.durationSelector))}}]),P}(),v=function(P){(0,U.Z)(M,P);var D=(0,B.Z)(M);function M(A,y){var g;return(0,V.Z)(this,M),(g=D.call(this,A)).durationSelector=y,g.hasValue=!1,g}return(0,Z.Z)(M,[{key:"_next",value:function(y){if(this.value=y,this.hasValue=!0,!this.throttled){var g;try{g=(0,this.durationSelector)(y)}catch(E){return this.destination.error(E)}var N=(0,T.ft)(g,new T.IY(this));!N||N.closed?this.clearThrottle():this.add(this.throttled=N)}}},{key:"clearThrottle",value:function(){var y=this.value,g=this.hasValue,k=this.throttled;k&&(this.remove(k),this.throttled=void 0,k.unsubscribe()),g&&(this.value=void 0,this.hasValue=!1,this.destination.next(y))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),M}(T.Ds)},54562:function(ce,q,f){"use strict";f.d(q,{e:function(){return Z}});var U=f(46813),B=f(67494),V=f(5041);function Z(T){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.P;return(0,B.U)(function(){return(0,V.H)(T,I)})}},13426:function(ce,q,f){"use strict";f.d(q,{K:function(){return v}});var U=f(20901),B=f(89200),V=f(10509),Z=f(97154),T=f(18967),I=f(14105),C=f(32124);function v(M){return function(y){var g=new P(M),k=y.lift(g);return g.caught=k}}var P=function(){function M(A){(0,T.Z)(this,M),this.selector=A}return(0,I.Z)(M,[{key:"call",value:function(y,g){return g.subscribe(new D(y,this.selector,this.caught))}}]),M}(),D=function(M){(0,V.Z)(y,M);var A=(0,Z.Z)(y);function y(g,k,N){var E;return(0,T.Z)(this,y),(E=A.call(this,g)).selector=k,E.caught=N,E}return(0,I.Z)(y,[{key:"error",value:function(k){if(!this.isStopped){var N;try{N=this.selector(k,this.caught)}catch(S){return void(0,U.Z)((0,B.Z)(y.prototype),"error",this).call(this,S)}this._unsubscribeAndRecycle();var E=new C.IY(this);this.add(E);var x=(0,C.ft)(N,E);x!==E&&this.add(x)}}}]),y}(C.Ds)},95416:function(ce,q,f){"use strict";f.d(q,{u:function(){return B}});var U=f(65890);function B(){return(0,U.J)(1)}},38575:function(ce,q,f){"use strict";f.d(q,{b:function(){return B}});var U=f(35135);function B(V,Z){return(0,U.zg)(V,Z,1)}},75398:function(ce,q,f){"use strict";f.d(q,{Q:function(){return I}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(39874);function I(P){return function(D){return D.lift(new C(P,D))}}var C=function(){function P(D,M){(0,V.Z)(this,P),this.predicate=D,this.source=M}return(0,Z.Z)(P,[{key:"call",value:function(M,A){return A.subscribe(new v(M,this.predicate,this.source))}}]),P}(),v=function(P){(0,U.Z)(M,P);var D=(0,B.Z)(M);function M(A,y,g){var k;return(0,V.Z)(this,M),(k=D.call(this,A)).predicate=y,k.source=g,k.count=0,k.index=0,k}return(0,Z.Z)(M,[{key:"_next",value:function(y){this.predicate?this._tryPredicate(y):this.count++}},{key:"_tryPredicate",value:function(y){var g;try{g=this.predicate(y,this.index++,this.source)}catch(k){return void this.destination.error(k)}g&&this.count++}},{key:"_complete",value:function(){this.destination.next(this.count),this.destination.complete()}}]),M}(T.L)},57263:function(ce,q,f){"use strict";f.d(q,{b:function(){return C}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(39874),I=f(46813);function C(M){var A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:I.P;return function(y){return y.lift(new v(M,A))}}var v=function(){function M(A,y){(0,V.Z)(this,M),this.dueTime=A,this.scheduler=y}return(0,Z.Z)(M,[{key:"call",value:function(y,g){return g.subscribe(new P(y,this.dueTime,this.scheduler))}}]),M}(),P=function(M){(0,U.Z)(y,M);var A=(0,B.Z)(y);function y(g,k,N){var E;return(0,V.Z)(this,y),(E=A.call(this,g)).dueTime=k,E.scheduler=N,E.debouncedSubscription=null,E.lastValue=null,E.hasValue=!1,E}return(0,Z.Z)(y,[{key:"_next",value:function(k){this.clearDebounce(),this.lastValue=k,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(D,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var k=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(k)}}},{key:"clearDebounce",value:function(){var k=this.debouncedSubscription;null!==k&&(this.remove(k),k.unsubscribe(),this.debouncedSubscription=null)}}]),y}(T.L);function D(M){M.debouncedNext()}},34235:function(ce,q,f){"use strict";f.d(q,{d:function(){return I}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(39874);function I(){var P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(D){return D.lift(new C(P))}}var C=function(){function P(D){(0,V.Z)(this,P),this.defaultValue=D}return(0,Z.Z)(P,[{key:"call",value:function(M,A){return A.subscribe(new v(M,this.defaultValue))}}]),P}(),v=function(P){(0,U.Z)(M,P);var D=(0,B.Z)(M);function M(A,y){var g;return(0,V.Z)(this,M),(g=D.call(this,A)).defaultValue=y,g.isEmpty=!0,g}return(0,Z.Z)(M,[{key:"_next",value:function(y){this.isEmpty=!1,this.destination.next(y)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),M}(T.L)},86004:function(ce,q,f){"use strict";f.d(q,{g:function(){return P}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(46813),I=f(88972),C=f(39874),v=f(80286);function P(y){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T.P,k=(0,I.J)(y),N=k?+y-g.now():Math.abs(y);return function(E){return E.lift(new D(N,g))}}var D=function(){function y(g,k){(0,V.Z)(this,y),this.delay=g,this.scheduler=k}return(0,Z.Z)(y,[{key:"call",value:function(k,N){return N.subscribe(new M(k,this.delay,this.scheduler))}}]),y}(),M=function(y){(0,U.Z)(k,y);var g=(0,B.Z)(k);function k(N,E,x){var S;return(0,V.Z)(this,k),(S=g.call(this,N)).delay=E,S.scheduler=x,S.queue=[],S.active=!1,S.errored=!1,S}return(0,Z.Z)(k,[{key:"_schedule",value:function(E){this.active=!0,this.destination.add(E.schedule(k.dispatch,this.delay,{source:this,destination:this.destination,scheduler:E}))}},{key:"scheduleNotification",value:function(E){if(!0!==this.errored){var x=this.scheduler,S=new A(x.now()+this.delay,E);this.queue.push(S),!1===this.active&&this._schedule(x)}}},{key:"_next",value:function(E){this.scheduleNotification(v.P.createNext(E))}},{key:"_error",value:function(E){this.errored=!0,this.queue=[],this.destination.error(E),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(v.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(E){for(var x=E.source,S=x.queue,O=E.scheduler,L=E.destination;S.length>0&&S[0].time-O.now()<=0;)S.shift().notification.observe(L);if(S.length>0){var j=Math.max(0,S[0].time-O.now());this.schedule(E,j)}else this.unsubscribe(),x.active=!1}}]),k}(C.L),A=function y(g,k){(0,V.Z)(this,y),this.time=g,this.notification=k}},76161:function(ce,q,f){"use strict";f.d(q,{x:function(){return I}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(39874);function I(P,D){return function(M){return M.lift(new C(P,D))}}var C=function(){function P(D,M){(0,V.Z)(this,P),this.compare=D,this.keySelector=M}return(0,Z.Z)(P,[{key:"call",value:function(M,A){return A.subscribe(new v(M,this.compare,this.keySelector))}}]),P}(),v=function(P){(0,U.Z)(M,P);var D=(0,B.Z)(M);function M(A,y,g){var k;return(0,V.Z)(this,M),(k=D.call(this,A)).keySelector=g,k.hasKey=!1,"function"==typeof y&&(k.compare=y),k}return(0,Z.Z)(M,[{key:"compare",value:function(y,g){return y===g}},{key:"_next",value:function(y){var g;try{var k=this.keySelector;g=k?k(y):y}catch(x){return this.destination.error(x)}var N=!1;if(this.hasKey)try{N=(0,this.compare)(this.key,g)}catch(x){return this.destination.error(x)}else this.hasKey=!0;N||(this.key=g,this.destination.next(y))}}]),M}(T.L)},58780:function(ce,q,f){"use strict";f.d(q,{h:function(){return I}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(39874);function I(P,D){return function(A){return A.lift(new C(P,D))}}var C=function(){function P(D,M){(0,V.Z)(this,P),this.predicate=D,this.thisArg=M}return(0,Z.Z)(P,[{key:"call",value:function(M,A){return A.subscribe(new v(M,this.predicate,this.thisArg))}}]),P}(),v=function(P){(0,U.Z)(M,P);var D=(0,B.Z)(M);function M(A,y,g){var k;return(0,V.Z)(this,M),(k=D.call(this,A)).predicate=y,k.thisArg=g,k.count=0,k}return(0,Z.Z)(M,[{key:"_next",value:function(y){var g;try{g=this.predicate.call(this.thisArg,y,this.count++)}catch(k){return void this.destination.error(k)}g&&this.destination.next(y)}}]),M}(T.L)},59803:function(ce,q,f){"use strict";f.d(q,{x:function(){return C}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(39874),I=f(5051);function C(D){return function(M){return M.lift(new v(D))}}var v=function(){function D(M){(0,V.Z)(this,D),this.callback=M}return(0,Z.Z)(D,[{key:"call",value:function(A,y){return y.subscribe(new P(A,this.callback))}}]),D}(),P=function(D){(0,U.Z)(A,D);var M=(0,B.Z)(A);function A(y,g){var k;return(0,V.Z)(this,A),(k=M.call(this,y)).add(new I.w(g)),k}return A}(T.L)},64233:function(ce,q,f){"use strict";f.d(q,{P:function(){return C}});var U=f(64646),B=f(58780),V=f(48359),Z=f(34235),T=f(88942),I=f(57070);function C(v,P){var D=arguments.length>=2;return function(M){return M.pipe(v?(0,B.h)(function(A,y){return v(A,y,M)}):I.y,(0,V.q)(1),D?(0,Z.d)(P):(0,T.T)(function(){return new U.K}))}}},86072:function(ce,q,f){"use strict";f.d(q,{v:function(){return M},T:function(){return k}});var U=f(20901),B=f(89200),V=f(10509),Z=f(97154),T=f(18967),I=f(14105),C=f(39874),v=f(5051),P=f(89797),D=f(68707);function M(E,x,S,O){return function(L){return L.lift(new A(E,x,S,O))}}var A=function(){function E(x,S,O,L){(0,T.Z)(this,E),this.keySelector=x,this.elementSelector=S,this.durationSelector=O,this.subjectSelector=L}return(0,I.Z)(E,[{key:"call",value:function(S,O){return O.subscribe(new y(S,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}]),E}(),y=function(E){(0,V.Z)(S,E);var x=(0,Z.Z)(S);function S(O,L,j,K,W){var J;return(0,T.Z)(this,S),(J=x.call(this,O)).keySelector=L,J.elementSelector=j,J.durationSelector=K,J.subjectSelector=W,J.groups=null,J.attemptedToUnsubscribe=!1,J.count=0,J}return(0,I.Z)(S,[{key:"_next",value:function(L){var j;try{j=this.keySelector(L)}catch(K){return void this.error(K)}this._group(L,j)}},{key:"_group",value:function(L,j){var K=this.groups;K||(K=this.groups=new Map);var J,W=K.get(j);if(this.elementSelector)try{J=this.elementSelector(L)}catch(se){this.error(se)}else J=L;if(!W){W=this.subjectSelector?this.subjectSelector():new D.xQ,K.set(j,W);var oe=new k(j,W,this);if(this.destination.next(oe),this.durationSelector){var te;try{te=this.durationSelector(new k(j,W))}catch(se){return void this.error(se)}this.add(te.subscribe(new g(j,W,this)))}}W.closed||W.next(J)}},{key:"_error",value:function(L){var j=this.groups;j&&(j.forEach(function(K,W){K.error(L)}),j.clear()),this.destination.error(L)}},{key:"_complete",value:function(){var L=this.groups;L&&(L.forEach(function(j,K){j.complete()}),L.clear()),this.destination.complete()}},{key:"removeGroup",value:function(L){this.groups.delete(L)}},{key:"unsubscribe",value:function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&(0,U.Z)((0,B.Z)(S.prototype),"unsubscribe",this).call(this))}}]),S}(C.L),g=function(E){(0,V.Z)(S,E);var x=(0,Z.Z)(S);function S(O,L,j){var K;return(0,T.Z)(this,S),(K=x.call(this,L)).key=O,K.group=L,K.parent=j,K}return(0,I.Z)(S,[{key:"_next",value:function(L){this.complete()}},{key:"_unsubscribe",value:function(){var L=this.parent,j=this.key;this.key=this.parent=null,L&&L.removeGroup(j)}}]),S}(C.L),k=function(E){(0,V.Z)(S,E);var x=(0,Z.Z)(S);function S(O,L,j){var K;return(0,T.Z)(this,S),(K=x.call(this)).key=O,K.groupSubject=L,K.refCountSubscription=j,K}return(0,I.Z)(S,[{key:"_subscribe",value:function(L){var j=new v.w,K=this.refCountSubscription,W=this.groupSubject;return K&&!K.closed&&j.add(new N(K)),j.add(W.subscribe(L)),j}}]),S}(P.y),N=function(E){(0,V.Z)(S,E);var x=(0,Z.Z)(S);function S(O){var L;return(0,T.Z)(this,S),(L=x.call(this)).parent=O,O.count++,L}return(0,I.Z)(S,[{key:"unsubscribe",value:function(){var L=this.parent;!L.closed&&!this.closed&&((0,U.Z)((0,B.Z)(S.prototype),"unsubscribe",this).call(this),L.count-=1,0===L.count&&L.attemptedToUnsubscribe&&L.unsubscribe())}}]),S}(v.w)},99583:function(ce,q,f){"use strict";f.d(q,{Z:function(){return C}});var U=f(64646),B=f(58780),V=f(64397),Z=f(88942),T=f(34235),I=f(57070);function C(v,P){var D=arguments.length>=2;return function(M){return M.pipe(v?(0,B.h)(function(A,y){return v(A,y,M)}):I.y,(0,V.h)(1),D?(0,T.d)(P):(0,Z.T)(function(){return new U.K}))}}},85639:function(ce,q,f){"use strict";f.d(q,{U:function(){return C}});var U=f(88009),B=f(10509),V=f(97154),Z=f(18967),T=f(14105),I=f(39874);function C(D,M){return function(y){if("function"!=typeof D)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return y.lift(new v(D,M))}}var v=function(){function D(M,A){(0,Z.Z)(this,D),this.project=M,this.thisArg=A}return(0,T.Z)(D,[{key:"call",value:function(A,y){return y.subscribe(new P(A,this.project,this.thisArg))}}]),D}(),P=function(D){(0,B.Z)(A,D);var M=(0,V.Z)(A);function A(y,g,k){var N;return(0,Z.Z)(this,A),(N=M.call(this,y)).project=g,N.count=0,N.thisArg=k||(0,U.Z)(N),N}return(0,T.Z)(A,[{key:"_next",value:function(g){var k;try{k=this.project.call(this.thisArg,g,this.count++)}catch(N){return void this.destination.error(N)}this.destination.next(k)}}]),A}(I.L)},12698:function(ce,q,f){"use strict";f.d(q,{h:function(){return I}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(39874);function I(P){return function(D){return D.lift(new C(P))}}var C=function(){function P(D){(0,V.Z)(this,P),this.value=D}return(0,Z.Z)(P,[{key:"call",value:function(M,A){return A.subscribe(new v(M,this.value))}}]),P}(),v=function(P){(0,U.Z)(M,P);var D=(0,B.Z)(M);function M(A,y){var g;return(0,V.Z)(this,M),(g=D.call(this,A)).value=y,g}return(0,Z.Z)(M,[{key:"_next",value:function(y){this.destination.next(this.value)}}]),M}(T.L)},65890:function(ce,q,f){"use strict";f.d(q,{J:function(){return V}});var U=f(35135),B=f(57070);function V(){var Z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return(0,U.zg)(B.y,Z)}},35135:function(ce,q,f){"use strict";f.d(q,{zg:function(){return v},VS:function(){return M}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(85639),I=f(61493),C=f(32124);function v(A,y){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof y?function(k){return k.pipe(v(function(N,E){return(0,I.D)(A(N,E)).pipe((0,T.U)(function(x,S){return y(N,x,E,S)}))},g))}:("number"==typeof y&&(g=y),function(k){return k.lift(new P(A,g))})}var P=function(){function A(y){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;(0,V.Z)(this,A),this.project=y,this.concurrent=g}return(0,Z.Z)(A,[{key:"call",value:function(g,k){return k.subscribe(new D(g,this.project,this.concurrent))}}]),A}(),D=function(A){(0,U.Z)(g,A);var y=(0,B.Z)(g);function g(k,N){var E,x=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return(0,V.Z)(this,g),(E=y.call(this,k)).project=N,E.concurrent=x,E.hasCompleted=!1,E.buffer=[],E.active=0,E.index=0,E}return(0,Z.Z)(g,[{key:"_next",value:function(N){this.active<this.concurrent?this._tryNext(N):this.buffer.push(N)}},{key:"_tryNext",value:function(N){var E,x=this.index++;try{E=this.project(N,x)}catch(S){return void this.destination.error(S)}this.active++,this._innerSub(E)}},{key:"_innerSub",value:function(N){var E=new C.IY(this),x=this.destination;x.add(E);var S=(0,C.ft)(N,E);S!==E&&x.add(S)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(N){this.destination.next(N)}},{key:"notifyComplete",value:function(){var N=this.buffer;this.active--,N.length>0?this._next(N.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),g}(C.Ds),M=v},4981:function(ce,q,f){"use strict";f.d(q,{O:function(){return Z}});var U=f(18967),B=f(14105),V=f(39887);function Z(I,C){return function(P){var D;if(D="function"==typeof I?I:function(){return I},"function"==typeof C)return P.lift(new T(D,C));var M=Object.create(P,V.N);return M.source=P,M.subjectFactory=D,M}}var T=function(){function I(C,v){(0,U.Z)(this,I),this.subjectFactory=C,this.selector=v}return(0,B.Z)(I,[{key:"call",value:function(v,P){var D=this.selector,M=this.subjectFactory(),A=D(M).subscribe(v);return A.add(P.subscribe(M)),A}}]),I}()},25110:function(ce,q,f){"use strict";f.d(q,{QV:function(){return C},ht:function(){return P}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(39874),I=f(80286);function C(M){var A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(g){return g.lift(new v(M,A))}}var v=function(){function M(A){var y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,V.Z)(this,M),this.scheduler=A,this.delay=y}return(0,Z.Z)(M,[{key:"call",value:function(y,g){return g.subscribe(new P(y,this.scheduler,this.delay))}}]),M}(),P=function(M){(0,U.Z)(y,M);var A=(0,B.Z)(y);function y(g,k){var N,E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return(0,V.Z)(this,y),(N=A.call(this,g)).scheduler=k,N.delay=E,N}return(0,Z.Z)(y,[{key:"scheduleMessage",value:function(k){this.destination.add(this.scheduler.schedule(y.dispatch,this.delay,new D(k,this.destination)))}},{key:"_next",value:function(k){this.scheduleMessage(I.P.createNext(k))}},{key:"_error",value:function(k){this.scheduleMessage(I.P.createError(k)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(I.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(k){k.notification.observe(k.destination),this.unsubscribe()}}]),y}(T.L),D=function M(A,y){(0,V.Z)(this,M),this.notification=A,this.destination=y}},4363:function(ce,q,f){"use strict";f.d(q,{G:function(){return I}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(39874);function I(){return function(P){return P.lift(new C)}}var C=function(){function P(){(0,V.Z)(this,P)}return(0,Z.Z)(P,[{key:"call",value:function(M,A){return A.subscribe(new v(M))}}]),P}(),v=function(P){(0,U.Z)(M,P);var D=(0,B.Z)(M);function M(A){var y;return(0,V.Z)(this,M),(y=D.call(this,A)).hasPrev=!1,y}return(0,Z.Z)(M,[{key:"_next",value:function(y){var g;this.hasPrev?g=[this.prev,y]:this.hasPrev=!0,this.prev=y,g&&this.destination.next(g)}}]),M}(T.L)},26575:function(ce,q,f){"use strict";f.d(q,{x:function(){return I}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(39874);function I(){return function(D){return D.lift(new C(D))}}var C=function(){function P(D){(0,V.Z)(this,P),this.connectable=D}return(0,Z.Z)(P,[{key:"call",value:function(M,A){var y=this.connectable;y._refCount++;var g=new v(M,y),k=A.subscribe(g);return g.closed||(g.connection=y.connect()),k}}]),P}(),v=function(P){(0,U.Z)(M,P);var D=(0,B.Z)(M);function M(A,y){var g;return(0,V.Z)(this,M),(g=D.call(this,A)).connectable=y,g}return(0,Z.Z)(M,[{key:"_unsubscribe",value:function(){var y=this.connectable;if(y){this.connectable=null;var g=y._refCount;if(g<=0)this.connection=null;else if(y._refCount=g-1,g>1)this.connection=null;else{var k=this.connection,N=y._connection;this.connection=null,N&&(!k||N===k)&&N.unsubscribe()}}else this.connection=null}}]),M}(T.L)},31927:function(ce,q,f){"use strict";f.d(q,{R:function(){return I}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(39874);function I(P,D){var M=!1;return arguments.length>=2&&(M=!0),function(y){return y.lift(new C(P,D,M))}}var C=function(){function P(D,M){var A=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,V.Z)(this,P),this.accumulator=D,this.seed=M,this.hasSeed=A}return(0,Z.Z)(P,[{key:"call",value:function(M,A){return A.subscribe(new v(M,this.accumulator,this.seed,this.hasSeed))}}]),P}(),v=function(P){(0,U.Z)(M,P);var D=(0,B.Z)(M);function M(A,y,g,k){var N;return(0,V.Z)(this,M),(N=D.call(this,A)).accumulator=y,N._seed=g,N.hasSeed=k,N.index=0,N}return(0,Z.Z)(M,[{key:"seed",get:function(){return this._seed},set:function(y){this.hasSeed=!0,this._seed=y}},{key:"_next",value:function(y){if(this.hasSeed)return this._tryNext(y);this.seed=y,this.destination.next(y)}},{key:"_tryNext",value:function(y){var k,g=this.index++;try{k=this.accumulator(this.seed,y,g)}catch(N){this.destination.error(N)}this.seed=k,this.destination.next(k)}}]),M}(T.L)},16338:function(ce,q,f){"use strict";f.d(q,{B:function(){return T}});var U=f(4981),B=f(26575),V=f(68707);function Z(){return new V.xQ}function T(){return function(I){return(0,B.x)()((0,U.O)(Z)(I))}}},61106:function(ce,q,f){"use strict";f.d(q,{d:function(){return B}});var U=f(82667);function B(Z,T,I){var C;return C=Z&&"object"==typeof Z?Z:{bufferSize:Z,windowTime:T,refCount:!1,scheduler:I},function(v){return v.lift(function(Z){var M,y,T=Z.bufferSize,I=void 0===T?Number.POSITIVE_INFINITY:T,C=Z.windowTime,v=void 0===C?Number.POSITIVE_INFINITY:C,P=Z.refCount,D=Z.scheduler,A=0,g=!1,k=!1;return function(E){var x;A++,!M||g?(g=!1,M=new U.t(I,v,D),x=M.subscribe(this),y=E.subscribe({next:function(O){M.next(O)},error:function(O){g=!0,M.error(O)},complete:function(){k=!0,y=void 0,M.complete()}}),k&&(y=void 0)):x=M.subscribe(this),this.add(function(){A--,x.unsubscribe(),x=void 0,y&&!k&&P&&0===A&&(y.unsubscribe(),y=void 0,M=void 0)})}}(C))}}},18756:function(ce,q,f){"use strict";f.d(q,{T:function(){return I}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(39874);function I(P){return function(D){return D.lift(new C(P))}}var C=function(){function P(D){(0,V.Z)(this,P),this.total=D}return(0,Z.Z)(P,[{key:"call",value:function(M,A){return A.subscribe(new v(M,this.total))}}]),P}(),v=function(P){(0,U.Z)(M,P);var D=(0,B.Z)(M);function M(A,y){var g;return(0,V.Z)(this,M),(g=D.call(this,A)).total=y,g.count=0,g}return(0,Z.Z)(M,[{key:"_next",value:function(y){++this.count>this.total&&this.destination.next(y)}}]),M}(T.L)},57682:function(ce,q,f){"use strict";f.d(q,{O:function(){return V}});var U=f(60131),B=f(91299);function V(){for(var Z=arguments.length,T=new Array(Z),I=0;I<Z;I++)T[I]=arguments[I];var C=T[T.length-1];return(0,B.K)(C)?(T.pop(),function(v){return(0,U.z)(T,v,C)}):function(v){return(0,U.z)(T,v)}}},34487:function(ce,q,f){"use strict";f.d(q,{w:function(){return D}});var U=f(20901),B=f(89200),V=f(10509),Z=f(97154),T=f(18967),I=f(14105),C=f(85639),v=f(61493),P=f(32124);function D(y,g){return"function"==typeof g?function(k){return k.pipe(D(function(N,E){return(0,v.D)(y(N,E)).pipe((0,C.U)(function(x,S){return g(N,x,E,S)}))}))}:function(k){return k.lift(new M(y))}}var M=function(){function y(g){(0,T.Z)(this,y),this.project=g}return(0,I.Z)(y,[{key:"call",value:function(k,N){return N.subscribe(new A(k,this.project))}}]),y}(),A=function(y){(0,V.Z)(k,y);var g=(0,Z.Z)(k);function k(N,E){var x;return(0,T.Z)(this,k),(x=g.call(this,N)).project=E,x.index=0,x}return(0,I.Z)(k,[{key:"_next",value:function(E){var x,S=this.index++;try{x=this.project(E,S)}catch(O){return void this.destination.error(O)}this._innerSub(x)}},{key:"_innerSub",value:function(E){var x=this.innerSubscription;x&&x.unsubscribe();var S=new P.IY(this),O=this.destination;O.add(S),this.innerSubscription=(0,P.ft)(E,S),this.innerSubscription!==S&&O.add(this.innerSubscription)}},{key:"_complete",value:function(){var E=this.innerSubscription;(!E||E.closed)&&(0,U.Z)((0,B.Z)(k.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=void 0}},{key:"notifyComplete",value:function(){this.innerSubscription=void 0,this.isStopped&&(0,U.Z)((0,B.Z)(k.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(E){this.destination.next(E)}}]),k}(P.Ds)},48359:function(ce,q,f){"use strict";f.d(q,{q:function(){return v}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(39874),I=f(9855),C=f(93487);function v(M){return function(A){return 0===M?(0,C.c)():A.lift(new P(M))}}var P=function(){function M(A){if((0,V.Z)(this,M),this.total=A,this.total<0)throw new I.W}return(0,Z.Z)(M,[{key:"call",value:function(y,g){return g.subscribe(new D(y,this.total))}}]),M}(),D=function(M){(0,U.Z)(y,M);var A=(0,B.Z)(y);function y(g,k){var N;return(0,V.Z)(this,y),(N=A.call(this,g)).total=k,N.count=0,N}return(0,Z.Z)(y,[{key:"_next",value:function(k){var N=this.total,E=++this.count;E<=N&&(this.destination.next(k),E===N&&(this.destination.complete(),this.unsubscribe()))}}]),y}(T.L)},64397:function(ce,q,f){"use strict";f.d(q,{h:function(){return v}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(39874),I=f(9855),C=f(93487);function v(M){return function(y){return 0===M?(0,C.c)():y.lift(new P(M))}}var P=function(){function M(A){if((0,V.Z)(this,M),this.total=A,this.total<0)throw new I.W}return(0,Z.Z)(M,[{key:"call",value:function(y,g){return g.subscribe(new D(y,this.total))}}]),M}(),D=function(M){(0,U.Z)(y,M);var A=(0,B.Z)(y);function y(g,k){var N;return(0,V.Z)(this,y),(N=A.call(this,g)).total=k,N.ring=new Array,N.count=0,N}return(0,Z.Z)(y,[{key:"_next",value:function(k){var N=this.ring,E=this.total,x=this.count++;N.length<E?N.push(k):N[x%E]=k}},{key:"_complete",value:function(){var k=this.destination,N=this.count;if(N>0)for(var E=this.count>=this.total?this.total:this.count,x=this.ring,S=0;S<E;S++){var O=N++%E;k.next(x[O])}k.complete()}}]),y}(T.L)},44213:function(ce,q,f){"use strict";f.d(q,{R:function(){return I}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(32124);function I(P){return function(D){return D.lift(new C(P))}}var C=function(){function P(D){(0,V.Z)(this,P),this.notifier=D}return(0,Z.Z)(P,[{key:"call",value:function(M,A){var y=new v(M),g=(0,T.ft)(this.notifier,new T.IY(y));return g&&!y.seenValue?(y.add(g),A.subscribe(y)):y}}]),P}(),v=function(P){(0,U.Z)(M,P);var D=(0,B.Z)(M);function M(A){var y;return(0,V.Z)(this,M),(y=D.call(this,A)).seenValue=!1,y}return(0,Z.Z)(M,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),M}(T.Ds)},49196:function(ce,q,f){"use strict";f.d(q,{o:function(){return I}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(39874);function I(P){var D=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(M){return M.lift(new C(P,D))}}var C=function(){function P(D,M){(0,V.Z)(this,P),this.predicate=D,this.inclusive=M}return(0,Z.Z)(P,[{key:"call",value:function(M,A){return A.subscribe(new v(M,this.predicate,this.inclusive))}}]),P}(),v=function(P){(0,U.Z)(M,P);var D=(0,B.Z)(M);function M(A,y,g){var k;return(0,V.Z)(this,M),(k=D.call(this,A)).predicate=y,k.inclusive=g,k.index=0,k}return(0,Z.Z)(M,[{key:"_next",value:function(y){var k,g=this.destination;try{k=this.predicate(y,this.index++)}catch(N){return void g.error(N)}this.nextOrComplete(y,k)}},{key:"nextOrComplete",value:function(y,g){var k=this.destination;Boolean(g)?k.next(y):(this.inclusive&&k.next(y),k.complete())}}]),M}(T.L)},59371:function(ce,q,f){"use strict";f.d(q,{b:function(){return P}});var U=f(88009),B=f(10509),V=f(97154),Z=f(18967),T=f(14105),I=f(39874),C=f(66029),v=f(20684);function P(A,y,g){return function(N){return N.lift(new D(A,y,g))}}var D=function(){function A(y,g,k){(0,Z.Z)(this,A),this.nextOrObserver=y,this.error=g,this.complete=k}return(0,T.Z)(A,[{key:"call",value:function(g,k){return k.subscribe(new M(g,this.nextOrObserver,this.error,this.complete))}}]),A}(),M=function(A){(0,B.Z)(g,A);var y=(0,V.Z)(g);function g(k,N,E,x){var S;return(0,Z.Z)(this,g),(S=y.call(this,k))._tapNext=C.Z,S._tapError=C.Z,S._tapComplete=C.Z,S._tapError=E||C.Z,S._tapComplete=x||C.Z,(0,v.m)(N)?(S._context=(0,U.Z)(S),S._tapNext=N):N&&(S._context=N,S._tapNext=N.next||C.Z,S._tapError=N.error||C.Z,S._tapComplete=N.complete||C.Z),S}return(0,T.Z)(g,[{key:"_next",value:function(N){try{this._tapNext.call(this._context,N)}catch(E){return void this.destination.error(E)}this.destination.next(N)}},{key:"_error",value:function(N){try{this._tapError.call(this._context,N)}catch(E){return void this.destination.error(E)}this.destination.error(N)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(N){return void this.destination.error(N)}return this.destination.complete()}}]),g}(I.L)},243:function(ce,q,f){"use strict";f.d(q,{d:function(){return I},P:function(){return C}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(32124),I={leading:!0,trailing:!1};function C(D){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:I;return function(A){return A.lift(new v(D,!!M.leading,!!M.trailing))}}var v=function(){function D(M,A,y){(0,V.Z)(this,D),this.durationSelector=M,this.leading=A,this.trailing=y}return(0,Z.Z)(D,[{key:"call",value:function(A,y){return y.subscribe(new P(A,this.durationSelector,this.leading,this.trailing))}}]),D}(),P=function(D){(0,U.Z)(A,D);var M=(0,B.Z)(A);function A(y,g,k,N){var E;return(0,V.Z)(this,A),(E=M.call(this,y)).destination=y,E.durationSelector=g,E._leading=k,E._trailing=N,E._hasValue=!1,E}return(0,Z.Z)(A,[{key:"_next",value:function(g){this._hasValue=!0,this._sendValue=g,this._throttled||(this._leading?this.send():this.throttle(g))}},{key:"send",value:function(){var k=this._sendValue;this._hasValue&&(this.destination.next(k),this.throttle(k)),this._hasValue=!1,this._sendValue=void 0}},{key:"throttle",value:function(g){var k=this.tryDurationSelector(g);k&&this.add(this._throttled=(0,T.ft)(k,new T.IY(this)))}},{key:"tryDurationSelector",value:function(g){try{return this.durationSelector(g)}catch(k){return this.destination.error(k),null}}},{key:"throttlingDone",value:function(){var g=this._throttled,k=this._trailing;g&&g.unsubscribe(),this._throttled=void 0,k&&this.send()}},{key:"notifyNext",value:function(){this.throttlingDone()}},{key:"notifyComplete",value:function(){this.throttlingDone()}}]),A}(T.Ds)},88942:function(ce,q,f){"use strict";f.d(q,{T:function(){return C}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),T=f(64646),I=f(39874);function C(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D;return function(A){return A.lift(new v(M))}}var v=function(){function M(A){(0,V.Z)(this,M),this.errorFactory=A}return(0,Z.Z)(M,[{key:"call",value:function(y,g){return g.subscribe(new P(y,this.errorFactory))}}]),M}(),P=function(M){(0,U.Z)(y,M);var A=(0,B.Z)(y);function y(g,k){var N;return(0,V.Z)(this,y),(N=A.call(this,g)).errorFactory=k,N.hasValue=!1,N}return(0,Z.Z)(y,[{key:"_next",value:function(k){this.hasValue=!0,this.destination.next(k)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var k;try{k=this.errorFactory()}catch(N){k=N}this.destination.error(k)}}]),y}(I.L);function D(){return new T.K}},73445:function(ce,q,f){"use strict";f.d(q,{J:function(){return I},R:function(){return C}});var U=f(18967),B=f(46813),V=f(31927),Z=f(4499),T=f(85639);function I(){var v=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B.P;return function(P){return(0,Z.P)(function(){return P.pipe((0,V.R)(function(D,M){var A=D.current;return{value:M,current:v.now(),last:A}},{current:v.now(),value:void 0,last:void 0}),(0,T.U)(function(D){return new C(D.value,D.current-D.last)}))})}}var C=function v(P,D){(0,U.Z)(this,v),this.value=P,this.interval=D}},63706:function(ce,q,f){"use strict";f.d(q,{A:function(){return Z},E:function(){return T}});var U=f(18967),B=f(46813),V=f(85639);function Z(){var I=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B.P;return(0,V.U)(function(C){return new T(C,I.now())})}var T=function I(C,v){(0,U.Z)(this,I),this.value=C,this.timestamp=v}},55835:function(ce,q,f){"use strict";f.d(q,{r:function(){return V}});var U=f(89797),B=f(5051);function V(Z,T){return new U.y(function(I){var C=new B.w,v=0;return C.add(T.schedule(function(){v!==Z.length?(I.next(Z[v++]),I.closed||C.add(this.schedule())):I.complete()})),C})}},60612:function(ce,q,f){"use strict";f.d(q,{Q:function(){return Z}});var U=f(89797),B=f(5051),V=f(81695);function Z(T,I){if(!T)throw new Error("Iterable cannot be null");return new U.y(function(C){var P,v=new B.w;return v.add(function(){P&&"function"==typeof P.return&&P.return()}),v.add(I.schedule(function(){P=T[V.hZ](),v.add(I.schedule(function(){if(!C.closed){var D,M;try{var A=P.next();D=A.value,M=A.done}catch(y){return void C.error(y)}M?C.complete():(C.next(D),this.schedule())}}))})),v})}},10498:function(ce,q,f){"use strict";f.d(q,{c:function(){return V}});var U=f(89797),B=f(5051);function V(Z,T){return new U.y(function(I){var C=new B.w;return C.add(T.schedule(function(){return Z.then(function(v){C.add(T.schedule(function(){I.next(v),C.add(T.schedule(function(){return I.complete()}))}))},function(v){C.add(T.schedule(function(){return I.error(v)}))})})),C})}},77493:function(ce,q,f){"use strict";f.d(q,{x:function(){return A}});var U=f(89797),B=f(5051),V=f(57694),T=f(10498),I=f(55835),C=f(60612),v=f(19104),P=f(36514),D=f(30621),M=f(2762);function A(y,g){if(null!=y){if((0,v.c)(y))return function(y,g){return new U.y(function(k){var N=new B.w;return N.add(g.schedule(function(){var E=y[V.L]();N.add(E.subscribe({next:function(S){N.add(g.schedule(function(){return k.next(S)}))},error:function(S){N.add(g.schedule(function(){return k.error(S)}))},complete:function(){N.add(g.schedule(function(){return k.complete()}))}}))})),N})}(y,g);if((0,P.t)(y))return(0,T.c)(y,g);if((0,D.z)(y))return(0,I.r)(y,g);if((0,M.T)(y)||"string"==typeof y)return(0,C.Q)(y,g)}throw new TypeError((null!==y&&typeof y||y)+" is not observable")}},4065:function(ce,q,f){"use strict";f.d(q,{o:function(){return C}});var U=f(18967),B=f(14105),V=f(10509),Z=f(97154),C=function(v){(0,V.Z)(D,v);var P=(0,Z.Z)(D);function D(M,A){var y;return(0,U.Z)(this,D),(y=P.call(this,M,A)).scheduler=M,y.work=A,y.pending=!1,y}return(0,B.Z)(D,[{key:"schedule",value:function(A){var y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=A;var g=this.id,k=this.scheduler;return null!=g&&(this.id=this.recycleAsyncId(k,g,y)),this.pending=!0,this.delay=y,this.id=this.id||this.requestAsyncId(k,this.id,y),this}},{key:"requestAsyncId",value:function(A,y){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(A.flush.bind(A,this),g)}},{key:"recycleAsyncId",value:function(A,y){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==g&&this.delay===g&&!1===this.pending)return y;clearInterval(y)}},{key:"execute",value:function(A,y){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var g=this._execute(A,y);if(g)return g;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(A,y){var g=!1,k=void 0;try{this.work(A)}catch(N){g=!0,k=!!N&&N||new Error(N)}if(g)return this.unsubscribe(),k}},{key:"_unsubscribe",value:function(){var A=this.id,y=this.scheduler,g=y.actions,k=g.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==k&&g.splice(k,1),null!=A&&(this.id=this.recycleAsyncId(y,A,null)),this.delay=null}}]),D}(function(v){(0,V.Z)(D,v);var P=(0,Z.Z)(D);function D(M,A){return(0,U.Z)(this,D),P.call(this)}return(0,B.Z)(D,[{key:"schedule",value:function(A){return this}}]),D}(f(5051).w))},81572:function(ce,q,f){"use strict";f.d(q,{v:function(){return P}});var U=f(18967),B=f(14105),V=f(88009),Z=f(20901),T=f(89200),I=f(10509),C=f(97154),v=f(67801),P=function(D){(0,I.Z)(A,D);var M=(0,C.Z)(A);function A(y){var g,k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.b.now;return(0,U.Z)(this,A),(g=M.call(this,y,function(){return A.delegate&&A.delegate!==(0,V.Z)(g)?A.delegate.now():k()})).actions=[],g.active=!1,g.scheduled=void 0,g}return(0,B.Z)(A,[{key:"schedule",value:function(g){var k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,N=arguments.length>2?arguments[2]:void 0;return A.delegate&&A.delegate!==this?A.delegate.schedule(g,k,N):(0,Z.Z)((0,T.Z)(A.prototype),"schedule",this).call(this,g,k,N)}},{key:"flush",value:function(g){var k=this.actions;if(this.active)k.push(g);else{var N;this.active=!0;do{if(N=g.execute(g.state,g.delay))break}while(g=k.shift());if(this.active=!1,N){for(;g=k.shift();)g.unsubscribe();throw N}}}}]),A}(v.b)},2296:function(ce,q,f){"use strict";f.d(q,{y:function(){return P},h:function(){return D}});var U=f(20901),B=f(89200),V=f(18967),Z=f(14105),T=f(10509),I=f(97154),C=f(4065),v=f(81572),P=function(){var M=function(A){(0,T.Z)(g,A);var y=(0,I.Z)(g);function g(){var k,N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D,E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;return(0,V.Z)(this,g),(k=y.call(this,N,function(){return k.frame})).maxFrames=E,k.frame=0,k.index=-1,k}return(0,Z.Z)(g,[{key:"flush",value:function(){for(var x,S,N=this.actions,E=this.maxFrames;(S=N[0])&&S.delay<=E&&(N.shift(),this.frame=S.delay,!(x=S.execute(S.state,S.delay))););if(x){for(;S=N.shift();)S.unsubscribe();throw x}}}]),g}(v.v);return M.frameTimeFactor=10,M}(),D=function(M){(0,T.Z)(y,M);var A=(0,I.Z)(y);function y(g,k){var N,E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g.index+=1;return(0,V.Z)(this,y),(N=A.call(this,g,k)).scheduler=g,N.work=k,N.index=E,N.active=!0,N.index=g.index=E,N}return(0,Z.Z)(y,[{key:"schedule",value:function(k){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!this.id)return(0,U.Z)((0,B.Z)(y.prototype),"schedule",this).call(this,k,N);this.active=!1;var E=new y(this.scheduler,this.work);return this.add(E),E.schedule(k,N)}},{key:"requestAsyncId",value:function(k,N){var E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.delay=k.frame+E;var x=k.actions;return x.push(this),x.sort(y.sortActions),!0}},{key:"recycleAsyncId",value:function(k,N){}},{key:"_execute",value:function(k,N){if(!0===this.active)return(0,U.Z)((0,B.Z)(y.prototype),"_execute",this).call(this,k,N)}}],[{key:"sortActions",value:function(k,N){return k.delay===N.delay?k.index===N.index?0:k.index>N.index?1:-1:k.delay>N.delay?1:-1}}]),y}(C.o)},58172:function(ce,q,f){"use strict";f.d(q,{r:function(){return A},Z:function(){return M}});var U=f(18967),B=f(14105),V=f(20901),Z=f(89200),T=f(10509),I=f(97154),v=function(y){(0,T.Z)(k,y);var g=(0,I.Z)(k);function k(N,E){var x;return(0,U.Z)(this,k),(x=g.call(this,N,E)).scheduler=N,x.work=E,x}return(0,B.Z)(k,[{key:"requestAsyncId",value:function(E,x){var S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==S&&S>0?(0,V.Z)((0,Z.Z)(k.prototype),"requestAsyncId",this).call(this,E,x,S):(E.actions.push(this),E.scheduled||(E.scheduled=requestAnimationFrame(function(){return E.flush(null)})))}},{key:"recycleAsyncId",value:function(E,x){var S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==S&&S>0||null===S&&this.delay>0)return(0,V.Z)((0,Z.Z)(k.prototype),"recycleAsyncId",this).call(this,E,x,S);0===E.actions.length&&(cancelAnimationFrame(x),E.scheduled=void 0)}}]),k}(f(4065).o),M=new(function(y){(0,T.Z)(k,y);var g=(0,I.Z)(k);function k(){return(0,U.Z)(this,k),g.apply(this,arguments)}return(0,B.Z)(k,[{key:"flush",value:function(E){this.active=!0,this.scheduled=void 0;var S,x=this.actions,O=-1,L=x.length;E=E||x.shift();do{if(S=E.execute(E.state,E.delay))break}while(++O<L&&(E=x.shift()));if(this.active=!1,S){for(;++O<L&&(E=x.shift());)E.unsubscribe();throw S}}}]),k}(f(81572).v))(v),A=M},8285:function(ce,q,f){"use strict";f.d(q,{e:function(){return y},E:function(){return A}});var U=f(18967),B=f(14105),V=f(20901),Z=f(89200),T=f(10509),I=f(97154),C=f(96421),P=function(g){(0,T.Z)(N,g);var k=(0,I.Z)(N);function N(E,x){var S;return(0,U.Z)(this,N),(S=k.call(this,E,x)).scheduler=E,S.work=x,S}return(0,B.Z)(N,[{key:"requestAsyncId",value:function(x,S){var O=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==O&&O>0?(0,V.Z)((0,Z.Z)(N.prototype),"requestAsyncId",this).call(this,x,S,O):(x.actions.push(this),x.scheduled||(x.scheduled=C.H.setImmediate(x.flush.bind(x,null))))}},{key:"recycleAsyncId",value:function(x,S){var O=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==O&&O>0||null===O&&this.delay>0)return(0,V.Z)((0,Z.Z)(N.prototype),"recycleAsyncId",this).call(this,x,S,O);0===x.actions.length&&(C.H.clearImmediate(S),x.scheduled=void 0)}}]),N}(f(4065).o),A=new(function(g){(0,T.Z)(N,g);var k=(0,I.Z)(N);function N(){return(0,U.Z)(this,N),k.apply(this,arguments)}return(0,B.Z)(N,[{key:"flush",value:function(x){this.active=!0,this.scheduled=void 0;var O,S=this.actions,L=-1,j=S.length;x=x||S.shift();do{if(O=x.execute(x.state,x.delay))break}while(++L<j&&(x=S.shift()));if(this.active=!1,O){for(;++L<j&&(x=S.shift());)x.unsubscribe();throw O}}}]),N}(f(81572).v))(P),y=A},46813:function(ce,q,f){"use strict";f.d(q,{z:function(){return V},P:function(){return Z}});var U=f(4065),V=new(f(81572).v)(U.o),Z=V},60641:function(ce,q,f){"use strict";f.d(q,{c:function(){return A},N:function(){return M}});var U=f(18967),B=f(14105),V=f(20901),Z=f(89200),T=f(10509),I=f(97154),v=function(y){(0,T.Z)(k,y);var g=(0,I.Z)(k);function k(N,E){var x;return(0,U.Z)(this,k),(x=g.call(this,N,E)).scheduler=N,x.work=E,x}return(0,B.Z)(k,[{key:"schedule",value:function(E){var x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return x>0?(0,V.Z)((0,Z.Z)(k.prototype),"schedule",this).call(this,E,x):(this.delay=x,this.state=E,this.scheduler.flush(this),this)}},{key:"execute",value:function(E,x){return x>0||this.closed?(0,V.Z)((0,Z.Z)(k.prototype),"execute",this).call(this,E,x):this._execute(E,x)}},{key:"requestAsyncId",value:function(E,x){var S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==S&&S>0||null===S&&this.delay>0?(0,V.Z)((0,Z.Z)(k.prototype),"requestAsyncId",this).call(this,E,x,S):E.flush(this)}}]),k}(f(4065).o),M=new(function(y){(0,T.Z)(k,y);var g=(0,I.Z)(k);function k(){return(0,U.Z)(this,k),g.apply(this,arguments)}return k}(f(81572).v))(v),A=M},81695:function(ce,q,f){"use strict";function U(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}f.d(q,{hZ:function(){return B}});var B=U()},57694:function(ce,q,f){"use strict";f.d(q,{L:function(){return U}});var U=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},79542:function(ce,q,f){"use strict";f.d(q,{b:function(){return U}});var U=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},9855:function(ce,q,f){"use strict";f.d(q,{W:function(){return B}});var B=function(){function V(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return V.prototype=Object.create(Error.prototype),V}()},64646:function(ce,q,f){"use strict";f.d(q,{K:function(){return B}});var B=function(){function V(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return V.prototype=Object.create(Error.prototype),V}()},96421:function(ce,q,f){"use strict";f.d(q,{H:function(){return T}});var U=1,B=function(){return Promise.resolve()}(),V={};function Z(C){return C in V&&(delete V[C],!0)}var T={setImmediate:function(v){var P=U++;return V[P]=!0,B.then(function(){return Z(P)&&v()}),P},clearImmediate:function(v){Z(v)}}},1696:function(ce,q,f){"use strict";f.d(q,{N:function(){return B}});var B=function(){function V(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return V.prototype=Object.create(Error.prototype),V}()},98691:function(ce,q,f){"use strict";f.d(q,{W:function(){return B}});var B=function(){function V(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return V.prototype=Object.create(Error.prototype),V}()},66351:function(ce,q,f){"use strict";f.d(q,{B:function(){return B}});var B=function(){function V(Z){return Error.call(this),this.message=Z?"".concat(Z.length," errors occurred during unsubscription:\n").concat(Z.map(function(T,I){return"".concat(I+1,") ").concat(T.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=Z,this}return V.prototype=Object.create(Error.prototype),V}()},2808:function(ce,q,f){"use strict";function U(B,V){for(var Z=0,T=V.length;Z<T;Z++)for(var I=V[Z],C=Object.getOwnPropertyNames(I.prototype),v=0,P=C.length;v<P;v++){var D=C[v];B.prototype[D]=I.prototype[D]}}f.d(q,{e:function(){return U}})},20006:function(ce,q,f){"use strict";f.d(q,{_:function(){return B}});var U=f(39874);function B(V){for(;V;){var I=V.destination;if(V.closed||V.isStopped)return!1;V=I&&I instanceof U.L?I:null}return!0}},82009:function(ce,q,f){"use strict";function U(B){setTimeout(function(){throw B},0)}f.d(q,{z:function(){return U}})},57070:function(ce,q,f){"use strict";function U(B){return B}f.d(q,{y:function(){return U}})},78985:function(ce,q,f){"use strict";f.d(q,{k:function(){return U}});var U=function(){return Array.isArray||function(B){return B&&"number"==typeof B.length}}()},30621:function(ce,q,f){"use strict";f.d(q,{z:function(){return U}});var U=function(V){return V&&"number"==typeof V.length&&"function"!=typeof V}},88972:function(ce,q,f){"use strict";function U(B){return B instanceof Date&&!isNaN(+B)}f.d(q,{J:function(){return U}})},20684:function(ce,q,f){"use strict";function U(B){return"function"==typeof B}f.d(q,{m:function(){return U}})},19104:function(ce,q,f){"use strict";f.d(q,{c:function(){return B}});var U=f(57694);function B(V){return V&&"function"==typeof V[U.L]}},2762:function(ce,q,f){"use strict";f.d(q,{T:function(){return B}});var U=f(81695);function B(V){return V&&"function"==typeof V[U.hZ]}},11705:function(ce,q,f){"use strict";f.d(q,{k:function(){return B}});var U=f(78985);function B(V){return!(0,U.k)(V)&&V-parseFloat(V)+1>=0}},64902:function(ce,q,f){"use strict";function U(B){return null!==B&&"object"==typeof B}f.d(q,{K:function(){return U}})},17504:function(ce,q,f){"use strict";f.d(q,{b:function(){return B}});var U=f(89797);function B(V){return!!V&&(V instanceof U.y||"function"==typeof V.lift&&"function"==typeof V.subscribe)}},36514:function(ce,q,f){"use strict";function U(B){return!!B&&"function"!=typeof B.subscribe&&"function"==typeof B.then}f.d(q,{t:function(){return U}})},91299:function(ce,q,f){"use strict";function U(B){return B&&"function"==typeof B.schedule}f.d(q,{K:function(){return U}})},66029:function(ce,q,f){"use strict";function U(){}f.d(q,{Z:function(){return U}})},59849:function(ce,q,f){"use strict";function U(B,V){function Z(){return!Z.pred.apply(Z.thisArg,arguments)}return Z.pred=B,Z.thisArg=V,Z}f.d(q,{f:function(){return U}})},96194:function(ce,q,f){"use strict";f.d(q,{z:function(){return B},U:function(){return V}});var U=f(57070);function B(){for(var Z=arguments.length,T=new Array(Z),I=0;I<Z;I++)T[I]=arguments[I];return V(T)}function V(Z){return 0===Z.length?U.y:1===Z.length?Z[0]:function(I){return Z.reduce(function(C,v){return v(C)},I)}}},44962:function(ce,q,f){"use strict";f.d(q,{J:function(){return Z}});var U="undefined"!=typeof window&&window,B="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,V="undefined"!=typeof global&&global,Z=U||V||B},20735:function(ce,q,f){"use strict";f.d(q,{s:function(){return D}});var U=f(22312),B=f(56112),V=f(49089),Z=f(71414),T=f(30621),I=f(36514),C=f(64902),v=f(81695),P=f(57694),D=function(A){if(A&&"function"==typeof A[P.L])return(0,Z.h)(A);if((0,T.z)(A))return(0,U.V)(A);if((0,I.t)(A))return(0,B.A)(A);if(A&&"function"==typeof A[v.hZ])return(0,V.u)(A);var y=(0,C.K)(A)?"an invalid object":"'".concat(A,"'"),g="You provided ".concat(y," where a stream was expected.")+" You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(g)}},22312:function(ce,q,f){"use strict";f.d(q,{V:function(){return U}});var U=function(V){return function(Z){for(var T=0,I=V.length;T<I&&!Z.closed;T++)Z.next(V[T]);Z.complete()}}},49089:function(ce,q,f){"use strict";f.d(q,{u:function(){return B}});var U=f(81695),B=function(Z){return function(T){for(var I=Z[U.hZ]();;){var C=void 0;try{C=I.next()}catch(v){return T.error(v),T}if(C.done){T.complete();break}if(T.next(C.value),T.closed)break}return"function"==typeof I.return&&T.add(function(){I.return&&I.return()}),T}}},71414:function(ce,q,f){"use strict";f.d(q,{h:function(){return B}});var U=f(57694),B=function(Z){return function(T){var I=Z[U.L]();if("function"!=typeof I.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return I.subscribe(T)}}},56112:function(ce,q,f){"use strict";f.d(q,{A:function(){return B}});var U=f(82009),B=function(Z){return function(T){return Z.then(function(I){T.closed||(T.next(I),T.complete())},function(I){return T.error(I)}).then(null,U.z),T}}},61454:function(ce,q,f){"use strict";f.d(q,{D:function(){return Z}});var U=f(22320),B=f(20735),V=f(89797);function Z(T,I,C,v){var P=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new U.d(T,C,v);if(!P.closed)return I instanceof V.y?I.subscribe(P):(0,B.s)(I)(P)}},3410:function(ce,q,f){"use strict";f.d(q,{Y:function(){return Z}});var U=f(39874),B=f(79542),V=f(88944);function Z(T,I,C){if(T){if(T instanceof U.L)return T;if(T[B.b])return T[B.b]()}return T||I||C?new U.L(T,I,C):new U.L(V.c)}},73033:function(ce,q,f){"use strict";f.r(q),f.d(q,{audit:function(){return U.U},auditTime:function(){return B.e},buffer:function(){return P},bufferCount:function(){return k},bufferTime:function(){return L},bufferToggle:function(){return ue},bufferWhen:function(){return ye},catchError:function(){return _t.K},combineAll:function(){return Bt},combineLatest:function(){return Je},concat:function(){return Et},concatAll:function(){return vt.u},concatMap:function(){return Kt.b},concatMapTo:function(){return Vt},count:function(){return St.Q},debounce:function(){return qt},debounceTime:function(){return Ft.b},defaultIfEmpty:function(){return on.d},delay:function(){return En.g},delayWhen:function(){return Rn},dematerialize:function(){return Wt},distinct:function(){return Te},distinctUntilChanged:function(){return Ge.x},distinctUntilKeyChanged:function(){return Ye},elementAt:function(){return sn},endWith:function(){return Cn},every:function(){return In},exhaust:function(){return Sn},exhaustMap:function(){return ft},expand:function(){return at},filter:function(){return Lt.h},finalize:function(){return Oe.x},find:function(){return Le},findIndex:function(){return cn},first:function(){return Jn.P},flatMap:function(){return jt.VS},groupBy:function(){return Zr.v},ignoreElements:function(){return jr},isEmpty:function(){return co},last:function(){return po.Z},map:function(){return rn.U},mapTo:function(){return Xo.h},materialize:function(){return ro},max:function(){return Wn},merge:function(){return Gt},mergeAll:function(){return It.J},mergeMap:function(){return jt.zg},mergeMapTo:function(){return Qt},mergeScan:function(){return Xt},min:function(){return jn},multicast:function(){return zn.O},observeOn:function(){return li.QV},onErrorResumeNext:function(){return bi},pairwise:function(){return Io.G},partition:function(){return Eo},pluck:function(){return oi},publish:function(){return ji},publishBehavior:function(){return qo},publishLast:function(){return Qi},publishReplay:function(){return _n},race:function(){return ho},reduce:function(){return Ei},refCount:function(){return Bi.x},repeat:function(){return Si},repeatWhen:function(){return ma},retry:function(){return gs},retryWhen:function(){return Ma},sample:function(){return ga},sampleTime:function(){return Aa},scan:function(){return fo.R},sequenceEqual:function(){return Ui},share:function(){return ja.B},shareReplay:function(){return Pu.d},single:function(){return Xi},skip:function(){return nn.T},skipLast:function(){return ou},skipUntil:function(){return fe},skipWhile:function(){return je},startWith:function(){return _e.O},subscribeOn:function(){return Pe},switchAll:function(){return gt},switchMap:function(){return Tt.w},switchMapTo:function(){return $r},take:function(){return tn.q},takeLast:function(){return hi.h},takeUntil:function(){return zr.R},takeWhile:function(){return Pi.o},tap:function(){return ya.b},throttle:function(){return ui.P},throttleTime:function(){return Ii},throwIfEmpty:function(){return zt.T},timeInterval:function(){return ba.J},timeout:function(){return Dr},timeoutWith:function(){return xp},timestamp:function(){return wp.A},toArray:function(){return kp},window:function(){return Ep},windowCount:function(){return vv},windowTime:function(){return $},windowToggle:function(){return dn},windowWhen:function(){return Kn},withLatestFrom:function(){return Sr},zip:function(){return ai},zipAll:function(){return Ao}});var U=f(67494),B=f(54562),V=f(88009),Z=f(10509),T=f(97154),I=f(18967),C=f(14105),v=f(32124);function P(Ne){return function(we){return we.lift(new D(Ne))}}var D=function(){function Ne(We){(0,I.Z)(this,Ne),this.closingNotifier=We}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new M(we,this.closingNotifier))}}]),Ne}(),M=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie){var nt;return(0,I.Z)(this,we),(nt=We.call(this,Ze)).buffer=[],nt.add((0,v.ft)(Ie,new v.IY((0,V.Z)(nt)))),nt}return(0,C.Z)(we,[{key:"_next",value:function(Ie){this.buffer.push(Ie)}},{key:"notifyNext",value:function(){var Ie=this.buffer;this.buffer=[],this.destination.next(Ie)}}]),we}(v.Ds),A=f(20901),y=f(89200),g=f(39874);function k(Ne){var We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(Ze){return Ze.lift(new N(Ne,We))}}var N=function(){function Ne(We,we){(0,I.Z)(this,Ne),this.bufferSize=We,this.startBufferEvery=we,this.subscriberClass=we&&We!==we?x:E}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new this.subscriberClass(we,this.bufferSize,this.startBufferEvery))}}]),Ne}(),E=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie){var nt;return(0,I.Z)(this,we),(nt=We.call(this,Ze)).bufferSize=Ie,nt.buffer=[],nt}return(0,C.Z)(we,[{key:"_next",value:function(Ie){var nt=this.buffer;nt.push(Ie),nt.length==this.bufferSize&&(this.destination.next(nt),this.buffer=[])}},{key:"_complete",value:function(){var Ie=this.buffer;Ie.length>0&&this.destination.next(Ie),(0,A.Z)((0,y.Z)(we.prototype),"_complete",this).call(this)}}]),we}(g.L),x=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie,nt){var xt;return(0,I.Z)(this,we),(xt=We.call(this,Ze)).bufferSize=Ie,xt.startBufferEvery=nt,xt.buffers=[],xt.count=0,xt}return(0,C.Z)(we,[{key:"_next",value:function(Ie){var nt=this.bufferSize,xt=this.startBufferEvery,ln=this.buffers,Tn=this.count;this.count++,Tn%xt==0&&ln.push([]);for(var wr=ln.length;wr--;){var Ri=ln[wr];Ri.push(Ie),Ri.length===nt&&(ln.splice(wr,1),this.destination.next(Ri))}}},{key:"_complete",value:function(){for(var Ie=this.buffers,nt=this.destination;Ie.length>0;){var xt=Ie.shift();xt.length>0&&nt.next(xt)}(0,A.Z)((0,y.Z)(we.prototype),"_complete",this).call(this)}}]),we}(g.L),S=f(46813),O=f(91299);function L(Ne){var We=arguments.length,we=S.P;(0,O.K)(arguments[arguments.length-1])&&(we=arguments[arguments.length-1],We--);var Ze=null;We>=2&&(Ze=arguments[1]);var Ie=Number.POSITIVE_INFINITY;return We>=3&&(Ie=arguments[2]),function(xt){return xt.lift(new j(Ne,Ze,Ie,we))}}var j=function(){function Ne(We,we,Ze,Ie){(0,I.Z)(this,Ne),this.bufferTimeSpan=We,this.bufferCreationInterval=we,this.maxBufferSize=Ze,this.scheduler=Ie}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new W(we,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}]),Ne}(),K=function Ne(){(0,I.Z)(this,Ne),this.buffer=[]},W=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie,nt,xt,ln){var Tn;(0,I.Z)(this,we),(Tn=We.call(this,Ze)).bufferTimeSpan=Ie,Tn.bufferCreationInterval=nt,Tn.maxBufferSize=xt,Tn.scheduler=ln,Tn.contexts=[];var wr=Tn.openContext();if(Tn.timespanOnly=null==nt||nt<0,Tn.timespanOnly){var Ri={subscriber:(0,V.Z)(Tn),context:wr,bufferTimeSpan:Ie};Tn.add(wr.closeAction=ln.schedule(J,Ie,Ri))}else{var ea={subscriber:(0,V.Z)(Tn),context:wr},Pa={bufferTimeSpan:Ie,bufferCreationInterval:nt,subscriber:(0,V.Z)(Tn),scheduler:ln};Tn.add(wr.closeAction=ln.schedule(te,Ie,ea)),Tn.add(ln.schedule(oe,nt,Pa))}return Tn}return(0,C.Z)(we,[{key:"_next",value:function(Ie){for(var ln,nt=this.contexts,xt=nt.length,Tn=0;Tn<xt;Tn++){var wr=nt[Tn],Ri=wr.buffer;Ri.push(Ie),Ri.length==this.maxBufferSize&&(ln=wr)}ln&&this.onBufferFull(ln)}},{key:"_error",value:function(Ie){this.contexts.length=0,(0,A.Z)((0,y.Z)(we.prototype),"_error",this).call(this,Ie)}},{key:"_complete",value:function(){for(var Ie=this.contexts,nt=this.destination;Ie.length>0;){var xt=Ie.shift();nt.next(xt.buffer)}(0,A.Z)((0,y.Z)(we.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){this.contexts=null}},{key:"onBufferFull",value:function(Ie){this.closeContext(Ie);var nt=Ie.closeAction;if(nt.unsubscribe(),this.remove(nt),!this.closed&&this.timespanOnly){Ie=this.openContext();var xt=this.bufferTimeSpan;this.add(Ie.closeAction=this.scheduler.schedule(J,xt,{subscriber:this,context:Ie,bufferTimeSpan:xt}))}}},{key:"openContext",value:function(){var Ie=new K;return this.contexts.push(Ie),Ie}},{key:"closeContext",value:function(Ie){this.destination.next(Ie.buffer);var nt=this.contexts;(nt?nt.indexOf(Ie):-1)>=0&&nt.splice(nt.indexOf(Ie),1)}}]),we}(g.L);function J(Ne){var We=Ne.subscriber,we=Ne.context;we&&We.closeContext(we),We.closed||(Ne.context=We.openContext(),Ne.context.closeAction=this.schedule(Ne,Ne.bufferTimeSpan))}function oe(Ne){var We=Ne.bufferCreationInterval,we=Ne.bufferTimeSpan,Ze=Ne.subscriber,Ie=Ne.scheduler,nt=Ze.openContext();Ze.closed||(Ze.add(nt.closeAction=Ie.schedule(te,we,{subscriber:Ze,context:nt})),this.schedule(Ne,We))}function te(Ne){Ne.subscriber.closeContext(Ne.context)}var se=f(5051),le=f(61454),de=f(7283);function ue(Ne,We){return function(Ze){return Ze.lift(new ae(Ne,We))}}var ae=function(){function Ne(We,we){(0,I.Z)(this,Ne),this.openings=We,this.closingSelector=we}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new Me(we,this.openings,this.closingSelector))}}]),Ne}(),Me=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie,nt){var xt;return(0,I.Z)(this,we),(xt=We.call(this,Ze)).closingSelector=nt,xt.contexts=[],xt.add((0,le.D)((0,V.Z)(xt),Ie)),xt}return(0,C.Z)(we,[{key:"_next",value:function(Ie){for(var nt=this.contexts,xt=nt.length,ln=0;ln<xt;ln++)nt[ln].buffer.push(Ie)}},{key:"_error",value:function(Ie){for(var nt=this.contexts;nt.length>0;){var xt=nt.shift();xt.subscription.unsubscribe(),xt.buffer=null,xt.subscription=null}this.contexts=null,(0,A.Z)((0,y.Z)(we.prototype),"_error",this).call(this,Ie)}},{key:"_complete",value:function(){for(var Ie=this.contexts;Ie.length>0;){var nt=Ie.shift();this.destination.next(nt.buffer),nt.subscription.unsubscribe(),nt.buffer=null,nt.subscription=null}this.contexts=null,(0,A.Z)((0,y.Z)(we.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(Ie,nt){Ie?this.closeBuffer(Ie):this.openBuffer(nt)}},{key:"notifyComplete",value:function(Ie){this.closeBuffer(Ie.context)}},{key:"openBuffer",value:function(Ie){try{var xt=this.closingSelector.call(this,Ie);xt&&this.trySubscribe(xt)}catch(ln){this._error(ln)}}},{key:"closeBuffer",value:function(Ie){var nt=this.contexts;if(nt&&Ie){var ln=Ie.subscription;this.destination.next(Ie.buffer),nt.splice(nt.indexOf(Ie),1),this.remove(ln),ln.unsubscribe()}}},{key:"trySubscribe",value:function(Ie){var nt=this.contexts,ln=new se.w,Tn={buffer:[],subscription:ln};nt.push(Tn);var wr=(0,le.D)(this,Ie,Tn);!wr||wr.closed?this.closeBuffer(Tn):(wr.context=Tn,this.add(wr),ln.add(wr))}}]),we}(de.L);function ye(Ne){return function(We){return We.lift(new ot(Ne))}}var ot=function(){function Ne(We){(0,I.Z)(this,Ne),this.closingSelector=We}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new He(we,this.closingSelector))}}]),Ne}(),He=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie){var nt;return(0,I.Z)(this,we),(nt=We.call(this,Ze)).closingSelector=Ie,nt.subscribing=!1,nt.openBuffer(),nt}return(0,C.Z)(we,[{key:"_next",value:function(Ie){this.buffer.push(Ie)}},{key:"_complete",value:function(){var Ie=this.buffer;Ie&&this.destination.next(Ie),(0,A.Z)((0,y.Z)(we.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){this.buffer=void 0,this.subscribing=!1}},{key:"notifyNext",value:function(){this.openBuffer()}},{key:"notifyComplete",value:function(){this.subscribing?this.complete():this.openBuffer()}},{key:"openBuffer",value:function(){var xt,Ie=this.closingSubscription;Ie&&(this.remove(Ie),Ie.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];try{xt=(0,this.closingSelector)()}catch(Tn){return this.error(Tn)}Ie=new se.w,this.closingSubscription=Ie,this.add(Ie),this.subscribing=!0,Ie.add((0,v.ft)(xt,new v.IY(this))),this.subscribing=!1}}]),we}(v.Ds),_t=f(13426),yt=f(81370);function Bt(Ne){return function(We){return We.lift(new yt.Ms(Ne))}}var Se=f(10629),De=f(78985),Ve=f(61493);function Je(){for(var Ne=arguments.length,We=new Array(Ne),we=0;we<Ne;we++)We[we]=arguments[we];var Ze=null;return"function"==typeof We[We.length-1]&&(Ze=We.pop()),1===We.length&&(0,De.k)(We[0])&&(We=We[0].slice()),function(Ie){return Ie.lift.call((0,Ve.D)([Ie].concat((0,Se.Z)(We))),new yt.Ms(Ze))}}var Ut=f(60131);function Et(){for(var Ne=arguments.length,We=new Array(Ne),we=0;we<Ne;we++)We[we]=arguments[we];return function(Ze){return Ze.lift.call(Ut.z.apply(void 0,[Ze].concat(We)))}}var vt=f(95416),Kt=f(38575);function Vt(Ne,We){return(0,Kt.b)(function(){return Ne},We)}var St=f(75398);function qt(Ne){return function(We){return We.lift(new Ct(Ne))}}var Ct=function(){function Ne(We){(0,I.Z)(this,Ne),this.durationSelector=We}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new en(we,this.durationSelector))}}]),Ne}(),en=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie){var nt;return(0,I.Z)(this,we),(nt=We.call(this,Ze)).durationSelector=Ie,nt.hasValue=!1,nt}return(0,C.Z)(we,[{key:"_next",value:function(Ie){try{var nt=this.durationSelector.call(this,Ie);nt&&this._tryNext(Ie,nt)}catch(xt){this.destination.error(xt)}}},{key:"_complete",value:function(){this.emitValue(),this.destination.complete()}},{key:"_tryNext",value:function(Ie,nt){var xt=this.durationSubscription;this.value=Ie,this.hasValue=!0,xt&&(xt.unsubscribe(),this.remove(xt)),(xt=(0,v.ft)(nt,new v.IY(this)))&&!xt.closed&&this.add(this.durationSubscription=xt)}},{key:"notifyNext",value:function(){this.emitValue()}},{key:"notifyComplete",value:function(){this.emitValue()}},{key:"emitValue",value:function(){if(this.hasValue){var Ie=this.value,nt=this.durationSubscription;nt&&(this.durationSubscription=void 0,nt.unsubscribe(),this.remove(nt)),this.value=void 0,this.hasValue=!1,(0,A.Z)((0,y.Z)(we.prototype),"_next",this).call(this,Ie)}}}]),we}(v.Ds),Ft=f(57263),on=f(34235),En=f(86004),Zn=f(89797);function Rn(Ne,We){return We?function(we){return new wn(we,We).lift(new tr(Ne))}:function(we){return we.lift(new tr(Ne))}}var tr=function(){function Ne(We){(0,I.Z)(this,Ne),this.delayDurationSelector=We}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new Nn(we,this.delayDurationSelector))}}]),Ne}(),Nn=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie){var nt;return(0,I.Z)(this,we),(nt=We.call(this,Ze)).delayDurationSelector=Ie,nt.completed=!1,nt.delayNotifierSubscriptions=[],nt.index=0,nt}return(0,C.Z)(we,[{key:"notifyNext",value:function(Ie,nt,xt,ln,Tn){this.destination.next(Ie),this.removeSubscription(Tn),this.tryComplete()}},{key:"notifyError",value:function(Ie,nt){this._error(Ie)}},{key:"notifyComplete",value:function(Ie){var nt=this.removeSubscription(Ie);nt&&this.destination.next(nt),this.tryComplete()}},{key:"_next",value:function(Ie){var nt=this.index++;try{var xt=this.delayDurationSelector(Ie,nt);xt&&this.tryDelay(xt,Ie)}catch(ln){this.destination.error(ln)}}},{key:"_complete",value:function(){this.completed=!0,this.tryComplete(),this.unsubscribe()}},{key:"removeSubscription",value:function(Ie){Ie.unsubscribe();var nt=this.delayNotifierSubscriptions.indexOf(Ie);return-1!==nt&&this.delayNotifierSubscriptions.splice(nt,1),Ie.outerValue}},{key:"tryDelay",value:function(Ie,nt){var xt=(0,le.D)(this,Ie,nt);xt&&!xt.closed&&(this.destination.add(xt),this.delayNotifierSubscriptions.push(xt))}},{key:"tryComplete",value:function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}]),we}(de.L),wn=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie){var nt;return(0,I.Z)(this,we),(nt=We.call(this)).source=Ze,nt.subscriptionDelay=Ie,nt}return(0,C.Z)(we,[{key:"_subscribe",value:function(Ie){this.subscriptionDelay.subscribe(new yr(Ie,this.source))}}]),we}(Zn.y),yr=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie){var nt;return(0,I.Z)(this,we),(nt=We.call(this)).parent=Ze,nt.source=Ie,nt.sourceSubscribed=!1,nt}return(0,C.Z)(we,[{key:"_next",value:function(Ie){this.subscribeToSource()}},{key:"_error",value:function(Ie){this.unsubscribe(),this.parent.error(Ie)}},{key:"_complete",value:function(){this.unsubscribe(),this.subscribeToSource()}},{key:"subscribeToSource",value:function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))}}]),we}(g.L);function Wt(){return function(We){return We.lift(new Mt)}}var Mt=function(){function Ne(){(0,I.Z)(this,Ne)}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new rt(we))}}]),Ne}(),rt=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze){return(0,I.Z)(this,we),We.call(this,Ze)}return(0,C.Z)(we,[{key:"_next",value:function(Ie){Ie.observe(this.destination)}}]),we}(g.L);function Te(Ne,We){return function(we){return we.lift(new re(Ne,We))}}var re=function(){function Ne(We,we){(0,I.Z)(this,Ne),this.keySelector=We,this.flushes=we}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new ve(we,this.keySelector,this.flushes))}}]),Ne}(),ve=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie,nt){var xt;return(0,I.Z)(this,we),(xt=We.call(this,Ze)).keySelector=Ie,xt.values=new Set,nt&&xt.add((0,v.ft)(nt,new v.IY((0,V.Z)(xt)))),xt}return(0,C.Z)(we,[{key:"notifyNext",value:function(){this.values.clear()}},{key:"notifyError",value:function(Ie){this._error(Ie)}},{key:"_next",value:function(Ie){this.keySelector?this._useKeySelector(Ie):this._finalizeNext(Ie,Ie)}},{key:"_useKeySelector",value:function(Ie){var nt,xt=this.destination;try{nt=this.keySelector(Ie)}catch(ln){return void xt.error(ln)}this._finalizeNext(nt,Ie)}},{key:"_finalizeNext",value:function(Ie,nt){var xt=this.values;xt.has(Ie)||(xt.add(Ie),this.destination.next(nt))}}]),we}(v.Ds),Ge=f(76161);function Ye(Ne,We){return(0,Ge.x)(function(we,Ze){return We?We(we[Ne],Ze[Ne]):we[Ne]===Ze[Ne]})}var bt=f(9855),Lt=f(58780),zt=f(88942),tn=f(48359);function sn(Ne,We){if(Ne<0)throw new bt.W;var we=arguments.length>=2;return function(Ze){return Ze.pipe((0,Lt.h)(function(Ie,nt){return nt===Ne}),(0,tn.q)(1),we?(0,on.d)(We):(0,zt.T)(function(){return new bt.W}))}}var hn=f(43161);function Cn(){for(var Ne=arguments.length,We=new Array(Ne),we=0;we<Ne;we++)We[we]=arguments[we];return function(Ze){return(0,Ut.z)(Ze,hn.of.apply(void 0,We))}}function In(Ne,We){return function(we){return we.lift(new Yn(Ne,We,we))}}var Yn=function(){function Ne(We,we,Ze){(0,I.Z)(this,Ne),this.predicate=We,this.thisArg=we,this.source=Ze}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new xn(we,this.predicate,this.thisArg,this.source))}}]),Ne}(),xn=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie,nt,xt){var ln;return(0,I.Z)(this,we),(ln=We.call(this,Ze)).predicate=Ie,ln.thisArg=nt,ln.source=xt,ln.index=0,ln.thisArg=nt||(0,V.Z)(ln),ln}return(0,C.Z)(we,[{key:"notifyComplete",value:function(Ie){this.destination.next(Ie),this.destination.complete()}},{key:"_next",value:function(Ie){var nt=!1;try{nt=this.predicate.call(this.thisArg,Ie,this.index++,this.source)}catch(xt){return void this.destination.error(xt)}nt||this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),we}(g.L);function Sn(){return function(Ne){return Ne.lift(new $n)}}var $n=function(){function Ne(){(0,I.Z)(this,Ne)}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new Ht(we))}}]),Ne}(),Ht=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze){var Ie;return(0,I.Z)(this,we),(Ie=We.call(this,Ze)).hasCompleted=!1,Ie.hasSubscription=!1,Ie}return(0,C.Z)(we,[{key:"_next",value:function(Ie){this.hasSubscription||(this.hasSubscription=!0,this.add((0,v.ft)(Ie,new v.IY(this))))}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()}},{key:"notifyComplete",value:function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}]),we}(v.Ds),rn=f(85639);function ft(Ne,We){return We?function(we){return we.pipe(ft(function(Ze,Ie){return(0,Ve.D)(Ne(Ze,Ie)).pipe((0,rn.U)(function(nt,xt){return We(Ze,nt,Ie,xt)}))}))}:function(we){return we.lift(new dt(Ne))}}var dt=function(){function Ne(We){(0,I.Z)(this,Ne),this.project=We}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new Ue(we,this.project))}}]),Ne}(),Ue=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie){var nt;return(0,I.Z)(this,we),(nt=We.call(this,Ze)).project=Ie,nt.hasSubscription=!1,nt.hasCompleted=!1,nt.index=0,nt}return(0,C.Z)(we,[{key:"_next",value:function(Ie){this.hasSubscription||this.tryNext(Ie)}},{key:"tryNext",value:function(Ie){var nt,xt=this.index++;try{nt=this.project(Ie,xt)}catch(ln){return void this.destination.error(ln)}this.hasSubscription=!0,this._innerSub(nt)}},{key:"_innerSub",value:function(Ie){var nt=new v.IY(this),xt=this.destination;xt.add(nt);var ln=(0,v.ft)(Ie,nt);ln!==nt&&xt.add(ln)}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(Ie){this.destination.next(Ie)}},{key:"notifyError",value:function(Ie){this.destination.error(Ie)}},{key:"notifyComplete",value:function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}]),we}(v.Ds);function at(Ne){var We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,we=arguments.length>2?arguments[2]:void 0;return We=(We||0)<1?Number.POSITIVE_INFINITY:We,function(Ze){return Ze.lift(new xe(Ne,We,we))}}var xe=function(){function Ne(We,we,Ze){(0,I.Z)(this,Ne),this.project=We,this.concurrent=we,this.scheduler=Ze}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new Fe(we,this.project,this.concurrent,this.scheduler))}}]),Ne}(),Fe=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie,nt,xt){var ln;return(0,I.Z)(this,we),(ln=We.call(this,Ze)).project=Ie,ln.concurrent=nt,ln.scheduler=xt,ln.index=0,ln.active=0,ln.hasCompleted=!1,nt<Number.POSITIVE_INFINITY&&(ln.buffer=[]),ln}return(0,C.Z)(we,[{key:"_next",value:function(Ie){var nt=this.destination;if(nt.closed)this._complete();else{var xt=this.index++;if(this.active<this.concurrent){nt.next(Ie);try{var Tn=(0,this.project)(Ie,xt);this.scheduler?this.destination.add(this.scheduler.schedule(we.dispatch,0,{subscriber:this,result:Tn,value:Ie,index:xt})):this.subscribeToProjection(Tn,Ie,xt)}catch(ea){nt.error(ea)}}else this.buffer.push(Ie)}}},{key:"subscribeToProjection",value:function(Ie,nt,xt){this.active++,this.destination.add((0,v.ft)(Ie,new v.IY(this)))}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(Ie){this._next(Ie)}},{key:"notifyComplete",value:function(){var Ie=this.buffer;this.active--,Ie&&Ie.length>0&&this._next(Ie.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}],[{key:"dispatch",value:function(Ie){Ie.subscriber.subscribeToProjection(Ie.result,Ie.value,Ie.index)}}]),we}(v.Ds),Oe=f(59803);function Le(Ne,We){if("function"!=typeof Ne)throw new TypeError("predicate is not a function");return function(we){return we.lift(new qe(Ne,we,!1,We))}}var qe=function(){function Ne(We,we,Ze,Ie){(0,I.Z)(this,Ne),this.predicate=We,this.source=we,this.yieldIndex=Ze,this.thisArg=Ie}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new Nt(we,this.predicate,this.source,this.yieldIndex,this.thisArg))}}]),Ne}(),Nt=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie,nt,xt,ln){var Tn;return(0,I.Z)(this,we),(Tn=We.call(this,Ze)).predicate=Ie,Tn.source=nt,Tn.yieldIndex=xt,Tn.thisArg=ln,Tn.index=0,Tn}return(0,C.Z)(we,[{key:"notifyComplete",value:function(Ie){var nt=this.destination;nt.next(Ie),nt.complete(),this.unsubscribe()}},{key:"_next",value:function(Ie){var nt=this.predicate,xt=this.thisArg,ln=this.index++;try{nt.call(xt||this,Ie,ln,this.source)&&this.notifyComplete(this.yieldIndex?ln:Ie)}catch(wr){this.destination.error(wr)}}},{key:"_complete",value:function(){this.notifyComplete(this.yieldIndex?-1:void 0)}}]),we}(g.L);function cn(Ne,We){return function(we){return we.lift(new qe(Ne,we,!0,We))}}var Jn=f(64233),Zr=f(86072);function jr(){return function(We){return We.lift(new Cr)}}var Cr=function(){function Ne(){(0,I.Z)(this,Ne)}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new Kr(we))}}]),Ne}(),Kr=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(){return(0,I.Z)(this,we),We.apply(this,arguments)}return(0,C.Z)(we,[{key:"_next",value:function(Ie){}}]),we}(g.L);function co(){return function(Ne){return Ne.lift(new Ni)}}var Ni=function(){function Ne(){(0,I.Z)(this,Ne)}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new bo(we))}}]),Ne}(),bo=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze){return(0,I.Z)(this,we),We.call(this,Ze)}return(0,C.Z)(we,[{key:"notifyComplete",value:function(Ie){var nt=this.destination;nt.next(Ie),nt.complete()}},{key:"_next",value:function(Ie){this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),we}(g.L),po=f(99583),Xo=f(12698),ki=f(80286);function ro(){return function(We){return We.lift(new yi)}}var yi=function(){function Ne(){(0,I.Z)(this,Ne)}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new Yi(we))}}]),Ne}(),Yi=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze){return(0,I.Z)(this,we),We.call(this,Ze)}return(0,C.Z)(we,[{key:"_next",value:function(Ie){this.destination.next(ki.P.createNext(Ie))}},{key:"_error",value:function(Ie){var nt=this.destination;nt.next(ki.P.createError(Ie)),nt.complete()}},{key:"_complete",value:function(){var Ie=this.destination;Ie.next(ki.P.createComplete()),Ie.complete()}}]),we}(g.L),fo=f(31927),hi=f(64397),Ho=f(96194);function Ei(Ne,We){return arguments.length>=2?function(Ze){return(0,Ho.z)((0,fo.R)(Ne,We),(0,hi.h)(1),(0,on.d)(We))(Ze)}:function(Ze){return(0,Ho.z)((0,fo.R)(function(Ie,nt,xt){return Ne(Ie,nt,xt+1)}),(0,hi.h)(1))(Ze)}}function Wn(Ne){return Ei("function"==typeof Ne?function(we,Ze){return Ne(we,Ze)>0?we:Ze}:function(we,Ze){return we>Ze?we:Ze})}var Pt=f(55371);function Gt(){for(var Ne=arguments.length,We=new Array(Ne),we=0;we<Ne;we++)We[we]=arguments[we];return function(Ze){return Ze.lift.call(Pt.T.apply(void 0,[Ze].concat(We)))}}var It=f(65890),jt=f(35135);function Qt(Ne,We){var we=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof We?(0,jt.zg)(function(){return Ne},We,we):("number"==typeof We&&(we=We),(0,jt.zg)(function(){return Ne},we))}function Xt(Ne,We){var we=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return function(Ze){return Ze.lift(new yn(Ne,We,we))}}var yn=function(){function Ne(We,we,Ze){(0,I.Z)(this,Ne),this.accumulator=We,this.seed=we,this.concurrent=Ze}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new Gn(we,this.accumulator,this.seed,this.concurrent))}}]),Ne}(),Gn=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie,nt,xt){var ln;return(0,I.Z)(this,we),(ln=We.call(this,Ze)).accumulator=Ie,ln.acc=nt,ln.concurrent=xt,ln.hasValue=!1,ln.hasCompleted=!1,ln.buffer=[],ln.active=0,ln.index=0,ln}return(0,C.Z)(we,[{key:"_next",value:function(Ie){if(this.active<this.concurrent){var ln,nt=this.index++,xt=this.destination;try{ln=(0,this.accumulator)(this.acc,Ie,nt)}catch(wr){return xt.error(wr)}this.active++,this._innerSub(ln)}else this.buffer.push(Ie)}},{key:"_innerSub",value:function(Ie){var nt=new v.IY(this),xt=this.destination;xt.add(nt);var ln=(0,v.ft)(Ie,nt);ln!==nt&&xt.add(ln)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()}},{key:"notifyNext",value:function(Ie){var nt=this.destination;this.acc=Ie,this.hasValue=!0,nt.next(Ie)}},{key:"notifyComplete",value:function(){var Ie=this.buffer;this.active--,Ie.length>0?this._next(Ie.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}]),we}(v.Ds);function jn(Ne){return Ei("function"==typeof Ne?function(we,Ze){return Ne(we,Ze)<0?we:Ze}:function(we,Ze){return we<Ze?we:Ze})}var zn=f(4981),li=f(25110);function bi(){for(var Ne=arguments.length,We=new Array(Ne),we=0;we<Ne;we++)We[we]=arguments[we];return 1===We.length&&(0,De.k)(We[0])&&(We=We[0]),function(Ze){return Ze.lift(new Co(We))}}var Co=function(){function Ne(We){(0,I.Z)(this,Ne),this.nextSources=We}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new Fi(we,this.nextSources))}}]),Ne}(),Fi=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie){var nt;return(0,I.Z)(this,we),(nt=We.call(this,Ze)).destination=Ze,nt.nextSources=Ie,nt}return(0,C.Z)(we,[{key:"notifyError",value:function(){this.subscribeToNextSource()}},{key:"notifyComplete",value:function(){this.subscribeToNextSource()}},{key:"_error",value:function(Ie){this.subscribeToNextSource(),this.unsubscribe()}},{key:"_complete",value:function(){this.subscribeToNextSource(),this.unsubscribe()}},{key:"subscribeToNextSource",value:function(){var Ie=this.nextSources.shift();if(Ie){var nt=new v.IY(this),xt=this.destination;xt.add(nt);var ln=(0,v.ft)(Ie,nt);ln!==nt&&xt.add(ln)}else this.destination.complete()}}]),we}(v.Ds),Io=f(4363),$o=f(59849);function Eo(Ne,We){return function(we){return[(0,Lt.h)(Ne,We)(we),(0,Lt.h)((0,$o.f)(Ne,We))(we)]}}function oi(){for(var Ne=arguments.length,We=new Array(Ne),we=0;we<Ne;we++)We[we]=arguments[we];var Ze=We.length;if(0===Ze)throw new Error("list of properties cannot be empty.");return function(Ie){return(0,rn.U)(Vo(We,Ze))(Ie)}}function Vo(Ne,We){return function(Ie){for(var nt=Ie,xt=0;xt<We;xt++){var ln=null!=nt?nt[Ne[xt]]:void 0;if(void 0===ln)return;nt=ln}return nt}}var oo=f(68707);function ji(Ne){return Ne?(0,zn.O)(function(){return new oo.xQ},Ne):(0,zn.O)(new oo.xQ)}var Ji=f(90838);function qo(Ne){return function(We){return(0,zn.O)(new Ji.X(Ne))(We)}}var Ci=f(3435);function Qi(){return function(Ne){return(0,zn.O)(new Ci.c)(Ne)}}var mn=f(82667);function _n(Ne,We,we,Ze){we&&"function"!=typeof we&&(Ze=we);var Ie="function"==typeof we?we:void 0,nt=new mn.t(Ne,We,Ze);return function(xt){return(0,zn.O)(function(){return nt},Ie)(xt)}}var hr=f(31695);function ho(){for(var Ne=arguments.length,We=new Array(Ne),we=0;we<Ne;we++)We[we]=arguments[we];return function(Ie){return 1===We.length&&(0,De.k)(We[0])&&(We=We[0]),Ie.lift.call(hr.S3.apply(void 0,[Ie].concat((0,Se.Z)(We))))}}var ha=f(93487);function Si(){var Ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(We){return 0===Ne?(0,ha.c)():We.lift(new So(Ne<0?-1:Ne-1,We))}}var So=function(){function Ne(We,we){(0,I.Z)(this,Ne),this.count=We,this.source=we}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new Zi(we,this.count,this.source))}}]),Ne}(),Zi=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie,nt){var xt;return(0,I.Z)(this,we),(xt=We.call(this,Ze)).count=Ie,xt.source=nt,xt}return(0,C.Z)(we,[{key:"complete",value:function(){if(!this.isStopped){var Ie=this.source,nt=this.count;if(0===nt)return(0,A.Z)((0,y.Z)(we.prototype),"complete",this).call(this);nt>-1&&(this.count=nt-1),Ie.subscribe(this._unsubscribeAndRecycle())}}}]),we}(g.L);function ma(Ne){return function(We){return We.lift(new Mo(Ne))}}var Mo=function(){function Ne(We){(0,I.Z)(this,Ne),this.notifier=We}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new Ro(we,this.notifier,Ze))}}]),Ne}(),Ro=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie,nt){var xt;return(0,I.Z)(this,we),(xt=We.call(this,Ze)).notifier=Ie,xt.source=nt,xt.sourceIsBeingSubscribedTo=!0,xt}return(0,C.Z)(we,[{key:"notifyNext",value:function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}},{key:"notifyComplete",value:function(){if(!1===this.sourceIsBeingSubscribedTo)return(0,A.Z)((0,y.Z)(we.prototype),"complete",this).call(this)}},{key:"complete",value:function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return(0,A.Z)((0,y.Z)(we.prototype),"complete",this).call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}},{key:"_unsubscribe",value:function(){var Ie=this.notifications,nt=this.retriesSubscription;Ie&&(Ie.unsubscribe(),this.notifications=void 0),nt&&(nt.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"_unsubscribeAndRecycle",value:function(){var Ie=this._unsubscribe;return this._unsubscribe=null,(0,A.Z)((0,y.Z)(we.prototype),"_unsubscribeAndRecycle",this).call(this),this._unsubscribe=Ie,this}},{key:"subscribeToRetries",value:function(){var Ie;this.notifications=new oo.xQ;try{Ie=(0,this.notifier)(this.notifications)}catch(xt){return(0,A.Z)((0,y.Z)(we.prototype),"complete",this).call(this)}this.retries=Ie,this.retriesSubscription=(0,v.ft)(Ie,new v.IY(this))}}]),we}(v.Ds);function gs(){var Ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(We){return We.lift(new To(Ne,We))}}var To=function(){function Ne(We,we){(0,I.Z)(this,Ne),this.count=We,this.source=we}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new va(we,this.count,this.source))}}]),Ne}(),va=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie,nt){var xt;return(0,I.Z)(this,we),(xt=We.call(this,Ze)).count=Ie,xt.source=nt,xt}return(0,C.Z)(we,[{key:"error",value:function(Ie){if(!this.isStopped){var nt=this.source,xt=this.count;if(0===xt)return(0,A.Z)((0,y.Z)(we.prototype),"error",this).call(this,Ie);xt>-1&&(this.count=xt-1),nt.subscribe(this._unsubscribeAndRecycle())}}}]),we}(g.L);function Ma(Ne){return function(We){return We.lift(new jo(Ne,We))}}var jo=function(){function Ne(We,we){(0,I.Z)(this,Ne),this.notifier=We,this.source=we}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new xo(we,this.notifier,this.source))}}]),Ne}(),xo=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie,nt){var xt;return(0,I.Z)(this,we),(xt=We.call(this,Ze)).notifier=Ie,xt.source=nt,xt}return(0,C.Z)(we,[{key:"error",value:function(Ie){if(!this.isStopped){var nt=this.errors,xt=this.retries,ln=this.retriesSubscription;if(xt)this.errors=void 0,this.retriesSubscription=void 0;else{nt=new oo.xQ;try{xt=(0,this.notifier)(nt)}catch(wr){return(0,A.Z)((0,y.Z)(we.prototype),"error",this).call(this,wr)}ln=(0,v.ft)(xt,new v.IY(this))}this._unsubscribeAndRecycle(),this.errors=nt,this.retries=xt,this.retriesSubscription=ln,nt.next(Ie)}}},{key:"_unsubscribe",value:function(){var Ie=this.errors,nt=this.retriesSubscription;Ie&&(Ie.unsubscribe(),this.errors=void 0),nt&&(nt.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"notifyNext",value:function(){var Ie=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=Ie,this.source.subscribe(this)}}]),we}(v.Ds),Bi=f(26575);function ga(Ne){return function(We){return We.lift(new Ki(Ne))}}var Ki=function(){function Ne(We){(0,I.Z)(this,Ne),this.notifier=We}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){var Ie=new _a(we),nt=Ze.subscribe(Ie);return nt.add((0,v.ft)(this.notifier,new v.IY(Ie))),nt}}]),Ne}(),_a=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(){var Ze;return(0,I.Z)(this,we),(Ze=We.apply(this,arguments)).hasValue=!1,Ze}return(0,C.Z)(we,[{key:"_next",value:function(Ie){this.value=Ie,this.hasValue=!0}},{key:"notifyNext",value:function(){this.emitValue()}},{key:"notifyComplete",value:function(){this.emitValue()}},{key:"emitValue",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}]),we}(v.Ds);function Aa(Ne){var We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S.P;return function(we){return we.lift(new br(Ne,We))}}var br=function(){function Ne(We,we){(0,I.Z)(this,Ne),this.period=We,this.scheduler=we}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new Fn(we,this.period,this.scheduler))}}]),Ne}(),Fn=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie,nt){var xt;return(0,I.Z)(this,we),(xt=We.call(this,Ze)).period=Ie,xt.scheduler=nt,xt.hasValue=!1,xt.add(nt.schedule(Da,Ie,{subscriber:(0,V.Z)(xt),period:Ie})),xt}return(0,C.Z)(we,[{key:"_next",value:function(Ie){this.lastValue=Ie,this.hasValue=!0}},{key:"notifyNext",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}]),we}(g.L);function Da(Ne){var we=Ne.period;Ne.subscriber.notifyNext(),this.schedule(Ne,we)}function Ui(Ne,We){return function(we){return we.lift(new qa(Ne,We))}}var qa=function(){function Ne(We,we){(0,I.Z)(this,Ne),this.compareTo=We,this.comparator=we}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new lr(we,this.compareTo,this.comparator))}}]),Ne}(),lr=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie,nt){var xt;return(0,I.Z)(this,we),(xt=We.call(this,Ze)).compareTo=Ie,xt.comparator=nt,xt._a=[],xt._b=[],xt._oneComplete=!1,xt.destination.add(Ie.subscribe(new zi(Ze,(0,V.Z)(xt)))),xt}return(0,C.Z)(we,[{key:"_next",value:function(Ie){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(Ie),this.checkValues())}},{key:"_complete",value:function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()}},{key:"checkValues",value:function(){for(var Ie=this._a,nt=this._b,xt=this.comparator;Ie.length>0&&nt.length>0;){var ln=Ie.shift(),Tn=nt.shift(),wr=!1;try{wr=xt?xt(ln,Tn):ln===Tn}catch(Ri){this.destination.error(Ri)}wr||this.emit(!1)}}},{key:"emit",value:function(Ie){var nt=this.destination;nt.next(Ie),nt.complete()}},{key:"nextB",value:function(Ie){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(Ie),this.checkValues())}},{key:"completeB",value:function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}]),we}(g.L),zi=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie){var nt;return(0,I.Z)(this,we),(nt=We.call(this,Ze)).parent=Ie,nt}return(0,C.Z)(we,[{key:"_next",value:function(Ie){this.parent.nextB(Ie)}},{key:"_error",value:function(Ie){this.parent.error(Ie),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.completeB(),this.unsubscribe()}}]),we}(g.L),ja=f(16338),Pu=f(61106),ts=f(64646);function Xi(Ne){return function(We){return We.lift(new za(Ne,We))}}var za=function(){function Ne(We,we){(0,I.Z)(this,Ne),this.predicate=We,this.source=we}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new Cl(we,this.predicate,this.source))}}]),Ne}(),Cl=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie,nt){var xt;return(0,I.Z)(this,we),(xt=We.call(this,Ze)).predicate=Ie,xt.source=nt,xt.seenValue=!1,xt.index=0,xt}return(0,C.Z)(we,[{key:"applySingleValue",value:function(Ie){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=Ie)}},{key:"_next",value:function(Ie){var nt=this.index++;this.predicate?this.tryNext(Ie,nt):this.applySingleValue(Ie)}},{key:"tryNext",value:function(Ie,nt){try{this.predicate(Ie,nt,this.source)&&this.applySingleValue(Ie)}catch(xt){this.destination.error(xt)}}},{key:"_complete",value:function(){var Ie=this.destination;this.index>0?(Ie.next(this.seenValue?this.singleValue:void 0),Ie.complete()):Ie.error(new ts.K)}}]),we}(g.L),nn=f(18756);function ou(Ne){return function(We){return We.lift(new Sl(Ne))}}var Sl=function(){function Ne(We){if((0,I.Z)(this,Ne),this._skipCount=We,this._skipCount<0)throw new bt.W}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(0===this._skipCount?new g.L(we):new Tl(we,this._skipCount))}}]),Ne}(),Tl=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie){var nt;return(0,I.Z)(this,we),(nt=We.call(this,Ze))._skipCount=Ie,nt._count=0,nt._ring=new Array(Ie),nt}return(0,C.Z)(we,[{key:"_next",value:function(Ie){var nt=this._skipCount,xt=this._count++;if(xt<nt)this._ring[xt]=Ie;else{var ln=xt%nt,Tn=this._ring,wr=Tn[ln];Tn[ln]=Ie,this.destination.next(wr)}}}]),we}(g.L);function fe(Ne){return function(We){return We.lift(new Re(Ne))}}var Re=function(){function Ne(We){(0,I.Z)(this,Ne),this.notifier=We}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new $e(we,this.notifier))}}]),Ne}(),$e=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie){var nt;(0,I.Z)(this,we),(nt=We.call(this,Ze)).hasValue=!1;var xt=new v.IY((0,V.Z)(nt));nt.add(xt),nt.innerSubscription=xt;var ln=(0,v.ft)(Ie,xt);return ln!==xt&&(nt.add(ln),nt.innerSubscription=ln),nt}return(0,C.Z)(we,[{key:"_next",value:function(Ie){this.hasValue&&(0,A.Z)((0,y.Z)(we.prototype),"_next",this).call(this,Ie)}},{key:"notifyNext",value:function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()}},{key:"notifyComplete",value:function(){}}]),we}(v.Ds);function je(Ne){return function(We){return We.lift(new ie(Ne))}}var ie=function(){function Ne(We){(0,I.Z)(this,Ne),this.predicate=We}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new he(we,this.predicate))}}]),Ne}(),he=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie){var nt;return(0,I.Z)(this,we),(nt=We.call(this,Ze)).predicate=Ie,nt.skipping=!0,nt.index=0,nt}return(0,C.Z)(we,[{key:"_next",value:function(Ie){var nt=this.destination;this.skipping&&this.tryCallPredicate(Ie),this.skipping||nt.next(Ie)}},{key:"tryCallPredicate",value:function(Ie){try{var nt=this.predicate(Ie,this.index++);this.skipping=Boolean(nt)}catch(xt){this.destination.error(xt)}}}]),we}(g.L),_e=f(57682),be=f(18613);function Pe(Ne){var We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(Ze){return Ze.lift(new ze(Ne,We))}}var ze=function(){function Ne(We,we){(0,I.Z)(this,Ne),this.scheduler=We,this.delay=we}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return new be.e(Ze,this.delay,this.scheduler).subscribe(we)}}]),Ne}(),Tt=f(34487),pt=f(57070);function gt(){return(0,Tt.w)(pt.y)}function $r(Ne,We){return We?(0,Tt.w)(function(){return Ne},We):(0,Tt.w)(function(){return Ne})}var zr=f(44213),Pi=f(49196),ya=f(59371),ui=f(243);function Ii(Ne){var We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S.P,we=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ui.d;return function(Ze){return Ze.lift(new xl(Ne,We,we.leading,we.trailing))}}var xl=function(){function Ne(We,we,Ze,Ie){(0,I.Z)(this,Ne),this.duration=We,this.scheduler=we,this.leading=Ze,this.trailing=Ie}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new Oa(we,this.duration,this.scheduler,this.leading,this.trailing))}}]),Ne}(),Oa=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie,nt,xt,ln){var Tn;return(0,I.Z)(this,we),(Tn=We.call(this,Ze)).duration=Ie,Tn.scheduler=nt,Tn.leading=xt,Tn.trailing=ln,Tn._hasTrailingValue=!1,Tn._trailingValue=null,Tn}return(0,C.Z)(we,[{key:"_next",value:function(Ie){this.throttled?this.trailing&&(this._trailingValue=Ie,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(ns,this.duration,{subscriber:this})),this.leading?this.destination.next(Ie):this.trailing&&(this._trailingValue=Ie,this._hasTrailingValue=!0))}},{key:"_complete",value:function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}},{key:"clearThrottle",value:function(){var Ie=this.throttled;Ie&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),Ie.unsubscribe(),this.remove(Ie),this.throttled=null)}}]),we}(g.L);function ns(Ne){Ne.subscriber.clearThrottle()}var ba=f(73445),Ds=f(98691),Tp=f(88972);function xp(Ne,We){var we=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S.P;return function(Ze){var Ie=(0,Tp.J)(Ne),nt=Ie?+Ne-we.now():Math.abs(Ne);return Ze.lift(new Qs(nt,Ie,We,we))}}var Qs=function(){function Ne(We,we,Ze,Ie){(0,I.Z)(this,Ne),this.waitFor=We,this.absoluteTimeout=we,this.withObservable=Ze,this.scheduler=Ie}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new pc(we,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}]),Ne}(),pc=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie,nt,xt,ln){var Tn;return(0,I.Z)(this,we),(Tn=We.call(this,Ze)).absoluteTimeout=Ie,Tn.waitFor=nt,Tn.withObservable=xt,Tn.scheduler=ln,Tn.scheduleTimeout(),Tn}return(0,C.Z)(we,[{key:"scheduleTimeout",value:function(){var Ie=this.action;Ie?this.action=Ie.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(we.dispatchTimeout,this.waitFor,this))}},{key:"_next",value:function(Ie){this.absoluteTimeout||this.scheduleTimeout(),(0,A.Z)((0,y.Z)(we.prototype),"_next",this).call(this,Ie)}},{key:"_unsubscribe",value:function(){this.action=void 0,this.scheduler=null,this.withObservable=null}}],[{key:"dispatchTimeout",value:function(Ie){var nt=Ie.withObservable;Ie._unsubscribeAndRecycle(),Ie.add((0,v.ft)(nt,new v.IY(Ie)))}}]),we}(v.Ds),wl=f(11363);function Dr(Ne){var We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S.P;return xp(Ne,(0,wl._)(new Ds.W),We)}var wp=f(63706);function _d(Ne,We,we){return 0===we?[We]:(Ne.push(We),Ne)}function kp(){return Ei(_d,[])}function Ep(Ne){return function(we){return we.lift(new yd(Ne))}}var yd=function(){function Ne(We){(0,I.Z)(this,Ne),this.windowBoundaries=We}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){var Ie=new au(we),nt=Ze.subscribe(Ie);return nt.closed||Ie.add((0,v.ft)(this.windowBoundaries,new v.IY(Ie))),nt}}]),Ne}(),au=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze){var Ie;return(0,I.Z)(this,we),(Ie=We.call(this,Ze)).window=new oo.xQ,Ze.next(Ie.window),Ie}return(0,C.Z)(we,[{key:"notifyNext",value:function(){this.openWindow()}},{key:"notifyError",value:function(Ie){this._error(Ie)}},{key:"notifyComplete",value:function(){this._complete()}},{key:"_next",value:function(Ie){this.window.next(Ie)}},{key:"_error",value:function(Ie){this.window.error(Ie),this.destination.error(Ie)}},{key:"_complete",value:function(){this.window.complete(),this.destination.complete()}},{key:"_unsubscribe",value:function(){this.window=null}},{key:"openWindow",value:function(){var Ie=this.window;Ie&&Ie.complete();var nt=this.destination,xt=this.window=new oo.xQ;nt.next(xt)}}]),we}(v.Ds);function vv(Ne){var We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(Ze){return Ze.lift(new Ce(Ne,We))}}var Ce=function(){function Ne(We,we){(0,I.Z)(this,Ne),this.windowSize=We,this.startWindowEvery=we}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new ge(we,this.windowSize,this.startWindowEvery))}}]),Ne}(),ge=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie,nt){var xt;return(0,I.Z)(this,we),(xt=We.call(this,Ze)).destination=Ze,xt.windowSize=Ie,xt.startWindowEvery=nt,xt.windows=[new oo.xQ],xt.count=0,Ze.next(xt.windows[0]),xt}return(0,C.Z)(we,[{key:"_next",value:function(Ie){for(var nt=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,xt=this.destination,ln=this.windowSize,Tn=this.windows,wr=Tn.length,Ri=0;Ri<wr&&!this.closed;Ri++)Tn[Ri].next(Ie);var ea=this.count-ln+1;if(ea>=0&&ea%nt==0&&!this.closed&&Tn.shift().complete(),++this.count%nt==0&&!this.closed){var Pa=new oo.xQ;Tn.push(Pa),xt.next(Pa)}}},{key:"_error",value:function(Ie){var nt=this.windows;if(nt)for(;nt.length>0&&!this.closed;)nt.shift().error(Ie);this.destination.error(Ie)}},{key:"_complete",value:function(){var Ie=this.windows;if(Ie)for(;Ie.length>0&&!this.closed;)Ie.shift().complete();this.destination.complete()}},{key:"_unsubscribe",value:function(){this.count=0,this.windows=null}}]),we}(g.L),Q=f(11705);function $(Ne){var We=S.P,we=null,Ze=Number.POSITIVE_INFINITY;return(0,O.K)(arguments[3])&&(We=arguments[3]),(0,O.K)(arguments[2])?We=arguments[2]:(0,Q.k)(arguments[2])&&(Ze=Number(arguments[2])),(0,O.K)(arguments[1])?We=arguments[1]:(0,Q.k)(arguments[1])&&(we=Number(arguments[1])),function(nt){return nt.lift(new ke(Ne,we,Ze,We))}}var ke=function(){function Ne(We,we,Ze,Ie){(0,I.Z)(this,Ne),this.windowTimeSpan=We,this.windowCreationInterval=we,this.maxWindowSize=Ze,this.scheduler=Ie}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new ut(we,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}]),Ne}(),Be=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(){var Ze;return(0,I.Z)(this,we),(Ze=We.apply(this,arguments))._numberOfNextedValues=0,Ze}return(0,C.Z)(we,[{key:"next",value:function(Ie){this._numberOfNextedValues++,(0,A.Z)((0,y.Z)(we.prototype),"next",this).call(this,Ie)}},{key:"numberOfNextedValues",get:function(){return this._numberOfNextedValues}}]),we}(oo.xQ),ut=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie,nt,xt,ln){var Tn;(0,I.Z)(this,we),(Tn=We.call(this,Ze)).destination=Ze,Tn.windowTimeSpan=Ie,Tn.windowCreationInterval=nt,Tn.maxWindowSize=xt,Tn.scheduler=ln,Tn.windows=[];var wr=Tn.openWindow();if(null!==nt&&nt>=0){var Ri={subscriber:(0,V.Z)(Tn),window:wr,context:null},ea={windowTimeSpan:Ie,windowCreationInterval:nt,subscriber:(0,V.Z)(Tn),scheduler:ln};Tn.add(ln.schedule($t,Ie,Ri)),Tn.add(ln.schedule(Zt,nt,ea))}else{var Pa={subscriber:(0,V.Z)(Tn),window:wr,windowTimeSpan:Ie};Tn.add(ln.schedule(wt,Ie,Pa))}return Tn}return(0,C.Z)(we,[{key:"_next",value:function(Ie){for(var nt=this.windows,xt=nt.length,ln=0;ln<xt;ln++){var Tn=nt[ln];Tn.closed||(Tn.next(Ie),Tn.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(Tn))}}},{key:"_error",value:function(Ie){for(var nt=this.windows;nt.length>0;)nt.shift().error(Ie);this.destination.error(Ie)}},{key:"_complete",value:function(){for(var Ie=this.windows;Ie.length>0;){var nt=Ie.shift();nt.closed||nt.complete()}this.destination.complete()}},{key:"openWindow",value:function(){var Ie=new Be;return this.windows.push(Ie),this.destination.next(Ie),Ie}},{key:"closeWindow",value:function(Ie){Ie.complete();var nt=this.windows;nt.splice(nt.indexOf(Ie),1)}}]),we}(g.L);function wt(Ne){var We=Ne.subscriber,we=Ne.windowTimeSpan,Ze=Ne.window;Ze&&We.closeWindow(Ze),Ne.window=We.openWindow(),this.schedule(Ne,we)}function Zt(Ne){var We=Ne.windowTimeSpan,we=Ne.subscriber,Ze=Ne.scheduler,Ie=Ne.windowCreationInterval,nt=we.openWindow(),ln={action:this,subscription:null};ln.subscription=Ze.schedule($t,We,{subscriber:we,window:nt,context:ln}),this.add(ln.subscription),this.schedule(Ne,Ie)}function $t(Ne){var We=Ne.subscriber,we=Ne.window,Ze=Ne.context;Ze&&Ze.action&&Ze.subscription&&Ze.action.remove(Ze.subscription),We.closeWindow(we)}function dn(Ne,We){return function(we){return we.lift(new Dn(Ne,We))}}var Dn=function(){function Ne(We,we){(0,I.Z)(this,Ne),this.openings=We,this.closingSelector=we}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new Un(we,this.openings,this.closingSelector))}}]),Ne}(),Un=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie,nt){var xt;return(0,I.Z)(this,we),(xt=We.call(this,Ze)).openings=Ie,xt.closingSelector=nt,xt.contexts=[],xt.add(xt.openSubscription=(0,le.D)((0,V.Z)(xt),Ie,Ie)),xt}return(0,C.Z)(we,[{key:"_next",value:function(Ie){var nt=this.contexts;if(nt)for(var xt=nt.length,ln=0;ln<xt;ln++)nt[ln].window.next(Ie)}},{key:"_error",value:function(Ie){var nt=this.contexts;if(this.contexts=null,nt)for(var xt=nt.length,ln=-1;++ln<xt;){var Tn=nt[ln];Tn.window.error(Ie),Tn.subscription.unsubscribe()}(0,A.Z)((0,y.Z)(we.prototype),"_error",this).call(this,Ie)}},{key:"_complete",value:function(){var Ie=this.contexts;if(this.contexts=null,Ie)for(var nt=Ie.length,xt=-1;++xt<nt;){var ln=Ie[xt];ln.window.complete(),ln.subscription.unsubscribe()}(0,A.Z)((0,y.Z)(we.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var Ie=this.contexts;if(this.contexts=null,Ie)for(var nt=Ie.length,xt=-1;++xt<nt;){var ln=Ie[xt];ln.window.unsubscribe(),ln.subscription.unsubscribe()}}},{key:"notifyNext",value:function(Ie,nt,xt,ln,Tn){if(Ie===this.openings){var wr;try{wr=(0,this.closingSelector)(nt)}catch(_s){return this.error(_s)}var ea=new oo.xQ,Pa=new se.w,bd={window:ea,subscription:Pa};this.contexts.push(bd);var Do=(0,le.D)(this,wr,bd);Do.closed?this.closeWindow(this.contexts.length-1):(Do.context=bd,Pa.add(Do)),this.destination.next(ea)}else this.closeWindow(this.contexts.indexOf(Ie))}},{key:"notifyError",value:function(Ie){this.error(Ie)}},{key:"notifyComplete",value:function(Ie){Ie!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(Ie.context))}},{key:"closeWindow",value:function(Ie){if(-1!==Ie){var nt=this.contexts,xt=nt[Ie],ln=xt.window,Tn=xt.subscription;nt.splice(Ie,1),ln.complete(),Tn.unsubscribe()}}}]),we}(de.L);function Kn(Ne){return function(we){return we.lift(new mr(Ne))}}var mr=function(){function Ne(We){(0,I.Z)(this,Ne),this.closingSelector=We}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new Rr(we,this.closingSelector))}}]),Ne}(),Rr=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie){var nt;return(0,I.Z)(this,we),(nt=We.call(this,Ze)).destination=Ze,nt.closingSelector=Ie,nt.openWindow(),nt}return(0,C.Z)(we,[{key:"notifyNext",value:function(Ie,nt,xt,ln,Tn){this.openWindow(Tn)}},{key:"notifyError",value:function(Ie){this._error(Ie)}},{key:"notifyComplete",value:function(Ie){this.openWindow(Ie)}},{key:"_next",value:function(Ie){this.window.next(Ie)}},{key:"_error",value:function(Ie){this.window.error(Ie),this.destination.error(Ie),this.unsubscribeClosingNotification()}},{key:"_complete",value:function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()}},{key:"unsubscribeClosingNotification",value:function(){this.closingNotification&&this.closingNotification.unsubscribe()}},{key:"openWindow",value:function(){var Ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;Ie&&(this.remove(Ie),Ie.unsubscribe());var nt=this.window;nt&&nt.complete();var ln,xt=this.window=new oo.xQ;this.destination.next(xt);try{var Tn=this.closingSelector;ln=Tn()}catch(wr){return this.destination.error(wr),void this.window.error(wr)}this.add(this.closingNotification=(0,le.D)(this,ln))}}]),we}(de.L);function Sr(){for(var Ne=arguments.length,We=new Array(Ne),we=0;we<Ne;we++)We[we]=arguments[we];return function(Ze){var Ie;return"function"==typeof We[We.length-1]&&(Ie=We.pop()),Ze.lift(new Mr(We,Ie))}}var Mr=function(){function Ne(We,we){(0,I.Z)(this,Ne),this.observables=We,this.project=we}return(0,C.Z)(Ne,[{key:"call",value:function(we,Ze){return Ze.subscribe(new ci(we,this.observables,this.project))}}]),Ne}(),ci=function(Ne){(0,Z.Z)(we,Ne);var We=(0,T.Z)(we);function we(Ze,Ie,nt){var xt;(0,I.Z)(this,we),(xt=We.call(this,Ze)).observables=Ie,xt.project=nt,xt.toRespond=[];var ln=Ie.length;xt.values=new Array(ln);for(var Tn=0;Tn<ln;Tn++)xt.toRespond.push(Tn);for(var wr=0;wr<ln;wr++){var Ri=Ie[wr];xt.add((0,le.D)((0,V.Z)(xt),Ri,void 0,wr))}return xt}return(0,C.Z)(we,[{key:"notifyNext",value:function(Ie,nt,xt){this.values[xt]=nt;var ln=this.toRespond;if(ln.length>0){var Tn=ln.indexOf(xt);-1!==Tn&&ln.splice(Tn,1)}}},{key:"notifyComplete",value:function(){}},{key:"_next",value:function(Ie){if(0===this.toRespond.length){var nt=[Ie].concat((0,Se.Z)(this.values));this.project?this._tryProject(nt):this.destination.next(nt)}}},{key:"_tryProject",value:function(Ie){var nt;try{nt=this.project.apply(this,Ie)}catch(xt){return void this.destination.error(xt)}this.destination.next(nt)}}]),we}(de.L),Ti=f(43008);function ai(){for(var Ne=arguments.length,We=new Array(Ne),we=0;we<Ne;we++)We[we]=arguments[we];return function(Ie){return Ie.lift.call(Ti.$R.apply(void 0,[Ie].concat(We)))}}function Ao(Ne){return function(We){return We.lift(new Ti.mx(Ne))}}},53520:function(ce,q,f){"use strict";f.r(q),f.d(q,{TestScheduler:function(){return S}});var U=f(18967),B=f(14105),V=f(20901),Z=f(89200),T=f(10509),I=f(97154),C=f(89797),v=f(80286),P=f(5051),D=function O(L){var j=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;(0,U.Z)(this,O),this.subscribedFrame=L,this.unsubscribedFrame=j},y=(f(2808),function(O){(0,T.Z)(j,O);var L=(0,I.Z)(j);function j(K,W){var J;return(0,U.Z)(this,j),(J=L.call(this,function(oe){var te=this,se=te.logSubscribedFrame(),le=new P.w;return le.add(new P.w(function(){te.logUnsubscribedFrame(se)})),te.scheduleMessages(oe),le})).messages=K,J.subscriptions=[],J.scheduler=W,J}return(0,B.Z)(j,[{key:"scheduleMessages",value:function(W){for(var J=this.messages.length,oe=0;oe<J;oe++){var te=this.messages[oe];W.add(this.scheduler.schedule(function(se){se.message.notification.observe(se.subscriber)},te.frame,{message:te,subscriber:W}))}}}]),j}(C.y)),k=function(O){(0,T.Z)(j,O);var L=(0,I.Z)(j);function j(K,W){var J;return(0,U.Z)(this,j),(J=L.call(this)).messages=K,J.subscriptions=[],J.scheduler=W,J}return(0,B.Z)(j,[{key:"_subscribe",value:function(W){var J=this,oe=J.logSubscribedFrame(),te=new P.w;return te.add(new P.w(function(){J.logUnsubscribedFrame(oe)})),te.add((0,V.Z)((0,Z.Z)(j.prototype),"_subscribe",this).call(this,W)),te}},{key:"setup",value:function(){for(var W=this,J=W.messages.length,oe=0;oe<J;oe++)!function(){var te=W.messages[oe];W.scheduler.schedule(function(){te.notification.observe(W)},te.frame)}()}}]),j}(f(68707).xQ),N=f(2296),E=f(81572),S=function(O){(0,T.Z)(j,O);var L=(0,I.Z)(j);function j(K){var W;return(0,U.Z)(this,j),(W=L.call(this,N.h,750)).assertDeepEqual=K,W.hotObservables=[],W.coldObservables=[],W.flushTests=[],W.runMode=!1,W}return(0,B.Z)(j,[{key:"createTime",value:function(W){var J=W.indexOf("|");if(-1===J)throw new Error('marble diagram for time should have a completion marker "|"');return J*j.frameTimeFactor}},{key:"createColdObservable",value:function(W,J,oe){if(-1!==W.indexOf("^"))throw new Error('cold observable cannot have subscription offset "^"');if(-1!==W.indexOf("!"))throw new Error('cold observable cannot have unsubscription marker "!"');var te=j.parseMarbles(W,J,oe,void 0,this.runMode),se=new y(te,this);return this.coldObservables.push(se),se}},{key:"createHotObservable",value:function(W,J,oe){if(-1!==W.indexOf("!"))throw new Error('hot observable cannot have unsubscription marker "!"');var te=j.parseMarbles(W,J,oe,void 0,this.runMode),se=new k(te,this);return this.hotObservables.push(se),se}},{key:"materializeInnerObservable",value:function(W,J){var oe=this,te=[];return W.subscribe(function(se){te.push({frame:oe.frame-J,notification:v.P.createNext(se)})},function(se){te.push({frame:oe.frame-J,notification:v.P.createError(se)})},function(){te.push({frame:oe.frame-J,notification:v.P.createComplete()})}),te}},{key:"expectObservable",value:function(W){var ae,J=this,oe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,te=[],se={actual:te,ready:!1},le=j.parseMarblesAsSubscriptions(oe,this.runMode),de=le.subscribedFrame===Number.POSITIVE_INFINITY?0:le.subscribedFrame,ue=le.unsubscribedFrame;this.schedule(function(){ae=W.subscribe(function(ye){var ot=ye;ye instanceof C.y&&(ot=J.materializeInnerObservable(ot,J.frame)),te.push({frame:J.frame,notification:v.P.createNext(ot)})},function(ye){te.push({frame:J.frame,notification:v.P.createError(ye)})},function(){te.push({frame:J.frame,notification:v.P.createComplete()})})},de),ue!==Number.POSITIVE_INFINITY&&this.schedule(function(){return ae.unsubscribe()},ue),this.flushTests.push(se);var Me=this.runMode;return{toBe:function(ot,He,_t){se.ready=!0,se.expected=j.parseMarbles(ot,He,_t,!0,Me)}}}},{key:"expectSubscriptions",value:function(W){var J={actual:W,ready:!1};this.flushTests.push(J);var oe=this.runMode;return{toBe:function(se){var le="string"==typeof se?[se]:se;J.ready=!0,J.expected=le.map(function(de){return j.parseMarblesAsSubscriptions(de,oe)})}}}},{key:"flush",value:function(){for(var W=this,J=this.hotObservables;J.length>0;)J.shift().setup();(0,V.Z)((0,Z.Z)(j.prototype),"flush",this).call(this),this.flushTests=this.flushTests.filter(function(oe){return!oe.ready||(W.assertDeepEqual(oe.actual,oe.expected),!1)})}},{key:"run",value:function(W){var J=j.frameTimeFactor,oe=this.maxFrames;j.frameTimeFactor=1,this.maxFrames=Number.POSITIVE_INFINITY,this.runMode=!0,E.v.delegate=this;var te={cold:this.createColdObservable.bind(this),hot:this.createHotObservable.bind(this),flush:this.flush.bind(this),expectObservable:this.expectObservable.bind(this),expectSubscriptions:this.expectSubscriptions.bind(this)};try{var se=W(te);return this.flush(),se}finally{j.frameTimeFactor=J,this.maxFrames=oe,this.runMode=!1,E.v.delegate=void 0}}}],[{key:"parseMarblesAsSubscriptions",value:function(W){var J=this,oe=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"!=typeof W)return new D(Number.POSITIVE_INFINITY);for(var te=W.length,se=-1,le=Number.POSITIVE_INFINITY,de=Number.POSITIVE_INFINITY,ue=0,ae=0;ae<te;ae++){var Me=ue,ye=function(Ve){Me+=Ve*J.frameTimeFactor},ot=W[ae];switch(ot){case" ":oe||ye(1);break;case"-":ye(1);break;case"(":se=ue,ye(1);break;case")":se=-1,ye(1);break;case"^":if(le!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");le=se>-1?se:ue,ye(1);break;case"!":if(de!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");de=se>-1?se:ue;break;default:if(oe&&ot.match(/^[0-9]$/)&&(0===ae||" "===W[ae-1])){var He=W.slice(ae),_t=He.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if(_t){ae+=_t[0].length-1;var yt=parseFloat(_t[1]),Bt=_t[2],Se=void 0;switch(Bt){case"ms":Se=yt;break;case"s":Se=1e3*yt;break;case"m":Se=1e3*yt*60}ye(Se/this.frameTimeFactor);break}}throw new Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+ot+"'.")}ue=Me}return de<0?new D(le):new D(le,de)}},{key:"parseMarbles",value:function(W,J,oe){var te=this,se=arguments.length>3&&void 0!==arguments[3]&&arguments[3],le=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(-1!==W.indexOf("!"))throw new Error('conventional marble diagrams cannot have the unsubscription marker "!"');for(var de=W.length,ue=[],ae=le?W.replace(/^[ ]+/,"").indexOf("^"):W.indexOf("^"),Me=-1===ae?0:ae*-this.frameTimeFactor,ye="object"!=typeof J?function(Et){return Et}:function(Et){return se&&J[Et]instanceof y?J[Et].messages:J[Et]},ot=-1,He=0;He<de;He++){var _t=Me,yt=function(vt){_t+=vt*te.frameTimeFactor},Bt=void 0,Se=W[He];switch(Se){case" ":le||yt(1);break;case"-":yt(1);break;case"(":ot=Me,yt(1);break;case")":ot=-1,yt(1);break;case"|":Bt=v.P.createComplete(),yt(1);break;case"^":yt(1);break;case"#":Bt=v.P.createError(oe||"error"),yt(1);break;default:if(le&&Se.match(/^[0-9]$/)&&(0===He||" "===W[He-1])){var De=W.slice(He),Ve=De.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if(Ve){He+=Ve[0].length-1;var ct=parseFloat(Ve[1]),Je=Ve[2],Ut=void 0;switch(Je){case"ms":Ut=ct;break;case"s":Ut=1e3*ct;break;case"m":Ut=1e3*ct*60}yt(Ut/this.frameTimeFactor);break}}Bt=v.P.createNext(ye(Se)),yt(1)}Bt&&ue.push({frame:ot>-1?ot:Me,notification:Bt}),Me=_t}return ue}}]),j}(N.y)},4194:function(ce,q,f){"use strict";f.r(q),f.d(q,{webSocket:function(){return U.j},WebSocketSubject:function(){return B.p}});var U=f(99298),B=f(46095)},26918:function(ce,q,f){"use strict";f(68663)},56205:function(ce,q){"use strict";var U;!function(){var B=q||{};void 0!==(U=function(){return B}.apply(q,[]))&&(ce.exports=U),B.default=B;var V="http://www.w3.org/2000/xmlns/",T="http://www.w3.org/2000/svg",C=/url\(["']?(.+?)["']?\)/,v={woff2:"font/woff2",woff:"font/woff",otf:"application/x-font-opentype",ttf:"application/x-font-ttf",eot:"application/vnd.ms-fontobject",sfnt:"application/font-sfnt",svg:"image/svg+xml"},P=function(le){return le instanceof HTMLElement||le instanceof SVGElement},D=function(le){if(!P(le))throw new Error("an HTMLElement or SVGElement is required; got "+le)},M=function(le){return new Promise(function(de,ue){P(le)?de(le):ue(new Error("an HTMLElement or SVGElement is required; got "+le))})},y=function(le){var de=Object.keys(v).filter(function(ue){return le.indexOf("."+ue)>0}).map(function(ue){return v[ue]});return de?de[0]:(console.error("Unknown font format for "+le+". Fonts may not be working correctly."),"application/octet-stream")},k=function(le,de,ue){var ae=le.viewBox&&le.viewBox.baseVal&&le.viewBox.baseVal[ue]||null!==de.getAttribute(ue)&&!de.getAttribute(ue).match(/%$/)&&parseInt(de.getAttribute(ue))||le.getBoundingClientRect()[ue]||parseInt(de.style[ue])||parseInt(window.getComputedStyle(le).getPropertyValue(ue));return null==ae||isNaN(parseFloat(ae))?0:ae},x=function(le){for(var de=window.atob(le.split(",")[1]),ue=le.split(",")[0].split(":")[1].split(";")[0],ae=new ArrayBuffer(de.length),Me=new Uint8Array(ae),ye=0;ye<de.length;ye++)Me[ye]=de.charCodeAt(ye);return new Blob([ae],{type:ue})},j={},W=null,oe=function(le,de){var ue=de||{},ae=ue.selectorRemap,Me=ue.modifyStyle,ot=ue.fonts,He=ue.excludeUnusedCss,_t=ue.modifyCss||function(De,Ve){return(ae?ae(De):De)+"{"+(Me?Me(Ve):Ve)+"}\n"},yt=[],Bt=void 0===ot,Se=ot||[];return(W||(W=Array.from(document.styleSheets).map(function(le){try{return{rules:le.cssRules,href:le.href}}catch(de){return console.warn("Stylesheet could not be loaded: "+le.href,de),{}}}))).forEach(function(De){var Ve=De.rules,ct=De.href;!Ve||Array.from(Ve).forEach(function(Je){if(void 0!==Je.style)if(function(le,de){if(de)try{return le.querySelector(de)||le.parentNode&&le.parentNode.querySelector(de)}catch(ue){console.warn('Invalid CSS selector "'+de+'"',ue)}}(le,Je.selectorText))yt.push(_t(Je.selectorText,Je.style.cssText));else if(Bt&&Je.cssText.match(/^@font-face/)){var Ut=function(le,de){var ue=le.cssText.match(C),ae=ue&&ue[1]||"";if(ae&&!ae.match(/^data:/)&&"about:blank"!==ae){var Me=ae.startsWith("../")?de+"/../"+ae:ae.startsWith("./")?de+"/."+ae:ae;return{text:le.cssText,format:y(Me),url:Me}}}(Je,ct);Ut&&Se.push(Ut)}else He||yt.push(Je.cssText)})}),function(le){return Promise.all(le.map(function(de){return new Promise(function(ue,ae){if(j[de.url])return ue(j[de.url]);var Me=new XMLHttpRequest;Me.addEventListener("load",function(){var ye=function(le){for(var de="",ue=new Uint8Array(le),ae=0;ae<ue.byteLength;ae++)de+=String.fromCharCode(ue[ae]);return window.btoa(de)}(Me.response),ot=de.text.replace(C,'url("data:'+de.format+";base64,"+ye+'")')+"\n";j[de.url]=ot,ue(ot)}),Me.addEventListener("error",function(ye){console.warn("Failed to load font from: "+de.url,ye),j[de.url]=null,ue(null)}),Me.addEventListener("abort",function(ye){console.warn("Aborted loading font from: "+de.url,ye),ue(null)}),Me.open("GET",de.url),Me.responseType="arraybuffer",Me.send()})})).then(function(de){return de.filter(function(ue){return ue}).join("")})}(Se).then(function(De){return yt.join("\n")+De})},te=function(){if(!navigator.msSaveOrOpenBlob&&!("download"in document.createElement("a")))return{popup:window.open()}};B.prepareSvg=function(se,le,de){D(se);var ue=le||{},ae=ue.left,Me=void 0===ae?0:ae,ye=ue.top,ot=void 0===ye?0:ye,He=ue.width,_t=ue.height,yt=ue.scale,Bt=void 0===yt?1:yt,Se=ue.responsive,De=void 0!==Se&&Se,Ve=ue.excludeCss,ct=void 0!==Ve&&Ve;return function(le){return Promise.all(Array.from(le.querySelectorAll("image")).map(function(de){var ue=de.getAttributeNS("http://www.w3.org/1999/xlink","href")||de.getAttribute("href");return ue?(function(le){return le&&0===le.lastIndexOf("http",0)&&-1===le.lastIndexOf(window.location.host)}(ue)&&(ue+=(-1===ue.indexOf("?")?"?":"&")+"t="+(new Date).valueOf()),new Promise(function(ae,Me){var ye=document.createElement("canvas"),ot=new Image;ot.crossOrigin="anonymous",ot.src=ue,ot.onerror=function(){return Me(new Error("Could not load "+ue))},ot.onload=function(){ye.width=ot.width,ye.height=ot.height,ye.getContext("2d").drawImage(ot,0,0),de.setAttributeNS("http://www.w3.org/1999/xlink","href",ye.toDataURL("image/png")),ae(!0)}})):Promise.resolve(null)}))}(se).then(function(){var Je=se.cloneNode(!0);Je.style.backgroundColor=(le||{}).backgroundColor||se.style.backgroundColor;var Ut=function(le,de,ue,ae){if("svg"===le.tagName)return{width:ue||k(le,de,"width"),height:ae||k(le,de,"height")};if(le.getBBox){var Me=le.getBBox();return{width:Me.x+Me.width,height:Me.y+Me.height}}}(se,Je,He,_t),Et=Ut.width,vt=Ut.height;if("svg"!==se.tagName){if(!se.getBBox)return void console.error("Attempted to render non-SVG element",se);null!=Je.getAttribute("transform")&&Je.setAttribute("transform",Je.getAttribute("transform").replace(/translate\(.*?\)/,""));var Kt=document.createElementNS("http://www.w3.org/2000/svg","svg");Kt.appendChild(Je),Je=Kt}if(Je.setAttribute("version","1.1"),Je.setAttribute("viewBox",[Me,ot,Et,vt].join(" ")),Je.getAttribute("xmlns")||Je.setAttributeNS(V,"xmlns",T),Je.getAttribute("xmlns:xlink")||Je.setAttributeNS(V,"xmlns:xlink","http://www.w3.org/1999/xlink"),De?(Je.removeAttribute("width"),Je.removeAttribute("height"),Je.setAttribute("preserveAspectRatio","xMinYMin meet")):(Je.setAttribute("width",Et*Bt),Je.setAttribute("height",vt*Bt)),Array.from(Je.querySelectorAll("foreignObject > *")).forEach(function(qt){qt.setAttributeNS(V,"xmlns","svg"===qt.tagName?T:"http://www.w3.org/1999/xhtml")}),!ct)return oe(se,le).then(function(qt){var Ct=document.createElement("style");Ct.setAttribute("type","text/css"),Ct.innerHTML="<![CDATA[\n"+qt+"\n]]>";var en=document.createElement("defs");en.appendChild(Ct),Je.insertBefore(en,Je.firstChild);var Ft=document.createElement("div");Ft.appendChild(Je);var on=Ft.innerHTML.replace(/NS\d+:href/gi,'xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href');if("function"!=typeof de)return{src:on,width:Et,height:vt};de(on,Et,vt)});var Vt=document.createElement("div");Vt.appendChild(Je);var St=Vt.innerHTML;if("function"!=typeof de)return{src:St,width:Et,height:vt};de(St,Et,vt)})},B.svgAsDataUri=function(se,le,de){return D(se),B.prepareSvg(se,le).then(function(ue){var Me=ue.width,ye=ue.height,ot="data:image/svg+xml;base64,"+window.btoa(function(le){return decodeURIComponent(encodeURIComponent(le).replace(/%([0-9A-F]{2})/g,function(de,ue){var ae=String.fromCharCode("0x"+ue);return"%"===ae?"%25":ae}))}('<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [<!ENTITY nbsp "&#160;">]>'+ue.src));return"function"==typeof de&&de(ot,Me,ye),ot})},B.svgAsPngUri=function(se,le,de){D(se);var ue=le||{},ae=ue.encoderType,Me=void 0===ae?"image/png":ae,ye=ue.encoderOptions,ot=void 0===ye?.8:ye,He=ue.canvg,_t=function(Bt){var Se=Bt.src,De=Bt.width,Ve=Bt.height,ct=document.createElement("canvas"),Je=ct.getContext("2d"),Ut=window.devicePixelRatio||1;ct.width=De*Ut,ct.height=Ve*Ut,ct.style.width=ct.width+"px",ct.style.height=ct.height+"px",Je.setTransform(Ut,0,0,Ut,0,0),He?He(ct,Se):Je.drawImage(Se,0,0);var Et=void 0;try{Et=ct.toDataURL(Me,ot)}catch(vt){if("undefined"!=typeof SecurityError&&vt instanceof SecurityError||"SecurityError"===vt.name)return void console.error("Rendered SVG images cannot be downloaded in this browser.");throw vt}return"function"==typeof de&&de(Et,ct.width,ct.height),Promise.resolve(Et)};return He?B.prepareSvg(se,le).then(_t):B.svgAsDataUri(se,le).then(function(yt){return new Promise(function(Bt,Se){var De=new Image;De.onload=function(){return Bt(_t({src:De,width:De.width,height:De.height}))},De.onerror=function(){Se("There was an error loading the data URI as an image on the following SVG\n"+window.atob(yt.slice(26))+"Open the following link to see browser's diagnosis\n"+yt)},De.src=yt})})},B.download=function(se,le,de){if(navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(x(le),se);else{var ue=document.createElement("a");if("download"in ue){ue.download=se,ue.style.display="none",document.body.appendChild(ue);try{var ae=x(le),Me=URL.createObjectURL(ae);ue.href=Me,ue.onclick=function(){return requestAnimationFrame(function(){return URL.revokeObjectURL(Me)})}}catch(ye){console.error(ye),console.warn("Error while getting object URL. Falling back to string URL."),ue.href=le}ue.click(),document.body.removeChild(ue)}else de&&de.popup&&(de.popup.document.title=se,de.popup.location.replace(le))}},B.saveSvg=function(se,le,de){var ue=te();return M(se).then(function(ae){return B.svgAsDataUri(ae,de||{})}).then(function(ae){return B.download(le,ae,ue)})},B.saveSvgAsPng=function(se,le,de){var ue=te();return M(se).then(function(ae){return B.svgAsPngUri(ae,de||{})}).then(function(ae){return B.download(le,ae,ue)})}}()},5042:function(ce,q,f){var U=f(25523),B=Object.prototype.hasOwnProperty,V="undefined"!=typeof Map;function Z(){this._array=[],this._set=V?new Map:Object.create(null)}Z.fromArray=function(I,C){for(var v=new Z,P=0,D=I.length;P<D;P++)v.add(I[P],C);return v},Z.prototype.size=function(){return V?this._set.size:Object.getOwnPropertyNames(this._set).length},Z.prototype.add=function(I,C){var v=V?I:U.toSetString(I),P=V?this.has(I):B.call(this._set,v),D=this._array.length;(!P||C)&&this._array.push(I),P||(V?this._set.set(I,D):this._set[v]=D)},Z.prototype.has=function(I){if(V)return this._set.has(I);var C=U.toSetString(I);return B.call(this._set,C)},Z.prototype.indexOf=function(I){if(V){var C=this._set.get(I);if(C>=0)return C}else{var v=U.toSetString(I);if(B.call(this._set,v))return this._set[v]}throw new Error('"'+I+'" is not in the set.')},Z.prototype.at=function(I){if(I>=0&&I<this._array.length)return this._array[I];throw new Error("No element indexed by "+I)},Z.prototype.toArray=function(){return this._array.slice()},q.I=Z},78619:function(ce,q,f){var U=f(7698);q.encode=function(P){var M,v,D="",A=(v=P)<0?1+(-v<<1):0+(v<<1);do{M=31&A,(A>>>=5)>0&&(M|=32),D+=U.encode(M)}while(A>0);return D},q.decode=function(P,D,M){var k,N,A=P.length,y=0,g=0;do{if(D>=A)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(N=U.decode(P.charCodeAt(D++))))throw new Error("Invalid base64 digit: "+P.charAt(D-1));k=!!(32&N),y+=(N&=31)<<g,g+=5}while(k);M.value=function(v){var D=v>>1;return 1==(1&v)?-D:D}(y),M.rest=D}},7698:function(ce,q){var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");q.encode=function(U){if(0<=U&&U<f.length)return f[U];throw new TypeError("Must be between 0 and 63: "+U)},q.decode=function(U){return 65<=U&&U<=90?U-65:97<=U&&U<=122?U-97+26:48<=U&&U<=57?U-48+52:43==U?62:47==U?63:-1}},66306:function(ce,q,f){var U=f(25523);function V(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}V.prototype.unsortedForEach=function(T,I){this._array.forEach(T,I)},V.prototype.add=function(T){!function(Z,T){var I=Z.generatedLine,C=T.generatedLine;return C>I||C==I&&T.generatedColumn>=Z.generatedColumn||U.compareByGeneratedPositionsInflated(Z,T)<=0}(this._last,T)?(this._sorted=!1,this._array.push(T)):(this._last=T,this._array.push(T))},V.prototype.toArray=function(){return this._sorted||(this._array.sort(U.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},q.H=V},30673:function(ce,q,f){var U=f(78619),B=f(25523),V=f(5042).I,Z=f(66306).H;function T(I){I||(I={}),this._file=B.getArg(I,"file",null),this._sourceRoot=B.getArg(I,"sourceRoot",null),this._skipValidation=B.getArg(I,"skipValidation",!1),this._sources=new V,this._names=new V,this._mappings=new Z,this._sourcesContents=null}T.prototype._version=3,T.fromSourceMap=function(C){var v=C.sourceRoot,P=new T({file:C.file,sourceRoot:v});return C.eachMapping(function(D){var M={generated:{line:D.generatedLine,column:D.generatedColumn}};null!=D.source&&(M.source=D.source,null!=v&&(M.source=B.relative(v,M.source)),M.original={line:D.originalLine,column:D.originalColumn},null!=D.name&&(M.name=D.name)),P.addMapping(M)}),C.sources.forEach(function(D){var M=D;null!==v&&(M=B.relative(v,D)),P._sources.has(M)||P._sources.add(M);var A=C.sourceContentFor(D);null!=A&&P.setSourceContent(D,A)}),P},T.prototype.addMapping=function(C){var v=B.getArg(C,"generated"),P=B.getArg(C,"original",null),D=B.getArg(C,"source",null),M=B.getArg(C,"name",null);this._skipValidation||this._validateMapping(v,P,D,M),null!=D&&(D=String(D),this._sources.has(D)||this._sources.add(D)),null!=M&&(M=String(M),this._names.has(M)||this._names.add(M)),this._mappings.add({generatedLine:v.line,generatedColumn:v.column,originalLine:null!=P&&P.line,originalColumn:null!=P&&P.column,source:D,name:M})},T.prototype.setSourceContent=function(C,v){var P=C;null!=this._sourceRoot&&(P=B.relative(this._sourceRoot,P)),null!=v?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[B.toSetString(P)]=v):this._sourcesContents&&(delete this._sourcesContents[B.toSetString(P)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},T.prototype.applySourceMap=function(C,v,P){var D=v;if(null==v){if(null==C.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');D=C.file}var M=this._sourceRoot;null!=M&&(D=B.relative(M,D));var A=new V,y=new V;this._mappings.unsortedForEach(function(g){if(g.source===D&&null!=g.originalLine){var k=C.originalPositionFor({line:g.originalLine,column:g.originalColumn});null!=k.source&&(g.source=k.source,null!=P&&(g.source=B.join(P,g.source)),null!=M&&(g.source=B.relative(M,g.source)),g.originalLine=k.line,g.originalColumn=k.column,null!=k.name&&(g.name=k.name))}var N=g.source;null!=N&&!A.has(N)&&A.add(N);var E=g.name;null!=E&&!y.has(E)&&y.add(E)},this),this._sources=A,this._names=y,C.sources.forEach(function(g){var k=C.sourceContentFor(g);null!=k&&(null!=P&&(g=B.join(P,g)),null!=M&&(g=B.relative(M,g)),this.setSourceContent(g,k))},this)},T.prototype._validateMapping=function(C,v,P,D){if(v&&"number"!=typeof v.line&&"number"!=typeof v.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(C&&"line"in C&&"column"in C&&C.line>0&&C.column>=0)||v||P||D){if(C&&"line"in C&&"column"in C&&v&&"line"in v&&"column"in v&&C.line>0&&C.column>=0&&v.line>0&&v.column>=0&&P)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:C,source:P,original:v,name:D}))}},T.prototype._serializeMappings=function(){for(var g,k,N,E,C=0,v=1,P=0,D=0,M=0,A=0,y="",x=this._mappings.toArray(),S=0,O=x.length;S<O;S++){if(g="",(k=x[S]).generatedLine!==v)for(C=0;k.generatedLine!==v;)g+=";",v++;else if(S>0){if(!B.compareByGeneratedPositionsInflated(k,x[S-1]))continue;g+=","}g+=U.encode(k.generatedColumn-C),C=k.generatedColumn,null!=k.source&&(E=this._sources.indexOf(k.source),g+=U.encode(E-A),A=E,g+=U.encode(k.originalLine-1-D),D=k.originalLine-1,g+=U.encode(k.originalColumn-P),P=k.originalColumn,null!=k.name&&(N=this._names.indexOf(k.name),g+=U.encode(N-M),M=N)),y+=g}return y},T.prototype._generateSourcesContent=function(C,v){return C.map(function(P){if(!this._sourcesContents)return null;null!=v&&(P=B.relative(v,P));var D=B.toSetString(P);return Object.prototype.hasOwnProperty.call(this._sourcesContents,D)?this._sourcesContents[D]:null},this)},T.prototype.toJSON=function(){var C={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(C.file=this._file),null!=this._sourceRoot&&(C.sourceRoot=this._sourceRoot),this._sourcesContents&&(C.sourcesContent=this._generateSourcesContent(C.sources,C.sourceRoot)),C},T.prototype.toString=function(){return JSON.stringify(this.toJSON())},q.h=T},25523:function(ce,q){q.getArg=function(S,O,L){if(O in S)return S[O];if(3===arguments.length)return L;throw new Error('"'+O+'" is a required argument.')};var U=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,B=/^data:.+\,.+$/;function V(S){var O=S.match(U);return O?{scheme:O[1],auth:O[2],host:O[3],port:O[4],path:O[5]}:null}function Z(S){var O="";return S.scheme&&(O+=S.scheme+":"),O+="//",S.auth&&(O+=S.auth+"@"),S.host&&(O+=S.host),S.port&&(O+=":"+S.port),S.path&&(O+=S.path),O}function T(S){var O=S,L=V(S);if(L){if(!L.path)return S;O=L.path}for(var W,j=q.isAbsolute(O),K=O.split(/\/+/),J=0,oe=K.length-1;oe>=0;oe--)"."===(W=K[oe])?K.splice(oe,1):".."===W?J++:J>0&&(""===W?(K.splice(oe+1,J),J=0):(K.splice(oe,2),J--));return""===(O=K.join("/"))&&(O=j?"/":"."),L?(L.path=O,Z(L)):O}function I(S,O){""===S&&(S="."),""===O&&(O=".");var L=V(O),j=V(S);if(j&&(S=j.path||"/"),L&&!L.scheme)return j&&(L.scheme=j.scheme),Z(L);if(L||O.match(B))return O;if(j&&!j.host&&!j.path)return j.host=O,Z(j);var K="/"===O.charAt(0)?O:T(S.replace(/\/+$/,"")+"/"+O);return j?(j.path=K,Z(j)):K}q.urlParse=V,q.urlGenerate=Z,q.normalize=T,q.join=I,q.isAbsolute=function(S){return"/"===S.charAt(0)||U.test(S)},q.relative=function(S,O){""===S&&(S="."),S=S.replace(/\/$/,"");for(var L=0;0!==O.indexOf(S+"/");){var j=S.lastIndexOf("/");if(j<0||(S=S.slice(0,j)).match(/^([^\/]+:\/)?\/*$/))return O;++L}return Array(L+1).join("../")+O.substr(S.length+1)};var v=!("__proto__"in Object.create(null));function P(S){return S}function A(S){if(!S)return!1;var O=S.length;if(O<9||95!==S.charCodeAt(O-1)||95!==S.charCodeAt(O-2)||111!==S.charCodeAt(O-3)||116!==S.charCodeAt(O-4)||111!==S.charCodeAt(O-5)||114!==S.charCodeAt(O-6)||112!==S.charCodeAt(O-7)||95!==S.charCodeAt(O-8)||95!==S.charCodeAt(O-9))return!1;for(var L=O-10;L>=0;L--)if(36!==S.charCodeAt(L))return!1;return!0}function k(S,O){return S===O?0:null===S?1:null===O?-1:S>O?1:-1}q.toSetString=v?P:function(S){return A(S)?"$"+S:S},q.fromSetString=v?P:function(S){return A(S)?S.slice(1):S},q.compareByOriginalPositions=function(S,O,L){var j=k(S.source,O.source);return 0!==j||0!=(j=S.originalLine-O.originalLine)||0!=(j=S.originalColumn-O.originalColumn)||L||0!=(j=S.generatedColumn-O.generatedColumn)||0!=(j=S.generatedLine-O.generatedLine)?j:k(S.name,O.name)},q.compareByGeneratedPositionsDeflated=function(S,O,L){var j=S.generatedLine-O.generatedLine;return 0!==j||0!=(j=S.generatedColumn-O.generatedColumn)||L||0!==(j=k(S.source,O.source))||0!=(j=S.originalLine-O.originalLine)||0!=(j=S.originalColumn-O.originalColumn)?j:k(S.name,O.name)},q.compareByGeneratedPositionsInflated=function(S,O){var L=S.generatedLine-O.generatedLine;return 0!==L||0!=(L=S.generatedColumn-O.generatedColumn)||0!==(L=k(S.source,O.source))||0!=(L=S.originalLine-O.originalLine)||0!=(L=S.originalColumn-O.originalColumn)?L:k(S.name,O.name)},q.parseSourceMapInput=function(S){return JSON.parse(S.replace(/^\)]}'[^\n]*\n/,""))},q.computeSourceURL=function(S,O,L){if(O=O||"",S&&("/"!==S[S.length-1]&&"/"!==O[0]&&(S+="/"),O=S+O),L){var j=V(L);if(!j)throw new Error("sourceMapURL could not be parsed");if(j.path){var K=j.path.lastIndexOf("/");K>=0&&(j.path=j.path.substring(0,K+1))}O=I(Z(j),O)}return T(O)}},52402:function(ce){ce.exports=function(q){"use strict";var U=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function V(N,E){var x=N[0],S=N[1],O=N[2],L=N[3];S=((S+=((O=((O+=((L=((L+=((x=((x+=(S&O|~S&L)+E[0]-680876936|0)<<7|x>>>25)+S|0)&S|~x&O)+E[1]-389564586|0)<<12|L>>>20)+x|0)&x|~L&S)+E[2]+606105819|0)<<17|O>>>15)+L|0)&L|~O&x)+E[3]-1044525330|0)<<22|S>>>10)+O|0,S=((S+=((O=((O+=((L=((L+=((x=((x+=(S&O|~S&L)+E[4]-176418897|0)<<7|x>>>25)+S|0)&S|~x&O)+E[5]+1200080426|0)<<12|L>>>20)+x|0)&x|~L&S)+E[6]-1473231341|0)<<17|O>>>15)+L|0)&L|~O&x)+E[7]-45705983|0)<<22|S>>>10)+O|0,S=((S+=((O=((O+=((L=((L+=((x=((x+=(S&O|~S&L)+E[8]+1770035416|0)<<7|x>>>25)+S|0)&S|~x&O)+E[9]-1958414417|0)<<12|L>>>20)+x|0)&x|~L&S)+E[10]-42063|0)<<17|O>>>15)+L|0)&L|~O&x)+E[11]-1990404162|0)<<22|S>>>10)+O|0,S=((S+=((O=((O+=((L=((L+=((x=((x+=(S&O|~S&L)+E[12]+1804603682|0)<<7|x>>>25)+S|0)&S|~x&O)+E[13]-40341101|0)<<12|L>>>20)+x|0)&x|~L&S)+E[14]-1502002290|0)<<17|O>>>15)+L|0)&L|~O&x)+E[15]+1236535329|0)<<22|S>>>10)+O|0,S=((S+=((O=((O+=((L=((L+=((x=((x+=(S&L|O&~L)+E[1]-165796510|0)<<5|x>>>27)+S|0)&O|S&~O)+E[6]-1069501632|0)<<9|L>>>23)+x|0)&S|x&~S)+E[11]+643717713|0)<<14|O>>>18)+L|0)&x|L&~x)+E[0]-373897302|0)<<20|S>>>12)+O|0,S=((S+=((O=((O+=((L=((L+=((x=((x+=(S&L|O&~L)+E[5]-701558691|0)<<5|x>>>27)+S|0)&O|S&~O)+E[10]+38016083|0)<<9|L>>>23)+x|0)&S|x&~S)+E[15]-660478335|0)<<14|O>>>18)+L|0)&x|L&~x)+E[4]-405537848|0)<<20|S>>>12)+O|0,S=((S+=((O=((O+=((L=((L+=((x=((x+=(S&L|O&~L)+E[9]+568446438|0)<<5|x>>>27)+S|0)&O|S&~O)+E[14]-1019803690|0)<<9|L>>>23)+x|0)&S|x&~S)+E[3]-187363961|0)<<14|O>>>18)+L|0)&x|L&~x)+E[8]+1163531501|0)<<20|S>>>12)+O|0,S=((S+=((O=((O+=((L=((L+=((x=((x+=(S&L|O&~L)+E[13]-1444681467|0)<<5|x>>>27)+S|0)&O|S&~O)+E[2]-51403784|0)<<9|L>>>23)+x|0)&S|x&~S)+E[7]+1735328473|0)<<14|O>>>18)+L|0)&x|L&~x)+E[12]-1926607734|0)<<20|S>>>12)+O|0,S=((S+=((O=((O+=((L=((L+=((x=((x+=(S^O^L)+E[5]-378558|0)<<4|x>>>28)+S|0)^S^O)+E[8]-2022574463|0)<<11|L>>>21)+x|0)^x^S)+E[11]+1839030562|0)<<16|O>>>16)+L|0)^L^x)+E[14]-35309556|0)<<23|S>>>9)+O|0,S=((S+=((O=((O+=((L=((L+=((x=((x+=(S^O^L)+E[1]-1530992060|0)<<4|x>>>28)+S|0)^S^O)+E[4]+1272893353|0)<<11|L>>>21)+x|0)^x^S)+E[7]-155497632|0)<<16|O>>>16)+L|0)^L^x)+E[10]-1094730640|0)<<23|S>>>9)+O|0,S=((S+=((O=((O+=((L=((L+=((x=((x+=(S^O^L)+E[13]+681279174|0)<<4|x>>>28)+S|0)^S^O)+E[0]-358537222|0)<<11|L>>>21)+x|0)^x^S)+E[3]-722521979|0)<<16|O>>>16)+L|0)^L^x)+E[6]+76029189|0)<<23|S>>>9)+O|0,S=((S+=((O=((O+=((L=((L+=((x=((x+=(S^O^L)+E[9]-640364487|0)<<4|x>>>28)+S|0)^S^O)+E[12]-421815835|0)<<11|L>>>21)+x|0)^x^S)+E[15]+530742520|0)<<16|O>>>16)+L|0)^L^x)+E[2]-995338651|0)<<23|S>>>9)+O|0,S=((S+=((L=((L+=(S^((x=((x+=(O^(S|~L))+E[0]-198630844|0)<<6|x>>>26)+S|0)|~O))+E[7]+1126891415|0)<<10|L>>>22)+x|0)^((O=((O+=(x^(L|~S))+E[14]-1416354905|0)<<15|O>>>17)+L|0)|~x))+E[5]-57434055|0)<<21|S>>>11)+O|0,S=((S+=((L=((L+=(S^((x=((x+=(O^(S|~L))+E[12]+1700485571|0)<<6|x>>>26)+S|0)|~O))+E[3]-1894986606|0)<<10|L>>>22)+x|0)^((O=((O+=(x^(L|~S))+E[10]-1051523|0)<<15|O>>>17)+L|0)|~x))+E[1]-2054922799|0)<<21|S>>>11)+O|0,S=((S+=((L=((L+=(S^((x=((x+=(O^(S|~L))+E[8]+1873313359|0)<<6|x>>>26)+S|0)|~O))+E[15]-30611744|0)<<10|L>>>22)+x|0)^((O=((O+=(x^(L|~S))+E[6]-1560198380|0)<<15|O>>>17)+L|0)|~x))+E[13]+1309151649|0)<<21|S>>>11)+O|0,S=((S+=((L=((L+=(S^((x=((x+=(O^(S|~L))+E[4]-145523070|0)<<6|x>>>26)+S|0)|~O))+E[11]-1120210379|0)<<10|L>>>22)+x|0)^((O=((O+=(x^(L|~S))+E[2]+718787259|0)<<15|O>>>17)+L|0)|~x))+E[9]-343485551|0)<<21|S>>>11)+O|0,N[0]=x+N[0]|0,N[1]=S+N[1]|0,N[2]=O+N[2]|0,N[3]=L+N[3]|0}function Z(N){var x,E=[];for(x=0;x<64;x+=4)E[x>>2]=N.charCodeAt(x)+(N.charCodeAt(x+1)<<8)+(N.charCodeAt(x+2)<<16)+(N.charCodeAt(x+3)<<24);return E}function T(N){var x,E=[];for(x=0;x<64;x+=4)E[x>>2]=N[x]+(N[x+1]<<8)+(N[x+2]<<16)+(N[x+3]<<24);return E}function I(N){var S,O,L,j,K,W,E=N.length,x=[1732584193,-271733879,-1732584194,271733878];for(S=64;S<=E;S+=64)V(x,Z(N.substring(S-64,S)));for(O=(N=N.substring(S-64)).length,L=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],S=0;S<O;S+=1)L[S>>2]|=N.charCodeAt(S)<<(S%4<<3);if(L[S>>2]|=128<<(S%4<<3),S>55)for(V(x,L),S=0;S<16;S+=1)L[S]=0;return j=(j=8*E).toString(16).match(/(.*?)(.{0,8})$/),K=parseInt(j[2],16),W=parseInt(j[1],16)||0,L[14]=K,L[15]=W,V(x,L),x}function v(N){var x,E="";for(x=0;x<4;x+=1)E+=U[N>>8*x+4&15]+U[N>>8*x&15];return E}function P(N){var E;for(E=0;E<N.length;E+=1)N[E]=v(N[E]);return N.join("")}function D(N){return/[\u0080-\uFFFF]/.test(N)&&(N=unescape(encodeURIComponent(N))),N}function g(N){var S,E=[],x=N.length;for(S=0;S<x-1;S+=2)E.push(parseInt(N.substr(S,2),16));return String.fromCharCode.apply(String,E)}function k(){this.reset()}return P(I("hello")),"undefined"!=typeof ArrayBuffer&&!ArrayBuffer.prototype.slice&&function(){function N(E,x){return(E=0|E||0)<0?Math.max(E+x,0):Math.min(E,x)}ArrayBuffer.prototype.slice=function(E,x){var j,K,W,J,S=this.byteLength,O=N(E,S),L=S;return undefined!==x&&(L=N(x,S)),O>L?new ArrayBuffer(0):(j=L-O,K=new ArrayBuffer(j),W=new Uint8Array(K),J=new Uint8Array(this,O,j),W.set(J),K)}}(),k.prototype.append=function(N){return this.appendBinary(D(N)),this},k.prototype.appendBinary=function(N){this._buff+=N,this._length+=N.length;var x,E=this._buff.length;for(x=64;x<=E;x+=64)V(this._hash,Z(this._buff.substring(x-64,x)));return this._buff=this._buff.substring(x-64),this},k.prototype.end=function(N){var S,L,E=this._buff,x=E.length,O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(S=0;S<x;S+=1)O[S>>2]|=E.charCodeAt(S)<<(S%4<<3);return this._finish(O,x),L=P(this._hash),N&&(L=g(L)),this.reset(),L},k.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},k.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},k.prototype.setState=function(N){return this._buff=N.buff,this._length=N.length,this._hash=N.hash,this},k.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},k.prototype._finish=function(N,E){var S,O,L,x=E;if(N[x>>2]|=128<<(x%4<<3),x>55)for(V(this._hash,N),x=0;x<16;x+=1)N[x]=0;S=(S=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),O=parseInt(S[2],16),L=parseInt(S[1],16)||0,N[14]=O,N[15]=L,V(this._hash,N)},k.hash=function(N,E){return k.hashBinary(D(N),E)},k.hashBinary=function(N,E){var S=P(I(N));return E?g(S):S},(k.ArrayBuffer=function(){this.reset()}).prototype.append=function(N){var S,E=function(N,E,x){var S=new Uint8Array(N.byteLength+E.byteLength);return S.set(new Uint8Array(N)),S.set(new Uint8Array(E),N.byteLength),x?S:S.buffer}(this._buff.buffer,N,!0),x=E.length;for(this._length+=N.byteLength,S=64;S<=x;S+=64)V(this._hash,T(E.subarray(S-64,S)));return this._buff=S-64<x?new Uint8Array(E.buffer.slice(S-64)):new Uint8Array(0),this},k.ArrayBuffer.prototype.end=function(N){var O,L,E=this._buff,x=E.length,S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(O=0;O<x;O+=1)S[O>>2]|=E[O]<<(O%4<<3);return this._finish(S,x),L=P(this._hash),N&&(L=g(L)),this.reset(),L},k.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},k.ArrayBuffer.prototype.getState=function(){var N=k.prototype.getState.call(this);return N.buff=function(N){return String.fromCharCode.apply(null,new Uint8Array(N))}(N.buff),N},k.ArrayBuffer.prototype.setState=function(N){return N.buff=function(N,E){var L,x=N.length,S=new ArrayBuffer(x),O=new Uint8Array(S);for(L=0;L<x;L+=1)O[L]=N.charCodeAt(L);return E?O:S}(N.buff,!0),k.prototype.setState.call(this,N)},k.ArrayBuffer.prototype.destroy=k.prototype.destroy,k.ArrayBuffer.prototype._finish=k.prototype._finish,k.ArrayBuffer.hash=function(N,E){var S=P(function(N){var S,O,L,j,K,W,E=N.length,x=[1732584193,-271733879,-1732584194,271733878];for(S=64;S<=E;S+=64)V(x,T(N.subarray(S-64,S)));for(O=(N=S-64<E?N.subarray(S-64):new Uint8Array(0)).length,L=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],S=0;S<O;S+=1)L[S>>2]|=N[S]<<(S%4<<3);if(L[S>>2]|=128<<(S%4<<3),S>55)for(V(x,L),S=0;S<16;S+=1)L[S]=0;return j=(j=8*E).toString(16).match(/(.*?)(.{0,8})$/),K=parseInt(j[2],16),W=parseInt(j[1],16)||0,L[14]=K,L[15]=W,V(x,L),x}(new Uint8Array(N)));return E?g(S):S},k}()},49940:function(ce,q,f){var U=f(33499),B=f(54968),V=B;V.v1=U,V.v4=B,ce.exports=V},83702:function(ce){for(var q=[],f=0;f<256;++f)q[f]=(f+256).toString(16).substr(1);ce.exports=function(B,V){var Z=V||0;return[q[B[Z++]],q[B[Z++]],q[B[Z++]],q[B[Z++]],"-",q[B[Z++]],q[B[Z++]],"-",q[B[Z++]],q[B[Z++]],"-",q[B[Z++]],q[B[Z++]],"-",q[B[Z++]],q[B[Z++]],q[B[Z++]],q[B[Z++]],q[B[Z++]],q[B[Z++]]].join("")}},1942:function(ce){var q="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(q){var f=new Uint8Array(16);ce.exports=function(){return q(f),f}}else{var U=new Array(16);ce.exports=function(){for(var Z,V=0;V<16;V++)0==(3&V)&&(Z=4294967296*Math.random()),U[V]=Z>>>((3&V)<<3)&255;return U}}},33499:function(ce,q,f){var V,Z,U=f(1942),B=f(83702),T=0,I=0;ce.exports=function(v,P,D){var M=P&&D||0,A=P||[],y=(v=v||{}).node||V,g=void 0!==v.clockseq?v.clockseq:Z;if(null==y||null==g){var k=U();null==y&&(y=V=[1|k[0],k[1],k[2],k[3],k[4],k[5]]),null==g&&(g=Z=16383&(k[6]<<8|k[7]))}var N=void 0!==v.msecs?v.msecs:(new Date).getTime(),E=void 0!==v.nsecs?v.nsecs:I+1,x=N-T+(E-I)/1e4;if(x<0&&void 0===v.clockseq&&(g=g+1&16383),(x<0||N>T)&&void 0===v.nsecs&&(E=0),E>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");T=N,I=E,Z=g;var S=(1e4*(268435455&(N+=122192928e5))+E)%4294967296;A[M++]=S>>>24&255,A[M++]=S>>>16&255,A[M++]=S>>>8&255,A[M++]=255&S;var O=N/4294967296*1e4&268435455;A[M++]=O>>>8&255,A[M++]=255&O,A[M++]=O>>>24&15|16,A[M++]=O>>>16&255,A[M++]=g>>>8|128,A[M++]=255&g;for(var L=0;L<6;++L)A[M+L]=y[L];return P||B(A)}},54968:function(ce,q,f){var U=f(1942),B=f(83702);ce.exports=function(Z,T,I){var C=T&&I||0;"string"==typeof Z&&(T="binary"===Z?new Array(16):null,Z=null);var v=(Z=Z||{}).random||(Z.rng||U)();if(v[6]=15&v[6]|64,v[8]=63&v[8]|128,T)for(var P=0;P<16;++P)T[C+P]=v[P];return T||B(v)}},3397:function(ce){window,ce.exports=function(q){var f={};function U(B){if(f[B])return f[B].exports;var V=f[B]={i:B,l:!1,exports:{}};return q[B].call(V.exports,V,V.exports,U),V.l=!0,V.exports}return U.m=q,U.c=f,U.d=function(B,V,Z){U.o(B,V)||Object.defineProperty(B,V,{enumerable:!0,get:Z})},U.r=function(B){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(B,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(B,"__esModule",{value:!0})},U.t=function(B,V){if(1&V&&(B=U(B)),8&V||4&V&&"object"==typeof B&&B&&B.__esModule)return B;var Z=Object.create(null);if(U.r(Z),Object.defineProperty(Z,"default",{enumerable:!0,value:B}),2&V&&"string"!=typeof B)for(var T in B)U.d(Z,T,function(I){return B[I]}.bind(null,T));return Z},U.n=function(B){var V=B&&B.__esModule?function(){return B.default}:function(){return B};return U.d(V,"a",V),V},U.o=function(B,V){return Object.prototype.hasOwnProperty.call(B,V)},U.p="",U(U.s=0)}([function(q,f,U){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.AttachAddon=void 0;var B=function(){function Z(T,I){this._disposables=[],this._socket=T,this._socket.binaryType="arraybuffer",this._bidirectional=!I||!1!==I.bidirectional}return Z.prototype.activate=function(T){var I=this;this._disposables.push(V(this._socket,"message",function(C){var v=C.data;T.write("string"==typeof v?v:new Uint8Array(v))})),this._bidirectional&&(this._disposables.push(T.onData(function(C){return I._sendData(C)})),this._disposables.push(T.onBinary(function(C){return I._sendBinary(C)}))),this._disposables.push(V(this._socket,"close",function(){return I.dispose()})),this._disposables.push(V(this._socket,"error",function(){return I.dispose()}))},Z.prototype.dispose=function(){this._disposables.forEach(function(T){return T.dispose()})},Z.prototype._sendData=function(T){1===this._socket.readyState&&this._socket.send(T)},Z.prototype._sendBinary=function(T){if(1===this._socket.readyState){for(var I=new Uint8Array(T.length),C=0;C<T.length;++C)I[C]=255&T.charCodeAt(C);this._socket.send(I)}},Z}();function V(Z,T,I){return Z.addEventListener(T,I),{dispose:function(){I&&Z.removeEventListener(T,I)}}}f.AttachAddon=B}])},97916:function(ce){self,ce.exports=function(){"use strict";var q={775:function(B,V){Object.defineProperty(V,"__esModule",{value:!0}),V.FitAddon=void 0;var Z=function(){function T(){}return T.prototype.activate=function(I){this._terminal=I},T.prototype.dispose=function(){},T.prototype.fit=function(){var I=this.proposeDimensions();I&&this._terminal&&(this._terminal.rows===I.rows&&this._terminal.cols===I.cols||(this._terminal._core._renderService.clear(),this._terminal.resize(I.cols,I.rows)))},T.prototype.proposeDimensions=function(){if(this._terminal&&this._terminal.element&&this._terminal.element.parentElement){var I=this._terminal._core;if(0!==I._renderService.dimensions.actualCellWidth&&0!==I._renderService.dimensions.actualCellHeight){var C=window.getComputedStyle(this._terminal.element.parentElement),v=parseInt(C.getPropertyValue("height")),P=Math.max(0,parseInt(C.getPropertyValue("width"))),D=window.getComputedStyle(this._terminal.element),M=v-(parseInt(D.getPropertyValue("padding-top"))+parseInt(D.getPropertyValue("padding-bottom"))),A=P-(parseInt(D.getPropertyValue("padding-right"))+parseInt(D.getPropertyValue("padding-left")))-I.viewport.scrollBarWidth;return{cols:Math.max(2,Math.floor(A/I._renderService.dimensions.actualCellWidth)),rows:Math.max(1,Math.floor(M/I._renderService.dimensions.actualCellHeight))}}}},T}();V.FitAddon=Z}},f={};return function U(B){if(f[B])return f[B].exports;var V=f[B]={exports:{}};return q[B](V,V.exports,U),V.exports}(775)}()},20039:function(ce){self,ce.exports=function(){"use strict";var q={4567:function(Z,T,I){var C,v=this&&this.__extends||(C=function(x,S){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,L){O.__proto__=L}||function(O,L){for(var j in L)Object.prototype.hasOwnProperty.call(L,j)&&(O[j]=L[j])})(x,S)},function(E,x){if("function"!=typeof x&&null!==x)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");function S(){this.constructor=E}C(E,x),E.prototype=null===x?Object.create(x):(S.prototype=x.prototype,new S)});Object.defineProperty(T,"__esModule",{value:!0}),T.AccessibilityManager=void 0;var P=I(9042),D=I(6114),M=I(9924),A=I(3656),y=I(844),g=I(5596),k=I(9631),N=function(E){function x(S,O){var L=E.call(this)||this;L._terminal=S,L._renderService=O,L._liveRegionLineCount=0,L._charsToConsume=[],L._charsToAnnounce="",L._accessibilityTreeRoot=document.createElement("div"),L._accessibilityTreeRoot.classList.add("xterm-accessibility"),L._rowContainer=document.createElement("div"),L._rowContainer.setAttribute("role","list"),L._rowContainer.classList.add("xterm-accessibility-tree"),L._rowElements=[];for(var j=0;j<L._terminal.rows;j++)L._rowElements[j]=L._createAccessibilityTreeNode(),L._rowContainer.appendChild(L._rowElements[j]);if(L._topBoundaryFocusListener=function(K){return L._onBoundaryFocus(K,0)},L._bottomBoundaryFocusListener=function(K){return L._onBoundaryFocus(K,1)},L._rowElements[0].addEventListener("focus",L._topBoundaryFocusListener),L._rowElements[L._rowElements.length-1].addEventListener("focus",L._bottomBoundaryFocusListener),L._refreshRowsDimensions(),L._accessibilityTreeRoot.appendChild(L._rowContainer),L._renderRowsDebouncer=new M.TimeBasedDebouncer(L._renderRows.bind(L)),L._refreshRows(),L._liveRegion=document.createElement("div"),L._liveRegion.classList.add("live-region"),L._liveRegion.setAttribute("aria-live","assertive"),L._accessibilityTreeRoot.appendChild(L._liveRegion),!L._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return L._terminal.element.insertAdjacentElement("afterbegin",L._accessibilityTreeRoot),L.register(L._renderRowsDebouncer),L.register(L._terminal.onResize(function(K){return L._onResize(K.rows)})),L.register(L._terminal.onRender(function(K){return L._refreshRows(K.start,K.end)})),L.register(L._terminal.onScroll(function(){return L._refreshRows()})),L.register(L._terminal.onA11yChar(function(K){return L._onChar(K)})),L.register(L._terminal.onLineFeed(function(){return L._onChar("\n")})),L.register(L._terminal.onA11yTab(function(K){return L._onTab(K)})),L.register(L._terminal.onKey(function(K){return L._onKey(K.key)})),L.register(L._terminal.onBlur(function(){return L._clearLiveRegion()})),L.register(L._renderService.onDimensionsChange(function(){return L._refreshRowsDimensions()})),L._screenDprMonitor=new g.ScreenDprMonitor,L.register(L._screenDprMonitor),L._screenDprMonitor.setListener(function(){return L._refreshRowsDimensions()}),L.register(A.addDisposableDomListener(window,"resize",function(){return L._refreshRowsDimensions()})),L}return v(x,E),x.prototype.dispose=function(){E.prototype.dispose.call(this),k.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},x.prototype._onBoundaryFocus=function(S,O){var L=S.target,j=this._rowElements[0===O?1:this._rowElements.length-2];if(L.getAttribute("aria-posinset")!==(0===O?"1":""+this._terminal.buffer.lines.length)&&S.relatedTarget===j){var K,W;if(0===O?(K=L,W=this._rowElements.pop(),this._rowContainer.removeChild(W)):(K=this._rowElements.shift(),W=L,this._rowContainer.removeChild(K)),K.removeEventListener("focus",this._topBoundaryFocusListener),W.removeEventListener("focus",this._bottomBoundaryFocusListener),0===O){var J=this._createAccessibilityTreeNode();this._rowElements.unshift(J),this._rowContainer.insertAdjacentElement("afterbegin",J)}else J=this._createAccessibilityTreeNode(),this._rowElements.push(J),this._rowContainer.appendChild(J);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===O?-1:1),this._rowElements[0===O?1:this._rowElements.length-2].focus(),S.preventDefault(),S.stopImmediatePropagation()}},x.prototype._onResize=function(S){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var O=this._rowContainer.children.length;O<this._terminal.rows;O++)this._rowElements[O]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[O]);for(;this._rowElements.length>S;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},x.prototype._createAccessibilityTreeNode=function(){var S=document.createElement("div");return S.setAttribute("role","listitem"),S.tabIndex=-1,this._refreshRowDimensions(S),S},x.prototype._onTab=function(S){for(var O=0;O<S;O++)this._onChar(" ")},x.prototype._onChar=function(S){var O=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==S&&(this._charsToAnnounce+=S):this._charsToAnnounce+=S,"\n"===S&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=P.tooMuchOutput)),D.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){O._accessibilityTreeRoot.appendChild(O._liveRegion)},0))},x.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,D.isMac&&k.removeElementFromParent(this._liveRegion)},x.prototype._onKey=function(S){this._clearLiveRegion(),this._charsToConsume.push(S)},x.prototype._refreshRows=function(S,O){this._renderRowsDebouncer.refresh(S,O,this._terminal.rows)},x.prototype._renderRows=function(S,O){for(var L=this._terminal.buffer,j=L.lines.length.toString(),K=S;K<=O;K++){var W=L.translateBufferLineToString(L.ydisp+K,!0),J=(L.ydisp+K+1).toString(),oe=this._rowElements[K];oe&&(0===W.length?oe.innerText="\xa0":oe.textContent=W,oe.setAttribute("aria-posinset",J),oe.setAttribute("aria-setsize",j))}this._announceCharacters()},x.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var S=0;S<this._terminal.rows;S++)this._refreshRowDimensions(this._rowElements[S])}},x.prototype._refreshRowDimensions=function(S){S.style.height=this._renderService.dimensions.actualCellHeight+"px"},x.prototype._announceCharacters=function(){0!==this._charsToAnnounce.length&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},x}(y.Disposable);T.AccessibilityManager=N},3614:function(Z,T){function I(D){return D.replace(/\r?\n/g,"\r")}function C(D,M){return M?"\x1b[200~"+D+"\x1b[201~":D}function v(D,M,A){D=C(D=I(D),A.decPrivateModes.bracketedPasteMode),A.triggerDataEvent(D,!0),M.value=""}function P(D,M,A){var y=A.getBoundingClientRect(),g=D.clientX-y.left-10,k=D.clientY-y.top-10;M.style.width="20px",M.style.height="20px",M.style.left=g+"px",M.style.top=k+"px",M.style.zIndex="1000",M.focus()}Object.defineProperty(T,"__esModule",{value:!0}),T.rightClickHandler=T.moveTextAreaUnderMouseCursor=T.paste=T.handlePasteEvent=T.copyHandler=T.bracketTextForPaste=T.prepareTextForTerminal=void 0,T.prepareTextForTerminal=I,T.bracketTextForPaste=C,T.copyHandler=function(D,M){D.clipboardData&&D.clipboardData.setData("text/plain",M.selectionText),D.preventDefault()},T.handlePasteEvent=function(D,M,A){D.stopPropagation(),D.clipboardData&&v(D.clipboardData.getData("text/plain"),M,A)},T.paste=v,T.moveTextAreaUnderMouseCursor=P,T.rightClickHandler=function(D,M,A,y,g){P(D,M,A),g&&y.rightClickSelect(D),M.value=y.selectionText,M.select()}},4774:function(Z,T){var I,C,v,P,A;function D(A){var y=A.toString(16);return y.length<2?"0"+y:y}function M(A,y){return A<y?(y+.05)/(A+.05):(A+.05)/(y+.05)}Object.defineProperty(T,"__esModule",{value:!0}),T.contrastRatio=T.toPaddedHex=T.rgba=T.rgb=T.css=T.color=T.channels=void 0,(A=I=T.channels||(T.channels={})).toCss=function(y,g,k,N){return void 0!==N?"#"+D(y)+D(g)+D(k)+D(N):"#"+D(y)+D(g)+D(k)},A.toRgba=function(y,g,k,N){return void 0===N&&(N=255),(y<<24|g<<16|k<<8|N)>>>0},(C=T.color||(T.color={})).blend=function(A,y){var g=(255&y.rgba)/255;if(1===g)return{css:y.css,rgba:y.rgba};var N=y.rgba>>16&255,E=y.rgba>>8&255,x=A.rgba>>24&255,S=A.rgba>>16&255,O=A.rgba>>8&255,L=x+Math.round(((y.rgba>>24&255)-x)*g),j=S+Math.round((N-S)*g),K=O+Math.round((E-O)*g);return{css:I.toCss(L,j,K),rgba:I.toRgba(L,j,K)}},C.isOpaque=function(A){return 255==(255&A.rgba)},C.ensureContrastRatio=function(A,y,g){var k=P.ensureContrastRatio(A.rgba,y.rgba,g);if(k)return P.toColor(k>>24&255,k>>16&255,k>>8&255)},C.opaque=function(A){var y=(255|A.rgba)>>>0,g=P.toChannels(y);return{css:I.toCss(g[0],g[1],g[2]),rgba:y}},C.opacity=function(A,y){var g=Math.round(255*y),k=P.toChannels(A.rgba),N=k[0],E=k[1],x=k[2];return{css:I.toCss(N,E,x,g),rgba:I.toRgba(N,E,x,g)}},(T.css||(T.css={})).toColor=function(A){switch(A.length){case 7:return{css:A,rgba:(parseInt(A.slice(1),16)<<8|255)>>>0};case 9:return{css:A,rgba:parseInt(A.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(A){function y(g,k,N){var E=g/255,x=k/255,S=N/255;return.2126*(E<=.03928?E/12.92:Math.pow((E+.055)/1.055,2.4))+.7152*(x<=.03928?x/12.92:Math.pow((x+.055)/1.055,2.4))+.0722*(S<=.03928?S/12.92:Math.pow((S+.055)/1.055,2.4))}A.relativeLuminance=function(g){return y(g>>16&255,g>>8&255,255&g)},A.relativeLuminance2=y}(v=T.rgb||(T.rgb={})),function(A){function y(k,N,E){for(var x=k>>24&255,S=k>>16&255,O=k>>8&255,L=N>>24&255,j=N>>16&255,K=N>>8&255,W=M(v.relativeLuminance2(L,K,j),v.relativeLuminance2(x,S,O));W<E&&(L>0||j>0||K>0);)L-=Math.max(0,Math.ceil(.1*L)),j-=Math.max(0,Math.ceil(.1*j)),K-=Math.max(0,Math.ceil(.1*K)),W=M(v.relativeLuminance2(L,K,j),v.relativeLuminance2(x,S,O));return(L<<24|j<<16|K<<8|255)>>>0}function g(k,N,E){for(var x=k>>24&255,S=k>>16&255,O=k>>8&255,L=N>>24&255,j=N>>16&255,K=N>>8&255,W=M(v.relativeLuminance2(L,K,j),v.relativeLuminance2(x,S,O));W<E&&(L<255||j<255||K<255);)L=Math.min(255,L+Math.ceil(.1*(255-L))),j=Math.min(255,j+Math.ceil(.1*(255-j))),K=Math.min(255,K+Math.ceil(.1*(255-K))),W=M(v.relativeLuminance2(L,K,j),v.relativeLuminance2(x,S,O));return(L<<24|j<<16|K<<8|255)>>>0}A.ensureContrastRatio=function(k,N,E){var x=v.relativeLuminance(k>>8),S=v.relativeLuminance(N>>8);if(M(x,S)<E)return S<x?y(k,N,E):g(k,N,E)},A.reduceLuminance=y,A.increaseLuminance=g,A.toChannels=function(k){return[k>>24&255,k>>16&255,k>>8&255,255&k]},A.toColor=function(k,N,E){return{css:I.toCss(k,N,E),rgba:I.toRgba(k,N,E)}}}(P=T.rgba||(T.rgba={})),T.toPaddedHex=D,T.contrastRatio=M},7239:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.ColorContrastCache=void 0;var I=function(){function C(){this._color={},this._rgba={}}return C.prototype.clear=function(){this._color={},this._rgba={}},C.prototype.setCss=function(v,P,D){this._rgba[v]||(this._rgba[v]={}),this._rgba[v][P]=D},C.prototype.getCss=function(v,P){return this._rgba[v]?this._rgba[v][P]:void 0},C.prototype.setColor=function(v,P,D){this._color[v]||(this._color[v]={}),this._color[v][P]=D},C.prototype.getColor=function(v,P){return this._color[v]?this._color[v][P]:void 0},C}();T.ColorContrastCache=I},5680:function(Z,T,I){Object.defineProperty(T,"__esModule",{value:!0}),T.ColorManager=T.DEFAULT_ANSI_COLORS=void 0;var C=I(4774),v=I(7239),P=C.css.toColor("#ffffff"),D=C.css.toColor("#000000"),M=C.css.toColor("#ffffff"),A=C.css.toColor("#000000"),y={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};T.DEFAULT_ANSI_COLORS=Object.freeze(function(){for(var k=[C.css.toColor("#2e3436"),C.css.toColor("#cc0000"),C.css.toColor("#4e9a06"),C.css.toColor("#c4a000"),C.css.toColor("#3465a4"),C.css.toColor("#75507b"),C.css.toColor("#06989a"),C.css.toColor("#d3d7cf"),C.css.toColor("#555753"),C.css.toColor("#ef2929"),C.css.toColor("#8ae234"),C.css.toColor("#fce94f"),C.css.toColor("#729fcf"),C.css.toColor("#ad7fa8"),C.css.toColor("#34e2e2"),C.css.toColor("#eeeeec")],N=[0,95,135,175,215,255],E=0;E<216;E++){var x=N[E/36%6|0],S=N[E/6%6|0],O=N[E%6];k.push({css:C.channels.toCss(x,S,O),rgba:C.channels.toRgba(x,S,O)})}for(E=0;E<24;E++){var L=8+10*E;k.push({css:C.channels.toCss(L,L,L),rgba:C.channels.toRgba(L,L,L)})}return k}());var g=function(){function k(N,E){this.allowTransparency=E;var x=N.createElement("canvas");x.width=1,x.height=1;var S=x.getContext("2d");if(!S)throw new Error("Could not get rendering context");this._ctx=S,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new v.ColorContrastCache,this.colors={foreground:P,background:D,cursor:M,cursorAccent:A,selectionTransparent:y,selectionOpaque:C.color.blend(D,y),ansi:T.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return k.prototype.onOptionsChange=function(N){"minimumContrastRatio"===N&&this._contrastCache.clear()},k.prototype.setTheme=function(N){void 0===N&&(N={}),this.colors.foreground=this._parseColor(N.foreground,P),this.colors.background=this._parseColor(N.background,D),this.colors.cursor=this._parseColor(N.cursor,M,!0),this.colors.cursorAccent=this._parseColor(N.cursorAccent,A,!0),this.colors.selectionTransparent=this._parseColor(N.selection,y,!0),this.colors.selectionOpaque=C.color.blend(this.colors.background,this.colors.selectionTransparent),C.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=C.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(N.black,T.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(N.red,T.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(N.green,T.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(N.yellow,T.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(N.blue,T.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(N.magenta,T.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(N.cyan,T.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(N.white,T.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(N.brightBlack,T.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(N.brightRed,T.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(N.brightGreen,T.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(N.brightYellow,T.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(N.brightBlue,T.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(N.brightMagenta,T.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(N.brightCyan,T.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(N.brightWhite,T.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},k.prototype._parseColor=function(N,E,x){if(void 0===x&&(x=this.allowTransparency),void 0===N)return E;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=N,"string"!=typeof this._ctx.fillStyle)return console.warn("Color: "+N+" is invalid using fallback "+E.css),E;this._ctx.fillRect(0,0,1,1);var S=this._ctx.getImageData(0,0,1,1).data;if(255!==S[3]){if(!x)return console.warn("Color: "+N+" is using transparency, but allowTransparency is false. Using fallback "+E.css+"."),E;var O=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(oe){return Number(oe)}),L=O[0],j=O[1],K=O[2],J=Math.round(255*O[3]);return{rgba:C.channels.toRgba(L,j,K,J),css:N}}return{css:this._ctx.fillStyle,rgba:C.channels.toRgba(S[0],S[1],S[2],S[3])}},k}();T.ColorManager=g},9631:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.removeElementFromParent=void 0,T.removeElementFromParent=function(){for(var I,C=[],v=0;v<arguments.length;v++)C[v]=arguments[v];for(var P=0,D=C;P<D.length;P++){var M=D[P];null===(I=null==M?void 0:M.parentElement)||void 0===I||I.removeChild(M)}}},3656:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.addDisposableDomListener=void 0,T.addDisposableDomListener=function(I,C,v,P){I.addEventListener(C,v,P);var D=!1;return{dispose:function(){D||(D=!0,I.removeEventListener(C,v,P))}}}},3551:function(Z,T,I){var C=this&&this.__decorate||function(y,g,k,N){var E,x=arguments.length,S=x<3?g:null===N?N=Object.getOwnPropertyDescriptor(g,k):N;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(y,g,k,N);else for(var O=y.length-1;O>=0;O--)(E=y[O])&&(S=(x<3?E(S):x>3?E(g,k,S):E(g,k))||S);return x>3&&S&&Object.defineProperty(g,k,S),S},v=this&&this.__param||function(y,g){return function(k,N){g(k,N,y)}};Object.defineProperty(T,"__esModule",{value:!0}),T.MouseZone=T.Linkifier=void 0;var P=I(8460),D=I(2585),M=function(){function y(g,k,N){this._bufferService=g,this._logService=k,this._unicodeService=N,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new P.EventEmitter,this._onHideLinkUnderline=new P.EventEmitter,this._onLinkTooltip=new P.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(y.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),y.prototype.attachToDom=function(g,k){this._element=g,this._mouseZoneManager=k},y.prototype.linkifyRows=function(g,k){var N=this;this._mouseZoneManager&&(void 0===this._rowsToLinkify.start||void 0===this._rowsToLinkify.end?(this._rowsToLinkify.start=g,this._rowsToLinkify.end=k):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,g),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,k)),this._mouseZoneManager.clearAll(g,k),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return N._linkifyRows()},y._timeBeforeLatency))},y.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var g=this._bufferService.buffer;if(void 0!==this._rowsToLinkify.start&&void 0!==this._rowsToLinkify.end){var k=g.ydisp+this._rowsToLinkify.start;if(!(k>=g.lines.length)){for(var N=g.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,E=Math.ceil(2e3/this._bufferService.cols),x=this._bufferService.buffer.iterator(!1,k,N,E,E);x.hasNext();)for(var S=x.next(),O=0;O<this._linkMatchers.length;O++)this._doLinkifyRow(S.range.first,S.content,this._linkMatchers[O]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},y.prototype.registerLinkMatcher=function(g,k,N){if(void 0===N&&(N={}),!k)throw new Error("handler must be defined");var E={id:this._nextLinkMatcherId++,regex:g,handler:k,matchIndex:N.matchIndex,validationCallback:N.validationCallback,hoverTooltipCallback:N.tooltipCallback,hoverLeaveCallback:N.leaveCallback,willLinkActivate:N.willLinkActivate,priority:N.priority||0};return this._addLinkMatcherToList(E),E.id},y.prototype._addLinkMatcherToList=function(g){if(0!==this._linkMatchers.length){for(var k=this._linkMatchers.length-1;k>=0;k--)if(g.priority<=this._linkMatchers[k].priority)return void this._linkMatchers.splice(k+1,0,g);this._linkMatchers.splice(0,0,g)}else this._linkMatchers.push(g)},y.prototype.deregisterLinkMatcher=function(g){for(var k=0;k<this._linkMatchers.length;k++)if(this._linkMatchers[k].id===g)return this._linkMatchers.splice(k,1),!0;return!1},y.prototype._doLinkifyRow=function(g,k,N){for(var E,x=this,S=new RegExp(N.regex.source,(N.regex.flags||"")+"g"),O=-1,L=function(){var W=E["number"!=typeof N.matchIndex?0:N.matchIndex];if(!W)return j._logService.debug("match found without corresponding matchIndex",E,N),"break";if(O=k.indexOf(W,O+1),S.lastIndex=O+W.length,O<0)return"break";var J=j._bufferService.buffer.stringIndexToBufferIndex(g,O);if(J[0]<0)return"break";var oe=j._bufferService.buffer.lines.get(J[0]);if(!oe)return"break";var te=oe.getFg(J[1]),se=te?te>>9&511:void 0;N.validationCallback?N.validationCallback(W,function(le){x._rowsTimeoutId||le&&x._addLink(J[1],J[0]-x._bufferService.buffer.ydisp,W,N,se)}):j._addLink(J[1],J[0]-j._bufferService.buffer.ydisp,W,N,se)},j=this;null!==(E=S.exec(k))&&"break"!==L(););},y.prototype._addLink=function(g,k,N,E,x){var S=this;if(this._mouseZoneManager&&this._element){var O=this._unicodeService.getStringCellWidth(N),L=g%this._bufferService.cols,j=k+Math.floor(g/this._bufferService.cols),K=(L+O)%this._bufferService.cols,W=j+Math.floor((L+O)/this._bufferService.cols);0===K&&(K=this._bufferService.cols,W--),this._mouseZoneManager.add(new A(L+1,j+1,K+1,W+1,function(J){if(E.handler)return E.handler(J,N);var oe=window.open();oe?(oe.opener=null,oe.location.href=N):console.warn("Opening link blocked as opener could not be cleared")},function(){S._onShowLinkUnderline.fire(S._createLinkHoverEvent(L,j,K,W,x)),S._element.classList.add("xterm-cursor-pointer")},function(J){S._onLinkTooltip.fire(S._createLinkHoverEvent(L,j,K,W,x)),E.hoverTooltipCallback&&E.hoverTooltipCallback(J,N,{start:{x:L,y:j},end:{x:K,y:W}})},function(){S._onHideLinkUnderline.fire(S._createLinkHoverEvent(L,j,K,W,x)),S._element.classList.remove("xterm-cursor-pointer"),E.hoverLeaveCallback&&E.hoverLeaveCallback()},function(J){return!E.willLinkActivate||E.willLinkActivate(J,N)}))}},y.prototype._createLinkHoverEvent=function(g,k,N,E,x){return{x1:g,y1:k,x2:N,y2:E,cols:this._bufferService.cols,fg:x}},y._timeBeforeLatency=200,y=C([v(0,D.IBufferService),v(1,D.ILogService),v(2,D.IUnicodeService)],y)}();T.Linkifier=M;var A=function(g,k,N,E,x,S,O,L,j){this.x1=g,this.y1=k,this.x2=N,this.y2=E,this.clickCallback=x,this.hoverCallback=S,this.tooltipCallback=O,this.leaveCallback=L,this.willLinkActivate=j};T.MouseZone=A},6465:function(Z,T,I){var C,v=this&&this.__extends||(C=function(E,x){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var L in O)Object.prototype.hasOwnProperty.call(O,L)&&(S[L]=O[L])})(E,x)},function(N,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function x(){this.constructor=N}C(N,E),N.prototype=null===E?Object.create(E):(x.prototype=E.prototype,new x)}),P=this&&this.__decorate||function(N,E,x,S){var O,L=arguments.length,j=L<3?E:null===S?S=Object.getOwnPropertyDescriptor(E,x):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)j=Reflect.decorate(N,E,x,S);else for(var K=N.length-1;K>=0;K--)(O=N[K])&&(j=(L<3?O(j):L>3?O(E,x,j):O(E,x))||j);return L>3&&j&&Object.defineProperty(E,x,j),j},D=this&&this.__param||function(N,E){return function(x,S){E(x,S,N)}};Object.defineProperty(T,"__esModule",{value:!0}),T.Linkifier2=void 0;var M=I(2585),A=I(8460),y=I(844),g=I(3656),k=function(N){function E(x){var S=N.call(this)||this;return S._bufferService=x,S._linkProviders=[],S._linkCacheDisposables=[],S._isMouseOut=!0,S._activeLine=-1,S._onShowLinkUnderline=S.register(new A.EventEmitter),S._onHideLinkUnderline=S.register(new A.EventEmitter),S.register(y.getDisposeArrayDisposable(S._linkCacheDisposables)),S}return v(E,N),Object.defineProperty(E.prototype,"currentLink",{get:function(){return this._currentLink},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),E.prototype.registerLinkProvider=function(x){var S=this;return this._linkProviders.push(x),{dispose:function(){var L=S._linkProviders.indexOf(x);-1!==L&&S._linkProviders.splice(L,1)}}},E.prototype.attachToDom=function(x,S,O){var L=this;this._element=x,this._mouseService=S,this._renderService=O,this.register(g.addDisposableDomListener(this._element,"mouseleave",function(){L._isMouseOut=!0,L._clearCurrentLink()})),this.register(g.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(g.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},E.prototype._onMouseMove=function(x){if(this._lastMouseEvent=x,this._element&&this._mouseService){var S=this._positionFromMouseEvent(x,this._element,this._mouseService);if(S){this._isMouseOut=!1;for(var O=x.composedPath(),L=0;L<O.length;L++){var j=O[L];if(j.classList.contains("xterm"))break;if(j.classList.contains("xterm-hover"))return}this._lastBufferCell&&S.x===this._lastBufferCell.x&&S.y===this._lastBufferCell.y||(this._onHover(S),this._lastBufferCell=S)}}},E.prototype._onHover=function(x){if(this._activeLine!==x.y)return this._clearCurrentLink(),void this._askForLink(x,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,x)||(this._clearCurrentLink(),this._askForLink(x,!0))},E.prototype._askForLink=function(x,S){var O,L=this;this._activeProviderReplies&&S||(null===(O=this._activeProviderReplies)||void 0===O||O.forEach(function(K){null==K||K.forEach(function(W){W.link.dispose&&W.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=x.y);var j=!1;this._linkProviders.forEach(function(K,W){var J;S?(null===(J=L._activeProviderReplies)||void 0===J?void 0:J.get(W))&&(j=L._checkLinkProviderResult(W,x,j)):K.provideLinks(x.y,function(oe){var te,se;if(!L._isMouseOut){var le=null==oe?void 0:oe.map(function(de){return{link:de}});null===(te=L._activeProviderReplies)||void 0===te||te.set(W,le),j=L._checkLinkProviderResult(W,x,j),(null===(se=L._activeProviderReplies)||void 0===se?void 0:se.size)===L._linkProviders.length&&L._removeIntersectingLinks(x.y,L._activeProviderReplies)}})})},E.prototype._removeIntersectingLinks=function(x,S){for(var O=new Set,L=0;L<S.size;L++){var j=S.get(L);if(j)for(var K=0;K<j.length;K++)for(var W=j[K],oe=W.link.range.end.y>x?this._bufferService.cols:W.link.range.end.x,te=W.link.range.start.y<x?0:W.link.range.start.x;te<=oe;te++){if(O.has(te)){j.splice(K--,1);break}O.add(te)}}},E.prototype._checkLinkProviderResult=function(x,S,O){var L,j=this;if(!this._activeProviderReplies)return O;for(var K=this._activeProviderReplies.get(x),W=!1,J=0;J<x;J++)this._activeProviderReplies.has(J)&&!this._activeProviderReplies.get(J)||(W=!0);if(!W&&K){var oe=K.find(function(se){return j._linkAtPosition(se.link,S)});oe&&(O=!0,this._handleNewLink(oe))}if(this._activeProviderReplies.size===this._linkProviders.length&&!O)for(J=0;J<this._activeProviderReplies.size;J++){var te=null===(L=this._activeProviderReplies.get(J))||void 0===L?void 0:L.find(function(se){return j._linkAtPosition(se.link,S)});if(te){O=!0,this._handleNewLink(te);break}}return O},E.prototype._onClick=function(x){if(this._element&&this._mouseService&&this._currentLink){var S=this._positionFromMouseEvent(x,this._element,this._mouseService);S&&this._linkAtPosition(this._currentLink.link,S)&&this._currentLink.link.activate(x,this._currentLink.link.text)}},E.prototype._clearCurrentLink=function(x,S){this._element&&this._currentLink&&this._lastMouseEvent&&(!x||!S||this._currentLink.link.range.start.y>=x&&this._currentLink.link.range.end.y<=S)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,y.disposeArray(this._linkCacheDisposables))},E.prototype._handleNewLink=function(x){var S=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var O=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);O&&this._linkAtPosition(x.link,O)&&(this._currentLink=x,this._currentLink.state={decorations:{underline:void 0===x.link.decorations||x.link.decorations.underline,pointerCursor:void 0===x.link.decorations||x.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,x.link,this._lastMouseEvent),x.link.decorations={},Object.defineProperties(x.link.decorations,{pointerCursor:{get:function(){var j,K;return null===(K=null===(j=S._currentLink)||void 0===j?void 0:j.state)||void 0===K?void 0:K.decorations.pointerCursor},set:function(j){var K,W;(null===(K=S._currentLink)||void 0===K?void 0:K.state)&&S._currentLink.state.decorations.pointerCursor!==j&&(S._currentLink.state.decorations.pointerCursor=j,S._currentLink.state.isHovered&&(null===(W=S._element)||void 0===W||W.classList.toggle("xterm-cursor-pointer",j)))}},underline:{get:function(){var j,K;return null===(K=null===(j=S._currentLink)||void 0===j?void 0:j.state)||void 0===K?void 0:K.decorations.underline},set:function(j){var K,W,J;(null===(K=S._currentLink)||void 0===K?void 0:K.state)&&(null===(J=null===(W=S._currentLink)||void 0===W?void 0:W.state)||void 0===J?void 0:J.decorations.underline)!==j&&(S._currentLink.state.decorations.underline=j,S._currentLink.state.isHovered&&S._fireUnderlineEvent(x.link,j))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(L){S._clearCurrentLink(0===L.start?0:L.start+1+S._bufferService.buffer.ydisp,L.end+1+S._bufferService.buffer.ydisp)})))}},E.prototype._linkHover=function(x,S,O){var L;(null===(L=this._currentLink)||void 0===L?void 0:L.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(S,!0),this._currentLink.state.decorations.pointerCursor&&x.classList.add("xterm-cursor-pointer")),S.hover&&S.hover(O,S.text)},E.prototype._fireUnderlineEvent=function(x,S){var O=x.range,L=this._bufferService.buffer.ydisp,j=this._createLinkUnderlineEvent(O.start.x-1,O.start.y-L-1,O.end.x,O.end.y-L-1,void 0);(S?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(j)},E.prototype._linkLeave=function(x,S,O){var L;(null===(L=this._currentLink)||void 0===L?void 0:L.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(S,!1),this._currentLink.state.decorations.pointerCursor&&x.classList.remove("xterm-cursor-pointer")),S.leave&&S.leave(O,S.text)},E.prototype._linkAtPosition=function(x,S){var L=x.range.start.y<S.y,j=x.range.end.y>S.y;return(x.range.start.y===x.range.end.y&&x.range.start.x<=S.x&&x.range.end.x>=S.x||L&&x.range.end.x>=S.x||j&&x.range.start.x<=S.x||L&&j)&&x.range.start.y<=S.y&&x.range.end.y>=S.y},E.prototype._positionFromMouseEvent=function(x,S,O){var L=O.getCoords(x,S,this._bufferService.cols,this._bufferService.rows);if(L)return{x:L[0],y:L[1]+this._bufferService.buffer.ydisp}},E.prototype._createLinkUnderlineEvent=function(x,S,O,L,j){return{x1:x,y1:S,x2:O,y2:L,cols:this._bufferService.cols,fg:j}},P([D(0,M.IBufferService)],E)}(y.Disposable);T.Linkifier2=k},9042:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.tooMuchOutput=T.promptLabel=void 0,T.promptLabel="Terminal input",T.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},6954:function(Z,T,I){var C,v=this&&this.__extends||(C=function(E,x){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var L in O)Object.prototype.hasOwnProperty.call(O,L)&&(S[L]=O[L])})(E,x)},function(N,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function x(){this.constructor=N}C(N,E),N.prototype=null===E?Object.create(E):(x.prototype=E.prototype,new x)}),P=this&&this.__decorate||function(N,E,x,S){var O,L=arguments.length,j=L<3?E:null===S?S=Object.getOwnPropertyDescriptor(E,x):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)j=Reflect.decorate(N,E,x,S);else for(var K=N.length-1;K>=0;K--)(O=N[K])&&(j=(L<3?O(j):L>3?O(E,x,j):O(E,x))||j);return L>3&&j&&Object.defineProperty(E,x,j),j},D=this&&this.__param||function(N,E){return function(x,S){E(x,S,N)}};Object.defineProperty(T,"__esModule",{value:!0}),T.MouseZoneManager=void 0;var M=I(844),A=I(3656),y=I(4725),g=I(2585),k=function(N){function E(x,S,O,L,j,K){var W=N.call(this)||this;return W._element=x,W._screenElement=S,W._bufferService=O,W._mouseService=L,W._selectionService=j,W._optionsService=K,W._zones=[],W._areZonesActive=!1,W._lastHoverCoords=[void 0,void 0],W._initialSelectionLength=0,W.register(A.addDisposableDomListener(W._element,"mousedown",function(J){return W._onMouseDown(J)})),W._mouseMoveListener=function(J){return W._onMouseMove(J)},W._mouseLeaveListener=function(J){return W._onMouseLeave(J)},W._clickListener=function(J){return W._onClick(J)},W}return v(E,N),E.prototype.dispose=function(){N.prototype.dispose.call(this),this._deactivate()},E.prototype.add=function(x){this._zones.push(x),1===this._zones.length&&this._activate()},E.prototype.clearAll=function(x,S){if(0!==this._zones.length){x&&S||(x=0,S=this._bufferService.rows-1);for(var O=0;O<this._zones.length;O++){var L=this._zones[O];(L.y1>x&&L.y1<=S+1||L.y2>x&&L.y2<=S+1||L.y1<x&&L.y2>S+1)&&(this._currentZone&&this._currentZone===L&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(O--,1))}0===this._zones.length&&this._deactivate()}},E.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},E.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},E.prototype._onMouseMove=function(x){this._lastHoverCoords[0]===x.pageX&&this._lastHoverCoords[1]===x.pageY||(this._onHover(x),this._lastHoverCoords=[x.pageX,x.pageY])},E.prototype._onHover=function(x){var S=this,O=this._findZoneEventAt(x);O!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),O&&(this._currentZone=O,O.hoverCallback&&O.hoverCallback(x),this._tooltipTimeout=window.setTimeout(function(){return S._onTooltip(x)},this._optionsService.options.linkTooltipHoverDuration)))},E.prototype._onTooltip=function(x){this._tooltipTimeout=void 0;var S=this._findZoneEventAt(x);null==S||S.tooltipCallback(x)},E.prototype._onMouseDown=function(x){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var S=this._findZoneEventAt(x);(null==S?void 0:S.willLinkActivate(x))&&(x.preventDefault(),x.stopImmediatePropagation())}},E.prototype._onMouseLeave=function(x){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},E.prototype._onClick=function(x){var S=this._findZoneEventAt(x),O=this._getSelectionLength();S&&O===this._initialSelectionLength&&(S.clickCallback(x),x.preventDefault(),x.stopImmediatePropagation())},E.prototype._getSelectionLength=function(){var x=this._selectionService.selectionText;return x?x.length:0},E.prototype._findZoneEventAt=function(x){var S=this._mouseService.getCoords(x,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(S)for(var O=S[0],L=S[1],j=0;j<this._zones.length;j++){var K=this._zones[j];if(K.y1===K.y2){if(L===K.y1&&O>=K.x1&&O<K.x2)return K}else if(L===K.y1&&O>=K.x1||L===K.y2&&O<K.x2||L>K.y1&&L<K.y2)return K}},P([D(2,g.IBufferService),D(3,y.IMouseService),D(4,y.ISelectionService),D(5,g.IOptionsService)],E)}(M.Disposable);T.MouseZoneManager=k},6193:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.RenderDebouncer=void 0;var I=function(){function C(v){this._renderCallback=v}return C.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},C.prototype.refresh=function(v,P,D){var M=this;this._rowCount=D,v=void 0!==v?v:0,P=void 0!==P?P:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,v):v,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,P):P,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return M._innerRefresh()}))},C.prototype._innerRefresh=function(){if(void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var v=Math.max(this._rowStart,0),P=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(v,P)}},C}();T.RenderDebouncer=I},5596:function(Z,T,I){var C,v=this&&this.__extends||(C=function(M,A){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,g){y.__proto__=g}||function(y,g){for(var k in g)Object.prototype.hasOwnProperty.call(g,k)&&(y[k]=g[k])})(M,A)},function(D,M){if("function"!=typeof M&&null!==M)throw new TypeError("Class extends value "+String(M)+" is not a constructor or null");function A(){this.constructor=D}C(D,M),D.prototype=null===M?Object.create(M):(A.prototype=M.prototype,new A)});Object.defineProperty(T,"__esModule",{value:!0}),T.ScreenDprMonitor=void 0;var P=function(D){function M(){var A=null!==D&&D.apply(this,arguments)||this;return A._currentDevicePixelRatio=window.devicePixelRatio,A}return v(M,D),M.prototype.setListener=function(A){var y=this;this._listener&&this.clearListener(),this._listener=A,this._outerListener=function(){y._listener&&(y._listener(window.devicePixelRatio,y._currentDevicePixelRatio),y._updateDpr())},this._updateDpr()},M.prototype.dispose=function(){D.prototype.dispose.call(this),this.clearListener()},M.prototype._updateDpr=function(){var A;this._outerListener&&(null===(A=this._resolutionMediaMatchList)||void 0===A||A.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},M.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},M}(I(844).Disposable);T.ScreenDprMonitor=P},3236:function(Z,T,I){var C,v=this&&this.__extends||(C=function(Se,De){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ve,ct){Ve.__proto__=ct}||function(Ve,ct){for(var Je in ct)Object.prototype.hasOwnProperty.call(ct,Je)&&(Ve[Je]=ct[Je])})(Se,De)},function(Bt,Se){if("function"!=typeof Se&&null!==Se)throw new TypeError("Class extends value "+String(Se)+" is not a constructor or null");function De(){this.constructor=Bt}C(Bt,Se),Bt.prototype=null===Se?Object.create(Se):(De.prototype=Se.prototype,new De)});Object.defineProperty(T,"__esModule",{value:!0}),T.Terminal=void 0;var P=I(2950),D=I(1680),M=I(3614),A=I(2584),y=I(5435),g=I(3525),k=I(3551),N=I(9312),E=I(6114),x=I(3656),S=I(9042),O=I(357),L=I(6954),j=I(4567),K=I(1296),W=I(7399),J=I(8460),oe=I(8437),te=I(5680),se=I(3230),le=I(4725),de=I(428),ue=I(8934),ae=I(6465),Me=I(5114),ye=I(8969),ot=I(4774),He=I(4269),_t="undefined"!=typeof window?window.document:null,yt=function(Bt){function Se(De){void 0===De&&(De={});var Ve=Bt.call(this,De)||this;return Ve.browser=E,Ve._keyDownHandled=!1,Ve._keyPressHandled=!1,Ve._unprocessedDeadKey=!1,Ve._onCursorMove=new J.EventEmitter,Ve._onKey=new J.EventEmitter,Ve._onRender=new J.EventEmitter,Ve._onSelectionChange=new J.EventEmitter,Ve._onTitleChange=new J.EventEmitter,Ve._onBell=new J.EventEmitter,Ve._onFocus=new J.EventEmitter,Ve._onBlur=new J.EventEmitter,Ve._onA11yCharEmitter=new J.EventEmitter,Ve._onA11yTabEmitter=new J.EventEmitter,Ve._setup(),Ve.linkifier=Ve._instantiationService.createInstance(k.Linkifier),Ve.linkifier2=Ve.register(Ve._instantiationService.createInstance(ae.Linkifier2)),Ve.register(Ve._inputHandler.onRequestBell(function(){return Ve.bell()})),Ve.register(Ve._inputHandler.onRequestRefreshRows(function(ct,Je){return Ve.refresh(ct,Je)})),Ve.register(Ve._inputHandler.onRequestReset(function(){return Ve.reset()})),Ve.register(Ve._inputHandler.onRequestWindowsOptionsReport(function(ct){return Ve._reportWindowsOptions(ct)})),Ve.register(Ve._inputHandler.onAnsiColorChange(function(ct){return Ve._changeAnsiColor(ct)})),Ve.register(J.forwardEvent(Ve._inputHandler.onCursorMove,Ve._onCursorMove)),Ve.register(J.forwardEvent(Ve._inputHandler.onTitleChange,Ve._onTitleChange)),Ve.register(J.forwardEvent(Ve._inputHandler.onA11yChar,Ve._onA11yCharEmitter)),Ve.register(J.forwardEvent(Ve._inputHandler.onA11yTab,Ve._onA11yTabEmitter)),Ve.register(Ve._bufferService.onResize(function(ct){return Ve._afterResize(ct.cols,ct.rows)})),Ve}return v(Se,Bt),Object.defineProperty(Se.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"onBell",{get:function(){return this._onBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),Se.prototype._changeAnsiColor=function(De){var Ve,ct;if(this._colorManager){for(var Je=0,Ut=De.colors;Je<Ut.length;Je++){var Et=Ut[Je],vt=ot.rgba.toColor(Et.red,Et.green,Et.blue);this._colorManager.colors.ansi[Et.colorIndex]=vt}null===(Ve=this._renderService)||void 0===Ve||Ve.setColors(this._colorManager.colors),null===(ct=this.viewport)||void 0===ct||ct.onThemeChange(this._colorManager.colors)}},Se.prototype.dispose=function(){var De,Ve,ct;this._isDisposed||(Bt.prototype.dispose.call(this),null===(De=this._renderService)||void 0===De||De.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},null===(ct=null===(Ve=this.element)||void 0===Ve?void 0:Ve.parentNode)||void 0===ct||ct.removeChild(this.element))},Se.prototype._setup=function(){Bt.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(Se.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),Se.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},Se.prototype._updateOptions=function(De){var Ve,ct,Je,Ut;switch(Bt.prototype._updateOptions.call(this,De),De){case"fontFamily":case"fontSize":null===(Ve=this._renderService)||void 0===Ve||Ve.clear(),null===(ct=this._charSizeService)||void 0===ct||ct.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"customGlyphs":case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":null===(Je=this.viewport)||void 0===Je||Je.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new j.AccessibilityManager(this,this._renderService)):(null===(Ut=this._accessibilityManager)||void 0===Ut||Ut.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},Se.prototype._onTextAreaFocus=function(De){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(A.C0.ESC+"[I"),this.updateCursorStyle(De),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},Se.prototype.blur=function(){var De;return null===(De=this.textarea)||void 0===De?void 0:De.blur()},Se.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(A.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},Se.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing&&this._renderService){var Ve=this.buffer.lines.get(this.buffer.ybase+this.buffer.y);if(Ve){var ct=Math.min(this.buffer.x,this.cols-1),Je=this._renderService.dimensions.actualCellHeight,Ut=Ve.getWidth(ct),Et=this._renderService.dimensions.actualCellWidth*Ut,vt=this.buffer.y*this._renderService.dimensions.actualCellHeight;this.textarea.style.left=ct*this._renderService.dimensions.actualCellWidth+"px",this.textarea.style.top=vt+"px",this.textarea.style.width=Et+"px",this.textarea.style.height=Je+"px",this.textarea.style.lineHeight=Je+"px",this.textarea.style.zIndex="-5"}}},Se.prototype._initGlobal=function(){var De=this;this._bindKeys(),this.register(x.addDisposableDomListener(this.element,"copy",function(ct){De.hasSelection()&&M.copyHandler(ct,De._selectionService)}));var Ve=function(Je){return M.handlePasteEvent(Je,De.textarea,De.coreService)};this.register(x.addDisposableDomListener(this.textarea,"paste",Ve)),this.register(x.addDisposableDomListener(this.element,"paste",Ve)),this.register(E.isFirefox?x.addDisposableDomListener(this.element,"mousedown",function(ct){2===ct.button&&M.rightClickHandler(ct,De.textarea,De.screenElement,De._selectionService,De.options.rightClickSelectsWord)}):x.addDisposableDomListener(this.element,"contextmenu",function(ct){M.rightClickHandler(ct,De.textarea,De.screenElement,De._selectionService,De.options.rightClickSelectsWord)})),E.isLinux&&this.register(x.addDisposableDomListener(this.element,"auxclick",function(ct){1===ct.button&&M.moveTextAreaUnderMouseCursor(ct,De.textarea,De.screenElement)}))},Se.prototype._bindKeys=function(){var De=this;this.register(x.addDisposableDomListener(this.textarea,"keyup",function(Ve){return De._keyUp(Ve)},!0)),this.register(x.addDisposableDomListener(this.textarea,"keydown",function(Ve){return De._keyDown(Ve)},!0)),this.register(x.addDisposableDomListener(this.textarea,"keypress",function(Ve){return De._keyPress(Ve)},!0)),this.register(x.addDisposableDomListener(this.textarea,"compositionstart",function(){return De._compositionHelper.compositionstart()})),this.register(x.addDisposableDomListener(this.textarea,"compositionupdate",function(Ve){return De._compositionHelper.compositionupdate(Ve)})),this.register(x.addDisposableDomListener(this.textarea,"compositionend",function(){return De._compositionHelper.compositionend()})),this.register(x.addDisposableDomListener(this.textarea,"input",function(Ve){return De._inputEvent(Ve)},!0)),this.register(this.onRender(function(){return De._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(Ve){return De._queueLinkification(Ve.start,Ve.end)}))},Se.prototype.open=function(De){var Ve=this;if(!De)throw new Error("Terminal requires a parent element.");De.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=De.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),De.appendChild(this.element);var ct=_t.createDocumentFragment();this._viewportElement=_t.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),ct.appendChild(this._viewportElement),this._viewportScrollArea=_t.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=_t.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=_t.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),ct.appendChild(this.screenElement),this.textarea=_t.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",S.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(x.addDisposableDomListener(this.textarea,"focus",function(Et){return Ve._onTextAreaFocus(Et)})),this.register(x.addDisposableDomListener(this.textarea,"blur",function(){return Ve._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var Je=this._instantiationService.createInstance(Me.CoreBrowserService,this.textarea);this._instantiationService.setService(le.ICoreBrowserService,Je),this._charSizeService=this._instantiationService.createInstance(de.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(le.ICharSizeService,this._charSizeService),this._theme=this.options.theme||this._theme,this._colorManager=new te.ColorManager(_t,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(Et){return Ve._colorManager.onOptionsChange(Et)})),this._colorManager.setTheme(this._theme),this._characterJoinerService=this._instantiationService.createInstance(He.CharacterJoinerService),this._instantiationService.setService(le.ICharacterJoinerService,this._characterJoinerService);var Ut=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(se.RenderService,Ut,this.rows,this.screenElement)),this._instantiationService.setService(le.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(Et){return Ve._onRender.fire(Et)})),this.onResize(function(Et){return Ve._renderService.resize(Et.cols,Et.rows)}),this._compositionView=_t.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(P.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(ct),this._soundService=this._instantiationService.createInstance(O.SoundService),this._instantiationService.setService(le.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(ue.MouseService),this._instantiationService.setService(le.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(D.Viewport,function(Et){return Ve.scrollLines(Et,!0,1)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return Ve.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){Ve._renderService.onCursorMove(),Ve._syncTextArea()})),this.register(this.onResize(function(){return Ve._renderService.onResize(Ve.cols,Ve.rows)})),this.register(this.onBlur(function(){return Ve._renderService.onBlur()})),this.register(this.onFocus(function(){return Ve._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return Ve.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(N.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(le.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(Et){return Ve.scrollLines(Et.amount,Et.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return Ve._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(Et){return Ve._renderService.onSelectionChanged(Et.start,Et.end,Et.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(Et){Ve.textarea.value=Et,Ve.textarea.focus(),Ve.textarea.select()})),this.register(this._onScroll.event(function(Et){Ve.viewport.syncScrollArea(),Ve._selectionService.refresh()})),this.register(x.addDisposableDomListener(this._viewportElement,"scroll",function(){return Ve._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(L.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return Ve._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(x.addDisposableDomListener(this.element,"mousedown",function(Et){return Ve._selectionService.onMouseDown(Et)})),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new j.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},Se.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(g.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(K.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},Se.prototype._setTheme=function(De){var Ve,ct,Je;this._theme=De,null===(Ve=this._colorManager)||void 0===Ve||Ve.setTheme(De),null===(ct=this._renderService)||void 0===ct||ct.setColors(this._colorManager.colors),null===(Je=this.viewport)||void 0===Je||Je.onThemeChange(this._colorManager.colors)},Se.prototype.bindMouse=function(){var De=this,Ve=this,ct=this.element;function Je(St){var qt,Ct,en=Ve._mouseService.getRawByteCoords(St,Ve.screenElement,Ve.cols,Ve.rows);if(!en)return!1;switch(St.overrideType||St.type){case"mousemove":Ct=32,void 0===St.buttons?(qt=3,void 0!==St.button&&(qt=St.button<3?St.button:3)):qt=1&St.buttons?0:4&St.buttons?1:2&St.buttons?2:3;break;case"mouseup":Ct=0,qt=St.button<3?St.button:3;break;case"mousedown":Ct=1,qt=St.button<3?St.button:3;break;case"wheel":0!==St.deltaY&&(Ct=St.deltaY<0?0:1),qt=4;break;default:return!1}return!(void 0===Ct||void 0===qt||qt>4)&&Ve.coreMouseService.triggerMouseEvent({col:en.x-33,row:en.y-33,button:qt,action:Ct,ctrl:St.ctrlKey,alt:St.altKey,shift:St.shiftKey})}var Ut={mouseup:null,wheel:null,mousedrag:null,mousemove:null},Et=function(qt){return Je(qt),qt.buttons||(De._document.removeEventListener("mouseup",Ut.mouseup),Ut.mousedrag&&De._document.removeEventListener("mousemove",Ut.mousedrag)),De.cancel(qt)},vt=function(qt){return Je(qt),qt.preventDefault(),De.cancel(qt)},Kt=function(qt){qt.buttons&&Je(qt)},Vt=function(qt){qt.buttons||Je(qt)};this.register(this.coreMouseService.onProtocolChange(function(St){St?("debug"===De.optionsService.options.logLevel&&De._logService.debug("Binding to mouse events:",De.coreMouseService.explainEvents(St)),De.element.classList.add("enable-mouse-events"),De._selectionService.disable()):(De._logService.debug("Unbinding from mouse events."),De.element.classList.remove("enable-mouse-events"),De._selectionService.enable()),8&St?Ut.mousemove||(ct.addEventListener("mousemove",Vt),Ut.mousemove=Vt):(ct.removeEventListener("mousemove",Ut.mousemove),Ut.mousemove=null),16&St?Ut.wheel||(ct.addEventListener("wheel",vt,{passive:!1}),Ut.wheel=vt):(ct.removeEventListener("wheel",Ut.wheel),Ut.wheel=null),2&St?Ut.mouseup||(Ut.mouseup=Et):(De._document.removeEventListener("mouseup",Ut.mouseup),Ut.mouseup=null),4&St?Ut.mousedrag||(Ut.mousedrag=Kt):(De._document.removeEventListener("mousemove",Ut.mousedrag),Ut.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register(x.addDisposableDomListener(ct,"mousedown",function(St){if(St.preventDefault(),De.focus(),De.coreMouseService.areMouseEventsActive&&!De._selectionService.shouldForceSelection(St))return Je(St),Ut.mouseup&&De._document.addEventListener("mouseup",Ut.mouseup),Ut.mousedrag&&De._document.addEventListener("mousemove",Ut.mousedrag),De.cancel(St)})),this.register(x.addDisposableDomListener(ct,"wheel",function(St){if(!Ut.wheel&&!De.buffer.hasScrollback){var qt=De.viewport.getLinesScrolled(St);if(0===qt)return;for(var Ct=A.C0.ESC+(De.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(St.deltaY<0?"A":"B"),en="",Ft=0;Ft<Math.abs(qt);Ft++)en+=Ct;De.coreService.triggerDataEvent(en,!0)}},{passive:!0})),this.register(x.addDisposableDomListener(ct,"wheel",function(St){if(!Ut.wheel)return De.viewport.onWheel(St)?void 0:De.cancel(St)},{passive:!1})),this.register(x.addDisposableDomListener(ct,"touchstart",function(St){if(!De.coreMouseService.areMouseEventsActive)return De.viewport.onTouchStart(St),De.cancel(St)},{passive:!0})),this.register(x.addDisposableDomListener(ct,"touchmove",function(St){if(!De.coreMouseService.areMouseEventsActive)return De.viewport.onTouchMove(St)?void 0:De.cancel(St)},{passive:!1}))},Se.prototype.refresh=function(De,Ve){var ct;null===(ct=this._renderService)||void 0===ct||ct.refreshRows(De,Ve)},Se.prototype._queueLinkification=function(De,Ve){var ct;null===(ct=this.linkifier)||void 0===ct||ct.linkifyRows(De,Ve)},Se.prototype.updateCursorStyle=function(De){var Ve;(null===(Ve=this._selectionService)||void 0===Ve?void 0:Ve.shouldColumnSelect(De))?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},Se.prototype._showCursor=function(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},Se.prototype.scrollLines=function(De,Ve,ct){void 0===ct&&(ct=0),Bt.prototype.scrollLines.call(this,De,Ve,ct),this.refresh(0,this.rows-1)},Se.prototype.paste=function(De){M.paste(De,this.textarea,this.coreService)},Se.prototype.attachCustomKeyEventHandler=function(De){this._customKeyEventHandler=De},Se.prototype.registerLinkMatcher=function(De,Ve,ct){var Je=this.linkifier.registerLinkMatcher(De,Ve,ct);return this.refresh(0,this.rows-1),Je},Se.prototype.deregisterLinkMatcher=function(De){this.linkifier.deregisterLinkMatcher(De)&&this.refresh(0,this.rows-1)},Se.prototype.registerLinkProvider=function(De){return this.linkifier2.registerLinkProvider(De)},Se.prototype.registerCharacterJoiner=function(De){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");var Ve=this._characterJoinerService.register(De);return this.refresh(0,this.rows-1),Ve},Se.prototype.deregisterCharacterJoiner=function(De){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(De)&&this.refresh(0,this.rows-1)},Object.defineProperty(Se.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),Se.prototype.addMarker=function(De){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+De)},Se.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},Se.prototype.select=function(De,Ve,ct){this._selectionService.setSelection(De,Ve,ct)},Se.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},Se.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},Se.prototype.clearSelection=function(){var De;null===(De=this._selectionService)||void 0===De||De.clearSelection()},Se.prototype.selectAll=function(){var De;null===(De=this._selectionService)||void 0===De||De.selectAll()},Se.prototype.selectLines=function(De,Ve){var ct;null===(ct=this._selectionService)||void 0===ct||ct.selectLines(De,Ve)},Se.prototype._keyDown=function(De){if(this._keyDownHandled=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(De))return!1;if(!this._compositionHelper.keydown(De))return this.buffer.ybase!==this.buffer.ydisp&&this._bufferService.scrollToBottom(),!1;"Dead"!==De.key&&"AltGraph"!==De.key||(this._unprocessedDeadKey=!0);var Ve=W.evaluateKeyboardEvent(De,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(De),3===Ve.type||2===Ve.type){var ct=this.rows-1;return this.scrollLines(2===Ve.type?-ct:ct),this.cancel(De,!0)}return 1===Ve.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,De)||(Ve.cancel&&this.cancel(De,!0),!Ve.key||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(Ve.key!==A.C0.ETX&&Ve.key!==A.C0.CR||(this.textarea.value=""),this._onKey.fire({key:Ve.key,domEvent:De}),this._showCursor(),this.coreService.triggerDataEvent(Ve.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(De,!0))))},Se.prototype._isThirdLevelShift=function(De,Ve){var ct=De.isMac&&!this.options.macOptionIsMeta&&Ve.altKey&&!Ve.ctrlKey&&!Ve.metaKey||De.isWindows&&Ve.altKey&&Ve.ctrlKey&&!Ve.metaKey||De.isWindows&&Ve.getModifierState("AltGraph");return"keypress"===Ve.type?ct:ct&&(!Ve.keyCode||Ve.keyCode>47)},Se.prototype._keyUp=function(De){var Ve;this._customKeyEventHandler&&!1===this._customKeyEventHandler(De)||(16===(Ve=De).keyCode||17===Ve.keyCode||18===Ve.keyCode||this.focus(),this.updateCursorStyle(De),this._keyPressHandled=!1)},Se.prototype._keyPress=function(De){var Ve;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&!1===this._customKeyEventHandler(De))return!1;if(this.cancel(De),De.charCode)Ve=De.charCode;else if(null==De.which)Ve=De.keyCode;else{if(0===De.which||0===De.charCode)return!1;Ve=De.which}return!(!Ve||(De.altKey||De.ctrlKey||De.metaKey)&&!this._isThirdLevelShift(this.browser,De)||(Ve=String.fromCharCode(Ve),this._onKey.fire({key:Ve,domEvent:De}),this._showCursor(),this.coreService.triggerDataEvent(Ve,!0),this._keyPressHandled=!0,0))},Se.prototype._inputEvent=function(De){return!(!De.data||"insertText"!==De.inputType||this.optionsService.options.screenReaderMode||this._keyPressHandled||(this.coreService.triggerDataEvent(De.data,!0),this.cancel(De),0))},Se.prototype.bell=function(){var De;this._soundBell()&&(null===(De=this._soundService)||void 0===De||De.playBellSound()),this._onBell.fire()},Se.prototype.resize=function(De,Ve){De!==this.cols||Ve!==this.rows?Bt.prototype.resize.call(this,De,Ve):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},Se.prototype._afterResize=function(De,Ve){var ct,Je;null===(ct=this._charSizeService)||void 0===ct||ct.measure(),null===(Je=this.viewport)||void 0===Je||Je.syncScrollArea(!0)},Se.prototype.clear=function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var De=1;De<this.rows;De++)this.buffer.lines.push(this.buffer.getBlankLine(oe.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire({position:this.buffer.ydisp,source:0})}},Se.prototype.reset=function(){var De,Ve;this.options.rows=this.rows,this.options.cols=this.cols;var ct=this._customKeyEventHandler;this._setup(),Bt.prototype.reset.call(this),null===(De=this._selectionService)||void 0===De||De.reset(),this._customKeyEventHandler=ct,this.refresh(0,this.rows-1),null===(Ve=this.viewport)||void 0===Ve||Ve.syncScrollArea()},Se.prototype._reportWindowsOptions=function(De){if(this._renderService)switch(De){case y.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var Ve=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),ct=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this.coreService.triggerDataEvent(A.C0.ESC+"[4;"+ct+";"+Ve+"t");break;case y.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var Je=this._renderService.dimensions.scaledCellWidth.toFixed(0),Ut=this._renderService.dimensions.scaledCellHeight.toFixed(0);this.coreService.triggerDataEvent(A.C0.ESC+"[6;"+Ut+";"+Je+"t")}},Se.prototype.cancel=function(De,Ve){if(this.options.cancelEvents||Ve)return De.preventDefault(),De.stopPropagation(),!1},Se.prototype._visualBell=function(){return!1},Se.prototype._soundBell=function(){return"sound"===this.options.bellStyle},Se}(ye.CoreTerminal);T.Terminal=yt},9924:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.TimeBasedDebouncer=void 0;var I=function(){function C(v,P){void 0===P&&(P=1e3),this._renderCallback=v,this._debounceThresholdMS=P,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}return C.prototype.dispose=function(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)},C.prototype.refresh=function(v,P,D){var M=this;this._rowCount=D,v=void 0!==v?v:0,P=void 0!==P?P:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,v):v,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,P):P;var A=Date.now();if(A-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=A,this._innerRefresh();else if(!this._additionalRefreshRequested){var g=this._debounceThresholdMS-(A-this._lastRefreshMs);this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(function(){M._lastRefreshMs=Date.now(),M._innerRefresh(),M._additionalRefreshRequested=!1,M._refreshTimeoutID=void 0},g)}},C.prototype._innerRefresh=function(){if(void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var v=Math.max(this._rowStart,0),P=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(v,P)}},C}();T.TimeBasedDebouncer=I},1680:function(Z,T,I){var C,v=this&&this.__extends||(C=function(E,x){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var L in O)Object.prototype.hasOwnProperty.call(O,L)&&(S[L]=O[L])})(E,x)},function(N,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function x(){this.constructor=N}C(N,E),N.prototype=null===E?Object.create(E):(x.prototype=E.prototype,new x)}),P=this&&this.__decorate||function(N,E,x,S){var O,L=arguments.length,j=L<3?E:null===S?S=Object.getOwnPropertyDescriptor(E,x):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)j=Reflect.decorate(N,E,x,S);else for(var K=N.length-1;K>=0;K--)(O=N[K])&&(j=(L<3?O(j):L>3?O(E,x,j):O(E,x))||j);return L>3&&j&&Object.defineProperty(E,x,j),j},D=this&&this.__param||function(N,E){return function(x,S){E(x,S,N)}};Object.defineProperty(T,"__esModule",{value:!0}),T.Viewport=void 0;var M=I(844),A=I(3656),y=I(4725),g=I(2585),k=function(N){function E(x,S,O,L,j,K,W){var J=N.call(this)||this;return J._scrollLines=x,J._viewportElement=S,J._scrollArea=O,J._bufferService=L,J._optionsService=j,J._charSizeService=K,J._renderService=W,J.scrollBarWidth=0,J._currentRowHeight=0,J._currentScaledCellHeight=0,J._lastRecordedBufferLength=0,J._lastRecordedViewportHeight=0,J._lastRecordedBufferHeight=0,J._lastTouchY=0,J._lastScrollTop=0,J._lastHadScrollBar=!1,J._wheelPartialScroll=0,J._refreshAnimationFrame=null,J._ignoreNextScrollEvent=!1,J.scrollBarWidth=J._viewportElement.offsetWidth-J._scrollArea.offsetWidth||15,J._lastHadScrollBar=!0,J.register(A.addDisposableDomListener(J._viewportElement,"scroll",J._onScroll.bind(J))),J._activeBuffer=J._bufferService.buffer,J.register(J._bufferService.buffers.onBufferActivate(function(oe){return J._activeBuffer=oe.activeBuffer})),J._renderDimensions=J._renderService.dimensions,J.register(J._renderService.onDimensionsChange(function(oe){return J._renderDimensions=oe})),setTimeout(function(){return J.syncScrollArea()},0),J}return v(E,N),E.prototype.onThemeChange=function(x){this._viewportElement.style.backgroundColor=x.background.css},E.prototype._refresh=function(x){var S=this;if(x)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return S._innerRefresh()}))},E.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._currentScaledCellHeight=this._renderService.dimensions.scaledCellHeight,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var x=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==x&&(this._lastRecordedBufferHeight=x,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var S=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==S&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=S),this.scrollBarWidth=0===this._optionsService.options.scrollback?0:this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this._lastHadScrollBar=this.scrollBarWidth>0,this._viewportElement.style.width=(this._renderService.dimensions.actualCellWidth*this._bufferService.cols+this.scrollBarWidth).toString()+"px",this._refreshAnimationFrame=null},E.prototype.syncScrollArea=function(x){if(void 0===x&&(x=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(x);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.scaledCellHeight===this._currentScaledCellHeight?this._lastHadScrollBar!==this._optionsService.options.scrollback>0&&this._refresh(x):this._refresh(x)},E.prototype._onScroll=function(x){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var S=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(S)}},E.prototype._bubbleScroll=function(x,S){return!(S<0&&0!==this._viewportElement.scrollTop||S>0&&this._viewportElement.scrollTop+this._lastRecordedViewportHeight<this._lastRecordedBufferHeight)||(x.cancelable&&x.preventDefault(),!1)},E.prototype.onWheel=function(x){var S=this._getPixelsScrolled(x);return 0!==S&&(this._viewportElement.scrollTop+=S,this._bubbleScroll(x,S))},E.prototype._getPixelsScrolled=function(x){if(0===x.deltaY)return 0;var S=this._applyScrollModifier(x.deltaY,x);return x.deltaMode===WheelEvent.DOM_DELTA_LINE?S*=this._currentRowHeight:x.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(S*=this._currentRowHeight*this._bufferService.rows),S},E.prototype.getLinesScrolled=function(x){if(0===x.deltaY)return 0;var S=this._applyScrollModifier(x.deltaY,x);return x.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(this._wheelPartialScroll+=S/=this._currentRowHeight+0,S=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):x.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(S*=this._bufferService.rows),S},E.prototype._applyScrollModifier=function(x,S){var O=this._optionsService.options.fastScrollModifier;return"alt"===O&&S.altKey||"ctrl"===O&&S.ctrlKey||"shift"===O&&S.shiftKey?x*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:x*this._optionsService.options.scrollSensitivity},E.prototype.onTouchStart=function(x){this._lastTouchY=x.touches[0].pageY},E.prototype.onTouchMove=function(x){var S=this._lastTouchY-x.touches[0].pageY;return this._lastTouchY=x.touches[0].pageY,0!==S&&(this._viewportElement.scrollTop+=S,this._bubbleScroll(x,S))},P([D(3,g.IBufferService),D(4,g.IOptionsService),D(5,y.ICharSizeService),D(6,y.IRenderService)],E)}(M.Disposable);T.Viewport=k},2950:function(Z,T,I){var C=this&&this.__decorate||function(A,y,g,k){var N,E=arguments.length,x=E<3?y:null===k?k=Object.getOwnPropertyDescriptor(y,g):k;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)x=Reflect.decorate(A,y,g,k);else for(var S=A.length-1;S>=0;S--)(N=A[S])&&(x=(E<3?N(x):E>3?N(y,g,x):N(y,g))||x);return E>3&&x&&Object.defineProperty(y,g,x),x},v=this&&this.__param||function(A,y){return function(g,k){y(g,k,A)}};Object.defineProperty(T,"__esModule",{value:!0}),T.CompositionHelper=void 0;var P=I(4725),D=I(2585),M=function(){function A(y,g,k,N,E,x){this._textarea=y,this._compositionView=g,this._bufferService=k,this._optionsService=N,this._coreService=E,this._renderService=x,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return Object.defineProperty(A.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),A.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")},A.prototype.compositionupdate=function(y){var g=this;this._compositionView.textContent=y.data,this.updateCompositionElements(),setTimeout(function(){g._compositionPosition.end=g._textarea.value.length},0)},A.prototype.compositionend=function(){this._finalizeComposition(!0)},A.prototype.keydown=function(y){if(this._isComposing||this._isSendingComposition){if(229===y.keyCode||16===y.keyCode||17===y.keyCode||18===y.keyCode)return!1;this._finalizeComposition(!1)}return 229!==y.keyCode||(this._handleAnyTextareaChanges(),!1)},A.prototype._finalizeComposition=function(y){var g=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,y){var k={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){var E;g._isSendingComposition&&(g._isSendingComposition=!1,k.start+=g._dataAlreadySent.length,(E=g._isComposing?g._textarea.value.substring(k.start,k.end):g._textarea.value.substring(k.start)).length>0&&g._coreService.triggerDataEvent(E,!0))},0)}else{this._isSendingComposition=!1;var N=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(N,!0)}},A.prototype._handleAnyTextareaChanges=function(){var y=this,g=this._textarea.value;setTimeout(function(){if(!y._isComposing){var k=y._textarea.value.replace(g,"");k.length>0&&(y._dataAlreadySent=k,y._coreService.triggerDataEvent(k,!0))}},0)},A.prototype.updateCompositionElements=function(y){var g=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var k=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),N=this._renderService.dimensions.actualCellHeight,E=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,x=k*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=x+"px",this._compositionView.style.top=E+"px",this._compositionView.style.height=N+"px",this._compositionView.style.lineHeight=N+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var S=this._compositionView.getBoundingClientRect();this._textarea.style.left=x+"px",this._textarea.style.top=E+"px",this._textarea.style.width=Math.max(S.width,1)+"px",this._textarea.style.height=Math.max(S.height,1)+"px",this._textarea.style.lineHeight=S.height+"px"}y||setTimeout(function(){return g.updateCompositionElements(!0)},0)}},C([v(2,D.IBufferService),v(3,D.IOptionsService),v(4,D.ICoreService),v(5,P.IRenderService)],A)}();T.CompositionHelper=M},9806:function(Z,T){function I(C,v){var P=v.getBoundingClientRect();return[C.clientX-P.left,C.clientY-P.top]}Object.defineProperty(T,"__esModule",{value:!0}),T.getRawByteCoords=T.getCoords=T.getCoordsRelativeToElement=void 0,T.getCoordsRelativeToElement=I,T.getCoords=function(C,v,P,D,M,A,y,g){if(M){var k=I(C,v);if(k)return k[0]=Math.ceil((k[0]+(g?A/2:0))/A),k[1]=Math.ceil(k[1]/y),k[0]=Math.min(Math.max(k[0],1),P+(g?1:0)),k[1]=Math.min(Math.max(k[1],1),D),k}},T.getRawByteCoords=function(C){if(C)return{x:C[0]+32,y:C[1]+32}}},9504:function(Z,T,I){Object.defineProperty(T,"__esModule",{value:!0}),T.moveToCellSequence=void 0;var C=I(2584);function v(g,k,N,E){var x=g-P(N,g),S=k-P(N,k);return y(Math.abs(x-S)-function(O,L,j){for(var K=0,W=O-P(j,O),J=L-P(j,L),oe=0;oe<Math.abs(W-J);oe++){var te="A"===D(O,L)?-1:1,se=j.buffer.lines.get(W+te*oe);se&&se.isWrapped&&K++}return K}(g,k,N),A(D(g,k),E))}function P(g,k){for(var N=0,E=g.buffer.lines.get(k),x=E&&E.isWrapped;x&&k>=0&&k<g.rows;)N++,x=(E=g.buffer.lines.get(--k))&&E.isWrapped;return N}function D(g,k){return g>k?"A":"B"}function M(g,k,N,E,x,S){for(var O=g,L=k,j="";O!==N||L!==E;)O+=x?1:-1,x&&O>S.cols-1?(j+=S.buffer.translateBufferLineToString(L,!1,g,O),O=0,g=0,L++):!x&&O<0&&(j+=S.buffer.translateBufferLineToString(L,!1,0,g+1),g=O=S.cols-1,L--);return j+S.buffer.translateBufferLineToString(L,!1,g,O)}function A(g,k){return C.C0.ESC+(k?"O":"[")+g}function y(g,k){g=Math.floor(g);for(var N="",E=0;E<g;E++)N+=k;return N}T.moveToCellSequence=function(g,k,N,E){var x,j,K,oe,te,S=N.buffer.x,O=N.buffer.y;if(!N.buffer.hasScrollback)return j=S,(0===v(K=O,k,oe=N,te=E).length?"":y(M(j,K,j,K-P(oe,K),!1,oe).length,A("D",te)))+v(O,k,N,E)+function(j,K,W,J,oe,te){var se;se=v(K,J,oe,te).length>0?J-P(oe,J):K;var ue,ae,Me,ye,ot,_t,le=J,de=(ue=j,ae=K,_t=v(Me=W,ye=J,ot=oe,te).length>0?ye-P(ot,ye):ae,ue<Me&&_t<=ye||ue>=Me&&_t<ye?"C":"D");return y(M(j,se,W,le,"C"===de,oe).length,A(de,te))}(S,O,g,k,N,E);if(O===k)return x=S>g?"D":"C",y(Math.abs(S-g),A(x,E));x=O>k?"D":"C";var L=Math.abs(O-k);return y(function(j,K){return K.cols-j}(O>k?g:S,N)+(L-1)*N.cols+1+((O>k?S:g)-1),A(x,E))}},1546:function(Z,T,I){Object.defineProperty(T,"__esModule",{value:!0}),T.BaseRenderLayer=void 0;var C=I(643),v=I(8803),P=I(1420),D=I(3734),M=I(1752),A=I(4774),y=I(9631),g=I(8978),k=function(){function N(E,x,S,O,L,j,K,W){this._container=E,this._alpha=O,this._colors=L,this._rendererId=j,this._bufferService=K,this._optionsService=W,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+x+"-layer"),this._canvas.style.zIndex=S.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return N.prototype.dispose=function(){var E;y.removeElementFromParent(this._canvas),null===(E=this._charAtlas)||void 0===E||E.dispose()},N.prototype._initCanvas=function(){this._ctx=M.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},N.prototype.onOptionsChanged=function(){},N.prototype.onBlur=function(){},N.prototype.onFocus=function(){},N.prototype.onCursorMove=function(){},N.prototype.onGridChanged=function(E,x){},N.prototype.onSelectionChanged=function(E,x,S){void 0===S&&(S=!1)},N.prototype.setColors=function(E){this._refreshCharAtlas(E)},N.prototype._setTransparency=function(E){if(E!==this._alpha){var x=this._canvas;this._alpha=E,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,x),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},N.prototype._refreshCharAtlas=function(E){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=P.acquireCharAtlas(this._optionsService.options,this._rendererId,E,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},N.prototype.resize=function(E){this._scaledCellWidth=E.scaledCellWidth,this._scaledCellHeight=E.scaledCellHeight,this._scaledCharWidth=E.scaledCharWidth,this._scaledCharHeight=E.scaledCharHeight,this._scaledCharLeft=E.scaledCharLeft,this._scaledCharTop=E.scaledCharTop,this._canvas.width=E.scaledCanvasWidth,this._canvas.height=E.scaledCanvasHeight,this._canvas.style.width=E.canvasWidth+"px",this._canvas.style.height=E.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},N.prototype._fillCells=function(E,x,S,O){this._ctx.fillRect(E*this._scaledCellWidth,x*this._scaledCellHeight,S*this._scaledCellWidth,O*this._scaledCellHeight)},N.prototype._fillMiddleLineAtCells=function(E,x,S){void 0===S&&(S=1);var O=Math.ceil(.5*this._scaledCellHeight);this._ctx.fillRect(E*this._scaledCellWidth,(x+1)*this._scaledCellHeight-O-window.devicePixelRatio,S*this._scaledCellWidth,window.devicePixelRatio)},N.prototype._fillBottomLineAtCells=function(E,x,S){void 0===S&&(S=1),this._ctx.fillRect(E*this._scaledCellWidth,(x+1)*this._scaledCellHeight-window.devicePixelRatio-1,S*this._scaledCellWidth,window.devicePixelRatio)},N.prototype._fillLeftLineAtCell=function(E,x,S){this._ctx.fillRect(E*this._scaledCellWidth,x*this._scaledCellHeight,window.devicePixelRatio*S,this._scaledCellHeight)},N.prototype._strokeRectAtCell=function(E,x,S,O){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(E*this._scaledCellWidth+window.devicePixelRatio/2,x*this._scaledCellHeight+window.devicePixelRatio/2,S*this._scaledCellWidth-window.devicePixelRatio,O*this._scaledCellHeight-window.devicePixelRatio)},N.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},N.prototype._clearCells=function(E,x,S,O){this._alpha?this._ctx.clearRect(E*this._scaledCellWidth,x*this._scaledCellHeight,S*this._scaledCellWidth,O*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(E*this._scaledCellWidth,x*this._scaledCellHeight,S*this._scaledCellWidth,O*this._scaledCellHeight))},N.prototype._fillCharTrueColor=function(E,x,S){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="ideographic",this._clipRow(S);var O=!1;!1!==this._optionsService.options.customGlyphs&&(O=g.tryDrawCustomChar(this._ctx,E.getChars(),x*this._scaledCellWidth,S*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),O||this._ctx.fillText(E.getChars(),x*this._scaledCellWidth+this._scaledCharLeft,S*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight)},N.prototype._drawChars=function(E,x,S){var O,L,j=this._getContrastColor(E);j||E.isFgRGB()||E.isBgRGB()?this._drawUncachedChars(E,x,S,j):(E.isInverse()?(O=E.isBgDefault()?v.INVERTED_DEFAULT_COLOR:E.getBgColor(),L=E.isFgDefault()?v.INVERTED_DEFAULT_COLOR:E.getFgColor()):(L=E.isBgDefault()?C.DEFAULT_COLOR:E.getBgColor(),O=E.isFgDefault()?C.DEFAULT_COLOR:E.getFgColor()),O+=this._optionsService.options.drawBoldTextInBrightColors&&E.isBold()&&O<8?8:0,this._currentGlyphIdentifier.chars=E.getChars()||C.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=E.getCode()||C.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=L,this._currentGlyphIdentifier.fg=O,this._currentGlyphIdentifier.bold=!!E.isBold(),this._currentGlyphIdentifier.dim=!!E.isDim(),this._currentGlyphIdentifier.italic=!!E.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,x*this._scaledCellWidth+this._scaledCharLeft,S*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(E,x,S))},N.prototype._drawUncachedChars=function(E,x,S,O){if(this._ctx.save(),this._ctx.font=this._getFont(!!E.isBold(),!!E.isItalic()),this._ctx.textBaseline="ideographic",E.isInverse())if(O)this._ctx.fillStyle=O.css;else if(E.isBgDefault())this._ctx.fillStyle=A.color.opaque(this._colors.background).css;else if(E.isBgRGB())this._ctx.fillStyle="rgb("+D.AttributeData.toColorRGB(E.getBgColor()).join(",")+")";else{var L=E.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&E.isBold()&&L<8&&(L+=8),this._ctx.fillStyle=this._colors.ansi[L].css}else if(O)this._ctx.fillStyle=O.css;else if(E.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(E.isFgRGB())this._ctx.fillStyle="rgb("+D.AttributeData.toColorRGB(E.getFgColor()).join(",")+")";else{var j=E.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&E.isBold()&&j<8&&(j+=8),this._ctx.fillStyle=this._colors.ansi[j].css}this._clipRow(S),E.isDim()&&(this._ctx.globalAlpha=v.DIM_OPACITY);var K=!1;!1!==this._optionsService.options.customGlyphs&&(K=g.tryDrawCustomChar(this._ctx,E.getChars(),x*this._scaledCellWidth,S*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),K||this._ctx.fillText(E.getChars(),x*this._scaledCellWidth+this._scaledCharLeft,S*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight),this._ctx.restore()},N.prototype._clipRow=function(E){this._ctx.beginPath(),this._ctx.rect(0,E*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},N.prototype._getFont=function(E,x){return(x?"italic":"")+" "+(E?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},N.prototype._getContrastColor=function(E){if(1!==this._optionsService.options.minimumContrastRatio){var x=this._colors.contrastCache.getColor(E.bg,E.fg);if(void 0!==x)return x||void 0;var S=E.getFgColor(),O=E.getFgColorMode(),L=E.getBgColor(),j=E.getBgColorMode(),K=!!E.isInverse(),W=!!E.isInverse();if(K){var J=S;S=L,L=J;var oe=O;O=j,j=oe}var te=this._resolveBackgroundRgba(j,L,K),se=this._resolveForegroundRgba(O,S,K,W),le=A.rgba.ensureContrastRatio(te,se,this._optionsService.options.minimumContrastRatio);if(le){var de={css:A.channels.toCss(le>>24&255,le>>16&255,le>>8&255),rgba:le};return this._colors.contrastCache.setColor(E.bg,E.fg,de),de}this._colors.contrastCache.setColor(E.bg,E.fg,null)}},N.prototype._resolveBackgroundRgba=function(E,x,S){switch(E){case 16777216:case 33554432:return this._colors.ansi[x].rgba;case 50331648:return x<<8;case 0:default:return S?this._colors.foreground.rgba:this._colors.background.rgba}},N.prototype._resolveForegroundRgba=function(E,x,S,O){switch(E){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&O&&x<8&&(x+=8),this._colors.ansi[x].rgba;case 50331648:return x<<8;case 0:default:return S?this._colors.background.rgba:this._colors.foreground.rgba}},N}();T.BaseRenderLayer=k},2512:function(Z,T,I){var C,v=this&&this.__extends||(C=function(S,O){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,j){L.__proto__=j}||function(L,j){for(var K in j)Object.prototype.hasOwnProperty.call(j,K)&&(L[K]=j[K])})(S,O)},function(x,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function O(){this.constructor=x}C(x,S),x.prototype=null===S?Object.create(S):(O.prototype=S.prototype,new O)}),P=this&&this.__decorate||function(x,S,O,L){var j,K=arguments.length,W=K<3?S:null===L?L=Object.getOwnPropertyDescriptor(S,O):L;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)W=Reflect.decorate(x,S,O,L);else for(var J=x.length-1;J>=0;J--)(j=x[J])&&(W=(K<3?j(W):K>3?j(S,O,W):j(S,O))||W);return K>3&&W&&Object.defineProperty(S,O,W),W},D=this&&this.__param||function(x,S){return function(O,L){S(O,L,x)}};Object.defineProperty(T,"__esModule",{value:!0}),T.CursorRenderLayer=void 0;var M=I(1546),A=I(511),y=I(2585),g=I(4725),k=600,N=function(x){function S(O,L,j,K,W,J,oe,te,se){var le=x.call(this,O,"cursor",L,!0,j,K,J,oe)||this;return le._onRequestRedraw=W,le._coreService=te,le._coreBrowserService=se,le._cell=new A.CellData,le._state={x:0,y:0,isFocused:!1,style:"",width:0},le._cursorRenderers={bar:le._renderBarCursor.bind(le),block:le._renderBlockCursor.bind(le),underline:le._renderUnderlineCursor.bind(le)},le}return v(S,x),S.prototype.dispose=function(){this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0),x.prototype.dispose.call(this)},S.prototype.resize=function(O){x.prototype.resize.call(this,O),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},S.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},S.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},S.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},S.prototype.onOptionsChanged=function(){var O,L=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new E(this._coreBrowserService.isFocused,function(){L._render(!0)})):(null===(O=this._cursorBlinkStateManager)||void 0===O||O.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},S.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},S.prototype.onGridChanged=function(O,L){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},S.prototype._render=function(O){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var L=this._bufferService.buffer.ybase+this._bufferService.buffer.y,j=L-this._bufferService.buffer.ydisp;if(j<0||j>=this._bufferService.rows)this._clearCursor();else{var K=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(L).loadCell(K,this._cell),void 0!==this._cell.content){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var W=this._optionsService.options.cursorStyle;return W&&"block"!==W?this._cursorRenderers[W](K,j,this._cell):this._renderBlurCursor(K,j,this._cell),this._ctx.restore(),this._state.x=K,this._state.y=j,this._state.isFocused=!1,this._state.style=W,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===K&&this._state.y===j&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](K,j,this._cell),this._ctx.restore(),this._state.x=K,this._state.y=j,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},S.prototype._clearCursor=function(){this._state&&(window.devicePixelRatio<1?this._clearAll():this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},S.prototype._renderBarCursor=function(O,L,j){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(O,L,this._optionsService.options.cursorWidth),this._ctx.restore()},S.prototype._renderBlockCursor=function(O,L,j){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(O,L,j.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(j,O,L),this._ctx.restore()},S.prototype._renderUnderlineCursor=function(O,L,j){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(O,L),this._ctx.restore()},S.prototype._renderBlurCursor=function(O,L,j){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(O,L,j.getWidth(),1),this._ctx.restore()},P([D(5,y.IBufferService),D(6,y.IOptionsService),D(7,y.ICoreService),D(8,g.ICoreBrowserService)],S)}(M.BaseRenderLayer);T.CursorRenderLayer=N;var E=function(){function x(S,O){this._renderCallback=O,this.isCursorVisible=!0,S&&this._restartInterval()}return Object.defineProperty(x.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),x.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},x.prototype.restartBlinkAnimation=function(){var S=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){S._renderCallback(),S._animationFrame=void 0})))},x.prototype._restartInterval=function(S){var O=this;void 0===S&&(S=k),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(O._animationTimeRestarted){var L=k-(Date.now()-O._animationTimeRestarted);if(O._animationTimeRestarted=void 0,L>0)return void O._restartInterval(L)}O.isCursorVisible=!1,O._animationFrame=window.requestAnimationFrame(function(){O._renderCallback(),O._animationFrame=void 0}),O._blinkInterval=window.setInterval(function(){if(O._animationTimeRestarted){var j=k-(Date.now()-O._animationTimeRestarted);return O._animationTimeRestarted=void 0,void O._restartInterval(j)}O.isCursorVisible=!O.isCursorVisible,O._animationFrame=window.requestAnimationFrame(function(){O._renderCallback(),O._animationFrame=void 0})},k)},S)},x.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},x.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},x}()},8978:function(Z,T,I){var C,v,P,D,M,A,y,g,k,N,E,x,S,O,L,j,K,W,J,oe,te,se,le,de,ue,ae,Me,ye,ot,He,_t,yt,Bt,Se,De,Ve,ct,Je,Ut,Et,vt,Kt,Vt,St,qt,Ct,en,Ft,on,En,Zn,Rn,tr,Nn,wn,yr,Wt,Mt,rt,Te,re,ve,Ge,Ye,bt,Lt,zt,tn,sn,hn,Cn,In,Yn,xn,Sn,$n,Ht,rn,ft,dt,Ue,at,xe,Fe,Oe,Le,qe,Nt,cn,Jn,Zr,jr,Cr,Kr,co,Ni,bo,po,Xo,ki,ro,yi,Yi,fo,hi,Ho,Ei,Wn,Pt,Gt,It,jt,Qt,Xt,yn,Gn,jn,zn,li,bi,io,Co,Fi,Io,$o,Eo,oi,Vo;Object.defineProperty(T,"__esModule",{value:!0}),T.tryDrawCustomChar=T.boxDrawingDefinitions=T.blockElementDefinitions=void 0;var oo=I(1752);T.blockElementDefinitions={"\u2580":[{x:0,y:0,w:8,h:4}],"\u2581":[{x:0,y:7,w:8,h:1}],"\u2582":[{x:0,y:6,w:8,h:2}],"\u2583":[{x:0,y:5,w:8,h:3}],"\u2584":[{x:0,y:4,w:8,h:4}],"\u2585":[{x:0,y:3,w:8,h:5}],"\u2586":[{x:0,y:2,w:8,h:6}],"\u2587":[{x:0,y:1,w:8,h:7}],"\u2588":[{x:0,y:0,w:8,h:8}],"\u2589":[{x:0,y:0,w:7,h:8}],"\u258a":[{x:0,y:0,w:6,h:8}],"\u258b":[{x:0,y:0,w:5,h:8}],"\u258c":[{x:0,y:0,w:4,h:8}],"\u258d":[{x:0,y:0,w:3,h:8}],"\u258e":[{x:0,y:0,w:2,h:8}],"\u258f":[{x:0,y:0,w:1,h:8}],"\u2590":[{x:4,y:0,w:4,h:8}],"\u2594":[{x:0,y:0,w:9,h:1}],"\u2595":[{x:7,y:0,w:1,h:8}],"\u2596":[{x:0,y:4,w:4,h:4}],"\u2597":[{x:4,y:4,w:4,h:4}],"\u2598":[{x:0,y:0,w:4,h:4}],"\u2599":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\u259a":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"\u259b":[{x:0,y:0,w:4,h:8},{x:0,y:0,w:4,h:8}],"\u259c":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"\u259d":[{x:4,y:0,w:4,h:4}],"\u259e":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"\u259f":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\ud83e\udf70":[{x:1,y:0,w:1,h:8}],"\ud83e\udf71":[{x:2,y:0,w:1,h:8}],"\ud83e\udf72":[{x:3,y:0,w:1,h:8}],"\ud83e\udf73":[{x:4,y:0,w:1,h:8}],"\ud83e\udf74":[{x:5,y:0,w:1,h:8}],"\ud83e\udf75":[{x:6,y:0,w:1,h:8}],"\ud83e\udf76":[{x:0,y:1,w:8,h:1}],"\ud83e\udf77":[{x:0,y:2,w:8,h:1}],"\ud83e\udf78":[{x:0,y:3,w:8,h:1}],"\ud83e\udf79":[{x:0,y:4,w:8,h:1}],"\ud83e\udf7a":[{x:0,y:5,w:8,h:1}],"\ud83e\udf7b":[{x:0,y:6,w:8,h:1}],"\ud83e\udf7c":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\ud83e\udf7d":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\ud83e\udf7e":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\ud83e\udf7f":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\ud83e\udf80":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"\ud83e\udf81":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"\ud83e\udf82":[{x:0,y:0,w:8,h:2}],"\ud83e\udf83":[{x:0,y:0,w:8,h:3}],"\ud83e\udf84":[{x:0,y:0,w:8,h:5}],"\ud83e\udf85":[{x:0,y:0,w:8,h:6}],"\ud83e\udf86":[{x:0,y:0,w:8,h:7}],"\ud83e\udf87":[{x:6,y:0,w:2,h:8}],"\ud83e\udf88":[{x:5,y:0,w:3,h:8}],"\ud83e\udf89":[{x:3,y:0,w:5,h:8}],"\ud83e\udf8a":[{x:2,y:0,w:6,h:8}],"\ud83e\udf8b":[{x:1,y:0,w:7,h:8}],"\ud83e\udf95":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"\ud83e\udf96":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"\ud83e\udf97":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};var ji={"\u2591":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"\u2592":[[1,0],[0,0],[0,1],[0,0]],"\u2593":[[0,1],[1,1],[1,0],[1,1]]};T.boxDrawingDefinitions={"\u2500":(C={},C[1]="M0,.5 L1,.5",C),"\u2501":(v={},v[3]="M0,.5 L1,.5",v),"\u2502":(P={},P[1]="M.5,0 L.5,1",P),"\u2503":(D={},D[3]="M.5,0 L.5,1",D),"\u250c":(M={},M[1]="M0.5,1 L.5,.5 L1,.5",M),"\u250f":(A={},A[3]="M0.5,1 L.5,.5 L1,.5",A),"\u2510":(y={},y[1]="M0,.5 L.5,.5 L.5,1",y),"\u2513":(g={},g[3]="M0,.5 L.5,.5 L.5,1",g),"\u2514":(k={},k[1]="M.5,0 L.5,.5 L1,.5",k),"\u2517":(N={},N[3]="M.5,0 L.5,.5 L1,.5",N),"\u2518":(E={},E[1]="M.5,0 L.5,.5 L0,.5",E),"\u251b":(x={},x[3]="M.5,0 L.5,.5 L0,.5",x),"\u251c":(S={},S[1]="M.5,0 L.5,1 M.5,.5 L1,.5",S),"\u2523":(O={},O[3]="M.5,0 L.5,1 M.5,.5 L1,.5",O),"\u2524":(L={},L[1]="M.5,0 L.5,1 M.5,.5 L0,.5",L),"\u252b":(j={},j[3]="M.5,0 L.5,1 M.5,.5 L0,.5",j),"\u252c":(K={},K[1]="M0,.5 L1,.5 M.5,.5 L.5,1",K),"\u2533":(W={},W[3]="M0,.5 L1,.5 M.5,.5 L.5,1",W),"\u2534":(J={},J[1]="M0,.5 L1,.5 M.5,.5 L.5,0",J),"\u253b":(oe={},oe[3]="M0,.5 L1,.5 M.5,.5 L.5,0",oe),"\u253c":(te={},te[1]="M0,.5 L1,.5 M.5,0 L.5,1",te),"\u254b":(se={},se[3]="M0,.5 L1,.5 M.5,0 L.5,1",se),"\u2574":(le={},le[1]="M.5,.5 L0,.5",le),"\u2578":(de={},de[3]="M.5,.5 L0,.5",de),"\u2575":(ue={},ue[1]="M.5,.5 L.5,0",ue),"\u2579":(ae={},ae[3]="M.5,.5 L.5,0",ae),"\u2576":(Me={},Me[1]="M.5,.5 L1,.5",Me),"\u257a":(ye={},ye[3]="M.5,.5 L1,.5",ye),"\u2577":(ot={},ot[1]="M.5,.5 L.5,1",ot),"\u257b":(He={},He[3]="M.5,.5 L.5,1",He),"\u2550":(_t={},_t[1]=function(mn,_n){return"M0,"+(.5-_n)+" L1,"+(.5-_n)+" M0,"+(.5+_n)+" L1,"+(.5+_n)},_t),"\u2551":(yt={},yt[1]=function(mn,_n){return"M"+(.5-mn)+",0 L"+(.5-mn)+",1 M"+(.5+mn)+",0 L"+(.5+mn)+",1"},yt),"\u2552":(Bt={},Bt[1]=function(mn,_n){return"M.5,1 L.5,"+(.5-_n)+" L1,"+(.5-_n)+" M.5,"+(.5+_n)+" L1,"+(.5+_n)},Bt),"\u2553":(Se={},Se[1]=function(mn,_n){return"M"+(.5-mn)+",1 L"+(.5-mn)+",.5 L1,.5 M"+(.5+mn)+",.5 L"+(.5+mn)+",1"},Se),"\u2554":(De={},De[1]=function(mn,_n){return"M1,"+(.5-_n)+" L"+(.5-mn)+","+(.5-_n)+" L"+(.5-mn)+",1 M1,"+(.5+_n)+" L"+(.5+mn)+","+(.5+_n)+" L"+(.5+mn)+",1"},De),"\u2555":(Ve={},Ve[1]=function(mn,_n){return"M0,"+(.5-_n)+" L.5,"+(.5-_n)+" L.5,1 M0,"+(.5+_n)+" L.5,"+(.5+_n)},Ve),"\u2556":(ct={},ct[1]=function(mn,_n){return"M"+(.5+mn)+",1 L"+(.5+mn)+",.5 L0,.5 M"+(.5-mn)+",.5 L"+(.5-mn)+",1"},ct),"\u2557":(Je={},Je[1]=function(mn,_n){return"M0,"+(.5+_n)+" L"+(.5-mn)+","+(.5+_n)+" L"+(.5-mn)+",1 M0,"+(.5-_n)+" L"+(.5+mn)+","+(.5-_n)+" L"+(.5+mn)+",1"},Je),"\u2558":(Ut={},Ut[1]=function(mn,_n){return"M.5,0 L.5,"+(.5+_n)+" L1,"+(.5+_n)+" M.5,"+(.5-_n)+" L1,"+(.5-_n)},Ut),"\u2559":(Et={},Et[1]=function(mn,_n){return"M1,.5 L"+(.5-mn)+",.5 L"+(.5-mn)+",0 M"+(.5+mn)+",.5 L"+(.5+mn)+",0"},Et),"\u255a":(vt={},vt[1]=function(mn,_n){return"M1,"+(.5-_n)+" L"+(.5+mn)+","+(.5-_n)+" L"+(.5+mn)+",0 M1,"+(.5+_n)+" L"+(.5-mn)+","+(.5+_n)+" L"+(.5-mn)+",0"},vt),"\u255b":(Kt={},Kt[1]=function(mn,_n){return"M0,"+(.5+_n)+" L.5,"+(.5+_n)+" L.5,0 M0,"+(.5-_n)+" L.5,"+(.5-_n)},Kt),"\u255c":(Vt={},Vt[1]=function(mn,_n){return"M0,.5 L"+(.5+mn)+",.5 L"+(.5+mn)+",0 M"+(.5-mn)+",.5 L"+(.5-mn)+",0"},Vt),"\u255d":(St={},St[1]=function(mn,_n){return"M0,"+(.5-_n)+" L"+(.5-mn)+","+(.5-_n)+" L"+(.5-mn)+",0 M0,"+(.5+_n)+" L"+(.5+mn)+","+(.5+_n)+" L"+(.5+mn)+",0"},St),"\u255e":(qt={},qt[1]=function(mn,_n){return"M.5,0 L.5,1 M.5,"+(.5-_n)+" L1,"+(.5-_n)+" M.5,"+(.5+_n)+" L1,"+(.5+_n)},qt),"\u255f":(Ct={},Ct[1]=function(mn,_n){return"M"+(.5-mn)+",0 L"+(.5-mn)+",1 M"+(.5+mn)+",0 L"+(.5+mn)+",1 M"+(.5+mn)+",.5 L1,.5"},Ct),"\u2560":(en={},en[1]=function(mn,_n){return"M"+(.5-mn)+",0 L"+(.5-mn)+",1 M1,"+(.5+_n)+" L"+(.5+mn)+","+(.5+_n)+" L"+(.5+mn)+",1 M1,"+(.5-_n)+" L"+(.5+mn)+","+(.5-_n)+" L"+(.5+mn)+",0"},en),"\u2561":(Ft={},Ft[1]=function(mn,_n){return"M.5,0 L.5,1 M0,"+(.5-_n)+" L.5,"+(.5-_n)+" M0,"+(.5+_n)+" L.5,"+(.5+_n)},Ft),"\u2562":(on={},on[1]=function(mn,_n){return"M0,.5 L"+(.5-mn)+",.5 M"+(.5-mn)+",0 L"+(.5-mn)+",1 M"+(.5+mn)+",0 L"+(.5+mn)+",1"},on),"\u2563":(En={},En[1]=function(mn,_n){return"M"+(.5+mn)+",0 L"+(.5+mn)+",1 M0,"+(.5+_n)+" L"+(.5-mn)+","+(.5+_n)+" L"+(.5-mn)+",1 M0,"+(.5-_n)+" L"+(.5-mn)+","+(.5-_n)+" L"+(.5-mn)+",0"},En),"\u2564":(Zn={},Zn[1]=function(mn,_n){return"M0,"+(.5-_n)+" L1,"+(.5-_n)+" M0,"+(.5+_n)+" L1,"+(.5+_n)+" M.5,"+(.5+_n)+" L.5,1"},Zn),"\u2565":(Rn={},Rn[1]=function(mn,_n){return"M0,.5 L1,.5 M"+(.5-mn)+",.5 L"+(.5-mn)+",1 M"+(.5+mn)+",.5 L"+(.5+mn)+",1"},Rn),"\u2566":(tr={},tr[1]=function(mn,_n){return"M0,"+(.5-_n)+" L1,"+(.5-_n)+" M0,"+(.5+_n)+" L"+(.5-mn)+","+(.5+_n)+" L"+(.5-mn)+",1 M1,"+(.5+_n)+" L"+(.5+mn)+","+(.5+_n)+" L"+(.5+mn)+",1"},tr),"\u2567":(Nn={},Nn[1]=function(mn,_n){return"M.5,0 L.5,"+(.5-_n)+" M0,"+(.5-_n)+" L1,"+(.5-_n)+" M0,"+(.5+_n)+" L1,"+(.5+_n)},Nn),"\u2568":(wn={},wn[1]=function(mn,_n){return"M0,.5 L1,.5 M"+(.5-mn)+",.5 L"+(.5-mn)+",0 M"+(.5+mn)+",.5 L"+(.5+mn)+",0"},wn),"\u2569":(yr={},yr[1]=function(mn,_n){return"M0,"+(.5+_n)+" L1,"+(.5+_n)+" M0,"+(.5-_n)+" L"+(.5-mn)+","+(.5-_n)+" L"+(.5-mn)+",0 M1,"+(.5-_n)+" L"+(.5+mn)+","+(.5-_n)+" L"+(.5+mn)+",0"},yr),"\u256a":(Wt={},Wt[1]=function(mn,_n){return"M.5,0 L.5,1 M0,"+(.5-_n)+" L1,"+(.5-_n)+" M0,"+(.5+_n)+" L1,"+(.5+_n)},Wt),"\u256b":(Mt={},Mt[1]=function(mn,_n){return"M0,.5 L1,.5 M"+(.5-mn)+",0 L"+(.5-mn)+",1 M"+(.5+mn)+",0 L"+(.5+mn)+",1"},Mt),"\u256c":(rt={},rt[1]=function(mn,_n){return"M0,"+(.5+_n)+" L"+(.5-mn)+","+(.5+_n)+" L"+(.5-mn)+",1 M1,"+(.5+_n)+" L"+(.5+mn)+","+(.5+_n)+" L"+(.5+mn)+",1 M0,"+(.5-_n)+" L"+(.5-mn)+","+(.5-_n)+" L"+(.5-mn)+",0 M1,"+(.5-_n)+" L"+(.5+mn)+","+(.5-_n)+" L"+(.5+mn)+",0"},rt),"\u2571":(Te={},Te[1]="M1,0 L0,1",Te),"\u2572":(re={},re[1]="M0,0 L1,1",re),"\u2573":(ve={},ve[1]="M1,0 L0,1 M0,0 L1,1",ve),"\u257c":(Ge={},Ge[1]="M.5,.5 L0,.5",Ge[3]="M.5,.5 L1,.5",Ge),"\u257d":(Ye={},Ye[1]="M.5,.5 L.5,0",Ye[3]="M.5,.5 L.5,1",Ye),"\u257e":(bt={},bt[1]="M.5,.5 L1,.5",bt[3]="M.5,.5 L0,.5",bt),"\u257f":(Lt={},Lt[1]="M.5,.5 L.5,1",Lt[3]="M.5,.5 L.5,0",Lt),"\u250d":(zt={},zt[1]="M.5,.5 L.5,1",zt[3]="M.5,.5 L1,.5",zt),"\u250e":(tn={},tn[1]="M.5,.5 L1,.5",tn[3]="M.5,.5 L.5,1",tn),"\u2511":(sn={},sn[1]="M.5,.5 L.5,1",sn[3]="M.5,.5 L0,.5",sn),"\u2512":(hn={},hn[1]="M.5,.5 L0,.5",hn[3]="M.5,.5 L.5,1",hn),"\u2515":(Cn={},Cn[1]="M.5,.5 L.5,0",Cn[3]="M.5,.5 L1,.5",Cn),"\u2516":(In={},In[1]="M.5,.5 L1,.5",In[3]="M.5,.5 L.5,0",In),"\u2519":(Yn={},Yn[1]="M.5,.5 L.5,0",Yn[3]="M.5,.5 L0,.5",Yn),"\u251a":(xn={},xn[1]="M.5,.5 L0,.5",xn[3]="M.5,.5 L.5,0",xn),"\u251d":(Sn={},Sn[1]="M.5,0 L.5,1",Sn[3]="M.5,.5 L1,.5",Sn),"\u251e":($n={},$n[1]="M0.5,1 L.5,.5 L1,.5",$n[3]="M.5,.5 L.5,0",$n),"\u251f":(Ht={},Ht[1]="M.5,0 L.5,.5 L1,.5",Ht[3]="M.5,.5 L.5,1",Ht),"\u2520":(rn={},rn[1]="M.5,.5 L1,.5",rn[3]="M.5,0 L.5,1",rn),"\u2521":(ft={},ft[1]="M.5,.5 L.5,1",ft[3]="M.5,0 L.5,.5 L1,.5",ft),"\u2522":(dt={},dt[1]="M.5,.5 L.5,0",dt[3]="M0.5,1 L.5,.5 L1,.5",dt),"\u2525":(Ue={},Ue[1]="M.5,0 L.5,1",Ue[3]="M.5,.5 L0,.5",Ue),"\u2526":(at={},at[1]="M0,.5 L.5,.5 L.5,1",at[3]="M.5,.5 L.5,0",at),"\u2527":(xe={},xe[1]="M.5,0 L.5,.5 L0,.5",xe[3]="M.5,.5 L.5,1",xe),"\u2528":(Fe={},Fe[1]="M.5,.5 L0,.5",Fe[3]="M.5,0 L.5,1",Fe),"\u2529":(Oe={},Oe[1]="M.5,.5 L.5,1",Oe[3]="M.5,0 L.5,.5 L0,.5",Oe),"\u252a":(Le={},Le[1]="M.5,.5 L.5,0",Le[3]="M0,.5 L.5,.5 L.5,1",Le),"\u252d":(qe={},qe[1]="M0.5,1 L.5,.5 L1,.5",qe[3]="M.5,.5 L0,.5",qe),"\u252e":(Nt={},Nt[1]="M0,.5 L.5,.5 L.5,1",Nt[3]="M.5,.5 L1,.5",Nt),"\u252f":(cn={},cn[1]="M.5,.5 L.5,1",cn[3]="M0,.5 L1,.5",cn),"\u2530":(Jn={},Jn[1]="M0,.5 L1,.5",Jn[3]="M.5,.5 L.5,1",Jn),"\u2531":(Zr={},Zr[1]="M.5,.5 L1,.5",Zr[3]="M0,.5 L.5,.5 L.5,1",Zr),"\u2532":(jr={},jr[1]="M.5,.5 L0,.5",jr[3]="M0.5,1 L.5,.5 L1,.5",jr),"\u2535":(Cr={},Cr[1]="M.5,0 L.5,.5 L1,.5",Cr[3]="M.5,.5 L0,.5",Cr),"\u2536":(Kr={},Kr[1]="M.5,0 L.5,.5 L0,.5",Kr[3]="M.5,.5 L1,.5",Kr),"\u2537":(co={},co[1]="M.5,.5 L.5,0",co[3]="M0,.5 L1,.5",co),"\u2538":(Ni={},Ni[1]="M0,.5 L1,.5",Ni[3]="M.5,.5 L.5,0",Ni),"\u2539":(bo={},bo[1]="M.5,.5 L1,.5",bo[3]="M.5,0 L.5,.5 L0,.5",bo),"\u253a":(po={},po[1]="M.5,.5 L0,.5",po[3]="M.5,0 L.5,.5 L1,.5",po),"\u253d":(Xo={},Xo[1]="M.5,0 L.5,1 M.5,.5 L1,.5",Xo[3]="M.5,.5 L0,.5",Xo),"\u253e":(ki={},ki[1]="M.5,0 L.5,1 M.5,.5 L0,.5",ki[3]="M.5,.5 L1,.5",ki),"\u253f":(ro={},ro[1]="M.5,0 L.5,1",ro[3]="M0,.5 L1,.5",ro),"\u2540":(yi={},yi[1]="M0,.5 L1,.5 M.5,.5 L.5,1",yi[3]="M.5,.5 L.5,0",yi),"\u2541":(Yi={},Yi[1]="M.5,.5 L.5,0 M0,.5 L1,.5",Yi[3]="M.5,.5 L.5,1",Yi),"\u2542":(fo={},fo[1]="M0,.5 L1,.5",fo[3]="M.5,0 L.5,1",fo),"\u2543":(hi={},hi[1]="M0.5,1 L.5,.5 L1,.5",hi[3]="M.5,0 L.5,.5 L0,.5",hi),"\u2544":(Ho={},Ho[1]="M0,.5 L.5,.5 L.5,1",Ho[3]="M.5,0 L.5,.5 L1,.5",Ho),"\u2545":(Ei={},Ei[1]="M.5,0 L.5,.5 L1,.5",Ei[3]="M0,.5 L.5,.5 L.5,1",Ei),"\u2546":(Wn={},Wn[1]="M.5,0 L.5,.5 L0,.5",Wn[3]="M0.5,1 L.5,.5 L1,.5",Wn),"\u2547":(Pt={},Pt[1]="M.5,.5 L.5,1",Pt[3]="M.5,.5 L.5,0 M0,.5 L1,.5",Pt),"\u2548":(Gt={},Gt[1]="M.5,.5 L.5,0",Gt[3]="M0,.5 L1,.5 M.5,.5 L.5,1",Gt),"\u2549":(It={},It[1]="M.5,.5 L1,.5",It[3]="M.5,0 L.5,1 M.5,.5 L0,.5",It),"\u254a":(jt={},jt[1]="M.5,.5 L0,.5",jt[3]="M.5,0 L.5,1 M.5,.5 L1,.5",jt),"\u254c":(Qt={},Qt[1]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",Qt),"\u254d":(Xt={},Xt[3]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",Xt),"\u2504":(yn={},yn[1]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",yn),"\u2505":(Gn={},Gn[3]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",Gn),"\u2508":(jn={},jn[1]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",jn),"\u2509":(zn={},zn[3]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",zn),"\u254e":(li={},li[1]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",li),"\u254f":(bi={},bi[3]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",bi),"\u2506":(io={},io[1]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",io),"\u2507":(Co={},Co[3]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",Co),"\u250a":(Fi={},Fi[1]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",Fi),"\u250b":(Io={},Io[3]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",Io),"\u256d":($o={},$o[1]="C.5,1,.5,.5,1,.5",$o),"\u256e":(Eo={},Eo[1]="C.5,1,.5,.5,0,.5",Eo),"\u256f":(oi={},oi[1]="C.5,0,.5,.5,0,.5",oi),"\u2570":(Vo={},Vo[1]="C.5,0,.5,.5,1,.5",Vo)},T.tryDrawCustomChar=function(mn,_n,hr,ho,ha,Si){var So=T.blockElementDefinitions[_n];if(So)return function(Mo,Ro,gs,To,va,Ma){for(var jo=0;jo<Ro.length;jo++){var xo=Ro[jo],Bi=va/8,ga=Ma/8;Mo.fillRect(gs+xo.x*Bi,To+xo.y*ga,xo.w*Bi,xo.h*ga)}}(mn,So,hr,ho,ha,Si),!0;var Zi=ji[_n];if(Zi)return function(Mo,Ro,gs,To,va,Ma){var jo,xo=Ji.get(Ro);xo||(xo=new Map,Ji.set(Ro,xo));var Bi=Mo.fillStyle;if("string"!=typeof Bi)throw new Error('Unexpected fillStyle type "'+Bi+'"');var ga=xo.get(Bi);if(!ga){var Ki=Ro[0].length,_a=Ro.length,Aa=document.createElement("canvas");Aa.width=Ki,Aa.height=_a;var br=oo.throwIfFalsy(Aa.getContext("2d")),Fn=new ImageData(Ki,_a),Da=void 0,Ui=void 0,qa=void 0,lr=void 0;if(Bi.startsWith("#"))Da=parseInt(Bi.substr(1,2),16),Ui=parseInt(Bi.substr(3,2),16),qa=parseInt(Bi.substr(5,2),16),lr=Bi.length>7&&parseInt(Bi.substr(7,2),16)||1;else{if(!Bi.startsWith("rgba"))throw new Error('Unexpected fillStyle color format "'+Bi+'" when drawing pattern glyph');Da=(jo=Bi.substring(5,Bi.length-1).split(",").map(function(Pu){return parseFloat(Pu)}))[0],Ui=jo[1],qa=jo[2],lr=jo[3]}for(var zi=0;zi<_a;zi++)for(var ja=0;ja<Ki;ja++)Fn.data[4*(zi*Ki+ja)]=Da,Fn.data[4*(zi*Ki+ja)+1]=Ui,Fn.data[4*(zi*Ki+ja)+2]=qa,Fn.data[4*(zi*Ki+ja)+3]=Ro[zi][ja]*(255*lr);br.putImageData(Fn,0,0),ga=oo.throwIfFalsy(Mo.createPattern(Aa,null)),xo.set(Bi,ga)}Mo.fillStyle=ga,Mo.fillRect(gs,To,va,Ma)}(mn,Zi,hr,ho,ha,Si),!0;var ma=T.boxDrawingDefinitions[_n];return!!ma&&(function(Mo,Ro,gs,To,va,Ma){Mo.strokeStyle=Mo.fillStyle;for(var jo=0,xo=Object.entries(Ro);jo<xo.length;jo++){var Bi=xo[jo],ga=Bi[0],Ki=Bi[1];Mo.beginPath(),Mo.lineWidth=window.devicePixelRatio*Number.parseInt(ga);for(var _a=0,Aa=("function"==typeof Ki?Ki(.15,.15/Ma*va):Ki).split(" ");_a<Aa.length;_a++){var br=Aa[_a],Fn=br[0],Da=Ci[Fn];if(Da){var Ui=br.substring(1).split(",");Ui[0]&&Ui[1]&&Da(Mo,Qi(Ui,va,Ma,gs,To))}else console.error('Could not find drawing instructions for "'+Fn+'"')}Mo.stroke(),Mo.closePath()}}(mn,ma,hr,ho,ha,Si),!0)};var Ji=new Map;function qo(mn,_n,hr){return void 0===hr&&(hr=0),Math.max(Math.min(mn,_n),hr)}var Ci={C:function(_n,hr){return _n.bezierCurveTo(hr[0],hr[1],hr[2],hr[3],hr[4],hr[5])},L:function(_n,hr){return _n.lineTo(hr[0],hr[1])},M:function(_n,hr){return _n.moveTo(hr[0],hr[1])}};function Qi(mn,_n,hr,ho,ha){var Si=mn.map(function(ma){return parseFloat(ma)||parseInt(ma)});if(Si.length<2)throw new Error("Too few arguments for instruction");for(var So=0;So<Si.length;So+=2)Si[So]*=_n,0!==Si[So]&&(Si[So]=qo(Math.round(Si[So]+.5)-.5,_n,0)),Si[So]+=ho;for(var Zi=1;Zi<Si.length;Zi+=2)Si[Zi]*=hr,0!==Si[Zi]&&(Si[Zi]=qo(Math.round(Si[Zi]+.5)-.5,hr,0)),Si[Zi]+=ha;return Si}},3700:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.GridCache=void 0;var I=function(){function C(){this.cache=[]}return C.prototype.resize=function(v,P){for(var D=0;D<v;D++){this.cache.length<=D&&this.cache.push([]);for(var M=this.cache[D].length;M<P;M++)this.cache[D].push(void 0);this.cache[D].length=P}this.cache.length=v},C.prototype.clear=function(){for(var v=0;v<this.cache.length;v++)for(var P=0;P<this.cache[v].length;P++)this.cache[v][P]=void 0},C}();T.GridCache=I},5098:function(Z,T,I){var C,v=this&&this.__extends||(C=function(E,x){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var L in O)Object.prototype.hasOwnProperty.call(O,L)&&(S[L]=O[L])})(E,x)},function(N,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function x(){this.constructor=N}C(N,E),N.prototype=null===E?Object.create(E):(x.prototype=E.prototype,new x)}),P=this&&this.__decorate||function(N,E,x,S){var O,L=arguments.length,j=L<3?E:null===S?S=Object.getOwnPropertyDescriptor(E,x):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)j=Reflect.decorate(N,E,x,S);else for(var K=N.length-1;K>=0;K--)(O=N[K])&&(j=(L<3?O(j):L>3?O(E,x,j):O(E,x))||j);return L>3&&j&&Object.defineProperty(E,x,j),j},D=this&&this.__param||function(N,E){return function(x,S){E(x,S,N)}};Object.defineProperty(T,"__esModule",{value:!0}),T.LinkRenderLayer=void 0;var M=I(1546),A=I(8803),y=I(2040),g=I(2585),k=function(N){function E(x,S,O,L,j,K,W,J){var oe=N.call(this,x,"link",S,!0,O,L,W,J)||this;return j.onShowLinkUnderline(function(te){return oe._onShowLinkUnderline(te)}),j.onHideLinkUnderline(function(te){return oe._onHideLinkUnderline(te)}),K.onShowLinkUnderline(function(te){return oe._onShowLinkUnderline(te)}),K.onHideLinkUnderline(function(te){return oe._onHideLinkUnderline(te)}),oe}return v(E,N),E.prototype.resize=function(x){N.prototype.resize.call(this,x),this._state=void 0},E.prototype.reset=function(){this._clearCurrentLink()},E.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var x=this._state.y2-this._state.y1-1;x>0&&this._clearCells(0,this._state.y1+1,this._state.cols,x),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},E.prototype._onShowLinkUnderline=function(x){if(this._ctx.fillStyle=x.fg===A.INVERTED_DEFAULT_COLOR?this._colors.background.css:x.fg&&y.is256Color(x.fg)?this._colors.ansi[x.fg].css:this._colors.foreground.css,x.y1===x.y2)this._fillBottomLineAtCells(x.x1,x.y1,x.x2-x.x1);else{this._fillBottomLineAtCells(x.x1,x.y1,x.cols-x.x1);for(var S=x.y1+1;S<x.y2;S++)this._fillBottomLineAtCells(0,S,x.cols);this._fillBottomLineAtCells(0,x.y2,x.x2)}this._state=x},E.prototype._onHideLinkUnderline=function(x){this._clearCurrentLink()},P([D(6,g.IBufferService),D(7,g.IOptionsService)],E)}(M.BaseRenderLayer);T.LinkRenderLayer=k},3525:function(Z,T,I){var C,v=this&&this.__extends||(C=function(K,W){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,oe){J.__proto__=oe}||function(J,oe){for(var te in oe)Object.prototype.hasOwnProperty.call(oe,te)&&(J[te]=oe[te])})(K,W)},function(j,K){if("function"!=typeof K&&null!==K)throw new TypeError("Class extends value "+String(K)+" is not a constructor or null");function W(){this.constructor=j}C(j,K),j.prototype=null===K?Object.create(K):(W.prototype=K.prototype,new W)}),P=this&&this.__decorate||function(j,K,W,J){var oe,te=arguments.length,se=te<3?K:null===J?J=Object.getOwnPropertyDescriptor(K,W):J;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)se=Reflect.decorate(j,K,W,J);else for(var le=j.length-1;le>=0;le--)(oe=j[le])&&(se=(te<3?oe(se):te>3?oe(K,W,se):oe(K,W))||se);return te>3&&se&&Object.defineProperty(K,W,se),se},D=this&&this.__param||function(j,K){return function(W,J){K(W,J,j)}};Object.defineProperty(T,"__esModule",{value:!0}),T.Renderer=void 0;var M=I(9596),A=I(4149),y=I(2512),g=I(5098),k=I(844),N=I(4725),E=I(2585),x=I(1420),S=I(8460),O=1,L=function(j){function K(W,J,oe,te,se,le,de,ue){var ae=j.call(this)||this;return ae._colors=W,ae._screenElement=J,ae._bufferService=le,ae._charSizeService=de,ae._optionsService=ue,ae._id=O++,ae._onRequestRedraw=new S.EventEmitter,ae._renderLayers=[se.createInstance(M.TextRenderLayer,ae._screenElement,0,ae._colors,ae._optionsService.options.allowTransparency,ae._id),se.createInstance(A.SelectionRenderLayer,ae._screenElement,1,ae._colors,ae._id),se.createInstance(g.LinkRenderLayer,ae._screenElement,2,ae._colors,ae._id,oe,te),se.createInstance(y.CursorRenderLayer,ae._screenElement,3,ae._colors,ae._id,ae._onRequestRedraw)],ae.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},ae._devicePixelRatio=window.devicePixelRatio,ae._updateDimensions(),ae.onOptionsChanged(),ae}return v(K,j),Object.defineProperty(K.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),K.prototype.dispose=function(){for(var W=0,J=this._renderLayers;W<J.length;W++)J[W].dispose();j.prototype.dispose.call(this),x.removeTerminalFromCache(this._id)},K.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},K.prototype.setColors=function(W){this._colors=W;for(var J=0,oe=this._renderLayers;J<oe.length;J++){var te=oe[J];te.setColors(this._colors),te.reset()}},K.prototype.onResize=function(W,J){this._updateDimensions();for(var oe=0,te=this._renderLayers;oe<te.length;oe++)te[oe].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},K.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},K.prototype.onBlur=function(){this._runOperation(function(W){return W.onBlur()})},K.prototype.onFocus=function(){this._runOperation(function(W){return W.onFocus()})},K.prototype.onSelectionChanged=function(W,J,oe){void 0===oe&&(oe=!1),this._runOperation(function(te){return te.onSelectionChanged(W,J,oe)})},K.prototype.onCursorMove=function(){this._runOperation(function(W){return W.onCursorMove()})},K.prototype.onOptionsChanged=function(){this._runOperation(function(W){return W.onOptionsChanged()})},K.prototype.clear=function(){this._runOperation(function(W){return W.reset()})},K.prototype._runOperation=function(W){for(var J=0,oe=this._renderLayers;J<oe.length;J++)W(oe[J])},K.prototype.renderRows=function(W,J){for(var oe=0,te=this._renderLayers;oe<te.length;oe++)te[oe].onGridChanged(W,J)},K.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharTop=1===this._optionsService.options.lineHeight?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},P([D(4,E.IInstantiationService),D(5,E.IBufferService),D(6,N.ICharSizeService),D(7,E.IOptionsService)],K)}(k.Disposable);T.Renderer=L},1752:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.throwIfFalsy=void 0,T.throwIfFalsy=function(I){if(!I)throw new Error("value must not be falsy");return I}},4149:function(Z,T,I){var C,v=this&&this.__extends||(C=function(k,N){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,x){E.__proto__=x}||function(E,x){for(var S in x)Object.prototype.hasOwnProperty.call(x,S)&&(E[S]=x[S])})(k,N)},function(g,k){if("function"!=typeof k&&null!==k)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");function N(){this.constructor=g}C(g,k),g.prototype=null===k?Object.create(k):(N.prototype=k.prototype,new N)}),P=this&&this.__decorate||function(g,k,N,E){var x,S=arguments.length,O=S<3?k:null===E?E=Object.getOwnPropertyDescriptor(k,N):E;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)O=Reflect.decorate(g,k,N,E);else for(var L=g.length-1;L>=0;L--)(x=g[L])&&(O=(S<3?x(O):S>3?x(k,N,O):x(k,N))||O);return S>3&&O&&Object.defineProperty(k,N,O),O},D=this&&this.__param||function(g,k){return function(N,E){k(N,E,g)}};Object.defineProperty(T,"__esModule",{value:!0}),T.SelectionRenderLayer=void 0;var M=I(1546),A=I(2585),y=function(g){function k(N,E,x,S,O,L){var j=g.call(this,N,"selection",E,!0,x,S,O,L)||this;return j._clearState(),j}return v(k,g),k.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},k.prototype.resize=function(N){g.prototype.resize.call(this,N),this._clearState()},k.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},k.prototype.onSelectionChanged=function(N,E,x){if(this._didStateChange(N,E,x,this._bufferService.buffer.ydisp))if(this._clearAll(),N&&E){var S=N[1]-this._bufferService.buffer.ydisp,O=E[1]-this._bufferService.buffer.ydisp,L=Math.max(S,0),j=Math.min(O,this._bufferService.rows-1);if(L>=this._bufferService.rows||j<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,x){var K=N[0];this._fillCells(K,L,E[0]-K,j-L+1)}else{this._fillCells(K=S===L?N[0]:0,L,(L===O?E[0]:this._bufferService.cols)-K,1);var te=Math.max(j-L-1,0);this._fillCells(0,L+1,this._bufferService.cols,te),L!==j&&this._fillCells(0,j,O===j?E[0]:this._bufferService.cols,1)}this._state.start=[N[0],N[1]],this._state.end=[E[0],E[1]],this._state.columnSelectMode=x,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},k.prototype._didStateChange=function(N,E,x,S){return!this._areCoordinatesEqual(N,this._state.start)||!this._areCoordinatesEqual(E,this._state.end)||x!==this._state.columnSelectMode||S!==this._state.ydisp},k.prototype._areCoordinatesEqual=function(N,E){return!(!N||!E)&&N[0]===E[0]&&N[1]===E[1]},P([D(4,A.IBufferService),D(5,A.IOptionsService)],k)}(M.BaseRenderLayer);T.SelectionRenderLayer=y},9596:function(Z,T,I){var C,v=this&&this.__extends||(C=function(L,j){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,W){K.__proto__=W}||function(K,W){for(var J in W)Object.prototype.hasOwnProperty.call(W,J)&&(K[J]=W[J])})(L,j)},function(O,L){if("function"!=typeof L&&null!==L)throw new TypeError("Class extends value "+String(L)+" is not a constructor or null");function j(){this.constructor=O}C(O,L),O.prototype=null===L?Object.create(L):(j.prototype=L.prototype,new j)}),P=this&&this.__decorate||function(O,L,j,K){var W,J=arguments.length,oe=J<3?L:null===K?K=Object.getOwnPropertyDescriptor(L,j):K;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)oe=Reflect.decorate(O,L,j,K);else for(var te=O.length-1;te>=0;te--)(W=O[te])&&(oe=(J<3?W(oe):J>3?W(L,j,oe):W(L,j))||oe);return J>3&&oe&&Object.defineProperty(L,j,oe),oe},D=this&&this.__param||function(O,L){return function(j,K){L(j,K,O)}};Object.defineProperty(T,"__esModule",{value:!0}),T.TextRenderLayer=void 0;var M=I(3700),A=I(1546),y=I(3734),g=I(643),k=I(511),N=I(2585),E=I(4725),x=I(4269),S=function(O){function L(j,K,W,J,oe,te,se,le){var de=O.call(this,j,"text",K,J,W,oe,te,se)||this;return de._characterJoinerService=le,de._characterWidth=0,de._characterFont="",de._characterOverlapCache={},de._workCell=new k.CellData,de._state=new M.GridCache,de}return v(L,O),L.prototype.resize=function(j){O.prototype.resize.call(this,j);var K=this._getFont(!1,!1);this._characterWidth===j.scaledCharWidth&&this._characterFont===K||(this._characterWidth=j.scaledCharWidth,this._characterFont=K,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},L.prototype.reset=function(){this._state.clear(),this._clearAll()},L.prototype._forEachCell=function(j,K,W){for(var J=j;J<=K;J++)for(var oe=J+this._bufferService.buffer.ydisp,te=this._bufferService.buffer.lines.get(oe),se=this._characterJoinerService.getJoinedCharacters(oe),le=0;le<this._bufferService.cols;le++){te.loadCell(le,this._workCell);var de=this._workCell,ue=!1,ae=le;if(0!==de.getWidth()){if(se.length>0&&le===se[0][0]){ue=!0;var Me=se.shift();de=new x.JoinedCellData(this._workCell,te.translateToString(!0,Me[0],Me[1]),Me[1]-Me[0]),ae=Me[1]-1}!ue&&this._isOverlapping(de)&&ae<te.length-1&&te.getCodePoint(ae+1)===g.NULL_CELL_CODE&&(de.content&=-12582913,de.content|=2<<22),W(de,le,J),le=ae}}},L.prototype._drawBackground=function(j,K){var W=this,J=this._ctx,oe=this._bufferService.cols,te=0,se=0,le=null;J.save(),this._forEachCell(j,K,function(de,ue,ae){var Me=null;de.isInverse()?Me=de.isFgDefault()?W._colors.foreground.css:de.isFgRGB()?"rgb("+y.AttributeData.toColorRGB(de.getFgColor()).join(",")+")":W._colors.ansi[de.getFgColor()].css:de.isBgRGB()?Me="rgb("+y.AttributeData.toColorRGB(de.getBgColor()).join(",")+")":de.isBgPalette()&&(Me=W._colors.ansi[de.getBgColor()].css),null===le&&(te=ue,se=ae),ae!==se?(J.fillStyle=le||"",W._fillCells(te,se,oe-te,1),te=ue,se=ae):le!==Me&&(J.fillStyle=le||"",W._fillCells(te,se,ue-te,1),te=ue,se=ae),le=Me}),null!==le&&(J.fillStyle=le,this._fillCells(te,se,oe-te,1)),J.restore()},L.prototype._drawForeground=function(j,K){var W=this;this._forEachCell(j,K,function(J,oe,te){if(!J.isInvisible()&&(W._drawChars(J,oe,te),J.isUnderline()||J.isStrikethrough())){if(W._ctx.save(),J.isInverse())if(J.isBgDefault())W._ctx.fillStyle=W._colors.background.css;else if(J.isBgRGB())W._ctx.fillStyle="rgb("+y.AttributeData.toColorRGB(J.getBgColor()).join(",")+")";else{var se=J.getBgColor();W._optionsService.options.drawBoldTextInBrightColors&&J.isBold()&&se<8&&(se+=8),W._ctx.fillStyle=W._colors.ansi[se].css}else if(J.isFgDefault())W._ctx.fillStyle=W._colors.foreground.css;else if(J.isFgRGB())W._ctx.fillStyle="rgb("+y.AttributeData.toColorRGB(J.getFgColor()).join(",")+")";else{var le=J.getFgColor();W._optionsService.options.drawBoldTextInBrightColors&&J.isBold()&&le<8&&(le+=8),W._ctx.fillStyle=W._colors.ansi[le].css}J.isStrikethrough()&&W._fillMiddleLineAtCells(oe,te,J.getWidth()),J.isUnderline()&&W._fillBottomLineAtCells(oe,te,J.getWidth()),W._ctx.restore()}})},L.prototype.onGridChanged=function(j,K){0!==this._state.cache.length&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,j,this._bufferService.cols,K-j+1),this._drawBackground(j,K),this._drawForeground(j,K))},L.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},L.prototype._isOverlapping=function(j){if(1!==j.getWidth()||j.getCode()<256)return!1;var K=j.getChars();if(this._characterOverlapCache.hasOwnProperty(K))return this._characterOverlapCache[K];this._ctx.save(),this._ctx.font=this._characterFont;var W=Math.floor(this._ctx.measureText(K).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[K]=W,W},P([D(5,N.IBufferService),D(6,N.IOptionsService),D(7,E.ICharacterJoinerService)],L)}(A.BaseRenderLayer);T.TextRenderLayer=S},9616:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.BaseCharAtlas=void 0;var I=function(){function C(){this._didWarmUp=!1}return C.prototype.dispose=function(){},C.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},C.prototype._doWarmUp=function(){},C.prototype.beginFrame=function(){},C}();T.BaseCharAtlas=I},1420:function(Z,T,I){Object.defineProperty(T,"__esModule",{value:!0}),T.removeTerminalFromCache=T.acquireCharAtlas=void 0;var C=I(2040),v=I(1906),P=[];T.acquireCharAtlas=function(D,M,A,y,g){for(var k=C.generateConfig(y,g,D,A),N=0;N<P.length;N++){var E=(x=P[N]).ownedBy.indexOf(M);if(E>=0){if(C.configEquals(x.config,k))return x.atlas;1===x.ownedBy.length?(x.atlas.dispose(),P.splice(N,1)):x.ownedBy.splice(E,1);break}}for(N=0;N<P.length;N++){var x=P[N];if(C.configEquals(x.config,k))return x.ownedBy.push(M),x.atlas}var S={atlas:new v.DynamicCharAtlas(document,k),config:k,ownedBy:[M]};return P.push(S),S.atlas},T.removeTerminalFromCache=function(D){for(var M=0;M<P.length;M++){var A=P[M].ownedBy.indexOf(D);if(-1!==A){1===P[M].ownedBy.length?(P[M].atlas.dispose(),P.splice(M,1)):P[M].ownedBy.splice(A,1);break}}}},2040:function(Z,T,I){Object.defineProperty(T,"__esModule",{value:!0}),T.is256Color=T.configEquals=T.generateConfig=void 0;var C=I(643);T.generateConfig=function(v,P,D,M){return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:v,scaledCharHeight:P,fontFamily:D.fontFamily,fontSize:D.fontSize,fontWeight:D.fontWeight,fontWeightBold:D.fontWeightBold,allowTransparency:D.allowTransparency,colors:{foreground:M.foreground,background:M.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:M.ansi}}},T.configEquals=function(v,P){for(var D=0;D<v.colors.ansi.length;D++)if(v.colors.ansi[D].rgba!==P.colors.ansi[D].rgba)return!1;return v.devicePixelRatio===P.devicePixelRatio&&v.fontFamily===P.fontFamily&&v.fontSize===P.fontSize&&v.fontWeight===P.fontWeight&&v.fontWeightBold===P.fontWeightBold&&v.allowTransparency===P.allowTransparency&&v.scaledCharWidth===P.scaledCharWidth&&v.scaledCharHeight===P.scaledCharHeight&&v.colors.foreground===P.colors.foreground&&v.colors.background===P.colors.background},T.is256Color=function(v){return v<C.DEFAULT_COLOR}},8803:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.CHAR_ATLAS_CELL_SPACING=T.DIM_OPACITY=T.INVERTED_DEFAULT_COLOR=void 0,T.INVERTED_DEFAULT_COLOR=257,T.DIM_OPACITY=.5,T.CHAR_ATLAS_CELL_SPACING=1},1906:function(Z,T,I){var C,v=this&&this.__extends||(C=function(j,K){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,J){W.__proto__=J}||function(W,J){for(var oe in J)Object.prototype.hasOwnProperty.call(J,oe)&&(W[oe]=J[oe])})(j,K)},function(L,j){if("function"!=typeof j&&null!==j)throw new TypeError("Class extends value "+String(j)+" is not a constructor or null");function K(){this.constructor=L}C(L,j),L.prototype=null===j?Object.create(j):(K.prototype=j.prototype,new K)});Object.defineProperty(T,"__esModule",{value:!0}),T.NoneCharAtlas=T.DynamicCharAtlas=T.getGlyphCacheKey=void 0;var P=I(8803),D=I(9616),M=I(5680),A=I(7001),y=I(6114),g=I(1752),k=I(4774),N={css:"rgba(0, 0, 0, 0)",rgba:0};function E(L){return L.code<<21|L.bg<<12|L.fg<<3|(L.bold?0:4)+(L.dim?0:2)+(L.italic?0:1)}T.getGlyphCacheKey=E;var x=function(L){function j(K,W){var J=L.call(this)||this;J._config=W,J._drawToCacheCount=0,J._glyphsWaitingOnBitmap=[],J._bitmapCommitTimeout=null,J._bitmap=null,J._cacheCanvas=K.createElement("canvas"),J._cacheCanvas.width=1024,J._cacheCanvas.height=1024,J._cacheCtx=g.throwIfFalsy(J._cacheCanvas.getContext("2d",{alpha:!0}));var oe=K.createElement("canvas");oe.width=J._config.scaledCharWidth,oe.height=J._config.scaledCharHeight,J._tmpCtx=g.throwIfFalsy(oe.getContext("2d",{alpha:J._config.allowTransparency})),J._width=Math.floor(1024/J._config.scaledCharWidth),J._height=Math.floor(1024/J._config.scaledCharHeight);var te=J._width*J._height;return J._cacheMap=new A.LRUMap(te),J._cacheMap.prealloc(te),J}return v(j,L),j.prototype.dispose=function(){null!==this._bitmapCommitTimeout&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},j.prototype.beginFrame=function(){this._drawToCacheCount=0},j.prototype.draw=function(K,W,J,oe){if(32===W.code)return!0;if(!this._canCache(W))return!1;var te=E(W),se=this._cacheMap.get(te);if(null!=se)return this._drawFromCache(K,se,J,oe),!0;if(this._drawToCacheCount<100){var le;le=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var de=this._drawToCache(W,le);return this._cacheMap.set(te,de),this._drawFromCache(K,de,J,oe),!0}return!1},j.prototype._canCache=function(K){return K.code<256},j.prototype._toCoordinateX=function(K){return K%this._width*this._config.scaledCharWidth},j.prototype._toCoordinateY=function(K){return Math.floor(K/this._width)*this._config.scaledCharHeight},j.prototype._drawFromCache=function(K,W,J,oe){if(!W.isEmpty){var te=this._toCoordinateX(W.index),se=this._toCoordinateY(W.index);K.drawImage(W.inBitmap?this._bitmap:this._cacheCanvas,te,se,this._config.scaledCharWidth,this._config.scaledCharHeight,J,oe,this._config.scaledCharWidth,this._config.scaledCharHeight)}},j.prototype._getColorFromAnsiIndex=function(K){return K<this._config.colors.ansi.length?this._config.colors.ansi[K]:M.DEFAULT_ANSI_COLORS[K]},j.prototype._getBackgroundColor=function(K){return this._config.allowTransparency?N:K.bg===P.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:K.bg<256?this._getColorFromAnsiIndex(K.bg):this._config.colors.background},j.prototype._getForegroundColor=function(K){return K.fg===P.INVERTED_DEFAULT_COLOR?k.color.opaque(this._config.colors.background):K.fg<256?this._getColorFromAnsiIndex(K.fg):this._config.colors.foreground},j.prototype._drawToCache=function(K,W){this._drawToCacheCount++,this._tmpCtx.save();var J=this._getBackgroundColor(K);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=J.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over",this._tmpCtx.font=(K.italic?"italic":"")+" "+(K.bold?this._config.fontWeightBold:this._config.fontWeight)+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="ideographic",this._tmpCtx.fillStyle=this._getForegroundColor(K).css,K.dim&&(this._tmpCtx.globalAlpha=P.DIM_OPACITY),this._tmpCtx.fillText(K.chars,0,this._config.scaledCharHeight);var se=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),le=!1;if(this._config.allowTransparency||(le=O(se,J)),le&&"_"===K.chars&&!this._config.allowTransparency)for(var de=1;de<=5&&(this._tmpCtx.fillText(K.chars,0,this._config.scaledCharHeight-de),le=O(se=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),J));de++);this._tmpCtx.restore();var ue=this._toCoordinateX(W),ae=this._toCoordinateY(W);this._cacheCtx.putImageData(se,ue,ae);var Me={index:W,isEmpty:le,inBitmap:!1};return this._addGlyphToBitmap(Me),Me},j.prototype._addGlyphToBitmap=function(K){var W=this;!("createImageBitmap"in window)||y.isFirefox||y.isSafari||(this._glyphsWaitingOnBitmap.push(K),null===this._bitmapCommitTimeout&&(this._bitmapCommitTimeout=window.setTimeout(function(){return W._generateBitmap()},100)))},j.prototype._generateBitmap=function(){var K=this,W=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(J){K._bitmap=J;for(var oe=0;oe<W.length;oe++)W[oe].inBitmap=!0}),this._bitmapCommitTimeout=null},j}(D.BaseCharAtlas);T.DynamicCharAtlas=x;var S=function(L){function j(K,W){return L.call(this)||this}return v(j,L),j.prototype.draw=function(K,W,J,oe){return!1},j}(D.BaseCharAtlas);function O(L,j){for(var K=!0,W=j.rgba>>>24,J=j.rgba>>>16&255,oe=j.rgba>>>8&255,te=0;te<L.data.length;te+=4)L.data[te]===W&&L.data[te+1]===J&&L.data[te+2]===oe?L.data[te+3]=0:K=!1;return K}T.NoneCharAtlas=S},7001:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.LRUMap=void 0;var I=function(){function C(v){this.capacity=v,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return C.prototype._unlinkNode=function(v){var P=v.prev,D=v.next;v===this._head&&(this._head=D),v===this._tail&&(this._tail=P),null!==P&&(P.next=D),null!==D&&(D.prev=P)},C.prototype._appendNode=function(v){var P=this._tail;null!==P&&(P.next=v),v.prev=P,v.next=null,this._tail=v,null===this._head&&(this._head=v)},C.prototype.prealloc=function(v){for(var P=this._nodePool,D=0;D<v;D++)P.push({prev:null,next:null,key:null,value:null})},C.prototype.get=function(v){var P=this._map[v];return void 0!==P?(this._unlinkNode(P),this._appendNode(P),P.value):null},C.prototype.peekValue=function(v){var P=this._map[v];return void 0!==P?P.value:null},C.prototype.peek=function(){var v=this._head;return null===v?null:v.value},C.prototype.set=function(v,P){var D=this._map[v];if(void 0!==D)this._unlinkNode(D=this._map[v]),D.value=P;else if(this.size>=this.capacity)this._unlinkNode(D=this._head),delete this._map[D.key],D.key=v,D.value=P,this._map[v]=D;else{var M=this._nodePool;M.length>0?((D=M.pop()).key=v,D.value=P):D={prev:null,next:null,key:v,value:P},this._map[v]=D,this.size++}this._appendNode(D)},C}();T.LRUMap=I},1296:function(Z,T,I){var C,v=this&&this.__extends||(C=function(oe,te){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,le){se.__proto__=le}||function(se,le){for(var de in le)Object.prototype.hasOwnProperty.call(le,de)&&(se[de]=le[de])})(oe,te)},function(J,oe){if("function"!=typeof oe&&null!==oe)throw new TypeError("Class extends value "+String(oe)+" is not a constructor or null");function te(){this.constructor=J}C(J,oe),J.prototype=null===oe?Object.create(oe):(te.prototype=oe.prototype,new te)}),P=this&&this.__decorate||function(J,oe,te,se){var le,de=arguments.length,ue=de<3?oe:null===se?se=Object.getOwnPropertyDescriptor(oe,te):se;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ue=Reflect.decorate(J,oe,te,se);else for(var ae=J.length-1;ae>=0;ae--)(le=J[ae])&&(ue=(de<3?le(ue):de>3?le(oe,te,ue):le(oe,te))||ue);return de>3&&ue&&Object.defineProperty(oe,te,ue),ue},D=this&&this.__param||function(J,oe){return function(te,se){oe(te,se,J)}};Object.defineProperty(T,"__esModule",{value:!0}),T.DomRenderer=void 0;var M=I(3787),A=I(8803),y=I(844),g=I(4725),k=I(2585),N=I(8460),E=I(4774),x=I(9631),S="xterm-dom-renderer-owner-",O="xterm-fg-",L="xterm-bg-",j="xterm-focus",K=1,W=function(J){function oe(te,se,le,de,ue,ae,Me,ye,ot,He){var _t=J.call(this)||this;return _t._colors=te,_t._element=se,_t._screenElement=le,_t._viewportElement=de,_t._linkifier=ue,_t._linkifier2=ae,_t._charSizeService=ye,_t._optionsService=ot,_t._bufferService=He,_t._terminalClass=K++,_t._rowElements=[],_t._rowContainer=document.createElement("div"),_t._rowContainer.classList.add("xterm-rows"),_t._rowContainer.style.lineHeight="normal",_t._rowContainer.setAttribute("aria-hidden","true"),_t._refreshRowElements(_t._bufferService.cols,_t._bufferService.rows),_t._selectionContainer=document.createElement("div"),_t._selectionContainer.classList.add("xterm-selection"),_t._selectionContainer.setAttribute("aria-hidden","true"),_t.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},_t._updateDimensions(),_t._injectCss(),_t._rowFactory=Me.createInstance(M.DomRendererRowFactory,document,_t._colors),_t._element.classList.add(S+_t._terminalClass),_t._screenElement.appendChild(_t._rowContainer),_t._screenElement.appendChild(_t._selectionContainer),_t._linkifier.onShowLinkUnderline(function(yt){return _t._onLinkHover(yt)}),_t._linkifier.onHideLinkUnderline(function(yt){return _t._onLinkLeave(yt)}),_t._linkifier2.onShowLinkUnderline(function(yt){return _t._onLinkHover(yt)}),_t._linkifier2.onHideLinkUnderline(function(yt){return _t._onLinkLeave(yt)}),_t}return v(oe,J),Object.defineProperty(oe.prototype,"onRequestRedraw",{get:function(){return(new N.EventEmitter).event},enumerable:!1,configurable:!0}),oe.prototype.dispose=function(){this._element.classList.remove(S+this._terminalClass),x.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),J.prototype.dispose.call(this)},oe.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var te=0,se=this._rowElements;te<se.length;te++){var le=se[te];le.style.width=this.dimensions.canvasWidth+"px",le.style.height=this.dimensions.actualCellHeight+"px",le.style.lineHeight=this.dimensions.actualCellHeight+"px",le.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement)),this._dimensionsStyleElement.textContent=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}",this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},oe.prototype.setColors=function(te){this._colors=te,this._injectCss()},oe.prototype._injectCss=function(){var te=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var se=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";se+=this._terminalSelector+" span:not(."+M.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+M.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+M.ITALIC_CLASS+" { font-style: italic;}",se+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",se+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",se+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+M.CURSOR_CLASS+"."+M.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+M.CURSOR_CLASS+"."+M.CURSOR_BLINK_CLASS+":not(."+M.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+M.CURSOR_CLASS+"."+M.CURSOR_BLINK_CLASS+"."+M.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+M.CURSOR_CLASS+"."+M.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+M.CURSOR_CLASS+"."+M.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+M.CURSOR_CLASS+"."+M.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",se+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionTransparent.css+";}",this._colors.ansi.forEach(function(le,de){se+=te._terminalSelector+" ."+O+de+" { color: "+le.css+"; }"+te._terminalSelector+" ."+L+de+" { background-color: "+le.css+"; }"}),se+=this._terminalSelector+" ."+O+A.INVERTED_DEFAULT_COLOR+" { color: "+E.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" ."+L+A.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.textContent=se},oe.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},oe.prototype._refreshRowElements=function(te,se){for(var le=this._rowElements.length;le<=se;le++){var de=document.createElement("div");this._rowContainer.appendChild(de),this._rowElements.push(de)}for(;this._rowElements.length>se;)this._rowContainer.removeChild(this._rowElements.pop())},oe.prototype.onResize=function(te,se){this._refreshRowElements(te,se),this._updateDimensions()},oe.prototype.onCharSizeChanged=function(){this._updateDimensions()},oe.prototype.onBlur=function(){this._rowContainer.classList.remove(j)},oe.prototype.onFocus=function(){this._rowContainer.classList.add(j)},oe.prototype.onSelectionChanged=function(te,se,le){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(te&&se){var de=te[1]-this._bufferService.buffer.ydisp,ue=se[1]-this._bufferService.buffer.ydisp,ae=Math.max(de,0),Me=Math.min(ue,this._bufferService.rows-1);if(!(ae>=this._bufferService.rows||Me<0)){var ye=document.createDocumentFragment();le?ye.appendChild(this._createSelectionElement(ae,te[0],se[0],Me-ae+1)):(ye.appendChild(this._createSelectionElement(ae,de===ae?te[0]:0,ae===ue?se[0]:this._bufferService.cols)),ye.appendChild(this._createSelectionElement(ae+1,0,this._bufferService.cols,Me-ae-1)),ae!==Me&&ye.appendChild(this._createSelectionElement(Me,0,ue===Me?se[0]:this._bufferService.cols))),this._selectionContainer.appendChild(ye)}}},oe.prototype._createSelectionElement=function(te,se,le,de){void 0===de&&(de=1);var ue=document.createElement("div");return ue.style.height=de*this.dimensions.actualCellHeight+"px",ue.style.top=te*this.dimensions.actualCellHeight+"px",ue.style.left=se*this.dimensions.actualCellWidth+"px",ue.style.width=this.dimensions.actualCellWidth*(le-se)+"px",ue},oe.prototype.onCursorMove=function(){},oe.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},oe.prototype.clear=function(){for(var te=0,se=this._rowElements;te<se.length;te++)se[te].innerText=""},oe.prototype.renderRows=function(te,se){for(var le=this._bufferService.buffer.ybase+this._bufferService.buffer.y,de=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),ue=this._optionsService.options.cursorBlink,ae=te;ae<=se;ae++){var Me=this._rowElements[ae];Me.innerText="";var ye=ae+this._bufferService.buffer.ydisp,ot=this._bufferService.buffer.lines.get(ye);Me.appendChild(this._rowFactory.createRow(ot,ye,ye===le,this._optionsService.options.cursorStyle,de,ue,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(oe.prototype,"_terminalSelector",{get:function(){return"."+S+this._terminalClass},enumerable:!1,configurable:!0}),oe.prototype._onLinkHover=function(te){this._setCellUnderline(te.x1,te.x2,te.y1,te.y2,te.cols,!0)},oe.prototype._onLinkLeave=function(te){this._setCellUnderline(te.x1,te.x2,te.y1,te.y2,te.cols,!1)},oe.prototype._setCellUnderline=function(te,se,le,de,ue,ae){for(;te!==se||le!==de;){var Me=this._rowElements[le];if(!Me)return;var ye=Me.children[te];ye&&(ye.style.textDecoration=ae?"underline":"none"),++te>=ue&&(te=0,le++)}},P([D(6,k.IInstantiationService),D(7,g.ICharSizeService),D(8,k.IOptionsService),D(9,k.IBufferService)],oe)}(y.Disposable);T.DomRenderer=W},3787:function(Z,T,I){var C=this&&this.__decorate||function(x,S,O,L){var j,K=arguments.length,W=K<3?S:null===L?L=Object.getOwnPropertyDescriptor(S,O):L;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)W=Reflect.decorate(x,S,O,L);else for(var J=x.length-1;J>=0;J--)(j=x[J])&&(W=(K<3?j(W):K>3?j(S,O,W):j(S,O))||W);return K>3&&W&&Object.defineProperty(S,O,W),W},v=this&&this.__param||function(x,S){return function(O,L){S(O,L,x)}};Object.defineProperty(T,"__esModule",{value:!0}),T.DomRendererRowFactory=T.CURSOR_STYLE_UNDERLINE_CLASS=T.CURSOR_STYLE_BAR_CLASS=T.CURSOR_STYLE_BLOCK_CLASS=T.CURSOR_BLINK_CLASS=T.CURSOR_CLASS=T.STRIKETHROUGH_CLASS=T.UNDERLINE_CLASS=T.ITALIC_CLASS=T.DIM_CLASS=T.BOLD_CLASS=void 0;var P=I(8803),D=I(643),M=I(511),A=I(2585),y=I(4774),g=I(4725),k=I(4269);T.BOLD_CLASS="xterm-bold",T.DIM_CLASS="xterm-dim",T.ITALIC_CLASS="xterm-italic",T.UNDERLINE_CLASS="xterm-underline",T.STRIKETHROUGH_CLASS="xterm-strikethrough",T.CURSOR_CLASS="xterm-cursor",T.CURSOR_BLINK_CLASS="xterm-cursor-blink",T.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",T.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",T.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var N=function(){function x(S,O,L,j){this._document=S,this._colors=O,this._characterJoinerService=L,this._optionsService=j,this._workCell=new M.CellData}return x.prototype.setColors=function(S){this._colors=S},x.prototype.createRow=function(S,O,L,j,K,W,J,oe){for(var te=this._document.createDocumentFragment(),se=this._characterJoinerService.getJoinedCharacters(O),le=0,de=Math.min(S.length,oe)-1;de>=0;de--)if(S.loadCell(de,this._workCell).getCode()!==D.NULL_CELL_CODE||L&&de===K){le=de+1;break}for(de=0;de<le;de++){S.loadCell(de,this._workCell);var ue=this._workCell.getWidth();if(0!==ue){var ae=!1,Me=de,ye=this._workCell;if(se.length>0&&de===se[0][0]){ae=!0;var ot=se.shift();ye=new k.JoinedCellData(this._workCell,S.translateToString(!0,ot[0],ot[1]),ot[1]-ot[0]),Me=ot[1]-1,ue=ye.getWidth()}var He=this._document.createElement("span");if(ue>1&&(He.style.width=J*ue+"px"),ae&&(He.style.display="inline",K>=de&&K<=Me&&(K=de)),L&&de===K)switch(He.classList.add(T.CURSOR_CLASS),W&&He.classList.add(T.CURSOR_BLINK_CLASS),j){case"bar":He.classList.add(T.CURSOR_STYLE_BAR_CLASS);break;case"underline":He.classList.add(T.CURSOR_STYLE_UNDERLINE_CLASS);break;default:He.classList.add(T.CURSOR_STYLE_BLOCK_CLASS)}ye.isBold()&&He.classList.add(T.BOLD_CLASS),ye.isItalic()&&He.classList.add(T.ITALIC_CLASS),ye.isDim()&&He.classList.add(T.DIM_CLASS),ye.isUnderline()&&He.classList.add(T.UNDERLINE_CLASS),He.textContent=ye.isInvisible()?D.WHITESPACE_CELL_CHAR:ye.getChars()||D.WHITESPACE_CELL_CHAR,ye.isStrikethrough()&&He.classList.add(T.STRIKETHROUGH_CLASS);var _t=ye.getFgColor(),yt=ye.getFgColorMode(),Bt=ye.getBgColor(),Se=ye.getBgColorMode(),De=!!ye.isInverse();if(De){var Ve=_t;_t=Bt,Bt=Ve;var ct=yt;yt=Se,Se=ct}switch(yt){case 16777216:case 33554432:ye.isBold()&&_t<8&&this._optionsService.options.drawBoldTextInBrightColors&&(_t+=8),this._applyMinimumContrast(He,this._colors.background,this._colors.ansi[_t])||He.classList.add("xterm-fg-"+_t);break;case 50331648:var Je=y.rgba.toColor(_t>>16&255,_t>>8&255,255&_t);this._applyMinimumContrast(He,this._colors.background,Je)||this._addStyle(He,"color:#"+E(_t.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(He,this._colors.background,this._colors.foreground)||De&&He.classList.add("xterm-fg-"+P.INVERTED_DEFAULT_COLOR)}switch(Se){case 16777216:case 33554432:He.classList.add("xterm-bg-"+Bt);break;case 50331648:this._addStyle(He,"background-color:#"+E(Bt.toString(16),"0",6));break;case 0:default:De&&He.classList.add("xterm-bg-"+P.INVERTED_DEFAULT_COLOR)}te.appendChild(He),de=Me}}return te},x.prototype._applyMinimumContrast=function(S,O,L){if(1===this._optionsService.options.minimumContrastRatio)return!1;var j=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return void 0===j&&(j=y.color.ensureContrastRatio(O,L,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,null!=j?j:null)),!!j&&(this._addStyle(S,"color:"+j.css),!0)},x.prototype._addStyle=function(S,O){S.setAttribute("style",""+(S.getAttribute("style")||"")+O+";")},C([v(2,g.ICharacterJoinerService),v(3,A.IOptionsService)],x)}();function E(x,S,O){for(;x.length<O;)x=S+x;return x}T.DomRendererRowFactory=N},456:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.SelectionModel=void 0;var I=function(){function C(v){this._bufferService=v,this.isSelectAllActive=!1,this.selectionStartLength=0}return C.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(C.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var P=this.selectionStart[0]+this.selectionStartLength;return P>this._bufferService.cols?[P%this._bufferService.cols,this.selectionStart[1]+Math.floor(P/this._bufferService.cols)]:[P,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),C.prototype.areSelectionValuesReversed=function(){var v=this.selectionStart,P=this.selectionEnd;return!(!v||!P)&&(v[1]>P[1]||v[1]===P[1]&&v[0]>P[0])},C.prototype.onTrim=function(v){return this.selectionStart&&(this.selectionStart[1]-=v),this.selectionEnd&&(this.selectionEnd[1]-=v),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},C}();T.SelectionModel=I},428:function(Z,T,I){var C=this&&this.__decorate||function(y,g,k,N){var E,x=arguments.length,S=x<3?g:null===N?N=Object.getOwnPropertyDescriptor(g,k):N;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(y,g,k,N);else for(var O=y.length-1;O>=0;O--)(E=y[O])&&(S=(x<3?E(S):x>3?E(g,k,S):E(g,k))||S);return x>3&&S&&Object.defineProperty(g,k,S),S},v=this&&this.__param||function(y,g){return function(k,N){g(k,N,y)}};Object.defineProperty(T,"__esModule",{value:!0}),T.CharSizeService=void 0;var P=I(2585),D=I(8460),M=function(){function y(g,k,N){this._optionsService=N,this.width=0,this.height=0,this._onCharSizeChange=new D.EventEmitter,this._measureStrategy=new A(g,k,this._optionsService)}return Object.defineProperty(y.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),y.prototype.measure=function(){var g=this._measureStrategy.measure();g.width===this.width&&g.height===this.height||(this.width=g.width,this.height=g.height,this._onCharSizeChange.fire())},C([v(2,P.IOptionsService)],y)}();T.CharSizeService=M;var A=function(){function y(g,k,N){this._document=g,this._parentElement=k,this._optionsService=N,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return y.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var g=this._measureElement.getBoundingClientRect();return 0!==g.width&&0!==g.height&&(this._result.width=g.width,this._result.height=Math.ceil(g.height)),this._result},y}()},4269:function(Z,T,I){var C,v=this&&this.__extends||(C=function(x,S){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,L){O.__proto__=L}||function(O,L){for(var j in L)Object.prototype.hasOwnProperty.call(L,j)&&(O[j]=L[j])})(x,S)},function(E,x){if("function"!=typeof x&&null!==x)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");function S(){this.constructor=E}C(E,x),E.prototype=null===x?Object.create(x):(S.prototype=x.prototype,new S)}),P=this&&this.__decorate||function(E,x,S,O){var L,j=arguments.length,K=j<3?x:null===O?O=Object.getOwnPropertyDescriptor(x,S):O;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)K=Reflect.decorate(E,x,S,O);else for(var W=E.length-1;W>=0;W--)(L=E[W])&&(K=(j<3?L(K):j>3?L(x,S,K):L(x,S))||K);return j>3&&K&&Object.defineProperty(x,S,K),K},D=this&&this.__param||function(E,x){return function(S,O){x(S,O,E)}};Object.defineProperty(T,"__esModule",{value:!0}),T.CharacterJoinerService=T.JoinedCellData=void 0;var M=I(3734),A=I(643),y=I(511),g=I(2585),k=function(E){function x(S,O,L){var j=E.call(this)||this;return j.content=0,j.combinedData="",j.fg=S.fg,j.bg=S.bg,j.combinedData=O,j._width=L,j}return v(x,E),x.prototype.isCombined=function(){return 2097152},x.prototype.getWidth=function(){return this._width},x.prototype.getChars=function(){return this.combinedData},x.prototype.getCode=function(){return 2097151},x.prototype.setFromCharData=function(S){throw new Error("not implemented")},x.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},x}(M.AttributeData);T.JoinedCellData=k;var N=function(){function E(x){this._bufferService=x,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new y.CellData}return E.prototype.register=function(x){var S={id:this._nextCharacterJoinerId++,handler:x};return this._characterJoiners.push(S),S.id},E.prototype.deregister=function(x){for(var S=0;S<this._characterJoiners.length;S++)if(this._characterJoiners[S].id===x)return this._characterJoiners.splice(S,1),!0;return!1},E.prototype.getJoinedCharacters=function(x){if(0===this._characterJoiners.length)return[];var S=this._bufferService.buffer.lines.get(x);if(!S||0===S.length)return[];for(var O=[],L=S.translateToString(!0),j=0,K=0,W=0,J=S.getFg(0),oe=S.getBg(0),te=0;te<S.getTrimmedLength();te++)if(S.loadCell(te,this._workCell),0!==this._workCell.getWidth()){if(this._workCell.fg!==J||this._workCell.bg!==oe){if(te-j>1)for(var se=this._getJoinedRanges(L,W,K,S,j),le=0;le<se.length;le++)O.push(se[le]);j=te,W=K,J=this._workCell.fg,oe=this._workCell.bg}K+=this._workCell.getChars().length||A.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-j>1)for(se=this._getJoinedRanges(L,W,K,S,j),le=0;le<se.length;le++)O.push(se[le]);return O},E.prototype._getJoinedRanges=function(x,S,O,L,j){for(var K=x.substring(S,O),W=this._characterJoiners[0].handler(K),J=1;J<this._characterJoiners.length;J++)for(var oe=this._characterJoiners[J].handler(K),te=0;te<oe.length;te++)E._mergeRanges(W,oe[te]);return this._stringRangesToCellRanges(W,L,j),W},E.prototype._stringRangesToCellRanges=function(x,S,O){var L=0,j=!1,K=0,W=x[L];if(W){for(var J=O;J<this._bufferService.cols;J++){var oe=S.getWidth(J),te=S.getString(J).length||A.WHITESPACE_CELL_CHAR.length;if(0!==oe){if(!j&&W[0]<=K&&(W[0]=J,j=!0),W[1]<=K){if(W[1]=J,!(W=x[++L]))break;W[0]<=K?(W[0]=J,j=!0):j=!1}K+=te}}W&&(W[1]=this._bufferService.cols)}},E._mergeRanges=function(x,S){for(var O=!1,L=0;L<x.length;L++){var j=x[L];if(O){if(S[1]<=j[0])return x[L-1][1]=S[1],x;if(S[1]<=j[1])return x[L-1][1]=Math.max(S[1],j[1]),x.splice(L,1),x;x.splice(L,1),L--}else{if(S[1]<=j[0])return x.splice(L,0,S),x;if(S[1]<=j[1])return j[0]=Math.min(S[0],j[0]),x;S[0]<j[1]&&(j[0]=Math.min(S[0],j[0]),O=!0)}}return O?x[x.length-1][1]=S[1]:x.push(S),x},E=P([D(0,g.IBufferService)],E)}();T.CharacterJoinerService=N},5114:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.CoreBrowserService=void 0;var I=function(){function C(v){this._textarea=v}return Object.defineProperty(C.prototype,"isFocused",{get:function(){return(this._textarea.getRootNode?this._textarea.getRootNode():document).activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),C}();T.CoreBrowserService=I},8934:function(Z,T,I){var C=this&&this.__decorate||function(A,y,g,k){var N,E=arguments.length,x=E<3?y:null===k?k=Object.getOwnPropertyDescriptor(y,g):k;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)x=Reflect.decorate(A,y,g,k);else for(var S=A.length-1;S>=0;S--)(N=A[S])&&(x=(E<3?N(x):E>3?N(y,g,x):N(y,g))||x);return E>3&&x&&Object.defineProperty(y,g,x),x},v=this&&this.__param||function(A,y){return function(g,k){y(g,k,A)}};Object.defineProperty(T,"__esModule",{value:!0}),T.MouseService=void 0;var P=I(4725),D=I(9806),M=function(){function A(y,g){this._renderService=y,this._charSizeService=g}return A.prototype.getCoords=function(y,g,k,N,E){return D.getCoords(y,g,k,N,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,E)},A.prototype.getRawByteCoords=function(y,g,k,N){var E=this.getCoords(y,g,k,N);return D.getRawByteCoords(E)},C([v(0,P.IRenderService),v(1,P.ICharSizeService)],A)}();T.MouseService=M},3230:function(Z,T,I){var C,v=this&&this.__extends||(C=function(O,L){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(j,K){j.__proto__=K}||function(j,K){for(var W in K)Object.prototype.hasOwnProperty.call(K,W)&&(j[W]=K[W])})(O,L)},function(S,O){if("function"!=typeof O&&null!==O)throw new TypeError("Class extends value "+String(O)+" is not a constructor or null");function L(){this.constructor=S}C(S,O),S.prototype=null===O?Object.create(O):(L.prototype=O.prototype,new L)}),P=this&&this.__decorate||function(S,O,L,j){var K,W=arguments.length,J=W<3?O:null===j?j=Object.getOwnPropertyDescriptor(O,L):j;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)J=Reflect.decorate(S,O,L,j);else for(var oe=S.length-1;oe>=0;oe--)(K=S[oe])&&(J=(W<3?K(J):W>3?K(O,L,J):K(O,L))||J);return W>3&&J&&Object.defineProperty(O,L,J),J},D=this&&this.__param||function(S,O){return function(L,j){O(L,j,S)}};Object.defineProperty(T,"__esModule",{value:!0}),T.RenderService=void 0;var M=I(6193),A=I(8460),y=I(844),g=I(5596),k=I(3656),N=I(2585),E=I(4725),x=function(S){function O(L,j,K,W,J,oe){var te=S.call(this)||this;if(te._renderer=L,te._rowCount=j,te._charSizeService=J,te._isPaused=!1,te._needsFullRefresh=!1,te._isNextRenderRedrawOnly=!0,te._needsSelectionRefresh=!1,te._canvasWidth=0,te._canvasHeight=0,te._selectionState={start:void 0,end:void 0,columnSelectMode:!1},te._onDimensionsChange=new A.EventEmitter,te._onRender=new A.EventEmitter,te._onRefreshRequest=new A.EventEmitter,te.register({dispose:function(){return te._renderer.dispose()}}),te._renderDebouncer=new M.RenderDebouncer(function(le,de){return te._renderRows(le,de)}),te.register(te._renderDebouncer),te._screenDprMonitor=new g.ScreenDprMonitor,te._screenDprMonitor.setListener(function(){return te.onDevicePixelRatioChange()}),te.register(te._screenDprMonitor),te.register(oe.onResize(function(le){return te._fullRefresh()})),te.register(W.onOptionChange(function(){return te._renderer.onOptionsChanged()})),te.register(te._charSizeService.onCharSizeChange(function(){return te.onCharSizeChanged()})),te._renderer.onRequestRedraw(function(le){return te.refreshRows(le.start,le.end,!0)}),te.register(k.addDisposableDomListener(window,"resize",function(){return te.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var se=new IntersectionObserver(function(le){return te._onIntersectionChange(le[le.length-1])},{threshold:0});se.observe(K),te.register({dispose:function(){return se.disconnect()}})}return te}return v(O,S),Object.defineProperty(O.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),O.prototype._onIntersectionChange=function(L){this._isPaused=void 0===L.isIntersecting?0===L.intersectionRatio:!L.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},O.prototype.refreshRows=function(L,j,K){void 0===K&&(K=!1),this._isPaused?this._needsFullRefresh=!0:(K||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(L,j,this._rowCount))},O.prototype._renderRows=function(L,j){this._renderer.renderRows(L,j),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:L,end:j}),this._isNextRenderRedrawOnly=!0},O.prototype.resize=function(L,j){this._rowCount=j,this._fireOnCanvasResize()},O.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},O.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},O.prototype.dispose=function(){S.prototype.dispose.call(this)},O.prototype.setRenderer=function(L){var j=this;this._renderer.dispose(),this._renderer=L,this._renderer.onRequestRedraw(function(K){return j.refreshRows(K.start,K.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},O.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},O.prototype.setColors=function(L){this._renderer.setColors(L),this._fullRefresh()},O.prototype.onDevicePixelRatioChange=function(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},O.prototype.onResize=function(L,j){this._renderer.onResize(L,j),this._fullRefresh()},O.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},O.prototype.onBlur=function(){this._renderer.onBlur()},O.prototype.onFocus=function(){this._renderer.onFocus()},O.prototype.onSelectionChanged=function(L,j,K){this._selectionState.start=L,this._selectionState.end=j,this._selectionState.columnSelectMode=K,this._renderer.onSelectionChanged(L,j,K)},O.prototype.onCursorMove=function(){this._renderer.onCursorMove()},O.prototype.clear=function(){this._renderer.clear()},P([D(3,N.IOptionsService),D(4,E.ICharSizeService),D(5,N.IBufferService)],O)}(y.Disposable);T.RenderService=x},9312:function(Z,T,I){var C,v=this&&this.__extends||(C=function(J,oe){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,se){te.__proto__=se}||function(te,se){for(var le in se)Object.prototype.hasOwnProperty.call(se,le)&&(te[le]=se[le])})(J,oe)},function(W,J){if("function"!=typeof J&&null!==J)throw new TypeError("Class extends value "+String(J)+" is not a constructor or null");function oe(){this.constructor=W}C(W,J),W.prototype=null===J?Object.create(J):(oe.prototype=J.prototype,new oe)}),P=this&&this.__decorate||function(W,J,oe,te){var se,le=arguments.length,de=le<3?J:null===te?te=Object.getOwnPropertyDescriptor(J,oe):te;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)de=Reflect.decorate(W,J,oe,te);else for(var ue=W.length-1;ue>=0;ue--)(se=W[ue])&&(de=(le<3?se(de):le>3?se(J,oe,de):se(J,oe))||de);return le>3&&de&&Object.defineProperty(J,oe,de),de},D=this&&this.__param||function(W,J){return function(oe,te){J(oe,te,W)}};Object.defineProperty(T,"__esModule",{value:!0}),T.SelectionService=void 0;var M=I(6114),A=I(456),y=I(511),g=I(8460),k=I(4725),N=I(2585),E=I(9806),x=I(9504),S=I(844),O=I(4841),L=String.fromCharCode(160),j=new RegExp(L,"g"),K=function(W){function J(oe,te,se,le,de,ue,ae,Me){var ye=W.call(this)||this;return ye._element=oe,ye._screenElement=te,ye._linkifier=se,ye._bufferService=le,ye._coreService=de,ye._mouseService=ue,ye._optionsService=ae,ye._renderService=Me,ye._dragScrollAmount=0,ye._enabled=!0,ye._workCell=new y.CellData,ye._mouseDownTimeStamp=0,ye._oldHasSelection=!1,ye._oldSelectionStart=void 0,ye._oldSelectionEnd=void 0,ye._onLinuxMouseSelection=ye.register(new g.EventEmitter),ye._onRedrawRequest=ye.register(new g.EventEmitter),ye._onSelectionChange=ye.register(new g.EventEmitter),ye._onRequestScrollLines=ye.register(new g.EventEmitter),ye._mouseMoveListener=function(ot){return ye._onMouseMove(ot)},ye._mouseUpListener=function(ot){return ye._onMouseUp(ot)},ye._coreService.onUserInput(function(){ye.hasSelection&&ye.clearSelection()}),ye._trimListener=ye._bufferService.buffer.lines.onTrim(function(ot){return ye._onTrim(ot)}),ye.register(ye._bufferService.buffers.onBufferActivate(function(ot){return ye._onBufferActivate(ot)})),ye.enable(),ye._model=new A.SelectionModel(ye._bufferService),ye._activeSelectionMode=0,ye}return v(J,W),Object.defineProperty(J.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),J.prototype.dispose=function(){this._removeMouseDownListeners()},J.prototype.reset=function(){this.clearSelection()},J.prototype.disable=function(){this.clearSelection(),this._enabled=!1},J.prototype.enable=function(){this._enabled=!0},Object.defineProperty(J.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"hasSelection",{get:function(){var te=this._model.finalSelectionStart,se=this._model.finalSelectionEnd;return!(!te||!se||te[0]===se[0]&&te[1]===se[1])},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"selectionText",{get:function(){var te=this._model.finalSelectionStart,se=this._model.finalSelectionEnd;if(!te||!se)return"";var le=this._bufferService.buffer,de=[];if(3===this._activeSelectionMode){if(te[0]===se[0])return"";for(var ue=te[1];ue<=se[1];ue++){var ae=le.translateBufferLineToString(ue,!0,te[0],se[0]);de.push(ae)}}else{for(de.push(le.translateBufferLineToString(te[1],!0,te[0],te[1]===se[1]?se[0]:void 0)),ue=te[1]+1;ue<=se[1]-1;ue++){var ye=le.lines.get(ue);ae=le.translateBufferLineToString(ue,!0),ye&&ye.isWrapped?de[de.length-1]+=ae:de.push(ae)}te[1]!==se[1]&&(ye=le.lines.get(se[1]),ae=le.translateBufferLineToString(se[1],!0,0,se[0]),ye&&ye.isWrapped?de[de.length-1]+=ae:de.push(ae))}return de.map(function(ot){return ot.replace(j," ")}).join(M.isWindows?"\r\n":"\n")},enumerable:!1,configurable:!0}),J.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},J.prototype.refresh=function(oe){var te=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return te._refresh()})),M.isLinux&&oe&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},J.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})},J.prototype._isClickInSelection=function(oe){var te=this._getMouseBufferCoords(oe),se=this._model.finalSelectionStart,le=this._model.finalSelectionEnd;return!!(se&&le&&te)&&this._areCoordsInSelection(te,se,le)},J.prototype._areCoordsInSelection=function(oe,te,se){return oe[1]>te[1]&&oe[1]<se[1]||te[1]===se[1]&&oe[1]===te[1]&&oe[0]>=te[0]&&oe[0]<se[0]||te[1]<se[1]&&oe[1]===se[1]&&oe[0]<se[0]||te[1]<se[1]&&oe[1]===te[1]&&oe[0]>=te[0]},J.prototype._selectWordAtCursor=function(oe,te){var se,le,de=null===(le=null===(se=this._linkifier.currentLink)||void 0===se?void 0:se.link)||void 0===le?void 0:le.range;if(de)return this._model.selectionStart=[de.start.x-1,de.start.y-1],this._model.selectionStartLength=O.getRangeLength(de,this._bufferService.cols),this._model.selectionEnd=void 0,!0;var ue=this._getMouseBufferCoords(oe);return!!ue&&(this._selectWordAt(ue,te),this._model.selectionEnd=void 0,!0)},J.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},J.prototype.selectLines=function(oe,te){this._model.clearSelection(),oe=Math.max(oe,0),te=Math.min(te,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,oe],this._model.selectionEnd=[this._bufferService.cols,te],this.refresh(),this._onSelectionChange.fire()},J.prototype._onTrim=function(oe){this._model.onTrim(oe)&&this.refresh()},J.prototype._getMouseBufferCoords=function(oe){var te=this._mouseService.getCoords(oe,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(te)return te[0]--,te[1]--,te[1]+=this._bufferService.buffer.ydisp,te},J.prototype._getMouseEventScrollAmount=function(oe){var te=E.getCoordsRelativeToElement(oe,this._screenElement)[1],se=this._renderService.dimensions.canvasHeight;return te>=0&&te<=se?0:(te>se&&(te-=se),te=Math.min(Math.max(te,-50),50),(te/=50)/Math.abs(te)+Math.round(14*te))},J.prototype.shouldForceSelection=function(oe){return M.isMac?oe.altKey&&this._optionsService.options.macOptionClickForcesSelection:oe.shiftKey},J.prototype.onMouseDown=function(oe){if(this._mouseDownTimeStamp=oe.timeStamp,(2!==oe.button||!this.hasSelection)&&0===oe.button){if(!this._enabled){if(!this.shouldForceSelection(oe))return;oe.stopPropagation()}oe.preventDefault(),this._dragScrollAmount=0,this._enabled&&oe.shiftKey?this._onIncrementalClick(oe):1===oe.detail?this._onSingleClick(oe):2===oe.detail?this._onDoubleClick(oe):3===oe.detail&&this._onTripleClick(oe),this._addMouseDownListeners(),this.refresh(!0)}},J.prototype._addMouseDownListeners=function(){var oe=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return oe._dragScroll()},50)},J.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},J.prototype._onIncrementalClick=function(oe){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(oe))},J.prototype._onSingleClick=function(oe){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(oe)?3:0,this._model.selectionStart=this._getMouseBufferCoords(oe),this._model.selectionStart){this._model.selectionEnd=void 0;var te=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);te&&te.length!==this._model.selectionStart[0]&&0===te.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}},J.prototype._onDoubleClick=function(oe){this._selectWordAtCursor(oe,!0)&&(this._activeSelectionMode=1)},J.prototype._onTripleClick=function(oe){var te=this._getMouseBufferCoords(oe);te&&(this._activeSelectionMode=2,this._selectLineAt(te[1]))},J.prototype.shouldColumnSelect=function(oe){return oe.altKey&&!(M.isMac&&this._optionsService.options.macOptionClickForcesSelection)},J.prototype._onMouseMove=function(oe){if(oe.stopImmediatePropagation(),this._model.selectionStart){var te=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(oe),this._model.selectionEnd){2===this._activeSelectionMode?this._model.selectionEnd[0]=this._model.selectionEnd[1]<this._model.selectionStart[1]?0:this._bufferService.cols:1===this._activeSelectionMode&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(oe),3!==this._activeSelectionMode&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var se=this._bufferService.buffer;if(this._model.selectionEnd[1]<se.lines.length){var le=se.lines.get(this._model.selectionEnd[1]);le&&0===le.hasWidth(this._model.selectionEnd[0])&&this._model.selectionEnd[0]++}te&&te[0]===this._model.selectionEnd[0]&&te[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},J.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var oe=this._bufferService.buffer;this._dragScrollAmount>0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(oe.ydisp+this._bufferService.rows,oe.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=oe.ydisp),this.refresh()}},J.prototype._onMouseUp=function(oe){var te=oe.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&te<500&&oe.altKey&&this._optionsService.getOption("altClickMovesCursor")){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var se=this._mouseService.getCoords(oe,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(se&&void 0!==se[0]&&void 0!==se[1]){var le=x.moveToCellSequence(se[0]-1,se[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(le,!0)}}}else this._fireEventIfSelectionChanged()},J.prototype._fireEventIfSelectionChanged=function(){var oe=this._model.finalSelectionStart,te=this._model.finalSelectionEnd,se=!(!oe||!te||oe[0]===te[0]&&oe[1]===te[1]);se?oe&&te&&(this._oldSelectionStart&&this._oldSelectionEnd&&oe[0]===this._oldSelectionStart[0]&&oe[1]===this._oldSelectionStart[1]&&te[0]===this._oldSelectionEnd[0]&&te[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(oe,te,se)):this._oldHasSelection&&this._fireOnSelectionChange(oe,te,se)},J.prototype._fireOnSelectionChange=function(oe,te,se){this._oldSelectionStart=oe,this._oldSelectionEnd=te,this._oldHasSelection=se,this._onSelectionChange.fire()},J.prototype._onBufferActivate=function(oe){var te=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=oe.activeBuffer.lines.onTrim(function(se){return te._onTrim(se)})},J.prototype._convertViewportColToCharacterIndex=function(oe,te){for(var se=te[0],le=0;te[0]>=le;le++){var de=oe.loadCell(le,this._workCell).getChars().length;0===this._workCell.getWidth()?se--:de>1&&te[0]!==le&&(se+=de-1)}return se},J.prototype.setSelection=function(oe,te,se){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[oe,te],this._model.selectionStartLength=se,this.refresh()},J.prototype.rightClickSelect=function(oe){this._isClickInSelection(oe)||(this._selectWordAtCursor(oe,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())},J.prototype._getWordAt=function(oe,te,se,le){if(void 0===se&&(se=!0),void 0===le&&(le=!0),!(oe[0]>=this._bufferService.cols)){var de=this._bufferService.buffer,ue=de.lines.get(oe[1]);if(ue){var ae=de.translateBufferLineToString(oe[1],!1),Me=this._convertViewportColToCharacterIndex(ue,oe),ye=Me,ot=oe[0]-Me,He=0,_t=0,yt=0,Bt=0;if(" "===ae.charAt(Me)){for(;Me>0&&" "===ae.charAt(Me-1);)Me--;for(;ye<ae.length&&" "===ae.charAt(ye+1);)ye++}else{var Se=oe[0],De=oe[0];0===ue.getWidth(Se)&&(He++,Se--),2===ue.getWidth(De)&&(_t++,De++);var Ve=ue.getString(De).length;for(Ve>1&&(Bt+=Ve-1,ye+=Ve-1);Se>0&&Me>0&&!this._isCharWordSeparator(ue.loadCell(Se-1,this._workCell));){ue.loadCell(Se-1,this._workCell);var ct=this._workCell.getChars().length;0===this._workCell.getWidth()?(He++,Se--):ct>1&&(yt+=ct-1,Me-=ct-1),Me--,Se--}for(;De<ue.length&&ye+1<ae.length&&!this._isCharWordSeparator(ue.loadCell(De+1,this._workCell));){ue.loadCell(De+1,this._workCell);var Je=this._workCell.getChars().length;2===this._workCell.getWidth()?(_t++,De++):Je>1&&(Bt+=Je-1,ye+=Je-1),ye++,De++}}ye++;var Ut=Me+ot-He+yt,Et=Math.min(this._bufferService.cols,ye-Me+He+_t-yt-Bt);if(te||""!==ae.slice(Me,ye).trim()){if(se&&0===Ut&&32!==ue.getCodePoint(0)){var vt=de.lines.get(oe[1]-1);if(vt&&ue.isWrapped&&32!==vt.getCodePoint(this._bufferService.cols-1)){var Kt=this._getWordAt([this._bufferService.cols-1,oe[1]-1],!1,!0,!1);if(Kt){var Vt=this._bufferService.cols-Kt.start;Ut-=Vt,Et+=Vt}}}if(le&&Ut+Et===this._bufferService.cols&&32!==ue.getCodePoint(this._bufferService.cols-1)){var St=de.lines.get(oe[1]+1);if(St&&St.isWrapped&&32!==St.getCodePoint(0)){var qt=this._getWordAt([0,oe[1]+1],!1,!1,!0);qt&&(Et+=qt.length)}}return{start:Ut,length:Et}}}}},J.prototype._selectWordAt=function(oe,te){var se=this._getWordAt(oe,te);if(se){for(;se.start<0;)se.start+=this._bufferService.cols,oe[1]--;this._model.selectionStart=[se.start,oe[1]],this._model.selectionStartLength=se.length}},J.prototype._selectToWordAt=function(oe){var te=this._getWordAt(oe,!0);if(te){for(var se=oe[1];te.start<0;)te.start+=this._bufferService.cols,se--;if(!this._model.areSelectionValuesReversed())for(;te.start+te.length>this._bufferService.cols;)te.length-=this._bufferService.cols,se++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?te.start:te.start+te.length,se]}},J.prototype._isCharWordSeparator=function(oe){return 0!==oe.getWidth()&&this._optionsService.options.wordSeparator.indexOf(oe.getChars())>=0},J.prototype._selectLineAt=function(oe){var te=this._bufferService.buffer.getWrappedRangeForLine(oe);this._model.selectionStart=[0,te.first],this._model.selectionEnd=[this._bufferService.cols,te.last],this._model.selectionStartLength=0},P([D(3,N.IBufferService),D(4,N.ICoreService),D(5,k.IMouseService),D(6,N.IOptionsService),D(7,k.IRenderService)],J)}(S.Disposable);T.SelectionService=K},4725:function(Z,T,I){Object.defineProperty(T,"__esModule",{value:!0}),T.ICharacterJoinerService=T.ISoundService=T.ISelectionService=T.IRenderService=T.IMouseService=T.ICoreBrowserService=T.ICharSizeService=void 0;var C=I(8343);T.ICharSizeService=C.createDecorator("CharSizeService"),T.ICoreBrowserService=C.createDecorator("CoreBrowserService"),T.IMouseService=C.createDecorator("MouseService"),T.IRenderService=C.createDecorator("RenderService"),T.ISelectionService=C.createDecorator("SelectionService"),T.ISoundService=C.createDecorator("SoundService"),T.ICharacterJoinerService=C.createDecorator("CharacterJoinerService")},357:function(Z,T,I){var C=this&&this.__decorate||function(M,A,y,g){var k,N=arguments.length,E=N<3?A:null===g?g=Object.getOwnPropertyDescriptor(A,y):g;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)E=Reflect.decorate(M,A,y,g);else for(var x=M.length-1;x>=0;x--)(k=M[x])&&(E=(N<3?k(E):N>3?k(A,y,E):k(A,y))||E);return N>3&&E&&Object.defineProperty(A,y,E),E},v=this&&this.__param||function(M,A){return function(y,g){A(y,g,M)}};Object.defineProperty(T,"__esModule",{value:!0}),T.SoundService=void 0;var P=I(2585),D=function(){function M(A){this._optionsService=A}return Object.defineProperty(M,"audioContext",{get:function(){if(!M._audioContext){var y=window.AudioContext||window.webkitAudioContext;if(!y)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;M._audioContext=new y}return M._audioContext},enumerable:!1,configurable:!0}),M.prototype.playBellSound=function(){var A=M.audioContext;if(A){var y=A.createBufferSource();A.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(g){y.buffer=g,y.connect(A.destination),y.start(0)})}},M.prototype._base64ToArrayBuffer=function(A){for(var y=window.atob(A),g=y.length,k=new Uint8Array(g),N=0;N<g;N++)k[N]=y.charCodeAt(N);return k.buffer},M.prototype._removeMimeType=function(A){return A.split(",")[1]},M=C([v(0,P.IOptionsService)],M)}();T.SoundService=D},6349:function(Z,T,I){Object.defineProperty(T,"__esModule",{value:!0}),T.CircularList=void 0;var C=I(8460),v=function(){function P(D){this._maxLength=D,this.onDeleteEmitter=new C.EventEmitter,this.onInsertEmitter=new C.EventEmitter,this.onTrimEmitter=new C.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(P.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"maxLength",{get:function(){return this._maxLength},set:function(M){if(this._maxLength!==M){for(var A=new Array(M),y=0;y<Math.min(M,this.length);y++)A[y]=this._array[this._getCyclicIndex(y)];this._array=A,this._maxLength=M,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"length",{get:function(){return this._length},set:function(M){if(M>this._length)for(var A=this._length;A<M;A++)this._array[A]=void 0;this._length=M},enumerable:!1,configurable:!0}),P.prototype.get=function(D){return this._array[this._getCyclicIndex(D)]},P.prototype.set=function(D,M){this._array[this._getCyclicIndex(D)]=M},P.prototype.push=function(D){this._array[this._getCyclicIndex(this._length)]=D,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},P.prototype.recycle=function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]},Object.defineProperty(P.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),P.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},P.prototype.splice=function(D,M){for(var A=[],y=2;y<arguments.length;y++)A[y-2]=arguments[y];if(M){for(var g=D;g<this._length-M;g++)this._array[this._getCyclicIndex(g)]=this._array[this._getCyclicIndex(g+M)];this._length-=M,this.onDeleteEmitter.fire({index:D,amount:M})}for(g=this._length-1;g>=D;g--)this._array[this._getCyclicIndex(g+A.length)]=this._array[this._getCyclicIndex(g)];for(g=0;g<A.length;g++)this._array[this._getCyclicIndex(D+g)]=A[g];if(A.length&&this.onInsertEmitter.fire({index:D,amount:A.length}),this._length+A.length>this._maxLength){var k=this._length+A.length-this._maxLength;this._startIndex+=k,this._length=this._maxLength,this.onTrimEmitter.fire(k)}else this._length+=A.length},P.prototype.trimStart=function(D){D>this._length&&(D=this._length),this._startIndex+=D,this._length-=D,this.onTrimEmitter.fire(D)},P.prototype.shiftElements=function(D,M,A){if(!(M<=0)){if(D<0||D>=this._length)throw new Error("start argument out of range");if(D+A<0)throw new Error("Cannot shift elements in list beyond index 0");if(A>0){for(var y=M-1;y>=0;y--)this.set(D+y+A,this.get(D+y));var g=D+M+A-this._length;if(g>0)for(this._length+=g;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(y=0;y<M;y++)this.set(D+y+A,this.get(D+y))}},P.prototype._getCyclicIndex=function(D){return(this._startIndex+D)%this._maxLength},P}();T.CircularList=v},1439:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.clone=void 0,T.clone=function I(C,v){if(void 0===v&&(v=5),"object"!=typeof C)return C;var P=Array.isArray(C)?[]:{};for(var D in C)P[D]=v<=1?C[D]:C[D]&&I(C[D],v-1);return P}},8969:function(Z,T,I){var C,v=this&&this.__extends||(C=function(te,se){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,de){le.__proto__=de}||function(le,de){for(var ue in de)Object.prototype.hasOwnProperty.call(de,ue)&&(le[ue]=de[ue])})(te,se)},function(oe,te){if("function"!=typeof te&&null!==te)throw new TypeError("Class extends value "+String(te)+" is not a constructor or null");function se(){this.constructor=oe}C(oe,te),oe.prototype=null===te?Object.create(te):(se.prototype=te.prototype,new se)});Object.defineProperty(T,"__esModule",{value:!0}),T.CoreTerminal=void 0;var P=I(844),D=I(2585),M=I(4348),A=I(7866),y=I(744),g=I(7302),k=I(6975),N=I(8460),E=I(1753),x=I(3730),S=I(1480),O=I(7994),L=I(9282),j=I(5435),K=I(5981),W=!1,J=function(oe){function te(se){var le=oe.call(this)||this;return le._onBinary=new N.EventEmitter,le._onData=new N.EventEmitter,le._onLineFeed=new N.EventEmitter,le._onResize=new N.EventEmitter,le._onScroll=new N.EventEmitter,le._instantiationService=new M.InstantiationService,le.optionsService=new g.OptionsService(se),le._instantiationService.setService(D.IOptionsService,le.optionsService),le._bufferService=le.register(le._instantiationService.createInstance(y.BufferService)),le._instantiationService.setService(D.IBufferService,le._bufferService),le._logService=le._instantiationService.createInstance(A.LogService),le._instantiationService.setService(D.ILogService,le._logService),le.coreService=le.register(le._instantiationService.createInstance(k.CoreService,function(){return le.scrollToBottom()})),le._instantiationService.setService(D.ICoreService,le.coreService),le.coreMouseService=le._instantiationService.createInstance(E.CoreMouseService),le._instantiationService.setService(D.ICoreMouseService,le.coreMouseService),le._dirtyRowService=le._instantiationService.createInstance(x.DirtyRowService),le._instantiationService.setService(D.IDirtyRowService,le._dirtyRowService),le.unicodeService=le._instantiationService.createInstance(S.UnicodeService),le._instantiationService.setService(D.IUnicodeService,le.unicodeService),le._charsetService=le._instantiationService.createInstance(O.CharsetService),le._instantiationService.setService(D.ICharsetService,le._charsetService),le._inputHandler=new j.InputHandler(le._bufferService,le._charsetService,le.coreService,le._dirtyRowService,le._logService,le.optionsService,le.coreMouseService,le.unicodeService),le.register(N.forwardEvent(le._inputHandler.onLineFeed,le._onLineFeed)),le.register(le._inputHandler),le.register(N.forwardEvent(le._bufferService.onResize,le._onResize)),le.register(N.forwardEvent(le.coreService.onData,le._onData)),le.register(N.forwardEvent(le.coreService.onBinary,le._onBinary)),le.register(le.optionsService.onOptionChange(function(de){return le._updateOptions(de)})),le.register(le._bufferService.onScroll(function(de){le._onScroll.fire({position:le._bufferService.buffer.ydisp,source:0}),le._dirtyRowService.markRangeDirty(le._bufferService.buffer.scrollTop,le._bufferService.buffer.scrollBottom)})),le.register(le._inputHandler.onScroll(function(de){le._onScroll.fire({position:le._bufferService.buffer.ydisp,source:0}),le._dirtyRowService.markRangeDirty(le._bufferService.buffer.scrollTop,le._bufferService.buffer.scrollBottom)})),le._writeBuffer=new K.WriteBuffer(function(de,ue){return le._inputHandler.parse(de,ue)}),le}return v(te,oe),Object.defineProperty(te.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"onScroll",{get:function(){var le=this;return this._onScrollApi||(this._onScrollApi=new N.EventEmitter,this.register(this._onScroll.event(function(de){var ue;null===(ue=le._onScrollApi)||void 0===ue||ue.fire(de.position)}))),this._onScrollApi.event},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),te.prototype.dispose=function(){var se;this._isDisposed||(oe.prototype.dispose.call(this),null===(se=this._windowsMode)||void 0===se||se.dispose(),this._windowsMode=void 0)},te.prototype.write=function(se,le){this._writeBuffer.write(se,le)},te.prototype.writeSync=function(se,le){this._logService.logLevel<=D.LogLevelEnum.WARN&&!W&&(this._logService.warn("writeSync is unreliable and will be removed soon."),W=!0),this._writeBuffer.writeSync(se,le)},te.prototype.resize=function(se,le){isNaN(se)||isNaN(le)||(se=Math.max(se,y.MINIMUM_COLS),le=Math.max(le,y.MINIMUM_ROWS),this._bufferService.resize(se,le))},te.prototype.scroll=function(se,le){void 0===le&&(le=!1),this._bufferService.scroll(se,le)},te.prototype.scrollLines=function(se,le,de){this._bufferService.scrollLines(se,le,de)},te.prototype.scrollPages=function(se){this._bufferService.scrollPages(se)},te.prototype.scrollToTop=function(){this._bufferService.scrollToTop()},te.prototype.scrollToBottom=function(){this._bufferService.scrollToBottom()},te.prototype.scrollToLine=function(se){this._bufferService.scrollToLine(se)},te.prototype.registerEscHandler=function(se,le){return this._inputHandler.registerEscHandler(se,le)},te.prototype.registerDcsHandler=function(se,le){return this._inputHandler.registerDcsHandler(se,le)},te.prototype.registerCsiHandler=function(se,le){return this._inputHandler.registerCsiHandler(se,le)},te.prototype.registerOscHandler=function(se,le){return this._inputHandler.registerOscHandler(se,le)},te.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},te.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()},te.prototype._updateOptions=function(se){var le;switch(se){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():(null===(le=this._windowsMode)||void 0===le||le.dispose(),this._windowsMode=void 0)}},te.prototype._enableWindowsMode=function(){var se=this;if(!this._windowsMode){var le=[];le.push(this.onLineFeed(L.updateWindowsModeWrappedState.bind(null,this._bufferService))),le.push(this.registerCsiHandler({final:"H"},function(){return L.updateWindowsModeWrappedState(se._bufferService),!1})),this._windowsMode={dispose:function(){for(var ue=0,ae=le;ue<ae.length;ue++)ae[ue].dispose()}}}},te}(P.Disposable);T.CoreTerminal=J},8460:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.forwardEvent=T.EventEmitter=void 0;var I=function(){function C(){this._listeners=[],this._disposed=!1}return Object.defineProperty(C.prototype,"event",{get:function(){var P=this;return this._event||(this._event=function(D){return P._listeners.push(D),{dispose:function(){if(!P._disposed)for(var A=0;A<P._listeners.length;A++)if(P._listeners[A]===D)return void P._listeners.splice(A,1)}}}),this._event},enumerable:!1,configurable:!0}),C.prototype.fire=function(v,P){for(var D=[],M=0;M<this._listeners.length;M++)D.push(this._listeners[M]);for(M=0;M<D.length;M++)D[M].call(void 0,v,P)},C.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},C}();T.EventEmitter=I,T.forwardEvent=function(C,v){return C(function(P){return v.fire(P)})}},5435:function(Z,T,I){var C,v=this&&this.__extends||(C=function(de,ue){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ae,Me){ae.__proto__=Me}||function(ae,Me){for(var ye in Me)Object.prototype.hasOwnProperty.call(Me,ye)&&(ae[ye]=Me[ye])})(de,ue)},function(le,de){if("function"!=typeof de&&null!==de)throw new TypeError("Class extends value "+String(de)+" is not a constructor or null");function ue(){this.constructor=le}C(le,de),le.prototype=null===de?Object.create(de):(ue.prototype=de.prototype,new ue)});Object.defineProperty(T,"__esModule",{value:!0}),T.InputHandler=T.WindowsOptionsReportType=void 0;var P,le,D=I(2584),M=I(7116),A=I(2015),y=I(844),g=I(8273),k=I(482),N=I(8437),E=I(8460),x=I(643),S=I(511),O=I(3734),L=I(2585),j=I(6242),K=I(6351),W={"(":0,")":1,"*":2,"+":3,"-":1,".":2},J=131072;function oe(le,de){if(le>24)return de.setWinLines||!1;switch(le){case 1:return!!de.restoreWin;case 2:return!!de.minimizeWin;case 3:return!!de.setWinPosition;case 4:return!!de.setWinSizePixels;case 5:return!!de.raiseWin;case 6:return!!de.lowerWin;case 7:return!!de.refreshWin;case 8:return!!de.setWinSizeChars;case 9:return!!de.maximizeWin;case 10:return!!de.fullscreenWin;case 11:return!!de.getWinState;case 13:return!!de.getWinPosition;case 14:return!!de.getWinSizePixels;case 15:return!!de.getScreenSizePixels;case 16:return!!de.getCellSizePixels;case 18:return!!de.getWinSizeChars;case 19:return!!de.getScreenSizeChars;case 20:return!!de.getIconTitle;case 21:return!!de.getWinTitle;case 22:return!!de.pushTitle;case 23:return!!de.popTitle;case 24:return!!de.setWinLines}return!1}(le=P=T.WindowsOptionsReportType||(T.WindowsOptionsReportType={}))[le.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",le[le.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS";var te=function(){function le(de,ue,ae,Me){this._bufferService=de,this._coreService=ue,this._logService=ae,this._optionsService=Me,this._data=new Uint32Array(0)}return le.prototype.hook=function(de){this._data=new Uint32Array(0)},le.prototype.put=function(de,ue,ae){this._data=g.concat(this._data,de.subarray(ue,ae))},le.prototype.unhook=function(de){if(!de)return this._data=new Uint32Array(0),!0;var ue=k.utf32ToString(this._data);switch(this._data=new Uint32Array(0),ue){case'"q':this._coreService.triggerDataEvent(D.C0.ESC+'P1$r0"q'+D.C0.ESC+"\\");break;case'"p':this._coreService.triggerDataEvent(D.C0.ESC+'P1$r61;1"p'+D.C0.ESC+"\\");break;case"r":this._coreService.triggerDataEvent(D.C0.ESC+"P1$r"+(this._bufferService.buffer.scrollTop+1)+";"+(this._bufferService.buffer.scrollBottom+1)+"r"+D.C0.ESC+"\\");break;case"m":this._coreService.triggerDataEvent(D.C0.ESC+"P1$r0m"+D.C0.ESC+"\\");break;case" q":var Me={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];this._coreService.triggerDataEvent(D.C0.ESC+"P1$r"+(Me-=this._optionsService.options.cursorBlink?1:0)+" q"+D.C0.ESC+"\\");break;default:this._logService.debug("Unknown DCS $q %s",ue),this._coreService.triggerDataEvent(D.C0.ESC+"P0$r"+D.C0.ESC+"\\")}return!0},le}(),se=function(le){function de(ue,ae,Me,ye,ot,He,_t,yt,Bt){void 0===Bt&&(Bt=new A.EscapeSequenceParser);var Se=le.call(this)||this;Se._bufferService=ue,Se._charsetService=ae,Se._coreService=Me,Se._dirtyRowService=ye,Se._logService=ot,Se._optionsService=He,Se._coreMouseService=_t,Se._unicodeService=yt,Se._parser=Bt,Se._parseBuffer=new Uint32Array(4096),Se._stringDecoder=new k.StringToUtf32,Se._utf8Decoder=new k.Utf8ToUtf32,Se._workCell=new S.CellData,Se._windowTitle="",Se._iconName="",Se._windowTitleStack=[],Se._iconNameStack=[],Se._curAttrData=N.DEFAULT_ATTR_DATA.clone(),Se._eraseAttrDataInternal=N.DEFAULT_ATTR_DATA.clone(),Se._onRequestBell=new E.EventEmitter,Se._onRequestRefreshRows=new E.EventEmitter,Se._onRequestReset=new E.EventEmitter,Se._onRequestSyncScrollBar=new E.EventEmitter,Se._onRequestWindowsOptionsReport=new E.EventEmitter,Se._onA11yChar=new E.EventEmitter,Se._onA11yTab=new E.EventEmitter,Se._onCursorMove=new E.EventEmitter,Se._onLineFeed=new E.EventEmitter,Se._onScroll=new E.EventEmitter,Se._onTitleChange=new E.EventEmitter,Se._onAnsiColorChange=new E.EventEmitter,Se._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},Se.register(Se._parser),Se._activeBuffer=Se._bufferService.buffer,Se.register(Se._bufferService.buffers.onBufferActivate(function(Je){return Se._activeBuffer=Je.activeBuffer})),Se._parser.setCsiHandlerFallback(function(Je,Ut){Se._logService.debug("Unknown CSI code: ",{identifier:Se._parser.identToString(Je),params:Ut.toArray()})}),Se._parser.setEscHandlerFallback(function(Je){Se._logService.debug("Unknown ESC code: ",{identifier:Se._parser.identToString(Je)})}),Se._parser.setExecuteHandlerFallback(function(Je){Se._logService.debug("Unknown EXECUTE code: ",{code:Je})}),Se._parser.setOscHandlerFallback(function(Je,Ut,Et){Se._logService.debug("Unknown OSC code: ",{identifier:Je,action:Ut,data:Et})}),Se._parser.setDcsHandlerFallback(function(Je,Ut,Et){"HOOK"===Ut&&(Et=Et.toArray()),Se._logService.debug("Unknown DCS code: ",{identifier:Se._parser.identToString(Je),action:Ut,payload:Et})}),Se._parser.setPrintHandler(function(Je,Ut,Et){return Se.print(Je,Ut,Et)}),Se._parser.registerCsiHandler({final:"@"},function(Je){return Se.insertChars(Je)}),Se._parser.registerCsiHandler({intermediates:" ",final:"@"},function(Je){return Se.scrollLeft(Je)}),Se._parser.registerCsiHandler({final:"A"},function(Je){return Se.cursorUp(Je)}),Se._parser.registerCsiHandler({intermediates:" ",final:"A"},function(Je){return Se.scrollRight(Je)}),Se._parser.registerCsiHandler({final:"B"},function(Je){return Se.cursorDown(Je)}),Se._parser.registerCsiHandler({final:"C"},function(Je){return Se.cursorForward(Je)}),Se._parser.registerCsiHandler({final:"D"},function(Je){return Se.cursorBackward(Je)}),Se._parser.registerCsiHandler({final:"E"},function(Je){return Se.cursorNextLine(Je)}),Se._parser.registerCsiHandler({final:"F"},function(Je){return Se.cursorPrecedingLine(Je)}),Se._parser.registerCsiHandler({final:"G"},function(Je){return Se.cursorCharAbsolute(Je)}),Se._parser.registerCsiHandler({final:"H"},function(Je){return Se.cursorPosition(Je)}),Se._parser.registerCsiHandler({final:"I"},function(Je){return Se.cursorForwardTab(Je)}),Se._parser.registerCsiHandler({final:"J"},function(Je){return Se.eraseInDisplay(Je)}),Se._parser.registerCsiHandler({prefix:"?",final:"J"},function(Je){return Se.eraseInDisplay(Je)}),Se._parser.registerCsiHandler({final:"K"},function(Je){return Se.eraseInLine(Je)}),Se._parser.registerCsiHandler({prefix:"?",final:"K"},function(Je){return Se.eraseInLine(Je)}),Se._parser.registerCsiHandler({final:"L"},function(Je){return Se.insertLines(Je)}),Se._parser.registerCsiHandler({final:"M"},function(Je){return Se.deleteLines(Je)}),Se._parser.registerCsiHandler({final:"P"},function(Je){return Se.deleteChars(Je)}),Se._parser.registerCsiHandler({final:"S"},function(Je){return Se.scrollUp(Je)}),Se._parser.registerCsiHandler({final:"T"},function(Je){return Se.scrollDown(Je)}),Se._parser.registerCsiHandler({final:"X"},function(Je){return Se.eraseChars(Je)}),Se._parser.registerCsiHandler({final:"Z"},function(Je){return Se.cursorBackwardTab(Je)}),Se._parser.registerCsiHandler({final:"`"},function(Je){return Se.charPosAbsolute(Je)}),Se._parser.registerCsiHandler({final:"a"},function(Je){return Se.hPositionRelative(Je)}),Se._parser.registerCsiHandler({final:"b"},function(Je){return Se.repeatPrecedingCharacter(Je)}),Se._parser.registerCsiHandler({final:"c"},function(Je){return Se.sendDeviceAttributesPrimary(Je)}),Se._parser.registerCsiHandler({prefix:">",final:"c"},function(Je){return Se.sendDeviceAttributesSecondary(Je)}),Se._parser.registerCsiHandler({final:"d"},function(Je){return Se.linePosAbsolute(Je)}),Se._parser.registerCsiHandler({final:"e"},function(Je){return Se.vPositionRelative(Je)}),Se._parser.registerCsiHandler({final:"f"},function(Je){return Se.hVPosition(Je)}),Se._parser.registerCsiHandler({final:"g"},function(Je){return Se.tabClear(Je)}),Se._parser.registerCsiHandler({final:"h"},function(Je){return Se.setMode(Je)}),Se._parser.registerCsiHandler({prefix:"?",final:"h"},function(Je){return Se.setModePrivate(Je)}),Se._parser.registerCsiHandler({final:"l"},function(Je){return Se.resetMode(Je)}),Se._parser.registerCsiHandler({prefix:"?",final:"l"},function(Je){return Se.resetModePrivate(Je)}),Se._parser.registerCsiHandler({final:"m"},function(Je){return Se.charAttributes(Je)}),Se._parser.registerCsiHandler({final:"n"},function(Je){return Se.deviceStatus(Je)}),Se._parser.registerCsiHandler({prefix:"?",final:"n"},function(Je){return Se.deviceStatusPrivate(Je)}),Se._parser.registerCsiHandler({intermediates:"!",final:"p"},function(Je){return Se.softReset(Je)}),Se._parser.registerCsiHandler({intermediates:" ",final:"q"},function(Je){return Se.setCursorStyle(Je)}),Se._parser.registerCsiHandler({final:"r"},function(Je){return Se.setScrollRegion(Je)}),Se._parser.registerCsiHandler({final:"s"},function(Je){return Se.saveCursor(Je)}),Se._parser.registerCsiHandler({final:"t"},function(Je){return Se.windowOptions(Je)}),Se._parser.registerCsiHandler({final:"u"},function(Je){return Se.restoreCursor(Je)}),Se._parser.registerCsiHandler({intermediates:"'",final:"}"},function(Je){return Se.insertColumns(Je)}),Se._parser.registerCsiHandler({intermediates:"'",final:"~"},function(Je){return Se.deleteColumns(Je)}),Se._parser.setExecuteHandler(D.C0.BEL,function(){return Se.bell()}),Se._parser.setExecuteHandler(D.C0.LF,function(){return Se.lineFeed()}),Se._parser.setExecuteHandler(D.C0.VT,function(){return Se.lineFeed()}),Se._parser.setExecuteHandler(D.C0.FF,function(){return Se.lineFeed()}),Se._parser.setExecuteHandler(D.C0.CR,function(){return Se.carriageReturn()}),Se._parser.setExecuteHandler(D.C0.BS,function(){return Se.backspace()}),Se._parser.setExecuteHandler(D.C0.HT,function(){return Se.tab()}),Se._parser.setExecuteHandler(D.C0.SO,function(){return Se.shiftOut()}),Se._parser.setExecuteHandler(D.C0.SI,function(){return Se.shiftIn()}),Se._parser.setExecuteHandler(D.C1.IND,function(){return Se.index()}),Se._parser.setExecuteHandler(D.C1.NEL,function(){return Se.nextLine()}),Se._parser.setExecuteHandler(D.C1.HTS,function(){return Se.tabSet()}),Se._parser.registerOscHandler(0,new j.OscHandler(function(Je){return Se.setTitle(Je),Se.setIconName(Je),!0})),Se._parser.registerOscHandler(1,new j.OscHandler(function(Je){return Se.setIconName(Je)})),Se._parser.registerOscHandler(2,new j.OscHandler(function(Je){return Se.setTitle(Je)})),Se._parser.registerOscHandler(4,new j.OscHandler(function(Je){return Se.setAnsiColor(Je)})),Se._parser.registerEscHandler({final:"7"},function(){return Se.saveCursor()}),Se._parser.registerEscHandler({final:"8"},function(){return Se.restoreCursor()}),Se._parser.registerEscHandler({final:"D"},function(){return Se.index()}),Se._parser.registerEscHandler({final:"E"},function(){return Se.nextLine()}),Se._parser.registerEscHandler({final:"H"},function(){return Se.tabSet()}),Se._parser.registerEscHandler({final:"M"},function(){return Se.reverseIndex()}),Se._parser.registerEscHandler({final:"="},function(){return Se.keypadApplicationMode()}),Se._parser.registerEscHandler({final:">"},function(){return Se.keypadNumericMode()}),Se._parser.registerEscHandler({final:"c"},function(){return Se.fullReset()}),Se._parser.registerEscHandler({final:"n"},function(){return Se.setgLevel(2)}),Se._parser.registerEscHandler({final:"o"},function(){return Se.setgLevel(3)}),Se._parser.registerEscHandler({final:"|"},function(){return Se.setgLevel(3)}),Se._parser.registerEscHandler({final:"}"},function(){return Se.setgLevel(2)}),Se._parser.registerEscHandler({final:"~"},function(){return Se.setgLevel(1)}),Se._parser.registerEscHandler({intermediates:"%",final:"@"},function(){return Se.selectDefaultCharset()}),Se._parser.registerEscHandler({intermediates:"%",final:"G"},function(){return Se.selectDefaultCharset()});var De=function(Ut){Ve._parser.registerEscHandler({intermediates:"(",final:Ut},function(){return Se.selectCharset("("+Ut)}),Ve._parser.registerEscHandler({intermediates:")",final:Ut},function(){return Se.selectCharset(")"+Ut)}),Ve._parser.registerEscHandler({intermediates:"*",final:Ut},function(){return Se.selectCharset("*"+Ut)}),Ve._parser.registerEscHandler({intermediates:"+",final:Ut},function(){return Se.selectCharset("+"+Ut)}),Ve._parser.registerEscHandler({intermediates:"-",final:Ut},function(){return Se.selectCharset("-"+Ut)}),Ve._parser.registerEscHandler({intermediates:".",final:Ut},function(){return Se.selectCharset("."+Ut)}),Ve._parser.registerEscHandler({intermediates:"/",final:Ut},function(){return Se.selectCharset("/"+Ut)})},Ve=this;for(var ct in M.CHARSETS)De(ct);return Se._parser.registerEscHandler({intermediates:"#",final:"8"},function(){return Se.screenAlignmentPattern()}),Se._parser.setErrorHandler(function(Je){return Se._logService.error("Parsing error: ",Je),Je}),Se._parser.registerDcsHandler({intermediates:"$",final:"q"},new te(Se._bufferService,Se._coreService,Se._logService,Se._optionsService)),Se}return v(de,le),Object.defineProperty(de.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onAnsiColorChange",{get:function(){return this._onAnsiColorChange.event},enumerable:!1,configurable:!0}),de.prototype.dispose=function(){le.prototype.dispose.call(this)},de.prototype._preserveStack=function(ue,ae,Me,ye){this._parseStack.paused=!0,this._parseStack.cursorStartX=ue,this._parseStack.cursorStartY=ae,this._parseStack.decodedLength=Me,this._parseStack.position=ye},de.prototype._logSlowResolvingAsync=function(ue){this._logService.logLevel<=L.LogLevelEnum.WARN&&Promise.race([ue,new Promise(function(ae,Me){return setTimeout(function(){return Me("#SLOW_TIMEOUT")},5e3)})]).catch(function(ae){if("#SLOW_TIMEOUT"!==ae)throw ae;console.warn("async parser handler taking longer than 5000 ms")})},de.prototype.parse=function(ue,ae){var Me,ye=this._activeBuffer.x,ot=this._activeBuffer.y,He=0,_t=this._parseStack.paused;if(_t){if(Me=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,ae))return this._logSlowResolvingAsync(Me),Me;ye=this._parseStack.cursorStartX,ot=this._parseStack.cursorStartY,this._parseStack.paused=!1,ue.length>J&&(He=this._parseStack.position+J)}if(this._logService.debug("parsing data",ue),this._parseBuffer.length<ue.length&&this._parseBuffer.length<J&&(this._parseBuffer=new Uint32Array(Math.min(ue.length,J))),_t||this._dirtyRowService.clearRange(),ue.length>J)for(var yt=He;yt<ue.length;yt+=J){var Bt=yt+J<ue.length?yt+J:ue.length,Se="string"==typeof ue?this._stringDecoder.decode(ue.substring(yt,Bt),this._parseBuffer):this._utf8Decoder.decode(ue.subarray(yt,Bt),this._parseBuffer);if(Me=this._parser.parse(this._parseBuffer,Se))return this._preserveStack(ye,ot,Se,yt),this._logSlowResolvingAsync(Me),Me}else if(!_t&&(Se="string"==typeof ue?this._stringDecoder.decode(ue,this._parseBuffer):this._utf8Decoder.decode(ue,this._parseBuffer),Me=this._parser.parse(this._parseBuffer,Se)))return this._preserveStack(ye,ot,Se,0),this._logSlowResolvingAsync(Me),Me;this._activeBuffer.x===ye&&this._activeBuffer.y===ot||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},de.prototype.print=function(ue,ae,Me){var ye,ot,He=this._charsetService.charset,_t=this._optionsService.options.screenReaderMode,yt=this._bufferService.cols,Bt=this._coreService.decPrivateModes.wraparound,Se=this._coreService.modes.insertMode,De=this._curAttrData,Ve=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowService.markDirty(this._activeBuffer.y),this._activeBuffer.x&&Me-ae>0&&2===Ve.getWidth(this._activeBuffer.x-1)&&Ve.setCellFromCodePoint(this._activeBuffer.x-1,0,1,De.fg,De.bg,De.extended);for(var ct=ae;ct<Me;++ct){if(ot=this._unicodeService.wcwidth(ye=ue[ct]),ye<127&&He){var Je=He[String.fromCharCode(ye)];Je&&(ye=Je.charCodeAt(0))}if(_t&&this._onA11yChar.fire(k.stringFromCodePoint(ye)),ot||!this._activeBuffer.x){if(this._activeBuffer.x+ot-1>=yt)if(Bt){for(;this._activeBuffer.x<yt;)Ve.setCellFromCodePoint(this._activeBuffer.x++,0,1,De.fg,De.bg,De.extended);this._activeBuffer.x=0,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),Ve=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=yt-1,2===ot)continue;if(Se&&(Ve.insertCells(this._activeBuffer.x,ot,this._activeBuffer.getNullCell(De),De),2===Ve.getWidth(yt-1)&&Ve.setCellFromCodePoint(yt-1,x.NULL_CELL_CODE,x.NULL_CELL_WIDTH,De.fg,De.bg,De.extended)),Ve.setCellFromCodePoint(this._activeBuffer.x++,ye,ot,De.fg,De.bg,De.extended),ot>0)for(;--ot;)Ve.setCellFromCodePoint(this._activeBuffer.x++,0,0,De.fg,De.bg,De.extended)}else Ve.getWidth(this._activeBuffer.x-1)?Ve.addCodepointToCell(this._activeBuffer.x-1,ye):Ve.addCodepointToCell(this._activeBuffer.x-2,ye)}Me-ae>0&&(Ve.loadCell(this._activeBuffer.x-1,this._workCell),this._parser.precedingCodepoint=2===this._workCell.getWidth()||this._workCell.getCode()>65535?0:this._workCell.isCombined()?this._workCell.getChars().charCodeAt(0):this._workCell.content),this._activeBuffer.x<yt&&Me-ae>0&&0===Ve.getWidth(this._activeBuffer.x)&&!Ve.hasContent(this._activeBuffer.x)&&Ve.setCellFromCodePoint(this._activeBuffer.x,0,1,De.fg,De.bg,De.extended),this._dirtyRowService.markDirty(this._activeBuffer.y)},de.prototype.registerCsiHandler=function(ue,ae){var Me=this;return this._parser.registerCsiHandler(ue,"t"!==ue.final||ue.prefix||ue.intermediates?ae:function(ye){return!oe(ye.params[0],Me._optionsService.options.windowOptions)||ae(ye)})},de.prototype.registerDcsHandler=function(ue,ae){return this._parser.registerDcsHandler(ue,new K.DcsHandler(ae))},de.prototype.registerEscHandler=function(ue,ae){return this._parser.registerEscHandler(ue,ae)},de.prototype.registerOscHandler=function(ue,ae){return this._parser.registerOscHandler(ue,new j.OscHandler(ae))},de.prototype.bell=function(){return this._onRequestBell.fire(),!0},de.prototype.lineFeed=function(){return this._dirtyRowService.markDirty(this._activeBuffer.y),this._optionsService.options.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowService.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0},de.prototype.carriageReturn=function(){return this._activeBuffer.x=0,!0},de.prototype.backspace=function(){var ue;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(0===this._activeBuffer.x&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&(null===(ue=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))||void 0===ue?void 0:ue.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;var ae=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);ae.hasWidth(this._activeBuffer.x)&&!ae.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0},de.prototype.tab=function(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;var ue=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-ue),!0},de.prototype.shiftOut=function(){return this._charsetService.setgLevel(1),!0},de.prototype.shiftIn=function(){return this._charsetService.setgLevel(0),!0},de.prototype._restrictCursor=function(ue){void 0===ue&&(ue=this._bufferService.cols-1),this._activeBuffer.x=Math.min(ue,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowService.markDirty(this._activeBuffer.y)},de.prototype._setCursor=function(ue,ae){this._dirtyRowService.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=ue,this._activeBuffer.y=this._activeBuffer.scrollTop+ae):(this._activeBuffer.x=ue,this._activeBuffer.y=ae),this._restrictCursor(),this._dirtyRowService.markDirty(this._activeBuffer.y)},de.prototype._moveCursor=function(ue,ae){this._restrictCursor(),this._setCursor(this._activeBuffer.x+ue,this._activeBuffer.y+ae)},de.prototype.cursorUp=function(ue){var ae=this._activeBuffer.y-this._activeBuffer.scrollTop;return this._moveCursor(0,ae>=0?-Math.min(ae,ue.params[0]||1):-(ue.params[0]||1)),!0},de.prototype.cursorDown=function(ue){var ae=this._activeBuffer.scrollBottom-this._activeBuffer.y;return this._moveCursor(0,ae>=0?Math.min(ae,ue.params[0]||1):ue.params[0]||1),!0},de.prototype.cursorForward=function(ue){return this._moveCursor(ue.params[0]||1,0),!0},de.prototype.cursorBackward=function(ue){return this._moveCursor(-(ue.params[0]||1),0),!0},de.prototype.cursorNextLine=function(ue){return this.cursorDown(ue),this._activeBuffer.x=0,!0},de.prototype.cursorPrecedingLine=function(ue){return this.cursorUp(ue),this._activeBuffer.x=0,!0},de.prototype.cursorCharAbsolute=function(ue){return this._setCursor((ue.params[0]||1)-1,this._activeBuffer.y),!0},de.prototype.cursorPosition=function(ue){return this._setCursor(ue.length>=2?(ue.params[1]||1)-1:0,(ue.params[0]||1)-1),!0},de.prototype.charPosAbsolute=function(ue){return this._setCursor((ue.params[0]||1)-1,this._activeBuffer.y),!0},de.prototype.hPositionRelative=function(ue){return this._moveCursor(ue.params[0]||1,0),!0},de.prototype.linePosAbsolute=function(ue){return this._setCursor(this._activeBuffer.x,(ue.params[0]||1)-1),!0},de.prototype.vPositionRelative=function(ue){return this._moveCursor(0,ue.params[0]||1),!0},de.prototype.hVPosition=function(ue){return this.cursorPosition(ue),!0},de.prototype.tabClear=function(ue){var ae=ue.params[0];return 0===ae?delete this._activeBuffer.tabs[this._activeBuffer.x]:3===ae&&(this._activeBuffer.tabs={}),!0},de.prototype.cursorForwardTab=function(ue){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var ae=ue.params[0]||1;ae--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0},de.prototype.cursorBackwardTab=function(ue){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var ae=ue.params[0]||1;ae--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0},de.prototype._eraseInBufferLine=function(ue,ae,Me,ye){void 0===ye&&(ye=!1);var ot=this._activeBuffer.lines.get(this._activeBuffer.ybase+ue);ot.replaceCells(ae,Me,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),ye&&(ot.isWrapped=!1)},de.prototype._resetBufferLine=function(ue){var ae=this._activeBuffer.lines.get(this._activeBuffer.ybase+ue);ae.fill(this._activeBuffer.getNullCell(this._eraseAttrData())),ae.isWrapped=!1},de.prototype.eraseInDisplay=function(ue){var ae;switch(this._restrictCursor(this._bufferService.cols),ue.params[0]){case 0:for(this._dirtyRowService.markDirty(ae=this._activeBuffer.y),this._eraseInBufferLine(ae++,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x);ae<this._bufferService.rows;ae++)this._resetBufferLine(ae);this._dirtyRowService.markDirty(ae);break;case 1:for(this._dirtyRowService.markDirty(ae=this._activeBuffer.y),this._eraseInBufferLine(ae,0,this._activeBuffer.x+1,!0),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(ae+1).isWrapped=!1);ae--;)this._resetBufferLine(ae);this._dirtyRowService.markDirty(0);break;case 2:for(this._dirtyRowService.markDirty((ae=this._bufferService.rows)-1);ae--;)this._resetBufferLine(ae);this._dirtyRowService.markDirty(0);break;case 3:var Me=this._activeBuffer.lines.length-this._bufferService.rows;Me>0&&(this._activeBuffer.lines.trimStart(Me),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-Me,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-Me,0),this._onScroll.fire(0))}return!0},de.prototype.eraseInLine=function(ue){switch(this._restrictCursor(this._bufferService.cols),ue.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols)}return this._dirtyRowService.markDirty(this._activeBuffer.y),!0},de.prototype.insertLines=function(ue){this._restrictCursor();var ae=ue.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var Me=this._activeBuffer.ybase+this._activeBuffer.y,ot=this._bufferService.rows-1+this._activeBuffer.ybase-(this._bufferService.rows-1-this._activeBuffer.scrollBottom)+1;ae--;)this._activeBuffer.lines.splice(ot-1,1),this._activeBuffer.lines.splice(Me,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0},de.prototype.deleteLines=function(ue){this._restrictCursor();var ae=ue.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;var Me,ye=this._activeBuffer.ybase+this._activeBuffer.y;for(Me=this._bufferService.rows-1+this._activeBuffer.ybase-(Me=this._bufferService.rows-1-this._activeBuffer.scrollBottom);ae--;)this._activeBuffer.lines.splice(ye,1),this._activeBuffer.lines.splice(Me,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0},de.prototype.insertChars=function(ue){this._restrictCursor();var ae=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return ae&&(ae.insertCells(this._activeBuffer.x,ue.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},de.prototype.deleteChars=function(ue){this._restrictCursor();var ae=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return ae&&(ae.deleteCells(this._activeBuffer.x,ue.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},de.prototype.scrollUp=function(ue){for(var ae=ue.params[0]||1;ae--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},de.prototype.scrollDown=function(ue){for(var ae=ue.params[0]||1;ae--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,0,this._activeBuffer.getBlankLine(N.DEFAULT_ATTR_DATA));return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},de.prototype.scrollLeft=function(ue){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var ae=ue.params[0]||1,Me=this._activeBuffer.scrollTop;Me<=this._activeBuffer.scrollBottom;++Me){var ye=this._activeBuffer.lines.get(this._activeBuffer.ybase+Me);ye.deleteCells(0,ae,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),ye.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},de.prototype.scrollRight=function(ue){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var ae=ue.params[0]||1,Me=this._activeBuffer.scrollTop;Me<=this._activeBuffer.scrollBottom;++Me){var ye=this._activeBuffer.lines.get(this._activeBuffer.ybase+Me);ye.insertCells(0,ae,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),ye.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},de.prototype.insertColumns=function(ue){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var ae=ue.params[0]||1,Me=this._activeBuffer.scrollTop;Me<=this._activeBuffer.scrollBottom;++Me){var ye=this._activeBuffer.lines.get(this._activeBuffer.ybase+Me);ye.insertCells(this._activeBuffer.x,ae,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),ye.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},de.prototype.deleteColumns=function(ue){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var ae=ue.params[0]||1,Me=this._activeBuffer.scrollTop;Me<=this._activeBuffer.scrollBottom;++Me){var ye=this._activeBuffer.lines.get(this._activeBuffer.ybase+Me);ye.deleteCells(this._activeBuffer.x,ae,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),ye.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},de.prototype.eraseChars=function(ue){this._restrictCursor();var ae=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return ae&&(ae.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(ue.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},de.prototype.repeatPrecedingCharacter=function(ue){if(!this._parser.precedingCodepoint)return!0;for(var ae=ue.params[0]||1,Me=new Uint32Array(ae),ye=0;ye<ae;++ye)Me[ye]=this._parser.precedingCodepoint;return this.print(Me,0,Me.length),!0},de.prototype.sendDeviceAttributesPrimary=function(ue){return ue.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(D.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(D.C0.ESC+"[?6c")),!0},de.prototype.sendDeviceAttributesSecondary=function(ue){return ue.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(D.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(D.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(ue.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(D.C0.ESC+"[>83;40003;0c")),!0},de.prototype._is=function(ue){return 0===(this._optionsService.options.termName+"").indexOf(ue)},de.prototype.setMode=function(ue){for(var ae=0;ae<ue.length;ae++)switch(ue.params[ae]){case 4:this._coreService.modes.insertMode=!0}return!0},de.prototype.setModePrivate=function(ue){for(var ae=0;ae<ue.length;ae++)switch(ue.params[ae]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,M.DEFAULT_CHARSET),this._charsetService.setgCharset(1,M.DEFAULT_CHARSET),this._charsetService.setgCharset(2,M.DEFAULT_CHARSET),this._charsetService.setgCharset(3,M.DEFAULT_CHARSET);break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0;break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}return!0},de.prototype.resetMode=function(ue){for(var ae=0;ae<ue.length;ae++)switch(ue.params[ae]){case 4:this._coreService.modes.insertMode=!1}return!0},de.prototype.resetModePrivate=function(ue){for(var ae=0;ae<ue.length;ae++)switch(ue.params[ae]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),1049===ue.params[ae]&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}return!0},de.prototype._updateAttrColor=function(ue,ae,Me,ye,ot){return 2===ae?(ue|=50331648,ue&=-16777216,ue|=O.AttributeData.fromColorRGB([Me,ye,ot])):5===ae&&(ue&=-50331904,ue|=33554432|255&Me),ue},de.prototype._extractColor=function(ue,ae,Me){var ye=[0,0,-1,0,0,0],ot=0,He=0;do{if(ye[He+ot]=ue.params[ae+He],ue.hasSubParams(ae+He)){var _t=ue.getSubParams(ae+He),yt=0;do{5===ye[1]&&(ot=1),ye[He+yt+1+ot]=_t[yt]}while(++yt<_t.length&&yt+He+1+ot<ye.length);break}if(5===ye[1]&&He+ot>=2||2===ye[1]&&He+ot>=5)break;ye[1]&&(ot=1)}while(++He+ae<ue.length&&He+ot<ye.length);for(yt=2;yt<ye.length;++yt)-1===ye[yt]&&(ye[yt]=0);switch(ye[0]){case 38:Me.fg=this._updateAttrColor(Me.fg,ye[1],ye[3],ye[4],ye[5]);break;case 48:Me.bg=this._updateAttrColor(Me.bg,ye[1],ye[3],ye[4],ye[5]);break;case 58:Me.extended=Me.extended.clone(),Me.extended.underlineColor=this._updateAttrColor(Me.extended.underlineColor,ye[1],ye[3],ye[4],ye[5])}return He},de.prototype._processUnderline=function(ue,ae){ae.extended=ae.extended.clone(),(!~ue||ue>5)&&(ue=1),ae.extended.underlineStyle=ue,ae.fg|=268435456,0===ue&&(ae.fg&=-268435457),ae.updateExtended()},de.prototype.charAttributes=function(ue){if(1===ue.length&&0===ue.params[0])return this._curAttrData.fg=N.DEFAULT_ATTR_DATA.fg,this._curAttrData.bg=N.DEFAULT_ATTR_DATA.bg,!0;for(var ae,Me=ue.length,ye=this._curAttrData,ot=0;ot<Me;ot++)(ae=ue.params[ot])>=30&&ae<=37?(ye.fg&=-50331904,ye.fg|=16777216|ae-30):ae>=40&&ae<=47?(ye.bg&=-50331904,ye.bg|=16777216|ae-40):ae>=90&&ae<=97?(ye.fg&=-50331904,ye.fg|=16777224|ae-90):ae>=100&&ae<=107?(ye.bg&=-50331904,ye.bg|=16777224|ae-100):0===ae?(ye.fg=N.DEFAULT_ATTR_DATA.fg,ye.bg=N.DEFAULT_ATTR_DATA.bg):1===ae?ye.fg|=134217728:3===ae?ye.bg|=67108864:4===ae?(ye.fg|=268435456,this._processUnderline(ue.hasSubParams(ot)?ue.getSubParams(ot)[0]:1,ye)):5===ae?ye.fg|=536870912:7===ae?ye.fg|=67108864:8===ae?ye.fg|=1073741824:9===ae?ye.fg|=2147483648:2===ae?ye.bg|=134217728:21===ae?this._processUnderline(2,ye):22===ae?(ye.fg&=-134217729,ye.bg&=-134217729):23===ae?ye.bg&=-67108865:24===ae?ye.fg&=-268435457:25===ae?ye.fg&=-536870913:27===ae?ye.fg&=-67108865:28===ae?ye.fg&=-1073741825:29===ae?ye.fg&=2147483647:39===ae?(ye.fg&=-67108864,ye.fg|=16777215&N.DEFAULT_ATTR_DATA.fg):49===ae?(ye.bg&=-67108864,ye.bg|=16777215&N.DEFAULT_ATTR_DATA.bg):38===ae||48===ae||58===ae?ot+=this._extractColor(ue,ot,ye):59===ae?(ye.extended=ye.extended.clone(),ye.extended.underlineColor=-1,ye.updateExtended()):100===ae?(ye.fg&=-67108864,ye.fg|=16777215&N.DEFAULT_ATTR_DATA.fg,ye.bg&=-67108864,ye.bg|=16777215&N.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",ae);return!0},de.prototype.deviceStatus=function(ue){switch(ue.params[0]){case 5:this._coreService.triggerDataEvent(D.C0.ESC+"[0n");break;case 6:this._coreService.triggerDataEvent(D.C0.ESC+"["+(this._activeBuffer.y+1)+";"+(this._activeBuffer.x+1)+"R")}return!0},de.prototype.deviceStatusPrivate=function(ue){switch(ue.params[0]){case 6:this._coreService.triggerDataEvent(D.C0.ESC+"[?"+(this._activeBuffer.y+1)+";"+(this._activeBuffer.x+1)+"R")}return!0},de.prototype.softReset=function(ue){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=N.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0},de.prototype.setCursorStyle=function(ue){var ae=ue.params[0]||1;switch(ae){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}return this._optionsService.options.cursorBlink=ae%2==1,!0},de.prototype.setScrollRegion=function(ue){var ae,Me=ue.params[0]||1;return(ue.length<2||(ae=ue.params[1])>this._bufferService.rows||0===ae)&&(ae=this._bufferService.rows),ae>Me&&(this._activeBuffer.scrollTop=Me-1,this._activeBuffer.scrollBottom=ae-1,this._setCursor(0,0)),!0},de.prototype.windowOptions=function(ue){if(!oe(ue.params[0],this._optionsService.options.windowOptions))return!0;var ae=ue.length>1?ue.params[1]:0;switch(ue.params[0]){case 14:2!==ae&&this._onRequestWindowsOptionsReport.fire(P.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(P.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(D.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:0!==ae&&2!==ae||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==ae&&1!==ae||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==ae&&2!==ae||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==ae&&1!==ae||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0},de.prototype.saveCursor=function(ue){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0},de.prototype.restoreCursor=function(ue){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0},de.prototype.setTitle=function(ue){return this._windowTitle=ue,this._onTitleChange.fire(ue),!0},de.prototype.setIconName=function(ue){return this._iconName=ue,!0},de.prototype._parseAnsiColorChange=function(ue){for(var ae,Me={colors:[]},ye=/(\d+);rgb:([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})/gi;null!==(ae=ye.exec(ue));)Me.colors.push({colorIndex:parseInt(ae[1]),red:parseInt(ae[2],16),green:parseInt(ae[3],16),blue:parseInt(ae[4],16)});return 0===Me.colors.length?null:Me},de.prototype.setAnsiColor=function(ue){var ae=this._parseAnsiColorChange(ue);return ae?this._onAnsiColorChange.fire(ae):this._logService.warn("Expected format <num>;rgb:<rr>/<gg>/<bb> but got data: "+ue),!0},de.prototype.nextLine=function(){return this._activeBuffer.x=0,this.index(),!0},de.prototype.keypadApplicationMode=function(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0},de.prototype.keypadNumericMode=function(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0},de.prototype.selectDefaultCharset=function(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,M.DEFAULT_CHARSET),!0},de.prototype.selectCharset=function(ue){return 2!==ue.length?(this.selectDefaultCharset(),!0):("/"===ue[0]||this._charsetService.setgCharset(W[ue[0]],M.CHARSETS[ue[1]]||M.DEFAULT_CHARSET),!0)},de.prototype.index=function(){return this._restrictCursor(),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0},de.prototype.tabSet=function(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0},de.prototype.reverseIndex=function(){return this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop?(this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)):(this._activeBuffer.y--,this._restrictCursor()),!0},de.prototype.fullReset=function(){return this._parser.reset(),this._onRequestReset.fire(),!0},de.prototype.reset=function(){this._curAttrData=N.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=N.DEFAULT_ATTR_DATA.clone()},de.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},de.prototype.setgLevel=function(ue){return this._charsetService.setgLevel(ue),!0},de.prototype.screenAlignmentPattern=function(){var ue=new S.CellData;ue.content=1<<22|"E".charCodeAt(0),ue.fg=this._curAttrData.fg,ue.bg=this._curAttrData.bg,this._setCursor(0,0);for(var ae=0;ae<this._bufferService.rows;++ae){var ye=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y+ae);ye&&(ye.fill(ue),ye.isWrapped=!1)}return this._dirtyRowService.markAllDirty(),this._setCursor(0,0),!0},de}(y.Disposable);T.InputHandler=se},844:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.getDisposeArrayDisposable=T.disposeArray=T.Disposable=void 0;var I=function(){function v(){this._disposables=[],this._isDisposed=!1}return v.prototype.dispose=function(){this._isDisposed=!0;for(var P=0,D=this._disposables;P<D.length;P++)D[P].dispose();this._disposables.length=0},v.prototype.register=function(P){return this._disposables.push(P),P},v.prototype.unregister=function(P){var D=this._disposables.indexOf(P);-1!==D&&this._disposables.splice(D,1)},v}();function C(v){for(var P=0,D=v;P<D.length;P++)D[P].dispose();v.length=0}T.Disposable=I,T.disposeArray=C,T.getDisposeArrayDisposable=function(v){return{dispose:function(){return C(v)}}}},6114:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.isLinux=T.isWindows=T.isIphone=T.isIpad=T.isMac=T.isSafari=T.isFirefox=void 0;var I="undefined"==typeof navigator,C=I?"node":navigator.userAgent,v=I?"node":navigator.platform;T.isFirefox=C.includes("Firefox"),T.isSafari=/^((?!chrome|android).)*safari/i.test(C),T.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(v),T.isIpad="iPad"===v,T.isIphone="iPhone"===v,T.isWindows=["Windows","Win16","Win32","WinCE"].includes(v),T.isLinux=v.indexOf("Linux")>=0},8273:function(Z,T){function I(C,v,P,D){if(void 0===P&&(P=0),void 0===D&&(D=C.length),P>=C.length)return C;D=D>=C.length?C.length:(C.length+D)%C.length;for(var M=P=(C.length+P)%C.length;M<D;++M)C[M]=v;return C}Object.defineProperty(T,"__esModule",{value:!0}),T.concat=T.fillFallback=T.fill=void 0,T.fill=function(C,v,P,D){return C.fill?C.fill(v,P,D):I(C,v,P,D)},T.fillFallback=I,T.concat=function(C,v){var P=new C.constructor(C.length+v.length);return P.set(C),P.set(v,C.length),P}},9282:function(Z,T,I){Object.defineProperty(T,"__esModule",{value:!0}),T.updateWindowsModeWrappedState=void 0;var C=I(643);T.updateWindowsModeWrappedState=function(v){var P=v.buffer.lines.get(v.buffer.ybase+v.buffer.y-1),D=null==P?void 0:P.get(v.cols-1),M=v.buffer.lines.get(v.buffer.ybase+v.buffer.y);M&&D&&(M.isWrapped=D[C.CHAR_DATA_CODE_INDEX]!==C.NULL_CELL_CODE&&D[C.CHAR_DATA_CODE_INDEX]!==C.WHITESPACE_CELL_CODE)}},3734:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.ExtendedAttrs=T.AttributeData=void 0;var I=function(){function v(){this.fg=0,this.bg=0,this.extended=new C}return v.toColorRGB=function(P){return[P>>>16&255,P>>>8&255,255&P]},v.fromColorRGB=function(P){return(255&P[0])<<16|(255&P[1])<<8|255&P[2]},v.prototype.clone=function(){var P=new v;return P.fg=this.fg,P.bg=this.bg,P.extended=this.extended.clone(),P},v.prototype.isInverse=function(){return 67108864&this.fg},v.prototype.isBold=function(){return 134217728&this.fg},v.prototype.isUnderline=function(){return 268435456&this.fg},v.prototype.isBlink=function(){return 536870912&this.fg},v.prototype.isInvisible=function(){return 1073741824&this.fg},v.prototype.isItalic=function(){return 67108864&this.bg},v.prototype.isDim=function(){return 134217728&this.bg},v.prototype.isStrikethrough=function(){return 2147483648&this.fg},v.prototype.getFgColorMode=function(){return 50331648&this.fg},v.prototype.getBgColorMode=function(){return 50331648&this.bg},v.prototype.isFgRGB=function(){return 50331648==(50331648&this.fg)},v.prototype.isBgRGB=function(){return 50331648==(50331648&this.bg)},v.prototype.isFgPalette=function(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)},v.prototype.isBgPalette=function(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)},v.prototype.isFgDefault=function(){return 0==(50331648&this.fg)},v.prototype.isBgDefault=function(){return 0==(50331648&this.bg)},v.prototype.isAttributeDefault=function(){return 0===this.fg&&0===this.bg},v.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},v.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},v.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},v.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},v.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},v.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},v.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()},v.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()},v.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()},v.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},v}();T.AttributeData=I;var C=function(){function v(P,D){void 0===P&&(P=0),void 0===D&&(D=-1),this.underlineStyle=P,this.underlineColor=D}return v.prototype.clone=function(){return new v(this.underlineStyle,this.underlineColor)},v.prototype.isEmpty=function(){return 0===this.underlineStyle},v}();T.ExtendedAttrs=C},9092:function(Z,T,I){Object.defineProperty(T,"__esModule",{value:!0}),T.BufferStringIterator=T.Buffer=T.MAX_BUFFER_SIZE=void 0;var C=I(6349),v=I(8437),P=I(511),D=I(643),M=I(4634),A=I(4863),y=I(7116),g=I(3734);T.MAX_BUFFER_SIZE=4294967295;var k=function(){function E(x,S,O){this._hasScrollback=x,this._optionsService=S,this._bufferService=O,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=v.DEFAULT_ATTR_DATA.clone(),this.savedCharset=y.DEFAULT_CHARSET,this.markers=[],this._nullCell=P.CellData.fromCharData([0,D.NULL_CELL_CHAR,D.NULL_CELL_WIDTH,D.NULL_CELL_CODE]),this._whitespaceCell=P.CellData.fromCharData([0,D.WHITESPACE_CELL_CHAR,D.WHITESPACE_CELL_WIDTH,D.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new C.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return E.prototype.getNullCell=function(x){return x?(this._nullCell.fg=x.fg,this._nullCell.bg=x.bg,this._nullCell.extended=x.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new g.ExtendedAttrs),this._nullCell},E.prototype.getWhitespaceCell=function(x){return x?(this._whitespaceCell.fg=x.fg,this._whitespaceCell.bg=x.bg,this._whitespaceCell.extended=x.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new g.ExtendedAttrs),this._whitespaceCell},E.prototype.getBlankLine=function(x,S){return new v.BufferLine(this._bufferService.cols,this.getNullCell(x),S)},Object.defineProperty(E.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"isCursorInViewport",{get:function(){var S=this.ybase+this.y-this.ydisp;return S>=0&&S<this._rows},enumerable:!1,configurable:!0}),E.prototype._getCorrectBufferLength=function(x){if(!this._hasScrollback)return x;var S=x+this._optionsService.options.scrollback;return S>T.MAX_BUFFER_SIZE?T.MAX_BUFFER_SIZE:S},E.prototype.fillViewportRows=function(x){if(0===this.lines.length){void 0===x&&(x=v.DEFAULT_ATTR_DATA);for(var S=this._rows;S--;)this.lines.push(this.getBlankLine(x))}},E.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new C.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},E.prototype.resize=function(x,S){var O=this.getNullCell(v.DEFAULT_ATTR_DATA),L=this._getCorrectBufferLength(S);if(L>this.lines.maxLength&&(this.lines.maxLength=L),this.lines.length>0){if(this._cols<x)for(var j=0;j<this.lines.length;j++)this.lines.get(j).resize(x,O);var K=0;if(this._rows<S)for(var W=this._rows;W<S;W++)this.lines.length<S+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new v.BufferLine(x,O)):this.ybase>0&&this.lines.length<=this.ybase+this.y+K+1?(this.ybase--,K++,this.ydisp>0&&this.ydisp--):this.lines.push(new v.BufferLine(x,O)));else for(W=this._rows;W>S;W--)this.lines.length>S+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(L<this.lines.maxLength){var J=this.lines.length-L;J>0&&(this.lines.trimStart(J),this.ybase=Math.max(this.ybase-J,0),this.ydisp=Math.max(this.ydisp-J,0),this.savedY=Math.max(this.savedY-J,0)),this.lines.maxLength=L}this.x=Math.min(this.x,x-1),this.y=Math.min(this.y,S-1),K&&(this.y+=K),this.savedX=Math.min(this.savedX,x-1),this.scrollTop=0}if(this.scrollBottom=S-1,this._isReflowEnabled&&(this._reflow(x,S),this._cols>x))for(j=0;j<this.lines.length;j++)this.lines.get(j).resize(x,O);this._cols=x,this._rows=S},Object.defineProperty(E.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),E.prototype._reflow=function(x,S){this._cols!==x&&(x>this._cols?this._reflowLarger(x,S):this._reflowSmaller(x,S))},E.prototype._reflowLarger=function(x,S){var O=M.reflowLargerGetLinesToRemove(this.lines,this._cols,x,this.ybase+this.y,this.getNullCell(v.DEFAULT_ATTR_DATA));if(O.length>0){var L=M.reflowLargerCreateNewLayout(this.lines,O);M.reflowLargerApplyNewLayout(this.lines,L.layout),this._reflowLargerAdjustViewport(x,S,L.countRemoved)}},E.prototype._reflowLargerAdjustViewport=function(x,S,O){for(var L=this.getNullCell(v.DEFAULT_ATTR_DATA),j=O;j-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length<S&&this.lines.push(new v.BufferLine(x,L))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-O,0)},E.prototype._reflowSmaller=function(x,S){for(var O=this.getNullCell(v.DEFAULT_ATTR_DATA),L=[],j=0,K=this.lines.length-1;K>=0;K--){var W=this.lines.get(K);if(!(!W||!W.isWrapped&&W.getTrimmedLength()<=x)){for(var J=[W];W.isWrapped&&K>0;)W=this.lines.get(--K),J.unshift(W);var oe=this.ybase+this.y;if(!(oe>=K&&oe<K+J.length)){var te,se=J[J.length-1].getTrimmedLength(),le=M.reflowSmallerGetNewLineLengths(J,this._cols,x),de=le.length-J.length;te=0===this.ybase&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+de):Math.max(0,this.lines.length-this.lines.maxLength+de);for(var ue=[],ae=0;ae<de;ae++){var Me=this.getBlankLine(v.DEFAULT_ATTR_DATA,!0);ue.push(Me)}ue.length>0&&(L.push({start:K+J.length+j,newLines:ue}),j+=ue.length),J.push.apply(J,ue);var ye=le.length-1,ot=le[ye];0===ot&&(ot=le[--ye]);for(var He=J.length-de-1,_t=se;He>=0;){var yt=Math.min(_t,ot);if(J[ye].copyCellsFrom(J[He],_t-yt,ot-yt,yt,!0),0==(ot-=yt)&&(ot=le[--ye]),0==(_t-=yt)){He--;var Bt=Math.max(He,0);_t=M.getWrappedLineTrimmedLength(J,Bt,this._cols)}}for(ae=0;ae<J.length;ae++)le[ae]<x&&J[ae].setCell(le[ae],O);for(var Se=de-te;Se-- >0;)0===this.ybase?this.y<S-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+j)-S&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+de,this.ybase+S-1)}}}if(L.length>0){var De=[],Ve=[];for(ae=0;ae<this.lines.length;ae++)Ve.push(this.lines.get(ae));var ct=this.lines.length,Je=ct-1,Ut=0,Et=L[Ut];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+j);var vt=0;for(ae=Math.min(this.lines.maxLength-1,ct+j-1);ae>=0;ae--)if(Et&&Et.start>Je+vt){for(var Kt=Et.newLines.length-1;Kt>=0;Kt--)this.lines.set(ae--,Et.newLines[Kt]);ae++,De.push({index:Je+1,amount:Et.newLines.length}),vt+=Et.newLines.length,Et=L[++Ut]}else this.lines.set(ae,Ve[Je--]);var Vt=0;for(ae=De.length-1;ae>=0;ae--)De[ae].index+=Vt,this.lines.onInsertEmitter.fire(De[ae]),Vt+=De[ae].amount;var St=Math.max(0,ct+j-this.lines.maxLength);St>0&&this.lines.onTrimEmitter.fire(St)}},E.prototype.stringIndexToBufferIndex=function(x,S,O){for(void 0===O&&(O=!1);S;){var L=this.lines.get(x);if(!L)return[-1,-1];for(var j=O?L.getTrimmedLength():L.length,K=0;K<j;++K)if(L.get(K)[D.CHAR_DATA_WIDTH_INDEX]&&(S-=L.get(K)[D.CHAR_DATA_CHAR_INDEX].length||1),S<0)return[x,K];x++}return[x,0]},E.prototype.translateBufferLineToString=function(x,S,O,L){void 0===O&&(O=0);var j=this.lines.get(x);return j?j.translateToString(S,O,L):""},E.prototype.getWrappedRangeForLine=function(x){for(var S=x,O=x;S>0&&this.lines.get(S).isWrapped;)S--;for(;O+1<this.lines.length&&this.lines.get(O+1).isWrapped;)O++;return{first:S,last:O}},E.prototype.setupTabStops=function(x){for(null!=x?this.tabs[x]||(x=this.prevStop(x)):(this.tabs={},x=0);x<this._cols;x+=this._optionsService.options.tabStopWidth)this.tabs[x]=!0},E.prototype.prevStop=function(x){for(null==x&&(x=this.x);!this.tabs[--x]&&x>0;);return x>=this._cols?this._cols-1:x<0?0:x},E.prototype.nextStop=function(x){for(null==x&&(x=this.x);!this.tabs[++x]&&x<this._cols;);return x>=this._cols?this._cols-1:x<0?0:x},E.prototype.addMarker=function(x){var S=this,O=new A.Marker(x);return this.markers.push(O),O.register(this.lines.onTrim(function(L){O.line-=L,O.line<0&&O.dispose()})),O.register(this.lines.onInsert(function(L){O.line>=L.index&&(O.line+=L.amount)})),O.register(this.lines.onDelete(function(L){O.line>=L.index&&O.line<L.index+L.amount&&O.dispose(),O.line>L.index&&(O.line-=L.amount)})),O.register(O.onDispose(function(){return S._removeMarker(O)})),O},E.prototype._removeMarker=function(x){this.markers.splice(this.markers.indexOf(x),1)},E.prototype.iterator=function(x,S,O,L,j){return new N(this,x,S,O,L,j)},E}();T.Buffer=k;var N=function(){function E(x,S,O,L,j,K){void 0===O&&(O=0),void 0===L&&(L=x.lines.length),void 0===j&&(j=0),void 0===K&&(K=0),this._buffer=x,this._trimRight=S,this._startIndex=O,this._endIndex=L,this._startOverscan=j,this._endOverscan=K,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return E.prototype.hasNext=function(){return this._current<this._endIndex},E.prototype.next=function(){var x=this._buffer.getWrappedRangeForLine(this._current);x.first<this._startIndex-this._startOverscan&&(x.first=this._startIndex-this._startOverscan),x.last>this._endIndex+this._endOverscan&&(x.last=this._endIndex+this._endOverscan),x.first=Math.max(x.first,0),x.last=Math.min(x.last,this._buffer.lines.length);for(var S="",O=x.first;O<=x.last;++O)S+=this._buffer.translateBufferLineToString(O,this._trimRight);return this._current=x.last+1,{range:x,content:S}},E}();T.BufferStringIterator=N},8437:function(Z,T,I){Object.defineProperty(T,"__esModule",{value:!0}),T.BufferLine=T.DEFAULT_ATTR_DATA=void 0;var C=I(482),v=I(643),P=I(511),D=I(3734);T.DEFAULT_ATTR_DATA=Object.freeze(new D.AttributeData);var M=function(){function A(y,g,k){void 0===k&&(k=!1),this.isWrapped=k,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*y);for(var N=g||P.CellData.fromCharData([0,v.NULL_CELL_CHAR,v.NULL_CELL_WIDTH,v.NULL_CELL_CODE]),E=0;E<y;++E)this.setCell(E,N);this.length=y}return A.prototype.get=function(y){var g=this._data[3*y+0],k=2097151&g;return[this._data[3*y+1],2097152&g?this._combined[y]:k?C.stringFromCodePoint(k):"",g>>22,2097152&g?this._combined[y].charCodeAt(this._combined[y].length-1):k]},A.prototype.set=function(y,g){this._data[3*y+1]=g[v.CHAR_DATA_ATTR_INDEX],g[v.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[y]=g[1],this._data[3*y+0]=2097152|y|g[v.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*y+0]=g[v.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|g[v.CHAR_DATA_WIDTH_INDEX]<<22},A.prototype.getWidth=function(y){return this._data[3*y+0]>>22},A.prototype.hasWidth=function(y){return 12582912&this._data[3*y+0]},A.prototype.getFg=function(y){return this._data[3*y+1]},A.prototype.getBg=function(y){return this._data[3*y+2]},A.prototype.hasContent=function(y){return 4194303&this._data[3*y+0]},A.prototype.getCodePoint=function(y){var g=this._data[3*y+0];return 2097152&g?this._combined[y].charCodeAt(this._combined[y].length-1):2097151&g},A.prototype.isCombined=function(y){return 2097152&this._data[3*y+0]},A.prototype.getString=function(y){var g=this._data[3*y+0];return 2097152&g?this._combined[y]:2097151&g?C.stringFromCodePoint(2097151&g):""},A.prototype.loadCell=function(y,g){var k=3*y;return g.content=this._data[k+0],g.fg=this._data[k+1],g.bg=this._data[k+2],2097152&g.content&&(g.combinedData=this._combined[y]),268435456&g.bg&&(g.extended=this._extendedAttrs[y]),g},A.prototype.setCell=function(y,g){2097152&g.content&&(this._combined[y]=g.combinedData),268435456&g.bg&&(this._extendedAttrs[y]=g.extended),this._data[3*y+0]=g.content,this._data[3*y+1]=g.fg,this._data[3*y+2]=g.bg},A.prototype.setCellFromCodePoint=function(y,g,k,N,E,x){268435456&E&&(this._extendedAttrs[y]=x),this._data[3*y+0]=g|k<<22,this._data[3*y+1]=N,this._data[3*y+2]=E},A.prototype.addCodepointToCell=function(y,g){var k=this._data[3*y+0];2097152&k?this._combined[y]+=C.stringFromCodePoint(g):(2097151&k?(this._combined[y]=C.stringFromCodePoint(2097151&k)+C.stringFromCodePoint(g),k&=-2097152,k|=2097152):k=g|1<<22,this._data[3*y+0]=k)},A.prototype.insertCells=function(y,g,k,N){if((y%=this.length)&&2===this.getWidth(y-1)&&this.setCellFromCodePoint(y-1,0,1,(null==N?void 0:N.fg)||0,(null==N?void 0:N.bg)||0,(null==N?void 0:N.extended)||new D.ExtendedAttrs),g<this.length-y){for(var E=new P.CellData,x=this.length-y-g-1;x>=0;--x)this.setCell(y+g+x,this.loadCell(y+x,E));for(x=0;x<g;++x)this.setCell(y+x,k)}else for(x=y;x<this.length;++x)this.setCell(x,k);2===this.getWidth(this.length-1)&&this.setCellFromCodePoint(this.length-1,0,1,(null==N?void 0:N.fg)||0,(null==N?void 0:N.bg)||0,(null==N?void 0:N.extended)||new D.ExtendedAttrs)},A.prototype.deleteCells=function(y,g,k,N){if(g<this.length-(y%=this.length)){for(var E=new P.CellData,x=0;x<this.length-y-g;++x)this.setCell(y+x,this.loadCell(y+g+x,E));for(x=this.length-g;x<this.length;++x)this.setCell(x,k)}else for(x=y;x<this.length;++x)this.setCell(x,k);y&&2===this.getWidth(y-1)&&this.setCellFromCodePoint(y-1,0,1,(null==N?void 0:N.fg)||0,(null==N?void 0:N.bg)||0,(null==N?void 0:N.extended)||new D.ExtendedAttrs),0!==this.getWidth(y)||this.hasContent(y)||this.setCellFromCodePoint(y,0,1,(null==N?void 0:N.fg)||0,(null==N?void 0:N.bg)||0,(null==N?void 0:N.extended)||new D.ExtendedAttrs)},A.prototype.replaceCells=function(y,g,k,N){for(y&&2===this.getWidth(y-1)&&this.setCellFromCodePoint(y-1,0,1,(null==N?void 0:N.fg)||0,(null==N?void 0:N.bg)||0,(null==N?void 0:N.extended)||new D.ExtendedAttrs),g<this.length&&2===this.getWidth(g-1)&&this.setCellFromCodePoint(g,0,1,(null==N?void 0:N.fg)||0,(null==N?void 0:N.bg)||0,(null==N?void 0:N.extended)||new D.ExtendedAttrs);y<g&&y<this.length;)this.setCell(y++,k)},A.prototype.resize=function(y,g){if(y!==this.length){if(y>this.length){var k=new Uint32Array(3*y);this.length&&k.set(3*y<this._data.length?this._data.subarray(0,3*y):this._data),this._data=k;for(var N=this.length;N<y;++N)this.setCell(N,g)}else if(y){(k=new Uint32Array(3*y)).set(this._data.subarray(0,3*y)),this._data=k;var E=Object.keys(this._combined);for(N=0;N<E.length;N++){var x=parseInt(E[N],10);x>=y&&delete this._combined[x]}}else this._data=new Uint32Array(0),this._combined={};this.length=y}},A.prototype.fill=function(y){this._combined={},this._extendedAttrs={};for(var g=0;g<this.length;++g)this.setCell(g,y)},A.prototype.copyFrom=function(y){for(var g in this.length!==y.length?this._data=new Uint32Array(y._data):this._data.set(y._data),this.length=y.length,this._combined={},y._combined)this._combined[g]=y._combined[g];for(var g in this._extendedAttrs={},y._extendedAttrs)this._extendedAttrs[g]=y._extendedAttrs[g];this.isWrapped=y.isWrapped},A.prototype.clone=function(){var y=new A(0);for(var g in y._data=new Uint32Array(this._data),y.length=this.length,this._combined)y._combined[g]=this._combined[g];for(var g in this._extendedAttrs)y._extendedAttrs[g]=this._extendedAttrs[g];return y.isWrapped=this.isWrapped,y},A.prototype.getTrimmedLength=function(){for(var y=this.length-1;y>=0;--y)if(4194303&this._data[3*y+0])return y+(this._data[3*y+0]>>22);return 0},A.prototype.copyCellsFrom=function(y,g,k,N,E){var x=y._data;if(E)for(var S=N-1;S>=0;S--)for(var O=0;O<3;O++)this._data[3*(k+S)+O]=x[3*(g+S)+O];else for(S=0;S<N;S++)for(O=0;O<3;O++)this._data[3*(k+S)+O]=x[3*(g+S)+O];var L=Object.keys(y._combined);for(O=0;O<L.length;O++){var j=parseInt(L[O],10);j>=g&&(this._combined[j-g+k]=y._combined[j])}},A.prototype.translateToString=function(y,g,k){void 0===y&&(y=!1),void 0===g&&(g=0),void 0===k&&(k=this.length),y&&(k=Math.min(k,this.getTrimmedLength()));for(var N="";g<k;){var E=this._data[3*g+0],x=2097151&E;N+=2097152&E?this._combined[g]:x?C.stringFromCodePoint(x):v.WHITESPACE_CELL_CHAR,g+=E>>22||1}return N},A}();T.BufferLine=M},4841:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.getRangeLength=void 0,T.getRangeLength=function(I,C){if(I.start.y>I.end.y)throw new Error("Buffer range end ("+I.end.x+", "+I.end.y+") cannot be before start ("+I.start.x+", "+I.start.y+")");return C*(I.end.y-I.start.y)+(I.end.x-I.start.x+1)}},4634:function(Z,T){function I(C,v,P){if(v===C.length-1)return C[v].getTrimmedLength();var D=!C[v].hasContent(P-1)&&1===C[v].getWidth(P-1),M=2===C[v+1].getWidth(0);return D&&M?P-1:P}Object.defineProperty(T,"__esModule",{value:!0}),T.getWrappedLineTrimmedLength=T.reflowSmallerGetNewLineLengths=T.reflowLargerApplyNewLayout=T.reflowLargerCreateNewLayout=T.reflowLargerGetLinesToRemove=void 0,T.reflowLargerGetLinesToRemove=function(C,v,P,D,M){for(var A=[],y=0;y<C.length-1;y++){var g=y,k=C.get(++g);if(k.isWrapped){for(var N=[C.get(y)];g<C.length&&k.isWrapped;)N.push(k),k=C.get(++g);if(D>=y&&D<g)y+=N.length-1;else{for(var E=0,x=I(N,E,v),S=1,O=0;S<N.length;){var L=I(N,S,v),W=Math.min(L-O,P-x);N[E].copyCellsFrom(N[S],O,x,W,!1),(x+=W)===P&&(E++,x=0),(O+=W)===L&&(S++,O=0),0===x&&0!==E&&2===N[E-1].getWidth(P-1)&&(N[E].copyCellsFrom(N[E-1],P-1,x++,1,!1),N[E-1].setCell(P-1,M))}N[E].replaceCells(x,P,M);for(var J=0,oe=N.length-1;oe>0&&(oe>E||0===N[oe].getTrimmedLength());oe--)J++;J>0&&(A.push(y+N.length-J),A.push(J)),y+=N.length-1}}}return A},T.reflowLargerCreateNewLayout=function(C,v){for(var P=[],D=0,M=v[D],A=0,y=0;y<C.length;y++)if(M===y){var g=v[++D];C.onDeleteEmitter.fire({index:y-A,amount:g}),y+=g-1,A+=g,M=v[++D]}else P.push(y);return{layout:P,countRemoved:A}},T.reflowLargerApplyNewLayout=function(C,v){for(var P=[],D=0;D<v.length;D++)P.push(C.get(v[D]));for(D=0;D<P.length;D++)C.set(D,P[D]);C.length=v.length},T.reflowSmallerGetNewLineLengths=function(C,v,P){for(var D=[],M=C.map(function(x,S){return I(C,S,v)}).reduce(function(x,S){return x+S}),A=0,y=0,g=0;g<M;){if(M-g<P){D.push(M-g);break}A+=P;var k=I(C,y,v);A>k&&(A-=k,y++);var N=2===C[y].getWidth(A-1);N&&A--;var E=N?P-1:P;D.push(E),g+=E}return D},T.getWrappedLineTrimmedLength=I},5295:function(Z,T,I){var C,v=this&&this.__extends||(C=function(y,g){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,N){k.__proto__=N}||function(k,N){for(var E in N)Object.prototype.hasOwnProperty.call(N,E)&&(k[E]=N[E])})(y,g)},function(A,y){if("function"!=typeof y&&null!==y)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function g(){this.constructor=A}C(A,y),A.prototype=null===y?Object.create(y):(g.prototype=y.prototype,new g)});Object.defineProperty(T,"__esModule",{value:!0}),T.BufferSet=void 0;var P=I(9092),D=I(8460),M=function(A){function y(g,k){var N=A.call(this)||this;return N._optionsService=g,N._bufferService=k,N._onBufferActivate=N.register(new D.EventEmitter),N.reset(),N}return v(y,A),Object.defineProperty(y.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),y.prototype.reset=function(){this._normal=new P.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new P.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()},Object.defineProperty(y.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),y.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},y.prototype.activateAltBuffer=function(g){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(g),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},y.prototype.resize=function(g,k){this._normal.resize(g,k),this._alt.resize(g,k)},y.prototype.setupTabStops=function(g){this._normal.setupTabStops(g),this._alt.setupTabStops(g)},y}(I(844).Disposable);T.BufferSet=M},511:function(Z,T,I){var C,v=this&&this.__extends||(C=function(g,k){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,E){N.__proto__=E}||function(N,E){for(var x in E)Object.prototype.hasOwnProperty.call(E,x)&&(N[x]=E[x])})(g,k)},function(y,g){if("function"!=typeof g&&null!==g)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");function k(){this.constructor=y}C(y,g),y.prototype=null===g?Object.create(g):(k.prototype=g.prototype,new k)});Object.defineProperty(T,"__esModule",{value:!0}),T.CellData=void 0;var P=I(482),D=I(643),M=I(3734),A=function(y){function g(){var k=null!==y&&y.apply(this,arguments)||this;return k.content=0,k.fg=0,k.bg=0,k.extended=new M.ExtendedAttrs,k.combinedData="",k}return v(g,y),g.fromCharData=function(k){var N=new g;return N.setFromCharData(k),N},g.prototype.isCombined=function(){return 2097152&this.content},g.prototype.getWidth=function(){return this.content>>22},g.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?P.stringFromCodePoint(2097151&this.content):""},g.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},g.prototype.setFromCharData=function(k){this.fg=k[D.CHAR_DATA_ATTR_INDEX],this.bg=0;var N=!1;if(k[D.CHAR_DATA_CHAR_INDEX].length>2)N=!0;else if(2===k[D.CHAR_DATA_CHAR_INDEX].length){var E=k[D.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=E&&E<=56319){var x=k[D.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=x&&x<=57343?this.content=1024*(E-55296)+x-56320+65536|k[D.CHAR_DATA_WIDTH_INDEX]<<22:N=!0}else N=!0}else this.content=k[D.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|k[D.CHAR_DATA_WIDTH_INDEX]<<22;N&&(this.combinedData=k[D.CHAR_DATA_CHAR_INDEX],this.content=2097152|k[D.CHAR_DATA_WIDTH_INDEX]<<22)},g.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},g}(M.AttributeData);T.CellData=A},643:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.WHITESPACE_CELL_CODE=T.WHITESPACE_CELL_WIDTH=T.WHITESPACE_CELL_CHAR=T.NULL_CELL_CODE=T.NULL_CELL_WIDTH=T.NULL_CELL_CHAR=T.CHAR_DATA_CODE_INDEX=T.CHAR_DATA_WIDTH_INDEX=T.CHAR_DATA_CHAR_INDEX=T.CHAR_DATA_ATTR_INDEX=T.DEFAULT_ATTR=T.DEFAULT_COLOR=void 0,T.DEFAULT_COLOR=256,T.DEFAULT_ATTR=256|T.DEFAULT_COLOR<<9,T.CHAR_DATA_ATTR_INDEX=0,T.CHAR_DATA_CHAR_INDEX=1,T.CHAR_DATA_WIDTH_INDEX=2,T.CHAR_DATA_CODE_INDEX=3,T.NULL_CELL_CHAR="",T.NULL_CELL_WIDTH=1,T.NULL_CELL_CODE=0,T.WHITESPACE_CELL_CHAR=" ",T.WHITESPACE_CELL_WIDTH=1,T.WHITESPACE_CELL_CODE=32},4863:function(Z,T,I){var C,v=this&&this.__extends||(C=function(A,y){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,k){g.__proto__=k}||function(g,k){for(var N in k)Object.prototype.hasOwnProperty.call(k,N)&&(g[N]=k[N])})(A,y)},function(M,A){if("function"!=typeof A&&null!==A)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function y(){this.constructor=M}C(M,A),M.prototype=null===A?Object.create(A):(y.prototype=A.prototype,new y)});Object.defineProperty(T,"__esModule",{value:!0}),T.Marker=void 0;var P=I(8460),D=function(M){function A(y){var g=M.call(this)||this;return g.line=y,g._id=A._nextId++,g.isDisposed=!1,g._onDispose=new P.EventEmitter,g}return v(A,M),Object.defineProperty(A.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),A.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),M.prototype.dispose.call(this))},A._nextId=1,A}(I(844).Disposable);T.Marker=D},7116:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.DEFAULT_CHARSET=T.CHARSETS=void 0,T.CHARSETS={},T.DEFAULT_CHARSET=T.CHARSETS.B,T.CHARSETS[0]={"`":"\u25c6",a:"\u2592",b:"\u2409",c:"\u240c",d:"\u240d",e:"\u240a",f:"\xb0",g:"\xb1",h:"\u2424",i:"\u240b",j:"\u2518",k:"\u2510",l:"\u250c",m:"\u2514",n:"\u253c",o:"\u23ba",p:"\u23bb",q:"\u2500",r:"\u23bc",s:"\u23bd",t:"\u251c",u:"\u2524",v:"\u2534",w:"\u252c",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03c0","|":"\u2260","}":"\xa3","~":"\xb7"},T.CHARSETS.A={"#":"\xa3"},T.CHARSETS.B=void 0,T.CHARSETS[4]={"#":"\xa3","@":"\xbe","[":"ij","\\":"\xbd","]":"|","{":"\xa8","|":"f","}":"\xbc","~":"\xb4"},T.CHARSETS.C=T.CHARSETS[5]={"[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},T.CHARSETS.R={"#":"\xa3","@":"\xe0","[":"\xb0","\\":"\xe7","]":"\xa7","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xa8"},T.CHARSETS.Q={"@":"\xe0","[":"\xe2","\\":"\xe7","]":"\xea","^":"\xee","`":"\xf4","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xfb"},T.CHARSETS.K={"@":"\xa7","[":"\xc4","\\":"\xd6","]":"\xdc","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xdf"},T.CHARSETS.Y={"#":"\xa3","@":"\xa7","[":"\xb0","\\":"\xe7","]":"\xe9","`":"\xf9","{":"\xe0","|":"\xf2","}":"\xe8","~":"\xec"},T.CHARSETS.E=T.CHARSETS[6]={"@":"\xc4","[":"\xc6","\\":"\xd8","]":"\xc5","^":"\xdc","`":"\xe4","{":"\xe6","|":"\xf8","}":"\xe5","~":"\xfc"},T.CHARSETS.Z={"#":"\xa3","@":"\xa7","[":"\xa1","\\":"\xd1","]":"\xbf","{":"\xb0","|":"\xf1","}":"\xe7"},T.CHARSETS.H=T.CHARSETS[7]={"@":"\xc9","[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},T.CHARSETS["="]={"#":"\xf9","@":"\xe0","[":"\xe9","\\":"\xe7","]":"\xea","^":"\xee",_:"\xe8","`":"\xf4","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xfb"}},2584:function(Z,T){var I,C;Object.defineProperty(T,"__esModule",{value:!0}),T.C1=T.C0=void 0,(C=T.C0||(T.C0={})).NUL="\0",C.SOH="\x01",C.STX="\x02",C.ETX="\x03",C.EOT="\x04",C.ENQ="\x05",C.ACK="\x06",C.BEL="\x07",C.BS="\b",C.HT="\t",C.LF="\n",C.VT="\v",C.FF="\f",C.CR="\r",C.SO="\x0e",C.SI="\x0f",C.DLE="\x10",C.DC1="\x11",C.DC2="\x12",C.DC3="\x13",C.DC4="\x14",C.NAK="\x15",C.SYN="\x16",C.ETB="\x17",C.CAN="\x18",C.EM="\x19",C.SUB="\x1a",C.ESC="\x1b",C.FS="\x1c",C.GS="\x1d",C.RS="\x1e",C.US="\x1f",C.SP=" ",C.DEL="\x7f",(I=T.C1||(T.C1={})).PAD="\x80",I.HOP="\x81",I.BPH="\x82",I.NBH="\x83",I.IND="\x84",I.NEL="\x85",I.SSA="\x86",I.ESA="\x87",I.HTS="\x88",I.HTJ="\x89",I.VTS="\x8a",I.PLD="\x8b",I.PLU="\x8c",I.RI="\x8d",I.SS2="\x8e",I.SS3="\x8f",I.DCS="\x90",I.PU1="\x91",I.PU2="\x92",I.STS="\x93",I.CCH="\x94",I.MW="\x95",I.SPA="\x96",I.EPA="\x97",I.SOS="\x98",I.SGCI="\x99",I.SCI="\x9a",I.CSI="\x9b",I.ST="\x9c",I.OSC="\x9d",I.PM="\x9e",I.APC="\x9f"},7399:function(Z,T,I){Object.defineProperty(T,"__esModule",{value:!0}),T.evaluateKeyboardEvent=void 0;var C=I(2584),v={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};T.evaluateKeyboardEvent=function(P,D,M,A){var y={type:0,cancel:!1,key:void 0},g=(P.shiftKey?1:0)|(P.altKey?2:0)|(P.ctrlKey?4:0)|(P.metaKey?8:0);switch(P.keyCode){case 0:"UIKeyInputUpArrow"===P.key?y.key=D?C.C0.ESC+"OA":C.C0.ESC+"[A":"UIKeyInputLeftArrow"===P.key?y.key=D?C.C0.ESC+"OD":C.C0.ESC+"[D":"UIKeyInputRightArrow"===P.key?y.key=D?C.C0.ESC+"OC":C.C0.ESC+"[C":"UIKeyInputDownArrow"===P.key&&(y.key=D?C.C0.ESC+"OB":C.C0.ESC+"[B");break;case 8:if(P.shiftKey){y.key=C.C0.BS;break}if(P.altKey){y.key=C.C0.ESC+C.C0.DEL;break}y.key=C.C0.DEL;break;case 9:if(P.shiftKey){y.key=C.C0.ESC+"[Z";break}y.key=C.C0.HT,y.cancel=!0;break;case 13:y.key=P.altKey?C.C0.ESC+C.C0.CR:C.C0.CR,y.cancel=!0;break;case 27:y.key=C.C0.ESC,P.altKey&&(y.key=C.C0.ESC+C.C0.ESC),y.cancel=!0;break;case 37:if(P.metaKey)break;g?(y.key=C.C0.ESC+"[1;"+(g+1)+"D",y.key===C.C0.ESC+"[1;3D"&&(y.key=C.C0.ESC+(M?"b":"[1;5D"))):y.key=D?C.C0.ESC+"OD":C.C0.ESC+"[D";break;case 39:if(P.metaKey)break;g?(y.key=C.C0.ESC+"[1;"+(g+1)+"C",y.key===C.C0.ESC+"[1;3C"&&(y.key=C.C0.ESC+(M?"f":"[1;5C"))):y.key=D?C.C0.ESC+"OC":C.C0.ESC+"[C";break;case 38:if(P.metaKey)break;g?(y.key=C.C0.ESC+"[1;"+(g+1)+"A",M||y.key!==C.C0.ESC+"[1;3A"||(y.key=C.C0.ESC+"[1;5A")):y.key=D?C.C0.ESC+"OA":C.C0.ESC+"[A";break;case 40:if(P.metaKey)break;g?(y.key=C.C0.ESC+"[1;"+(g+1)+"B",M||y.key!==C.C0.ESC+"[1;3B"||(y.key=C.C0.ESC+"[1;5B")):y.key=D?C.C0.ESC+"OB":C.C0.ESC+"[B";break;case 45:P.shiftKey||P.ctrlKey||(y.key=C.C0.ESC+"[2~");break;case 46:y.key=g?C.C0.ESC+"[3;"+(g+1)+"~":C.C0.ESC+"[3~";break;case 36:y.key=g?C.C0.ESC+"[1;"+(g+1)+"H":D?C.C0.ESC+"OH":C.C0.ESC+"[H";break;case 35:y.key=g?C.C0.ESC+"[1;"+(g+1)+"F":D?C.C0.ESC+"OF":C.C0.ESC+"[F";break;case 33:P.shiftKey?y.type=2:y.key=C.C0.ESC+"[5~";break;case 34:P.shiftKey?y.type=3:y.key=C.C0.ESC+"[6~";break;case 112:y.key=g?C.C0.ESC+"[1;"+(g+1)+"P":C.C0.ESC+"OP";break;case 113:y.key=g?C.C0.ESC+"[1;"+(g+1)+"Q":C.C0.ESC+"OQ";break;case 114:y.key=g?C.C0.ESC+"[1;"+(g+1)+"R":C.C0.ESC+"OR";break;case 115:y.key=g?C.C0.ESC+"[1;"+(g+1)+"S":C.C0.ESC+"OS";break;case 116:y.key=g?C.C0.ESC+"[15;"+(g+1)+"~":C.C0.ESC+"[15~";break;case 117:y.key=g?C.C0.ESC+"[17;"+(g+1)+"~":C.C0.ESC+"[17~";break;case 118:y.key=g?C.C0.ESC+"[18;"+(g+1)+"~":C.C0.ESC+"[18~";break;case 119:y.key=g?C.C0.ESC+"[19;"+(g+1)+"~":C.C0.ESC+"[19~";break;case 120:y.key=g?C.C0.ESC+"[20;"+(g+1)+"~":C.C0.ESC+"[20~";break;case 121:y.key=g?C.C0.ESC+"[21;"+(g+1)+"~":C.C0.ESC+"[21~";break;case 122:y.key=g?C.C0.ESC+"[23;"+(g+1)+"~":C.C0.ESC+"[23~";break;case 123:y.key=g?C.C0.ESC+"[24;"+(g+1)+"~":C.C0.ESC+"[24~";break;default:if(!P.ctrlKey||P.shiftKey||P.altKey||P.metaKey)if(M&&!A||!P.altKey||P.metaKey)!M||P.altKey||P.ctrlKey||P.shiftKey||!P.metaKey?P.key&&!P.ctrlKey&&!P.altKey&&!P.metaKey&&P.keyCode>=48&&1===P.key.length?y.key=P.key:P.key&&P.ctrlKey&&"_"===P.key&&(y.key=C.C0.US):65===P.keyCode&&(y.type=1);else{var k=v[P.keyCode],N=k&&k[P.shiftKey?1:0];N?y.key=C.C0.ESC+N:P.keyCode>=65&&P.keyCode<=90&&(y.key=C.C0.ESC+String.fromCharCode(P.ctrlKey?P.keyCode-64:P.keyCode+32))}else P.keyCode>=65&&P.keyCode<=90?y.key=String.fromCharCode(P.keyCode-64):32===P.keyCode?y.key=C.C0.NUL:P.keyCode>=51&&P.keyCode<=55?y.key=String.fromCharCode(P.keyCode-51+27):56===P.keyCode?y.key=C.C0.DEL:219===P.keyCode?y.key=C.C0.ESC:220===P.keyCode?y.key=C.C0.FS:221===P.keyCode&&(y.key=C.C0.GS)}return y}},482:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.Utf8ToUtf32=T.StringToUtf32=T.utf32ToString=T.stringFromCodePoint=void 0,T.stringFromCodePoint=function(v){return v>65535?(v-=65536,String.fromCharCode(55296+(v>>10))+String.fromCharCode(v%1024+56320)):String.fromCharCode(v)},T.utf32ToString=function(v,P,D){void 0===P&&(P=0),void 0===D&&(D=v.length);for(var M="",A=P;A<D;++A){var y=v[A];y>65535?(y-=65536,M+=String.fromCharCode(55296+(y>>10))+String.fromCharCode(y%1024+56320)):M+=String.fromCharCode(y)}return M};var I=function(){function v(){this._interim=0}return v.prototype.clear=function(){this._interim=0},v.prototype.decode=function(P,D){var M=P.length;if(!M)return 0;var A=0,y=0;this._interim&&(56320<=(N=P.charCodeAt(y++))&&N<=57343?D[A++]=1024*(this._interim-55296)+N-56320+65536:(D[A++]=this._interim,D[A++]=N),this._interim=0);for(var g=y;g<M;++g){var k=P.charCodeAt(g);if(55296<=k&&k<=56319){if(++g>=M)return this._interim=k,A;var N;56320<=(N=P.charCodeAt(g))&&N<=57343?D[A++]=1024*(k-55296)+N-56320+65536:(D[A++]=k,D[A++]=N)}else 65279!==k&&(D[A++]=k)}return A},v}();T.StringToUtf32=I;var C=function(){function v(){this.interim=new Uint8Array(3)}return v.prototype.clear=function(){this.interim.fill(0)},v.prototype.decode=function(P,D){var M=P.length;if(!M)return 0;var A,y,g,k,N=0,E=0,x=0;if(this.interim[0]){var S=!1,O=this.interim[0];O&=192==(224&O)?31:224==(240&O)?15:7;for(var L=0,j=void 0;(j=63&this.interim[++L])&&L<4;)O<<=6,O|=j;for(var K=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,W=K-L;x<W;){if(x>=M)return 0;if(128!=(192&(j=P[x++]))){x--,S=!0;break}this.interim[L++]=j,O<<=6,O|=63&j}S||(2===K?O<128?x--:D[N++]=O:3===K?O<2048||O>=55296&&O<=57343||65279===O||(D[N++]=O):O<65536||O>1114111||(D[N++]=O)),this.interim.fill(0)}for(var J=M-4,oe=x;oe<M;){for(;!(!(oe<J)||128&(A=P[oe])||128&(y=P[oe+1])||128&(g=P[oe+2])||128&(k=P[oe+3]));)D[N++]=A,D[N++]=y,D[N++]=g,D[N++]=k,oe+=4;if((A=P[oe++])<128)D[N++]=A;else if(192==(224&A)){if(oe>=M)return this.interim[0]=A,N;if(128!=(192&(y=P[oe++]))){oe--;continue}if((E=(31&A)<<6|63&y)<128){oe--;continue}D[N++]=E}else if(224==(240&A)){if(oe>=M)return this.interim[0]=A,N;if(128!=(192&(y=P[oe++]))){oe--;continue}if(oe>=M)return this.interim[0]=A,this.interim[1]=y,N;if(128!=(192&(g=P[oe++]))){oe--;continue}if((E=(15&A)<<12|(63&y)<<6|63&g)<2048||E>=55296&&E<=57343||65279===E)continue;D[N++]=E}else if(240==(248&A)){if(oe>=M)return this.interim[0]=A,N;if(128!=(192&(y=P[oe++]))){oe--;continue}if(oe>=M)return this.interim[0]=A,this.interim[1]=y,N;if(128!=(192&(g=P[oe++]))){oe--;continue}if(oe>=M)return this.interim[0]=A,this.interim[1]=y,this.interim[2]=g,N;if(128!=(192&(k=P[oe++]))){oe--;continue}if((E=(7&A)<<18|(63&y)<<12|(63&g)<<6|63&k)<65536||E>1114111)continue;D[N++]=E}}return N},v}();T.Utf8ToUtf32=C},225:function(Z,T,I){Object.defineProperty(T,"__esModule",{value:!0}),T.UnicodeV6=void 0;var C,v=I(8273),P=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],D=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],M=function(){function A(){if(this.version="6",!C){C=new Uint8Array(65536),v.fill(C,1),C[0]=0,v.fill(C,0,1,32),v.fill(C,0,127,160),v.fill(C,2,4352,4448),C[9001]=2,C[9002]=2,v.fill(C,2,11904,42192),C[12351]=1,v.fill(C,2,44032,55204),v.fill(C,2,63744,64256),v.fill(C,2,65040,65050),v.fill(C,2,65072,65136),v.fill(C,2,65280,65377),v.fill(C,2,65504,65511);for(var y=0;y<P.length;++y)v.fill(C,0,P[y][0],P[y][1]+1)}}return A.prototype.wcwidth=function(y){return y<32?0:y<127?1:y<65536?C[y]:function(g,k){var N,E=0,x=k.length-1;if(g<k[0][0]||g>k[x][1])return!1;for(;x>=E;)if(g>k[N=E+x>>1][1])E=N+1;else{if(!(g<k[N][0]))return!0;x=N-1}return!1}(y,D)?0:y>=131072&&y<=196605||y>=196608&&y<=262141?2:1},A}();T.UnicodeV6=M},5981:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.WriteBuffer=void 0;var I="undefined"==typeof queueMicrotask?function(v){Promise.resolve().then(v)}:queueMicrotask,C=function(){function v(P){this._action=P,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0}return v.prototype.writeSync=function(P,D){if(void 0!==D&&this._syncCalls>D)this._syncCalls=0;else if(this._pendingData+=P.length,this._writeBuffer.push(P),this._callbacks.push(void 0),this._syncCalls++,!this._isSyncWriting){var M;for(this._isSyncWriting=!0;M=this._writeBuffer.shift();){this._action(M);var A=this._callbacks.shift();A&&A()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}},v.prototype.write=function(P,D){var M=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return M._innerWrite()})),this._pendingData+=P.length,this._writeBuffer.push(P),this._callbacks.push(D)},v.prototype._innerWrite=function(P,D){var M=this;void 0===P&&(P=0),void 0===D&&(D=!0);for(var A=P||Date.now();this._writeBuffer.length>this._bufferOffset;){var y=this._writeBuffer[this._bufferOffset],g=this._action(y,D);if(g)return void g.catch(function(N){return I(function(){throw N}),Promise.resolve(!1)}).then(function(N){return Date.now()-A>=12?setTimeout(function(){return M._innerWrite(0,N)}):M._innerWrite(A,N)});var k=this._callbacks[this._bufferOffset];if(k&&k(),this._bufferOffset++,this._pendingData-=y.length,Date.now()-A>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return M._innerWrite()})):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0)},v}();T.WriteBuffer=C},5770:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.PAYLOAD_LIMIT=void 0,T.PAYLOAD_LIMIT=1e7},6351:function(Z,T,I){Object.defineProperty(T,"__esModule",{value:!0}),T.DcsHandler=T.DcsParser=void 0;var C=I(482),v=I(8742),P=I(5770),D=[],M=function(){function g(){this._handlers=Object.create(null),this._active=D,this._ident=0,this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return g.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=D},g.prototype.registerHandler=function(k,N){void 0===this._handlers[k]&&(this._handlers[k]=[]);var E=this._handlers[k];return E.push(N),{dispose:function(){var S=E.indexOf(N);-1!==S&&E.splice(S,1)}}},g.prototype.clearHandler=function(k){this._handlers[k]&&delete this._handlers[k]},g.prototype.setHandlerFallback=function(k){this._handlerFb=k},g.prototype.reset=function(){if(this._active.length)for(var k=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;k>=0;--k)this._active[k].unhook(!1);this._stack.paused=!1,this._active=D,this._ident=0},g.prototype.hook=function(k,N){if(this.reset(),this._ident=k,this._active=this._handlers[k]||D,this._active.length)for(var E=this._active.length-1;E>=0;E--)this._active[E].hook(N);else this._handlerFb(this._ident,"HOOK",N)},g.prototype.put=function(k,N,E){if(this._active.length)for(var x=this._active.length-1;x>=0;x--)this._active[x].put(k,N,E);else this._handlerFb(this._ident,"PUT",C.utf32ToString(k,N,E))},g.prototype.unhook=function(k,N){if(void 0===N&&(N=!0),this._active.length){var E=!1,x=this._active.length-1,S=!1;if(this._stack.paused&&(x=this._stack.loopPosition-1,E=N,S=this._stack.fallThrough,this._stack.paused=!1),!S&&!1===E){for(;x>=0&&!0!==(E=this._active[x].unhook(k));x--)if(E instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=x,this._stack.fallThrough=!1,E;x--}for(;x>=0;x--)if((E=this._active[x].unhook(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=x,this._stack.fallThrough=!0,E}else this._handlerFb(this._ident,"UNHOOK",k);this._active=D,this._ident=0},g}();T.DcsParser=M;var A=new v.Params;A.addParam(0);var y=function(){function g(k){this._handler=k,this._data="",this._params=A,this._hitLimit=!1}return g.prototype.hook=function(k){this._params=k.length>1||k.params[0]?k.clone():A,this._data="",this._hitLimit=!1},g.prototype.put=function(k,N,E){this._hitLimit||(this._data+=C.utf32ToString(k,N,E),this._data.length>P.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},g.prototype.unhook=function(k){var N=this,E=!1;if(this._hitLimit)E=!1;else if(k&&(E=this._handler(this._data,this._params))instanceof Promise)return E.then(function(x){return N._params=A,N._data="",N._hitLimit=!1,x});return this._params=A,this._data="",this._hitLimit=!1,E},g}();T.DcsHandler=y},2015:function(Z,T,I){var C,v=this&&this.__extends||(C=function(x,S){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,L){O.__proto__=L}||function(O,L){for(var j in L)Object.prototype.hasOwnProperty.call(L,j)&&(O[j]=L[j])})(x,S)},function(E,x){if("function"!=typeof x&&null!==x)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");function S(){this.constructor=E}C(E,x),E.prototype=null===x?Object.create(x):(S.prototype=x.prototype,new S)});Object.defineProperty(T,"__esModule",{value:!0}),T.EscapeSequenceParser=T.VT500_TRANSITION_TABLE=T.TransitionTable=void 0;var P=I(844),D=I(8273),M=I(8742),A=I(6242),y=I(6351),g=function(){function E(x){this.table=new Uint8Array(x)}return E.prototype.setDefault=function(x,S){D.fill(this.table,x<<4|S)},E.prototype.add=function(x,S,O,L){this.table[S<<8|x]=O<<4|L},E.prototype.addMany=function(x,S,O,L){for(var j=0;j<x.length;j++)this.table[S<<8|x[j]]=O<<4|L},E}();T.TransitionTable=g;var k=160;T.VT500_TRANSITION_TABLE=function(){var E=new g(4095),x=Array.apply(null,Array(256)).map(function(W,J){return J}),S=function(J,oe){return x.slice(J,oe)},O=S(32,127),L=S(0,24);L.push(25),L.push.apply(L,S(28,32));var j,K=S(0,14);for(j in E.setDefault(1,0),E.addMany(O,0,2,0),K)E.addMany([24,26,153,154],j,3,0),E.addMany(S(128,144),j,3,0),E.addMany(S(144,152),j,3,0),E.add(156,j,0,0),E.add(27,j,11,1),E.add(157,j,4,8),E.addMany([152,158,159],j,0,7),E.add(155,j,11,3),E.add(144,j,11,9);return E.addMany(L,0,3,0),E.addMany(L,1,3,1),E.add(127,1,0,1),E.addMany(L,8,0,8),E.addMany(L,3,3,3),E.add(127,3,0,3),E.addMany(L,4,3,4),E.add(127,4,0,4),E.addMany(L,6,3,6),E.addMany(L,5,3,5),E.add(127,5,0,5),E.addMany(L,2,3,2),E.add(127,2,0,2),E.add(93,1,4,8),E.addMany(O,8,5,8),E.add(127,8,5,8),E.addMany([156,27,24,26,7],8,6,0),E.addMany(S(28,32),8,0,8),E.addMany([88,94,95],1,0,7),E.addMany(O,7,0,7),E.addMany(L,7,0,7),E.add(156,7,0,0),E.add(127,7,0,7),E.add(91,1,11,3),E.addMany(S(64,127),3,7,0),E.addMany(S(48,60),3,8,4),E.addMany([60,61,62,63],3,9,4),E.addMany(S(48,60),4,8,4),E.addMany(S(64,127),4,7,0),E.addMany([60,61,62,63],4,0,6),E.addMany(S(32,64),6,0,6),E.add(127,6,0,6),E.addMany(S(64,127),6,0,0),E.addMany(S(32,48),3,9,5),E.addMany(S(32,48),5,9,5),E.addMany(S(48,64),5,0,6),E.addMany(S(64,127),5,7,0),E.addMany(S(32,48),4,9,5),E.addMany(S(32,48),1,9,2),E.addMany(S(32,48),2,9,2),E.addMany(S(48,127),2,10,0),E.addMany(S(48,80),1,10,0),E.addMany(S(81,88),1,10,0),E.addMany([89,90,92],1,10,0),E.addMany(S(96,127),1,10,0),E.add(80,1,11,9),E.addMany(L,9,0,9),E.add(127,9,0,9),E.addMany(S(28,32),9,0,9),E.addMany(S(32,48),9,9,12),E.addMany(S(48,60),9,8,10),E.addMany([60,61,62,63],9,9,10),E.addMany(L,11,0,11),E.addMany(S(32,128),11,0,11),E.addMany(S(28,32),11,0,11),E.addMany(L,10,0,10),E.add(127,10,0,10),E.addMany(S(28,32),10,0,10),E.addMany(S(48,60),10,8,10),E.addMany([60,61,62,63],10,0,11),E.addMany(S(32,48),10,9,12),E.addMany(L,12,0,12),E.add(127,12,0,12),E.addMany(S(28,32),12,0,12),E.addMany(S(32,48),12,9,12),E.addMany(S(48,64),12,0,11),E.addMany(S(64,127),12,12,13),E.addMany(S(64,127),10,12,13),E.addMany(S(64,127),9,12,13),E.addMany(L,13,13,13),E.addMany(O,13,13,13),E.add(127,13,0,13),E.addMany([27,156,24,26],13,14,0),E.add(k,0,2,0),E.add(k,8,5,8),E.add(k,6,0,6),E.add(k,11,0,11),E.add(k,13,13,13),E}();var N=function(E){function x(S){void 0===S&&(S=T.VT500_TRANSITION_TABLE);var O=E.call(this)||this;return O._transitions=S,O._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},O.initialState=0,O.currentState=O.initialState,O._params=new M.Params,O._params.addParam(0),O._collect=0,O.precedingCodepoint=0,O._printHandlerFb=function(L,j,K){},O._executeHandlerFb=function(L){},O._csiHandlerFb=function(L,j){},O._escHandlerFb=function(L){},O._errorHandlerFb=function(L){return L},O._printHandler=O._printHandlerFb,O._executeHandlers=Object.create(null),O._csiHandlers=Object.create(null),O._escHandlers=Object.create(null),O._oscParser=new A.OscParser,O._dcsParser=new y.DcsParser,O._errorHandler=O._errorHandlerFb,O.registerEscHandler({final:"\\"},function(){return!0}),O}return v(x,E),x.prototype._identifier=function(S,O){void 0===O&&(O=[64,126]);var L=0;if(S.prefix){if(S.prefix.length>1)throw new Error("only one byte as prefix supported");if((L=S.prefix.charCodeAt(0))&&60>L||L>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(S.intermediates){if(S.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var j=0;j<S.intermediates.length;++j){var K=S.intermediates.charCodeAt(j);if(32>K||K>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");L<<=8,L|=K}}if(1!==S.final.length)throw new Error("final must be a single byte");var W=S.final.charCodeAt(0);if(O[0]>W||W>O[1])throw new Error("final must be in range "+O[0]+" .. "+O[1]);return(L<<=8)|W},x.prototype.identToString=function(S){for(var O=[];S;)O.push(String.fromCharCode(255&S)),S>>=8;return O.reverse().join("")},x.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},x.prototype.setPrintHandler=function(S){this._printHandler=S},x.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},x.prototype.registerEscHandler=function(S,O){var L=this._identifier(S,[48,126]);void 0===this._escHandlers[L]&&(this._escHandlers[L]=[]);var j=this._escHandlers[L];return j.push(O),{dispose:function(){var W=j.indexOf(O);-1!==W&&j.splice(W,1)}}},x.prototype.clearEscHandler=function(S){this._escHandlers[this._identifier(S,[48,126])]&&delete this._escHandlers[this._identifier(S,[48,126])]},x.prototype.setEscHandlerFallback=function(S){this._escHandlerFb=S},x.prototype.setExecuteHandler=function(S,O){this._executeHandlers[S.charCodeAt(0)]=O},x.prototype.clearExecuteHandler=function(S){this._executeHandlers[S.charCodeAt(0)]&&delete this._executeHandlers[S.charCodeAt(0)]},x.prototype.setExecuteHandlerFallback=function(S){this._executeHandlerFb=S},x.prototype.registerCsiHandler=function(S,O){var L=this._identifier(S);void 0===this._csiHandlers[L]&&(this._csiHandlers[L]=[]);var j=this._csiHandlers[L];return j.push(O),{dispose:function(){var W=j.indexOf(O);-1!==W&&j.splice(W,1)}}},x.prototype.clearCsiHandler=function(S){this._csiHandlers[this._identifier(S)]&&delete this._csiHandlers[this._identifier(S)]},x.prototype.setCsiHandlerFallback=function(S){this._csiHandlerFb=S},x.prototype.registerDcsHandler=function(S,O){return this._dcsParser.registerHandler(this._identifier(S),O)},x.prototype.clearDcsHandler=function(S){this._dcsParser.clearHandler(this._identifier(S))},x.prototype.setDcsHandlerFallback=function(S){this._dcsParser.setHandlerFallback(S)},x.prototype.registerOscHandler=function(S,O){return this._oscParser.registerHandler(S,O)},x.prototype.clearOscHandler=function(S){this._oscParser.clearHandler(S)},x.prototype.setOscHandlerFallback=function(S){this._oscParser.setHandlerFallback(S)},x.prototype.setErrorHandler=function(S){this._errorHandler=S},x.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},x.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,0!==this._parseStack.state&&(this._parseStack.state=2,this._parseStack.handlers=[])},x.prototype._preserveStack=function(S,O,L,j,K){this._parseStack.state=S,this._parseStack.handlers=O,this._parseStack.handlerPos=L,this._parseStack.transition=j,this._parseStack.chunkPos=K},x.prototype.parse=function(S,O,L){var j,K=0,W=0,J=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,J=this._parseStack.chunkPos+1;else{if(void 0===L||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");var oe=this._parseStack.handlers,te=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===L&&te>-1)for(;te>=0&&!0!==(j=oe[te](this._params));te--)if(j instanceof Promise)return this._parseStack.handlerPos=te,j;this._parseStack.handlers=[];break;case 4:if(!1===L&&te>-1)for(;te>=0&&!0!==(j=oe[te]());te--)if(j instanceof Promise)return this._parseStack.handlerPos=te,j;this._parseStack.handlers=[];break;case 6:if(j=this._dcsParser.unhook(24!==(K=S[this._parseStack.chunkPos])&&26!==K,L))return j;27===K&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(j=this._oscParser.end(24!==(K=S[this._parseStack.chunkPos])&&26!==K,L))return j;27===K&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,J=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(var se=J;se<O;++se){switch((W=this._transitions.table[this.currentState<<8|((K=S[se])<160?K:k)])>>4){case 2:for(var le=se+1;;++le){if(le>=O||(K=S[le])<32||K>126&&K<k){this._printHandler(S,se,le),se=le-1;break}if(++le>=O||(K=S[le])<32||K>126&&K<k){this._printHandler(S,se,le),se=le-1;break}if(++le>=O||(K=S[le])<32||K>126&&K<k){this._printHandler(S,se,le),se=le-1;break}if(++le>=O||(K=S[le])<32||K>126&&K<k){this._printHandler(S,se,le),se=le-1;break}}break;case 3:this._executeHandlers[K]?this._executeHandlers[K]():this._executeHandlerFb(K),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:se,code:K,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:for(var de=(oe=this._csiHandlers[this._collect<<8|K])?oe.length-1:-1;de>=0&&!0!==(j=oe[de](this._params));de--)if(j instanceof Promise)return this._preserveStack(3,oe,de,W,se),j;de<0&&this._csiHandlerFb(this._collect<<8|K,this._params),this.precedingCodepoint=0;break;case 8:do{switch(K){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(K-48)}}while(++se<O&&(K=S[se])>47&&K<60);se--;break;case 9:this._collect<<=8,this._collect|=K;break;case 10:for(var ue=this._escHandlers[this._collect<<8|K],ae=ue?ue.length-1:-1;ae>=0&&!0!==(j=ue[ae]());ae--)if(j instanceof Promise)return this._preserveStack(4,ue,ae,W,se),j;ae<0&&this._escHandlerFb(this._collect<<8|K),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|K,this._params);break;case 13:for(var Me=se+1;;++Me)if(Me>=O||24===(K=S[Me])||26===K||27===K||K>127&&K<k){this._dcsParser.put(S,se,Me),se=Me-1;break}break;case 14:if(j=this._dcsParser.unhook(24!==K&&26!==K))return this._preserveStack(6,[],0,W,se),j;27===K&&(W|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0;break;case 4:this._oscParser.start();break;case 5:for(var ye=se+1;;ye++)if(ye>=O||(K=S[ye])<32||K>127&&K<k){this._oscParser.put(S,se,ye),se=ye-1;break}break;case 6:if(j=this._oscParser.end(24!==K&&26!==K))return this._preserveStack(5,[],0,W,se),j;27===K&&(W|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0}this.currentState=15&W}},x}(P.Disposable);T.EscapeSequenceParser=N},6242:function(Z,T,I){Object.defineProperty(T,"__esModule",{value:!0}),T.OscHandler=T.OscParser=void 0;var C=I(5770),v=I(482),P=[],D=function(){function A(){this._state=0,this._active=P,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return A.prototype.registerHandler=function(y,g){void 0===this._handlers[y]&&(this._handlers[y]=[]);var k=this._handlers[y];return k.push(g),{dispose:function(){var E=k.indexOf(g);-1!==E&&k.splice(E,1)}}},A.prototype.clearHandler=function(y){this._handlers[y]&&delete this._handlers[y]},A.prototype.setHandlerFallback=function(y){this._handlerFb=y},A.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=P},A.prototype.reset=function(){if(2===this._state)for(var y=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;y>=0;--y)this._active[y].end(!1);this._stack.paused=!1,this._active=P,this._id=-1,this._state=0},A.prototype._start=function(){if(this._active=this._handlers[this._id]||P,this._active.length)for(var y=this._active.length-1;y>=0;y--)this._active[y].start();else this._handlerFb(this._id,"START")},A.prototype._put=function(y,g,k){if(this._active.length)for(var N=this._active.length-1;N>=0;N--)this._active[N].put(y,g,k);else this._handlerFb(this._id,"PUT",v.utf32ToString(y,g,k))},A.prototype.start=function(){this.reset(),this._state=1},A.prototype.put=function(y,g,k){if(3!==this._state){if(1===this._state)for(;g<k;){var N=y[g++];if(59===N){this._state=2,this._start();break}if(N<48||57<N)return void(this._state=3);-1===this._id&&(this._id=0),this._id=10*this._id+N-48}2===this._state&&k-g>0&&this._put(y,g,k)}},A.prototype.end=function(y,g){if(void 0===g&&(g=!0),0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){var k=!1,N=this._active.length-1,E=!1;if(this._stack.paused&&(N=this._stack.loopPosition-1,k=g,E=this._stack.fallThrough,this._stack.paused=!1),!E&&!1===k){for(;N>=0&&!0!==(k=this._active[N].end(y));N--)if(k instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=N,this._stack.fallThrough=!1,k;N--}for(;N>=0;N--)if((k=this._active[N].end(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=N,this._stack.fallThrough=!0,k}else this._handlerFb(this._id,"END",y);this._active=P,this._id=-1,this._state=0}},A}();T.OscParser=D;var M=function(){function A(y){this._handler=y,this._data="",this._hitLimit=!1}return A.prototype.start=function(){this._data="",this._hitLimit=!1},A.prototype.put=function(y,g,k){this._hitLimit||(this._data+=v.utf32ToString(y,g,k),this._data.length>C.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},A.prototype.end=function(y){var g=this,k=!1;if(this._hitLimit)k=!1;else if(y&&(k=this._handler(this._data))instanceof Promise)return k.then(function(N){return g._data="",g._hitLimit=!1,N});return this._data="",this._hitLimit=!1,k},A}();T.OscHandler=M},8742:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.Params=void 0;var I=2147483647,C=function(){function v(P,D){if(void 0===P&&(P=32),void 0===D&&(D=32),this.maxLength=P,this.maxSubParamsLength=D,D>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(P),this.length=0,this._subParams=new Int32Array(D),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(P),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return v.fromArray=function(P){var D=new v;if(!P.length)return D;for(var M=P[0]instanceof Array?1:0;M<P.length;++M){var A=P[M];if(A instanceof Array)for(var y=0;y<A.length;++y)D.addSubParam(A[y]);else D.addParam(A)}return D},v.prototype.clone=function(){var P=new v(this.maxLength,this.maxSubParamsLength);return P.params.set(this.params),P.length=this.length,P._subParams.set(this._subParams),P._subParamsLength=this._subParamsLength,P._subParamsIdx.set(this._subParamsIdx),P._rejectDigits=this._rejectDigits,P._rejectSubDigits=this._rejectSubDigits,P._digitIsSub=this._digitIsSub,P},v.prototype.toArray=function(){for(var P=[],D=0;D<this.length;++D){P.push(this.params[D]);var M=this._subParamsIdx[D]>>8,A=255&this._subParamsIdx[D];A-M>0&&P.push(Array.prototype.slice.call(this._subParams,M,A))}return P},v.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},v.prototype.addParam=function(P){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(P<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=P>I?I:P}},v.prototype.addSubParam=function(P){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(P<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=P>I?I:P,this._subParamsIdx[this.length-1]++}},v.prototype.hasSubParams=function(P){return(255&this._subParamsIdx[P])-(this._subParamsIdx[P]>>8)>0},v.prototype.getSubParams=function(P){var D=this._subParamsIdx[P]>>8,M=255&this._subParamsIdx[P];return M-D>0?this._subParams.subarray(D,M):null},v.prototype.getSubParamsAll=function(){for(var P={},D=0;D<this.length;++D){var M=this._subParamsIdx[D]>>8,A=255&this._subParamsIdx[D];A-M>0&&(P[D]=this._subParams.slice(M,A))}return P},v.prototype.addDigit=function(P){var D;if(!(this._rejectDigits||!(D=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var M=this._digitIsSub?this._subParams:this.params,A=M[D-1];M[D-1]=~A?Math.min(10*A+P,I):P}},v}();T.Params=C},5741:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.AddonManager=void 0;var I=function(){function C(){this._addons=[]}return C.prototype.dispose=function(){for(var v=this._addons.length-1;v>=0;v--)this._addons[v].instance.dispose()},C.prototype.loadAddon=function(v,P){var D=this,M={instance:P,dispose:P.dispose,isDisposed:!1};this._addons.push(M),P.dispose=function(){return D._wrappedAddonDispose(M)},P.activate(v)},C.prototype._wrappedAddonDispose=function(v){if(!v.isDisposed){for(var P=-1,D=0;D<this._addons.length;D++)if(this._addons[D]===v){P=D;break}if(-1===P)throw new Error("Could not dispose an addon that has not been loaded");v.isDisposed=!0,v.dispose.apply(v.instance),this._addons.splice(P,1)}},C}();T.AddonManager=I},8771:function(Z,T,I){Object.defineProperty(T,"__esModule",{value:!0}),T.BufferApiView=void 0;var C=I(3785),v=I(511),P=function(){function D(M,A){this._buffer=M,this.type=A}return D.prototype.init=function(M){return this._buffer=M,this},Object.defineProperty(D.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),D.prototype.getLine=function(M){var A=this._buffer.lines.get(M);if(A)return new C.BufferLineApiView(A)},D.prototype.getNullCell=function(){return new v.CellData},D}();T.BufferApiView=P},3785:function(Z,T,I){Object.defineProperty(T,"__esModule",{value:!0}),T.BufferLineApiView=void 0;var C=I(511),v=function(){function P(D){this._line=D}return Object.defineProperty(P.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),P.prototype.getCell=function(D,M){if(!(D<0||D>=this._line.length))return M?(this._line.loadCell(D,M),M):this._line.loadCell(D,new C.CellData)},P.prototype.translateToString=function(D,M,A){return this._line.translateToString(D,M,A)},P}();T.BufferLineApiView=v},8285:function(Z,T,I){Object.defineProperty(T,"__esModule",{value:!0}),T.BufferNamespaceApi=void 0;var C=I(8771),v=I(8460),P=function(){function D(M){var A=this;this._core=M,this._onBufferChange=new v.EventEmitter,this._normal=new C.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new C.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(function(){return A._onBufferChange.fire(A.active)})}return Object.defineProperty(D.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"active",{get:function(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"normal",{get:function(){return this._normal.init(this._core.buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"alternate",{get:function(){return this._alternate.init(this._core.buffers.alt)},enumerable:!1,configurable:!0}),D}();T.BufferNamespaceApi=P},7975:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.ParserApi=void 0;var I=function(){function C(v){this._core=v}return C.prototype.registerCsiHandler=function(v,P){return this._core.registerCsiHandler(v,function(D){return P(D.toArray())})},C.prototype.addCsiHandler=function(v,P){return this.registerCsiHandler(v,P)},C.prototype.registerDcsHandler=function(v,P){return this._core.registerDcsHandler(v,function(D,M){return P(D,M.toArray())})},C.prototype.addDcsHandler=function(v,P){return this.registerDcsHandler(v,P)},C.prototype.registerEscHandler=function(v,P){return this._core.registerEscHandler(v,P)},C.prototype.addEscHandler=function(v,P){return this.registerEscHandler(v,P)},C.prototype.registerOscHandler=function(v,P){return this._core.registerOscHandler(v,P)},C.prototype.addOscHandler=function(v,P){return this.registerOscHandler(v,P)},C}();T.ParserApi=I},7090:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.UnicodeApi=void 0;var I=function(){function C(v){this._core=v}return C.prototype.register=function(v){this._core.unicodeService.register(v)},Object.defineProperty(C.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(P){this._core.unicodeService.activeVersion=P},enumerable:!1,configurable:!0}),C}();T.UnicodeApi=I},744:function(Z,T,I){var C,v=this&&this.__extends||(C=function(E,x){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var L in O)Object.prototype.hasOwnProperty.call(O,L)&&(S[L]=O[L])})(E,x)},function(N,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function x(){this.constructor=N}C(N,E),N.prototype=null===E?Object.create(E):(x.prototype=E.prototype,new x)}),P=this&&this.__decorate||function(N,E,x,S){var O,L=arguments.length,j=L<3?E:null===S?S=Object.getOwnPropertyDescriptor(E,x):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)j=Reflect.decorate(N,E,x,S);else for(var K=N.length-1;K>=0;K--)(O=N[K])&&(j=(L<3?O(j):L>3?O(E,x,j):O(E,x))||j);return L>3&&j&&Object.defineProperty(E,x,j),j},D=this&&this.__param||function(N,E){return function(x,S){E(x,S,N)}};Object.defineProperty(T,"__esModule",{value:!0}),T.BufferService=T.MINIMUM_ROWS=T.MINIMUM_COLS=void 0;var M=I(2585),A=I(5295),y=I(8460),g=I(844);T.MINIMUM_COLS=2,T.MINIMUM_ROWS=1;var k=function(N){function E(x){var S=N.call(this)||this;return S._optionsService=x,S.isUserScrolling=!1,S._onResize=new y.EventEmitter,S._onScroll=new y.EventEmitter,S.cols=Math.max(x.options.cols||0,T.MINIMUM_COLS),S.rows=Math.max(x.options.rows||0,T.MINIMUM_ROWS),S.buffers=new A.BufferSet(x,S),S}return v(E,N),Object.defineProperty(E.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),E.prototype.dispose=function(){N.prototype.dispose.call(this),this.buffers.dispose()},E.prototype.resize=function(x,S){this.cols=x,this.rows=S,this.buffers.resize(x,S),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:x,rows:S})},E.prototype.reset=function(){this.buffers.reset(),this.isUserScrolling=!1},E.prototype.scroll=function(x,S){void 0===S&&(S=!1);var O,L=this.buffer;(O=this._cachedBlankLine)&&O.length===this.cols&&O.getFg(0)===x.fg&&O.getBg(0)===x.bg||(O=L.getBlankLine(x,S),this._cachedBlankLine=O),O.isWrapped=S;var j=L.ybase+L.scrollTop,K=L.ybase+L.scrollBottom;if(0===L.scrollTop){var W=L.lines.isFull;K===L.lines.length-1?W?L.lines.recycle().copyFrom(O):L.lines.push(O.clone()):L.lines.splice(K+1,0,O.clone()),W?this.isUserScrolling&&(L.ydisp=Math.max(L.ydisp-1,0)):(L.ybase++,this.isUserScrolling||L.ydisp++)}else L.lines.shiftElements(j+1,K-j+1-1,-1),L.lines.set(K,O.clone());this.isUserScrolling||(L.ydisp=L.ybase),this._onScroll.fire(L.ydisp)},E.prototype.scrollLines=function(x,S,O){var L=this.buffer;if(x<0){if(0===L.ydisp)return;this.isUserScrolling=!0}else x+L.ydisp>=L.ybase&&(this.isUserScrolling=!1);var j=L.ydisp;L.ydisp=Math.max(Math.min(L.ydisp+x,L.ybase),0),j!==L.ydisp&&(S||this._onScroll.fire(L.ydisp))},E.prototype.scrollPages=function(x){this.scrollLines(x*(this.rows-1))},E.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},E.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},E.prototype.scrollToLine=function(x){var S=x-this.buffer.ydisp;0!==S&&this.scrollLines(S)},P([D(0,M.IOptionsService)],E)}(g.Disposable);T.BufferService=k},7994:function(Z,T){Object.defineProperty(T,"__esModule",{value:!0}),T.CharsetService=void 0;var I=function(){function C(){this.glevel=0,this._charsets=[]}return C.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},C.prototype.setgLevel=function(v){this.glevel=v,this.charset=this._charsets[v]},C.prototype.setgCharset=function(v,P){this._charsets[v]=P,this.glevel===v&&(this.charset=P)},C}();T.CharsetService=I},1753:function(Z,T,I){var C=this&&this.__decorate||function(N,E,x,S){var O,L=arguments.length,j=L<3?E:null===S?S=Object.getOwnPropertyDescriptor(E,x):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)j=Reflect.decorate(N,E,x,S);else for(var K=N.length-1;K>=0;K--)(O=N[K])&&(j=(L<3?O(j):L>3?O(E,x,j):O(E,x))||j);return L>3&&j&&Object.defineProperty(E,x,j),j},v=this&&this.__param||function(N,E){return function(x,S){E(x,S,N)}};Object.defineProperty(T,"__esModule",{value:!0}),T.CoreMouseService=void 0;var P=I(2585),D=I(8460),M={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(E){return 4!==E.button&&1===E.action&&(E.ctrl=!1,E.alt=!1,E.shift=!1,!0)}},VT200:{events:19,restrict:function(E){return 32!==E.action}},DRAG:{events:23,restrict:function(E){return 32!==E.action||3!==E.button}},ANY:{events:31,restrict:function(E){return!0}}};function A(N,E){var x=(N.ctrl?16:0)|(N.shift?4:0)|(N.alt?8:0);return 4===N.button?(x|=64,x|=N.action):(x|=3&N.button,4&N.button&&(x|=64),8&N.button&&(x|=128),32===N.action?x|=32:0!==N.action||E||(x|=3)),x}var y=String.fromCharCode,g={DEFAULT:function(E){var x=[A(E,!1)+32,E.col+32,E.row+32];return x[0]>255||x[1]>255||x[2]>255?"":"\x1b[M"+y(x[0])+y(x[1])+y(x[2])},SGR:function(E){var x=0===E.action&&4!==E.button?"m":"M";return"\x1b[<"+A(E,!0)+";"+E.col+";"+E.row+x}},k=function(){function N(E,x){this._bufferService=E,this._coreService=x,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new D.EventEmitter,this._lastEvent=null;for(var S=0,O=Object.keys(M);S<O.length;S++){var L=O[S];this.addProtocol(L,M[L])}for(var j=0,K=Object.keys(g);j<K.length;j++){var W=K[j];this.addEncoding(W,g[W])}this.reset()}return N.prototype.addProtocol=function(E,x){this._protocols[E]=x},N.prototype.addEncoding=function(E,x){this._encodings[E]=x},Object.defineProperty(N.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(x){if(!this._protocols[x])throw new Error('unknown protocol "'+x+'"');this._activeProtocol=x,this._onProtocolChange.fire(this._protocols[x].events)},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"areMouseEventsActive",{get:function(){return 0!==this._protocols[this._activeProtocol].events},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(x){if(!this._encodings[x])throw new Error('unknown encoding "'+x+'"');this._activeEncoding=x},enumerable:!1,configurable:!0}),N.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(N.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),N.prototype.triggerMouseEvent=function(E){if(E.col<0||E.col>=this._bufferService.cols||E.row<0||E.row>=this._bufferService.rows||4===E.button&&32===E.action||3===E.button&&32!==E.action||4!==E.button&&(2===E.action||3===E.action)||(E.col++,E.row++,32===E.action&&this._lastEvent&&this._compareEvents(this._lastEvent,E))||!this._protocols[this._activeProtocol].restrict(E))return!1;var x=this._encodings[this._activeEncoding](E);return x&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(x):this._coreService.triggerDataEvent(x,!0)),this._lastEvent=E,!0},N.prototype.explainEvents=function(E){return{down:!!(1&E),up:!!(2&E),drag:!!(4&E),move:!!(8&E),wheel:!!(16&E)}},N.prototype._compareEvents=function(E,x){return E.col===x.col&&E.row===x.row&&E.button===x.button&&E.action===x.action&&E.ctrl===x.ctrl&&E.alt===x.alt&&E.shift===x.shift},C([v(0,P.IBufferService),v(1,P.ICoreService)],N)}();T.CoreMouseService=k},6975:function(Z,T,I){var C,v=this&&this.__extends||(C=function(S,O){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,j){L.__proto__=j}||function(L,j){for(var K in j)Object.prototype.hasOwnProperty.call(j,K)&&(L[K]=j[K])})(S,O)},function(x,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function O(){this.constructor=x}C(x,S),x.prototype=null===S?Object.create(S):(O.prototype=S.prototype,new O)}),P=this&&this.__decorate||function(x,S,O,L){var j,K=arguments.length,W=K<3?S:null===L?L=Object.getOwnPropertyDescriptor(S,O):L;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)W=Reflect.decorate(x,S,O,L);else for(var J=x.length-1;J>=0;J--)(j=x[J])&&(W=(K<3?j(W):K>3?j(S,O,W):j(S,O))||W);return K>3&&W&&Object.defineProperty(S,O,W),W},D=this&&this.__param||function(x,S){return function(O,L){S(O,L,x)}};Object.defineProperty(T,"__esModule",{value:!0}),T.CoreService=void 0;var M=I(2585),A=I(8460),y=I(1439),g=I(844),k=Object.freeze({insertMode:!1}),N=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),E=function(x){function S(O,L,j,K){var W=x.call(this)||this;return W._bufferService=L,W._logService=j,W._optionsService=K,W.isCursorInitialized=!1,W.isCursorHidden=!1,W._onData=W.register(new A.EventEmitter),W._onUserInput=W.register(new A.EventEmitter),W._onBinary=W.register(new A.EventEmitter),W._scrollToBottom=O,W.register({dispose:function(){return W._scrollToBottom=void 0}}),W.modes=y.clone(k),W.decPrivateModes=y.clone(N),W}return v(S,x),Object.defineProperty(S.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),S.prototype.reset=function(){this.modes=y.clone(k),this.decPrivateModes=y.clone(N)},S.prototype.triggerDataEvent=function(O,L){if(void 0===L&&(L=!1),!this._optionsService.options.disableStdin){var j=this._bufferService.buffer;j.ybase!==j.ydisp&&this._scrollToBottom(),L&&this._onUserInput.fire(),this._logService.debug('sending data "'+O+'"',function(){return O.split("").map(function(K){return K.charCodeAt(0)})}),this._onData.fire(O)}},S.prototype.triggerBinaryEvent=function(O){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+O+'"',function(){return O.split("").map(function(L){return L.charCodeAt(0)})}),this._onBinary.fire(O))},P([D(1,M.IBufferService),D(2,M.ILogService),D(3,M.IOptionsService)],S)}(g.Disposable);T.CoreService=E},3730:function(Z,T,I){var C=this&&this.__decorate||function(M,A,y,g){var k,N=arguments.length,E=N<3?A:null===g?g=Object.getOwnPropertyDescriptor(A,y):g;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)E=Reflect.decorate(M,A,y,g);else for(var x=M.length-1;x>=0;x--)(k=M[x])&&(E=(N<3?k(E):N>3?k(A,y,E):k(A,y))||E);return N>3&&E&&Object.defineProperty(A,y,E),E},v=this&&this.__param||function(M,A){return function(y,g){A(y,g,M)}};Object.defineProperty(T,"__esModule",{value:!0}),T.DirtyRowService=void 0;var P=I(2585),D=function(){function M(A){this._bufferService=A,this.clearRange()}return Object.defineProperty(M.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),M.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},M.prototype.markDirty=function(A){A<this._start?this._start=A:A>this._end&&(this._end=A)},M.prototype.markRangeDirty=function(A,y){if(A>y){var g=A;A=y,y=g}A<this._start&&(this._start=A),y>this._end&&(this._end=y)},M.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},C([v(0,P.IBufferService)],M)}();T.DirtyRowService=D},4348:function(Z,T,I){var C=this&&this.__spreadArray||function(A,y){for(var g=0,k=y.length,N=A.length;g<k;g++,N++)A[N]=y[g];return A};Object.defineProperty(T,"__esModule",{value:!0}),T.InstantiationService=T.ServiceCollection=void 0;var v=I(2585),P=I(8343),D=function(){function A(){for(var y=[],g=0;g<arguments.length;g++)y[g]=arguments[g];this._entries=new Map;for(var k=0,N=y;k<N.length;k++){var E=N[k];this.set(E[0],E[1])}}return A.prototype.set=function(y,g){var k=this._entries.get(y);return this._entries.set(y,g),k},A.prototype.forEach=function(y){this._entries.forEach(function(g,k){return y(k,g)})},A.prototype.has=function(y){return this._entries.has(y)},A.prototype.get=function(y){return this._entries.get(y)},A}();T.ServiceCollection=D;var M=function(){function A(){this._services=new D,this._services.set(v.IInstantiationService,this)}return A.prototype.setService=function(y,g){this._services.set(y,g)},A.prototype.getService=function(y){return this._services.get(y)},A.prototype.createInstance=function(y){for(var g=[],k=1;k<arguments.length;k++)g[k-1]=arguments[k];for(var N=P.getServiceDependencies(y).sort(function(K,W){return K.index-W.index}),E=[],x=0,S=N;x<S.length;x++){var O=S[x],L=this._services.get(O.id);if(!L)throw new Error("[createInstance] "+y.name+" depends on UNKNOWN service "+O.id+".");E.push(L)}var j=N.length>0?N[0].index:g.length;if(g.length!==j)throw new Error("[createInstance] First service dependency of "+y.name+" at position "+(j+1)+" conflicts with "+g.length+" static arguments");return new(y.bind.apply(y,C([void 0],C(C([],g),E))))},A}();T.InstantiationService=M},7866:function(Z,T,I){var C=this&&this.__decorate||function(y,g,k,N){var E,x=arguments.length,S=x<3?g:null===N?N=Object.getOwnPropertyDescriptor(g,k):N;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(y,g,k,N);else for(var O=y.length-1;O>=0;O--)(E=y[O])&&(S=(x<3?E(S):x>3?E(g,k,S):E(g,k))||S);return x>3&&S&&Object.defineProperty(g,k,S),S},v=this&&this.__param||function(y,g){return function(k,N){g(k,N,y)}},P=this&&this.__spreadArray||function(y,g){for(var k=0,N=g.length,E=y.length;k<N;k++,E++)y[E]=g[k];return y};Object.defineProperty(T,"__esModule",{value:!0}),T.LogService=void 0;var D=I(2585),M={debug:D.LogLevelEnum.DEBUG,info:D.LogLevelEnum.INFO,warn:D.LogLevelEnum.WARN,error:D.LogLevelEnum.ERROR,off:D.LogLevelEnum.OFF},A=function(){function y(g){var k=this;this._optionsService=g,this.logLevel=D.LogLevelEnum.OFF,this._updateLogLevel(),this._optionsService.onOptionChange(function(N){"logLevel"===N&&k._updateLogLevel()})}return y.prototype._updateLogLevel=function(){this.logLevel=M[this._optionsService.options.logLevel]},y.prototype._evalLazyOptionalParams=function(g){for(var k=0;k<g.length;k++)"function"==typeof g[k]&&(g[k]=g[k]())},y.prototype._log=function(g,k,N){this._evalLazyOptionalParams(N),g.call.apply(g,P([console,"xterm.js: "+k],N))},y.prototype.debug=function(g){for(var k=[],N=1;N<arguments.length;N++)k[N-1]=arguments[N];this.logLevel<=D.LogLevelEnum.DEBUG&&this._log(console.log,g,k)},y.prototype.info=function(g){for(var k=[],N=1;N<arguments.length;N++)k[N-1]=arguments[N];this.logLevel<=D.LogLevelEnum.INFO&&this._log(console.info,g,k)},y.prototype.warn=function(g){for(var k=[],N=1;N<arguments.length;N++)k[N-1]=arguments[N];this.logLevel<=D.LogLevelEnum.WARN&&this._log(console.warn,g,k)},y.prototype.error=function(g){for(var k=[],N=1;N<arguments.length;N++)k[N-1]=arguments[N];this.logLevel<=D.LogLevelEnum.ERROR&&this._log(console.error,g,k)},C([v(0,D.IOptionsService)],y)}();T.LogService=A},7302:function(Z,T,I){Object.defineProperty(T,"__esModule",{value:!0}),T.OptionsService=T.DEFAULT_OPTIONS=T.DEFAULT_BELL_SOUND=void 0;var C=I(8460),v=I(6114),P=I(1439);T.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",T.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,customGlyphs:!0,bellSound:T.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:v.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1});var D=["normal","bold","100","200","300","400","500","600","700","800","900"],M=["cols","rows"],A=function(){function y(g){this._onOptionChange=new C.EventEmitter,this.options=P.clone(T.DEFAULT_OPTIONS);for(var k=0,N=Object.keys(g);k<N.length;k++){var E=N[k];if(E in this.options)try{this.options[E]=this._sanitizeAndValidateOption(E,g[E])}catch(S){console.error(S)}}}return Object.defineProperty(y.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),y.prototype.setOption=function(g,k){if(!(g in T.DEFAULT_OPTIONS))throw new Error('No option with key "'+g+'"');if(M.includes(g))throw new Error('Option "'+g+'" can only be set in the constructor');this.options[g]!==k&&(k=this._sanitizeAndValidateOption(g,k),this.options[g]!==k&&(this.options[g]=k,this._onOptionChange.fire(g)))},y.prototype._sanitizeAndValidateOption=function(g,k){switch(g){case"bellStyle":case"cursorStyle":case"rendererType":case"wordSeparator":k||(k=T.DEFAULT_OPTIONS[g]);break;case"fontWeight":case"fontWeightBold":if("number"==typeof k&&1<=k&&k<=1e3)break;k=D.includes(k)?k:T.DEFAULT_OPTIONS[g];break;case"cursorWidth":k=Math.floor(k);case"lineHeight":case"tabStopWidth":if(k<1)throw new Error(g+" cannot be less than 1, value: "+k);break;case"minimumContrastRatio":k=Math.max(1,Math.min(21,Math.round(10*k)/10));break;case"scrollback":if((k=Math.min(k,4294967295))<0)throw new Error(g+" cannot be less than 0, value: "+k);break;case"fastScrollSensitivity":case"scrollSensitivity":if(k<=0)throw new Error(g+" cannot be less than or equal to 0, value: "+k);case"rows":case"cols":if(!k&&0!==k)throw new Error(g+" must be numeric, value: "+k)}return k},y.prototype.getOption=function(g){if(!(g in T.DEFAULT_OPTIONS))throw new Error('No option with key "'+g+'"');return this.options[g]},y}();T.OptionsService=A},8343:function(Z,T){function I(C,v,P){v.di$target===v?v.di$dependencies.push({id:C,index:P}):(v.di$dependencies=[{id:C,index:P}],v.di$target=v)}Object.defineProperty(T,"__esModule",{value:!0}),T.createDecorator=T.getServiceDependencies=T.serviceRegistry=void 0,T.serviceRegistry=new Map,T.getServiceDependencies=function(C){return C.di$dependencies||[]},T.createDecorator=function(C){if(T.serviceRegistry.has(C))return T.serviceRegistry.get(C);var v=function P(D,M,A){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");I(P,D,A)};return v.toString=function(){return C},T.serviceRegistry.set(C,v),v}},2585:function(Z,T,I){Object.defineProperty(T,"__esModule",{value:!0}),T.IUnicodeService=T.LogLevelEnum=T.IOptionsService=T.ILogService=T.IInstantiationService=T.IDirtyRowService=T.ICharsetService=T.ICoreService=T.ICoreMouseService=T.IBufferService=void 0;var C,v=I(8343);T.IBufferService=v.createDecorator("BufferService"),T.ICoreMouseService=v.createDecorator("CoreMouseService"),T.ICoreService=v.createDecorator("CoreService"),T.ICharsetService=v.createDecorator("CharsetService"),T.IDirtyRowService=v.createDecorator("DirtyRowService"),T.IInstantiationService=v.createDecorator("InstantiationService"),T.ILogService=v.createDecorator("LogService"),T.IOptionsService=v.createDecorator("OptionsService"),(C=T.LogLevelEnum||(T.LogLevelEnum={}))[C.DEBUG=0]="DEBUG",C[C.INFO=1]="INFO",C[C.WARN=2]="WARN",C[C.ERROR=3]="ERROR",C[C.OFF=4]="OFF",T.IUnicodeService=v.createDecorator("UnicodeService")},1480:function(Z,T,I){Object.defineProperty(T,"__esModule",{value:!0}),T.UnicodeService=void 0;var C=I(8460),v=I(225),P=function(){function D(){this._providers=Object.create(null),this._active="",this._onChange=new C.EventEmitter;var M=new v.UnicodeV6;this.register(M),this._active=M.version,this._activeProvider=M}return Object.defineProperty(D.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"activeVersion",{get:function(){return this._active},set:function(A){if(!this._providers[A])throw new Error('unknown Unicode version "'+A+'"');this._active=A,this._activeProvider=this._providers[A],this._onChange.fire(A)},enumerable:!1,configurable:!0}),D.prototype.register=function(M){this._providers[M.version]=M},D.prototype.wcwidth=function(M){return this._activeProvider.wcwidth(M)},D.prototype.getStringCellWidth=function(M){for(var A=0,y=M.length,g=0;g<y;++g){var k=M.charCodeAt(g);if(55296<=k&&k<=56319){if(++g>=y)return A+this.wcwidth(k);var N=M.charCodeAt(g);56320<=N&&N<=57343?k=1024*(k-55296)+N-56320+65536:A+=this.wcwidth(N)}A+=this.wcwidth(k)}return A},D}();T.UnicodeService=P}},f={};function U(V){var Z=f[V];if(void 0!==Z)return Z.exports;var T=f[V]={exports:{}};return q[V].call(T.exports,T,T.exports,U),T.exports}var B={};return function(){var V=B;Object.defineProperty(V,"__esModule",{value:!0}),V.Terminal=void 0;var Z=U(3236),T=U(9042),I=U(7975),C=U(7090),v=U(5741),P=U(8285),D=function(){function M(A){this._core=new Z.Terminal(A),this._addonManager=new v.AddonManager}return M.prototype._checkProposedApi=function(){if(!this._core.optionsService.options.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(M.prototype,"onBell",{get:function(){return this._core.onBell},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new I.ParserApi(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"unicode",{get:function(){return this._checkProposedApi(),new C.UnicodeApi(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"buffer",{get:function(){return this._checkProposedApi(),this._buffer||(this._buffer=new P.BufferNamespaceApi(this._core)),this._buffer},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"modes",{get:function(){var y=this._core.coreService.decPrivateModes,g="none";switch(this._core.coreMouseService.activeProtocol){case"X10":g="x10";break;case"VT200":g="vt200";break;case"DRAG":g="drag";break;case"ANY":g="any"}return{applicationCursorKeysMode:y.applicationCursorKeys,applicationKeypadMode:y.applicationKeypad,bracketedPasteMode:y.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:g,originMode:y.origin,reverseWraparoundMode:y.reverseWraparound,sendFocusMode:y.sendFocus,wraparoundMode:y.wraparound}},enumerable:!1,configurable:!0}),M.prototype.blur=function(){this._core.blur()},M.prototype.focus=function(){this._core.focus()},M.prototype.resize=function(A,y){this._verifyIntegers(A,y),this._core.resize(A,y)},M.prototype.open=function(A){this._core.open(A)},M.prototype.attachCustomKeyEventHandler=function(A){this._core.attachCustomKeyEventHandler(A)},M.prototype.registerLinkMatcher=function(A,y,g){return this._checkProposedApi(),this._core.registerLinkMatcher(A,y,g)},M.prototype.deregisterLinkMatcher=function(A){this._checkProposedApi(),this._core.deregisterLinkMatcher(A)},M.prototype.registerLinkProvider=function(A){return this._checkProposedApi(),this._core.registerLinkProvider(A)},M.prototype.registerCharacterJoiner=function(A){return this._checkProposedApi(),this._core.registerCharacterJoiner(A)},M.prototype.deregisterCharacterJoiner=function(A){this._checkProposedApi(),this._core.deregisterCharacterJoiner(A)},M.prototype.registerMarker=function(A){return this._checkProposedApi(),this._verifyIntegers(A),this._core.addMarker(A)},M.prototype.addMarker=function(A){return this.registerMarker(A)},M.prototype.hasSelection=function(){return this._core.hasSelection()},M.prototype.select=function(A,y,g){this._verifyIntegers(A,y,g),this._core.select(A,y,g)},M.prototype.getSelection=function(){return this._core.getSelection()},M.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},M.prototype.clearSelection=function(){this._core.clearSelection()},M.prototype.selectAll=function(){this._core.selectAll()},M.prototype.selectLines=function(A,y){this._verifyIntegers(A,y),this._core.selectLines(A,y)},M.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},M.prototype.scrollLines=function(A){this._verifyIntegers(A),this._core.scrollLines(A)},M.prototype.scrollPages=function(A){this._verifyIntegers(A),this._core.scrollPages(A)},M.prototype.scrollToTop=function(){this._core.scrollToTop()},M.prototype.scrollToBottom=function(){this._core.scrollToBottom()},M.prototype.scrollToLine=function(A){this._verifyIntegers(A),this._core.scrollToLine(A)},M.prototype.clear=function(){this._core.clear()},M.prototype.write=function(A,y){this._core.write(A,y)},M.prototype.writeUtf8=function(A,y){this._core.write(A,y)},M.prototype.writeln=function(A,y){this._core.write(A),this._core.write("\r\n",y)},M.prototype.paste=function(A){this._core.paste(A)},M.prototype.getOption=function(A){return this._core.optionsService.getOption(A)},M.prototype.setOption=function(A,y){this._core.optionsService.setOption(A,y)},M.prototype.refresh=function(A,y){this._verifyIntegers(A,y),this._core.refresh(A,y)},M.prototype.reset=function(){this._core.reset()},M.prototype.loadAddon=function(A){return this._addonManager.loadAddon(this,A)},Object.defineProperty(M,"strings",{get:function(){return T},enumerable:!1,configurable:!0}),M.prototype._verifyIntegers=function(){for(var A=[],y=0;y<arguments.length;y++)A[y]=arguments[y];for(var g=0,k=A;g<k.length;g++){var N=k[g];if(N===1/0||isNaN(N)||N%1!=0)throw new Error("This API only accepts integers")}},M}();V.Terminal=D}(),B}()},18419:function(ce,q,f){"use strict";f.d(q,{o:function(){return V}});var U=f(90838),B=f(68707),V=function(){function Z(){this.data=[],this.dataChange=new U.X([]),this.itemUpdated=new B.xQ}return Z.prototype.getItems=function(){return this.data},Z.prototype.add=function(T){this.findIndex(T)>=0?this.update(T):(this.data.push(T),this.dataChange.next(this.data))},Z.prototype.set=function(T){var I=this;T.forEach(function(v){var P=I.findIndex(v);if(P>=0){var D=Object.assign(I.data[P],v);I.data[P]=D}else I.data.push(v)}),this.data.filter(function(v){return 0===T.filter(function(P){return I.getItemKey(P)===I.getItemKey(v)}).length}).forEach(function(v){return I.remove(v)}),this.dataChange.next(this.data)},Z.prototype.get=function(T){var I=this,C=this.data.findIndex(function(v){return I.getItemKey(v)===T});if(C>=0)return this.data[C]},Z.prototype.update=function(T){var I=this.findIndex(T);if(I>=0){var C=Object.assign(this.data[I],T);this.data[I]=C,this.dataChange.next(this.data),this.itemUpdated.next(C)}},Z.prototype.remove=function(T){var I=this.findIndex(T);I>=0&&(this.data.splice(I,1),this.dataChange.next(this.data))},Object.defineProperty(Z.prototype,"changes",{get:function(){return this.dataChange},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"itemChanged",{get:function(){return this.itemUpdated},enumerable:!1,configurable:!0}),Z.prototype.clear=function(){this.data=[],this.dataChange.next(this.data)},Z.prototype.findIndex=function(T){var I=this;return this.data.findIndex(function(C){return I.getItemKey(C)===I.getItemKey(T)})},Z}()},3941:function(ce,q,f){"use strict";f.d(q,{F:function(){return Z}});var U=f(61855),B=f(18419),V=f(65508),Z=function(T){function I(){return null!==T&&T.apply(this,arguments)||this}return(0,U.ZT)(I,T),I.prototype.getItemKey=function(C){return C.link_id},I.\u0275fac=function(){var C;return function(P){return(C||(C=V.n5z(I)))(P||I)}}(),I.\u0275prov=V.Yz7({token:I,factory:I.\u0275fac}),I}(B.o)},96852:function(ce,q,f){"use strict";f.d(q,{G:function(){return Z}});var U=f(61855),B=f(18419),V=f(65508),Z=function(T){function I(){return null!==T&&T.apply(this,arguments)||this}return(0,U.ZT)(I,T),I.prototype.getItemKey=function(C){return C.node_id},I.\u0275fac=function(){var C;return function(P){return(C||(C=V.n5z(I)))(P||I)}}(),I.\u0275prov=V.Yz7({token:I,factory:I.\u0275fac}),I}(B.o)},36889:function(ce,q,f){"use strict";f.d(q,{X:function(){return V}});var U=f(65508),B=f(96153),V=function(){function Z(T){this.httpServer=T}return Z.prototype.getComputes=function(T){return this.httpServer.get(T,"/computes")},Z.prototype.getUploadPath=function(T,I,C){return T.protocol+"//"+T.host+":"+T.port+"/v2/"+I+"/images/"+C},Z.prototype.getStatistics=function(T){return this.httpServer.get(T,"/statistics")},Z.\u0275fac=function(I){return new(I||Z)(U.LFG(B.wh))},Z.\u0275prov=U.Yz7({token:Z,factory:Z.\u0275fac}),Z}()},96153:function(ce,q,f){"use strict";f.d(q,{gc:function(){return C},wh:function(){return v}});var U=f(61855),B=f(65508),V=f(11363),Z=f(13426),T=f(75472),I=function(P){function D(M){return P.call(this,M)||this}return(0,U.ZT)(D,P),D.fromError=function(M,A){var y=new D(M);return y.originalError=A,y},D}(Error),C=function(){function P(){}return P.prototype.handleError=function(D){var M=D;return"HttpErrorResponse"===D.name&&0===D.status&&(M=I.fromError("Server is unreachable",D)),(0,V._)(M)},P.\u0275prov=B.Yz7({token:P,factory:P.\u0275fac=function(M){return new(M||P)}}),P}(),v=function(){function P(D,M){this.http=D,this.errorHandler=M,this.requestsNotificationEmitter=new B.vpe}return P.prototype.get=function(D,M,A){A=this.getJsonOptions(A);var y=this.getOptionsForServer(D,M,A);return this.requestsNotificationEmitter.emit("GET "+y.url),this.http.get(y.url,y.options).pipe((0,Z.K)(this.errorHandler.handleError))},P.prototype.getText=function(D,M,A){A=this.getTextOptions(A);var y=this.getOptionsForServer(D,M,A);return this.requestsNotificationEmitter.emit("GET "+y.url),this.http.get(y.url,y.options).pipe((0,Z.K)(this.errorHandler.handleError))},P.prototype.post=function(D,M,A,y){y=this.getJsonOptions(y);var g=this.getOptionsForServer(D,M,y);return this.requestsNotificationEmitter.emit("POST "+g.url),this.http.post(g.url,A,g.options).pipe((0,Z.K)(this.errorHandler.handleError))},P.prototype.put=function(D,M,A,y){y=this.getJsonOptions(y);var g=this.getOptionsForServer(D,M,y);return this.requestsNotificationEmitter.emit("PUT "+g.url),this.http.put(g.url,A,g.options).pipe((0,Z.K)(this.errorHandler.handleError))},P.prototype.delete=function(D,M,A){A=this.getJsonOptions(A);var y=this.getOptionsForServer(D,M,A);return this.requestsNotificationEmitter.emit("DELETE "+y.url),this.http.delete(y.url,y.options).pipe((0,Z.K)(this.errorHandler.handleError))},P.prototype.patch=function(D,M,A,y){y=this.getJsonOptions(y);var g=this.getOptionsForServer(D,M,y);return this.http.patch(g.url,A,g.options).pipe((0,Z.K)(this.errorHandler.handleError))},P.prototype.head=function(D,M,A){A=this.getJsonOptions(A);var y=this.getOptionsForServer(D,M,A);return this.http.head(y.url,y.options).pipe((0,Z.K)(this.errorHandler.handleError))},P.prototype.options=function(D,M,A){A=this.getJsonOptions(A);var y=this.getOptionsForServer(D,M,A);return this.http.options(y.url,y.options).pipe((0,Z.K)(this.errorHandler.handleError))},P.prototype.getJsonOptions=function(D){return D||{responseType:"json"}},P.prototype.getTextOptions=function(D){return D||{responseType:"text"}},P.prototype.getOptionsForServer=function(D,M,A){if(D.host&&D.port?(D.protocol||(D.protocol=location.protocol),M=D.protocol+"//"+D.host+":"+D.port+"/v2"+M):M="/v2"+M,A.headers||(A.headers={}),"basic"===D.authorization){var y=btoa(D.login+":"+D.password);A.headers.Authorization="Basic "+y}return{url:M,options:A}},P.\u0275fac=function(M){return new(M||P)(B.LFG(T.eN),B.LFG(C))},P.\u0275prov=B.Yz7({token:P,factory:P.\u0275fac}),P}()},14200:function(ce,q,f){"use strict";f.d(q,{Y:function(){return I}});var U=f(68707),B=f(65508),V=f(96153),Z=f(10503),T=f(2094),I=function(){function C(v,P,D){this.httpServer=v,this.settingsService=P,this.recentlyOpenedProjectService=D,this.projectListSubject=new U.xQ}return C.prototype.projectListUpdated=function(){this.projectListSubject.next(!0)},C.prototype.get=function(v,P){return this.httpServer.get(v,"/projects/"+P)},C.prototype.open=function(v,P){return this.httpServer.post(v,"/projects/"+P+"/open",{})},C.prototype.close=function(v,P){return this.recentlyOpenedProjectService.removeData(),this.httpServer.post(v,"/projects/"+P+"/close",{})},C.prototype.list=function(v){return this.httpServer.get(v,"/projects")},C.prototype.nodes=function(v,P){return this.httpServer.get(v,"/projects/"+P+"/nodes")},C.prototype.links=function(v,P){return this.httpServer.get(v,"/projects/"+P+"/links")},C.prototype.drawings=function(v,P){return this.httpServer.get(v,"/projects/"+P+"/drawings")},C.prototype.add=function(v,P,D){return this.httpServer.post(v,"/projects",{name:P,project_id:D})},C.prototype.update=function(v,P){return this.httpServer.put(v,"/projects/"+P.project_id,{auto_close:P.auto_close,auto_open:P.auto_open,auto_start:P.auto_start,drawing_grid_size:P.drawing_grid_size,grid_size:P.grid_size,name:P.name,scene_width:P.scene_width,scene_height:P.scene_height,show_interface_labels:P.show_interface_labels})},C.prototype.delete=function(v,P){return this.httpServer.delete(v,"/projects/"+P)},C.prototype.getUploadPath=function(v,P,D){return v.protocol+"//"+v.host+":"+v.port+"/v2/projects/"+P+"/import?name="+D},C.prototype.getExportPath=function(v,P){return v.protocol+"//"+v.host+":"+v.port+"/v2/projects/"+P.project_id+"/export"},C.prototype.export=function(v,P){return this.httpServer.get(v,"/projects/"+P+"/export")},C.prototype.getStatistics=function(v,P){return this.httpServer.get(v,"/projects/"+P+"/stats")},C.prototype.duplicate=function(v,P,D){return this.httpServer.post(v,"/projects/"+P+"/duplicate",{name:D})},C.prototype.isReadOnly=function(v){return!!v.readonly&&v.readonly},C.\u0275fac=function(P){return new(P||C)(B.LFG(V.wh),B.LFG(Z.g),B.LFG(T.p))},C.\u0275prov=B.Yz7({token:C,factory:C.\u0275fac}),C}()},2094:function(ce,q,f){"use strict";f.d(q,{p:function(){return B}});var U=f(65508),B=function(){function V(){}return V.prototype.setServerId=function(Z){this.serverId=Z},V.prototype.setProjectId=function(Z){this.projectId=Z},V.prototype.setServerIdProjectList=function(Z){this.serverIdProjectList=Z},V.prototype.getServerId=function(){return this.serverId},V.prototype.getProjectId=function(){return this.projectId},V.prototype.getServerIdProjectList=function(){return this.serverIdProjectList},V.prototype.removeData=function(){this.serverId="",this.projectId=""},V.\u0275prov=U.Yz7({token:V,factory:V.\u0275fac=function(T){return new(T||V)}}),V}()},10503:function(ce,q,f){"use strict";f.d(q,{g:function(){return B}});var U=f(65508),B=function(){function V(){this.settings={crash_reports:!0,console_command:void 0,anonymous_statistics:!0},this.reportsSettings="crash_reports",this.consoleSettings="console_command",this.statisticsSettings="statistics_command",this.getItem(this.reportsSettings)&&(this.settings.crash_reports="true"===this.getItem(this.reportsSettings)),this.getItem(this.consoleSettings)&&(this.settings.console_command=this.getItem(this.consoleSettings)),this.getItem(this.statisticsSettings)&&(this.settings.anonymous_statistics="true"===this.getItem(this.statisticsSettings))}return V.prototype.setReportsSettings=function(Z){this.settings.crash_reports=Z,this.removeItem(this.reportsSettings),this.setItem(this.reportsSettings,Z?"true":"false")},V.prototype.setStatisticsSettings=function(Z){this.settings.anonymous_statistics=Z,this.removeItem(this.statisticsSettings),this.setItem(this.statisticsSettings,Z?"true":"false")},V.prototype.getReportsSettings=function(){return"true"===this.getItem(this.reportsSettings)},V.prototype.getStatisticsSettings=function(){return"true"===this.getItem(this.statisticsSettings)},V.prototype.setConsoleSettings=function(Z){this.settings.console_command=Z,this.removeItem(this.consoleSettings),this.setItem(this.consoleSettings,Z)},V.prototype.getConsoleSettings=function(){return this.getItem(this.consoleSettings)},V.prototype.removeItem=function(Z){localStorage.removeItem(Z)},V.prototype.setItem=function(Z,T){localStorage.setItem(Z,T)},V.prototype.getItem=function(Z){return localStorage.getItem(Z)},V.prototype.getAll=function(){return this.settings},V.prototype.setAll=function(Z){this.settings=Z,this.setConsoleSettings(Z.console_command),this.setReportsSettings(Z.crash_reports),this.setStatisticsSettings(Z.anonymous_statistics)},V.\u0275prov=U.Yz7({token:V,factory:V.\u0275fac=function(T){return new(T||V)},providedIn:"root"}),V}()},15132:function(ce,q,f){"use strict";f.d(q,{f:function(){return V}});var U=f(65508),B=f(90838),V=function(){function Z(){this._darkMode$=new B.X(!1),this.darkMode$=this._darkMode$.asObservable(),this.themeChanged=new U.vpe,this.savedTheme="dark",localStorage.getItem("theme")||localStorage.setItem("theme","dark"),this.savedTheme=localStorage.getItem("theme")}return Z.prototype.getActualTheme=function(){return this.savedTheme},Z.prototype.setDarkMode=function(T){T?(this.savedTheme="dark",this.themeChanged.emit("dark-theme"),localStorage.setItem("theme","dark")):(this.savedTheme="light",this.themeChanged.emit("light-theme"),localStorage.setItem("theme","light"))},Z.\u0275prov=U.Yz7({token:Z,factory:Z.\u0275fac=function(I){return new(I||Z)},providedIn:"root"}),Z}()},75161:function(ce,q,f){"use strict";var U={};f.r(U),f.d(U,{active:function(){return rY},arc:function(){return wte},area:function(){return rH},areaRadial:function(){return sH},ascending:function(){return Cf},axisBottom:function(){return UC},axisLeft:function(){return EE},axisRight:function(){return vm},axisTop:function(){return kE},bisect:function(){return Sf},bisectLeft:function(){return V3},bisectRight:function(){return H3},bisector:function(){return vE},brush:function(){return fY},brushSelection:function(){return cY},brushX:function(){return dY},brushY:function(){return pY},chord:function(){return mY},clientPoint:function(){return d_},cluster:function(){return MK},color:function(){return Qc},contourDensity:function(){return VY},contours:function(){return m8},create:function(){return qE},creator:function(){return i_},cross:function(){return q3},csvFormat:function(){return KY},csvFormatRows:function(){return XY},csvParse:function(){return JY},csvParseRows:function(){return QY},cubehelix:function(){return Ae},curveBasis:function(){return jte},curveBasisClosed:function(){return zte},curveBasisOpen:function(){return Wte},curveBundle:function(){return Gte},curveCardinal:function(){return Yte},curveCardinalClosed:function(){return Jte},curveCardinalOpen:function(){return Qte},curveCatmullRom:function(){return Kte},curveCatmullRomClosed:function(){return Xte},curveCatmullRomOpen:function(){return $te},curveLinear:function(){return OA},curveLinearClosed:function(){return ene},curveMonotoneX:function(){return tne},curveMonotoneY:function(){return nne},curveNatural:function(){return rne},curveStep:function(){return ine},curveStepAfter:function(){return ane},curveStepBefore:function(){return one},customEvent:function(){return Sm},descending:function(){return p4},deviation:function(){return Tf},dispatch:function(){return $d},drag:function(){return Nf},dragDisable:function(){return f_},dragEnable:function(){return zl},dsvFormat:function(){return _N},easeBack:function(){return w8},easeBackIn:function(){return xJ},easeBackInOut:function(){return w8},easeBackOut:function(){return wJ},easeBounce:function(){return b1},easeBounceIn:function(){return SJ},easeBounceInOut:function(){return TJ},easeBounceOut:function(){return b1},easeCircle:function(){return x8},easeCircleIn:function(){return pJ},easeCircleInOut:function(){return x8},easeCircleOut:function(){return fJ},easeCubic:function(){return nN},easeCubicIn:function(){return XG},easeCubicInOut:function(){return nN},easeCubicOut:function(){return $G},easeElastic:function(){return k8},easeElasticIn:function(){return kJ},easeElasticInOut:function(){return EJ},easeElasticOut:function(){return k8},easeExp:function(){return T8},easeExpIn:function(){return cJ},easeExpInOut:function(){return T8},easeExpOut:function(){return dJ},easeLinear:function(){return rJ},easePoly:function(){return y8},easePolyIn:function(){return aJ},easePolyInOut:function(){return y8},easePolyOut:function(){return sJ},easeQuad:function(){return _8},easeQuadIn:function(){return iJ},easeQuadInOut:function(){return _8},easeQuadOut:function(){return oJ},easeSin:function(){return S8},easeSinIn:function(){return lJ},easeSinInOut:function(){return S8},easeSinOut:function(){return uJ},entries:function(){return DY},event:function(){return Mn},extent:function(){return PC},forceCenter:function(){return MJ},forceCollide:function(){return GJ},forceLink:function(){return JJ},forceManyBody:function(){return tQ},forceRadial:function(){return nQ},forceSimulation:function(){return eQ},forceX:function(){return rQ},forceY:function(){return iQ},format:function(){return MM},formatDefaultLocale:function(){return Z8},formatLocale:function(){return N8},formatPrefix:function(){return kN},formatSpecifier:function(){return C1},geoAlbers:function(){return X7},geoAlbersUsa:function(){return lK},geoArea:function(){return fQ},geoAzimuthalEqualArea:function(){return uK},geoAzimuthalEqualAreaRaw:function(){return c6},geoAzimuthalEquidistant:function(){return cK},geoAzimuthalEquidistantRaw:function(){return d6},geoBounds:function(){return gQ},geoCentroid:function(){return TQ},geoCircle:function(){return xQ},geoClipAntimeridian:function(){return qN},geoClipCircle:function(){return b7},geoClipExtent:function(){return OQ},geoClipRectangle:function(){return KM},geoConicConformal:function(){return pK},geoConicConformalRaw:function(){return tU},geoConicEqualArea:function(){return lA},geoConicEqualAreaRaw:function(){return K7},geoConicEquidistant:function(){return hK},geoConicEquidistantRaw:function(){return nU},geoContains:function(){return FQ},geoDistance:function(){return E1},geoEquirectangular:function(){return fK},geoEquirectangularRaw:function(){return Z1},geoGnomonic:function(){return mK},geoGnomonicRaw:function(){return p6},geoGraticule:function(){return D7},geoGraticule10:function(){return BQ},geoIdentity:function(){return vK},geoInterpolate:function(){return UQ},geoLength:function(){return C7},geoMercator:function(){return dK},geoMercatorRaw:function(){return N1},geoNaturalEarth1:function(){return gK},geoNaturalEarth1Raw:function(){return f6},geoOrthographic:function(){return _K},geoOrthographicRaw:function(){return h6},geoPath:function(){return XQ},geoProjection:function(){return up},geoProjectionMutator:function(){return l6},geoRotation:function(){return p7},geoStereographic:function(){return yK},geoStereographicRaw:function(){return m6},geoStream:function(){return Xu},geoTransform:function(){return $Q},geoTransverseMercator:function(){return bK},geoTransverseMercatorRaw:function(){return v6},hcl:function(){return u1},hierarchy:function(){return g6},histogram:function(){return bE},hsl:function(){return a1},interpolate:function(){return Pf},interpolateArray:function(){return da},interpolateBasis:function(){return ht},interpolateBasisClosed:function(){return Dt},interpolateBlues:function(){return Vee},interpolateBrBG:function(){return Cee},interpolateBuGn:function(){return Dee},interpolateBuPu:function(){return Oee},interpolateCool:function(){return Qee},interpolateCubehelix:function(){return $W},interpolateCubehelixDefault:function(){return Yee},interpolateCubehelixLong:function(){return aM},interpolateDate:function(){return Gl},interpolateGnBu:function(){return Pee},interpolateGreens:function(){return qee},interpolateGreys:function(){return jee},interpolateHcl:function(){return KW},interpolateHclLong:function(){return XW},interpolateHsl:function(){return YW},interpolateHslLong:function(){return JW},interpolateInferno:function(){return ete},interpolateLab:function(){return QW},interpolateMagma:function(){return $ee},interpolateNumber:function(){return ia},interpolateObject:function(){return Xc},interpolateOrRd:function(){return Iee},interpolateOranges:function(){return Gee},interpolatePRGn:function(){return See},interpolatePiYG:function(){return Tee},interpolatePlasma:function(){return tte},interpolatePuBu:function(){return Nee},interpolatePuBuGn:function(){return Ree},interpolatePuOr:function(){return xee},interpolatePuRd:function(){return Zee},interpolatePurples:function(){return zee},interpolateRainbow:function(){return Kee},interpolateRdBu:function(){return wee},interpolateRdGy:function(){return kee},interpolateRdPu:function(){return Lee},interpolateRdYlBu:function(){return Eee},interpolateRdYlGn:function(){return Mee},interpolateReds:function(){return Wee},interpolateRgb:function(){return Gr},interpolateRgbBasis:function(){return _o},interpolateRgbBasisClosed:function(){return ca},interpolateRound:function(){return eM},interpolateSpectral:function(){return Aee},interpolateString:function(){return Of},interpolateTransformCss:function(){return L4},interpolateTransformSvg:function(){return F4},interpolateViridis:function(){return Xee},interpolateWarm:function(){return Jee},interpolateYlGn:function(){return Bee},interpolateYlGnBu:function(){return Fee},interpolateYlOrBr:function(){return Uee},interpolateYlOrRd:function(){return Hee},interpolateZoom:function(){return H4},interrupt:function(){return Dm},interval:function(){return vne},isoFormat:function(){return ree},isoParse:function(){return aee},keys:function(){return MY},lab:function(){return s1},line:function(){return PA},lineRadial:function(){return aH},linkHorizontal:function(){return Rte},linkRadial:function(){return Zte},linkVertical:function(){return Nte},local:function(){return u_},map:function(){return Rf},matcher:function(){return PE},max:function(){return t_},mean:function(){return CE},median:function(){return SE},merge:function(){return fm},min:function(){return TE},mouse:function(){return ul},namespace:function(){return gm},namespaces:function(){return jC},nest:function(){return xY},now:function(){return y_},pack:function(){return $K},packEnclose:function(){return iU},packSiblings:function(){return QK},pairs:function(){return d4},partition:function(){return eX},path:function(){return Ku},permute:function(){return ql},pie:function(){return Mte},pointRadial:function(){return eS},polygonArea:function(){return mX},polygonCentroid:function(){return vX},polygonContains:function(){return bX},polygonHull:function(){return yX},polygonLength:function(){return CX},precisionFixed:function(){return L8},precisionPrefix:function(){return F8},precisionRound:function(){return B8},quadtree:function(){return wM},quantile:function(){return wf},quantize:function(){return eG},radialArea:function(){return sH},radialLine:function(){return aH},randomBates:function(){return xX},randomExponential:function(){return wX},randomIrwinHall:function(){return CU},randomLogNormal:function(){return TX},randomNormal:function(){return bU},randomUniform:function(){return SX},range:function(){return Vs},rgb:function(){return Af},ribbon:function(){return TY},scaleBand:function(){return w6},scaleIdentity:function(){return EU},scaleImplicit:function(){return T6},scaleLinear:function(){return kU},scaleLog:function(){return PU},scaleOrdinal:function(){return x6},scalePoint:function(){return kX},scalePow:function(){return M6},scaleQuantile:function(){return IU},scaleQuantize:function(){return RU},scaleSequential:function(){return k9},scaleSqrt:function(){return NX},scaleThreshold:function(){return NU},scaleTime:function(){return cee},scaleUtc:function(){return dee},scan:function(){return G3},schemeAccent:function(){return fee},schemeBlues:function(){return Y9},schemeBrBG:function(){return E9},schemeBuGn:function(){return Z9},schemeBuPu:function(){return L9},schemeCategory10:function(){return pee},schemeDark2:function(){return hee},schemeGnBu:function(){return F9},schemeGreens:function(){return J9},schemeGreys:function(){return Q9},schemeOrRd:function(){return B9},schemeOranges:function(){return $9},schemePRGn:function(){return M9},schemePaired:function(){return mee},schemePastel1:function(){return vee},schemePastel2:function(){return gee},schemePiYG:function(){return A9},schemePuBu:function(){return H9},schemePuBuGn:function(){return U9},schemePuOr:function(){return D9},schemePuRd:function(){return V9},schemePurples:function(){return K9},schemeRdBu:function(){return O9},schemeRdGy:function(){return P9},schemeRdPu:function(){return q9},schemeRdYlBu:function(){return I9},schemeRdYlGn:function(){return R9},schemeReds:function(){return X9},schemeSet1:function(){return _ee},schemeSet2:function(){return yee},schemeSet3:function(){return bee},schemeSpectral:function(){return N9},schemeYlGn:function(){return z9},schemeYlGnBu:function(){return j9},schemeYlOrBr:function(){return W9},schemeYlOrRd:function(){return G9},select:function(){return Xr},selectAll:function(){return LR},selection:function(){return qs},selector:function(){return zC},selectorAll:function(){return DE},set:function(){return EY},shuffle:function(){return f4},stack:function(){return lne},stackOffsetDiverging:function(){return cne},stackOffsetExpand:function(){return une},stackOffsetNone:function(){return F_},stackOffsetSilhouette:function(){return dne},stackOffsetWiggle:function(){return pne},stackOrderAscending:function(){return DH},stackOrderDescending:function(){return fne},stackOrderInsideOut:function(){return hne},stackOrderNone:function(){return B_},stackOrderReverse:function(){return mne},stratify:function(){return iX},style:function(){return tp},sum:function(){return Y3},symbol:function(){return qte},symbolCircle:function(){return q6},symbolCross:function(){return lH},symbolDiamond:function(){return cH},symbolSquare:function(){return fH},symbolStar:function(){return pH},symbolTriangle:function(){return hH},symbolWye:function(){return mH},symbols:function(){return Vte},thresholdFreedmanDiaconis:function(){return z3},thresholdScott:function(){return W3},thresholdSturges:function(){return ZC},tickIncrement:function(){return xf},tickStep:function(){return Gc},ticks:function(){return pm},timeDay:function(){return TA},timeDays:function(){return FX},timeFormat:function(){return I6},timeFormatDefaultLocale:function(){return T9},timeFormatLocale:function(){return d9},timeFriday:function(){return YU},timeFridays:function(){return qX},timeHour:function(){return jU},timeHours:function(){return LX},timeInterval:function(){return Va},timeMillisecond:function(){return yA},timeMilliseconds:function(){return ZU},timeMinute:function(){return VU},timeMinutes:function(){return ZX},timeMonday:function(){return H1},timeMondays:function(){return BX},timeMonth:function(){return XU},timeMonths:function(){return zX},timeParse:function(){return S9},timeSaturday:function(){return JU},timeSaturdays:function(){return jX},timeSecond:function(){return SA},timeSeconds:function(){return UU},timeSunday:function(){return U1},timeSundays:function(){return QU},timeThursday:function(){return V1},timeThursdays:function(){return VX},timeTuesday:function(){return WU},timeTuesdays:function(){return UX},timeWednesday:function(){return GU},timeWednesdays:function(){return HX},timeWeek:function(){return U1},timeWeeks:function(){return QU},timeYear:function(){return Hm},timeYears:function(){return WX},timeout:function(){return QR},timer:function(){return cM},timerFlush:function(){return G4},touch:function(){return p_},touches:function(){return jE},transition:function(){return hM},transpose:function(){return J3},tree:function(){return cX},treemap:function(){return dX},treemapBinary:function(){return pX},treemapDice:function(){return F1},treemapResquarify:function(){return hX},treemapSlice:function(){return mA},treemapSliceDice:function(){return fX},treemapSquarify:function(){return _U},tsvFormat:function(){return tJ},tsvFormatRows:function(){return nJ},tsvParse:function(){return $Y},tsvParseRows:function(){return eJ},utcDay:function(){return xA},utcDays:function(){return JX},utcFormat:function(){return kA},utcFriday:function(){return a9},utcFridays:function(){return e$},utcHour:function(){return n9},utcHours:function(){return YX},utcMillisecond:function(){return yA},utcMilliseconds:function(){return ZU},utcMinute:function(){return e9},utcMinutes:function(){return GX},utcMonday:function(){return j1},utcMondays:function(){return QX},utcMonth:function(){return c9},utcMonths:function(){return n$},utcParse:function(){return R6},utcSaturday:function(){return s9},utcSaturdays:function(){return t$},utcSecond:function(){return SA},utcSeconds:function(){return UU},utcSunday:function(){return q1},utcSundays:function(){return l9},utcThursday:function(){return z1},utcThursdays:function(){return $X},utcTuesday:function(){return i9},utcTuesdays:function(){return KX},utcWednesday:function(){return o9},utcWednesdays:function(){return XX},utcWeek:function(){return q1},utcWeeks:function(){return l9},utcYear:function(){return qm},utcYears:function(){return r$},values:function(){return AY},variance:function(){return _E},voronoi:function(){return Nne},window:function(){return QC},zip:function(){return K3},zoom:function(){return VH},zoomIdentity:function(){return HA},zoomTransform:function(){return UH}});var x,B=f(29176),V=f(42515),C=(f(70455),f(99890),f(99740),f(27235)),v=f(36683),P=f(20901),D=f(89200),M=f(10509),A=f(97154),y=f(10629),g=f(18967),k=f(14105);f(26552);"undefined"!=typeof window&&window,"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self;"undefined"!=typeof global&&global,"_nghost-".concat("%COMP%"),"_ngcontent-".concat("%COMP%");var nx=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff";"[^".concat(nx,"]"),"[".concat(nx,"]{2,}"),(0,V.Z)(x={},4,4),(0,V.Z)(x,1,1),(0,V.Z)(x,2,2),(0,V.Z)(x,0,0),(0,V.Z)(x,3,3),Object.keys({useClass:null}),Object.keys({useFactory:null}),Object.keys({useValue:null}),Object.keys({useExisting:null});var e=f(65508),At=f(40098),Ta=f(28722),ei=f(15427),On=f(78081),xi=f(6517),Pn=f(68707),us=f(5051),jB=f(57434),a3=f(58172),na=f(89797),go=f(55371),Br=f(44213),ua=f(57682),kr=f(85639),eo=f(48359),Fa=f(59371),Hs=f(34487),Ba=f(8392);function Q0(n,r,t){for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];o?n.setProperty(i,o,(null==t?void 0:t.has(i))?"important":""):n.removeProperty(i)}return n}function Kh(n,r){var t=r?"":"none";Q0(n.style,{"touch-action":r?"":"none","-webkit-user-drag":r?"":"none","-webkit-tap-highlight-color":r?"":"transparent","user-select":t,"-ms-user-select":t,"-webkit-user-select":t,"-moz-user-select":t})}function K0(n,r,t){Q0(n.style,{position:r?"":"fixed",top:r?"":"0",opacity:r?"":"0",left:r?"":"-999em"},t)}function Zg(n,r){return r&&"none"!=r?n+" "+r:n}function xk(n){var r=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*r}function X0(n,r){return n.getPropertyValue(r).split(",").map(function(i){return i.trim()})}function $0(n){var r=n.getBoundingClientRect();return{top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height}}function Lg(n,r,t){return t>=n.top&&t<=n.bottom&&r>=n.left&&r<=n.right}function Xh(n,r,t){n.top+=r,n.bottom=n.top+n.height,n.left+=t,n.right=n.left+n.width}function wk(n,r,t,i){var b=n.width*r,R=n.height*r;return i>n.top-R&&i<n.bottom+R&&t>n.left-b&&t<n.right+b}var l3=function(){function n(r,t){(0,g.Z)(this,n),this._document=r,this._viewportRuler=t,this.positions=new Map}return(0,k.Z)(n,[{key:"clear",value:function(){this.positions.clear()}},{key:"cache",value:function(t){var i=this;this.clear(),this.positions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),t.forEach(function(o){i.positions.set(o,{scrollPosition:{top:o.scrollTop,left:o.scrollLeft},clientRect:$0(o)})})}},{key:"handleScroll",value:function(t){var i=(0,ei.sA)(t),o=this.positions.get(i);if(!o)return null;var u,p,a=i===this._document?i.documentElement:i,s=o.scrollPosition;if(i===this._document){var m=this._viewportRuler.getViewportScrollPosition();u=m.top,p=m.left}else u=i.scrollTop,p=i.scrollLeft;var b=s.top-u,R=s.left-p;return this.positions.forEach(function(F,G){F.clientRect&&i!==G&&a.contains(G)&&Xh(F.clientRect,b,R)}),s.top=u,s.left=p,{top:b,left:R}}}]),n}();function u3(n){var r=n.cloneNode(!0),t=r.querySelectorAll("[id]"),i=n.nodeName.toLowerCase();r.removeAttribute("id");for(var o=0;o<t.length;o++)t[o].removeAttribute("id");return"canvas"===i?Ek(n,r):("input"===i||"select"===i||"textarea"===i)&&kk(n,r),c3("canvas",n,r,Ek),c3("input, textarea, select",n,r,kk),r}function c3(n,r,t,i){var o=r.querySelectorAll(n);if(o.length)for(var a=t.querySelectorAll(n),s=0;s<o.length;s++)i(o[s],a[s])}var eC=0;function kk(n,r){"file"!==r.type&&(r.value=n.value),"radio"===r.type&&r.name&&(r.name="mat-clone-".concat(r.name,"-").concat(eC++))}function Ek(n,r){var t=r.getContext("2d");if(t)try{t.drawImage(n,0,0)}catch(i){}}var Mk=(0,ei.i$)({passive:!0}),Ak=(0,ei.i$)({passive:!1}),tC=new Set(["position"]),Dk=function(){function n(r,t,i,o,a,s){var u=this;(0,g.Z)(this,n),this._config=t,this._document=i,this._ngZone=o,this._viewportRuler=a,this._dragDropRegistry=s,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new Pn.xQ,this._pointerMoveSubscription=us.w.EMPTY,this._pointerUpSubscription=us.w.EMPTY,this._scrollSubscription=us.w.EMPTY,this._resizeSubscription=us.w.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 Pn.xQ,this.started=new Pn.xQ,this.released=new Pn.xQ,this.ended=new Pn.xQ,this.entered=new Pn.xQ,this.exited=new Pn.xQ,this.dropped=new Pn.xQ,this.moved=this._moveEvents,this._pointerDown=function(p){if(u.beforeStarted.next(),u._handles.length){var m=u._handles.find(function(b){var R=(0,ei.sA)(p);return!!R&&(R===b||b.contains(R))});m&&!u._disabledHandles.has(m)&&!u.disabled&&u._initializeDragSequence(m,p)}else u.disabled||u._initializeDragSequence(u._rootElement,p)},this._pointerMove=function(p){var m=u._getPointerPositionOnPage(p);if(u._hasStartedDragging){u._boundaryElement&&(!u._previewRect||!u._previewRect.width&&!u._previewRect.height)&&(u._previewRect=(u._preview||u._rootElement).getBoundingClientRect()),p.preventDefault();var ee=u._getConstrainedPointerPosition(m);if(u._hasMoved=!0,u._lastKnownPointerPosition=m,u._updatePointerDirectionDelta(ee),u._dropContainer)u._updateActiveDropContainer(ee,m);else{var pe=u._activeTransform;if(pe.x=ee.x-u._pickupPositionOnPage.x+u._passiveTransform.x,pe.y=ee.y-u._pickupPositionOnPage.y+u._passiveTransform.y,u._applyRootElementTransform(pe.x,pe.y),"undefined"!=typeof SVGElement&&u._rootElement instanceof SVGElement){var Ee="translate(".concat(pe.x," ").concat(pe.y,")");u._rootElement.setAttribute("transform",Ee)}}u._moveEvents.observers.length&&u._ngZone.run(function(){u._moveEvents.next({source:u,pointerPosition:ee,event:p,distance:u._getDragDistance(ee),delta:u._pointerDirectionDelta})})}else if(Math.abs(m.x-u._pickupPositionOnPage.x)+Math.abs(m.y-u._pickupPositionOnPage.y)>=u._config.dragStartThreshold){var G=Date.now()>=u._dragStartTime+u._getDragStartDelay(p),Y=u._dropContainer;if(!G)return void u._endDragSequence(p);(!Y||!Y.isDragging()&&!Y.isReceiving())&&(p.preventDefault(),u._hasStartedDragging=!0,u._ngZone.run(function(){return u._startDragSequence(p)}))}},this._pointerUp=function(p){u._endDragSequence(p)},this.withRootElement(r).withParent(t.parentDragRef||null),this._parentPositions=new l3(i,a),s.registerDragItem(this)}return(0,k.Z)(n,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(t){var i=(0,On.Ig)(t);i!==this._disabled&&(this._disabled=i,this._toggleNativeDragInteractions(),this._handles.forEach(function(o){return Kh(o,i)}))}},{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(t){var i=this;this._handles=t.map(function(a){return(0,On.fI)(a)}),this._handles.forEach(function(a){return Kh(a,i.disabled)}),this._toggleNativeDragInteractions();var o=new Set;return this._disabledHandles.forEach(function(a){i._handles.indexOf(a)>-1&&o.add(a)}),this._disabledHandles=o,this}},{key:"withPreviewTemplate",value:function(t){return this._previewTemplate=t,this}},{key:"withPlaceholderTemplate",value:function(t){return this._placeholderTemplate=t,this}},{key:"withRootElement",value:function(t){var i=this,o=(0,On.fI)(t);return o!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){o.addEventListener("mousedown",i._pointerDown,Ak),o.addEventListener("touchstart",i._pointerDown,Mk)}),this._initialTransform=void 0,this._rootElement=o),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}},{key:"withBoundaryElement",value:function(t){var i=this;return this._boundaryElement=t?(0,On.fI)(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(function(){return i._containInsideBoundaryOnResize()})),this}},{key:"withParent",value:function(t){return this._parentDragRef=t,this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&ju(this._rootElement),ju(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),Kh(t,!0))}},{key:"enableHandle",value:function(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),Kh(t,this.disabled))}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"_withDropContainer",value:function(t){this._dropContainer=t}},{key:"getFreeDragPosition",value:function(){var t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}},{key:"setFreeDragPosition",value:function(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}},{key:"withPreviewContainer",value:function(t){return this._previewContainer=t,this}},{key:"_sortFromLastPointerPosition",value:function(){var t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&ju(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&ju(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(t){var i=this;if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){i._cleanupDragArtifacts(t),i._cleanupCachedDimensions(),i._dragDropRegistry.stopDragging(i)});else{this._passiveTransform.x=this._activeTransform.x;var o=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(function(){i.ended.next({source:i,distance:i._getDragDistance(o),dropPoint:o})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}},{key:"_startDragSequence",value:function(t){ra(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var i=this._dropContainer;if(i){var o=this._rootElement,a=o.parentNode,s=this._placeholder=this._createPlaceholderElement(),u=this._anchor=this._anchor||this._document.createComment(""),p=this._getShadowRoot();a.insertBefore(u,o),this._initialTransform=o.style.transform||"",this._preview=this._createPreviewElement(),K0(o,!1,tC),this._document.body.appendChild(a.replaceChild(s,o)),this._getPreviewInsertionPoint(a,p).appendChild(this._preview),this.started.next({source:this}),i.start(),this._initialContainer=i,this._initialIndex=i.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(i?i.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(t,i){var o=this;this._parentDragRef&&i.stopPropagation();var a=this.isDragging(),s=ra(i),u=!s&&0!==i.button,p=this._rootElement,m=(0,ei.sA)(i),b=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),R=s?(0,xi.yG)(i):(0,xi.X6)(i);if(m&&m.draggable&&"mousedown"===i.type&&i.preventDefault(),!(a||u||b||R)){this._handles.length&&(this._rootElementTapHighlight=p.style.webkitTapHighlightColor||"",p.style.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(Y){return o._updateOnScroll(Y)}),this._boundaryElement&&(this._boundaryRect=$0(this._boundaryElement));var F=this._previewTemplate;this._pickupPositionInElement=F&&F.template&&!F.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,i);var G=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(i);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:G.x,y:G.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,i)}}},{key:"_cleanupDragArtifacts",value:function(t){var i=this;K0(this._rootElement,!0,tC),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 o=i._dropContainer,a=o.getItemIndex(i),s=i._getPointerPositionOnPage(t),u=i._getDragDistance(s),p=o._isOverContainer(s.x,s.y);i.ended.next({source:i,distance:u,dropPoint:s}),i.dropped.next({item:i,currentIndex:a,previousIndex:i._initialIndex,container:o,previousContainer:i._initialContainer,isPointerOverContainer:p,distance:u,dropPoint:s}),o.drop(i,a,i._initialIndex,i._initialContainer,p,u,s),i._dropContainer=i._initialContainer})}},{key:"_updateActiveDropContainer",value:function(t,i){var o=this,a=t.x,s=t.y,u=i.x,p=i.y,m=this._initialContainer._getSiblingContainerFromPosition(this,a,s);!m&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,s)&&(m=this._initialContainer),m&&m!==this._dropContainer&&this._ngZone.run(function(){o.exited.next({item:o,container:o._dropContainer}),o._dropContainer.exit(o),o._dropContainer=m,o._dropContainer.enter(o,a,s,m===o._initialContainer&&m.sortingDisabled?o._initialIndex:void 0),o.entered.next({item:o,container:m,currentIndex:m.getItemIndex(o)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(u,p),this._dropContainer._sortItem(this,a,s,this._pointerDirectionDelta),this._applyPreviewTransform(a-this._pickupPositionInElement.x,s-this._pickupPositionInElement.y))}},{key:"_createPreviewElement",value:function(){var a,t=this._previewTemplate,i=this.previewClass,o=t?t.template:null;if(o&&t){var s=t.matchSize?this._rootElement.getBoundingClientRect():null,u=t.viewContainer.createEmbeddedView(o,t.context);u.detectChanges(),a=nC(u,this._document),this._previewRef=u,t.matchSize?sl(a,s):a.style.transform=hf(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var p=this._rootElement;sl(a=u3(p),p.getBoundingClientRect()),this._initialTransform&&(a.style.transform=this._initialTransform)}return Q0(a.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":"".concat(this._config.zIndex||1e3)},tC),Kh(a,!1),a.classList.add("cdk-drag-preview"),a.setAttribute("dir",this._direction),i&&(Array.isArray(i)?i.forEach(function(m){return a.classList.add(m)}):a.classList.add(i)),a}},{key:"_animatePreviewToPlaceholder",value:function(){var t=this;if(!this._hasMoved)return Promise.resolve();var i=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(i.left,i.top);var o=function(n){var r=getComputedStyle(n),t=X0(r,"transition-property"),i=t.find(function(u){return"transform"===u||"all"===u});if(!i)return 0;var o=t.indexOf(i),a=X0(r,"transition-duration"),s=X0(r,"transition-delay");return xk(a[o])+xk(s[o])}(this._preview);return 0===o?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(a){var s=function p(m){(!m||(0,ei.sA)(m)===t._preview&&"transform"===m.propertyName)&&(t._preview.removeEventListener("transitionend",p),a(),clearTimeout(u))},u=setTimeout(s,1.5*o);t._preview.addEventListener("transitionend",s)})})}},{key:"_createPlaceholderElement",value:function(){var o,t=this._placeholderTemplate,i=t?t.template:null;return i?(this._placeholderRef=t.viewContainer.createEmbeddedView(i,t.context),this._placeholderRef.detectChanges(),o=nC(this._placeholderRef,this._document)):o=u3(this._rootElement),o.classList.add("cdk-drag-placeholder"),o}},{key:"_getPointerPositionInElement",value:function(t,i){var o=this._rootElement.getBoundingClientRect(),a=t===this._rootElement?null:t,s=a?a.getBoundingClientRect():o,u=ra(i)?i.targetTouches[0]:i,p=this._getViewportScrollPosition();return{x:s.left-o.left+(u.pageX-s.left-p.left),y:s.top-o.top+(u.pageY-s.top-p.top)}}},{key:"_getPointerPositionOnPage",value:function(t){var i=this._getViewportScrollPosition(),o=ra(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,a=o.pageX-i.left,s=o.pageY-i.top;if(this._ownerSVGElement){var u=this._ownerSVGElement.getScreenCTM();if(u){var p=this._ownerSVGElement.createSVGPoint();return p.x=a,p.y=s,p.matrixTransform(u.inverse())}}return{x:a,y:s}}},{key:"_getConstrainedPointerPosition",value:function(t){var i=this._dropContainer?this._dropContainer.lockAxis:null,o=this.constrainPosition?this.constrainPosition(t,this):t,a=o.x,s=o.y;if("x"===this.lockAxis||"x"===i?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===i)&&(a=this._pickupPositionOnPage.x),this._boundaryRect){var u=this._pickupPositionInElement,p=u.x,m=u.y,b=this._boundaryRect,R=this._previewRect,F=b.top+m,G=b.bottom-(R.height-m);a=Ok(a,b.left+p,b.right-(R.width-p)),s=Ok(s,F,G)}return{x:a,y:s}}},{key:"_updatePointerDirectionDelta",value:function(t){var i=t.x,o=t.y,a=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,u=Math.abs(i-s.x),p=Math.abs(o-s.y);return u>this._config.pointerDirectionChangeThreshold&&(a.x=i>s.x?1:-1,s.x=i),p>this._config.pointerDirectionChangeThreshold&&(a.y=o>s.y?1:-1,s.y=o),a}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,Kh(this._rootElement,t))}}},{key:"_removeRootElementListeners",value:function(t){t.removeEventListener("mousedown",this._pointerDown,Ak),t.removeEventListener("touchstart",this._pointerDown,Mk)}},{key:"_applyRootElementTransform",value:function(t,i){var o=hf(t,i);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform&&"none"!=this._rootElement.style.transform?this._rootElement.style.transform:""),this._rootElement.style.transform=Zg(o,this._initialTransform)}},{key:"_applyPreviewTransform",value:function(t,i){var o,a=(null===(o=this._previewTemplate)||void 0===o?void 0:o.template)?void 0:this._initialTransform,s=hf(t,i);this._preview.style.transform=Zg(s,a)}},{key:"_getDragDistance",value:function(t){var i=this._pickupPositionOnPage;return i?{x:t.x-i.x,y:t.y-i.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var t=this._passiveTransform,i=t.x,o=t.y;if(!(0===i&&0===o||this.isDragging())&&this._boundaryElement){var a=this._boundaryElement.getBoundingClientRect(),s=this._rootElement.getBoundingClientRect();if(!(0===a.width&&0===a.height||0===s.width&&0===s.height)){var u=a.left-s.left,p=s.right-a.right,m=a.top-s.top,b=s.bottom-a.bottom;a.width>s.width?(u>0&&(i+=u),p>0&&(i-=p)):i=0,a.height>s.height?(m>0&&(o+=m),b>0&&(o-=b)):o=0,(i!==this._passiveTransform.x||o!==this._passiveTransform.y)&&this.setFreeDragPosition({y:o,x:i})}}}},{key:"_getDragStartDelay",value:function(t){var i=this.dragStartDelay;return"number"==typeof i?i:ra(t)?i.touch:i?i.mouse:0}},{key:"_updateOnScroll",value:function(t){var i=this._parentPositions.handleScroll(t);if(i){var o=(0,ei.sA)(t);this._boundaryRect&&(o===this._document||o!==this._boundaryElement&&o.contains(this._boundaryElement))&&Xh(this._boundaryRect,i.top,i.left),this._pickupPositionOnPage.x+=i.left,this._pickupPositionOnPage.y+=i.top,this._dropContainer||(this._activeTransform.x-=i.left,this._activeTransform.y-=i.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}},{key:"_getViewportScrollPosition",value:function(){var t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}},{key:"_getShadowRoot",value:function(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,ei.kV)(this._rootElement)),this._cachedShadowRoot}},{key:"_getPreviewInsertionPoint",value:function(t,i){var o=this._previewContainer||"global";if("parent"===o)return t;if("global"===o){var a=this._document;return i||a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||a.body}return(0,On.fI)(o)}}]),n}();function hf(n,r){return"translate3d(".concat(Math.round(n),"px, ").concat(Math.round(r),"px, 0)")}function Ok(n,r,t){return Math.max(r,Math.min(t,n))}function ju(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function ra(n){return"t"===n.type[0]}function nC(n,r){var t=n.rootNodes;if(1===t.length&&t[0].nodeType===r.ELEMENT_NODE)return t[0];var i=r.createElement("div");return t.forEach(function(o){return i.appendChild(o)}),i}function sl(n,r){n.style.width="".concat(r.width,"px"),n.style.height="".concat(r.height,"px"),n.style.transform=hf(r.left,r.top)}function mf(n,r){return Math.max(0,Math.min(r,n))}var f3=function(){function n(r,t,i,o,a){var s=this;(0,g.Z)(this,n),this._dragDropRegistry=t,this._ngZone=o,this._viewportRuler=a,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.beforeStarted=new Pn.xQ,this.entered=new Pn.xQ,this.exited=new Pn.xQ,this.dropped=new Pn.xQ,this.sorted=new Pn.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=us.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Pn.xQ,this._cachedShadowRoot=null,this._startScrollInterval=function(){s._stopScrolling(),(0,jB.F)(0,a3.Z).pipe((0,Br.R)(s._stopScrollTimers)).subscribe(function(){var u=s._scrollNode,p=s.autoScrollStep;1===s._verticalScrollDirection?aC(u,-p):2===s._verticalScrollDirection&&aC(u,p),1===s._horizontalScrollDirection?Ik(u,-p):2===s._horizontalScrollDirection&&Ik(u,p)})},this.element=(0,On.fI)(r),this._document=i,this.withScrollableParents([this.element]),t.registerDropContainer(this),this._parentPositions=new l3(i,a)}return(0,k.Z)(n,[{key:"dispose",value: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.removeDropContainer(this)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){this._draggingStarted(),this._notifyReceivingSiblings()}},{key:"enter",value:function(t,i,o,a){var s;this._draggingStarted(),null==a?-1===(s=this.sortingDisabled?this._draggables.indexOf(t):-1)&&(s=this._getItemIndexFromPointerPosition(t,i,o)):s=a;var u=this._activeDraggables,p=u.indexOf(t),m=t.getPlaceholderElement(),b=u[s];if(b===t&&(b=u[s+1]),p>-1&&u.splice(p,1),b&&!this._dragDropRegistry.isDragging(b)){var R=b.getRootElement();R.parentElement.insertBefore(m,R),u.splice(s,0,t)}else if(this._shouldEnterAsFirstChild(i,o)){var F=u[0].getRootElement();F.parentNode.insertBefore(m,F),u.unshift(t)}else(0,On.fI)(this.element).appendChild(m),u.push(t);m.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}},{key:"exit",value:function(t){this._reset(),this.exited.next({item:t,container:this})}},{key:"drop",value:function(t,i,o,a,s,u,p){this._reset(),this.dropped.next({item:t,currentIndex:i,previousIndex:o,container:this,previousContainer:a,isPointerOverContainer:s,distance:u,dropPoint:p})}},{key:"withItems",value:function(t){var i=this,o=this._draggables;return this._draggables=t,t.forEach(function(s){return s._withDropContainer(i)}),this.isDragging()&&(o.filter(function(s){return s.isDragging()}).every(function(s){return-1===t.indexOf(s)})?this._reset():this._cacheItems()),this}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"connectedTo",value:function(t){return this._siblings=t.slice(),this}},{key:"withOrientation",value:function(t){return this._orientation=t,this}},{key:"withScrollableParents",value:function(t){var i=(0,On.fI)(this.element);return this._scrollableElements=-1===t.indexOf(i)?[i].concat((0,y.Z)(t)):t.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(t){return this._isDragging?oC("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,function(o){return o.drag===t}):this._draggables.indexOf(t)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(t,i,o,a){if(!this.sortingDisabled&&this._clientRect&&wk(this._clientRect,.05,i,o)){var s=this._itemPositions,u=this._getItemIndexFromPointerPosition(t,i,o,a);if(!(-1===u&&s.length>0)){var p="horizontal"===this._orientation,m=oC(s,function(Ee){return Ee.drag===t}),b=s[u],F=b.clientRect,G=m>u?1:-1,Y=this._getItemOffsetPx(s[m].clientRect,F,G),ee=this._getSiblingOffsetPx(m,s,G),pe=s.slice();(function(n,r,t){var i=mf(r,n.length-1),o=mf(t,n.length-1);if(i!==o){for(var a=n[i],s=o<i?-1:1,u=i;u!==o;u+=s)n[u]=n[u+s];n[o]=a}})(s,m,u),this.sorted.next({previousIndex:m,currentIndex:u,container:this,item:t}),s.forEach(function(Ee,lt){if(pe[lt]!==Ee){var tt=Ee.drag===t,it=tt?Y:ee,mt=tt?t.getPlaceholderElement():Ee.drag.getRootElement();Ee.offset+=it,p?(mt.style.transform=Zg("translate3d(".concat(Math.round(Ee.offset),"px, 0, 0)"),Ee.initialTransform),Xh(Ee.clientRect,0,it)):(mt.style.transform=Zg("translate3d(0, ".concat(Math.round(Ee.offset),"px, 0)"),Ee.initialTransform),Xh(Ee.clientRect,it,0))}}),this._previousSwap.overlaps=Lg(F,i,o),this._previousSwap.drag=b.drag,this._previousSwap.delta=p?a.x:a.y}}}},{key:"_startScrollingIfNecessary",value:function(t,i){var o=this;if(!this.autoScrollDisabled){var a,s=0,u=0;if(this._parentPositions.positions.forEach(function(F,G){if(G!==o._document&&F.clientRect&&!a&&wk(F.clientRect,.05,t,i)){var Y=function(n,r,t,i){var o=h3(r,i),a=Rk(r,t),s=0,u=0;if(o){var p=n.scrollTop;1===o?p>0&&(s=1):n.scrollHeight-p>n.clientHeight&&(s=2)}if(a){var m=n.scrollLeft;1===a?m>0&&(u=1):n.scrollWidth-m>n.clientWidth&&(u=2)}return[s,u]}(G,F.clientRect,t,i),ee=(0,C.Z)(Y,2);u=ee[1],((s=ee[0])||u)&&(a=G)}}),!s&&!u){var p=this._viewportRuler.getViewportSize(),m=p.width,b=p.height,R={width:m,height:b,top:0,right:m,bottom:b,left:0};s=h3(R,i),u=Rk(R,t),a=window}a&&(s!==this._verticalScrollDirection||u!==this._horizontalScrollDirection||a!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=u,this._scrollNode=a,(s||u)&&a?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_draggingStarted",value:function(){var t=(0,On.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"_cacheParentPositions",value:function(){var t=(0,On.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}},{key:"_cacheItemPositions",value:function(){var t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(function(i){var o=i.getVisibleElement();return{drag:i,offset:0,initialTransform:o.style.transform||"",clientRect:$0(o)}}).sort(function(i,o){return t?i.clientRect.left-o.clientRect.left:i.clientRect.top-o.clientRect.top})}},{key:"_reset",value:function(){var t=this;this._isDragging=!1;var i=(0,On.fI)(this.element).style;i.scrollSnapType=i.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(function(o){var a,s=o.getRootElement();if(s){var u=null===(a=t._itemPositions.find(function(p){return p.drag===o}))||void 0===a?void 0:a.initialTransform;s.style.transform=u||""}}),this._siblings.forEach(function(o){return o._stopReceiving(t)}),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(t,i,o){var a="horizontal"===this._orientation,s=i[t].clientRect,u=i[t+-1*o],p=s[a?"width":"height"]*o;if(u){var m=a?"left":"top",b=a?"right":"bottom";-1===o?p-=u.clientRect[m]-s[b]:p+=s[m]-u.clientRect[b]}return p}},{key:"_getItemOffsetPx",value:function(t,i,o){var a="horizontal"===this._orientation,s=a?i.left-t.left:i.top-t.top;return-1===o&&(s+=a?i.width-t.width:i.height-t.height),s}},{key:"_shouldEnterAsFirstChild",value:function(t,i){if(!this._activeDraggables.length)return!1;var o=this._itemPositions,a="horizontal"===this._orientation;if(o[0].drag!==this._activeDraggables[0]){var u=o[o.length-1].clientRect;return a?t>=u.right:i>=u.bottom}var p=o[0].clientRect;return a?t<=p.left:i<=p.top}},{key:"_getItemIndexFromPointerPosition",value:function(t,i,o,a){var s=this,u="horizontal"===this._orientation,p=oC(this._itemPositions,function(m,b,R){var F=m.drag,G=m.clientRect;return F===t?R.length<2:(!a||F!==s._previousSwap.drag||!s._previousSwap.overlaps||(u?a.x:a.y)!==s._previousSwap.delta)&&(u?i>=Math.floor(G.left)&&i<Math.floor(G.right):o>=Math.floor(G.top)&&o<Math.floor(G.bottom))});return-1!==p&&this.sortPredicate(p,t,this)?p:-1}},{key:"_cacheItems",value:function(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}},{key:"_isOverContainer",value:function(t,i){return null!=this._clientRect&&Lg(this._clientRect,t,i)}},{key:"_getSiblingContainerFromPosition",value:function(t,i,o){return this._siblings.find(function(a){return a._canReceive(t,i,o)})}},{key:"_canReceive",value:function(t,i,o){if(!this._clientRect||!Lg(this._clientRect,i,o)||!this.enterPredicate(t,this))return!1;var a=this._getShadowRoot().elementFromPoint(i,o);if(!a)return!1;var s=(0,On.fI)(this.element);return a===s||s.contains(a)}},{key:"_startReceiving",value:function(t,i){var o=this,a=this._activeSiblings;!a.has(t)&&i.every(function(s){return o.enterPredicate(s,o)||o._draggables.indexOf(s)>-1})&&(a.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var t=this;this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(i){if(t.isDragging()){var o=t._parentPositions.handleScroll(i);o&&(t._itemPositions.forEach(function(a){Xh(a.clientRect,o.top,o.left)}),t._itemPositions.forEach(function(a){var s=a.drag;t._dragDropRegistry.isDragging(s)&&s._sortFromLastPointerPosition()}))}else t.isReceiving()&&t._cacheParentPositions()})}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var t=(0,ei.kV)((0,On.fI)(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}},{key:"_notifyReceivingSiblings",value:function(){var t=this,i=this._activeDraggables.filter(function(o){return o.isDragging()});this._siblings.forEach(function(o){return o._startReceiving(t,i)})}}]),n}();function oC(n,r){for(var t=0;t<n.length;t++)if(r(n[t],t,n))return t;return-1}function aC(n,r){n===window?n.scrollBy(0,r):n.scrollTop+=r}function Ik(n,r){n===window?n.scrollBy(r,0):n.scrollLeft+=r}function h3(n,r){var t=n.top,i=n.bottom,a=.05*n.height;return r>=t-a&&r<=t+a?1:r>=i-a&&r<=i+a?2:0}function Rk(n,r){var t=n.left,i=n.right,a=.05*n.width;return r>=t-a&&r<=t+a?1:r>=i-a&&r<=i+a?2:0}var zu=(0,ei.i$)({passive:!1,capture:!0}),v3=function(){var n=function(){function r(t,i){var o=this;(0,g.Z)(this,r),this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=function(a){return a.isDragging()},this.pointerMove=new Pn.xQ,this.pointerUp=new Pn.xQ,this.scroll=new Pn.xQ,this._preventDefaultWhileDragging=function(a){o._activeDragInstances.length>0&&a.preventDefault()},this._persistentTouchmoveListener=function(a){o._activeDragInstances.length>0&&(o._activeDragInstances.some(o._draggingPredicate)&&a.preventDefault(),o.pointerMove.next(a))},this._document=i}return(0,k.Z)(r,[{key:"registerDropContainer",value:function(i){this._dropInstances.has(i)||this._dropInstances.add(i)}},{key:"registerDragItem",value:function(i){var o=this;this._dragInstances.add(i),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(function(){o._document.addEventListener("touchmove",o._persistentTouchmoveListener,zu)})}},{key:"removeDropContainer",value:function(i){this._dropInstances.delete(i)}},{key:"removeDragItem",value:function(i){this._dragInstances.delete(i),this.stopDragging(i),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,zu)}},{key:"startDragging",value:function(i,o){var a=this;if(!(this._activeDragInstances.indexOf(i)>-1)&&(this._activeDragInstances.push(i),1===this._activeDragInstances.length)){var s=o.type.startsWith("touch");this._globalListeners.set(s?"touchend":"mouseup",{handler:function(p){return a.pointerUp.next(p)},options:!0}).set("scroll",{handler:function(p){return a.scroll.next(p)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:zu}),s||this._globalListeners.set("mousemove",{handler:function(p){return a.pointerMove.next(p)},options:zu}),this._ngZone.runOutsideAngular(function(){a._globalListeners.forEach(function(u,p){a._document.addEventListener(p,u.handler,u.options)})})}}},{key:"stopDragging",value:function(i){var o=this._activeDragInstances.indexOf(i);o>-1&&(this._activeDragInstances.splice(o,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}},{key:"isDragging",value:function(i){return this._activeDragInstances.indexOf(i)>-1}},{key:"scrolled",value:function(i){var o=this,a=[this.scroll];return i&&i!==this._document&&a.push(new na.y(function(s){return o._ngZone.runOutsideAngular(function(){var p=function(b){o._activeDragInstances.length&&s.next(b)};return i.addEventListener("scroll",p,!0),function(){i.removeEventListener("scroll",p,!0)}})})),go.T.apply(void 0,a)}},{key:"ngOnDestroy",value:function(){var i=this;this._dragInstances.forEach(function(o){return i.removeDragItem(o)}),this._dropInstances.forEach(function(o){return i.removeDropContainer(o)}),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var i=this;this._globalListeners.forEach(function(o,a){i._document.removeEventListener(a,o.handler,o.options)}),this._globalListeners.clear()}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(e.R0b),e.LFG(At.K0))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(e.R0b),e.LFG(At.K0))},token:n,providedIn:"root"}),n}(),Nk={dragStartThreshold:5,pointerDirectionChangeThreshold:5},sC=function(){var n=function(){function r(t,i,o,a){(0,g.Z)(this,r),this._document=t,this._ngZone=i,this._viewportRuler=o,this._dragDropRegistry=a}return(0,k.Z)(r,[{key:"createDrag",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Nk;return new Dk(i,o,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(i){return new f3(i,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(At.K0),e.LFG(e.R0b),e.LFG(Ta.rL),e.LFG(v3))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(At.K0),e.LFG(e.R0b),e.LFG(Ta.rL),e.LFG(v3))},token:n,providedIn:"root"}),n}(),Hk=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[sC],imports:[Ta.ZD]}),n}(),so=f(93889),Wi=f(37429),cs=f(61493),to=f(90838),Hg=f(17504),or=f(43161),b3=[[["caption"]],[["colgroup"],["col"]]],C3=["caption","colgroup, col"];function dC(n){return function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){var o;(0,g.Z)(this,i);for(var a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];return(o=t.call.apply(t,[this].concat(s)))._sticky=!1,o._hasStickyChanged=!1,o}return(0,k.Z)(i,[{key:"sticky",get:function(){return this._sticky},set:function(a){var s=this._sticky;this._sticky=(0,On.Ig)(a),this._hasStickyChanged=s!==this._sticky}},{key:"hasStickyChanged",value:function(){var a=this._hasStickyChanged;return this._hasStickyChanged=!1,a}},{key:"resetStickyChanged",value:function(){this._hasStickyChanged=!1}}]),i}(n)}var qc=new e.OlP("CDK_TABLE"),vf=function(){var n=function r(t){(0,g.Z)(this,r),this.template=t};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkCellDef",""]]}),n}(),jc=function(){var n=function r(t){(0,g.Z)(this,r),this.template=t};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n}(),Vg=function(){var n=function r(t){(0,g.Z)(this,r),this.template=t};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkFooterCellDef",""]]}),n}(),QB=dC(function n(){(0,g.Z)(this,n)}),Wu=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o){var a;return(0,g.Z)(this,i),(a=t.call(this))._table=o,a._stickyEnd=!1,a}return(0,k.Z)(i,[{key:"name",get:function(){return this._name},set:function(a){this._setNameInput(a)}},{key:"stickyEnd",get:function(){return this._stickyEnd},set:function(a){var s=this._stickyEnd;this._stickyEnd=(0,On.Ig)(a),this._hasStickyChanged=s!==this._stickyEnd}},{key:"_updateColumnCssClassName",value:function(){this._columnCssClassName=["cdk-column-".concat(this.cssClassFriendlyName)]}},{key:"_setNameInput",value:function(a){a&&(this._name=a,this.cssClassFriendlyName=a.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}]),i}(QB);return n.\u0275fac=function(t){return new(t||n)(e.Y36(qc,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,i,o){var a;1&t&&(e.Suo(o,vf,5),e.Suo(o,jc,5),e.Suo(o,Vg,5)),2&t&&(e.iGM(a=e.CRH())&&(i.cell=a.first),e.iGM(a=e.CRH())&&(i.headerCell=a.first),e.iGM(a=e.CRH())&&(i.footerCell=a.first))},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[e._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),e.qOj]}),n}(),pC=function n(r,t){(0,g.Z)(this,n);var a,i=t.nativeElement.classList,o=(0,v.Z)(r._columnCssClassName);try{for(o.s();!(a=o.n()).done;)i.add(a.value)}catch(u){o.e(u)}finally{o.f()}},qg=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a){return(0,g.Z)(this,i),t.call(this,o,a)}return i}(pC);return n.\u0275fac=function(t){return new(t||n)(e.Y36(Wu),e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[e.qOj]}),n}(),fC=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a){var s,u;if((0,g.Z)(this,i),s=t.call(this,o,a),1===(null===(u=o._table)||void 0===u?void 0:u._elementRef.nativeElement.nodeType)){var p=o._table._elementRef.nativeElement.getAttribute("role");a.nativeElement.setAttribute("role","grid"===p||"treegrid"===p?"gridcell":"cell")}return s}return i}(pC);return n.\u0275fac=function(t){return new(t||n)(e.Y36(Wu),e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.qOj]}),n}(),qk=function n(){(0,g.Z)(this,n),this.tasks=[],this.endTasks=[]},hC=new e.OlP("_COALESCED_STYLE_SCHEDULER"),jk=function(){var n=function(){function r(t){(0,g.Z)(this,r),this._ngZone=t,this._currentSchedule=null,this._destroyed=new Pn.xQ}return(0,k.Z)(r,[{key:"schedule",value:function(i){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(i)}},{key:"scheduleEnd",value:function(i){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(i)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_createScheduleIfNeeded",value:function(){var i=this;this._currentSchedule||(this._currentSchedule=new qk,this._getScheduleObservable().pipe((0,Br.R)(this._destroyed)).subscribe(function(){for(;i._currentSchedule.tasks.length||i._currentSchedule.endTasks.length;){var o=i._currentSchedule;i._currentSchedule=new qk;var s,a=(0,v.Z)(o.tasks);try{for(a.s();!(s=a.n()).done;)(0,s.value)()}catch(R){a.e(R)}finally{a.f()}var m,p=(0,v.Z)(o.endTasks);try{for(p.s();!(m=p.n()).done;)(0,m.value)()}catch(R){p.e(R)}finally{p.f()}}i._currentSchedule=null}))}},{key:"_getScheduleObservable",value:function(){return this._ngZone.isStable?(0,cs.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,eo.q)(1))}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(e.R0b))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),jg=function(){var n=function(){function r(t,i){(0,g.Z)(this,r),this.template=t,this._differs=i}return(0,k.Z)(r,[{key:"ngOnChanges",value:function(i){if(!this._columnsDiffer){var o=i.columns&&i.columns.currentValue||[];this._columnsDiffer=this._differs.find(o).create(),this._columnsDiffer.diff(o)}}},{key:"getColumnsDiff",value:function(){return this._columnsDiffer.diff(this.columns)}},{key:"extractCellTemplate",value:function(i){return this instanceof gf?i.headerCell.template:this instanceof tm?i.footerCell.template:i.cell.template}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc),e.Y36(e.ZZ4))},n.\u0275dir=e.lG2({type:n,features:[e.TTD]}),n}(),zk=dC(function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(){return(0,g.Z)(this,t),r.apply(this,arguments)}return t}(jg)),gf=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s){var u;return(0,g.Z)(this,i),(u=t.call(this,o,a))._table=s,u}return(0,k.Z)(i,[{key:"ngOnChanges",value:function(a){(0,P.Z)((0,D.Z)(i.prototype),"ngOnChanges",this).call(this,a)}}]),i}(zk);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(qc,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),n}(),Gk=dC(function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(){return(0,g.Z)(this,t),r.apply(this,arguments)}return t}(jg)),tm=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s){var u;return(0,g.Z)(this,i),(u=t.call(this,o,a))._table=s,u}return(0,k.Z)(i,[{key:"ngOnChanges",value:function(a){(0,P.Z)((0,D.Z)(i.prototype),"ngOnChanges",this).call(this,a)}}]),i}(Gk);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(qc,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),n}(),nm=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s){var u;return(0,g.Z)(this,i),(u=t.call(this,o,a))._table=s,u}return i}(jg);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(qc,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.qOj]}),n}(),Cu=function(){var n=function(){function r(t){(0,g.Z)(this,r),this._viewContainer=t,r.mostRecentCellOutlet=this}return(0,k.Z)(r,[{key:"ngOnDestroy",value:function(){r.mostRecentCellOutlet===this&&(r.mostRecentCellOutlet=null)}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.s_b))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkCellOutlet",""]]}),n.mostRecentCellOutlet=null,n}(),vC=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){1&t&&e.GkF(0,0)},directives:[Cu],encapsulation:2}),n}(),Wg=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){1&t&&e.GkF(0,0)},directives:[Cu],encapsulation:2}),n}(),Gg=function(){var n=function r(t){(0,g.Z)(this,r),this.templateRef=t};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc))},n.\u0275dir=e.lG2({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n}(),Qa=["top","bottom","left","right"],_f=function(){function n(r,t,i,o){var a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],u=arguments.length>6?arguments[6]:void 0;(0,g.Z)(this,n),this._isNativeHtmlTable=r,this._stickCellCss=t,this.direction=i,this._coalescedStyleScheduler=o,this._isBrowser=a,this._needsPositionStickyOnElement=s,this._positionListener=u,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(t,"-border-elem-top"),bottom:"".concat(t,"-border-elem-bottom"),left:"".concat(t,"-border-elem-left"),right:"".concat(t,"-border-elem-right")}}return(0,k.Z)(n,[{key:"clearStickyPositioning",value:function(t,i){var u,o=this,a=[],s=(0,v.Z)(t);try{for(s.s();!(u=s.n()).done;){var p=u.value;if(p.nodeType===p.ELEMENT_NODE){a.push(p);for(var m=0;m<p.children.length;m++)a.push(p.children[m])}}}catch(b){s.e(b)}finally{s.f()}this._coalescedStyleScheduler.schedule(function(){var R,b=(0,v.Z)(a);try{for(b.s();!(R=b.n()).done;)o._removeStickyStyle(R.value,i)}catch(G){b.e(G)}finally{b.f()}})}},{key:"updateStickyColumns",value:function(t,i,o){var a=this,s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t.length&&this._isBrowser&&(i.some(function(Y){return Y})||o.some(function(Y){return Y}))){var u=t[0],p=u.children.length,m=this._getCellWidths(u,s),b=this._getStickyStartColumnPositions(m,i),R=this._getStickyEndColumnPositions(m,o),F=i.lastIndexOf(!0),G=o.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var lt,Y="rtl"===a.direction,ee=Y?"right":"left",pe=Y?"left":"right",Ee=(0,v.Z)(t);try{for(Ee.s();!(lt=Ee.n()).done;)for(var tt=lt.value,it=0;it<p;it++){var mt=tt.children[it];i[it]&&a._addStickyStyle(mt,ee,b[it],it===F),o[it]&&a._addStickyStyle(mt,pe,R[it],it===G)}}catch(Ke){Ee.e(Ke)}finally{Ee.f()}a._positionListener&&(a._positionListener.stickyColumnsUpdated({sizes:-1===F?[]:m.slice(0,F+1).map(function(Ke,et){return i[et]?Ke:null})}),a._positionListener.stickyEndColumnsUpdated({sizes:-1===G?[]:m.slice(G).map(function(Ke,et){return o[et+G]?Ke:null}).reverse()}))})}else this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}))}},{key:"stickRows",value:function(t,i,o){var a=this;if(this._isBrowser){for(var s="bottom"===o?t.slice().reverse():t,u="bottom"===o?i.slice().reverse():i,p=[],m=[],b=[],R=0,F=0;R<s.length;R++)if(u[R]){p[R]=F;var G=s[R];b[R]=this._isNativeHtmlTable?Array.from(G.children):[G];var Y=G.getBoundingClientRect().height;F+=Y,m[R]=Y}var ee=u.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(function(){for(var pe,Ee,lt=0;lt<s.length;lt++)if(u[lt]){var Ke,tt=p[lt],it=lt===ee,mt=(0,v.Z)(b[lt]);try{for(mt.s();!(Ke=mt.n()).done;)a._addStickyStyle(Ke.value,o,tt,it)}catch(Rt){mt.e(Rt)}finally{mt.f()}}"top"===o?null===(pe=a._positionListener)||void 0===pe||pe.stickyHeaderRowsUpdated({sizes:m,offsets:p,elements:b}):null===(Ee=a._positionListener)||void 0===Ee||Ee.stickyFooterRowsUpdated({sizes:m,offsets:p,elements:b})})}}},{key:"updateStickyFooterContainer",value:function(t,i){var o=this;if(this._isNativeHtmlTable){var a=t.querySelector("tfoot");this._coalescedStyleScheduler.schedule(function(){i.some(function(s){return!s})?o._removeStickyStyle(a,["bottom"]):o._addStickyStyle(a,"bottom",0,!1)})}}},{key:"_removeStickyStyle",value:function(t,i){var a,o=(0,v.Z)(i);try{for(o.s();!(a=o.n()).done;){var s=a.value;t.style[s]="",t.classList.remove(this._borderCellCss[s])}}catch(p){o.e(p)}finally{o.f()}Qa.some(function(p){return-1===i.indexOf(p)&&t.style[p]})?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}},{key:"_addStickyStyle",value:function(t,i,o,a){t.classList.add(this._stickCellCss),a&&t.classList.add(this._borderCellCss[i]),t.style[i]="".concat(o,"px"),t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}},{key:"_getCalculatedZIndex",value:function(t){var s,i={top:100,bottom:10,left:1,right:1},o=0,a=(0,v.Z)(Qa);try{for(a.s();!(s=a.n()).done;){var u=s.value;t.style[u]&&(o+=i[u])}}catch(p){a.e(p)}finally{a.f()}return o?"".concat(o):""}},{key:"_getCellWidths",value:function(t){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!i&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var o=[],a=t.children,s=0;s<a.length;s++){var u=a[s];o.push(u.getBoundingClientRect().width)}return this._cachedCellWidths=o,o}},{key:"_getStickyStartColumnPositions",value:function(t,i){for(var o=[],a=0,s=0;s<t.length;s++)i[s]&&(o[s]=a,a+=t[s]);return o}},{key:"_getStickyEndColumnPositions",value:function(t,i){for(var o=[],a=0,s=t.length;s>0;s--)i[s]&&(o[s]=a,a+=t[s]);return o}}]),n}(),gC=new e.OlP("CDK_SPL"),yf=function(){var n=function r(t,i){(0,g.Z)(this,r),this.viewContainer=t,this.elementRef=i};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.s_b),e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","rowOutlet",""]]}),n}(),rm=function(){var n=function r(t,i){(0,g.Z)(this,r),this.viewContainer=t,this.elementRef=i};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.s_b),e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","headerRowOutlet",""]]}),n}(),im=function(){var n=function r(t,i){(0,g.Z)(this,r),this.viewContainer=t,this.elementRef=i};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.s_b),e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","footerRowOutlet",""]]}),n}(),Qd=function(){var n=function r(t,i){(0,g.Z)(this,r),this.viewContainer=t,this.elementRef=i};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.s_b),e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","noDataRowOutlet",""]]}),n}(),om=function(){var n=function(){function r(t,i,o,a,s,u,p,m,b,R,F){(0,g.Z)(this,r),this._differs=t,this._changeDetectorRef=i,this._elementRef=o,this._dir=s,this._platform=p,this._viewRepeater=m,this._coalescedStyleScheduler=b,this._viewportRuler=R,this._stickyPositioningListener=F,this._onDestroy=new Pn.xQ,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new e.vpe,this.viewChange=new to.X({start:0,end:Number.MAX_VALUE}),a||this._elementRef.nativeElement.setAttribute("role","table"),this._document=u,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return(0,k.Z)(r,[{key:"trackBy",get:function(){return this._trackByFn},set:function(i){this._trackByFn=i}},{key:"dataSource",get:function(){return this._dataSource},set:function(i){this._dataSource!==i&&this._switchDataSource(i)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(i){this._multiTemplateDataRows=(0,On.Ig)(i),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(i){this._fixedLayout=(0,On.Ig)(i),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var i=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(o,a){return i.trackBy?i.trackBy(a.dataIndex,a.data):a}),this._viewportRuler.change().pipe((0,Br.R)(this._onDestroy)).subscribe(function(){i._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var o=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||o,this._forceRecalculateCellWidths=o,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),(0,Wi.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var i=this;this._renderRows=this._getAllRenderRows();var o=this._dataDiffer.diff(this._renderRows);if(!o)return this._updateNoDataRow(),void this.contentChanged.next();var a=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(o,a,function(s,u,p){return i._getEmbeddedViewArgs(s.item,p)},function(s){return s.item.data},function(s){1===s.operation&&s.context&&i._renderCellTemplateForItem(s.record.item.rowDef,s.context)}),this._updateRowIndexContext(),o.forEachIdentityChange(function(s){a.get(s.currentIndex).context.$implicit=s.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}},{key:"addColumnDef",value:function(i){this._customColumnDefs.add(i)}},{key:"removeColumnDef",value:function(i){this._customColumnDefs.delete(i)}},{key:"addRowDef",value:function(i){this._customRowDefs.add(i)}},{key:"removeRowDef",value:function(i){this._customRowDefs.delete(i)}},{key:"addHeaderRowDef",value:function(i){this._customHeaderRowDefs.add(i),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(i){this._customHeaderRowDefs.delete(i),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(i){this._customFooterRowDefs.add(i),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(i){this._customFooterRowDefs.delete(i),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(i){this._customNoDataRow=i}},{key:"updateStickyHeaderRowStyles",value:function(){var i=this._getRenderedRows(this._headerRowOutlet),a=this._elementRef.nativeElement.querySelector("thead");a&&(a.style.display=i.length?"":"none");var s=this._headerRowDefs.map(function(u){return u.sticky});this._stickyStyler.clearStickyPositioning(i,["top"]),this._stickyStyler.stickRows(i,s,"top"),this._headerRowDefs.forEach(function(u){return u.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var i=this._getRenderedRows(this._footerRowOutlet),a=this._elementRef.nativeElement.querySelector("tfoot");a&&(a.style.display=i.length?"":"none");var s=this._footerRowDefs.map(function(u){return u.sticky});this._stickyStyler.clearStickyPositioning(i,["bottom"]),this._stickyStyler.stickRows(i,s,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,s),this._footerRowDefs.forEach(function(u){return u.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var i=this,o=this._getRenderedRows(this._headerRowOutlet),a=this._getRenderedRows(this._rowOutlet),s=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat((0,y.Z)(o),(0,y.Z)(a),(0,y.Z)(s)),["left","right"]),this._stickyColumnStylesNeedReset=!1),o.forEach(function(u,p){i._addStickyColumnStyles([u],i._headerRowDefs[p])}),this._rowDefs.forEach(function(u){for(var p=[],m=0;m<a.length;m++)i._renderRows[m].rowDef===u&&p.push(a[m]);i._addStickyColumnStyles(p,u)}),s.forEach(function(u,p){i._addStickyColumnStyles([u],i._footerRowDefs[p])}),Array.from(this._columnDefsByName.values()).forEach(function(u){return u.resetStickyChanged()})}},{key:"_getAllRenderRows",value:function(){var i=[],o=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(var a=0;a<this._data.length;a++){var s=this._data[a],u=this._getRenderRowsForData(s,a,o.get(s));this._cachedRenderRowsMap.has(s)||this._cachedRenderRowsMap.set(s,new WeakMap);for(var p=0;p<u.length;p++){var m=u[p],b=this._cachedRenderRowsMap.get(m.data);b.has(m.rowDef)?b.get(m.rowDef).push(m):b.set(m.rowDef,[m]),i.push(m)}}return i}},{key:"_getRenderRowsForData",value:function(i,o,a){return this._getRowDefs(i,o).map(function(u){var p=a&&a.has(u)?a.get(u):[];if(p.length){var m=p.shift();return m.dataIndex=o,m}return{data:i,rowDef:u,dataIndex:o}})}},{key:"_cacheColumnDefs",value:function(){var i=this;this._columnDefsByName.clear(),Jg(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(function(a){i._columnDefsByName.has(a.name),i._columnDefsByName.set(a.name,a)})}},{key:"_cacheRowDefs",value:function(){this._headerRowDefs=Jg(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Jg(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Jg(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);var i=this._rowDefs.filter(function(o){return!o.when});this._defaultRowDef=i[0]}},{key:"_renderUpdatedColumns",value:function(){var i=function(p,m){return p||!!m.getColumnsDiff()},o=this._rowDefs.reduce(i,!1);o&&this._forceRenderDataRows();var a=this._headerRowDefs.reduce(i,!1);a&&this._forceRenderHeaderRows();var s=this._footerRowDefs.reduce(i,!1);return s&&this._forceRenderFooterRows(),o||a||s}},{key:"_switchDataSource",value:function(i){this._data=[],(0,Wi.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),i||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=i}},{key:"_observeRenderChanges",value:function(){var o,i=this;this.dataSource&&((0,Wi.Z9)(this.dataSource)?o=this.dataSource.connect(this):(0,Hg.b)(this.dataSource)?o=this.dataSource:Array.isArray(this.dataSource)&&(o=(0,or.of)(this.dataSource)),this._renderChangeSubscription=o.pipe((0,Br.R)(this._onDestroy)).subscribe(function(a){i._data=a||[],i.renderRows()}))}},{key:"_forceRenderHeaderRows",value:function(){var i=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(o,a){return i._renderRow(i._headerRowOutlet,o,a)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var i=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(o,a){return i._renderRow(i._footerRowOutlet,o,a)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(i,o){var a=this,s=Array.from(o.columns||[]).map(function(m){return a._columnDefsByName.get(m)}),u=s.map(function(m){return m.sticky}),p=s.map(function(m){return m.stickyEnd});this._stickyStyler.updateStickyColumns(i,u,p,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(i){for(var o=[],a=0;a<i.viewContainer.length;a++){var s=i.viewContainer.get(a);o.push(s.rootNodes[0])}return o}},{key:"_getRowDefs",value:function(i,o){if(1==this._rowDefs.length)return[this._rowDefs[0]];var a=[];if(this.multiTemplateDataRows)a=this._rowDefs.filter(function(u){return!u.when||u.when(o,i)});else{var s=this._rowDefs.find(function(u){return u.when&&u.when(o,i)})||this._defaultRowDef;s&&a.push(s)}return a}},{key:"_getEmbeddedViewArgs",value:function(i,o){return{templateRef:i.rowDef.template,context:{$implicit:i.data},index:o}}},{key:"_renderRow",value:function(i,o,a){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=i.viewContainer.createEmbeddedView(o.template,s,a);return this._renderCellTemplateForItem(o,s),u}},{key:"_renderCellTemplateForItem",value:function(i,o){var s,a=(0,v.Z)(this._getCellTemplates(i));try{for(a.s();!(s=a.n()).done;)Cu.mostRecentCellOutlet&&Cu.mostRecentCellOutlet._viewContainer.createEmbeddedView(s.value,o)}catch(p){a.e(p)}finally{a.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var i=this._rowOutlet.viewContainer,o=0,a=i.length;o<a;o++){var u=i.get(o).context;u.count=a,u.first=0===o,u.last=o===a-1,u.even=o%2==0,u.odd=!u.even,this.multiTemplateDataRows?(u.dataIndex=this._renderRows[o].dataIndex,u.renderIndex=o):u.index=this._renderRows[o].dataIndex}}},{key:"_getCellTemplates",value:function(i){var o=this;return i&&i.columns?Array.from(i.columns,function(a){var s=o._columnDefsByName.get(a);return i.extractCellTemplate(s)}):[]}},{key:"_applyNativeTableSections",value:function(){for(var i=this._document.createDocumentFragment(),a=0,s=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];a<s.length;a++){var u=s[a],p=this._document.createElement(u.tag);p.setAttribute("role","rowgroup");var b,m=(0,v.Z)(u.outlets);try{for(m.s();!(b=m.n()).done;)p.appendChild(b.value.elementRef.nativeElement)}catch(F){m.e(F)}finally{m.f()}i.appendChild(p)}this._elementRef.nativeElement.appendChild(i)}},{key:"_forceRenderDataRows",value:function(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}},{key:"_checkStickyStates",value:function(){var i=function(a,s){return a||s.hasStickyChanged()};this._headerRowDefs.reduce(i,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(i,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(i,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}},{key:"_setupStickyStyler",value:function(){var i=this;this._stickyStyler=new _f(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,or.of)()).pipe((0,Br.R)(this._onDestroy)).subscribe(function(a){i._stickyStyler.direction=a,i.updateStickyColumnStyles()})}},{key:"_getOwnDefs",value:function(i){var o=this;return i.filter(function(a){return!a._table||a._table===o})}},{key:"_updateNoDataRow",value:function(){var i=this._customNoDataRow||this._noDataRow;if(i){var o=0===this._rowOutlet.viewContainer.length;if(o!==this._isShowingNoDataRow){var a=this._noDataRowOutlet.viewContainer;o?a.createEmbeddedView(i.templateRef):a.clear(),this._isShowingNoDataRow=o}}}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.ZZ4),e.Y36(e.sBO),e.Y36(e.SBq),e.$8M("role"),e.Y36(Ba.Is,8),e.Y36(At.K0),e.Y36(ei.t4),e.Y36(Wi.k),e.Y36(hC),e.Y36(Ta.rL),e.Y36(gC,12))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,i,o){var a;1&t&&(e.Suo(o,Gg,5),e.Suo(o,Wu,5),e.Suo(o,nm,5),e.Suo(o,gf,5),e.Suo(o,tm,5)),2&t&&(e.iGM(a=e.CRH())&&(i._noDataRow=a.first),e.iGM(a=e.CRH())&&(i._contentColumnDefs=a),e.iGM(a=e.CRH())&&(i._contentRowDefs=a),e.iGM(a=e.CRH())&&(i._contentHeaderRowDefs=a),e.iGM(a=e.CRH())&&(i._contentFooterRowDefs=a))},viewQuery:function(t,i){var o;1&t&&(e.Gf(yf,7),e.Gf(rm,7),e.Gf(im,7),e.Gf(Qd,7)),2&t&&(e.iGM(o=e.CRH())&&(i._rowOutlet=o.first),e.iGM(o=e.CRH())&&(i._headerRowOutlet=o.first),e.iGM(o=e.CRH())&&(i._footerRowOutlet=o.first),e.iGM(o=e.CRH())&&(i._noDataRowOutlet=o.first))},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,i){2&t&&e.ekj("cdk-table-fixed-layout",i.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[e._Bn([{provide:qc,useExisting:n},{provide:Wi.k,useClass:Wi.yy},{provide:hC,useClass:jk},{provide:gC,useValue:null}])],ngContentSelectors:C3,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,i){1&t&&(e.F$t(b3),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0),e.GkF(3,1),e.GkF(4,2),e.GkF(5,3))},directives:[rm,yf,Qd,im],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n}();function Jg(n,r){return n.concat(Array.from(r))}var bC=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[Ta.Cl]]}),n}(),zc=f(75472),ne=f(19061),un=f(59412),Yr=f(32819),am=f(33090),vi=f(58780),sm=(f(12698),f(76161)),Qk=f(57263),an=f(739),Cs=f(38480),r4=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[At.ez,un.BQ,ei.ud,Ta.ZD],Ta.ZD,un.BQ]}),n}(),i4=f(82667),lm=f(81370);function aE(n,r){return"function"==typeof(n=function(n,r){return void 0===n?void 0===r?n:r:n}(n,r))?function(){for(var i=arguments,o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=i[s];return!!n.apply(this,a)}:n?function(){return!0}:function(){return!1}}var sE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n},I3=function(r){return null!=r&&"object"===(void 0===r?"undefined":sE(r))&&1===r.nodeType&&"object"===sE(r.style)&&"object"===sE(r.ownerDocument)};function R3(n,r){if(r=lE(r,!0),!I3(r))return-1;for(var t=0;t<n.length;t++)if(n[t]===r)return t;return-1}function TC(n,r){return-1!==R3(n,r)}function N3(n,r){for(var t=0;t<r.length;t++)TC(n,r[t])||n.push(r[t]);return r}function Z3(n){for(var r=arguments,t=[],i=arguments.length-1;i-- >0;)t[i]=r[i+1];return N3(n,t=t.map(lE))}function a4(n){for(var r=arguments,t=[],i=arguments.length-1;i-- >0;)t[i]=r[i+1];return t.map(lE).reduce(function(o,a){var s=R3(n,a);return-1!==s?o.concat(n.splice(s,1)):o},[])}function lE(n,r){if("string"==typeof n)try{return document.querySelector(n)}catch(t){throw t}if(!I3(n)&&!r)throw new TypeError(n+" is not a DOM element.");return n}function uE(n){if(n===window)return function(){var n={top:{value:0,enumerable:!0},left:{value:0,enumerable:!0},right:{value:window.innerWidth,enumerable:!0},bottom:{value:window.innerHeight,enumerable:!0},width:{value:window.innerWidth,enumerable:!0},height:{value:window.innerHeight,enumerable:!0},x:{value:0,enumerable:!0},y:{value:0,enumerable:!0}};if(Object.create)return Object.create({},n);var r={};return Object.defineProperties(r,n),r}();try{var r=n.getBoundingClientRect();return void 0===r.x&&(r.x=r.left,r.y=r.top),r}catch(t){throw new TypeError("Can't call getBoundingClientRect on "+n)}}var r,xC=void 0;"function"!=typeof Object.create?(r=function(){},xC=function(t,i){if(t!==Object(t)&&null!==t)throw TypeError("Argument must be an object, or null");r.prototype=t||{};var o=new r;return r.prototype=null,void 0!==i&&Object.defineProperties(o,i),null===t&&(o.__proto__=null),o}):xC=Object.create;var B3=xC,bf=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function wC(n,r){r=r||{};for(var t=B3(n),i=0;i<bf.length;i++)void 0!==r[bf[i]]&&(t[bf[i]]=r[bf[i]]);return t}function cE(n,r){console.log("data ",r),n.data=r||{},n.dispatched="mousemove"}var um=["webkit","moz","ms","o"],Kd=function(){if("undefined"==typeof window)return function(){};for(var n=0,r=um.length;n<r&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[um[n]+"RequestAnimationFrame"];if(!window.requestAnimationFrame){var t=0;window.requestAnimationFrame=function(i){var o=(new Date).getTime(),a=Math.max(0,16-o-t),s=window.setTimeout(function(){return i(o+a)},a);return t=o+a,s}}return window.requestAnimationFrame.bind(window)}(),Vl=function(){if("undefined"==typeof window)return function(){};for(var n=0,r=um.length;n<r&&!window.cancelAnimationFrame;++n)window.cancelAnimationFrame=window[um[n]+"CancelAnimationFrame"]||window[um[n]+"CancelRequestAnimationFrame"];return window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){window.clearTimeout(t)}),window.cancelAnimationFrame.bind(window)}();function dE(n,r){void 0===r&&(r={});var t=this,i=4,o=!1;if("object"!=typeof r.margin){var a=r.margin||-1;this.margin={left:a,right:a,top:a,bottom:a}}else this.margin=r.margin;this.scrollWhenOutside=r.scrollWhenOutside||!1;var s={},u=function(n,r){var t=aE((r=r||{}).allowUpdate,!0);return function(o){if(o=o||window.event,n.target=o.target||o.srcElement||o.originalTarget,n.element=this,n.type=o.type,t(o)){if(o.targetTouches)n.x=o.targetTouches[0].clientX,n.y=o.targetTouches[0].clientY,n.pageX=o.targetTouches[0].pageX,n.pageY=o.targetTouches[0].pageY,n.screenX=o.targetTouches[0].screenX,n.screenY=o.targetTouches[0].screenY;else{if(null===o.pageX&&null!==o.clientX){var a=o.target&&o.target.ownerDocument||document,s=a.documentElement,u=a.body;n.pageX=o.clientX+(s&&s.scrollLeft||u&&u.scrollLeft||0)-(s&&s.clientLeft||u&&u.clientLeft||0),n.pageY=o.clientY+(s&&s.scrollTop||u&&u.scrollTop||0)-(s&&s.clientTop||u&&u.clientTop||0)}else n.pageX=o.pageX,n.pageY=o.pageY;n.x=o.clientX,n.y=o.clientY,n.screenX=o.screenX,n.screenY=o.screenY}n.clientX=n.x,n.clientY=n.y}}}(s),p=function(n){var r={screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,shiftKey:!1,altKey:!1,metaKey:!1,button:0,buttons:1,relatedTarget:null,region:null};return{destroy:function(){r=null},dispatch:MouseEvent?function(s,u,p){var m=new MouseEvent("mousemove",wC(r,u));return cE(m,p),s.dispatchEvent(m)}:"function"==typeof document.createEvent?function(s,u,p){var m=wC(r,u),b=document.createEvent("MouseEvents");return b.initMouseEvent("mousemove",!0,!0,window,0,m.screenX,m.screenY,m.clientX,m.clientY,m.ctrlKey,m.altKey,m.shiftKey,m.metaKey,m.button,m.relatedTarget),cE(b,p),s.dispatchEvent(b)}:"function"==typeof document.createEventObject?function(s,u,p){var m=document.createEventObject(),b=wC(r,u);for(var R in b)m[R]=b[R];return cE(m,p),s.dispatchEvent(m)}:void 0}}(),m=!1;window.addEventListener("mousemove",u,!1),window.addEventListener("touchmove",u,!1),isNaN(r.maxSpeed)||(i=r.maxSpeed),"object"!=typeof i&&(i={left:i,right:i,top:i,bottom:i}),this.autoScroll=aE(r.autoScroll),this.syncMove=aE(r.syncMove,!1),this.destroy=function(Jt){window.removeEventListener("mousemove",u,!1),window.removeEventListener("touchmove",u,!1),window.removeEventListener("mousedown",ee,!1),window.removeEventListener("touchstart",ee,!1),window.removeEventListener("mouseup",pe,!1),window.removeEventListener("touchend",pe,!1),window.removeEventListener("pointerup",pe,!1),window.removeEventListener("mouseleave",lt,!1),window.removeEventListener("mousemove",mt,!1),window.removeEventListener("touchmove",mt,!1),window.removeEventListener("scroll",Y,!0),n=[],Jt&&Ee()},this.add=function(){for(var Jt=[],st=arguments.length;st--;)Jt[st]=arguments[st];return Z3.apply(void 0,[n].concat(Jt)),this},this.remove=function(){for(var Jt=[],st=arguments.length;st--;)Jt[st]=arguments[st];return a4.apply(void 0,[n].concat(Jt))};var R,Jt,b=null;"[object Array]"!==Object.prototype.toString.call(n)&&(n=[n]),Jt=n,n=[],Jt.forEach(function(st){st===window?b=window:t.add(st)}),Object.defineProperties(this,{down:{get:function(){return m}},maxSpeed:{get:function(){return i}},point:{get:function(){return s}},scrolling:{get:function(){return o}}});var G,F=null;function Y(Jt){for(var st=0;st<n.length;st++)if(n[st]===Jt.target){o=!0;break}o&&Kd(function(){return o=!1})}function ee(){m=!0}function pe(){m=!1,Ee()}function Ee(){Vl(G),Vl(R)}function lt(){m=!1}function it(){for(var Jt=null,st=0;st<n.length;st++)pE(s,n[st])&&(Jt=n[st]);return Jt}function mt(Jt){if(t.autoScroll()&&!Jt.dispatched){var st=Jt.target,Ot=document.body;F&&!pE(s,F)&&(t.scrollWhenOutside||(F=null)),st&&st.parentNode===Ot?st=it():(st=function(Jt){if(!Jt)return null;if(F===Jt||TC(n,Jt))return Jt;for(;Jt=Jt.parentNode;)if(TC(n,Jt))return Jt;return null}(st))||(st=it()),st&&st!==F&&(F=st),b&&(Vl(R),R=Kd(Ke)),F&&(Vl(G),G=Kd(et))}}function Ke(){Rt(b),Vl(R),R=Kd(Ke)}function et(){!F||(Rt(F),Vl(G),G=Kd(et))}function Rt(Jt){var Ot,gn,st=uE(Jt);Ot=s.x<st.left+t.margin.left?Math.floor(Math.max(-1,(s.x-st.left)/t.margin.left-1)*t.maxSpeed.left):s.x>st.right-t.margin.right?Math.ceil(Math.min(1,(s.x-st.right)/t.margin.right+1)*t.maxSpeed.right):0,gn=s.y<st.top+t.margin.top?Math.floor(Math.max(-1,(s.y-st.top)/t.margin.top-1)*t.maxSpeed.top):s.y>st.bottom-t.margin.bottom?Math.ceil(Math.min(1,(s.y-st.bottom)/t.margin.bottom+1)*t.maxSpeed.bottom):0,t.syncMove()&&p.dispatch(Jt,{pageX:s.pageX+Ot,pageY:s.pageY+gn,clientX:s.x+Ot,clientY:s.y+gn}),setTimeout(function(){gn&&function(Jt,st){Jt===window?window.scrollTo(Jt.pageXOffset,Jt.pageYOffset+st):Jt.scrollTop+=st}(Jt,gn),Ot&&function(Jt,st){Jt===window?window.scrollTo(Jt.pageXOffset+st,Jt.pageYOffset):Jt.scrollLeft+=st}(Jt,Ot)})}window.addEventListener("mousedown",ee,!1),window.addEventListener("touchstart",ee,!1),window.addEventListener("mouseup",pe,!1),window.addEventListener("touchend",pe,!1),window.addEventListener("pointerup",pe,!1),window.addEventListener("mousemove",mt,!1),window.addEventListener("touchmove",mt,!1),window.addEventListener("mouseleave",lt,!1),window.addEventListener("scroll",Y,!0)}function pE(n,r,t){return t?n.y>t.top&&n.y<t.bottom&&n.x>t.left&&n.x<t.right:function(n,r){var t=uE(r);return n.y>t.top&&n.y<t.bottom&&n.x>t.left&&n.x<t.right}(n,r)}var Yo=f(35135),Xd=f(16338),Xg=f(64397),u4=f(75398),EC=f(4363),cm=function(){var n=function r(){(0,g.Z)(this,r),this.currentDrag=new Pn.xQ};return n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)},providedIn:"root"}),n.ngInjectableDef=(0,e.Ez6)({factory:function(){return new n},token:n,providedIn:"root"}),n}(),MC=function(){var n=function r(t){(0,g.Z)(this,r),this.elementRef=t,this.activeLongPressDrag=!1,this.longPressConfig={duration:300,delta:30}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","mwlDraggableScrollContainer",""]],inputs:{activeLongPressDrag:"activeLongPressDrag",longPressConfig:"longPressConfig"}}),n}();var c4=function(){var n=function(){function r(t,i,o,a,s,u,p){(0,g.Z)(this,r),this.element=t,this.renderer=i,this.draggableHelper=o,this.zone=a,this.vcr=s,this.scrollContainer=u,this.document=p,this.dragAxis={x:!0,y:!0},this.dragSnapGrid={},this.ghostDragEnabled=!0,this.showOriginalElementWhileDragging=!1,this.dragCursor="",this.autoScroll={margin:20},this.dragPointerDown=new e.vpe,this.dragStart=new e.vpe,this.ghostElementCreated=new e.vpe,this.dragging=new e.vpe,this.dragEnd=new e.vpe,this.pointerDown$=new Pn.xQ,this.pointerMove$=new Pn.xQ,this.pointerUp$=new Pn.xQ,this.eventListenerSubscriptions={},this.destroy$=new Pn.xQ,this.timeLongPress={timerBegin:0,timerEnd:0}}return(0,k.Z)(r,[{key:"ngOnInit",value:function(){var i=this;this.checkEventListeners();var o=this.pointerDown$.pipe((0,vi.h)(function(){return i.canDrag()}),(0,Yo.zg)(function(a){a.event.stopPropagation&&!i.scrollContainer&&a.event.stopPropagation();var s=i.renderer.createElement("style");i.renderer.setAttribute(s,"type","text/css"),i.renderer.appendChild(s,i.renderer.createText("\n body * {\n -moz-user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n }\n ")),requestAnimationFrame(function(){i.document.head.appendChild(s)});var u=i.getScrollPosition(),p=new na.y(function(ee){return i.renderer.listen(i.scrollContainer?i.scrollContainer.elementRef.nativeElement:"window","scroll",function(Ee){return ee.next(Ee)})}).pipe((0,ua.O)(u),(0,kr.U)(function(){return i.getScrollPosition()})),m=new Pn.xQ,b=new i4.t;i.zone.run(function(){i.dragPointerDown.next({x:0,y:0})});var R=(0,go.T)(i.pointerUp$,i.pointerDown$,b,i.destroy$).pipe((0,Xd.B)()),F=(0,lm.aj)([i.pointerMove$,p]).pipe((0,kr.U)(function(ee){var pe=(0,C.Z)(ee,2),Ee=pe[0],lt=pe[1];return{currentDrag$:m,transformX:Ee.clientX-a.clientX,transformY:Ee.clientY-a.clientY,clientX:Ee.clientX,clientY:Ee.clientY,scrollLeft:lt.left,scrollTop:lt.top,target:Ee.event.target}}),(0,kr.U)(function(ee){return i.dragSnapGrid.x&&(ee.transformX=Math.round(ee.transformX/i.dragSnapGrid.x)*i.dragSnapGrid.x),i.dragSnapGrid.y&&(ee.transformY=Math.round(ee.transformY/i.dragSnapGrid.y)*i.dragSnapGrid.y),ee}),(0,kr.U)(function(ee){return i.dragAxis.x||(ee.transformX=0),i.dragAxis.y||(ee.transformY=0),ee}),(0,kr.U)(function(ee){return Object.assign({},ee,{x:ee.transformX+(ee.scrollLeft-u.left),y:ee.transformY+(ee.scrollTop-u.top)})}),(0,vi.h)(function(ee){return!i.validateDrag||i.validateDrag({x:ee.x,y:ee.y,transform:{x:ee.transformX,y:ee.transformY}})}),(0,Br.R)(R),(0,Xd.B)()),G=F.pipe((0,eo.q)(1),(0,Xd.B)()),Y=F.pipe((0,Xg.h)(1),(0,Xd.B)());return G.subscribe(function(ee){var pe=ee.clientX,Ee=ee.clientY,lt=ee.x,tt=ee.y;if(i.zone.run(function(){i.dragStart.next({cancelDrag$:b})}),i.scroller=function(n,r){return new dE(n,r)}([i.scrollContainer?i.scrollContainer.elementRef.nativeElement:i.document.defaultView],Object.assign({},i.autoScroll,{autoScroll:function(){return!0}})),function(n,r,t){t&&t.split(" ").forEach(function(i){return n.addClass(r.nativeElement,i)})}(i.renderer,i.element,i.dragActiveClass),i.ghostDragEnabled){var it=i.element.nativeElement.getBoundingClientRect(),mt=i.element.nativeElement.cloneNode(!0);if(i.showOriginalElementWhileDragging||i.renderer.setStyle(i.element.nativeElement,"visibility","hidden"),i.ghostElementAppendTo?i.ghostElementAppendTo.appendChild(mt):i.element.nativeElement.parentNode.insertBefore(mt,i.element.nativeElement.nextSibling),i.ghostElement=mt,i.document.body.style.cursor=i.dragCursor,i.setElementStyles(mt,{position:"fixed",top:"".concat(it.top,"px"),left:"".concat(it.left,"px"),width:"".concat(it.width,"px"),height:"".concat(it.height,"px"),cursor:i.dragCursor,margin:"0",willChange:"transform",pointerEvents:"none"}),i.ghostElementTemplate){var Ke=i.vcr.createEmbeddedView(i.ghostElementTemplate);mt.innerHTML="",Ke.rootNodes.filter(function(et){return et instanceof Node}).forEach(function(et){mt.appendChild(et)}),Y.subscribe(function(){i.vcr.remove(i.vcr.indexOf(Ke))})}i.zone.run(function(){i.ghostElementCreated.emit({clientX:pe-lt,clientY:Ee-tt,element:mt})}),Y.subscribe(function(){mt.parentElement.removeChild(mt),i.ghostElement=null,i.renderer.setStyle(i.element.nativeElement,"visibility","")})}i.draggableHelper.currentDrag.next(m)}),Y.pipe((0,Yo.zg)(function(ee){var pe=b.pipe((0,u4.Q)(),(0,eo.q)(1),(0,kr.U)(function(Ee){return Object.assign({},ee,{dragCancelled:Ee>0})}));return b.complete(),pe})).subscribe(function(ee){var pe=ee.x,Ee=ee.y,lt=ee.dragCancelled;i.scroller.destroy(),i.zone.run(function(){i.dragEnd.next({x:pe,y:Ee,dragCancelled:lt})}),function(n,r,t){t&&t.split(" ").forEach(function(i){return n.removeClass(r.nativeElement,i)})}(i.renderer,i.element,i.dragActiveClass),m.complete()}),(0,go.T)(R,Y).pipe((0,eo.q)(1)).subscribe(function(){requestAnimationFrame(function(){i.document.head.removeChild(s)})}),F}),(0,Xd.B)());(0,go.T)(o.pipe((0,eo.q)(1),(0,kr.U)(function(a){return[,a]})),o.pipe((0,EC.G)())).pipe((0,vi.h)(function(a){var s=(0,C.Z)(a,2),u=s[0],p=s[1];return!u||u.x!==p.x||u.y!==p.y}),(0,kr.U)(function(a){return(0,C.Z)(a,2)[1]})).subscribe(function(a){var s=a.x,u=a.y,p=a.currentDrag$,m=a.clientX,b=a.clientY,R=a.transformX,F=a.transformY,G=a.target;i.zone.run(function(){i.dragging.next({x:s,y:u})}),requestAnimationFrame(function(){if(i.ghostElement){var Y="translate3d(".concat(R,"px, ").concat(F,"px, 0px)");i.setElementStyles(i.ghostElement,{transform:Y,"-webkit-transform":Y,"-ms-transform":Y,"-moz-transform":Y,"-o-transform":Y})}}),p.next({clientX:m,clientY:b,dropData:i.dropData,target:G})})}},{key:"ngOnChanges",value:function(i){i.dragAxis&&this.checkEventListeners()}},{key:"ngOnDestroy",value:function(){this.unsubscribeEventListeners(),this.pointerDown$.complete(),this.pointerMove$.complete(),this.pointerUp$.complete(),this.destroy$.next()}},{key:"checkEventListeners",value:function(){var i=this,o=this.canDrag(),a=Object.keys(this.eventListenerSubscriptions).length>0;o&&!a?this.zone.runOutsideAngular(function(){i.eventListenerSubscriptions.mousedown=i.renderer.listen(i.element.nativeElement,"mousedown",function(s){i.onMouseDown(s)}),i.eventListenerSubscriptions.mouseup=i.renderer.listen("document","mouseup",function(s){i.onMouseUp(s)}),i.eventListenerSubscriptions.touchstart=i.renderer.listen(i.element.nativeElement,"touchstart",function(s){i.onTouchStart(s)}),i.eventListenerSubscriptions.touchend=i.renderer.listen("document","touchend",function(s){i.onTouchEnd(s)}),i.eventListenerSubscriptions.touchcancel=i.renderer.listen("document","touchcancel",function(s){i.onTouchEnd(s)}),i.eventListenerSubscriptions.mouseenter=i.renderer.listen(i.element.nativeElement,"mouseenter",function(){i.onMouseEnter()}),i.eventListenerSubscriptions.mouseleave=i.renderer.listen(i.element.nativeElement,"mouseleave",function(){i.onMouseLeave()})}):!o&&a&&this.unsubscribeEventListeners()}},{key:"onMouseDown",value:function(i){var o=this;0===i.button&&(this.eventListenerSubscriptions.mousemove||(this.eventListenerSubscriptions.mousemove=this.renderer.listen("document","mousemove",function(a){o.pointerMove$.next({event:a,clientX:a.clientX,clientY:a.clientY})})),this.pointerDown$.next({event:i,clientX:i.clientX,clientY:i.clientY}))}},{key:"onMouseUp",value:function(i){0===i.button&&(this.eventListenerSubscriptions.mousemove&&(this.eventListenerSubscriptions.mousemove(),delete this.eventListenerSubscriptions.mousemove),this.pointerUp$.next({event:i,clientX:i.clientX,clientY:i.clientY}))}},{key:"onTouchStart",value:function(i){var a,s,u,o=this;if((this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&(this.timeLongPress.timerBegin=Date.now(),s=!1,u=this.hasScrollbar(),a=this.getScrollPosition()),!this.eventListenerSubscriptions.touchmove){var p=(0,am.R)(this.document,"contextmenu").subscribe(function(b){b.preventDefault()}),m=(0,am.R)(this.document,"touchmove",{passive:!1}).subscribe(function(b){(o.scrollContainer&&o.scrollContainer.activeLongPressDrag||o.touchStartLongPress)&&!s&&u&&(s=o.shouldBeginDrag(i,b,a)),((!o.scrollContainer||!o.scrollContainer.activeLongPressDrag)&&!o.touchStartLongPress||!u||s)&&(b.preventDefault(),o.pointerMove$.next({event:b,clientX:b.targetTouches[0].clientX,clientY:b.targetTouches[0].clientY}))});this.eventListenerSubscriptions.touchmove=function(){p.unsubscribe(),m.unsubscribe()}}this.pointerDown$.next({event:i,clientX:i.touches[0].clientX,clientY:i.touches[0].clientY})}},{key:"onTouchEnd",value:function(i){this.eventListenerSubscriptions.touchmove&&(this.eventListenerSubscriptions.touchmove(),delete this.eventListenerSubscriptions.touchmove,(this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&this.enableScroll()),this.pointerUp$.next({event:i,clientX:i.changedTouches[0].clientX,clientY:i.changedTouches[0].clientY})}},{key:"onMouseEnter",value:function(){this.setCursor(this.dragCursor)}},{key:"onMouseLeave",value:function(){this.setCursor("")}},{key:"canDrag",value:function(){return this.dragAxis.x||this.dragAxis.y}},{key:"setCursor",value:function(i){this.eventListenerSubscriptions.mousemove||this.renderer.setStyle(this.element.nativeElement,"cursor",i)}},{key:"unsubscribeEventListeners",value:function(){var i=this;Object.keys(this.eventListenerSubscriptions).forEach(function(o){i.eventListenerSubscriptions[o](),delete i.eventListenerSubscriptions[o]})}},{key:"setElementStyles",value:function(i,o){var a=this;Object.keys(o).forEach(function(s){a.renderer.setStyle(i,s,o[s])})}},{key:"getScrollElement",value:function(){return this.scrollContainer?this.scrollContainer.elementRef.nativeElement:this.document.body}},{key:"getScrollPosition",value:function(){return this.scrollContainer?{top:this.scrollContainer.elementRef.nativeElement.scrollTop,left:this.scrollContainer.elementRef.nativeElement.scrollLeft}:{top:window.pageYOffset||this.document.documentElement.scrollTop,left:window.pageXOffset||this.document.documentElement.scrollLeft}}},{key:"shouldBeginDrag",value:function(i,o,a){var s=this.getScrollPosition(),u_top=Math.abs(s.top-a.top),u_left=Math.abs(s.left-a.left),p=Math.abs(o.targetTouches[0].clientX-i.touches[0].clientX)-u_left,m=Math.abs(o.targetTouches[0].clientY-i.touches[0].clientY)-u_top,R=this.touchStartLongPress?this.touchStartLongPress:{delta:this.scrollContainer.longPressConfig.delta,delay:this.scrollContainer.longPressConfig.duration};return(p+m>R.delta||u_top>0||u_left>0)&&(this.timeLongPress.timerBegin=Date.now()),this.timeLongPress.timerEnd=Date.now(),this.timeLongPress.timerEnd-this.timeLongPress.timerBegin>=R.delay&&(this.disableScroll(),!0)}},{key:"enableScroll",value:function(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow",""),this.renderer.setStyle(this.document.body,"overflow","")}},{key:"disableScroll",value:function(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow","hidden"),this.renderer.setStyle(this.document.body,"overflow","hidden")}},{key:"hasScrollbar",value:function(){var i=this.getScrollElement();return i.scrollWidth>i.clientWidth||i.scrollHeight>i.clientHeight}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(cm),e.Y36(e.R0b),e.Y36(e.s_b),e.Y36(MC,8),e.Y36(At.K0))},n.\u0275dir=e.lG2({type:n,selectors:[["","mwlDraggable",""]],inputs:{dragAxis:"dragAxis",dragSnapGrid:"dragSnapGrid",ghostDragEnabled:"ghostDragEnabled",showOriginalElementWhileDragging:"showOriginalElementWhileDragging",dragCursor:"dragCursor",autoScroll:"autoScroll",dropData:"dropData",validateDrag:"validateDrag",dragActiveClass:"dragActiveClass",ghostElementAppendTo:"ghostElementAppendTo",ghostElementTemplate:"ghostElementTemplate",touchStartLongPress:"touchStartLongPress"},outputs:{dragPointerDown:"dragPointerDown",dragStart:"dragStart",ghostElementCreated:"ghostElementCreated",dragging:"dragging",dragEnd:"dragEnd"},features:[e.TTD]}),n}(),$g=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({}),n}(),mE=f(39095);function Cf(n,r){return n<r?-1:n>r?1:n>=r?0:NaN}function vE(n){return 1===n.length&&(n=function(n){return function(r,t){return Cf(n(r),t)}}(n)),{left:function(t,i,o,a){for(null==o&&(o=0),null==a&&(a=t.length);o<a;){var s=o+a>>>1;n(t[s],i)<0?o=s+1:a=s}return o},right:function(t,i,o,a){for(null==o&&(o=0),null==a&&(a=t.length);o<a;){var s=o+a>>>1;n(t[s],i)>0?a=s:o=s+1}return o}}}var gE=vE(Cf),H3=gE.right,V3=gE.left,Sf=H3;function d4(n,r){null==r&&(r=OC);for(var t=0,i=n.length-1,o=n[0],a=new Array(i<0?0:i);t<i;)a[t]=r(o,o=n[++t]);return a}function OC(n,r){return[n,r]}function q3(n,r,t){var s,u,p,m,i=n.length,o=r.length,a=new Array(i*o);for(null==t&&(t=OC),s=p=0;s<i;++s)for(m=n[s],u=0;u<o;++u,++p)a[p]=t(m,r[u]);return a}function p4(n,r){return r<n?-1:r>n?1:r>=n?0:NaN}function Wc(n){return null===n?NaN:+n}function _E(n,r){var s,u,t=n.length,i=0,o=-1,a=0,p=0;if(null==r)for(;++o<t;)isNaN(s=Wc(n[o]))||(p+=(u=s-a)*(s-(a+=u/++i)));else for(;++o<t;)isNaN(s=Wc(r(n[o],o,n)))||(p+=(u=s-a)*(s-(a+=u/++i)));if(i>1)return p/(i-1)}function Tf(n,r){var t=_E(n,r);return t&&Math.sqrt(t)}function PC(n,r){var o,a,s,t=n.length,i=-1;if(null==r){for(;++i<t;)if(null!=(o=n[i])&&o>=o)for(a=s=o;++i<t;)null!=(o=n[i])&&(a>o&&(a=o),s<o&&(s=o))}else for(;++i<t;)if(null!=(o=r(n[i],i,n))&&o>=o)for(a=s=o;++i<t;)null!=(o=r(n[i],i,n))&&(a>o&&(a=o),s<o&&(s=o));return[a,s]}var yE=Array.prototype,j3=yE.slice,IC=yE.map;function e_(n){return function(){return n}}function Su(n){return n}function Vs(n,r,t){n=+n,r=+r,t=(o=arguments.length)<2?(r=n,n=0,1):o<3?1:+t;for(var i=-1,o=0|Math.max(0,Math.ceil((r-n)/t)),a=new Array(o);++i<o;)a[i]=n+i*t;return a}var dm=Math.sqrt(50),RC=Math.sqrt(10),NC=Math.sqrt(2);function pm(n,r,t){var i,a,s,u,o=-1;if(t=+t,(n=+n)==(r=+r)&&t>0)return[n];if((i=r<n)&&(a=n,n=r,r=a),0===(u=xf(n,r,t))||!isFinite(u))return[];if(u>0)for(n=Math.ceil(n/u),r=Math.floor(r/u),s=new Array(a=Math.ceil(r-n+1));++o<a;)s[o]=(n+o)*u;else for(n=Math.floor(n*u),r=Math.ceil(r*u),s=new Array(a=Math.ceil(n-r+1));++o<a;)s[o]=(n-o)/u;return i&&s.reverse(),s}function xf(n,r,t){var i=(r-n)/Math.max(0,t),o=Math.floor(Math.log(i)/Math.LN10),a=i/Math.pow(10,o);return o>=0?(a>=dm?10:a>=RC?5:a>=NC?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(a>=dm?10:a>=RC?5:a>=NC?2:1)}function Gc(n,r,t){var i=Math.abs(r-n)/Math.max(0,t),o=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),a=i/o;return a>=dm?o*=10:a>=RC?o*=5:a>=NC&&(o*=2),r<n?-o:o}function ZC(n){return Math.ceil(Math.log(n.length)/Math.LN2)+1}function bE(){var n=Su,r=PC,t=ZC;function i(o){var a,u,s=o.length,p=new Array(s);for(a=0;a<s;++a)p[a]=n(o[a],a,o);var m=r(p),b=m[0],R=m[1],F=t(p,b,R);Array.isArray(F)||(F=Gc(b,R,F),F=Vs(Math.ceil(b/F)*F,R,F));for(var G=F.length;F[0]<=b;)F.shift(),--G;for(;F[G-1]>R;)F.pop(),--G;var ee,Y=new Array(G+1);for(a=0;a<=G;++a)(ee=Y[a]=[]).x0=a>0?F[a-1]:b,ee.x1=a<G?F[a]:R;for(a=0;a<s;++a)b<=(u=p[a])&&u<=R&&Y[Sf(F,u,0,G)].push(o[a]);return Y}return i.value=function(o){return arguments.length?(n="function"==typeof o?o:e_(o),i):n},i.domain=function(o){return arguments.length?(r="function"==typeof o?o:e_([o[0],o[1]]),i):r},i.thresholds=function(o){return arguments.length?(t="function"==typeof o?o:Array.isArray(o)?e_(j3.call(o)):e_(o),i):t},i}function wf(n,r,t){if(null==t&&(t=Wc),i=n.length){if((r=+r)<=0||i<2)return+t(n[0],0,n);if(r>=1)return+t(n[i-1],i-1,n);var i,o=(i-1)*r,a=Math.floor(o),s=+t(n[a],a,n);return s+(+t(n[a+1],a+1,n)-s)*(o-a)}}function z3(n,r,t){return n=IC.call(n,Wc).sort(Cf),Math.ceil((t-r)/(2*(wf(n,.75)-wf(n,.25))*Math.pow(n.length,-1/3)))}function W3(n,r,t){return Math.ceil((t-r)/(3.5*Tf(n)*Math.pow(n.length,-1/3)))}function t_(n,r){var o,a,t=n.length,i=-1;if(null==r){for(;++i<t;)if(null!=(o=n[i])&&o>=o)for(a=o;++i<t;)null!=(o=n[i])&&o>a&&(a=o)}else for(;++i<t;)if(null!=(o=r(n[i],i,n))&&o>=o)for(a=o;++i<t;)null!=(o=r(n[i],i,n))&&o>a&&(a=o);return a}function CE(n,r){var a,t=n.length,i=t,o=-1,s=0;if(null==r)for(;++o<t;)isNaN(a=Wc(n[o]))?--i:s+=a;else for(;++o<t;)isNaN(a=Wc(r(n[o],o,n)))?--i:s+=a;if(i)return s/i}function SE(n,r){var o,t=n.length,i=-1,a=[];if(null==r)for(;++i<t;)isNaN(o=Wc(n[i]))||a.push(o);else for(;++i<t;)isNaN(o=Wc(r(n[i],i,n)))||a.push(o);return wf(a.sort(Cf),.5)}function fm(n){for(var t,a,s,r=n.length,i=-1,o=0;++i<r;)o+=n[i].length;for(a=new Array(o);--r>=0;)for(t=(s=n[r]).length;--t>=0;)a[--o]=s[t];return a}function TE(n,r){var o,a,t=n.length,i=-1;if(null==r){for(;++i<t;)if(null!=(o=n[i])&&o>=o)for(a=o;++i<t;)null!=(o=n[i])&&a>o&&(a=o)}else for(;++i<t;)if(null!=(o=r(n[i],i,n))&&o>=o)for(a=o;++i<t;)null!=(o=r(n[i],i,n))&&a>o&&(a=o);return a}function ql(n,r){for(var t=r.length,i=new Array(t);t--;)i[t]=n[r[t]];return i}function G3(n,r){if(t=n.length){var t,a,i=0,o=0,s=n[o];for(null==r&&(r=Cf);++i<t;)(r(a=n[i],s)<0||0!==r(s,s))&&(s=a,o=i);if(0===r(s,s))return o}}function f4(n,r,t){for(var o,a,i=(null==t?n.length:t)-(r=null==r?0:+r);i;)a=Math.random()*i--|0,o=n[i+r],n[i+r]=n[a+r],n[a+r]=o;return n}function Y3(n,r){var o,t=n.length,i=-1,a=0;if(null==r)for(;++i<t;)(o=+n[i])&&(a+=o);else for(;++i<t;)(o=+r(n[i],i,n))&&(a+=o);return a}function J3(n){if(!(a=n.length))return[];for(var r=-1,t=TE(n,Q3),i=new Array(t);++r<t;)for(var a,o=-1,s=i[r]=new Array(a);++o<a;)s[o]=n[o][r];return i}function Q3(n){return n.length}function K3(){return J3(arguments)}var LC=Array.prototype.slice;function h4(n){return n}function X3(n){return"translate("+(n+.5)+",0)"}function m4(n){return"translate(0,"+(n+.5)+")"}function xE(n){return function(r){return+n(r)}}function wE(n){var r=Math.max(0,n.bandwidth()-1)/2;return n.round()&&(r=Math.round(r)),function(t){return+n(t)+r}}function $3(){return!this.__axis}function r_(n,r){var t=[],i=null,o=null,a=6,s=6,u=3,p=1===n||4===n?-1:1,m=4===n||2===n?"x":"y",b=1===n||3===n?X3:m4;function R(F){var G=null==i?r.ticks?r.ticks.apply(r,t):r.domain():i,Y=null==o?r.tickFormat?r.tickFormat.apply(r,t):h4:o,ee=Math.max(a,0)+u,pe=r.range(),Ee=+pe[0]+.5,lt=+pe[pe.length-1]+.5,tt=(r.bandwidth?wE:xE)(r.copy()),it=F.selection?F.selection():F,mt=it.selectAll(".domain").data([null]),Ke=it.selectAll(".tick").data(G,r).order(),et=Ke.exit(),Rt=Ke.enter().append("g").attr("class","tick"),kt=Ke.select("line"),fn=Ke.select("text");mt=mt.merge(mt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Ke=Ke.merge(Rt),kt=kt.merge(Rt.append("line").attr("stroke","currentColor").attr(m+"2",p*a)),fn=fn.merge(Rt.append("text").attr("fill","currentColor").attr(m,p*ee).attr("dy",1===n?"0em":3===n?"0.71em":"0.32em")),F!==it&&(mt=mt.transition(F),Ke=Ke.transition(F),kt=kt.transition(F),fn=fn.transition(F),et=et.transition(F).attr("opacity",1e-6).attr("transform",function(Jt){return isFinite(Jt=tt(Jt))?b(Jt):this.getAttribute("transform")}),Rt.attr("opacity",1e-6).attr("transform",function(Jt){var st=this.parentNode.__axis;return b(st&&isFinite(st=st(Jt))?st:tt(Jt))})),et.remove(),mt.attr("d",4===n||2==n?s?"M"+p*s+","+Ee+"H0.5V"+lt+"H"+p*s:"M0.5,"+Ee+"V"+lt:s?"M"+Ee+","+p*s+"V0.5H"+lt+"V"+p*s:"M"+Ee+",0.5H"+lt),Ke.attr("opacity",1).attr("transform",function(Jt){return b(tt(Jt))}),kt.attr(m+"2",p*a),fn.attr(m,p*ee).text(Y),it.filter($3).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===n?"start":4===n?"end":"middle"),it.each(function(){this.__axis=tt})}return R.scale=function(F){return arguments.length?(r=F,R):r},R.ticks=function(){return t=LC.call(arguments),R},R.tickArguments=function(F){return arguments.length?(t=null==F?[]:LC.call(F),R):t.slice()},R.tickValues=function(F){return arguments.length?(i=null==F?null:LC.call(F),R):i&&i.slice()},R.tickFormat=function(F){return arguments.length?(o=F,R):o},R.tickSize=function(F){return arguments.length?(a=s=+F,R):a},R.tickSizeInner=function(F){return arguments.length?(a=+F,R):a},R.tickSizeOuter=function(F){return arguments.length?(s=+F,R):s},R.tickPadding=function(F){return arguments.length?(u=+F,R):u},R}function kE(n){return r_(1,n)}function vm(n){return r_(2,n)}function UC(n){return r_(3,n)}function EE(n){return r_(4,n)}var eR={value:function(){}};function ME(){for(var i,n=0,r=arguments.length,t={};n<r;++n){if(!(i=arguments[n]+"")||i in t||/[\s.]/.test(i))throw new Error("illegal type: "+i);t[i]=[]}return new HC(t)}function HC(n){this._=n}function v4(n,r){return n.trim().split(/^|\s+/).map(function(t){var i="",o=t.indexOf(".");if(o>=0&&(i=t.slice(o+1),t=t.slice(0,o)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:i}})}function g4(n,r){for(var o,t=0,i=n.length;t<i;++t)if((o=n[t]).name===r)return o.value}function VC(n,r,t){for(var i=0,o=n.length;i<o;++i)if(n[i].name===r){n[i]=eR,n=n.slice(0,i).concat(n.slice(i+1));break}return null!=t&&n.push({name:r,value:t}),n}HC.prototype=ME.prototype={constructor:HC,on:function(r,t){var a,i=this._,o=v4(r+"",i),s=-1,u=o.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++s<u;)if(a=(r=o[s]).type)i[a]=VC(i[a],r.name,t);else if(null==t)for(a in i)i[a]=VC(i[a],r.name,null);return this}for(;++s<u;)if((a=(r=o[s]).type)&&(a=g4(i[a],r.name)))return a},copy:function(){var r={},t=this._;for(var i in t)r[i]=t[i].slice();return new HC(r)},call:function(r,t){if((a=arguments.length-2)>0)for(var a,s,i=new Array(a),o=0;o<a;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(r))throw new Error("unknown type: "+r);for(o=0,a=(s=this._[r]).length;o<a;++o)s[o].value.apply(t,i)},apply:function(r,t,i){if(!this._.hasOwnProperty(r))throw new Error("unknown type: "+r);for(var o=this._[r],a=0,s=o.length;a<s;++a)o[a].value.apply(t,i)}};var $d=ME,qC="http://www.w3.org/1999/xhtml",jC={svg:"http://www.w3.org/2000/svg",xhtml:qC,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function gm(n){var r=n+="",t=r.indexOf(":");return t>=0&&"xmlns"!==(r=n.slice(0,t))&&(n=n.slice(t+1)),jC.hasOwnProperty(r)?{space:jC[r],local:n}:n}function tR(n){return function(){var r=this.ownerDocument,t=this.namespaceURI;return t===qC&&r.documentElement.namespaceURI===qC?r.createElement(n):r.createElementNS(t,n)}}function AE(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function i_(n){var r=gm(n);return(r.local?AE:tR)(r)}function nR(){}function zC(n){return null==n?nR:function(){return this.querySelector(n)}}function WC(){return[]}function DE(n){return null==n?WC:function(){return this.querySelectorAll(n)}}var OE=function(r){return function(){return this.matches(r)}};if("undefined"!=typeof document){var _m=document.documentElement;if(!_m.matches){var GC=_m.webkitMatchesSelector||_m.msMatchesSelector||_m.mozMatchesSelector||_m.oMatchesSelector;OE=function(r){return function(){return GC.call(this,r)}}}}var PE=OE;function oR(n){return new Array(n.length)}function ym(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}function y4(n,r,t,i,o,a){for(var u,s=0,p=r.length,m=a.length;s<m;++s)(u=r[s])?(u.__data__=a[s],i[s]=u):t[s]=new ym(n,a[s]);for(;s<p;++s)(u=r[s])&&(o[s]=u)}function a_(n,r,t,i,o,a,s){var u,p,G,m={},b=r.length,R=a.length,F=new Array(b);for(u=0;u<b;++u)(p=r[u])&&(F[u]=G="$"+s.call(p,p.__data__,u,r),G in m?o[u]=p:m[G]=p);for(u=0;u<R;++u)(p=m[G="$"+s.call(n,a[u],u,a)])?(i[u]=p,p.__data__=a[u],m[G]=null):t[u]=new ym(n,a[u]);for(u=0;u<b;++u)(p=r[u])&&m[F[u]]===p&&(o[u]=p)}function sR(n,r){return n<r?-1:n>r?1:n>=r?0:NaN}function uR(n){return function(){this.removeAttribute(n)}}function cR(n){return function(){this.removeAttributeNS(n.space,n.local)}}function dR(n,r){return function(){this.setAttribute(n,r)}}function pR(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function fR(n,r){return function(){var t=r.apply(this,arguments);null==t?this.removeAttribute(n):this.setAttribute(n,t)}}function hR(n,r){return function(){var t=r.apply(this,arguments);null==t?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,t)}}function QC(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function vR(n){return function(){this.style.removeProperty(n)}}function gR(n,r,t){return function(){this.style.setProperty(n,r,t)}}function E4(n,r,t){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,t)}}function tp(n,r){return n.style.getPropertyValue(r)||QC(n).getComputedStyle(n,null).getPropertyValue(r)}function _R(n){return function(){delete this[n]}}function yR(n,r){return function(){this[n]=r}}function bR(n,r){return function(){var t=r.apply(this,arguments);null==t?delete this[n]:this[n]=t}}function ll(n){return n.trim().split(/^|\s+/)}function KC(n){return n.classList||new RE(n)}function RE(n){this._node=n,this._names=ll(n.getAttribute("class")||"")}function NE(n,r){for(var t=KC(n),i=-1,o=r.length;++i<o;)t.add(r[i])}function ZE(n,r){for(var t=KC(n),i=-1,o=r.length;++i<o;)t.remove(r[i])}function A4(n){return function(){NE(this,n)}}function SR(n){return function(){ZE(this,n)}}function TR(n,r){return function(){(r.apply(this,arguments)?NE:ZE)(this,n)}}function bm(){this.textContent=""}function LE(n){return function(){this.textContent=n}}function D4(n){return function(){var r=n.apply(this,arguments);this.textContent=null==r?"":r}}function O4(){this.innerHTML=""}function P4(n){return function(){this.innerHTML=n}}function I4(n){return function(){var r=n.apply(this,arguments);this.innerHTML=null==r?"":r}}function kR(){this.nextSibling&&this.parentNode.appendChild(this)}function MR(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function DR(){return null}function jl(){var n=this.parentNode;n&&n.removeChild(this)}function FE(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function PR(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}ym.prototype={constructor:ym,appendChild:function(r){return this._parent.insertBefore(r,this._next)},insertBefore:function(r,t){return this._parent.insertBefore(r,t)},querySelector:function(r){return this._parent.querySelector(r)},querySelectorAll:function(r){return this._parent.querySelectorAll(r)}},RE.prototype={add:function(r){this._names.indexOf(r)<0&&(this._names.push(r),this._node.setAttribute("class",this._names.join(" ")))},remove:function(r){var t=this._names.indexOf(r);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};var $C={},Mn=null;function t1(n,r,t){return n=Cm(n,r,t),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&n.call(this,i)}}function Cm(n,r,t){return function(i){var o=Mn;Mn=i;try{n.call(this,this.__data__,r,t)}finally{Mn=o}}}function s_(n){return n.trim().split(/^|\s+/).map(function(r){var t="",i=r.indexOf(".");return i>=0&&(t=r.slice(i+1),r=r.slice(0,i)),{type:r,name:t}})}function HE(n){return function(){var r=this.__on;if(r){for(var a,t=0,i=-1,o=r.length;t<o;++t)a=r[t],n.type&&a.type!==n.type||a.name!==n.name?r[++i]=a:this.removeEventListener(a.type,a.listener,a.capture);++i?r.length=i:delete this.__on}}}function VE(n,r,t){var i=$C.hasOwnProperty(n.type)?t1:Cm;return function(o,a,s){var p,u=this.__on,m=i(r,a,s);if(u)for(var b=0,R=u.length;b<R;++b)if((p=u[b]).type===n.type&&p.name===n.name)return this.removeEventListener(p.type,p.listener,p.capture),this.addEventListener(p.type,p.listener=m,p.capture=t),void(p.value=r);this.addEventListener(n.type,m,t),p={type:n.type,name:n.name,value:r,listener:m,capture:t},u?u.push(p):this.__on=[p]}}function Sm(n,r,t,i){var o=Mn;n.sourceEvent=Mn,Mn=n;try{return r.apply(t,i)}finally{Mn=o}}function n1(n,r,t){var i=QC(n),o=i.CustomEvent;"function"==typeof o?o=new o(r,t):(o=i.document.createEvent("Event"),t?(o.initEvent(r,t.bubbles,t.cancelable),o.detail=t.detail):o.initEvent(r,!1,!1)),n.dispatchEvent(o)}function RR(n,r){return function(){return n1(this,n,r)}}function NR(n,r){return function(){return n1(this,n,r.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||($C={mouseenter:"mouseover",mouseleave:"mouseout"}));var Tm=[null];function ds(n,r){this._groups=n,this._parents=r}function Ka(){return new ds([[document.documentElement]],Tm)}ds.prototype=Ka.prototype={constructor:ds,select:function(n){"function"!=typeof n&&(n=zC(n));for(var r=this._groups,t=r.length,i=new Array(t),o=0;o<t;++o)for(var p,m,a=r[o],s=a.length,u=i[o]=new Array(s),b=0;b<s;++b)(p=a[b])&&(m=n.call(p,p.__data__,b,a))&&("__data__"in p&&(m.__data__=p.__data__),u[b]=m);return new ds(i,this._parents)},selectAll:function(n){"function"!=typeof n&&(n=DE(n));for(var r=this._groups,t=r.length,i=[],o=[],a=0;a<t;++a)for(var p,s=r[a],u=s.length,m=0;m<u;++m)(p=s[m])&&(i.push(n.call(p,p.__data__,m,s)),o.push(p));return new ds(i,o)},filter:function(n){"function"!=typeof n&&(n=PE(n));for(var r=this._groups,t=r.length,i=new Array(t),o=0;o<t;++o)for(var p,a=r[o],s=a.length,u=i[o]=[],m=0;m<s;++m)(p=a[m])&&n.call(p,p.__data__,m,a)&&u.push(p);return new ds(i,this._parents)},data:function(n,r){if(!n)return G=new Array(this.size()),m=-1,this.each(function(Ke){G[++m]=Ke}),G;var t=r?a_:y4,i=this._parents,o=this._groups;"function"!=typeof n&&(n=function(n){return function(){return n}}(n));for(var a=o.length,s=new Array(a),u=new Array(a),p=new Array(a),m=0;m<a;++m){var b=i[m],R=o[m],F=R.length,G=n.call(b,b&&b.__data__,m,i),Y=G.length,ee=u[m]=new Array(Y),pe=s[m]=new Array(Y);t(b,R,ee,pe,p[m]=new Array(F),G,r);for(var it,mt,lt=0,tt=0;lt<Y;++lt)if(it=ee[lt]){for(lt>=tt&&(tt=lt+1);!(mt=pe[tt])&&++tt<Y;);it._next=mt||null}}return(s=new ds(s,i))._enter=u,s._exit=p,s},enter:function(){return new ds(this._enter||this._groups.map(oR),this._parents)},exit:function(){return new ds(this._exit||this._groups.map(oR),this._parents)},merge:function(n){for(var r=this._groups,t=n._groups,i=r.length,a=Math.min(i,t.length),s=new Array(i),u=0;u<a;++u)for(var F,p=r[u],m=t[u],b=p.length,R=s[u]=new Array(b),G=0;G<b;++G)(F=p[G]||m[G])&&(R[G]=F);for(;u<i;++u)s[u]=r[u];return new ds(s,this._parents)},order:function(){for(var n=this._groups,r=-1,t=n.length;++r<t;)for(var s,i=n[r],o=i.length-1,a=i[o];--o>=0;)(s=i[o])&&(a&&a!==s.nextSibling&&a.parentNode.insertBefore(s,a),a=s);return this},sort:function(n){function r(R,F){return R&&F?n(R.__data__,F.__data__):!R-!F}n||(n=sR);for(var t=this._groups,i=t.length,o=new Array(i),a=0;a<i;++a){for(var m,s=t[a],u=s.length,p=o[a]=new Array(u),b=0;b<u;++b)(m=s[b])&&(p[b]=m);p.sort(r)}return new ds(o,this._parents).order()},call:function(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this},nodes:function(){var n=new Array(this.size()),r=-1;return this.each(function(){n[++r]=this}),n},node:function(){for(var n=this._groups,r=0,t=n.length;r<t;++r)for(var i=n[r],o=0,a=i.length;o<a;++o){var s=i[o];if(s)return s}return null},size:function(){var n=0;return this.each(function(){++n}),n},empty:function(){return!this.node()},each:function(n){for(var r=this._groups,t=0,i=r.length;t<i;++t)for(var u,o=r[t],a=0,s=o.length;a<s;++a)(u=o[a])&&n.call(u,u.__data__,a,o);return this},attr:function(n,r){var t=gm(n);if(arguments.length<2){var i=this.node();return t.local?i.getAttributeNS(t.space,t.local):i.getAttribute(t)}return this.each((null==r?t.local?cR:uR:"function"==typeof r?t.local?hR:fR:t.local?pR:dR)(t,r))},style:function(n,r,t){return arguments.length>1?this.each((null==r?vR:"function"==typeof r?E4:gR)(n,r,null==t?"":t)):tp(this.node(),n)},property:function(n,r){return arguments.length>1?this.each((null==r?_R:"function"==typeof r?bR:yR)(n,r)):this.node()[n]},classed:function(n,r){var t=ll(n+"");if(arguments.length<2){for(var i=KC(this.node()),o=-1,a=t.length;++o<a;)if(!i.contains(t[o]))return!1;return!0}return this.each(("function"==typeof r?TR:r?A4:SR)(t,r))},text:function(n){return arguments.length?this.each(null==n?bm:("function"==typeof n?D4:LE)(n)):this.node().textContent},html:function(n){return arguments.length?this.each(null==n?O4:("function"==typeof n?I4:P4)(n)):this.node().innerHTML},raise:function(){return this.each(kR)},lower:function(){return this.each(MR)},append:function(n){var r="function"==typeof n?n:i_(n);return this.select(function(){return this.appendChild(r.apply(this,arguments))})},insert:function(n,r){var t="function"==typeof n?n:i_(n),i=null==r?DR:"function"==typeof r?r:zC(r);return this.select(function(){return this.insertBefore(t.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(jl)},clone:function(n){return this.select(n?PR:FE)},datum:function(n){return arguments.length?this.property("__data__",n):this.node().__data__},on:function(n,r,t){var o,s,i=s_(n+""),a=i.length;if(!(arguments.length<2)){for(u=r?VE:HE,null==t&&(t=!1),o=0;o<a;++o)this.each(u(i[o],r,t));return this}var u=this.node().__on;if(u)for(var b,p=0,m=u.length;p<m;++p)for(o=0,b=u[p];o<a;++o)if((s=i[o]).type===b.type&&s.name===b.name)return b.value},dispatch:function(n,r){return this.each(("function"==typeof r?NR:RR)(n,r))}};var qs=Ka;function Xr(n){return"string"==typeof n?new ds([[document.querySelector(n)]],[document.documentElement]):new ds([[n]],Tm)}function qE(n){return Xr(i_(n).call(document.documentElement))}var l_=0;function u_(){return new c_}function c_(){this._="@"+(++l_).toString(36)}function xm(){for(var r,n=Mn;r=n.sourceEvent;)n=r;return n}function d_(n,r){var t=n.ownerSVGElement||n;if(t.createSVGPoint){var i=t.createSVGPoint();return i.x=r.clientX,i.y=r.clientY,[(i=i.matrixTransform(n.getScreenCTM().inverse())).x,i.y]}var o=n.getBoundingClientRect();return[r.clientX-o.left-n.clientLeft,r.clientY-o.top-n.clientTop]}function ul(n){var r=xm();return r.changedTouches&&(r=r.changedTouches[0]),d_(n,r)}function LR(n){return"string"==typeof n?new ds([document.querySelectorAll(n)],[document.documentElement]):new ds([null==n?[]:n],Tm)}function p_(n,r,t){arguments.length<3&&(t=r,r=xm().changedTouches);for(var a,i=0,o=r?r.length:0;i<o;++i)if((a=r[i]).identifier===t)return d_(n,a);return null}function jE(n,r){null==r&&(r=xm().touches);for(var t=0,i=r?r.length:0,o=new Array(i);t<i;++t)o[t]=d_(n,r[t]);return o}function r1(){Mn.stopImmediatePropagation()}function kf(){Mn.preventDefault(),Mn.stopImmediatePropagation()}function f_(n){var r=n.document.documentElement,t=Xr(n).on("dragstart.drag",kf,!0);"onselectstart"in r?t.on("selectstart.drag",kf,!0):(r.__noselect=r.style.MozUserSelect,r.style.MozUserSelect="none")}function zl(n,r){var t=n.document.documentElement,i=Xr(n).on("dragstart.drag",null);r&&(i.on("click.drag",kf,!0),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in t?i.on("selectstart.drag",null):(t.style.MozUserSelect=t.__noselect,delete t.__noselect)}function Tu(n,r,t){n.prototype=r.prototype=t,t.constructor=n}function np(n,r){var t=Object.create(n.prototype);for(var i in r)t[i]=r[i];return t}function Yc(){}c_.prototype=u_.prototype={constructor:c_,get:function(r){for(var t=this._;!(t in r);)if(!(r=r.parentNode))return;return r[t]},set:function(r,t){return r[this._]=t},remove:function(r){return this._ in r&&delete r[this._]},toString:function(){return this._}};var Ef=1/.7,Jc="\\s*([+-]?\\d+)\\s*",wm="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Wl="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",zE=/^#([0-9a-f]{3})$/,FR=/^#([0-9a-f]{6})$/,BR=new RegExp("^rgb\\("+[Jc,Jc,Jc]+"\\)$"),UR=new RegExp("^rgb\\("+[Wl,Wl,Wl]+"\\)$"),Gu=new RegExp("^rgba\\("+[Jc,Jc,Jc,wm]+"\\)$"),km=new RegExp("^rgba\\("+[Wl,Wl,Wl,wm]+"\\)$"),Mf=new RegExp("^hsl\\("+[wm,Wl,Wl]+"\\)$"),h_=new RegExp("^hsla\\("+[wm,Wl,Wl,wm]+"\\)$"),ip={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Qc(n){var r;return n=(n+"").trim().toLowerCase(),(r=zE.exec(n))?new xa((r=parseInt(r[1],16))>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):(r=FR.exec(n))?WE(parseInt(r[1],16)):(r=BR.exec(n))?new xa(r[1],r[2],r[3],1):(r=UR.exec(n))?new xa(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Gu.exec(n))?GE(r[1],r[2],r[3],r[4]):(r=km.exec(n))?GE(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Mf.exec(n))?i1(r[1],r[2]/100,r[3]/100,1):(r=h_.exec(n))?i1(r[1],r[2]/100,r[3]/100,r[4]):ip.hasOwnProperty(n)?WE(ip[n]):"transparent"===n?new xa(NaN,NaN,NaN,0):null}function WE(n){return new xa(n>>16&255,n>>8&255,255&n,1)}function GE(n,r,t,i){return i<=0&&(n=r=t=NaN),new xa(n,r,t,i)}function m_(n){return n instanceof Yc||(n=Qc(n)),n?new xa((n=n.rgb()).r,n.g,n.b,n.opacity):new xa}function Af(n,r,t,i){return 1===arguments.length?m_(n):new xa(n,r,t,null==i?1:i)}function xa(n,r,t,i){this.r=+n,this.g=+r,this.b=+t,this.opacity=+i}function i1(n,r,t,i){return i<=0?n=r=t=NaN:t<=0||t>=1?n=r=NaN:r<=0&&(n=NaN),new Yu(n,r,t,i)}function o1(n){if(n instanceof Yu)return new Yu(n.h,n.s,n.l,n.opacity);if(n instanceof Yc||(n=Qc(n)),!n)return new Yu;if(n instanceof Yu)return n;var r=(n=n.rgb()).r/255,t=n.g/255,i=n.b/255,o=Math.min(r,t,i),a=Math.max(r,t,i),s=NaN,u=a-o,p=(a+o)/2;return u?(s=r===a?(t-i)/u+6*(t<i):t===a?(i-r)/u+2:(r-t)/u+4,u/=p<.5?a+o:2-a-o,s*=60):u=p>0&&p<1?0:s,new Yu(s,u,p,n.opacity)}function a1(n,r,t,i){return 1===arguments.length?o1(n):new Yu(n,r,t,null==i?1:i)}function Yu(n,r,t,i){this.h=+n,this.s=+r,this.l=+t,this.opacity=+i}function YE(n,r,t){return 255*(n<60?r+(t-r)*n/60:n<180?t:n<240?r+(t-r)*(240-n)/60:r)}Tu(Yc,Qc,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Tu(xa,Af,np(Yc,{brighter:function(r){return r=null==r?Ef:Math.pow(Ef,r),new xa(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new xa(this.r*r,this.g*r,this.b*r,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var r=this.opacity;return(1===(r=isNaN(r)?1:Math.max(0,Math.min(1,r)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===r?")":", "+r+")")}})),Tu(Yu,a1,np(Yc,{brighter:function(r){return r=null==r?Ef:Math.pow(Ef,r),new Yu(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new Yu(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=this.h%360+360*(this.h<0),t=isNaN(r)||isNaN(this.s)?0:this.s,i=this.l,o=i+(i<.5?i:1-i)*t,a=2*i-o;return new xa(YE(r>=240?r-240:r+120,a,o),YE(r,a,o),YE(r<120?r+240:r-120,a,o),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var Kc=Math.PI/180,JE=180/Math.PI,jR=4/29,Em=6/29,zR=3*Em*Em;function QE(n){if(n instanceof Ju)return new Ju(n.l,n.a,n.b,n.opacity);if(n instanceof l){if(isNaN(n.h))return new Ju(n.l,0,0,n.opacity);var r=n.h*Kc;return new Ju(n.l,Math.cos(r)*n.c,Math.sin(r)*n.c,n.opacity)}n instanceof xa||(n=m_(n));var s,u,t=$E(n.r),i=$E(n.g),o=$E(n.b),a=KE((.2225045*t+.7168786*i+.0606169*o)/1);return t===i&&i===o?s=u=a:(s=KE((.4360747*t+.3850649*i+.1430804*o)/.96422),u=KE((.0139322*t+.0971045*i+.7141733*o)/.82521)),new Ju(116*a-16,500*(s-a),200*(a-u),n.opacity)}function s1(n,r,t,i){return 1===arguments.length?QE(n):new Ju(n,r,t,null==i?1:i)}function Ju(n,r,t,i){this.l=+n,this.a=+r,this.b=+t,this.opacity=+i}function KE(n){return n>.008856451679035631?Math.pow(n,1/3):n/zR+jR}function l1(n){return n>Em?n*n*n:zR*(n-jR)}function XE(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function $E(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function Z4(n){if(n instanceof l)return new l(n.h,n.c,n.l,n.opacity);if(n instanceof Ju||(n=QE(n)),0===n.a&&0===n.b)return new l(NaN,0,n.l,n.opacity);var r=Math.atan2(n.b,n.a)*JE;return new l(r<0?r+360:r,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function u1(n,r,t,i){return 1===arguments.length?Z4(n):new l(n,r,t,null==i?1:i)}function l(n,r,t,i){this.h=+n,this.c=+r,this.l=+t,this.opacity=+i}Tu(Ju,s1,np(Yc,{brighter:function(r){return new Ju(this.l+18*(null==r?1:r),this.a,this.b,this.opacity)},darker:function(r){return new Ju(this.l-18*(null==r?1:r),this.a,this.b,this.opacity)},rgb:function(){var r=(this.l+16)/116,t=isNaN(this.a)?r:r+this.a/500,i=isNaN(this.b)?r:r-this.b/200;return new xa(XE(3.1338561*(t=.96422*l1(t))-1.6168667*(r=1*l1(r))-.4906146*(i=.82521*l1(i))),XE(-.9787684*t+1.9161415*r+.033454*i),XE(.0719453*t-.2289914*r+1.4052427*i),this.opacity)}})),Tu(l,u1,np(Yc,{brighter:function(r){return new l(this.h,this.c,this.l+18*(null==r?1:r),this.opacity)},darker:function(r){return new l(this.h,this.c,this.l-18*(null==r?1:r),this.opacity)},rgb:function(){return QE(this).rgb()}}));var c=-.14861,d=1.78277,h=-.29227,_=-.90649,w=1.97294,H=w*_,z=w*d,X=d*h-_*c;function me(n){if(n instanceof Xe)return new Xe(n.h,n.s,n.l,n.opacity);n instanceof xa||(n=m_(n));var t=n.g/255,i=n.b/255,o=(X*i+H*(n.r/255)-z*t)/(X+H-z),a=i-o,s=(w*(t-o)-h*a)/_,u=Math.sqrt(s*s+a*a)/(w*o*(1-o)),p=u?Math.atan2(s,a)*JE-120:NaN;return new Xe(p<0?p+360:p,u,o,n.opacity)}function Ae(n,r,t,i){return 1===arguments.length?me(n):new Xe(n,r,t,null==i?1:i)}function Xe(n,r,t,i){this.h=+n,this.s=+r,this.l=+t,this.opacity=+i}function Qe(n,r,t,i,o){var a=n*n,s=a*n;return((1-3*n+3*a-s)*r+(4-6*a+3*s)*t+(1+3*n+3*a-3*s)*i+s*o)/6}function ht(n){var r=n.length-1;return function(t){var i=t<=0?t=0:t>=1?(t=1,r-1):Math.floor(t*r),o=n[i],a=n[i+1];return Qe((t-i/r)*r,i>0?n[i-1]:2*o-a,o,a,i<r-1?n[i+2]:2*a-o)}}function Dt(n){var r=n.length;return function(t){var i=Math.floor(((t%=1)<0?++t:t)*r);return Qe((t-i/r)*r,n[(i+r-1)%r],n[i%r],n[(i+1)%r],n[(i+2)%r])}}function Yt(n){return function(){return n}}function vn(n,r){return function(t){return n+t*r}}function bn(n,r){var t=r-n;return t?vn(n,t>180||t<-180?t-360*Math.round(t/360):t):Yt(isNaN(n)?r:n)}function cr(n,r){var t=r-n;return t?vn(n,t):Yt(isNaN(n)?r:n)}Tu(Xe,Ae,np(Yc,{brighter:function(r){return r=null==r?Ef:Math.pow(Ef,r),new Xe(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new Xe(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*Kc,t=+this.l,i=isNaN(this.s)?0:this.s*t*(1-t),o=Math.cos(r),a=Math.sin(r);return new xa(255*(t+i*(c*o+d*a)),255*(t+i*(h*o+_*a)),255*(t+i*(w*o)),this.opacity)}}));var Gr=function n(r){var t=function(n){return 1==(n=+n)?cr:function(r,t){return t-r?function(n,r,t){return n=Math.pow(n,t),r=Math.pow(r,t)-n,t=1/t,function(i){return Math.pow(n+i*r,t)}}(r,t,n):Yt(isNaN(r)?t:r)}}(r);function i(o,a){var s=t((o=Af(o)).r,(a=Af(a)).r),u=t(o.g,a.g),p=t(o.b,a.b),m=cr(o.opacity,a.opacity);return function(b){return o.r=s(b),o.g=u(b),o.b=p(b),o.opacity=m(b),o+""}}return i.gamma=n,i}(1);function Ai(n){return function(r){var s,u,t=r.length,i=new Array(t),o=new Array(t),a=new Array(t);for(s=0;s<t;++s)u=Af(r[s]),i[s]=u.r||0,o[s]=u.g||0,a[s]=u.b||0;return i=n(i),o=n(o),a=n(a),u.opacity=1,function(p){return u.r=i(p),u.g=o(p),u.b=a(p),u+""}}}var _o=Ai(ht),ca=Ai(Dt);function da(n,r){var s,t=r?r.length:0,i=n?Math.min(t,n.length):0,o=new Array(i),a=new Array(t);for(s=0;s<i;++s)o[s]=Pf(n[s],r[s]);for(;s<t;++s)a[s]=r[s];return function(u){for(s=0;s<i;++s)a[s]=o[s](u);return a}}function Gl(n,r){var t=new Date;return r-=n=+n,function(i){return t.setTime(n+r*i),t}}function ia(n,r){return r-=n=+n,function(t){return n+r*t}}function Xc(n,r){var o,t={},i={};for(o in(null===n||"object"!=typeof n)&&(n={}),(null===r||"object"!=typeof r)&&(r={}),r)o in n?t[o]=Pf(n[o],r[o]):i[o]=r[o];return function(a){for(o in t)i[o]=t[o](a);return i}}var xu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Yl=new RegExp(xu.source,"g");function Of(n,r){var i,o,a,t=xu.lastIndex=Yl.lastIndex=0,s=-1,u=[],p=[];for(n+="",r+="";(i=xu.exec(n))&&(o=Yl.exec(r));)(a=o.index)>t&&(a=r.slice(t,a),u[s]?u[s]+=a:u[++s]=a),(i=i[0])===(o=o[0])?u[s]?u[s]+=o:u[++s]=o:(u[++s]=null,p.push({i:s,x:ia(i,o)})),t=Yl.lastIndex;return t<r.length&&(a=r.slice(t),u[s]?u[s]+=a:u[++s]=a),u.length<2?p[0]?function(n){return function(r){return n(r)+""}}(p[0].x):function(n){return function(){return n}}(r):(r=p.length,function(m){for(var R,b=0;b<r;++b)u[(R=p[b]).i]=R.x(m);return u.join("")})}function Pf(n,r){var i,t=typeof r;return null==r||"boolean"===t?Yt(r):("number"===t?ia:"string"===t?(i=Qc(r))?(r=i,Gr):Of:r instanceof Qc?Gr:r instanceof Date?Gl:Array.isArray(r)?da:"function"!=typeof r.valueOf&&"function"!=typeof r.toString||isNaN(r)?Xc:ia)(n,r)}function eM(n,r){return r-=n=+n,function(t){return Math.round(n+r*t)}}var If,d1,rM,g_,tM=180/Math.PI,c1={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function nM(n,r,t,i,o,a){var s,u,p;return(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s),(p=n*t+r*i)&&(t-=n*p,i-=r*p),(u=Math.sqrt(t*t+i*i))&&(t/=u,i/=u,p/=u),n*i<r*t&&(n=-n,r=-r,p=-p,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(r,n)*tM,skewX:Math.atan(p)*tM,scaleX:s,scaleY:u}}function oM(n,r,t,i){function o(m){return m.length?m.pop()+" ":""}return function(m,b){var R=[],F=[];return m=n(m),b=n(b),function(m,b,R,F,G,Y){if(m!==R||b!==F){var ee=G.push("translate(",null,r,null,t);Y.push({i:ee-4,x:ia(m,R)},{i:ee-2,x:ia(b,F)})}else(R||F)&&G.push("translate("+R+r+F+t)}(m.translateX,m.translateY,b.translateX,b.translateY,R,F),function(m,b,R,F){m!==b?(m-b>180?b+=360:b-m>180&&(m+=360),F.push({i:R.push(o(R)+"rotate(",null,i)-2,x:ia(m,b)})):b&&R.push(o(R)+"rotate("+b+i)}(m.rotate,b.rotate,R,F),function(m,b,R,F){m!==b?F.push({i:R.push(o(R)+"skewX(",null,i)-2,x:ia(m,b)}):b&&R.push(o(R)+"skewX("+b+i)}(m.skewX,b.skewX,R,F),function(m,b,R,F,G,Y){if(m!==R||b!==F){var ee=G.push(o(G)+"scale(",null,",",null,")");Y.push({i:ee-4,x:ia(m,R)},{i:ee-2,x:ia(b,F)})}else(1!==R||1!==F)&&G.push(o(G)+"scale("+R+","+F+")")}(m.scaleX,m.scaleY,b.scaleX,b.scaleY,R,F),m=b=null,function(G){for(var pe,Y=-1,ee=F.length;++Y<ee;)R[(pe=F[Y]).i]=pe.x(G);return R.join("")}}}var L4=oM(function(n){return"none"===n?c1:(If||(If=document.createElement("DIV"),d1=document.documentElement,rM=document.defaultView),If.style.transform=n,n=rM.getComputedStyle(d1.appendChild(If),null).getPropertyValue("transform"),d1.removeChild(If),nM(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))},"px, ","px)","deg)"),F4=oM(function(n){return null!=n&&(g_||(g_=document.createElementNS("http://www.w3.org/2000/svg","g")),g_.setAttribute("transform",n),n=g_.transform.baseVal.consolidate())?nM((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):c1},", ",")",")"),p1=Math.SQRT2;function U4(n){return((n=Math.exp(n))+1/n)/2}function H4(n,r){var R,F,t=n[0],i=n[1],o=n[2],u=r[2],p=r[0]-t,m=r[1]-i,b=p*p+m*m;if(b<1e-12)F=Math.log(u/o)/p1,R=function(tt){return[t+tt*p,i+tt*m,o*Math.exp(p1*tt*F)]};else{var G=Math.sqrt(b),Y=(u*u-o*o+4*b)/(2*o*2*G),ee=(u*u-o*o-4*b)/(2*u*2*G),pe=Math.log(Math.sqrt(Y*Y+1)-Y),Ee=Math.log(Math.sqrt(ee*ee+1)-ee);F=(Ee-pe)/p1,R=function(tt){var it=tt*F,mt=U4(pe),Ke=o/(2*G)*(mt*function(n){return((n=Math.exp(2*n))-1)/(n+1)}(p1*it+pe)-function(n){return((n=Math.exp(n))-1/n)/2}(pe));return[t+Ke*p,i+Ke*m,o*mt/U4(p1*it+pe)]}}return R.duration=1e3*F,R}function V4(n){return function(r,t){var i=n((r=a1(r)).h,(t=a1(t)).h),o=cr(r.s,t.s),a=cr(r.l,t.l),s=cr(r.opacity,t.opacity);return function(u){return r.h=i(u),r.s=o(u),r.l=a(u),r.opacity=s(u),r+""}}}var YW=V4(bn),JW=V4(cr);function QW(n,r){var t=cr((n=s1(n)).l,(r=s1(r)).l),i=cr(n.a,r.a),o=cr(n.b,r.b),a=cr(n.opacity,r.opacity);return function(s){return n.l=t(s),n.a=i(s),n.b=o(s),n.opacity=a(s),n+""}}function q4(n){return function(r,t){var i=n((r=u1(r)).h,(t=u1(t)).h),o=cr(r.c,t.c),a=cr(r.l,t.l),s=cr(r.opacity,t.opacity);return function(u){return r.h=i(u),r.c=o(u),r.l=a(u),r.opacity=s(u),r+""}}}var KW=q4(bn),XW=q4(cr);function j4(n){return function r(t){function i(o,a){var s=n((o=Ae(o)).h,(a=Ae(a)).h),u=cr(o.s,a.s),p=cr(o.l,a.l),m=cr(o.opacity,a.opacity);return function(b){return o.h=s(b),o.s=u(b),o.l=p(Math.pow(b,t)),o.opacity=m(b),o+""}}return t=+t,i.gamma=r,i}(1)}var $W=j4(bn),aM=j4(cr);function eG(n,r){for(var t=new Array(r),i=0;i<r;++i)t[i]=n(i/(r-1));return t}var sM,m1,__=0,f1=0,h1=0,lM=0,Mm=0,uM=0,v1="object"==typeof performance&&performance.now?performance:Date,W4="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};function y_(){return Mm||(W4(tG),Mm=v1.now()+uM)}function tG(){Mm=0}function g1(){this._call=this._time=this._next=null}function cM(n,r,t){var i=new g1;return i.restart(n,r,t),i}function G4(){y_(),++__;for(var r,n=sM;n;)(r=Mm-n._time)>=0&&n._call.call(null,r),n=n._next;--__}function Y4(){Mm=(lM=v1.now())+uM,__=f1=0;try{G4()}finally{__=0,function(){for(var n,t,r=sM,i=1/0;r;)r._call?(i>r._time&&(i=r._time),n=r,r=r._next):(t=r._next,r._next=null,r=n?n._next=t:sM=t);m1=n,JR(i)}(),Mm=0}}function nG(){var n=v1.now(),r=n-lM;r>1e3&&(uM-=r,lM=n)}function JR(n){__||(f1&&(f1=clearTimeout(f1)),n-Mm>24?(n<1/0&&(f1=setTimeout(Y4,n-v1.now()-uM)),h1&&(h1=clearInterval(h1))):(h1||(lM=v1.now(),h1=setInterval(nG,1e3)),__=1,W4(Y4)))}function QR(n,r,t){var i=new g1;return i.restart(function(o){i.stop(),n(o+r)},r=null==r?0:+r,t),i}g1.prototype=cM.prototype={constructor:g1,restart:function(r,t,i){if("function"!=typeof r)throw new TypeError("callback is not a function");i=(null==i?y_():+i)+(null==t?0:+t),!this._next&&m1!==this&&(m1?m1._next=this:sM=this,m1=this),this._call=r,this._time=i,JR()},stop:function(){this._call&&(this._call=null,this._time=1/0,JR())}};var iG=$d("start","end","interrupt"),oG=[];function fM(n,r,t,i,o,a){var s=n.__transition;if(s){if(t in s)return}else n.__transition={};!function(n,r,t){var o,i=n.__transition;function s(m){var b,R,F,G;if(1!==t.state)return p();for(b in i)if((G=i[b]).name===t.name){if(3===G.state)return QR(s);4===G.state?(G.state=6,G.timer.stop(),G.on.call("interrupt",n,n.__data__,G.index,G.group),delete i[b]):+b<r&&(G.state=6,G.timer.stop(),delete i[b])}if(QR(function(){3===t.state&&(t.state=4,t.timer.restart(u,t.delay,t.time),u(m))}),t.state=2,t.on.call("start",n,n.__data__,t.index,t.group),2===t.state){for(t.state=3,o=new Array(F=t.tween.length),b=0,R=-1;b<F;++b)(G=t.tween[b].value.call(n,n.__data__,t.index,t.group))&&(o[++R]=G);o.length=R+1}}function u(m){for(var b=m<t.duration?t.ease.call(null,m/t.duration):(t.timer.restart(p),t.state=5,1),R=-1,F=o.length;++R<F;)o[R].call(null,b);5===t.state&&(t.on.call("end",n,n.__data__,t.index,t.group),p())}function p(){for(var m in t.state=6,t.timer.stop(),delete i[r],i)return;delete n.__transition}i[r]=t,t.timer=cM(function(m){t.state=1,t.timer.restart(s,t.delay,t.time),t.delay<=m&&s(m-t.delay)},0,t.time)}(n,t,{name:r,index:i,group:o,on:iG,tween:oG,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function eN(n,r){var t=Qu(n,r);if(t.state>0)throw new Error("too late; already scheduled");return t}function Am(n,r){var t=Qu(n,r);if(t.state>2)throw new Error("too late; already started");return t}function Qu(n,r){var t=n.__transition;if(!t||!(t=t[r]))throw new Error("transition not found");return t}function Dm(n,r){var i,o,s,t=n.__transition,a=!0;if(t){for(s in r=null==r?null:r+"",t)(i=t[s]).name===r?(o=i.state>2&&i.state<5,i.state=6,i.timer.stop(),o&&i.on.call("interrupt",n,n.__data__,i.index,i.group),delete t[s]):a=!1;a&&delete n.__transition}}function lG(n,r){var t,i;return function(){var o=Am(this,n),a=o.tween;if(a!==t)for(var s=0,u=(i=t=a).length;s<u;++s)if(i[s].name===r){(i=i.slice()).splice(s,1);break}o.tween=i}}function uG(n,r,t){var i,o;if("function"!=typeof t)throw new Error;return function(){var a=Am(this,n),s=a.tween;if(s!==i){o=(i=s).slice();for(var u={name:r,value:t},p=0,m=o.length;p<m;++p)if(o[p].name===r){o[p]=u;break}p===m&&o.push(u)}a.tween=o}}function tN(n,r,t){var i=n._id;return n.each(function(){var o=Am(this,i);(o.value||(o.value={}))[r]=t.apply(this,arguments)}),function(o){return Qu(o,i).value[r]}}function K4(n,r){var t;return("number"==typeof r?ia:r instanceof Qc?Gr:(t=Qc(r))?(r=t,Gr):Of)(n,r)}function dG(n){return function(){this.removeAttribute(n)}}function pG(n){return function(){this.removeAttributeNS(n.space,n.local)}}function fG(n,r,t){var i,o;return function(){var a=this.getAttribute(n);return a===t?null:a===i?o:o=r(i=a,t)}}function hG(n,r,t){var i,o;return function(){var a=this.getAttributeNS(n.space,n.local);return a===t?null:a===i?o:o=r(i=a,t)}}function mG(n,r,t){var i,o,a;return function(){var s,u=t(this);return null==u?void this.removeAttribute(n):(s=this.getAttribute(n))===u?null:s===i&&u===o?a:a=r(i=s,o=u)}}function vG(n,r,t){var i,o,a;return function(){var s,u=t(this);return null==u?void this.removeAttributeNS(n.space,n.local):(s=this.getAttributeNS(n.space,n.local))===u?null:s===i&&u===o?a:a=r(i=s,o=u)}}function _G(n,r){function t(){var i=this,o=r.apply(i,arguments);return o&&function(a){i.setAttributeNS(n.space,n.local,o(a))}}return t._value=r,t}function yG(n,r){function t(){var i=this,o=r.apply(i,arguments);return o&&function(a){i.setAttribute(n,o(a))}}return t._value=r,t}function CG(n,r){return function(){eN(this,n).delay=+r.apply(this,arguments)}}function SG(n,r){return r=+r,function(){eN(this,n).delay=r}}function xG(n,r){return function(){Am(this,n).duration=+r.apply(this,arguments)}}function wG(n,r){return r=+r,function(){Am(this,n).duration=r}}function EG(n,r){if("function"!=typeof r)throw new Error;return function(){Am(this,n).ease=r}}function PG(n,r,t){var i,o,a=function(n){return(n+"").trim().split(/^|\s+/).every(function(r){var t=r.indexOf(".");return t>=0&&(r=r.slice(0,t)),!r||"start"===r})}(r)?eN:Am;return function(){var s=a(this,n),u=s.on;u!==i&&(o=(i=u).copy()).on(r,t),s.on=o}}var FG=qs.prototype.constructor;function zG(n,r,t){function i(){var o=this,a=r.apply(o,arguments);return a&&function(s){o.style.setProperty(n,a(s),t)}}return i._value=r,i}var KG=0;function ed(n,r,t,i){this._groups=n,this._parents=r,this._name=t,this._id=i}function hM(n){return qs().transition(n)}function X4(){return++KG}var b_=qs.prototype;function XG(n){return n*n*n}function $G(n){return--n*n*n+1}function nN(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}ed.prototype=hM.prototype={constructor:ed,select:function(n){var r=this._name,t=this._id;"function"!=typeof n&&(n=zC(n));for(var i=this._groups,o=i.length,a=new Array(o),s=0;s<o;++s)for(var b,R,u=i[s],p=u.length,m=a[s]=new Array(p),F=0;F<p;++F)(b=u[F])&&(R=n.call(b,b.__data__,F,u))&&("__data__"in b&&(R.__data__=b.__data__),m[F]=R,fM(m[F],r,t,F,m,Qu(b,t)));return new ed(a,this._parents,r,t)},selectAll:function(n){var r=this._name,t=this._id;"function"!=typeof n&&(n=DE(n));for(var i=this._groups,o=i.length,a=[],s=[],u=0;u<o;++u)for(var b,p=i[u],m=p.length,R=0;R<m;++R)if(b=p[R]){for(var G,F=n.call(b,b.__data__,R,p),Y=Qu(b,t),ee=0,pe=F.length;ee<pe;++ee)(G=F[ee])&&fM(G,r,t,ee,F,Y);a.push(F),s.push(b)}return new ed(a,s,r,t)},filter:function(n){"function"!=typeof n&&(n=PE(n));for(var r=this._groups,t=r.length,i=new Array(t),o=0;o<t;++o)for(var p,a=r[o],s=a.length,u=i[o]=[],m=0;m<s;++m)(p=a[m])&&n.call(p,p.__data__,m,a)&&u.push(p);return new ed(i,this._parents,this._name,this._id)},merge:function(n){if(n._id!==this._id)throw new Error;for(var r=this._groups,t=n._groups,i=r.length,a=Math.min(i,t.length),s=new Array(i),u=0;u<a;++u)for(var F,p=r[u],m=t[u],b=p.length,R=s[u]=new Array(b),G=0;G<b;++G)(F=p[G]||m[G])&&(R[G]=F);for(;u<i;++u)s[u]=r[u];return new ed(s,this._parents,this._name,this._id)},selection:function(){return new FG(this._groups,this._parents)},transition:function(){for(var n=this._name,r=this._id,t=X4(),i=this._groups,o=i.length,a=0;a<o;++a)for(var p,s=i[a],u=s.length,m=0;m<u;++m)if(p=s[m]){var b=Qu(p,r);fM(p,n,t,m,s,{time:b.time+b.delay+b.duration,delay:0,duration:b.duration,ease:b.ease})}return new ed(i,this._parents,n,t)},call:b_.call,nodes:b_.nodes,node:b_.node,size:b_.size,empty:b_.empty,each:b_.each,on:function(n,r){var t=this._id;return arguments.length<2?Qu(this.node(),t).on.on(n):this.each(PG(t,n,r))},attr:function(n,r){var t=gm(n),i="transform"===t?F4:K4;return this.attrTween(n,"function"==typeof r?(t.local?vG:mG)(t,i,tN(this,"attr."+n,r)):null==r?(t.local?pG:dG)(t):(t.local?hG:fG)(t,i,r+""))},attrTween:function(n,r){var t="attr."+n;if(arguments.length<2)return(t=this.tween(t))&&t._value;if(null==r)return this.tween(t,null);if("function"!=typeof r)throw new Error;var i=gm(n);return this.tween(t,(i.local?_G:yG)(i,r))},style:function(n,r,t){var i="transform"==(n+="")?L4:K4;return null==r?this.styleTween(n,function(n,r){var t,i,o;return function(){var a=tp(this,n),s=(this.style.removeProperty(n),tp(this,n));return a===s?null:a===t&&s===i?o:o=r(t=a,i=s)}}(n,i)).on("end.style."+n,function(n){return function(){this.style.removeProperty(n)}}(n)):this.styleTween(n,"function"==typeof r?function(n,r,t){var i,o,a;return function(){var s=tp(this,n),u=t(this);return null==u&&(this.style.removeProperty(n),u=tp(this,n)),s===u?null:s===i&&u===o?a:a=r(i=s,o=u)}}(n,i,tN(this,"style."+n,r)):function(n,r,t){var i,o;return function(){var a=tp(this,n);return a===t?null:a===i?o:o=r(i=a,t)}}(n,i,r+""),t)},styleTween:function(n,r,t){var i="style."+(n+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==r)return this.tween(i,null);if("function"!=typeof r)throw new Error;return this.tween(i,zG(n,r,null==t?"":t))},text:function(n){return this.tween("text","function"==typeof n?function(n){return function(){var r=n(this);this.textContent=null==r?"":r}}(tN(this,"text",n)):function(n){return function(){this.textContent=n}}(null==n?"":n+""))},remove:function(){return this.on("end.remove",(n=this._id,function(){var r=this.parentNode;for(var t in this.__transition)if(+t!==n)return;r&&r.removeChild(this)}));var n},tween:function(n,r){var t=this._id;if(n+="",arguments.length<2){for(var s,i=Qu(this.node(),t).tween,o=0,a=i.length;o<a;++o)if((s=i[o]).name===n)return s.value;return null}return this.each((null==r?lG:uG)(t,n,r))},delay:function(n){var r=this._id;return arguments.length?this.each(("function"==typeof n?CG:SG)(r,n)):Qu(this.node(),r).delay},duration:function(n){var r=this._id;return arguments.length?this.each(("function"==typeof n?xG:wG)(r,n)):Qu(this.node(),r).duration},ease:function(n){var r=this._id;return arguments.length?this.each(EG(r,n)):Qu(this.node(),r).ease}};var rN={time:null,delay:0,duration:250,ease:nN};function eY(n,r){for(var t;!(t=n.__transition)||!(t=t[r]);)if(!(n=n.parentNode))return rN.time=y_(),rN;return t}qs.prototype.interrupt=function(n){return this.each(function(){Dm(this,n)})},qs.prototype.transition=function(n){var r,t;n instanceof ed?(r=n._id,n=n._name):(r=X4(),(t=rN).time=y_(),n=null==n?null:n+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var p,s=i[a],u=s.length,m=0;m<u;++m)(p=s[m])&&fM(p,n,r,m,s,t||eY(p,r));return new ed(i,this._parents,n,r)};var nY=[null];function rY(n,r){var i,o,t=n.__transition;if(t)for(o in r=null==r?null:r+"",t)if((i=t[o]).state>1&&i.name===r)return new ed([[n]],nY,r,+o);return null}function $4(n){return function(){return n}}function iY(n,r,t){this.target=n,this.type=r,this.selection=t}function e8(){Mn.stopImmediatePropagation()}function mM(){Mn.preventDefault(),Mn.stopImmediatePropagation()}var t8={name:"drag"},iN={name:"space"},C_={name:"handle"},S_={name:"center"},vM={name:"x",handles:["e","w"].map(_1),input:function(r,t){return r&&[[r[0],t[0][1]],[r[1],t[1][1]]]},output:function(r){return r&&[r[0][0],r[1][0]]}},gM={name:"y",handles:["n","s"].map(_1),input:function(r,t){return r&&[[t[0][0],r[0]],[t[1][0],r[1]]]},output:function(r){return r&&[r[0][1],r[1][1]]}},oY={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(_1),input:function(r){return r},output:function(r){return r}},op={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},n8={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},r8={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},aY={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},sY={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function _1(n){return{type:n}}function lY(){return!Mn.button}function uY(){var n=this.ownerSVGElement||this;return[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]}function oN(n){for(;!n.__brush;)if(!(n=n.parentNode))return;return n.__brush}function aN(n){return n[0][0]===n[1][0]||n[0][1]===n[1][1]}function cY(n){var r=n.__brush;return r?r.dim.output(r.selection):null}function dY(){return sN(vM)}function pY(){return sN(gM)}function fY(){return sN(oY)}function sN(n){var a,r=uY,t=lY,i=$d(s,"start","brush","end"),o=6;function s(F){var G=F.property("__brush",R).selectAll(".overlay").data([_1("overlay")]);G.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",op.overlay).merge(G).each(function(){var ee=oN(this).extent;Xr(this).attr("x",ee[0][0]).attr("y",ee[0][1]).attr("width",ee[1][0]-ee[0][0]).attr("height",ee[1][1]-ee[0][1])}),F.selectAll(".selection").data([_1("selection")]).enter().append("rect").attr("class","selection").attr("cursor",op.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var Y=F.selectAll(".handle").data(n.handles,function(ee){return ee.type});Y.exit().remove(),Y.enter().append("rect").attr("class",function(ee){return"handle handle--"+ee.type}).attr("cursor",function(ee){return op[ee.type]}),F.each(u).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",b)}function u(){var F=Xr(this),G=oN(this).selection;G?(F.selectAll(".selection").style("display",null).attr("x",G[0][0]).attr("y",G[0][1]).attr("width",G[1][0]-G[0][0]).attr("height",G[1][1]-G[0][1]),F.selectAll(".handle").style("display",null).attr("x",function(Y){return"e"===Y.type[Y.type.length-1]?G[1][0]-o/2:G[0][0]-o/2}).attr("y",function(Y){return"s"===Y.type[0]?G[1][1]-o/2:G[0][1]-o/2}).attr("width",function(Y){return"n"===Y.type||"s"===Y.type?G[1][0]-G[0][0]+o:o}).attr("height",function(Y){return"e"===Y.type||"w"===Y.type?G[1][1]-G[0][1]+o:o})):F.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function p(F,G){return F.__brush.emitter||new m(F,G)}function m(F,G){this.that=F,this.args=G,this.state=F.__brush,this.active=0}function b(){if(Mn.touches){if(Mn.changedTouches.length<Mn.touches.length)return mM()}else if(a)return;if(t.apply(this,arguments)){var mt,Ke,Rt,kt,Jt,st,gn,pn,kn,Ln,nr,Wr,ar,F=this,G=Mn.target.__data__.type,Y="selection"===(Mn.metaKey?G="overlay":G)?t8:Mn.altKey?S_:C_,ee=n===gM?null:aY[G],pe=n===vM?null:sY[G],Ee=oN(F),lt=Ee.extent,tt=Ee.selection,it=lt[0][0],et=lt[0][1],fn=lt[1][0],Ot=lt[1][1],gr=ee&&pe&&Mn.shiftKey,Qr=ul(F),si=Qr,_r=p(F,arguments).beforestart();"overlay"===G?Ee.selection=tt=[[mt=n===gM?it:Qr[0],Rt=n===vM?et:Qr[1]],[Jt=n===gM?fn:mt,gn=n===vM?Ot:Rt]]:(mt=tt[0][0],Rt=tt[0][1],Jt=tt[1][0],gn=tt[1][1]),Ke=mt,kt=Rt,st=Jt,pn=gn;var Li=Xr(F).attr("pointer-events","none"),Uo=Li.selectAll(".overlay").attr("cursor",op[G]);if(Mn.touches)Li.on("touchmove.brush",fr,!0).on("touchend.brush touchcancel.brush",qn,!0);else{var vr=Xr(Mn.view).on("keydown.brush",Ko,!0).on("keyup.brush",wi,!0).on("mousemove.brush",fr,!0).on("mouseup.brush",qn,!0);f_(Mn.view)}e8(),Dm(F),u.call(F),_r.start()}function fr(){var Oi=ul(F);gr&&!Wr&&!ar&&(Math.abs(Oi[0]-si[0])>Math.abs(Oi[1]-si[1])?ar=!0:Wr=!0),si=Oi,nr=!0,mM(),sr()}function sr(){var Oi;switch(kn=si[0]-Qr[0],Ln=si[1]-Qr[1],Y){case iN:case t8:ee&&(kn=Math.max(it-mt,Math.min(fn-Jt,kn)),Ke=mt+kn,st=Jt+kn),pe&&(Ln=Math.max(et-Rt,Math.min(Ot-gn,Ln)),kt=Rt+Ln,pn=gn+Ln);break;case C_:ee<0?(kn=Math.max(it-mt,Math.min(fn-mt,kn)),Ke=mt+kn,st=Jt):ee>0&&(kn=Math.max(it-Jt,Math.min(fn-Jt,kn)),Ke=mt,st=Jt+kn),pe<0?(Ln=Math.max(et-Rt,Math.min(Ot-Rt,Ln)),kt=Rt+Ln,pn=gn):pe>0&&(Ln=Math.max(et-gn,Math.min(Ot-gn,Ln)),kt=Rt,pn=gn+Ln);break;case S_:ee&&(Ke=Math.max(it,Math.min(fn,mt-kn*ee)),st=Math.max(it,Math.min(fn,Jt+kn*ee))),pe&&(kt=Math.max(et,Math.min(Ot,Rt-Ln*pe)),pn=Math.max(et,Math.min(Ot,gn+Ln*pe)))}st<Ke&&(ee*=-1,Oi=mt,mt=Jt,Jt=Oi,Oi=Ke,Ke=st,st=Oi,G in n8&&Uo.attr("cursor",op[G=n8[G]])),pn<kt&&(pe*=-1,Oi=Rt,Rt=gn,gn=Oi,Oi=kt,kt=pn,pn=Oi,G in r8&&Uo.attr("cursor",op[G=r8[G]])),Ee.selection&&(tt=Ee.selection),Wr&&(Ke=tt[0][0],st=tt[1][0]),ar&&(kt=tt[0][1],pn=tt[1][1]),(tt[0][0]!==Ke||tt[0][1]!==kt||tt[1][0]!==st||tt[1][1]!==pn)&&(Ee.selection=[[Ke,kt],[st,pn]],u.call(F),_r.brush())}function qn(){if(e8(),Mn.touches){if(Mn.touches.length)return;a&&clearTimeout(a),a=setTimeout(function(){a=null},500),Li.on("touchmove.brush touchend.brush touchcancel.brush",null)}else zl(Mn.view,nr),vr.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);Li.attr("pointer-events","all"),Uo.attr("cursor",op.overlay),Ee.selection&&(tt=Ee.selection),aN(tt)&&(Ee.selection=null,u.call(F)),_r.end()}function Ko(){switch(Mn.keyCode){case 16:gr=ee&&pe;break;case 18:Y===C_&&(ee&&(Jt=st-kn*ee,mt=Ke+kn*ee),pe&&(gn=pn-Ln*pe,Rt=kt+Ln*pe),Y=S_,sr());break;case 32:(Y===C_||Y===S_)&&(ee<0?Jt=st-kn:ee>0&&(mt=Ke-kn),pe<0?gn=pn-Ln:pe>0&&(Rt=kt-Ln),Y=iN,Uo.attr("cursor",op.selection),sr());break;default:return}mM()}function wi(){switch(Mn.keyCode){case 16:gr&&(Wr=ar=gr=!1,sr());break;case 18:Y===S_&&(ee<0?Jt=st:ee>0&&(mt=Ke),pe<0?gn=pn:pe>0&&(Rt=kt),Y=C_,sr());break;case 32:Y===iN&&(Mn.altKey?(ee&&(Jt=st-kn*ee,mt=Ke+kn*ee),pe&&(gn=pn-Ln*pe,Rt=kt+Ln*pe),Y=S_):(ee<0?Jt=st:ee>0&&(mt=Ke),pe<0?gn=pn:pe>0&&(Rt=kt),Y=C_),Uo.attr("cursor",op[G]),sr());break;default:return}mM()}}function R(){var F=this.__brush||{selection:null};return F.extent=r.apply(this,arguments),F.dim=n,F}return s.move=function(F,G){F.selection?F.on("start.brush",function(){p(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){p(this,arguments).end()}).tween("brush",function(){var Y=this,ee=Y.__brush,pe=p(Y,arguments),Ee=ee.selection,lt=n.input("function"==typeof G?G.apply(this,arguments):G,ee.extent),tt=Pf(Ee,lt);function it(mt){ee.selection=1===mt&&aN(lt)?null:tt(mt),u.call(Y),pe.brush()}return Ee&&lt?it:it(1)}):F.each(function(){var Y=this,ee=arguments,pe=Y.__brush,Ee=n.input("function"==typeof G?G.apply(Y,ee):G,pe.extent),lt=p(Y,ee).beforestart();Dm(Y),pe.selection=null==Ee||aN(Ee)?null:Ee,u.call(Y),lt.start().brush().end()})},m.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(G){Sm(new iY(s,G,n.output(this.state.selection)),i.apply,i,[G,this.that,this.args])}},s.extent=function(F){return arguments.length?(r="function"==typeof F?F:$4([[+F[0][0],+F[0][1]],[+F[1][0],+F[1][1]]]),s):r},s.filter=function(F){return arguments.length?(t="function"==typeof F?F:$4(!!F),s):t},s.handleSize=function(F){return arguments.length?(o=+F,s):o},s.on=function(){var F=i.on.apply(i,arguments);return F===i?s:F},s}var i8=Math.cos,o8=Math.sin,a8=Math.PI,_M=a8/2,s8=2*a8,l8=Math.max;function hY(n){return function(r,t){return n(r.source.value+r.target.value,t.source.value+t.target.value)}}function mY(){var n=0,r=null,t=null,i=null;function o(a){var G,Y,ee,pe,Ee,lt,s=a.length,u=[],p=Vs(s),m=[],b=[],R=b.groups=new Array(s),F=new Array(s*s);for(G=0,Ee=-1;++Ee<s;){for(Y=0,lt=-1;++lt<s;)Y+=a[Ee][lt];u.push(Y),m.push(Vs(s)),G+=Y}for(r&&p.sort(function(fn,Jt){return r(u[fn],u[Jt])}),t&&m.forEach(function(fn,Jt){fn.sort(function(st,Ot){return t(a[Jt][st],a[Jt][Ot])})}),pe=(G=l8(0,s8-n*s)/G)?n:s8/s,Y=0,Ee=-1;++Ee<s;){for(ee=Y,lt=-1;++lt<s;){var tt=p[Ee],it=m[tt][lt],mt=a[tt][it],Ke=Y,et=Y+=mt*G;F[it*s+tt]={index:tt,subindex:it,startAngle:Ke,endAngle:et,value:mt}}R[tt]={index:tt,startAngle:ee,endAngle:Y,value:u[tt]},Y+=pe}for(Ee=-1;++Ee<s;)for(lt=Ee-1;++lt<s;){var Rt=F[lt*s+Ee],kt=F[Ee*s+lt];(Rt.value||kt.value)&&b.push(Rt.value<kt.value?{source:kt,target:Rt}:{source:Rt,target:kt})}return i?b.sort(i):b}return o.padAngle=function(a){return arguments.length?(n=l8(0,a),o):n},o.sortGroups=function(a){return arguments.length?(r=a,o):r},o.sortSubgroups=function(a){return arguments.length?(t=a,o):t},o.sortChords=function(a){return arguments.length?(null==a?i=null:(i=hY(a))._=a,o):i&&i._},o}var vY=Array.prototype.slice;function lN(n){return function(){return n}}var uN=Math.PI,cN=2*uN,Om=1e-6,gY=cN-Om;function dN(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function u8(){return new dN}dN.prototype=u8.prototype={constructor:dN,moveTo:function(r,t){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(r,t){this._+="L"+(this._x1=+r)+","+(this._y1=+t)},quadraticCurveTo:function(r,t,i,o){this._+="Q"+ +r+","+ +t+","+(this._x1=+i)+","+(this._y1=+o)},bezierCurveTo:function(r,t,i,o,a,s){this._+="C"+ +r+","+ +t+","+ +i+","+ +o+","+(this._x1=+a)+","+(this._y1=+s)},arcTo:function(r,t,i,o,a){var s=this._x1,u=this._y1,p=(i=+i)-(r=+r),m=(o=+o)-(t=+t),b=s-r,R=u-t,F=b*b+R*R;if((a=+a)<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=r)+","+(this._y1=t);else if(F>Om)if(Math.abs(R*p-m*b)>Om&&a){var G=i-s,Y=o-u,ee=p*p+m*m,pe=G*G+Y*Y,Ee=Math.sqrt(ee),lt=Math.sqrt(F),tt=a*Math.tan((uN-Math.acos((ee+F-pe)/(2*Ee*lt)))/2),it=tt/lt,mt=tt/Ee;Math.abs(it-1)>Om&&(this._+="L"+(r+it*b)+","+(t+it*R)),this._+="A"+a+","+a+",0,0,"+ +(R*G>b*Y)+","+(this._x1=r+mt*p)+","+(this._y1=t+mt*m)}else this._+="L"+(this._x1=r)+","+(this._y1=t)},arc:function(r,t,i,o,a,s){r=+r,t=+t,s=!!s;var u=(i=+i)*Math.cos(o),p=i*Math.sin(o),m=r+u,b=t+p,R=1^s,F=s?o-a:a-o;if(i<0)throw new Error("negative radius: "+i);null===this._x1?this._+="M"+m+","+b:(Math.abs(this._x1-m)>Om||Math.abs(this._y1-b)>Om)&&(this._+="L"+m+","+b),i&&(F<0&&(F=F%cN+cN),F>gY?this._+="A"+i+","+i+",0,1,"+R+","+(r-u)+","+(t-p)+"A"+i+","+i+",0,1,"+R+","+(this._x1=m)+","+(this._y1=b):F>Om&&(this._+="A"+i+","+i+",0,"+ +(F>=uN)+","+R+","+(this._x1=r+i*Math.cos(a))+","+(this._y1=t+i*Math.sin(a))))},rect:function(r,t,i,o){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+t)+"h"+ +i+"v"+ +o+"h"+-i+"Z"},toString:function(){return this._}};var Ku=u8;function _Y(n){return n.source}function yY(n){return n.target}function bY(n){return n.radius}function CY(n){return n.startAngle}function SY(n){return n.endAngle}function TY(){var n=_Y,r=yY,t=bY,i=CY,o=SY,a=null;function s(){var u,p=vY.call(arguments),m=n.apply(this,p),b=r.apply(this,p),R=+t.apply(this,(p[0]=m,p)),F=i.apply(this,p)-_M,G=o.apply(this,p)-_M,Y=R*i8(F),ee=R*o8(F),pe=+t.apply(this,(p[0]=b,p)),Ee=i.apply(this,p)-_M,lt=o.apply(this,p)-_M;if(a||(a=u=Ku()),a.moveTo(Y,ee),a.arc(0,0,R,F,G),(F!==Ee||G!==lt)&&(a.quadraticCurveTo(0,0,pe*i8(Ee),pe*o8(Ee)),a.arc(0,0,pe,Ee,lt)),a.quadraticCurveTo(0,0,Y,ee),a.closePath(),u)return a=null,u+""||null}return s.radius=function(u){return arguments.length?(t="function"==typeof u?u:lN(+u),s):t},s.startAngle=function(u){return arguments.length?(i="function"==typeof u?u:lN(+u),s):i},s.endAngle=function(u){return arguments.length?(o="function"==typeof u?u:lN(+u),s):o},s.source=function(u){return arguments.length?(n=u,s):n},s.target=function(u){return arguments.length?(r=u,s):r},s.context=function(u){return arguments.length?(a=null==u?null:u,s):a},s}var wu="$";function yM(){}function c8(n,r){var t=new yM;if(n instanceof yM)n.each(function(u,p){t.set(p,u)});else if(Array.isArray(n)){var a,i=-1,o=n.length;if(null==r)for(;++i<o;)t.set(i,n[i]);else for(;++i<o;)t.set(r(a=n[i],i,n),a)}else if(n)for(var s in n)t.set(s,n[s]);return t}yM.prototype=c8.prototype={constructor:yM,has:function(r){return wu+r in this},get:function(r){return this[wu+r]},set:function(r,t){return this[wu+r]=t,this},remove:function(r){var t=wu+r;return t in this&&delete this[t]},clear:function(){for(var r in this)r[0]===wu&&delete this[r]},keys:function(){var r=[];for(var t in this)t[0]===wu&&r.push(t.slice(1));return r},values:function(){var r=[];for(var t in this)t[0]===wu&&r.push(this[t]);return r},entries:function(){var r=[];for(var t in this)t[0]===wu&&r.push({key:t.slice(1),value:this[t]});return r},size:function(){var r=0;for(var t in this)t[0]===wu&&++r;return r},empty:function(){for(var r in this)if(r[0]===wu)return!1;return!0},each:function(r){for(var t in this)t[0]===wu&&r(this[t],t.slice(1),this)}};var Rf=c8;function xY(){var t,i,o,n=[],r=[];function a(u,p,m,b){if(p>=n.length)return null!=t&&u.sort(t),null!=i?i(u):u;for(var Y,ee,Ee,R=-1,F=u.length,G=n[p++],pe=Rf(),lt=m();++R<F;)(Ee=pe.get(Y=G(ee=u[R])+""))?Ee.push(ee):pe.set(Y,[ee]);return pe.each(function(tt,it){b(lt,it,a(tt,p,m,b))}),lt}function s(u,p){if(++p>n.length)return u;var m,b=r[p-1];return null!=i&&p>=n.length?m=u.entries():(m=[],u.each(function(R,F){m.push({key:F,values:s(R,p)})})),null!=b?m.sort(function(R,F){return b(R.key,F.key)}):m}return o={object:function(p){return a(p,0,wY,kY)},map:function(p){return a(p,0,d8,p8)},entries:function(p){return s(a(p,0,d8,p8),0)},key:function(p){return n.push(p),o},sortKeys:function(p){return r[n.length-1]=p,o},sortValues:function(p){return t=p,o},rollup:function(p){return i=p,o}}}function wY(){return{}}function kY(n,r,t){n[r]=t}function d8(){return Rf()}function p8(n,r,t){n.set(r,t)}function bM(){}var Pm=Rf.prototype;function f8(n,r){var t=new bM;if(n instanceof bM)n.each(function(a){t.add(a)});else if(n){var i=-1,o=n.length;if(null==r)for(;++i<o;)t.add(n[i]);else for(;++i<o;)t.add(r(n[i],i,n))}return t}bM.prototype=f8.prototype={constructor:bM,has:Pm.has,add:function(r){return this[wu+(r+="")]=r,this},remove:Pm.remove,clear:Pm.clear,values:Pm.keys,size:Pm.size,empty:Pm.empty,each:Pm.each};var EY=f8;function MY(n){var r=[];for(var t in n)r.push(t);return r}function AY(n){var r=[];for(var t in n)r.push(n[t]);return r}function DY(n){var r=[];for(var t in n)r.push({key:t,value:n[t]});return r}var h8=Array.prototype.slice;function PY(n,r){return n-r}function Im(n){return function(){return n}}function RY(n,r){for(var o,t=-1,i=r.length;++t<i;)if(o=NY(n,r[t]))return o;return 0}function NY(n,r){for(var t=r[0],i=r[1],o=-1,a=0,s=n.length,u=s-1;a<s;u=a++){var p=n[a],m=p[0],b=p[1],R=n[u],F=R[0],G=R[1];if(ZY(p,R,r))return 0;b>i!=G>i&&t<(F-m)*(i-b)/(G-b)+m&&(o=-o)}return o}function ZY(n,r,t){var i;return function(n,r,t){return(r[0]-n[0])*(t[1]-n[1])==(t[0]-n[0])*(r[1]-n[1])}(n,r,t)&&function(n,r,t){return n<=r&&r<=t||t<=r&&r<=n}(n[i=+(n[0]===r[0])],t[i],r[i])}function BY(){}var ap=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function m8(){var n=1,r=1,t=ZC,i=p;function o(m){var b=t(m);if(Array.isArray(b))b=b.slice().sort(PY);else{var R=PC(m),F=R[0],G=R[1];b=Gc(F,G,b),b=Vs(Math.floor(F/b)*b,Math.floor(G/b)*b,b)}return b.map(function(Y){return a(m,Y)})}function a(m,b){var R=[],F=[];return function(m,b,R){var Y,ee,Ee,lt,tt,F=new Array,G=new Array;for(Y=ee=-1,ap[(Ee=m[0]>=b)<<1].forEach(it);++Y<n-1;)ap[Ee|(Ee=m[Y+1]>=b)<<1].forEach(it);for(ap[Ee<<0].forEach(it);++ee<r-1;){for(Y=-1,ap[(Ee=m[ee*n+n]>=b)<<1|(lt=m[ee*n]>=b)<<2].forEach(it);++Y<n-1;)tt=lt,ap[Ee|(Ee=m[ee*n+n+Y+1]>=b)<<1|(lt=m[ee*n+Y+1]>=b)<<2|tt<<3].forEach(it);ap[Ee|lt<<3].forEach(it)}for(Y=-1,ap[(lt=m[ee*n]>=b)<<2].forEach(it);++Y<n-1;)tt=lt,ap[(lt=m[ee*n+Y+1]>=b)<<2|tt<<3].forEach(it);function it(mt){var fn,Jt,Ke=[mt[0][0]+Y,mt[0][1]+ee],et=[mt[1][0]+Y,mt[1][1]+ee],Rt=u(Ke),kt=u(et);(fn=G[Rt])?(Jt=F[kt])?(delete G[fn.end],delete F[Jt.start],fn===Jt?(fn.ring.push(et),R(fn.ring)):F[fn.start]=G[Jt.end]={start:fn.start,end:Jt.end,ring:fn.ring.concat(Jt.ring)}):(delete G[fn.end],fn.ring.push(et),G[fn.end=kt]=fn):(fn=F[kt])?(Jt=G[Rt])?(delete F[fn.start],delete G[Jt.end],fn===Jt?(fn.ring.push(et),R(fn.ring)):F[Jt.start]=G[fn.end]={start:Jt.start,end:fn.end,ring:Jt.ring.concat(fn.ring)}):(delete F[fn.start],fn.ring.unshift(Ke),F[fn.start=Rt]=fn):F[Rt]=G[kt]={start:Rt,end:kt,ring:[Ke,et]}}ap[lt<<3].forEach(it)}(m,b,function(G){i(G,m,b),function(n){for(var r=0,t=n.length,i=n[t-1][1]*n[0][0]-n[t-1][0]*n[0][1];++r<t;)i+=n[r-1][1]*n[r][0]-n[r-1][0]*n[r][1];return i}(G)>0?R.push([G]):F.push(G)}),F.forEach(function(G){for(var pe,Y=0,ee=R.length;Y<ee;++Y)if(-1!==RY((pe=R[Y])[0],G))return void pe.push(G)}),{type:"MultiPolygon",value:b,coordinates:R}}function u(m){return 2*m[0]+m[1]*(n+1)*4}function p(m,b,R){m.forEach(function(F){var Ee,G=F[0],Y=F[1],ee=0|G,pe=0|Y,lt=b[pe*n+ee];G>0&&G<n&&ee===G&&(F[0]=G+(R-(Ee=b[pe*n+ee-1]))/(lt-Ee)-.5),Y>0&&Y<r&&pe===Y&&(F[1]=Y+(R-(Ee=b[(pe-1)*n+ee]))/(lt-Ee)-.5)})}return o.contour=a,o.size=function(m){if(!arguments.length)return[n,r];var b=Math.ceil(m[0]),R=Math.ceil(m[1]);if(!(b>0&&R>0))throw new Error("invalid size");return n=b,r=R,o},o.thresholds=function(m){return arguments.length?(t="function"==typeof m?m:Array.isArray(m)?Im(h8.call(m)):Im(m),o):t},o.smooth=function(m){return arguments.length?(i=m?p:BY,o):i===p},o}function pN(n,r,t){for(var i=n.width,o=n.height,a=1+(t<<1),s=0;s<o;++s)for(var u=0,p=0;u<i+t;++u)u<i&&(p+=n.data[u+s*i]),u>=t&&(u>=a&&(p-=n.data[u-a+s*i]),r.data[u-t+s*i]=p/Math.min(u+1,i-1+a-u,a))}function fN(n,r,t){for(var i=n.width,o=n.height,a=1+(t<<1),s=0;s<i;++s)for(var u=0,p=0;u<o+t;++u)u<o&&(p+=n.data[s+u*i]),u>=t&&(u>=a&&(p-=n.data[s+(u-a)*i]),r.data[s+(u-t)*i]=p/Math.min(u+1,o-1+a-u,a))}function UY(n){return n[0]}function HY(n){return n[1]}function VY(){var n=UY,r=HY,t=960,i=500,o=20,a=2,s=3*o,u=t+2*s>>a,p=i+2*s>>a,m=Im(20);function b(pe){var Ee=new Float32Array(u*p),lt=new Float32Array(u*p);pe.forEach(function(mt,Ke,et){var Rt=n(mt,Ke,et)+s>>a,kt=r(mt,Ke,et)+s>>a;Rt>=0&&Rt<u&&kt>=0&&kt<p&&++Ee[Rt+kt*u]}),pN({width:u,height:p,data:Ee},{width:u,height:p,data:lt},o>>a),fN({width:u,height:p,data:lt},{width:u,height:p,data:Ee},o>>a),pN({width:u,height:p,data:Ee},{width:u,height:p,data:lt},o>>a),fN({width:u,height:p,data:lt},{width:u,height:p,data:Ee},o>>a),pN({width:u,height:p,data:Ee},{width:u,height:p,data:lt},o>>a),fN({width:u,height:p,data:lt},{width:u,height:p,data:Ee},o>>a);var tt=m(Ee);if(!Array.isArray(tt)){var it=t_(Ee);tt=Gc(0,it,tt),(tt=Vs(0,Math.floor(it/tt)*tt,tt)).shift()}return m8().thresholds(tt).size([u,p])(Ee).map(R)}function R(pe){return pe.value*=Math.pow(2,-2*a),pe.coordinates.forEach(F),pe}function F(pe){pe.forEach(G)}function G(pe){pe.forEach(Y)}function Y(pe){pe[0]=pe[0]*Math.pow(2,a)-s,pe[1]=pe[1]*Math.pow(2,a)-s}function ee(){return u=t+2*(s=3*o)>>a,p=i+2*s>>a,b}return b.x=function(pe){return arguments.length?(n="function"==typeof pe?pe:Im(+pe),b):n},b.y=function(pe){return arguments.length?(r="function"==typeof pe?pe:Im(+pe),b):r},b.size=function(pe){if(!arguments.length)return[t,i];var Ee=Math.ceil(pe[0]),lt=Math.ceil(pe[1]);if(!(Ee>=0||Ee>=0))throw new Error("invalid size");return t=Ee,i=lt,ee()},b.cellSize=function(pe){if(!arguments.length)return 1<<a;if(!((pe=+pe)>=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(pe)/Math.LN2),ee()},b.thresholds=function(pe){return arguments.length?(m="function"==typeof pe?pe:Array.isArray(pe)?Im(h8.call(pe)):Im(pe),b):m},b.bandwidth=function(pe){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((pe=+pe)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*pe*pe+1)-1)/2),ee()},b}function CM(n){return function(){return n}}function hN(n,r,t,i,o,a,s,u,p,m){this.target=n,this.type=r,this.subject=t,this.identifier=i,this.active=o,this.x=a,this.y=s,this.dx=u,this.dy=p,this._=m}function qY(){return!Mn.ctrlKey&&!Mn.button}function jY(){return this.parentNode}function zY(n){return null==n?{x:Mn.x,y:Mn.y}:n}function WY(){return navigator.maxTouchPoints||"ontouchstart"in this}function Nf(){var u,p,m,b,n=qY,r=jY,t=zY,i=WY,o={},a=$d("start","drag","end"),s=0,R=0;function F(it){it.on("mousedown.drag",G).filter(i).on("touchstart.drag",pe).on("touchmove.drag",Ee).on("touchend.drag touchcancel.drag",lt).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function G(){if(!b&&n.apply(this,arguments)){var it=tt("mouse",r.apply(this,arguments),ul,this,arguments);!it||(Xr(Mn.view).on("mousemove.drag",Y,!0).on("mouseup.drag",ee,!0),f_(Mn.view),r1(),m=!1,u=Mn.clientX,p=Mn.clientY,it("start"))}}function Y(){if(kf(),!m){var it=Mn.clientX-u,mt=Mn.clientY-p;m=it*it+mt*mt>R}o.mouse("drag")}function ee(){Xr(Mn.view).on("mousemove.drag mouseup.drag",null),zl(Mn.view,m),kf(),o.mouse("end")}function pe(){if(n.apply(this,arguments)){var et,Rt,it=Mn.changedTouches,mt=r.apply(this,arguments),Ke=it.length;for(et=0;et<Ke;++et)(Rt=tt(it[et].identifier,mt,p_,this,arguments))&&(r1(),Rt("start"))}}function Ee(){var Ke,et,it=Mn.changedTouches,mt=it.length;for(Ke=0;Ke<mt;++Ke)(et=o[it[Ke].identifier])&&(kf(),et("drag"))}function lt(){var Ke,et,it=Mn.changedTouches,mt=it.length;for(b&&clearTimeout(b),b=setTimeout(function(){b=null},500),Ke=0;Ke<mt;++Ke)(et=o[it[Ke].identifier])&&(r1(),et("end"))}function tt(it,mt,Ke,et,Rt){var fn,Jt,st,kt=Ke(mt,it),Ot=a.copy();if(Sm(new hN(F,"beforestart",fn,it,s,kt[0],kt[1],0,0,Ot),function(){return null!=(Mn.subject=fn=t.apply(et,Rt))&&(Jt=fn.x-kt[0]||0,st=fn.y-kt[1]||0,!0)}))return function gn(pn){var Ln,kn=kt;switch(pn){case"start":o[it]=gn,Ln=s++;break;case"end":delete o[it],--s;case"drag":kt=Ke(mt,it),Ln=s}Sm(new hN(F,pn,fn,it,Ln,kt[0]+Jt,kt[1]+st,kt[0]-kn[0],kt[1]-kn[1],Ot),Ot.apply,Ot,[pn,et,Rt])}}return F.filter=function(it){return arguments.length?(n="function"==typeof it?it:CM(!!it),F):n},F.container=function(it){return arguments.length?(r="function"==typeof it?it:CM(it),F):r},F.subject=function(it){return arguments.length?(t="function"==typeof it?it:CM(it),F):t},F.touchable=function(it){return arguments.length?(i="function"==typeof it?it:CM(!!it),F):i},F.on=function(){var it=a.on.apply(a,arguments);return it===a?F:it},F.clickDistance=function(it){return arguments.length?(R=(it=+it)*it,F):Math.sqrt(R)},F}hN.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};var v8={},mN={};function g8(n){return new Function("d","return {"+n.map(function(r,t){return JSON.stringify(r)+": d["+t+"]"}).join(",")+"}")}function _N(n){var r=new RegExp('["'+n+"\n\r]"),t=n.charCodeAt(0);function o(m,b){var ee,R=[],F=m.length,G=0,Y=0,pe=F<=0,Ee=!1;function lt(){if(pe)return mN;if(Ee)return Ee=!1,v8;var it,Ke,mt=G;if(34===m.charCodeAt(mt)){for(;G++<F&&34!==m.charCodeAt(G)||34===m.charCodeAt(++G););return(it=G)>=F?pe=!0:10===(Ke=m.charCodeAt(G++))?Ee=!0:13===Ke&&(Ee=!0,10===m.charCodeAt(G)&&++G),m.slice(mt+1,it-1).replace(/""/g,'"')}for(;G<F;){if(10===(Ke=m.charCodeAt(it=G++)))Ee=!0;else if(13===Ke)Ee=!0,10===m.charCodeAt(G)&&++G;else if(Ke!==t)continue;return m.slice(mt,it)}return pe=!0,m.slice(mt,F)}for(10===m.charCodeAt(F-1)&&--F,13===m.charCodeAt(F-1)&&--F;(ee=lt())!==mN;){for(var tt=[];ee!==v8&&ee!==mN;)tt.push(ee),ee=lt();b&&null==(tt=b(tt,Y++))||R.push(tt)}return R}function u(m){return m.map(p).join(n)}function p(m){return null==m?"":r.test(m+="")?'"'+m.replace(/"/g,'""')+'"':m}return{parse:function(m,b){var R,F,G=o(m,function(Y,ee){if(R)return R(Y,ee-1);F=Y,R=b?function(n,r){var t=g8(n);return function(i,o){return r(t(i),o,n)}}(Y,b):g8(Y)});return G.columns=F||[],G},parseRows:o,format:function(m,b){return null==b&&(b=function(n){var r=Object.create(null),t=[];return n.forEach(function(i){for(var o in i)o in r||t.push(r[o]=o)}),t}(m)),[b.map(p).join(n)].concat(m.map(function(R){return b.map(function(F){return p(R[F])}).join(n)})).join("\n")},formatRows:function(m){return m.map(u).join("\n")}}}var SM=_N(","),JY=SM.parse,QY=SM.parseRows,KY=SM.format,XY=SM.formatRows,TM=_N("\t"),$Y=TM.parse,eJ=TM.parseRows,tJ=TM.format,nJ=TM.formatRows;function rJ(n){return+n}function iJ(n){return n*n}function oJ(n){return n*(2-n)}function _8(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}var aJ=function n(r){function t(i){return Math.pow(i,r)}return r=+r,t.exponent=n,t}(3),sJ=function n(r){function t(i){return 1-Math.pow(1-i,r)}return r=+r,t.exponent=n,t}(3),y8=function n(r){function t(i){return((i*=2)<=1?Math.pow(i,r):2-Math.pow(2-i,r))/2}return r=+r,t.exponent=n,t}(3),b8=Math.PI,C8=b8/2;function lJ(n){return 1==+n?1:1-Math.cos(n*C8)}function uJ(n){return Math.sin(n*C8)}function S8(n){return(1-Math.cos(b8*n))/2}function Zf(n){return 1.0009775171065494*(Math.pow(2,-10*n)-.0009765625)}function cJ(n){return Zf(1-+n)}function dJ(n){return 1-Zf(n)}function T8(n){return((n*=2)<=1?Zf(1-n):2-Zf(n-1))/2}function pJ(n){return 1-Math.sqrt(1-n*n)}function fJ(n){return Math.sqrt(1- --n*n)}function x8(n){return((n*=2)<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}var xM=7.5625;function SJ(n){return 1-b1(1-n)}function b1(n){return(n=+n)<.36363636363636365?xM*n*n:n<.7272727272727273?xM*(n-=.5454545454545454)*n+.75:n<.9090909090909091?xM*(n-=.8181818181818182)*n+.9375:xM*(n-=.9545454545454546)*n+.984375}function TJ(n){return((n*=2)<=1?1-b1(1-n):b1(n-1)+1)/2}var CN=1.70158,xJ=function n(r){function t(i){return(i=+i)*i*(r*(i-1)+i)}return r=+r,t.overshoot=n,t}(CN),wJ=function n(r){function t(i){return--i*i*((i+1)*r+i)+1}return r=+r,t.overshoot=n,t}(CN),w8=function n(r){function t(i){return((i*=2)<1?i*i*((r+1)*i-r):(i-=2)*i*((r+1)*i+r)+2)/2}return r=+r,t.overshoot=n,t}(CN),T_=2*Math.PI,kJ=function n(r,t){var i=Math.asin(1/(r=Math.max(1,r)))*(t/=T_);function o(a){return r*Zf(- --a)*Math.sin((i-a)/t)}return o.amplitude=function(a){return n(a,t*T_)},o.period=function(a){return n(r,a)},o}(1,.3),k8=function n(r,t){var i=Math.asin(1/(r=Math.max(1,r)))*(t/=T_);function o(a){return 1-r*Zf(a=+a)*Math.sin((a+i)/t)}return o.amplitude=function(a){return n(a,t*T_)},o.period=function(a){return n(r,a)},o}(1,.3),EJ=function n(r,t){var i=Math.asin(1/(r=Math.max(1,r)))*(t/=T_);function o(a){return((a=2*a-1)<0?r*Zf(-a)*Math.sin((i-a)/t):2-r*Zf(a)*Math.sin((i+a)/t))/2}return o.amplitude=function(a){return n(a,t*T_)},o.period=function(a){return n(r,a)},o}(1,.3);function MJ(n,r){var t;function i(){var o,s,a=t.length,u=0,p=0;for(o=0;o<a;++o)u+=(s=t[o]).x,p+=s.y;for(u=u/a-n,p=p/a-r,o=0;o<a;++o)(s=t[o]).x-=u,s.y-=p}return null==n&&(n=0),null==r&&(r=0),i.initialize=function(o){t=o},i.x=function(o){return arguments.length?(n=+o,i):n},i.y=function(o){return arguments.length?(r=+o,i):r},i}function Ua(n){return function(){return n}}function Lf(){return 1e-6*(Math.random()-.5)}function E8(n,r,t,i){if(isNaN(r)||isNaN(t))return n;var o,R,F,G,Y,ee,pe,Ee,lt,a=n._root,s={data:i},u=n._x0,p=n._y0,m=n._x1,b=n._y1;if(!a)return n._root=s,n;for(;a.length;)if((ee=r>=(R=(u+m)/2))?u=R:m=R,(pe=t>=(F=(p+b)/2))?p=F:b=F,o=a,!(a=a[Ee=pe<<1|ee]))return o[Ee]=s,n;if(G=+n._x.call(null,a.data),Y=+n._y.call(null,a.data),r===G&&t===Y)return s.next=a,o?o[Ee]=s:n._root=s,n;do{o=o?o[Ee]=new Array(4):n._root=new Array(4),(ee=r>=(R=(u+m)/2))?u=R:m=R,(pe=t>=(F=(p+b)/2))?p=F:b=F}while((Ee=pe<<1|ee)==(lt=(Y>=F)<<1|G>=R));return o[lt]=a,o[Ee]=s,n}function js(n,r,t,i,o){this.node=n,this.x0=r,this.y0=t,this.x1=i,this.y1=o}function HJ(n){return n[0]}function qJ(n){return n[1]}function wM(n,r,t){var i=new xN(null==r?HJ:r,null==t?qJ:t,NaN,NaN,NaN,NaN);return null==n?i:i.addAll(n)}function xN(n,r,t,i,o,a){this._x=n,this._y=r,this._x0=t,this._y0=i,this._x1=o,this._y1=a,this._root=void 0}function M8(n){for(var r={data:n.data},t=r;n=n.next;)t=t.next={data:n.data};return r}var zs=wM.prototype=xN.prototype;function zJ(n){return n.x+n.vx}function WJ(n){return n.y+n.vy}function GJ(n){var r,t,i=1,o=1;function a(){for(var p,b,R,F,G,Y,ee,m=r.length,pe=0;pe<o;++pe)for(b=wM(r,zJ,WJ).visitAfter(s),p=0;p<m;++p)ee=(Y=t[(R=r[p]).index])*Y,F=R.x+R.vx,G=R.y+R.vy,b.visit(Ee);function Ee(lt,tt,it,mt,Ke){var et=lt.data,Rt=lt.r,kt=Y+Rt;if(!et)return tt>F+kt||mt<F-kt||it>G+kt||Ke<G-kt;if(et.index>R.index){var fn=F-et.x-et.vx,Jt=G-et.y-et.vy,st=fn*fn+Jt*Jt;st<kt*kt&&(0===fn&&(st+=(fn=Lf())*fn),0===Jt&&(st+=(Jt=Lf())*Jt),st=(kt-(st=Math.sqrt(st)))/st*i,R.vx+=(fn*=st)*(kt=(Rt*=Rt)/(ee+Rt)),R.vy+=(Jt*=st)*kt,et.vx-=fn*(kt=1-kt),et.vy-=Jt*kt)}}}function s(p){if(p.data)return p.r=t[p.data.index];for(var m=p.r=0;m<4;++m)p[m]&&p[m].r>p.r&&(p.r=p[m].r)}function u(){if(r){var p,b,m=r.length;for(t=new Array(m),p=0;p<m;++p)t[(b=r[p]).index]=+n(b,p,r)}}return"function"!=typeof n&&(n=Ua(null==n?1:+n)),a.initialize=function(p){r=p,u()},a.iterations=function(p){return arguments.length?(o=+p,a):o},a.strength=function(p){return arguments.length?(i=+p,a):i},a.radius=function(p){return arguments.length?(n="function"==typeof p?p:Ua(+p),u(),a):n},a}function YJ(n){return n.index}function A8(n,r){var t=n.get(r);if(!t)throw new Error("missing: "+r);return t}function JJ(n){var i,a,s,u,p,r=YJ,t=function(ee){return 1/Math.min(u[ee.source.index],u[ee.target.index])},o=Ua(30),m=1;function R(ee){for(var pe=0,Ee=n.length;pe<m;++pe)for(var tt,it,mt,Ke,et,Rt,kt,lt=0;lt<Ee;++lt)Ke=(mt=(tt=n[lt]).target).x+mt.vx-(it=tt.source).x-it.vx||Lf(),et=mt.y+mt.vy-it.y-it.vy||Lf(),et*=Rt=((Rt=Math.sqrt(Ke*Ke+et*et))-a[lt])/Rt*ee*i[lt],mt.vx-=(Ke*=Rt)*(kt=p[lt]),mt.vy-=et*kt,it.vx+=Ke*(kt=1-kt),it.vy+=et*kt}function F(){if(s){var ee,tt,pe=s.length,Ee=n.length,lt=Rf(s,r);for(ee=0,u=new Array(pe);ee<Ee;++ee)(tt=n[ee]).index=ee,"object"!=typeof tt.source&&(tt.source=A8(lt,tt.source)),"object"!=typeof tt.target&&(tt.target=A8(lt,tt.target)),u[tt.source.index]=(u[tt.source.index]||0)+1,u[tt.target.index]=(u[tt.target.index]||0)+1;for(ee=0,p=new Array(Ee);ee<Ee;++ee)p[ee]=u[(tt=n[ee]).source.index]/(u[tt.source.index]+u[tt.target.index]);i=new Array(Ee),G(),a=new Array(Ee),Y()}}function G(){if(s)for(var ee=0,pe=n.length;ee<pe;++ee)i[ee]=+t(n[ee],ee,n)}function Y(){if(s)for(var ee=0,pe=n.length;ee<pe;++ee)a[ee]=+o(n[ee],ee,n)}return null==n&&(n=[]),R.initialize=function(ee){s=ee,F()},R.links=function(ee){return arguments.length?(n=ee,F(),R):n},R.id=function(ee){return arguments.length?(r=ee,R):r},R.iterations=function(ee){return arguments.length?(m=+ee,R):m},R.strength=function(ee){return arguments.length?(t="function"==typeof ee?ee:Ua(+ee),G(),R):t},R.distance=function(ee){return arguments.length?(o="function"==typeof ee?ee:Ua(+ee),Y(),R):o},R}function QJ(n){return n.x}function KJ(n){return n.y}zs.copy=function(){var t,i,n=new xN(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=M8(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var o=0;o<4;++o)(i=r.source[o])&&(i.length?t.push({source:i,target:r.target[o]=new Array(4)}):r.target[o]=M8(i));return n},zs.add=function(n){var r=+this._x.call(null,n),t=+this._y.call(null,n);return E8(this.cover(r,t),r,t,n)},zs.addAll=function(n){var r,t,o,a,i=n.length,s=new Array(i),u=new Array(i),p=1/0,m=1/0,b=-1/0,R=-1/0;for(t=0;t<i;++t)isNaN(o=+this._x.call(null,r=n[t]))||isNaN(a=+this._y.call(null,r))||(s[t]=o,u[t]=a,o<p&&(p=o),o>b&&(b=o),a<m&&(m=a),a>R&&(R=a));if(p>b||m>R)return this;for(this.cover(p,m).cover(b,R),t=0;t<i;++t)E8(this,s[t],u[t],n[t]);return this},zs.cover=function(n,r){if(isNaN(n=+n)||isNaN(r=+r))return this;var t=this._x0,i=this._y0,o=this._x1,a=this._y1;if(isNaN(t))o=(t=Math.floor(n))+1,a=(i=Math.floor(r))+1;else{for(var p,m,s=o-t,u=this._root;t>n||n>=o||i>r||r>=a;)switch(m=(r<i)<<1|n<t,p=new Array(4),p[m]=u,u=p,s*=2,m){case 0:o=t+s,a=i+s;break;case 1:t=o-s,a=i+s;break;case 2:o=t+s,i=a-s;break;case 3:t=o-s,i=a-s}this._root&&this._root.length&&(this._root=u)}return this._x0=t,this._y0=i,this._x1=o,this._y1=a,this},zs.data=function(){var n=[];return this.visit(function(r){if(!r.length)do{n.push(r.data)}while(r=r.next)}),n},zs.extent=function(n){return arguments.length?this.cover(+n[0][0],+n[0][1]).cover(+n[1][0],+n[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},zs.find=function(n,r,t){var i,s,u,p,m,Y,ee,o=this._x0,a=this._y0,b=this._x1,R=this._y1,F=[],G=this._root;for(G&&F.push(new js(G,o,a,b,R)),null==t?t=1/0:(o=n-t,a=r-t,b=n+t,R=r+t,t*=t);Y=F.pop();)if(!(!(G=Y.node)||(s=Y.x0)>b||(u=Y.y0)>R||(p=Y.x1)<o||(m=Y.y1)<a))if(G.length){var pe=(s+p)/2,Ee=(u+m)/2;F.push(new js(G[3],pe,Ee,p,m),new js(G[2],s,Ee,pe,m),new js(G[1],pe,u,p,Ee),new js(G[0],s,u,pe,Ee)),(ee=(r>=Ee)<<1|n>=pe)&&(Y=F[F.length-1],F[F.length-1]=F[F.length-1-ee],F[F.length-1-ee]=Y)}else{var lt=n-+this._x.call(null,G.data),tt=r-+this._y.call(null,G.data),it=lt*lt+tt*tt;if(it<t){var mt=Math.sqrt(t=it);o=n-mt,a=r-mt,b=n+mt,R=r+mt,i=G.data}}return i},zs.remove=function(n){if(isNaN(b=+this._x.call(null,n))||isNaN(R=+this._y.call(null,n)))return this;var r,i,o,a,b,R,F,G,Y,ee,pe,Ee,t=this._root,s=this._x0,u=this._y0,p=this._x1,m=this._y1;if(!t)return this;if(t.length)for(;;){if((Y=b>=(F=(s+p)/2))?s=F:p=F,(ee=R>=(G=(u+m)/2))?u=G:m=G,r=t,!(t=t[pe=ee<<1|Y]))return this;if(!t.length)break;(r[pe+1&3]||r[pe+2&3]||r[pe+3&3])&&(i=r,Ee=pe)}for(;t.data!==n;)if(o=t,!(t=t.next))return this;return(a=t.next)&&delete t.next,o?(a?o.next=a:delete o.next,this):r?(a?r[pe]=a:delete r[pe],(t=r[0]||r[1]||r[2]||r[3])&&t===(r[3]||r[2]||r[1]||r[0])&&!t.length&&(i?i[Ee]=t:this._root=t),this):(this._root=a,this)},zs.removeAll=function(n){for(var r=0,t=n.length;r<t;++r)this.remove(n[r]);return this},zs.root=function(){return this._root},zs.size=function(){var n=0;return this.visit(function(r){if(!r.length)do{++n}while(r=r.next)}),n},zs.visit=function(n){var t,o,a,s,u,p,r=[],i=this._root;for(i&&r.push(new js(i,this._x0,this._y0,this._x1,this._y1));t=r.pop();)if(!n(i=t.node,a=t.x0,s=t.y0,u=t.x1,p=t.y1)&&i.length){var m=(a+u)/2,b=(s+p)/2;(o=i[3])&&r.push(new js(o,m,b,u,p)),(o=i[2])&&r.push(new js(o,a,b,m,p)),(o=i[1])&&r.push(new js(o,m,s,u,b)),(o=i[0])&&r.push(new js(o,a,s,m,b))}return this},zs.visitAfter=function(n){var i,r=[],t=[];for(this._root&&r.push(new js(this._root,this._x0,this._y0,this._x1,this._y1));i=r.pop();){var o=i.node;if(o.length){var a,s=i.x0,u=i.y0,p=i.x1,m=i.y1,b=(s+p)/2,R=(u+m)/2;(a=o[0])&&r.push(new js(a,s,u,b,R)),(a=o[1])&&r.push(new js(a,b,u,p,R)),(a=o[2])&&r.push(new js(a,s,R,b,m)),(a=o[3])&&r.push(new js(a,b,R,p,m))}t.push(i)}for(;i=t.pop();)n(i.node,i.x0,i.y0,i.x1,i.y1);return this},zs.x=function(n){return arguments.length?(this._x=n,this):this._x},zs.y=function(n){return arguments.length?(this._y=n,this):this._y};var D8,$J=Math.PI*(3-Math.sqrt(5));function eQ(n){var r,t=1,i=.001,o=1-Math.pow(i,1/300),a=0,s=.6,u=Rf(),p=cM(b),m=$d("tick","end");function b(){R(),m.call("tick",r),t<i&&(p.stop(),m.call("end",r))}function R(){var Y,pe,ee=n.length;for(t+=(a-t)*o,u.each(function(Ee){Ee(t)}),Y=0;Y<ee;++Y)null==(pe=n[Y]).fx?pe.x+=pe.vx*=s:(pe.x=pe.fx,pe.vx=0),null==pe.fy?pe.y+=pe.vy*=s:(pe.y=pe.fy,pe.vy=0)}function F(){for(var pe,Y=0,ee=n.length;Y<ee;++Y){if((pe=n[Y]).index=Y,isNaN(pe.x)||isNaN(pe.y)){var Ee=10*Math.sqrt(Y),lt=Y*$J;pe.x=Ee*Math.cos(lt),pe.y=Ee*Math.sin(lt)}(isNaN(pe.vx)||isNaN(pe.vy))&&(pe.vx=pe.vy=0)}}function G(Y){return Y.initialize&&Y.initialize(n),Y}return null==n&&(n=[]),F(),r={tick:R,restart:function(){return p.restart(b),r},stop:function(){return p.stop(),r},nodes:function(ee){return arguments.length?(n=ee,F(),u.each(G),r):n},alpha:function(ee){return arguments.length?(t=+ee,r):t},alphaMin:function(ee){return arguments.length?(i=+ee,r):i},alphaDecay:function(ee){return arguments.length?(o=+ee,r):+o},alphaTarget:function(ee){return arguments.length?(a=+ee,r):a},velocityDecay:function(ee){return arguments.length?(s=1-ee,r):1-s},force:function(ee,pe){return arguments.length>1?(null==pe?u.remove(ee):u.set(ee,G(pe)),r):u.get(ee)},find:function(ee,pe,Ee){var it,mt,Ke,et,Rt,lt=0,tt=n.length;for(null==Ee?Ee=1/0:Ee*=Ee,lt=0;lt<tt;++lt)(Ke=(it=ee-(et=n[lt]).x)*it+(mt=pe-et.y)*mt)<Ee&&(Rt=et,Ee=Ke);return Rt},on:function(ee,pe){return arguments.length>1?(m.on(ee,pe),r):m.on(ee)}}}function tQ(){var n,r,t,o,i=Ua(-30),a=1,s=1/0,u=.81;function p(F){var G,Y=n.length,ee=wM(n,QJ,KJ).visitAfter(b);for(t=F,G=0;G<Y;++G)r=n[G],ee.visit(R)}function m(){if(n){var F,Y,G=n.length;for(o=new Array(G),F=0;F<G;++F)o[(Y=n[F]).index]=+i(Y,F,n)}}function b(F){var Y,ee,Ee,lt,tt,G=0,pe=0;if(F.length){for(Ee=lt=tt=0;tt<4;++tt)(Y=F[tt])&&(ee=Math.abs(Y.value))&&(G+=Y.value,pe+=ee,Ee+=ee*Y.x,lt+=ee*Y.y);F.x=Ee/pe,F.y=lt/pe}else{(Y=F).x=Y.data.x,Y.y=Y.data.y;do{G+=o[Y.data.index]}while(Y=Y.next)}F.value=G}function R(F,G,Y,ee){if(!F.value)return!0;var pe=F.x-r.x,Ee=F.y-r.y,lt=ee-G,tt=pe*pe+Ee*Ee;if(lt*lt/u<tt)return tt<s&&(0===pe&&(tt+=(pe=Lf())*pe),0===Ee&&(tt+=(Ee=Lf())*Ee),tt<a&&(tt=Math.sqrt(a*tt)),r.vx+=pe*F.value*t/tt,r.vy+=Ee*F.value*t/tt),!0;if(!(F.length||tt>=s)){(F.data!==r||F.next)&&(0===pe&&(tt+=(pe=Lf())*pe),0===Ee&&(tt+=(Ee=Lf())*Ee),tt<a&&(tt=Math.sqrt(a*tt)));do{F.data!==r&&(r.vx+=pe*(lt=o[F.data.index]*t/tt),r.vy+=Ee*lt)}while(F=F.next)}}return p.initialize=function(F){n=F,m()},p.strength=function(F){return arguments.length?(i="function"==typeof F?F:Ua(+F),m(),p):i},p.distanceMin=function(F){return arguments.length?(a=F*F,p):Math.sqrt(a)},p.distanceMax=function(F){return arguments.length?(s=F*F,p):Math.sqrt(s)},p.theta=function(F){return arguments.length?(u=F*F,p):Math.sqrt(u)},p}function nQ(n,r,t){var i,a,s,o=Ua(.1);function u(m){for(var b=0,R=i.length;b<R;++b){var F=i[b],G=F.x-r||1e-6,Y=F.y-t||1e-6,ee=Math.sqrt(G*G+Y*Y),pe=(s[b]-ee)*a[b]*m/ee;F.vx+=G*pe,F.vy+=Y*pe}}function p(){if(i){var m,b=i.length;for(a=new Array(b),s=new Array(b),m=0;m<b;++m)s[m]=+n(i[m],m,i),a[m]=isNaN(s[m])?0:+o(i[m],m,i)}}return"function"!=typeof n&&(n=Ua(+n)),null==r&&(r=0),null==t&&(t=0),u.initialize=function(m){i=m,p()},u.strength=function(m){return arguments.length?(o="function"==typeof m?m:Ua(+m),p(),u):o},u.radius=function(m){return arguments.length?(n="function"==typeof m?m:Ua(+m),p(),u):n},u.x=function(m){return arguments.length?(r=+m,u):r},u.y=function(m){return arguments.length?(t=+m,u):t},u}function rQ(n){var t,i,o,r=Ua(.1);function a(u){for(var b,p=0,m=t.length;p<m;++p)(b=t[p]).vx+=(o[p]-b.x)*i[p]*u}function s(){if(t){var u,p=t.length;for(i=new Array(p),o=new Array(p),u=0;u<p;++u)i[u]=isNaN(o[u]=+n(t[u],u,t))?0:+r(t[u],u,t)}}return"function"!=typeof n&&(n=Ua(null==n?0:+n)),a.initialize=function(u){t=u,s()},a.strength=function(u){return arguments.length?(r="function"==typeof u?u:Ua(+u),s(),a):r},a.x=function(u){return arguments.length?(n="function"==typeof u?u:Ua(+u),s(),a):n},a}function iQ(n){var t,i,o,r=Ua(.1);function a(u){for(var b,p=0,m=t.length;p<m;++p)(b=t[p]).vy+=(o[p]-b.y)*i[p]*u}function s(){if(t){var u,p=t.length;for(i=new Array(p),o=new Array(p),u=0;u<p;++u)i[u]=isNaN(o[u]=+n(t[u],u,t))?0:+r(t[u],u,t)}}return"function"!=typeof n&&(n=Ua(null==n?0:+n)),a.initialize=function(u){t=u,s()},a.strength=function(u){return arguments.length?(r="function"==typeof u?u:Ua(+u),s(),a):r},a.y=function(u){return arguments.length?(n="function"==typeof u?u:Ua(+u),s(),a):n},a}function kM(n,r){if((t=(n=r?n.toExponential(r-1):n.toExponential()).indexOf("e"))<0)return null;var t,i=n.slice(0,t);return[i.length>1?i[0]+i.slice(2):i,+n.slice(t+1)]}function x_(n){return(n=kM(Math.abs(n)))?n[1]:NaN}function O8(n,r){var t=kM(n,r);if(!t)return n+"";var i=t[0],o=t[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}var P8={"":function(n,r){e:for(var a,t=(n=n.toPrecision(r)).length,i=1,o=-1;i<t;++i)switch(n[i]){case".":o=a=i;break;case"0":0===o&&(o=i),a=i;break;case"e":break e;default:o>0&&(o=0)}return o>0?n.slice(0,o)+n.slice(a+1):n},"%":function(r,t){return(100*r).toFixed(t)},b:function(r){return Math.round(r).toString(2)},c:function(r){return r+""},d:function(r){return Math.round(r).toString(10)},e:function(r,t){return r.toExponential(t)},f:function(r,t){return r.toFixed(t)},g:function(r,t){return r.toPrecision(t)},o:function(r){return Math.round(r).toString(8)},p:function(r,t){return O8(100*r,t)},r:O8,s:function(n,r){var t=kM(n,r);if(!t)return n+"";var i=t[0],o=t[1],a=o-(D8=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+new Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+kM(n,Math.max(0,r+a-1))[0]},X:function(r){return Math.round(r).toString(16).toUpperCase()},x:function(r){return Math.round(r).toString(16)}},uQ=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function C1(n){return new wN(n)}function wN(n){if(!(r=uQ.exec(n)))throw new Error("invalid format: "+n);var r,t=r[1]||" ",i=r[2]||">",o=r[3]||"-",a=r[4]||"",s=!!r[5],u=r[6]&&+r[6],p=!!r[7],m=r[8]&&+r[8].slice(1),b=r[9]||"";"n"===b?(p=!0,b="g"):P8[b]||(b=""),(s||"0"===t&&"="===i)&&(s=!0,t="0",i="="),this.fill=t,this.align=i,this.sign=o,this.symbol=a,this.zero=s,this.width=u,this.comma=p,this.precision=m,this.type=b}function I8(n){return n}C1.prototype=wN.prototype,wN.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var EM,MM,kN,R8=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function N8(n){var r=n.grouping&&n.thousands?function(n,r){return function(t,i){for(var o=t.length,a=[],s=0,u=n[0],p=0;o>0&&u>0&&(p+u+1>i&&(u=Math.max(1,i-p)),a.push(t.substring(o-=u,o+u)),!((p+=u+1)>i));)u=n[s=(s+1)%n.length];return a.reverse().join(r)}}(n.grouping,n.thousands):I8,t=n.currency,i=n.decimal,o=n.numerals?function(n){return function(r){return r.replace(/[0-9]/g,function(t){return n[+t]})}}(n.numerals):I8,a=n.percent||"%";function s(p){var m=(p=C1(p)).fill,b=p.align,R=p.sign,F=p.symbol,G=p.zero,Y=p.width,ee=p.comma,pe=p.precision,Ee=p.type,lt="$"===F?t[0]:"#"===F&&/[boxX]/.test(Ee)?"0"+Ee.toLowerCase():"",tt="$"===F?t[1]:/[%p]/.test(Ee)?a:"",it=P8[Ee],mt=!Ee||/[defgprs%]/.test(Ee);function Ke(et){var fn,Jt,st,Rt=lt,kt=tt;if("c"===Ee)kt=it(et)+kt,et="";else{var Ot=(et=+et)<0;if(et=it(Math.abs(et),pe),Ot&&0==+et&&(Ot=!1),Rt=(Ot?"("===R?R:"-":"-"===R||"("===R?"":R)+Rt,kt=("s"===Ee?R8[8+D8/3]:"")+kt+(Ot&&"("===R?")":""),mt)for(fn=-1,Jt=et.length;++fn<Jt;)if(48>(st=et.charCodeAt(fn))||st>57){kt=(46===st?i+et.slice(fn+1):et.slice(fn))+kt,et=et.slice(0,fn);break}}ee&&!G&&(et=r(et,1/0));var gn=Rt.length+et.length+kt.length,pn=gn<Y?new Array(Y-gn+1).join(m):"";switch(ee&&G&&(et=r(pn+et,pn.length?Y-kt.length:1/0),pn=""),b){case"<":et=Rt+et+kt+pn;break;case"=":et=Rt+pn+et+kt;break;case"^":et=pn.slice(0,gn=pn.length>>1)+Rt+et+kt+pn.slice(gn);break;default:et=pn+Rt+et+kt}return o(et)}return pe=null==pe?Ee?6:12:/[gprs]/.test(Ee)?Math.max(1,Math.min(21,pe)):Math.max(0,Math.min(20,pe)),Ke.toString=function(){return p+""},Ke}return{format:s,formatPrefix:function(p,m){var b=s(((p=C1(p)).type="f",p)),R=3*Math.max(-8,Math.min(8,Math.floor(x_(m)/3))),F=Math.pow(10,-R),G=R8[8+R/3];return function(Y){return b(F*Y)+G}}}}function Z8(n){return EM=N8(n),MM=EM.format,kN=EM.formatPrefix,EM}function L8(n){return Math.max(0,-x_(Math.abs(n)))}function F8(n,r){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(x_(r)/3)))-x_(Math.abs(n)))}function B8(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,x_(r)-x_(n))+1}function Ff(){return new AM}function AM(){this.reset()}Z8({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),AM.prototype={constructor:AM,reset:function(){this.s=this.t=0},add:function(r){U8(DM,r,this.t),U8(this,DM.s,this.s),this.s?this.t+=DM.t:this.s=DM.t},valueOf:function(){return this.s}};var DM=new AM;function U8(n,r,t){var i=n.s=r+t,o=i-r;n.t=r-(i-o)+(t-o)}var Tr=1e-6,Di=Math.PI,oa=Di/2,OM=Di/4,cl=2*Di,wo=180/Di,Pr=Di/180,Vi=Math.abs,w_=Math.atan,Ws=Math.atan2,xr=Math.cos,PM=Math.ceil,V8=Math.exp,IM=(Math,Math.log),EN=Math.pow,pr=Math.sin,S1=Math.sign||function(n){return n>0?1:n<0?-1:0},Ha=Math.sqrt,MN=Math.tan;function q8(n){return n>1?0:n<-1?Di:Math.acos(n)}function Jl(n){return n>1?oa:n<-1?-oa:Math.asin(n)}function j8(n){return(n=pr(n/2))*n}function Jo(){}function RM(n,r){n&&W8.hasOwnProperty(n.type)&&W8[n.type](n,r)}var z8={Feature:function(r,t){RM(r.geometry,t)},FeatureCollection:function(r,t){for(var i=r.features,o=-1,a=i.length;++o<a;)RM(i[o].geometry,t)}},W8={Sphere:function(r,t){t.sphere()},Point:function(r,t){t.point((r=r.coordinates)[0],r[1],r[2])},MultiPoint:function(r,t){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)t.point((r=i[o])[0],r[1],r[2])},LineString:function(r,t){AN(r.coordinates,t,0)},MultiLineString:function(r,t){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)AN(i[o],t,0)},Polygon:function(r,t){G8(r.coordinates,t)},MultiPolygon:function(r,t){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)G8(i[o],t)},GeometryCollection:function(r,t){for(var i=r.geometries,o=-1,a=i.length;++o<a;)RM(i[o],t)}};function AN(n,r,t){var a,i=-1,o=n.length-t;for(r.lineStart();++i<o;)r.point((a=n[i])[0],a[1],a[2]);r.lineEnd()}function G8(n,r){var t=-1,i=n.length;for(r.polygonStart();++t<i;)AN(n[t],r,1);r.polygonEnd()}function Xu(n,r){n&&z8.hasOwnProperty(n.type)?z8[n.type](n,r):RM(n,r)}var Y8,J8,DN,ON,PN,NM=Ff(),ZM=Ff(),td={point:Jo,lineStart:Jo,lineEnd:Jo,polygonStart:function(){NM.reset(),td.lineStart=cQ,td.lineEnd=dQ},polygonEnd:function(){var r=+NM;ZM.add(r<0?cl+r:r),this.lineStart=this.lineEnd=this.point=Jo},sphere:function(){ZM.add(cl)}};function cQ(){td.point=pQ}function dQ(){Q8(Y8,J8)}function pQ(n,r){td.point=Q8,Y8=n,J8=r,DN=n*=Pr,ON=xr(r=(r*=Pr)/2+OM),PN=pr(r)}function Q8(n,r){var t=(n*=Pr)-DN,i=t>=0?1:-1,o=i*t,a=xr(r=(r*=Pr)/2+OM),s=pr(r),u=PN*s,p=ON*a+u*xr(o),m=u*i*pr(o);NM.add(Ws(m,p)),DN=n,ON=a,PN=s}function fQ(n){return ZM.reset(),Xu(n,td),2*ZM}function LM(n){return[Ws(n[1],n[0]),Jl(n[2])]}function Rm(n){var r=n[0],t=n[1],i=xr(t);return[i*xr(r),i*pr(r),pr(t)]}function FM(n,r){return n[0]*r[0]+n[1]*r[1]+n[2]*r[2]}function k_(n,r){return[n[1]*r[2]-n[2]*r[1],n[2]*r[0]-n[0]*r[2],n[0]*r[1]-n[1]*r[0]]}function IN(n,r){n[0]+=r[0],n[1]+=r[1],n[2]+=r[2]}function BM(n,r){return[n[0]*r,n[1]*r,n[2]*r]}function UM(n){var r=Ha(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=r,n[1]/=r,n[2]/=r}var aa,Ql,pa,ku,Nm,K8,X8,E_,Bf,sp,T1=Ff(),lp={point:RN,lineStart:e7,lineEnd:t7,polygonStart:function(){lp.point=n7,lp.lineStart=hQ,lp.lineEnd=mQ,T1.reset(),td.polygonStart()},polygonEnd:function(){td.polygonEnd(),lp.point=RN,lp.lineStart=e7,lp.lineEnd=t7,NM<0?(aa=-(pa=180),Ql=-(ku=90)):T1>Tr?ku=90:T1<-Tr&&(Ql=-90),sp[0]=aa,sp[1]=pa}};function RN(n,r){Bf.push(sp=[aa=n,pa=n]),r<Ql&&(Ql=r),r>ku&&(ku=r)}function $8(n,r){var t=Rm([n*Pr,r*Pr]);if(E_){var i=k_(E_,t),a=k_([i[1],-i[0],0],i);UM(a),a=LM(a);var m,s=n-Nm,u=s>0?1:-1,p=a[0]*wo*u,b=Vi(s)>180;b^(u*Nm<p&&p<u*n)?(m=a[1]*wo)>ku&&(ku=m):b^(u*Nm<(p=(p+360)%360-180)&&p<u*n)?(m=-a[1]*wo)<Ql&&(Ql=m):(r<Ql&&(Ql=r),r>ku&&(ku=r)),b?n<Nm?Kl(aa,n)>Kl(aa,pa)&&(pa=n):Kl(n,pa)>Kl(aa,pa)&&(aa=n):pa>=aa?(n<aa&&(aa=n),n>pa&&(pa=n)):n>Nm?Kl(aa,n)>Kl(aa,pa)&&(pa=n):Kl(n,pa)>Kl(aa,pa)&&(aa=n)}else Bf.push(sp=[aa=n,pa=n]);r<Ql&&(Ql=r),r>ku&&(ku=r),E_=t,Nm=n}function e7(){lp.point=$8}function t7(){sp[0]=aa,sp[1]=pa,lp.point=RN,E_=null}function n7(n,r){if(E_){var t=n-Nm;T1.add(Vi(t)>180?t+(t>0?360:-360):t)}else K8=n,X8=r;td.point(n,r),$8(n,r)}function hQ(){td.lineStart()}function mQ(){n7(K8,X8),td.lineEnd(),Vi(T1)>Tr&&(aa=-(pa=180)),sp[0]=aa,sp[1]=pa,E_=null}function Kl(n,r){return(r-=n)<0?r+360:r}function vQ(n,r){return n[0]-r[0]}function r7(n,r){return n[0]<=n[1]?n[0]<=r&&r<=n[1]:r<n[0]||n[1]<r}function gQ(n){var r,t,i,o,a,s,u;if(ku=pa=-(aa=Ql=1/0),Bf=[],Xu(n,lp),t=Bf.length){for(Bf.sort(vQ),r=1,a=[i=Bf[0]];r<t;++r)r7(i,(o=Bf[r])[0])||r7(i,o[1])?(Kl(i[0],o[1])>Kl(i[0],i[1])&&(i[1]=o[1]),Kl(o[0],i[1])>Kl(i[0],i[1])&&(i[0]=o[0])):a.push(i=o);for(s=-1/0,r=0,i=a[t=a.length-1];r<=t;i=o,++r)(u=Kl(i[1],(o=a[r])[0]))>s&&(s=u,aa=o[0],pa=i[1])}return Bf=sp=null,aa===1/0||Ql===1/0?[[NaN,NaN],[NaN,NaN]]:[[aa,Ql],[pa,ku]]}var x1,HM,VM,qM,jM,zM,WM,GM,NN,ZN,LN,i7,o7,Gs,Ys,Js,$u={sphere:Jo,point:FN,lineStart:a7,lineEnd:s7,polygonStart:function(){$u.lineStart=bQ,$u.lineEnd=CQ},polygonEnd:function(){$u.lineStart=a7,$u.lineEnd=s7}};function FN(n,r){n*=Pr;var t=xr(r*=Pr);w1(t*xr(n),t*pr(n),pr(r))}function w1(n,r,t){++x1,VM+=(n-VM)/x1,qM+=(r-qM)/x1,jM+=(t-jM)/x1}function a7(){$u.point=_Q}function _Q(n,r){n*=Pr;var t=xr(r*=Pr);Gs=t*xr(n),Ys=t*pr(n),Js=pr(r),$u.point=yQ,w1(Gs,Ys,Js)}function yQ(n,r){n*=Pr;var t=xr(r*=Pr),i=t*xr(n),o=t*pr(n),a=pr(r),s=Ws(Ha((s=Ys*a-Js*o)*s+(s=Js*i-Gs*a)*s+(s=Gs*o-Ys*i)*s),Gs*i+Ys*o+Js*a);HM+=s,zM+=s*(Gs+(Gs=i)),WM+=s*(Ys+(Ys=o)),GM+=s*(Js+(Js=a)),w1(Gs,Ys,Js)}function s7(){$u.point=FN}function bQ(){$u.point=SQ}function CQ(){l7(i7,o7),$u.point=FN}function SQ(n,r){i7=n,o7=r,n*=Pr,r*=Pr,$u.point=l7;var t=xr(r);Gs=t*xr(n),Ys=t*pr(n),Js=pr(r),w1(Gs,Ys,Js)}function l7(n,r){n*=Pr;var t=xr(r*=Pr),i=t*xr(n),o=t*pr(n),a=pr(r),s=Ys*a-Js*o,u=Js*i-Gs*a,p=Gs*o-Ys*i,m=Ha(s*s+u*u+p*p),b=Jl(m),R=m&&-b/m;NN+=R*s,ZN+=R*u,LN+=R*p,HM+=b,zM+=b*(Gs+(Gs=i)),WM+=b*(Ys+(Ys=o)),GM+=b*(Js+(Js=a)),w1(Gs,Ys,Js)}function TQ(n){x1=HM=VM=qM=jM=zM=WM=GM=NN=ZN=LN=0,Xu(n,$u);var r=NN,t=ZN,i=LN,o=r*r+t*t+i*i;return o<1e-12&&(r=zM,t=WM,i=GM,HM<Tr&&(r=VM,t=qM,i=jM),(o=r*r+t*t+i*i)<1e-12)?[NaN,NaN]:[Ws(t,r)*wo,Jl(i/Ha(o))*wo]}function M_(n){return function(){return n}}function BN(n,r){function t(i,o){return i=n(i,o),r(i[0],i[1])}return n.invert&&r.invert&&(t.invert=function(i,o){return(i=r.invert(i,o))&&n.invert(i[0],i[1])}),t}function UN(n,r){return[n>Di?n-cl:n<-Di?n+cl:n,r]}function HN(n,r,t){return(n%=cl)?r||t?BN(c7(n),d7(r,t)):c7(n):r||t?d7(r,t):UN}function u7(n){return function(r,t){return[(r+=n)>Di?r-cl:r<-Di?r+cl:r,t]}}function c7(n){var r=u7(n);return r.invert=u7(-n),r}function d7(n,r){var t=xr(n),i=pr(n),o=xr(r),a=pr(r);function s(u,p){var m=xr(p),b=xr(u)*m,R=pr(u)*m,F=pr(p),G=F*t+b*i;return[Ws(R*o-G*a,b*t-F*i),Jl(G*o+R*a)]}return s.invert=function(u,p){var m=xr(p),b=xr(u)*m,R=pr(u)*m,F=pr(p),G=F*o-R*a;return[Ws(R*o+F*a,b*t+G*i),Jl(G*t-b*i)]},s}function p7(n){function r(t){return(t=n(t[0]*Pr,t[1]*Pr))[0]*=wo,t[1]*=wo,t}return n=HN(n[0]*Pr,n[1]*Pr,n.length>2?n[2]*Pr:0),r.invert=function(t){return(t=n.invert(t[0]*Pr,t[1]*Pr))[0]*=wo,t[1]*=wo,t},r}function f7(n,r,t,i,o,a){if(t){var s=xr(r),u=pr(r),p=i*t;null==o?(o=r+i*cl,a=r-p/2):(o=h7(s,o),a=h7(s,a),(i>0?o<a:o>a)&&(o+=i*cl));for(var m,b=o;i>0?b>a:b<a;b-=p)m=LM([s,-u*xr(b),-u*pr(b)]),n.point(m[0],m[1])}}function h7(n,r){(r=Rm(r))[0]-=n,UM(r);var t=q8(-r[1]);return((-r[2]<0?-t:t)+cl-Tr)%cl}function xQ(){var i,o,n=M_([0,0]),r=M_(90),t=M_(6),a={point:function(p,m){i.push(p=o(p,m)),p[0]*=wo,p[1]*=wo}};function u(){var p=n.apply(this,arguments),m=r.apply(this,arguments)*Pr,b=t.apply(this,arguments)*Pr;return i=[],o=HN(-p[0]*Pr,-p[1]*Pr,0).invert,f7(a,m,b,1),p={type:"Polygon",coordinates:[i]},i=o=null,p}return u.center=function(p){return arguments.length?(n="function"==typeof p?p:M_([+p[0],+p[1]]),u):n},u.radius=function(p){return arguments.length?(r="function"==typeof p?p:M_(+p),u):r},u.precision=function(p){return arguments.length?(t="function"==typeof p?p:M_(+p),u):t},u}function m7(){var r,n=[];return{point:function(i,o){r.push([i,o])},lineStart:function(){n.push(r=[])},lineEnd:Jo,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var i=n;return n=[],r=null,i}}}function YM(n,r){return Vi(n[0]-r[0])<Tr&&Vi(n[1]-r[1])<Tr}function JM(n,r,t,i){this.x=n,this.z=r,this.o=t,this.e=i,this.v=!1,this.n=this.p=null}function v7(n,r,t,i,o){var u,p,a=[],s=[];if(n.forEach(function(Y){if(!((ee=Y.length-1)<=0)){var ee,lt,pe=Y[0],Ee=Y[ee];if(YM(pe,Ee)){for(o.lineStart(),u=0;u<ee;++u)o.point((pe=Y[u])[0],pe[1]);return void o.lineEnd()}a.push(lt=new JM(pe,Y,null,!0)),s.push(lt.o=new JM(pe,null,lt,!1)),a.push(lt=new JM(Ee,Y,null,!1)),s.push(lt.o=new JM(Ee,null,lt,!0))}}),a.length){for(s.sort(r),g7(a),g7(s),u=0,p=s.length;u<p;++u)s[u].e=t=!t;for(var b,R,m=a[0];;){for(var F=m,G=!0;F.v;)if((F=F.n)===m)return;b=F.z,o.lineStart();do{if(F.v=F.o.v=!0,F.e){if(G)for(u=0,p=b.length;u<p;++u)o.point((R=b[u])[0],R[1]);else i(F.x,F.n.x,1,o);F=F.n}else{if(G)for(u=(b=F.p.z).length-1;u>=0;--u)o.point((R=b[u])[0],R[1]);else i(F.x,F.p.x,-1,o);F=F.p}b=(F=F.o).z,G=!G}while(!F.v);o.lineEnd()}}}function g7(n){if(r=n.length){for(var r,o,t=0,i=n[0];++t<r;)i.n=o=n[t],o.p=i,i=o;i.n=o=n[0],o.p=i}}UN.invert=UN;var VN=Ff();function _7(n,r){var t=r[0],i=r[1],o=pr(i),a=[pr(t),-xr(t),0],s=0,u=0;VN.reset(),1===o?i=oa+Tr:-1===o&&(i=-oa-Tr);for(var p=0,m=n.length;p<m;++p)if(R=(b=n[p]).length)for(var b,R,F=b[R-1],G=F[0],Y=F[1]/2+OM,ee=pr(Y),pe=xr(Y),Ee=0;Ee<R;++Ee,G=tt,ee=mt,pe=Ke,F=lt){var lt=b[Ee],tt=lt[0],it=lt[1]/2+OM,mt=pr(it),Ke=xr(it),et=tt-G,Rt=et>=0?1:-1,kt=Rt*et,fn=kt>Di,Jt=ee*mt;if(VN.add(Ws(Jt*Rt*pr(kt),pe*Ke+Jt*xr(kt))),s+=fn?et+Rt*cl:et,fn^G>=t^tt>=t){var st=k_(Rm(F),Rm(lt));UM(st);var Ot=k_(a,st);UM(Ot);var gn=(fn^et>=0?-1:1)*Jl(Ot[2]);(i>gn||i===gn&&(st[0]||st[1]))&&(u+=fn^et>=0?1:-1)}}return(s<-Tr||s<Tr&&VN<-Tr)^1&u}function y7(n,r,t,i){return function(o){var m,b,R,a=r(o),s=m7(),u=r(s),p=!1,F={point:G,lineStart:ee,lineEnd:pe,polygonStart:function(){F.point=Ee,F.lineStart=lt,F.lineEnd=tt,b=[],m=[]},polygonEnd:function(){F.point=G,F.lineStart=ee,F.lineEnd=pe,b=fm(b);var mt=_7(m,i);b.length?(p||(o.polygonStart(),p=!0),v7(b,kQ,mt,t,o)):mt&&(p||(o.polygonStart(),p=!0),o.lineStart(),t(null,null,1,o),o.lineEnd()),p&&(o.polygonEnd(),p=!1),b=m=null},sphere:function(){o.polygonStart(),o.lineStart(),t(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function G(it,mt){n(it,mt)&&o.point(it,mt)}function Y(it,mt){a.point(it,mt)}function ee(){F.point=Y,a.lineStart()}function pe(){F.point=G,a.lineEnd()}function Ee(it,mt){R.push([it,mt]),u.point(it,mt)}function lt(){u.lineStart(),R=[]}function tt(){Ee(R[0][0],R[0][1]),u.lineEnd();var Ke,Rt,kt,fn,it=u.clean(),mt=s.result(),et=mt.length;if(R.pop(),m.push(R),R=null,et){if(1&it){if((Rt=(kt=mt[0]).length-1)>0){for(p||(o.polygonStart(),p=!0),o.lineStart(),Ke=0;Ke<Rt;++Ke)o.point((fn=kt[Ke])[0],fn[1]);o.lineEnd()}return}et>1&&2&it&&mt.push(mt.pop().concat(mt.shift())),b.push(mt.filter(wQ))}}return F}}function wQ(n){return n.length>1}function kQ(n,r){return((n=n.x)[0]<0?n[1]-oa-Tr:oa-n[1])-((r=r.x)[0]<0?r[1]-oa-Tr:oa-r[1])}var qN=y7(function(){return!0},function(n){var o,r=NaN,t=NaN,i=NaN;return{lineStart:function(){n.lineStart(),o=1},point:function(s,u){var p=s>0?Di:-Di,m=Vi(s-r);Vi(m-Di)<Tr?(n.point(r,t=(t+u)/2>0?oa:-oa),n.point(i,t),n.lineEnd(),n.lineStart(),n.point(p,t),n.point(s,t),o=0):i!==p&&m>=Di&&(Vi(r-i)<Tr&&(r-=i*Tr),Vi(s-p)<Tr&&(s-=p*Tr),t=function(n,r,t,i){var o,a,s=pr(n-t);return Vi(s)>Tr?w_((pr(r)*(a=xr(i))*pr(t)-pr(i)*(o=xr(r))*pr(n))/(o*a*s)):(r+i)/2}(r,t,s,u),n.point(i,t),n.lineEnd(),n.lineStart(),n.point(p,t),o=0),n.point(r=s,t=u),i=p},lineEnd:function(){n.lineEnd(),r=t=NaN},clean:function(){return 2-o}}},function(n,r,t,i){var o;if(null==n)i.point(-Di,o=t*oa),i.point(0,o),i.point(Di,o),i.point(Di,0),i.point(Di,-o),i.point(0,-o),i.point(-Di,-o),i.point(-Di,0),i.point(-Di,o);else if(Vi(n[0]-r[0])>Tr){var a=n[0]<r[0]?Di:-Di;i.point(-a,o=t*a/2),i.point(0,o),i.point(a,o)}else i.point(r[0],r[1])},[-Di,-oa]);function b7(n){var r=xr(n),t=6*Pr,i=r>0,o=Vi(r)>Tr;function s(b,R){return xr(b)*xr(R)>r}function p(b,R,F){var ee=[1,0,0],pe=k_(Rm(b),Rm(R)),Ee=FM(pe,pe),lt=pe[0],tt=Ee-lt*lt;if(!tt)return!F&&b;var it=r*Ee/tt,mt=-r*lt/tt,Ke=k_(ee,pe),et=BM(ee,it);IN(et,BM(pe,mt));var kt=Ke,fn=FM(et,kt),Jt=FM(kt,kt),st=fn*fn-Jt*(FM(et,et)-1);if(!(st<0)){var Ot=Ha(st),gn=BM(kt,(-fn-Ot)/Jt);if(IN(gn,et),gn=LM(gn),!F)return gn;var gr,pn=b[0],kn=R[0],Ln=b[1],nr=R[1];kn<pn&&(gr=pn,pn=kn,kn=gr);var Wr=kn-pn,ar=Vi(Wr-Di)<Tr;if(!ar&&nr<Ln&&(gr=Ln,Ln=nr,nr=gr),ar||Wr<Tr?ar?Ln+nr>0^gn[1]<(Vi(gn[0]-pn)<Tr?Ln:nr):Ln<=gn[1]&&gn[1]<=nr:Wr>Di^(pn<=gn[0]&&gn[0]<=kn)){var si=BM(kt,(-fn+Ot)/Jt);return IN(si,et),[gn,LM(si)]}}}function m(b,R){var F=i?n:Di-n,G=0;return b<-F?G|=1:b>F&&(G|=2),R<-F?G|=4:R>F&&(G|=8),G}return y7(s,function(b){var R,F,G,Y,ee;return{lineStart:function(){Y=G=!1,ee=1},point:function(Ee,lt){var it,tt=[Ee,lt],mt=s(Ee,lt),Ke=i?mt?0:m(Ee,lt):mt?m(Ee+(Ee<0?Di:-Di),lt):0;if(!R&&(Y=G=mt)&&b.lineStart(),mt!==G&&(!(it=p(R,tt))||YM(R,it)||YM(tt,it))&&(tt[0]+=Tr,tt[1]+=Tr,mt=s(tt[0],tt[1])),mt!==G)ee=0,mt?(b.lineStart(),it=p(tt,R),b.point(it[0],it[1])):(it=p(R,tt),b.point(it[0],it[1]),b.lineEnd()),R=it;else if(o&&R&&i^mt){var et;!(Ke&F)&&(et=p(tt,R,!0))&&(ee=0,i?(b.lineStart(),b.point(et[0][0],et[0][1]),b.point(et[1][0],et[1][1]),b.lineEnd()):(b.point(et[1][0],et[1][1]),b.lineEnd(),b.lineStart(),b.point(et[0][0],et[0][1])))}mt&&(!R||!YM(R,tt))&&b.point(tt[0],tt[1]),R=tt,G=mt,F=Ke},lineEnd:function(){G&&b.lineEnd(),R=null},clean:function(){return ee|(Y&&G)<<1}}},function(b,R,F,G){f7(G,n,t,F,b,R)},i?[0,-n]:[-Di,n-Di])}var k1=1e9,QM=-k1;function KM(n,r,t,i){function o(m,b){return n<=m&&m<=t&&r<=b&&b<=i}function a(m,b,R,F){var G=0,Y=0;if(null==m||(G=s(m,R))!==(Y=s(b,R))||p(m,b)<0^R>0)do{F.point(0===G||3===G?n:t,G>1?i:r)}while((G=(G+R+4)%4)!==Y);else F.point(b[0],b[1])}function s(m,b){return Vi(m[0]-n)<Tr?b>0?0:3:Vi(m[0]-t)<Tr?b>0?2:1:Vi(m[1]-r)<Tr?b>0?1:0:b>0?3:2}function u(m,b){return p(m.x,b.x)}function p(m,b){var R=s(m,1),F=s(b,1);return R!==F?R-F:0===R?b[1]-m[1]:1===R?m[0]-b[0]:2===R?m[1]-b[1]:b[0]-m[0]}return function(m){var F,G,Y,ee,pe,Ee,lt,tt,it,mt,Ke,b=m,R=m7(),et={point:Rt,lineStart:function(){et.point=gn,G&&G.push(Y=[]),mt=!0,it=!1,lt=tt=NaN},lineEnd:function(){F&&(gn(ee,pe),Ee&&it&&R.rejoin(),F.push(R.result())),et.point=Rt,it&&b.lineEnd()},polygonStart:function(){b=R,F=[],G=[],Ke=!0},polygonEnd:function(){var pn=function(){for(var pn=0,kn=0,Ln=G.length;kn<Ln;++kn)for(var Qr,si,nr=G[kn],gr=1,Wr=nr.length,ar=nr[0],_r=ar[0],Li=ar[1];gr<Wr;++gr)Qr=_r,si=Li,_r=(ar=nr[gr])[0],Li=ar[1],si<=i?Li>i&&(_r-Qr)*(i-si)>(Li-si)*(n-Qr)&&++pn:Li<=i&&(_r-Qr)*(i-si)<(Li-si)*(n-Qr)&&--pn;return pn}(),kn=Ke&&pn,Ln=(F=fm(F)).length;(kn||Ln)&&(m.polygonStart(),kn&&(m.lineStart(),a(null,null,1,m),m.lineEnd()),Ln&&v7(F,u,pn,a,m),m.polygonEnd()),b=m,F=G=Y=null}};function Rt(pn,kn){o(pn,kn)&&b.point(pn,kn)}function gn(pn,kn){var Ln=o(pn,kn);if(G&&Y.push([pn,kn]),mt)ee=pn,pe=kn,Ee=Ln,mt=!1,Ln&&(b.lineStart(),b.point(pn,kn));else if(Ln&&it)b.point(pn,kn);else{var nr=[lt=Math.max(QM,Math.min(k1,lt)),tt=Math.max(QM,Math.min(k1,tt))],gr=[pn=Math.max(QM,Math.min(k1,pn)),kn=Math.max(QM,Math.min(k1,kn))];!function(n,r,t,i,o,a){var Y,s=n[0],u=n[1],b=0,R=1,F=r[0]-s,G=r[1]-u;if(Y=t-s,F||!(Y>0)){if(Y/=F,F<0){if(Y<b)return;Y<R&&(R=Y)}else if(F>0){if(Y>R)return;Y>b&&(b=Y)}if(Y=o-s,F||!(Y<0)){if(Y/=F,F<0){if(Y>R)return;Y>b&&(b=Y)}else if(F>0){if(Y<b)return;Y<R&&(R=Y)}if(Y=i-u,G||!(Y>0)){if(Y/=G,G<0){if(Y<b)return;Y<R&&(R=Y)}else if(G>0){if(Y>R)return;Y>b&&(b=Y)}if(Y=a-u,G||!(Y<0)){if(Y/=G,G<0){if(Y>R)return;Y>b&&(b=Y)}else if(G>0){if(Y<b)return;Y<R&&(R=Y)}return b>0&&(n[0]=s+b*F,n[1]=u+b*G),R<1&&(r[0]=s+R*F,r[1]=u+R*G),!0}}}}}(nr,gr,n,r,t,i)?Ln&&(b.lineStart(),b.point(pn,kn),Ke=!1):(it||(b.lineStart(),b.point(nr[0],nr[1])),b.point(gr[0],gr[1]),Ln||b.lineEnd(),Ke=!1)}lt=pn,tt=kn,it=Ln}return et}}function OQ(){var o,a,s,n=0,r=0,t=960,i=500;return s={stream:function(p){return o&&a===p?o:o=KM(n,r,t,i)(a=p)},extent:function(p){return arguments.length?(n=+p[0][0],r=+p[0][1],t=+p[1][0],i=+p[1][1],o=a=null,s):[[n,r],[t,i]]}}}var zN,XM,$M,jN=Ff(),A_={sphere:Jo,point:Jo,lineStart:function(){A_.point=RQ,A_.lineEnd=IQ},lineEnd:Jo,polygonStart:Jo,polygonEnd:Jo};function IQ(){A_.point=A_.lineEnd=Jo}function RQ(n,r){zN=n*=Pr,XM=pr(r*=Pr),$M=xr(r),A_.point=NQ}function NQ(n,r){n*=Pr;var t=pr(r*=Pr),i=xr(r),o=Vi(n-zN),a=xr(o),u=i*pr(o),p=$M*t-XM*i*a,m=XM*t+$M*i*a;jN.add(Ws(Ha(u*u+p*p),m)),zN=n,XM=t,$M=i}function C7(n){return jN.reset(),Xu(n,A_),+jN}var WN=[null,null],ZQ={type:"LineString",coordinates:WN};function E1(n,r){return WN[0]=n,WN[1]=r,C7(ZQ)}var S7={Feature:function(r,t){return eA(r.geometry,t)},FeatureCollection:function(r,t){for(var i=r.features,o=-1,a=i.length;++o<a;)if(eA(i[o].geometry,t))return!0;return!1}},T7={Sphere:function(){return!0},Point:function(r,t){return x7(r.coordinates,t)},MultiPoint:function(r,t){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(x7(i[o],t))return!0;return!1},LineString:function(r,t){return w7(r.coordinates,t)},MultiLineString:function(r,t){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(w7(i[o],t))return!0;return!1},Polygon:function(r,t){return k7(r.coordinates,t)},MultiPolygon:function(r,t){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(k7(i[o],t))return!0;return!1},GeometryCollection:function(r,t){for(var i=r.geometries,o=-1,a=i.length;++o<a;)if(eA(i[o],t))return!0;return!1}};function eA(n,r){return!(!n||!T7.hasOwnProperty(n.type))&&T7[n.type](n,r)}function x7(n,r){return 0===E1(n,r)}function w7(n,r){var t=E1(n[0],n[1]);return E1(n[0],r)+E1(r,n[1])<=t+Tr}function k7(n,r){return!!_7(n.map(LQ),E7(r))}function LQ(n){return(n=n.map(E7)).pop(),n}function E7(n){return[n[0]*Pr,n[1]*Pr]}function FQ(n,r){return(n&&S7.hasOwnProperty(n.type)?S7[n.type]:eA)(n,r)}function M7(n,r,t){var i=Vs(n,r-Tr,t).concat(r);return function(o){return i.map(function(a){return[o,a]})}}function A7(n,r,t){var i=Vs(n,r-Tr,t).concat(r);return function(o){return i.map(function(a){return[a,o]})}}function D7(){var n,r,t,i,o,a,s,u,F,G,Y,ee,p=10,m=p,b=90,R=360,pe=2.5;function Ee(){return{type:"MultiLineString",coordinates:lt()}}function lt(){return Vs(PM(i/b)*b,t,b).map(Y).concat(Vs(PM(u/R)*R,s,R).map(ee)).concat(Vs(PM(r/p)*p,n,p).filter(function(tt){return Vi(tt%b)>Tr}).map(F)).concat(Vs(PM(a/m)*m,o,m).filter(function(tt){return Vi(tt%R)>Tr}).map(G))}return Ee.lines=function(){return lt().map(function(tt){return{type:"LineString",coordinates:tt}})},Ee.outline=function(){return{type:"Polygon",coordinates:[Y(i).concat(ee(s).slice(1),Y(t).reverse().slice(1),ee(u).reverse().slice(1))]}},Ee.extent=function(tt){return arguments.length?Ee.extentMajor(tt).extentMinor(tt):Ee.extentMinor()},Ee.extentMajor=function(tt){return arguments.length?(u=+tt[0][1],s=+tt[1][1],(i=+tt[0][0])>(t=+tt[1][0])&&(tt=i,i=t,t=tt),u>s&&(tt=u,u=s,s=tt),Ee.precision(pe)):[[i,u],[t,s]]},Ee.extentMinor=function(tt){return arguments.length?(a=+tt[0][1],o=+tt[1][1],(r=+tt[0][0])>(n=+tt[1][0])&&(tt=r,r=n,n=tt),a>o&&(tt=a,a=o,o=tt),Ee.precision(pe)):[[r,a],[n,o]]},Ee.step=function(tt){return arguments.length?Ee.stepMajor(tt).stepMinor(tt):Ee.stepMinor()},Ee.stepMajor=function(tt){return arguments.length?(b=+tt[0],R=+tt[1],Ee):[b,R]},Ee.stepMinor=function(tt){return arguments.length?(p=+tt[0],m=+tt[1],Ee):[p,m]},Ee.precision=function(tt){return arguments.length?(pe=+tt,F=M7(a,o,90),G=A7(r,n,pe),Y=M7(u,s,90),ee=A7(i,t,pe),Ee):pe},Ee.extentMajor([[-180,-90+Tr],[180,90-Tr]]).extentMinor([[-180,-80-Tr],[180,80+Tr]])}function BQ(){return D7()()}function UQ(n,r){var t=n[0]*Pr,i=n[1]*Pr,o=r[0]*Pr,a=r[1]*Pr,s=xr(i),u=pr(i),p=xr(a),m=pr(a),b=s*xr(t),R=s*pr(t),F=p*xr(o),G=p*pr(o),Y=2*Jl(Ha(j8(a-i)+s*p*j8(o-t))),ee=pr(Y),pe=Y?function(Ee){var lt=pr(Ee*=Y)/ee,tt=pr(Y-Ee)/ee,it=tt*b+lt*F,mt=tt*R+lt*G,Ke=tt*u+lt*m;return[Ws(mt,it)*wo,Ws(Ke,Ha(it*it+mt*mt))*wo]}:function(){return[t*wo,i*wo]};return pe.distance=Y,pe}function Zm(n){return n}var O7,P7,JN,QN,GN=Ff(),YN=Ff(),Uf={point:Jo,lineStart:Jo,lineEnd:Jo,polygonStart:function(){Uf.lineStart=HQ,Uf.lineEnd=qQ},polygonEnd:function(){Uf.lineStart=Uf.lineEnd=Uf.point=Jo,GN.add(Vi(YN)),YN.reset()},result:function(){var r=GN/2;return GN.reset(),r}};function HQ(){Uf.point=VQ}function VQ(n,r){Uf.point=I7,O7=JN=n,P7=QN=r}function I7(n,r){YN.add(QN*n-JN*r),JN=n,QN=r}function qQ(){I7(O7,P7)}var N7,Z7,nd,rd,R7=Uf,D_=1/0,tA=D_,M1=-D_,nA=M1,rA={point:function(n,r){n<D_&&(D_=n),n>M1&&(M1=n),r<tA&&(tA=r),r>nA&&(nA=r)},lineStart:Jo,lineEnd:Jo,polygonStart:Jo,polygonEnd:Jo,result:function(){var r=[[D_,tA],[M1,nA]];return M1=nA=-(tA=D_=1/0),r}},KN=0,XN=0,A1=0,iA=0,oA=0,O_=0,$N=0,e6=0,D1=0,ec={point:Lm,lineStart:L7,lineEnd:F7,polygonStart:function(){ec.lineStart=YQ,ec.lineEnd=JQ},polygonEnd:function(){ec.point=Lm,ec.lineStart=L7,ec.lineEnd=F7},result:function(){var r=D1?[$N/D1,e6/D1]:O_?[iA/O_,oA/O_]:A1?[KN/A1,XN/A1]:[NaN,NaN];return KN=XN=A1=iA=oA=O_=$N=e6=D1=0,r}};function Lm(n,r){KN+=n,XN+=r,++A1}function L7(){ec.point=WQ}function WQ(n,r){ec.point=GQ,Lm(nd=n,rd=r)}function GQ(n,r){var t=n-nd,i=r-rd,o=Ha(t*t+i*i);iA+=o*(nd+n)/2,oA+=o*(rd+r)/2,O_+=o,Lm(nd=n,rd=r)}function F7(){ec.point=Lm}function YQ(){ec.point=QQ}function JQ(){B7(N7,Z7)}function QQ(n,r){ec.point=B7,Lm(N7=nd=n,Z7=rd=r)}function B7(n,r){var t=n-nd,i=r-rd,o=Ha(t*t+i*i);iA+=o*(nd+n)/2,oA+=o*(rd+r)/2,O_+=o,$N+=(o=rd*n-nd*r)*(nd+n),e6+=o*(rd+r),D1+=3*o,Lm(nd=n,rd=r)}var U7=ec;function H7(n){this._context=n}H7.prototype={_radius:4.5,pointRadius:function(r){return this._radius=r,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(r,t){switch(this._point){case 0:this._context.moveTo(r,t),this._point=1;break;case 1:this._context.lineTo(r,t);break;default:this._context.moveTo(r+this._radius,t),this._context.arc(r,t,this._radius,0,cl)}},result:Jo};var n6,V7,q7,O1,P1,t6=Ff(),aA={point:Jo,lineStart:function(){aA.point=KQ},lineEnd:function(){n6&&j7(V7,q7),aA.point=Jo},polygonStart:function(){n6=!0},polygonEnd:function(){n6=null},result:function(){var r=+t6;return t6.reset(),r}};function KQ(n,r){aA.point=j7,V7=O1=n,q7=P1=r}function j7(n,r){t6.add(Ha((O1-=n)*O1+(P1-=r)*P1)),O1=n,P1=r}var z7=aA;function W7(){this._string=[]}function G7(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function XQ(n,r){var i,o,t=4.5;function a(s){return s&&("function"==typeof t&&o.pointRadius(+t.apply(this,arguments)),Xu(s,i(o))),o.result()}return a.area=function(s){return Xu(s,i(R7)),R7.result()},a.measure=function(s){return Xu(s,i(z7)),z7.result()},a.bounds=function(s){return Xu(s,i(rA)),rA.result()},a.centroid=function(s){return Xu(s,i(U7)),U7.result()},a.projection=function(s){return arguments.length?(i=null==s?(n=null,Zm):(n=s).stream,a):n},a.context=function(s){return arguments.length?(o=null==s?(r=null,new W7):new H7(r=s),"function"!=typeof t&&o.pointRadius(t),a):r},a.pointRadius=function(s){return arguments.length?(t="function"==typeof s?s:(o.pointRadius(+s),+s),a):t},a.projection(n).context(r)}function $Q(n){return{stream:I1(n)}}function I1(n){return function(r){var t=new r6;for(var i in n)t[i]=n[i];return t.stream=r,t}}function r6(){}function i6(n,r,t){var i=n.clipExtent&&n.clipExtent();return n.scale(150).translate([0,0]),null!=i&&n.clipExtent(null),Xu(t,n.stream(rA)),r(rA.result()),null!=i&&n.clipExtent(i),n}function sA(n,r,t){return i6(n,function(i){var o=r[1][0]-r[0][0],a=r[1][1]-r[0][1],s=Math.min(o/(i[1][0]-i[0][0]),a/(i[1][1]-i[0][1])),u=+r[0][0]+(o-s*(i[1][0]+i[0][0]))/2,p=+r[0][1]+(a-s*(i[1][1]+i[0][1]))/2;n.scale(150*s).translate([u,p])},t)}function o6(n,r,t){return sA(n,[[0,0],r],t)}function a6(n,r,t){return i6(n,function(i){var o=+r,a=o/(i[1][0]-i[0][0]),s=(o-a*(i[1][0]+i[0][0]))/2,u=-a*i[0][1];n.scale(150*a).translate([s,u])},t)}function s6(n,r,t){return i6(n,function(i){var o=+r,a=o/(i[1][1]-i[0][1]),s=-a*i[0][0],u=(o-a*(i[1][1]+i[0][1]))/2;n.scale(150*a).translate([s,u])},t)}W7.prototype={_radius:4.5,_circle:G7(4.5),pointRadius:function(r){return(r=+r)!==this._radius&&(this._radius=r,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(r,t){switch(this._point){case 0:this._string.push("M",r,",",t),this._point=1;break;case 1:this._string.push("L",r,",",t);break;default:null==this._circle&&(this._circle=G7(this._radius)),this._string.push("M",r,",",t,this._circle)}},result:function(){if(this._string.length){var r=this._string.join("");return this._string=[],r}return null}},r6.prototype={constructor:r6,point:function(r,t){this.stream.point(r,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var eK=xr(30*Pr);function J7(n,r){return+r?function(n,r){function t(i,o,a,s,u,p,m,b,R,F,G,Y,ee,pe){var Ee=m-i,lt=b-o,tt=Ee*Ee+lt*lt;if(tt>4*r&&ee--){var it=s+F,mt=u+G,Ke=p+Y,et=Ha(it*it+mt*mt+Ke*Ke),Rt=Jl(Ke/=et),kt=Vi(Vi(Ke)-1)<Tr||Vi(a-R)<Tr?(a+R)/2:Ws(mt,it),fn=n(kt,Rt),Jt=fn[0],st=fn[1],Ot=Jt-i,gn=st-o,pn=lt*Ot-Ee*gn;(pn*pn/tt>r||Vi((Ee*Ot+lt*gn)/tt-.5)>.3||s*F+u*G+p*Y<eK)&&(t(i,o,a,s,u,p,Jt,st,kt,it/=et,mt/=et,Ke,ee,pe),pe.point(Jt,st),t(Jt,st,kt,it,mt,Ke,m,b,R,F,G,Y,ee,pe))}}return function(i){var o,a,s,u,p,m,b,R,F,G,Y,ee,pe={point:Ee,lineStart:lt,lineEnd:it,polygonStart:function(){i.polygonStart(),pe.lineStart=mt},polygonEnd:function(){i.polygonEnd(),pe.lineStart=lt}};function Ee(Rt,kt){Rt=n(Rt,kt),i.point(Rt[0],Rt[1])}function lt(){R=NaN,pe.point=tt,i.lineStart()}function tt(Rt,kt){var fn=Rm([Rt,kt]),Jt=n(Rt,kt);t(R,F,b,G,Y,ee,R=Jt[0],F=Jt[1],b=Rt,G=fn[0],Y=fn[1],ee=fn[2],16,i),i.point(R,F)}function it(){pe.point=Ee,i.lineEnd()}function mt(){lt(),pe.point=Ke,pe.lineEnd=et}function Ke(Rt,kt){tt(o=Rt,kt),a=R,s=F,u=G,p=Y,m=ee,pe.point=tt}function et(){t(R,F,b,G,Y,ee,a,s,o,u,p,m,16,i),pe.lineEnd=it,it()}return pe}}(n,r):function(n){return I1({point:function(t,i){t=n(t,i),this.stream.point(t[0],t[1])}})}(n)}var rK=I1({point:function(r,t){this.stream.point(r*Pr,t*Pr)}});function oK(n,r,t){function i(o,a){return[r+n*o,t-n*a]}return i.invert=function(o,a){return[(o-r)/n,(t-a)/n]},i}function Q7(n,r,t,i){var o=xr(i),a=pr(i),s=o*n,u=a*n,p=o/n,m=a/n,b=(a*t-o*r)/n,R=(a*r+o*t)/n;function F(G,Y){return[s*G-u*Y+r,t-u*G-s*Y]}return F.invert=function(G,Y){return[p*G-m*Y+b,R-m*G-p*Y]},F}function up(n){return l6(function(){return n})()}function l6(n){var r,b,ee,pe,Ee,it,mt,Ke,et,Rt,t=150,i=480,o=250,a=0,s=0,u=0,p=0,m=0,R=0,F=null,G=qN,Y=null,lt=Zm,tt=.5;function kt(Ot){return Ke(Ot[0]*Pr,Ot[1]*Pr)}function fn(Ot){return(Ot=Ke.invert(Ot[0],Ot[1]))&&[Ot[0]*wo,Ot[1]*wo]}function Jt(){var Ot=Q7(t,0,0,R).apply(null,r(a,s)),gn=(R?Q7:oK)(t,i-Ot[0],o-Ot[1],R);return b=HN(u,p,m),mt=BN(r,gn),Ke=BN(b,mt),it=J7(mt,tt),st()}function st(){return et=Rt=null,kt}return kt.stream=function(Ot){return et&&Rt===Ot?et:et=rK(function(n){return I1({point:function(t,i){var o=n(t,i);return this.stream.point(o[0],o[1])}})}(b)(G(it(lt(Rt=Ot)))))},kt.preclip=function(Ot){return arguments.length?(G=Ot,F=void 0,st()):G},kt.postclip=function(Ot){return arguments.length?(lt=Ot,Y=ee=pe=Ee=null,st()):lt},kt.clipAngle=function(Ot){return arguments.length?(G=+Ot?b7(F=Ot*Pr):(F=null,qN),st()):F*wo},kt.clipExtent=function(Ot){return arguments.length?(lt=null==Ot?(Y=ee=pe=Ee=null,Zm):KM(Y=+Ot[0][0],ee=+Ot[0][1],pe=+Ot[1][0],Ee=+Ot[1][1]),st()):null==Y?null:[[Y,ee],[pe,Ee]]},kt.scale=function(Ot){return arguments.length?(t=+Ot,Jt()):t},kt.translate=function(Ot){return arguments.length?(i=+Ot[0],o=+Ot[1],Jt()):[i,o]},kt.center=function(Ot){return arguments.length?(a=Ot[0]%360*Pr,s=Ot[1]%360*Pr,Jt()):[a*wo,s*wo]},kt.rotate=function(Ot){return arguments.length?(u=Ot[0]%360*Pr,p=Ot[1]%360*Pr,m=Ot.length>2?Ot[2]%360*Pr:0,Jt()):[u*wo,p*wo,m*wo]},kt.angle=function(Ot){return arguments.length?(R=Ot%360*Pr,Jt()):R*wo},kt.precision=function(Ot){return arguments.length?(it=J7(mt,tt=Ot*Ot),st()):Ha(tt)},kt.fitExtent=function(Ot,gn){return sA(kt,Ot,gn)},kt.fitSize=function(Ot,gn){return o6(kt,Ot,gn)},kt.fitWidth=function(Ot,gn){return a6(kt,Ot,gn)},kt.fitHeight=function(Ot,gn){return s6(kt,Ot,gn)},function(){return r=n.apply(this,arguments),kt.invert=r.invert&&fn,Jt()}}function u6(n){var r=0,t=Di/3,i=l6(n),o=i(r,t);return o.parallels=function(a){return arguments.length?i(r=a[0]*Pr,t=a[1]*Pr):[r*wo,t*wo]},o}function K7(n,r){var t=pr(n),i=(t+pr(r))/2;if(Vi(i)<Tr)return function(n){var r=xr(n);function t(i,o){return[i*r,pr(o)/r]}return t.invert=function(i,o){return[i/r,Jl(o*r)]},t}(n);var o=1+t*(2*i-t),a=Ha(o)/i;function s(u,p){var m=Ha(o-2*i*pr(p))/i;return[m*pr(u*=i),a-m*xr(u)]}return s.invert=function(u,p){var m=a-p;return[Ws(u,Vi(m))/i*S1(m),Jl((o-(u*u+m*m)*i*i)/(2*i))]},s}function lA(){return u6(K7).scale(155.424).center([0,33.6442])}function X7(){return lA().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function lK(){var n,r,i,a,u,p,t=X7(),o=lA().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=lA().rotate([157,0]).center([-3,19.9]).parallels([8,18]),m={point:function(G,Y){p=[G,Y]}};function b(F){var G=F[0],Y=F[1];return p=null,i.point(G,Y),p||(a.point(G,Y),p)||(u.point(G,Y),p)}function R(){return n=r=null,b}return b.invert=function(F){var G=t.scale(),Y=t.translate(),ee=(F[0]-Y[0])/G,pe=(F[1]-Y[1])/G;return(pe>=.12&&pe<.234&&ee>=-.425&&ee<-.214?o:pe>=.166&&pe<.234&&ee>=-.214&&ee<-.115?s:t).invert(F)},b.stream=function(F){return n&&r===F?n:n=function(n){var r=n.length;return{point:function(i,o){for(var a=-1;++a<r;)n[a].point(i,o)},sphere:function(){for(var i=-1;++i<r;)n[i].sphere()},lineStart:function(){for(var i=-1;++i<r;)n[i].lineStart()},lineEnd:function(){for(var i=-1;++i<r;)n[i].lineEnd()},polygonStart:function(){for(var i=-1;++i<r;)n[i].polygonStart()},polygonEnd:function(){for(var i=-1;++i<r;)n[i].polygonEnd()}}}([t.stream(r=F),o.stream(F),s.stream(F)])},b.precision=function(F){return arguments.length?(t.precision(F),o.precision(F),s.precision(F),R()):t.precision()},b.scale=function(F){return arguments.length?(t.scale(F),o.scale(.35*F),s.scale(F),b.translate(t.translate())):t.scale()},b.translate=function(F){if(!arguments.length)return t.translate();var G=t.scale(),Y=+F[0],ee=+F[1];return i=t.translate(F).clipExtent([[Y-.455*G,ee-.238*G],[Y+.455*G,ee+.238*G]]).stream(m),a=o.translate([Y-.307*G,ee+.201*G]).clipExtent([[Y-.425*G+Tr,ee+.12*G+Tr],[Y-.214*G-Tr,ee+.234*G-Tr]]).stream(m),u=s.translate([Y-.205*G,ee+.212*G]).clipExtent([[Y-.214*G+Tr,ee+.166*G+Tr],[Y-.115*G-Tr,ee+.234*G-Tr]]).stream(m),R()},b.fitExtent=function(F,G){return sA(b,F,G)},b.fitSize=function(F,G){return o6(b,F,G)},b.fitWidth=function(F,G){return a6(b,F,G)},b.fitHeight=function(F,G){return s6(b,F,G)},b.scale(1070)}function $7(n){return function(r,t){var i=xr(r),o=xr(t),a=n(i*o);return[a*o*pr(r),a*pr(t)]}}function R1(n){return function(r,t){var i=Ha(r*r+t*t),o=n(i),a=pr(o),s=xr(o);return[Ws(r*a,i*s),Jl(i&&t*a/i)]}}var c6=$7(function(n){return Ha(2/(1+n))});function uK(){return up(c6).scale(124.75).clipAngle(179.999)}c6.invert=R1(function(n){return 2*Jl(n/2)});var d6=$7(function(n){return(n=q8(n))&&n/pr(n)});function cK(){return up(d6).scale(79.4188).clipAngle(179.999)}function N1(n,r){return[n,IM(MN((oa+r)/2))]}function dK(){return eU(N1).scale(961/cl)}function eU(n){var u,p,m,r=up(n),t=r.center,i=r.scale,o=r.translate,a=r.clipExtent,s=null;function b(){var R=Di*i(),F=r(p7(r.rotate()).invert([0,0]));return a(null==s?[[F[0]-R,F[1]-R],[F[0]+R,F[1]+R]]:n===N1?[[Math.max(F[0]-R,s),u],[Math.min(F[0]+R,p),m]]:[[s,Math.max(F[1]-R,u)],[p,Math.min(F[1]+R,m)]])}return r.scale=function(R){return arguments.length?(i(R),b()):i()},r.translate=function(R){return arguments.length?(o(R),b()):o()},r.center=function(R){return arguments.length?(t(R),b()):t()},r.clipExtent=function(R){return arguments.length?(null==R?s=u=p=m=null:(s=+R[0][0],u=+R[0][1],p=+R[1][0],m=+R[1][1]),b()):null==s?null:[[s,u],[p,m]]},b()}function uA(n){return MN((oa+n)/2)}function tU(n,r){var t=xr(n),i=n===r?pr(n):IM(t/xr(r))/IM(uA(r)/uA(n)),o=t*EN(uA(n),i)/i;if(!i)return N1;function a(s,u){o>0?u<-oa+Tr&&(u=-oa+Tr):u>oa-Tr&&(u=oa-Tr);var p=o/EN(uA(u),i);return[p*pr(i*s),o-p*xr(i*s)]}return a.invert=function(s,u){var p=o-u,m=S1(i)*Ha(s*s+p*p);return[Ws(s,Vi(p))/i*S1(p),2*w_(EN(o/m,1/i))-oa]},a}function pK(){return u6(tU).scale(109.5).parallels([30,30])}function Z1(n,r){return[n,r]}function fK(){return up(Z1).scale(152.63)}function nU(n,r){var t=xr(n),i=n===r?pr(n):(t-xr(r))/(r-n),o=t/i+n;if(Vi(i)<Tr)return Z1;function a(s,u){var p=o-u,m=i*s;return[p*pr(m),o-p*xr(m)]}return a.invert=function(s,u){var p=o-u;return[Ws(s,Vi(p))/i*S1(p),o-S1(i)*Ha(s*s+p*p)]},a}function hK(){return u6(nU).scale(131.154).center([0,13.9389])}function p6(n,r){var t=xr(r),i=xr(n)*t;return[t*pr(n)/i,pr(r)/i]}function mK(){return up(p6).scale(144.049).clipAngle(60)}function cA(n,r,t,i){return 1===n&&1===r&&0===t&&0===i?Zm:I1({point:function(a,s){this.stream.point(a*n+t,s*r+i)}})}function vK(){var u,p,m,R,F,G,n=1,r=0,t=0,i=1,o=1,a=Zm,s=null,b=Zm;function Y(){return R=F=null,G}return G={stream:function(pe){return R&&F===pe?R:R=a(b(F=pe))},postclip:function(pe){return arguments.length?(b=pe,s=u=p=m=null,Y()):b},clipExtent:function(pe){return arguments.length?(b=null==pe?(s=u=p=m=null,Zm):KM(s=+pe[0][0],u=+pe[0][1],p=+pe[1][0],m=+pe[1][1]),Y()):null==s?null:[[s,u],[p,m]]},scale:function(pe){return arguments.length?(a=cA((n=+pe)*i,n*o,r,t),Y()):n},translate:function(pe){return arguments.length?(a=cA(n*i,n*o,r=+pe[0],t=+pe[1]),Y()):[r,t]},reflectX:function(pe){return arguments.length?(a=cA(n*(i=pe?-1:1),n*o,r,t),Y()):i<0},reflectY:function(pe){return arguments.length?(a=cA(n*i,n*(o=pe?-1:1),r,t),Y()):o<0},fitExtent:function(pe,Ee){return sA(G,pe,Ee)},fitSize:function(pe,Ee){return o6(G,pe,Ee)},fitWidth:function(pe,Ee){return a6(G,pe,Ee)},fitHeight:function(pe,Ee){return s6(G,pe,Ee)}}}function f6(n,r){var t=r*r,i=t*t;return[n*(.8707-.131979*t+i*(i*(.003971*t-.001529*i)-.013791)),r*(1.007226+t*(.015085+i*(.028874*t-.044475-.005916*i)))]}function gK(){return up(f6).scale(175.295)}function h6(n,r){return[xr(r)*pr(n),pr(r)]}function _K(){return up(h6).scale(249.5).clipAngle(90+Tr)}function m6(n,r){var t=xr(r),i=1+xr(n)*t;return[t*pr(n)/i,pr(r)/i]}function yK(){return up(m6).scale(250).clipAngle(142)}function v6(n,r){return[IM(MN((oa+r)/2)),-n]}function bK(){var n=eU(v6),r=n.center,t=n.rotate;return n.center=function(i){return arguments.length?r([-i[1],i[0]]):[(i=r())[1],-i[0]]},n.rotate=function(i){return arguments.length?t([i[0],i[1],i.length>2?i[2]+90:90]):[(i=t())[0],i[1],i[2]-90]},t([0,0,90]).scale(159.155)}function CK(n,r){return n.parent===r.parent?1:2}function TK(n,r){return n+r.x}function wK(n,r){return Math.max(n,r.y)}function MK(){var n=CK,r=1,t=1,i=!1;function o(a){var s,u=0;a.eachAfter(function(F){var G=F.children;G?(F.x=function(n){return n.reduce(TK,0)/n.length}(G),F.y=function(n){return 1+n.reduce(wK,0)}(G)):(F.x=s?u+=n(F,s):0,F.y=0,s=F)});var p=function(n){for(var r;r=n.children;)n=r[0];return n}(a),m=function(n){for(var r;r=n.children;)n=r[r.length-1];return n}(a),b=p.x-n(p,m)/2,R=m.x+n(m,p)/2;return a.eachAfter(i?function(F){F.x=(F.x-a.x)*r,F.y=(a.y-F.y)*t}:function(F){F.x=(F.x-b)/(R-b)*r,F.y=(1-(a.y?F.y/a.y:1))*t})}return o.separation=function(a){return arguments.length?(n=a,o):n},o.size=function(a){return arguments.length?(i=!1,r=+a[0],t=+a[1],o):i?null:[r,t]},o.nodeSize=function(a){return arguments.length?(i=!0,r=+a[0],t=+a[1],o):i?[r,t]:null},o}function AK(n){var r=0,t=n.children,i=t&&t.length;if(i)for(;--i>=0;)r+=t[i].value;else r=1;n.value=r}function g6(n,r){var o,s,u,p,m,t=new P_(n),i=+n.value&&(t.value=n.value),a=[t];for(null==r&&(r=qK);o=a.pop();)if(i&&(o.value=+o.data.value),(u=r(o.data))&&(m=u.length))for(o.children=new Array(m),p=m-1;p>=0;--p)a.push(s=o.children[p]=new P_(u[p])),s.parent=o,s.depth=o.depth+1;return t.eachBefore(rU)}function qK(n){return n.children}function jK(n){n.data=n.data.data}function rU(n){var r=0;do{n.height=r}while((n=n.parent)&&n.height<++r)}function P_(n){this.data=n,this.depth=this.height=0,this.parent=null}d6.invert=R1(function(n){return n}),N1.invert=function(n,r){return[n,2*w_(V8(r))-oa]},Z1.invert=Z1,p6.invert=R1(w_),f6.invert=function(n,r){var o,t=r,i=25;do{var a=t*t,s=a*a;t-=o=(t*(1.007226+a*(.015085+s*(.028874*a-.044475-.005916*s)))-r)/(1.007226+a*(.045255+s*(.259866*a-.311325-.005916*11*s)))}while(Vi(o)>Tr&&--i>0);return[n/(.8707+(a=t*t)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),t]},h6.invert=R1(Jl),m6.invert=R1(function(n){return 2*w_(n)}),v6.invert=function(n,r){return[-r,2*w_(V8(n))-oa]},P_.prototype=g6.prototype={constructor:P_,count:function(){return this.eachAfter(AK)},each:function(n){var t,o,a,s,r=this,i=[r];do{for(t=i.reverse(),i=[];r=t.pop();)if(n(r),o=r.children)for(a=0,s=o.length;a<s;++a)i.push(o[a])}while(i.length);return this},eachAfter:function(n){for(var o,a,s,r=this,t=[r],i=[];r=t.pop();)if(i.push(r),o=r.children)for(a=0,s=o.length;a<s;++a)t.push(o[a]);for(;r=i.pop();)n(r);return this},eachBefore:function(n){for(var i,o,r=this,t=[r];r=t.pop();)if(n(r),i=r.children)for(o=i.length-1;o>=0;--o)t.push(i[o]);return this},sum:function(n){return this.eachAfter(function(r){for(var t=+n(r.data)||0,i=r.children,o=i&&i.length;--o>=0;)t+=i[o].value;r.value=t})},sort:function(n){return this.eachBefore(function(r){r.children&&r.children.sort(n)})},path:function(n){for(var r=this,t=function(n,r){if(n===r)return n;var t=n.ancestors(),i=r.ancestors(),o=null;for(n=t.pop(),r=i.pop();n===r;)o=n,n=t.pop(),r=i.pop();return o}(r,n),i=[r];r!==t;)i.push(r=r.parent);for(var o=i.length;n!==t;)i.splice(o,0,n),n=n.parent;return i},ancestors:function(){for(var n=this,r=[n];n=n.parent;)r.push(n);return r},descendants:function(){var n=[];return this.each(function(r){n.push(r)}),n},leaves:function(){var n=[];return this.eachBefore(function(r){r.children||n.push(r)}),n},links:function(){var n=this,r=[];return n.each(function(t){t!==n&&r.push({source:t.parent,target:t})}),r},copy:function(){return g6(this).eachBefore(jK)}};var zK=Array.prototype.slice;function iU(n){for(var o,a,r=0,t=(n=function(n){for(var t,i,r=n.length;r;)i=Math.random()*r--|0,t=n[r],n[r]=n[i],n[i]=t;return n}(zK.call(n))).length,i=[];r<t;)o=n[r],a&&oU(a,o)?++r:(a=YK(i=GK(i,o)),r=0);return a}function GK(n,r){var t,i;if(_6(r,n))return[r];for(t=0;t<n.length;++t)if(dA(r,n[t])&&_6(L1(n[t],r),n))return[n[t],r];for(t=0;t<n.length-1;++t)for(i=t+1;i<n.length;++i)if(dA(L1(n[t],n[i]),r)&&dA(L1(n[t],r),n[i])&&dA(L1(n[i],r),n[t])&&_6(aU(n[t],n[i],r),n))return[n[t],n[i],r];throw new Error}function dA(n,r){var t=n.r-r.r,i=r.x-n.x,o=r.y-n.y;return t<0||t*t<i*i+o*o}function oU(n,r){var t=n.r-r.r+1e-6,i=r.x-n.x,o=r.y-n.y;return t>0&&t*t>i*i+o*o}function _6(n,r){for(var t=0;t<r.length;++t)if(!oU(n,r[t]))return!1;return!0}function YK(n){switch(n.length){case 1:return function(n){return{x:n.x,y:n.y,r:n.r}}(n[0]);case 2:return L1(n[0],n[1]);case 3:return aU(n[0],n[1],n[2])}}function L1(n,r){var t=n.x,i=n.y,o=n.r,a=r.x,s=r.y,u=r.r,p=a-t,m=s-i,b=u-o,R=Math.sqrt(p*p+m*m);return{x:(t+a+p/R*b)/2,y:(i+s+m/R*b)/2,r:(R+o+u)/2}}function aU(n,r,t){var i=n.x,o=n.y,a=n.r,s=r.x,u=r.y,p=r.r,m=t.x,b=t.y,R=t.r,F=i-s,G=i-m,Y=o-u,ee=o-b,pe=p-a,Ee=R-a,lt=i*i+o*o-a*a,tt=lt-s*s-u*u+p*p,it=lt-m*m-b*b+R*R,mt=G*Y-F*ee,Ke=(Y*it-ee*tt)/(2*mt)-i,et=(ee*pe-Y*Ee)/mt,Rt=(G*tt-F*it)/(2*mt)-o,kt=(F*Ee-G*pe)/mt,fn=et*et+kt*kt-1,Jt=2*(a+Ke*et+Rt*kt),st=Ke*Ke+Rt*Rt-a*a,Ot=-(fn?(Jt+Math.sqrt(Jt*Jt-4*fn*st))/(2*fn):st/Jt);return{x:i+Ke+et*Ot,y:o+Rt+kt*Ot,r:Ot}}function sU(n,r,t){var o,a,u,p,i=n.x-r.x,s=n.y-r.y,m=i*i+s*s;m?(a=r.r+t.r,p=n.r+t.r,(a*=a)>(p*=p)?(o=(m+p-a)/(2*m),u=Math.sqrt(Math.max(0,p/m-o*o)),t.x=n.x-o*i-u*s,t.y=n.y-o*s+u*i):(o=(m+a-p)/(2*m),u=Math.sqrt(Math.max(0,a/m-o*o)),t.x=r.x+o*i-u*s,t.y=r.y+o*s+u*i)):(t.x=r.x+t.r,t.y=r.y)}function lU(n,r){var t=n.r+r.r-1e-6,i=r.x-n.x,o=r.y-n.y;return t>0&&t*t>i*i+o*o}function uU(n){var r=n._,t=n.next._,i=r.r+t.r,o=(r.x*t.r+t.x*r.r)/i,a=(r.y*t.r+t.y*r.r)/i;return o*o+a*a}function pA(n){this._=n,this.next=null,this.previous=null}function cU(n){if(!(o=n.length))return 0;var r,t,i,o,a,s,u,p,m,b,R;if((r=n[0]).x=0,r.y=0,!(o>1))return r.r;if(r.x=-(t=n[1]).r,t.x=r.r,t.y=0,!(o>2))return r.r+t.r;sU(t,r,i=n[2]),r=new pA(r),t=new pA(t),i=new pA(i),r.next=i.previous=t,t.next=r.previous=i,i.next=t.previous=r;e:for(u=3;u<o;++u){sU(r._,t._,i=n[u]),i=new pA(i),p=t.next,m=r.previous,b=t._.r,R=r._.r;do{if(b<=R){if(lU(p._,i._)){r.next=t=p,t.previous=r,--u;continue e}b+=p._.r,p=p.next}else{if(lU(m._,i._)){(r=m).next=t,t.previous=r,--u;continue e}R+=m._.r,m=m.previous}}while(p!==m.next);for(i.previous=r,i.next=t,r.next=t.previous=t=i,a=uU(r);(i=i.next)!==t;)(s=uU(i))<a&&(r=i,a=s);t=r.next}for(r=[t._],i=t;(i=i.next)!==t;)r.push(i._);for(i=iU(r),u=0;u<o;++u)(r=n[u]).x-=i.x,r.y-=i.y;return i.r}function QK(n){return cU(n),n}function KK(n){return null==n?null:fA(n)}function fA(n){if("function"!=typeof n)throw new Error;return n}function Fm(){return 0}function I_(n){return function(){return n}}function XK(n){return Math.sqrt(n.value)}function $K(){var n=null,r=1,t=1,i=Fm;function o(a){return a.x=r/2,a.y=t/2,n?a.eachBefore(dU(n)).eachAfter(y6(i,.5)).eachBefore(pU(1)):a.eachBefore(dU(XK)).eachAfter(y6(Fm,1)).eachAfter(y6(i,a.r/Math.min(r,t))).eachBefore(pU(Math.min(r,t)/(2*a.r))),a}return o.radius=function(a){return arguments.length?(n=KK(a),o):n},o.size=function(a){return arguments.length?(r=+a[0],t=+a[1],o):[r,t]},o.padding=function(a){return arguments.length?(i="function"==typeof a?a:I_(+a),o):i},o}function dU(n){return function(r){r.children||(r.r=Math.max(0,+n(r)||0))}}function y6(n,r){return function(t){if(i=t.children){var i,o,u,a=i.length,s=n(t)*r||0;if(s)for(o=0;o<a;++o)i[o].r+=s;if(u=cU(i),s)for(o=0;o<a;++o)i[o].r-=s;t.r=u+s}}}function pU(n){return function(r){var t=r.parent;r.r*=n,t&&(r.x=t.x+n*r.x,r.y=t.y+n*r.y)}}function fU(n){n.x0=Math.round(n.x0),n.y0=Math.round(n.y0),n.x1=Math.round(n.x1),n.y1=Math.round(n.y1)}function F1(n,r,t,i,o){for(var s,a=n.children,u=-1,p=a.length,m=n.value&&(i-r)/n.value;++u<p;)(s=a[u]).y0=t,s.y1=o,s.x0=r,s.x1=r+=s.value*m}function eX(){var n=1,r=1,t=0,i=!1;function o(s){var u=s.height+1;return s.x0=s.y0=t,s.x1=n,s.y1=r/u,s.eachBefore(function(s,u){return function(p){p.children&&F1(p,p.x0,s*(p.depth+1)/u,p.x1,s*(p.depth+2)/u);var m=p.x0,b=p.y0,R=p.x1-t,F=p.y1-t;R<m&&(m=R=(m+R)/2),F<b&&(b=F=(b+F)/2),p.x0=m,p.y0=b,p.x1=R,p.y1=F}}(r,u)),i&&s.eachBefore(fU),s}return o.round=function(s){return arguments.length?(i=!!s,o):i},o.size=function(s){return arguments.length?(n=+s[0],r=+s[1],o):[n,r]},o.padding=function(s){return arguments.length?(t=+s,o):t},o}var tX={depth:-1},mU={};function nX(n){return n.id}function rX(n){return n.parentId}function iX(){var n=nX,r=rX;function t(i){var o,a,u,p,m,R,F,s=i.length,b=new Array(s),G={};for(a=0;a<s;++a)m=b[a]=new P_(o=i[a]),null!=(R=n(o,a,i))&&(R+="")&&(G[F="$"+(m.id=R)]=F in G?mU:m);for(a=0;a<s;++a)if(m=b[a],null!=(R=r(i[a],a,i))&&(R+="")){if(!(p=G["$"+R]))throw new Error("missing: "+R);if(p===mU)throw new Error("ambiguous: "+R);p.children?p.children.push(m):p.children=[m],m.parent=p}else{if(u)throw new Error("multiple roots");u=m}if(!u)throw new Error("no root");if(u.parent=tX,u.eachBefore(function(Y){Y.depth=Y.parent.depth+1,--s}).eachBefore(rU),u.parent=null,s>0)throw new Error("cycle");return u}return t.id=function(i){return arguments.length?(n=fA(i),t):n},t.parentId=function(i){return arguments.length?(r=fA(i),t):r},t}function oX(n,r){return n.parent===r.parent?1:2}function b6(n){var r=n.children;return r?r[0]:n.t}function C6(n){var r=n.children;return r?r[r.length-1]:n.t}function aX(n,r,t){var i=t/(r.i-n.i);r.c-=i,r.s+=t,n.c+=i,r.z+=t,r.m+=t}function lX(n,r,t){return n.a.parent===r.parent?n.a:t}function hA(n,r){this._=n,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=r}function cX(){var n=oX,r=1,t=1,i=null;function o(m){var b=function(n){for(var t,o,a,s,u,r=new hA(n,0),i=[r];t=i.pop();)if(a=t._.children)for(t.children=new Array(u=a.length),s=u-1;s>=0;--s)i.push(o=t.children[s]=new hA(a[s],s)),o.parent=t;return(r.parent=new hA(null,0)).children=[r],r}(m);if(b.eachAfter(a),b.parent.m=-b.z,b.eachBefore(s),i)m.eachBefore(p);else{var R=m,F=m,G=m;m.eachBefore(function(lt){lt.x<R.x&&(R=lt),lt.x>F.x&&(F=lt),lt.depth>G.depth&&(G=lt)});var Y=R===F?1:n(R,F)/2,ee=Y-R.x,pe=r/(F.x+Y+ee),Ee=t/(G.depth||1);m.eachBefore(function(lt){lt.x=(lt.x+ee)*pe,lt.y=lt.depth*Ee})}return m}function a(m){var b=m.children,R=m.parent.children,F=m.i?R[m.i-1]:null;if(b){!function(n){for(var a,r=0,t=0,i=n.children,o=i.length;--o>=0;)(a=i[o]).z+=r,a.m+=r,r+=a.s+(t+=a.c)}(m);var G=(b[0].z+b[b.length-1].z)/2;F?(m.z=F.z+n(m._,F._),m.m=m.z-G):m.z=G}else F&&(m.z=F.z+n(m._,F._));m.parent.A=function(m,b,R){if(b){for(var it,F=m,G=m,Y=b,ee=F.parent.children[0],pe=F.m,Ee=G.m,lt=Y.m,tt=ee.m;Y=C6(Y),F=b6(F),Y&&F;)ee=b6(ee),(G=C6(G)).a=m,(it=Y.z+lt-F.z-pe+n(Y._,F._))>0&&(aX(lX(Y,m,R),m,it),pe+=it,Ee+=it),lt+=Y.m,pe+=F.m,tt+=ee.m,Ee+=G.m;Y&&!C6(G)&&(G.t=Y,G.m+=lt-Ee),F&&!b6(ee)&&(ee.t=F,ee.m+=pe-tt,R=m)}return R}(m,F,m.parent.A||R[0])}function s(m){m._.x=m.z+m.parent.m,m.m+=m.parent.m}function p(m){m.x*=r,m.y=m.depth*t}return o.separation=function(m){return arguments.length?(n=m,o):n},o.size=function(m){return arguments.length?(i=!1,r=+m[0],t=+m[1],o):i?null:[r,t]},o.nodeSize=function(m){return arguments.length?(i=!0,r=+m[0],t=+m[1],o):i?[r,t]:null},o}function mA(n,r,t,i,o){for(var s,a=n.children,u=-1,p=a.length,m=n.value&&(o-t)/n.value;++u<p;)(s=a[u]).x0=r,s.x1=i,s.y0=t,s.y1=t+=s.value*m}hA.prototype=Object.create(P_.prototype);var vU=(1+Math.sqrt(5))/2;function gU(n,r,t,i,o,a){for(var p,m,G,Y,pe,Ee,lt,tt,it,mt,Ke,s=[],u=r.children,b=0,R=0,F=u.length,ee=r.value;b<F;){G=o-t,Y=a-i;do{pe=u[R++].value}while(!pe&&R<F);for(Ee=lt=pe,Ke=pe*pe*(mt=Math.max(Y/G,G/Y)/(ee*n)),it=Math.max(lt/Ke,Ke/Ee);R<F;++R){if(pe+=m=u[R].value,m<Ee&&(Ee=m),m>lt&&(lt=m),Ke=pe*pe*mt,(tt=Math.max(lt/Ke,Ke/Ee))>it){pe-=m;break}it=tt}s.push(p={value:pe,dice:G<Y,children:u.slice(b,R)}),p.dice?F1(p,t,i,o,ee?i+=Y*pe/ee:a):mA(p,t,i,ee?t+=G*pe/ee:o,a),ee-=pe,b=R}return s}var _U=function n(r){function t(i,o,a,s,u){gU(r,i,o,a,s,u)}return t.ratio=function(i){return n((i=+i)>1?i:1)},t}(vU);function dX(){var n=_U,r=!1,t=1,i=1,o=[0],a=Fm,s=Fm,u=Fm,p=Fm,m=Fm;function b(F){return F.x0=F.y0=0,F.x1=t,F.y1=i,F.eachBefore(R),o=[0],r&&F.eachBefore(fU),F}function R(F){var G=o[F.depth],Y=F.x0+G,ee=F.y0+G,pe=F.x1-G,Ee=F.y1-G;pe<Y&&(Y=pe=(Y+pe)/2),Ee<ee&&(ee=Ee=(ee+Ee)/2),F.x0=Y,F.y0=ee,F.x1=pe,F.y1=Ee,F.children&&(G=o[F.depth+1]=a(F)/2,Y+=m(F)-G,ee+=s(F)-G,(pe-=u(F)-G)<Y&&(Y=pe=(Y+pe)/2),(Ee-=p(F)-G)<ee&&(ee=Ee=(ee+Ee)/2),n(F,Y,ee,pe,Ee))}return b.round=function(F){return arguments.length?(r=!!F,b):r},b.size=function(F){return arguments.length?(t=+F[0],i=+F[1],b):[t,i]},b.tile=function(F){return arguments.length?(n=fA(F),b):n},b.padding=function(F){return arguments.length?b.paddingInner(F).paddingOuter(F):b.paddingInner()},b.paddingInner=function(F){return arguments.length?(a="function"==typeof F?F:I_(+F),b):a},b.paddingOuter=function(F){return arguments.length?b.paddingTop(F).paddingRight(F).paddingBottom(F).paddingLeft(F):b.paddingTop()},b.paddingTop=function(F){return arguments.length?(s="function"==typeof F?F:I_(+F),b):s},b.paddingRight=function(F){return arguments.length?(u="function"==typeof F?F:I_(+F),b):u},b.paddingBottom=function(F){return arguments.length?(p="function"==typeof F?F:I_(+F),b):p},b.paddingLeft=function(F){return arguments.length?(m="function"==typeof F?F:I_(+F),b):m},b}function pX(n,r,t,i,o){var s,p,a=n.children,u=a.length,m=new Array(u+1);for(m[0]=p=s=0;s<u;++s)m[s+1]=p+=a[s].value;!function b(R,F,G,Y,ee,pe,Ee){if(R>=F-1){var lt=a[R];return lt.x0=Y,lt.y0=ee,lt.x1=pe,void(lt.y1=Ee)}for(var tt=m[R],it=G/2+tt,mt=R+1,Ke=F-1;mt<Ke;){var et=mt+Ke>>>1;m[et]<it?mt=et+1:Ke=et}it-m[mt-1]<m[mt]-it&&R+1<mt&&--mt;var Rt=m[mt]-tt,kt=G-Rt;if(pe-Y>Ee-ee){var fn=(Y*kt+pe*Rt)/G;b(R,mt,Rt,Y,ee,fn,Ee),b(mt,F,kt,fn,ee,pe,Ee)}else{var Jt=(ee*kt+Ee*Rt)/G;b(R,mt,Rt,Y,ee,pe,Jt),b(mt,F,kt,Y,Jt,pe,Ee)}}(0,u,n.value,r,t,i,o)}function fX(n,r,t,i,o){(1&n.depth?mA:F1)(n,r,t,i,o)}var hX=function n(r){function t(i,o,a,s,u){if((p=i._squarify)&&p.ratio===r)for(var p,m,b,R,G,F=-1,Y=p.length,ee=i.value;++F<Y;){for(b=(m=p[F]).children,R=m.value=0,G=b.length;R<G;++R)m.value+=b[R].value;m.dice?F1(m,o,a,s,a+=(u-a)*m.value/ee):mA(m,o,a,o+=(s-o)*m.value/ee,u),ee-=m.value}else i._squarify=p=gU(r,i,o,a,s,u),p.ratio=r}return t.ratio=function(i){return n((i=+i)>1?i:1)},t}(vU);function mX(n){for(var i,r=-1,t=n.length,o=n[t-1],a=0;++r<t;)a+=(i=o)[1]*(o=n[r])[0]-i[0]*o[1];return a/2}function vX(n){for(var a,u,r=-1,t=n.length,i=0,o=0,s=n[t-1],p=0;++r<t;)p+=u=(a=s)[0]*(s=n[r])[1]-s[0]*a[1],i+=(a[0]+s[0])*u,o+=(a[1]+s[1])*u;return[i/(p*=3),o/p]}function gX(n,r,t){return(r[0]-n[0])*(t[1]-n[1])-(r[1]-n[1])*(t[0]-n[0])}function _X(n,r){return n[0]-r[0]||n[1]-r[1]}function yU(n){for(var r=n.length,t=[0,1],i=2,o=2;o<r;++o){for(;i>1&&gX(n[t[i-2]],n[t[i-1]],n[o])<=0;)--i;t[i++]=o}return t.slice(0,i)}function yX(n){if((t=n.length)<3)return null;var r,t,i=new Array(t),o=new Array(t);for(r=0;r<t;++r)i[r]=[+n[r][0],+n[r][1],r];for(i.sort(_X),r=0;r<t;++r)o[r]=[i[r][0],-i[r][1]];var a=yU(i),s=yU(o),u=s[0]===a[0],p=s[s.length-1]===a[a.length-1],m=[];for(r=a.length-1;r>=0;--r)m.push(n[i[a[r]][2]]);for(r=+u;r<s.length-p;++r)m.push(n[i[s[r]][2]]);return m}function bX(n,r){for(var p,m,t=n.length,i=n[t-1],o=r[0],a=r[1],s=i[0],u=i[1],b=!1,R=0;R<t;++R)p=(i=n[R])[0],(m=i[1])>a!=u>a&&o<(s-p)*(a-m)/(u-m)+p&&(b=!b),s=p,u=m;return b}function CX(n){for(var o,a,r=-1,t=n.length,i=n[t-1],s=i[0],u=i[1],p=0;++r<t;)o=s,a=u,o-=s=(i=n[r])[0],a-=u=i[1],p+=Math.sqrt(o*o+a*a);return p}function R_(){return Math.random()}var SX=function n(r){function t(i,o){return i=null==i?0:+i,o=null==o?1:+o,1===arguments.length?(o=i,i=0):o-=i,function(){return r()*o+i}}return t.source=n,t}(R_),bU=function n(r){function t(i,o){var a,s;return i=null==i?0:+i,o=null==o?1:+o,function(){var u;if(null!=a)u=a,a=null;else do{a=2*r()-1,u=2*r()-1,s=a*a+u*u}while(!s||s>1);return i+o*u*Math.sqrt(-2*Math.log(s)/s)}}return t.source=n,t}(R_),TX=function n(r){function t(){var i=bU.source(r).apply(this,arguments);return function(){return Math.exp(i())}}return t.source=n,t}(R_),CU=function n(r){function t(i){return function(){for(var o=0,a=0;a<i;++a)o+=r();return o}}return t.source=n,t}(R_),xX=function n(r){function t(i){var o=CU.source(r)(i);return function(){return o()/i}}return t.source=n,t}(R_),wX=function n(r){function t(i){return function(){return-Math.log(1-r())/i}}return t.source=n,t}(R_),SU=Array.prototype,S6=SU.map,Hf=SU.slice,T6={name:"implicit"};function x6(n){var r=Rf(),t=[],i=T6;function o(a){var s=a+"",u=r.get(s);if(!u){if(i!==T6)return i;r.set(s,u=t.push(a))}return n[(u-1)%n.length]}return n=null==n?[]:Hf.call(n),o.domain=function(a){if(!arguments.length)return t.slice();t=[],r=Rf();for(var p,m,s=-1,u=a.length;++s<u;)r.has(m=(p=a[s])+"")||r.set(m,t.push(p));return o},o.range=function(a){return arguments.length?(n=Hf.call(a),o):n.slice()},o.unknown=function(a){return arguments.length?(i=a,o):i},o.copy=function(){return x6().domain(t).range(n).unknown(i)},o}function w6(){var o,a,n=x6().unknown(void 0),r=n.domain,t=n.range,i=[0,1],s=!1,u=0,p=0,m=.5;function b(){var R=r().length,F=i[1]<i[0],G=i[F-0],Y=i[1-F];o=(Y-G)/Math.max(1,R-u+2*p),s&&(o=Math.floor(o)),G+=(Y-G-o*(R-u))*m,a=o*(1-u),s&&(G=Math.round(G),a=Math.round(a));var ee=Vs(R).map(function(pe){return G+o*pe});return t(F?ee.reverse():ee)}return delete n.unknown,n.domain=function(R){return arguments.length?(r(R),b()):r()},n.range=function(R){return arguments.length?(i=[+R[0],+R[1]],b()):i.slice()},n.rangeRound=function(R){return i=[+R[0],+R[1]],s=!0,b()},n.bandwidth=function(){return a},n.step=function(){return o},n.round=function(R){return arguments.length?(s=!!R,b()):s},n.padding=function(R){return arguments.length?(u=p=Math.max(0,Math.min(1,R)),b()):u},n.paddingInner=function(R){return arguments.length?(u=Math.max(0,Math.min(1,R)),b()):u},n.paddingOuter=function(R){return arguments.length?(p=Math.max(0,Math.min(1,R)),b()):p},n.align=function(R){return arguments.length?(m=Math.max(0,Math.min(1,R)),b()):m},n.copy=function(){return w6().domain(r()).range(i).round(s).paddingInner(u).paddingOuter(p).align(m)},b()}function TU(n){var r=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return TU(r())},n}function kX(){return TU(w6().paddingInner(1))}function k6(n){return function(){return n}}function xU(n){return+n}var wU=[0,1];function E6(n,r){return(r-=n=+n)?function(t){return(t-n)/r}:k6(r)}function AX(n,r,t,i){var o=n[0],a=n[1],s=r[0],u=r[1];return a<o?(o=t(a,o),s=i(u,s)):(o=t(o,a),s=i(s,u)),function(p){return s(o(p))}}function DX(n,r,t,i){var o=Math.min(n.length,r.length)-1,a=new Array(o),s=new Array(o),u=-1;for(n[o]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++u<o;)a[u]=t(n[u],n[u+1]),s[u]=i(r[u],r[u+1]);return function(p){var m=Sf(n,p,1,o)-1;return s[m](a[m](p))}}function vA(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp())}function gA(n,r){var s,u,p,t=wU,i=wU,o=Pf,a=!1;function m(){return s=Math.min(t.length,i.length)>2?DX:AX,u=p=null,b}function b(R){return(u||(u=s(t,i,a?function(n){return function(r,t){var i=n(r=+r,t=+t);return function(o){return o<=r?0:o>=t?1:i(o)}}}(n):n,o)))(+R)}return b.invert=function(R){return(p||(p=s(i,t,E6,a?function(n){return function(r,t){var i=n(r=+r,t=+t);return function(o){return o<=0?r:o>=1?t:i(o)}}}(r):r)))(+R)},b.domain=function(R){return arguments.length?(t=S6.call(R,xU),m()):t.slice()},b.range=function(R){return arguments.length?(i=Hf.call(R),m()):i.slice()},b.rangeRound=function(R){return i=Hf.call(R),o=eM,m()},b.clamp=function(R){return arguments.length?(a=!!R,m()):a},b.interpolate=function(R){return arguments.length?(o=R,m()):o},m()}function B1(n){var r=n.domain;return n.ticks=function(t){var i=r();return pm(i[0],i[i.length-1],null==t?10:t)},n.tickFormat=function(t,i){return function(n,r,t){var s,i=n[0],o=n[n.length-1],a=Gc(i,o,null==r?10:r);switch((t=C1(null==t?",f":t)).type){case"s":var u=Math.max(Math.abs(i),Math.abs(o));return null==t.precision&&!isNaN(s=F8(a,u))&&(t.precision=s),kN(t,u);case"":case"e":case"g":case"p":case"r":null==t.precision&&!isNaN(s=B8(a,Math.max(Math.abs(i),Math.abs(o))))&&(t.precision=s-("e"===t.type));break;case"f":case"%":null==t.precision&&!isNaN(s=L8(a))&&(t.precision=s-2*("%"===t.type))}return MM(t)}(r(),t,i)},n.nice=function(t){null==t&&(t=10);var p,i=r(),o=0,a=i.length-1,s=i[o],u=i[a];return u<s&&(p=s,s=u,u=p,p=o,o=a,a=p),(p=xf(s,u,t))>0?p=xf(s=Math.floor(s/p)*p,u=Math.ceil(u/p)*p,t):p<0&&(p=xf(s=Math.ceil(s*p)/p,u=Math.floor(u*p)/p,t)),p>0?(i[o]=Math.floor(s/p)*p,i[a]=Math.ceil(u/p)*p,r(i)):p<0&&(i[o]=Math.ceil(s*p)/p,i[a]=Math.floor(u*p)/p,r(i)),n},n}function kU(){var n=gA(E6,ia);return n.copy=function(){return vA(n,kU())},B1(n)}function EU(){var n=[0,1];function r(t){return+t}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(n=S6.call(t,xU),r):n.slice()},r.copy=function(){return EU().domain(n)},B1(r)}function MU(n,r){var s,t=0,i=(n=n.slice()).length-1,o=n[t],a=n[i];return a<o&&(s=t,t=i,i=s,s=o,o=a,a=s),n[t]=r.floor(o),n[i]=r.ceil(a),n}function PX(n,r){return(r=Math.log(r/n))?function(t){return Math.log(t/n)/r}:k6(r)}function IX(n,r){return n<0?function(t){return-Math.pow(-r,t)*Math.pow(-n,1-t)}:function(t){return Math.pow(r,t)*Math.pow(n,1-t)}}function RX(n){return isFinite(n)?+("1e"+n):n<0?0:n}function AU(n){return 10===n?RX:n===Math.E?Math.exp:function(r){return Math.pow(n,r)}}function DU(n){return n===Math.E?Math.log:10===n&&Math.log10||2===n&&Math.log2||(n=Math.log(n),function(r){return Math.log(r)/n})}function OU(n){return function(r){return-n(-r)}}function PU(){var n=gA(PX,IX).domain([1,10]),r=n.domain,t=10,i=DU(10),o=AU(10);function a(){return i=DU(t),o=AU(t),r()[0]<0&&(i=OU(i),o=OU(o)),n}return n.base=function(s){return arguments.length?(t=+s,a()):t},n.domain=function(s){return arguments.length?(r(s),a()):r()},n.ticks=function(s){var b,u=r(),p=u[0],m=u[u.length-1];(b=m<p)&&(R=p,p=m,m=R);var G,Y,ee,R=i(p),F=i(m),pe=null==s?10:+s,Ee=[];if(!(t%1)&&F-R<pe){if(R=Math.round(R)-1,F=Math.round(F)+1,p>0){for(;R<F;++R)for(Y=1,G=o(R);Y<t;++Y)if(!((ee=G*Y)<p)){if(ee>m)break;Ee.push(ee)}}else for(;R<F;++R)for(Y=t-1,G=o(R);Y>=1;--Y)if(!((ee=G*Y)<p)){if(ee>m)break;Ee.push(ee)}}else Ee=pm(R,F,Math.min(F-R,pe)).map(o);return b?Ee.reverse():Ee},n.tickFormat=function(s,u){if(null==u&&(u=10===t?".0e":","),"function"!=typeof u&&(u=MM(u)),s===1/0)return u;null==s&&(s=10);var p=Math.max(1,t*s/n.ticks().length);return function(m){var b=m/o(Math.round(i(m)));return b*t<t-.5&&(b*=t),b<=p?u(m):""}},n.nice=function(){return r(MU(r(),{floor:function(u){return o(Math.floor(i(u)))},ceil:function(u){return o(Math.ceil(i(u)))}}))},n.copy=function(){return vA(n,PU().base(t))},n}function N_(n,r){return n<0?-Math.pow(-n,r):Math.pow(n,r)}function M6(){var n=1,r=gA(function(a,s){return(s=N_(s,n)-(a=N_(a,n)))?function(u){return(N_(u,n)-a)/s}:k6(s)},function(a,s){return s=N_(s,n)-(a=N_(a,n)),function(u){return N_(a+s*u,1/n)}}),t=r.domain;return r.exponent=function(a){return arguments.length?(n=+a,t(t())):n},r.copy=function(){return vA(r,M6().exponent(n))},B1(r)}function NX(){return M6().exponent(.5)}function IU(){var n=[],r=[],t=[];function i(){var a=0,s=Math.max(1,r.length);for(t=new Array(s-1);++a<s;)t[a-1]=wf(n,a/s);return o}function o(a){if(!isNaN(a=+a))return r[Sf(t,a)]}return o.invertExtent=function(a){var s=r.indexOf(a);return s<0?[NaN,NaN]:[s>0?t[s-1]:n[0],s<t.length?t[s]:n[n.length-1]]},o.domain=function(a){if(!arguments.length)return n.slice();n=[];for(var p,s=0,u=a.length;s<u;++s)null!=(p=a[s])&&!isNaN(p=+p)&&n.push(p);return n.sort(Cf),i()},o.range=function(a){return arguments.length?(r=Hf.call(a),i()):r.slice()},o.quantiles=function(){return t.slice()},o.copy=function(){return IU().domain(n).range(r)},o}function RU(){var n=0,r=1,t=1,i=[.5],o=[0,1];function a(u){if(u<=u)return o[Sf(i,u,0,t)]}function s(){var u=-1;for(i=new Array(t);++u<t;)i[u]=((u+1)*r-(u-t)*n)/(t+1);return a}return a.domain=function(u){return arguments.length?(n=+u[0],r=+u[1],s()):[n,r]},a.range=function(u){return arguments.length?(t=(o=Hf.call(u)).length-1,s()):o.slice()},a.invertExtent=function(u){var p=o.indexOf(u);return p<0?[NaN,NaN]:p<1?[n,i[0]]:p>=t?[i[t-1],r]:[i[p-1],i[p]]},a.copy=function(){return RU().domain([n,r]).range(o)},B1(a)}function NU(){var n=[.5],r=[0,1],t=1;function i(o){if(o<=o)return r[Sf(n,o,0,t)]}return i.domain=function(o){return arguments.length?(n=Hf.call(o),t=Math.min(n.length,r.length-1),i):n.slice()},i.range=function(o){return arguments.length?(r=Hf.call(o),t=Math.min(n.length,r.length-1),i):r.slice()},i.invertExtent=function(o){var a=r.indexOf(o);return[n[a-1],n[a]]},i.copy=function(){return NU().domain(n).range(r)},i}var A6=new Date,D6=new Date;function Va(n,r,t,i){function o(a){return n(a=new Date(+a)),a}return o.floor=o,o.ceil=function(a){return n(a=new Date(a-1)),r(a,1),n(a),a},o.round=function(a){var s=o(a),u=o.ceil(a);return a-s<u-a?s:u},o.offset=function(a,s){return r(a=new Date(+a),null==s?1:Math.floor(s)),a},o.range=function(a,s,u){var m,p=[];if(a=o.ceil(a),u=null==u?1:Math.floor(u),!(a<s&&u>0))return p;do{p.push(m=new Date(+a)),r(a,u),n(a)}while(m<a&&a<s);return p},o.filter=function(a){return Va(function(s){if(s>=s)for(;n(s),!a(s);)s.setTime(s-1)},function(s,u){if(s>=s)if(u<0)for(;++u<=0;)for(;r(s,-1),!a(s););else for(;--u>=0;)for(;r(s,1),!a(s););})},t&&(o.count=function(a,s){return A6.setTime(+a),D6.setTime(+s),n(A6),n(D6),Math.floor(t(A6,D6))},o.every=function(a){return a=Math.floor(a),isFinite(a)&&a>0?a>1?o.filter(i?function(s){return i(s)%a==0}:function(s){return o.count(0,s)%a==0}):o:null}),o}var _A=Va(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n});_A.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?Va(function(r){r.setTime(Math.floor(r/n)*n)},function(r,t){r.setTime(+r+t*n)},function(r,t){return(t-r)/n}):_A:null};var yA=_A,ZU=_A.range,Bm=6e4,CA=36e5,FU=6048e5,BU=Va(function(n){n.setTime(n-n.getMilliseconds())},function(n,r){n.setTime(+n+1e3*r)},function(n,r){return(r-n)/1e3},function(n){return n.getUTCSeconds()}),SA=BU,UU=BU.range,HU=Va(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds())},function(n,r){n.setTime(+n+r*Bm)},function(n,r){return(r-n)/Bm},function(n){return n.getMinutes()}),VU=HU,ZX=HU.range,qU=Va(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds()-n.getMinutes()*Bm)},function(n,r){n.setTime(+n+r*CA)},function(n,r){return(r-n)/CA},function(n){return n.getHours()}),jU=qU,LX=qU.range,zU=Va(function(n){n.setHours(0,0,0,0)},function(n,r){n.setDate(n.getDate()+r)},function(n,r){return(r-n-(r.getTimezoneOffset()-n.getTimezoneOffset())*Bm)/864e5},function(n){return n.getDate()-1}),TA=zU,FX=zU.range;function Um(n){return Va(function(r){r.setDate(r.getDate()-(r.getDay()+7-n)%7),r.setHours(0,0,0,0)},function(r,t){r.setDate(r.getDate()+7*t)},function(r,t){return(t-r-(t.getTimezoneOffset()-r.getTimezoneOffset())*Bm)/FU})}var U1=Um(0),H1=Um(1),WU=Um(2),GU=Um(3),V1=Um(4),YU=Um(5),JU=Um(6),QU=U1.range,BX=H1.range,UX=WU.range,HX=GU.range,VX=V1.range,qX=YU.range,jX=JU.range,KU=Va(function(n){n.setDate(1),n.setHours(0,0,0,0)},function(n,r){n.setMonth(n.getMonth()+r)},function(n,r){return r.getMonth()-n.getMonth()+12*(r.getFullYear()-n.getFullYear())},function(n){return n.getMonth()}),XU=KU,zX=KU.range,O6=Va(function(n){n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,r){n.setFullYear(n.getFullYear()+r)},function(n,r){return r.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});O6.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Va(function(r){r.setFullYear(Math.floor(r.getFullYear()/n)*n),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,t){r.setFullYear(r.getFullYear()+t*n)}):null};var Hm=O6,WX=O6.range,$U=Va(function(n){n.setUTCSeconds(0,0)},function(n,r){n.setTime(+n+r*Bm)},function(n,r){return(r-n)/Bm},function(n){return n.getUTCMinutes()}),e9=$U,GX=$U.range,t9=Va(function(n){n.setUTCMinutes(0,0,0)},function(n,r){n.setTime(+n+r*CA)},function(n,r){return(r-n)/CA},function(n){return n.getUTCHours()}),n9=t9,YX=t9.range,r9=Va(function(n){n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCDate(n.getUTCDate()+r)},function(n,r){return(r-n)/864e5},function(n){return n.getUTCDate()-1}),xA=r9,JX=r9.range;function Vm(n){return Va(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-n)%7),r.setUTCHours(0,0,0,0)},function(r,t){r.setUTCDate(r.getUTCDate()+7*t)},function(r,t){return(t-r)/FU})}var q1=Vm(0),j1=Vm(1),i9=Vm(2),o9=Vm(3),z1=Vm(4),a9=Vm(5),s9=Vm(6),l9=q1.range,QX=j1.range,KX=i9.range,XX=o9.range,$X=z1.range,e$=a9.range,t$=s9.range,u9=Va(function(n){n.setUTCDate(1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCMonth(n.getUTCMonth()+r)},function(n,r){return r.getUTCMonth()-n.getUTCMonth()+12*(r.getUTCFullYear()-n.getUTCFullYear())},function(n){return n.getUTCMonth()}),c9=u9,n$=u9.range,P6=Va(function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCFullYear(n.getUTCFullYear()+r)},function(n,r){return r.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});P6.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Va(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/n)*n),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,t){r.setUTCFullYear(r.getUTCFullYear()+t*n)}):null};var qm=P6,r$=P6.range;function i$(n){if(0<=n.y&&n.y<100){var r=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return r.setFullYear(n.y),r}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function wA(n){if(0<=n.y&&n.y<100){var r=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return r.setUTCFullYear(n.y),r}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function W1(n){return{y:n,m:0,d:1,H:0,M:0,S:0,L:0}}function d9(n){var r=n.dateTime,t=n.date,i=n.time,o=n.periods,a=n.days,s=n.shortDays,u=n.months,p=n.shortMonths,m=G1(o),b=Y1(o),R=G1(a),F=Y1(a),G=G1(s),Y=Y1(s),ee=G1(u),pe=Y1(u),Ee=G1(p),lt=Y1(p),tt={a:function(vr){return s[vr.getDay()]},A:function(vr){return a[vr.getDay()]},b:function(vr){return p[vr.getMonth()]},B:function(vr){return u[vr.getMonth()]},c:null,d:m9,e:m9,f:M$,H:w$,I:k$,j:E$,L:v9,m:A$,M:D$,p:function(vr){return o[+(vr.getHours()>=12)]},Q:b9,s:C9,S:O$,u:P$,U:I$,V:R$,w:N$,W:Z$,x:null,X:null,y:L$,Y:F$,Z:B$,"%":y9},it={a:function(vr){return s[vr.getUTCDay()]},A:function(vr){return a[vr.getUTCDay()]},b:function(vr){return p[vr.getUTCMonth()]},B:function(vr){return u[vr.getUTCMonth()]},c:null,d:g9,e:g9,f:q$,H:U$,I:H$,j:V$,L:_9,m:j$,M:z$,p:function(vr){return o[+(vr.getUTCHours()>=12)]},Q:b9,s:C9,S:W$,u:G$,U:Y$,V:J$,w:Q$,W:K$,x:null,X:null,y:X$,Y:$$,Z:eee,"%":y9},mt={a:function(vr,fr,sr){var qn=G.exec(fr.slice(sr));return qn?(vr.w=Y[qn[0].toLowerCase()],sr+qn[0].length):-1},A:function(vr,fr,sr){var qn=R.exec(fr.slice(sr));return qn?(vr.w=F[qn[0].toLowerCase()],sr+qn[0].length):-1},b:function(vr,fr,sr){var qn=Ee.exec(fr.slice(sr));return qn?(vr.m=lt[qn[0].toLowerCase()],sr+qn[0].length):-1},B:function(vr,fr,sr){var qn=ee.exec(fr.slice(sr));return qn?(vr.m=pe[qn[0].toLowerCase()],sr+qn[0].length):-1},c:function(vr,fr,sr){return Rt(vr,r,fr,sr)},d:f9,e:f9,f:C$,H:h9,I:h9,j:g$,L:b$,m:v$,M:_$,p:function(vr,fr,sr){var qn=m.exec(fr.slice(sr));return qn?(vr.p=b[qn[0].toLowerCase()],sr+qn[0].length):-1},Q:T$,s:x$,S:y$,u:u$,U:c$,V:d$,w:l$,W:p$,x:function(vr,fr,sr){return Rt(vr,t,fr,sr)},X:function(vr,fr,sr){return Rt(vr,i,fr,sr)},y:h$,Y:f$,Z:m$,"%":S$};function Ke(vr,fr){return function(sr){var vs,bl,dc,qn=[],Ko=-1,wi=0,Oi=vr.length;for(sr instanceof Date||(sr=new Date(+sr));++Ko<Oi;)37===vr.charCodeAt(Ko)&&(qn.push(vr.slice(wi,Ko)),null!=(bl=p9[vs=vr.charAt(++Ko)])?vs=vr.charAt(++Ko):bl="e"===vs?" ":"0",(dc=fr[vs])&&(vs=dc(sr,bl)),qn.push(vs),wi=Ko+1);return qn.push(vr.slice(wi,Ko)),qn.join("")}}function et(vr,fr){return function(sr){var wi,Oi,qn=W1(1900);if(Rt(qn,vr,sr+="",0)!=sr.length)return null;if("Q"in qn)return new Date(qn.Q);if("p"in qn&&(qn.H=qn.H%12+12*qn.p),"V"in qn){if(qn.V<1||qn.V>53)return null;"w"in qn||(qn.w=1),"Z"in qn?(Oi=(wi=wA(W1(qn.y))).getUTCDay(),wi=Oi>4||0===Oi?j1.ceil(wi):j1(wi),wi=xA.offset(wi,7*(qn.V-1)),qn.y=wi.getUTCFullYear(),qn.m=wi.getUTCMonth(),qn.d=wi.getUTCDate()+(qn.w+6)%7):(Oi=(wi=fr(W1(qn.y))).getDay(),wi=Oi>4||0===Oi?H1.ceil(wi):H1(wi),wi=TA.offset(wi,7*(qn.V-1)),qn.y=wi.getFullYear(),qn.m=wi.getMonth(),qn.d=wi.getDate()+(qn.w+6)%7)}else("W"in qn||"U"in qn)&&("w"in qn||(qn.w="u"in qn?qn.u%7:"W"in qn?1:0),Oi="Z"in qn?wA(W1(qn.y)).getUTCDay():fr(W1(qn.y)).getDay(),qn.m=0,qn.d="W"in qn?(qn.w+6)%7+7*qn.W-(Oi+5)%7:qn.w+7*qn.U-(Oi+6)%7);return"Z"in qn?(qn.H+=qn.Z/100|0,qn.M+=qn.Z%100,wA(qn)):fr(qn)}}function Rt(vr,fr,sr,qn){for(var vs,bl,Ko=0,wi=fr.length,Oi=sr.length;Ko<wi;){if(qn>=Oi)return-1;if(37===(vs=fr.charCodeAt(Ko++))){if(vs=fr.charAt(Ko++),!(bl=mt[vs in p9?fr.charAt(Ko++):vs])||(qn=bl(vr,sr,qn))<0)return-1}else if(vs!=sr.charCodeAt(qn++))return-1}return qn}return tt.x=Ke(t,tt),tt.X=Ke(i,tt),tt.c=Ke(r,tt),it.x=Ke(t,it),it.X=Ke(i,it),it.c=Ke(r,it),{format:function(fr){var sr=Ke(fr+="",tt);return sr.toString=function(){return fr},sr},parse:function(fr){var sr=et(fr+="",i$);return sr.toString=function(){return fr},sr},utcFormat:function(fr){var sr=Ke(fr+="",it);return sr.toString=function(){return fr},sr},utcParse:function(fr){var sr=et(fr,wA);return sr.toString=function(){return fr},sr}}}var Z_,I6,S9,kA,R6,p9={"-":"",_:" ",0:"0"},ps=/^\s*\d+/,o$=/^%/,a$=/[\\^$*+?|[\]().{}]/g;function lo(n,r,t){var i=n<0?"-":"",o=(i?-n:n)+"",a=o.length;return i+(a<t?new Array(t-a+1).join(r)+o:o)}function s$(n){return n.replace(a$,"\\$&")}function G1(n){return new RegExp("^(?:"+n.map(s$).join("|")+")","i")}function Y1(n){for(var r={},t=-1,i=n.length;++t<i;)r[n[t].toLowerCase()]=t;return r}function l$(n,r,t){var i=ps.exec(r.slice(t,t+1));return i?(n.w=+i[0],t+i[0].length):-1}function u$(n,r,t){var i=ps.exec(r.slice(t,t+1));return i?(n.u=+i[0],t+i[0].length):-1}function c$(n,r,t){var i=ps.exec(r.slice(t,t+2));return i?(n.U=+i[0],t+i[0].length):-1}function d$(n,r,t){var i=ps.exec(r.slice(t,t+2));return i?(n.V=+i[0],t+i[0].length):-1}function p$(n,r,t){var i=ps.exec(r.slice(t,t+2));return i?(n.W=+i[0],t+i[0].length):-1}function f$(n,r,t){var i=ps.exec(r.slice(t,t+4));return i?(n.y=+i[0],t+i[0].length):-1}function h$(n,r,t){var i=ps.exec(r.slice(t,t+2));return i?(n.y=+i[0]+(+i[0]>68?1900:2e3),t+i[0].length):-1}function m$(n,r,t){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(t,t+6));return i?(n.Z=i[1]?0:-(i[2]+(i[3]||"00")),t+i[0].length):-1}function v$(n,r,t){var i=ps.exec(r.slice(t,t+2));return i?(n.m=i[0]-1,t+i[0].length):-1}function f9(n,r,t){var i=ps.exec(r.slice(t,t+2));return i?(n.d=+i[0],t+i[0].length):-1}function g$(n,r,t){var i=ps.exec(r.slice(t,t+3));return i?(n.m=0,n.d=+i[0],t+i[0].length):-1}function h9(n,r,t){var i=ps.exec(r.slice(t,t+2));return i?(n.H=+i[0],t+i[0].length):-1}function _$(n,r,t){var i=ps.exec(r.slice(t,t+2));return i?(n.M=+i[0],t+i[0].length):-1}function y$(n,r,t){var i=ps.exec(r.slice(t,t+2));return i?(n.S=+i[0],t+i[0].length):-1}function b$(n,r,t){var i=ps.exec(r.slice(t,t+3));return i?(n.L=+i[0],t+i[0].length):-1}function C$(n,r,t){var i=ps.exec(r.slice(t,t+6));return i?(n.L=Math.floor(i[0]/1e3),t+i[0].length):-1}function S$(n,r,t){var i=o$.exec(r.slice(t,t+1));return i?t+i[0].length:-1}function T$(n,r,t){var i=ps.exec(r.slice(t));return i?(n.Q=+i[0],t+i[0].length):-1}function x$(n,r,t){var i=ps.exec(r.slice(t));return i?(n.Q=1e3*+i[0],t+i[0].length):-1}function m9(n,r){return lo(n.getDate(),r,2)}function w$(n,r){return lo(n.getHours(),r,2)}function k$(n,r){return lo(n.getHours()%12||12,r,2)}function E$(n,r){return lo(1+TA.count(Hm(n),n),r,3)}function v9(n,r){return lo(n.getMilliseconds(),r,3)}function M$(n,r){return v9(n,r)+"000"}function A$(n,r){return lo(n.getMonth()+1,r,2)}function D$(n,r){return lo(n.getMinutes(),r,2)}function O$(n,r){return lo(n.getSeconds(),r,2)}function P$(n){var r=n.getDay();return 0===r?7:r}function I$(n,r){return lo(U1.count(Hm(n),n),r,2)}function R$(n,r){var t=n.getDay();return n=t>=4||0===t?V1(n):V1.ceil(n),lo(V1.count(Hm(n),n)+(4===Hm(n).getDay()),r,2)}function N$(n){return n.getDay()}function Z$(n,r){return lo(H1.count(Hm(n),n),r,2)}function L$(n,r){return lo(n.getFullYear()%100,r,2)}function F$(n,r){return lo(n.getFullYear()%1e4,r,4)}function B$(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+lo(r/60|0,"0",2)+lo(r%60,"0",2)}function g9(n,r){return lo(n.getUTCDate(),r,2)}function U$(n,r){return lo(n.getUTCHours(),r,2)}function H$(n,r){return lo(n.getUTCHours()%12||12,r,2)}function V$(n,r){return lo(1+xA.count(qm(n),n),r,3)}function _9(n,r){return lo(n.getUTCMilliseconds(),r,3)}function q$(n,r){return _9(n,r)+"000"}function j$(n,r){return lo(n.getUTCMonth()+1,r,2)}function z$(n,r){return lo(n.getUTCMinutes(),r,2)}function W$(n,r){return lo(n.getUTCSeconds(),r,2)}function G$(n){var r=n.getUTCDay();return 0===r?7:r}function Y$(n,r){return lo(q1.count(qm(n),n),r,2)}function J$(n,r){var t=n.getUTCDay();return n=t>=4||0===t?z1(n):z1.ceil(n),lo(z1.count(qm(n),n)+(4===qm(n).getUTCDay()),r,2)}function Q$(n){return n.getUTCDay()}function K$(n,r){return lo(j1.count(qm(n),n),r,2)}function X$(n,r){return lo(n.getUTCFullYear()%100,r,2)}function $$(n,r){return lo(n.getUTCFullYear()%1e4,r,4)}function eee(){return"+0000"}function y9(){return"%"}function b9(n){return+n}function C9(n){return Math.floor(+n/1e3)}function T9(n){return Z_=d9(n),I6=Z_.format,S9=Z_.parse,kA=Z_.utcFormat,R6=Z_.utcParse,Z_}T9({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var x9="%Y-%m-%dT%H:%M:%S.%LZ",ree=Date.prototype.toISOString?function(n){return n.toISOString()}:kA(x9),aee=+new Date("2000-01-01T00:00:00.000Z")?function(n){var r=new Date(n);return isNaN(r)?null:r}:R6(x9),Q1=6e4,K1=60*Q1,X1=24*K1,w9=30*X1,N6=365*X1;function lee(n){return new Date(n)}function uee(n){return n instanceof Date?+n:+new Date(+n)}function Z6(n,r,t,i,o,a,s,u,p){var m=gA(E6,ia),b=m.invert,R=m.domain,F=p(".%L"),G=p(":%S"),Y=p("%I:%M"),ee=p("%I %p"),pe=p("%a %d"),Ee=p("%b %d"),lt=p("%B"),tt=p("%Y"),it=[[s,1,1e3],[s,5,5e3],[s,15,15e3],[s,30,3e4],[a,1,Q1],[a,5,5*Q1],[a,15,15*Q1],[a,30,30*Q1],[o,1,K1],[o,3,3*K1],[o,6,6*K1],[o,12,12*K1],[i,1,X1],[i,2,2*X1],[t,1,6048e5],[r,1,w9],[r,3,3*w9],[n,1,N6]];function mt(et){return(s(et)<et?F:a(et)<et?G:o(et)<et?Y:i(et)<et?ee:r(et)<et?t(et)<et?pe:Ee:n(et)<et?lt:tt)(et)}function Ke(et,Rt,kt,fn){if(null==et&&(et=10),"number"==typeof et){var Jt=Math.abs(kt-Rt)/et,st=vE(function(Ot){return Ot[2]}).right(it,Jt);st===it.length?(fn=Gc(Rt/N6,kt/N6,et),et=n):st?(fn=(st=it[Jt/it[st-1][2]<it[st][2]/Jt?st-1:st])[1],et=st[0]):(fn=Math.max(Gc(Rt,kt,et),1),et=u)}return null==fn?et:et.every(fn)}return m.invert=function(et){return new Date(b(et))},m.domain=function(et){return arguments.length?R(S6.call(et,uee)):R().map(lee)},m.ticks=function(et,Rt){var Ot,kt=R(),fn=kt[0],Jt=kt[kt.length-1],st=Jt<fn;return st&&(Ot=fn,fn=Jt,Jt=Ot),Ot=(Ot=Ke(et,fn,Jt,Rt))?Ot.range(fn,Jt+1):[],st?Ot.reverse():Ot},m.tickFormat=function(et,Rt){return null==Rt?mt:p(Rt)},m.nice=function(et,Rt){var kt=R();return(et=Ke(et,kt[0],kt[kt.length-1],Rt))?R(MU(kt,et)):m},m.copy=function(){return vA(m,Z6(n,r,t,i,o,a,s,u,p))},m}function cee(){return Z6(Hm,XU,U1,TA,jU,VU,SA,yA,I6).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}function dee(){return Z6(qm,c9,q1,xA,n9,e9,SA,yA,kA).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}function k9(n){var r=0,t=1,i=!1;function o(a){var s=(a-r)/(t-r);return n(i?Math.max(0,Math.min(1,s)):s)}return o.domain=function(a){return arguments.length?(r=+a[0],t=+a[1],o):[r,t]},o.clamp=function(a){return arguments.length?(i=!!a,o):i},o.interpolator=function(a){return arguments.length?(n=a,o):n},o.copy=function(){return k9(n).domain([r,t]).clamp(i)},B1(o)}function ii(n){for(var r=n.length/6|0,t=new Array(r),i=0;i<r;)t[i]="#"+n.slice(6*i,6*++i);return t}var pee=ii("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),fee=ii("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),hee=ii("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),mee=ii("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),vee=ii("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),gee=ii("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),_ee=ii("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),yee=ii("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),bee=ii("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");function yo(n){return _o(n[n.length-1])}var E9=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(ii),Cee=yo(E9),M9=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(ii),See=yo(M9),A9=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(ii),Tee=yo(A9),D9=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(ii),xee=yo(D9),O9=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(ii),wee=yo(O9),P9=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(ii),kee=yo(P9),I9=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(ii),Eee=yo(I9),R9=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(ii),Mee=yo(R9),N9=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(ii),Aee=yo(N9),Z9=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(ii),Dee=yo(Z9),L9=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(ii),Oee=yo(L9),F9=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(ii),Pee=yo(F9),B9=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(ii),Iee=yo(B9),U9=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(ii),Ree=yo(U9),H9=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(ii),Nee=yo(H9),V9=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(ii),Zee=yo(V9),q9=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(ii),Lee=yo(q9),j9=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(ii),Fee=yo(j9),z9=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(ii),Bee=yo(z9),W9=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(ii),Uee=yo(W9),G9=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(ii),Hee=yo(G9),Y9=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(ii),Vee=yo(Y9),J9=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(ii),qee=yo(J9),Q9=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(ii),jee=yo(Q9),K9=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(ii),zee=yo(K9),X9=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(ii),Wee=yo(X9),$9=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(ii),Gee=yo($9),Yee=aM(Ae(300,.5,0),Ae(-240,.5,1)),Jee=aM(Ae(-100,.75,.35),Ae(80,1.5,.8)),Qee=aM(Ae(260,.75,.35),Ae(80,1.5,.8)),EA=Ae();function Kee(n){(n<0||n>1)&&(n-=Math.floor(n));var r=Math.abs(n-.5);return EA.h=360*n-100,EA.s=1.5-1.5*r,EA.l=.8-.9*r,EA+""}function MA(n){var r=n.length;return function(t){return n[Math.max(0,Math.min(r-1,Math.floor(t*r)))]}}var Xee=MA(ii("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),$ee=MA(ii("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),ete=MA(ii("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),tte=MA(ii("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function nte(n,r){return n.each(function(){var t=r.apply(this,arguments),i=Xr(this);for(var o in t)i.attr(o,t[o])})}function rte(n,r){for(var t in r)n.attr(t,r[t]);return n}function ote(n,r,t){return n.each(function(){var i=r.apply(this,arguments),o=Xr(this);for(var a in i)o.style(a,i[a],t)})}function ate(n,r,t){for(var i in r)n.style(i,r[i],t);return n}function lte(n,r){return n.each(function(){var t=r.apply(this,arguments),i=Xr(this);for(var o in t)i.property(o,t[o])})}function ute(n,r){for(var t in r)n.property(t,r[t]);return n}function dte(n,r){return n.each(function(){var t=r.apply(this,arguments),i=Xr(this).transition(n);for(var o in t)i.attr(o,t[o])})}function pte(n,r){for(var t in r)n.attr(t,r[t]);return n}function hte(n,r,t){return n.each(function(){var i=r.apply(this,arguments),o=Xr(this).transition(n);for(var a in i)o.style(a,i[a],t)})}function mte(n,r,t){for(var i in r)n.style(i,r[i],t);return n}function di(n){return function(){return n}}qs.prototype.attrs=function(n){return("function"==typeof n?nte:rte)(this,n)},qs.prototype.styles=function(n,r){return("function"==typeof n?ote:ate)(this,n,null==r?"":r)},qs.prototype.properties=function(n){return("function"==typeof n?lte:ute)(this,n)},hM.prototype.attrs=function(n){return("function"==typeof n?dte:pte)(this,n)},hM.prototype.styles=function(n,r){return("function"==typeof n?hte:mte)(this,n,null==r?"":r)};var eH=Math.abs,Ss=Math.atan2,jm=Math.cos,gte=Math.max,L6=Math.min,id=Math.sin,L_=Math.sqrt,fs=1e-12,zm=Math.PI,AA=zm/2,cp=2*zm;function _te(n){return n>1?0:n<-1?zm:Math.acos(n)}function tH(n){return n>=1?AA:n<=-1?-AA:Math.asin(n)}function yte(n){return n.innerRadius}function bte(n){return n.outerRadius}function Cte(n){return n.startAngle}function Ste(n){return n.endAngle}function Tte(n){return n&&n.padAngle}function xte(n,r,t,i,o,a,s,u){var p=t-n,m=i-r,b=s-o,R=u-a,F=R*p-b*m;if(!(F*F<fs))return[n+(F=(b*(r-a)-R*(n-o))/F)*p,r+F*m]}function DA(n,r,t,i,o,a,s){var u=n-t,p=r-i,m=(s?a:-a)/L_(u*u+p*p),b=m*p,R=-m*u,F=n+b,G=r+R,Y=t+b,ee=i+R,pe=(F+Y)/2,Ee=(G+ee)/2,lt=Y-F,tt=ee-G,it=lt*lt+tt*tt,mt=o-a,Ke=F*ee-Y*G,et=(tt<0?-1:1)*L_(gte(0,mt*mt*it-Ke*Ke)),Rt=(Ke*tt-lt*et)/it,kt=(-Ke*lt-tt*et)/it,fn=(Ke*tt+lt*et)/it,Jt=(-Ke*lt+tt*et)/it,st=Rt-pe,Ot=kt-Ee,gn=fn-pe,pn=Jt-Ee;return st*st+Ot*Ot>gn*gn+pn*pn&&(Rt=fn,kt=Jt),{cx:Rt,cy:kt,x01:-b,y01:-R,x11:Rt*(o/mt-1),y11:kt*(o/mt-1)}}function wte(){var n=yte,r=bte,t=di(0),i=null,o=Cte,a=Ste,s=Tte,u=null;function p(){var m,b,R=+n.apply(this,arguments),F=+r.apply(this,arguments),G=o.apply(this,arguments)-AA,Y=a.apply(this,arguments)-AA,ee=eH(Y-G),pe=Y>G;if(u||(u=m=Ku()),F<R&&(b=F,F=R,R=b),F>fs)if(ee>cp-fs)u.moveTo(F*jm(G),F*id(G)),u.arc(0,0,F,G,Y,!pe),R>fs&&(u.moveTo(R*jm(Y),R*id(Y)),u.arc(0,0,R,Y,G,pe));else{var st,Ot,Ee=G,lt=Y,tt=G,it=Y,mt=ee,Ke=ee,et=s.apply(this,arguments)/2,Rt=et>fs&&(i?+i.apply(this,arguments):L_(R*R+F*F)),kt=L6(eH(F-R)/2,+t.apply(this,arguments)),fn=kt,Jt=kt;if(Rt>fs){var gn=tH(Rt/R*id(et)),pn=tH(Rt/F*id(et));(mt-=2*gn)>fs?(tt+=gn*=pe?1:-1,it-=gn):(mt=0,tt=it=(G+Y)/2),(Ke-=2*pn)>fs?(Ee+=pn*=pe?1:-1,lt-=pn):(Ke=0,Ee=lt=(G+Y)/2)}var kn=F*jm(Ee),Ln=F*id(Ee),nr=R*jm(it),gr=R*id(it);if(kt>fs){var _r,Wr=F*jm(lt),ar=F*id(lt),Qr=R*jm(tt),si=R*id(tt);if(ee<=cp-fs&&(_r=xte(kn,Ln,Qr,si,Wr,ar,nr,gr))){var Li=kn-_r[0],Uo=Ln-_r[1],vr=Wr-_r[0],fr=ar-_r[1],sr=1/id(_te((Li*vr+Uo*fr)/(L_(Li*Li+Uo*Uo)*L_(vr*vr+fr*fr)))/2),qn=L_(_r[0]*_r[0]+_r[1]*_r[1]);fn=L6(kt,(R-qn)/(sr-1)),Jt=L6(kt,(F-qn)/(sr+1))}}Ke>fs?Jt>fs?(st=DA(Qr,si,kn,Ln,F,Jt,pe),Ot=DA(Wr,ar,nr,gr,F,Jt,pe),u.moveTo(st.cx+st.x01,st.cy+st.y01),Jt<kt?u.arc(st.cx,st.cy,Jt,Ss(st.y01,st.x01),Ss(Ot.y01,Ot.x01),!pe):(u.arc(st.cx,st.cy,Jt,Ss(st.y01,st.x01),Ss(st.y11,st.x11),!pe),u.arc(0,0,F,Ss(st.cy+st.y11,st.cx+st.x11),Ss(Ot.cy+Ot.y11,Ot.cx+Ot.x11),!pe),u.arc(Ot.cx,Ot.cy,Jt,Ss(Ot.y11,Ot.x11),Ss(Ot.y01,Ot.x01),!pe))):(u.moveTo(kn,Ln),u.arc(0,0,F,Ee,lt,!pe)):u.moveTo(kn,Ln),R>fs&&mt>fs?fn>fs?(st=DA(nr,gr,Wr,ar,R,-fn,pe),Ot=DA(kn,Ln,Qr,si,R,-fn,pe),u.lineTo(st.cx+st.x01,st.cy+st.y01),fn<kt?u.arc(st.cx,st.cy,fn,Ss(st.y01,st.x01),Ss(Ot.y01,Ot.x01),!pe):(u.arc(st.cx,st.cy,fn,Ss(st.y01,st.x01),Ss(st.y11,st.x11),!pe),u.arc(0,0,R,Ss(st.cy+st.y11,st.cx+st.x11),Ss(Ot.cy+Ot.y11,Ot.cx+Ot.x11),pe),u.arc(Ot.cx,Ot.cy,fn,Ss(Ot.y11,Ot.x11),Ss(Ot.y01,Ot.x01),!pe))):u.arc(0,0,R,it,tt,pe):u.lineTo(nr,gr)}else u.moveTo(0,0);if(u.closePath(),m)return u=null,m+""||null}return p.centroid=function(){var m=(+n.apply(this,arguments)+ +r.apply(this,arguments))/2,b=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-zm/2;return[jm(b)*m,id(b)*m]},p.innerRadius=function(m){return arguments.length?(n="function"==typeof m?m:di(+m),p):n},p.outerRadius=function(m){return arguments.length?(r="function"==typeof m?m:di(+m),p):r},p.cornerRadius=function(m){return arguments.length?(t="function"==typeof m?m:di(+m),p):t},p.padRadius=function(m){return arguments.length?(i=null==m?null:"function"==typeof m?m:di(+m),p):i},p.startAngle=function(m){return arguments.length?(o="function"==typeof m?m:di(+m),p):o},p.endAngle=function(m){return arguments.length?(a="function"==typeof m?m:di(+m),p):a},p.padAngle=function(m){return arguments.length?(s="function"==typeof m?m:di(+m),p):s},p.context=function(m){return arguments.length?(u=null==m?null:m,p):u},p}function nH(n){this._context=n}function OA(n){return new nH(n)}function F6(n){return n[0]}function B6(n){return n[1]}function PA(){var n=F6,r=B6,t=di(!0),i=null,o=OA,a=null;function s(u){var p,b,F,m=u.length,R=!1;for(null==i&&(a=o(F=Ku())),p=0;p<=m;++p)!(p<m&&t(b=u[p],p,u))===R&&((R=!R)?a.lineStart():a.lineEnd()),R&&a.point(+n(b,p,u),+r(b,p,u));if(F)return a=null,F+""||null}return s.x=function(u){return arguments.length?(n="function"==typeof u?u:di(+u),s):n},s.y=function(u){return arguments.length?(r="function"==typeof u?u:di(+u),s):r},s.defined=function(u){return arguments.length?(t="function"==typeof u?u:di(!!u),s):t},s.curve=function(u){return arguments.length?(o=u,null!=i&&(a=o(i)),s):o},s.context=function(u){return arguments.length?(null==u?i=a=null:a=o(i=u),s):i},s}function rH(){var n=F6,r=null,t=di(0),i=B6,o=di(!0),a=null,s=OA,u=null;function p(b){var R,F,G,ee,Ee,Y=b.length,pe=!1,lt=new Array(Y),tt=new Array(Y);for(null==a&&(u=s(Ee=Ku())),R=0;R<=Y;++R){if(!(R<Y&&o(ee=b[R],R,b))===pe)if(pe=!pe)F=R,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),G=R-1;G>=F;--G)u.point(lt[G],tt[G]);u.lineEnd(),u.areaEnd()}pe&&(lt[R]=+n(ee,R,b),tt[R]=+t(ee,R,b),u.point(r?+r(ee,R,b):lt[R],i?+i(ee,R,b):tt[R]))}if(Ee)return u=null,Ee+""||null}function m(){return PA().defined(o).curve(s).context(a)}return p.x=function(b){return arguments.length?(n="function"==typeof b?b:di(+b),r=null,p):n},p.x0=function(b){return arguments.length?(n="function"==typeof b?b:di(+b),p):n},p.x1=function(b){return arguments.length?(r=null==b?null:"function"==typeof b?b:di(+b),p):r},p.y=function(b){return arguments.length?(t="function"==typeof b?b:di(+b),i=null,p):t},p.y0=function(b){return arguments.length?(t="function"==typeof b?b:di(+b),p):t},p.y1=function(b){return arguments.length?(i=null==b?null:"function"==typeof b?b:di(+b),p):i},p.lineX0=p.lineY0=function(){return m().x(n).y(t)},p.lineY1=function(){return m().x(n).y(i)},p.lineX1=function(){return m().x(r).y(t)},p.defined=function(b){return arguments.length?(o="function"==typeof b?b:di(!!b),p):o},p.curve=function(b){return arguments.length?(s=b,null!=a&&(u=s(a)),p):s},p.context=function(b){return arguments.length?(null==b?a=u=null:u=s(a=b),p):a},p}function kte(n,r){return r<n?-1:r>n?1:r>=n?0:NaN}function Ete(n){return n}function Mte(){var n=Ete,r=kte,t=null,i=di(0),o=di(cp),a=di(0);function s(u){var p,b,R,Ee,it,m=u.length,F=0,G=new Array(m),Y=new Array(m),ee=+i.apply(this,arguments),pe=Math.min(cp,Math.max(-cp,o.apply(this,arguments)-ee)),lt=Math.min(Math.abs(pe)/m,a.apply(this,arguments)),tt=lt*(pe<0?-1:1);for(p=0;p<m;++p)(it=Y[G[p]=p]=+n(u[p],p,u))>0&&(F+=it);for(null!=r?G.sort(function(mt,Ke){return r(Y[mt],Y[Ke])}):null!=t&&G.sort(function(mt,Ke){return t(u[mt],u[Ke])}),p=0,R=F?(pe-m*tt)/F:0;p<m;++p,ee=Ee)Y[b=G[p]]={data:u[b],index:p,value:it=Y[b],startAngle:ee,endAngle:Ee=ee+(it>0?it*R:0)+tt,padAngle:lt};return Y}return s.value=function(u){return arguments.length?(n="function"==typeof u?u:di(+u),s):n},s.sortValues=function(u){return arguments.length?(r=u,t=null,s):r},s.sort=function(u){return arguments.length?(t=u,r=null,s):t},s.startAngle=function(u){return arguments.length?(i="function"==typeof u?u:di(+u),s):i},s.endAngle=function(u){return arguments.length?(o="function"==typeof u?u:di(+u),s):o},s.padAngle=function(u){return arguments.length?(a="function"==typeof u?u:di(+u),s):a},s}nH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2;default:this._context.lineTo(r,t)}}};var iH=U6(OA);function oH(n){this._curve=n}function U6(n){function r(t){return new oH(n(t))}return r._curve=n,r}function $1(n){var r=n.curve;return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n.curve=function(t){return arguments.length?r(U6(t)):r()._curve},n}function aH(){return $1(PA().curve(iH))}function sH(){var n=rH().curve(iH),r=n.curve,t=n.lineX0,i=n.lineX1,o=n.lineY0,a=n.lineY1;return n.angle=n.x,delete n.x,n.startAngle=n.x0,delete n.x0,n.endAngle=n.x1,delete n.x1,n.radius=n.y,delete n.y,n.innerRadius=n.y0,delete n.y0,n.outerRadius=n.y1,delete n.y1,n.lineStartAngle=function(){return $1(t())},delete n.lineX0,n.lineEndAngle=function(){return $1(i())},delete n.lineX1,n.lineInnerRadius=function(){return $1(o())},delete n.lineY0,n.lineOuterRadius=function(){return $1(a())},delete n.lineY1,n.curve=function(s){return arguments.length?r(U6(s)):r()._curve},n}function eS(n,r){return[(r=+r)*Math.cos(n-=Math.PI/2),r*Math.sin(n)]}oH.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(r,t){this._curve.point(t*Math.sin(r),t*-Math.cos(r))}};var H6=Array.prototype.slice;function Ate(n){return n.source}function Dte(n){return n.target}function V6(n){var r=Ate,t=Dte,i=F6,o=B6,a=null;function s(){var u,p=H6.call(arguments),m=r.apply(this,p),b=t.apply(this,p);if(a||(a=u=Ku()),n(a,+i.apply(this,(p[0]=m,p)),+o.apply(this,p),+i.apply(this,(p[0]=b,p)),+o.apply(this,p)),u)return a=null,u+""||null}return s.source=function(u){return arguments.length?(r=u,s):r},s.target=function(u){return arguments.length?(t=u,s):t},s.x=function(u){return arguments.length?(i="function"==typeof u?u:di(+u),s):i},s.y=function(u){return arguments.length?(o="function"==typeof u?u:di(+u),s):o},s.context=function(u){return arguments.length?(a=null==u?null:u,s):a},s}function Ote(n,r,t,i,o){n.moveTo(r,t),n.bezierCurveTo(r=(r+i)/2,t,r,o,i,o)}function Pte(n,r,t,i,o){n.moveTo(r,t),n.bezierCurveTo(r,t=(t+o)/2,i,t,i,o)}function Ite(n,r,t,i,o){var a=eS(r,t),s=eS(r,t=(t+o)/2),u=eS(i,t),p=eS(i,o);n.moveTo(a[0],a[1]),n.bezierCurveTo(s[0],s[1],u[0],u[1],p[0],p[1])}function Rte(){return V6(Ote)}function Nte(){return V6(Pte)}function Zte(){var n=V6(Ite);return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n}var q6={draw:function(r,t){var i=Math.sqrt(t/zm);r.moveTo(i,0),r.arc(0,0,i,0,cp)}},lH={draw:function(r,t){var i=Math.sqrt(t/5)/2;r.moveTo(-3*i,-i),r.lineTo(-i,-i),r.lineTo(-i,-3*i),r.lineTo(i,-3*i),r.lineTo(i,-i),r.lineTo(3*i,-i),r.lineTo(3*i,i),r.lineTo(i,i),r.lineTo(i,3*i),r.lineTo(-i,3*i),r.lineTo(-i,i),r.lineTo(-3*i,i),r.closePath()}},uH=Math.sqrt(1/3),Lte=2*uH,cH={draw:function(r,t){var i=Math.sqrt(t/Lte),o=i*uH;r.moveTo(0,-i),r.lineTo(o,0),r.lineTo(0,i),r.lineTo(-o,0),r.closePath()}},dH=Math.sin(zm/10)/Math.sin(7*zm/10),Bte=Math.sin(cp/10)*dH,Ute=-Math.cos(cp/10)*dH,pH={draw:function(r,t){var i=Math.sqrt(.8908130915292852*t),o=Bte*i,a=Ute*i;r.moveTo(0,-i),r.lineTo(o,a);for(var s=1;s<5;++s){var u=cp*s/5,p=Math.cos(u),m=Math.sin(u);r.lineTo(m*i,-p*i),r.lineTo(p*o-m*a,m*o+p*a)}r.closePath()}},fH={draw:function(r,t){var i=Math.sqrt(t),o=-i/2;r.rect(o,o,i,i)}},j6=Math.sqrt(3),hH={draw:function(r,t){var i=-Math.sqrt(t/(3*j6));r.moveTo(0,2*i),r.lineTo(-j6*i,-i),r.lineTo(j6*i,-i),r.closePath()}},Eu=-.5,Mu=Math.sqrt(3)/2,z6=1/Math.sqrt(12),Hte=3*(z6/2+1),mH={draw:function(r,t){var i=Math.sqrt(t/Hte),o=i/2,a=i*z6,s=o,u=i*z6+i,p=-s,m=u;r.moveTo(o,a),r.lineTo(s,u),r.lineTo(p,m),r.lineTo(Eu*o-Mu*a,Mu*o+Eu*a),r.lineTo(Eu*s-Mu*u,Mu*s+Eu*u),r.lineTo(Eu*p-Mu*m,Mu*p+Eu*m),r.lineTo(Eu*o+Mu*a,Eu*a-Mu*o),r.lineTo(Eu*s+Mu*u,Eu*u-Mu*s),r.lineTo(Eu*p+Mu*m,Eu*m-Mu*p),r.closePath()}},Vte=[q6,lH,cH,fH,pH,hH,mH];function qte(){var n=di(q6),r=di(64),t=null;function i(){var o;if(t||(t=o=Ku()),n.apply(this,arguments).draw(t,+r.apply(this,arguments)),o)return t=null,o+""||null}return i.type=function(o){return arguments.length?(n="function"==typeof o?o:di(o),i):n},i.size=function(o){return arguments.length?(r="function"==typeof o?o:di(+o),i):r},i.context=function(o){return arguments.length?(t=null==o?null:o,i):t},i}function Vf(){}function IA(n,r,t){n._context.bezierCurveTo((2*n._x0+n._x1)/3,(2*n._y0+n._y1)/3,(n._x0+2*n._x1)/3,(n._y0+2*n._y1)/3,(n._x0+4*n._x1+r)/6,(n._y0+4*n._y1+t)/6)}function RA(n){this._context=n}function jte(n){return new RA(n)}function vH(n){this._context=n}function zte(n){return new vH(n)}function gH(n){this._context=n}function Wte(n){return new gH(n)}function _H(n,r){this._basis=new RA(n),this._beta=r}RA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:IA(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:IA(this,r,t)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=t}},vH.prototype={areaStart:Vf,areaEnd:Vf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._x2=r,this._y2=t;break;case 1:this._point=2,this._x3=r,this._y3=t;break;case 2:this._point=3,this._x4=r,this._y4=t,this._context.moveTo((this._x0+4*this._x1+r)/6,(this._y0+4*this._y1+t)/6);break;default:IA(this,r,t)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=t}},gH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+r)/6,o=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(i,o):this._context.moveTo(i,o);break;case 3:this._point=4;default:IA(this,r,t)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=t}},_H.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var r=this._x,t=this._y,i=r.length-1;if(i>0)for(var m,o=r[0],a=t[0],s=r[i]-o,u=t[i]-a,p=-1;++p<=i;)this._basis.point(this._beta*r[p]+(1-this._beta)*(o+(m=p/i)*s),this._beta*t[p]+(1-this._beta)*(a+m*u));this._x=this._y=null,this._basis.lineEnd()},point:function(r,t){this._x.push(+r),this._y.push(+t)}};var Gte=function n(r){function t(i){return 1===r?new RA(i):new _H(i,r)}return t.beta=function(i){return n(+i)},t}(.85);function NA(n,r,t){n._context.bezierCurveTo(n._x1+n._k*(n._x2-n._x0),n._y1+n._k*(n._y2-n._y0),n._x2+n._k*(n._x1-r),n._y2+n._k*(n._y1-t),n._x2,n._y2)}function W6(n,r){this._context=n,this._k=(1-r)/6}W6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:NA(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2,this._x1=r,this._y1=t;break;case 2:this._point=3;default:NA(this,r,t)}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Yte=function n(r){function t(i){return new W6(i,r)}return t.tension=function(i){return n(+i)},t}(0);function G6(n,r){this._context=n,this._k=(1-r)/6}G6.prototype={areaStart:Vf,areaEnd:Vf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._x3=r,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=t);break;case 2:this._point=3,this._x5=r,this._y5=t;break;default:NA(this,r,t)}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Jte=function n(r){function t(i){return new G6(i,r)}return t.tension=function(i){return n(+i)},t}(0);function Y6(n,r){this._context=n,this._k=(1-r)/6}Y6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:NA(this,r,t)}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Qte=function n(r){function t(i){return new Y6(i,r)}return t.tension=function(i){return n(+i)},t}(0);function J6(n,r,t){var i=n._x1,o=n._y1,a=n._x2,s=n._y2;if(n._l01_a>fs){var u=2*n._l01_2a+3*n._l01_a*n._l12_a+n._l12_2a,p=3*n._l01_a*(n._l01_a+n._l12_a);i=(i*u-n._x0*n._l12_2a+n._x2*n._l01_2a)/p,o=(o*u-n._y0*n._l12_2a+n._y2*n._l01_2a)/p}if(n._l23_a>fs){var m=2*n._l23_2a+3*n._l23_a*n._l12_a+n._l12_2a,b=3*n._l23_a*(n._l23_a+n._l12_a);a=(a*m+n._x1*n._l23_2a-r*n._l12_2a)/b,s=(s*m+n._y1*n._l23_2a-t*n._l12_2a)/b}n._context.bezierCurveTo(i,o,a,s,n._x2,n._y2)}function yH(n,r){this._context=n,this._alpha=r}yH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,t){if(r=+r,t=+t,this._point){var i=this._x2-r,o=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2;break;case 2:this._point=3;default:J6(this,r,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Kte=function n(r){function t(i){return r?new yH(i,r):new W6(i,0)}return t.alpha=function(i){return n(+i)},t}(.5);function bH(n,r){this._context=n,this._alpha=r}bH.prototype={areaStart:Vf,areaEnd:Vf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(r,t){if(r=+r,t=+t,this._point){var i=this._x2-r,o=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=r,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=t);break;case 2:this._point=3,this._x5=r,this._y5=t;break;default:J6(this,r,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Xte=function n(r){function t(i){return r?new bH(i,r):new G6(i,0)}return t.alpha=function(i){return n(+i)},t}(.5);function CH(n,r){this._context=n,this._alpha=r}CH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,t){if(r=+r,t=+t,this._point){var i=this._x2-r,o=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+o*o,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:J6(this,r,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var $te=function n(r){function t(i){return r?new CH(i,r):new Y6(i,0)}return t.alpha=function(i){return n(+i)},t}(.5);function SH(n){this._context=n}function ene(n){return new SH(n)}function TH(n){return n<0?-1:1}function xH(n,r,t){var i=n._x1-n._x0,o=r-n._x1,a=(n._y1-n._y0)/(i||o<0&&-0),s=(t-n._y1)/(o||i<0&&-0),u=(a*o+s*i)/(i+o);return(TH(a)+TH(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(u))||0}function wH(n,r){var t=n._x1-n._x0;return t?(3*(n._y1-n._y0)/t-r)/2:r}function Q6(n,r,t){var i=n._x0,a=n._x1,s=n._y1,u=(a-i)/3;n._context.bezierCurveTo(i+u,n._y0+u*r,a-u,s-u*t,a,s)}function ZA(n){this._context=n}function kH(n){this._context=new EH(n)}function EH(n){this._context=n}function tne(n){return new ZA(n)}function nne(n){return new kH(n)}function MH(n){this._context=n}function AH(n){var r,i,t=n.length-1,o=new Array(t),a=new Array(t),s=new Array(t);for(o[0]=0,a[0]=2,s[0]=n[0]+2*n[1],r=1;r<t-1;++r)o[r]=1,a[r]=4,s[r]=4*n[r]+2*n[r+1];for(o[t-1]=2,a[t-1]=7,s[t-1]=8*n[t-1]+n[t],r=1;r<t;++r)a[r]-=i=o[r]/a[r-1],s[r]-=i*s[r-1];for(o[t-1]=s[t-1]/a[t-1],r=t-2;r>=0;--r)o[r]=(s[r]-o[r+1])/a[r];for(a[t-1]=(n[t]+o[t-1])/2,r=0;r<t-1;++r)a[r]=2*n[r+1]-o[r+1];return[o,a]}function rne(n){return new MH(n)}function LA(n,r){this._context=n,this._t=r}function ine(n){return new LA(n,.5)}function one(n){return new LA(n,0)}function ane(n){return new LA(n,1)}function F_(n,r){if((s=n.length)>1)for(var i,o,s,t=1,a=n[r[0]],u=a.length;t<s;++t)for(o=a,a=n[r[t]],i=0;i<u;++i)a[i][1]+=a[i][0]=isNaN(o[i][1])?o[i][0]:o[i][1]}function B_(n){for(var r=n.length,t=new Array(r);--r>=0;)t[r]=r;return t}function sne(n,r){return n[r]}function lne(){var n=di([]),r=B_,t=F_,i=sne;function o(a){var u,R,s=n.apply(this,arguments),p=a.length,m=s.length,b=new Array(m);for(u=0;u<m;++u){for(var ee,F=s[u],G=b[u]=new Array(p),Y=0;Y<p;++Y)G[Y]=ee=[0,+i(a[Y],F,Y,a)],ee.data=a[Y];G.key=F}for(u=0,R=r(b);u<m;++u)b[R[u]].index=u;return t(b,R),b}return o.keys=function(a){return arguments.length?(n="function"==typeof a?a:di(H6.call(a)),o):n},o.value=function(a){return arguments.length?(i="function"==typeof a?a:di(+a),o):i},o.order=function(a){return arguments.length?(r=null==a?B_:"function"==typeof a?a:di(H6.call(a)),o):r},o.offset=function(a){return arguments.length?(t=null==a?F_:a,o):t},o}function une(n,r){if((i=n.length)>0){for(var t,i,s,o=0,a=n[0].length;o<a;++o){for(s=t=0;t<i;++t)s+=n[t][o][1]||0;if(s)for(t=0;t<i;++t)n[t][o][1]/=s}F_(n,r)}}function cne(n,r){if((p=n.length)>1)for(var t,o,a,s,u,p,i=0,m=n[r[0]].length;i<m;++i)for(s=u=0,t=0;t<p;++t)(a=(o=n[r[t]][i])[1]-o[0])>=0?(o[0]=s,o[1]=s+=a):a<0?(o[1]=u,o[0]=u+=a):o[0]=s}function dne(n,r){if((o=n.length)>0){for(var o,t=0,i=n[r[0]],a=i.length;t<a;++t){for(var s=0,u=0;s<o;++s)u+=n[s][t][1]||0;i[t][1]+=i[t][0]=-u/2}F_(n,r)}}function pne(n,r){if((s=n.length)>0&&(a=(o=n[r[0]]).length)>0){for(var o,a,s,t=0,i=1;i<a;++i){for(var u=0,p=0,m=0;u<s;++u){for(var b=n[r[u]],R=b[i][1]||0,G=(R-(b[i-1][1]||0))/2,Y=0;Y<u;++Y){var ee=n[r[Y]];G+=(ee[i][1]||0)-(ee[i-1][1]||0)}p+=R,m+=G*R}o[i-1][1]+=o[i-1][0]=t,p&&(t-=m/p)}o[i-1][1]+=o[i-1][0]=t,F_(n,r)}}function DH(n){var r=n.map(OH);return B_(n).sort(function(t,i){return r[t]-r[i]})}function OH(n){for(var o,r=0,t=-1,i=n.length;++t<i;)(o=+n[t][1])&&(r+=o);return r}function fne(n){return DH(n).reverse()}function hne(n){var t,i,r=n.length,o=n.map(OH),a=B_(n).sort(function(b,R){return o[R]-o[b]}),s=0,u=0,p=[],m=[];for(t=0;t<r;++t)i=a[t],s<u?(s+=o[i],p.push(i)):(u+=o[i],m.push(i));return m.reverse().concat(p)}function mne(n){return B_(n).reverse()}function vne(n,r,t){var i=new g1,o=r;return null==r?(i.restart(n,r,t),i):(r=+r,t=null==t?y_():+t,i.restart(function a(s){s+=o,i.restart(a,o+=r,t),n(s)},r,t),i)}function PH(n){return function(){return n}}function gne(n){return n[0]}function _ne(n){return n[1]}function K6(){this._=null}function FA(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function tS(n,r){var t=r,i=r.R,o=t.U;o?o.L===t?o.L=i:o.R=i:n._=i,i.U=o,t.U=i,t.R=i.L,t.R&&(t.R.U=t),i.L=t}function nS(n,r){var t=r,i=r.L,o=t.U;o?o.L===t?o.L=i:o.R=i:n._=i,i.U=o,t.U=i,t.L=i.R,t.L&&(t.L.U=t),i.R=t}function IH(n){for(;n.L;)n=n.L;return n}SH.prototype={areaStart:Vf,areaEnd:Vf,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(r,t){r=+r,t=+t,this._point?this._context.lineTo(r,t):(this._point=1,this._context.moveTo(r,t))}},ZA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Q6(this,this._t0,wH(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,t){var i=NaN;if(t=+t,(r=+r)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2;break;case 2:this._point=3,Q6(this,wH(this,i=xH(this,r,t)),i);break;default:Q6(this,this._t0,i=xH(this,r,t))}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=t,this._t0=i}}},(kH.prototype=Object.create(ZA.prototype)).point=function(n,r){ZA.prototype.point.call(this,r,n)},EH.prototype={moveTo:function(r,t){this._context.moveTo(t,r)},closePath:function(){this._context.closePath()},lineTo:function(r,t){this._context.lineTo(t,r)},bezierCurveTo:function(r,t,i,o,a,s){this._context.bezierCurveTo(t,r,o,i,s,a)}},MH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var r=this._x,t=this._y,i=r.length;if(i)if(this._line?this._context.lineTo(r[0],t[0]):this._context.moveTo(r[0],t[0]),2===i)this._context.lineTo(r[1],t[1]);else for(var o=AH(r),a=AH(t),s=0,u=1;u<i;++s,++u)this._context.bezierCurveTo(o[0][s],a[0][s],o[1][s],a[1][s],r[u],t[u]);(this._line||0!==this._line&&1===i)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(r,t){this._x.push(+r),this._y.push(+t)}},LA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(r,t);else{var i=this._x*(1-this._t)+r*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,t)}}this._x=r,this._y=t}},K6.prototype={constructor:K6,insert:function(r,t){var i,o,a;if(r){if(t.P=r,t.N=r.N,r.N&&(r.N.P=t),r.N=t,r.R){for(r=r.R;r.L;)r=r.L;r.L=t}else r.R=t;i=r}else this._?(r=IH(this._),t.P=null,t.N=r,r.P=r.L=t,i=r):(t.P=t.N=null,this._=t,i=null);for(t.L=t.R=null,t.U=i,t.C=!0,r=t;i&&i.C;)i===(o=i.U).L?(a=o.R)&&a.C?(i.C=a.C=!1,o.C=!0,r=o):(r===i.R&&(tS(this,i),i=(r=i).U),i.C=!1,o.C=!0,nS(this,o)):(a=o.L)&&a.C?(i.C=a.C=!1,o.C=!0,r=o):(r===i.L&&(nS(this,i),i=(r=i).U),i.C=!1,o.C=!0,tS(this,o)),i=r.U;this._.C=!1},remove:function(r){r.N&&(r.N.P=r.P),r.P&&(r.P.N=r.N),r.N=r.P=null;var i,s,u,t=r.U,o=r.L,a=r.R;if(s=o?a?IH(a):o:a,t?t.L===r?t.L=s:t.R=s:this._=s,o&&a?(u=s.C,s.C=r.C,s.L=o,o.U=s,s!==a?(t=s.U,s.U=r.U,t.L=r=s.R,s.R=a,a.U=s):(s.U=t,t=s,r=s.R)):(u=r.C,r=s),r&&(r.U=t),!u){if(r&&r.C)return void(r.C=!1);do{if(r===this._)break;if(r===t.L){if((i=t.R).C&&(i.C=!1,t.C=!0,tS(this,t),i=t.R),i.L&&i.L.C||i.R&&i.R.C){(!i.R||!i.R.C)&&(i.L.C=!1,i.C=!0,nS(this,i),i=t.R),i.C=t.C,t.C=i.R.C=!1,tS(this,t),r=this._;break}}else if((i=t.L).C&&(i.C=!1,t.C=!0,nS(this,t),i=t.L),i.L&&i.L.C||i.R&&i.R.C){(!i.L||!i.L.C)&&(i.R.C=!1,i.C=!0,tS(this,i),i=t.L),i.C=t.C,t.C=i.L.C=!1,nS(this,t),r=this._;break}i.C=!0,r=t,t=t.U}while(!r.C);r&&(r.C=!1)}}};var RH=K6;function rS(n,r,t,i){var o=[null,null],a=Ts.push(o)-1;return o.left=n,o.right=r,t&&BA(o,n,r,t),i&&BA(o,r,n,i),Xl[n.index].halfedges.push(a),Xl[r.index].halfedges.push(a),o}function iS(n,r,t){var i=[r,t];return i.left=n,i}function BA(n,r,t,i){n[0]||n[1]?n.left===t?n[1]=i:n[0]=i:(n[0]=i,n.left=r,n.right=t)}function yne(n,r,t,i,o){var ee,a=n[0],s=n[1],u=a[0],p=a[1],R=0,F=1,G=s[0]-u,Y=s[1]-p;if(ee=r-u,G||!(ee>0)){if(ee/=G,G<0){if(ee<R)return;ee<F&&(F=ee)}else if(G>0){if(ee>F)return;ee>R&&(R=ee)}if(ee=i-u,G||!(ee<0)){if(ee/=G,G<0){if(ee>F)return;ee>R&&(R=ee)}else if(G>0){if(ee<R)return;ee<F&&(F=ee)}if(ee=t-p,Y||!(ee>0)){if(ee/=Y,Y<0){if(ee<R)return;ee<F&&(F=ee)}else if(Y>0){if(ee>F)return;ee>R&&(R=ee)}if(ee=o-p,Y||!(ee<0)){if(ee/=Y,Y<0){if(ee>F)return;ee>R&&(R=ee)}else if(Y>0){if(ee<R)return;ee<F&&(F=ee)}return!(R>0)&&!(F<1)||(R>0&&(n[0]=[u+R*G,p+R*Y]),F<1&&(n[1]=[u+F*G,p+F*Y])),!0}}}}}function bne(n,r,t,i,o){var a=n[1];if(a)return!0;var ee,pe,s=n[0],u=n.left,p=n.right,m=u[0],b=u[1],R=p[0],F=p[1],G=(m+R)/2;if(F===b){if(G<r||G>=i)return;if(m>R){if(s){if(s[1]>=o)return}else s=[G,t];a=[G,o]}else{if(s){if(s[1]<t)return}else s=[G,o];a=[G,t]}}else if(pe=(b+F)/2-(ee=(m-R)/(F-b))*G,ee<-1||ee>1)if(m>R){if(s){if(s[1]>=o)return}else s=[(t-pe)/ee,t];a=[(o-pe)/ee,o]}else{if(s){if(s[1]<t)return}else s=[(o-pe)/ee,o];a=[(t-pe)/ee,t]}else if(b<F){if(s){if(s[0]>=i)return}else s=[r,ee*r+pe];a=[i,ee*i+pe]}else{if(s){if(s[0]<r)return}else s=[i,ee*i+pe];a=[r,ee*r+pe]}return n[0]=s,n[1]=a,!0}function Tne(n,r){var t=n.site,i=r.left,o=r.right;return t===o&&(o=i,i=t),o?Math.atan2(o[1]-i[1],o[0]-i[0]):(t===i?(i=r[1],o=r[0]):(i=r[0],o=r[1]),Math.atan2(i[0]-o[0],o[1]-i[1]))}function NH(n,r){return r[+(r.left!==n.site)]}function xne(n,r){return r[+(r.left===n.site)]}var X6,ZH=[];function Ene(){FA(this),this.x=this.y=this.arc=this.site=this.cy=null}function U_(n){var r=n.P,t=n.N;if(r&&t){var i=r.site,o=n.site,a=t.site;if(i!==a){var s=o[0],u=o[1],p=i[0]-s,m=i[1]-u,b=a[0]-s,R=a[1]-u,F=2*(p*R-m*b);if(!(F>=-Pne)){var G=p*p+m*m,Y=b*b+R*R,ee=(R*G-m*Y)/F,pe=(p*Y-b*G)/F,Ee=ZH.pop()||new Ene;Ee.arc=n,Ee.site=o,Ee.x=ee+s,Ee.y=(Ee.cy=pe+u)+Math.sqrt(ee*ee+pe*pe),n.circle=Ee;for(var lt=null,tt=oS._;tt;)if(Ee.y<tt.y||Ee.y===tt.y&&Ee.x<=tt.x){if(!tt.L){lt=tt.P;break}tt=tt.L}else{if(!tt.R){lt=tt;break}tt=tt.R}oS.insert(lt,Ee),lt||(X6=Ee)}}}}function H_(n){var r=n.circle;r&&(r.P||(X6=r.N),oS.remove(r),ZH.push(r),FA(r),n.circle=null)}var LH=[];function Mne(){FA(this),this.edge=this.site=this.circle=null}function FH(n){var r=LH.pop()||new Mne;return r.site=n,r}function $6(n){H_(n),V_.remove(n),LH.push(n),FA(n)}function Ane(n){var r=n.circle,t=r.x,i=r.cy,o=[t,i],a=n.P,s=n.N,u=[n];$6(n);for(var p=a;p.circle&&Math.abs(t-p.circle.x)<uo&&Math.abs(i-p.circle.cy)<uo;)a=p.P,u.unshift(p),$6(p),p=a;u.unshift(p),H_(p);for(var m=s;m.circle&&Math.abs(t-m.circle.x)<uo&&Math.abs(i-m.circle.cy)<uo;)s=m.N,u.push(m),$6(m),m=s;u.push(m),H_(m);var R,b=u.length;for(R=1;R<b;++R)BA((m=u[R]).edge,(p=u[R-1]).site,m.site,o);(m=u[b-1]).edge=rS((p=u[0]).site,m.site,null,o),U_(p),U_(m)}function Dne(n){for(var i,o,a,s,r=n[0],t=n[1],u=V_._;u;)if((a=BH(u,t)-r)>uo)u=u.L;else{if(!((s=r-One(u,t))>uo)){a>-uo?(i=u.P,o=u):s>-uo?(i=u,o=u.N):i=o=u;break}if(!u.R){i=u;break}u=u.R}!function(n){Xl[n.index]={site:n,halfedges:[]}}(n);var p=FH(n);if(V_.insert(i,p),i||o){if(i===o)return H_(i),o=FH(i.site),V_.insert(p,o),p.edge=o.edge=rS(i.site,p.site),U_(i),void U_(o);if(!o)return void(p.edge=rS(i.site,p.site));H_(i),H_(o);var m=i.site,b=m[0],R=m[1],F=n[0]-b,G=n[1]-R,Y=o.site,ee=Y[0]-b,pe=Y[1]-R,Ee=2*(F*pe-G*ee),lt=F*F+G*G,tt=ee*ee+pe*pe,it=[(pe*lt-G*tt)/Ee+b,(F*tt-ee*lt)/Ee+R];BA(o.edge,m,Y,it),p.edge=rS(m,n,null,it),o.edge=rS(n,Y,null,it),U_(i),U_(o)}}function BH(n,r){var t=n.site,i=t[0],o=t[1],a=o-r;if(!a)return i;var s=n.P;if(!s)return-1/0;var u=(t=s.site)[0],p=t[1],m=p-r;if(!m)return u;var b=u-i,R=1/a-1/m,F=b/m;return R?(-F+Math.sqrt(F*F-2*R*(b*b/(-2*m)-p+m/2+o-a/2)))/R+i:(i+u)/2}function One(n,r){var t=n.N;if(t)return BH(t,r);var i=n.site;return i[1]===r?i[0]:1/0}var V_,Xl,oS,Ts,uo=1e-6,Pne=1e-12;function Ine(n,r,t){return(n[0]-t[0])*(r[1]-n[1])-(n[0]-r[0])*(t[1]-n[1])}function Rne(n,r){return r[1]-n[1]||r[0]-n[0]}function eZ(n,r){var i,o,a,t=n.sort(Rne).pop();for(Ts=[],Xl=new Array(n.length),V_=new RH,oS=new RH;;)if(a=X6,t&&(!a||t[1]<a.y||t[1]===a.y&&t[0]<a.x))(t[0]!==i||t[1]!==o)&&(Dne(t),i=t[0],o=t[1]),t=n.pop();else{if(!a)break;Ane(a.arc)}if(function(){for(var t,i,o,a,n=0,r=Xl.length;n<r;++n)if((t=Xl[n])&&(a=(i=t.halfedges).length)){var s=new Array(a),u=new Array(a);for(o=0;o<a;++o)s[o]=o,u[o]=Tne(t,Ts[i[o]]);for(s.sort(function(p,m){return u[m]-u[p]}),o=0;o<a;++o)u[o]=i[s[o]];for(o=0;o<a;++o)i[o]=u[o]}}(),r){var s=+r[0][0],u=+r[0][1],p=+r[1][0],m=+r[1][1];(function(n,r,t,i){for(var a,o=Ts.length;o--;)bne(a=Ts[o],n,r,t,i)&&yne(a,n,r,t,i)&&(Math.abs(a[0][0]-a[1][0])>uo||Math.abs(a[0][1]-a[1][1])>uo)||delete Ts[o]})(s,u,p,m),function(n,r,t,i){var a,s,u,p,m,b,R,F,G,Y,ee,pe,o=Xl.length,Ee=!0;for(a=0;a<o;++a)if(s=Xl[a]){for(u=s.site,p=(m=s.halfedges).length;p--;)Ts[m[p]]||m.splice(p,1);for(p=0,b=m.length;p<b;)ee=(Y=xne(s,Ts[m[p]]))[0],pe=Y[1],F=(R=NH(s,Ts[m[++p%b]]))[0],G=R[1],(Math.abs(ee-F)>uo||Math.abs(pe-G)>uo)&&(m.splice(p,0,Ts.push(iS(u,Y,Math.abs(ee-n)<uo&&i-pe>uo?[n,Math.abs(F-n)<uo?G:i]:Math.abs(pe-i)<uo&&t-ee>uo?[Math.abs(G-i)<uo?F:t,i]:Math.abs(ee-t)<uo&&pe-r>uo?[t,Math.abs(F-t)<uo?G:r]:Math.abs(pe-r)<uo&&ee-n>uo?[Math.abs(G-r)<uo?F:n,r]:null))-1),++b);b&&(Ee=!1)}if(Ee){var lt,tt,it,mt=1/0;for(a=0,Ee=null;a<o;++a)(s=Xl[a])&&(it=(lt=(u=s.site)[0]-n)*lt+(tt=u[1]-r)*tt)<mt&&(mt=it,Ee=s);if(Ee){var Ke=[n,r],et=[n,i],Rt=[t,i],kt=[t,r];Ee.halfedges.push(Ts.push(iS(u=Ee.site,Ke,et))-1,Ts.push(iS(u,et,Rt))-1,Ts.push(iS(u,Rt,kt))-1,Ts.push(iS(u,kt,Ke))-1)}}for(a=0;a<o;++a)(s=Xl[a])&&(s.halfedges.length||delete Xl[a])}(s,u,p,m)}this.edges=Ts,this.cells=Xl,V_=oS=Ts=Xl=null}function Nne(){var n=gne,r=_ne,t=null;function i(o){return new eZ(o.map(function(a,s){var u=[Math.round(n(a,s,o)/uo)*uo,Math.round(r(a,s,o)/uo)*uo];return u.index=s,u.data=a,u}),t)}return i.polygons=function(o){return i(o).polygons()},i.links=function(o){return i(o).links()},i.triangles=function(o){return i(o).triangles()},i.x=function(o){return arguments.length?(n="function"==typeof o?o:PH(+o),i):n},i.y=function(o){return arguments.length?(r="function"==typeof o?o:PH(+o),i):r},i.extent=function(o){return arguments.length?(t=null==o?null:[[+o[0][0],+o[0][1]],[+o[1][0],+o[1][1]]],i):t&&[[t[0][0],t[0][1]],[t[1][0],t[1][1]]]},i.size=function(o){return arguments.length?(t=null==o?null:[[0,0],[+o[0],+o[1]]],i):t&&[t[1][0]-t[0][0],t[1][1]-t[0][1]]},i}function UA(n){return function(){return n}}function Zne(n,r,t){this.target=n,this.type=r,this.transform=t}function dp(n,r,t){this.k=n,this.x=r,this.y=t}eZ.prototype={constructor:eZ,polygons:function(){var r=this.edges;return this.cells.map(function(t){var i=t.halfedges.map(function(o){return NH(t,r[o])});return i.data=t.site.data,i})},triangles:function(){var r=[],t=this.edges;return this.cells.forEach(function(i,o){if(p=(s=i.halfedges).length)for(var s,p,m,a=i.site,u=-1,b=t[s[p-1]],R=b.left===a?b.right:b.left;++u<p;)m=R,R=(b=t[s[u]]).left===a?b.right:b.left,m&&R&&o<m.index&&o<R.index&&Ine(a,m,R)<0&&r.push([a.data,m.data,R.data])}),r},links:function(){return this.edges.filter(function(r){return r.right}).map(function(r){return{source:r.left.data,target:r.right.data}})},find:function(r,t,i){for(var a,p,o=this,s=o._found||0,u=o.cells.length;!(p=o.cells[s]);)if(++s>=u)return null;var m=r-p.site[0],b=t-p.site[1],R=m*m+b*b;do{p=o.cells[a=s],s=null,p.halfedges.forEach(function(F){var G=o.edges[F],Y=G.left;if(Y!==p.site&&Y||(Y=G.right)){var ee=r-Y[0],pe=t-Y[1],Ee=ee*ee+pe*pe;Ee<R&&(R=Ee,s=Y.index)}})}while(null!==s);return o._found=a,null==i||R<=i*i?p.site:null}},dp.prototype={constructor:dp,scale:function(r){return 1===r?this:new dp(this.k*r,this.x,this.y)},translate:function(r,t){return 0===r&0===t?this:new dp(this.k,this.x+this.k*r,this.y+this.k*t)},apply:function(r){return[r[0]*this.k+this.x,r[1]*this.k+this.y]},applyX:function(r){return r*this.k+this.x},applyY:function(r){return r*this.k+this.y},invert:function(r){return[(r[0]-this.x)/this.k,(r[1]-this.y)/this.k]},invertX:function(r){return(r-this.x)/this.k},invertY:function(r){return(r-this.y)/this.k},rescaleX:function(r){return r.copy().domain(r.range().map(this.invertX,this).map(r.invert,r))},rescaleY:function(r){return r.copy().domain(r.range().map(this.invertY,this).map(r.invert,r))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var HA=new dp(1,0,0);function UH(n){return n.__zoom||HA}function tZ(){Mn.stopImmediatePropagation()}function aS(){Mn.preventDefault(),Mn.stopImmediatePropagation()}function Lne(){return!Mn.ctrlKey&&!Mn.button}function Fne(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n).hasAttribute("viewBox")?[[(n=n.viewBox.baseVal).x,n.y],[n.x+n.width,n.y+n.height]]:[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]:[[0,0],[n.clientWidth,n.clientHeight]]}function HH(){return this.__zoom||HA}function Bne(){return-Mn.deltaY*(1===Mn.deltaMode?.05:Mn.deltaMode?1:.002)}function Une(){return navigator.maxTouchPoints||"ontouchstart"in this}function Hne(n,r,t){var i=n.invertX(r[0][0])-t[0][0],o=n.invertX(r[1][0])-t[1][0],a=n.invertY(r[0][1])-t[0][1],s=n.invertY(r[1][1])-t[1][1];return n.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>a?(a+s)/2:Math.min(0,a)||Math.max(0,s))}function VH(){var b,R,n=Lne,r=Fne,t=Hne,i=Bne,o=Une,a=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],u=250,p=H4,m=$d("start","zoom","end"),F=500,Y=0;function ee(st){st.property("__zoom",HH).on("wheel.zoom",Ke).on("mousedown.zoom",et).on("dblclick.zoom",Rt).filter(o).on("touchstart.zoom",kt).on("touchmove.zoom",fn).on("touchend.zoom touchcancel.zoom",Jt).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function pe(st,Ot){return(Ot=Math.max(a[0],Math.min(a[1],Ot)))===st.k?st:new dp(Ot,st.x,st.y)}function Ee(st,Ot,gn){var pn=Ot[0]-gn[0]*st.k,kn=Ot[1]-gn[1]*st.k;return pn===st.x&&kn===st.y?st:new dp(st.k,pn,kn)}function lt(st){return[(+st[0][0]+ +st[1][0])/2,(+st[0][1]+ +st[1][1])/2]}function tt(st,Ot,gn){st.on("start.zoom",function(){it(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){it(this,arguments).end()}).tween("zoom",function(){var pn=this,kn=arguments,Ln=it(pn,kn),nr=r.apply(pn,kn),gr=gn||lt(nr),Wr=Math.max(nr[1][0]-nr[0][0],nr[1][1]-nr[0][1]),ar=pn.__zoom,Qr="function"==typeof Ot?Ot.apply(pn,kn):Ot,si=p(ar.invert(gr).concat(Wr/ar.k),Qr.invert(gr).concat(Wr/Qr.k));return function(_r){if(1===_r)_r=Qr;else{var Li=si(_r),Uo=Wr/Li[2];_r=new dp(Uo,gr[0]-Li[0]*Uo,gr[1]-Li[1]*Uo)}Ln.zoom(null,_r)}})}function it(st,Ot,gn){return!gn&&st.__zooming||new mt(st,Ot)}function mt(st,Ot){this.that=st,this.args=Ot,this.active=0,this.extent=r.apply(st,Ot),this.taps=0}function Ke(){if(n.apply(this,arguments)){var st=it(this,arguments),Ot=this.__zoom,gn=Math.max(a[0],Math.min(a[1],Ot.k*Math.pow(2,i.apply(this,arguments)))),pn=ul(this);Ot.k!==gn&&(st.wheel?((st.mouse[0][0]!==pn[0]||st.mouse[0][1]!==pn[1])&&(st.mouse[1]=Ot.invert(st.mouse[0]=pn)),clearTimeout(st.wheel)):(st.mouse=[pn,Ot.invert(pn)],Dm(this),st.start()),aS(),st.wheel=setTimeout(kn,150),st.zoom("mouse",t(Ee(pe(Ot,gn),st.mouse[0],st.mouse[1]),st.extent,s)))}function kn(){st.wheel=null,st.end()}}function et(){if(!R&&n.apply(this,arguments)){var st=it(this,arguments,!0),Ot=Xr(Mn.view).on("mousemove.zoom",Ln,!0).on("mouseup.zoom",nr,!0),gn=ul(this),pn=Mn.clientX,kn=Mn.clientY;f_(Mn.view),tZ(),st.mouse=[gn,this.__zoom.invert(gn)],Dm(this),st.start()}function Ln(){if(aS(),!st.moved){var gr=Mn.clientX-pn,Wr=Mn.clientY-kn;st.moved=gr*gr+Wr*Wr>Y}st.zoom("mouse",t(Ee(st.that.__zoom,st.mouse[0]=ul(st.that),st.mouse[1]),st.extent,s))}function nr(){Ot.on("mousemove.zoom mouseup.zoom",null),zl(Mn.view,st.moved),aS(),st.end()}}function Rt(){if(n.apply(this,arguments)){var st=this.__zoom,Ot=ul(this),gn=st.invert(Ot),pn=st.k*(Mn.shiftKey?.5:2),kn=t(Ee(pe(st,pn),Ot,gn),r.apply(this,arguments),s);aS(),u>0?Xr(this).transition().duration(u).call(tt,kn,Ot):Xr(this).call(ee.transform,kn)}}function kt(){if(n.apply(this,arguments)){var pn,kn,Ln,nr,st=Mn.touches,Ot=st.length,gn=it(this,arguments,Mn.changedTouches.length===Ot);for(tZ(),kn=0;kn<Ot;++kn)nr=[nr=p_(this,st,(Ln=st[kn]).identifier),this.__zoom.invert(nr),Ln.identifier],gn.touch0?gn.touch1||(gn.touch1=nr,gn.taps=0):(gn.touch0=nr,pn=!0,gn.taps=1+!!b);b&&(b=clearTimeout(b)),pn&&(gn.taps<2&&(b=setTimeout(function(){b=null},F)),Dm(this),gn.start())}}function fn(){if(this.__zooming){var pn,kn,Ln,nr,st=it(this,arguments),Ot=Mn.changedTouches,gn=Ot.length;for(aS(),b&&(b=clearTimeout(b)),st.taps=0,pn=0;pn<gn;++pn)Ln=p_(this,Ot,(kn=Ot[pn]).identifier),st.touch0&&st.touch0[2]===kn.identifier?st.touch0[0]=Ln:st.touch1&&st.touch1[2]===kn.identifier&&(st.touch1[0]=Ln);if(kn=st.that.__zoom,st.touch1){var gr=st.touch0[0],Wr=st.touch0[1],ar=st.touch1[0],Qr=st.touch1[1],si=(si=ar[0]-gr[0])*si+(si=ar[1]-gr[1])*si,_r=(_r=Qr[0]-Wr[0])*_r+(_r=Qr[1]-Wr[1])*_r;kn=pe(kn,Math.sqrt(si/_r)),Ln=[(gr[0]+ar[0])/2,(gr[1]+ar[1])/2],nr=[(Wr[0]+Qr[0])/2,(Wr[1]+Qr[1])/2]}else{if(!st.touch0)return;Ln=st.touch0[0],nr=st.touch0[1]}st.zoom("touch",t(Ee(kn,Ln,nr),st.extent,s))}}function Jt(){if(this.__zooming){var pn,kn,st=it(this,arguments),Ot=Mn.changedTouches,gn=Ot.length;for(tZ(),R&&clearTimeout(R),R=setTimeout(function(){R=null},F),pn=0;pn<gn;++pn)kn=Ot[pn],st.touch0&&st.touch0[2]===kn.identifier?delete st.touch0:st.touch1&&st.touch1[2]===kn.identifier&&delete st.touch1;if(st.touch1&&!st.touch0&&(st.touch0=st.touch1,delete st.touch1),st.touch0)st.touch0[1]=this.__zoom.invert(st.touch0[0]);else if(st.end(),2===st.taps){var Ln=Xr(this).on("dblclick.zoom");Ln&&Ln.apply(this,arguments)}}}return ee.transform=function(st,Ot){var gn=st.selection?st.selection():st;gn.property("__zoom",HH),st!==gn?tt(st,Ot):gn.interrupt().each(function(){it(this,arguments).start().zoom(null,"function"==typeof Ot?Ot.apply(this,arguments):Ot).end()})},ee.scaleBy=function(st,Ot){ee.scaleTo(st,function(){var gn=this.__zoom.k,pn="function"==typeof Ot?Ot.apply(this,arguments):Ot;return gn*pn})},ee.scaleTo=function(st,Ot){ee.transform(st,function(){var gn=r.apply(this,arguments),pn=this.__zoom,kn=lt(gn),Ln=pn.invert(kn),nr="function"==typeof Ot?Ot.apply(this,arguments):Ot;return t(Ee(pe(pn,nr),kn,Ln),gn,s)})},ee.translateBy=function(st,Ot,gn){ee.transform(st,function(){return t(this.__zoom.translate("function"==typeof Ot?Ot.apply(this,arguments):Ot,"function"==typeof gn?gn.apply(this,arguments):gn),r.apply(this,arguments),s)})},ee.translateTo=function(st,Ot,gn){ee.transform(st,function(){var pn=r.apply(this,arguments),kn=this.__zoom,Ln=lt(pn);return t(HA.translate(Ln[0],Ln[1]).scale(kn.k).translate("function"==typeof Ot?-Ot.apply(this,arguments):-Ot,"function"==typeof gn?-gn.apply(this,arguments):-gn),pn,s)})},mt.prototype={start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(Ot,gn){return this.mouse&&"mouse"!==Ot&&(this.mouse[1]=gn.invert(this.mouse[0])),this.touch0&&"touch"!==Ot&&(this.touch0[1]=gn.invert(this.touch0[0])),this.touch1&&"touch"!==Ot&&(this.touch1[1]=gn.invert(this.touch1[0])),this.that.__zoom=gn,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(Ot){Sm(new Zne(ee,Ot,this.that.__zoom),m.apply,m,[Ot,this.that,this.args])}},ee.wheelDelta=function(st){return arguments.length?(i="function"==typeof st?st:UA(+st),ee):i},ee.filter=function(st){return arguments.length?(n="function"==typeof st?st:UA(!!st),ee):n},ee.touchable=function(st){return arguments.length?(o="function"==typeof st?st:UA(!!st),ee):o},ee.extent=function(st){return arguments.length?(r="function"==typeof st?st:UA([[+st[0][0],+st[0][1]],[+st[1][0],+st[1][1]]]),ee):r},ee.scaleExtent=function(st){return arguments.length?(a[0]=+st[0],a[1]=+st[1],ee):[a[0],a[1]]},ee.translateExtent=function(st){return arguments.length?(s[0][0]=+st[0][0],s[1][0]=+st[1][0],s[0][1]=+st[0][1],s[1][1]=+st[1][1],ee):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},ee.constrain=function(st){return arguments.length?(t=st,ee):t},ee.duration=function(st){return arguments.length?(u=+st,ee):u},ee.interpolate=function(st){return arguments.length?(p=st,ee):p},ee.on=function(){var st=m.on.apply(m,arguments);return st===m?ee:st},ee.clickDistance=function(st){return arguments.length?(Y=(st=+st)*st,ee):Math.sqrt(Y)},ee}UH.prototype=dp.prototype;var Vne=function(){function n(){(0,g.Z)(this,n)}return(0,k.Z)(n,[{key:"getD3",value:function(){return U}}]),n}(),sS=f(5041);function qne(n,r){if(1&n&&(e.O4$(),e.TgZ(0,"linearGradient"),e._UZ(1,"stop",5),e._UZ(2,"stop",6),e.qZA()),2&n){var t=e.oxw(2);e.uIk("id",t.svg.outerLinearGradient.id),e.xp6(1),e.uIk("stop-color",t.svg.outerLinearGradient.colorStop1)("stop-opacity",1),e.xp6(1),e.uIk("stop-color",t.svg.outerLinearGradient.colorStop2)("stop-opacity",1)}}function jne(n,r){if(1&n&&(e.O4$(),e.TgZ(0,"radialGradient"),e._UZ(1,"stop",5),e._UZ(2,"stop",6),e.qZA()),2&n){var t=e.oxw(2);e.uIk("id",t.svg.radialGradient.id),e.xp6(1),e.uIk("stop-color",t.svg.radialGradient.colorStop1)("stop-opacity",1),e.xp6(1),e.uIk("stop-color",t.svg.radialGradient.colorStop2)("stop-opacity",1)}}function zne(n,r){if(1&n&&(e.O4$(),e._UZ(0,"circle")),2&n){var t=e.oxw(3);e.uIk("cx",t.svg.backgroundCircle.cx)("cy",t.svg.backgroundCircle.cy)("r",t.svg.backgroundCircle.r)("fill",t.svg.backgroundCircle.fill)("fill-opacity",t.svg.backgroundCircle.fillOpacity)("stroke",t.svg.backgroundCircle.stroke)("stroke-width",t.svg.backgroundCircle.strokeWidth)}}function Wne(n,r){if(1&n&&(e.O4$(),e._UZ(0,"circle")),2&n){var t=e.oxw(3);e.Q2q("fill","url(#",t.svg.radialGradient.id,")"),e.uIk("cx",t.svg.backgroundCircle.cx)("cy",t.svg.backgroundCircle.cy)("r",t.svg.backgroundCircle.r)("fill-opacity",t.svg.backgroundCircle.fillOpacity)("stroke",t.svg.backgroundCircle.stroke)("stroke-width",t.svg.backgroundCircle.strokeWidth)}}function Gne(n,r){if(1&n&&(e.O4$(),e.ynx(0),e.YNc(1,zne,1,7,"circle",2),e.YNc(2,Wne,1,7,"circle",2),e.BQk()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!t.options.backgroundGradient),e.xp6(1),e.Q6J("ngIf",t.options.backgroundGradient)}}function Yne(n,r){if(1&n&&(e.O4$(),e._UZ(0,"circle")),2&n){var t=e.oxw(2);e.uIk("cx",t.svg.circle.cx)("cy",t.svg.circle.cy)("r",t.svg.circle.r)("fill",t.svg.circle.fill)("stroke",t.svg.circle.stroke)("stroke-width",t.svg.circle.strokeWidth)}}function Jne(n,r){if(1&n&&(e.O4$(),e._UZ(0,"path")),2&n){var t=e.oxw(3);e.uIk("d",t.svg.path.d)("stroke",t.svg.path.stroke)("stroke-width",t.svg.path.strokeWidth)("stroke-linecap",t.svg.path.strokeLinecap)("fill",t.svg.path.fill)}}function Qne(n,r){if(1&n&&(e.O4$(),e._UZ(0,"path")),2&n){var t=e.oxw(3);e.Q2q("stroke","url(#",t.svg.outerLinearGradient.id,")"),e.uIk("d",t.svg.path.d)("stroke-width",t.svg.path.strokeWidth)("stroke-linecap",t.svg.path.strokeLinecap)("fill",t.svg.path.fill)}}function Kne(n,r){if(1&n&&(e.O4$(),e.ynx(0),e.YNc(1,Jne,1,5,"path",2),e.YNc(2,Qne,1,5,"path",2),e.BQk()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!t.options.outerStrokeGradient),e.xp6(1),e.Q6J("ngIf",t.options.outerStrokeGradient)}}function Xne(n,r){if(1&n&&(e.O4$(),e.TgZ(0,"tspan"),e._uU(1),e.qZA()),2&n){var t=r.$implicit,i=e.oxw(4);e.uIk("x",i.svg.title.x)("y",i.svg.title.y)("dy",t.dy)("font-size",i.svg.title.fontSize)("font-weight",i.svg.title.fontWeight)("fill",i.svg.title.color),e.xp6(1),e.Oqu(t.span)}}function $ne(n,r){if(1&n&&(e.O4$(),e.ynx(0),e.YNc(1,Xne,2,7,"tspan",8),e.BQk()),2&n){var t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.svg.title.tspans)}}function ere(n,r){if(1&n&&(e.O4$(),e.TgZ(0,"tspan"),e._uU(1),e.qZA()),2&n){var t=e.oxw(3);e.uIk("font-size",t.svg.units.fontSize)("font-weight",t.svg.units.fontWeight)("fill",t.svg.units.color),e.xp6(1),e.Oqu(t.svg.units.text)}}function tre(n,r){if(1&n&&(e.O4$(),e.TgZ(0,"tspan"),e._uU(1),e.qZA()),2&n){var t=r.$implicit,i=e.oxw(4);e.uIk("x",i.svg.subtitle.x)("y",i.svg.subtitle.y)("dy",t.dy)("font-size",i.svg.subtitle.fontSize)("font-weight",i.svg.subtitle.fontWeight)("fill",i.svg.subtitle.color),e.xp6(1),e.Oqu(t.span)}}function nre(n,r){if(1&n&&(e.O4$(),e.ynx(0),e.YNc(1,tre,2,7,"tspan",8),e.BQk()),2&n){var t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.svg.subtitle.tspans)}}function rre(n,r){if(1&n&&(e.O4$(),e.TgZ(0,"text",7),e.YNc(1,$ne,2,1,"ng-container",2),e.YNc(2,ere,2,4,"tspan",2),e.YNc(3,nre,2,1,"ng-container",2),e.qZA()),2&n){var t=e.oxw(2);e.uIk("x",t.svg.circle.cx)("y",t.svg.circle.cy)("text-anchor",t.svg.title.textAnchor),e.xp6(1),e.Q6J("ngIf",t.options.showTitle),e.xp6(1),e.Q6J("ngIf",t.options.showUnits),e.xp6(1),e.Q6J("ngIf",t.options.showSubtitle)}}function ire(n,r){if(1&n&&(e.O4$(),e._UZ(0,"image",9)),2&n){var t=e.oxw(2);e.uIk("height",t.svg.image.height)("width",t.svg.image.width)("href",t.svg.image.src,null,"xlink")("x",t.svg.image.x)("y",t.svg.image.y)}}function ore(n,r){if(1&n){var t=e.EpF();e.O4$(),e.TgZ(0,"svg",1),e.NdJ("click",function(a){return e.CHM(t),e.oxw().emitClickEvent(a)}),e.TgZ(1,"defs"),e.YNc(2,qne,3,5,"linearGradient",2),e.YNc(3,jne,3,5,"radialGradient",2),e.qZA(),e.YNc(4,Gne,3,2,"ng-container",2),e.YNc(5,Yne,1,6,"circle",2),e.YNc(6,Kne,3,2,"ng-container",2),e.YNc(7,rre,4,6,"text",3),e.YNc(8,ire,1,5,"image",4),e.qZA()}if(2&n){var i=e.oxw();e.uIk("viewBox",i.svg.viewBox)("height",i.svg.height)("width",i.svg.width)("class",i.options.class),e.xp6(2),e.Q6J("ngIf",i.options.outerStrokeGradient),e.xp6(1),e.Q6J("ngIf",i.options.backgroundGradient),e.xp6(1),e.Q6J("ngIf",i.options.showBackground),e.xp6(1),e.Q6J("ngIf",i.options.showInnerStroke),e.xp6(1),e.Q6J("ngIf",0!=+i.options.percent||i.options.showZeroOuterStroke),e.xp6(1),e.Q6J("ngIf",!i.options.showImage&&(i.options.showTitle||i.options.showUnits||i.options.showSubtitle)),e.xp6(1),e.Q6J("ngIf",i.options.showImage)}}var n,VA=function n(){(0,g.Z)(this,n),this.class="",this.backgroundGradient=!1,this.backgroundColor="transparent",this.backgroundGradientStopColor="transparent",this.backgroundOpacity=1,this.backgroundStroke="transparent",this.backgroundStrokeWidth=0,this.backgroundPadding=5,this.percent=0,this.radius=90,this.space=4,this.toFixed=0,this.maxPercent=1e3,this.renderOnClick=!0,this.units="%",this.unitsFontSize="10",this.unitsFontWeight="normal",this.unitsColor="#444444",this.outerStrokeGradient=!1,this.outerStrokeWidth=8,this.outerStrokeColor="#78C000",this.outerStrokeGradientStopColor="transparent",this.outerStrokeLinecap="round",this.innerStrokeColor="#C7E596",this.innerStrokeWidth=4,this.titleFormat=void 0,this.title="auto",this.titleColor="#444444",this.titleFontSize="20",this.titleFontWeight="normal",this.subtitleFormat=void 0,this.subtitle="progress",this.subtitleColor="#A9A9A9",this.subtitleFontSize="10",this.subtitleFontWeight="normal",this.imageSrc=void 0,this.imageHeight=void 0,this.imageWidth=void 0,this.animation=!0,this.animateTitle=!0,this.animateSubtitle=!1,this.animationDuration=500,this.showTitle=!0,this.showSubtitle=!0,this.showUnits=!0,this.showImage=!1,this.showBackground=!0,this.showInnerStroke=!0,this.clockwise=!0,this.responsive=!1,this.startFromZero=!0,this.showZeroOuterStroke=!0,this.lazy=!1},are=function(){var n=function(){function r(t,i,o){var a=this;(0,g.Z)(this,r),this.elRef=i,this.document=o,this.onClick=new e.vpe,this.svgElement=null,this.isInViewport=!1,this.onViewportChanged=new e.vpe,this._viewportChangedSubscriber=null,this.options=new VA,this.defaultOptions=new VA,this._lastPercent=0,this._gradientUUID=null,this.render=function(){a.applyOptions(),a.options.lazy?(null===a.svgElement&&a.draw(a._lastPercent),a.isInViewport&&(a.options.animation&&a.options.animationDuration>0?a.animate(a._lastPercent,a.options.percent):a.draw(a.options.percent),a._lastPercent=a.options.percent)):(a.options.animation&&a.options.animationDuration>0?a.animate(a._lastPercent,a.options.percent):a.draw(a.options.percent),a._lastPercent=a.options.percent)},this.polarToCartesian=function(s,u,p,m){var b=m*Math.PI/180;return{x:s+Math.sin(b)*p,y:u-Math.cos(b)*p}},this.draw=function(s){var u=(s=void 0===s?a.options.percent:Math.abs(s))>100?100:s,p=2*a.options.radius+2*a.options.outerStrokeWidth;a.options.showBackground&&(p+=2*a.options.backgroundStrokeWidth+a.max(0,2*a.options.backgroundPadding));var F,G,m={x:p/2,y:p/2},b={x:m.x,y:m.y-a.options.radius},R=a.polarToCartesian(m.x,m.y,a.options.radius,360*(a.options.clockwise?u:100-u)/100);if(100===u&&(R.x=R.x+(a.options.clockwise?-.01:.01)),u>50){var ee=(0,C.Z)(a.options.clockwise?[1,1]:[1,0],2);F=ee[0],G=ee[1]}else{var Ee=(0,C.Z)(a.options.clockwise?[0,1]:[0,0],2);F=Ee[0],G=Ee[1]}var lt=a.options.animateTitle?s:a.options.percent,tt=lt>a.options.maxPercent?"".concat(a.options.maxPercent.toFixed(a.options.toFixed),"+"):lt.toFixed(a.options.toFixed),it=a.options.animateSubtitle?s:a.options.percent,mt={x:m.x,y:m.y,textAnchor:"middle",color:a.options.titleColor,fontSize:a.options.titleFontSize,fontWeight:a.options.titleFontWeight,texts:[],tspans:[]};if(void 0!==a.options.titleFormat&&"Function"===a.options.titleFormat.constructor.name){var Ke=a.options.titleFormat(lt);Ke instanceof Array?mt.texts=(0,y.Z)(Ke):mt.texts.push(Ke.toString())}else"auto"===a.options.title?mt.texts.push(tt):a.options.title instanceof Array?mt.texts=(0,y.Z)(a.options.title):mt.texts.push(a.options.title.toString());var et={x:m.x,y:m.y,textAnchor:"middle",color:a.options.subtitleColor,fontSize:a.options.subtitleFontSize,fontWeight:a.options.subtitleFontWeight,texts:[],tspans:[]};if(void 0!==a.options.subtitleFormat&&"Function"===a.options.subtitleFormat.constructor.name){var Rt=a.options.subtitleFormat(it);Rt instanceof Array?et.texts=(0,y.Z)(Rt):et.texts.push(Rt.toString())}else a.options.subtitle instanceof Array?et.texts=(0,y.Z)(a.options.subtitle):et.texts.push(a.options.subtitle.toString());var kt={text:"".concat(a.options.units),fontSize:a.options.unitsFontSize,fontWeight:a.options.unitsFontWeight,color:a.options.unitsColor},fn=0,Jt=1;if(a.options.showTitle&&(fn+=mt.texts.length),a.options.showSubtitle&&(fn+=et.texts.length),a.options.showTitle){var Ot,st=(0,v.Z)(mt.texts);try{for(st.s();!(Ot=st.n()).done;)mt.tspans.push({span:Ot.value,dy:a.getRelativeY(Jt,fn)}),Jt++}catch(nr){st.e(nr)}finally{st.f()}}if(a.options.showSubtitle){var kn,pn=(0,v.Z)(et.texts);try{for(pn.s();!(kn=pn.n()).done;)et.tspans.push({span:kn.value,dy:a.getRelativeY(Jt,fn)}),Jt++}catch(nr){pn.e(nr)}finally{pn.f()}}null===a._gradientUUID&&(a._gradientUUID=a.uuid()),a.svg={viewBox:"0 0 ".concat(p," ").concat(p),width:a.options.responsive?"100%":p,height:a.options.responsive?"100%":p,backgroundCircle:{cx:m.x,cy:m.y,r:a.options.radius+a.options.outerStrokeWidth/2+a.options.backgroundPadding,fill:a.options.backgroundColor,fillOpacity:a.options.backgroundOpacity,stroke:a.options.backgroundStroke,strokeWidth:a.options.backgroundStrokeWidth},path:{d:"M ".concat(b.x," ").concat(b.y,"\n A ").concat(a.options.radius," ").concat(a.options.radius," 0 ").concat(F," ").concat(G," ").concat(R.x," ").concat(R.y),stroke:a.options.outerStrokeColor,strokeWidth:a.options.outerStrokeWidth,strokeLinecap:a.options.outerStrokeLinecap,fill:"none"},circle:{cx:m.x,cy:m.y,r:a.options.radius-a.options.space-a.options.outerStrokeWidth/2-a.options.innerStrokeWidth/2,fill:"none",stroke:a.options.innerStrokeColor,strokeWidth:a.options.innerStrokeWidth},title:mt,units:kt,subtitle:et,image:{x:m.x-a.options.imageWidth/2,y:m.y-a.options.imageHeight/2,src:a.options.imageSrc,width:a.options.imageWidth,height:a.options.imageHeight},outerLinearGradient:{id:"outer-linear-"+a._gradientUUID,colorStop1:a.options.outerStrokeColor,colorStop2:"transparent"===a.options.outerStrokeGradientStopColor?"#FFF":a.options.outerStrokeGradientStopColor},radialGradient:{id:"radial-"+a._gradientUUID,colorStop1:a.options.backgroundColor,colorStop2:"transparent"===a.options.backgroundGradientStopColor?"#FFF":a.options.backgroundGradientStopColor}}},this.getAnimationParameters=function(s,u){var m,b,R,F=a.options.startFromZero||s<0?0:s,G=u<0?0:a.min(u,a.options.maxPercent),Y=Math.abs(Math.round(G-F));return Y>=100?(m=100,b=a.options.animateTitle||a.options.animateSubtitle?Math.round(Y/m):1):(m=Y,b=1),(R=Math.round(a.options.animationDuration/m))<10&&(m=a.options.animationDuration/(R=10),b=!a.options.animateTitle&&!a.options.animateSubtitle&&Y>100?Math.round(100/m):Math.round(Y/m)),b<1&&(b=1),{times:m,step:b,interval:R}},this.animate=function(s,u){a._timerSubscription&&!a._timerSubscription.closed&&a._timerSubscription.unsubscribe();var p=a.options.startFromZero?0:s,m=u,b=a.getAnimationParameters(p,m),R=b.step,F=b.interval,G=p;a._timerSubscription=p<m?(0,sS.H)(0,F).subscribe(function(){(G+=R)<=m?!a.options.animateTitle&&!a.options.animateSubtitle&&G>=100?(a.draw(m),a._timerSubscription.unsubscribe()):a.draw(G):(a.draw(m),a._timerSubscription.unsubscribe())}):(0,sS.H)(0,F).subscribe(function(){(G-=R)>=m?!a.options.animateTitle&&!a.options.animateSubtitle&&m>=100?(a.draw(m),a._timerSubscription.unsubscribe()):a.draw(G):(a.draw(m),a._timerSubscription.unsubscribe())})},this.emitClickEvent=function(s){a.options.renderOnClick&&a.animate(0,a.options.percent),a.onClick.emit(s)},this.applyOptions=function(){for(var s=0,u=Object.keys(a.options);s<u.length;s++){var p=u[s];a.hasOwnProperty(p)&&void 0!==a[p]?a.options[p]=a[p]:a.templateOptions&&void 0!==a.templateOptions[p]&&(a.options[p]=a.templateOptions[p])}a.options.radius=Math.abs(+a.options.radius),a.options.space=+a.options.space,a.options.percent=+a.options.percent>0?+a.options.percent:0,a.options.maxPercent=Math.abs(+a.options.maxPercent),a.options.animationDuration=Math.abs(a.options.animationDuration),a.options.outerStrokeWidth=Math.abs(+a.options.outerStrokeWidth),a.options.innerStrokeWidth=Math.abs(+a.options.innerStrokeWidth),a.options.backgroundPadding=+a.options.backgroundPadding},this.getRelativeY=function(s,u){return(1*(s-u/2)-.18).toFixed(2)+"em"},this.min=function(s,u){return s<u?s:u},this.max=function(s,u){return s>u?s:u},this.uuid=function(){var s=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(p){var m=(s+16*Math.random())%16|0;return s=Math.floor(s/16),("x"==p?m:3&m|8).toString(16)})},this.findSvgElement=function(){if(null===this.svgElement){var s=this.elRef.nativeElement.getElementsByTagName("svg");s.length>0&&(this.svgElement=s[0])}},this.checkViewport=function(){a.findSvgElement();var s=a.isInViewport;a.isInViewport=a.isElementInViewport(a.svgElement),s!==a.isInViewport&&a.onViewportChanged.emit({oldValue:s,newValue:a.isInViewport})},this.onScroll=function(s){a.checkViewport()},this.loadEventsForLazyMode=function(){if(a.options.lazy){a.document.addEventListener("scroll",a.onScroll,!0),a.window.addEventListener("resize",a.onScroll,!0),null===a._viewportChangedSubscriber&&(a._viewportChangedSubscriber=a.onViewportChanged.subscribe(function(u){u.newValue&&a.render()}));var s=(0,sS.H)(0,50).subscribe(function(){null===a.svgElement?a.checkViewport():s.unsubscribe()})}},this.unloadEventsForLazyMode=function(){a.document.removeEventListener("scroll",a.onScroll,!0),a.window.removeEventListener("resize",a.onScroll,!0),null!==a._viewportChangedSubscriber&&(a._viewportChangedSubscriber.unsubscribe(),a._viewportChangedSubscriber=null)},this.document=o,this.window=this.document.defaultView,Object.assign(this.options,t),Object.assign(this.defaultOptions,t)}return(0,k.Z)(r,[{key:"isDrawing",value:function(){return this._timerSubscription&&!this._timerSubscription.closed}},{key:"isElementInViewport",value:function(i){if(null==i)return!1;var s,o=i.getBoundingClientRect(),a=i.parentNode;do{if(s=a.getBoundingClientRect(),o.top>=s.bottom||o.bottom<=s.top||o.left>=s.right||o.right<=s.left)return!1;a=a.parentNode}while(a!=this.document.body);return!(o.top>=(this.window.innerHeight||this.document.documentElement.clientHeight)||o.bottom<=0||o.left>=(this.window.innerWidth||this.document.documentElement.clientWidth)||o.right<=0)}},{key:"ngOnInit",value:function(){this.loadEventsForLazyMode()}},{key:"ngOnDestroy",value:function(){this.unloadEventsForLazyMode()}},{key:"ngOnChanges",value:function(i){this.render(),"lazy"in i&&(i.lazy.currentValue?this.loadEventsForLazyMode():this.unloadEventsForLazyMode())}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(VA),e.Y36(e.SBq),e.Y36(At.K0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["circle-progress"]],inputs:{name:"name",class:"class",backgroundGradient:"backgroundGradient",backgroundColor:"backgroundColor",backgroundGradientStopColor:"backgroundGradientStopColor",backgroundOpacity:"backgroundOpacity",backgroundStroke:"backgroundStroke",backgroundStrokeWidth:"backgroundStrokeWidth",backgroundPadding:"backgroundPadding",radius:"radius",space:"space",percent:"percent",toFixed:"toFixed",maxPercent:"maxPercent",renderOnClick:"renderOnClick",units:"units",unitsFontSize:"unitsFontSize",unitsFontWeight:"unitsFontWeight",unitsColor:"unitsColor",outerStrokeGradient:"outerStrokeGradient",outerStrokeWidth:"outerStrokeWidth",outerStrokeColor:"outerStrokeColor",outerStrokeGradientStopColor:"outerStrokeGradientStopColor",outerStrokeLinecap:"outerStrokeLinecap",innerStrokeColor:"innerStrokeColor",innerStrokeWidth:"innerStrokeWidth",titleFormat:"titleFormat",title:"title",titleColor:"titleColor",titleFontSize:"titleFontSize",titleFontWeight:"titleFontWeight",subtitleFormat:"subtitleFormat",subtitle:"subtitle",subtitleColor:"subtitleColor",subtitleFontSize:"subtitleFontSize",subtitleFontWeight:"subtitleFontWeight",imageSrc:"imageSrc",imageHeight:"imageHeight",imageWidth:"imageWidth",animation:"animation",animateTitle:"animateTitle",animateSubtitle:"animateSubtitle",animationDuration:"animationDuration",showTitle:"showTitle",showSubtitle:"showSubtitle",showUnits:"showUnits",showImage:"showImage",showBackground:"showBackground",showInnerStroke:"showInnerStroke",clockwise:"clockwise",responsive:"responsive",startFromZero:"startFromZero",showZeroOuterStroke:"showZeroOuterStroke",lazy:"lazy",templateOptions:["options","templateOptions"]},outputs:{onClick:"onClick"},features:[e.TTD],decls:1,vars:1,consts:[["xmlns","http://www.w3.org/2000/svg","preserveAspectRatio","xMidYMid meet",3,"click",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","preserveAspectRatio","xMidYMid meet",3,"click"],[4,"ngIf"],["alignment-baseline","baseline",4,"ngIf"],["preserveAspectRatio","none",4,"ngIf"],["offset","5%"],["offset","95%"],["alignment-baseline","baseline"],[4,"ngFor","ngForOf"],["preserveAspectRatio","none"]],template:function(t,i){1&t&&e.YNc(0,ore,9,11,"svg",0),2&t&&e.Q6J("ngIf",i.svg)},directives:[At.O5,At.sg],encapsulation:2}),n}(),sre=function(){var n=function(){function r(){(0,g.Z)(this,r)}return(0,k.Z)(r,null,[{key:"forRoot",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:r,providers:[{provide:VA,useValue:i}]}}}]),r}();return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[At.ez]]}),n}(),nZ=function(){function n(r){(0,g.Z)(this,n),this.rawFile=r;var i=function(n){return!(!n||!(n.nodeName||n.prop&&n.attr&&n.find))}(r)?r.value:r;this["_createFrom"+("string"==typeof i?"FakePath":"Object")](i)}return(0,k.Z)(n,[{key:"_createFromFakePath",value:function(t){this.lastModifiedDate=void 0,this.size=void 0,this.type="like/"+t.slice(t.lastIndexOf(".")+1).toLowerCase(),this.name=t.slice(t.lastIndexOf("/")+t.lastIndexOf("\\")+2)}},{key:"_createFromObject",value:function(t){this.size=t.size,this.type=t.type,this.name=t.name}}]),n}(),ure=function(){function n(r,t,i){(0,g.Z)(this,n),this.url="/",this.headers=[],this.withCredentials=!0,this.formData=[],this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.index=void 0,this.uploader=r,this.some=t,this.options=i,this.file=new nZ(t),this._file=t,r.options&&(this.method=r.options.method||"POST",this.alias=r.options.itemAlias||"file"),this.url=r.options.url}return(0,k.Z)(n,[{key:"upload",value:function(){try{this.uploader.uploadItem(this)}catch(t){this.uploader._onCompleteItem(this,"",0,{}),this.uploader._onErrorItem(this,"",0,{})}}},{key:"cancel",value:function(){this.uploader.cancelItem(this)}},{key:"remove",value:function(){this.uploader.removeFromQueue(this)}},{key:"onBeforeUpload",value:function(){}},{key:"onBuildForm",value:function(t){return{form:t}}},{key:"onProgress",value:function(t){return{progress:t}}},{key:"onSuccess",value:function(t,i,o){return{response:t,status:i,headers:o}}},{key:"onError",value:function(t,i,o){return{response:t,status:i,headers:o}}},{key:"onCancel",value:function(t,i,o){return{response:t,status:i,headers:o}}},{key:"onComplete",value:function(t,i,o){return{response:t,status:i,headers:o}}},{key:"_onBeforeUpload",value:function(){this.isReady=!0,this.isUploading=!0,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.onBeforeUpload()}},{key:"_onBuildForm",value:function(t){this.onBuildForm(t)}},{key:"_onProgress",value:function(t){this.progress=t,this.onProgress(t)}},{key:"_onSuccess",value:function(t,i,o){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!0,this.isCancel=!1,this.isError=!1,this.progress=100,this.index=void 0,this.onSuccess(t,i,o)}},{key:"_onError",value:function(t,i,o){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!1,this.isCancel=!1,this.isError=!0,this.progress=0,this.index=void 0,this.onError(t,i,o)}},{key:"_onCancel",value:function(t,i,o){this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!0,this.isError=!1,this.progress=0,this.index=void 0,this.onCancel(t,i,o)}},{key:"_onComplete",value:function(t,i,o){this.onComplete(t,i,o),this.uploader.options.removeAfterUpload&&this.remove()}},{key:"_prepareToUploading",value:function(){this.index=this.index||++this.uploader._nextIndex,this.isReady=!0}}]),n}(),cre=function(){var n=function(){function r(){(0,g.Z)(this,r)}return(0,k.Z)(r,null,[{key:"getMimeClass",value:function(i){var o="application";return-1!==this.mime_psd.indexOf(i.type)||i.type.match("image.*")?o="image":i.type.match("video.*")?o="video":i.type.match("audio.*")?o="audio":"application/pdf"===i.type?o="pdf":-1!==this.mime_compress.indexOf(i.type)?o="compress":-1!==this.mime_doc.indexOf(i.type)?o="doc":-1!==this.mime_xsl.indexOf(i.type)?o="xls":-1!==this.mime_ppt.indexOf(i.type)&&(o="ppt"),"application"===o&&(o=this.fileTypeDetection(i.name)),o}},{key:"fileTypeDetection",value:function(i){var o={jpg:"image",jpeg:"image",tif:"image",psd:"image",bmp:"image",png:"image",nef:"image",tiff:"image",cr2:"image",dwg:"image",cdr:"image",ai:"image",indd:"image",pin:"image",cdp:"image",skp:"image",stp:"image","3dm":"image",mp3:"audio",wav:"audio",wma:"audio",mod:"audio",m4a:"audio",compress:"compress",zip:"compress",rar:"compress","7z":"compress",lz:"compress",z01:"compress",bz2:"compress",gz:"compress",pdf:"pdf",xls:"xls",xlsx:"xls",ods:"xls",mp4:"video",avi:"video",wmv:"video",mpg:"video",mts:"video",flv:"video","3gp":"video",vob:"video",m4v:"video",mpeg:"video",m2ts:"video",mov:"video",doc:"doc",docx:"doc",eps:"doc",txt:"doc",odt:"doc",rtf:"doc",ppt:"ppt",pptx:"ppt",pps:"ppt",ppsx:"ppt",odp:"ppt"},a=i.split(".");if(a.length<2)return"application";var s=a[a.length-1].toLowerCase();return void 0===o[s]?"application":o[s]}}]),r}();return n.mime_doc=["application/msword","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-word.document.macroEnabled.12","application/vnd.ms-word.template.macroEnabled.12"],n.mime_xsl=["application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.ms-excel.sheet.macroEnabled.12","application/vnd.ms-excel.template.macroEnabled.12","application/vnd.ms-excel.addin.macroEnabled.12","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],n.mime_ppt=["application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/vnd.ms-powerpoint.addin.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],n.mime_psd=["image/photoshop","image/x-photoshop","image/psd","application/photoshop","application/psd","zz-application/zz-winassoc-psd"],n.mime_compress=["application/x-gtar","application/x-gcompress","application/compress","application/x-tar","application/x-rar-compressed","application/octet-stream","application/x-zip-compressed","application/zip-compressed","application/x-7z-compressed","application/gzip","application/x-bzip2"],n}(),Wm=function(){function n(r){(0,g.Z)(this,n),this.isUploading=!1,this.queue=[],this.progress=0,this._nextIndex=0,this.options={autoUpload:!1,isHTML5:!0,filters:[],removeAfterUpload:!1,disableMultipart:!1,formatDataFunction:function(i){return i._file},formatDataFunctionIsAsync:!1},this.setOptions(r),this.response=new e.vpe}return(0,k.Z)(n,[{key:"setOptions",value:function(t){this.options=Object.assign(this.options,t),this.authToken=this.options.authToken,this.authTokenHeader=this.options.authTokenHeader||"Authorization",this.autoUpload=this.options.autoUpload,this.options.filters.unshift({name:"queueLimit",fn:this._queueLimitFilter}),this.options.maxFileSize&&this.options.filters.unshift({name:"fileSize",fn:this._fileSizeFilter}),this.options.allowedFileType&&this.options.filters.unshift({name:"fileType",fn:this._fileTypeFilter}),this.options.allowedMimeType&&this.options.filters.unshift({name:"mimeType",fn:this._mimeTypeFilter});for(var i=0;i<this.queue.length;i++)this.queue[i].url=this.options.url}},{key:"addToQueue",value:function(t,i,o){var p,a=this,s=[],u=(0,v.Z)(t);try{for(u.s();!(p=u.n()).done;)s.push(p.value)}catch(G){u.e(G)}finally{u.f()}var b=this._getFilters(o),R=this.queue.length,F=[];s.map(function(G){i||(i=a.options);var Y=new nZ(G);if(a._isValidFile(Y,b,i)){var ee=new ure(a,G,i);F.push(ee),a.queue.push(ee),a._onAfterAddingFile(ee)}else a._onWhenAddingFileFailed(Y,b[a._failFilterIndex],i)}),this.queue.length!==R&&(this._onAfterAddingAll(F),this.progress=this._getTotalProgress()),this._render(),this.options.autoUpload&&this.uploadAll()}},{key:"removeFromQueue",value:function(t){var i=this.getIndexOfItem(t),o=this.queue[i];o.isUploading&&o.cancel(),this.queue.splice(i,1),this.progress=this._getTotalProgress()}},{key:"clearQueue",value:function(){for(;this.queue.length;)this.queue[0].remove();this.progress=0}},{key:"uploadItem",value:function(t){var i=this.getIndexOfItem(t),o=this.queue[i],a=this.options.isHTML5?"_xhrTransport":"_iframeTransport";o._prepareToUploading(),!this.isUploading&&(this.isUploading=!0,this[a](o))}},{key:"cancelItem",value:function(t){var i=this.getIndexOfItem(t),o=this.queue[i];o&&o.isUploading&&(this.options.isHTML5?o._xhr:o._form).abort()}},{key:"uploadAll",value:function(){var t=this.getNotUploadedItems().filter(function(i){return!i.isUploading});!t.length||(t.map(function(i){return i._prepareToUploading()}),t[0].upload())}},{key:"cancelAll",value:function(){this.getNotUploadedItems().map(function(i){return i.cancel()})}},{key:"isFile",value:function(t){return function(n){return File&&n instanceof File}(t)}},{key:"isFileLikeObject",value:function(t){return t instanceof nZ}},{key:"getIndexOfItem",value:function(t){return"number"==typeof t?t:this.queue.indexOf(t)}},{key:"getNotUploadedItems",value:function(){return this.queue.filter(function(t){return!t.isUploaded})}},{key:"getReadyItems",value:function(){return this.queue.filter(function(t){return t.isReady&&!t.isUploading}).sort(function(t,i){return t.index-i.index})}},{key:"destroy",value:function(){}},{key:"onAfterAddingAll",value:function(t){return{fileItems:t}}},{key:"onBuildItemForm",value:function(t,i){return{fileItem:t,form:i}}},{key:"onAfterAddingFile",value:function(t){return{fileItem:t}}},{key:"onWhenAddingFileFailed",value:function(t,i,o){return{item:t,filter:i,options:o}}},{key:"onBeforeUploadItem",value:function(t){return{fileItem:t}}},{key:"onProgressItem",value:function(t,i){return{fileItem:t,progress:i}}},{key:"onProgressAll",value:function(t){return{progress:t}}},{key:"onSuccessItem",value:function(t,i,o,a){return{item:t,response:i,status:o,headers:a}}},{key:"onErrorItem",value:function(t,i,o,a){return{item:t,response:i,status:o,headers:a}}},{key:"onCancelItem",value:function(t,i,o,a){return{item:t,response:i,status:o,headers:a}}},{key:"onCompleteItem",value:function(t,i,o,a){return{item:t,response:i,status:o,headers:a}}},{key:"onCompleteAll",value:function(){}},{key:"_mimeTypeFilter",value:function(t){return!(this.options.allowedMimeType&&-1===this.options.allowedMimeType.indexOf(t.type))}},{key:"_fileSizeFilter",value:function(t){return!(this.options.maxFileSize&&t.size>this.options.maxFileSize)}},{key:"_fileTypeFilter",value:function(t){return!(this.options.allowedFileType&&-1===this.options.allowedFileType.indexOf(cre.getMimeClass(t)))}},{key:"_onErrorItem",value:function(t,i,o,a){t._onError(i,o,a),this.onErrorItem(t,i,o,a)}},{key:"_onCompleteItem",value:function(t,i,o,a){t._onComplete(i,o,a),this.onCompleteItem(t,i,o,a);var s=this.getReadyItems()[0];this.isUploading=!1,s?s.upload():(this.onCompleteAll(),this.progress=this._getTotalProgress(),this._render())}},{key:"_headersGetter",value:function(t){return function(i){return i?t[i.toLowerCase()]||void 0:t}}},{key:"_xhrTransport",value:function(t){var s,i=this,o=this,a=t._xhr=new XMLHttpRequest;if(this._onBeforeUploadItem(t),"number"!=typeof t._file.size)throw new TypeError("The file specified is no longer valid");if(this.options.disableMultipart)s=this.options.formatDataFunction(t);else{s=new FormData,this._onBuildItemForm(t,s);var u=function(){return s.append(t.alias,t._file,t.file.name)};this.options.parametersBeforeFiles||u(),void 0!==this.options.additionalParameter&&Object.keys(this.options.additionalParameter).forEach(function(Y){var ee=i.options.additionalParameter[Y];"string"==typeof ee&&ee.indexOf("{{file_name}}")>=0&&(ee=ee.replace("{{file_name}}",t.file.name)),s.append(Y,ee)}),this.options.parametersBeforeFiles&&u()}if(a.upload.onprogress=function(Y){var ee=Math.round(Y.lengthComputable?100*Y.loaded/Y.total:0);i._onProgressItem(t,ee)},a.onload=function(){var Y=i._parseHeaders(a.getAllResponseHeaders()),ee=i._transformResponse(a.response,Y),pe=i._isSuccessCode(a.status)?"Success":"Error";i["_on"+pe+"Item"](t,ee,a.status,Y),i._onCompleteItem(t,ee,a.status,Y)},a.onerror=function(){var Y=i._parseHeaders(a.getAllResponseHeaders()),ee=i._transformResponse(a.response,Y);i._onErrorItem(t,ee,a.status,Y),i._onCompleteItem(t,ee,a.status,Y)},a.onabort=function(){var Y=i._parseHeaders(a.getAllResponseHeaders()),ee=i._transformResponse(a.response,Y);i._onCancelItem(t,ee,a.status,Y),i._onCompleteItem(t,ee,a.status,Y)},a.open(t.method,t.url,!0),a.withCredentials=t.withCredentials,this.options.headers){var m,p=(0,v.Z)(this.options.headers);try{for(p.s();!(m=p.n()).done;){var b=m.value;a.setRequestHeader(b.name,b.value)}}catch(Y){p.e(Y)}finally{p.f()}}if(t.headers.length){var F,R=(0,v.Z)(t.headers);try{for(R.s();!(F=R.n()).done;){var G=F.value;a.setRequestHeader(G.name,G.value)}}catch(Y){R.e(Y)}finally{R.f()}}this.authToken&&a.setRequestHeader(this.authTokenHeader,this.authToken),a.onreadystatechange=function(){a.readyState==XMLHttpRequest.DONE&&o.response.emit(a.responseText)},this.options.formatDataFunctionIsAsync?s.then(function(Y){return a.send(JSON.stringify(Y))}):a.send(s),this._render()}},{key:"_getTotalProgress",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.options.removeAfterUpload)return t;var i=this.getNotUploadedItems().length,o=i?this.queue.length-i:this.queue.length,a=100/this.queue.length,s=t*a/100;return Math.round(o*a+s)}},{key:"_getFilters",value:function(t){if(!t)return this.options.filters;if(Array.isArray(t))return t;if("string"==typeof t){var i=t.match(/[^\s,]+/g);return this.options.filters.filter(function(o){return-1!==i.indexOf(o.name)})}return this.options.filters}},{key:"_render",value:function(){}},{key:"_queueLimitFilter",value:function(){return void 0===this.options.queueLimit||this.queue.length<this.options.queueLimit}},{key:"_isValidFile",value:function(t,i,o){var a=this;return this._failFilterIndex=-1,!i.length||i.every(function(s){return a._failFilterIndex++,s.fn.call(a,t,o)})}},{key:"_isSuccessCode",value:function(t){return t>=200&&t<300||304===t}},{key:"_transformResponse",value:function(t,i){return t}},{key:"_parseHeaders",value:function(t){var o,a,s,i={};return t&&t.split("\n").map(function(u){s=u.indexOf(":"),o=u.slice(0,s).trim().toLowerCase(),a=u.slice(s+1).trim(),o&&(i[o]=i[o]?i[o]+", "+a:a)}),i}},{key:"_onWhenAddingFileFailed",value:function(t,i,o){this.onWhenAddingFileFailed(t,i,o)}},{key:"_onAfterAddingFile",value:function(t){this.onAfterAddingFile(t)}},{key:"_onAfterAddingAll",value:function(t){this.onAfterAddingAll(t)}},{key:"_onBeforeUploadItem",value:function(t){t._onBeforeUpload(),this.onBeforeUploadItem(t)}},{key:"_onBuildItemForm",value:function(t,i){t._onBuildForm(i),this.onBuildItemForm(t,i)}},{key:"_onProgressItem",value:function(t,i){var o=this._getTotalProgress(i);this.progress=o,t._onProgress(i),this.onProgressItem(t,i),this.onProgressAll(o),this._render()}},{key:"_onSuccessItem",value:function(t,i,o,a){t._onSuccess(i,o,a),this.onSuccessItem(t,i,o,a)}},{key:"_onCancelItem",value:function(t,i,o,a){t._onCancel(i,o,a),this.onCancelItem(t,i,o,a)}}]),n}(),lS=function(){var n=function(){function r(t){(0,g.Z)(this,r),this.onFileSelected=new e.vpe,this.element=t}return(0,k.Z)(r,[{key:"getOptions",value:function(){return this.uploader.options}},{key:"getFilters",value:function(){return{}}},{key:"isEmptyAfterSelection",value:function(){return!!this.element.nativeElement.attributes.multiple}},{key:"onChange",value:function(){var i=this.element.nativeElement.files,o=this.getOptions(),a=this.getFilters();this.uploader.addToQueue(i,o,a),this.onFileSelected.emit(i),this.isEmptyAfterSelection()&&(this.element.nativeElement.value="")}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","ng2FileSelect",""]],hostBindings:function(t,i){1&t&&e.NdJ("change",function(){return i.onChange()})},inputs:{uploader:"uploader"},outputs:{onFileSelected:"onFileSelected"}}),n}(),pre=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[At.ez]]}),n}(),rZ=function(){function n(){}return Object.defineProperty(n.prototype,"child_process",{get:function(){return this._child_process||(this._child_process=window.require?window.require("child_process"):null),this._child_process},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isElectronApp",{get:function(){return!!window.navigator.userAgent.match(/Electron/)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"childProcess",{get:function(){return this.child_process?this.child_process:null},enumerable:!0,configurable:!0}),n}(),fre=(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var i in t)t.hasOwnProperty(i)&&(r[i]=t[i])},function(r,t){function i(){this.constructor=r}n(r,t),r.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),hre=function(n){function r(){return n.call(this)||this}return fre(r,n),r.\u0275fac=function(i){return new(i||r)},r.\u0275prov=e.Yz7({token:r,factory:function(i){return r.\u0275fac(i)}}),r}(rZ),mre=function(){function n(){}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[{provide:rZ,useClass:hre}]}),n}(),hs=function(){function n(){(0,g.Z)(this,n)}return(0,k.Z)(n,[{key:"electron",get:function(){return this._electron?this._electron:window&&window.require?(this._electron=window.require("electron"),this._electron):null}},{key:"isElectronApp",get:function(){return!!window.navigator.userAgent.match(/Electron/)}},{key:"isMacOS",get:function(){return this.isElectronApp&&"darwin"===process.platform}},{key:"isWindows",get:function(){return this.isElectronApp&&"win32"===process.platform}},{key:"isLinux",get:function(){return this.isElectronApp&&"linux"===process.platform}},{key:"isX86",get:function(){return this.isElectronApp&&"ia32"===process.arch}},{key:"isX64",get:function(){return this.isElectronApp&&"x64"===process.arch}},{key:"isArm",get:function(){return this.isElectronApp&&"arm"===process.arch}},{key:"desktopCapturer",get:function(){return this.electron?this.electron.desktopCapturer:null}},{key:"ipcRenderer",get:function(){return this.electron?this.electron.ipcRenderer:null}},{key:"remote",get:function(){return this.electron?this.electron.remote:null}},{key:"webFrame",get:function(){return this.electron?this.electron.webFrame:null}},{key:"clipboard",get:function(){return this.electron?this.electron.clipboard:null}},{key:"crashReporter",get:function(){return this.electron?this.electron.crashReporter:null}},{key:"process",get:function(){return this.remote?this.remote.process:null}},{key:"nativeImage",get:function(){return this.electron?this.electron.nativeImage:null}},{key:"screen",get:function(){return this.electron?this.remote.screen:null}},{key:"shell",get:function(){return this.electron?this.electron.shell:null}}]),n}(),vre=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){return(0,g.Z)(this,i),t.call(this)}return i}(hs);return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),gre=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[{provide:hs,useClass:vre}]}),n}(),uS=f(88009),_re=f(64646),qH=f(60131),iZ=f(4499),Gm=f(93487),yre=f(39887),jH=f(31927),qf=f(13426),cS=f(38575),bre=f(99583),q_=f(64233),Cre=f(26575),zH=f(59803),oZ=f(65890),pp=function n(r,t){(0,g.Z)(this,n),this.id=r,this.url=t},qA=function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(i,o){var a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,g.Z)(this,t),(a=r.call(this,i,o)).navigationTrigger=s,a.restoredState=u,a}return(0,k.Z)(t,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(pp),Ym=function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(i,o,a){var s;return(0,g.Z)(this,t),(s=r.call(this,i,o)).urlAfterRedirects=a,s}return(0,k.Z)(t,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),t}(pp),aZ=function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(i,o,a){var s;return(0,g.Z)(this,t),(s=r.call(this,i,o)).reason=a,s}return(0,k.Z)(t,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(pp),WH=function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(i,o,a){var s;return(0,g.Z)(this,t),(s=r.call(this,i,o)).error=a,s}return(0,k.Z)(t,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),t}(pp),Sre=function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(i,o,a,s){var u;return(0,g.Z)(this,t),(u=r.call(this,i,o)).urlAfterRedirects=a,u.state=s,u}return(0,k.Z)(t,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(pp),Tre=function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(i,o,a,s){var u;return(0,g.Z)(this,t),(u=r.call(this,i,o)).urlAfterRedirects=a,u.state=s,u}return(0,k.Z)(t,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(pp),xre=function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(i,o,a,s,u){var p;return(0,g.Z)(this,t),(p=r.call(this,i,o)).urlAfterRedirects=a,p.state=s,p.shouldActivate=u,p}return(0,k.Z)(t,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),t}(pp),wre=function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(i,o,a,s){var u;return(0,g.Z)(this,t),(u=r.call(this,i,o)).urlAfterRedirects=a,u.state=s,u}return(0,k.Z)(t,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(pp),kre=function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(i,o,a,s){var u;return(0,g.Z)(this,t),(u=r.call(this,i,o)).urlAfterRedirects=a,u.state=s,u}return(0,k.Z)(t,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(pp),GH=function(){function n(r){(0,g.Z)(this,n),this.route=r}return(0,k.Z)(n,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),n}(),YH=function(){function n(r){(0,g.Z)(this,n),this.route=r}return(0,k.Z)(n,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),n}(),Ere=function(){function n(r){(0,g.Z)(this,n),this.snapshot=r}return(0,k.Z)(n,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),n}(),Mre=function(){function n(r){(0,g.Z)(this,n),this.snapshot=r}return(0,k.Z)(n,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),n}(),Are=function(){function n(r){(0,g.Z)(this,n),this.snapshot=r}return(0,k.Z)(n,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),n}(),Dre=function(){function n(r){(0,g.Z)(this,n),this.snapshot=r}return(0,k.Z)(n,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),n}(),JH=function(){function n(r,t,i){(0,g.Z)(this,n),this.routerEvent=r,this.position=t,this.anchor=i}return(0,k.Z)(n,[{key:"toString",value:function(){var t=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(t,"')")}}]),n}(),pi="primary",Ore=function(){function n(r){(0,g.Z)(this,n),this.params=r||{}}return(0,k.Z)(n,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var i=this.params[t];return Array.isArray(i)?i[0]:i}return null}},{key:"getAll",value:function(t){if(this.has(t)){var i=this.params[t];return Array.isArray(i)?i:[i]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),n}();function j_(n){return new Ore(n)}var QH="ngNavigationCancelingError";function sZ(n){var r=Error("NavigationCancelingError: "+n);return r[QH]=!0,r}function Ire(n,r,t){var i=t.path.split("/");if(i.length>n.length||"full"===t.pathMatch&&(r.hasChildren()||i.length<n.length))return null;for(var o={},a=0;a<i.length;a++){var s=i[a],u=n[a];if(s.startsWith(":"))o[s.substring(1)]=u;else if(s!==u.path)return null}return{consumed:n.slice(0,i.length),posParams:o}}function od(n,r){var t=n?Object.keys(n):void 0,i=r?Object.keys(r):void 0;if(!t||!i||t.length!=i.length)return!1;for(var o,a=0;a<t.length;a++)if(!KH(n[o=t[a]],r[o]))return!1;return!0}function KH(n,r){if(Array.isArray(n)&&Array.isArray(r)){if(n.length!==r.length)return!1;var t=(0,y.Z)(n).sort(),i=(0,y.Z)(r).sort();return t.every(function(o,a){return i[a]===o})}return n===r}function XH(n){return Array.prototype.concat.apply([],n)}function $H(n){return n.length>0?n[n.length-1]:null}function ms(n,r){for(var t in n)n.hasOwnProperty(t)&&r(n[t],t)}function ad(n){return(0,e.CqO)(n)?n:(0,e.QGY)(n)?(0,cs.D)(Promise.resolve(n)):(0,or.of)(n)}var Zre={exact:function nV(n,r,t){if(!Qm(n.segments,r.segments)||!jA(n.segments,r.segments,t)||n.numberOfChildren!==r.numberOfChildren)return!1;for(var i in r.children)if(!n.children[i]||!nV(n.children[i],r.children[i],t))return!1;return!0},subset:rV},eV={exact:function(n,r){return od(n,r)},subset:function(n,r){return Object.keys(r).length<=Object.keys(n).length&&Object.keys(r).every(function(t){return KH(n[t],r[t])})},ignored:function(){return!0}};function tV(n,r,t){return Zre[t.paths](n.root,r.root,t.matrixParams)&&eV[t.queryParams](n.queryParams,r.queryParams)&&!("exact"===t.fragment&&n.fragment!==r.fragment)}function rV(n,r,t){return iV(n,r,r.segments,t)}function iV(n,r,t,i){if(n.segments.length>t.length){var o=n.segments.slice(0,t.length);return!(!Qm(o,t)||r.hasChildren()||!jA(o,t,i))}if(n.segments.length===t.length){if(!Qm(n.segments,t)||!jA(n.segments,t,i))return!1;for(var a in r.children)if(!n.children[a]||!rV(n.children[a],r.children[a],i))return!1;return!0}var s=t.slice(0,n.segments.length),u=t.slice(n.segments.length);return!!(Qm(n.segments,s)&&jA(n.segments,s,i)&&n.children[pi])&&iV(n.children[pi],r,u,i)}function jA(n,r,t){return r.every(function(i,o){return eV[t](n[o].parameters,i.parameters)})}var Jm=function(){function n(r,t,i){(0,g.Z)(this,n),this.root=r,this.queryParams=t,this.fragment=i}return(0,k.Z)(n,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=j_(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Hre.serialize(this)}}]),n}(),gi=function(){function n(r,t){var i=this;(0,g.Z)(this,n),this.segments=r,this.children=t,this.parent=null,ms(t,function(o,a){return o.parent=i})}return(0,k.Z)(n,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return zA(this)}}]),n}(),dS=function(){function n(r,t){(0,g.Z)(this,n),this.path=r,this.parameters=t}return(0,k.Z)(n,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=j_(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return lV(this)}}]),n}();function Qm(n,r){return n.length===r.length&&n.every(function(t,i){return t.path===r[i].path})}var lZ=function n(){(0,g.Z)(this,n)},oV=function(){function n(){(0,g.Z)(this,n)}return(0,k.Z)(n,[{key:"parse",value:function(t){var i=new Qre(t);return new Jm(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}},{key:"serialize",value:function(t){var i="/".concat(pS(t.root,!0)),o=function(n){var r=Object.keys(n).map(function(t){var i=n[t];return Array.isArray(i)?i.map(function(o){return"".concat(WA(t),"=").concat(WA(o))}).join("&"):"".concat(WA(t),"=").concat(WA(i))}).filter(function(t){return!!t});return r.length?"?".concat(r.join("&")):""}(t.queryParams),a="string"==typeof t.fragment?"#".concat(function(n){return encodeURI(n)}(t.fragment)):"";return"".concat(i).concat(o).concat(a)}}]),n}(),Hre=new oV;function zA(n){return n.segments.map(function(r){return lV(r)}).join("/")}function pS(n,r){if(!n.hasChildren())return zA(n);if(r){var t=n.children[pi]?pS(n.children[pi],!1):"",i=[];return ms(n.children,function(a,s){s!==pi&&i.push("".concat(s,":").concat(pS(a,!1)))}),i.length>0?"".concat(t,"(").concat(i.join("//"),")"):t}var o=function(n,r){var t=[];return ms(n.children,function(i,o){o===pi&&(t=t.concat(r(i,o)))}),ms(n.children,function(i,o){o!==pi&&(t=t.concat(r(i,o)))}),t}(n,function(a,s){return s===pi?[pS(n.children[pi],!1)]:["".concat(s,":").concat(pS(a,!1))]});return 1===Object.keys(n.children).length&&null!=n.children[pi]?"".concat(zA(n),"/").concat(o[0]):"".concat(zA(n),"/(").concat(o.join("//"),")")}function aV(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function WA(n){return aV(n).replace(/%3B/gi,";")}function uZ(n){return aV(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function GA(n){return decodeURIComponent(n)}function sV(n){return GA(n.replace(/\+/g,"%20"))}function lV(n){return"".concat(uZ(n.path)).concat(function(n){return Object.keys(n).map(function(r){return";".concat(uZ(r),"=").concat(uZ(n[r]))}).join("")}(n.parameters))}var zre=/^[^\/()?;=#]+/;function YA(n){var r=n.match(zre);return r?r[0]:""}var Wre=/^[^=?&#]+/,Yre=/^[^?&#]+/,Qre=function(){function n(r){(0,g.Z)(this,n),this.url=r,this.remaining=r}return(0,k.Z)(n,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new gi([],{}):new gi([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));var o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1)),(t.length>0||Object.keys(i).length>0)&&(o[pi]=new gi(t,i)),o}},{key:"parseSegment",value:function(){var t=YA(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new dS(GA(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var i=YA(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=YA(this.remaining);a&&this.capture(o=a)}t[GA(i)]=GA(o)}}},{key:"parseQueryParam",value:function(t){var i=function(n){var r=n.match(Wre);return r?r[0]:""}(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=function(n){var r=n.match(Yre);return r?r[0]:""}(this.remaining);a&&this.capture(o=a)}var s=sV(i),u=sV(o);if(t.hasOwnProperty(s)){var p=t[s];Array.isArray(p)||(t[s]=p=[p]),p.push(u)}else t[s]=u}}},{key:"parseParens",value:function(t){var i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var o=YA(this.remaining),a=this.remaining[o.length];if("/"!==a&&")"!==a&&";"!==a)throw new Error("Cannot parse url '".concat(this.url,"'"));var s=void 0;o.indexOf(":")>-1?(s=o.substr(0,o.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=pi);var u=this.parseChildren();i[s]=1===Object.keys(u).length?u[pi]:new gi([],u),this.consumeOptional("//")}return i}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),n}(),uV=function(){function n(r){(0,g.Z)(this,n),this._root=r}return(0,k.Z)(n,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var i=this.pathFromRoot(t);return i.length>1?i[i.length-2]:null}},{key:"children",value:function(t){var i=cZ(t,this._root);return i?i.children.map(function(o){return o.value}):[]}},{key:"firstChild",value:function(t){var i=cZ(t,this._root);return i&&i.children.length>0?i.children[0].value:null}},{key:"siblings",value:function(t){var i=dZ(t,this._root);return i.length<2?[]:i[i.length-2].children.map(function(a){return a.value}).filter(function(a){return a!==t})}},{key:"pathFromRoot",value:function(t){return dZ(t,this._root).map(function(i){return i.value})}}]),n}();function cZ(n,r){if(n===r.value)return r;var i,t=(0,v.Z)(r.children);try{for(t.s();!(i=t.n()).done;){var a=cZ(n,i.value);if(a)return a}}catch(s){t.e(s)}finally{t.f()}return null}function dZ(n,r){if(n===r.value)return[r];var i,t=(0,v.Z)(r.children);try{for(t.s();!(i=t.n()).done;){var a=dZ(n,i.value);if(a.length)return a.unshift(r),a}}catch(s){t.e(s)}finally{t.f()}return[]}var fp=function(){function n(r,t){(0,g.Z)(this,n),this.value=r,this.children=t}return(0,k.Z)(n,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),n}();function fS(n){var r={};return n&&n.children.forEach(function(t){return r[t.value.outlet]=t}),r}var cV=function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(i,o){var a;return(0,g.Z)(this,t),(a=r.call(this,i)).snapshot=o,pZ((0,uS.Z)(a),i),a}return(0,k.Z)(t,[{key:"toString",value:function(){return this.snapshot.toString()}}]),t}(uV);function dV(n,r){var t=function(n,r){var s=new JA([],{},{},"",{},pi,r,null,n.root,-1,{});return new fV("",new fp(s,[]))}(n,r),i=new to.X([new dS("",{})]),o=new to.X({}),a=new to.X({}),s=new to.X({}),u=new to.X(""),p=new Ir(i,o,s,u,a,pi,r,t.root);return p.snapshot=t.root,new cV(new fp(p,[]),t)}var Ir=function(){function n(r,t,i,o,a,s,u,p){(0,g.Z)(this,n),this.url=r,this.params=t,this.queryParams=i,this.fragment=o,this.data=a,this.outlet=s,this.component=u,this._futureSnapshot=p}return(0,k.Z)(n,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe((0,kr.U)(function(t){return j_(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,kr.U)(function(t){return j_(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),n}();function pV(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",t=n.pathFromRoot,i=0;if("always"!==r)for(i=t.length-1;i>=1;){var o=t[i],a=t[i-1];if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(a.component)break;i--}}return Xre(t.slice(i))}function Xre(n){return n.reduce(function(r,t){return{params:Object.assign(Object.assign({},r.params),t.params),data:Object.assign(Object.assign({},r.data),t.data),resolve:Object.assign(Object.assign({},r.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}var JA=function(){function n(r,t,i,o,a,s,u,p,m,b,R){(0,g.Z)(this,n),this.url=r,this.params=t,this.queryParams=i,this.fragment=o,this.data=a,this.outlet=s,this.component=u,this.routeConfig=p,this._urlSegment=m,this._lastPathIndex=b,this._resolve=R}return(0,k.Z)(n,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=j_(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=j_(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var t=this.url.map(function(o){return o.toString()}).join("/"),i=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(i,"')")}}]),n}(),fV=function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(i,o){var a;return(0,g.Z)(this,t),(a=r.call(this,o)).url=i,pZ((0,uS.Z)(a),o),a}return(0,k.Z)(t,[{key:"toString",value:function(){return hV(this._root)}}]),t}(uV);function pZ(n,r){r.value._routerState=n,r.children.forEach(function(t){return pZ(n,t)})}function hV(n){var r=n.children.length>0?" { ".concat(n.children.map(hV).join(", ")," } "):"";return"".concat(n.value).concat(r)}function fZ(n){if(n.snapshot){var r=n.snapshot,t=n._futureSnapshot;n.snapshot=t,od(r.queryParams,t.queryParams)||n.queryParams.next(t.queryParams),r.fragment!==t.fragment&&n.fragment.next(t.fragment),od(r.params,t.params)||n.params.next(t.params),function(n,r){if(n.length!==r.length)return!1;for(var t=0;t<n.length;++t)if(!od(n[t],r[t]))return!1;return!0}(r.url,t.url)||n.url.next(t.url),od(r.data,t.data)||n.data.next(t.data)}else n.snapshot=n._futureSnapshot,n.data.next(n._futureSnapshot.data)}function hZ(n,r){return od(n.params,r.params)&&function(n,r){return Qm(n,r)&&n.every(function(t,i){return od(t.parameters,r[i].parameters)})}(n.url,r.url)&&!(!n.parent!=!r.parent)&&(!n.parent||hZ(n.parent,r.parent))}function QA(n,r,t){if(t&&n.shouldReuseRoute(r.value,t.value.snapshot)){var i=t.value;i._futureSnapshot=r.value;var o=function(n,r,t){return r.children.map(function(i){var a,o=(0,v.Z)(t.children);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(n.shouldReuseRoute(i.value,s.value.snapshot))return QA(n,i,s)}}catch(u){o.e(u)}finally{o.f()}return QA(n,i)})}(n,r,t);return new fp(i,o)}if(n.shouldAttach(r.value)){var a=n.retrieve(r.value);if(null!==a){var s=a.route;return mV(r,s),s}}var u=function(n){return new Ir(new to.X(n.url),new to.X(n.params),new to.X(n.queryParams),new to.X(n.fragment),new to.X(n.data),n.outlet,n.component,n)}(r.value),p=r.children.map(function(m){return QA(n,m)});return new fp(u,p)}function mV(n,r){if(n.value.routeConfig!==r.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(n.children.length!==r.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");r.value._futureSnapshot=n.value;for(var t=0;t<n.children.length;++t)mV(n.children[t],r.children[t])}function nie(n,r,t,i,o){if(0===t.length)return mZ(r.root,r.root,r,i,o);var a=function(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new gV(!0,0,n);var r=0,t=!1,i=n.reduce(function(o,a,s){if("object"==typeof a&&null!=a){if(a.outlets){var u={};return ms(a.outlets,function(p,m){u[m]="string"==typeof p?p.split("/"):p}),[].concat((0,y.Z)(o),[{outlets:u}])}if(a.segmentPath)return[].concat((0,y.Z)(o),[a.segmentPath])}return"string"!=typeof a?[].concat((0,y.Z)(o),[a]):0===s?(a.split("/").forEach(function(p,m){0==m&&"."===p||(0==m&&""===p?t=!0:".."===p?r++:""!=p&&o.push(p))}),o):[].concat((0,y.Z)(o),[a])},[]);return new gV(t,r,i)}(t);if(a.toRoot())return mZ(r.root,new gi([],{}),r,i,o);var s=function(n,r,t){if(n.isAbsolute)return new vZ(r.root,!0,0);if(-1===t.snapshot._lastPathIndex){var i=t.snapshot._urlSegment;return new vZ(i,i===r.root,0)}var a=KA(n.commands[0])?0:1;return function(n,r,t){for(var i=n,o=r,a=t;a>o;){if(a-=o,!(i=i.parent))throw new Error("Invalid number of '../'");o=i.segments.length}return new vZ(i,!1,o-a)}(t.snapshot._urlSegment,t.snapshot._lastPathIndex+a,n.numberOfDoubleDots)}(a,r,n),u=s.processChildren?XA(s.segmentGroup,s.index,a.commands):_V(s.segmentGroup,s.index,a.commands);return mZ(s.segmentGroup,u,r,i,o)}function KA(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function hS(n){return"object"==typeof n&&null!=n&&n.outlets}function mZ(n,r,t,i,o){var a={};return i&&ms(i,function(s,u){a[u]=Array.isArray(s)?s.map(function(p){return"".concat(p)}):"".concat(s)}),new Jm(t.root===n?r:vV(t.root,n,r),a,o)}function vV(n,r,t){var i={};return ms(n.children,function(o,a){i[a]=o===r?t:vV(o,r,t)}),new gi(n.segments,i)}var gV=function(){function n(r,t,i){if((0,g.Z)(this,n),this.isAbsolute=r,this.numberOfDoubleDots=t,this.commands=i,r&&i.length>0&&KA(i[0]))throw new Error("Root segment cannot have matrix parameters");var o=i.find(hS);if(o&&o!==$H(i))throw new Error("{outlets:{}} has to be the last command")}return(0,k.Z)(n,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),n}(),vZ=function n(r,t,i){(0,g.Z)(this,n),this.segmentGroup=r,this.processChildren=t,this.index=i};function _V(n,r,t){if(n||(n=new gi([],{})),0===n.segments.length&&n.hasChildren())return XA(n,r,t);var i=function(n,r,t){for(var i=0,o=r,a={match:!1,pathIndex:0,commandIndex:0};o<n.segments.length;){if(i>=t.length)return a;var s=n.segments[o],u=t[i];if(hS(u))break;var p="".concat(u),m=i<t.length-1?t[i+1]:null;if(o>0&&void 0===p)break;if(p&&m&&"object"==typeof m&&void 0===m.outlets){if(!bV(p,m,s))return a;i+=2}else{if(!bV(p,{},s))return a;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(n,r,t),o=t.slice(i.commandIndex);if(i.match&&i.pathIndex<n.segments.length){var a=new gi(n.segments.slice(0,i.pathIndex),{});return a.children[pi]=new gi(n.segments.slice(i.pathIndex),n.children),XA(a,0,o)}return i.match&&0===o.length?new gi(n.segments,{}):i.match&&!n.hasChildren()?gZ(n,r,t):i.match?XA(n,0,o):gZ(n,r,t)}function XA(n,r,t){if(0===t.length)return new gi(n.segments,{});var i=function(n){return hS(n[0])?n[0].outlets:(0,V.Z)({},pi,n)}(t),o={};return ms(i,function(a,s){"string"==typeof a&&(a=[a]),null!==a&&(o[s]=_V(n.children[s],r,a))}),ms(n.children,function(a,s){void 0===i[s]&&(o[s]=a)}),new gi(n.segments,o)}function gZ(n,r,t){for(var i=n.segments.slice(0,r),o=0;o<t.length;){var a=t[o];if(hS(a)){var s=lie(a.outlets);return new gi(i,s)}if(0===o&&KA(t[0]))i.push(new dS(n.segments[r].path,yV(t[0]))),o++;else{var p=hS(a)?a.outlets[pi]:"".concat(a),m=o<t.length-1?t[o+1]:null;p&&m&&KA(m)?(i.push(new dS(p,yV(m))),o+=2):(i.push(new dS(p,{})),o++)}}return new gi(i,{})}function lie(n){var r={};return ms(n,function(t,i){"string"==typeof t&&(t=[t]),null!==t&&(r[i]=gZ(new gi([],{}),0,t))}),r}function yV(n){var r={};return ms(n,function(t,i){return r[i]="".concat(t)}),r}function bV(n,r,t){return n==t.path&&od(r,t.parameters)}var cie=function(){function n(r,t,i,o){(0,g.Z)(this,n),this.routeReuseStrategy=r,this.futureState=t,this.currState=i,this.forwardEvent=o}return(0,k.Z)(n,[{key:"activate",value:function(t){var i=this.futureState._root,o=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,o,t),fZ(this.futureState.root),this.activateChildRoutes(i,o,t)}},{key:"deactivateChildRoutes",value:function(t,i,o){var a=this,s=fS(i);t.children.forEach(function(u){var p=u.value.outlet;a.deactivateRoutes(u,s[p],o),delete s[p]}),ms(s,function(u,p){a.deactivateRouteAndItsChildren(u,o)})}},{key:"deactivateRoutes",value:function(t,i,o){var a=t.value,s=i?i.value:null;if(a===s)if(a.component){var u=o.getContext(a.outlet);u&&this.deactivateChildRoutes(t,i,u.children)}else this.deactivateChildRoutes(t,i,o);else s&&this.deactivateRouteAndItsChildren(i,o)}},{key:"deactivateRouteAndItsChildren",value:function(t,i){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,i):this.deactivateRouteAndOutlet(t,i)}},{key:"detachAndStoreRouteSubtree",value:function(t,i){var o=i.getContext(t.value.outlet);if(o&&o.outlet){var a=o.outlet.detach(),s=o.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:a,route:t,contexts:s})}}},{key:"deactivateRouteAndOutlet",value:function(t,i){for(var o=i.getContext(t.value.outlet),a=o&&t.value.component?o.children:i,s=fS(t),u=0,p=Object.keys(s);u<p.length;u++)this.deactivateRouteAndItsChildren(s[p[u]],a);o&&o.outlet&&(o.outlet.deactivate(),o.children.onOutletDeactivated(),o.attachRef=null,o.resolver=null,o.route=null)}},{key:"activateChildRoutes",value:function(t,i,o){var a=this,s=fS(i);t.children.forEach(function(u){a.activateRoutes(u,s[u.value.outlet],o),a.forwardEvent(new Dre(u.value.snapshot))}),t.children.length&&this.forwardEvent(new Mre(t.value.snapshot))}},{key:"activateRoutes",value:function(t,i,o){var a=t.value,s=i?i.value:null;if(fZ(a),a===s)if(a.component){var u=o.getOrCreateContext(a.outlet);this.activateChildRoutes(t,i,u.children)}else this.activateChildRoutes(t,i,o);else if(a.component){var p=o.getOrCreateContext(a.outlet);if(this.routeReuseStrategy.shouldAttach(a.snapshot)){var m=this.routeReuseStrategy.retrieve(a.snapshot);this.routeReuseStrategy.store(a.snapshot,null),p.children.onOutletReAttached(m.contexts),p.attachRef=m.componentRef,p.route=m.route.value,p.outlet&&p.outlet.attach(m.componentRef,m.route.value),CV(m.route)}else{var b=function(n){for(var r=n.parent;r;r=r.parent){var t=r.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(a.snapshot),R=b?b.module.componentFactoryResolver:null;p.attachRef=null,p.route=a,p.resolver=R,p.outlet&&p.outlet.activateWith(a,R),this.activateChildRoutes(t,null,p.children)}}else this.activateChildRoutes(t,null,o)}}]),n}();function CV(n){fZ(n.value),n.children.forEach(CV)}var _Z=function n(r,t){(0,g.Z)(this,n),this.routes=r,this.module=t};function jf(n){return"function"==typeof n}function Km(n){return n instanceof Jm}var mS=Symbol("INITIAL_VALUE");function vS(){return(0,Hs.w)(function(n){return(0,lm.aj)(n.map(function(r){return r.pipe((0,eo.q)(1),(0,ua.O)(mS))})).pipe((0,jH.R)(function(r,t){var i=!1;return t.reduce(function(o,a,s){return o!==mS?o:(a===mS&&(i=!0),i||!1!==a&&s!==t.length-1&&!Km(a)?o:a)},r)},mS),(0,vi.h)(function(r){return r!==mS}),(0,kr.U)(function(r){return Km(r)?r:!0===r}),(0,eo.q)(1))})}var SV=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,i){1&t&&e._UZ(0,"router-outlet")},directives:function(){return[s2]},encapsulation:2}),n}();function TV(n){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=0;t<n.length;t++){var i=n[t],o=_ie(r,i);gie(i,o)}}function gie(n,r){n.children&&TV(n.children,r)}function _ie(n,r){return r?n||r.path?n&&!r.path?"".concat(n,"/"):!n&&r.path?r.path:"".concat(n,"/").concat(r.path):"":n}function yZ(n){var r=n.children&&n.children.map(yZ),t=r?Object.assign(Object.assign({},n),{children:r}):Object.assign({},n);return!t.component&&(r||t.loadChildren)&&t.outlet&&t.outlet!==pi&&(t.component=SV),t}function Au(n){return n.outlet||pi}function xV(n,r){var t=n.filter(function(i){return Au(i)===r});return t.push.apply(t,(0,y.Z)(n.filter(function(i){return Au(i)!==r}))),t}var wV={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function $A(n,r,t){var i;if(""===r.path)return"full"===r.pathMatch&&(n.hasChildren()||t.length>0)?Object.assign({},wV):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var a=(r.matcher||Ire)(t,n,r);if(!a)return Object.assign({},wV);var s={};ms(a.posParams,function(p,m){s[m]=p.path});var u=a.consumed.length>0?Object.assign(Object.assign({},s),a.consumed[a.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:a.consumed,lastChild:a.consumed.length,parameters:u,positionalParamSegments:null!==(i=a.posParams)&&void 0!==i?i:{}}}function e2(n,r,t,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(t.length>0&&Cie(n,t,i)){var a=new gi(r,bie(n,r,i,new gi(t,n.children)));return a._sourceSegment=n,a._segmentIndexShift=r.length,{segmentGroup:a,slicedSegments:[]}}if(0===t.length&&Sie(n,t,i)){var s=new gi(n.segments,yie(n,r,t,i,n.children,o));return s._sourceSegment=n,s._segmentIndexShift=r.length,{segmentGroup:s,slicedSegments:t}}var u=new gi(n.segments,n.children);return u._sourceSegment=n,u._segmentIndexShift=r.length,{segmentGroup:u,slicedSegments:t}}function yie(n,r,t,i,o,a){var p,s={},u=(0,v.Z)(i);try{for(u.s();!(p=u.n()).done;){var m=p.value;if(t2(n,t,m)&&!o[Au(m)]){var b=new gi([],{});b._sourceSegment=n,b._segmentIndexShift="legacy"===a?n.segments.length:r.length,s[Au(m)]=b}}}catch(R){u.e(R)}finally{u.f()}return Object.assign(Object.assign({},o),s)}function bie(n,r,t,i){var o={};o[pi]=i,i._sourceSegment=n,i._segmentIndexShift=r.length;var s,a=(0,v.Z)(t);try{for(a.s();!(s=a.n()).done;){var u=s.value;if(""===u.path&&Au(u)!==pi){var p=new gi([],{});p._sourceSegment=n,p._segmentIndexShift=r.length,o[Au(u)]=p}}}catch(m){a.e(m)}finally{a.f()}return o}function Cie(n,r,t){return t.some(function(i){return t2(n,r,i)&&Au(i)!==pi})}function Sie(n,r,t){return t.some(function(i){return t2(n,r,i)})}function t2(n,r,t){return(!(n.hasChildren()||r.length>0)||"full"!==t.pathMatch)&&""===t.path}function kV(n,r,t,i){return!!(Au(n)===i||i!==pi&&t2(r,t,n))&&("**"===n.path||$A(r,n,t).matched)}function EV(n,r,t){return 0===r.length&&!n.children[t]}var gS=function n(r){(0,g.Z)(this,n),this.segmentGroup=r||null},MV=function n(r){(0,g.Z)(this,n),this.urlTree=r};function n2(n){return new na.y(function(r){return r.error(new gS(n))})}function AV(n){return new na.y(function(r){return r.error(new MV(n))})}function Tie(n){return new na.y(function(r){return r.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(n,"'")))})}var kie=function(){function n(r,t,i,o,a){(0,g.Z)(this,n),this.configLoader=t,this.urlSerializer=i,this.urlTree=o,this.config=a,this.allowRedirects=!0,this.ngModule=r.get(e.h0i)}return(0,k.Z)(n,[{key:"apply",value:function(){var t=this,i=e2(this.urlTree.root,[],[],this.config).segmentGroup,o=new gi(i.segments,i.children);return this.expandSegmentGroup(this.ngModule,this.config,o,pi).pipe((0,kr.U)(function(u){return t.createUrlTree(bZ(u),t.urlTree.queryParams,t.urlTree.fragment)})).pipe((0,qf.K)(function(u){if(u instanceof MV)return t.allowRedirects=!1,t.match(u.urlTree);throw u instanceof gS?t.noMatchError(u):u}))}},{key:"match",value:function(t){var i=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,pi).pipe((0,kr.U)(function(s){return i.createUrlTree(bZ(s),t.queryParams,t.fragment)})).pipe((0,qf.K)(function(s){throw s instanceof gS?i.noMatchError(s):s}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,i,o){var a=t.segments.length>0?new gi([],(0,V.Z)({},pi,t)):t;return new Jm(a,i,o)}},{key:"expandSegmentGroup",value:function(t,i,o,a){return 0===o.segments.length&&o.hasChildren()?this.expandChildren(t,i,o).pipe((0,kr.U)(function(s){return new gi([],s)})):this.expandSegment(t,o,i,o.segments,a,!0)}},{key:"expandChildren",value:function(t,i,o){for(var a=this,s=[],u=0,p=Object.keys(o.children);u<p.length;u++){var m=p[u];"primary"===m?s.unshift(m):s.push(m)}return(0,cs.D)(s).pipe((0,cS.b)(function(b){var R=o.children[b],F=xV(i,b);return a.expandSegmentGroup(t,F,R,b).pipe((0,kr.U)(function(G){return{segment:G,outlet:b}}))}),(0,jH.R)(function(b,R){return b[R.outlet]=R.segment,b},{}),(0,bre.Z)())}},{key:"expandSegment",value:function(t,i,o,a,s,u){var p=this;return(0,cs.D)(o).pipe((0,cS.b)(function(m){return p.expandSegmentAgainstRoute(t,i,o,m,a,s,u).pipe((0,qf.K)(function(R){if(R instanceof gS)return(0,or.of)(null);throw R}))}),(0,q_.P)(function(m){return!!m}),(0,qf.K)(function(m,b){if(m instanceof _re.K||"EmptyError"===m.name){if(EV(i,a,s))return(0,or.of)(new gi([],{}));throw new gS(i)}throw m}))}},{key:"expandSegmentAgainstRoute",value:function(t,i,o,a,s,u,p){return kV(a,i,s,u)?void 0===a.redirectTo?this.matchSegmentAgainstRoute(t,i,a,s,u):p&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,i,o,a,s,u):n2(i):n2(i)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,i,o,a,s,u){return"**"===a.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,o,a,u):this.expandRegularSegmentAgainstRouteUsingRedirect(t,i,o,a,s,u)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,i,o,a){var s=this,u=this.applyRedirectCommands([],o.redirectTo,{});return o.redirectTo.startsWith("/")?AV(u):this.lineralizeSegments(o,u).pipe((0,Yo.zg)(function(p){var m=new gi(p,{});return s.expandSegment(t,m,i,p,a,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,i,o,a,s,u){var p=this,m=$A(i,a,s),R=m.consumedSegments,F=m.lastChild,G=m.positionalParamSegments;if(!m.matched)return n2(i);var Y=this.applyRedirectCommands(R,a.redirectTo,G);return a.redirectTo.startsWith("/")?AV(Y):this.lineralizeSegments(a,Y).pipe((0,Yo.zg)(function(ee){return p.expandSegment(t,i,o,ee.concat(s.slice(F)),u,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,i,o,a,s){var u=this;if("**"===o.path)return o.loadChildren?(o._loadedConfig?(0,or.of)(o._loadedConfig):this.configLoader.load(t.injector,o)).pipe((0,kr.U)(function(ee){return o._loadedConfig=ee,new gi(a,{})})):(0,or.of)(new gi(a,{}));var m=$A(i,o,a),R=m.consumedSegments,F=m.lastChild;if(!m.matched)return n2(i);var G=a.slice(F);return this.getChildConfig(t,o,a).pipe((0,Yo.zg)(function(ee){var pe=ee.module,Ee=ee.routes,lt=e2(i,R,G,Ee),tt=lt.segmentGroup,it=lt.slicedSegments,mt=new gi(tt.segments,tt.children);if(0===it.length&&mt.hasChildren())return u.expandChildren(pe,Ee,mt).pipe((0,kr.U)(function(kt){return new gi(R,kt)}));if(0===Ee.length&&0===it.length)return(0,or.of)(new gi(R,{}));var et=Au(o)===s;return u.expandSegment(pe,mt,Ee,it,et?pi:s,!0).pipe((0,kr.U)(function(kt){return new gi(R.concat(kt.segments),kt.children)}))}))}},{key:"getChildConfig",value:function(t,i,o){var a=this;return i.children?(0,or.of)(new _Z(i.children,t)):i.loadChildren?void 0!==i._loadedConfig?(0,or.of)(i._loadedConfig):this.runCanLoadGuards(t.injector,i,o).pipe((0,Yo.zg)(function(s){return s?a.configLoader.load(t.injector,i).pipe((0,kr.U)(function(u){return i._loadedConfig=u,u})):function(n){return new na.y(function(r){return r.error(sZ("Cannot load children because the guard of the route \"path: '".concat(n.path,"'\" returned false")))})}(i)})):(0,or.of)(new _Z([],t))}},{key:"runCanLoadGuards",value:function(t,i,o){var a=this,s=i.canLoad;if(!s||0===s.length)return(0,or.of)(!0);var u=s.map(function(p){var b,m=t.get(p);if(function(n){return n&&jf(n.canLoad)}(m))b=m.canLoad(i,o);else{if(!jf(m))throw new Error("Invalid CanLoad guard");b=m(i,o)}return ad(b)});return(0,or.of)(u).pipe(vS(),(0,Fa.b)(function(p){if(Km(p)){var m=sZ('Redirecting to "'.concat(a.urlSerializer.serialize(p),'"'));throw m.url=p,m}}),(0,kr.U)(function(p){return!0===p}))}},{key:"lineralizeSegments",value:function(t,i){for(var o=[],a=i.root;;){if(o=o.concat(a.segments),0===a.numberOfChildren)return(0,or.of)(o);if(a.numberOfChildren>1||!a.children[pi])return Tie(t.redirectTo);a=a.children[pi]}}},{key:"applyRedirectCommands",value:function(t,i,o){return this.applyRedirectCreatreUrlTree(i,this.urlSerializer.parse(i),t,o)}},{key:"applyRedirectCreatreUrlTree",value:function(t,i,o,a){var s=this.createSegmentGroup(t,i.root,o,a);return new Jm(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}},{key:"createQueryParams",value:function(t,i){var o={};return ms(t,function(a,s){if("string"==typeof a&&a.startsWith(":")){var p=a.substring(1);o[s]=i[p]}else o[s]=a}),o}},{key:"createSegmentGroup",value:function(t,i,o,a){var s=this,u=this.createSegments(t,i.segments,o,a),p={};return ms(i.children,function(m,b){p[b]=s.createSegmentGroup(t,m,o,a)}),new gi(u,p)}},{key:"createSegments",value:function(t,i,o,a){var s=this;return i.map(function(u){return u.path.startsWith(":")?s.findPosParam(t,u,a):s.findOrReturn(u,o)})}},{key:"findPosParam",value:function(t,i,o){var a=o[i.path.substring(1)];if(!a)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(i.path,"'."));return a}},{key:"findOrReturn",value:function(t,i){var s,o=0,a=(0,v.Z)(i);try{for(a.s();!(s=a.n()).done;){var u=s.value;if(u.path===t.path)return i.splice(o),u;o++}}catch(p){a.e(p)}finally{a.f()}return t}}]),n}();function bZ(n){for(var r={},t=0,i=Object.keys(n.children);t<i.length;t++){var o=i[t],s=bZ(n.children[o]);(s.segments.length>0||s.hasChildren())&&(r[o]=s)}return function(n){if(1===n.numberOfChildren&&n.children[pi]){var r=n.children[pi];return new gi(n.segments.concat(r.segments),r.children)}return n}(new gi(n.segments,r))}var DV=function n(r){(0,g.Z)(this,n),this.path=r,this.route=this.path[this.path.length-1]},r2=function n(r,t){(0,g.Z)(this,n),this.component=r,this.route=t};function Aie(n,r,t){var i=n._root;return _S(i,r?r._root:null,t,[i.value])}function o2(n,r,t){var i=function(n){if(!n)return null;for(var r=n.parent;r;r=r.parent){var t=r.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(r);return(i?i.module.injector:t).get(n)}function _S(n,r,t,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=fS(r);return n.children.forEach(function(s){Pie(s,a[s.value.outlet],t,i.concat([s.value]),o),delete a[s.value.outlet]}),ms(a,function(s,u){return yS(s,t.getContext(u),o)}),o}function Pie(n,r,t,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=n.value,s=r?r.value:null,u=t?t.getContext(n.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){var p=Iie(s,a,a.routeConfig.runGuardsAndResolvers);p?o.canActivateChecks.push(new DV(i)):(a.data=s.data,a._resolvedData=s._resolvedData),_S(n,r,a.component?u?u.children:null:t,i,o),p&&u&&u.outlet&&u.outlet.isActivated&&o.canDeactivateChecks.push(new r2(u.outlet.component,s))}else s&&yS(r,u,o),o.canActivateChecks.push(new DV(i)),_S(n,null,a.component?u?u.children:null:t,i,o);return o}function Iie(n,r,t){if("function"==typeof t)return t(n,r);switch(t){case"pathParamsChange":return!Qm(n.url,r.url);case"pathParamsOrQueryParamsChange":return!Qm(n.url,r.url)||!od(n.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!hZ(n,r)||!od(n.queryParams,r.queryParams);case"paramsChange":default:return!hZ(n,r)}}function yS(n,r,t){var i=fS(n),o=n.value;ms(i,function(a,s){yS(a,o.component?r?r.children.getContext(s):null:r,t)}),t.canDeactivateChecks.push(new r2(o.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,o))}var Vie=function n(){(0,g.Z)(this,n)};function OV(n){return new na.y(function(r){return r.error(n)})}var jie=function(){function n(r,t,i,o,a,s){(0,g.Z)(this,n),this.rootComponentType=r,this.config=t,this.urlTree=i,this.url=o,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=s}return(0,k.Z)(n,[{key:"recognize",value:function(){var t=e2(this.urlTree.root,[],[],this.config.filter(function(u){return void 0===u.redirectTo}),this.relativeLinkResolution).segmentGroup,i=this.processSegmentGroup(this.config,t,pi);if(null===i)return null;var o=new JA([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},pi,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new fp(o,i),s=new fV(this.url,a);return this.inheritParamsAndData(s._root),s}},{key:"inheritParamsAndData",value:function(t){var i=this,o=t.value,a=pV(o,this.paramsInheritanceStrategy);o.params=Object.freeze(a.params),o.data=Object.freeze(a.data),t.children.forEach(function(s){return i.inheritParamsAndData(s)})}},{key:"processSegmentGroup",value:function(t,i,o){return 0===i.segments.length&&i.hasChildren()?this.processChildren(t,i):this.processSegment(t,i,i.segments,o)}},{key:"processChildren",value:function(t,i){for(var o=[],a=0,s=Object.keys(i.children);a<s.length;a++){var u=s[a],p=i.children[u],m=xV(t,u),b=this.processSegmentGroup(m,p,u);if(null===b)return null;o.push.apply(o,(0,y.Z)(b))}var R=PV(o);return function(n){n.sort(function(r,t){return r.value.outlet===pi?-1:t.value.outlet===pi?1:r.value.outlet.localeCompare(t.value.outlet)})}(R),R}},{key:"processSegment",value:function(t,i,o,a){var u,s=(0,v.Z)(t);try{for(s.s();!(u=s.n()).done;){var m=this.processSegmentAgainstRoute(u.value,i,o,a);if(null!==m)return m}}catch(b){s.e(b)}finally{s.f()}return EV(i,o,a)?[]:null}},{key:"processSegmentAgainstRoute",value:function(t,i,o,a){if(t.redirectTo||!kV(t,i,o,a))return null;var s,u=[],p=[];if("**"===t.path){var m=o.length>0?$H(o).parameters:{};s=new JA(o,m,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,NV(t),Au(t),t.component,t,IV(i),RV(i)+o.length,ZV(t))}else{var b=$A(i,t,o);if(!b.matched)return null;u=b.consumedSegments,p=o.slice(b.lastChild),s=new JA(u,b.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,NV(t),Au(t),t.component,t,IV(i),RV(i)+u.length,ZV(t))}var R=function(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(t),F=e2(i,u,p,R.filter(function(lt){return void 0===lt.redirectTo}),this.relativeLinkResolution),G=F.segmentGroup,Y=F.slicedSegments;if(0===Y.length&&G.hasChildren()){var ee=this.processChildren(R,G);return null===ee?null:[new fp(s,ee)]}if(0===R.length&&0===Y.length)return[new fp(s,[])];var pe=Au(t)===a,Ee=this.processSegment(R,G,Y,pe?pi:a);return null===Ee?null:[new fp(s,Ee)]}}]),n}();function PV(n){var o,r=[],t=new Set,i=(0,v.Z)(n);try{var a=function(){var F=o.value;if(!function(n){var r=n.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}(F))return r.push(F),"continue";var Y,G=r.find(function(ee){return F.value.routeConfig===ee.value.routeConfig});void 0!==G?((Y=G.children).push.apply(Y,(0,y.Z)(F.children)),t.add(G)):r.push(F)};for(i.s();!(o=i.n()).done;)a()}catch(R){i.e(R)}finally{i.f()}var p,u=(0,v.Z)(t);try{for(u.s();!(p=u.n()).done;){var m=p.value,b=PV(m.children);r.push(new fp(m.value,b))}}catch(R){u.e(R)}finally{u.f()}return r.filter(function(R){return!t.has(R)})}function IV(n){for(var r=n;r._sourceSegment;)r=r._sourceSegment;return r}function RV(n){for(var r=n,t=r._segmentIndexShift?r._segmentIndexShift:0;r._sourceSegment;)t+=(r=r._sourceSegment)._segmentIndexShift?r._segmentIndexShift:0;return t-1}function NV(n){return n.data||{}}function ZV(n){return n.resolve||{}}function CZ(n){return(0,Hs.w)(function(r){var t=n(r);return t?(0,cs.D)(t).pipe((0,kr.U)(function(){return r})):(0,or.of)(r)})}var toe=function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(){return(0,g.Z)(this,t),r.apply(this,arguments)}return t}(function(){function n(){(0,g.Z)(this,n)}return(0,k.Z)(n,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,i){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,i){return t.routeConfig===i.routeConfig}}]),n}()),SZ=new e.OlP("ROUTES"),LV=function(){function n(r,t,i,o){(0,g.Z)(this,n),this.loader=r,this.compiler=t,this.onLoadStartListener=i,this.onLoadEndListener=o}return(0,k.Z)(n,[{key:"load",value:function(t,i){var o=this;if(i._loader$)return i._loader$;this.onLoadStartListener&&this.onLoadStartListener(i);var s=this.loadModuleFactory(i.loadChildren).pipe((0,kr.U)(function(u){o.onLoadEndListener&&o.onLoadEndListener(i);var p=u.create(t);return new _Z(XH(p.injector.get(SZ,void 0,e.XFs.Self|e.XFs.Optional)).map(yZ),p)}),(0,qf.K)(function(u){throw i._loader$=void 0,u}));return i._loader$=new yre.c(s,function(){return new Pn.xQ}).pipe((0,Cre.x)()),i._loader$}},{key:"loadModuleFactory",value:function(t){var i=this;return"string"==typeof t?(0,cs.D)(this.loader.load(t)):ad(t()).pipe((0,Yo.zg)(function(o){return o instanceof e.YKP?(0,or.of)(o):(0,cs.D)(i.compiler.compileModuleAsync(o))}))}}]),n}(),noe=function n(){(0,g.Z)(this,n),this.outlet=null,this.route=null,this.resolver=null,this.children=new z_,this.attachRef=null},z_=function(){function n(){(0,g.Z)(this,n),this.contexts=new Map}return(0,k.Z)(n,[{key:"onChildOutletCreated",value:function(t,i){var o=this.getOrCreateContext(t);o.outlet=i,this.contexts.set(t,o)}},{key:"onChildOutletDestroyed",value:function(t){var i=this.getContext(t);i&&(i.outlet=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var i=this.getContext(t);return i||(i=new noe,this.contexts.set(t,i)),i}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),n}(),ioe=function(){function n(){(0,g.Z)(this,n)}return(0,k.Z)(n,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,i){return t}}]),n}();function ooe(n){throw n}function aoe(n,r,t){return r.parse("/")}function FV(n,r){return(0,or.of)(null)}var soe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},loe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Er=function(){var n=function(){function r(t,i,o,a,s,u,p,m){var b=this;(0,g.Z)(this,r),this.rootComponentType=t,this.urlSerializer=i,this.rootContexts=o,this.location=a,this.config=m,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Pn.xQ,this.errorHandler=ooe,this.malformedUriErrorHandler=aoe,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:FV,afterPreactivation:FV},this.urlHandlingStrategy=new ioe,this.routeReuseStrategy=new toe,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(e.h0i),this.console=s.get(e.c2e);var G=s.get(e.R0b);this.isNgZoneEnabled=G instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(m),this.currentUrlTree=new Jm(new gi([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new LV(u,p,function(ee){return b.triggerEvent(new GH(ee))},function(ee){return b.triggerEvent(new YH(ee))}),this.routerState=dV(this.currentUrlTree,this.rootComponentType),this.transitions=new to.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return(0,k.Z)(r,[{key:"browserPageId",get:function(){var i;return null===(i=this.location.getState())||void 0===i?void 0:i.\u0275routerPageId}},{key:"setupNavigations",value:function(i){var o=this,a=this.events;return i.pipe((0,vi.h)(function(s){return 0!==s.id}),(0,kr.U)(function(s){return Object.assign(Object.assign({},s),{extractedUrl:o.urlHandlingStrategy.extract(s.rawUrl)})}),(0,Hs.w)(function(s){var u=!1,p=!1;return(0,or.of)(s).pipe((0,Fa.b)(function(m){o.currentNavigation={id:m.id,initialUrl:m.currentRawUrl,extractedUrl:m.extractedUrl,trigger:m.source,extras:m.extras,previousNavigation:o.lastSuccessfulNavigation?Object.assign(Object.assign({},o.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,Hs.w)(function(m){var b=!o.navigated||m.extractedUrl.toString()!==o.browserUrlTree.toString(),R=("reload"===o.onSameUrlNavigation||b)&&o.urlHandlingStrategy.shouldProcessUrl(m.rawUrl);if(a2(m.source)&&(o.browserUrlTree=m.rawUrl),R)return(0,or.of)(m).pipe((0,Hs.w)(function(it){var mt=o.transitions.getValue();return a.next(new qA(it.id,o.serializeUrl(it.extractedUrl),it.source,it.restoredState)),mt!==o.transitions.getValue()?Gm.E:Promise.resolve(it)}),function(n,r,t,i){return(0,Hs.w)(function(o){return function(n,r,t,i,o){return new kie(n,r,t,i,o).apply()}(n,r,t,o.extractedUrl,i).pipe((0,kr.U)(function(a){return Object.assign(Object.assign({},o),{urlAfterRedirects:a})}))})}(o.ngModule.injector,o.configLoader,o.urlSerializer,o.config),(0,Fa.b)(function(it){o.currentNavigation=Object.assign(Object.assign({},o.currentNavigation),{finalUrl:it.urlAfterRedirects})}),function(n,r,t,i,o){return(0,Yo.zg)(function(a){return function(n,r,t,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var s=new jie(n,r,t,i,o,a).recognize();return null===s?OV(new Vie):(0,or.of)(s)}catch(u){return OV(u)}}(n,r,a.urlAfterRedirects,t(a.urlAfterRedirects),i,o).pipe((0,kr.U)(function(s){return Object.assign(Object.assign({},a),{targetSnapshot:s})}))})}(o.rootComponentType,o.config,function(it){return o.serializeUrl(it)},o.paramsInheritanceStrategy,o.relativeLinkResolution),(0,Fa.b)(function(it){"eager"===o.urlUpdateStrategy&&(it.extras.skipLocationChange||o.setBrowserUrl(it.urlAfterRedirects,it),o.browserUrlTree=it.urlAfterRedirects);var mt=new Sre(it.id,o.serializeUrl(it.extractedUrl),o.serializeUrl(it.urlAfterRedirects),it.targetSnapshot);a.next(mt)}));if(b&&o.rawUrlTree&&o.urlHandlingStrategy.shouldProcessUrl(o.rawUrlTree)){var Y=m.extractedUrl,ee=m.source,pe=m.restoredState,Ee=m.extras,lt=new qA(m.id,o.serializeUrl(Y),ee,pe);a.next(lt);var tt=dV(Y,o.rootComponentType).snapshot;return(0,or.of)(Object.assign(Object.assign({},m),{targetSnapshot:tt,urlAfterRedirects:Y,extras:Object.assign(Object.assign({},Ee),{skipLocationChange:!1,replaceUrl:!1})}))}return o.rawUrlTree=m.rawUrl,o.browserUrlTree=m.urlAfterRedirects,m.resolve(null),Gm.E}),CZ(function(m){var Y=m.extras;return o.hooks.beforePreactivation(m.targetSnapshot,{navigationId:m.id,appliedUrlTree:m.extractedUrl,rawUrlTree:m.rawUrl,skipLocationChange:!!Y.skipLocationChange,replaceUrl:!!Y.replaceUrl})}),(0,Fa.b)(function(m){var b=new Tre(m.id,o.serializeUrl(m.extractedUrl),o.serializeUrl(m.urlAfterRedirects),m.targetSnapshot);o.triggerEvent(b)}),(0,kr.U)(function(m){return Object.assign(Object.assign({},m),{guards:Aie(m.targetSnapshot,m.currentSnapshot,o.rootContexts)})}),function(n,r){return(0,Yo.zg)(function(t){var i=t.targetSnapshot,o=t.currentSnapshot,a=t.guards,s=a.canActivateChecks,u=a.canDeactivateChecks;return 0===u.length&&0===s.length?(0,or.of)(Object.assign(Object.assign({},t),{guardsResult:!0})):function(n,r,t,i){return(0,cs.D)(n).pipe((0,Yo.zg)(function(o){return function(n,r,t,i,o){var a=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!a||0===a.length)return(0,or.of)(!0);var s=a.map(function(u){var m,p=o2(u,r,o);if(function(n){return n&&jf(n.canDeactivate)}(p))m=ad(p.canDeactivate(n,r,t,i));else{if(!jf(p))throw new Error("Invalid CanDeactivate guard");m=ad(p(n,r,t,i))}return m.pipe((0,q_.P)())});return(0,or.of)(s).pipe(vS())}(o.component,o.route,t,r,i)}),(0,q_.P)(function(o){return!0!==o},!0))}(u,i,o,n).pipe((0,Yo.zg)(function(p){return p&&function(n){return"boolean"==typeof n}(p)?function(n,r,t,i){return(0,cs.D)(r).pipe((0,cS.b)(function(o){return(0,qH.z)(function(n,r){return null!==n&&r&&r(new Ere(n)),(0,or.of)(!0)}(o.route.parent,i),function(n,r){return null!==n&&r&&r(new Are(n)),(0,or.of)(!0)}(o.route,i),function(n,r,t){var i=r[r.length-1],a=r.slice(0,r.length-1).reverse().map(function(s){return function(n){var r=n.routeConfig?n.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:n,guards:r}:null}(s)}).filter(function(s){return null!==s}).map(function(s){return(0,iZ.P)(function(){var u=s.guards.map(function(p){var b,m=o2(p,s.node,t);if(function(n){return n&&jf(n.canActivateChild)}(m))b=ad(m.canActivateChild(i,n));else{if(!jf(m))throw new Error("Invalid CanActivateChild guard");b=ad(m(i,n))}return b.pipe((0,q_.P)())});return(0,or.of)(u).pipe(vS())})});return(0,or.of)(a).pipe(vS())}(n,o.path,t),function(n,r,t){var i=r.routeConfig?r.routeConfig.canActivate:null;if(!i||0===i.length)return(0,or.of)(!0);var o=i.map(function(a){return(0,iZ.P)(function(){var u,s=o2(a,r,t);if(function(n){return n&&jf(n.canActivate)}(s))u=ad(s.canActivate(r,n));else{if(!jf(s))throw new Error("Invalid CanActivate guard");u=ad(s(r,n))}return u.pipe((0,q_.P)())})});return(0,or.of)(o).pipe(vS())}(n,o.route,t))}),(0,q_.P)(function(o){return!0!==o},!0))}(i,s,n,r):(0,or.of)(p)}),(0,kr.U)(function(p){return Object.assign(Object.assign({},t),{guardsResult:p})}))})}(o.ngModule.injector,function(m){return o.triggerEvent(m)}),(0,Fa.b)(function(m){if(Km(m.guardsResult)){var b=sZ('Redirecting to "'.concat(o.serializeUrl(m.guardsResult),'"'));throw b.url=m.guardsResult,b}var R=new xre(m.id,o.serializeUrl(m.extractedUrl),o.serializeUrl(m.urlAfterRedirects),m.targetSnapshot,!!m.guardsResult);o.triggerEvent(R)}),(0,vi.h)(function(m){return!!m.guardsResult||(o.restoreHistory(m),o.cancelNavigationTransition(m,""),!1)}),CZ(function(m){if(m.guards.canActivateChecks.length)return(0,or.of)(m).pipe((0,Fa.b)(function(b){var R=new wre(b.id,o.serializeUrl(b.extractedUrl),o.serializeUrl(b.urlAfterRedirects),b.targetSnapshot);o.triggerEvent(R)}),(0,Hs.w)(function(b){var R=!1;return(0,or.of)(b).pipe(function(n,r){return(0,Yo.zg)(function(t){var i=t.targetSnapshot,o=t.guards.canActivateChecks;if(!o.length)return(0,or.of)(t);var a=0;return(0,cs.D)(o).pipe((0,cS.b)(function(s){return function(n,r,t,i){return function(n,r,t,i){var o=Object.keys(n);if(0===o.length)return(0,or.of)({});var a={};return(0,cs.D)(o).pipe((0,Yo.zg)(function(s){return function(n,r,t,i){var o=o2(n,r,i);return ad(o.resolve?o.resolve(r,t):o(r,t))}(n[s],r,t,i).pipe((0,Fa.b)(function(u){a[s]=u}))}),(0,Xg.h)(1),(0,Yo.zg)(function(){return Object.keys(a).length===o.length?(0,or.of)(a):Gm.E}))}(n._resolve,n,r,i).pipe((0,kr.U)(function(a){return n._resolvedData=a,n.data=Object.assign(Object.assign({},n.data),pV(n,t).resolve),null}))}(s.route,i,n,r)}),(0,Fa.b)(function(){return a++}),(0,Xg.h)(1),(0,Yo.zg)(function(s){return a===o.length?(0,or.of)(t):Gm.E}))})}(o.paramsInheritanceStrategy,o.ngModule.injector),(0,Fa.b)({next:function(){return R=!0},complete:function(){R||(o.restoreHistory(b),o.cancelNavigationTransition(b,"At least one route resolver didn't emit any value."))}}))}),(0,Fa.b)(function(b){var R=new kre(b.id,o.serializeUrl(b.extractedUrl),o.serializeUrl(b.urlAfterRedirects),b.targetSnapshot);o.triggerEvent(R)}))}),CZ(function(m){var Y=m.extras;return o.hooks.afterPreactivation(m.targetSnapshot,{navigationId:m.id,appliedUrlTree:m.extractedUrl,rawUrlTree:m.rawUrl,skipLocationChange:!!Y.skipLocationChange,replaceUrl:!!Y.replaceUrl})}),(0,kr.U)(function(m){var b=function(n,r,t){var i=QA(n,r._root,t?t._root:void 0);return new cV(i,r)}(o.routeReuseStrategy,m.targetSnapshot,m.currentRouterState);return Object.assign(Object.assign({},m),{targetRouterState:b})}),(0,Fa.b)(function(m){o.currentUrlTree=m.urlAfterRedirects,o.rawUrlTree=o.urlHandlingStrategy.merge(o.currentUrlTree,m.rawUrl),o.routerState=m.targetRouterState,"deferred"===o.urlUpdateStrategy&&(m.extras.skipLocationChange||o.setBrowserUrl(o.rawUrlTree,m),o.browserUrlTree=m.urlAfterRedirects)}),function(r,t,i){return(0,kr.U)(function(o){return new cie(t,o.targetRouterState,o.currentRouterState,i).activate(r),o})}(o.rootContexts,o.routeReuseStrategy,function(m){return o.triggerEvent(m)}),(0,Fa.b)({next:function(){u=!0},complete:function(){u=!0}}),(0,zH.x)(function(){if(!u&&!p){var m="Navigation ID ".concat(s.id," is not equal to the current navigation id ").concat(o.navigationId);"replace"===o.canceledNavigationResolution&&o.restoreHistory(s),o.cancelNavigationTransition(s,m)}o.currentNavigation=null}),(0,qf.K)(function(m){if(p=!0,function(n){return n&&n[QH]}(m)){var b=Km(m.url);b||(o.navigated=!0,o.restoreHistory(s,!0));var R=new aZ(s.id,o.serializeUrl(s.extractedUrl),m.message);a.next(R),b?setTimeout(function(){var G=o.urlHandlingStrategy.merge(m.url,o.rawUrlTree),Y={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===o.urlUpdateStrategy||a2(s.source)};o.scheduleNavigation(G,"imperative",null,Y,{resolve:s.resolve,reject:s.reject,promise:s.promise})},0):s.resolve(!1)}else{o.restoreHistory(s,!0);var F=new WH(s.id,o.serializeUrl(s.extractedUrl),m);a.next(F);try{s.resolve(o.errorHandler(m))}catch(G){s.reject(G)}}return Gm.E}))}))}},{key:"resetRootComponentType",value:function(i){this.rootComponentType=i,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var i=this.transitions.value;return i.urlAfterRedirects=this.browserUrlTree,i}},{key:"setTransition",value:function(i){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),i))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var i=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(o){var a=i.extractLocationChangeInfoFromEvent(o);i.shouldScheduleNavigation(i.lastLocationChangeInfo,a)&&setTimeout(function(){var s=a.source,u=a.state,p=a.urlTree,m={replaceUrl:!0};if(u){var b=Object.assign({},u);delete b.navigationId,delete b.\u0275routerPageId,0!==Object.keys(b).length&&(m.state=b)}i.scheduleNavigation(p,s,u,m)},0),i.lastLocationChangeInfo=a}))}},{key:"extractLocationChangeInfoFromEvent",value:function(i){var o;return{source:"popstate"===i.type?"popstate":"hashchange",urlTree:this.parseUrl(i.url),state:(null===(o=i.state)||void 0===o?void 0:o.navigationId)?i.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(i,o){if(!i)return!0;var a=o.urlTree.toString()===i.urlTree.toString();return!(o.transitionId===i.transitionId&&a&&("hashchange"===o.source&&"popstate"===i.source||"popstate"===o.source&&"hashchange"===i.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(i){this.events.next(i)}},{key:"resetConfig",value:function(i){TV(i),this.config=i.map(yZ),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.relativeTo,s=o.queryParams,u=o.fragment,p=o.queryParamsHandling,m=o.preserveFragment,b=a||this.routerState.root,R=m?this.currentUrlTree.fragment:u,F=null;switch(p){case"merge":F=Object.assign(Object.assign({},this.currentUrlTree.queryParams),s);break;case"preserve":F=this.currentUrlTree.queryParams;break;default:F=s||null}return null!==F&&(F=this.removeEmptyProps(F)),nie(b,this.currentUrlTree,i,F,null!=R?R:null)}},{key:"navigateByUrl",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},a=Km(i)?i:this.parseUrl(i),s=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,o)}},{key:"navigate",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return uoe(i),this.navigateByUrl(this.createUrlTree(i,o),o)}},{key:"serializeUrl",value:function(i){return this.urlSerializer.serialize(i)}},{key:"parseUrl",value:function(i){var o;try{o=this.urlSerializer.parse(i)}catch(a){o=this.malformedUriErrorHandler(a,this.urlSerializer,i)}return o}},{key:"isActive",value:function(i,o){var a;if(a=!0===o?Object.assign({},soe):!1===o?Object.assign({},loe):o,Km(i))return tV(this.currentUrlTree,i,a);var s=this.parseUrl(i);return tV(this.currentUrlTree,s,a)}},{key:"removeEmptyProps",value:function(i){return Object.keys(i).reduce(function(o,a){var s=i[a];return null!=s&&(o[a]=s),o},{})}},{key:"processNavigations",value:function(){var i=this;this.navigations.subscribe(function(o){i.navigated=!0,i.lastSuccessfulId=o.id,i.currentPageId=o.targetPageId,i.events.next(new Ym(o.id,i.serializeUrl(o.extractedUrl),i.serializeUrl(i.currentUrlTree))),i.lastSuccessfulNavigation=i.currentNavigation,o.resolve(!0)},function(o){i.console.warn("Unhandled Navigation Error: ".concat(o))})}},{key:"scheduleNavigation",value:function(i,o,a,s,u){var p,m;if(this.disposed)return Promise.resolve(!1);var ee,pe,Ee,b=this.getTransition(),R=a2(o)&&b&&!a2(b.source),Y=(this.lastSuccessfulId===b.id||this.currentNavigation?b.rawUrl:b.urlAfterRedirects).toString()===i.toString();if(R&&Y)return Promise.resolve(!0);u?(ee=u.resolve,pe=u.reject,Ee=u.promise):Ee=new Promise(function(mt,Ke){ee=mt,pe=Ke});var tt,lt=++this.navigationId;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(a=this.location.getState()),tt=a&&a.\u0275routerPageId?a.\u0275routerPageId:s.replaceUrl||s.skipLocationChange?null!==(p=this.browserPageId)&&void 0!==p?p:0:(null!==(m=this.browserPageId)&&void 0!==m?m:0)+1):tt=0,this.setTransition({id:lt,targetPageId:tt,source:o,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:i,extras:s,resolve:ee,reject:pe,promise:Ee,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Ee.catch(function(mt){return Promise.reject(mt)})}},{key:"setBrowserUrl",value:function(i,o){var a=this.urlSerializer.serialize(i),s=Object.assign(Object.assign({},o.extras.state),this.generateNgRouterState(o.id,o.targetPageId));this.location.isCurrentPathEqualTo(a)||o.extras.replaceUrl?this.location.replaceState(a,"",s):this.location.go(a,"",s)}},{key:"restoreHistory",value:function(i){var a,s,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var u=this.currentPageId-i.targetPageId,p="popstate"===i.source||"eager"===this.urlUpdateStrategy||this.currentUrlTree===(null===(a=this.currentNavigation)||void 0===a?void 0:a.finalUrl);p&&0!==u?this.location.historyGo(u):this.currentUrlTree===(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)&&0===u&&(this.resetState(i),this.browserUrlTree=i.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(o&&this.resetState(i),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(i){this.routerState=i.currentRouterState,this.currentUrlTree=i.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(i,o){var a=new aZ(i.id,this.serializeUrl(i.extractedUrl),o);this.triggerEvent(a),i.resolve(!1)}},{key:"generateNgRouterState",value:function(i,o){return"computed"===this.canceledNavigationResolution?{navigationId:i,"\u0275routerPageId":o}:{navigationId:i}}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(e.DyG),e.LFG(lZ),e.LFG(z_),e.LFG(At.Ye),e.LFG(e.zs3),e.LFG(e.v3s),e.LFG(e.Sil),e.LFG(void 0))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}();function uoe(n){for(var r=0;r<n.length;r++){var t=n[r];if(null==t)throw new Error("The requested path contains ".concat(t," segment at index ").concat(r))}}function a2(n){return"imperative"!==n}var fa=function(){var n=function(){function r(t,i,o,a,s){(0,g.Z)(this,r),this.router=t,this.route=i,this.commands=[],this.onChanges=new Pn.xQ,null==o&&a.setAttribute(s.nativeElement,"tabindex","0")}return(0,k.Z)(r,[{key:"ngOnChanges",value:function(i){this.onChanges.next(this)}},{key:"routerLink",set:function(i){this.commands=null!=i?Array.isArray(i)?i:[i]:[]}},{key:"onClick",value:function(){var i={skipLocationChange:G_(this.skipLocationChange),replaceUrl:G_(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,i),!0}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:G_(this.preserveFragment)})}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(Er),e.Y36(Ir),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,i){1&t&&e.NdJ("click",function(){return i.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[e.TTD]}),n}(),W_=function(){var n=function(){function r(t,i,o){var a=this;(0,g.Z)(this,r),this.router=t,this.route=i,this.locationStrategy=o,this.commands=[],this.onChanges=new Pn.xQ,this.subscription=t.events.subscribe(function(s){s instanceof Ym&&a.updateTargetUrlAndHref()})}return(0,k.Z)(r,[{key:"routerLink",set:function(i){this.commands=null!=i?Array.isArray(i)?i:[i]:[]}},{key:"ngOnChanges",value:function(i){this.updateTargetUrlAndHref(),this.onChanges.next(this)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(i,o,a,s,u){if(0!==i||o||a||s||u||"string"==typeof this.target&&"_self"!=this.target)return!0;var p={skipLocationChange:G_(this.skipLocationChange),replaceUrl:G_(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,p),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:G_(this.preserveFragment)})}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(Er),e.Y36(Ir),e.Y36(At.S$))},n.\u0275dir=e.lG2({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,i){1&t&&e.NdJ("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),2&t&&(e.Ikx("href",i.href,e.LSH),e.uIk("target",i.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[e.TTD]}),n}();function G_(n){return""===n||!!n}var s2=function(){var n=function(){function r(t,i,o,a,s){(0,g.Z)(this,r),this.parentContexts=t,this.location=i,this.resolver=o,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new e.vpe,this.deactivateEvents=new e.vpe,this.name=a||pi,t.onChildOutletCreated(this.name,this)}return(0,k.Z)(r,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var i=this.parentContexts.getContext(this.name);i&&i.route&&(i.attachRef?this.attach(i.attachRef,i.route):this.activateWith(i.route,i.resolver||null))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var i=this.activated;return this.activated=null,this._activatedRoute=null,i}},{key:"attach",value:function(i,o){this.activated=i,this._activatedRoute=o,this.location.insert(i.hostView)}},{key:"deactivate",value:function(){if(this.activated){var i=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(i)}}},{key:"activateWith",value:function(i,o){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=i;var u=(o=o||this.resolver).resolveComponentFactory(i._futureSnapshot.routeConfig.component),p=this.parentContexts.getOrCreateContext(this.name).children,m=new poe(i,p,this.location.injector);this.activated=this.location.createComponent(u,this.location.length,m),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(z_),e.Y36(e.s_b),e.Y36(e._Vd),e.$8M("name"),e.Y36(e.sBO))},n.\u0275dir=e.lG2({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),n}(),poe=function(){function n(r,t,i){(0,g.Z)(this,n),this.route=r,this.childContexts=t,this.parent=i}return(0,k.Z)(n,[{key:"get",value:function(t,i){return t===Ir?this.route:t===z_?this.childContexts:this.parent.get(t,i)}}]),n}(),BV=function n(){(0,g.Z)(this,n)},foe=function(){function n(){(0,g.Z)(this,n)}return(0,k.Z)(n,[{key:"preload",value:function(t,i){return i().pipe((0,qf.K)(function(){return(0,or.of)(null)}))}}]),n}(),UV=function(){function n(){(0,g.Z)(this,n)}return(0,k.Z)(n,[{key:"preload",value:function(t,i){return(0,or.of)(null)}}]),n}(),HV=function(){var n=function(){function r(t,i,o,a,s){(0,g.Z)(this,r),this.router=t,this.injector=a,this.preloadingStrategy=s,this.loader=new LV(i,o,function(b){return t.triggerEvent(new GH(b))},function(b){return t.triggerEvent(new YH(b))})}return(0,k.Z)(r,[{key:"setUpPreloading",value:function(){var i=this;this.subscription=this.router.events.pipe((0,vi.h)(function(o){return o instanceof Ym}),(0,cS.b)(function(){return i.preload()})).subscribe(function(){})}},{key:"preload",value:function(){var i=this.injector.get(e.h0i);return this.processRoutes(i,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(i,o){var u,a=[],s=(0,v.Z)(o);try{for(s.s();!(u=s.n()).done;){var p=u.value;if(p.loadChildren&&!p.canLoad&&p._loadedConfig){var m=p._loadedConfig;a.push(this.processRoutes(m.module,m.routes))}else p.loadChildren&&!p.canLoad?a.push(this.preloadConfig(i,p)):p.children&&a.push(this.processRoutes(i,p.children))}}catch(b){s.e(b)}finally{s.f()}return(0,cs.D)(a).pipe((0,oZ.J)(),(0,kr.U)(function(b){}))}},{key:"preloadConfig",value:function(i,o){var a=this;return this.preloadingStrategy.preload(o,function(){return(o._loadedConfig?(0,or.of)(o._loadedConfig):a.loader.load(i.injector,o)).pipe((0,Yo.zg)(function(u){return o._loadedConfig=u,a.processRoutes(u.module,u.routes)}))})}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(Er),e.LFG(e.v3s),e.LFG(e.Sil),e.LFG(e.zs3),e.LFG(BV))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),TZ=function(){var n=function(){function r(t,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,g.Z)(this,r),this.router=t,this.viewportScroller=i,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.anchorScrolling||"disabled"}return(0,k.Z)(r,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var i=this;return this.router.events.subscribe(function(o){o instanceof qA?(i.store[i.lastId]=i.viewportScroller.getScrollPosition(),i.lastSource=o.navigationTrigger,i.restoredId=o.restoredState?o.restoredState.navigationId:0):o instanceof Ym&&(i.lastId=o.id,i.scheduleScrollEvent(o,i.router.parseUrl(o.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var i=this;return this.router.events.subscribe(function(o){o instanceof JH&&(o.position?"top"===i.options.scrollPositionRestoration?i.viewportScroller.scrollToPosition([0,0]):"enabled"===i.options.scrollPositionRestoration&&i.viewportScroller.scrollToPosition(o.position):o.anchor&&"enabled"===i.options.anchorScrolling?i.viewportScroller.scrollToAnchor(o.anchor):"disabled"!==i.options.scrollPositionRestoration&&i.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(i,o){this.router.triggerEvent(new JH(i,"popstate"===this.lastSource?this.store[this.restoredId]:null,o))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(Er),e.LFG(At.EM),e.LFG(void 0))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Xm=new e.OlP("ROUTER_CONFIGURATION"),VV=new e.OlP("ROUTER_FORROOT_GUARD"),moe=[At.Ye,{provide:lZ,useClass:oV},{provide:Er,useFactory:function(n,r,t,i,o,a,s){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},p=arguments.length>8?arguments[8]:void 0,m=arguments.length>9?arguments[9]:void 0,b=new Er(null,n,r,t,i,o,a,XH(s));return p&&(b.urlHandlingStrategy=p),m&&(b.routeReuseStrategy=m),Coe(u,b),u.enableTracing&&b.events.subscribe(function(R){var F,G;null===(F=console.group)||void 0===F||F.call(console,"Router Event: ".concat(R.constructor.name)),console.log(R.toString()),console.log(R),null===(G=console.groupEnd)||void 0===G||G.call(console)}),b},deps:[lZ,z_,At.Ye,e.zs3,e.v3s,e.Sil,SZ,Xm,[function n(){(0,g.Z)(this,n)},new e.FiY],[function n(){(0,g.Z)(this,n)},new e.FiY]]},z_,{provide:Ir,useFactory:function(n){return n.routerState.root},deps:[Er]},{provide:e.v3s,useClass:e.EAV},HV,UV,foe,{provide:Xm,useValue:{enableTracing:!1}}];function voe(){return new e.PXZ("Router",Er)}var qV=function(){var n=function(){function r(t,i){(0,g.Z)(this,r)}return(0,k.Z)(r,null,[{key:"forRoot",value:function(i,o){return{ngModule:r,providers:[moe,jV(i),{provide:VV,useFactory:yoe,deps:[[Er,new e.FiY,new e.tp0]]},{provide:Xm,useValue:o||{}},{provide:At.S$,useFactory:_oe,deps:[At.lw,[new e.tBr(At.mr),new e.FiY],Xm]},{provide:TZ,useFactory:goe,deps:[Er,At.EM,Xm]},{provide:BV,useExisting:o&&o.preloadingStrategy?o.preloadingStrategy:UV},{provide:e.PXZ,multi:!0,useFactory:voe},[xZ,{provide:e.ip1,multi:!0,useFactory:Toe,deps:[xZ]},{provide:zV,useFactory:xoe,deps:[xZ]},{provide:e.tb,multi:!0,useExisting:zV}]]}}},{key:"forChild",value:function(i){return{ngModule:r,providers:[jV(i)]}}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(VV,8),e.LFG(Er,8))},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({}),n}();function goe(n,r,t){return t.scrollOffset&&r.setOffset(t.scrollOffset),new TZ(n,r,t)}function _oe(n,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.useHash?new At.Do(n,r):new At.b0(n,r)}function yoe(n){return"guarded"}function jV(n){return[{provide:e.deG,multi:!0,useValue:n},{provide:SZ,multi:!0,useValue:n}]}function Coe(n,r){n.errorHandler&&(r.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(r.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(r.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(r.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(r.urlUpdateStrategy=n.urlUpdateStrategy)}var xZ=function(){var n=function(){function r(t){(0,g.Z)(this,r),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Pn.xQ}return(0,k.Z)(r,[{key:"appInitializer",value:function(){var i=this;return this.injector.get(At.V_,Promise.resolve(null)).then(function(){if(i.destroyed)return Promise.resolve(!0);var a=null,s=new Promise(function(m){return a=m}),u=i.injector.get(Er),p=i.injector.get(Xm);return"disabled"===p.initialNavigation?(u.setUpLocationChangeListener(),a(!0)):"enabled"===p.initialNavigation||"enabledBlocking"===p.initialNavigation?(u.hooks.afterPreactivation=function(){return i.initNavigation?(0,or.of)(null):(i.initNavigation=!0,a(!0),i.resultOfPreactivationDone)},u.initialNavigation()):a(!0),s})}},{key:"bootstrapListener",value:function(i){var o=this.injector.get(Xm),a=this.injector.get(HV),s=this.injector.get(TZ),u=this.injector.get(Er),p=this.injector.get(e.z2F);i===p.components[0]&&(("enabledNonBlocking"===o.initialNavigation||void 0===o.initialNavigation)&&u.initialNavigation(),a.setUpPreloading(),s.init(),u.resetRootComponentType(p.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(e.zs3))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}();function Toe(n){return n.appInitializer.bind(n)}function xoe(n){return n.bootstrapListener.bind(n)}var zV=new e.OlP("Router Initializer"),l2=function(){return function(){}}(),Qo=f(96153),Hr=function(){function n(r){this.httpServer=r,this.serverIds=[],this.serviceInitialized=new Pn.xQ,this.serverIds=this.getServerIds(),this.isServiceInitialized=!0,this.serviceInitialized.next(this.isServiceInitialized)}return n.prototype.getServerIds=function(){var r=localStorage.getItem("serverIds");return(null==r?void 0:r.length)>0?r.split(","):[]},n.prototype.updateServerIds=function(){localStorage.removeItem("serverIds"),localStorage.setItem("serverIds",this.serverIds.toString())},n.prototype.get=function(r){var t=JSON.parse(localStorage.getItem("server-"+r));return new Promise(function(o){o(t)})},n.prototype.create=function(r){return r.id=this.serverIds.length+1,localStorage.setItem("server-"+r.id,JSON.stringify(r)),this.serverIds.push("server-"+r.id),this.updateServerIds(),new Promise(function(i){i(r)})},n.prototype.update=function(r){return localStorage.removeItem("server-"+r.id),localStorage.setItem("server-"+r.id,JSON.stringify(r)),new Promise(function(i){i(r)})},n.prototype.findAll=function(){var r=this;return new Promise(function(i){var o=[];r.serverIds.forEach(function(a){var s=JSON.parse(localStorage.getItem(a));o.push(s)}),i(o)})},n.prototype.delete=function(r){return localStorage.removeItem("server-"+r.id),this.serverIds=this.serverIds.filter(function(i){return i!=="server-"+r.id}),this.updateServerIds(),new Promise(function(i){i(r.id)})},n.prototype.getServerUrl=function(r){return r.protocol+"//"+r.host+":"+r.port+"/"},n.prototype.checkServerVersion=function(r){return this.httpServer.get(r,"/version")},n.prototype.getLocalServer=function(r,t){var i=this;return new Promise(function(a,s){i.findAll().then(function(u){var p=u.find(function(b){return"bundled"===b.location});if(p)p.host=r,p.port=t,p.protocol=location.protocol,i.update(p).then(function(b){a(b)},s);else{var m=new l2;m.name="local",m.host=r,m.port=t,m.location="bundled",m.protocol=location.protocol,i.create(m).then(function(b){a(b)},s)}},s)})},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),bS=function(){return function(r,t,i){void 0===i&&(i=!1),this.visible=r,this.error=t,this.clear=i}}(),zf=function(){function n(){this.state=new to.X(new bS(!1))}return n.prototype.setError=function(r){this.state.next(new bS(!1,r.error))},n.prototype.clear=function(){this.state.next(new bS(!1,null,!0))},n.prototype.activate=function(){this.state.next(new bS(!0))},n.prototype.deactivate=function(){this.state.next(new bS(!1))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}();function koe(n,r){if(1&n&&(e.O4$(),e._UZ(0,"circle",3)),2&n){var t=e.oxw();e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),e.uIk("r",t._getCircleRadius())}}function Eoe(n,r){if(1&n&&(e.O4$(),e._UZ(0,"circle",3)),2&n){var t=e.oxw();e.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),e.uIk("r",t._getCircleRadius())}}function Moe(n,r){if(1&n&&(e.O4$(),e._UZ(0,"circle",3)),2&n){var t=e.oxw();e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),e.uIk("r",t._getCircleRadius())}}function Aoe(n,r){if(1&n&&(e.O4$(),e._UZ(0,"circle",3)),2&n){var t=e.oxw();e.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),e.uIk("r",t._getCircleRadius())}}var WV=".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;transform-origin:center;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:currentColor;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}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-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)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n",Ooe=(0,un.pj)(function(){return function n(r){(0,g.Z)(this,n),this._elementRef=r}}(),"primary"),GV=new e.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),Roe=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u,p){var m;(0,g.Z)(this,i),(m=t.call(this,o))._document=s,m._diameter=100,m._value=0,m._fallbackAnimation=!1,m.mode="determinate";var b=i._diameters;return m._spinnerAnimationLabel=m._getSpinnerAnimationLabel(),b.has(s.head)||b.set(s.head,new Set([100])),m._fallbackAnimation=a.EDGE||a.TRIDENT,m._noopAnimations="NoopAnimations"===u&&!!p&&!p._forceAnimations,p&&(p.diameter&&(m.diameter=p.diameter),p.strokeWidth&&(m.strokeWidth=p.strokeWidth)),m}return(0,k.Z)(i,[{key:"diameter",get:function(){return this._diameter},set:function(a){this._diameter=(0,On.su)(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(a){this._strokeWidth=(0,On.su)(a)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(a){this._value=Math.max(0,Math.min(100,(0,On.su)(a)))}},{key:"ngOnInit",value:function(){var a=this._elementRef.nativeElement;this._styleRoot=(0,ei.kV)(a)||this._document.head,this._attachStyleNode();var s="mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation");a.classList.add(s)}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var a=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(a," ").concat(a)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var a=this._styleRoot,s=this._diameter,u=i._diameters,p=u.get(a);if(!p||!p.has(s)){var m=this._document.createElement("style");m.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),m.textContent=this._getAnimationText(),a.appendChild(m),p||(p=new Set,u.set(a,p)),p.add(s)}}},{key:"_getAnimationText",value: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,"".concat(.95*a)).replace(/END_VALUE/g,"".concat(.2*a)).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}}]),i}(Ooe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(ei.t4),e.Y36(At.K0,8),e.Y36(Cs.Qb,8),e.Y36(GV))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,i){2&t&&(e.uIk("aria-valuemin","determinate"===i.mode?0:null)("aria-valuemax","determinate"===i.mode?100:null)("aria-valuenow","determinate"===i.mode?i.value:null)("mode",i.mode),e.Udp("width",i.diameter,"px")("height",i.diameter,"px"),e.ekj("_mat-animation-noopable",i._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[e.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,i){1&t&&(e.O4$(),e.TgZ(0,"svg",0),e.YNc(1,koe,1,9,"circle",1),e.YNc(2,Eoe,1,7,"circle",2),e.qZA()),2&t&&(e.Udp("width",i.diameter,"px")("height",i.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===i.mode),e.uIk("viewBox",i._getViewBox()),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[At.RF,At.n9],styles:[WV],encapsulation:2,changeDetection:0}),n._diameters=new WeakMap,n}(),YV=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u,p){var m;return(0,g.Z)(this,i),(m=t.call(this,o,a,s,u,p)).mode="indeterminate",m}return i}(Roe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(ei.t4),e.Y36(At.K0,8),e.Y36(Cs.Qb,8),e.Y36(GV))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,i){2&t&&(e.Udp("width",i.diameter,"px")("height",i.diameter,"px"),e.ekj("_mat-animation-noopable",i._noopAnimations))},inputs:{color:"color"},features:[e.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,i){1&t&&(e.O4$(),e.TgZ(0,"svg",0),e.YNc(1,Moe,1,9,"circle",1),e.YNc(2,Aoe,1,7,"circle",2),e.qZA()),2&t&&(e.Udp("width",i.diameter,"px")("height",i.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===i.mode),e.uIk("viewBox",i._getViewBox()),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[At.RF,At.n9],styles:[WV],encapsulation:2,changeDetection:0}),n}(),Noe=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[un.BQ,At.ez],un.BQ]}),n}(),Zoe=f(11363),kZ=f(91925),Loe=["*"];function JV(n){return Error('Unable to find icon with the name "'.concat(n,'"'))}function QV(n){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+"via Angular's DomSanitizer. Attempted URL was \"".concat(n,'".'))}function KV(n){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(n,'".'))}var $m=function n(r,t,i){(0,g.Z)(this,n),this.url=r,this.svgText=t,this.options=i},CS=function(){var n=function(){function r(t,i,o,a){(0,g.Z)(this,r),this._httpClient=t,this._sanitizer=i,this._errorHandler=a,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=o}return(0,k.Z)(r,[{key:"addSvgIcon",value:function(i,o,a){return this.addSvgIconInNamespace("",i,o,a)}},{key:"addSvgIconLiteral",value:function(i,o,a){return this.addSvgIconLiteralInNamespace("",i,o,a)}},{key:"addSvgIconInNamespace",value:function(i,o,a,s){return this._addSvgIconConfig(i,o,new $m(a,null,s))}},{key:"addSvgIconResolver",value:function(i){return this._resolvers.push(i),this}},{key:"addSvgIconLiteralInNamespace",value:function(i,o,a,s){var u=this._sanitizer.sanitize(e.q3G.HTML,a);if(!u)throw KV(a);return this._addSvgIconConfig(i,o,new $m("",u,s))}},{key:"addSvgIconSet",value:function(i,o){return this.addSvgIconSetInNamespace("",i,o)}},{key:"addSvgIconSetLiteral",value:function(i,o){return this.addSvgIconSetLiteralInNamespace("",i,o)}},{key:"addSvgIconSetInNamespace",value:function(i,o,a){return this._addSvgIconSetConfig(i,new $m(o,null,a))}},{key:"addSvgIconSetLiteralInNamespace",value:function(i,o,a){var s=this._sanitizer.sanitize(e.q3G.HTML,o);if(!s)throw KV(o);return this._addSvgIconSetConfig(i,new $m("",s,a))}},{key:"registerFontClassAlias",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return this._fontCssClassesByAlias.set(i,o),this}},{key:"classNameForFontAlias",value:function(i){return this._fontCssClassesByAlias.get(i)||i}},{key:"setDefaultFontSetClass",value:function(i){return this._defaultFontSetClass=i,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(i){var o=this,a=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,i);if(!a)throw QV(i);var s=this._cachedIconsByUrl.get(a);return s?(0,or.of)(u2(s)):this._loadSvgIconFromConfig(new $m(i,null)).pipe((0,Fa.b)(function(u){return o._cachedIconsByUrl.set(a,u)}),(0,kr.U)(function(u){return u2(u)}))}},{key:"getNamedSvgIcon",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=XV(o,i),s=this._svgIconConfigs.get(a);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(o,i))return this._svgIconConfigs.set(a,s),this._getSvgFromConfig(s);var u=this._iconSetConfigs.get(o);return u?this._getSvgFromIconSetConfigs(i,u):(0,Zoe._)(JV(a))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(i){return i.svgText?(0,or.of)(u2(this._svgElementFromConfig(i))):this._loadSvgIconFromConfig(i).pipe((0,kr.U)(function(o){return u2(o)}))}},{key:"_getSvgFromIconSetConfigs",value:function(i,o){var a=this,s=this._extractIconWithNameFromAnySet(i,o);if(s)return(0,or.of)(s);var u=o.filter(function(p){return!p.svgText}).map(function(p){return a._loadSvgIconSetFromConfig(p).pipe((0,qf.K)(function(m){var b=a._sanitizer.sanitize(e.q3G.RESOURCE_URL,p.url),R="Loading icon set URL: ".concat(b," failed: ").concat(m.message);return a._errorHandler.handleError(new Error(R)),(0,or.of)(null)}))});return(0,kZ.D)(u).pipe((0,kr.U)(function(){var p=a._extractIconWithNameFromAnySet(i,o);if(!p)throw JV(i);return p}))}},{key:"_extractIconWithNameFromAnySet",value:function(i,o){for(var a=o.length-1;a>=0;a--){var s=o[a];if(s.svgText&&s.svgText.indexOf(i)>-1){var u=this._svgElementFromConfig(s),p=this._extractSvgIconFromSet(u,i,s.options);if(p)return p}}return null}},{key:"_loadSvgIconFromConfig",value:function(i){var o=this;return this._fetchIcon(i).pipe((0,Fa.b)(function(a){return i.svgText=a}),(0,kr.U)(function(){return o._svgElementFromConfig(i)}))}},{key:"_loadSvgIconSetFromConfig",value:function(i){return i.svgText?(0,or.of)(null):this._fetchIcon(i).pipe((0,Fa.b)(function(o){return i.svgText=o}))}},{key:"_extractSvgIconFromSet",value:function(i,o,a){var s=i.querySelector('[id="'.concat(o,'"]'));if(!s)return null;var u=s.cloneNode(!0);if(u.removeAttribute("id"),"svg"===u.nodeName.toLowerCase())return this._setSvgAttributes(u,a);if("symbol"===u.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(u),a);var p=this._svgElementFromString("<svg></svg>");return p.appendChild(u),this._setSvgAttributes(p,a)}},{key:"_svgElementFromString",value:function(i){var o=this._document.createElement("DIV");o.innerHTML=i;var a=o.querySelector("svg");if(!a)throw Error("<svg> tag not found");return a}},{key:"_toSvgElement",value:function(i){for(var o=this._svgElementFromString("<svg></svg>"),a=i.attributes,s=0;s<a.length;s++){var u=a[s],p=u.name;"id"!==p&&o.setAttribute(p,u.value)}for(var b=0;b<i.childNodes.length;b++)i.childNodes[b].nodeType===this._document.ELEMENT_NODE&&o.appendChild(i.childNodes[b].cloneNode(!0));return o}},{key:"_setSvgAttributes",value:function(i,o){return i.setAttribute("fit",""),i.setAttribute("height","100%"),i.setAttribute("width","100%"),i.setAttribute("preserveAspectRatio","xMidYMid meet"),i.setAttribute("focusable","false"),o&&o.viewBox&&i.setAttribute("viewBox",o.viewBox),i}},{key:"_fetchIcon",value:function(i){var a,o=this,s=i.url,u=i.options,p=null!==(a=null==u?void 0:u.withCredentials)&&void 0!==a&&a;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==s)throw Error('Cannot fetch icon from URL "'.concat(s,'".'));var m=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,s);if(!m)throw QV(s);var b=this._inProgressUrlFetches.get(m);if(b)return b;var R=this._httpClient.get(m,{responseType:"text",withCredentials:p}).pipe((0,zH.x)(function(){return o._inProgressUrlFetches.delete(m)}),(0,Xd.B)());return this._inProgressUrlFetches.set(m,R),R}},{key:"_addSvgIconConfig",value:function(i,o,a){return this._svgIconConfigs.set(XV(i,o),a),this}},{key:"_addSvgIconSetConfig",value:function(i,o){var a=this._iconSetConfigs.get(i);return a?a.push(o):this._iconSetConfigs.set(i,[o]),this}},{key:"_svgElementFromConfig",value:function(i){if(!i.svgElement){var o=this._svgElementFromString(i.svgText);this._setSvgAttributes(o,i.options),i.svgElement=o}return i.svgElement}},{key:"_getIconConfigFromResolvers",value:function(i,o){for(var a=0;a<this._resolvers.length;a++){var s=this._resolvers[a](o,i);if(s)return Uoe(s)?new $m(s.url,null,s.options):new $m(s,null)}}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(zc.eN,8),e.LFG(B.H7),e.LFG(At.K0,8),e.LFG(e.qLn))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(zc.eN,8),e.LFG(B.H7),e.LFG(At.K0,8),e.LFG(e.qLn))},token:n,providedIn:"root"}),n}();function u2(n){return n.cloneNode(!0)}function XV(n,r){return n+":"+r}function Uoe(n){return!(!n.url||!n.options)}var Y_,Hoe=(0,un.pj)(function(){return function n(r){(0,g.Z)(this,n),this._elementRef=r}}()),Voe=new e.OlP("mat-icon-location",{providedIn:"root",factory:function(){var n=(0,e.f3M)(At.K0),r=n?n.location:null;return{getPathname:function(){return r?r.pathname+r.search:""}}}}),$V=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],zoe=$V.map(function(r){return"[".concat(r,"]")}).join(", "),Woe=/^url\(['"]?#(.*?)['"]?\)$/,ur=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u,p){var m;return(0,g.Z)(this,i),(m=t.call(this,o))._iconRegistry=a,m._location=u,m._errorHandler=p,m._inline=!1,m._currentIconFetch=us.w.EMPTY,s||o.nativeElement.setAttribute("aria-hidden","true"),m}return(0,k.Z)(i,[{key:"inline",get:function(){return this._inline},set:function(a){this._inline=(0,On.Ig)(a)}},{key:"svgIcon",get:function(){return this._svgIcon},set:function(a){a!==this._svgIcon&&(a?this._updateSvgIcon(a):this._svgIcon&&this._clearSvgElement(),this._svgIcon=a)}},{key:"fontSet",get:function(){return this._fontSet},set:function(a){var s=this._cleanupFontValue(a);s!==this._fontSet&&(this._fontSet=s,this._updateFontIconClasses())}},{key:"fontIcon",get:function(){return this._fontIcon},set:function(a){var s=this._cleanupFontValue(a);s!==this._fontIcon&&(this._fontIcon=s,this._updateFontIconClasses())}},{key:"_splitIconName",value:function(a){if(!a)return["",""];var s=a.split(":");switch(s.length){case 1:return["",s[0]];case 2:return s;default:throw Error('Invalid icon name: "'.concat(a,'"'))}}},{key:"ngOnInit",value:function(){this._updateFontIconClasses()}},{key:"ngAfterViewChecked",value:function(){var a=this._elementsWithExternalReferences;if(a&&a.size){var s=this._location.getPathname();s!==this._previousPath&&(this._previousPath=s,this._prependPathToReferences(s))}}},{key:"ngOnDestroy",value:function(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}},{key:"_usingFontIcon",value:function(){return!this.svgIcon}},{key:"_setSvgElement",value:function(a){this._clearSvgElement();for(var s=a.querySelectorAll("style"),u=0;u<s.length;u++)s[u].textContent+=" ";var p=this._location.getPathname();this._previousPath=p,this._cacheChildrenWithExternalReferences(a),this._prependPathToReferences(p),this._elementRef.nativeElement.appendChild(a)}},{key:"_clearSvgElement",value:function(){var a=this._elementRef.nativeElement,s=a.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();s--;){var u=a.childNodes[s];(1!==u.nodeType||"svg"===u.nodeName.toLowerCase())&&a.removeChild(u)}}},{key:"_updateFontIconClasses",value:function(){if(this._usingFontIcon()){var a=this._elementRef.nativeElement,s=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();s!=this._previousFontSetClass&&(this._previousFontSetClass&&a.classList.remove(this._previousFontSetClass),s&&a.classList.add(s),this._previousFontSetClass=s),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&a.classList.remove(this._previousFontIconClass),this.fontIcon&&a.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}}},{key:"_cleanupFontValue",value:function(a){return"string"==typeof a?a.trim().split(" ")[0]:a}},{key:"_prependPathToReferences",value:function(a){var s=this._elementsWithExternalReferences;s&&s.forEach(function(u,p){u.forEach(function(m){p.setAttribute(m.name,"url('".concat(a,"#").concat(m.value,"')"))})})}},{key:"_cacheChildrenWithExternalReferences",value:function(a){for(var s=a.querySelectorAll(zoe),u=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,p=function(R){$V.forEach(function(F){var G=s[R],Y=G.getAttribute(F),ee=Y?Y.match(Woe):null;if(ee){var pe=u.get(G);pe||u.set(G,pe=[]),pe.push({name:F,value:ee[1]})}})},m=0;m<s.length;m++)p(m)}},{key:"_updateSvgIcon",value:function(a){var s=this;if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),a){var u=this._splitIconName(a),p=(0,C.Z)(u,2),m=p[0],b=p[1];m&&(this._svgNamespace=m),b&&(this._svgName=b),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(b,m).pipe((0,eo.q)(1)).subscribe(function(R){return s._setSvgElement(R)},function(R){var F="Error retrieving icon ".concat(m,":").concat(b,"! ").concat(R.message);s._errorHandler.handleError(new Error(F))})}}}]),i}(Hoe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(CS),e.$8M("aria-hidden"),e.Y36(Voe),e.Y36(e.qLn))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,i){2&t&&(e.uIk("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),e.ekj("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:Loe,decls:1,vars:0,template:function(t,i){1&t&&(e.F$t(),e.Hsn(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),n}(),EZ=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[un.BQ],un.BQ]}),n}(),eq=["mat-button",""],tq=["*"],nq=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-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",Yoe=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Joe=(0,un.pj)((0,un.Id)((0,un.Kr)(function(){return function n(r){(0,g.Z)(this,n),this._elementRef=r}}()))),An=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s){var u;(0,g.Z)(this,i),(u=t.call(this,o))._focusMonitor=a,u._animationMode=s,u.isRoundButton=u._hasHostAttributes("mat-fab","mat-mini-fab"),u.isIconButton=u._hasHostAttributes("mat-icon-button");var m,p=(0,v.Z)(Yoe);try{for(p.s();!(m=p.n()).done;){var b=m.value;u._hasHostAttributes(b)&&u._getHostElement().classList.add(b)}}catch(R){p.e(R)}finally{p.f()}return o.nativeElement.classList.add("mat-button-base"),u.isRoundButton&&(u.color="accent"),u}return(0,k.Z)(i,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(a,s){a?this._focusMonitor.focusVia(this._getHostElement(),a,s):this._getHostElement().focus(s)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var a=this,s=arguments.length,u=new Array(s),p=0;p<s;p++)u[p]=arguments[p];return u.some(function(m){return a._getHostElement().hasAttribute(m)})}}]),i}(Joe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(xi.tE),e.Y36(Cs.Qb,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,i){var o;1&t&&e.Gf(un.wG,5),2&t&&e.iGM(o=e.CRH())&&(i.ripple=o.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,i){2&t&&(e.uIk("disabled",i.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:eq,ngContentSelectors:tq,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(t,i){1&t&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1),e._UZ(3,"span",2)),2&t&&(e.xp6(2),e.ekj("mat-button-ripple-round",i.isRoundButton||i.isIconButton),e.Q6J("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[un.wG],styles:[nq],encapsulation:2,changeDetection:0}),n}(),Qoe=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s){return(0,g.Z)(this,i),t.call(this,a,o,s)}return(0,k.Z)(i,[{key:"_haltDisabledEvents",value:function(a){this.disabled&&(a.preventDefault(),a.stopImmediatePropagation())}}]),i}(An);return n.\u0275fac=function(t){return new(t||n)(e.Y36(xi.tE),e.Y36(e.SBq),e.Y36(Cs.Qb,8))},n.\u0275cmp=e.Xpm({type:n,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(t,i){1&t&&e.NdJ("click",function(a){return i._haltDisabledEvents(a)}),2&t&&(e.uIk("tabindex",i.disabled?-1:i.tabIndex||0)("disabled",i.disabled||null)("aria-disabled",i.disabled.toString()),e.ekj("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[e.qOj],attrs:eq,ngContentSelectors:tq,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(t,i){1&t&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1),e._UZ(3,"span",2)),2&t&&(e.xp6(2),e.ekj("mat-button-ripple-round",i.isRoundButton||i.isIconButton),e.Q6J("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[un.wG],styles:[nq],encapsulation:2,changeDetection:0}),n}(),c2=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[un.si,un.BQ],un.BQ]}),n}(),Koe=f(18756),rq=new Set,iq=function(){var n=function(){function r(t){(0,g.Z)(this,r),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):$oe}return(0,k.Z)(r,[{key:"matchMedia",value:function(i){return this._platform.WEBKIT&&function(n){if(!rq.has(n))try{Y_||((Y_=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(Y_)),Y_.sheet&&(Y_.sheet.insertRule("@media ".concat(n," {.fx-query-test{ }}"),0),rq.add(n))}catch(r){console.error(r)}}(i),this._matchMedia(i)}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(ei.t4))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(ei.t4))},token:n,providedIn:"root"}),n}();function $oe(n){return{matches:"all"===n||""===n,media:n,addListener:function(){},removeListener:function(){}}}var d2=function(){var n=function(){function r(t,i){(0,g.Z)(this,r),this._mediaMatcher=t,this._zone=i,this._queries=new Map,this._destroySubject=new Pn.xQ}return(0,k.Z)(r,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(i){var o=this;return oq((0,On.Eq)(i)).some(function(s){return o._registerQuery(s).mql.matches})}},{key:"observe",value:function(i){var o=this,s=oq((0,On.Eq)(i)).map(function(p){return o._registerQuery(p).observable}),u=(0,lm.aj)(s);return(u=(0,qH.z)(u.pipe((0,eo.q)(1)),u.pipe((0,Koe.T)(1),(0,Qk.b)(0)))).pipe((0,kr.U)(function(p){var m={matches:!1,breakpoints:{}};return p.forEach(function(b){var R=b.matches,F=b.query;m.matches=m.matches||R,m.breakpoints[F]=R}),m}))}},{key:"_registerQuery",value:function(i){var o=this;if(this._queries.has(i))return this._queries.get(i);var a=this._mediaMatcher.matchMedia(i),u={observable:new na.y(function(p){var m=function(R){return o._zone.run(function(){return p.next(R)})};return a.addListener(m),function(){a.removeListener(m)}}).pipe((0,ua.O)(a),(0,kr.U)(function(p){return{query:i,matches:p.matches}}),(0,Br.R)(this._destroySubject)),mql:a};return this._queries.set(i,u),u}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(iq),e.LFG(e.R0b))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(iq),e.LFG(e.R0b))},token:n,providedIn:"root"}),n}();function oq(n){return n.map(function(r){return r.split(",")}).reduce(function(r,t){return r.concat(t)}).map(function(r){return r.trim()})}var Wf_Medium="(min-width: 960px) and (max-width: 1279.98px)",Wf_Large="(min-width: 1280px) and (max-width: 1919.98px)",qi=f(80785),eae={tooltipState:(0,an.X$)("state",[(0,an.SB)("initial, void, hidden",(0,an.oB)({opacity:0,transform:"scale(0)"})),(0,an.SB)("visible",(0,an.oB)({transform:"scale(1)"})),(0,an.eR)("* => visible",(0,an.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,an.F4)([(0,an.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,an.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,an.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,an.eR)("* => hidden",(0,an.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,an.oB)({opacity:0})))])},aq="tooltip-panel",sq=(0,ei.i$)({passive:!0}),lq=new e.OlP("mat-tooltip-scroll-strategy"),iae={provide:lq,deps:[so.aV],useFactory:function(n){return function(){return n.scrollStrategies.reposition({scrollThrottle:20})}}},oae=new e.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),sae=function(){var n=function(){function r(t,i,o,a,s,u,p,m,b,R,F,G){var Y=this;(0,g.Z)(this,r),this._overlay=t,this._elementRef=i,this._scrollDispatcher=o,this._viewContainerRef=a,this._ngZone=s,this._platform=u,this._ariaDescriber=p,this._focusMonitor=m,this._dir=R,this._defaultOptions=F,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Pn.xQ,this._handleKeydown=function(ee){Y._isTooltipVisible()&&ee.keyCode===Yr.hY&&!(0,Yr.Vb)(ee)&&(ee.preventDefault(),ee.stopPropagation(),Y._ngZone.run(function(){return Y.hide(0)}))},this._scrollStrategy=b,this._document=G,F&&(F.position&&(this.position=F.position),F.touchGestures&&(this.touchGestures=F.touchGestures)),R.change.pipe((0,Br.R)(this._destroyed)).subscribe(function(){Y._overlayRef&&Y._updatePosition(Y._overlayRef)}),s.runOutsideAngular(function(){i.nativeElement.addEventListener("keydown",Y._handleKeydown)})}return(0,k.Z)(r,[{key:"position",get:function(){return this._position},set:function(i){var o;i!==this._position&&(this._position=i,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(o=this._tooltipInstance)||void 0===o||o.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(i){this._disabled=(0,On.Ig)(i),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(i){var o=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=i?String(i).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){o._ariaDescriber.describe(o._elementRef.nativeElement,o.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(i){this._tooltipClass=i,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var i=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,Br.R)(this._destroyed)).subscribe(function(o){o?"keyboard"===o&&i._ngZone.run(function(){return i.show()}):i._ngZone.run(function(){return i.hide(0)})})}},{key:"ngOnDestroy",value:function(){var i=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),i.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(o){var a=(0,C.Z)(o,2);i.removeEventListener(a[0],a[1],sq)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(i,this.message,"tooltip"),this._focusMonitor.stopMonitoring(i)}},{key:"show",value:function(){var i=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var a=this._createOverlay();this._detach(),this._portal=this._portal||new qi.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=a.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,Br.R)(this._destroyed)).subscribe(function(){return i._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(o)}}},{key:"hide",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(i)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var i=this;if(this._overlayRef)return this._overlayRef;var o=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),a=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(o);return a.positionChanges.pipe((0,Br.R)(this._destroyed)).subscribe(function(s){i._updateCurrentPositionClass(s.connectionPair),i._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&i._tooltipInstance.isVisible()&&i._ngZone.run(function(){return i.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:a,panelClass:"".concat(this._cssClassPrefix,"-").concat(aq),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,Br.R)(this._destroyed)).subscribe(function(){return i._detach()}),this._overlayRef.outsidePointerEvents().pipe((0,Br.R)(this._destroyed)).subscribe(function(){var s;return null===(s=i._tooltipInstance)||void 0===s?void 0:s._handleBodyInteraction()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(i){var o=i.getConfig().positionStrategy,a=this._getOrigin(),s=this._getOverlayPosition();o.withPositions([this._addOffset(Object.assign(Object.assign({},a.main),s.main)),this._addOffset(Object.assign(Object.assign({},a.fallback),s.fallback))])}},{key:"_addOffset",value:function(i){return i}},{key:"_getOrigin",value:function(){var a,i=!this._dir||"ltr"==this._dir.value,o=this.position;"above"==o||"below"==o?a={originX:"center",originY:"above"==o?"top":"bottom"}:"before"==o||"left"==o&&i||"right"==o&&!i?a={originX:"start",originY:"center"}:("after"==o||"right"==o&&i||"left"==o&&!i)&&(a={originX:"end",originY:"center"});var s=this._invertPosition(a.originX,a.originY);return{main:a,fallback:{originX:s.x,originY:s.y}}}},{key:"_getOverlayPosition",value:function(){var a,i=!this._dir||"ltr"==this._dir.value,o=this.position;"above"==o?a={overlayX:"center",overlayY:"bottom"}:"below"==o?a={overlayX:"center",overlayY:"top"}:"before"==o||"left"==o&&i||"right"==o&&!i?a={overlayX:"end",overlayY:"center"}:("after"==o||"right"==o&&i||"left"==o&&!i)&&(a={overlayX:"start",overlayY:"center"});var s=this._invertPosition(a.overlayX,a.overlayY);return{main:a,fallback:{overlayX:s.x,overlayY:s.y}}}},{key:"_updateTooltipMessage",value:function(){var i=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,eo.q)(1),(0,Br.R)(this._destroyed)).subscribe(function(){i._tooltipInstance&&i._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(i){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=i,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(i,o){return"above"===this.position||"below"===this.position?"top"===o?o="bottom":"bottom"===o&&(o="top"):"end"===i?i="start":"start"===i&&(i="end"),{x:i,y:o}}},{key:"_updateCurrentPositionClass",value:function(i){var u,o=i.overlayY,a=i.originX;if((u="center"===o?this._dir&&"rtl"===this._dir.value?"end"===a?"left":"right":"start"===a?"left":"right":"bottom"===o&&"top"===i.originY?"above":"below")!==this._currentPosition){var p=this._overlayRef;if(p){var m="".concat(this._cssClassPrefix,"-").concat(aq,"-");p.removePanelClass(m+this._currentPosition),p.addPanelClass(m+u)}this._currentPosition=u}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var i=this;this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){i._setupPointerExitEventsIfNeeded(),i.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){i._setupPointerExitEventsIfNeeded(),clearTimeout(i._touchstartTimeout),i._touchstartTimeout=setTimeout(function(){return i.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var o,i=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var a=[];if(this._platformSupportsMouseEvents())a.push(["mouseleave",function(){return i.hide()}],["wheel",function(u){return i._wheelListener(u)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var s=function(){clearTimeout(i._touchstartTimeout),i.hide(i._defaultOptions.touchendHideDelay)};a.push(["touchend",s],["touchcancel",s])}this._addListeners(a),(o=this._passiveListeners).push.apply(o,a)}}},{key:"_addListeners",value:function(i){var o=this;i.forEach(function(a){var s=(0,C.Z)(a,2);o._elementRef.nativeElement.addEventListener(s[0],s[1],sq)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(i){if(this._isTooltipVisible()){var o=this._document.elementFromPoint(i.clientX,i.clientY),a=this._elementRef.nativeElement;o!==a&&!a.contains(o)&&this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var i=this.touchGestures;if("off"!==i){var o=this._elementRef.nativeElement,a=o.style;("on"===i||"INPUT"!==o.nodeName&&"TEXTAREA"!==o.nodeName)&&(a.userSelect=a.msUserSelect=a.webkitUserSelect=a.MozUserSelect="none"),("on"===i||!o.draggable)&&(a.webkitUserDrag="none"),a.touchAction="none",a.webkitTapHighlightColor="transparent"}}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(so.aV),e.Y36(e.SBq),e.Y36(Ta.mF),e.Y36(e.s_b),e.Y36(e.R0b),e.Y36(ei.t4),e.Y36(xi.$s),e.Y36(xi.tE),e.Y36(void 0),e.Y36(Ba.Is),e.Y36(void 0),e.Y36(At.K0))},n.\u0275dir=e.lG2({type:n,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n}(),Xa=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u,p,m,b,R,F,G,Y,ee){var pe;return(0,g.Z)(this,i),(pe=t.call(this,o,a,s,u,p,m,b,R,F,G,Y,ee))._tooltipComponent=uae,pe}return i}(sae);return n.\u0275fac=function(t){return new(t||n)(e.Y36(so.aV),e.Y36(e.SBq),e.Y36(Ta.mF),e.Y36(e.s_b),e.Y36(e.R0b),e.Y36(ei.t4),e.Y36(xi.$s),e.Y36(xi.tE),e.Y36(lq),e.Y36(Ba.Is,8),e.Y36(oae,8),e.Y36(At.K0))},n.\u0275dir=e.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[e.qOj]}),n}(),lae=function(){var n=function(){function r(t){(0,g.Z)(this,r),this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Pn.xQ}return(0,k.Z)(r,[{key:"show",value:function(i){var o=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){o._visibility="visible",o._showTimeoutId=void 0,o._onShow(),o._markForCheck()},i)}},{key:"hide",value:function(i){var o=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){o._visibility="hidden",o._hideTimeoutId=void 0,o._markForCheck()},i)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(i){var o=i.toState;"hidden"===o&&!this.isVisible()&&this._onHide.next(),("visible"===o||"hidden"===o)&&(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_onShow",value:function(){}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.sBO))},n.\u0275dir=e.lG2({type:n}),n}(),uae=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a){var s;return(0,g.Z)(this,i),(s=t.call(this,o))._breakpointObserver=a,s._isHandset=s._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),s}return i}(lae);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.sBO),e.Y36(d2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,i){2&t&&e.Udp("zoom","visible"===i._visibility?1:null)},features:[e.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,i){var o;1&t&&(e.TgZ(0,"div",0),e.NdJ("@state.start",function(){return i._animationStart()})("@state.done",function(s){return i._animationDone(s)}),e.ALo(1,"async"),e._uU(2),e.qZA()),2&t&&(e.ekj("mat-tooltip-handset",null==(o=e.lcZ(1,5,i._isHandset))?null:o.matches),e.Q6J("ngClass",i.tooltipClass)("@state",i._visibility),e.xp6(2),e.Oqu(i.message))},directives:[At.mk],pipes:[At.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[eae.tooltipState]},changeDetection:0}),n}(),uq=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[iae],imports:[[xi.rt,At.ez,so.U8,un.BQ],un.BQ,Ta.ZD]}),n}();function cae(n,r){1&n&&(e.TgZ(0,"div",4),e._UZ(1,"mat-spinner",5),e.qZA())}function dae(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",6),e.TgZ(1,"div",7),e.TgZ(2,"mat-icon"),e._uU(3,"error_outline"),e.qZA(),e.qZA(),e.TgZ(4,"div"),e._uU(5),e.qZA(),e.TgZ(6,"div"),e.TgZ(7,"button",8),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).refresh()}),e.TgZ(8,"mat-icon"),e._uU(9,"refresh"),e.qZA(),e.qZA(),e.TgZ(10,"button",9),e.TgZ(11,"mat-icon"),e._uU(12,"home"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(5),e.hij("Error occurred: ",i.error.message,"")}}function pae(n,r){if(1&n&&(e.TgZ(0,"div",1),e.YNc(1,cae,2,0,"div",2),e.YNc(2,dae,13,1,"div",3),e.qZA()),2&n){var t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.visible&&!t.error),e.xp6(1),e.Q6J("ngIf",t.error)}}var MZ=function(){function n(r,t){this.progressService=r,this.router=t,this.visible=!1}return n.prototype.ngOnInit=function(){var r=this;this.progressService.state.subscribe(function(t){r.visible=t.visible,t.error&&!r.error&&(r.error=t.error),t.clear&&(r.error=null)}),this.routerSubscription=this.router.events.subscribe(function(){r.progressService.clear()})},n.prototype.refresh=function(){this.router.navigateByUrl(this.router.url)},n.prototype.ngOnDestroy=function(){this.routerSubscription.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(zf),e.Y36(Er))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-progress"]],decls:1,vars:1,consts:[["class","overlay",4,"ngIf"],[1,"overlay"],["class","loading-spinner",4,"ngIf"],["class","error-state",4,"ngIf"],[1,"loading-spinner"],["color","primary"],[1,"error-state"],[1,"error-icon"],["mat-button","","matTooltip","Refresh page","matTooltipClass","custom-tooltip",3,"click"],["mat-button","","routerLink","/","matTooltip","Go to home","matTooltipClass","custom-tooltip"]],template:function(t,i){1&t&&e.YNc(0,pae,3,2,"div",0),2&t&&e.Q6J("ngIf",i.visible||i.error)},directives:[At.O5,YV,ur,An,Xa,fa],styles:[".overlay[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.502);z-index:2000}.loading-spinner[_ngcontent-%COMP%], .error-state[_ngcontent-%COMP%]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}.error-state[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{text-align:center}.error-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px}"]}),n}(),fae=function(){function n(r,t,i,o){this.router=r,this.serverService=t,this.progressService=i,this.document=o}return n.prototype.ngOnInit=function(){var r=this;this.progressService.activate(),setTimeout(function(){var t;t=parseInt(r.document.location.port,10)?parseInt(r.document.location.port,10):"https:"==r.document.location.protocol?443:80,r.serverService.getLocalServer(r.document.location.hostname,t).then(function(i){r.progressService.deactivate(),r.router.navigate(["/server",i.id,"projects"])})},100)},n.\u0275fac=function(t){return new(t||n)(e.Y36(Er),e.Y36(Hr),e.Y36(zf),e.Y36(At.K0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-bundled-server-finder"]],decls:1,vars:0,template:function(t,i){1&t&&e._UZ(0,"app-progress")},directives:[MZ],styles:[""]}),n}(),Qn=f(61855),p2=function(){function n(){this.dataChange=new to.X([])}return Object.defineProperty(n.prototype,"data",{get:function(){return this.dataChange.value},enumerable:!1,configurable:!0}),n.prototype.addServer=function(r){var t=this.data.slice();t.push(r),this.dataChange.next(t)},n.prototype.addServers=function(r){this.dataChange.next(r)},n.prototype.remove=function(r){var t=this.data.indexOf(r);t>=0&&(this.data.splice(t,1),this.dataChange.next(this.data.slice()))},n.prototype.find=function(r){return this.data.find(function(t){return t.name===r})},n.prototype.findIndex=function(r){return this.data.findIndex(function(t){return t.name===r})},n.prototype.update=function(r){var t=this.findIndex(r.name);t>=0&&(this.data[t]=r,this.dataChange.next(this.data.slice()))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}();function hae(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",1),e.TgZ(1,"button",2),e.NdJ("click",function(){return e.CHM(t),e.oxw().action()}),e._uU(2),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(2),e.Oqu(i.data.action)}}function mae(n,r){}var cq=new e.OlP("MatSnackBarData"),f2=function n(){(0,g.Z)(this,n),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},vae=Math.pow(2,31)-1,AZ=function(){function n(r,t){var i=this;(0,g.Z)(this,n),this._overlayRef=t,this._afterDismissed=new Pn.xQ,this._afterOpened=new Pn.xQ,this._onAction=new Pn.xQ,this._dismissedByAction=!1,this.containerInstance=r,this.onAction().subscribe(function(){return i.dismiss()}),r._onExit.subscribe(function(){return i._finishDismiss()})}return(0,k.Z)(n,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete()),clearTimeout(this._durationTimeoutId)}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(t){var i=this;this._durationTimeoutId=setTimeout(function(){return i.dismiss()},Math.min(t,vae))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction}}]),n}(),gae=function(){var n=function(){function r(t,i){(0,g.Z)(this,r),this.snackBarRef=t,this.data=i}return(0,k.Z)(r,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(AZ),e.Y36(cq))},n.\u0275cmp=e.Xpm({type:n,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"span"),e._uU(1),e.qZA(),e.YNc(2,hae,3,1,"div",0)),2&t&&(e.xp6(1),e.Oqu(i.data.message),e.xp6(1),e.Q6J("ngIf",i.hasAction))},directives:[At.O5,An],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}\n"],encapsulation:2,changeDetection:0}),n}(),_ae={snackBarState:(0,an.X$)("state",[(0,an.SB)("void, hidden",(0,an.oB)({transform:"scale(0.8)",opacity:0})),(0,an.SB)("visible",(0,an.oB)({transform:"scale(1)",opacity:1})),(0,an.eR)("* => visible",(0,an.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,an.eR)("* => void, * => hidden",(0,an.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,an.oB)({opacity:0})))])},yae=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u,p){var m;return(0,g.Z)(this,i),(m=t.call(this))._ngZone=o,m._elementRef=a,m._changeDetectorRef=s,m._platform=u,m.snackBarConfig=p,m._announceDelay=150,m._destroyed=!1,m._onAnnounce=new Pn.xQ,m._onExit=new Pn.xQ,m._onEnter=new Pn.xQ,m._animationState="void",m.attachDomPortal=function(b){return m._assertNotAttached(),m._applySnackBarClasses(),m._portalOutlet.attachDomPortal(b)},m._live="assertive"!==p.politeness||p.announcementMessage?"off"===p.politeness?"off":"polite":"assertive",m._platform.FIREFOX&&("polite"===m._live&&(m._role="status"),"assertive"===m._live&&(m._role="alert")),m}return(0,k.Z)(i,[{key:"attachComponentPortal",value:function(a){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(a)}},{key:"attachTemplatePortal",value:function(a){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(a)}},{key:"onAnimationEnd",value:function(a){var u=a.toState;if(("void"===u&&"void"!==a.fromState||"hidden"===u)&&this._completeExit(),"visible"===u){var p=this._onEnter;this._ngZone.run(function(){p.next(),p.complete()})}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var a=this;this._ngZone.onMicrotaskEmpty.pipe((0,eo.q)(1)).subscribe(function(){a._onExit.next(),a._onExit.complete()})}},{key:"_applySnackBarClasses",value:function(){var a=this._elementRef.nativeElement,s=this.snackBarConfig.panelClass;s&&(Array.isArray(s)?s.forEach(function(u){return a.classList.add(u)}):a.classList.add(s)),"center"===this.snackBarConfig.horizontalPosition&&a.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&a.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var a=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){a._announceTimeoutId=setTimeout(function(){var s=a._elementRef.nativeElement.querySelector("[aria-hidden]"),u=a._elementRef.nativeElement.querySelector("[aria-live]");if(s&&u){var p=null;a._platform.isBrowser&&document.activeElement instanceof HTMLElement&&s.contains(document.activeElement)&&(p=document.activeElement),s.removeAttribute("aria-hidden"),u.appendChild(s),null==p||p.focus(),a._onAnnounce.next(),a._onAnnounce.complete()}},a._announceDelay)})}}]),i}(qi.en);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(ei.t4),e.Y36(f2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["snack-bar-container"]],viewQuery:function(t,i){var o;1&t&&e.Gf(qi.Pl,7),2&t&&e.iGM(o=e.CRH())&&(i._portalOutlet=o.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,i){1&t&&e.WFA("@state.done",function(a){return i.onAnimationEnd(a)}),2&t&&e.d8E("@state",i._animationState)},features:[e.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.YNc(1,mae,0,0,"ng-template",1),e.qZA(),e._UZ(2,"div")),2&t&&(e.xp6(2),e.uIk("aria-live",i._live)("role",i._role))},directives:[qi.Pl],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:[_ae.snackBarState]}}),n}(),dq=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[so.U8,qi.eL,At.ez,c2,un.BQ],un.BQ]}),n}(),pq=new e.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new f2}}),Cae=function(){var n=function(){function r(t,i,o,a,s,u){(0,g.Z)(this,r),this._overlay=t,this._live=i,this._injector=o,this._breakpointObserver=a,this._parentSnackBar=s,this._defaultConfig=u,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=gae,this.snackBarContainerComponent=yae,this.handsetCssClass="mat-snack-bar-handset"}return(0,k.Z)(r,[{key:"_openedSnackBarRef",get:function(){var i=this._parentSnackBar;return i?i._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(i){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=i:this._snackBarRefAtThisLevel=i}},{key:"openFromComponent",value:function(i,o){return this._attach(i,o)}},{key:"openFromTemplate",value:function(i,o){return this._attach(i,o)}},{key:"open",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,s=Object.assign(Object.assign({},this._defaultConfig),a);return s.data={message:i,action:o},s.announcementMessage===i&&(s.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,s)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(i,o){var s=e.zs3.create({parent:o&&o.viewContainerRef&&o.viewContainerRef.injector||this._injector,providers:[{provide:f2,useValue:o}]}),u=new qi.C5(this.snackBarContainerComponent,o.viewContainerRef,s),p=i.attach(u);return p.instance.snackBarConfig=o,p.instance}},{key:"_attach",value:function(i,o){var a=this,s=Object.assign(Object.assign(Object.assign({},new f2),this._defaultConfig),o),u=this._createOverlay(s),p=this._attachSnackBarContainer(u,s),m=new AZ(p,u);if(i instanceof e.Rgc){var b=new qi.UE(i,null,{$implicit:s.data,snackBarRef:m});m.instance=p.attachTemplatePortal(b)}else{var R=this._createInjector(s,m),F=new qi.C5(i,void 0,R),G=p.attachComponentPortal(F);m.instance=G.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe((0,Br.R)(u.detachments())).subscribe(function(Y){var ee=u.overlayElement.classList;Y.matches?ee.add(a.handsetCssClass):ee.remove(a.handsetCssClass)}),s.announcementMessage&&p._onAnnounce.subscribe(function(){a._live.announce(s.announcementMessage,s.politeness)}),this._animateSnackBar(m,s),this._openedSnackBarRef=m,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(i,o){var a=this;i.afterDismissed().subscribe(function(){a._openedSnackBarRef==i&&(a._openedSnackBarRef=null),o.announcementMessage&&a._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){i.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):i.containerInstance.enter(),o.duration&&o.duration>0&&i.afterOpened().subscribe(function(){return i._dismissAfter(o.duration)})}},{key:"_createOverlay",value:function(i){var o=new so.X_;o.direction=i.direction;var a=this._overlay.position().global(),s="rtl"===i.direction,u="left"===i.horizontalPosition||"start"===i.horizontalPosition&&!s||"end"===i.horizontalPosition&&s,p=!u&&"center"!==i.horizontalPosition;return u?a.left("0"):p?a.right("0"):a.centerHorizontally(),"top"===i.verticalPosition?a.top("0"):a.bottom("0"),o.positionStrategy=a,this._overlay.create(o)}},{key:"_createInjector",value:function(i,o){return e.zs3.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:AZ,useValue:o},{provide:cq,useValue:i.data}]})}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(so.aV),e.LFG(xi.Kd),e.LFG(e.zs3),e.LFG(d2),e.LFG(n,12),e.LFG(pq))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(so.aV),e.LFG(xi.Kd),e.LFG(e.gxx),e.LFG(d2),e.LFG(n,12),e.LFG(pq))},token:n,providedIn:dq}),n}(),er=function(){function n(r,t){this.snackbar=r,this.zone=t,this.snackBarConfigForSuccess={duration:4e3,panelClass:["snackabar-success"],MatSnackBarHorizontalPosition:"center",MatSnackBarVerticalPosition:"bottom"},this.snackBarConfigForWarning={duration:4e3,panelClass:["snackabar-warning"],MatSnackBarHorizontalPosition:"center",MatSnackBarVerticalPosition:"bottom"},this.snackBarConfigForError={duration:1e4,panelClass:["snackabar-error"],MatSnackBarHorizontalPosition:"center",MatSnackBarVerticalPosition:"bottom"}}return n.prototype.error=function(r){var t=this;this.zone.run(function(){t.snackbar.open(r,"Close",t.snackBarConfigForError)})},n.prototype.warning=function(r){var t=this;this.zone.run(function(){t.snackbar.open(r,"Close",t.snackBarConfigForWarning)})},n.prototype.success=function(r){var t=this;this.zone.run(function(){t.snackbar.open(r,"Close",t.snackBarConfigForSuccess)})},n.\u0275fac=function(t){return new(t||n)(e.LFG(Cae),e.LFG(e.R0b))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Sae=["*",[["mat-card-footer"]]],Tae=["*","mat-card-footer"],DZ=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),n}(),fq=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),n}(),hq=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),n}(),Mae=function(){var n=function r(){(0,g.Z)(this,r),this.align="start"};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,i){2&t&&e.ekj("mat-card-actions-align-end","end"===i.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),n}(),_i=function(){var n=function r(t){(0,g.Z)(this,r),this._animationMode=t};return n.\u0275fac=function(t){return new(t||n)(e.Y36(Cs.Qb,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,i){2&t&&e.ekj("_mat-animation-noopable","NoopAnimations"===i._animationMode)},exportAs:["matCard"],ngContentSelectors:Tae,decls:2,vars:0,template:function(t,i){1&t&&(e.F$t(Sae),e.Hsn(0),e.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),n}(),Aae=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[un.BQ],un.BQ]}),n}(),Hn=f(36410),mq=(f(54562),(0,ei.i$)({passive:!0})),vq=function(){var n=function(){function r(t,i){(0,g.Z)(this,r),this._platform=t,this._ngZone=i,this._monitoredElements=new Map}return(0,k.Z)(r,[{key:"monitor",value:function(i){var o=this;if(!this._platform.isBrowser)return Gm.E;var a=(0,On.fI)(i),s=this._monitoredElements.get(a);if(s)return s.subject;var u=new Pn.xQ,p="cdk-text-field-autofilled",m=function(R){"cdk-text-field-autofill-start"!==R.animationName||a.classList.contains(p)?"cdk-text-field-autofill-end"===R.animationName&&a.classList.contains(p)&&(a.classList.remove(p),o._ngZone.run(function(){return u.next({target:R.target,isAutofilled:!1})})):(a.classList.add(p),o._ngZone.run(function(){return u.next({target:R.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){a.addEventListener("animationstart",m,mq),a.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(a,{subject:u,unlisten:function(){a.removeEventListener("animationstart",m,mq)}}),u}},{key:"stopMonitoring",value:function(i){var o=(0,On.fI)(i),a=this._monitoredElements.get(o);a&&(a.unlisten(),a.subject.complete(),o.classList.remove("cdk-text-field-autofill-monitored"),o.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(o))}},{key:"ngOnDestroy",value:function(){var i=this;this._monitoredElements.forEach(function(o,a){return i.stopMonitoring(a)})}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(ei.t4),e.LFG(e.R0b))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(ei.t4),e.LFG(e.R0b))},token:n,providedIn:"root"}),n}(),gq=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[ei.ud]]}),n}(),Pae=new e.OlP("MAT_INPUT_VALUE_ACCESSOR"),Iae=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Rae=0,Nae=(0,un.FD)(function(){return function n(r,t,i,o){(0,g.Z)(this,n),this._defaultErrorStateMatcher=r,this._parentForm=t,this._parentFormGroup=i,this.ngControl=o}}()),dr=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u,p,m,b,R,F,G){var Y;(0,g.Z)(this,i),(Y=t.call(this,m,u,p,s))._elementRef=o,Y._platform=a,Y._autofillMonitor=R,Y._formField=G,Y._uid="mat-input-".concat(Rae++),Y.focused=!1,Y.stateChanges=new Pn.xQ,Y.controlType="mat-input",Y.autofilled=!1,Y._disabled=!1,Y._required=!1,Y._type="text",Y._readonly=!1,Y._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(Ee){return(0,ei.qK)().has(Ee)});var ee=Y._elementRef.nativeElement,pe=ee.nodeName.toLowerCase();return Y._inputValueAccessor=b||ee,Y._previousNativeValue=Y.value,Y.id=Y.id,a.IOS&&F.runOutsideAngular(function(){o.nativeElement.addEventListener("keyup",function(Ee){var lt=Ee.target;!lt.value&&0===lt.selectionStart&&0===lt.selectionEnd&&(lt.setSelectionRange(1,1),lt.setSelectionRange(0,0))})}),Y._isServer=!Y._platform.isBrowser,Y._isNativeSelect="select"===pe,Y._isTextarea="textarea"===pe,Y._isInFormField=!!G,Y._isNativeSelect&&(Y.controlType=ee.multiple?"mat-native-select-multiple":"mat-native-select"),Y}return(0,k.Z)(i,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(a){this._disabled=(0,On.Ig)(a),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(a){this._id=a||this._uid}},{key:"required",get:function(){return this._required},set:function(a){this._required=(0,On.Ig)(a)}},{key:"type",get:function(){return this._type},set:function(a){this._type=a||"text",this._validateType(),!this._isTextarea&&(0,ei.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(a){a!==this.value&&(this._inputValueAccessor.value=a,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(a){this._readonly=(0,On.Ig)(a)}},{key:"ngAfterViewInit",value:function(){var a=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(s){a.autofilled=s.isAutofilled,a.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(a){this._elementRef.nativeElement.focus(a)}},{key:"_focusChanged",value:function(a){a!==this.focused&&(this.focused=a,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var a,s,u=(null===(s=null===(a=this._formField)||void 0===a?void 0:a._hideControlPlaceholder)||void 0===s?void 0:s.call(a))?null:this.placeholder;if(u!==this._previousPlaceholder){var p=this._elementRef.nativeElement;this._previousPlaceholder=u,u?p.setAttribute("placeholder",u):p.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var a=this._elementRef.nativeElement.value;this._previousNativeValue!==a&&(this._previousNativeValue=a,this.stateChanges.next())}},{key:"_validateType",value:function(){Iae.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var a=this._elementRef.nativeElement.validity;return a&&a.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var a=this._elementRef.nativeElement,s=a.options[0];return this.focused||a.multiple||!this.empty||!!(a.selectedIndex>-1&&s&&s.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(a){a.length?this._elementRef.nativeElement.setAttribute("aria-describedby",a.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),i}(Nae);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(ei.t4),e.Y36(ne.a5,10),e.Y36(ne.F,8),e.Y36(ne.sg,8),e.Y36(un.rD),e.Y36(Pae,10),e.Y36(vq),e.Y36(e.R0b),e.Y36(Hn.G_,8))},n.\u0275dir=e.lG2({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,i){1&t&&e.NdJ("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&t&&(e.Ikx("disabled",i.disabled)("required",i.required),e.uIk("id",i.id)("data-placeholder",i.placeholder)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),e.ekj("mat-input-server",i._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[e._Bn([{provide:Hn.Eo,useExisting:n}]),e.qOj,e.TTD]}),n}(),Zae=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[un.rD],imports:[[gq,Hn.lN,un.BQ],gq,Hn.lN]}),n}(),fi=f(73044);function Lae(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"You must enter a value"),e.qZA())}function Fae(n,r){if(1&n&&(e.TgZ(0,"mat-option",14),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.key),e.xp6(1),e.hij(" ",t.name," ")}}function Bae(n,r){if(1&n&&(e.TgZ(0,"mat-option",14),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.key),e.xp6(1),e.hij(" ",t.name," ")}}function Uae(n,r){if(1&n&&(e.TgZ(0,"mat-option",14),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.key),e.xp6(1),e.hij(" ",t.name," ")}}function Hae(n,r){if(1&n&&(e.TgZ(0,"mat-form-field"),e.TgZ(1,"mat-select",15),e.YNc(2,Uae,2,2,"mat-option",10),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngForOf",t.authorizations)}}function Vae(n,r){1&n&&(e.TgZ(0,"mat-form-field"),e._UZ(1,"input",16),e.qZA())}function qae(n,r){1&n&&(e.TgZ(0,"mat-form-field"),e._UZ(1,"input",17),e.qZA())}var jae=function(){function n(r,t,i,o,a){this.serverService=r,this.serverDatabase=t,this.route=i,this.router=o,this.toasterService=a,this.serverOptionsVisibility=!1,this.authorizations=[{key:"none",name:"No authorization"},{key:"basic",name:"Basic authorization"}],this.protocols=[{key:"http:",name:"HTTP"},{key:"https:",name:"HTTPS"}],this.locations=[{key:"local",name:"Local"},{key:"remote",name:"Remote"}],this.serverForm=new ne.cw({name:new ne.NI("",[ne.kI.required]),location:new ne.NI(""),protocol:new ne.NI("http:"),authorization:new ne.NI("none"),login:new ne.NI(""),password:new ne.NI("")})}return n.prototype.ngOnInit=function(){return(0,Qn.mG)(this,void 0,void 0,function(){var r=this;return(0,Qn.Jh)(this,function(t){return this.serverService.isServiceInitialized&&this.getServers(),this.serverService.serviceInitialized.subscribe(function(i){return(0,Qn.mG)(r,void 0,void 0,function(){return(0,Qn.Jh)(this,function(o){return i&&this.getServers(),[2]})})}),[2]})})},n.prototype.getServers=function(){return(0,Qn.mG)(this,void 0,void 0,function(){var r,t,i=this;return(0,Qn.Jh)(this,function(o){switch(o.label){case 0:return this.serverIp=this.route.snapshot.paramMap.get("server_ip"),this.serverPort=+this.route.snapshot.paramMap.get("server_port"),this.projectId=this.route.snapshot.paramMap.get("project_id"),[4,this.serverService.findAll()];case 1:return r=o.sent(),(t=r.filter(function(a){return a.host===i.serverIp&&a.port===i.serverPort})[0])?this.router.navigate(["/server",t.id,"project",this.projectId]):this.serverOptionsVisibility=!0,[2]}})})},n.prototype.createServer=function(){var r=this;if(this.serverForm.get("name").hasError||this.serverForm.get("location").hasError||this.serverForm.get("protocol").hasError)if("basic"!==this.serverForm.get("authorization").value||this.serverForm.get("login").value||this.serverForm.get("password").value){var t=new l2;t.host=this.serverIp,t.port=this.serverPort,t.name=this.serverForm.get("name").value,t.location=this.serverForm.get("location").value,t.protocol=this.serverForm.get("protocol").value,t.authorization=this.serverForm.get("authorization").value,t.login=this.serverForm.get("login").value,t.password=this.serverForm.get("password").value,this.serverService.create(t).then(function(i){r.router.navigate(["/server",i.id,"project",r.projectId])})}else this.toasterService.error("Please use correct values");else this.toasterService.error("Please use correct values")},n.\u0275fac=function(t){return new(t||n)(e.Y36(Hr),e.Y36(p2),e.Y36(Ir),e.Y36(Er),e.Y36(er))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-direct-link"]],decls:23,vars:8,consts:[[1,"content",3,"hidden"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],["matInput","","tabindex","1","formControlName","name","placeholder","Name"],[4,"ngIf"],["placeholder","Location","formControlName","location"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Protocol","formControlName","protocol"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["placeholder","Authorization","formControlName","authorization"],["matInput","","tabindex","1","formControlName","login","placeholder","Login"],["matInput","","type","password","tabindex","1","formControlName","password","placeholder","Password"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Add new server"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"mat-card",5),e.TgZ(7,"form",6),e.TgZ(8,"mat-form-field"),e._UZ(9,"input",7),e.YNc(10,Lae,2,0,"mat-error",8),e.qZA(),e.TgZ(11,"mat-form-field"),e.TgZ(12,"mat-select",9),e.YNc(13,Fae,2,2,"mat-option",10),e.qZA(),e.qZA(),e.TgZ(14,"mat-form-field"),e.TgZ(15,"mat-select",11),e.YNc(16,Bae,2,2,"mat-option",10),e.qZA(),e.qZA(),e.YNc(17,Hae,3,1,"mat-form-field",8),e.YNc(18,Vae,2,0,"mat-form-field",8),e.YNc(19,qae,2,0,"mat-form-field",8),e.qZA(),e.qZA(),e.TgZ(20,"div",12),e.TgZ(21,"button",13),e.NdJ("click",function(){return i.createServer()}),e._uU(22,"Add server"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.Q6J("hidden",!i.serverOptionsVisibility),e.xp6(7),e.Q6J("formGroup",i.serverForm),e.xp6(3),e.Q6J("ngIf",i.serverForm.get("name").hasError("required")),e.xp6(3),e.Q6J("ngForOf",i.locations),e.xp6(3),e.Q6J("ngForOf",i.protocols),e.xp6(1),e.Q6J("ngIf","remote"===i.serverForm.get("location").value),e.xp6(1),e.Q6J("ngIf","basic"===i.serverForm.get("authorization").value),e.xp6(1),e.Q6J("ngIf","basic"===i.serverForm.get("authorization").value))},directives:[_i,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,At.O5,fi.gD,At.sg,An,Hn.TO,un.ey],styles:["mat-form-field{width:100%}\n"],encapsulation:2}),n}(),zae=0,OZ=new e.OlP("CdkAccordion"),Wae=function(){var n=function(){function r(){(0,g.Z)(this,r),this._stateChanges=new Pn.xQ,this._openCloseAllActions=new Pn.xQ,this.id="cdk-accordion-".concat(zae++),this._multi=!1}return(0,k.Z)(r,[{key:"multi",get:function(){return this._multi},set:function(i){this._multi=(0,On.Ig)(i)}},{key:"openAll",value:function(){this._multi&&this._openCloseAllActions.next(!0)}},{key:"closeAll",value:function(){this._openCloseAllActions.next(!1)}},{key:"ngOnChanges",value:function(i){this._stateChanges.next(i)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}]),r}();return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:OZ,useExisting:n}]),e.TTD]}),n}(),Gae=0,Jae=function(){var n=function(){function r(t,i,o){var a=this;(0,g.Z)(this,r),this.accordion=t,this._changeDetectorRef=i,this._expansionDispatcher=o,this._openCloseAllSubscription=us.w.EMPTY,this.closed=new e.vpe,this.opened=new e.vpe,this.destroyed=new e.vpe,this.expandedChange=new e.vpe,this.id="cdk-accordion-child-".concat(Gae++),this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=o.listen(function(s,u){a.accordion&&!a.accordion.multi&&a.accordion.id===u&&a.id!==s&&(a.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return(0,k.Z)(r,[{key:"expanded",get:function(){return this._expanded},set:function(i){i=(0,On.Ig)(i),this._expanded!==i&&(this._expanded=i,this.expandedChange.emit(i),i?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(i){this._disabled=(0,On.Ig)(i)}},{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var i=this;return this.accordion._openCloseAllActions.subscribe(function(o){i.disabled||(i.expanded=o)})}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(OZ,12),e.Y36(e.sBO),e.Y36(Wi.A8))},n.\u0275dir=e.lG2({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[e._Bn([{provide:OZ,useValue:void 0}])]}),n}(),Qae=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({}),n}(),Kae=["body"];function Xae(n,r){}var $ae=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],ese=["mat-expansion-panel-header","*","mat-action-row"];function tse(n,r){if(1&n&&e._UZ(0,"span",2),2&n){var t=e.oxw();e.Q6J("@indicatorRotate",t._getExpandedState())}}var nse=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],rse=["mat-panel-title","mat-panel-description","*"],PZ=new e.OlP("MAT_ACCORDION"),_q="225ms cubic-bezier(0.4,0.0,0.2,1)",yq={indicatorRotate:(0,an.X$)("indicatorRotate",[(0,an.SB)("collapsed, void",(0,an.oB)({transform:"rotate(0deg)"})),(0,an.SB)("expanded",(0,an.oB)({transform:"rotate(180deg)"})),(0,an.eR)("expanded <=> collapsed, void => collapsed",(0,an.jt)(_q))]),bodyExpansion:(0,an.X$)("bodyExpansion",[(0,an.SB)("collapsed, void",(0,an.oB)({height:"0px",visibility:"hidden"})),(0,an.SB)("expanded",(0,an.oB)({height:"*",visibility:"visible"})),(0,an.eR)("expanded <=> collapsed, void => collapsed",(0,an.jt)(_q))])},ise=function(){var n=function r(t){(0,g.Z)(this,r),this._template=t};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc))},n.\u0275dir=e.lG2({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n}(),ose=0,bq=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),tc=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u,p,m,b){var R;return(0,g.Z)(this,i),(R=t.call(this,o,a,s))._viewContainerRef=u,R._animationMode=m,R._hideToggle=!1,R.afterExpand=new e.vpe,R.afterCollapse=new e.vpe,R._inputChanges=new Pn.xQ,R._headerId="mat-expansion-panel-header-".concat(ose++),R._bodyAnimationDone=new Pn.xQ,R.accordion=o,R._document=p,R._bodyAnimationDone.pipe((0,sm.x)(function(F,G){return F.fromState===G.fromState&&F.toState===G.toState})).subscribe(function(F){"void"!==F.fromState&&("expanded"===F.toState?R.afterExpand.emit():"collapsed"===F.toState&&R.afterCollapse.emit())}),b&&(R.hideToggle=b.hideToggle),R}return(0,k.Z)(i,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(a){this._hideToggle=(0,On.Ig)(a)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(a){this._togglePosition=a}},{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var a=this;this._lazyContent&&this.opened.pipe((0,ua.O)(null),(0,vi.h)(function(){return a.expanded&&!a._portal}),(0,eo.q)(1)).subscribe(function(){a._portal=new qi.UE(a._lazyContent._template,a._viewContainerRef)})}},{key:"ngOnChanges",value:function(a){this._inputChanges.next(a)}},{key:"ngOnDestroy",value:function(){(0,P.Z)((0,D.Z)(i.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var a=this._document.activeElement,s=this._body.nativeElement;return a===s||s.contains(a)}return!1}}]),i}(Jae);return n.\u0275fac=function(t){return new(t||n)(e.Y36(PZ,12),e.Y36(e.sBO),e.Y36(Wi.A8),e.Y36(e.s_b),e.Y36(At.K0),e.Y36(Cs.Qb,8),e.Y36(bq,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(t,i,o){var a;1&t&&e.Suo(o,ise,5),2&t&&e.iGM(a=e.CRH())&&(i._lazyContent=a.first)},viewQuery:function(t,i){var o;1&t&&e.Gf(Kae,5),2&t&&e.iGM(o=e.CRH())&&(i._body=o.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,i){2&t&&e.ekj("mat-expanded",i.expanded)("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-expansion-panel-spacing",i._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[e._Bn([{provide:PZ,useValue:void 0}]),e.qOj,e.TTD],ngContentSelectors:ese,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,i){1&t&&(e.F$t($ae),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(a){return i._bodyAnimationDone.next(a)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,Xae,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&t&&(e.xp6(1),e.Q6J("@bodyExpansion",i._getExpandedState())("id",i.id),e.uIk("aria-labelledby",i._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",i._portal))},directives:[qi.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[yq.bodyExpansion]},changeDetection:0}),n}(),lse=(0,un.sb)(function n(){(0,g.Z)(this,n)}),nc=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u,p,m,b){var R;(0,g.Z)(this,i),(R=t.call(this)).panel=o,R._element=a,R._focusMonitor=s,R._changeDetectorRef=u,R._animationMode=m,R._parentChangeSubscription=us.w.EMPTY;var F=o.accordion?o.accordion._stateChanges.pipe((0,vi.h)(function(G){return!(!G.hideToggle&&!G.togglePosition)})):Gm.E;return R.tabIndex=parseInt(b||"")||0,R._parentChangeSubscription=(0,go.T)(o.opened,o.closed,F,o._inputChanges.pipe((0,vi.h)(function(G){return!!(G.hideToggle||G.disabled||G.togglePosition)}))).subscribe(function(){return R._changeDetectorRef.markForCheck()}),o.closed.pipe((0,vi.h)(function(){return o._containsFocus()})).subscribe(function(){return s.focusVia(a,"program")}),p&&(R.expandedHeight=p.expandedHeight,R.collapsedHeight=p.collapsedHeight),R}return(0,k.Z)(i,[{key:"disabled",get:function(){return this.panel.disabled}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_getHeaderHeight",value:function(){var a=this._isExpanded();return a&&this.expandedHeight?this.expandedHeight:!a&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(a){switch(a.keyCode){case Yr.L_:case Yr.K5:(0,Yr.Vb)(a)||(a.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(a))}}},{key:"focus",value:function(a,s){a?this._focusMonitor.focusVia(this._element,a,s):this._element.nativeElement.focus(s)}},{key:"ngAfterViewInit",value:function(){var a=this;this._focusMonitor.monitor(this._element).subscribe(function(s){s&&a.panel.accordion&&a.panel.accordion._handleHeaderFocus(a)})}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}]),i}(lse);return n.\u0275fac=function(t){return new(t||n)(e.Y36(tc,1),e.Y36(e.SBq),e.Y36(xi.tE),e.Y36(e.sBO),e.Y36(bq,8),e.Y36(Cs.Qb,8),e.$8M("tabindex"))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,i){1&t&&e.NdJ("click",function(){return i._toggle()})("keydown",function(a){return i._keydown(a)}),2&t&&(e.uIk("id",i.panel._headerId)("tabindex",i.tabIndex)("aria-controls",i._getPanelId())("aria-expanded",i._isExpanded())("aria-disabled",i.panel.disabled),e.Udp("height",i._getHeaderHeight()),e.ekj("mat-expanded",i._isExpanded())("mat-expansion-toggle-indicator-after","after"===i._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===i._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.qOj],ngContentSelectors:rse,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,i){1&t&&(e.F$t(nse),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,tse,1,1,"span",1)),2&t&&(e.xp6(4),e.Q6J("ngIf",i._showToggle()))},directives:[At.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[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:""}\n'],encapsulation:2,data:{animation:[yq.indicatorRotate]},changeDetection:0}),n}(),use=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),n}(),sd=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),n}(),ld=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){var o;return(0,g.Z)(this,i),(o=t.apply(this,arguments))._ownHeaders=new e.n_E,o._hideToggle=!1,o.displayMode="default",o.togglePosition="after",o}return(0,k.Z)(i,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(a){this._hideToggle=(0,On.Ig)(a)}},{key:"ngAfterContentInit",value:function(){var a=this;this._headers.changes.pipe((0,ua.O)(this._headers)).subscribe(function(s){a._ownHeaders.reset(s.filter(function(u){return u.panel.accordion===a})),a._ownHeaders.notifyOnChanges()}),this._keyManager=new xi.Em(this._ownHeaders).withWrap().withHomeAndEnd()}},{key:"_handleHeaderKeydown",value:function(a){this._keyManager.onKeydown(a)}},{key:"_handleHeaderFocus",value:function(a){this._keyManager.updateActiveItem(a)}},{key:"ngOnDestroy",value:function(){(0,P.Z)((0,D.Z)(i.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),i}(Wae);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["mat-accordion"]],contentQueries:function(t,i,o){var a;1&t&&e.Suo(o,nc,5),2&t&&e.iGM(a=e.CRH())&&(i._headers=a)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,i){2&t&&e.ekj("mat-accordion-multi",i.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[e._Bn([{provide:PZ,useExisting:n}]),e.qOj]}),n}(),cse=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[At.ez,un.BQ,Qae,qi.eL]]}),n}(),Cq=f(93386),IZ=["*"],RZ='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{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{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.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',dse=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],pse=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],Sq=(0,un.Id)((0,un.Kr)(function(){return function n(){(0,g.Z)(this,n)}}())),gse=(0,un.Kr)(function(){return function n(){(0,g.Z)(this,n)}}()),Tq=new e.OlP("MatList"),xq=new e.OlP("MatNavList"),Du=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){var o;return(0,g.Z)(this,i),(o=t.apply(this,arguments))._stateChanges=new Pn.xQ,o}return(0,k.Z)(i,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(Sq);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[e._Bn([{provide:xq,useExisting:n}]),e.qOj,e.TTD],ngContentSelectors:IZ,decls:1,vars:0,template:function(t,i){1&t&&(e.F$t(),e.Hsn(0))},styles:[RZ],encapsulation:2,changeDetection:0}),n}(),NZ=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o){var a;return(0,g.Z)(this,i),(a=t.call(this))._elementRef=o,a._stateChanges=new Pn.xQ,"action-list"===a._getListType()&&o.nativeElement.classList.add("mat-action-list"),a}return(0,k.Z)(i,[{key:"_getListType",value:function(){var a=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===a?"list":"mat-action-list"===a?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(Sq);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[e._Bn([{provide:Tq,useExisting:n}]),e.qOj,e.TTD],ngContentSelectors:IZ,decls:1,vars:0,template:function(t,i){1&t&&(e.F$t(),e.Hsn(0))},styles:[RZ],encapsulation:2,changeDetection:0}),n}(),wq=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),n}(),kq=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n}(),xs=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u){var p;(0,g.Z)(this,i),(p=t.call(this))._element=o,p._isInteractiveList=!1,p._destroyed=new Pn.xQ,p._disabled=!1,p._isInteractiveList=!!(s||u&&"action-list"===u._getListType()),p._list=s||u;var m=p._getHostElement();return"button"===m.nodeName.toLowerCase()&&!m.hasAttribute("type")&&m.setAttribute("type","button"),p._list&&p._list._stateChanges.pipe((0,Br.R)(p._destroyed)).subscribe(function(){a.markForCheck()}),p}return(0,k.Z)(i,[{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(a){this._disabled=(0,On.Ig)(a)}},{key:"ngAfterContentInit",value:function(){(0,un.E0)(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}}]),i}(gse);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(xq,8),e.Y36(Tq,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,i,o){var a;1&t&&(e.Suo(o,wq,5),e.Suo(o,kq,5),e.Suo(o,un.X2,5)),2&t&&(e.iGM(a=e.CRH())&&(i._avatar=a.first),e.iGM(a=e.CRH())&&(i._icon=a.first),e.iGM(a=e.CRH())&&(i._lines=a))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,i){2&t&&e.ekj("mat-list-item-disabled",i.disabled)("mat-list-item-avatar",i._avatar||i._icon)("mat-list-item-with-avatar",i._avatar||i._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[e.qOj],ngContentSelectors:pse,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,i){1&t&&(e.F$t(dse),e.TgZ(0,"div",0),e._UZ(1,"div",1),e.Hsn(2),e.TgZ(3,"div",2),e.Hsn(4,1),e.qZA(),e.Hsn(5,2),e.qZA()),2&t&&(e.xp6(1),e.Q6J("matRippleTrigger",i._getHostElement())("matRippleDisabled",i._isRippleDisabled()))},directives:[un.wG],encapsulation:2,changeDetection:0}),n}(),Tse=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[un.uc,un.si,un.BQ,un.us,At.ez],un.uc,un.BQ,un.us,Cq.t]}),n}(),xse=function(){function n(r){this.httpClient=r,this.thirdpartylicenses="",this.releasenotes=""}return n.prototype.ngOnInit=function(){var r=this;this.httpClient.get(window.location.href+"/3rdpartylicenses.txt",{responseType:"text"}).subscribe(function(t){r.thirdpartylicenses=t.replace(new RegExp("\n","g"),"<br />")},function(t){404===t.status&&(r.thirdpartylicenses="File not found")}),this.httpClient.get("ReleaseNotes.txt",{responseType:"text"}).subscribe(function(t){r.releasenotes=t.replace(new RegExp("\n","g"),"<br />")})},n.prototype.goToDocumentation=function(){window.location.href="https://docs.gns3.com/docs/"},n.\u0275fac=function(t){return new(t||n)(e.Y36(zc.eN))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-help"]],decls:38,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"innerHTML"],["mat-button","","color","primary",1,"full-width",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"h1"),e._uU(3,"Help"),e.qZA(),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"div",3),e.TgZ(6,"mat-accordion"),e.TgZ(7,"mat-expansion-panel"),e.TgZ(8,"mat-expansion-panel-header"),e.TgZ(9,"mat-panel-title"),e._uU(10," Useful shortcuts "),e.qZA(),e.qZA(),e.TgZ(11,"mat-list"),e.TgZ(12,"mat-list-item"),e._uU(13," ctrl + + to zoom in "),e.qZA(),e.TgZ(14,"mat-list-item"),e._uU(15," ctrl + - to zoom out "),e.qZA(),e.TgZ(16,"mat-list-item"),e._uU(17," ctrl + 0 to reset zoom "),e.qZA(),e.TgZ(18,"mat-list-item"),e._uU(19," ctrl + h to hide toolbar "),e.qZA(),e.TgZ(20,"mat-list-item"),e._uU(21," ctrl + a to select all items on map "),e.qZA(),e.TgZ(22,"mat-list-item"),e._uU(23," ctrl + shift + a to deselect all items on map "),e.qZA(),e.TgZ(24,"mat-list-item"),e._uU(25," ctrl + shift + s to go to preferences "),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"mat-expansion-panel"),e.TgZ(27,"mat-expansion-panel-header"),e.TgZ(28,"mat-panel-title"),e._uU(29," Third party components "),e.qZA(),e.qZA(),e._UZ(30,"div",4),e.qZA(),e.TgZ(31,"mat-expansion-panel"),e.TgZ(32,"mat-expansion-panel-header"),e.TgZ(33,"mat-panel-title"),e._uU(34," Release notes "),e.qZA(),e.qZA(),e._UZ(35,"div",4),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"button",5),e.NdJ("click",function(){return i.goToDocumentation()}),e._uU(37,"Go to documentation"),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(30),e.Q6J("innerHTML",i.thirdpartylicenses,e.oJD),e.xp6(5),e.Q6J("innerHTML",i.releasenotes,e.oJD))},directives:[ld,tc,nc,sd,NZ,xs,An],styles:[".full-width[_ngcontent-%COMP%]{width:100%;margin-top:20px}"]}),n}(),Mq=function(){function n(r){this.electronService=r}return n.prototype.isWindows=function(){return"win32"===this.electronService.process.platform},n.prototype.isLinux=function(){return"linux"===this.electronService.process.platform},n.prototype.isDarwin=function(){return"darwin"===this.electronService.process.platform},n.\u0275fac=function(t){return new(t||n)(e.LFG(hs))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Aq=function(){function n(r){this.platformService=r}return n.prototype.get=function(){return this.platformService.isWindows()?this.getForWindows():this.platformService.isDarwin()?this.getForDarwin():this.getForLinux()},n.prototype.getForWindows=function(){var r=[{name:"Wireshark",locations:["C:\\Program Files\\Wireshark\\Wireshark.exe"],type:"web",resource:"https://1.na.dl.wireshark.org/win64/all-versions/Wireshark-win64-2.6.3.exe",binary:"Wireshark.exe",sudo:!0,installation_arguments:[],installed:!1,installer:!0}];return r},n.prototype.getForLinux=function(){return[]},n.prototype.getForDarwin=function(){return[]},n.\u0275fac=function(t){return new(t||n)(e.LFG(Mq))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Dq=function(){function n(r,t){this.electronService=r,this.externalSoftwareDefinition=t}return n.prototype.list=function(){var r=this.externalSoftwareDefinition.get(),t=this.electronService.remote.require("./installed-software.js").getInstalledSoftware(r);return r.map(function(i){return i.installed=t[i.name].length>0,i})},n.\u0275fac=function(t){return new(t||n)(e.LFG(hs),e.LFG(Aq))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),wse=[[["caption"]],[["colgroup"],["col"]]],kse=["caption","colgroup, col"],$l=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){var o;return(0,g.Z)(this,i),(o=t.apply(this,arguments)).stickyCssClass="mat-table-sticky",o.needsPositionStickyOnElement=!1,o}return i}(om);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,i){2&t&&e.ekj("mat-table-fixed-layout",i.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:Wi.k,useClass:Wi.yy},{provide:om,useExisting:n},{provide:qc,useExisting:n},{provide:hC,useClass:jk},{provide:gC,useValue:null}]),e.qOj],ngContentSelectors:kse,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,i){1&t&&(e.F$t(wse),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0),e.GkF(3,1),e.GkF(4,2),e.GkF(5,3))},directives:[rm,yf,Qd,im],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-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),n}(),dl=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(vf);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:vf,useExisting:n}]),e.qOj]}),n}(),pl=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(jc);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:jc,useExisting:n}]),e.qOj]}),n}(),fl=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return(0,k.Z)(i,[{key:"name",get:function(){return this._name},set:function(a){this._setNameInput(a)}},{key:"_updateColumnCssClassName",value:function(){(0,P.Z)((0,D.Z)(i.prototype),"_updateColumnCssClassName",this).call(this),this._columnCssClassName.push("mat-column-".concat(this.cssClassFriendlyName))}}]),i}(Wu);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:Wu,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),e.qOj]}),n}(),hl=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(qg);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[e.qOj]}),n}(),ml=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(fC);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.qOj]}),n}(),eu=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(gf);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:gf,useExisting:n}]),e.qOj]}),n}(),tu=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(nm);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:nm,useExisting:n}]),e.qOj]}),n}(),nu=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(vC);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:vC,useExisting:n}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){1&t&&e.GkF(0,0)},directives:[Cu],encapsulation:2}),n}(),ru=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(Wg);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[e._Bn([{provide:Wg,useExisting:n}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){1&t&&e.GkF(0,0)},directives:[Cu],encapsulation:2}),n}(),Zse=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[bC,un.BQ],un.BQ]}),n}(),Lse=9007199254740991,Oq=function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(){return(0,g.Z)(this,t),r.apply(this,arguments)}return t}(function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(){var i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,g.Z)(this,t),(i=r.call(this))._renderData=new to.X([]),i._filter=new to.X(""),i._internalPageChanges=new Pn.xQ,i._renderChangesSubscription=null,i.sortingDataAccessor=function(a,s){var u=a[s];if((0,On.t6)(u)){var p=Number(u);return p<Lse?p:u}return u},i.sortData=function(a,s){var u=s.active,p=s.direction;return u&&""!=p?a.sort(function(m,b){var R=i.sortingDataAccessor(m,u),F=i.sortingDataAccessor(b,u),G=typeof R,Y=typeof F;G!==Y&&("number"===G&&(R+=""),"number"===Y&&(F+=""));var ee=0;return null!=R&&null!=F?R>F?ee=1:R<F&&(ee=-1):null!=R?ee=1:null!=F&&(ee=-1),ee*("asc"==p?1:-1)}):a},i.filterPredicate=function(a,s){var u=Object.keys(a).reduce(function(m,b){return m+a[b]+"\u25ec"},"").toLowerCase(),p=s.trim().toLowerCase();return-1!=u.indexOf(p)},i._data=new to.X(o),i._updateChangeSubscription(),i}return(0,k.Z)(t,[{key:"data",get:function(){return this._data.value},set:function(o){this._data.next(o),this._renderChangesSubscription||this._filterData(o)}},{key:"filter",get:function(){return this._filter.value},set:function(o){this._filter.next(o),this._renderChangesSubscription||this._filterData(this.data)}},{key:"sort",get:function(){return this._sort},set:function(o){this._sort=o,this._updateChangeSubscription()}},{key:"paginator",get:function(){return this._paginator},set:function(o){this._paginator=o,this._updateChangeSubscription()}},{key:"_updateChangeSubscription",value:function(){var a,o=this,s=this._sort?(0,go.T)(this._sort.sortChange,this._sort.initialized):(0,or.of)(null),u=this._paginator?(0,go.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,or.of)(null),m=(0,lm.aj)([this._data,this._filter]).pipe((0,kr.U)(function(F){var G=(0,C.Z)(F,1);return o._filterData(G[0])})),b=(0,lm.aj)([m,s]).pipe((0,kr.U)(function(F){var G=(0,C.Z)(F,1);return o._orderData(G[0])})),R=(0,lm.aj)([b,u]).pipe((0,kr.U)(function(F){var G=(0,C.Z)(F,1);return o._pageData(G[0])}));null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=R.subscribe(function(F){return o._renderData.next(F)})}},{key:"_filterData",value:function(o){var a=this;return this.filteredData=null==this.filter||""===this.filter?o:o.filter(function(s){return a.filterPredicate(s,a.filter)}),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}},{key:"_orderData",value:function(o){return this.sort?this.sortData(o.slice(),this.sort):o}},{key:"_pageData",value:function(o){if(!this.paginator)return o;var a=this.paginator.pageIndex*this.paginator.pageSize;return o.slice(a,a+this.paginator.pageSize)}},{key:"_updatePaginator",value:function(o){var a=this;Promise.resolve().then(function(){var s=a.paginator;if(s&&(s.length=o,s.pageIndex>0)){var u=Math.ceil(s.length/s.pageSize)-1||0,p=Math.min(s.pageIndex,u);p!==s.pageIndex&&(s.pageIndex=p,a._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var o;null===(o=this._renderChangesSubscription)||void 0===o||o.unsubscribe(),this._renderChangesSubscription=null}}]),t}(Wi.o2)),rc=f(15132),Bse=function(n,r){return{hidden:n,lightTheme:r}},Use=/<a href="(.*)">(.*)<\/a><br\/>(.*)<br\/>\s*<button><a .*>(.*)<\/a>\s*<\/button>/i,Pq=function(){function n(r,t,i){this.httpClient=r,this.themeService=t,this.location=i,this.isVisible=!1,this.isLightThemeEnabled=!1,this.adUrl="https://try.solarwinds.com/gns3-free-toolset-giveaway?CMP=LEC-HAD-GNS3-SW_NA_X_NP_X_X_EN_STSGA_SW-ST-20200901_ST_OF1_TRY-NWSLTR",this.adBody="Network Config Generator makes it easy configure network devices, including VLANs without opening the CLI",this.buttonLabel="Check it out!"}return n.prototype.hide=function(){this.isVisible=!1},n.prototype.ngOnInit=function(){var r=this;this.location.path().includes("nodes")||(this.httpClient.get("https://servedbyadbutler.com/adserve/;ID=165803;size=0x0;setID=371476;type=json;").subscribe(function(t){var i,o;if(null===(o=null===(i=null==t?void 0:t.placements)||void 0===i?void 0:i.placement_1)||void 0===o?void 0:o.body)try{var a=t.placements.placement_1.body.replace(/(\r\n|\n|\r)/gm,""),s=Use.exec(a);r.adUrl=s[1].trim(),r.adBody=s[3].trim(),r.buttonLabel=s[4].trim()}catch(u){}r.isVisible=!0},function(t){}),this.isLightThemeEnabled="light"===this.themeService.getActualTheme(),this.themeService.themeChanged.subscribe(function(){r.isLightThemeEnabled="light"===r.themeService.getActualTheme()}))},n.\u0275fac=function(t){return new(t||n)(e.Y36(zc.eN),e.Y36(rc.f),e.Y36(At.Ye))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-adbutler"]],decls:10,vars:8,consts:[[1,"ad",3,"ngClass"],[1,"adInnerContainer"],[1,"adBody"],["target","_blank",3,"href"],[1,"close-button",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"span",2),e.TgZ(3,"a",3),e._uU(4),e.qZA(),e.qZA(),e.TgZ(5,"button"),e.TgZ(6,"a",3),e._uU(7),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"mat-icon",4),e.NdJ("click",function(){return i.hide()}),e._uU(9,"close"),e.qZA(),e.qZA()),2&t&&(e.Q6J("ngClass",e.WLB(5,Bse,!i.isVisible,i.isLightThemeEnabled)),e.xp6(3),e.Q6J("href",i.adUrl,e.LSH),e.xp6(1),e.Oqu(i.adBody),e.xp6(2),e.Q6J("href",i.adUrl,e.LSH),e.xp6(1),e.Oqu(i.buttonLabel))},directives:[At.mk,ur],styles:[".ad[_ngcontent-%COMP%]{position:fixed;left:0;right:0;bottom:0;background-color:#a8ecff;padding-top:10px;padding-bottom:10px;font-size:12px;font-weight:bold;opacity:.8}.adInnerContainer[_ngcontent-%COMP%]{margin:auto;text-align:center}.adBody[_ngcontent-%COMP%]{padding-right:16px}.close-button[_ngcontent-%COMP%]{position:absolute;top:15px;right:15px;color:#000!important}.lightTheme[_ngcontent-%COMP%]{background-color:#ddf9ff}.hidden[_ngcontent-%COMP%]{visibility:hidden}button[_ngcontent-%COMP%]{background-color:#01d4ff;margin-top:2px;border:none;outline:none;color:#fff;font-weight:bold;font-size:11px;padding:5px 15px;border-radius:6px}button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff}a[_ngcontent-%COMP%]{color:#122124}"]}),n}();function Hse(n,r){if(1&n&&(e.ynx(0),e._uU(1),e.BQk()),2&n){var t=e.oxw();e.xp6(1),e.Oqu(t.buttonText)}}var Vse=function(){function n(r){this.electronService=r,this.installedChanged=new e.vpe,this.disabled=!1,this.readyToInstall=!0}return n.prototype.ngOnInit=function(){var r=this;this.electronService.ipcRenderer.on(this.responseChannel,function(t,i){r.updateButton(),r.installedChanged.emit(i)})},n.prototype.ngOnDestroy=function(){this.electronService.ipcRenderer.removeAllListeners(this.responseChannel)},n.prototype.ngOnChanges=function(){this.updateButton()},n.prototype.install=function(){this.disabled=!0,this.buttonText="Installing",this.electronService.ipcRenderer.send("installed-software-install",this.software)},Object.defineProperty(n.prototype,"responseChannel",{get:function(){return"installed-software-installed-"+this.software.name},enumerable:!1,configurable:!0}),n.prototype.updateButton=function(){this.disabled=this.software.installed,this.buttonText=this.software.installed?"Installed":"Install"},n.\u0275fac=function(t){return new(t||n)(e.Y36(hs))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-install-software"]],inputs:{software:"software"},outputs:{installedChanged:"installedChanged"},features:[e.TTD],decls:2,vars:2,consts:[["mat-button","","color","primary",3,"disabled","click"],[4,"ngIf"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.install()}),e.YNc(1,Hse,2,1,"ng-container",1),e.qZA()),2&t&&(e.Q6J("disabled",i.disabled),e.xp6(1),e.Q6J("ngIf",i.readyToInstall))},directives:[An,At.O5],styles:[""]}),n}();function qse(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Name "),e.qZA())}function jse(n,r){if(1&n&&(e.ynx(0),e._uU(1),e.BQk()),2&n){var t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.name," ")}}function zse(n,r){1&n&&(e.ynx(0),e._UZ(1,"app-adbutler",14),e.BQk())}function Wse(n,r){if(1&n&&(e.TgZ(0,"mat-cell"),e.YNc(1,jse,2,1,"ng-container",13),e.YNc(2,zse,2,0,"ng-container",13),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Q6J("ngIf","adbutler"!==t.type),e.xp6(1),e.Q6J("ngIf","adbutler"===t.type)}}function Gse(n,r){1&n&&e._UZ(0,"mat-header-cell")}function Yse(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"app-install-software",17),e.NdJ("installedChanged",function(a){return e.CHM(t),e.oxw(2).onInstalled(a)}),e.qZA()}if(2&n){var i=e.oxw().$implicit;e.Q6J("software",i)}}function Jse(n,r){if(1&n&&(e.TgZ(0,"mat-cell",15),e.YNc(1,Yse,1,1,"app-install-software",16),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Q6J("ngIf","adbutler"!==t.type)}}function Qse(n,r){1&n&&e._UZ(0,"mat-header-row")}function Kse(n,r){1&n&&e._UZ(0,"mat-row")}var Xse=function(){function n(r,t){this.installedSoftwareService=r,this.changeDetectorRef=t,this.displayedColumns=["name","actions"]}return n.prototype.ngOnInit=function(){this.dataSource=new $se(this.installedSoftwareService)},n.prototype.onInstalled=function(r){this.dataSource.refresh(),this.changeDetectorRef.detectChanges()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dq),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-installed-software"]],decls:16,vars:3,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"dataSource"],["table",""],["matColumnDef","name"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","actions"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[4,"ngIf"],["theme","dark"],[2,"text-align","right"],[3,"software","installedChanged",4,"ngIf"],[3,"software","installedChanged"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"h1"),e._uU(3,"Installed software"),e.qZA(),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"div",3),e.TgZ(6,"mat-table",4,5),e.ynx(8,6),e.YNc(9,qse,2,0,"mat-header-cell",7),e.YNc(10,Wse,3,2,"mat-cell",8),e.BQk(),e.ynx(11,9),e.YNc(12,Gse,1,0,"mat-header-cell",7),e.YNc(13,Jse,2,1,"mat-cell",10),e.BQk(),e.YNc(14,Qse,1,0,"mat-header-row",11),e.YNc(15,Kse,1,0,"mat-row",12),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("dataSource",i.dataSource),e.xp6(8),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns))},directives:[$l,fl,pl,dl,eu,tu,hl,ml,At.O5,Pq,Vse,nu,ru],styles:[""]}),n}(),$se=function(n){function r(t){var i=n.call(this)||this;return i.installedSoftwareService=t,i.installed=new to.X([]),i}return(0,Qn.ZT)(r,n),r.prototype.connect=function(){return this.refresh(),this.installed},r.prototype.disconnect=function(){},r.prototype.refresh=function(){var t=this.installedSoftwareService.list();t.push({type:"adbutler"}),this.installed.next(t)},r}(Wi.o2),ele=function(){function n(){}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-page-not-found"]],decls:7,vars:0,consts:[[1,"content"],[1,"default-header"],["mat-button","","routerLink","/servers"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"br"),e.TgZ(3,"h1"),e._uU(4,"404 Page not found"),e.qZA(),e.TgZ(5,"button",2),e._uU(6,"Navigate to homepage"),e.qZA(),e.qZA(),e.qZA())},directives:[An,fa],styles:["div[_ngcontent-%COMP%]{text-align:center}"]}),n}(),tle=function(){function n(r){this.route=r,this.serverId=""}return n.prototype.ngOnInit=function(){this.serverId=this.route.snapshot.paramMap.get("server_id")},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-built-in-preferences"]],decls:16,vars:4,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-button","",1,"cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],[3,"routerLink"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Built-in preferences"),e.qZA(),e.TgZ(5,"button",4),e._uU(6," Back "),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",5),e.TgZ(8,"div",6),e.TgZ(9,"mat-nav-list"),e.TgZ(10,"mat-list-item",7),e._uU(11," Ethernet hubs "),e.qZA(),e.TgZ(12,"mat-list-item",7),e._uU(13," Ethernet switches "),e.qZA(),e.TgZ(14,"mat-list-item",7),e._uU(15," Cloud nodes "),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.MGl("routerLink","/server/",i.serverId,"/preferences"),e.xp6(5),e.MGl("routerLink","/server/",i.serverId,"/preferences/builtin/ethernet-hubs"),e.xp6(2),e.MGl("routerLink","/server/",i.serverId,"/preferences/builtin/ethernet-switches"),e.xp6(2),e.MGl("routerLink","/server/",i.serverId,"/preferences/builtin/cloud-nodes"))},directives:[An,fa,Du,xs],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),wa=f(49940),ud=function(){function n(r){this.httpServer=r}return n.prototype.getTemplates=function(r){return this.httpServer.get(r,"/templates")},n.prototype.getTemplate=function(r,t){return this.httpServer.get(r,"/templates/"+t)},n.prototype.addTemplate=function(r,t){return this.httpServer.post(r,"/templates",t)},n.prototype.saveTemplate=function(r,t){return this.httpServer.put(r,"/templates/"+t.template_id,t)},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),ic=function(){function n(){}return n.prototype.getTracengTemplate=function(){return{builtin:!1,category:"guest",compute_id:"local",console_type:"none",default_name_format:"TraceNG{0}",ip_address:"",name:"",symbol:":/symbols/classic/traceng.svg",template_id:"",template_type:"traceng"}},n.prototype.getQemuTemplate=function(){return(0,or.of)({adapter_type:"e1000",adapters:4,bios_image:"",boot_priority:"c",builtin:!1,category:"guest",cdrom_image:"",compute_id:"local",console_auto_start:!1,console_type:"telnet",cpu_throttling:0,cpus:1,custom_adapters:[],default_name_format:"{name}-{0}",first_port_name:"",hda_disk_image:"",hda_disk_interface:"ide",hdb_disk_image:"",hdb_disk_interface:"ide",hdc_disk_image:"",hdc_disk_interface:"ide",hdd_disk_image:"",hdd_disk_interface:"ide",initrd:"",kernel_command_line:"",kernel_image:"",legacy_networking:!1,linked_clone:!0,mac_address:"",name:"",on_close:"power_off",options:"-nographic",platform:"",port_name_format:"Ethernet{0}",port_segment_size:0,process_priority:"normal",qemu_path:"",ram:256,symbol:":/symbols/qemu_guest.svg",template_id:"",template_type:"qemu",usage:""})},n.prototype.getVpcsTemplate=function(){return(0,or.of)({base_script_file:"vpcs_base_config.txt",builtin:!1,category:"guest",compute_id:"local",console_auto_start:!1,console_type:"telnet",default_name_format:"PC{0}",name:"",symbol:":/symbols/vpcs_guest.svg",template_id:"",template_type:"vpcs"})},n.prototype.getVirtualBoxTemplate=function(){return(0,or.of)({adapter_type:"Intel PRO/1000 MT Desktop (82540EM)",adapters:1,builtin:!1,category:"guest",compute_id:"local",console_auto_start:!1,console_type:"none",custom_adapters:[],default_name_format:"{name}-{0}",first_port_name:"",headless:!1,linked_clone:!1,name:"",on_close:"power_off",port_name_format:"Ethernet{0}",port_segment_size:0,ram:0,symbol:":/symbols/vbox_guest.svg",template_id:"",template_type:"virtualbox",usage:"",use_any_adapter:!1,vmname:""})},n.prototype.getCloudNodeTemplate=function(){return(0,or.of)({builtin:!1,category:"guest",compute_id:"local",default_name_format:"Cloud{0}",name:"",ports_mapping:[],remote_console_type:"none",symbol:":/symbols/cloud.svg",template_id:"",template_type:"cloud"})},n.prototype.getEthernetHubTemplate=function(){return(0,or.of)({builtin:!1,category:"switch",compute_id:"local",default_name_format:"Hub{0}",name:"",ports_mapping:[],symbol:":/symbols/hub.svg",template_id:"",template_type:"ethernet_hub"})},n.prototype.getEthernetSwitchTemplate=function(){return(0,or.of)({builtin:!1,category:"switch",compute_id:"local",console_type:"telnet",default_name_format:"Switch{0}",name:"",ports_mapping:[],symbol:":/symbols/ethernet_switch.svg",template_id:"",template_type:"ethernet_switch"})},n.prototype.getIosTemplate=function(){return(0,or.of)({auto_delete_disks:!0,builtin:!1,category:"router",compute_id:"local",console_auto_start:!1,console_type:"telnet",default_name_format:"R{0}",disk0:0,disk1:0,exec_area:64,idlemax:500,idlepc:"",idlesleep:30,image:"",mac_addr:"",mmap:!0,name:"",nvram:128,platform:"",private_config:"",ram:128,sparsemem:!0,startup_config:"",symbol:":/symbols/router.svg",system_id:"FTX0945W0MY",template_id:"",template_type:"dynamips",usage:""})},n.prototype.getVmwareTemplate=function(){return(0,or.of)({adapter_type:"e1000",adapters:1,builtin:!1,category:"guest",compute_id:"local",console_auto_start:!1,console_type:"none",custom_adapters:[],default_name_format:"{name}-{0}",first_port_name:"",headless:!1,linked_clone:!1,name:"",on_close:"power_off",port_name_format:"Ethernet{0}",port_segment_size:0,symbol:":/symbols/vmware_guest.svg",template_id:"",template_type:"vmware",usage:"",use_any_adapter:!1,vmx_path:""})},n.prototype.getDockerTemplate=function(){return(0,or.of)({adapters:1,builtin:!1,category:"guest",compute_id:"vm",console_auto_start:!1,console_http_path:"/",console_http_port:80,console_resolution:"1024x768",console_type:"telnet",custom_adapters:[],default_name_format:"{name}-{0}",environment:"",extra_hosts:"",image:"",name:"",start_command:"",symbol:":/symbols/docker_guest.svg",template_id:"",template_type:"docker",usage:""})},n.prototype.getIouTemplate=function(){return(0,or.of)({builtin:!1,category:"switch",compute_id:"vm",console_auto_start:!1,console_type:"telnet",default_name_format:"IOU{0}",ethernet_adapters:1,l1_keepalives:!1,name:"",nvram:128,path:"",private_config:"",ram:256,serial_adapters:0,startup_config:"iou_l2_base_startup-config.txt",symbol:":/symbols/multilayer_switch.svg",template_id:"",template_type:"iou",usage:"",use_default_iou_values:!0})},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),oc=f(36889),nle=["input"],rle=function(r){return{enterDuration:r}},ile=["*"],ole=new e.OlP("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}}),Iq=0,sle={provide:ne.JU,useExisting:(0,e.Gpc)(function(){return vl}),multi:!0},Rq=function n(r,t){(0,g.Z)(this,n),this.source=r,this.value=t},Nq=new e.OlP("MatRadioGroup"),Zq=function(){var n=function(){function r(t){(0,g.Z)(this,r),this._changeDetector=t,this._value=null,this._name="mat-radio-group-".concat(Iq++),this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new e.vpe}return(0,k.Z)(r,[{key:"name",get:function(){return this._name},set:function(i){this._name=i,this._updateRadioButtonNames()}},{key:"labelPosition",get:function(){return this._labelPosition},set:function(i){this._labelPosition="before"===i?"before":"after",this._markRadiosForCheck()}},{key:"value",get:function(){return this._value},set:function(i){this._value!==i&&(this._value=i,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}},{key:"_checkSelectedRadioButton",value:function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}},{key:"selected",get:function(){return this._selected},set:function(i){this._selected=i,this.value=i?i.value:null,this._checkSelectedRadioButton()}},{key:"disabled",get:function(){return this._disabled},set:function(i){this._disabled=(0,On.Ig)(i),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(i){this._required=(0,On.Ig)(i),this._markRadiosForCheck()}},{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"_touch",value:function(){this.onTouched&&this.onTouched()}},{key:"_updateRadioButtonNames",value:function(){var i=this;this._radios&&this._radios.forEach(function(o){o.name=i.name,o._markForCheck()})}},{key:"_updateSelectedRadioFromValue",value:function(){var i=this;this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(function(a){a.checked=i.value===a.value,a.checked&&(i._selected=a)}))}},{key:"_emitChangeEvent",value:function(){this._isInitialized&&this.change.emit(new Rq(this._selected,this._value))}},{key:"_markRadiosForCheck",value:function(){this._radios&&this._radios.forEach(function(i){return i._markForCheck()})}},{key:"writeValue",value:function(i){this.value=i,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(i){this._controlValueAccessorChangeFn=i}},{key:"registerOnTouched",value:function(i){this.onTouched=i}},{key:"setDisabledState",value:function(i){this.disabled=i,this._changeDetector.markForCheck()}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.sBO))},n.\u0275dir=e.lG2({type:n,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),n}(),vl=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(Zq);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["mat-radio-group"]],contentQueries:function(t,i,o){var a;1&t&&e.Suo(o,gl,5),2&t&&e.iGM(a=e.CRH())&&(i._radios=a)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[e._Bn([sle,{provide:Nq,useExisting:n}]),e.qOj]}),n}(),ule=(0,un.Kr)((0,un.sb)(function n(r){(0,g.Z)(this,n),this._elementRef=r})),cle=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u,p,m,b,R){var F;return(0,g.Z)(this,i),(F=t.call(this,a))._changeDetector=s,F._focusMonitor=u,F._radioDispatcher=p,F._providerOverride=b,F._uniqueId="mat-radio-".concat(++Iq),F.id=F._uniqueId,F.change=new e.vpe,F._checked=!1,F._value=null,F._removeUniqueSelectionListener=function(){},F.radioGroup=o,F._noopAnimations="NoopAnimations"===m,R&&(F.tabIndex=(0,On.su)(R,0)),F._removeUniqueSelectionListener=p.listen(function(G,Y){G!==F.id&&Y===F.name&&(F.checked=!1)}),F}return(0,k.Z)(i,[{key:"checked",get:function(){return this._checked},set:function(a){var s=(0,On.Ig)(a);this._checked!==s&&(this._checked=s,s&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!s&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),s&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}},{key:"value",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)))}},{key:"labelPosition",get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(a){this._labelPosition=a}},{key:"disabled",get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(a){this._setDisabled((0,On.Ig)(a))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(a){this._required=(0,On.Ig)(a)}},{key:"color",get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(a){this._color=a}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"focus",value:function(a,s){s?this._focusMonitor.focusVia(this._inputElement,s,a):this._inputElement.nativeElement.focus(a)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"ngOnInit",value:function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}},{key:"ngAfterViewInit",value:function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(s){!s&&a.radioGroup&&a.radioGroup._touch()})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}},{key:"_emitChangeEvent",value:function(){this.change.emit(new Rq(this,this._value))}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onInputClick",value:function(a){a.stopPropagation()}},{key:"_onInputInteraction",value:function(a){if(a.stopPropagation(),!this.checked&&!this.disabled){var s=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),s&&this.radioGroup._emitChangeEvent())}}},{key:"_setDisabled",value:function(a){this._disabled!==a&&(this._disabled=a,this._changeDetector.markForCheck())}}]),i}(ule);return n.\u0275fac=function(t){return new(t||n)(e.Y36(Zq),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(xi.tE),e.Y36(Wi.A8),e.Y36(String),e.Y36(void 0),e.Y36(String))},n.\u0275dir=e.lG2({type:n,viewQuery:function(t,i){var o;1&t&&e.Gf(nle,5),2&t&&e.iGM(o=e.CRH())&&(i._inputElement=o.first)},inputs:{id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},features:[e.qOj]}),n}(),gl=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u,p,m,b,R){return(0,g.Z)(this,i),t.call(this,o,a,s,u,p,m,b,R)}return i}(cle);return n.\u0275fac=function(t){return new(t||n)(e.Y36(Nq,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(xi.tE),e.Y36(Wi.A8),e.Y36(Cs.Qb,8),e.Y36(ole,8),e.$8M("tabindex"))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,i){1&t&&e.NdJ("focus",function(){return i._inputElement.nativeElement.focus()}),2&t&&(e.uIk("tabindex",null)("id",i.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),e.ekj("mat-radio-checked",i.checked)("mat-radio-disabled",i.disabled)("_mat-animation-noopable",i._noopAnimations)("mat-primary","primary"===i.color)("mat-accent","accent"===i.color)("mat-warn","warn"===i.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[e.qOj],ngContentSelectors:ile,decls:13,vars:20,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(t,i){if(1&t&&(e.F$t(),e.TgZ(0,"label",0,1),e.TgZ(2,"span",2),e._UZ(3,"span",3),e._UZ(4,"span",4),e.TgZ(5,"input",5,6),e.NdJ("change",function(s){return i._onInputInteraction(s)})("click",function(s){return i._onInputClick(s)}),e.qZA(),e.TgZ(7,"span",7),e._UZ(8,"span",8),e.qZA(),e.qZA(),e.TgZ(9,"span",9),e.TgZ(10,"span",10),e._uU(11,"\xa0"),e.qZA(),e.Hsn(12),e.qZA(),e.qZA()),2&t){var o=e.MAs(1);e.uIk("for",i.inputId),e.xp6(5),e.Q6J("id",i.inputId)("checked",i.checked)("disabled",i.disabled)("tabIndex",i.tabIndex)("required",i.required),e.uIk("name",i.name)("value",i.value)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby)("aria-describedby",i.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",o)("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(18,rle,i._noopAnimations?0:150)),e.xp6(2),e.ekj("mat-radio-label-before","before"==i.labelPosition)}},directives:[un.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),n}(),dle=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[un.si,un.BQ],un.BQ]}),n}(),ple=function(){function n(r,t,i,o,a,s,u,p){this.route=r,this.serverService=t,this.builtInTemplatesService=i,this.router=o,this.toasterService=a,this.templateMocksService=s,this.formBuilder=u,this.computeService=p,this.templateName="",this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.formGroup=this.formBuilder.group({templateName:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.computeService.getComputes(i).subscribe(function(o){o.filter(function(a){return"vm"===a.compute_id}).length>0&&(r.isGns3VmAvailable=!0)})})},n.prototype.setServerType=function(r){"gns3 vm"===r&&this.isGns3VmAvailable?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","builtin","cloud-nodes"])},n.prototype.addTemplate=function(){var t,r=this;this.formGroup.invalid?this.toasterService.error("Fill all required fields"):(this.templateMocksService.getCloudNodeTemplate().subscribe(function(i){t=i}),t.template_id=(0,wa.v4)(),t.name=this.formGroup.get("templateName").value,t.compute_id=this.isGns3VmChosen?"vm":"local",this.builtInTemplatesService.addTemplate(this.server,t).subscribe(function(i){r.goBack()}))},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(ud),e.Y36(Er),e.Y36(er),e.Y36(ic),e.Y36(ne.qu),e.Y36(oc.X))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-cloud-nodes-add-template"]],decls:20,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"disabled","click"],[3,"formGroup"],[1,"form-field"],["formControlName","templateName","matInput","","type","text","placeholder","Template name"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"New cloud node template"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"mat-card",5),e.TgZ(7,"mat-radio-group",6),e.TgZ(8,"mat-radio-button",7),e.NdJ("click",function(){return i.setServerType("local")}),e._uU(9,"Run the cloud node locally"),e.qZA(),e.TgZ(10,"mat-radio-button",8),e.NdJ("click",function(){return i.setServerType("gns3 vm")}),e._uU(11,"Run the cloud node on the GNS3 VM"),e.qZA(),e.qZA(),e.TgZ(12,"form",9),e.TgZ(13,"mat-form-field",10),e._UZ(14,"input",11),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",12),e.TgZ(16,"button",13),e.NdJ("click",function(){return i.goBack()}),e._uU(17,"Cancel"),e.qZA(),e.TgZ(18,"button",14),e.NdJ("click",function(){return i.addTemplate()}),e._uU(19,"Add template"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(10),e.Q6J("disabled",!i.isGns3VmAvailable),e.xp6(2),e.Q6J("formGroup",i.formGroup))},directives:[_i,vl,gl,ne._Y,ne.JL,ne.sg,Hn.KE,ne.Fj,dr,ne.JJ,ne.u,An],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),Gf=function(){function n(){}return n.prototype.getCategoriesForCloudNodes=function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]},n.prototype.getConsoleTypesForCloudNodes=function(){return["telnet","vnc","spice","http","https","none"]},n.prototype.getCategoriesForEthernetHubs=function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]},n.prototype.getCategoriesForEthernetSwitches=function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]},n.prototype.getConsoleTypesForEthernetSwitches=function(){return["telnet","none"]},n.prototype.getPortTypesForEthernetSwitches=function(){return["access","dot1q","qinq"]},n.prototype.getEtherTypesForEthernetSwitches=function(){return["0x8100","0x88A8","0x9100","0x9200"]},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),fle=f(61106),TS=function(){function n(r){this.httpServer=r,this.symbols=new to.X([]),this.maximumSymbolSize=80}return n.prototype.getMaximumSymbolSize=function(){return this.maximumSymbolSize},n.prototype.get=function(r){return this.symbols.getValue().find(function(t){return t.symbol_id===r})},n.prototype.getDimensions=function(r,t){var i=encodeURI(t);return this.httpServer.get(r,"/symbols/"+i+"/dimensions")},n.prototype.scaleDimensionsForNode=function(r){var t=r.width>r.height?this.maximumSymbolSize/r.width:this.maximumSymbolSize/r.height;return{width:r.width*t,height:r.height*t}},n.prototype.getByFilename=function(r){return this.symbols.getValue().find(function(t){return t.filename===r})},n.prototype.add=function(r,t,i){return this.cache=null,this.httpServer.post(r,"/symbols/"+t+"/raw",i)},n.prototype.load=function(r){return this.httpServer.get(r,"/symbols")},n.prototype.list=function(r){return this.cache||(this.cache=this.load(r).pipe((0,fle.d)(1))),this.cache},n.prototype.raw=function(r,t){var i=encodeURI(t);return this.httpServer.getText(r,"/symbols/"+i+"/raw")},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),mle=function(){function n(){}return n.prototype.transform=function(r,t){return r?t?(t=t.toLowerCase(),r.filter(function(i){return i.filename.toLowerCase().includes(t)})):r:[]},n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=e.Yjl({name:"filenamefilter",type:n,pure:!0}),n}(),vle=function(n){return{buttonSelected:n}},gle=function(n){return{imageSelected:n}};function _le(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",12),e.TgZ(1,"button",13),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw().setSelected(u.symbol_id)}),e._UZ(2,"img",14),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.oxw();e.xp6(1),e.Q6J("ngClass",e.VKq(3,vle,o.isSelected===i.symbol_id)),e.xp6(1),e.Q6J("ngClass",e.VKq(5,gle,o.isSelected===i.symbol_id))("src",o.getImageSourceForTemplate(i.symbol_id),e.LSH)}}var yle=function(){return{standalone:!0}},Lq=function(){function n(r){this.symbolService=r,this.symbolChanged=new e.vpe,this.symbols=[],this.filteredSymbols=[],this.isSelected="",this.searchText=""}return n.prototype.ngOnInit=function(){this.isSelected=this.symbol,this.loadSymbols()},n.prototype.setFilter=function(r){this.filteredSymbols="all"===r?this.symbols:this.symbols.filter("builtin"===r?function(t){return t.builtin}:function(t){return!t.builtin})},n.prototype.setSelected=function(r){this.isSelected=r,this.symbolChanged.emit(this.isSelected)},n.prototype.loadSymbols=function(){var r=this;this.symbolService.list(this.server).subscribe(function(t){r.symbols=t,r.filteredSymbols=t})},n.prototype.uploadSymbolFile=function(r){this.readSymbolFile(r.target)},n.prototype.readSymbolFile=function(r){var t=this,i=r.files[0],o=r.files[0].name,a=new FileReader,s=new Image;a.onloadend=function(){var p=t.createSvgFileForImage(a.result,s);t.symbolService.add(t.server,o,p).subscribe(function(){t.loadSymbols()})},s.onload=function(){a.readAsDataURL(i)},s.src=window.URL.createObjectURL(i)},n.prototype.createSvgFileForImage=function(r,t){return'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="'+t.height+'" \n width="'+t.width+'">\n<image height="'+t.height+'" width="'+t.width+'" xlink:href="'+r+'"/>\n</svg>'},n.prototype.getImageSourceForTemplate=function(r){return this.server.protocol+"//"+this.server.host+":"+this.server.port+"/v2/symbols/"+r+"/raw"},n.\u0275fac=function(t){return new(t||n)(e.Y36(TS))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-symbols"]],inputs:{server:"server",symbol:"symbol"},outputs:{symbolChanged:"symbolChanged"},decls:20,vars:7,consts:[[1,"menu"],["aria-label","Select an option",1,"radio-selection"],["value","1","checked","",3,"click"],["value","2",3,"click"],["value","3",3,"click"],["type","file","accept",".svg, .bmp, .jpeg, .jpg, .gif, .png",1,"non-visible",3,"change"],["file",""],["mat-button","",3,"click"],[1,"example-full-width"],["matInput","","placeholder","Search by filename",3,"ngModel","ngModelOptions","ngModelChange"],[1,"wrapper"],["class","buttonWrapper",4,"ngFor","ngForOf"],[1,"buttonWrapper"],[1,"button",3,"ngClass","click"],["lazyimg","",1,"image",3,"ngClass","src"]],template:function(t,i){if(1&t){var o=e.EpF();e.TgZ(0,"div",0),e.TgZ(1,"mat-radio-group",1),e.TgZ(2,"mat-radio-button",2),e.NdJ("click",function(){return i.setFilter("all")}),e._uU(3,"All symbols"),e.qZA(),e.TgZ(4,"mat-radio-button",3),e.NdJ("click",function(){return i.setFilter("builtin")}),e._uU(5,"Built-in symbols"),e.qZA(),e.TgZ(6,"mat-radio-button",4),e.NdJ("click",function(){return i.setFilter("custom")}),e._uU(7,"Custom symbols"),e.qZA(),e.qZA(),e.TgZ(8,"input",5,6),e.NdJ("change",function(s){return i.uploadSymbolFile(s)}),e.qZA(),e.TgZ(10,"button",7),e.NdJ("click",function(){return e.CHM(o),e.MAs(9).click()}),e.TgZ(11,"mat-icon"),e._uU(12,"add"),e.qZA(),e._uU(13," Add symbol "),e.qZA(),e.qZA(),e.TgZ(14,"form"),e.TgZ(15,"mat-form-field",8),e.TgZ(16,"input",9),e.NdJ("ngModelChange",function(s){return i.searchText=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"div",10),e.YNc(18,_le,3,7,"div",11),e.ALo(19,"filenamefilter"),e.qZA()}2&t&&(e.xp6(16),e.Q6J("ngModel",i.searchText)("ngModelOptions",e.DdM(6,yle)),e.xp6(2),e.Q6J("ngForOf",e.xi3(19,3,i.filteredSymbols,i.searchText)))},directives:[vl,gl,An,ur,ne._Y,ne.JL,ne.F,Hn.KE,dr,ne.Fj,ne.JJ,ne.On,At.sg,At.mk],pipes:[mle],styles:[".buttonWrapper[_ngcontent-%COMP%]{width:85px;height:85px;display:flex;align-items:center;margin-left:auto;margin-right:auto;outline:none}.menu[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.button[_ngcontent-%COMP%]{background:border-box;border-width:0px;outline:none}.buttonSelected[_ngcontent-%COMP%]{border-width:3px;background:#0097a7!important}.image[_ngcontent-%COMP%]{width:65px;height:65px;filter:invert(0);--webkit-filter: invert(0) !important}.imageSelected[_ngcontent-%COMP%]{margin-left:0}.wrapper[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto;grid-template-columns:repeat(7,1fr);grid-row-gap:3em;grid-column-gap:1em}.radio-selection[_ngcontent-%COMP%]{width:90%}.mat-radio-button[_ngcontent-%COMP%] ~ .mat-radio-button[_ngcontent-%COMP%]{margin-left:16px}.non-visible[_ngcontent-%COMP%]{display:none}.example-full-width[_ngcontent-%COMP%]{width:100%}"]}),n}(),cd=function(){function n(){this.symbolChangedEmitter=new e.vpe,this.chosenSymbol=""}return n.prototype.symbolChanged=function(r){this.chosenSymbol=r},n.prototype.chooseSymbol=function(){this.symbolChangedEmitter.emit(this.chosenSymbol)},n.prototype.cancelChooseSymbol=function(){this.symbolChangedEmitter.emit(this.symbol)},n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-symbols-menu"]],inputs:{server:"server",symbol:"symbol"},outputs:{symbolChangedEmitter:"symbolChangedEmitter"},decls:11,vars:2,consts:[[1,"configurator"],[1,"default-header"],[1,"row"],[1,"col"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",1,"top-button",3,"click"],[1,"default-content"],[3,"server","symbol","symbolChanged"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Symbol selection"),e.qZA(),e.TgZ(5,"button",4),e.NdJ("click",function(){return i.cancelChooseSymbol()}),e._uU(6,"Cancel"),e.qZA(),e.TgZ(7,"button",5),e.NdJ("click",function(){return i.chooseSymbol()}),e._uU(8,"Choose symbol"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",6),e.TgZ(10,"app-symbols",7),e.NdJ("symbolChanged",function(a){return i.symbolChanged(a)}),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(10),e.Q6J("server",i.server)("symbol",i.symbol))},directives:[An,Lq],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function ble(n,r){if(1&n&&(e.TgZ(0,"mat-option",32),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function Cle(n,r){if(1&n&&(e.TgZ(0,"mat-option",32),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Sle(n,r){if(1&n&&(e.TgZ(0,"div",7),e.TgZ(1,"div",7),e._uU(2),e.qZA(),e._UZ(3,"br"),e._UZ(4,"br"),e.qZA()),2&n){var t=r.$implicit;e.xp6(2),e.Oqu(t.name)}}function Tle(n,r){if(1&n&&(e.TgZ(0,"mat-option",32),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function xle(n,r){if(1&n&&(e.TgZ(0,"div",7),e.TgZ(1,"div",7),e._uU(2),e.qZA(),e._UZ(3,"br"),e._UZ(4,"br"),e.qZA()),2&n){var t=r.$implicit;e.xp6(2),e.Oqu(t.name)}}function wle(n,r){1&n&&(e.TgZ(0,"th",42),e._uU(1,"Name"),e.qZA())}function kle(n,r){if(1&n&&(e.TgZ(0,"td",43),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.name)}}function Ele(n,r){1&n&&(e.TgZ(0,"th",42),e._uU(1,"Local port"),e.qZA())}function Mle(n,r){if(1&n&&(e.TgZ(0,"td",43),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.rport)}}function Ale(n,r){1&n&&(e.TgZ(0,"th",42),e._uU(1,"Type"),e.qZA())}function Dle(n,r){if(1&n&&(e.TgZ(0,"td",43),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.rhost)}}function Ole(n,r){1&n&&(e.TgZ(0,"th",42),e._uU(1,"Remote port"),e.qZA())}function Ple(n,r){if(1&n&&(e.TgZ(0,"td",43),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.lport)}}function Ile(n,r){1&n&&e._UZ(0,"tr",44)}function Rle(n,r){1&n&&e._UZ(0,"tr",45)}function Nle(n,r){if(1&n&&(e.TgZ(0,"table",33),e.ynx(1,34),e.YNc(2,wle,2,0,"th",35),e.YNc(3,kle,2,1,"td",36),e.BQk(),e.ynx(4,37),e.YNc(5,Ele,2,0,"th",35),e.YNc(6,Mle,2,1,"td",36),e.BQk(),e.ynx(7,38),e.YNc(8,Ale,2,0,"th",35),e.YNc(9,Dle,2,1,"td",36),e.BQk(),e.ynx(10,39),e.YNc(11,Ole,2,0,"th",35),e.YNc(12,Ple,2,1,"td",36),e.BQk(),e.YNc(13,Ile,1,0,"tr",40),e.YNc(14,Rle,1,0,"tr",41),e.qZA()),2&n){var t=e.oxw(2);e.Q6J("dataSource",t.dataSourceUdp),e.xp6(13),e.Q6J("matHeaderRowDef",t.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns)}}function Zle(n,r){1&n&&e._UZ(0,"br")}var Lle=function(){return{standalone:!0}};function Fle(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",6),e.TgZ(1,"mat-accordion"),e.TgZ(2,"mat-expansion-panel"),e.TgZ(3,"mat-expansion-panel-header"),e.TgZ(4,"mat-panel-title"),e._uU(5," General "),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",7),e.TgZ(7,"input",8),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().cloudNodeTemplate.name=a}),e.qZA(),e.qZA(),e.TgZ(8,"mat-form-field",7),e.TgZ(9,"input",9),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().cloudNodeTemplate.default_name_format=a}),e.qZA(),e.qZA(),e.TgZ(10,"mat-form-field",7),e.TgZ(11,"input",10),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().cloudNodeTemplate.symbol=a}),e.qZA(),e.qZA(),e.TgZ(12,"button",11),e.NdJ("click",function(){return e.CHM(t),e.oxw().chooseSymbol()}),e._uU(13,"Choose symbol"),e.qZA(),e._UZ(14,"br"),e._UZ(15,"br"),e.TgZ(16,"mat-form-field",7),e.TgZ(17,"mat-select",12),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().cloudNodeTemplate.category=a}),e.YNc(18,ble,2,2,"mat-option",13),e.qZA(),e.qZA(),e.TgZ(19,"mat-form-field",14),e.TgZ(20,"mat-select",15),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().cloudNodeTemplate.console_type=a}),e.YNc(21,Cle,2,2,"mat-option",13),e.qZA(),e.qZA(),e.TgZ(22,"mat-form-field",7),e.TgZ(23,"input",16),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().cloudNodeTemplate.remote_console_host=a}),e.qZA(),e.qZA(),e.TgZ(24,"mat-form-field",7),e.TgZ(25,"input",17),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().cloudNodeTemplate.remote_console_port=a}),e.qZA(),e.qZA(),e.TgZ(26,"mat-form-field",7),e.TgZ(27,"input",18),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().cloudNodeTemplate.remote_console_http_path=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(28,"mat-expansion-panel"),e.TgZ(29,"mat-expansion-panel-header"),e.TgZ(30,"mat-panel-title"),e._uU(31," Ethernet interfaces "),e.qZA(),e.qZA(),e.YNc(32,Sle,5,1,"div",19),e.TgZ(33,"mat-form-field",14),e.TgZ(34,"mat-select",20),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().ethernetInterface=a}),e.YNc(35,Tle,2,2,"mat-option",13),e.qZA(),e.qZA(),e.TgZ(36,"button",21),e.NdJ("click",function(){return e.CHM(t),e.oxw().onAddEthernetInterface()}),e._uU(37,"Add"),e.qZA(),e.qZA(),e.TgZ(38,"mat-expansion-panel"),e.TgZ(39,"mat-expansion-panel-header"),e.TgZ(40,"mat-panel-title"),e._uU(41," TAP interfaces "),e.qZA(),e.qZA(),e.YNc(42,xle,5,1,"div",19),e.TgZ(43,"mat-form-field",7),e.TgZ(44,"input",22),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().tapInterface=a}),e.qZA(),e.qZA(),e.TgZ(45,"button",21),e.NdJ("click",function(){return e.CHM(t),e.oxw().onAddTapInterface()}),e._uU(46,"Add"),e.qZA(),e.qZA(),e.TgZ(47,"mat-expansion-panel"),e.TgZ(48,"mat-expansion-panel-header"),e.TgZ(49,"mat-panel-title"),e._uU(50," UDP tunnels "),e.qZA(),e.qZA(),e.YNc(51,Nle,15,3,"table",23),e.YNc(52,Zle,1,0,"br",24),e.TgZ(53,"mat-form-field",7),e.TgZ(54,"input",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().newPort.name=a}),e.qZA(),e.qZA(),e.TgZ(55,"mat-form-field",7),e.TgZ(56,"input",26),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().newPort.lport=a}),e.qZA(),e.qZA(),e.TgZ(57,"mat-form-field",7),e.TgZ(58,"input",27),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().newPort.rhost=a}),e.qZA(),e.qZA(),e.TgZ(59,"mat-form-field",7),e.TgZ(60,"input",28),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().newPort.rport=a}),e.qZA(),e.qZA(),e.TgZ(61,"button",21),e.NdJ("click",function(){return e.CHM(t),e.oxw().onAddUdpInterface()}),e._uU(62,"Add"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(63,"div",29),e.TgZ(64,"button",30),e.NdJ("click",function(){return e.CHM(t),e.oxw().goBack()}),e._uU(65,"Cancel"),e.qZA(),e.TgZ(66,"button",31),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSave()}),e._uU(67,"Save"),e.qZA(),e._UZ(68,"br"),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(7),e.Q6J("ngModel",i.cloudNodeTemplate.name),e.xp6(2),e.Q6J("ngModel",i.cloudNodeTemplate.default_name_format),e.xp6(2),e.Q6J("ngModel",i.cloudNodeTemplate.symbol),e.xp6(6),e.Q6J("ngModel",i.cloudNodeTemplate.category),e.xp6(1),e.Q6J("ngForOf",i.categories),e.xp6(2),e.Q6J("ngModel",i.cloudNodeTemplate.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(2),e.Q6J("ngModel",i.cloudNodeTemplate.remote_console_host),e.xp6(2),e.Q6J("ngModel",i.cloudNodeTemplate.remote_console_port),e.xp6(2),e.Q6J("ngModel",i.cloudNodeTemplate.remote_console_http_path),e.xp6(5),e.Q6J("ngForOf",i.portsMappingEthernet),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(22,Lle))("ngModel",i.ethernetInterface),e.xp6(1),e.Q6J("ngForOf",i.ethernetInterfaces),e.xp6(7),e.Q6J("ngForOf",i.portsMappingTap),e.xp6(2),e.Q6J("ngModel",i.tapInterface),e.xp6(7),e.Q6J("ngIf",i.dataSourceUdp.length),e.xp6(1),e.Q6J("ngIf",i.dataSourceUdp.length),e.xp6(2),e.Q6J("ngModel",i.newPort.name),e.xp6(2),e.Q6J("ngModel",i.newPort.lport),e.xp6(2),e.Q6J("ngModel",i.newPort.rhost),e.xp6(2),e.Q6J("ngModel",i.newPort.rport)}}function Ble(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"app-symbols-menu",46),e.NdJ("symbolChangedEmitter",function(a){return e.CHM(t),e.oxw().symbolChanged(a)}),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("server",i.server)("symbol",i.cloudNodeTemplate.symbol)}}var Ule=function(n){return{shadowed:n}},Hle=function(){function n(r,t,i,o,a,s){this.route=r,this.serverService=t,this.builtInTemplatesService=i,this.toasterService=o,this.builtInTemplatesConfigurationService=a,this.router=s,this.isSymbolSelectionOpened=!1,this.categories=[],this.consoleTypes=[],this.tapInterface="",this.ethernetInterface="",this.ethernetInterfaces=["Ethernet 2","Ethernet 3"],this.portsMappingEthernet=[],this.portsMappingTap=[],this.portsMappingUdp=[],this.displayedColumns=["name","lport","rhost","rport"],this.dataSourceUdp=[],this.newPort={name:"",port_number:0}}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id"),i=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then(function(o){r.server=o,r.getConfiguration(),r.builtInTemplatesService.getTemplate(r.server,i).subscribe(function(a){r.cloudNodeTemplate=a,r.portsMappingEthernet=r.cloudNodeTemplate.ports_mapping.filter(function(s){return"ethernet"===s.type}),r.portsMappingTap=r.cloudNodeTemplate.ports_mapping.filter(function(s){return"tap"===s.type}),r.portsMappingUdp=r.cloudNodeTemplate.ports_mapping.filter(function(s){return"udp"===s.type}),r.dataSourceUdp=r.portsMappingUdp})})},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","builtin","cloud-nodes"])},n.prototype.getConfiguration=function(){this.categories=this.builtInTemplatesConfigurationService.getCategoriesForCloudNodes(),this.consoleTypes=this.builtInTemplatesConfigurationService.getConsoleTypesForCloudNodes()},n.prototype.onAddEthernetInterface=function(){this.ethernetInterface&&this.portsMappingEthernet.push({interface:this.ethernetInterface,name:this.ethernetInterface,port_number:0,type:"ethernet"})},n.prototype.onAddTapInterface=function(){this.tapInterface&&this.portsMappingTap.push({interface:this.tapInterface,name:this.tapInterface,port_number:0,type:"tap"})},n.prototype.onAddUdpInterface=function(){this.portsMappingUdp.push(this.newPort),this.dataSourceUdp=(0,Qn.ev)([],this.portsMappingUdp),this.newPort={name:"",port_number:0}},n.prototype.onSave=function(){var r=this;this.cloudNodeTemplate.ports_mapping=(0,Qn.ev)((0,Qn.ev)([],this.portsMappingEthernet),this.portsMappingTap),this.builtInTemplatesService.saveTemplate(this.server,this.cloudNodeTemplate).subscribe(function(t){r.toasterService.success("Changes saved")})},n.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},n.prototype.symbolChanged=function(r){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.cloudNodeTemplate.symbol=r},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(ud),e.Y36(er),e.Y36(Gf),e.Y36(Er))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-cloud-nodes-template-details"]],decls:7,vars:5,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[1,"form-field"],["matInput","","type","text","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console host",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console port",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console HTTP path",3,"ngModel","ngModelChange"],["class","form-field",4,"ngFor","ngForOf"],["placeholder","Ethernet interface",3,"ngModelOptions","ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["matInput","","type","text","placeholder","TAP interface",3,"ngModel","ngModelChange"],["class","table","mat-table","",3,"dataSource",4,"ngIf"],[4,"ngIf"],["matInput","","type","text","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Local port",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Remote host",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Remote port",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["mat-table","",1,"table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","rport"],["matColumnDef","rhost"],["matColumnDef","lport"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],[3,"server","symbol","symbolChangedEmitter"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Cloud configuration"),e.qZA(),e.qZA(),e.qZA(),e.YNc(5,Fle,69,23,"div",4),e.qZA(),e.YNc(6,Ble,1,2,"app-symbols-menu",5)),2&t&&(e.Q6J("ngClass",e.VKq(3,Ule,i.isSymbolSelectionOpened)),e.xp6(5),e.Q6J("ngIf",i.cloudNodeTemplate),e.xp6(1),e.Q6J("ngIf",i.isSymbolSelectionOpened&&i.cloudNodeTemplate))},directives:[At.mk,At.O5,ld,tc,nc,sd,Hn.KE,dr,ne.Fj,ne.JJ,ne.On,An,fi.gD,At.sg,ne.wV,un.ey,$l,fl,pl,dl,eu,tu,hl,ml,nu,ru,cd],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function Vle(n,r){}var ZZ=function n(){(0,g.Z)(this,n),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},qle={dialogContainer:(0,an.X$)("dialogContainer",[(0,an.SB)("void, exit",(0,an.oB)({opacity:0,transform:"scale(0.7)"})),(0,an.SB)("enter",(0,an.oB)({transform:"none"})),(0,an.eR)("* => enter",(0,an.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,an.oB)({transform:"none",opacity:1}))),(0,an.eR)("* => void, * => exit",(0,an.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,an.oB)({opacity:0})))])},jle=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u,p,m){var b;return(0,g.Z)(this,i),(b=t.call(this))._elementRef=o,b._focusTrapFactory=a,b._changeDetectorRef=s,b._config=p,b._focusMonitor=m,b._animationStateChanged=new e.vpe,b._elementFocusedBeforeDialogWasOpened=null,b._closeInteractionType=null,b.attachDomPortal=function(R){return b._portalOutlet.hasAttached(),b._portalOutlet.attachDomPortal(R)},b._ariaLabelledBy=p.ariaLabelledBy||null,b._document=u,b}return(0,k.Z)(i,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(a){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(a)}},{key:"attachTemplatePortal",value:function(a){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(a)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var a=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&a&&"function"==typeof a.focus){var s=(0,ei.ht)(),u=this._elementRef.nativeElement;(!s||s===this._document.body||s===u||u.contains(s))&&(this._focusMonitor?(this._focusMonitor.focusVia(a,this._closeInteractionType),this._closeInteractionType=null):a.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,ei.ht)())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var a=this._elementRef.nativeElement,s=(0,ei.ht)();return a===s||a.contains(s)}}]),i}(qi.en);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(xi.qV),e.Y36(e.sBO),e.Y36(At.K0,8),e.Y36(ZZ),e.Y36(xi.tE))},n.\u0275dir=e.lG2({type:n,viewQuery:function(t,i){var o;1&t&&e.Gf(qi.Pl,7),2&t&&e.iGM(o=e.CRH())&&(i._portalOutlet=o.first)},features:[e.qOj]}),n}(),zle=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){var o;return(0,g.Z)(this,i),(o=t.apply(this,arguments))._state="enter",o}return(0,k.Z)(i,[{key:"_onAnimationDone",value:function(a){var s=a.toState,u=a.totalTime;"enter"===s?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:u})):"exit"===s&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:u}))}},{key:"_onAnimationStart",value:function(a){var s=a.toState,u=a.totalTime;"enter"===s?this._animationStateChanged.next({state:"opening",totalTime:u}):("exit"===s||"void"===s)&&this._animationStateChanged.next({state:"closing",totalTime:u})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),i}(jle);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,i){1&t&&e.WFA("@dialogContainer.start",function(a){return i._onAnimationStart(a)})("@dialogContainer.done",function(a){return i._onAnimationDone(a)}),2&t&&(e.Ikx("id",i._id),e.uIk("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),e.d8E("@dialogContainer",i._state))},features:[e.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,i){1&t&&e.YNc(0,Vle,0,0,"ng-template",0)},directives:[qi.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[qle.dialogContainer]}}),n}(),Wle=0,Vr=function(){function n(r,t){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(Wle++);(0,g.Z)(this,n),this._overlayRef=r,this._containerInstance=t,this.id=o,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Pn.xQ,this._afterClosed=new Pn.xQ,this._beforeClosed=new Pn.xQ,this._state=0,t._id=o,t._animationStateChanged.pipe((0,vi.h)(function(a){return"opened"===a.state}),(0,eo.q)(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),t._animationStateChanged.pipe((0,vi.h)(function(a){return"closed"===a.state}),(0,eo.q)(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),r.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),r.keydownEvents().pipe((0,vi.h)(function(a){return a.keyCode===Yr.hY&&!i.disableClose&&!(0,Yr.Vb)(a)})).subscribe(function(a){a.preventDefault(),LZ(i,"keyboard")}),r.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():LZ(i,"mouse")})}return(0,k.Z)(n,[{key:"close",value:function(t){var i=this;this._result=t,this._containerInstance._animationStateChanged.pipe((0,vi.h)(function(o){return"closing"===o.state}),(0,eo.q)(1)).subscribe(function(o){i._beforeClosed.next(t),i._beforeClosed.complete(),i._overlayRef.detachBackdrop(),i._closeFallbackTimeout=setTimeout(function(){return i._finishDialogClose()},o.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(t){var i=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?i.left(t.left):i.right(t.right):i.centerHorizontally(),t&&(t.top||t.bottom)?t.top?i.top(t.top):i.bottom(t.bottom):i.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:t,height:i}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(t){return this._overlayRef.addPanelClass(t),this}},{key:"removePanelClass",value:function(t){return this._overlayRef.removePanelClass(t),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),n}();function LZ(n,r,t){return void 0!==n._containerInstance&&(n._containerInstance._closeInteractionType=r),n.close(t)}var dd=new e.OlP("MatDialogData"),Gle=new e.OlP("mat-dialog-default-options"),Fq=new e.OlP("mat-dialog-scroll-strategy"),Jle={provide:Fq,deps:[so.aV],useFactory:function(n){return function(){return n.scrollStrategies.block()}}},Qle=function(){var n=function(){function r(t,i,o,a,s,u,p,m,b){var R=this;(0,g.Z)(this,r),this._overlay=t,this._injector=i,this._defaultOptions=o,this._parentDialog=a,this._overlayContainer=s,this._dialogRefConstructor=p,this._dialogContainerType=m,this._dialogDataToken=b,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Pn.xQ,this._afterOpenedAtThisLevel=new Pn.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,iZ.P)(function(){return R.openDialogs.length?R._getAfterAllClosed():R._getAfterAllClosed().pipe((0,ua.O)(void 0))}),this._scrollStrategy=u}return(0,k.Z)(r,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var i=this._parentDialog;return i?i._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(i,o){var a=this;(o=function(n,r){return Object.assign(Object.assign({},r),n)}(o,this._defaultOptions||new ZZ)).id&&this.getDialogById(o.id);var s=this._createOverlay(o),u=this._attachDialogContainer(s,o),p=this._attachDialogContent(i,u,s,o);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(p),p.afterClosed().subscribe(function(){return a._removeOpenDialog(p)}),this.afterOpened.next(p),u._initializeWithAttachedContent(),p}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(i){return this.openDialogs.find(function(o){return o.id===i})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(i){var o=this._getOverlayConfig(i);return this._overlay.create(o)}},{key:"_getOverlayConfig",value:function(i){var o=new so.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:i.scrollStrategy||this._scrollStrategy(),panelClass:i.panelClass,hasBackdrop:i.hasBackdrop,direction:i.direction,minWidth:i.minWidth,minHeight:i.minHeight,maxWidth:i.maxWidth,maxHeight:i.maxHeight,disposeOnNavigation:i.closeOnNavigation});return i.backdropClass&&(o.backdropClass=i.backdropClass),o}},{key:"_attachDialogContainer",value:function(i,o){var s=e.zs3.create({parent:o&&o.viewContainerRef&&o.viewContainerRef.injector||this._injector,providers:[{provide:ZZ,useValue:o}]}),u=new qi.C5(this._dialogContainerType,o.viewContainerRef,s,o.componentFactoryResolver);return i.attach(u).instance}},{key:"_attachDialogContent",value:function(i,o,a,s){var u=new this._dialogRefConstructor(a,o,s.id);if(i instanceof e.Rgc)o.attachTemplatePortal(new qi.UE(i,null,{$implicit:s.data,dialogRef:u}));else{var p=this._createInjector(s,u,o),m=o.attachComponentPortal(new qi.C5(i,s.viewContainerRef,p));u.componentInstance=m.instance}return u.updateSize(s.width,s.height).updatePosition(s.position),u}},{key:"_createInjector",value:function(i,o,a){var s=i&&i.viewContainerRef&&i.viewContainerRef.injector,u=[{provide:this._dialogContainerType,useValue:a},{provide:this._dialogDataToken,useValue:i.data},{provide:this._dialogRefConstructor,useValue:o}];return i.direction&&(!s||!s.get(Ba.Is,null,e.XFs.Optional))&&u.push({provide:Ba.Is,useValue:{value:i.direction,change:(0,or.of)()}}),e.zs3.create({parent:s||this._injector,providers:u})}},{key:"_removeOpenDialog",value:function(i){var o=this.openDialogs.indexOf(i);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(a,s){a?s.setAttribute("aria-hidden",a):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var i=this._overlayContainer.getContainerElement();if(i.parentElement)for(var o=i.parentElement.children,a=o.length-1;a>-1;a--){var s=o[a];s!==i&&"SCRIPT"!==s.nodeName&&"STYLE"!==s.nodeName&&!s.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(s,s.getAttribute("aria-hidden")),s.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(i){for(var o=i.length;o--;)i[o].close()}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(so.aV),e.Y36(e.zs3),e.Y36(void 0),e.Y36(void 0),e.Y36(so.Xj),e.Y36(void 0),e.Y36(e.DyG),e.Y36(e.DyG),e.Y36(e.OlP))},n.\u0275dir=e.lG2({type:n}),n}(),no=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u,p,m,b){return(0,g.Z)(this,i),t.call(this,o,a,u,m,b,p,Vr,zle,dd)}return i}(Qle);return n.\u0275fac=function(t){return new(t||n)(e.LFG(so.aV),e.LFG(e.zs3),e.LFG(At.Ye,8),e.LFG(Gle,8),e.LFG(Fq),e.LFG(n,12),e.LFG(so.Xj))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Xle=0,ri=function(){var n=function(){function r(t,i,o){(0,g.Z)(this,r),this._dialogRef=t,this._elementRef=i,this._dialog=o,this.id="mat-dialog-title-".concat(Xle++)}return(0,k.Z)(r,[{key:"ngOnInit",value:function(){var i=this;this._dialogRef||(this._dialogRef=function(n,r){for(var t=n.nativeElement.parentElement;t&&!t.classList.contains("mat-dialog-container");)t=t.parentElement;return t?r.find(function(i){return i.id===t.id}):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var o=i._dialogRef._containerInstance;o&&!o._ariaLabelledBy&&(o._ariaLabelledBy=i.id)})}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr,8),e.Y36(e.SBq),e.Y36(no))},n.\u0275dir=e.lG2({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,i){2&t&&e.Ikx("id",i.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n}(),J_=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n}(),ti=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),n}();var $le=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[no,Jle],imports:[[so.U8,qi.eL,un.BQ],un.BQ]}),n}(),eue=function(){function n(r,t){this.dialogRef=r,this.data=t,this.templateName="",this.templateName=t.templateName}return n.prototype.ngOnInit=function(){},n.prototype.onNoClick=function(){this.dialogRef.close(!1)},n.prototype.onYesClick=function(){this.dialogRef.close(!0)},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(dd))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-delete-confirmation-dialog"]],decls:11,vars:1,consts:[[1,"dialogcontainer"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"spacer"],["mat-dialog-actions",""],["mat-button","","color","accent",1,"cancelButton",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"confirmButton",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"h1",1),e._uU(2,"Delete template"),e.qZA(),e.TgZ(3,"div",2),e._uU(4),e.qZA(),e._UZ(5,"div",3),e.TgZ(6,"div",4),e.TgZ(7,"button",5),e.NdJ("click",function(){return i.onNoClick()}),e._uU(8,"No"),e.qZA(),e.TgZ(9,"button",6),e.NdJ("click",function(){return i.onYesClick()}),e._uU(10," Yes "),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(4),e.hij("Are you sure you want to delete template ",i.templateName,"?"))},directives:[ri,J_,ti,An],styles:[".dialogcontainer[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column}.spacer[_ngcontent-%COMP%]{flex-grow:1}"]}),n}(),Q_=(f(26918),function(){function n(r){this.httpServer=r,this.newTemplateCreated=new Pn.xQ}return n.prototype.list=function(r){return this.httpServer.get(r,"/templates")},n.prototype.deleteTemplate=function(r,t){return this.httpServer.delete(r,"/templates/"+t,{observe:"body"})},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}()),ka=function(){function n(r,t,i){this.templateService=r,this.dialog=t,this.toasterService=i,this.deleteEvent=new e.vpe}return n.prototype.deleteItem=function(r,t){var i=this;this.dialog.open(eue,{width:"300px",height:"250px",data:{templateName:r},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(a){a&&i.templateService.deleteTemplate(i.server,t).subscribe(function(s){i.deleteEvent.emit(t),i.toasterService.success("Template "+r+" deleted.")})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Q_),e.Y36(no),e.Y36(er))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-delete-template"]],inputs:{server:"server"},outputs:{deleteEvent:"deleteEvent"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),pd=function(){function n(){this.emptyTemplatesListMessage="Empty templates list",this.textMessage&&(this.emptyTemplatesListMessage=this.textMessage)}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-empty-templates-list"]],inputs:{textMessage:"textMessage"},decls:4,vars:1,consts:[[1,"default-content"],[1,"matCard"],[1,"header"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"mat-card",1),e.TgZ(2,"h6",2),e._uU(3),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.hij(" ",i.emptyTemplatesListMessage," "))},directives:[_i],styles:[".header[_ngcontent-%COMP%]{text-align:center;color:#a9a9a9}"]}),n}(),Uq=f(8285),Hq=f(86004),tue=["mat-menu-item",""];function nue(n,r){1&n&&(e.O4$(),e.TgZ(0,"svg",2),e._UZ(1,"polygon",3),e.qZA())}var Vq=["*"];function rue(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",0),e.NdJ("keydown",function(a){return e.CHM(t),e.oxw()._handleKeydown(a)})("click",function(){return e.CHM(t),e.oxw().closed.emit("click")})("@transformMenu.start",function(a){return e.CHM(t),e.oxw()._onAnimationStart(a)})("@transformMenu.done",function(a){return e.CHM(t),e.oxw()._onAnimationDone(a)}),e.TgZ(1,"div",1),e.Hsn(2),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),e.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var h2={transformMenu:(0,an.X$)("transformMenu",[(0,an.SB)("void",(0,an.oB)({opacity:0,transform:"scale(0.8)"})),(0,an.eR)("void => enter",(0,an.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,an.oB)({opacity:1,transform:"scale(1)"}))),(0,an.eR)("* => void",(0,an.jt)("100ms 25ms linear",(0,an.oB)({opacity:0})))]),fadeInItems:(0,an.X$)("fadeInItems",[(0,an.SB)("showing",(0,an.oB)({opacity:1})),(0,an.eR)("void => *",[(0,an.oB)({opacity:0}),(0,an.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},qq=new e.OlP("MatMenuContent"),FZ=new e.OlP("MAT_MENU_PANEL"),iue=(0,un.Kr)((0,un.Id)(function(){return function n(){(0,g.Z)(this,n)}}())),Lr=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u,p){var m;return(0,g.Z)(this,i),(m=t.call(this))._elementRef=o,m._focusMonitor=s,m._parentMenu=u,m._changeDetectorRef=p,m.role="menuitem",m._hovered=new Pn.xQ,m._focused=new Pn.xQ,m._highlighted=!1,m._triggersSubmenu=!1,u&&u.addItem&&u.addItem((0,uS.Z)(m)),m}return(0,k.Z)(i,[{key:"focus",value:function(a,s){this._focusMonitor&&a?this._focusMonitor.focusVia(this._getHostElement(),a,s):this._getHostElement().focus(s),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(a){this.disabled&&(a.preventDefault(),a.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var a,s,u=this._elementRef.nativeElement.cloneNode(!0),p=u.querySelectorAll("mat-icon, .material-icons"),m=0;m<p.length;m++){var b=p[m];null===(a=b.parentNode)||void 0===a||a.removeChild(b)}return(null===(s=u.textContent)||void 0===s?void 0:s.trim())||""}},{key:"_setHighlighted",value:function(a){var s;this._highlighted=a,null===(s=this._changeDetectorRef)||void 0===s||s.markForCheck()}}]),i}(iue);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(At.K0),e.Y36(xi.tE),e.Y36(FZ,8),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(t,i){1&t&&e.NdJ("click",function(a){return i._checkDisabled(a)})("mouseenter",function(){return i._handleMouseEnter()}),2&t&&(e.uIk("role",i.role)("tabindex",i._getTabIndex())("aria-disabled",i.disabled.toString())("disabled",i.disabled||null),e.ekj("mat-menu-item",!0)("mat-menu-item-highlighted",i._highlighted)("mat-menu-item-submenu-trigger",i._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[e.qOj],attrs:tue,ngContentSelectors:Vq,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(t,i){1&t&&(e.F$t(),e.Hsn(0),e._UZ(1,"div",0),e.YNc(2,nue,2,0,"svg",1)),2&t&&(e.xp6(1),e.Q6J("matRippleDisabled",i.disableRipple||i.disabled)("matRippleTrigger",i._getHostElement()),e.xp6(1),e.Q6J("ngIf",i._triggersSubmenu))},directives:[un.wG,At.O5],encapsulation:2,changeDetection:0}),n}(),jq=new e.OlP("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}}),aue=0,xS=function(){var n=function(){function r(t,i,o){(0,g.Z)(this,r),this._elementRef=t,this._ngZone=i,this._defaultOptions=o,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new e.n_E,this._tabSubscription=us.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Pn.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new e.vpe,this.close=this.closed,this.panelId="mat-menu-panel-".concat(aue++)}return(0,k.Z)(r,[{key:"xPosition",get:function(){return this._xPosition},set:function(i){this._xPosition=i,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(i){this._yPosition=i,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(i){this._overlapTrigger=(0,On.Ig)(i)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(i){this._hasBackdrop=(0,On.Ig)(i)}},{key:"panelClass",set:function(i){var o=this,a=this._previousPanelClass;a&&a.length&&a.split(" ").forEach(function(s){o._classList[s]=!1}),this._previousPanelClass=i,i&&i.length&&(i.split(" ").forEach(function(s){o._classList[s]=!0}),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(i){this.panelClass=i}},{key:"ngOnInit",value:function(){this.setPositionClasses()}},{key:"ngAfterContentInit",value:function(){var i=this;this._updateDirectDescendants(),this._keyManager=new xi.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return i.closed.emit("tab")}),this._directDescendantItems.changes.pipe((0,ua.O)(this._directDescendantItems),(0,Hs.w)(function(o){return go.T.apply(void 0,(0,y.Z)(o.map(function(a){return a._focused})))})).subscribe(function(o){return i._keyManager.updateActiveItem(o)})}},{key:"ngOnDestroy",value:function(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}},{key:"_hovered",value:function(){return this._directDescendantItems.changes.pipe((0,ua.O)(this._directDescendantItems),(0,Hs.w)(function(o){return go.T.apply(void 0,(0,y.Z)(o.map(function(a){return a._hovered})))}))}},{key:"addItem",value:function(i){}},{key:"removeItem",value:function(i){}},{key:"_handleKeydown",value:function(i){var o=i.keyCode,a=this._keyManager;switch(o){case Yr.hY:(0,Yr.Vb)(i)||(i.preventDefault(),this.closed.emit("keydown"));break;case Yr.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case Yr.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(o===Yr.LH||o===Yr.JH)&&a.setFocusOrigin("keyboard"),a.onKeydown(i)}}},{key:"focusFirstItem",value:function(){var i=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe((0,eo.q)(1)).subscribe(function(){return i._focusFirstItem(o)}):this._focusFirstItem(o)}},{key:"_focusFirstItem",value:function(i){var o=this._keyManager;if(o.setFocusOrigin(i).setFirstItemActive(),!o.activeItem&&this._directDescendantItems.length)for(var a=this._directDescendantItems.first._getHostElement().parentElement;a;){if("menu"===a.getAttribute("role")){a.focus();break}a=a.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(i){var o=this,a=Math.min(this._baseElevation+i,24),s="".concat(this._elevationPrefix).concat(a),u=Object.keys(this._classList).find(function(p){return p.startsWith(o._elevationPrefix)});(!u||u===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[s]=!0,this._previousElevation=s)}},{key:"setPositionClasses",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,a=this._classList;a["mat-menu-before"]="before"===i,a["mat-menu-after"]="after"===i,a["mat-menu-above"]="above"===o,a["mat-menu-below"]="below"===o}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(i){this._animationDone.next(i),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(i){this._isAnimating=!0,"enter"===i.toState&&0===this._keyManager.activeItemIndex&&(i.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var i=this;this._allItems.changes.pipe((0,ua.O)(this._allItems)).subscribe(function(o){i._directDescendantItems.reset(o.filter(function(a){return a._parentMenu===i})),i._directDescendantItems.notifyOnChanges()})}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(jq))},n.\u0275dir=e.lG2({type:n,contentQueries:function(t,i,o){var a;1&t&&(e.Suo(o,qq,5),e.Suo(o,Lr,5),e.Suo(o,Lr,4)),2&t&&(e.iGM(a=e.CRH())&&(i.lazyContent=a.first),e.iGM(a=e.CRH())&&(i._allItems=a),e.iGM(a=e.CRH())&&(i.items=a))},viewQuery:function(t,i){var o;1&t&&e.Gf(e.Rgc,5),2&t&&e.iGM(o=e.CRH())&&(i.templateRef=o.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),n}(),ws=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s){var u;return(0,g.Z)(this,i),(u=t.call(this,o,a,s))._elevationPrefix="mat-elevation-z",u._baseElevation=4,u}return i}(xS);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(jq))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,i){2&t&&e.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[e._Bn([{provide:FZ,useExisting:n}]),e.qOj],ngContentSelectors:Vq,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,i){1&t&&(e.F$t(),e.YNc(0,rue,3,6,"ng-template"))},directives:[At.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[h2.transformMenu,h2.fadeInItems]},changeDetection:0}),n}(),zq=new e.OlP("mat-menu-scroll-strategy"),Wq={provide:zq,deps:[so.aV],useFactory:function(n){return function(){return n.scrollStrategies.reposition()}}},Yq=(0,ei.i$)({passive:!0}),$a=function(){var n=function(){function r(t,i,o,a,s,u,p,m){var b=this;(0,g.Z)(this,r),this._overlay=t,this._element=i,this._viewContainerRef=o,this._menuItemInstance=u,this._dir=p,this._focusMonitor=m,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=us.w.EMPTY,this._hoverSubscription=us.w.EMPTY,this._menuCloseSubscription=us.w.EMPTY,this._handleTouchStart=function(R){(0,xi.yG)(R)||(b._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new e.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new e.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=a,this._parentMaterialMenu=s instanceof xS?s:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,Yq),u&&(u._triggersSubmenu=this.triggersSubmenu())}return(0,k.Z)(r,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(i){this.menu=i}},{key:"menu",get:function(){return this._menu},set:function(i){var o=this;i!==this._menu&&(this._menu=i,this._menuCloseSubscription.unsubscribe(),i&&(this._menuCloseSubscription=i.close.subscribe(function(a){o._destroyMenu(a),("click"===a||"tab"===a)&&o._parentMaterialMenu&&o._parentMaterialMenu.closed.emit(a)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Yq),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var i=this;if(!this._menuOpen){this._checkMenu();var o=this._createOverlay(),a=o.getConfig();this._setPosition(a.positionStrategy),a.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,o.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return i.closeMenu()}),this._initMenu(),this.menu instanceof xS&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(i,o){this._focusMonitor&&i?this._focusMonitor.focusVia(this._element,i,o):this._element.nativeElement.focus(o)}},{key:"updatePosition",value:function(){var i;null===(i=this._overlayRef)||void 0===i||i.updatePosition()}},{key:"_destroyMenu",value:function(i){var o=this;if(this._overlayRef&&this.menuOpen){var a=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===i||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,a instanceof xS?(a._resetAnimation(),a.lazyContent?a._animationDone.pipe((0,vi.h)(function(s){return"void"===s.toState}),(0,eo.q)(1),(0,Br.R)(a.lazyContent._attached)).subscribe({next:function(){return a.lazyContent.detach()},complete:function(){return o._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),a.lazyContent&&a.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var i=0,o=this.menu.parentMenu;o;)i++,o=o.parentMenu;this.menu.setElevation(i)}}},{key:"_setIsMenuOpen",value:function(i){this._menuOpen=i,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(i)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var i=this._getOverlayConfig();this._subscribeToPositions(i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new so.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(i){var o=this;this.menu.setPositionClasses&&i.positionChanges.subscribe(function(a){o.menu.setPositionClasses("start"===a.connectionPair.overlayX?"after":"before","top"===a.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(i){var a=(0,C.Z)("before"===this.menu.xPosition?["end","start"]:["start","end"],2),s=a[0],u=a[1],m=(0,C.Z)("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),b=m[0],R=m[1],F=b,G=R,Y=s,ee=u,pe=0;this.triggersSubmenu()?(ee=s="before"===this.menu.xPosition?"start":"end",u=Y="end"===s?"start":"end",pe="bottom"===b?8:-8):this.menu.overlapTrigger||(F="top"===b?"bottom":"top",G="top"===R?"bottom":"top"),i.withPositions([{originX:s,originY:F,overlayX:Y,overlayY:b,offsetY:pe},{originX:u,originY:F,overlayX:ee,overlayY:b,offsetY:pe},{originX:s,originY:G,overlayX:Y,overlayY:R,offsetY:-pe},{originX:u,originY:G,overlayX:ee,overlayY:R,offsetY:-pe}])}},{key:"_menuClosingActions",value:function(){var i=this,o=this._overlayRef.backdropClick(),a=this._overlayRef.detachments(),s=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,or.of)(),u=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,vi.h)(function(p){return p!==i._menuItemInstance}),(0,vi.h)(function(){return i._menuOpen})):(0,or.of)();return(0,go.T)(o,s,u,a)}},{key:"_handleMousedown",value:function(i){(0,xi.X6)(i)||(this._openedBy=0===i.button?"mouse":void 0,this.triggersSubmenu()&&i.preventDefault())}},{key:"_handleKeydown",value:function(i){var o=i.keyCode;(o===Yr.K5||o===Yr.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(o===Yr.SV&&"ltr"===this.dir||o===Yr.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(i){this.triggersSubmenu()?(i.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var i=this;!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,vi.h)(function(o){return o===i._menuItemInstance&&!o.disabled}),(0,Hq.g)(0,Uq.E)).subscribe(function(){i._openedBy="mouse",i.menu instanceof xS&&i.menu._isAnimating?i.menu._animationDone.pipe((0,eo.q)(1),(0,Hq.g)(0,Uq.E),(0,Br.R)(i._parentMaterialMenu._hovered())).subscribe(function(){return i.openMenu()}):i.openMenu()}))}},{key:"_getPortal",value:function(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new qi.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(so.aV),e.Y36(e.SBq),e.Y36(e.s_b),e.Y36(zq),e.Y36(FZ,8),e.Y36(Lr,10),e.Y36(Ba.Is,8),e.Y36(xi.tE))},n.\u0275dir=e.lG2({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,i){1&t&&e.NdJ("mousedown",function(a){return i._handleMousedown(a)})("keydown",function(a){return i._handleKeydown(a)})("click",function(a){return i._handleClick(a)}),2&t&&e.uIk("aria-expanded",i.menuOpen||null)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),n}(),Jq=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[Wq],imports:[un.BQ]}),n}(),Qq=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[Wq],imports:[[At.ez,un.BQ,un.si,so.U8,Jq],Ta.ZD,un.BQ,Jq]}),n}();function lue(n,r){if(1&n&&(e.TgZ(0,"button",10),e._uU(1," Back "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences/builtin")}}function uue(n,r){if(1&n&&(e.TgZ(0,"button",11),e._uU(1," Add cloud node template "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences/builtin/cloud-nodes/addtemplate")}}function cue(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function due(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",15),e.TgZ(1,"mat-list-item",16),e._uU(2),e.qZA(),e.TgZ(3,"button",17),e.TgZ(4,"mat-icon"),e._uU(5,"more_vert"),e.qZA(),e.qZA(),e.TgZ(6,"mat-menu",null,18),e.TgZ(8,"button",19),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).deleteTemplate(u)}),e.TgZ(9,"mat-icon"),e._uU(10,"delete"),e.qZA(),e.TgZ(11,"span"),e._uU(12,"Delete"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.MAs(7);e.xp6(1),e.s9C("routerLink",i.template_id),e.xp6(1),e.Oqu(i.name),e.xp6(1),e.Q6J("matMenuTriggerFor",o)}}function pue(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,due,13,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.cloudNodesTemplates)}}function fue(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,pue,2,1,"mat-nav-list",6),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.server)}}var hue=function(){function n(r,t,i){this.route=r,this.serverService=t,this.builtInTemplatesService=i,this.cloudNodesTemplates=[]}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.getTemplates()})},n.prototype.getTemplates=function(){var r=this;this.builtInTemplatesService.getTemplates(this.server).subscribe(function(t){r.cloudNodesTemplates=t.filter(function(i){return"cloud"===i.template_type&&!i.builtin})})},n.prototype.deleteTemplate=function(r){this.deleteComponent.deleteItem(r.name,r.template_id)},n.prototype.onDeleteEvent=function(){this.getTemplates()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(ud))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-cloud-nodes-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(ka,5),2&t)&&(e.iGM(o=e.CRH())&&(i.deleteComponent=o.first))},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Cloud nodes templates"),e.qZA(),e.YNc(5,lue,2,1,"button",4),e.YNc(6,uue,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,cue,1,0,"app-empty-templates-list",6),e.YNc(8,fue,3,1,"div",7),e.qZA(),e.TgZ(9,"app-delete-template",8,9),e.NdJ("deleteEvent",function(){return i.onDeleteEvent()}),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",!i.cloudNodesTemplates.length),e.xp6(1),e.Q6J("ngIf",i.cloudNodesTemplates.length),e.xp6(1),e.Q6J("server",i.server))},directives:[At.O5,ka,An,fa,pd,Du,At.sg,xs,$a,ur,ws,Lr],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),mue=function(){function n(r,t,i,o,a,s,u,p){this.route=r,this.serverService=t,this.builtInTemplatesService=i,this.router=o,this.toasterService=a,this.templateMocksService=s,this.formBuilder=u,this.computeService=p,this.templateName="",this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.formGroup=this.formBuilder.group({templateName:new ne.NI("",ne.kI.required),numberOfPorts:new ne.NI(8,ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.computeService.getComputes(i).subscribe(function(o){o.filter(function(a){return"vm"===a.compute_id}).length>0&&(r.isGns3VmAvailable=!0)})})},n.prototype.setServerType=function(r){"gns3 vm"===r&&this.isGns3VmAvailable?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","builtin","ethernet-hubs"])},n.prototype.addTemplate=function(){var r=this;if(this.formGroup.invalid)this.toasterService.error("Fill all required fields");else{var t;this.templateMocksService.getEthernetHubTemplate().subscribe(function(o){t=o}),t.template_id=(0,wa.v4)(),t.name=this.formGroup.get("templateName").value,t.compute_id=this.isGns3VmChosen?"vm":"local";for(var i=0;i<this.formGroup.get("numberOfPorts").value;i++)t.ports_mapping.push({name:"Ethernet"+i,port_number:i});this.builtInTemplatesService.addTemplate(this.server,t).subscribe(function(){r.goBack()})}},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(ud),e.Y36(Er),e.Y36(er),e.Y36(ic),e.Y36(ne.qu),e.Y36(oc.X))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-ethernet-hubs-add-template"]],decls:22,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"disabled","click"],[3,"formGroup"],[1,"form-field"],["formControlName","templateName","matInput","","type","text","placeholder","Template name"],["formControlName","numberOfPorts","matInput","","type","number","placeholder","Number of ports"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"New Ethernet hub template"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"mat-card",5),e.TgZ(7,"mat-radio-group",6),e.TgZ(8,"mat-radio-button",7),e.NdJ("click",function(){return i.setServerType("local")}),e._uU(9,"Run the Ethernet Hub locally"),e.qZA(),e.TgZ(10,"mat-radio-button",8),e.NdJ("click",function(){return i.setServerType("gns3 vm")}),e._uU(11,"Run the Ethernet Hub on the GNS3 VM"),e.qZA(),e.qZA(),e.TgZ(12,"form",9),e.TgZ(13,"mat-form-field",10),e._UZ(14,"input",11),e.qZA(),e.TgZ(15,"mat-form-field",10),e._UZ(16,"input",12),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"div",13),e.TgZ(18,"button",14),e.NdJ("click",function(){return i.goBack()}),e._uU(19,"Cancel"),e.qZA(),e.TgZ(20,"button",15),e.NdJ("click",function(){return i.addTemplate()}),e._uU(21,"Add template"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(10),e.Q6J("disabled",!i.isGns3VmAvailable),e.xp6(2),e.Q6J("formGroup",i.formGroup))},directives:[_i,vl,gl,ne._Y,ne.JL,ne.sg,Hn.KE,ne.Fj,dr,ne.JJ,ne.u,ne.wV,An],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function vue(n,r){if(1&n&&(e.TgZ(0,"mat-option",19),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}var Kq=function(){return{standalone:!0}};function gue(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",6),e.TgZ(1,"mat-card"),e.TgZ(2,"form",7),e.TgZ(3,"mat-form-field",8),e.TgZ(4,"input",9),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().ethernetHubTemplate.name=a}),e.qZA(),e.qZA(),e.TgZ(5,"mat-form-field",8),e.TgZ(6,"input",10),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().ethernetHubTemplate.default_name_format=a}),e.qZA(),e.qZA(),e.TgZ(7,"mat-form-field",8),e.TgZ(8,"input",11),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().ethernetHubTemplate.symbol=a}),e.qZA(),e.qZA(),e.TgZ(9,"button",12),e.NdJ("click",function(){return e.CHM(t),e.oxw().chooseSymbol()}),e._uU(10,"Choose symbol"),e.qZA(),e._UZ(11,"br"),e._UZ(12,"br"),e.TgZ(13,"mat-form-field",8),e.TgZ(14,"mat-select",13),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().ethernetHubTemplate.category=a}),e.YNc(15,vue,2,2,"mat-option",14),e.qZA(),e.qZA(),e.TgZ(16,"mat-form-field",8),e.TgZ(17,"input",15),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().numberOfPorts=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",16),e.TgZ(19,"button",17),e.NdJ("click",function(){return e.CHM(t),e.oxw().goBack()}),e._uU(20,"Cancel"),e.qZA(),e.TgZ(21,"button",18),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSave()}),e._uU(22,"Save"),e.qZA(),e._UZ(23,"br"),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(2),e.Q6J("formGroup",i.inputForm),e.xp6(2),e.Q6J("ngModel",i.ethernetHubTemplate.name),e.xp6(2),e.Q6J("ngModel",i.ethernetHubTemplate.default_name_format),e.xp6(2),e.Q6J("ngModel",i.ethernetHubTemplate.symbol),e.xp6(6),e.Q6J("ngModelOptions",e.DdM(9,Kq))("ngModel",i.ethernetHubTemplate.category),e.xp6(1),e.Q6J("ngForOf",i.categories),e.xp6(2),e.Q6J("ngModel",i.numberOfPorts)("ngModelOptions",e.DdM(10,Kq))}}function _ue(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"app-symbols-menu",20),e.NdJ("symbolChangedEmitter",function(a){return e.CHM(t),e.oxw().symbolChanged(a)}),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("server",i.server)("symbol",i.ethernetHubTemplate.symbol)}}var yue=function(n){return{shadowed:n}},bue=function(){function n(r,t,i,o,a,s,u){this.route=r,this.serverService=t,this.builtInTemplatesService=i,this.toasterService=o,this.formBuilder=a,this.builtInTemplatesConfigurationService=s,this.router=u,this.isSymbolSelectionOpened=!1,this.categories=[],this.inputForm=this.formBuilder.group({templateName:new ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id"),i=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then(function(o){r.server=o,r.categories=r.builtInTemplatesConfigurationService.getCategoriesForEthernetHubs(),r.builtInTemplatesService.getTemplate(r.server,i).subscribe(function(a){r.ethernetHubTemplate=a,r.numberOfPorts=r.ethernetHubTemplate.ports_mapping.length})})},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","builtin","ethernet-hubs"])},n.prototype.onSave=function(){var r=this;if(this.inputForm.invalid||!this.numberOfPorts)this.toasterService.error("Fill all required fields");else{this.ethernetHubTemplate.ports_mapping=[];for(var t=0;t<this.numberOfPorts;t++)this.ethernetHubTemplate.ports_mapping.push({name:"Ethernet"+t,port_number:t});this.builtInTemplatesService.saveTemplate(this.server,this.ethernetHubTemplate).subscribe(function(i){r.toasterService.success("Changes saved")})}},n.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},n.prototype.symbolChanged=function(r){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.ethernetHubTemplate.symbol=r},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(ud),e.Y36(er),e.Y36(ne.qu),e.Y36(Gf),e.Y36(Er))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-ethernet-hubs-template-details"]],decls:7,vars:5,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","placeholder","Number of ports",3,"ngModel","ngModelOptions","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"server","symbol","symbolChangedEmitter"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Ethernet hub settings"),e.qZA(),e.qZA(),e.qZA(),e.YNc(5,gue,24,11,"div",4),e.qZA(),e.YNc(6,_ue,1,2,"app-symbols-menu",5)),2&t&&(e.Q6J("ngClass",e.VKq(3,yue,i.isSymbolSelectionOpened)),e.xp6(5),e.Q6J("ngIf",i.ethernetHubTemplate),e.xp6(1),e.Q6J("ngIf",i.isSymbolSelectionOpened&&i.ethernetHubTemplate))},directives:[At.mk,At.O5,_i,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,An,fi.gD,ne.On,At.sg,ne.wV,un.ey,cd],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function Cue(n,r){if(1&n&&(e.TgZ(0,"button",10),e._uU(1," Back "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences/builtin")}}function Sue(n,r){if(1&n&&(e.TgZ(0,"button",11),e._uU(1," Add Ethernet hub template "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences/builtin/ethernet-hubs/addtemplate")}}function Tue(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function xue(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",15),e.TgZ(1,"mat-list-item",16),e._uU(2),e.qZA(),e.TgZ(3,"button",17),e.TgZ(4,"mat-icon"),e._uU(5,"more_vert"),e.qZA(),e.qZA(),e.TgZ(6,"mat-menu",null,18),e.TgZ(8,"button",19),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).deleteTemplate(u)}),e.TgZ(9,"mat-icon"),e._uU(10,"delete"),e.qZA(),e.TgZ(11,"span"),e._uU(12,"Delete"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.MAs(7);e.xp6(1),e.s9C("routerLink",i.template_id),e.xp6(1),e.Oqu(i.name),e.xp6(1),e.Q6J("matMenuTriggerFor",o)}}function wue(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,xue,13,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.ethernetHubsTemplates)}}function kue(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,wue,2,1,"mat-nav-list",6),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.server)}}var Eue=function(){function n(r,t,i){this.route=r,this.serverService=t,this.builtInTemplatesService=i,this.ethernetHubsTemplates=[]}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.getTemplates()})},n.prototype.getTemplates=function(){var r=this;this.builtInTemplatesService.getTemplates(this.server).subscribe(function(t){r.ethernetHubsTemplates=t.filter(function(i){return"ethernet_hub"===i.template_type&&!i.builtin})})},n.prototype.deleteTemplate=function(r){this.deleteComponent.deleteItem(r.name,r.template_id)},n.prototype.onDeleteEvent=function(){this.getTemplates()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(ud))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-ethernet-hubs-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(ka,5),2&t)&&(e.iGM(o=e.CRH())&&(i.deleteComponent=o.first))},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Ethernet hubs templates"),e.qZA(),e.YNc(5,Cue,2,1,"button",4),e.YNc(6,Sue,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,Tue,1,0,"app-empty-templates-list",6),e.YNc(8,kue,3,1,"div",7),e.qZA(),e.TgZ(9,"app-delete-template",8,9),e.NdJ("deleteEvent",function(){return i.onDeleteEvent()}),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",!i.ethernetHubsTemplates.length),e.xp6(1),e.Q6J("ngIf",i.ethernetHubsTemplates.length),e.xp6(1),e.Q6J("server",i.server))},directives:[At.O5,ka,An,fa,pd,Du,At.sg,xs,$a,ur,ws,Lr],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),Mue=function(){function n(r,t,i,o,a,s,u,p){this.route=r,this.serverService=t,this.builtInTemplatesService=i,this.router=o,this.toasterService=a,this.templateMocksService=s,this.formBuilder=u,this.computeService=p,this.templateName="",this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.formGroup=this.formBuilder.group({templateName:new ne.NI("",ne.kI.required),numberOfPorts:new ne.NI(8,ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.computeService.getComputes(i).subscribe(function(o){o.filter(function(a){return"vm"===a.compute_id}).length>0&&(r.isGns3VmAvailable=!0)})})},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","builtin","ethernet-switches"])},n.prototype.setServerType=function(r){"gns3 vm"===r&&this.isGns3VmAvailable?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},n.prototype.addTemplate=function(){var r=this;if(this.formGroup.invalid)this.toasterService.error("Fill all required fields");else{var t;this.templateMocksService.getEthernetSwitchTemplate().subscribe(function(o){t=o}),t.template_id=(0,wa.v4)(),t.name=this.formGroup.get("templateName").value,t.compute_id=this.isGns3VmChosen?"vm":"local";for(var i=0;i<this.formGroup.get("numberOfPorts").value;i++)t.ports_mapping.push({ethertype:"",name:"Ethernet"+i,port_number:i,type:"access",vlan:1});this.builtInTemplatesService.addTemplate(this.server,t).subscribe(function(o){r.goBack()})}},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(ud),e.Y36(Er),e.Y36(er),e.Y36(ic),e.Y36(ne.qu),e.Y36(oc.X))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-ethernet-switches-add-template"]],decls:22,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"disabled","click"],[3,"formGroup"],[1,"form-field"],["formControlName","templateName","matInput","","type","text","placeholder","Template name"],["formControlName","numberOfPorts","matInput","","type","number","placeholder","Number of ports"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"New Ethernet switch template"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"mat-card",5),e.TgZ(7,"mat-radio-group",6),e.TgZ(8,"mat-radio-button",7),e.NdJ("click",function(){return i.setServerType("local")}),e._uU(9,"Run the Ethernet switch locally"),e.qZA(),e.TgZ(10,"mat-radio-button",8),e.NdJ("click",function(){return i.setServerType("gns3 vm")}),e._uU(11,"Run the Ethernet switch on the GNS3 VM"),e.qZA(),e.qZA(),e.TgZ(12,"form",9),e.TgZ(13,"mat-form-field",10),e._UZ(14,"input",11),e.qZA(),e.TgZ(15,"mat-form-field",10),e._UZ(16,"input",12),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"div",13),e.TgZ(18,"button",14),e.NdJ("click",function(){return i.goBack()}),e._uU(19,"Cancel"),e.qZA(),e.TgZ(20,"button",15),e.NdJ("click",function(){return i.addTemplate()}),e._uU(21,"Add template"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(10),e.Q6J("disabled",!i.isGns3VmAvailable),e.xp6(2),e.Q6J("formGroup",i.formGroup))},directives:[_i,vl,gl,ne._Y,ne.JL,ne.sg,Hn.KE,ne.Fj,dr,ne.JJ,ne.u,ne.wV,An],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function Aue(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"Port number"),e.qZA())}function Due(n,r){if(1&n&&(e.TgZ(0,"td",19),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.port_number)}}function Oue(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"VLAN"),e.qZA())}function Pue(n,r){if(1&n&&(e.TgZ(0,"td",19),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.vlan)}}function Iue(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"Type"),e.qZA())}function Rue(n,r){if(1&n&&(e.TgZ(0,"td",19),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.type)}}function Nue(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"EtherType"),e.qZA())}function Zue(n,r){if(1&n&&(e.TgZ(0,"td",19),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.ethertype)}}function Lue(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"Actions"),e.qZA())}function Fue(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"td",19),e.TgZ(1,"button",20),e.NdJ("click",function(){var a=e.CHM(t).$implicit;return e.oxw().delete(a)}),e.TgZ(2,"mat-icon",21),e._uU(3,"delete"),e.qZA(),e.qZA(),e.qZA()}}function Bue(n,r){1&n&&e._UZ(0,"tr",22)}function Uue(n,r){1&n&&e._UZ(0,"tr",23)}function Hue(n,r){if(1&n&&(e.TgZ(0,"mat-option",24),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Vue(n,r){if(1&n&&(e.TgZ(0,"mat-option",24),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}var Xq=function(){return{standalone:!0}},m2=function(){function n(r){this.builtInTemplatesConfigurationService=r,this.ethernetPorts=[],this.newPort={name:"",port_number:0},this.portTypes=[],this.etherTypes=[],this.displayedColumns=["port_number","vlan","type","ethertype","action"]}return n.prototype.ngOnInit=function(){this.getConfiguration()},n.prototype.getConfiguration=function(){this.etherTypes=this.builtInTemplatesConfigurationService.getEtherTypesForEthernetSwitches(),this.portTypes=this.builtInTemplatesConfigurationService.getPortTypesForEthernetSwitches()},n.prototype.onAdd=function(){this.ethernetPorts.push(this.newPort),this.newPort={name:"",port_number:0}},n.prototype.delete=function(r){this.ethernetPorts=this.ethernetPorts.filter(function(t){return t!==r})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Gf))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-ports"]],inputs:{ethernetPorts:"ethernetPorts"},decls:31,vars:13,consts:[["mat-table","",1,"table",3,"dataSource"],["matColumnDef","port_number"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","vlan"],["matColumnDef","type"],["matColumnDef","ethertype"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"form-field"],["matInput","","type","number","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","VLAN",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","EtherType",3,"ngModelOptions","ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete port","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete port"],["mat-header-row",""],["mat-row",""],[3,"value"]],template:function(t,i){1&t&&(e.TgZ(0,"table",0),e.ynx(1,1),e.YNc(2,Aue,2,0,"th",2),e.YNc(3,Due,2,1,"td",3),e.BQk(),e.ynx(4,4),e.YNc(5,Oue,2,0,"th",2),e.YNc(6,Pue,2,1,"td",3),e.BQk(),e.ynx(7,5),e.YNc(8,Iue,2,0,"th",2),e.YNc(9,Rue,2,1,"td",3),e.BQk(),e.ynx(10,6),e.YNc(11,Nue,2,0,"th",2),e.YNc(12,Zue,2,1,"td",3),e.BQk(),e.ynx(13,7),e.YNc(14,Lue,2,0,"th",2),e.YNc(15,Fue,4,0,"td",3),e.BQk(),e.YNc(16,Bue,1,0,"tr",8),e.YNc(17,Uue,1,0,"tr",9),e.qZA(),e._UZ(18,"br"),e.TgZ(19,"mat-form-field",10),e.TgZ(20,"input",11),e.NdJ("ngModelChange",function(a){return i.newPort.port_number=a}),e.qZA(),e.qZA(),e.TgZ(21,"mat-form-field",10),e.TgZ(22,"input",12),e.NdJ("ngModelChange",function(a){return i.newPort.vlan=a}),e.qZA(),e.qZA(),e.TgZ(23,"mat-form-field",13),e.TgZ(24,"mat-select",14),e.NdJ("ngModelChange",function(a){return i.newPort.type=a}),e.YNc(25,Hue,2,2,"mat-option",15),e.qZA(),e.qZA(),e.TgZ(26,"mat-form-field",13),e.TgZ(27,"mat-select",16),e.NdJ("ngModelChange",function(a){return i.newPort.ethertype=a}),e.YNc(28,Vue,2,2,"mat-option",15),e.qZA(),e.qZA(),e.TgZ(29,"button",17),e.NdJ("click",function(){return i.onAdd()}),e._uU(30,"Add"),e.qZA()),2&t&&(e.Q6J("dataSource",i.ethernetPorts),e.xp6(16),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns),e.xp6(3),e.Q6J("ngModel",i.newPort.port_number),e.xp6(2),e.Q6J("ngModel",i.newPort.vlan),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(11,Xq))("ngModel",i.newPort.type),e.xp6(1),e.Q6J("ngForOf",i.portTypes),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(12,Xq))("ngModel",i.newPort.ethertype),e.xp6(1),e.Q6J("ngForOf",i.etherTypes))},directives:[$l,fl,pl,dl,eu,tu,Hn.KE,dr,ne.wV,ne.Fj,ne.JJ,ne.On,fi.gD,At.sg,An,hl,ml,Xa,ur,nu,ru,un.ey],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function que(n,r){if(1&n&&(e.TgZ(0,"mat-option",22),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function jue(n,r){if(1&n&&(e.TgZ(0,"mat-option",22),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}var $q=function(){return{standalone:!0}};function zue(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",6),e.TgZ(1,"mat-accordion"),e.TgZ(2,"mat-expansion-panel"),e.TgZ(3,"mat-expansion-panel-header"),e.TgZ(4,"mat-panel-title"),e._uU(5," General settings "),e.qZA(),e.qZA(),e.TgZ(6,"form",7),e.TgZ(7,"mat-form-field",8),e.TgZ(8,"input",9),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().ethernetSwitchTemplate.name=a}),e.qZA(),e.qZA(),e.TgZ(9,"mat-form-field",8),e.TgZ(10,"input",10),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().ethernetSwitchTemplate.default_name_format=a}),e.qZA(),e.qZA(),e.TgZ(11,"mat-form-field",8),e.TgZ(12,"input",11),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().ethernetSwitchTemplate.symbol=a}),e.qZA(),e.qZA(),e.TgZ(13,"button",12),e.NdJ("click",function(){return e.CHM(t),e.oxw().chooseSymbol()}),e._uU(14,"Choose symbol"),e.qZA(),e._UZ(15,"br"),e._UZ(16,"br"),e.TgZ(17,"mat-form-field",8),e.TgZ(18,"mat-select",13),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().ethernetSwitchTemplate.category=a}),e.YNc(19,que,2,2,"mat-option",14),e.qZA(),e.qZA(),e.TgZ(20,"mat-form-field",15),e.TgZ(21,"mat-select",16),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().ethernetSwitchTemplate.console_type=a}),e.YNc(22,jue,2,2,"mat-option",14),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"mat-expansion-panel"),e.TgZ(24,"mat-expansion-panel-header"),e.TgZ(25,"mat-panel-title"),e._uU(26," Port settings "),e.qZA(),e.qZA(),e._UZ(27,"app-ports",17,18),e.qZA(),e.qZA(),e.TgZ(29,"div",19),e.TgZ(30,"button",20),e.NdJ("click",function(){return e.CHM(t),e.oxw().goBack()}),e._uU(31,"Cancel"),e.qZA(),e.TgZ(32,"button",21),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSave()}),e._uU(33,"Save"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(6),e.Q6J("formGroup",i.inputForm),e.xp6(2),e.Q6J("ngModel",i.ethernetSwitchTemplate.name),e.xp6(2),e.Q6J("ngModel",i.ethernetSwitchTemplate.default_name_format),e.xp6(2),e.Q6J("ngModel",i.ethernetSwitchTemplate.symbol),e.xp6(6),e.Q6J("ngModelOptions",e.DdM(11,$q))("ngModel",i.ethernetSwitchTemplate.category),e.xp6(1),e.Q6J("ngForOf",i.categories),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(12,$q))("ngModel",i.ethernetSwitchTemplate.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(5),e.Q6J("ethernetPorts",i.ethernetSwitchTemplate.ports_mapping)}}function Wue(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"app-symbols-menu",23),e.NdJ("symbolChangedEmitter",function(a){return e.CHM(t),e.oxw().symbolChanged(a)}),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("server",i.server)("symbol",i.ethernetSwitchTemplate.symbol)}}var Gue=function(n){return{shadowed:n}},Yue=function(){function n(r,t,i,o,a,s,u){this.route=r,this.serverService=t,this.builtInTemplatesService=i,this.toasterService=o,this.formBuilder=a,this.builtInTemplatesConfigurationService=s,this.router=u,this.isSymbolSelectionOpened=!1,this.categories=[],this.consoleTypes=[],this.inputForm=this.formBuilder.group({templateName:new ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id"),i=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then(function(o){r.server=o,r.getConfiguration(),r.builtInTemplatesService.getTemplate(r.server,i).subscribe(function(a){r.ethernetSwitchTemplate=a})})},n.prototype.getConfiguration=function(){this.categories=this.builtInTemplatesConfigurationService.getCategoriesForEthernetSwitches(),this.consoleTypes=this.builtInTemplatesConfigurationService.getConsoleTypesForEthernetSwitches()},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","builtin","ethernet-switches"])},n.prototype.onSave=function(){var r=this;this.inputForm.invalid?this.toasterService.error("Fill all required fields"):(this.ethernetSwitchTemplate.ports_mapping=this.portsComponent.ethernetPorts,this.builtInTemplatesService.saveTemplate(this.server,this.ethernetSwitchTemplate).subscribe(function(t){r.toasterService.success("Changes saved")}))},n.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},n.prototype.symbolChanged=function(r){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.ethernetSwitchTemplate.symbol=r},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(ud),e.Y36(er),e.Y36(ne.qu),e.Y36(Gf),e.Y36(Er))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-ethernet-switches-template-details"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(m2,5),2&t)&&(e.iGM(o=e.CRH())&&(i.portsComponent=o.first))},decls:7,vars:5,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ethernetPorts"],["ports",""],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"server","symbol","symbolChangedEmitter"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Ethernet switch configuration"),e.qZA(),e.qZA(),e.qZA(),e.YNc(5,zue,34,13,"div",4),e.qZA(),e.YNc(6,Wue,1,2,"app-symbols-menu",5)),2&t&&(e.Q6J("ngClass",e.VKq(3,Gue,i.isSymbolSelectionOpened)),e.xp6(5),e.Q6J("ngIf",i.ethernetSwitchTemplate),e.xp6(1),e.Q6J("ngIf",i.isSymbolSelectionOpened&&i.ethernetSwitchTemplate))},directives:[At.mk,At.O5,ld,tc,nc,sd,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,An,fi.gD,ne.On,At.sg,m2,un.ey,cd],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function Jue(n,r){if(1&n&&(e.TgZ(0,"button",10),e._uU(1," Back "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences/builtin")}}function Que(n,r){if(1&n&&(e.TgZ(0,"button",11),e._uU(1," Add Ethernet switch template "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences/builtin/ethernet-switches/addtemplate")}}function Kue(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function Xue(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",15),e.TgZ(1,"mat-list-item",16),e._uU(2),e.qZA(),e.TgZ(3,"button",17),e.TgZ(4,"mat-icon"),e._uU(5,"more_vert"),e.qZA(),e.qZA(),e.TgZ(6,"mat-menu",null,18),e.TgZ(8,"button",19),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).deleteTemplate(u)}),e.TgZ(9,"mat-icon"),e._uU(10,"delete"),e.qZA(),e.TgZ(11,"span"),e._uU(12,"Delete"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.MAs(7);e.xp6(1),e.s9C("routerLink",i.template_id),e.xp6(1),e.Oqu(i.name),e.xp6(1),e.Q6J("matMenuTriggerFor",o)}}function $ue(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,Xue,13,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.ethernetSwitchesTemplates)}}function ece(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,$ue,2,1,"mat-nav-list",6),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.server)}}var tce=function(){function n(r,t,i){this.route=r,this.serverService=t,this.builtInTemplatesService=i,this.ethernetSwitchesTemplates=[]}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.getTemplates()})},n.prototype.getTemplates=function(){var r=this;this.builtInTemplatesService.getTemplates(this.server).subscribe(function(t){r.ethernetSwitchesTemplates=t.filter(function(i){return"ethernet_switch"===i.template_type&&!i.builtin})})},n.prototype.deleteTemplate=function(r){this.deleteComponent.deleteItem(r.name,r.template_id)},n.prototype.onDeleteEvent=function(){this.getTemplates()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(ud))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-ethernet-switches-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(ka,5),2&t)&&(e.iGM(o=e.CRH())&&(i.deleteComponent=o.first))},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Ethernet switches templates"),e.qZA(),e.YNc(5,Jue,2,1,"button",4),e.YNc(6,Que,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,Kue,1,0,"app-empty-templates-list",6),e.YNc(8,ece,3,1,"div",7),e.qZA(),e.TgZ(9,"app-delete-template",8,9),e.NdJ("deleteEvent",function(){return i.onDeleteEvent()}),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",!i.ethernetSwitchesTemplates.length),e.xp6(1),e.Q6J("ngIf",i.ethernetSwitchesTemplates.length),e.xp6(1),e.Q6J("server",i.server))},directives:[At.O5,ka,An,fa,pd,Du,At.sg,xs,$a,ur,ws,Lr],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),BZ=function(){return function(){}}(),ev=function(){function n(r){this.httpServer=r}return n.prototype.getTemplates=function(r){return this.httpServer.get(r,"/templates")},n.prototype.getTemplate=function(r,t){return this.httpServer.get(r,"/templates/"+t)},n.prototype.getImages=function(r){return this.httpServer.get(r,"/compute/docker/images")},n.prototype.addTemplate=function(r,t){return this.httpServer.post(r,"/templates",t)},n.prototype.saveTemplate=function(r,t){return this.httpServer.put(r,"/templates/"+t.template_id,t)},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),wS=function(){function n(){}return n.prototype.getConsoleTypes=function(){return["telnet","vnc","http","https","none"]},n.prototype.getCategories=function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]},n.prototype.getConsoleResolutions=function(){return["1920x1080","1366x768","1280x1024","1280x800","1024x768","800x600","640x480"]},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}();function nce(n,r){1&n&&e.Hsn(0)}var rce=["*"],ej=function(){var n=function(){function r(t){(0,g.Z)(this,r),this._elementRef=t}return(0,k.Z)(r,[{key:"focus",value:function(){this._elementRef.nativeElement.focus()}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),n}(),tj=function(){var n=function r(t){(0,g.Z)(this,r),this.template=t};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkStepLabel",""]]}),n}(),ice=0,nj=new e.OlP("STEPPER_GLOBAL_OPTIONS"),UZ=function(){var n=function(){function r(t,i){(0,g.Z)(this,r),this._stepper=t,this.interacted=!1,this.interactedStream=new e.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=i||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}return(0,k.Z)(r,[{key:"editable",get:function(){return this._editable},set:function(i){this._editable=(0,On.Ig)(i)}},{key:"optional",get:function(){return this._optional},set:function(i){this._optional=(0,On.Ig)(i)}},{key:"completed",get:function(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride},set:function(i){this._completedOverride=(0,On.Ig)(i)}},{key:"_getDefaultCompleted",value:function(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}},{key:"hasError",get:function(){return null==this._customError?this._getDefaultError():this._customError},set:function(i){this._customError=(0,On.Ig)(i)}},{key:"_getDefaultError",value:function(){return this.stepControl&&this.stepControl.invalid&&this.interacted}},{key:"select",value:function(){this._stepper.selected=this}},{key:"reset",value:function(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}},{key:"ngOnChanges",value:function(){this._stepper._stateChanged()}},{key:"_markAsInteracted",value:function(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}},{key:"_showError",value:function(){var i;return null!==(i=this._stepperOptions.showError)&&void 0!==i?i:null!=this._customError}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36((0,e.Gpc)(function(){return K_})),e.Y36(nj,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cdk-step"]],contentQueries:function(t,i,o){var a;1&t&&e.Suo(o,tj,5),2&t&&e.iGM(a=e.CRH())&&(i.stepLabel=a.first)},viewQuery:function(t,i){var o;1&t&&e.Gf(e.Rgc,7),2&t&&e.iGM(o=e.CRH())&&(i.content=o.first)},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[e.TTD],ngContentSelectors:rce,decls:1,vars:0,template:function(t,i){1&t&&(e.F$t(),e.YNc(0,nce,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),n}(),K_=function(){var n=function(){function r(t,i,o,a){(0,g.Z)(this,r),this._dir=t,this._changeDetectorRef=i,this._elementRef=o,this._destroyed=new Pn.xQ,this.steps=new e.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new e.vpe,this._orientation="horizontal",this._groupId=ice++}return(0,k.Z)(r,[{key:"linear",get:function(){return this._linear},set:function(i){this._linear=(0,On.Ig)(i)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(i){var o,a=(0,On.su)(i);this.steps&&this._steps?(this._isValidIndex(i),null===(o=this.selected)||void 0===o||o._markAsInteracted(),this._selectedIndex!==a&&!this._anyControlsInvalidOrPending(a)&&(a>=this._selectedIndex||this.steps.toArray()[a].editable)&&this._updateSelectedItemIndex(i)):this._selectedIndex=a}},{key:"selected",get:function(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0},set:function(i){this.selectedIndex=i&&this.steps?this.steps.toArray().indexOf(i):-1}},{key:"orientation",get:function(){return this._orientation},set:function(i){this._orientation=i,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===i)}},{key:"ngAfterContentInit",value:function(){var i=this;this._steps.changes.pipe((0,ua.O)(this._steps),(0,Br.R)(this._destroyed)).subscribe(function(o){i.steps.reset(o.filter(function(a){return a._stepper===i})),i.steps.notifyOnChanges()})}},{key:"ngAfterViewInit",value:function(){var i=this;this._keyManager=new xi.Em(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,or.of)()).pipe((0,ua.O)(this._layoutDirection()),(0,Br.R)(this._destroyed)).subscribe(function(o){return i._keyManager.withHorizontalOrientation(o)}),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(function(){i.selected||(i._selectedIndex=Math.max(i._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}},{key:"ngOnDestroy",value:function(){this.steps.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"next",value:function(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}},{key:"previous",value:function(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}},{key:"reset",value:function(){this._updateSelectedItemIndex(0),this.steps.forEach(function(i){return i.reset()}),this._stateChanged()}},{key:"_getStepLabelId",value:function(i){return"cdk-step-label-".concat(this._groupId,"-").concat(i)}},{key:"_getStepContentId",value:function(i){return"cdk-step-content-".concat(this._groupId,"-").concat(i)}},{key:"_stateChanged",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_getAnimationDirection",value:function(i){var o=i-this._selectedIndex;return o<0?"rtl"===this._layoutDirection()?"next":"previous":o>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}},{key:"_getIndicatorType",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",a=this.steps.toArray()[i],s=this._isCurrentStep(i);return a._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(a,s):this._getGuidelineLogic(a,s,o)}},{key:"_getDefaultIndicatorLogic",value:function(i,o){return i._showError()&&i.hasError&&!o?"error":!i.completed||o?"number":i.editable?"edit":"done"}},{key:"_getGuidelineLogic",value:function(i,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"number";return i._showError()&&i.hasError&&!o?"error":i.completed&&!o?"done":i.completed&&o?a:i.editable&&o?"edit":a}},{key:"_isCurrentStep",value:function(i){return this._selectedIndex===i}},{key:"_getFocusIndex",value:function(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}},{key:"_updateSelectedItemIndex",value:function(i){var o=this.steps.toArray();this.selectionChange.emit({selectedIndex:i,previouslySelectedIndex:this._selectedIndex,selectedStep:o[i],previouslySelectedStep:o[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(i):this._keyManager.updateActiveItem(i),this._selectedIndex=i,this._stateChanged()}},{key:"_onKeydown",value:function(i){var o=(0,Yr.Vb)(i),a=i.keyCode,s=this._keyManager;null==s.activeItemIndex||o||a!==Yr.L_&&a!==Yr.K5?s.onKeydown(i):(this.selectedIndex=s.activeItemIndex,i.preventDefault())}},{key:"_anyControlsInvalidOrPending",value:function(i){return!!(this._linear&&i>=0)&&this.steps.toArray().slice(0,i).some(function(o){var a=o.stepControl;return(a?a.invalid||a.pending||!o.interacted:!o.completed)&&!o.optional&&!o._completedOverride})}},{key:"_layoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_containsFocus",value:function(){var i=this._elementRef.nativeElement,o=(0,ei.ht)();return i===o||i.contains(o)}},{key:"_isValidIndex",value:function(i){return i>-1&&(!this.steps||i<this.steps.length)}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(Ba.Is,8),e.Y36(e.sBO),e.Y36(e.SBq),e.Y36(At.K0))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkStepper",""]],contentQueries:function(t,i,o){var a;1&t&&(e.Suo(o,UZ,5),e.Suo(o,ej,5)),2&t&&(e.iGM(a=e.CRH())&&(i._steps=a),e.iGM(a=e.CRH())&&(i._stepHeader=a))},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),n}(),oce=function(){var n=function(){function r(t){(0,g.Z)(this,r),this._stepper=t,this.type="submit"}return(0,k.Z)(r,[{key:"_handleClick",value:function(){this._stepper.next()}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(K_))},n.\u0275dir=e.lG2({type:n,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,i){1&t&&e.NdJ("click",function(){return i._handleClick()}),2&t&&e.Ikx("type",i.type)},inputs:{type:"type"}}),n}(),ace=function(){var n=function(){function r(t){(0,g.Z)(this,r),this._stepper=t,this.type="button"}return(0,k.Z)(r,[{key:"_handleClick",value:function(){this._stepper.previous()}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(K_))},n.\u0275dir=e.lG2({type:n,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,i){1&t&&e.NdJ("click",function(){return i._handleClick()}),2&t&&e.Ikx("type",i.type)},inputs:{type:"type"}}),n}(),sce=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[Ba.vT]]}),n}();function lce(n,r){if(1&n&&e.GkF(0,8),2&n){var t=e.oxw();e.Q6J("ngTemplateOutlet",t.iconOverrides[t.state])("ngTemplateOutletContext",t._getIconContext())}}function uce(n,r){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Oqu(t._getDefaultTextForState(t.state))}}function cce(n,r){if(1&n&&(e.TgZ(0,"mat-icon"),e._uU(1),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Oqu(t._getDefaultTextForState(t.state))}}function dce(n,r){if(1&n&&(e.ynx(0,9),e.YNc(1,uce,2,1,"span",10),e.YNc(2,cce,2,1,"mat-icon",11),e.BQk()),2&n){var t=e.oxw();e.Q6J("ngSwitch",t.state),e.xp6(1),e.Q6J("ngSwitchCase","number")}}function pce(n,r){if(1&n&&(e.TgZ(0,"div",12),e.GkF(1,13),e.qZA()),2&n){var t=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",t._templateLabel().template)}}function fce(n,r){if(1&n&&(e.TgZ(0,"div",12),e._uU(1),e.qZA()),2&n){var t=e.oxw();e.xp6(1),e.Oqu(t.label)}}function hce(n,r){if(1&n&&(e.TgZ(0,"div",14),e._uU(1),e.qZA()),2&n){var t=e.oxw();e.xp6(1),e.Oqu(t._intl.optionalLabel)}}function mce(n,r){if(1&n&&(e.TgZ(0,"div",15),e._uU(1),e.qZA()),2&n){var t=e.oxw();e.xp6(1),e.Oqu(t.errorMessage)}}function vce(n,r){}function gce(n,r){if(1&n&&(e.Hsn(0),e.YNc(1,vce,0,0,"ng-template",0)),2&n){var t=e.oxw();e.xp6(1),e.Q6J("cdkPortalOutlet",t._portal)}}var _ce=["*"];function yce(n,r){1&n&&e._UZ(0,"div",9)}var rj=function(r,t){return{step:r,i:t}};function bce(n,r){if(1&n&&(e.ynx(0),e.GkF(1,7),e.YNc(2,yce,1,0,"div",8),e.BQk()),2&n){var t=r.$implicit,i=r.index,o=r.last;e.oxw(2);var a=e.MAs(4);e.xp6(1),e.Q6J("ngTemplateOutlet",a)("ngTemplateOutletContext",e.WLB(3,rj,t,i)),e.xp6(1),e.Q6J("ngIf",!o)}}function Cce(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",10),e.NdJ("@horizontalStepTransition.done",function(u){return e.CHM(t),e.oxw(2)._animationDone.next(u)}),e.GkF(1,11),e.qZA()}if(2&n){var i=r.$implicit,o=r.index,a=e.oxw(2);e.Q6J("@horizontalStepTransition",a._getAnimationDirection(o))("id",a._getStepContentId(o)),e.uIk("aria-labelledby",a._getStepLabelId(o))("aria-expanded",a.selectedIndex===o),e.xp6(1),e.Q6J("ngTemplateOutlet",i.content)}}function Sce(n,r){if(1&n&&(e.ynx(0),e.TgZ(1,"div",3),e.YNc(2,bce,3,6,"ng-container",4),e.qZA(),e.TgZ(3,"div",5),e.YNc(4,Cce,2,5,"div",6),e.qZA(),e.BQk()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngForOf",t.steps),e.xp6(2),e.Q6J("ngForOf",t.steps)}}function Tce(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",13),e.GkF(1,7),e.TgZ(2,"div",14),e.TgZ(3,"div",15),e.NdJ("@verticalStepTransition.done",function(m){return e.CHM(t),e.oxw(2)._animationDone.next(m)}),e.TgZ(4,"div",16),e.GkF(5,11),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=r.index,a=r.last,s=e.oxw(2),u=e.MAs(4);e.xp6(1),e.Q6J("ngTemplateOutlet",u)("ngTemplateOutletContext",e.WLB(9,rj,i,o)),e.xp6(1),e.ekj("mat-stepper-vertical-line",!a),e.xp6(1),e.Q6J("@verticalStepTransition",s._getAnimationDirection(o))("id",s._getStepContentId(o)),e.uIk("aria-labelledby",s._getStepLabelId(o))("aria-expanded",s.selectedIndex===o),e.xp6(2),e.Q6J("ngTemplateOutlet",i.content)}}function xce(n,r){if(1&n&&(e.ynx(0),e.YNc(1,Tce,6,12,"div",12),e.BQk()),2&n){var t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.steps)}}function wce(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-step-header",17),e.NdJ("click",function(){return e.CHM(t).step.select()})("keydown",function(u){return e.CHM(t),e.oxw()._onKeydown(u)}),e.qZA()}if(2&n){var i=r.step,o=r.i,a=e.oxw();e.ekj("mat-horizontal-stepper-header","horizontal"===a.orientation)("mat-vertical-stepper-header","vertical"===a.orientation),e.Q6J("tabIndex",a._getFocusIndex()===o?0:-1)("id",a._getStepLabelId(o))("index",o)("state",a._getIndicatorType(o,i.state))("label",i.stepLabel||i.label)("selected",a.selectedIndex===o)("active",a._stepIsNavigable(o,i))("optional",i.optional)("errorMessage",i.errorMessage)("iconOverrides",a._iconOverrides)("disableRipple",a.disableRipple||!a._stepIsNavigable(o,i))("color",i.color||a.color),e.uIk("aria-posinset",o+1)("aria-setsize",a.steps.length)("aria-controls",a._getStepContentId(o))("aria-selected",a.selectedIndex==o)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null)("aria-disabled",!a._stepIsNavigable(o,i)||null)}}var v2=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(tj);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["","matStepLabel",""]],features:[e.qOj]}),n}(),g2=function(){var n=function r(){(0,g.Z)(this,r),this.changes=new Pn.xQ,this.optionalLabel="Optional"};return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({factory:function(){return new n},token:n,providedIn:"root"}),n}(),Ece={provide:g2,deps:[[new e.FiY,new e.tp0,g2]],useFactory:function(n){return n||new g2}},Mce=(0,un.pj)(function(n){(0,M.Z)(t,n);var r=(0,A.Z)(t);function t(i){return(0,g.Z)(this,t),r.call(this,i)}return t}(ej),"primary"),ij=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u){var p;return(0,g.Z)(this,i),(p=t.call(this,s))._intl=o,p._focusMonitor=a,p._intlSubscription=o.changes.subscribe(function(){return u.markForCheck()}),p}return(0,k.Z)(i,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(a,s){a?this._focusMonitor.focusVia(this._elementRef,a,s):this._elementRef.nativeElement.focus(s)}},{key:"_stringLabel",value:function(){return this.label instanceof v2?null:this.label}},{key:"_templateLabel",value:function(){return this.label instanceof v2?this.label:null}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_getIconContext",value:function(){return{index:this.index,active:this.active,optional:this.optional}}},{key:"_getDefaultTextForState",value:function(a){return"number"==a?"".concat(this.index+1):"edit"==a?"create":"error"==a?"warning":a}}]),i}(Mce);return n.\u0275fac=function(t){return new(t||n)(e.Y36(g2),e.Y36(xi.tE),e.Y36(e.SBq),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[e.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(t,i){1&t&&(e._UZ(0,"div",0),e.TgZ(1,"div"),e.TgZ(2,"div",1),e.YNc(3,lce,1,2,"ng-container",2),e.YNc(4,dce,3,2,"ng-container",3),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.YNc(6,pce,2,1,"div",5),e.YNc(7,fce,2,1,"div",5),e.YNc(8,hce,2,1,"div",6),e.YNc(9,mce,2,1,"div",7),e.qZA()),2&t&&(e.Q6J("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disableRipple),e.xp6(1),e.Gre("mat-step-icon-state-",i.state," mat-step-icon"),e.ekj("mat-step-icon-selected",i.selected),e.xp6(1),e.Q6J("ngSwitch",!(!i.iconOverrides||!i.iconOverrides[i.state])),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(2),e.ekj("mat-step-label-active",i.active)("mat-step-label-selected",i.selected)("mat-step-label-error","error"==i.state),e.xp6(1),e.Q6J("ngIf",i._templateLabel()),e.xp6(1),e.Q6J("ngIf",i._stringLabel()),e.xp6(1),e.Q6J("ngIf",i.optional&&"error"!=i.state),e.xp6(1),e.Q6J("ngIf","error"==i.state))},directives:[un.wG,At.RF,At.n9,At.ED,At.O5,At.tP,ur],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),n}(),oj={horizontalStepTransition:(0,an.X$)("horizontalStepTransition",[(0,an.SB)("previous",(0,an.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,an.SB)("current",(0,an.oB)({transform:"none",visibility:"inherit"})),(0,an.SB)("next",(0,an.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,an.eR)("* => *",(0,an.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,an.X$)("verticalStepTransition",[(0,an.SB)("previous",(0,an.oB)({height:"0px",visibility:"hidden"})),(0,an.SB)("next",(0,an.oB)({height:"0px",visibility:"hidden"})),(0,an.SB)("current",(0,an.oB)({height:"*",visibility:"inherit"})),(0,an.eR)("* <=> current",(0,an.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])},Ace=function(){var n=function r(t){(0,g.Z)(this,r),this.templateRef=t};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc))},n.\u0275dir=e.lG2({type:n,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),n}(),Dce=function(){var n=function r(t){(0,g.Z)(this,r),this._template=t};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc))},n.\u0275dir=e.lG2({type:n,selectors:[["ng-template","matStepContent",""]]}),n}(),X_=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u){var p;return(0,g.Z)(this,i),(p=t.call(this,o,u))._errorStateMatcher=a,p._viewContainerRef=s,p._isSelected=us.w.EMPTY,p}return(0,k.Z)(i,[{key:"ngAfterContentInit",value:function(){var a=this;this._isSelected=this._stepper.steps.changes.pipe((0,Hs.w)(function(){return a._stepper.selectionChange.pipe((0,kr.U)(function(s){return s.selectedStep===a}),(0,ua.O)(a._stepper.selected===a))})).subscribe(function(s){s&&a._lazyContent&&!a._portal&&(a._portal=new qi.UE(a._lazyContent._template,a._viewContainerRef))})}},{key:"ngOnDestroy",value:function(){this._isSelected.unsubscribe()}},{key:"isErrorState",value:function(a,s){return this._errorStateMatcher.isErrorState(a,s)||!!(a&&a.invalid&&this.interacted)}}]),i}(UZ);return n.\u0275fac=function(t){return new(t||n)(e.Y36((0,e.Gpc)(function(){return $_})),e.Y36(un.rD,4),e.Y36(e.s_b),e.Y36(nj,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-step"]],contentQueries:function(t,i,o){var a;1&t&&(e.Suo(o,v2,5),e.Suo(o,Dce,5)),2&t&&(e.iGM(a=e.CRH())&&(i.stepLabel=a.first),e.iGM(a=e.CRH())&&(i._lazyContent=a.first))},inputs:{color:"color"},exportAs:["matStep"],features:[e._Bn([{provide:un.rD,useExisting:n},{provide:UZ,useExisting:n}]),e.qOj],ngContentSelectors:_ce,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,i){1&t&&(e.F$t(),e.YNc(0,gce,2,1,"ng-template"))},directives:[qi.Pl],encapsulation:2,changeDetection:0}),n}(),aj=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(K_);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,features:[e.qOj]}),n}(),Oce=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(aj);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["mat-horizontal-stepper"]],features:[e.qOj]}),n}(),Pce=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(aj);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["mat-vertical-stepper"]],features:[e.qOj]}),n}(),$_=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u){var p;(0,g.Z)(this,i),(p=t.call(this,o,a,s,u)).steps=new e.n_E,p.animationDone=new e.vpe,p.labelPosition="end",p._iconOverrides={},p._animationDone=new Pn.xQ;var m=s.nativeElement.nodeName.toLowerCase();return p.orientation="mat-vertical-stepper"===m?"vertical":"horizontal",p}return(0,k.Z)(i,[{key:"ngAfterContentInit",value:function(){var a=this;(0,P.Z)((0,D.Z)(i.prototype),"ngAfterContentInit",this).call(this),this._icons.forEach(function(s){return a._iconOverrides[s.name]=s.templateRef}),this.steps.changes.pipe((0,Br.R)(this._destroyed)).subscribe(function(){a._stateChanged()}),this._animationDone.pipe((0,sm.x)(function(s,u){return s.fromState===u.fromState&&s.toState===u.toState}),(0,Br.R)(this._destroyed)).subscribe(function(s){"current"===s.toState&&a.animationDone.emit()})}},{key:"_stepIsNavigable",value:function(a,s){return s.completed||this.selectedIndex===a||!this.linear}}]),i}(K_);return n.\u0275fac=function(t){return new(t||n)(e.Y36(Ba.Is,8),e.Y36(e.sBO),e.Y36(e.SBq),e.Y36(At.K0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(t,i,o){var a;1&t&&(e.Suo(o,X_,5),e.Suo(o,Ace,5)),2&t&&(e.iGM(a=e.CRH())&&(i._steps=a),e.iGM(a=e.CRH())&&(i._icons=a))},viewQuery:function(t,i){var o;1&t&&e.Gf(ij,5),2&t&&e.iGM(o=e.CRH())&&(i._stepHeader=o)},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(t,i){2&t&&(e.uIk("aria-orientation",i.orientation),e.ekj("mat-stepper-horizontal","horizontal"===i.orientation)("mat-stepper-vertical","vertical"===i.orientation)("mat-stepper-label-position-end","horizontal"===i.orientation&&"end"==i.labelPosition)("mat-stepper-label-position-bottom","horizontal"===i.orientation&&"bottom"==i.labelPosition))},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition",disableRipple:"disableRipple",color:"color"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[e._Bn([{provide:K_,useExisting:n},{provide:Oce,useExisting:n},{provide:Pce,useExisting:n}]),e.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(t,i){1&t&&(e.ynx(0,0),e.YNc(1,Sce,5,2,"ng-container",1),e.YNc(2,xce,2,1,"ng-container",1),e.BQk(),e.YNc(3,wce,1,23,"ng-template",null,2,e.W1O)),2&t&&(e.Q6J("ngSwitch",i.orientation),e.xp6(1),e.Q6J("ngSwitchCase","horizontal"),e.xp6(1),e.Q6J("ngSwitchCase","vertical"))},directives:[At.RF,At.n9,At.sg,At.tP,At.O5,ij],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[oj.horizontalStepTransition,oj.verticalStepTransition]},changeDetection:0}),n}(),Ice=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(oce);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(t,i){2&t&&e.Ikx("type",i.type)},inputs:{type:"type"},features:[e.qOj]}),n}(),Rce=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(ace);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(t,i){2&t&&e.Ikx("type",i.type)},inputs:{type:"type"},features:[e.qOj]}),n}(),Nce=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[Ece,un.rD],imports:[[un.BQ,At.ez,qi.eL,c2,sce,EZ,un.si],un.BQ]}),n}();function Zce(n,r){if(1&n&&(e.TgZ(0,"mat-option",32),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t.image," ")}}var sj=function(){return{standalone:!0}};function Lce(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-select",31),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().selectedImage=a}),e.YNc(1,Zce,2,2,"mat-option",25),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("ngModelOptions",e.DdM(3,sj))("ngModel",i.selectedImage),e.xp6(1),e.Q6J("ngForOf",i.dockerImages)}}function Fce(n,r){1&n&&(e.TgZ(0,"div"),e.TgZ(1,"mat-form-field",17),e._UZ(2,"input",33),e.qZA(),e.qZA())}function Bce(n,r){if(1&n&&(e.TgZ(0,"mat-option",32),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}var Uce=function(){function n(r,t,i,o,a,s,u,p,m){this.route=r,this.serverService=t,this.dockerService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateMocksService=u,this.configurationService=p,this.computeService=m,this.consoleTypes=[],this.isRemoteComputerChosen=!1,this.dockerImages=[],this.newImageSelected=!1,this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.dockerTemplate=new BZ,this.virtualMachineForm=this.formBuilder.group({filename:new ne.NI(null,ne.kI.required)}),this.containerNameForm=this.formBuilder.group({templateName:new ne.NI(null,ne.kI.required)}),this.networkAdaptersForm=this.formBuilder.group({adapters:new ne.NI("1",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.consoleTypes=r.configurationService.getConsoleTypes(),r.templateMocksService.getDockerTemplate().subscribe(function(o){r.dockerTemplate=o}),r.computeService.getComputes(i).subscribe(function(o){o.filter(function(a){return"vm"===a.compute_id}).length>0&&(r.isGns3VmAvailable=!0)}),r.dockerService.getImages(i).subscribe(function(o){r.dockerImages=o})})},n.prototype.setServerType=function(r){"gns3 vm"===r&&this.isGns3VmAvailable?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},n.prototype.setDiskImage=function(r){this.newImageSelected="newImage"===r},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","docker","templates"])},n.prototype.addTemplate=function(){var r=this;this.virtualMachineForm.invalid&&(this.newImageSelected||!this.selectedImage)||this.containerNameForm.invalid||this.networkAdaptersForm.invalid?this.toasterService.error("Fill all required fields"):(this.dockerTemplate.template_id=(0,wa.v4)(),this.dockerTemplate.image=this.newImageSelected?this.virtualMachineForm.get("filename").value:this.selectedImage.image,this.dockerTemplate.name=this.containerNameForm.get("templateName").value,this.dockerTemplate.adapters=+this.networkAdaptersForm.get("adapters").value,this.dockerTemplate.compute_id=this.isGns3VmChosen?"vm":"local",this.dockerService.addTemplate(this.server,this.dockerTemplate).subscribe(function(t){r.goBack()}))},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(ev),e.Y36(er),e.Y36(Er),e.Y36(ne.qu),e.Y36(ic),e.Y36(wS),e.Y36(oc.X))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-add-docker-template"]],decls:45,vars:19,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"linear"],["label","Server type",3,"completed"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"disabled","click"],["label","Docker Virtual Machine",3,"completed"],[3,"formGroup"],["value","2",1,"radio-button",3,"click"],["placeholder","Image list",3,"ngModelOptions","ngModel","ngModelChange",4,"ngIf"],[4,"ngIf"],["label","Container name",3,"completed"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Container name",1,"templatename"],["label","Network adapters",3,"completed"],["matInput","","type","number","formControlName","adapters","placeholder","Adapters",1,"networkadapter"],["label","Start command",3,"completed"],["matInput","","type","text","placeholder","Start command",3,"ngModel","ngModelChange"],["label","Console type",3,"completed"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["label","Environment"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",1,"add-button",3,"click"],["placeholder","Image list",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value"],["matInput","","type","text","formControlName","filename","placeholder","Image name",1,"filename"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"New Docker container template"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e.TgZ(7,"mat-vertical-stepper",6),e.TgZ(8,"mat-step",7),e.TgZ(9,"mat-radio-group",8),e.TgZ(10,"mat-radio-button",9),e.NdJ("click",function(){return i.setServerType("local")}),e._uU(11,"Run this Docker container locally"),e.qZA(),e.TgZ(12,"mat-radio-button",10),e.NdJ("click",function(){return i.setServerType("gns3 vm")}),e._uU(13,"Run this Docker container on the GNS3 VM"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"mat-step",11),e.TgZ(15,"form",12),e.TgZ(16,"mat-radio-group",8),e.TgZ(17,"mat-radio-button",9),e.NdJ("click",function(){return i.setDiskImage("existingImage")}),e._uU(18,"Existing image"),e.qZA(),e.TgZ(19,"mat-radio-button",13),e.NdJ("click",function(){return i.setDiskImage("newImage")}),e._uU(20,"New image"),e.qZA(),e.qZA(),e.YNc(21,Lce,2,4,"mat-select",14),e.YNc(22,Fce,3,0,"div",15),e.qZA(),e.qZA(),e.TgZ(23,"mat-step",16),e.TgZ(24,"form",12),e.TgZ(25,"mat-form-field",17),e._UZ(26,"input",18),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"mat-step",19),e.TgZ(28,"form",12),e.TgZ(29,"mat-form-field",17),e._UZ(30,"input",20),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"mat-step",21),e.TgZ(32,"mat-form-field",17),e.TgZ(33,"input",22),e.NdJ("ngModelChange",function(a){return i.dockerTemplate.start_command=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(34,"mat-step",23),e.TgZ(35,"mat-select",24),e.NdJ("ngModelChange",function(a){return i.dockerTemplate.console_type=a}),e.YNc(36,Bce,2,2,"mat-option",25),e.qZA(),e.qZA(),e.TgZ(37,"mat-step",26),e.TgZ(38,"mat-form-field",17),e.TgZ(39,"textarea",27),e.NdJ("ngModelChange",function(a){return i.dockerTemplate.environment=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(40,"div",28),e.TgZ(41,"button",29),e.NdJ("click",function(){return i.goBack()}),e._uU(42,"Cancel"),e.qZA(),e.TgZ(43,"button",30),e.NdJ("click",function(){return i.addTemplate()}),e._uU(44,"Add template"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("linear",!0),e.xp6(1),e.Q6J("completed",i.isGns3VmChosen||i.isLocalComputerChosen),e.xp6(4),e.Q6J("disabled",!i.isGns3VmAvailable),e.xp6(2),e.Q6J("completed",i.selectedImage||i.virtualMachineForm.get("filename").value),e.xp6(1),e.Q6J("formGroup",i.virtualMachineForm),e.xp6(6),e.Q6J("ngIf",!i.newImageSelected),e.xp6(1),e.Q6J("ngIf",i.newImageSelected),e.xp6(1),e.Q6J("completed",i.containerNameForm.get("templateName").value),e.xp6(1),e.Q6J("formGroup",i.containerNameForm),e.xp6(3),e.Q6J("completed",i.networkAdaptersForm.get("adapters").value),e.xp6(1),e.Q6J("formGroup",i.networkAdaptersForm),e.xp6(3),e.Q6J("completed",i.dockerTemplate.start_command),e.xp6(2),e.Q6J("ngModel",i.dockerTemplate.start_command),e.xp6(1),e.Q6J("completed",i.dockerTemplate.console_type),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(18,sj))("ngModel",i.dockerTemplate.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(3),e.Q6J("ngModel",i.dockerTemplate.environment))},directives:[$_,X_,vl,gl,ne._Y,ne.JL,ne.sg,At.O5,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,ne.wV,ne.On,fi.gD,At.sg,An,un.ey],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),Hce=function(){function n(r,t,i,o,a,s){this.route=r,this.serverService=t,this.dockerService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateName="",this.templateNameForm=this.formBuilder.group({templateName:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id"),i=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then(function(o){r.server=o,r.dockerService.getTemplate(r.server,i).subscribe(function(a){r.dockerTemplate=a,r.templateName="Copy of "+r.dockerTemplate.name})})},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","docker","templates"])},n.prototype.addTemplate=function(){var r=this;this.templateNameForm.invalid?this.toasterService.error("Fill all required fields"):(this.dockerTemplate.template_id=(0,wa.v4)(),this.dockerTemplate.name=this.templateName,this.dockerService.addTemplate(this.server,this.dockerTemplate).subscribe(function(t){r.goBack()}))},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(ev),e.Y36(er),e.Y36(Er),e.Y36(ne.qu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-copy-docker-template"]],decls:15,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","placeholder","Name","formControlName","templateName",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Copy Docker container template"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e.TgZ(7,"form",6),e.TgZ(8,"mat-form-field",7),e.TgZ(9,"input",8),e.NdJ("ngModelChange",function(a){return i.templateName=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",9),e.TgZ(11,"button",10),e.NdJ("click",function(){return i.goBack()}),e._uU(12,"Cancel"),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){return i.addTemplate()}),e._uU(14,"Copy template"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("formGroup",i.templateNameForm),e.xp6(2),e.Q6J("ngModel",i.templateName))},directives:[ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,An],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),lj=f(96798),Vce=["input"],qce=function(r){return{enterDuration:r}},jce=["*"],zce=new e.OlP("mat-checkbox-default-options",{providedIn:"root",factory:uj});function uj(){return{color:"accent",clickAction:"check-indeterminate"}}var Wce=0,cj=uj(),Gce={provide:ne.JU,useExisting:(0,e.Gpc)(function(){return Lo}),multi:!0},Yce=function n(){(0,g.Z)(this,n)},Jce=(0,un.sb)((0,un.pj)((0,un.Kr)((0,un.Id)(function(){return function n(r){(0,g.Z)(this,n),this._elementRef=r}}())))),Lo=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u,p,m,b){var R;return(0,g.Z)(this,i),(R=t.call(this,o))._changeDetectorRef=a,R._focusMonitor=s,R._ngZone=u,R._animationMode=m,R._options=b,R.ariaLabel="",R.ariaLabelledby=null,R._uniqueId="mat-checkbox-".concat(++Wce),R.id=R._uniqueId,R.labelPosition="after",R.name=null,R.change=new e.vpe,R.indeterminateChange=new e.vpe,R._onTouched=function(){},R._currentAnimationClass="",R._currentCheckState=0,R._controlValueAccessorChangeFn=function(){},R._checked=!1,R._disabled=!1,R._indeterminate=!1,R._options=R._options||cj,R.color=R.defaultColor=R._options.color||cj.color,R.tabIndex=parseInt(p)||0,R}return(0,k.Z)(i,[{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(a){this._required=(0,On.Ig)(a)}},{key:"ngAfterViewInit",value:function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(s){s||Promise.resolve().then(function(){a._onTouched(),a._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"checked",get:function(){return this._checked},set:function(a){a!=this.checked&&(this._checked=a,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(a){var s=(0,On.Ig)(a);s!==this.disabled&&(this._disabled=s,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(a){var s=a!=this._indeterminate;this._indeterminate=(0,On.Ig)(a),s&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(a){this.checked=!!a}},{key:"registerOnChange",value:function(a){this._controlValueAccessorChangeFn=a}},{key:"registerOnTouched",value:function(a){this._onTouched=a}},{key:"setDisabledState",value:function(a){this.disabled=a}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(a){var s=this._currentCheckState,u=this._elementRef.nativeElement;if(s!==a&&(this._currentAnimationClass.length>0&&u.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(s,a),this._currentCheckState=a,this._currentAnimationClass.length>0)){u.classList.add(this._currentAnimationClass);var p=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){u.classList.remove(p)},1e3)})}}},{key:"_emitChangeEvent",value:function(){var a=new Yce;a.source=this,a.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(a),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(a){var u,s=this,p=null===(u=this._options)||void 0===u?void 0:u.clickAction;a.stopPropagation(),this.disabled||"noop"===p?!this.disabled&&"noop"===p&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==p&&Promise.resolve().then(function(){s._indeterminate=!1,s.indeterminateChange.emit(s._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(a,s){a?this._focusMonitor.focusVia(this._inputElement,a,s):this._inputElement.nativeElement.focus(s)}},{key:"_onInteractionEvent",value:function(a){a.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(a,s){if("NoopAnimations"===this._animationMode)return"";var u="";switch(a){case 0:if(1===s)u="unchecked-checked";else{if(3!=s)return"";u="unchecked-indeterminate"}break;case 2:u=1===s?"unchecked-checked":"unchecked-indeterminate";break;case 1:u=2===s?"checked-unchecked":"checked-indeterminate";break;case 3:u=1===s?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(u)}},{key:"_syncIndeterminate",value:function(a){var s=this._inputElement;s&&(s.nativeElement.indeterminate=a)}}]),i}(Jce);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(xi.tE),e.Y36(e.R0b),e.$8M("tabindex"),e.Y36(Cs.Qb,8),e.Y36(zce,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-checkbox"]],viewQuery:function(t,i){var o;1&t&&(e.Gf(Vce,5),e.Gf(un.wG,5)),2&t&&(e.iGM(o=e.CRH())&&(i._inputElement=o.first),e.iGM(o=e.CRH())&&(i.ripple=o.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,i){2&t&&(e.Ikx("id",i.id),e.uIk("tabindex",null),e.ekj("mat-checkbox-indeterminate",i.indeterminate)("mat-checkbox-checked",i.checked)("mat-checkbox-disabled",i.disabled)("mat-checkbox-label-before","before"==i.labelPosition)("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[e._Bn([Gce]),e.qOj],ngContentSelectors:jce,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,i){if(1&t&&(e.F$t(),e.TgZ(0,"label",0,1),e.TgZ(2,"span",2),e.TgZ(3,"input",3,4),e.NdJ("change",function(u){return i._onInteractionEvent(u)})("click",function(u){return i._onInputClick(u)}),e.qZA(),e.TgZ(5,"span",5),e._UZ(6,"span",6),e.qZA(),e._UZ(7,"span",7),e.TgZ(8,"span",8),e.O4$(),e.TgZ(9,"svg",9),e._UZ(10,"path",10),e.qZA(),e.kcU(),e._UZ(11,"span",11),e.qZA(),e.qZA(),e.TgZ(12,"span",12,13),e.NdJ("cdkObserveContent",function(){return i._onLabelTextChange()}),e.TgZ(14,"span",14),e._uU(15,"\xa0"),e.qZA(),e.Hsn(16),e.qZA(),e.qZA()),2&t){var o=e.MAs(1),a=e.MAs(13);e.uIk("for",i.inputId),e.xp6(2),e.ekj("mat-checkbox-inner-container-no-side-margin",!a.textContent||!a.textContent.trim()),e.xp6(1),e.Q6J("id",i.inputId)("required",i.required)("checked",i.checked)("disabled",i.disabled)("tabIndex",i.tabIndex),e.uIk("value",i.value)("name",i.name)("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby)("aria-checked",i._getAriaChecked())("aria-describedby",i.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",o)("matRippleDisabled",i._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",e.VKq(19,qce,"NoopAnimations"===i._animationMode?0:150))}},directives:[un.wG,lj.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),n}(),dj=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({}),n}(),Xce=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[un.si,un.BQ,lj.Q8,dj],un.BQ,dj]}),n}();function $ce(n,r){if(1&n&&(e.TgZ(0,"mat-option",27),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function ede(n,r){if(1&n&&(e.TgZ(0,"mat-option",27),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function tde(n,r){if(1&n&&(e.TgZ(0,"mat-option",27),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}var tv=function(){return{standalone:!0}};function nde(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",6),e.TgZ(1,"mat-accordion"),e.TgZ(2,"mat-expansion-panel"),e.TgZ(3,"mat-expansion-panel-header"),e.TgZ(4,"mat-panel-title"),e._uU(5," General settings "),e.qZA(),e.qZA(),e.TgZ(6,"form",7),e.TgZ(7,"mat-form-field",8),e.TgZ(8,"input",9),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().dockerTemplate.name=a}),e.qZA(),e.qZA(),e.TgZ(9,"mat-form-field",8),e.TgZ(10,"input",10),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().dockerTemplate.default_name_format=a}),e.qZA(),e.qZA(),e.TgZ(11,"mat-form-field",8),e.TgZ(12,"mat-select",11),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().dockerTemplate.category=a}),e.YNc(13,$ce,2,2,"mat-option",12),e.qZA(),e.qZA(),e.TgZ(14,"mat-form-field",8),e.TgZ(15,"input",13),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().dockerTemplate.symbol=a}),e.qZA(),e.qZA(),e.TgZ(16,"button",14),e.NdJ("click",function(){return e.CHM(t),e.oxw().chooseSymbol()}),e._uU(17,"Choose symbol"),e.qZA(),e._UZ(18,"br"),e._UZ(19,"br"),e.TgZ(20,"mat-form-field",8),e.TgZ(21,"input",15),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().dockerTemplate.start_command=a}),e.qZA(),e.qZA(),e.TgZ(22,"mat-form-field",8),e.TgZ(23,"input",16),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().dockerTemplate.adapters=a}),e.qZA(),e.qZA(),e.TgZ(24,"mat-form-field",17),e.TgZ(25,"mat-select",18),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().dockerTemplate.console_type=a}),e.YNc(26,ede,2,2,"mat-option",12),e.qZA(),e.qZA(),e.TgZ(27,"mat-checkbox",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().dockerTemplate.console_auto_start=a}),e._uU(28," Auto start console "),e.qZA(),e.TgZ(29,"mat-form-field",17),e.TgZ(30,"mat-select",20),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().dockerTemplate.console_resolution=a}),e.YNc(31,tde,2,2,"mat-option",12),e.qZA(),e.qZA(),e.TgZ(32,"mat-form-field",8),e.TgZ(33,"input",21),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().dockerTemplate.console_http_port=a}),e.qZA(),e.qZA(),e.TgZ(34,"mat-form-field",8),e.TgZ(35,"input",22),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().dockerTemplate.console_http_path=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"h6"),e._uU(37,"Environment"),e.qZA(),e.TgZ(38,"mat-form-field",8),e.TgZ(39,"textarea",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().dockerTemplate.environment=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(40,"mat-expansion-panel"),e.TgZ(41,"mat-expansion-panel-header"),e.TgZ(42,"mat-panel-title"),e._uU(43," Advanced "),e.qZA(),e.qZA(),e.TgZ(44,"h6"),e._uU(45,"Extra hosts"),e.qZA(),e.TgZ(46,"mat-form-field",8),e.TgZ(47,"textarea",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().dockerTemplate.extra_hosts=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(48,"mat-expansion-panel"),e.TgZ(49,"mat-expansion-panel-header"),e.TgZ(50,"mat-panel-title"),e._uU(51," Usage "),e.qZA(),e.qZA(),e.TgZ(52,"mat-form-field",8),e.TgZ(53,"textarea",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().dockerTemplate.usage=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(54,"div",24),e.TgZ(55,"button",25),e.NdJ("click",function(){return e.CHM(t),e.oxw().goBack()}),e._uU(56,"Cancel"),e.qZA(),e.TgZ(57,"button",26),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSave()}),e._uU(58,"Save"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(6),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.dockerTemplate.name),e.xp6(2),e.Q6J("ngModel",i.dockerTemplate.default_name_format),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(25,tv))("ngModel",i.dockerTemplate.category),e.xp6(1),e.Q6J("ngForOf",i.categories),e.xp6(2),e.Q6J("ngModel",i.dockerTemplate.symbol),e.xp6(6),e.Q6J("ngModelOptions",e.DdM(26,tv))("ngModel",i.dockerTemplate.start_command),e.xp6(2),e.Q6J("ngModel",i.dockerTemplate.adapters),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(27,tv))("ngModel",i.dockerTemplate.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(28,tv))("ngModel",i.dockerTemplate.console_auto_start),e.xp6(3),e.Q6J("ngModelOptions",e.DdM(29,tv))("ngModel",i.dockerTemplate.console_resolution),e.xp6(1),e.Q6J("ngForOf",i.consoleResolutions),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(30,tv))("ngModel",i.dockerTemplate.console_http_port),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(31,tv))("ngModel",i.dockerTemplate.console_http_path),e.xp6(4),e.Q6J("ngModel",i.dockerTemplate.environment),e.xp6(8),e.Q6J("ngModel",i.dockerTemplate.extra_hosts),e.xp6(6),e.Q6J("ngModel",i.dockerTemplate.usage)}}function rde(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"app-symbols-menu",28),e.NdJ("symbolChangedEmitter",function(a){return e.CHM(t),e.oxw().symbolChanged(a)}),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("server",i.server)("symbol",i.dockerTemplate.symbol)}}var ide=function(n){return{shadowed:n}},ode=function(){function n(r,t,i,o,a,s,u){this.route=r,this.serverService=t,this.dockerService=i,this.toasterService=o,this.configurationService=a,this.formBuilder=s,this.router=u,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.consoleResolutions=[],this.categories=[],this.adapters=[],this.displayedColumns=["adapter_number","port_name"],this.generalSettingsForm=this.formBuilder.group({templateName:new ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),adapter:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id"),i=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then(function(o){r.server=o,r.getConfiguration(),r.dockerService.getTemplate(r.server,i).subscribe(function(a){r.dockerTemplate=a})})},n.prototype.getConfiguration=function(){this.consoleTypes=this.configurationService.getConsoleTypes(),this.categories=this.configurationService.getCategories(),this.consoleResolutions=this.configurationService.getConsoleResolutions()},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","docker","templates"])},n.prototype.onSave=function(){var r=this;this.generalSettingsForm.invalid?this.toasterService.error("Fill all required fields"):this.dockerService.saveTemplate(this.server,this.dockerTemplate).subscribe(function(t){r.toasterService.success("Changes saved")})},n.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},n.prototype.symbolChanged=function(r){this.dockerTemplate.symbol=r},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(ev),e.Y36(er),e.Y36(wS),e.Y36(ne.qu),e.Y36(Er))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-docker-template-details"]],decls:7,vars:5,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["formControlName","templateName","matInput","","type","text","placeholder","Template name",3,"ngModel","ngModelChange"],["formControlName","defaultName","matInput","","type","text","placeholder","Default name format",3,"ngModel","ngModelChange"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["formControlName","symbol","matInput","","type","text","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["matInput","","type","text","placeholder","Start command",3,"ngModelOptions","ngModel","ngModelChange"],["formControlName","adapter","matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],["placeholder","VNC console resolution",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","number","placeholder","HTTP port in the container",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","text","placeholder","HTTP path",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"server","symbol","symbolChangedEmitter"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Docker image configuration"),e.qZA(),e.qZA(),e.qZA(),e.YNc(5,nde,59,32,"div",4),e.qZA(),e.YNc(6,rde,1,2,"app-symbols-menu",5)),2&t&&(e.Q6J("ngClass",e.VKq(3,ide,i.isSymbolSelectionOpened)),e.xp6(5),e.Q6J("ngIf",i.dockerTemplate),e.xp6(1),e.Q6J("ngIf",i.isSymbolSelectionOpened&&i.dockerTemplate))},directives:[At.mk,At.O5,ld,tc,nc,sd,ne._Y,ne.JL,ne.sg,Hn.KE,ne.Fj,dr,ne.JJ,ne.u,fi.gD,ne.On,At.sg,An,ne.wV,Lo,un.ey,cd],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function ade(n,r){if(1&n&&(e.TgZ(0,"button",10),e._uU(1," Back "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences")}}function sde(n,r){if(1&n&&(e.TgZ(0,"button",11),e._uU(1," Add Docker container template "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences/docker/addtemplate")}}function lde(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function ude(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",15),e.TgZ(1,"mat-list-item",16),e._uU(2),e.qZA(),e.TgZ(3,"button",17),e.TgZ(4,"mat-icon"),e._uU(5,"more_vert"),e.qZA(),e.qZA(),e.TgZ(6,"mat-menu",null,18),e.TgZ(8,"button",19),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).deleteTemplate(u)}),e.TgZ(9,"mat-icon"),e._uU(10,"delete"),e.qZA(),e.TgZ(11,"span"),e._uU(12,"Delete"),e.qZA(),e.qZA(),e.TgZ(13,"button",19),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).copyTemplate(u)}),e.TgZ(14,"mat-icon"),e._uU(15,"content_copy"),e.qZA(),e.TgZ(16,"span"),e._uU(17,"Copy"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.MAs(7);e.xp6(1),e.s9C("routerLink",i.template_id),e.xp6(1),e.Oqu(i.name),e.xp6(1),e.Q6J("matMenuTriggerFor",o)}}function cde(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,ude,18,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.dockerTemplates)}}function dde(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,cde,2,1,"mat-nav-list",6),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.server)}}var pde=function(){function n(r,t,i,o){this.route=r,this.serverService=t,this.dockerService=i,this.router=o,this.dockerTemplates=[]}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.getTemplates()})},n.prototype.getTemplates=function(){var r=this;this.dockerService.getTemplates(this.server).subscribe(function(t){r.dockerTemplates=t.filter(function(i){return"docker"===i.template_type&&!i.builtin})})},n.prototype.deleteTemplate=function(r){this.deleteComponent.deleteItem(r.name,r.template_id)},n.prototype.onDeleteEvent=function(){this.getTemplates()},n.prototype.copyTemplate=function(r){this.router.navigate(["/server",this.server.id,"preferences","docker","templates",r.template_id,"copy"])},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(ev),e.Y36(Er))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-docker-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(ka,5),2&t)&&(e.iGM(o=e.CRH())&&(i.deleteComponent=o.first))},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Docker container templates"),e.qZA(),e.YNc(5,ade,2,1,"button",4),e.YNc(6,sde,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,lde,1,0,"app-empty-templates-list",6),e.YNc(8,dde,3,1,"div",7),e.qZA(),e.TgZ(9,"app-delete-template",8,9),e.NdJ("deleteEvent",function(){return i.onDeleteEvent()}),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",!i.dockerTemplates.length),e.xp6(1),e.Q6J("ngIf",i.dockerTemplates.length),e.xp6(1),e.Q6J("server",i.server))},directives:[At.O5,ka,An,fa,pd,Du,At.sg,xs,$a,ur,ws,Lr],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),HZ=function(){return function(){}}(),nv=function(){function n(r){this.httpServer=r}return n.prototype.getImages=function(r){return this.httpServer.get(r,"/compute/dynamips/images")},n.prototype.getImagePath=function(r,t){return r.protocol+"//"+r.host+":"+r.port+"/v2/compute/dynamips/images/"+t},n.prototype.getTemplates=function(r){return this.httpServer.get(r,"/templates")},n.prototype.getTemplate=function(r,t){return this.httpServer.get(r,"/templates/"+t)},n.prototype.addTemplate=function(r,t){return this.httpServer.post(r,"/templates",t)},n.prototype.saveTemplate=function(r,t){return this.httpServer.put(r,"/templates/"+t.template_id,t)},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),_2=function(){function n(){this.c1700_wics=["WIC-1T","WIC-2T","WIC-1ENET"],this.c2600_wics=["WIC-1T","WIC-2T"],this.c3700_wics=["WIC-1T","WIC-2T"],this.c2600_nms=["NM-1FE-TX","NM-1E","NM-4E","NM-16ESW"],this.c3600_nms=["NM-1FE-TX","NM-1E","NM-4E","NM-16ESW","NM-4T"],this.c3700_nms=["NM-1FE-TX","NM-4T","NM-16ESW"],this.c7200_pas=["PA-A1","PA-FE-TX","PA-2FE-TX","PA-GE","PA-4T+","PA-8T","PA-4E","PA-8E","PA-POS-OC3"],this.c7200_io=["C7200-IO-FE","C7200-IO-2FE","C7200-IO-GE-E"]}return n.prototype.getConsoleTypes=function(){return["telnet","none"]},n.prototype.getDefaultRamSettings=function(){return{c1700:160,c2600:160,c2691:192,c3600:192,c3725:128,c3745:256,c7200:512}},n.prototype.getDefaultNvRamSettings=function(){return{c1700:128,c2600:128,c2691:256,c3600:192,c3620:192,c3640:192,c3660:192,c3725:256,c3745:256,c7200:512}},n.prototype.getAvailablePlatforms=function(){return["c1700","c2600","c2691","c3725","c3745","c3600","c7200"]},n.prototype.getPlatformsWithEtherSwitchRouterOption=function(){return{c1700:!1,c2600:!0,c2691:!0,c3725:!0,c3745:!0,c3600:!0,c7200:!1}},n.prototype.getPlatformsWithChassis=function(){return{c1700:!0,c2600:!0,c2691:!1,c3725:!1,c3745:!1,c3600:!0,c7200:!1}},n.prototype.getChassis=function(){return{c1700:["1720","1721","1750","1751","1760"],c2600:["2610","2611","2620","2621","2610XM","2611XM","2620XM","2621XM","2650XM","2651XM"],c3600:["3620","3640","3660"]}},n.prototype.getNetworkModules=function(){return{c1700:{0:this.c1700_wics,1:this.c1700_wics},c2600:{0:this.c2600_wics,1:this.c2600_wics,2:this.c2600_wics},c2691:{0:this.c3700_wics,1:this.c3700_wics,2:this.c3700_wics},c3725:{0:this.c3700_wics,1:this.c3700_wics,2:this.c3700_wics},c3745:{0:this.c3700_wics,1:this.c3700_wics,2:this.c3700_wics}}},n.prototype.getNetworkAdapters=function(){return{1720:{0:["C1700-MB-1FE"]},1721:{0:["C1700-MB-1FE"]},1750:{0:["C1700-MB-1FE"]},1751:{0:["C1700-MB-1FE"],1:["C1700-MB-WIC1"]},1760:{0:["C1700-MB-1FE"],1:["C1700-MB-WIC1"]},2610:{0:["C2600-MB-1E"],1:this.c2600_nms},2611:{0:["C2600-MB-2E"],1:this.c2600_nms},2620:{0:["C2600-MB-1FE"],1:this.c2600_nms},2621:{0:["C2600-MB-2FE"],1:this.c2600_nms},"2610XM":{0:["C2600-MB-1FE"],1:this.c2600_nms},"2611XM":{0:["C2600-MB-2FE"],1:this.c2600_nms},"2620XM":{0:["C2600-MB-1FE"],1:this.c2600_nms},"2621XM":{0:["C2600-MB-2FE"],1:this.c2600_nms},"2650XM":{0:["C2600-MB-1FE"],1:this.c2600_nms},"2651XM":{0:["C2600-MB-2FE"],1:this.c2600_nms},3620:{0:this.c3600_nms,1:this.c3600_nms},3640:{0:this.c3600_nms,1:this.c3600_nms,2:this.c3600_nms,3:this.c3600_nms},3660:{0:["Leopard-2FE"],1:this.c3600_nms,2:this.c3600_nms,3:this.c3600_nms,4:this.c3600_nms,5:this.c3600_nms,6:this.c3600_nms}}},n.prototype.getNetworkAdaptersForPlatform=function(){var r={};return r.c2691={0:["GT96100-FE"],1:this.c3700_nms},r.c3725={0:["GT96100-FE"],1:this.c3700_nms,2:this.c3700_nms},r.c3745={0:["GT96100-FE"],1:this.c3700_nms,2:this.c3700_nms,3:this.c3700_nms,4:this.c3700_nms},r.c7200={0:this.c7200_io,1:this.c7200_pas,2:this.c7200_pas,3:this.c7200_pas,4:this.c7200_pas,5:this.c7200_pas,6:this.c7200_pas},{c2691:{0:["GT96100-FE"],1:this.c3700_nms},c3725:{0:["GT96100-FE"],1:this.c3700_nms,2:this.c3700_nms},c3745:{0:["GT96100-FE"],1:this.c3700_nms,2:this.c3700_nms,3:this.c3700_nms,4:this.c3700_nms},c7200:{0:this.c7200_io,1:this.c7200_pas,2:this.c7200_pas,3:this.c7200_pas,4:this.c7200_pas,5:this.c7200_pas,6:this.c7200_pas}}},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}();function fde(n,r){if(1&n&&(e.TgZ(0,"mat-option",36),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.filename),e.xp6(1),e.hij(" ",t.filename," ")}}function hde(n,r){if(1&n&&(e.TgZ(0,"mat-option",36),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function mde(n,r){if(1&n&&(e.TgZ(0,"mat-option",36),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function vde(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-form-field",17),e.TgZ(1,"mat-select",37),e.NdJ("selectionChange",function(a){return e.CHM(t),e.oxw(2).onChassisChosen(a)}),e.YNc(2,mde,2,2,"mat-option",19),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",i.chassis[i.iosNameForm.get("platform").value])}}function gde(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-checkbox",38),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).isEtherSwitchRouter=a}),e._uU(1," This is an EtherSwitch router "),e.qZA()}if(2&n){var i=e.oxw(2);e.Q6J("ngModel",i.isEtherSwitchRouter)}}function _de(n,r){if(1&n&&(e.TgZ(0,"mat-option",36),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}var pj=function(){return{standalone:!0}};function yde(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-select",41),e.NdJ("ngModelChange",function(s){e.CHM(t);var u=e.oxw().$implicit;return e.oxw(3).networkAdaptersForTemplate[u]=s}),e.YNc(1,_de,2,2,"mat-option",19),e.qZA()}if(2&n){var i=e.oxw().$implicit,o=e.oxw(3);e.MGl("placeholder","Slot ",i,""),e.Q6J("ngModel",o.networkAdaptersForTemplate[i])("ngModelOptions",e.DdM(4,pj)),e.xp6(1),e.Q6J("ngForOf",o.networkAdaptersForPlatform[o.iosNameForm.get("platform").value][i])}}function bde(n,r){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,yde,2,5,"mat-select",40),e.qZA()),2&n){var t=r.$implicit,i=e.oxw(3);e.xp6(1),e.Q6J("ngIf",i.networkAdaptersForPlatform[i.iosNameForm.get("platform").value]&&i.networkAdaptersForPlatform[i.iosNameForm.get("platform").value][t])}}var Cde=function(){return[0,1,2,3,4,5,6,7]};function Sde(n,r){1&n&&(e.TgZ(0,"div"),e.YNc(1,bde,2,1,"div",39),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngForOf",e.DdM(1,Cde)))}function Tde(n,r){if(1&n&&(e.TgZ(0,"mat-option",36),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function xde(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-select",41),e.NdJ("ngModelChange",function(s){e.CHM(t);var u=e.oxw().$implicit;return e.oxw(3).networkModulesForTemplate[u]=s}),e.YNc(1,Tde,2,2,"mat-option",19),e.qZA()}if(2&n){var i=e.oxw().$implicit,o=e.oxw(3);e.MGl("placeholder","WIC ",i,""),e.Q6J("ngModel",o.networkModulesForTemplate[i])("ngModelOptions",e.DdM(4,pj)),e.xp6(1),e.Q6J("ngForOf",o.networkModules[o.iosNameForm.get("platform").value][i])}}function wde(n,r){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,xde,2,5,"mat-select",40),e.qZA()),2&n){var t=r.$implicit,i=e.oxw(3);e.xp6(1),e.Q6J("ngIf",i.networkModules[i.iosNameForm.get("platform").value]&&i.networkModules[i.iosNameForm.get("platform").value][t])}}var kde=function(){return[0,1,2,3]};function Ede(n,r){1&n&&(e.TgZ(0,"div"),e.YNc(1,wde,2,1,"div",39),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngForOf",e.DdM(1,kde)))}function Mde(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",5),e.TgZ(1,"div",6),e.TgZ(2,"mat-vertical-stepper",7),e.TgZ(3,"mat-step",8),e.TgZ(4,"mat-radio-group",9),e.TgZ(5,"mat-radio-button",10),e.NdJ("click",function(){return e.CHM(t),e.oxw().setServerType("local")}),e._uU(6,"Run this IOS router locally"),e.qZA(),e.TgZ(7,"mat-radio-button",11),e.NdJ("click",function(){return e.CHM(t),e.oxw().setServerType("gns3 vm")}),e._uU(8,"Run this IOS router on the GNS3 VM"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"mat-step",12),e.TgZ(10,"input",13,14),e.NdJ("change",function(a){return e.CHM(t),e.oxw().addImage(a)}),e.qZA(),e.TgZ(12,"button",15),e.NdJ("click",function(){return e.CHM(t),e.MAs(11).click()}),e._uU(13,"Click to add image"),e.qZA(),e._uU(14," or create from existing one "),e.TgZ(15,"form",16),e.TgZ(16,"mat-form-field",17),e.TgZ(17,"mat-select",18),e.NdJ("selectionChange",function(a){return e.CHM(t),e.oxw().onImageChosen(a)}),e.YNc(18,fde,2,2,"mat-option",19),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"mat-step",20),e.TgZ(20,"form",16),e.TgZ(21,"mat-form-field",17),e._UZ(22,"input",21),e.qZA(),e.TgZ(23,"mat-form-field",17),e.TgZ(24,"mat-select",22),e.NdJ("selectionChange",function(a){return e.CHM(t),e.oxw().onPlatformChosen(a)}),e.YNc(25,hde,2,2,"mat-option",19),e.qZA(),e.qZA(),e.YNc(26,vde,3,1,"mat-form-field",23),e.qZA(),e.YNc(27,gde,2,1,"mat-checkbox",24),e.qZA(),e.TgZ(28,"mat-step",25),e.TgZ(29,"form",16),e.TgZ(30,"mat-form-field",17),e._UZ(31,"input",26),e.TgZ(32,"span",27),e._uU(33,"MB"),e.qZA(),e.qZA(),e.TgZ(34,"mat-label"),e.TgZ(35,"a",28),e._uU(36,"Check for minimum and maximum RAM requirement"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(37,"mat-step",29),e.YNc(38,Sde,2,2,"div",30),e.qZA(),e.TgZ(39,"mat-step",31),e.YNc(40,Ede,2,2,"div",30),e.qZA(),e.TgZ(41,"mat-step",32),e.TgZ(42,"mat-form-field",17),e.TgZ(43,"input",33),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.idlepc=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(44,"div",34),e.TgZ(45,"button",35),e.NdJ("click",function(){return e.CHM(t),e.oxw().goBack()}),e._uU(46,"Cancel"),e.qZA(),e.TgZ(47,"button",15),e.NdJ("click",function(){return e.CHM(t),e.oxw().addTemplate()}),e._uU(48,"Add template"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(2),e.Q6J("linear",!0),e.xp6(1),e.Q6J("completed",i.isGns3VmChosen||i.isLocalComputerChosen),e.xp6(4),e.Q6J("disabled",!i.isGns3VmAvailable),e.xp6(2),e.Q6J("completed",i.iosImageForm.get("imageName").value),e.xp6(1),e.Q6J("uploader",i.uploader),e.xp6(5),e.Q6J("formGroup",i.iosImageForm),e.xp6(3),e.Q6J("ngForOf",i.iosImages),e.xp6(1),e.Q6J("completed",i.iosNameForm.get("templateName").value&&i.iosNameForm.get("platform").value&&i.iosNameForm.get("chassis").value),e.xp6(1),e.Q6J("formGroup",i.iosNameForm),e.xp6(5),e.Q6J("ngForOf",i.platforms),e.xp6(1),e.Q6J("ngIf",i.chassis[i.iosNameForm.get("platform").value]),e.xp6(1),e.Q6J("ngIf",i.platformsWithEtherSwitchRouterOption[i.iosTemplate.platform]),e.xp6(1),e.Q6J("completed",i.iosMemoryForm.get("memory").value),e.xp6(1),e.Q6J("formGroup",i.iosMemoryForm),e.xp6(6),e.s9C("href",i.ciscoUrl,e.LSH),e.xp6(3),e.Q6J("ngIf",i.selectedPlatform),e.xp6(2),e.Q6J("ngIf",i.iosNameForm.get("platform").value),e.xp6(3),e.Q6J("ngModel",i.iosTemplate.idlepc)}}var Ade=function(){function n(r,t,i,o,a,s,u,p,m){this.route=r,this.serverService=t,this.iosService=i,this.toasterService=o,this.formBuilder=a,this.router=s,this.templateMocksService=u,this.iosConfigurationService=p,this.computeService=m,this.isEtherSwitchRouter=!1,this.networkAdaptersForTemplate=[],this.networkModulesForTemplate=[],this.iosImages=[],this.platforms=[],this.platformsWithEtherSwitchRouterOption={},this.platformsWithChassis={},this.chassis={},this.defaultRam={},this.defaultNvram={},this.networkAdapters={},this.networkAdaptersForPlatform={},this.networkModules={},this.ciscoUrl="https://cfn.cloudapps.cisco.com/ITDIT/CFN/jsp/SearchBySoftware.jsp",this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.iosTemplate=new HZ,this.iosImageForm=this.formBuilder.group({imageName:new ne.NI(null,[ne.kI.required])}),this.iosNameForm=this.formBuilder.group({templateName:new ne.NI(null,[ne.kI.required]),platform:new ne.NI(null,[ne.kI.required]),chassis:new ne.NI(null,[ne.kI.required])}),this.iosMemoryForm=this.formBuilder.group({memory:new ne.NI(null,[ne.kI.required])})}return n.prototype.ngOnInit=function(){var r=this;this.uploader=new Wm({}),this.uploader.onAfterAddingFile=function(i){i.withCredentials=!1},this.uploader.onErrorItem=function(i,o,a,s){r.toasterService.error("An error occured: "+o)},this.uploader.onSuccessItem=function(i,o,a,s){r.getImages(),r.toasterService.success("Image uploaded")};var t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.getImages(),r.templateMocksService.getIosTemplate().subscribe(function(o){r.iosTemplate=o,r.networkModules=r.iosConfigurationService.getNetworkModules(),r.networkAdaptersForPlatform=r.iosConfigurationService.getNetworkAdaptersForPlatform(),r.networkAdapters=r.iosConfigurationService.getNetworkAdapters(),r.platforms=r.iosConfigurationService.getAvailablePlatforms(),r.platformsWithEtherSwitchRouterOption=r.iosConfigurationService.getPlatformsWithEtherSwitchRouterOption(),r.platformsWithChassis=r.iosConfigurationService.getPlatformsWithChassis(),r.chassis=r.iosConfigurationService.getChassis(),r.defaultRam=r.iosConfigurationService.getDefaultRamSettings()}),r.computeService.getComputes(i).subscribe(function(o){o.filter(function(a){return"vm"===a.compute_id}).length>0&&(r.isGns3VmAvailable=!0)})})},n.prototype.setServerType=function(r){"gns3 vm"===r&&this.isGns3VmAvailable?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},n.prototype.getImages=function(){var r=this;this.iosService.getImages(this.server).subscribe(function(t){r.iosImages=t})},n.prototype.addImage=function(r){var t=r.target.files[0].name.split("-")[0];this.iosNameForm.controls.templateName.setValue(t);var o=this.iosService.getImagePath(this.server,r.target.files[0].name);this.uploader.queue.forEach(function(s){return s.url=o});var a=this.uploader.queue[0];a.options.disableMultipart=!0,this.uploader.uploadItem(a)},n.prototype.addTemplate=function(){var r=this;!this.iosImageForm.invalid&&!this.iosMemoryForm.invalid&&this.iosNameForm.get("templateName").value&&this.iosNameForm.get("platform").value?(this.iosTemplate.template_id=(0,wa.v4)(),this.iosTemplate.image=this.iosImageForm.get("imageName").value,this.iosTemplate.name=this.iosNameForm.get("templateName").value,this.iosTemplate.platform=this.iosNameForm.get("platform").value,this.chassis[this.iosNameForm.get("platform").value]&&(this.iosTemplate.chassis=this.iosNameForm.get("chassis").value),this.iosTemplate.ram=this.iosMemoryForm.get("memory").value,this.isEtherSwitchRouter&&(this.iosTemplate.symbol=":/symbols/multilayer_switch.svg",this.iosTemplate.category="switch"),this.networkAdaptersForTemplate.length>0&&this.completeAdaptersData(),this.networkModulesForTemplate.length>0&&this.completeModulesData(),this.iosTemplate.compute_id=this.isGns3VmChosen?"vm":"local",this.iosService.addTemplate(this.server,this.iosTemplate).subscribe(function(t){r.goBack()})):this.toasterService.error("Fill all required fields")},n.prototype.completeAdaptersData=function(){if(this.chassis[this.iosTemplate.platform]){if(Object.keys(this.networkAdapters[this.iosTemplate.chassis]))for(var r=0;r<Object.keys(this.networkAdapters[this.iosTemplate.chassis]).length;r++)this.networkAdaptersForTemplate[r]||(this.networkAdaptersForTemplate[r]="")}else if(this.networkAdaptersForPlatform[this.iosNameForm.get("platform").value])for(r=0;r<Object.keys(this.networkAdaptersForPlatform[this.iosNameForm.get("platform").value]).length;r++)this.networkAdaptersForTemplate[r]||(this.networkAdaptersForTemplate[r]="");this.networkAdaptersForTemplate[0]&&(this.iosTemplate.slot0=this.networkAdaptersForTemplate[0]),this.networkAdaptersForTemplate[1]&&(this.iosTemplate.slot1=this.networkAdaptersForTemplate[1]),this.networkAdaptersForTemplate[2]&&(this.iosTemplate.slot2=this.networkAdaptersForTemplate[2]),this.networkAdaptersForTemplate[3]&&(this.iosTemplate.slot3=this.networkAdaptersForTemplate[3]),this.networkAdaptersForTemplate[4]&&(this.iosTemplate.slot4=this.networkAdaptersForTemplate[4]),this.networkAdaptersForTemplate[5]&&(this.iosTemplate.slot5=this.networkAdaptersForTemplate[5]),this.networkAdaptersForTemplate[6]&&(this.iosTemplate.slot6=this.networkAdaptersForTemplate[6]),this.networkAdaptersForTemplate[7]&&(this.iosTemplate.slot7=this.networkAdaptersForTemplate[7])},n.prototype.completeModulesData=function(){if(Object.keys(this.networkModules[this.iosTemplate.platform]))for(var r=0;r<Object.keys(this.networkModules[this.iosTemplate.platform]).length;r++)this.networkModulesForTemplate[r]||(this.networkModulesForTemplate[r]="");this.networkModulesForTemplate[0]&&(this.iosTemplate.wic0=this.networkModulesForTemplate[0]),this.networkModulesForTemplate[1]&&(this.iosTemplate.wic1=this.networkModulesForTemplate[1]),this.networkModulesForTemplate[2]&&(this.iosTemplate.wic2=this.networkModulesForTemplate[2])},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","dynamips","templates"])},n.prototype.onImageChosen=function(){var r=this.iosImageForm.get("imageName").value.split("-")[0];this.iosNameForm.controls.templateName.setValue(r),"c3620"===r||"c3640"===r||"c3660"===r?(this.iosNameForm.controls.platform.setValue("c3600"),this.selectedPlatform="c3600"):(this.iosNameForm.controls.platform.setValue(r),this.selectedPlatform=r),this.iosNameForm.controls.chassis.setValue("c1700"===r?"1720":"c2600"===r?"2610":""),this.iosMemoryForm.controls.memory.setValue(this.defaultRam[r])},n.prototype.onPlatformChosen=function(){this.iosTemplate.chassis="",this.networkAdaptersForTemplate=[],this.networkModulesForTemplate=[]},n.prototype.onChassisChosen=function(){this.networkAdaptersForTemplate=[]},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(nv),e.Y36(er),e.Y36(ne.qu),e.Y36(Er),e.Y36(ic),e.Y36(_2),e.Y36(oc.X))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-add-ios-template"]],decls:6,vars:1,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"linear"],["label","Server type",3,"completed"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"disabled","click"],["label","IOS image",3,"completed"],["type","file","accept",".bin, .image","ng2FileSelect","",1,"non-visible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary",3,"click"],[3,"formGroup"],[1,"form-field"],["placeholder","Image","formControlName","imageName",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["label","Name and platform",3,"completed"],["matInput","","type","text","formControlName","templateName","placeholder","Name"],["placeholder","Platform","formControlName","platform",3,"selectionChange"],["class","form-field",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],["label","Memory",3,"completed"],["matInput","","type","number","formControlName","memory","value","defaultRam[iosNameForm.get('platform').value]","placeholder","Default RAM"],["matSuffix",""],[3,"href"],["label","Network adapters"],[4,"ngIf"],["label","WIC modules"],["label","Idle-PC"],["matInput","","type","text","placeholder","Idle-PC",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],[3,"value"],["placeholder","Chassis","formControlName","chassis",3,"selectionChange"],[3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange",4,"ngIf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"New IOS router template"),e.qZA(),e.qZA(),e.qZA(),e.YNc(5,Mde,49,18,"div",4),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.iosTemplate))},directives:[At.O5,$_,X_,vl,gl,lS,An,ne._Y,ne.JL,ne.sg,Hn.KE,fi.gD,ne.JJ,ne.u,At.sg,dr,ne.Fj,ne.wV,Hn.R9,Hn.hX,ne.On,un.ey,Lo],styles:[".non-visible[_ngcontent-%COMP%]{display:none}",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),Dde=function(){function n(r,t,i,o,a,s){this.route=r,this.serverService=t,this.iosService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateName="",this.formGroup=this.formBuilder.group({templateName:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id"),i=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then(function(o){r.server=o,r.iosService.getTemplate(r.server,i).subscribe(function(a){r.iosTemplate=a,r.templateName="Copy of "+r.iosTemplate.name})})},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","dynamips","templates"])},n.prototype.addTemplate=function(){var r=this;this.formGroup.invalid?this.toasterService.error("Fill all required fields"):(this.iosTemplate.template_id=(0,wa.v4)(),this.iosTemplate.name=this.templateName,this.iosService.addTemplate(this.server,this.iosTemplate).subscribe(function(t){r.goBack()}))},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(nv),e.Y36(er),e.Y36(Er),e.Y36(ne.qu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-copy-ios-template"]],decls:15,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","placeholder","Name","formControlName","templateName",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Copy IOS router template"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"mat-card",5),e.TgZ(7,"form",6),e.TgZ(8,"mat-form-field",7),e.TgZ(9,"input",8),e.NdJ("ngModelChange",function(a){return i.templateName=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",9),e.TgZ(11,"button",10),e.NdJ("click",function(){return i.goBack()}),e._uU(12,"Cancel"),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){return i.addTemplate()}),e._uU(14,"Copy template"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("formGroup",i.formGroup),e.xp6(2),e.Q6J("ngModel",i.templateName))},directives:[_i,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,An],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function Ode(n,r){if(1&n&&(e.TgZ(0,"mat-option",38),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function Pde(n,r){if(1&n&&(e.TgZ(0,"mat-option",38),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Ide(n,r){if(1&n&&(e.TgZ(0,"mat-option",38),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}var mp=function(){return{standalone:!0}};function Rde(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-select",41),e.NdJ("ngModelChange",function(s){e.CHM(t);var u=e.oxw().$implicit;return e.oxw(3).networkAdaptersForTemplate[u]=s}),e.YNc(1,Ide,2,2,"mat-option",14),e.qZA()}if(2&n){var i=e.oxw().$implicit,o=e.oxw(3);e.MGl("placeholder","Slot ",i,""),e.Q6J("ngModel",o.networkAdaptersForTemplate[i])("ngModelOptions",e.DdM(4,mp)),e.xp6(1),e.Q6J("ngForOf",o.networkAdapters[o.iosTemplate.chassis][i])}}function Nde(n,r){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,Rde,2,5,"mat-select",40),e.qZA()),2&n){var t=r.$implicit,i=e.oxw(3);e.xp6(1),e.Q6J("ngIf",i.networkAdapters[i.iosTemplate.chassis][t])}}var fj=function(){return[0,1,2,3,4,5,6,7]};function Zde(n,r){1&n&&(e.TgZ(0,"div"),e.YNc(1,Nde,2,1,"div",39),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngForOf",e.DdM(1,fj)))}function Lde(n,r){if(1&n&&(e.TgZ(0,"mat-option",38),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Fde(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-select",41),e.NdJ("ngModelChange",function(s){e.CHM(t);var u=e.oxw().$implicit;return e.oxw(3).networkAdaptersForTemplate[u]=s}),e.YNc(1,Lde,2,2,"mat-option",14),e.qZA()}if(2&n){var i=e.oxw().$implicit,o=e.oxw(3);e.MGl("placeholder","Slot ",i,""),e.Q6J("ngModel",o.networkAdaptersForTemplate[i])("ngModelOptions",e.DdM(4,mp)),e.xp6(1),e.Q6J("ngForOf",o.networkAdaptersForPlatform[o.iosTemplate.platform][i])}}function Bde(n,r){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,Fde,2,5,"mat-select",40),e.qZA()),2&n){var t=r.$implicit,i=e.oxw(3);e.xp6(1),e.Q6J("ngIf",i.networkAdaptersForPlatform[i.iosTemplate.platform][t])}}function Ude(n,r){1&n&&(e.TgZ(0,"div"),e.YNc(1,Bde,2,1,"div",39),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngForOf",e.DdM(1,fj)))}function Hde(n,r){if(1&n&&(e.TgZ(0,"mat-option",38),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Vde(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"mat-select",42),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).iosTemplate.wic0=a}),e.YNc(2,Hde,2,2,"mat-option",14),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(1),e.Q6J("ngModel",i.iosTemplate.wic0)("ngModelOptions",e.DdM(3,mp)),e.xp6(1),e.Q6J("ngForOf",i.networkModules[i.iosTemplate.platform][0])}}function qde(n,r){if(1&n&&(e.TgZ(0,"mat-option",38),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function jde(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"mat-select",43),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).iosTemplate.wic1=a}),e.YNc(2,qde,2,2,"mat-option",14),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(1),e.Q6J("ngModel",i.iosTemplate.wic1)("ngModelOptions",e.DdM(3,mp)),e.xp6(1),e.Q6J("ngForOf",i.networkModules[i.iosTemplate.platform][1])}}function zde(n,r){if(1&n&&(e.TgZ(0,"mat-option",38),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Wde(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"mat-select",44),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).iosTemplate.wic2=a}),e.YNc(2,zde,2,2,"mat-option",14),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(1),e.Q6J("ngModel",i.iosTemplate.wic2)("ngModelOptions",e.DdM(3,mp)),e.xp6(1),e.Q6J("ngForOf",i.networkModules[i.iosTemplate.platform][2])}}function Gde(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",6),e.TgZ(1,"mat-accordion"),e.TgZ(2,"mat-expansion-panel"),e.TgZ(3,"mat-expansion-panel-header"),e.TgZ(4,"mat-panel-title"),e._uU(5," General settings "),e.qZA(),e.qZA(),e.TgZ(6,"form",7),e.TgZ(7,"mat-form-field",8),e.TgZ(8,"input",9),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.name=a}),e.qZA(),e.qZA(),e.TgZ(9,"mat-form-field",8),e.TgZ(10,"input",10),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.default_name_format=a}),e.qZA(),e.qZA(),e.TgZ(11,"mat-label"),e._uU(12),e.qZA(),e._UZ(13,"br"),e._UZ(14,"br"),e.TgZ(15,"mat-label"),e._uU(16),e.qZA(),e._UZ(17,"br"),e._UZ(18,"br"),e.TgZ(19,"mat-form-field",8),e.TgZ(20,"input",11),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.symbol=a}),e.qZA(),e.qZA(),e.TgZ(21,"button",12),e.NdJ("click",function(){return e.CHM(t),e.oxw().chooseSymbol()}),e._uU(22,"Choose symbol"),e.qZA(),e._UZ(23,"br"),e._UZ(24,"br"),e.TgZ(25,"mat-form-field",8),e.TgZ(26,"mat-select",13),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.category=a}),e.YNc(27,Ode,2,2,"mat-option",14),e.qZA(),e.qZA(),e.TgZ(28,"mat-form-field",8),e.TgZ(29,"input",15),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.image=a}),e.qZA(),e.qZA(),e.TgZ(30,"mat-form-field",8),e.TgZ(31,"input",16),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.startup_config=a}),e.qZA(),e.qZA(),e.TgZ(32,"mat-form-field",8),e.TgZ(33,"input",17),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.private_config=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(34,"mat-form-field",18),e.TgZ(35,"mat-select",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.console_type=a}),e.YNc(36,Pde,2,2,"mat-option",14),e.qZA(),e.qZA(),e.TgZ(37,"mat-checkbox",20),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.console_auto_start=a}),e._uU(38," Auto start console "),e.qZA(),e.qZA(),e.TgZ(39,"mat-expansion-panel"),e.TgZ(40,"mat-expansion-panel-header"),e.TgZ(41,"mat-panel-title"),e._uU(42," Memories and disks "),e.qZA(),e.qZA(),e.TgZ(43,"form",7),e.TgZ(44,"mat-form-field",8),e.TgZ(45,"input",21),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.ram=a}),e.qZA(),e.TgZ(46,"span",22),e._uU(47,"MB"),e.qZA(),e.qZA(),e.TgZ(48,"mat-form-field",8),e.TgZ(49,"input",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.nvram=a}),e.qZA(),e.TgZ(50,"span",22),e._uU(51,"MB"),e.qZA(),e.qZA(),e.TgZ(52,"mat-form-field",8),e.TgZ(53,"input",24),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.iomem=a}),e.qZA(),e.qZA(),e.TgZ(54,"mat-form-field",8),e.TgZ(55,"input",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.disk0=a}),e.qZA(),e.qZA(),e.TgZ(56,"mat-form-field",8),e.TgZ(57,"input",26),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.disk1=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(58,"mat-checkbox",20),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.auto_delete_disks=a}),e._uU(59," Automatically delete NVRAM and disk files "),e.qZA(),e.qZA(),e.TgZ(60,"mat-expansion-panel"),e.TgZ(61,"mat-expansion-panel-header"),e.TgZ(62,"mat-panel-title"),e._uU(63," Slots "),e.qZA(),e.qZA(),e.TgZ(64,"h6"),e._uU(65,"Adapters"),e.qZA(),e.YNc(66,Zde,2,2,"div",27),e.YNc(67,Ude,2,2,"div",27),e._UZ(68,"br"),e._UZ(69,"br"),e.TgZ(70,"h6"),e._uU(71,"WICs"),e.qZA(),e.YNc(72,Vde,3,4,"div",27),e.YNc(73,jde,3,4,"div",27),e.YNc(74,Wde,3,4,"div",27),e.qZA(),e.TgZ(75,"mat-expansion-panel"),e.TgZ(76,"mat-expansion-panel-header"),e.TgZ(77,"mat-panel-title"),e._uU(78," Advanced "),e.qZA(),e.qZA(),e.TgZ(79,"form",7),e.TgZ(80,"mat-form-field",8),e.TgZ(81,"input",28),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.system_id=a}),e.qZA(),e.qZA(),e.TgZ(82,"mat-form-field",8),e.TgZ(83,"input",29),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.mac_addr=a}),e.qZA(),e.qZA(),e.TgZ(84,"mat-form-field",8),e.TgZ(85,"input",30),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.idlepc=a}),e.qZA(),e.qZA(),e.TgZ(86,"mat-form-field",8),e.TgZ(87,"input",31),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.idlemax=a}),e.qZA(),e.qZA(),e.TgZ(88,"mat-form-field",8),e.TgZ(89,"input",32),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.idlesleep=a}),e.qZA(),e.qZA(),e.TgZ(90,"mat-form-field",8),e.TgZ(91,"input",33),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.exec_area=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(92,"mat-checkbox",20),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.mmap=a}),e._uU(93," Enable mmap support "),e.qZA(),e._UZ(94,"br"),e._UZ(95,"br"),e.TgZ(96,"mat-checkbox",20),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.sparsemem=a}),e._uU(97," Enable sparse memory supoport "),e.qZA(),e.qZA(),e.TgZ(98,"mat-expansion-panel"),e.TgZ(99,"mat-expansion-panel-header"),e.TgZ(100,"mat-panel-title"),e._uU(101," Usage "),e.qZA(),e.qZA(),e.TgZ(102,"mat-form-field",8),e.TgZ(103,"textarea",34),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.usage=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(104,"div",35),e.TgZ(105,"button",36),e.NdJ("click",function(){return e.CHM(t),e.oxw().goBack()}),e._uU(106,"Cancel"),e.qZA(),e.TgZ(107,"button",37),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSave()}),e._uU(108,"Save"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(6),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.iosTemplate.name),e.xp6(2),e.Q6J("ngModel",i.iosTemplate.default_name_format),e.xp6(2),e.hij("Platform - ",i.iosTemplate.platform,""),e.xp6(4),e.hij("Chassis - ",i.iosTemplate.chassis,""),e.xp6(4),e.Q6J("ngModel",i.iosTemplate.symbol),e.xp6(6),e.Q6J("ngModelOptions",e.DdM(40,mp))("ngModel",i.iosTemplate.category),e.xp6(1),e.Q6J("ngForOf",i.categories),e.xp6(2),e.Q6J("ngModel",i.iosTemplate.image),e.xp6(2),e.Q6J("ngModel",i.iosTemplate.startup_config),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(41,mp))("ngModel",i.iosTemplate.private_config),e.xp6(2),e.Q6J("ngModel",i.iosTemplate.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModel",i.iosTemplate.console_auto_start),e.xp6(6),e.Q6J("formGroup",i.memoryForm),e.xp6(2),e.Q6J("ngModel",i.iosTemplate.ram),e.xp6(4),e.Q6J("ngModel",i.iosTemplate.nvram),e.xp6(4),e.Q6J("ngModel",i.iosTemplate.iomem),e.xp6(2),e.Q6J("ngModel",i.iosTemplate.disk0),e.xp6(2),e.Q6J("ngModel",i.iosTemplate.disk1),e.xp6(1),e.Q6J("ngModel",i.iosTemplate.auto_delete_disks),e.xp6(8),e.Q6J("ngIf",i.iosTemplate.chassis&&i.chassis[i.iosTemplate.platform]),e.xp6(1),e.Q6J("ngIf",i.iosTemplate.platform&&!i.chassis[i.iosTemplate.platform]),e.xp6(5),e.Q6J("ngIf",i.iosTemplate.wic0||""===i.iosTemplate.wic0),e.xp6(1),e.Q6J("ngIf",i.iosTemplate.wic1||""===i.iosTemplate.wic1),e.xp6(1),e.Q6J("ngIf",i.iosTemplate.wic2||""===i.iosTemplate.wic2),e.xp6(5),e.Q6J("formGroup",i.advancedForm),e.xp6(2),e.Q6J("ngModel",i.iosTemplate.system_id),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(42,mp))("ngModel",i.iosTemplate.mac_addr),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(43,mp))("ngModel",i.iosTemplate.idlepc),e.xp6(2),e.Q6J("ngModel",i.iosTemplate.idlemax),e.xp6(2),e.Q6J("ngModel",i.iosTemplate.idlesleep),e.xp6(2),e.Q6J("ngModel",i.iosTemplate.exec_area),e.xp6(1),e.Q6J("ngModel",i.iosTemplate.mmap),e.xp6(4),e.Q6J("ngModel",i.iosTemplate.sparsemem),e.xp6(7),e.Q6J("ngModel",i.iosTemplate.usage)}}function Yde(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"app-symbols-menu",45),e.NdJ("symbolChangedEmitter",function(a){return e.CHM(t),e.oxw().symbolChanged(a)}),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("server",i.server)("symbol",i.iosTemplate.symbol)}}var Jde=function(n){return{shadowed:n}},Qde=function(){function n(r,t,i,o,a,s,u){this.route=r,this.serverService=t,this.iosService=i,this.toasterService=o,this.formBuilder=a,this.iosConfigurationService=s,this.router=u,this.isSymbolSelectionOpened=!1,this.networkAdaptersForTemplate=[],this.platforms=[],this.consoleTypes=[],this.platformsWithEtherSwitchRouterOption={},this.platformsWithChassis={},this.chassis={},this.defaultRam={},this.defaultNvram={},this.networkAdapters={},this.networkAdaptersForPlatform={},this.networkModules={},this.generalSettingsForm=this.formBuilder.group({templateName:new ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required),path:new ne.NI("",ne.kI.required),initialConfig:new ne.NI("",ne.kI.required)}),this.memoryForm=this.formBuilder.group({ram:new ne.NI("",ne.kI.required),nvram:new ne.NI("",ne.kI.required),iomemory:new ne.NI("",ne.kI.required),disk0:new ne.NI("",ne.kI.required),disk1:new ne.NI("",ne.kI.required)}),this.advancedForm=this.formBuilder.group({systemId:new ne.NI("",ne.kI.required),idlemax:new ne.NI("",ne.kI.required),idlesleep:new ne.NI("",ne.kI.required),execarea:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id"),i=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then(function(o){r.server=o,r.getConfiguration(),r.iosService.getTemplate(r.server,i).subscribe(function(a){r.iosTemplate=a,r.fillAdaptersData()})})},n.prototype.getConfiguration=function(){this.networkModules=this.iosConfigurationService.getNetworkModules(),this.networkAdaptersForPlatform=this.iosConfigurationService.getNetworkAdaptersForPlatform(),this.networkAdapters=this.iosConfigurationService.getNetworkAdapters(),this.platforms=this.iosConfigurationService.getAvailablePlatforms(),this.platformsWithEtherSwitchRouterOption=this.iosConfigurationService.getPlatformsWithEtherSwitchRouterOption(),this.platformsWithChassis=this.iosConfigurationService.getPlatformsWithChassis(),this.chassis=this.iosConfigurationService.getChassis(),this.defaultRam=this.iosConfigurationService.getDefaultRamSettings(),this.consoleTypes=this.iosConfigurationService.getConsoleTypes()},n.prototype.fillAdaptersData=function(){this.iosTemplate.slot0&&(this.networkAdaptersForTemplate[0]=this.iosTemplate.slot0),this.iosTemplate.slot1&&(this.networkAdaptersForTemplate[1]=this.iosTemplate.slot1),this.iosTemplate.slot2&&(this.networkAdaptersForTemplate[2]=this.iosTemplate.slot2),this.iosTemplate.slot3&&(this.networkAdaptersForTemplate[3]=this.iosTemplate.slot3),this.iosTemplate.slot4&&(this.networkAdaptersForTemplate[4]=this.iosTemplate.slot4),this.iosTemplate.slot5&&(this.networkAdaptersForTemplate[5]=this.iosTemplate.slot5),this.iosTemplate.slot6&&(this.networkAdaptersForTemplate[6]=this.iosTemplate.slot6),this.iosTemplate.slot7&&(this.networkAdaptersForTemplate[7]=this.iosTemplate.slot7)},n.prototype.completeAdaptersData=function(){this.networkAdaptersForTemplate[0]&&(this.iosTemplate.slot0=this.networkAdaptersForTemplate[0]),this.networkAdaptersForTemplate[1]&&(this.iosTemplate.slot1=this.networkAdaptersForTemplate[1]),this.networkAdaptersForTemplate[2]&&(this.iosTemplate.slot2=this.networkAdaptersForTemplate[2]),this.networkAdaptersForTemplate[3]&&(this.iosTemplate.slot3=this.networkAdaptersForTemplate[3]),this.networkAdaptersForTemplate[4]&&(this.iosTemplate.slot4=this.networkAdaptersForTemplate[4]),this.networkAdaptersForTemplate[5]&&(this.iosTemplate.slot5=this.networkAdaptersForTemplate[5]),this.networkAdaptersForTemplate[6]&&(this.iosTemplate.slot6=this.networkAdaptersForTemplate[6]),this.networkAdaptersForTemplate[7]&&(this.iosTemplate.slot7=this.networkAdaptersForTemplate[7])},n.prototype.onSave=function(){var r=this;this.generalSettingsForm.invalid||this.memoryForm.invalid||this.advancedForm.invalid?this.toasterService.error("Fill all required fields"):(this.completeAdaptersData(),this.iosService.saveTemplate(this.server,this.iosTemplate).subscribe(function(t){r.toasterService.success("Changes saved")}))},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","dynamips","templates"])},n.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},n.prototype.symbolChanged=function(r){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.iosTemplate.symbol=r},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(nv),e.Y36(er),e.Y36(ne.qu),e.Y36(_2),e.Y36(Er))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-ios-template-details"]],decls:7,vars:5,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","text","formControlName","path","placeholder","IOS image path",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","initialConfig","placeholder","Initial startup-config",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Initial private-config",3,"ngModelOptions","ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","ram","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","formControlName","nvram","placeholder","NVRAM size",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","iomemory","placeholder","I/O memory",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","disk0","placeholder","PCMCIA disk0",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","disk1","placeholder","PCMCIA disk1",3,"ngModel","ngModelChange"],[4,"ngIf"],["matInput","","formControlName","systemId","type","text","placeholder","System ID",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Base MAC",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","text","placeholder","Idle-PC",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","formControlName","idlemax","type","number","placeholder","Idlemax",3,"ngModel","ngModelChange"],["matInput","","formControlName","idlesleep","type","number","placeholder","Idlesleep",3,"ngModel","ngModelChange"],["matInput","","formControlName","execarea","type","number","placeholder","Exec area",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[4,"ngFor","ngForOf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange",4,"ngIf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange"],["placeholder","WIC 0",3,"ngModel","ngModelOptions","ngModelChange"],["placeholder","WIC 1",3,"ngModel","ngModelOptions","ngModelChange"],["placeholder","WIC 2",3,"ngModel","ngModelOptions","ngModelChange"],[3,"server","symbol","symbolChangedEmitter"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Dynamips IOS Router configuration"),e.qZA(),e.qZA(),e.qZA(),e.YNc(5,Gde,109,44,"div",4),e.qZA(),e.YNc(6,Yde,1,2,"app-symbols-menu",5)),2&t&&(e.Q6J("ngClass",e.VKq(3,Jde,i.isSymbolSelectionOpened)),e.xp6(5),e.Q6J("ngIf",i.iosTemplate),e.xp6(1),e.Q6J("ngIf",i.isSymbolSelectionOpened&&i.iosTemplate))},directives:[At.mk,At.O5,ld,tc,nc,sd,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,Hn.hX,An,fi.gD,ne.On,At.sg,Lo,ne.wV,Hn.R9,un.ey,cd],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function Kde(n,r){if(1&n&&(e.TgZ(0,"button",10),e._uU(1," Back "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences")}}function Xde(n,r){if(1&n&&(e.TgZ(0,"button",11),e._uU(1," Add IOS router template "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences/dynamips/templates/addtemplate")}}function $de(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function epe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",15),e.TgZ(1,"mat-list-item",16),e._uU(2),e.qZA(),e.TgZ(3,"button",17),e.TgZ(4,"mat-icon"),e._uU(5,"more_vert"),e.qZA(),e.qZA(),e.TgZ(6,"mat-menu",null,18),e.TgZ(8,"button",19),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).deleteTemplate(u)}),e.TgZ(9,"mat-icon"),e._uU(10,"delete"),e.qZA(),e.TgZ(11,"span"),e._uU(12,"Delete"),e.qZA(),e.qZA(),e.TgZ(13,"button",19),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).copyTemplate(u)}),e.TgZ(14,"mat-icon"),e._uU(15,"content_copy"),e.qZA(),e.TgZ(16,"span"),e._uU(17,"Copy"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.MAs(7);e.xp6(1),e.s9C("routerLink",i.template_id),e.xp6(1),e.Oqu(i.name),e.xp6(1),e.Q6J("matMenuTriggerFor",o)}}function tpe(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,epe,18,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.iosTemplates)}}function npe(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,tpe,2,1,"mat-nav-list",6),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.server)}}var rpe=function(){function n(r,t,i,o){this.route=r,this.serverService=t,this.iosService=i,this.router=o,this.iosTemplates=[]}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.getTemplates()})},n.prototype.getTemplates=function(){var r=this;this.iosService.getTemplates(this.server).subscribe(function(t){r.iosTemplates=t.filter(function(i){return"dynamips"===i.template_type&&!i.builtin})})},n.prototype.deleteTemplate=function(r){this.deleteComponent.deleteItem(r.name,r.template_id)},n.prototype.onDeleteEvent=function(){this.getTemplates()},n.prototype.copyTemplate=function(r){this.router.navigate(["/server",this.server.id,"preferences","dynamips","templates",r.template_id,"copy"])},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(nv),e.Y36(Er))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-ios-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(ka,5),2&t)&&(e.iGM(o=e.CRH())&&(i.deleteComponent=o.first))},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"IOS router templates"),e.qZA(),e.YNc(5,Kde,2,1,"button",4),e.YNc(6,Xde,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,$de,1,0,"app-empty-templates-list",6),e.YNc(8,npe,3,1,"div",7),e.qZA(),e.TgZ(9,"app-delete-template",8,9),e.NdJ("deleteEvent",function(){return i.onDeleteEvent()}),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",!i.iosTemplates.length),e.xp6(1),e.Q6J("ngIf",i.iosTemplates.length),e.xp6(1),e.Q6J("server",i.server))},directives:[At.O5,ka,An,fa,pd,Du,At.sg,xs,$a,ur,ws,Lr],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),hj=function(){function n(r){this.httpServer=r}return n.prototype.getGns3vm=function(r){return this.httpServer.get(r,"/gns3vm")},n.prototype.updateGns3vm=function(r,t){return this.httpServer.put(r,"/gns3vm",t)},n.prototype.getGns3vmEngines=function(r){return this.httpServer.get(r,"/gns3vm/engines")},n.prototype.getVms=function(r,t){return this.httpServer.get(r,"/gns3vm/engines/"+t+"/vms")},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}();function ipe(n,r){if(1&n&&(e.TgZ(0,"mat-option",18),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.engine_id),e.xp6(1),e.hij(" ",t.name," ")}}function ope(n,r){if(1&n&&(e.TgZ(0,"mat-option",18),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.vmname),e.xp6(1),e.hij(" ",t.vmname," ")}}var kS=function(){return{standalone:!0}};function ape(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-checkbox",10),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).gns3vm.headless=a}),e._uU(1," Run the VM in headless mode "),e.qZA()}if(2&n){var i=e.oxw(2);e.Q6J("ngModelOptions",e.DdM(2,kS))("ngModel",i.gns3vm.headless)}}function spe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-form-field",21),e.TgZ(1,"input",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(3).port=a}),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(3);e.xp6(1),e.Q6J("ngModelOptions",e.DdM(2,kS))("ngModel",i.port)}}function lpe(n,r){if(1&n&&(e.TgZ(0,"form",19),e.YNc(1,spe,2,3,"mat-form-field",20),e.TgZ(2,"mat-form-field",21),e._UZ(3,"input",22),e.TgZ(4,"span",23),e._uU(5,"MB"),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",21),e._UZ(7,"input",24),e.qZA(),e.qZA()),2&n){var t=e.oxw(2);e.Q6J("formGroup",t.vmForm),e.xp6(1),e.Q6J("ngIf","virtualbox"===t.gns3vm.engine||"vmware"===t.gns3vm.engine)}}function upe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-radio-group",26),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).gns3vm.when_exit=a}),e.TgZ(1,"mat-radio-button",27),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).setCloseAction("keep")}),e._uU(2,"keep the GNS3 VM running"),e.qZA(),e.TgZ(3,"mat-radio-button",28),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).setCloseAction("suspend")}),e._uU(4,"suspend the GNS3 VM"),e.qZA(),e.TgZ(5,"mat-radio-button",29),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).setCloseAction("stop")}),e._uU(6,"stop the GNS3 VM"),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.Q6J("ngModel",i.gns3vm.when_exit)}}function cpe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-card",9),e.TgZ(1,"mat-checkbox",10),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().gns3vm.enable=a}),e._uU(2," Enable the GNS3 VM "),e.qZA(),e.TgZ(3,"mat-form-field",11),e.TgZ(4,"mat-select",12),e.NdJ("selectionChange",function(a){return e.CHM(t),e.oxw().changeVmEngine(a)})("ngModelChange",function(a){return e.CHM(t),e.oxw().gns3vm.engine=a}),e.YNc(5,ipe,2,2,"mat-option",13),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",11),e.TgZ(7,"mat-select",14),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().gns3vm.vmname=a}),e.YNc(8,ope,2,2,"mat-option",13),e.qZA(),e.qZA(),e.YNc(9,ape,2,3,"mat-checkbox",15),e.YNc(10,lpe,8,2,"form",16),e.YNc(11,upe,7,1,"mat-radio-group",17),e.qZA()}if(2&n){var i=e.oxw();e.xp6(1),e.Q6J("ngModelOptions",e.DdM(11,kS))("ngModel",i.gns3vm.enable),e.xp6(3),e.Q6J("ngModelOptions",e.DdM(12,kS))("ngModel",i.gns3vm.engine),e.xp6(1),e.Q6J("ngForOf",i.vmEngines),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(13,kS))("ngModel",i.gns3vm.vmname),e.xp6(1),e.Q6J("ngForOf",i.vms),e.xp6(1),e.Q6J("ngIf","virtualbox"===i.gns3vm.engine||"vmware"===i.gns3vm.engine),e.xp6(1),e.Q6J("ngIf","remote"!==i.gns3vm.engine),e.xp6(1),e.Q6J("ngIf","remote"!==i.gns3vm.engine)}}var dpe=function(){function n(r,t,i,o,a,s){this.route=r,this.serverService=t,this.gns3vmService=i,this.router=o,this.formBuilder=a,this.toasterService=s,this.vms=[],this.vmForm=this.formBuilder.group({ram:new ne.NI(null,[ne.kI.required]),vcpus:new ne.NI(null,[ne.kI.required])})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.gns3vmService.getGns3vm(r.server).subscribe(function(o){r.gns3vm=o,r.vmForm.controls.ram.setValue(r.gns3vm.ram),r.vmForm.controls.vcpus.setValue(r.gns3vm.vcpus),r.gns3vm.port&&(r.port=r.gns3vm.port),r.gns3vmService.getGns3vmEngines(r.server).subscribe(function(a){r.vmEngines=a}),r.gns3vmService.getVms(r.server,r.gns3vm.engine).subscribe(function(a){r.vms=a})})})},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences"])},n.prototype.setCloseAction=function(r){this.gns3vm.when_exit=r},n.prototype.changeVmEngine=function(r){var t=this;this.gns3vmService.getVms(this.server,r.value).subscribe(function(i){t.vms=i},function(i){})},n.prototype.save=function(){var r=this;this.vmForm.valid&&this.gns3vm.vmname||"remote"===this.gns3vm.engine&&this.gns3vm.vmname?(this.gns3vm.ram=this.vmForm.get("ram").value,this.gns3vm.vcpus=this.vmForm.get("vcpus").value,this.port&&(this.gns3vm.port=this.port),this.gns3vmService.updateGns3vm(this.server,this.gns3vm).subscribe(function(){r.toasterService.success("GNS3 VM updated.")}),this.goBack()):this.toasterService.error("Fill all required fields with correct values.")},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(hj),e.Y36(Er),e.Y36(ne.qu),e.Y36(er))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-gns3vm"]],decls:12,vars:1,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],["class","matCard",4,"ngIf"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[1,"matCard"],[3,"ngModelOptions","ngModel","ngModelChange"],[1,"select"],["placeholder","Virtualization engine",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","VM name",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange",4,"ngIf"],[3,"formGroup",4,"ngIf"],["aria-label","Actions when closing GNS3","class","radio-selection",3,"ngModel","ngModelChange",4,"ngIf"],[3,"value"],[3,"formGroup"],["class","form-field",4,"ngIf"],[1,"form-field"],["matInput","","formControlName","ram","type","number","placeholder","RAM"],["matSuffix",""],["matInput","","formControlName","vcpus","type","number","placeholder","vCPUs"],["matInput","","type","number","placeholder","Port",3,"ngModelOptions","ngModel","ngModelChange"],["aria-label","Actions when closing GNS3",1,"radio-selection",3,"ngModel","ngModelChange"],["value","keep",3,"click"],["value","suspend",3,"click"],["value","stop",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"GNS3 VM preferences"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.YNc(6,cpe,12,14,"mat-card",5),e.TgZ(7,"div",6),e.TgZ(8,"button",7),e.NdJ("click",function(){return i.goBack()}),e._uU(9,"Cancel"),e.qZA(),e.TgZ(10,"button",8),e.NdJ("click",function(){return i.save()}),e._uU(11,"Save"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngIf",i.gns3vm))},directives:[At.O5,An,_i,Lo,ne.JJ,ne.On,Hn.KE,fi.gD,At.sg,un.ey,ne._Y,ne.JL,ne.sg,dr,ne.Fj,ne.wV,ne.u,Hn.R9,vl,gl],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.radio-selection[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]}),n}(),VZ=function(){return function(){}}(),rv=function(){function n(r){this.httpServer=r}return n.prototype.getTemplates=function(r){return this.httpServer.get(r,"/templates")},n.prototype.getTemplate=function(r,t){return this.httpServer.get(r,"/templates/"+t)},n.prototype.getImages=function(r){return this.httpServer.get(r,"/compute/iou/images")},n.prototype.getImagePath=function(r,t){return r.protocol+"//"+r.host+":"+r.port+"/v2/compute/iou/images/"+t},n.prototype.addTemplate=function(r,t){return this.httpServer.post(r,"/templates",t)},n.prototype.saveTemplate=function(r,t){return this.httpServer.put(r,"/templates/"+t.template_id,t)},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}();function ppe(n,r){if(1&n&&(e.TgZ(0,"mat-option",24),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function fpe(n,r){if(1&n&&(e.TgZ(0,"mat-option",24),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.path),e.xp6(1),e.hij(" ",t.path," ")}}var mj=function(){return{standalone:!0}};function hpe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-form-field",13),e.TgZ(1,"mat-select",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iouTemplate.path=a}),e.YNc(2,fpe,2,2,"mat-option",18),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(1),e.Q6J("ngModel",i.iouTemplate.path)("ngModelOptions",e.DdM(3,mj)),e.xp6(1),e.Q6J("ngForOf",i.iouImages)}}function mpe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"input",26,27),e.NdJ("change",function(a){return e.CHM(t),e.oxw().uploadImageFile(a)}),e.qZA(),e.TgZ(3,"button",28),e.NdJ("click",function(){return e.CHM(t),e.MAs(2).click()}),e._uU(4,"Browse"),e.qZA(),e.TgZ(5,"mat-form-field",29),e._UZ(6,"input",30),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(1),e.Q6J("uploader",i.uploader)}}var vpe=function(){function n(r,t,i,o,a,s,u,p){this.route=r,this.serverService=t,this.iouService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateMocksService=u,this.computeService=p,this.isRemoteComputerChosen=!1,this.newImageSelected=!1,this.types=["L2 image","L3 image"],this.iouImages=[],this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.iouTemplate=new VZ,this.templateNameForm=this.formBuilder.group({templateName:new ne.NI(null,ne.kI.required)}),this.imageForm=this.formBuilder.group({imageName:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.uploader=new Wm({}),this.uploader.onAfterAddingFile=function(i){i.withCredentials=!1},this.uploader.onErrorItem=function(i,o,a,s){r.toasterService.error("An error occured: "+o)},this.uploader.onSuccessItem=function(i,o,a,s){r.getImages(),r.toasterService.success("Image uploaded")};var t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.getImages(),r.templateMocksService.getIouTemplate().subscribe(function(o){r.iouTemplate=o}),r.computeService.getComputes(i).subscribe(function(o){o.filter(function(a){return"vm"===a.compute_id}).length>0&&(r.isGns3VmAvailable=!0)})})},n.prototype.getImages=function(){var r=this;this.iouService.getImages(this.server).subscribe(function(t){r.iouImages=t})},n.prototype.setServerType=function(r){"gns3 vm"===r&&this.isGns3VmAvailable?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},n.prototype.setDiskImage=function(r){this.newImageSelected="newImage"===r},n.prototype.uploadImageFile=function(r){var t=r.target.files[0].name;this.imageForm.controls.imageName.setValue(t);var i=this.iouService.getImagePath(this.server,t);this.uploader.queue.forEach(function(a){return a.url=i});var o=this.uploader.queue[0];o.options.disableMultipart=!0,this.uploader.uploadItem(o)},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","iou","templates"])},n.prototype.addTemplate=function(){var r=this;!this.templateNameForm.invalid&&(this.newImageSelected&&!this.imageForm.invalid||!this.newImageSelected&&this.iouTemplate.path)?(this.iouTemplate.template_id=(0,wa.v4)(),this.iouTemplate.name=this.templateNameForm.get("templateName").value,this.newImageSelected&&(this.iouTemplate.path=this.imageForm.get("imageName").value),this.iouTemplate.compute_id=this.isGns3VmChosen?"vm":"local","L2 image"===this.selectedType?(this.iouTemplate.ethernet_adapters=4,this.iouTemplate.serial_adapters=0):"L3 image"===this.selectedType&&(this.iouTemplate.ethernet_adapters=2,this.iouTemplate.serial_adapters=2),this.iouService.addTemplate(this.server,this.iouTemplate).subscribe(function(t){r.goBack()})):this.toasterService.error("Fill all required fields")},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(rv),e.Y36(er),e.Y36(Er),e.Y36(ne.qu),e.Y36(ic),e.Y36(oc.X))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-add-iou-template"]],decls:35,vars:12,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"linear"],["label","Server type",3,"completed"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"disabled","click"],["label","Name",3,"completed"],[3,"formGroup"],[1,"form-field"],["matInput","","placeholder","Name","type","text","formControlName","templateName"],["label","Image"],["value","2",1,"radio-button",3,"click"],["placeholder","Type",3,"ngModel","ngModelOptions","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["class","form-field",4,"ngIf"],[4,"ngIf"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["placeholder","IOU image",3,"ngModel","ngModelOptions","ngModelChange"],["type","file","accept",".bin","ng2FileSelect","",1,"nonvisible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary",1,"file-button",3,"click"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","imageName","placeholder","IOU image"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"New IOU device template"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e.TgZ(7,"mat-vertical-stepper",6),e.TgZ(8,"mat-step",7),e.TgZ(9,"mat-radio-group",8),e.TgZ(10,"mat-radio-button",9),e.NdJ("click",function(){return i.setServerType("local")}),e._uU(11,"Run this IOU device locally"),e.qZA(),e.TgZ(12,"mat-radio-button",10),e.NdJ("click",function(){return i.setServerType("gns3 vm")}),e._uU(13,"Run this IOU device on the GNS3 VM"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"mat-step",11),e.TgZ(15,"form",12),e.TgZ(16,"mat-form-field",13),e._UZ(17,"input",14),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"mat-step",15),e.TgZ(19,"form",12),e.TgZ(20,"mat-radio-group",8),e.TgZ(21,"mat-radio-button",9),e.NdJ("click",function(){return i.setDiskImage("existingImage")}),e._uU(22,"Existing image"),e.qZA(),e.TgZ(23,"mat-radio-button",16),e.NdJ("click",function(){return i.setDiskImage("newImage")}),e._uU(24,"New image"),e.qZA(),e.qZA(),e.TgZ(25,"mat-form-field",13),e.TgZ(26,"mat-select",17),e.NdJ("ngModelChange",function(a){return i.selectedType=a}),e.YNc(27,ppe,2,2,"mat-option",18),e.qZA(),e.qZA(),e.YNc(28,hpe,3,4,"mat-form-field",19),e.YNc(29,mpe,7,1,"div",20),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"div",21),e.TgZ(31,"button",22),e.NdJ("click",function(){return i.goBack()}),e._uU(32,"Cancel"),e.qZA(),e.TgZ(33,"button",23),e.NdJ("click",function(){return i.addTemplate()}),e._uU(34,"Add template"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("linear",!0),e.xp6(1),e.Q6J("completed",i.isGns3VmChosen||i.isLocalComputerChosen),e.xp6(4),e.Q6J("disabled",!i.isGns3VmAvailable),e.xp6(2),e.Q6J("completed",i.templateNameForm.get("templateName").value),e.xp6(1),e.Q6J("formGroup",i.templateNameForm),e.xp6(4),e.Q6J("formGroup",i.imageForm),e.xp6(7),e.Q6J("ngModel",i.selectedType)("ngModelOptions",e.DdM(11,mj)),e.xp6(1),e.Q6J("ngForOf",i.types),e.xp6(1),e.Q6J("ngIf",!i.newImageSelected),e.xp6(1),e.Q6J("ngIf",i.newImageSelected))},directives:[$_,X_,vl,gl,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,fi.gD,ne.On,At.sg,At.O5,An,un.ey,lS],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),gpe=function(){function n(r,t,i,o,a,s){this.route=r,this.serverService=t,this.qemuService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateName="",this.templateNameForm=this.formBuilder.group({templateName:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id"),i=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then(function(o){r.server=o,r.qemuService.getTemplate(r.server,i).subscribe(function(a){r.iouTemplate=a,r.templateName="Copy of "+r.iouTemplate.name})})},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","iou","templates"])},n.prototype.addTemplate=function(){var r=this;this.templateNameForm.invalid?this.toasterService.error("Fill all required fields"):(this.iouTemplate.template_id=(0,wa.v4)(),this.iouTemplate.name=this.templateName,this.qemuService.addTemplate(this.server,this.iouTemplate).subscribe(function(t){r.goBack()}))},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(rv),e.Y36(er),e.Y36(Er),e.Y36(ne.qu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-copy-iou-template"]],decls:15,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","placeholder","Name","formControlName","templateName",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Copy IOU device template"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"mat-card",5),e.TgZ(7,"form",6),e.TgZ(8,"mat-form-field",7),e.TgZ(9,"input",8),e.NdJ("ngModelChange",function(a){return i.templateName=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",9),e.TgZ(11,"button",10),e.NdJ("click",function(){return i.goBack()}),e._uU(12,"Cancel"),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){return i.addTemplate()}),e._uU(14,"Copy template"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("formGroup",i.templateNameForm),e.xp6(2),e.Q6J("ngModel",i.templateName))},directives:[_i,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,An],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),qZ=function(){function n(){}return n.prototype.getConsoleTypes=function(){return["telnet","none"]},n.prototype.getCategories=function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}();function _pe(n,r){if(1&n&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function ype(n,r){if(1&n&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function bpe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-form-field",2),e.TgZ(1,"input",32),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).iouTemplate.ram=a}),e.qZA(),e.TgZ(2,"span",33),e._uU(3,"MB"),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(1),e.Q6J("ngModel",i.iouTemplate.ram)}}function Cpe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-form-field",2),e.TgZ(1,"input",34),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).iouTemplate.nvram=a}),e.qZA(),e.TgZ(2,"span",33),e._uU(3,"MB"),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(1),e.Q6J("ngModel",i.iouTemplate.nvram)}}var vj=function(){return{standalone:!0}};function Spe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",6),e.TgZ(1,"mat-accordion"),e.TgZ(2,"mat-expansion-panel"),e.TgZ(3,"mat-expansion-panel-header"),e.TgZ(4,"mat-panel-title"),e._uU(5," General settings "),e.qZA(),e.qZA(),e.TgZ(6,"form",7),e.TgZ(7,"mat-form-field",2),e.TgZ(8,"input",8),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iouTemplate.name=a}),e.qZA(),e.qZA(),e.TgZ(9,"mat-form-field",2),e.TgZ(10,"input",9),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iouTemplate.default_name_format=a}),e.qZA(),e.qZA(),e.TgZ(11,"mat-form-field",2),e.TgZ(12,"input",10),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iouTemplate.symbol=a}),e.qZA(),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){return e.CHM(t),e.oxw().chooseSymbol()}),e._uU(14,"Choose symbol"),e.qZA(),e._UZ(15,"br"),e._UZ(16,"br"),e.TgZ(17,"mat-form-field",2),e.TgZ(18,"mat-select",12),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iouTemplate.category=a}),e.YNc(19,_pe,2,2,"mat-option",13),e.qZA(),e.qZA(),e.TgZ(20,"input",14,15),e.NdJ("change",function(a){return e.CHM(t),e.oxw().uploadImageFile(a)}),e.qZA(),e.TgZ(22,"button",16),e.NdJ("click",function(){return e.CHM(t),e.MAs(21).click()}),e._uU(23,"Browse"),e.qZA(),e.TgZ(24,"mat-form-field",17),e.TgZ(25,"input",18),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iouTemplate.path=a}),e.qZA(),e.qZA(),e.TgZ(26,"mat-form-field",2),e.TgZ(27,"input",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iouTemplate.startup_config=a}),e.qZA(),e.qZA(),e.TgZ(28,"mat-form-field",2),e.TgZ(29,"input",20),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iouTemplate.private_config=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"mat-form-field",21),e.TgZ(31,"mat-select",22),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iouTemplate.console_type=a}),e.YNc(32,ype,2,2,"mat-option",13),e.qZA(),e.qZA(),e.TgZ(33,"mat-checkbox",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iouTemplate.console_auto_start=a}),e._uU(34," Auto start console "),e.qZA(),e._UZ(35,"br"),e.TgZ(36,"mat-checkbox",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iouTemplate.l1_keepalives=a}),e._uU(37," Enable layer 1 keepalive messages (non-functional) "),e.qZA(),e._UZ(38,"br"),e.TgZ(39,"mat-checkbox",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().defaultSettings=a}),e._uU(40," Use default IOU values for memories "),e.qZA(),e.YNc(41,bpe,4,1,"mat-form-field",24),e.YNc(42,Cpe,4,1,"mat-form-field",24),e.qZA(),e.TgZ(43,"mat-expansion-panel"),e.TgZ(44,"mat-expansion-panel-header"),e.TgZ(45,"mat-panel-title"),e._uU(46," Network "),e.qZA(),e.qZA(),e.TgZ(47,"form",7),e.TgZ(48,"mat-form-field",2),e.TgZ(49,"input",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iouTemplate.ethernet_adapters=a}),e.qZA(),e.qZA(),e.TgZ(50,"mat-form-field",2),e.TgZ(51,"input",26),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iouTemplate.serial_adapters=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(52,"mat-expansion-panel"),e.TgZ(53,"mat-expansion-panel-header"),e.TgZ(54,"mat-panel-title"),e._uU(55," Usage "),e.qZA(),e.qZA(),e.TgZ(56,"mat-form-field",2),e.TgZ(57,"textarea",27),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iouTemplate.usage=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(58,"div",28),e.TgZ(59,"button",29),e.NdJ("click",function(){return e.CHM(t),e.oxw().goBack()}),e._uU(60,"Cancel"),e.qZA(),e.TgZ(61,"button",30),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSave()}),e._uU(62,"Save"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(6),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.iouTemplate.name),e.xp6(2),e.Q6J("ngModel",i.iouTemplate.default_name_format),e.xp6(2),e.Q6J("ngModel",i.iouTemplate.symbol),e.xp6(6),e.Q6J("ngModelOptions",e.DdM(22,vj))("ngModel",i.iouTemplate.category),e.xp6(1),e.Q6J("ngForOf",i.categories),e.xp6(6),e.Q6J("ngModel",i.iouTemplate.path),e.xp6(2),e.Q6J("ngModel",i.iouTemplate.startup_config),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(23,vj))("ngModel",i.iouTemplate.private_config),e.xp6(2),e.Q6J("ngModel",i.iouTemplate.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModel",i.iouTemplate.console_auto_start),e.xp6(3),e.Q6J("ngModel",i.iouTemplate.l1_keepalives),e.xp6(3),e.Q6J("ngModel",i.defaultSettings),e.xp6(2),e.Q6J("ngIf",!i.defaultSettings),e.xp6(1),e.Q6J("ngIf",!i.defaultSettings),e.xp6(5),e.Q6J("formGroup",i.networkForm),e.xp6(2),e.Q6J("ngModel",i.iouTemplate.ethernet_adapters),e.xp6(2),e.Q6J("ngModel",i.iouTemplate.serial_adapters),e.xp6(6),e.Q6J("ngModel",i.iouTemplate.usage)}}function Tpe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"app-symbols-menu",35),e.NdJ("symbolChangedEmitter",function(a){return e.CHM(t),e.oxw().symbolChanged(a)}),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("server",i.server)("symbol",i.iouTemplate.symbol)}}var xpe=function(n){return{shadowed:n}},wpe=function(){function n(r,t,i,o,a,s,u){this.route=r,this.serverService=t,this.iouService=i,this.toasterService=o,this.configurationService=a,this.router=s,this.formBuilder=u,this.isSymbolSelectionOpened=!1,this.defaultSettings=!0,this.consoleTypes=[],this.consoleResolutions=[],this.categories=[],this.generalSettingsForm=this.formBuilder.group({templateName:new ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required),path:new ne.NI("",ne.kI.required),initialConfig:new ne.NI("",ne.kI.required)}),this.networkForm=this.formBuilder.group({ethernetAdapters:new ne.NI("",ne.kI.required),serialAdapters:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id"),i=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then(function(o){r.server=o,r.getConfiguration(),r.iouService.getTemplate(r.server,i).subscribe(function(a){r.iouTemplate=a})})},n.prototype.getConfiguration=function(){this.consoleTypes=this.configurationService.getConsoleTypes(),this.categories=this.configurationService.getCategories()},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","iou","templates"])},n.prototype.onSave=function(){var r=this;this.generalSettingsForm.invalid||this.networkForm.invalid?this.toasterService.error("Fill all required fields"):this.iouService.saveTemplate(this.server,this.iouTemplate).subscribe(function(){r.toasterService.success("Changes saved")})},n.prototype.uploadImageFile=function(r){this.iouTemplate.path=r.target.files[0].name},n.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},n.prototype.symbolChanged=function(r){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.iouTemplate.symbol=r},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(rv),e.Y36(er),e.Y36(qZ),e.Y36(Er),e.Y36(ne.qu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-iou-template-details"]],decls:7,vars:5,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"form-field"],[1,"col"],["class","default-content",4,"ngIf"],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[3,"formGroup"],["matInput","","formControlName","templateName","type","text","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","formControlName","defaultName","type","text","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","formControlName","symbol","type","text","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["type","file","accept",".bin","ngDefaultControl","",1,"nonvisible",3,"change"],["file",""],["mat-raised-button","","color","primary",1,"file-button",3,"click"],[1,"file-name-form-field"],["matInput","","formControlName","path","type","text","placeholder","IOU image path",3,"ngModel","ngModelChange"],["matInput","","formControlName","initialConfig","type","text","placeholder","Startup config",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Private config",3,"ngModelOptions","ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["class","form-field",4,"ngIf"],["matInput","","formControlName","ethernetAdapters","type","number","placeholder","Ethernet adapters",3,"ngModel","ngModelChange"],["matInput","","formControlName","serialAdapters","type","number","placeholder","Serial adapters",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["matInput","","type","number","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","placeholder","NVRAM size",3,"ngModel","ngModelChange"],[3,"server","symbol","symbolChangedEmitter"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"IOU device configuration"),e.qZA(),e.qZA(),e.qZA(),e.YNc(5,Spe,63,24,"div",4),e.qZA(),e.YNc(6,Tpe,1,2,"app-symbols-menu",5)),2&t&&(e.Q6J("ngClass",e.VKq(3,xpe,i.isSymbolSelectionOpened)),e.xp6(5),e.Q6J("ngIf",i.iouTemplate),e.xp6(1),e.Q6J("ngIf",i.isSymbolSelectionOpened&&i.iouTemplate))},directives:[At.mk,At.O5,ld,tc,nc,sd,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,An,fi.gD,ne.On,At.sg,Lo,ne.wV,un.ey,Hn.R9,cd],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function kpe(n,r){if(1&n&&(e.TgZ(0,"button",10),e._uU(1," Back "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences")}}function Epe(n,r){if(1&n&&(e.TgZ(0,"button",11),e._uU(1," Add IOU device template "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences/iou/addtemplate")}}function Mpe(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function Ape(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",15),e.TgZ(1,"mat-list-item",16),e._uU(2),e.qZA(),e.TgZ(3,"button",17),e.TgZ(4,"mat-icon"),e._uU(5,"more_vert"),e.qZA(),e.qZA(),e.TgZ(6,"mat-menu",null,18),e.TgZ(8,"button",19),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).deleteTemplate(u)}),e.TgZ(9,"mat-icon"),e._uU(10,"delete"),e.qZA(),e.TgZ(11,"span"),e._uU(12,"Delete"),e.qZA(),e.qZA(),e.TgZ(13,"button",19),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).copyTemplate(u)}),e.TgZ(14,"mat-icon"),e._uU(15,"content_copy"),e.qZA(),e.TgZ(16,"span"),e._uU(17,"Copy"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.MAs(7);e.xp6(1),e.s9C("routerLink",i.template_id),e.xp6(1),e.Oqu(i.name),e.xp6(1),e.Q6J("matMenuTriggerFor",o)}}function Dpe(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,Ape,18,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.iouTemplates)}}function Ope(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,Dpe,2,1,"mat-nav-list",6),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.server)}}var Ppe=function(){function n(r,t,i,o){this.route=r,this.serverService=t,this.iouService=i,this.router=o,this.iouTemplates=[]}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.getTemplates()})},n.prototype.getTemplates=function(){var r=this;this.iouService.getTemplates(this.server).subscribe(function(t){r.iouTemplates=t.filter(function(i){return"iou"===i.template_type&&!i.builtin})})},n.prototype.deleteTemplate=function(r){this.deleteComponent.deleteItem(r.name,r.template_id)},n.prototype.onDeleteEvent=function(){this.getTemplates()},n.prototype.copyTemplate=function(r){this.router.navigate(["/server",this.server.id,"preferences","iou","templates",r.template_id,"copy"])},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(rv),e.Y36(Er))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-iou-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(ka,5),2&t)&&(e.iGM(o=e.CRH())&&(i.deleteComponent=o.first))},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"IOU device templates"),e.qZA(),e.YNc(5,kpe,2,1,"button",4),e.YNc(6,Epe,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,Mpe,1,0,"app-empty-templates-list",6),e.YNc(8,Ope,3,1,"div",7),e.qZA(),e.TgZ(9,"app-delete-template",8,9),e.NdJ("deleteEvent",function(){return i.onDeleteEvent()}),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",!i.iouTemplates.length),e.xp6(1),e.Q6J("ngIf",i.iouTemplates.length),e.xp6(1),e.Q6J("server",i.server))},directives:[At.O5,ka,An,fa,pd,Du,At.sg,xs,$a,ur,ws,Lr],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),Ipe=function(){function n(r){this.route=r,this.serverId=""}return n.prototype.ngOnInit=function(){this.serverId=this.route.snapshot.paramMap.get("server_id")},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-preferences"]],decls:26,vars:9,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],[3,"routerLink"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Preferences"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e.TgZ(7,"mat-nav-list"),e.TgZ(8,"mat-list-item",6),e._uU(9," GNS3 VM "),e.qZA(),e.TgZ(10,"mat-list-item",6),e._uU(11," Built-in "),e.qZA(),e.TgZ(12,"mat-list-item",6),e._uU(13," Dynamips "),e.qZA(),e.TgZ(14,"mat-list-item",6),e._uU(15," IOS on Unix "),e.qZA(),e.TgZ(16,"mat-list-item",6),e._uU(17," VPCS "),e.qZA(),e.TgZ(18,"mat-list-item",6),e._uU(19," QEMU "),e.qZA(),e.TgZ(20,"mat-list-item",6),e._uU(21," VirtualBox "),e.qZA(),e.TgZ(22,"mat-list-item",6),e._uU(23," VMware "),e.qZA(),e.TgZ(24,"mat-list-item",6),e._uU(25," Docker "),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(8),e.MGl("routerLink","/server/",i.serverId,"/preferences/gns3vm"),e.xp6(2),e.MGl("routerLink","/server/",i.serverId,"/preferences/builtin"),e.xp6(2),e.MGl("routerLink","/server/",i.serverId,"/preferences/dynamips/templates"),e.xp6(2),e.MGl("routerLink","/server/",i.serverId,"/preferences/iou/templates"),e.xp6(2),e.MGl("routerLink","/server/",i.serverId,"/preferences/vpcs/templates"),e.xp6(2),e.MGl("routerLink","/server/",i.serverId,"/preferences/qemu/templates"),e.xp6(2),e.MGl("routerLink","/server/",i.serverId,"/preferences/virtualbox/templates"),e.xp6(2),e.MGl("routerLink","/server/",i.serverId,"/preferences/vmware/templates"),e.xp6(2),e.MGl("routerLink","/server/",i.serverId,"/preferences/docker/templates"))},directives:[Du,xs,fa],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),jZ=function(){return function(){}}(),vp=function(){function n(r){this.httpServer=r}return n.prototype.getTemplates=function(r){return this.httpServer.get(r,"/templates")},n.prototype.getTemplate=function(r,t){return this.httpServer.get(r,"/templates/"+t)},n.prototype.getImagePath=function(r,t){return r.protocol+"//"+r.host+":"+r.port+"/v2/compute/qemu/images/"+t},n.prototype.getBinaries=function(r){return this.httpServer.get(r,"/computes/local/qemu/binaries")},n.prototype.getImages=function(r){return this.httpServer.get(r,"/compute/qemu/images")},n.prototype.addImage=function(r,t){return this.httpServer.post(r,"/compute/qemu/img",t)},n.prototype.addTemplate=function(r,t){return this.httpServer.post(r,"/templates",t)},n.prototype.saveTemplate=function(r,t){return this.httpServer.put(r,"/templates/"+t.template_id,t)},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),y2=function(){function n(){}return n.prototype.getConsoleTypes=function(){return["telnet","vnc","spice","spice+agent","none"]},n.prototype.getDiskInterfaces=function(){return["ide","sata","scsi","sd","mtd","floppy","pflash","virtio","nvme","none"]},n.prototype.getNetworkTypes=function(){return["e1000","e1000-82544gc","e1000-82545em","e1000e","rocker","Intel Gigabit Ethernet","i82550","i82551","i82557a","i82557b","i82557c","i82558a","i82558b","i82559a","i82559b","i82559c","i82559er","i82562","i82801","ne2k_pci","pcnet","rtl8139","virtio","virtio-net-pci","vmxnet3"]},n.prototype.getBootPriorities=function(){return[["HDD","c"],["CD/DVD-ROM","d"],["Network","n"],["HDD or Network","cn"],["HDD or CD/DVD-ROM","cd"]]},n.prototype.getOnCloseOptions=function(){return[["Power off the VM","power_off"],["Send the shutdown signal (ACPI)","shutdown_signal"],["Save the VM state","save_vm_state"]]},n.prototype.getCategories=function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]},n.prototype.getPriorities=function(){return["realtime","very high","high","normal","low","very low"]},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}();function Rpe(n,r){if(1&n&&(e.TgZ(0,"mat-option",29),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t.path," ")}}function Npe(n,r){if(1&n&&(e.TgZ(0,"mat-option",29),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Zpe(n,r){if(1&n&&(e.TgZ(0,"mat-option",29),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t.filename," ")}}var zZ=function(){return{standalone:!0}};function Lpe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-select",30),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().selectedImage=a}),e.YNc(1,Zpe,2,2,"mat-option",17),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("ngModelOptions",e.DdM(3,zZ))("ngModel",i.selectedImage),e.xp6(1),e.Q6J("ngForOf",i.qemuImages)}}function Fpe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"input",31,32),e.NdJ("change",function(a){return e.CHM(t),e.oxw().uploadImageFile(a)}),e.qZA(),e.TgZ(3,"button",33),e.NdJ("click",function(){return e.CHM(t),e.MAs(2).click()}),e._uU(4,"Browse"),e.qZA(),e.TgZ(5,"mat-form-field",34),e.TgZ(6,"input",35),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().chosenImage=a}),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(1),e.Q6J("uploader",i.uploader),e.xp6(5),e.Q6J("ngModel",i.chosenImage)}}var Bpe=function(){function n(r,t,i,o,a,s,u,p,m){this.route=r,this.serverService=t,this.qemuService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateMocksService=u,this.configurationService=p,this.computeService=m,this.qemuBinaries=[],this.consoleTypes=[],this.newImageSelected=!1,this.qemuImages=[],this.chosenImage="",this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.qemuTemplate=new jZ,this.nameForm=this.formBuilder.group({templateName:new ne.NI(null,ne.kI.required)}),this.memoryForm=this.formBuilder.group({ramMemory:new ne.NI("256",ne.kI.required)}),this.diskForm=this.formBuilder.group({fileName:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.uploader=new Wm({}),this.uploader.onAfterAddingFile=function(i){i.withCredentials=!1},this.uploader.onErrorItem=function(i,o,a,s){r.toasterService.error("An error occured: "+o)},this.uploader.onSuccessItem=function(i,o,a,s){r.qemuService.getImages(r.server).subscribe(function(u){r.qemuImages=u}),r.toasterService.success("Image uploaded")};var t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.templateMocksService.getQemuTemplate().subscribe(function(o){r.qemuTemplate=o}),r.qemuService.getBinaries(i).subscribe(function(o){r.qemuBinaries=o,r.qemuBinaries[0]&&(r.selectedBinary=r.qemuBinaries[0])}),r.qemuService.getImages(i).subscribe(function(o){r.qemuImages=o}),r.consoleTypes=r.configurationService.getConsoleTypes(),r.computeService.getComputes(i).subscribe(function(o){o.filter(function(a){return"vm"===a.compute_id}).length>0&&(r.isGns3VmAvailable=!0)})})},n.prototype.setServerType=function(r){"gns3 vm"===r&&this.isGns3VmAvailable?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},n.prototype.setDiskImage=function(r){this.newImageSelected="newImage"===r},n.prototype.uploadImageFile=function(r){var t=r.target.files[0].name;this.diskForm.controls.fileName.setValue(t);var i=this.qemuService.getImagePath(this.server,t);this.uploader.queue.forEach(function(a){return a.url=i});var o=this.uploader.queue[0];o.options&&(o.options.disableMultipart=!0),this.uploader.uploadItem(o)},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","qemu","templates"])},n.prototype.addTemplate=function(){var r=this;this.nameForm.invalid||this.memoryForm.invalid||!this.selectedImage&&!this.chosenImage?this.toasterService.error("Fill all required fields"):(this.qemuTemplate.ram=+this.memoryForm.get("ramMemory").value,this.qemuTemplate.qemu_path=this.selectedBinary.path,this.qemuTemplate.hda_disk_image=this.newImageSelected?this.diskForm.get("fileName").value:this.selectedImage.path,this.qemuTemplate.template_id=(0,wa.v4)(),this.qemuTemplate.name=this.nameForm.get("templateName").value,this.qemuTemplate.compute_id=this.isGns3VmChosen?"vm":"local",this.qemuService.addTemplate(this.server,this.qemuTemplate).subscribe(function(t){r.goBack()}))},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(vp),e.Y36(er),e.Y36(Er),e.Y36(ne.qu),e.Y36(ic),e.Y36(y2),e.Y36(oc.X))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-add-qemu-virtual-machine-template"]],decls:49,vars:19,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"linear"],["label","Server type",3,"completed"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"disabled","click"],["label","QEMU VM Name",3,"completed"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Please choose a descriptive name for your new QEMU virtual machine","ngDefaultContro",""],["label","QEMU binary and memory",3,"completed"],["placeholder","Qemu binary",3,"ngModel","ngModelOptions","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","placeholder","RAM","formControlName","ramMemory","ngDefaultControl",""],["matSuffix",""],["label","Console type",3,"completed"],["placeholder","Console type",3,"ngModel","ngModelOptions","ngModelChange"],["label","Disk image"],["value","2",1,"radio-button",3,"click"],["placeholder","Disk image (hda)",3,"ngModelOptions","ngModel","ngModelChange",4,"ngIf"],[4,"ngIf"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["placeholder","Disk image (hda)",3,"ngModelOptions","ngModel","ngModelChange"],["type","file","accept",".qcow2","ng2FileSelect","",1,"nonvisible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary",1,"file-button",3,"click"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","fileName","placeholder","Please enter name",3,"ngModel","ngModelChange"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"New QEMU VM template"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e.TgZ(7,"mat-vertical-stepper",6),e.TgZ(8,"mat-step",7),e.TgZ(9,"mat-radio-group",8),e.TgZ(10,"mat-radio-button",9),e.NdJ("click",function(){return i.setServerType("local")}),e._uU(11,"Run this QEMU VM locally"),e.qZA(),e.TgZ(12,"mat-radio-button",10),e.NdJ("click",function(){return i.setServerType("gns3 vm")}),e._uU(13,"Run this QEMU VM on the GNS3 VM"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"mat-step",11),e.TgZ(15,"form",12),e.TgZ(16,"mat-form-field",13),e._UZ(17,"input",14),e.qZA(),e._UZ(18,"br"),e.qZA(),e.qZA(),e.TgZ(19,"mat-step",15),e.TgZ(20,"form",12),e.TgZ(21,"mat-form-field",13),e.TgZ(22,"mat-select",16),e.NdJ("ngModelChange",function(a){return i.selectedBinary=a}),e.YNc(23,Rpe,2,2,"mat-option",17),e.qZA(),e.qZA(),e._UZ(24,"br"),e.TgZ(25,"mat-form-field",13),e._UZ(26,"input",18),e.TgZ(27,"span",19),e._uU(28,"MB"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"mat-step",20),e.TgZ(30,"mat-form-field",13),e.TgZ(31,"mat-select",21),e.NdJ("ngModelChange",function(a){return i.qemuTemplate.console_type=a}),e.YNc(32,Npe,2,2,"mat-option",17),e.qZA(),e.qZA(),e.qZA(),e.TgZ(33,"mat-step",22),e.TgZ(34,"form",12),e.TgZ(35,"mat-radio-group",8),e.TgZ(36,"mat-radio-button",9),e.NdJ("click",function(){return i.setDiskImage("existingImage")}),e._uU(37,"Existing image"),e.qZA(),e.TgZ(38,"mat-radio-button",23),e.NdJ("click",function(){return i.setDiskImage("newImage")}),e._uU(39,"New image"),e.qZA(),e.qZA(),e._UZ(40,"br"),e._UZ(41,"br"),e.YNc(42,Lpe,2,4,"mat-select",24),e.YNc(43,Fpe,7,2,"div",25),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(44,"div",26),e.TgZ(45,"button",27),e.NdJ("click",function(){return i.goBack()}),e._uU(46,"Cancel"),e.qZA(),e.TgZ(47,"button",28),e.NdJ("click",function(){return i.addTemplate()}),e._uU(48,"Add template"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("linear",!0),e.xp6(1),e.Q6J("completed",i.isGns3VmChosen||i.isLocalComputerChosen),e.xp6(4),e.Q6J("disabled",!i.isGns3VmAvailable),e.xp6(2),e.Q6J("completed",i.nameForm.get("templateName").value),e.xp6(1),e.Q6J("formGroup",i.nameForm),e.xp6(4),e.Q6J("completed",i.memoryForm.get("ramMemory").value&&i.selectedBinary),e.xp6(1),e.Q6J("formGroup",i.memoryForm),e.xp6(2),e.Q6J("ngModel",i.selectedBinary)("ngModelOptions",e.DdM(17,zZ)),e.xp6(1),e.Q6J("ngForOf",i.qemuBinaries),e.xp6(6),e.Q6J("completed",i.qemuTemplate.console_type),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.console_type)("ngModelOptions",e.DdM(18,zZ)),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(2),e.Q6J("formGroup",i.diskForm),e.xp6(8),e.Q6J("ngIf",!i.newImageSelected),e.xp6(1),e.Q6J("ngIf",i.newImageSelected))},directives:[$_,X_,vl,gl,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,fi.gD,ne.On,At.sg,ne.wV,Hn.R9,At.O5,An,un.ey,lS],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),Upe=function(){function n(r,t,i,o,a,s){this.route=r,this.serverService=t,this.qemuService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.qemuBinaries=[],this.templateName="",this.nameForm=this.formBuilder.group({templateName:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id"),i=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then(function(o){r.server=o,r.qemuService.getTemplate(r.server,i).subscribe(function(a){r.qemuTemplate=a,r.templateName="Copy of "+r.qemuTemplate.name})})},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","qemu","templates"])},n.prototype.addTemplate=function(){var r=this;this.nameForm.invalid?this.toasterService.error("Fill all required fields"):(this.qemuTemplate.template_id=(0,wa.v4)(),this.qemuTemplate.name=this.templateName,this.qemuService.addTemplate(this.server,this.qemuTemplate).subscribe(function(t){r.goBack()}))},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(vp),e.Y36(er),e.Y36(Er),e.Y36(ne.qu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-copy-qemu-virtual-machine-template"]],decls:15,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","placeholder","Name","formControlName","templateName",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Copy QEMU VM template"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"mat-card",5),e.TgZ(7,"form",6),e.TgZ(8,"mat-form-field",7),e.TgZ(9,"input",8),e.NdJ("ngModelChange",function(a){return i.templateName=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",9),e.TgZ(11,"button",10),e.NdJ("click",function(){return i.goBack()}),e._uU(12,"Cancel"),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){return i.addTemplate()}),e._uU(14,"Copy template"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("formGroup",i.nameForm),e.xp6(2),e.Q6J("ngModel",i.templateName))},directives:[_i,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,An],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function Hpe(n,r){1&n&&(e.TgZ(0,"th",10),e._uU(1,"Adapter number"),e.qZA())}function Vpe(n,r){if(1&n&&(e.TgZ(0,"td",11),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.hij("Adapter ",t.adapter_number,"")}}function qpe(n,r){1&n&&(e.TgZ(0,"th",10),e._uU(1,"Port name"),e.qZA())}function jpe(n,r){if(1&n&&(e.TgZ(0,"td",11),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.hij("Ethernet ",t.adapter_number,"")}}function zpe(n,r){1&n&&(e.TgZ(0,"th",10),e._uU(1,"Adapter type"),e.qZA())}function Wpe(n,r){if(1&n&&(e.TgZ(0,"mat-option",14),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Gpe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"td",11),e.TgZ(1,"mat-select",12),e.NdJ("ngModelChange",function(s){return e.CHM(t).$implicit.adapter_type=s}),e.YNc(2,Wpe,2,2,"mat-option",13),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.oxw();e.xp6(1),e.Q6J("ngModel",i.adapter_type),e.xp6(1),e.Q6J("ngForOf",o.networkTypes)}}function Ype(n,r){1&n&&(e.TgZ(0,"th",10),e._uU(1,"Actions"),e.qZA())}function Jpe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"td",11),e.TgZ(1,"button",15),e.NdJ("click",function(){var a=e.CHM(t).$implicit;return e.oxw().delete(a)}),e.TgZ(2,"mat-icon",16),e._uU(3,"delete"),e.qZA(),e.qZA(),e.qZA()}}function Qpe(n,r){1&n&&e._UZ(0,"tr",17)}function Kpe(n,r){1&n&&e._UZ(0,"tr",18)}var b2=function(){function n(){this.networkTypes=[],this.displayedColumns=[],this.adapters=[]}return n.prototype.onAdd=function(){this.adapters=this.adapters.concat([{adapter_number:this.adapters.length,adapter_type:this.networkTypes[0]}])},n.prototype.delete=function(r){this.adapters=this.adapters.filter(function(t){return t!==r})},n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-custom-adapters-table"]],inputs:{networkTypes:"networkTypes",displayedColumns:"displayedColumns",adapters:"adapters"},decls:17,vars:3,consts:[["mat-table","",1,"table",3,"dataSource"],["matColumnDef","adapter_number"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","port_name"],["matColumnDef","adapter_type"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-button","",1,"form-field",3,"click"],["mat-header-cell",""],["mat-cell",""],["placeholder","Type",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["mat-icon-button","","matTooltip","Delete adapter","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete adapter"],["mat-header-row",""],["mat-row",""]],template:function(t,i){1&t&&(e.TgZ(0,"table",0),e.ynx(1,1),e.YNc(2,Hpe,2,0,"th",2),e.YNc(3,Vpe,2,1,"td",3),e.BQk(),e.ynx(4,4),e.YNc(5,qpe,2,0,"th",2),e.YNc(6,jpe,2,1,"td",3),e.BQk(),e.ynx(7,5),e.YNc(8,zpe,2,0,"th",2),e.YNc(9,Gpe,3,2,"td",3),e.BQk(),e.ynx(10,6),e.YNc(11,Ype,2,0,"th",2),e.YNc(12,Jpe,4,0,"td",3),e.BQk(),e.YNc(13,Qpe,1,0,"tr",7),e.YNc(14,Kpe,1,0,"tr",8),e.qZA(),e.TgZ(15,"button",9),e.NdJ("click",function(){return i.onAdd()}),e._uU(16,"Add"),e.qZA()),2&t&&(e.Q6J("dataSource",i.adapters),e.xp6(13),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns))},directives:[$l,fl,pl,dl,eu,tu,An,hl,ml,fi.gD,ne.JJ,ne.On,At.sg,un.ey,Xa,ur,nu,ru],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),Xpe=["customAdapters"],WZ=function(){function n(){this.networkTypes=[],this.displayedColumns=[],this.closeConfiguratorEmitter=new e.vpe,this.saveConfigurationEmitter=new e.vpe}return n.prototype.cancelConfigureCustomAdapters=function(){this.closeConfiguratorEmitter.emit(!1)},n.prototype.configureCustomAdapters=function(){var r=this;this.adapters=[],this.customAdapters.adapters.forEach(function(t){r.adapters.push({adapter_number:t.adapter_number,adapter_type:t.adapter_type})}),this.saveConfigurationEmitter.emit(this.adapters)},n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-custom-adapters"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(Xpe,5),2&t)&&(e.iGM(o=e.CRH())&&(i.customAdapters=o.first))},inputs:{networkTypes:"networkTypes",displayedColumns:"displayedColumns"},outputs:{closeConfiguratorEmitter:"closeConfiguratorEmitter",saveConfigurationEmitter:"saveConfigurationEmitter"},decls:15,vars:3,consts:[[1,"configurator"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"networkTypes","displayedColumns","adapters"],["customAdapters",""],[1,"buttons-bar"],["mat-button","",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Custom adapters configuration"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e._UZ(7,"app-custom-adapters-table",6,7),e.qZA(),e.TgZ(9,"div",8),e.TgZ(10,"button",9),e.NdJ("click",function(){return i.cancelConfigureCustomAdapters()}),e._uU(11,"Cancel"),e.qZA(),e.TgZ(12,"button",10),e.NdJ("click",function(){return i.configureCustomAdapters()}),e._uU(13,"Apply"),e.qZA(),e._UZ(14,"br"),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.adapters))},directives:[b2,An],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),$pe=["customAdaptersConfigurator"];function efe(n,r){if(1&n&&(e.TgZ(0,"mat-option",54),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function tfe(n,r){if(1&n&&(e.TgZ(0,"mat-option",54),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.path),e.xp6(1),e.hij(" ",t.path," ")}}function nfe(n,r){if(1&n&&(e.TgZ(0,"mat-option",54),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function rfe(n,r){if(1&n&&(e.TgZ(0,"mat-option",54),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function ife(n,r){if(1&n&&(e.TgZ(0,"mat-option",54),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function ofe(n,r){if(1&n&&(e.TgZ(0,"mat-option",54),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function afe(n,r){if(1&n&&(e.TgZ(0,"mat-option",54),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function sfe(n,r){if(1&n&&(e.TgZ(0,"mat-option",54),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function lfe(n,r){if(1&n&&(e.TgZ(0,"mat-option",54),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function ufe(n,r){if(1&n&&(e.TgZ(0,"mat-option",54),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[0]),e.xp6(1),e.AsE(" ",t[1]," (",t[0],") ")}}function cfe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-form-field",10),e.TgZ(1,"input",55),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).qemuTemplate.cpu_throttling=a}),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(1),e.Q6J("ngModel",i.qemuTemplate.cpu_throttling)}}function dfe(n,r){if(1&n&&(e.TgZ(0,"mat-option",54),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function pfe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",8),e.TgZ(1,"mat-accordion"),e.TgZ(2,"mat-expansion-panel"),e.TgZ(3,"mat-expansion-panel-header"),e.TgZ(4,"mat-panel-title"),e._uU(5," General settings "),e.qZA(),e.qZA(),e.TgZ(6,"form",9),e.TgZ(7,"mat-form-field",10),e.TgZ(8,"input",11),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.name=a}),e.qZA(),e.qZA(),e.TgZ(9,"mat-form-field",10),e.TgZ(10,"input",12),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.default_name_format=a}),e.qZA(),e.qZA(),e.TgZ(11,"mat-form-field",10),e.TgZ(12,"input",13),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.symbol=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"button",14),e.NdJ("click",function(){return e.CHM(t),e.oxw().chooseSymbol()}),e._uU(14,"Choose symbol"),e.qZA(),e._UZ(15,"br"),e._UZ(16,"br"),e.TgZ(17,"mat-form-field",10),e.TgZ(18,"mat-select",15),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.category=a}),e.YNc(19,efe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.TgZ(20,"mat-form-field",10),e.TgZ(21,"input",17),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.ram=a}),e.qZA(),e.TgZ(22,"span",18),e._uU(23,"MB"),e.qZA(),e.qZA(),e.TgZ(24,"mat-form-field",10),e.TgZ(25,"input",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.cpus=a}),e.qZA(),e.qZA(),e.TgZ(26,"mat-form-field",10),e.TgZ(27,"mat-select",20),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.qemu_path=a}),e.YNc(28,tfe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.TgZ(29,"mat-form-field",10),e.TgZ(30,"mat-select",21),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.boot_priority=a}),e.YNc(31,nfe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.TgZ(32,"mat-form-field",10),e.TgZ(33,"mat-select",22),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.on_close=a}),e.YNc(34,rfe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.TgZ(35,"mat-form-field",23),e.TgZ(36,"mat-select",24),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.console_type=a}),e.YNc(37,ife,2,2,"mat-option",16),e.qZA(),e.qZA(),e.TgZ(38,"mat-checkbox",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.console_auto_start=a}),e._uU(39," Auto start console "),e.qZA(),e.qZA(),e.TgZ(40,"mat-expansion-panel"),e.TgZ(41,"mat-expansion-panel-header"),e.TgZ(42,"mat-panel-title"),e._uU(43," HDD "),e.qZA(),e.qZA(),e.TgZ(44,"mat-card"),e._UZ(45,"mat-card-title"),e.TgZ(46,"mat-card-subtitle"),e._uU(47," HDA (Primary Master) "),e.qZA(),e.TgZ(48,"mat-card-content"),e.TgZ(49,"mat-form-field",10),e.TgZ(50,"input",26),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.hda_disk_image=a}),e.qZA(),e.qZA(),e.TgZ(51,"mat-form-field",10),e.TgZ(52,"mat-select",27),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.hda_disk_interface=a}),e.YNc(53,ofe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(54,"mat-card"),e._UZ(55,"mat-card-title"),e.TgZ(56,"mat-card-subtitle"),e._uU(57," HDB (Primary Slave) "),e.qZA(),e.TgZ(58,"mat-card-content"),e.TgZ(59,"mat-form-field",10),e.TgZ(60,"input",26),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.hdb_disk_image=a}),e.qZA(),e.qZA(),e.TgZ(61,"mat-form-field",10),e.TgZ(62,"mat-select",27),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.hdb_disk_interface=a}),e.YNc(63,afe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(64,"mat-card"),e._UZ(65,"mat-card-title"),e.TgZ(66,"mat-card-subtitle"),e._uU(67," HDC (Secondary Master) "),e.qZA(),e.TgZ(68,"mat-card-content"),e.TgZ(69,"mat-form-field",10),e.TgZ(70,"input",26),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.hdc_disk_image=a}),e.qZA(),e.qZA(),e.TgZ(71,"mat-form-field",10),e.TgZ(72,"mat-select",27),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.hdc_disk_interface=a}),e.YNc(73,sfe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(74,"mat-card"),e._UZ(75,"mat-card-title"),e.TgZ(76,"mat-card-subtitle"),e._uU(77," HDD (Secondary Slave) "),e.qZA(),e.TgZ(78,"mat-card-content"),e.TgZ(79,"mat-form-field",10),e.TgZ(80,"input",26),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.hdd_disk_image=a}),e.qZA(),e.qZA(),e.TgZ(81,"mat-form-field",10),e.TgZ(82,"mat-select",27),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.hdd_disk_interface=a}),e.YNc(83,lfe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(84,"mat-expansion-panel"),e.TgZ(85,"mat-expansion-panel-header"),e.TgZ(86,"mat-panel-title"),e._uU(87," CD/DVD "),e.qZA(),e.qZA(),e.TgZ(88,"div"),e.TgZ(89,"button",28),e.NdJ("click",function(){return e.CHM(t),e.MAs(92).click()}),e._uU(90,"Browse"),e.qZA(),e.TgZ(91,"input",29,30),e.NdJ("change",function(a){return e.CHM(t),e.oxw().uploadCdromImageFile(a)}),e.qZA(),e.TgZ(93,"mat-form-field",31),e.TgZ(94,"input",32),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.cdrom_image=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(95,"mat-expansion-panel"),e.TgZ(96,"mat-expansion-panel-header"),e.TgZ(97,"mat-panel-title"),e._uU(98," Network "),e.qZA(),e.qZA(),e.TgZ(99,"mat-form-field",10),e.TgZ(100,"input",33),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.adapters=a}),e.qZA(),e.qZA(),e.TgZ(101,"mat-form-field",10),e.TgZ(102,"input",34),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.first_port_name=a}),e.qZA(),e.qZA(),e.TgZ(103,"mat-form-field",10),e.TgZ(104,"input",35),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.port_name_format=a}),e.qZA(),e.qZA(),e.TgZ(105,"mat-form-field",10),e.TgZ(106,"input",36),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.port_segment_size=a}),e.qZA(),e.qZA(),e.TgZ(107,"mat-form-field",10),e.TgZ(108,"input",37),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.mac_address=a}),e.qZA(),e.qZA(),e.TgZ(109,"mat-form-field",10),e.TgZ(110,"mat-select",38),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.adapter_type=a}),e.YNc(111,ufe,2,3,"mat-option",16),e.qZA(),e.qZA(),e.TgZ(112,"button",39),e.NdJ("click",function(){return e.CHM(t),e.oxw().setCustomAdaptersConfiguratorState(!0)}),e._uU(113," Configure custom adapters"),e.qZA(),e._UZ(114,"br"),e.TgZ(115,"mat-checkbox",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.legacy_networking=a}),e._uU(116," Use the legacy networking mode "),e.qZA(),e.qZA(),e.TgZ(117,"mat-expansion-panel"),e.TgZ(118,"mat-expansion-panel-header"),e.TgZ(119,"mat-panel-title"),e._uU(120," Advanced "),e.qZA(),e.qZA(),e.TgZ(121,"mat-card"),e._UZ(122,"mat-card-title"),e.TgZ(123,"mat-card-subtitle"),e._uU(124," Linux boot specific settings "),e.qZA(),e.TgZ(125,"mat-card-content"),e.TgZ(126,"div"),e.TgZ(127,"button",28),e.NdJ("click",function(){return e.CHM(t),e.MAs(130).click()}),e._uU(128,"Browse"),e.qZA(),e.TgZ(129,"input",29,40),e.NdJ("change",function(a){return e.CHM(t),e.oxw().uploadInitrdFile(a)}),e.qZA(),e.TgZ(131,"mat-form-field",31),e.TgZ(132,"input",41),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.initrd=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(133,"div"),e.TgZ(134,"button",28),e.NdJ("click",function(){return e.CHM(t),e.oxw().filekerenelimage.click()}),e._uU(135," Browse "),e.qZA(),e.TgZ(136,"input",29,42),e.NdJ("change",function(a){return e.CHM(t),e.oxw().uploadKernelImageFile(a)}),e.qZA(),e.TgZ(138,"mat-form-field",31),e.TgZ(139,"input",43),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.kernel_image=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(140,"mat-form-field",10),e.TgZ(141,"input",44),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.kernel_command_line=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(142,"mat-card"),e._UZ(143,"mat-card-title"),e.TgZ(144,"mat-card-subtitle"),e._uU(145," Bios "),e.qZA(),e.TgZ(146,"mat-card-content"),e.TgZ(147,"div"),e.TgZ(148,"button",28),e.NdJ("click",function(){return e.CHM(t),e.MAs(151).click()}),e._uU(149,"Browse"),e.qZA(),e.TgZ(150,"input",29,45),e.NdJ("change",function(a){return e.CHM(t),e.oxw().uploadBiosFile(a)}),e.qZA(),e.TgZ(152,"mat-form-field",31),e.TgZ(153,"input",46),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.bios_image=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(154,"mat-card"),e._UZ(155,"mat-card-title"),e.TgZ(156,"mat-card-subtitle"),e._uU(157," Optimization "),e.qZA(),e.TgZ(158,"mat-card-content"),e.TgZ(159,"mat-checkbox",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().activateCpuThrottling=a}),e._uU(160," Activate CPU throttling "),e.qZA(),e.YNc(161,cfe,2,1,"mat-form-field",47),e.TgZ(162,"mat-form-field",10),e.TgZ(163,"mat-select",48),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.process_priority=a}),e.YNc(164,dfe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(165,"mat-card"),e._UZ(166,"mat-card-title"),e.TgZ(167,"mat-card-subtitle"),e._uU(168," Additional settings "),e.qZA(),e.TgZ(169,"mat-card-content"),e.TgZ(170,"mat-form-field",10),e.TgZ(171,"input",49),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.options=a}),e.qZA(),e.qZA(),e.TgZ(172,"mat-checkbox",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.linked_clone=a}),e._uU(173," Use as a linked base VM "),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(174,"mat-expansion-panel"),e.TgZ(175,"mat-expansion-panel-header"),e.TgZ(176,"mat-panel-title"),e._uU(177," Usage "),e.qZA(),e.qZA(),e.TgZ(178,"mat-form-field",10),e.TgZ(179,"textarea",50),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.usage=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(180,"div",51),e.TgZ(181,"button",52),e.NdJ("click",function(){return e.CHM(t),e.oxw().goBack()}),e._uU(182,"Cancel"),e.qZA(),e.TgZ(183,"button",53),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSave()}),e._uU(184,"Save"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(6),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.name),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.default_name_format),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.symbol),e.xp6(6),e.Q6J("ngModel",i.qemuTemplate.category),e.xp6(1),e.Q6J("ngForOf",i.categories),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.ram),e.xp6(4),e.Q6J("ngModel",i.qemuTemplate.cpus),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.qemu_path),e.xp6(1),e.Q6J("ngForOf",i.binaries),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.boot_priority),e.xp6(1),e.Q6J("ngForOf",i.bootPriorities),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.on_close),e.xp6(1),e.Q6J("ngForOf",i.onCloseOptions),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModel",i.qemuTemplate.console_auto_start),e.xp6(12),e.Q6J("ngModel",i.qemuTemplate.hda_disk_image),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.hda_disk_interface),e.xp6(1),e.Q6J("ngForOf",i.diskInterfaces),e.xp6(7),e.Q6J("ngModel",i.qemuTemplate.hdb_disk_image),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.hdb_disk_interface),e.xp6(1),e.Q6J("ngForOf",i.diskInterfaces),e.xp6(7),e.Q6J("ngModel",i.qemuTemplate.hdc_disk_image),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.hdc_disk_interface),e.xp6(1),e.Q6J("ngForOf",i.diskInterfaces),e.xp6(7),e.Q6J("ngModel",i.qemuTemplate.hdd_disk_image),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.hdd_disk_interface),e.xp6(1),e.Q6J("ngForOf",i.diskInterfaces),e.xp6(11),e.Q6J("ngModel",i.qemuTemplate.cdrom_image),e.xp6(6),e.Q6J("ngModel",i.qemuTemplate.adapters),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.first_port_name),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.port_name_format),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.port_segment_size),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.mac_address),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.adapter_type),e.xp6(1),e.Q6J("ngForOf",i.networkTypes),e.xp6(4),e.Q6J("ngModel",i.qemuTemplate.legacy_networking),e.xp6(17),e.Q6J("ngModel",i.qemuTemplate.initrd),e.xp6(7),e.Q6J("ngModel",i.qemuTemplate.kernel_image),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.kernel_command_line),e.xp6(12),e.Q6J("ngModel",i.qemuTemplate.bios_image),e.xp6(6),e.Q6J("ngModel",i.activateCpuThrottling),e.xp6(2),e.Q6J("ngIf",i.activateCpuThrottling),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.process_priority),e.xp6(1),e.Q6J("ngForOf",i.priorities),e.xp6(7),e.Q6J("ngModel",i.qemuTemplate.options),e.xp6(1),e.Q6J("ngModel",i.qemuTemplate.linked_clone),e.xp6(7),e.Q6J("ngModel",i.qemuTemplate.usage)}}function ffe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"app-symbols-menu",56),e.NdJ("symbolChangedEmitter",function(a){return e.CHM(t),e.oxw().symbolChanged(a)}),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("server",i.server)("symbol",i.qemuTemplate.symbol)}}var hfe=function(n){return{shadowed:n}},mfe=function(){function n(r,t,i,o,a,s,u){this.route=r,this.serverService=t,this.qemuService=i,this.toasterService=o,this.configurationService=a,this.formBuilder=s,this.router=u,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.diskInterfaces=[],this.networkTypes=[],this.bootPriorities=[],this.onCloseOptions=[],this.categories=[],this.priorities=[],this.binaries=[],this.activateCpuThrottling=!0,this.isConfiguratorOpened=!1,this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.generalSettingsForm=this.formBuilder.group({templateName:new ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id"),i=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then(function(o){r.server=o,r.getConfiguration(),r.qemuService.getTemplate(r.server,i).subscribe(function(a){r.qemuTemplate=a,r.fillCustomAdapters(),r.qemuService.getBinaries(o).subscribe(function(s){r.binaries=s})})})},n.prototype.getConfiguration=function(){this.consoleTypes=this.configurationService.getConsoleTypes(),this.diskInterfaces=this.configurationService.getDiskInterfaces(),this.networkTypes=this.configurationService.getNetworkTypes(),this.bootPriorities=this.configurationService.getBootPriorities(),this.onCloseOptions=this.configurationService.getOnCloseOptions(),this.categories=this.configurationService.getCategories(),this.priorities=this.configurationService.getPriorities()},n.prototype.uploadCdromImageFile=function(r){this.qemuTemplate.cdrom_image=r.target.files[0].name},n.prototype.uploadInitrdFile=function(r){this.qemuTemplate.initrd=r.target.files[0].name},n.prototype.uploadKernelImageFile=function(r){this.qemuTemplate.kernel_image=r.target.files[0].name},n.prototype.uploadBiosFile=function(r){this.qemuTemplate.bios_image=r.target.files[0].name},n.prototype.setCustomAdaptersConfiguratorState=function(r){var t=this;this.isConfiguratorOpened=r,r&&(this.fillCustomAdapters(),this.customAdaptersConfigurator.numberOfAdapters=this.qemuTemplate.adapters,this.customAdaptersConfigurator.adapters=[],this.qemuTemplate.custom_adapters.forEach(function(i){t.customAdaptersConfigurator.adapters.push({adapter_number:i.adapter_number,adapter_type:i.adapter_type})}))},n.prototype.saveCustomAdapters=function(r){this.setCustomAdaptersConfiguratorState(!1),this.qemuTemplate.custom_adapters=r},n.prototype.fillCustomAdapters=function(){var r=this.qemuTemplate.custom_adapters?this.qemuTemplate.custom_adapters:[];this.qemuTemplate.custom_adapters=[];for(var t=0;t<this.qemuTemplate.adapters;t++)this.qemuTemplate.custom_adapters.push(r[t]?r[t]:{adapter_number:t,adapter_type:"e1000"})},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","qemu","templates"])},n.prototype.onSave=function(){var r=this;this.generalSettingsForm.invalid?this.toasterService.error("Fill all required fields"):(this.activateCpuThrottling||(this.qemuTemplate.cpu_throttling=0),this.fillCustomAdapters(),this.qemuService.saveTemplate(this.server,this.qemuTemplate).subscribe(function(t){r.toasterService.success("Changes saved")}))},n.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},n.prototype.symbolChanged=function(r){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.qemuTemplate.symbol=r},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(vp),e.Y36(er),e.Y36(y2),e.Y36(ne.qu),e.Y36(Er))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-qemu-virtual-machine-template-details"]],viewQuery:function(t,i){var o;(1&t&&e.Gf($pe,5),2&t)&&(e.iGM(o=e.CRH())&&(i.customAdaptersConfigurator=o.first))},decls:9,vars:8,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"hidden","networkTypes","displayedColumns","closeConfiguratorEmitter","saveConfigurationEmitter"],["customAdaptersConfigurator",""],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","placeholder","RAM",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","placeholder","vCPUs",3,"ngModel","ngModelChange"],["placeholder","Qemu binary",3,"ngModel","ngModelChange"],["placeholder","Boot priority",3,"ngModel","ngModelChange"],["placeholder","On close",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["matInput","","placeholder","Disk image",3,"ngModel","ngModelChange"],["placeholder","Disk interface",3,"ngModel","ngModelChange"],["mat-raised-button","","color","primary",1,"file-button",3,"click"],["type","file",1,"nonvisible",3,"change"],["filecdrom",""],[1,"file-name-form-field"],["matInput","","type","text","placeholder","Image",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","First port name",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Name format",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Segment size",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Base MAC",3,"ngModel","ngModelChange"],["placeholder","Type",3,"ngModel","ngModelChange"],["mat-button","",1,"configButton",3,"click"],["fileinitrd",""],["matInput","","type","text","placeholder","Initial RAM disk (initrd)",3,"ngModel","ngModelChange"],["filekernelimage",""],["matInput","","type","text","placeholder","Kernel image",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Kernel command line",3,"ngModel","ngModelChange"],["filebios",""],["matInput","","type","text","placeholder","Bios image",3,"ngModel","ngModelChange"],["class","form-field",4,"ngIf"],["placeholder","Process priority",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Options",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["matInput","","type","number","placeholder","Perecentage of CPU allowed",3,"ngModel","ngModelChange"],[3,"server","symbol","symbolChangedEmitter"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"QEMU VM configuration"),e.qZA(),e.qZA(),e.qZA(),e.YNc(5,pfe,185,49,"div",4),e.qZA(),e.TgZ(6,"app-custom-adapters",5,6),e.NdJ("closeConfiguratorEmitter",function(a){return i.setCustomAdaptersConfiguratorState(a)})("saveConfigurationEmitter",function(a){return i.saveCustomAdapters(a)}),e.qZA(),e.YNc(8,ffe,1,2,"app-symbols-menu",7)),2&t&&(e.Q6J("ngClass",e.VKq(6,hfe,i.isConfiguratorOpened||i.isSymbolSelectionOpened)),e.xp6(5),e.Q6J("ngIf",i.qemuTemplate),e.xp6(1),e.Q6J("hidden",!(i.isConfiguratorOpened&&i.qemuTemplate))("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns),e.xp6(2),e.Q6J("ngIf",i.isSymbolSelectionOpened&&i.qemuTemplate))},directives:[At.mk,At.O5,WZ,ld,tc,nc,sd,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,An,fi.gD,ne.On,At.sg,ne.wV,Hn.R9,Lo,_i,fq,hq,DZ,un.ey,cd],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function vfe(n,r){if(1&n&&(e.TgZ(0,"button",10),e._uU(1," Back "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences")}}function gfe(n,r){if(1&n&&(e.TgZ(0,"button",11),e._uU(1," Add QEMU VM template "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences/qemu/addtemplate")}}function _fe(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function yfe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",15),e.TgZ(1,"mat-list-item",16),e._uU(2),e.qZA(),e.TgZ(3,"button",17),e.TgZ(4,"mat-icon"),e._uU(5,"more_vert"),e.qZA(),e.qZA(),e.TgZ(6,"mat-menu",null,18),e.TgZ(8,"button",19),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).deleteTemplate(u)}),e.TgZ(9,"mat-icon"),e._uU(10,"delete"),e.qZA(),e.TgZ(11,"span"),e._uU(12,"Delete"),e.qZA(),e.qZA(),e.TgZ(13,"button",19),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).copyTemplate(u)}),e.TgZ(14,"mat-icon"),e._uU(15,"content_copy"),e.qZA(),e.TgZ(16,"span"),e._uU(17,"Copy"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.MAs(7);e.xp6(1),e.s9C("routerLink",i.template_id),e.xp6(1),e.Oqu(i.name),e.xp6(1),e.Q6J("matMenuTriggerFor",o)}}function bfe(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,yfe,18,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.qemuTemplates)}}function Cfe(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,bfe,2,1,"mat-nav-list",6),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.server)}}var Sfe=function(){function n(r,t,i,o){this.route=r,this.serverService=t,this.qemuService=i,this.router=o,this.qemuTemplates=[]}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.getTemplates()})},n.prototype.getTemplates=function(){var r=this;this.qemuService.getTemplates(this.server).subscribe(function(t){r.qemuTemplates=t.filter(function(i){return"qemu"===i.template_type&&!i.builtin})})},n.prototype.deleteTemplate=function(r){this.deleteComponent.deleteItem(r.name,r.template_id)},n.prototype.onDeleteEvent=function(){this.getTemplates()},n.prototype.copyTemplate=function(r){this.router.navigate(["/server",this.server.id,"preferences","qemu","templates",r.template_id,"copy"])},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(vp),e.Y36(Er))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-qemu-virtual-machines-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(ka,5),2&t)&&(e.iGM(o=e.CRH())&&(i.deleteComponent=o.first))},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"QEMU VM templates"),e.qZA(),e.YNc(5,vfe,2,1,"button",4),e.YNc(6,gfe,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,_fe,1,0,"app-empty-templates-list",6),e.YNc(8,Cfe,3,1,"div",7),e.qZA(),e.TgZ(9,"app-delete-template",8,9),e.NdJ("deleteEvent",function(){return i.onDeleteEvent()}),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",!i.qemuTemplates.length),e.xp6(1),e.Q6J("ngIf",i.qemuTemplates.length),e.xp6(1),e.Q6J("server",i.server))},directives:[At.O5,ka,An,fa,pd,Du,At.sg,xs,$a,ur,ws,Lr],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),C2=function(){function n(r){this.httpServer=r}return n.prototype.getTemplates=function(r){return this.httpServer.get(r,"/templates")},n.prototype.getTemplate=function(r,t){return this.httpServer.get(r,"/templates/"+t)},n.prototype.addTemplate=function(r,t){return this.httpServer.post(r,"/templates",t)},n.prototype.saveTemplate=function(r,t){return this.httpServer.put(r,"/templates/"+t.template_id,t)},n.prototype.getVirtualMachines=function(r){return this.httpServer.get(r,"/compute/virtualbox/vms")},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}();function Tfe(n,r){if(1&n&&(e.TgZ(0,"mat-option",15),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t.vmname," ")}}function xfe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",5),e.TgZ(1,"mat-card",6),e.TgZ(2,"form",7),e.TgZ(3,"mat-form-field",8),e.TgZ(4,"mat-select",9),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().selectedVM=a}),e.YNc(5,Tfe,2,2,"mat-option",10),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"mat-checkbox",11),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.linked_clone=a}),e._uU(7," Use as a linked base VM (experimental) "),e.qZA(),e.qZA(),e.TgZ(8,"div",12),e.TgZ(9,"button",13),e.NdJ("click",function(){return e.CHM(t),e.oxw().goBack()}),e._uU(10,"Cancel"),e.qZA(),e.TgZ(11,"button",14),e.NdJ("click",function(){return e.CHM(t),e.oxw().addTemplate()}),e._uU(12,"Add template"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(2),e.Q6J("formGroup",i.vmForm),e.xp6(2),e.Q6J("ngModel",i.selectedVM),e.xp6(1),e.Q6J("ngForOf",i.virtualMachines),e.xp6(1),e.Q6J("ngModel",i.virtualBoxTemplate.linked_clone)}}var wfe=function(){function n(r,t,i,o,a,s,u){this.route=r,this.serverService=t,this.virtualBoxService=i,this.toasterService=o,this.templateMocksService=a,this.router=s,this.formBuilder=u,this.vmForm=this.formBuilder.group({vm:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.virtualBoxService.getVirtualMachines(r.server).subscribe(function(o){r.virtualMachines=o,r.templateMocksService.getVirtualBoxTemplate().subscribe(function(a){r.virtualBoxTemplate=a})})})},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","virtualbox","templates"])},n.prototype.addTemplate=function(){var r=this;this.vmForm.invalid?this.toasterService.error("Fill all required fields"):(this.virtualBoxTemplate.name=this.selectedVM.vmname,this.virtualBoxTemplate.vmname=this.selectedVM.vmname,this.virtualBoxTemplate.ram=this.selectedVM.ram,this.virtualBoxTemplate.template_id=(0,wa.v4)(),this.virtualBoxService.addTemplate(this.server,this.virtualBoxTemplate).subscribe(function(){r.goBack()}))},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(C2),e.Y36(er),e.Y36(ic),e.Y36(Er),e.Y36(ne.qu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-add-virtual-box-template"]],decls:6,vars:1,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["placeholder","VM list","formControlName","vm",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"New VirtualBox VM template"),e.qZA(),e.qZA(),e.qZA(),e.YNc(5,xfe,13,4,"div",4),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.virtualBoxTemplate))},directives:[At.O5,_i,ne._Y,ne.JL,ne.sg,Hn.KE,fi.gD,ne.JJ,ne.u,At.sg,Lo,ne.On,An,un.ey],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),GZ=function(){function n(){}return n.prototype.getConsoleTypes=function(){return["telnet","none"]},n.prototype.getOnCloseoptions=function(){return[["Power off the VM","power_off"],["Send the shutdown signal (ACPI)","shutdown_signal"],["Save the VM state","save_vm_state"]]},n.prototype.getCategories=function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]},n.prototype.getNetworkTypes=function(){return["PCnet-PCI II (Am79C970A)","PCNet-FAST III (Am79C973)","Intel PRO/1000 MT Desktop (82540EM)","Intel PRO/1000 T Server (82543GC)","Intel PRO/1000 MT Server (82545EM)","Paravirtualized Network (virtio-net)"]},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),kfe=["customAdaptersConfigurator"];function Efe(n,r){if(1&n&&(e.TgZ(0,"mat-option",34),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function Mfe(n,r){if(1&n&&(e.TgZ(0,"mat-option",34),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Afe(n,r){if(1&n&&(e.TgZ(0,"mat-option",34),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function Dfe(n,r){if(1&n&&(e.TgZ(0,"mat-option",34),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}var ey=function(){return{standalone:!0}};function Ofe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",8),e.TgZ(1,"mat-accordion"),e.TgZ(2,"mat-expansion-panel"),e.TgZ(3,"mat-expansion-panel-header"),e.TgZ(4,"mat-panel-title"),e._uU(5," General settings "),e.qZA(),e.qZA(),e.TgZ(6,"form",9),e.TgZ(7,"mat-form-field",10),e.TgZ(8,"input",11),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.name=a}),e.qZA(),e.qZA(),e.TgZ(9,"mat-form-field",10),e.TgZ(10,"input",12),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.default_name_format=a}),e.qZA(),e.qZA(),e.TgZ(11,"mat-form-field",10),e.TgZ(12,"input",13),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.symbol=a}),e.qZA(),e.qZA(),e.TgZ(13,"button",14),e.NdJ("click",function(){return e.CHM(t),e.oxw().chooseSymbol()}),e._uU(14,"Choose symbol"),e.qZA(),e._UZ(15,"br"),e._UZ(16,"br"),e.TgZ(17,"mat-form-field",10),e.TgZ(18,"mat-select",15),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.category=a}),e.YNc(19,Efe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.TgZ(20,"mat-form-field",17),e.TgZ(21,"mat-select",18),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.console_type=a}),e.YNc(22,Mfe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.TgZ(23,"mat-checkbox",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.console_auto_start=a}),e._uU(24," Auto start console "),e.qZA(),e.TgZ(25,"mat-form-field",10),e.TgZ(26,"input",20),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.ram=a}),e.qZA(),e.TgZ(27,"span",21),e._uU(28,"MB"),e.qZA(),e.qZA(),e.TgZ(29,"mat-form-field",10),e.TgZ(30,"mat-select",22),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.on_close=a}),e.YNc(31,Afe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.qZA(),e.TgZ(32,"mat-checkbox",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.headless=a}),e._uU(33," Start VM in headless mode "),e.qZA(),e._UZ(34,"br"),e.TgZ(35,"mat-checkbox",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.linked_clone=a}),e._uU(36," Use as a linked base VM (experimental) "),e.qZA(),e.qZA(),e.TgZ(37,"mat-expansion-panel"),e.TgZ(38,"mat-expansion-panel-header"),e.TgZ(39,"mat-panel-title"),e._uU(40," Network "),e.qZA(),e.qZA(),e.TgZ(41,"form",9),e.TgZ(42,"mat-form-field",10),e.TgZ(43,"input",24),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.adapters=a}),e.qZA(),e.qZA(),e.TgZ(44,"mat-form-field",10),e.TgZ(45,"input",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.first_port_name=a}),e.qZA(),e.qZA(),e.TgZ(46,"mat-form-field",10),e.TgZ(47,"input",26),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.port_name_format=a}),e.qZA(),e.qZA(),e.TgZ(48,"mat-form-field",10),e.TgZ(49,"input",27),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.port_segment_size=a}),e.qZA(),e.qZA(),e.TgZ(50,"mat-form-field",10),e.TgZ(51,"mat-select",28),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.adapter_type=a}),e.YNc(52,Dfe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.qZA(),e.TgZ(53,"button",29),e.NdJ("click",function(){return e.CHM(t),e.oxw().setCustomAdaptersConfiguratorState(!0)}),e._uU(54," Configure custom adapters"),e.qZA(),e._UZ(55,"br"),e.TgZ(56,"mat-checkbox",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.use_any_adapter=a}),e._uU(57," Allow GNS3 to use any configured VirtualBox adapter "),e.qZA(),e.qZA(),e.TgZ(58,"mat-expansion-panel"),e.TgZ(59,"mat-expansion-panel-header"),e.TgZ(60,"mat-panel-title"),e._uU(61," Usage "),e.qZA(),e.qZA(),e.TgZ(62,"mat-form-field",10),e.TgZ(63,"textarea",30),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.usage=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(64,"div",31),e.TgZ(65,"button",32),e.NdJ("click",function(){return e.CHM(t),e.oxw().goBack()}),e._uU(66,"Cancel"),e.qZA(),e.TgZ(67,"button",33),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSave()}),e._uU(68,"Save"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(6),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.virtualBoxTemplate.name),e.xp6(2),e.Q6J("ngModel",i.virtualBoxTemplate.default_name_format),e.xp6(2),e.Q6J("ngModel",i.virtualBoxTemplate.symbol),e.xp6(6),e.Q6J("ngModelOptions",e.DdM(29,ey))("ngModel",i.virtualBoxTemplate.category),e.xp6(1),e.Q6J("ngForOf",i.categories),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(30,ey))("ngModel",i.virtualBoxTemplate.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(31,ey))("ngModel",i.virtualBoxTemplate.console_auto_start),e.xp6(3),e.Q6J("ngModel",i.virtualBoxTemplate.ram),e.xp6(4),e.Q6J("ngModelOptions",e.DdM(32,ey))("ngModel",i.virtualBoxTemplate.on_close),e.xp6(1),e.Q6J("ngForOf",i.onCloseOptions),e.xp6(1),e.Q6J("ngModel",i.virtualBoxTemplate.headless),e.xp6(3),e.Q6J("ngModel",i.virtualBoxTemplate.linked_clone),e.xp6(6),e.Q6J("formGroup",i.networkForm),e.xp6(2),e.Q6J("ngModel",i.virtualBoxTemplate.adapters),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(33,ey))("ngModel",i.virtualBoxTemplate.first_port_name),e.xp6(2),e.Q6J("ngModel",i.virtualBoxTemplate.port_name_format),e.xp6(2),e.Q6J("ngModel",i.virtualBoxTemplate.port_segment_size),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(34,ey))("ngModel",i.virtualBoxTemplate.adapter_type),e.xp6(1),e.Q6J("ngForOf",i.networkTypes),e.xp6(4),e.Q6J("ngModel",i.virtualBoxTemplate.use_any_adapter),e.xp6(7),e.Q6J("ngModel",i.virtualBoxTemplate.usage)}}function Pfe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"app-symbols-menu",35),e.NdJ("symbolChangedEmitter",function(a){return e.CHM(t),e.oxw().symbolChanged(a)}),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("server",i.server)("symbol",i.virtualBoxTemplate.symbol)}}var Ife=function(n){return{shadowed:n}},Rfe=function(){function n(r,t,i,o,a,s,u){this.route=r,this.serverService=t,this.virtualBoxService=i,this.toasterService=o,this.formBuilder=a,this.virtualBoxConfigurationService=s,this.router=u,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.onCloseOptions=[],this.categories=[],this.networkTypes=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.isConfiguratorOpened=!1,this.generalSettingsForm=this.formBuilder.group({templateName:new ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required),ram:new ne.NI("",ne.kI.required)}),this.networkForm=this.formBuilder.group({adapters:new ne.NI("",ne.kI.required),nameFormat:new ne.NI("",ne.kI.required),size:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id"),i=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then(function(o){r.server=o,r.getConfiguration(),r.virtualBoxService.getTemplate(r.server,i).subscribe(function(a){r.virtualBoxTemplate=a,r.fillCustomAdapters()})})},n.prototype.getConfiguration=function(){this.consoleTypes=this.virtualBoxConfigurationService.getConsoleTypes(),this.onCloseOptions=this.virtualBoxConfigurationService.getOnCloseoptions(),this.categories=this.virtualBoxConfigurationService.getCategories(),this.networkTypes=this.virtualBoxConfigurationService.getNetworkTypes()},n.prototype.setCustomAdaptersConfiguratorState=function(r){var t=this;this.isConfiguratorOpened=r,r&&(this.fillCustomAdapters(),this.customAdaptersConfigurator.numberOfAdapters=this.virtualBoxTemplate.adapters,this.customAdaptersConfigurator.adapters=[],this.virtualBoxTemplate.custom_adapters.forEach(function(i){t.customAdaptersConfigurator.adapters.push({adapter_number:i.adapter_number,adapter_type:i.adapter_type})}))},n.prototype.saveCustomAdapters=function(r){this.setCustomAdaptersConfiguratorState(!1),this.virtualBoxTemplate.custom_adapters=r},n.prototype.fillCustomAdapters=function(){var r=this.virtualBoxTemplate.custom_adapters?this.virtualBoxTemplate.custom_adapters:[];this.virtualBoxTemplate.custom_adapters=[];for(var t=0;t<this.virtualBoxTemplate.adapters;t++)this.virtualBoxTemplate.custom_adapters.push(r[t]?r[t]:{adapter_number:t,adapter_type:"e1000"})},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","virtualbox","templates"])},n.prototype.onSave=function(){var r=this;this.generalSettingsForm.invalid||this.networkForm.invalid?this.toasterService.error("Fill all required fields"):(this.fillCustomAdapters(),this.virtualBoxService.saveTemplate(this.server,this.virtualBoxTemplate).subscribe(function(t){r.toasterService.success("Changes saved")}))},n.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},n.prototype.symbolChanged=function(r){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.virtualBoxTemplate.symbol=r},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(C2),e.Y36(er),e.Y36(ne.qu),e.Y36(GZ),e.Y36(Er))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-virtual-box-template-details"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(kfe,5),2&t)&&(e.iGM(o=e.CRH())&&(i.customAdaptersConfigurator=o.first))},decls:9,vars:8,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"hidden","networkTypes","displayedColumns","closeConfiguratorEmitter","saveConfigurationEmitter"],["customAdaptersConfigurator",""],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","templateName","type","text","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","formControlName","defaultName","type","text","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","formControlName","symbol","type","text","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","formControlName","ram","type","number","placeholder","RAM",3,"ngModel","ngModelChange"],["matSuffix",""],["placeholder","On close",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["formControlName","adapters","matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","First port name",3,"ngModelOptions","ngModel","ngModelChange"],["formControlName","nameFormat","matInput","","type","text","placeholder","Name format",3,"ngModel","ngModelChange"],["formControlName","size","matInput","","type","number","placeholder","Segment size",3,"ngModel","ngModelChange"],["placeholder","Type",3,"ngModelOptions","ngModel","ngModelChange"],["mat-button","",1,"configButton",3,"click"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"server","symbol","symbolChangedEmitter"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"VirtualBox VM configuration"),e.qZA(),e.qZA(),e.qZA(),e.YNc(5,Ofe,69,35,"div",4),e.qZA(),e.TgZ(6,"app-custom-adapters",5,6),e.NdJ("closeConfiguratorEmitter",function(a){return i.setCustomAdaptersConfiguratorState(a)})("saveConfigurationEmitter",function(a){return i.saveCustomAdapters(a)}),e.qZA(),e.YNc(8,Pfe,1,2,"app-symbols-menu",7)),2&t&&(e.Q6J("ngClass",e.VKq(6,Ife,i.isConfiguratorOpened||i.isSymbolSelectionOpened)),e.xp6(5),e.Q6J("ngIf",i.virtualBoxTemplate),e.xp6(1),e.Q6J("hidden",!(i.isConfiguratorOpened&&i.virtualBoxTemplate))("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns),e.xp6(2),e.Q6J("ngIf",i.isSymbolSelectionOpened&&i.virtualBoxTemplate))},directives:[At.mk,At.O5,WZ,ld,tc,nc,sd,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,An,fi.gD,ne.On,At.sg,Lo,ne.wV,Hn.R9,un.ey,cd],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function Nfe(n,r){if(1&n&&(e.TgZ(0,"button",10),e._uU(1," Back "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences")}}function Zfe(n,r){if(1&n&&(e.TgZ(0,"button",11),e._uU(1," Add Virtual Box VM template "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences/virtualbox/addtemplate")}}function Lfe(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function Ffe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",15),e.TgZ(1,"mat-list-item",16),e._uU(2),e.qZA(),e.TgZ(3,"button",17),e.TgZ(4,"mat-icon"),e._uU(5,"more_vert"),e.qZA(),e.qZA(),e.TgZ(6,"mat-menu",null,18),e.TgZ(8,"button",19),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).deleteTemplate(u)}),e.TgZ(9,"mat-icon"),e._uU(10,"delete"),e.qZA(),e.TgZ(11,"span"),e._uU(12,"Delete"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.MAs(7);e.xp6(1),e.s9C("routerLink",i.template_id),e.xp6(1),e.Oqu(i.name),e.xp6(1),e.Q6J("matMenuTriggerFor",o)}}function Bfe(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,Ffe,13,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.virtualBoxTemplates)}}function Ufe(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,Bfe,2,1,"mat-nav-list",6),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.server)}}var Hfe=function(){function n(r,t,i){this.route=r,this.serverService=t,this.virtualBoxService=i,this.virtualBoxTemplates=[]}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.getTemplates()})},n.prototype.getTemplates=function(){var r=this;this.virtualBoxService.getTemplates(this.server).subscribe(function(t){r.virtualBoxTemplates=t.filter(function(i){return"virtualbox"===i.template_type&&!i.builtin})})},n.prototype.deleteTemplate=function(r){this.deleteComponent.deleteItem(r.name,r.template_id)},n.prototype.onDeleteEvent=function(){this.getTemplates()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(C2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-virtual-box-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(ka,5),2&t)&&(e.iGM(o=e.CRH())&&(i.deleteComponent=o.first))},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"VirtualBox VM templates"),e.qZA(),e.YNc(5,Nfe,2,1,"button",4),e.YNc(6,Zfe,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,Lfe,1,0,"app-empty-templates-list",6),e.YNc(8,Ufe,3,1,"div",7),e.qZA(),e.TgZ(9,"app-delete-template",8,9),e.NdJ("deleteEvent",function(){return i.onDeleteEvent()}),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",!i.virtualBoxTemplates.length),e.xp6(1),e.Q6J("ngIf",i.virtualBoxTemplates.length),e.xp6(1),e.Q6J("server",i.server))},directives:[At.O5,ka,An,fa,pd,Du,At.sg,xs,$a,ur,ws,Lr],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),S2=function(){function n(r){this.httpServer=r}return n.prototype.getTemplates=function(r){return this.httpServer.get(r,"/templates")},n.prototype.getTemplate=function(r,t){return this.httpServer.get(r,"/templates/"+t)},n.prototype.addTemplate=function(r,t){return this.httpServer.post(r,"/templates",t)},n.prototype.saveTemplate=function(r,t){return this.httpServer.put(r,"/templates/"+t.template_id,t)},n.prototype.getVirtualMachines=function(r){return this.httpServer.get(r,"/compute/vmware/vms")},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}();function Vfe(n,r){if(1&n&&(e.TgZ(0,"mat-option",15),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t.vmname," ")}}var qfe=function(){return{standalone:!0}};function jfe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",5),e.TgZ(1,"mat-card",6),e.TgZ(2,"form",7),e.TgZ(3,"mat-form-field",8),e.TgZ(4,"mat-select",9),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().selectedVM=a}),e.YNc(5,Vfe,2,2,"mat-option",10),e.qZA(),e.qZA(),e._UZ(6,"br"),e.TgZ(7,"mat-checkbox",11),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.linked_clone=a}),e._uU(8," Use as a linked base VM (experimental) "),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",12),e.TgZ(10,"button",13),e.NdJ("click",function(){return e.CHM(t),e.oxw().goBack()}),e._uU(11,"Cancel"),e.qZA(),e.TgZ(12,"button",14),e.NdJ("click",function(){return e.CHM(t),e.oxw().addTemplate()}),e._uU(13,"Add template"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(2),e.Q6J("formGroup",i.templateNameForm),e.xp6(2),e.Q6J("ngModel",i.selectedVM),e.xp6(1),e.Q6J("ngForOf",i.virtualMachines),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(5,qfe))("ngModel",i.vmwareTemplate.linked_clone)}}var zfe=function(){function n(r,t,i,o,a,s,u){this.route=r,this.serverService=t,this.vmwareService=i,this.toasterService=o,this.templateMocksService=a,this.router=s,this.formBuilder=u,this.templateNameForm=this.formBuilder.group({templateName:new ne.NI(null,[ne.kI.required])})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.vmwareService.getVirtualMachines(r.server).subscribe(function(o){r.virtualMachines=o,r.templateMocksService.getVmwareTemplate().subscribe(function(a){r.vmwareTemplate=a})})})},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","vmware","templates"])},n.prototype.addTemplate=function(){var r=this;this.templateNameForm.invalid?this.toasterService.error("Fill all required fields"):(this.vmwareTemplate.name=this.selectedVM.vmname,this.vmwareTemplate.vmx_path=this.selectedVM.vmx_path,this.vmwareTemplate.template_id=(0,wa.v4)(),this.vmwareService.addTemplate(this.server,this.vmwareTemplate).subscribe(function(){r.goBack()}))},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(S2),e.Y36(er),e.Y36(ic),e.Y36(Er),e.Y36(ne.qu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-add-vmware-template"]],decls:6,vars:1,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["placeholder","VM list","formControlName","templateName",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"New VMware VM template"),e.qZA(),e.qZA(),e.qZA(),e.YNc(5,jfe,14,6,"div",4),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.vmwareTemplate))},directives:[At.O5,_i,ne._Y,ne.JL,ne.sg,Hn.KE,fi.gD,ne.JJ,ne.u,At.sg,Lo,ne.On,An,un.ey],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),YZ=function(){function n(){}return n.prototype.getConsoleTypes=function(){return["telnet","none"]},n.prototype.getOnCloseoptions=function(){return[["Power off the VM","power_off"],["Send the shutdown signal (ACPI)","shutdown_signal"],["Save the VM state","save_vm_state"]]},n.prototype.getCategories=function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]},n.prototype.getNetworkTypes=function(){return["default","e1000","e1000e","flexible","vlance","vmxnet","vmxnet2","vmxnet3"]},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),Wfe=["customAdaptersConfigurator"];function Gfe(n,r){if(1&n&&(e.TgZ(0,"mat-option",32),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function Yfe(n,r){if(1&n&&(e.TgZ(0,"mat-option",32),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Jfe(n,r){if(1&n&&(e.TgZ(0,"mat-option",32),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function Qfe(n,r){if(1&n&&(e.TgZ(0,"mat-option",32),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}var ty=function(){return{standalone:!0}};function Kfe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",8),e.TgZ(1,"mat-accordion"),e.TgZ(2,"mat-expansion-panel"),e.TgZ(3,"mat-expansion-panel-header"),e.TgZ(4,"mat-panel-title"),e._uU(5," General settings "),e.qZA(),e.qZA(),e.TgZ(6,"form",9),e.TgZ(7,"mat-form-field",10),e.TgZ(8,"input",11),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.name=a}),e.qZA(),e.qZA(),e.TgZ(9,"mat-form-field",10),e.TgZ(10,"input",12),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.default_name_format=a}),e.qZA(),e.qZA(),e.TgZ(11,"mat-form-field",10),e.TgZ(12,"input",13),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.symbol=a}),e.qZA(),e.qZA(),e.TgZ(13,"button",14),e.NdJ("click",function(){return e.CHM(t),e.oxw().chooseSymbol()}),e._uU(14,"Choose symbol"),e.qZA(),e._UZ(15,"br"),e._UZ(16,"br"),e.TgZ(17,"mat-form-field",10),e.TgZ(18,"mat-select",15),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.category=a}),e.YNc(19,Gfe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.TgZ(20,"mat-form-field",17),e.TgZ(21,"mat-select",18),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.console_type=a}),e.YNc(22,Yfe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.TgZ(23,"mat-checkbox",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.console_auto_start=a}),e._uU(24," Auto start console "),e.qZA(),e.TgZ(25,"mat-form-field",10),e.TgZ(26,"mat-select",20),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.on_close=a}),e.YNc(27,Jfe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.TgZ(28,"mat-checkbox",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.headless=a}),e._uU(29," Start VM in headless mode "),e.qZA(),e._UZ(30,"br"),e._UZ(31,"br"),e.TgZ(32,"mat-checkbox",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.linked_clone=a}),e._uU(33," Use as a linked base VM (experimental) "),e.qZA(),e.qZA(),e.qZA(),e.TgZ(34,"mat-expansion-panel"),e.TgZ(35,"mat-expansion-panel-header"),e.TgZ(36,"mat-panel-title"),e._uU(37," Network "),e.qZA(),e.qZA(),e.TgZ(38,"mat-form-field",10),e.TgZ(39,"input",21),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.adapters=a}),e.qZA(),e.qZA(),e.TgZ(40,"mat-form-field",10),e.TgZ(41,"input",22),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.first_port_name=a}),e.qZA(),e.qZA(),e.TgZ(42,"mat-form-field",10),e.TgZ(43,"input",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.port_name_format=a}),e.qZA(),e.qZA(),e.TgZ(44,"mat-form-field",10),e.TgZ(45,"input",24),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.port_segment_size=a}),e.qZA(),e.qZA(),e.TgZ(46,"mat-form-field",10),e.TgZ(47,"mat-select",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.adapter_type=a}),e.YNc(48,Qfe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.TgZ(49,"button",26),e.NdJ("click",function(){return e.CHM(t),e.oxw().setCustomAdaptersConfiguratorState(!0)}),e._uU(50," Configure custom adapters"),e.qZA(),e._UZ(51,"br"),e.TgZ(52,"mat-checkbox",27),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.use_any_adapter=a}),e._uU(53," Allow GNS3 to override non custom VMware adapter "),e.qZA(),e.qZA(),e.TgZ(54,"mat-expansion-panel"),e.TgZ(55,"mat-expansion-panel-header"),e.TgZ(56,"mat-panel-title"),e._uU(57," Usage "),e.qZA(),e.qZA(),e.TgZ(58,"mat-form-field",10),e.TgZ(59,"textarea",28),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.usage=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(60,"div",29),e.TgZ(61,"button",30),e.NdJ("click",function(){return e.CHM(t),e.oxw().goBack()}),e._uU(62,"Cancel"),e.qZA(),e.TgZ(63,"button",31),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSave()}),e._uU(64,"Save"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(6),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.vmwareTemplate.name),e.xp6(2),e.Q6J("ngModel",i.vmwareTemplate.default_name_format),e.xp6(2),e.Q6J("ngModel",i.vmwareTemplate.symbol),e.xp6(6),e.Q6J("ngModelOptions",e.DdM(27,ty))("ngModel",i.vmwareTemplate.category),e.xp6(1),e.Q6J("ngForOf",i.categories),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(28,ty))("ngModel",i.vmwareTemplate.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(29,ty))("ngModel",i.vmwareTemplate.console_auto_start),e.xp6(3),e.Q6J("ngModelOptions",e.DdM(30,ty))("ngModel",i.vmwareTemplate.on_close),e.xp6(1),e.Q6J("ngForOf",i.onCloseOptions),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(31,ty))("ngModel",i.vmwareTemplate.headless),e.xp6(4),e.Q6J("ngModelOptions",e.DdM(32,ty))("ngModel",i.vmwareTemplate.linked_clone),e.xp6(7),e.Q6J("ngModel",i.vmwareTemplate.adapters),e.xp6(2),e.Q6J("ngModel",i.vmwareTemplate.first_port_name),e.xp6(2),e.Q6J("ngModel",i.vmwareTemplate.port_name_format),e.xp6(2),e.Q6J("ngModel",i.vmwareTemplate.port_segment_size),e.xp6(2),e.Q6J("ngModel",i.vmwareTemplate.adapter_type),e.xp6(1),e.Q6J("ngForOf",i.networkTypes),e.xp6(4),e.Q6J("ngModel",i.vmwareTemplate.use_any_adapter),e.xp6(7),e.Q6J("ngModel",i.vmwareTemplate.usage)}}function Xfe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"app-symbols-menu",33),e.NdJ("symbolChangedEmitter",function(a){return e.CHM(t),e.oxw().symbolChanged(a)}),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("server",i.server)("symbol",i.vmwareTemplate.symbol)}}var $fe=function(n){return{shadowed:n}},ehe=function(){function n(r,t,i,o,a,s,u){this.route=r,this.serverService=t,this.vmwareService=i,this.toasterService=o,this.formBuilder=a,this.vmwareConfigurationService=s,this.router=u,this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.isConfiguratorOpened=!1,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.categories=[],this.onCloseOptions=[],this.networkTypes=[],this.generalSettingsForm=this.formBuilder.group({templateName:new ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id"),i=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then(function(o){r.server=o,r.getConfiguration(),r.vmwareService.getTemplate(r.server,i).subscribe(function(a){r.vmwareTemplate=a,r.fillCustomAdapters()})})},n.prototype.getConfiguration=function(){this.consoleTypes=this.vmwareConfigurationService.getConsoleTypes(),this.categories=this.vmwareConfigurationService.getCategories(),this.onCloseOptions=this.vmwareConfigurationService.getOnCloseoptions(),this.networkTypes=this.vmwareConfigurationService.getNetworkTypes()},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","vmware","templates"])},n.prototype.onSave=function(){var r=this;this.generalSettingsForm.invalid?this.toasterService.error("Fill all required fields"):(this.fillCustomAdapters(),this.vmwareService.saveTemplate(this.server,this.vmwareTemplate).subscribe(function(t){r.toasterService.success("Changes saved")}))},n.prototype.setCustomAdaptersConfiguratorState=function(r){var t=this;this.isConfiguratorOpened=r,r&&(this.fillCustomAdapters(),this.customAdaptersConfigurator.numberOfAdapters=this.vmwareTemplate.adapters,this.customAdaptersConfigurator.adapters=[],this.vmwareTemplate.custom_adapters.forEach(function(i){t.customAdaptersConfigurator.adapters.push({adapter_number:i.adapter_number,adapter_type:i.adapter_type})}))},n.prototype.saveCustomAdapters=function(r){this.setCustomAdaptersConfiguratorState(!1),this.vmwareTemplate.custom_adapters=r},n.prototype.fillCustomAdapters=function(){var r=this.vmwareTemplate.custom_adapters?this.vmwareTemplate.custom_adapters:[];this.vmwareTemplate.custom_adapters=[];for(var t=0;t<this.vmwareTemplate.adapters;t++)this.vmwareTemplate.custom_adapters.push(r[t]?r[t]:{adapter_number:t,adapter_type:"e1000"})},n.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},n.prototype.symbolChanged=function(r){this.vmwareTemplate.symbol=r},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(S2),e.Y36(er),e.Y36(ne.qu),e.Y36(YZ),e.Y36(Er))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-vmware-template-details"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(Wfe,5),2&t)&&(e.iGM(o=e.CRH())&&(i.customAdaptersConfigurator=o.first))},decls:9,vars:8,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"hidden","networkTypes","displayedColumns","closeConfiguratorEmitter","saveConfigurationEmitter"],["customAdaptersConfigurator",""],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],["placeholder","On close",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","First port name",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Name format",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Segment size",3,"ngModel","ngModelChange"],["placeholder","Type",3,"ngModel","ngModelChange"],["mat-button","",1,"configButton",3,"click"],[3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"server","symbol","symbolChangedEmitter"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"VMware VM configuration"),e.qZA(),e.qZA(),e.qZA(),e.YNc(5,Kfe,65,33,"div",4),e.qZA(),e.TgZ(6,"app-custom-adapters",5,6),e.NdJ("closeConfiguratorEmitter",function(a){return i.setCustomAdaptersConfiguratorState(a)})("saveConfigurationEmitter",function(a){return i.saveCustomAdapters(a)}),e.qZA(),e.YNc(8,Xfe,1,2,"app-symbols-menu",7)),2&t&&(e.Q6J("ngClass",e.VKq(6,$fe,i.isSymbolSelectionOpened||i.isConfiguratorOpened)),e.xp6(5),e.Q6J("ngIf",i.vmwareTemplate),e.xp6(1),e.Q6J("hidden",!(i.isConfiguratorOpened&&i.vmwareTemplate))("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns),e.xp6(2),e.Q6J("ngIf",i.isSymbolSelectionOpened&&i.vmwareTemplate))},directives:[At.mk,At.O5,WZ,ld,tc,nc,sd,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,An,fi.gD,ne.On,At.sg,Lo,ne.wV,un.ey,cd],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function the(n,r){if(1&n&&(e.TgZ(0,"button",10),e._uU(1," Back "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences")}}function nhe(n,r){if(1&n&&(e.TgZ(0,"button",11),e._uU(1," Add VMware template "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences/vmware/addtemplate")}}function rhe(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function ihe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",15),e.TgZ(1,"mat-list-item",16),e._uU(2),e.qZA(),e.TgZ(3,"button",17),e.TgZ(4,"mat-icon"),e._uU(5,"more_vert"),e.qZA(),e.qZA(),e.TgZ(6,"mat-menu",null,18),e.TgZ(8,"button",19),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).deleteTemplate(u)}),e.TgZ(9,"mat-icon"),e._uU(10,"delete"),e.qZA(),e.TgZ(11,"span"),e._uU(12,"Delete"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.MAs(7);e.xp6(1),e.s9C("routerLink",i.template_id),e.xp6(1),e.Oqu(i.name),e.xp6(1),e.Q6J("matMenuTriggerFor",o)}}function ohe(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,ihe,13,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.vmwareTemplates)}}function ahe(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,ohe,2,1,"mat-nav-list",6),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.server)}}var she=function(){function n(r,t,i){this.route=r,this.serverService=t,this.vmwareService=i,this.vmwareTemplates=[]}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.getTemplates()})},n.prototype.getTemplates=function(){var r=this;this.vmwareService.getTemplates(this.server).subscribe(function(t){r.vmwareTemplates=t.filter(function(i){return"vmware"===i.template_type&&!i.builtin})})},n.prototype.deleteTemplate=function(r){this.deleteComponent.deleteItem(r.name,r.template_id)},n.prototype.onDeleteEvent=function(){this.getTemplates()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(S2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-vmware-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(ka,5),2&t)&&(e.iGM(o=e.CRH())&&(i.deleteComponent=o.first))},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"VMware VM templates"),e.qZA(),e.YNc(5,the,2,1,"button",4),e.YNc(6,nhe,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,rhe,1,0,"app-empty-templates-list",6),e.YNc(8,ahe,3,1,"div",7),e.qZA(),e.TgZ(9,"app-delete-template",8,9),e.NdJ("deleteEvent",function(){return i.onDeleteEvent()}),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",!i.vmwareTemplates.length),e.xp6(1),e.Q6J("ngIf",i.vmwareTemplates.length),e.xp6(1),e.Q6J("server",i.server))},directives:[At.O5,ka,An,fa,pd,Du,At.sg,xs,$a,ur,ws,Lr],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),T2=function(){function n(r){this.httpServer=r}return n.prototype.getTemplates=function(r){return this.httpServer.get(r,"/templates")},n.prototype.getTemplate=function(r,t){return this.httpServer.get(r,"/templates/"+t)},n.prototype.addTemplate=function(r,t){return this.httpServer.post(r,"/templates",t)},n.prototype.saveTemplate=function(r,t){return this.httpServer.put(r,"/templates/"+t.template_id,t)},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),lhe=function(){function n(r,t,i,o,a,s,u,p){this.route=r,this.serverService=t,this.vpcsService=i,this.router=o,this.toasterService=a,this.templateMocksService=s,this.formBuilder=u,this.computeService=p,this.templateName="",this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.templateNameForm=this.formBuilder.group({templateName:new ne.NI(null,[ne.kI.required])})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.computeService.getComputes(i).subscribe(function(o){o.filter(function(a){return"vm"===a.compute_id}).length>0&&(r.isGns3VmAvailable=!0)})})},n.prototype.setServerType=function(r){"gns3 vm"===r&&this.isGns3VmAvailable?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","vpcs","templates"])},n.prototype.addTemplate=function(){var t,r=this;this.templateNameForm.invalid?this.toasterService.error("Fill all required fields"):(this.templateName=this.templateNameForm.get("templateName").value,this.templateMocksService.getVpcsTemplate().subscribe(function(i){t=i}),t.template_id=(0,wa.v4)(),t.name=this.templateName,t.compute_id=this.isGns3VmChosen?"vm":"local",this.vpcsService.addTemplate(this.server,t).subscribe(function(){r.goBack()}))},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(T2),e.Y36(Er),e.Y36(er),e.Y36(ic),e.Y36(ne.qu),e.Y36(oc.X))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-add-vpcs-template"]],decls:20,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"disabled","click"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","templateName","type","text","placeholder","Template name"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"New VPCS node template"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"mat-card",5),e.TgZ(7,"mat-radio-group",6),e.TgZ(8,"mat-radio-button",7),e.NdJ("click",function(){return i.setServerType("local")}),e._uU(9,"Run the VPCS node locally"),e.qZA(),e.TgZ(10,"mat-radio-button",8),e.NdJ("click",function(){return i.setServerType("gns3 vm")}),e._uU(11,"Run the VPCS node on the GNS3 VM"),e.qZA(),e.qZA(),e.TgZ(12,"form",9),e.TgZ(13,"mat-form-field",10),e._UZ(14,"input",11),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",12),e.TgZ(16,"button",13),e.NdJ("click",function(){return i.goBack()}),e._uU(17,"Cancel"),e.qZA(),e.TgZ(18,"button",14),e.NdJ("click",function(){return i.addTemplate()}),e._uU(19,"Add template"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(10),e.Q6J("disabled",!i.isGns3VmAvailable),e.xp6(2),e.Q6J("formGroup",i.templateNameForm))},directives:[_i,vl,gl,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,An],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),x2=function(){function n(){}return n.prototype.getConsoleTypes=function(){return["telnet","none"]},n.prototype.getCategories=function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}();function uhe(n,r){if(1&n&&(e.TgZ(0,"mat-option",23),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function che(n,r){if(1&n&&(e.TgZ(0,"mat-option",23),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}var JZ=function(){return{standalone:!0}};function dhe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",6),e.TgZ(1,"mat-card",7),e.TgZ(2,"form",8),e.TgZ(3,"mat-form-field",9),e.TgZ(4,"input",10),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vpcsTemplate.name=a}),e.qZA(),e.qZA(),e.TgZ(5,"mat-form-field",9),e.TgZ(6,"input",11),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vpcsTemplate.default_name_format=a}),e.qZA(),e.qZA(),e.TgZ(7,"mat-form-field",9),e.TgZ(8,"input",12),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vpcsTemplate.base_script_file=a}),e.qZA(),e.qZA(),e.TgZ(9,"mat-form-field",9),e.TgZ(10,"input",13),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vpcsTemplate.symbol=a}),e.qZA(),e.qZA(),e.TgZ(11,"button",14),e.NdJ("click",function(){return e.CHM(t),e.oxw().chooseSymbol()}),e._uU(12,"Choose symbol"),e.qZA(),e._UZ(13,"br"),e._UZ(14,"br"),e.TgZ(15,"mat-form-field",9),e.TgZ(16,"mat-select",15),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vpcsTemplate.category=a}),e.YNc(17,uhe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.TgZ(18,"mat-form-field",17),e.TgZ(19,"mat-select",18),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vpcsTemplate.console_type=a}),e.YNc(20,che,2,2,"mat-option",16),e.qZA(),e.qZA(),e.TgZ(21,"mat-checkbox",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vpcsTemplate.console_auto_start=a}),e._uU(22," Auto start console "),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"div",20),e.TgZ(24,"button",21),e.NdJ("click",function(){return e.CHM(t),e.oxw().goBack()}),e._uU(25,"Cancel"),e.qZA(),e.TgZ(26,"button",22),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSave()}),e._uU(27,"Save"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(2),e.Q6J("formGroup",i.inputForm),e.xp6(2),e.Q6J("ngModel",i.vpcsTemplate.name),e.xp6(2),e.Q6J("ngModel",i.vpcsTemplate.default_name_format),e.xp6(2),e.Q6J("ngModel",i.vpcsTemplate.base_script_file),e.xp6(2),e.Q6J("ngModel",i.vpcsTemplate.symbol),e.xp6(6),e.Q6J("ngModelOptions",e.DdM(13,JZ))("ngModel",i.vpcsTemplate.category),e.xp6(1),e.Q6J("ngForOf",i.categories),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(14,JZ))("ngModel",i.vpcsTemplate.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(15,JZ))("ngModel",i.vpcsTemplate.console_auto_start)}}function phe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"app-symbols-menu",24),e.NdJ("symbolChangedEmitter",function(a){return e.CHM(t),e.oxw().symbolChanged(a)}),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("server",i.server)("symbol",i.vpcsTemplate.symbol)}}var fhe=function(n){return{shadowed:n}},hhe=function(){function n(r,t,i,o,a,s,u){this.route=r,this.serverService=t,this.vpcsService=i,this.toasterService=o,this.formBuilder=a,this.vpcsConfigurationService=s,this.router=u,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.categories=[],this.inputForm=this.formBuilder.group({templateName:new ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),scriptFile:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id"),i=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then(function(o){r.server=o,r.getConfiguration(),r.vpcsService.getTemplate(r.server,i).subscribe(function(a){r.vpcsTemplate=a})})},n.prototype.getConfiguration=function(){this.consoleTypes=this.vpcsConfigurationService.getConsoleTypes(),this.categories=this.vpcsConfigurationService.getCategories()},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","vpcs","templates"])},n.prototype.onSave=function(){var r=this;this.inputForm.invalid?this.toasterService.error("Fill all required fields"):this.vpcsService.saveTemplate(this.server,this.vpcsTemplate).subscribe(function(t){r.toasterService.success("Changes saved")})},n.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},n.prototype.symbolChanged=function(r){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.vpcsTemplate.symbol=r},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(T2),e.Y36(er),e.Y36(ne.qu),e.Y36(x2),e.Y36(Er))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-vpcs-template-details"]],decls:7,vars:5,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","scriptFile","placeholder","Base script file",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"server","symbol","symbolChangedEmitter"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"VPCS device configuration"),e.qZA(),e.qZA(),e.qZA(),e.YNc(5,dhe,28,16,"div",4),e.qZA(),e.YNc(6,phe,1,2,"app-symbols-menu",5)),2&t&&(e.Q6J("ngClass",e.VKq(3,fhe,i.isSymbolSelectionOpened)),e.xp6(5),e.Q6J("ngIf",i.vpcsTemplate),e.xp6(1),e.Q6J("ngIf",i.isSymbolSelectionOpened&&i.vpcsTemplate))},directives:[At.mk,At.O5,_i,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,An,fi.gD,ne.On,At.sg,Lo,un.ey,cd],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function mhe(n,r){if(1&n&&(e.TgZ(0,"button",10),e._uU(1," Back "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences")}}function vhe(n,r){if(1&n&&(e.TgZ(0,"button",11),e._uU(1," Add VPCS template "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences/vpcs/addtemplate")}}function ghe(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function _he(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",15),e.TgZ(1,"mat-list-item",16),e._uU(2),e.qZA(),e.TgZ(3,"button",17),e.TgZ(4,"mat-icon"),e._uU(5,"more_vert"),e.qZA(),e.qZA(),e.TgZ(6,"mat-menu",null,18),e.TgZ(8,"button",19),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).deleteTemplate(u)}),e.TgZ(9,"mat-icon"),e._uU(10,"delete"),e.qZA(),e.TgZ(11,"span"),e._uU(12,"Delete"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.MAs(7);e.xp6(1),e.s9C("routerLink",i.template_id),e.xp6(1),e.Oqu(i.name),e.xp6(1),e.Q6J("matMenuTriggerFor",o)}}function yhe(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,_he,13,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.vpcsTemplates)}}function bhe(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,yhe,2,1,"mat-nav-list",6),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.server)}}var Che=function(){function n(r,t,i){this.route=r,this.serverService=t,this.vpcsService=i,this.vpcsTemplates=[]}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.getTemplates()})},n.prototype.getTemplates=function(){var r=this;this.vpcsService.getTemplates(this.server).subscribe(function(t){r.vpcsTemplates=t.filter(function(i){return"vpcs"===i.template_type&&!i.builtin})})},n.prototype.deleteTemplate=function(r){this.deleteComponent.deleteItem(r.name,r.template_id)},n.prototype.onDeleteEvent=function(){this.getTemplates()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(T2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-vpcs-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(ka,5),2&t)&&(e.iGM(o=e.CRH())&&(i.deleteComponent=o.first))},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"VPCS node templates"),e.qZA(),e.YNc(5,mhe,2,1,"button",4),e.YNc(6,vhe,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,ghe,1,0,"app-empty-templates-list",6),e.YNc(8,bhe,3,1,"div",7),e.qZA(),e.TgZ(9,"app-delete-template",8,9),e.NdJ("deleteEvent",function(){return i.onDeleteEvent()}),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",!i.vpcsTemplates.length),e.xp6(1),e.Q6J("ngIf",i.vpcsTemplates.length),e.xp6(1),e.Q6J("server",i.server))},directives:[At.O5,ka,An,fa,pd,Du,At.sg,xs,$a,ur,ws,Lr],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),Yf=f(33931),w2=f(18419),k2=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Qn.ZT)(r,n),r.prototype.getItemKey=function(t){return t.id},r}(w2.o),QZ=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Qn.ZT)(r,n),r.\u0275fac=function(){var t;return function(o){return(t||(t=e.n5z(r)))(o||r)}}(),r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r}(k2),KZ=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Qn.ZT)(r,n),r.\u0275fac=function(){var t;return function(o){return(t||(t=e.n5z(r)))(o||r)}}(),r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r}(k2),XZ=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Qn.ZT)(r,n),r.\u0275fac=function(){var t;return function(o){return(t||(t=e.n5z(r)))(o||r)}}(),r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r}(k2),$Z=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Qn.ZT)(r,n),r.\u0275fac=function(){var t;return function(o){return(t||(t=e.n5z(r)))(o||r)}}(),r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r}(k2),iv=function(){return function(){}}(),ny=function(){return function(){}}(),ES=function(){function n(){}return n.prototype.calculate=function(r,t){var i=document.createElement("text");i.innerText=r,i.setAttribute("fill","#00000"),i.setAttribute("fill-opacity","0"),i.setAttribute("style",t),document.documentElement.appendChild(i);var o=i.getBoundingClientRect();return document.documentElement.removeChild(i),{width:o.width,height:o.height}},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),MS=f(59473),Jf=function(){function n(){}return n.prototype.fix=function(r){var t=MS.parse(r,{context:"declarationList"});return t.children.forEach(function(i){"font-size"===i.property&&i.value&&i.value.children&&i.value.children.forEach(function(o){if("Number"===o.type){var a=o.value.toString();a.indexOf("pt")>=0||a.indexOf("px")>=0||(o.value=a+"pt")}})}),MS.generate(t)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),ac=function(){function n(){}return n.prototype.fix=function(r){return r.font_family===n.DEFAULT_FONT&&r.font_size===n.DEFAULT_SIZE&&(r.font_family=n.REPLACE_BY_FONT,r.font_size=n.REPLACE_BY_SIZE),r},n.prototype.fixStyles=function(r){var t=MS.parse(r,{context:"declarationList"}),i=null,o=null,a=!0;if(t.children.forEach(function(m){"font-family"===m.property&&m.value&&m.value.children&&m.value.children.forEach(function(b){"Identifier"===b.type&&(i=b),"String"===b.type&&(i=b,a=!1)}),"font-size"===m.property&&m.value&&m.value.children&&m.value.children.forEach(function(b){"Dimension"===b.type&&(o=b)})}),o&&i){var u=o.value,p=this.fix({font_family:(a?i.name:i.value).split('"').join(""),font_size:parseInt(u,10)});a?i.name=p.font_family:i.value=p.font_family,o.value=p.font_size}return MS.generate(t)},n.DEFAULT_FONT="TypeWriter",n.DEFAULT_SIZE=10,n.REPLACE_BY_FONT="Noto Sans",n.REPLACE_BY_SIZE=11,n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),eL=function(){function n(r,t,i){this.fontBBoxCalculator=r,this.cssFixer=t,this.fontFixer=i}return n.prototype.convert=function(r,t){var i=new ny;i.rotation=r.rotation,i.style=r.style,i.text=r.text,i.x=r.x,i.y=r.y,i.originalX=r.x,i.originalY=r.y,void 0!==t&&(i.id=t.node_id,i.nodeId=t.node_id);var o=this.cssFixer.fix(i.style),a=this.fontFixer.fixStyles(o),s=this.fontBBoxCalculator.calculate(i.text,a);return null!==i.x&&(i.x+=3),null!==i.y&&(i.y+=s.height),i},n.\u0275fac=function(t){return new(t||n)(e.LFG(ES),e.LFG(Jf),e.LFG(ac))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),She=function(){return function(){}}(),tL=function(){function n(){}return n.prototype.convert=function(r){var t=new She;return t.adapterNumber=r.adapter_number,t.linkType=r.link_type,t.name=r.name,t.portNumber=r.port_number,t.shortName=r.short_name,t},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),nL=function(){function n(r,t,i,o,a){this.labelToMapLabel=r,this.portToMapPort=t,this.fontBBoxCalculator=i,this.cssFixer=o,this.fontFixer=a}return n.prototype.convert=function(r){var t=this,i=new iv;if(i.id=r.node_id,i.commandLine=r.command_line,i.computeId=r.compute_id,i.console=r.console,i.consoleHost=r.console_host,i.consoleType=r.console_type,i.firstPortName=r.first_port_name,i.height=r.height,i.label=this.labelToMapLabel?this.labelToMapLabel.convert(r.label,{node_id:r.node_id}):void 0,i.locked=r.locked,i.name=r.name,i.nodeDirectory=r.node_directory,i.nodeType=r.node_type,i.portNameFormat=r.port_name_format,i.portSegmentSize=r.port_segment_size,i.ports=r.ports?r.ports.map(function(u){return t.portToMapPort.convert(u)}):[],i.projectId=r.project_id,i.status=r.status,i.symbol=r.symbol,i.symbolUrl=r.symbol_url,i.usage=r.usage,i.width=r.width,i.x=r.x,i.y=r.y,i.z=r.z,void 0!==i.label){var o=this.cssFixer.fix(i.label.style),a=this.fontFixer.fixStyles(o),s=this.fontBBoxCalculator.calculate(i.label.text,a);(null===r.label.x||null===r.label.y)&&(i.label.x=r.width/2-s.width/2+3,i.label.y=-8)}return i},n.\u0275fac=function(t){return new(t||n)(e.LFG(eL),e.LFG(tL),e.LFG(ES),e.LFG(Jf),e.LFG(ac))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),gj=function(){return function(){this.isSelected=!1,this.isMultiplied=!1}}(),AS=function(){return function(){}}(),_j=function(){function n(r){this.labelToMapLabel=r}return n.prototype.convert=function(r,t){var i=new AS;return i.nodeId=r.node_id,i.adapterNumber=r.adapter_number,i.portNumber=r.port_number,i.label=this.labelToMapLabel.convert(r.label),void 0!==t&&(i.linkId=t.link_id,i.id=i.nodeId+"-"+i.linkId),i},n.\u0275fac=function(t){return new(t||n)(e.LFG(eL))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),yj=function(){function n(r){this.linkNodeToMapLinkNode=r}return n.prototype.convert=function(r){var t=this,i=new gj;return i.id=r.link_id,i.captureFileName=r.capture_file_name,i.captureFilePath=r.capture_file_path,i.capturing=r.capturing,i.filters=r.filters,i.linkType=r.link_type,i.nodes=r.nodes.map(function(o){return t.linkNodeToMapLinkNode.convert(o,{link_id:r.link_id})}),i.projectId=r.project_id,i.suspend=r.suspend,i},n.\u0275fac=function(t){return new(t||n)(e.LFG(_j))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Qf=function(){return function(){}}(),E2=function(){function n(){}return n.prototype.convert=function(r){var t=new Qf;return t.id=r.drawing_id,t.projectId=r.project_id,t.rotation=r.rotation,t.svg=r.svg,t.locked=r.locked,t.x=r.x,t.y=r.y,t.z=r.z,t},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),The=function(){return function(){}}(),bj=function(){function n(){}return n.prototype.convert=function(r){var t=new The;return t.id=r.symbol_id,t.builtin=r.builtin,t.filename=r.filename,t.raw=r.raw,t},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),xhe=function(){return function(r,t,i,o){void 0===t&&(t=[]),void 0===i&&(i=[]),void 0===o&&(o=[]),this.index=r,this.nodes=t,this.drawings=i,this.links=o}}(),M2=function(){function n(){this.layers={}}return n.prototype.getLayersList=function(){var r=this;return Object.keys(this.layers).sort(function(t,i){return Number(t)-Number(i)}).map(function(t){return r.layers[t]})},n.prototype.setNodes=function(r){var t=this;r.forEach(function(i){t.getLayerForKey(i.z.toString()).nodes.push(i)})},n.prototype.setDrawings=function(r){var t=this;r.forEach(function(i){t.getLayerForKey(i.z.toString()).drawings.push(i)})},n.prototype.setLinks=function(r){var t=this;r.filter(function(i){return i.source&&i.target}).forEach(function(i){var o=Math.min(i.source.z,i.target.z).toString();t.getLayerForKey(o).links.push(i)})},n.prototype.clear=function(){this.layers={}},n.prototype.getLayerForKey=function(r){return r in this.layers||(this.layers[r]=new xhe,this.layers[r].index=Number(r)),this.layers[r]},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),DS=function(){function n(){this.LINK_WIDTH=2}return n.prototype.linkTranslation=function(r,t,i){var s,u,a=i.y-t.y;if(0===a)s=0,u=r;else{var p=Math.atan((i.x-t.x)/a);s=-r*Math.cos(p),u=r*Math.sin(p)}return{dx:s,dy:u}},n.prototype.assignDataToLinks=function(r){var t=this,i={};r.forEach(function(o,a){var s=o.source.id,u=o.target.id,p=s<u?s+","+u:u+","+s,m=1;p in i?m=i[p].push(a):i[p]=[a],o.distance=m%2==0?m*t.LINK_WIDTH:(1-m)*t.LINK_WIDTH})},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),ry=function(){function n(r,t,i,o,a,s,u,p,m,b){this.mapNodesDataSource=r,this.mapLinksDataSource=t,this.mapDrawingsDataSource=i,this.mapSymbolsDataSource=o,this.nodeToMapNode=a,this.linkToMapLink=s,this.drawingToMapDrawing=u,this.symbolToMapSymbol=p,this.layersManager=m,this.multiLinkCalculator=b}return n.prototype.setNodes=function(r){var t=this;if(r){var i=r.map(function(o){return t.nodeToMapNode.convert(o)});this.mapNodesDataSource.set(i),this.assignDataToLinks(),this.onDataUpdate()}},n.prototype.setLinks=function(r){var t=this;if(r){var i=r.map(function(o){return t.linkToMapLink.convert(o)});this.mapLinksDataSource.set(i),this.assignDataToLinks(),this.onDataUpdate()}},n.prototype.setDrawings=function(r){var t=this;if(r){var i=r.map(function(o){return t.drawingToMapDrawing.convert(o)});this.mapDrawingsDataSource.set(i),this.onDataUpdate()}},n.prototype.setSymbols=function(r){var t=this;if(r){var i=r.map(function(o){return t.symbolToMapSymbol.convert(o)});this.mapSymbolsDataSource.set(i)}},n.prototype.getNodes=function(){return this.mapNodesDataSource.getItems()},n.prototype.getLinks=function(){return this.mapLinksDataSource.getItems()},n.prototype.getDrawings=function(){return this.mapDrawingsDataSource.getItems()},n.prototype.getSymbols=function(){return this.mapSymbolsDataSource.getItems()},n.prototype.onDataUpdate=function(){this.layersManager.clear(),this.layersManager.setNodes(this.getNodes()),this.layersManager.setLinks(this.getLinks()),this.layersManager.setDrawings(this.getDrawings())},n.prototype.assignDataToLinks=function(){var r={};this.getNodes().forEach(function(t){r[t.id]=t}),this.getLinks().forEach(function(t){var i=t.nodes[0].nodeId,o=t.nodes[1].nodeId;i in r&&(t.source=r[i]),o in r&&(t.target=r[o]),t.source&&t.target&&(t.x=t.source.x+.5*(t.target.x-t.source.x),t.y=t.source.y+.5*(t.target.y-t.source.y))}),this.multiLinkCalculator.assignDataToLinks(this.getLinks())},n.\u0275fac=function(t){return new(t||n)(e.LFG(QZ),e.LFG(KZ),e.LFG(XZ),e.LFG($Z),e.LFG(nL),e.LFG(yj),e.LFG(E2),e.LFG(bj),e.LFG(M2),e.LFG(DS))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),A2=function(){return function(r,t){this.x=r,this.y=t}}(),Cj=function(){return function(r,t){this.width=r,this.height=t}}(),whe=function(){return function(r,t,i){this.x=r,this.y=t,this.k=i}}(),iu=function(){function n(){this.centerZeroZeroPoint=!0,this.size=new Cj(0,0),this.transformation=new whe(0,0,1)}return n.prototype.getZeroZeroTransformationPoint=function(){return this.centerZeroZeroPoint?new A2(this.size.width/2,this.size.height/2):new A2(0,0)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),OS=function(){function n(){this.changesDetected=new e.vpe,this.hasBeenDrawn=!1}return n.prototype.detectChanges=function(){this.changesDetected.emit(!0)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),rL=function(){function n(){}return n.prototype.getOptimalSize=function(r,t){var i=document.documentElement.clientWidth,o=document.documentElement.clientHeight;return r>i&&(i=r),t>o&&(o=t),new Cj(i,o)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),iy=function(){function n(){this.isReadOnly=!1}return n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),iL=function(){return function(){}}(),khe=function(n){function r(t){var i=n.call(this)||this;return i.datum=t,i}return(0,Qn.ZT)(r,n),r}(iL),Ehe=function(n){function r(t){var i=n.call(this)||this;return i.datum=t,i}return(0,Qn.ZT)(r,n),r}(iL),Mhe=function(n){function r(t){var i=n.call(this)||this;return i.datum=t,i}return(0,Qn.ZT)(r,n),r}(iL),D2=function(){function n(){this.start=new e.vpe,this.drag=new e.vpe,this.end=new e.vpe}return n.prototype.call=function(r){r.call(this.behaviour())},n.prototype.behaviour=function(){var t,i,o,r=this;return Nf().on("start",function(a){i=Mn.sourceEvent.clientX,o=Mn.sourceEvent.clientY,(t=new khe(a)).dx=Mn.dx,t.dy=Mn.dy,t.x=Mn.x,t.y=Mn.y,r.start.emit(t)}).on("drag",function(a){var s=new Ehe(a);s.dx=Mn.sourceEvent.clientX-i,s.dy=Mn.sourceEvent.clientY-o,i=Mn.sourceEvent.clientX,o=Mn.sourceEvent.clientY,r.drag.emit(s)}).on("end",function(a){var s=new Mhe(a);s.dx=Mn.x-t.x,s.dy=Mn.y-t.y,r.end.emit(s)})},n}(),oy=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Qn.ZT)(r,n),r}(function(){return function(r,t,i){this.datum=r,this.dx=t,this.dy=i}}()),Dhe=function(){return function(r,t,i,o,a){this.datum=r,this.x=t,this.y=i,this.width=o,this.height=a}}(),Ohe=function(){return function(r,t){this.x=r,this.y=t}}(),Phe=function(){return function(r,t,i){this.datum=r,this.x=t,this.y=i}}(),Ihe=function(){return function(r,t,i){this.savedText=r,this.x=t,this.y=i}}(),Rhe=function(){return function(r,t,i){this.textDrawingId=r,this.editedText=t,this.textElement=i}}(),Nhe=function(){return function(r,t){this.event=r,this.drawing=t}}(),ov=function(){return function(r,t){this.event=r,this.link=t}}(),Zhe=function(){return function(r,t){this.event=r,this.interfaceLabel=t}}(),Lhe=function(){return function(r,t){this.event=r,this.label=t}}(),sc=function(){function n(){this.selection={},this.selected=new e.vpe,this.unselected=new e.vpe}return n.prototype.setSelected=function(r){var t=this,i=this.convertToKeyDict(r),o=Object.keys(i).filter(function(s){return!t.isSelectedByKey(s)}).map(function(s){return i[s]}),a=Object.keys(this.selection).filter(function(s){return!(s in i)}).map(function(s){return t.selection[s]});this.selection=i,o.length>0&&this.selected.emit(o),a.length>0&&this.unselected.emit(a)},n.prototype.getSelected=function(){var r=this;return Object.keys(this.selection).map(function(t){return r.selection[t]})},n.prototype.isSelected=function(r){var t=this.getKey(r);return this.isSelectedByKey(t)},n.prototype.isSelectedByKey=function(r){return r in this.selection},n.prototype.getKey=function(r){return r.constructor.name+"-"+r.id},n.prototype.convertToKeyDict=function(r){var t=this,i={};return r.forEach(function(o){i[t.getKey(o)]=o}),i},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),PS=function(){function n(r,t,i,o){this.cssFixer=r,this.fontFixer=t,this.selectionManager=i,this.mapSettings=o,this.onContextMenu=new e.vpe,this.draggable=new D2,this.enabled=!0}return n.prototype.setEnabled=function(r){this.enabled=r},n.prototype.draw=function(r){var t=this,i=this,o=r.selectAll("g.link_node_position").data(function(b){return[[b.source,b.nodes[0]],[b.target,b.nodes[1]]]}),a=o.enter().append("g").classed("link_node_position",!0),s=o.merge(a);s.attr("transform",function(b){return"translate("+b[0].x+", "+b[0].y+")"});var u=s.selectAll("g.interface_label_container").data(function(b){return t.enabled?[b[1]]:[]}),p=u.enter().append("g").classed("interface_label_container",!0);p.append("rect").attr("class","interface_label_selection"),p.append("text").attr("class","interface_label noselect").attr("interface_label_id",function(b){return""+b.id});var m=u.merge(p).on("contextmenu",function(b,R){event.preventDefault(),i.onContextMenu.emit(new Zhe(event,b))});m.select("text.interface_label").text(function(b){return b.label.text}).attr("style",function(b){var R=t.cssFixer.fix(b.label.style);return t.fontFixer.fixStyles(R)}).attr("x",function(b){return b.label.x}).attr("y",function(b){return b.label.y}).attr("transform",function(b){return"rotate("+b.label.rotation+", "+b.label.x+", "+b.label.y+")"}),m.select("rect.interface_label_selection").attr("visibility",function(b){return t.selectionManager.isSelected(b)?"visible":"hidden"}).attr("stroke","black").attr("stroke-dasharray","3,3").attr("stroke-width","0.5").attr("fill","none").each(function(b){var R=Xr(this),G=m.select('text[interface_label_id="'+b.id+'"]').node().getBBox();R.attr("width",G.width+4),R.attr("height",G.height+4),R.attr("x",G.x-2),R.attr("y",G.y-2),R.attr("transform","rotate("+b.label.rotation+", "+(G.x-2)+", "+(G.y-2)+")")}),u.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(m)},n.SURROUNDING_TEXT_BORDER=5,n.\u0275fac=function(t){return new(t||n)(e.LFG(Jf),e.LFG(ac),e.LFG(sc),e.LFG(iy))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Sj=function(){return function(r,t,i,o){this.x=r,this.y=t,this.width=i,this.height=o}}(),oL=function(){function n(){this.selected=new Pn.xQ}return n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),O2=function(){function n(r,t){this.context=r,this.selectionEventSource=t,this.rectangleSelected=new Pn.xQ,this.contextMenuOpened=new e.vpe,this.enabled=!1}return n.prototype.disableContextMenu=function(){},n.prototype.setEnabled=function(r){this.enabled=r,this.contextMenuOpened.emit(!0)},n.prototype.activate=function(r){var t=this;r.on("mousedown",function(){if(2==Mn.button)return r.on("contextmenu",function(){Mn.preventDefault()}),void t.contextMenuOpened.emit(Mn);var i=Xr(window),o=this.parentElement,a=t.transformation(ul(o));t.startSelection(a),r.selectAll(n.SELECTABLE_CLASS).classed("selected",!1),i.on("mousemove.selection",function(){var s=t.transformation(ul(o));t.moveSelection(a,s)}).on("mouseup.selection",function(){var s=t.transformation(ul(o));t.endSelection(a,s),i.on("mousemove.selection",null).on("mouseup.selection",null)})})},n.prototype.deactivate=function(r){r.on("mousedown",null)},n.prototype.draw=function(r,t){var i=r.select("g.canvas");if(!i.select("g.selection-line-tool").node()){var o=i.append("g");o.attr("class","selection-line-tool"),this.path=o.append("path"),this.path.attr("class","selection").attr("visibility","hidden")}var a=i.select("g.selection-line-tool"),s=a.attr("status");"activated"!==s&&this.enabled&&(this.activate(r),a.attr("activated")),"deactivated"!==s&&!this.enabled&&(this.deactivate(r),a.attr("deactivated"))},n.prototype.startSelection=function(r){this.path.attr("d",this.rect(r[0],r[1],0,0)).attr("visibility","visible")},n.prototype.moveSelection=function(r,t){var i=r[0]/this.context.transformation.k,o=r[1]/this.context.transformation.k;this.path.attr("d",this.rect(i,o,t[0]/this.context.transformation.k-i,t[1]/this.context.transformation.k-o)),this.selectedEvent(r,t)},n.prototype.endSelection=function(r,t){this.path.attr("visibility","hidden"),this.selectedEvent(r,t)},n.prototype.selectedEvent=function(r,t){var i=Math.min(r[0],t[0]),o=Math.min(r[1],t[1]),a=Math.abs(r[0]-t[0]),s=Math.abs(r[1]-t[1]);this.selectionEventSource.selected.next(new Sj(i,o,a,s))},n.prototype.rect=function(r,t,i,o){return"M"+[r,t]+" l"+[i,0]+" l"+[0,o]+" l"+[-i,0]+"z"},n.prototype.transformation=function(r){var t=this.context.getZeroZeroTransformationPoint();return[r[0]-t.x-this.context.transformation.x,r[1]-t.y-this.context.transformation.y]},n.SELECTABLE_CLASS=".selectable",n.\u0275fac=function(t){return new(t||n)(e.LFG(iu),e.LFG(oL))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),aL=function(){function n(r){this.context=r,this.enabled=!1,this.needsDeactivate=!1,this.needsActivate=!1,this.zoom=VH().scaleExtent([.5,8])}return n.prototype.setEnabled=function(r){this.enabled!=r&&(r?this.needsActivate=!0:this.needsDeactivate=!0),this.enabled=r},n.prototype.draw=function(r,t){this.needsActivate&&(this.activate(r),this.needsActivate=!1),this.needsDeactivate&&(this.deactivate(r),this.needsDeactivate=!1)},n.prototype.activate=function(r){var t=this;this.zoom.filter(function(){return"mousedown"===Mn.type}),this.zoom.on("zoom",function(){var o=r.select("g.canvas"),a=Mn;o.attr("transform",function(){return t.context.transformation.x=a.transform.x,t.context.transformation.y=a.transform.y,t.context.transformation.k=a.transform.k,"translate("+(t.context.getZeroZeroTransformationPoint().x+t.context.transformation.x)+", "+(t.context.getZeroZeroTransformationPoint().y+t.context.transformation.y)+") scale("+t.context.transformation.k+")"})}),r.call(this.zoom)},n.prototype.deactivate=function(r){r.on("mousedown.zoom",null),this.zoom.on("zoom",null)},n.\u0275fac=function(t){return new(t||n)(e.LFG(iu))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Tj=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Qn.ZT)(r,n),r}(function(){return function(r,t){this.event=r,this.node=t}}()),P2=function(){function n(r,t,i,o){this.cssFixer=r,this.fontFixer=t,this.selectionManager=i,this.mapSettings=o,this.onContextMenu=new e.vpe,this.draggable=new D2}return n.prototype.redrawLabel=function(r,t){this.drawLabel(this.selectLabel(r,t))},n.prototype.draw=function(r){var t=this,i=r.selectAll("g.label_container").data(function(s){return[s.label]}),o=i.enter().append("g").attr("class","label_container").attr("label_id",function(s){return s.id}),a=i.merge(o).on("contextmenu",function(s,u){event.preventDefault(),t.onContextMenu.emit(new Lhe(event,s))});this.drawLabel(a),i.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(i)},n.prototype.drawLabel=function(r){var t=this,i=r.selectAll("g.label_body").data(function(s){return[s]}),o=i.enter().append("g").attr("class","label_body");o.append("text").attr("class","label"),o.append("rect").attr("class","label_selection");var a=i.merge(o);a.select("text.label").attr("label_id",function(s){return s.id}).attr("style",function(s){var u=t.cssFixer.fix(s.style);return t.fontFixer.fixStyles(u)}).text(function(s){return s.text}).attr("x",function(s){return s.x}).attr("y",function(s){return s.y}).attr("transform",function(s){return"rotate("+s.rotation+", "+s.x+", "+s.y+")"}),a.select("rect.label_selection").attr("visibility",function(s){return t.selectionManager.isSelected(s)?"visible":"hidden"}).attr("stroke","black").attr("stroke-dasharray","3,3").attr("stroke-width","0.5").attr("fill","none").each(function(s){var u=Xr(this),m=a.select('text[label_id="'+s.id+'"]').node().getBBox();u.attr("width",m.width+4),u.attr("height",m.height+4),u.attr("x",m.x-2),u.attr("y",m.y-2),u.attr("transform","rotate("+s.rotation+", "+s.x+", "+s.y+")")})},n.prototype.selectLabel=function(r,t){return r.selectAll('g.label_container[label_id="'+t.id+'"]')},n.NODE_LABEL_MARGIN=3,n.\u0275fac=function(t){return new(t||n)(e.LFG(Jf),e.LFG(ac),e.LFG(sc),e.LFG(iy))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),av=function(){function n(){this.dragged=new e.vpe,this.labelDragged=new e.vpe,this.clicked=new e.vpe}return n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),Ou=function(){function n(){this.symbolScalingSubject=new Pn.xQ,this.isScrollDisabled=new Pn.xQ,this.isMapLocked=new Pn.xQ,this.isTopologySummaryVisible=!0,this.isLogConsoleVisible=!1,this.isLayerNumberVisible=!1,this.logConsoleSubject=new Pn.xQ,this.mapRenderedEmitter=new e.vpe,this.showInterfaceLabels=!0,this.integrateLinkLabelsToLinks=!0,this.openConsolesInWidget=!1,this.isLayerNumberVisible="true"===localStorage.getItem("layersVisibility"),localStorage.getItem("integrateLinkLabelsToLinks")&&(this.integrateLinkLabelsToLinks="true"===localStorage.getItem("integrateLinkLabelsToLinks")),localStorage.getItem("openConsolesInWidget")&&(this.openConsolesInWidget="true"===localStorage.getItem("openConsolesInWidget")),localStorage.getItem("symbolScaling")?localStorage.getItem("symbolScaling"):localStorage.setItem("symbolScaling","true")}return n.prototype.getSymbolScaling=function(){return"true"===localStorage.getItem("symbolScaling")},n.prototype.setSymbolScaling=function(r){r?localStorage.setItem("symbolScaling","true"):localStorage.setItem("symbolScaling","false"),this.symbolScalingSubject.next(r)},n.prototype.changeMapLockValue=function(r){this.isMapLocked.next(r)},n.prototype.setConsoleContextMenuAction=function(r){localStorage.setItem("consoleContextMenu",r)},n.prototype.getConsoleContextManuAction=function(){return localStorage.getItem("consoleContextMenu")},n.prototype.toggleTopologySummary=function(r){this.isTopologySummaryVisible=r},n.prototype.toggleLogConsole=function(r){this.isLogConsoleVisible=r},n.prototype.toggleLayers=function(r){this.isLayerNumberVisible=r},n.prototype.toggleShowInterfaceLabels=function(r){this.showInterfaceLabels=r},n.prototype.toggleIntegrateInterfaceLabels=function(r){this.integrateLinkLabelsToLinks=r,localStorage.removeItem("integrateLinkLabelsToLinks"),r?localStorage.setItem("integrateLinkLabelsToLinks","true"):localStorage.setItem("integrateLinkLabelsToLinks","false")},n.prototype.toggleOpenConsolesInWidget=function(r){this.openConsolesInWidget=r,localStorage.removeItem("openConsolesInWidget"),r?localStorage.setItem("openConsolesInWidget","true"):localStorage.setItem("openConsolesInWidget","false")},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)},providedIn:"root"}),n}(),sL=function(){function n(r,t,i,o,a){this.graphDataManager=r,this.selectionManager=t,this.labelWidget=i,this.nodesEventSource=o,this.mapSettingsService=a,this.onContextMenu=new e.vpe,this.onContextConsoleMenu=new e.vpe,this.onNodeClicked=new e.vpe}return n.prototype.draw=function(r){var t=this,i=this,o=r.selectAll("g.node_body").data(function(u){return[u]}),a=o.enter().append("g").attr("class","node_body");a.append("image");var s=o.merge(a).classed("selected",function(u){return t.selectionManager.isSelected(u)}).on("click",function(u){t.nodesEventSource.clicked.emit(new Phe(u,Mn.pageX,Mn.pageY))});s.select(".layer_label_wrapper").remove(),this.mapSettingsService.isLayerNumberVisible&&s.append("rect").attr("class","layer_label_wrapper").attr("width","26").attr("height","26").attr("x",function(u){return u.width/2-13}).attr("y",function(u){return u.height/2-13}).attr("fill","red"),s.select(".layer_label").remove(),this.mapSettingsService.isLayerNumberVisible&&s.append("text").attr("class","layer_label").text(function(u){return u.z}).attr("x",function(u){return u.z>=100?u.width/2-13:u.z>=10?u.width/2-9:u.width/2-5}).attr("y",function(u){return u.height/2+5}).attr("style",function(){var u=[];return u.push('font-family: "Noto Sans"'),u.push("font-size: 11pt"),u.push("font-weight: bold"),u.join("; ")}).attr("fill","#ffffff"),s.select("image").on("contextmenu",function(u,p){Mn.preventDefault(),i.onContextMenu.emit(new Tj(Mn,u))}).on("dblclick",function(u,p){Mn.preventDefault(),i.onContextConsoleMenu.emit(new Tj(Mn,u))}).attr("xnode:href",function(u){return u.symbolUrl}).attr("width",function(u){return u.width?u.width:60}).attr("height",function(u){return u.height?u.height:60}).attr("x",function(u){return 0}).attr("y",function(u){return 0}).on("mouseover",function(u){Xr(this).attr("class","over")}).on("mouseout",function(u){Xr(this).attr("class","")}),s.attr("transform",function(u){return u.width?"translate("+u.x+","+u.y+")":"translate("+(u.x-30)+","+(u.y-30)+")"}),this.labelWidget.draw(s)},n.\u0275fac=function(t){return new(t||n)(e.LFG(ry),e.LFG(sc),e.LFG(P2),e.LFG(av),e.LFG(Ou))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),I2=function(){function n(r,t){this.nodeWidget=r,this.mapSettings=t,this.draggable=new D2}return n.prototype.redrawNode=function(r,t){this.nodeWidget.draw(this.selectNode(r,t))},n.prototype.draw=function(r){var t=r.selectAll("g.node").data(function(a){return a.nodes?a.nodes:[]},function(a){return a.id}),i=t.enter().append("g").attr("class","node").attr("node_id",function(a){return a.id}),o=t.merge(i);this.nodeWidget.draw(o),t.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(o)},n.prototype.selectNode=function(r,t){return r.selectAll('g.node[node_id="'+t.id+'"]')},n.NODE_LABEL_MARGIN=3,n.\u0275fac=function(t){return new(t||n)(e.LFG(sL),e.LFG(iy))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Bhe=function(){return function(){}}(),lL=function(){function n(){this.drawingLine=new Bhe,this.drawing=!1,this.data={}}return n.prototype.start=function(r,t,i){var o=this;this.drawing=!0,this.data=i,this.drawingLine.start=new A2(r,t),this.drawingLine.end=new A2(r,t),this.selection.on("mousemove",function(s,u){var m=ul(o.selection.select("g.canvas").node());o.drawingLine.end.x=m[0],o.drawingLine.end.y=m[1],o.draw(null,null)}),this.draw(null,null)},n.prototype.isDrawing=function(){return this.drawing},n.prototype.stop=function(){return this.drawing=!1,this.selection.on("mousemove",null),this.draw(null,null),this.data},n.prototype.connect=function(r,t){this.selection=r},n.prototype.draw=function(r,t){var i=this.selection.select("g.canvas");i.select("g.drawing-line-tool").node()||i.append("g").attr("class","drawing-line-tool");var o=[];this.drawing&&(o=[[[this.drawingLine.start.x,this.drawingLine.start.y],[this.drawingLine.end.x,this.drawingLine.end.y]]]);var a=PA(),u=this.selection.select("g.drawing-line-tool").selectAll("path").data(o),p=u.enter().append("path");u.merge(p).attr("d",a).attr("stroke","#000").attr("stroke-width","2"),u.exit().remove()},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),xj=function(){return function(r,t,i,o){this.x=r,this.y=t,this.status=i,this.port=o}}(),wj=function(){function n(r){this._mapSettingsService=r,this.mapSettingsService=r}return n.prototype.draw=function(r){var t=this,i=[];r.each(function(o){i.push(o)}),i.forEach(function(o){i.forEach(function(a){a.nodes[0].linkId!==o.nodes[0].linkId&&(o.nodes[0].nodeId===a.nodes[0].nodeId&&o.nodes[1].nodeId===a.nodes[1].nodeId||o.nodes[0].nodeId===a.nodes[1].nodeId&&o.nodes[1].nodeId===a.nodes[0].nodeId||o.nodes[1].nodeId===a.nodes[0].nodeId&&o.nodes[0].nodeId===a.nodes[1].nodeId)&&(o.isMultiplied=!0)})}),r.each(function(o){var a=Xr(this),s=a.select("path"),u=[];if(s.node()){var p=s.node().getPointAtLength(80),m=s.node().getPointAtLength(s.node().getTotalLength()-80);if(s.node().getTotalLength()>220&&o.source&&o.target){var b=o.nodes.find(function(kt){return kt.nodeId===o.source.id}).label.text,R=o.nodes.find(function(kt){return kt.nodeId===o.target.id}).label.text;u=[new xj(p.x,p.y,o.capturing&&o.suspend?"suspended":o.source.status,b),new xj(m.x,m.y,o.capturing&&o.suspend?"suspended":o.target.status,R)]}}if(a.selectAll("circle.status_started").remove(),a.selectAll("circle.status_stopped").remove(),a.selectAll("circle.status_suspended").remove(),a.selectAll("rect.status_started").remove(),a.selectAll("text.status_started_label").remove(),a.selectAll("rect.status_stopped").remove(),a.selectAll("text.status_stopped_label").remove(),a.selectAll("rect.status_suspended").remove(),a.selectAll("text.status_suspended_label").remove(),t.mapSettingsService.showInterfaceLabels&&t.mapSettingsService.integrateLinkLabelsToLinks&&!o.isMultiplied){var G=(F=a.selectAll("rect.status_started").data(u.filter(function(kt){return"started"===kt.status}))).enter().append("rect");F.merge(G).attr("class","status_started").attr("width",function(kt){return 8*kt.port.length+10}).attr("height",20).attr("x",function(kt){return kt.x-30}).attr("y",function(kt){return kt.y-10}).attr("rx",8).attr("ry",8).style("fill","white").attr("stroke","#2ecc71").attr("stroke-width",3),F.exit().remove();var Y=a.selectAll("text.status_started_label").data(u.filter(function(kt){return"started"===kt.status})),ee=Y.enter().append("text");Y.merge(ee).attr("class","status_started_label").text(function(kt){return kt.port}).attr("x",function(kt){return kt.x-25}).attr("y",function(kt){return kt.y+5}).attr("fill","black"),Y.exit().remove();var Ee=(pe=a.selectAll("rect.status_stopped").data(u.filter(function(kt){return"stopped"===kt.status}))).enter().append("rect");pe.merge(Ee).attr("class","status_stopped").attr("width",function(kt){return 8*kt.port.length+10}).attr("height",20).attr("x",function(kt){return kt.x-30}).attr("y",function(kt){return kt.y-10}).attr("rx",8).attr("ry",8).style("fill","white").attr("stroke","red").attr("stroke-width",3),pe.exit().remove();var lt=a.selectAll("text.status_stopped_label").data(u.filter(function(kt){return"stopped"===kt.status})),tt=lt.enter().append("text");lt.merge(tt).attr("class","status_stopped_label").text(function(kt){return kt.port}).attr("x",function(kt){return kt.x-25}).attr("y",function(kt){return kt.y+5}).attr("fill","black"),lt.exit().remove();var mt=(it=a.selectAll("rect.status_suspended").data(u.filter(function(kt){return"suspended"===kt.status}))).enter().append("rect");it.merge(mt).attr("class","status_suspended").attr("width",function(kt){return 8*kt.port.length+10}).attr("height",20).attr("x",function(kt){return kt.x-30}).attr("y",function(kt){return kt.y-10}).attr("rx",8).attr("ry",8).style("fill","white").attr("stroke","#FFFF00").attr("stroke-width",3),it.exit().remove();var Ke=a.selectAll("text.status_suspended_label").data(u.filter(function(kt){return"suspended"===kt.status})),et=Ke.enter().append("text");Ke.merge(et).attr("class","status_suspended_label").text(function(kt){return kt.port}).attr("x",function(kt){return kt.x-25}).attr("y",function(kt){return kt.y+5}).attr("fill","black"),Ke.exit().remove()}else{var F,pe,it;G=(F=a.selectAll("circle.status_started").data(u.filter(function(pn){return"started"===pn.status}))).enter().append("circle"),F.merge(G).attr("class","status_started").attr("cx",function(pn){return pn.x}).attr("cy",function(pn){return pn.y}).attr("r",6).attr("text",function(pn){return pn.port}).attr("fill","#2ecc71"),F.exit().remove(),Ee=(pe=a.selectAll("rect.status_stopped").data(u.filter(function(pn){return"stopped"===pn.status}))).enter().append("rect"),pe.merge(Ee).attr("class","status_stopped").attr("x",function(pn){return pn.x-5}).attr("y",function(pn){return pn.y-5}).attr("width",10).attr("height",10).attr("fill","red"),pe.exit().remove(),mt=(it=a.selectAll("circle.status_suspended").data(u.filter(function(pn){return"suspended"===pn.status}))).enter().append("circle"),it.merge(mt).attr("class","status_suspended").attr("cx",function(pn){return pn.x}).attr("cy",function(pn){return pn.y}).attr("r",6).attr("fill","#FFFF00"),it.exit().remove()}})},n.\u0275fac=function(t){return new(t||n)(e.LFG(Ou))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Uhe=function(){return function(r,t){this.source=r,this.target=t}}(),uL=function(){function n(){this.onContextMenu=new e.vpe}return n.prototype.linktoEthernetLink=function(r){return new Uhe([r.source.x+r.source.width/2,r.source.y+r.source.height/2],[r.target.x+r.target.width/2,r.target.y+r.target.height/2])},n.prototype.draw=function(r){var t=this,i=r.selectAll("path.ethernet_link").data(function(s){return"ethernet"===s.linkType?[t.linktoEthernetLink(s)]:[]}),o=i.enter().append("path").attr("class","ethernet_link").on("contextmenu",function(s){var p=event;t.onContextMenu.emit(new ov(p,s))});o.attr("stroke","#000").attr("stroke-width","2").on("contextmenu",function(s){var p=event;t.onContextMenu.emit(new ov(p,s))}),i.merge(o).attr("d",function(s){var u=Ku();return u.moveTo(s.source[0],s.source[1]),u.lineTo(s.target[0],s.target[1]),u.toString()})},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),Hhe=function(){return function(r,t,i,o){this.source=r,this.source_angle=t,this.target_angle=i,this.target=o}}(),cL=function(){function n(){this.onContextMenu=new e.vpe}return n.prototype.linkToSerialLink=function(r){var t={x:r.source.x+r.source.width/2,y:r.source.y+r.source.height/2},i={x:r.target.x+r.target.width/2,y:r.target.y+r.target.height/2},o=i.x-t.x,a=i.y-t.y,s=Math.atan2(a,o),u=-Math.PI/4,p=[Math.cos(s+u),Math.sin(s+u)];return new Hhe([t.x,t.y],[t.x+o/2+15*p[0],t.y+a/2+15*p[1]],[i.x-o/2-15*p[0],i.y-a/2-15*p[1]],[i.x,i.y])},n.prototype.draw=function(r){var t=this,i=r.selectAll("path.serial_link").data(function(s){return"serial"===s.linkType?[t.linkToSerialLink(s)]:[]}),o=i.enter().append("path").attr("class","serial_link").on("contextmenu",function(s){var p=event;t.onContextMenu.emit(new ov(p,s))});o.attr("stroke","#B22222").attr("fill","none").attr("stroke-width","2"),i.merge(o).attr("d",function(s){var u=Ku();return u.moveTo(s.source[0],s.source[1]),u.lineTo(s.source_angle[0],s.source_angle[1]),u.lineTo(s.target_angle[0],s.target_angle[1]),u.lineTo(s.target[0],s.target[1]),u.toString()})},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),dL=function(){function n(r,t,i,o,a,s){this.multiLinkCalculatorHelper=r,this.interfaceLabelWidget=t,this.interfaceStatusWidget=i,this.selectionManager=o,this.ethernetLinkWidget=a,this.serialLinkWidget=s,this.onContextMenu=new e.vpe}return n.prototype.draw=function(r){var t=this,i=r.selectAll("g.link_body").data(function(s){return[s]}),o=i.enter().append("g").attr("class","link_body"),a=i.merge(o).attr("transform",function(s){var u=t.multiLinkCalculatorHelper.linkTranslation(s.distance,s.source,s.target);return"translate ("+u.dx+", "+u.dy+")"});i.select(".capture-icon").remove(),i.filter(function(s){return s.capturing&&!s.suspend&&!(s.filters.bpf||s.filters.corrupt||s.filters.delay||s.filters.frequency_drop||s.filters.packet_loss)}).append("g").on("contextmenu",function(s){t.onContextMenu.emit(new ov(Mn,s))}).attr("class","capture-icon").attr("transform",function(s){return"translate ("+((s.source.x+s.target.x)/2+24)+", "+((s.source.y+s.target.y)/2+24)+") scale(0.5)"}).attr("viewBox","0 0 20 20").append("image").attr("xlink:href","assets/resources/images/inspect.svg"),i.select(".filter-capture-icon").remove(),i.filter(function(s){return s.capturing&&!s.suspend&&(s.filters.bpf||s.filters.corrupt||s.filters.delay||s.filters.frequency_drop||s.filters.packet_loss)}).append("g").on("contextmenu",function(s){t.onContextMenu.emit(new ov(Mn,s))}).attr("class","filter-capture-icon").attr("transform",function(s){return"translate ("+((s.source.x+s.target.x)/2+24)+", "+((s.source.y+s.target.y)/2+24)+") scale(0.5)"}).attr("viewBox","0 0 20 20").append("image").attr("xlink:href","assets/resources/images/filter-capture.svg"),i.select(".filter-icon").remove(),i.filter(function(s){return!s.capturing&&(s.filters.bpf||s.filters.corrupt||s.filters.delay||s.filters.frequency_drop||s.filters.packet_loss)}).append("g").on("contextmenu",function(s){t.onContextMenu.emit(new ov(Mn,s))}).attr("class","filter-icon").attr("width","48px").attr("height","48px").attr("transform",function(s){return"translate ("+((s.source.x+s.target.x)/2+24)+", "+((s.source.y+s.target.y)/2+24)+") scale(0.5)"}).attr("viewBox","0 0 20 20").append("image").attr("width","48px").attr("height","48px").attr("xlink:href","assets/resources/images/filter.svg"),i.select(".pause-icon").remove(),i.filter(function(s){return s.capturing&&s.suspend&&!(s.filters.bpf||s.filters.corrupt||s.filters.delay||s.filters.frequency_drop||s.filters.packet_loss)}).append("g").on("contextmenu",function(s){t.onContextMenu.emit(new ov(Mn,s))}).attr("class","pause-icon").attr("transform",function(s){return"translate ("+((s.source.x+s.target.x)/2+24)+", "+((s.source.y+s.target.y)/2+24)+") scale(0.5)"}).attr("viewBox","0 0 20 20").append("image").attr("xlink:href","assets/resources/images/pause.svg"),this.serialLinkWidget.draw(a),this.ethernetLinkWidget.draw(a),a.select("path").classed("selected",function(s){return t.selectionManager.isSelected(s)}),this.interfaceLabelWidget.draw(a),this.interfaceStatusWidget.draw(a)},n.\u0275fac=function(t){return new(t||n)(e.LFG(DS),e.LFG(PS),e.LFG(wj),e.LFG(sc),e.LFG(uL),e.LFG(cL))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),pL=function(){function n(r,t){this.multiLinkCalculatorHelper=r,this.linkWidget=t}return n.prototype.redrawLink=function(r,t){this.linkWidget.draw(this.selectLink(r,t))},n.prototype.draw=function(r){var t=this,i=r.selectAll("g.link").data(function(s){if(s.links){var u=s.links.filter(function(p){return p.target&&p.source});return t.multiLinkCalculatorHelper.assignDataToLinks(u),u}return[]},function(s){return s.id}),o=i.enter().append("g").attr("class","link").attr("link_id",function(s){return s.id}).attr("map-source",function(s){return s.source.id}).attr("map-target",function(s){return s.target.id}),a=i.merge(o);this.linkWidget.draw(a),i.exit().remove()},n.prototype.selectLink=function(r,t){return r.selectAll('g.link[link_id="'+t.id+'"]')},n.\u0275fac=function(t){return new(t||n)(e.LFG(DS),e.LFG(dL))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Vhe=function(){return function(){}}(),Po=function(){return function(){}}(),qhe=function(){function n(){}return n.prototype.convert=function(r){var t=new Po,i=r.attributes.getNamedItem("fill");i&&(t.fill=i.value);var o=r.attributes.getNamedItem("fill-opacity");i&&(t.fill_opacity=parseFloat(o.value));var a=r.attributes.getNamedItem("stroke");a&&(t.stroke=a.value);var s=r.attributes.getNamedItem("stroke-width");a&&(t.stroke_width=parseInt(s.value,10));var u=r.attributes.getNamedItem("stroke-dasharray");u&&(t.stroke_dasharray=u.value);var p=r.attributes.getNamedItem("cx");p&&(t.cx=parseInt(p.value,10));var m=r.attributes.getNamedItem("cy");m&&(t.cy=parseInt(m.value,10));var b=r.attributes.getNamedItem("rx");b&&(t.rx=parseInt(b.value,10));var R=r.attributes.getNamedItem("ry");return R&&(t.ry=parseInt(R.value,10)),t},n}(),R2=function(){return function(){}}(),jhe=function(){function n(){}return n.prototype.convert=function(r){var t=new R2,i=r.attributes.getNamedItem("xlink:href");i&&(t.data=i.value);var o=r.attributes.getNamedItem("width");o&&(t.width=parseInt(o.value,10));var a=r.attributes.getNamedItem("height");return a&&(t.height=parseInt(a.value,10)),t},n}(),sv=function(){return function(){}}(),zhe=function(){function n(){}return n.prototype.convert=function(r){var t=new sv,i=r.attributes.getNamedItem("stroke");i&&(t.stroke=i.value);var o=r.attributes.getNamedItem("stroke-width");i&&(t.stroke_width=parseInt(o.value,10));var a=r.attributes.getNamedItem("stroke-dasharray");a&&(t.stroke_dasharray=a.value);var s=r.attributes.getNamedItem("x1");s&&(t.x1=parseInt(s.value,10));var u=r.attributes.getNamedItem("x2");u&&(t.x2=parseInt(u.value,10));var p=r.attributes.getNamedItem("y1");p&&(t.y1=parseInt(p.value,10));var m=r.attributes.getNamedItem("y2");return m&&(t.y2=parseInt(m.value,10)),t},n}(),gp=function(){return function(){}}(),Whe=function(){function n(){}return n.prototype.convert=function(r){var t=new gp,i=r.attributes.getNamedItem("fill");i&&(t.fill=i.value);var o=r.attributes.getNamedItem("fill-opacity");i&&(t.fill_opacity=parseFloat(o.value));var a=r.attributes.getNamedItem("stroke");a&&(t.stroke=a.value);var s=r.attributes.getNamedItem("stroke-width");a&&(t.stroke_width=parseInt(s.value,10));var u=r.attributes.getNamedItem("stroke-dasharray");u&&(t.stroke_dasharray=u.value);var p=r.attributes.getNamedItem("width");p&&(t.width=parseInt(p.value,10));var m=r.attributes.getNamedItem("height");return m&&(t.height=parseInt(m.value,10)),t},n}(),lv=function(){return function(){}}(),Ghe=function(){function n(){}return n.prototype.convert=function(r){var t=new lv;t.text=r.textContent;var i=r.attributes.getNamedItem("fill");i&&(t.fill=i.value);var o=r.attributes.getNamedItem("fill-opacity");o&&(t.fill_opacity=parseFloat(o.value));var a=r.attributes.getNamedItem("font-family");a&&(t.font_family=a.value);var s=r.attributes.getNamedItem("font-size");s&&(t.font_size=+s.value);var u=r.attributes.getNamedItem("font-weight");u&&(t.font_weight=u.value);var p=r.attributes.getNamedItem("text-decoration");return p&&(t.text_decoration=p.value),t},n}(),IS=function(){function n(){this.parser=new DOMParser,this.elementParsers={text:new Ghe,image:new jhe,rect:new Whe,line:new zhe,ellipse:new qhe}}return n.prototype.supportedTags=function(){return Object.keys(this.elementParsers)},n.prototype.convert=function(r){var i=this.parser.parseFromString(r,"text/xml").getElementsByTagName("svg");if(1!==i.length)throw new Error("Cannot locate svg element root in '"+r+"'");var o=i[0],a=null,s=null;for(var u in o.children){var p=(s=o.children[u]).nodeName;if(p in this.elementParsers){a=this.elementParsers[p];break}}if(null===a)throw new Error("Cannot find parser for '"+r+"'");var m=a.convert(s);return m.width=+o.getAttribute("width"),m.height=+o.getAttribute("height"),m},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),kj=function(){function n(r){this.fontFixer=r}return n.prototype.draw=function(r){var t=this,i=r.selectAll("text.text_element").data(function(m){return m.element&&m.element instanceof lv?[m.element]:[]}),o=i.enter().append("text").attr("class","text_element noselect"),a=i.merge(o);a.attr("style",function(m){var b=t.fontFixer.fix(m),R=[];return b.font_family&&R.push('font-family: "'+m.font_family+'"'),b.font_size&&R.push("font-size: "+m.font_size+"pt"),b.font_weight&&R.push("font-weight: "+m.font_weight),R.join("; ")}).attr("fill",function(m){return m.fill}).attr("text-decoration",function(m){return m.text_decoration});var s=a.selectAll("tspan").data(function(m){return m.text.split(/\r?\n/)}),u=s.enter().append("tspan");s.merge(u).text(function(m){return m}).attr("xml:space","preserve").attr("x",0).attr("dy",function(m,b){return 0===b?"0em":"1.4em"}),s.exit().remove(),a.attr("transform",function(){var m=Xr(this).selectAll("tspan"),b=this.getBBox().height/m.size();return"translate("+n.MARGIN+", "+(b-n.MARGIN)+")"}),i.exit().remove()},n.MARGIN=4,n.\u0275fac=function(t){return new(t||n)(e.LFG(ac))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Ej=function(){function n(){}return n.prototype.draw=function(r){var t=r.selectAll("image.image_element").data(function(a){return a.element&&a.element instanceof R2?[a.element]:[]}),i=t.enter().append("image").attr("class","image_element noselect");t.merge(i).attr("xlink:href",function(a){return a.data}).attr("width",function(a){return a.width}).attr("height",function(a){return a.height}),t.exit().remove()},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),uv=function(){function n(){}return n.prototype.fix=function(r){return r in n.MAPPING?n.MAPPING[r]:r},n.MAPPING={"25, 25":"10, 2","5, 25":"4, 2","5, 25, 25":"5, 5, 1, 5","25, 25, 5, 25, 5":"5, 2, 5, 2, 5"},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),Mj=function(){function n(r){this.qtDasharrayFixer=r}return n.prototype.draw=function(r){var t=this,i=r.selectAll("rect.rect_element").data(function(s){return s.element&&s.element instanceof gp?[s.element]:[]});i.enter().append("line").attr("class","top"),i.enter().append("line").attr("class","bottom"),i.enter().append("line").attr("class","right"),i.enter().append("line").attr("class","left");var o=i.enter().append("rect").attr("class","rect_element noselect");i.merge(o).attr("fill",function(s){return s.fill}).attr("fill-opacity",function(s){return s.fill_opacity}).attr("stroke",function(s){return s.stroke}).attr("stroke-width",function(s){return s.stroke_width}).attr("stroke-dasharray",function(s){return t.qtDasharrayFixer.fix(s.stroke_dasharray)}).attr("width",function(s){return s.width}).attr("height",function(s){return s.height}),i.exit().remove()},n.\u0275fac=function(t){return new(t||n)(e.LFG(uv))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Aj=function(){function n(r){this.qtDasharrayFixer=r}return n.prototype.draw=function(r){var t=this,i=r.selectAll("line.line_element").data(function(s){return s.element&&s.element instanceof sv?[s.element]:[]});i.enter().append("circle").attr("class","right"),i.enter().append("circle").attr("class","left");var o=i.enter().append("line").attr("class","line_element noselect");i.merge(o).attr("stroke",function(s){return s.stroke}).attr("stroke-width",function(s){return s.stroke_width}).attr("stroke-dasharray",function(s){return t.qtDasharrayFixer.fix(s.stroke_dasharray)}).attr("x1",function(s){return s.x1}).attr("x2",function(s){return s.x2}).attr("y1",function(s){return s.y1}).attr("y2",function(s){return s.y2}),i.exit().remove()},n.\u0275fac=function(t){return new(t||n)(e.LFG(uv))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Dj=function(){function n(r){this.qtDasharrayFixer=r}return n.prototype.draw=function(r){var t=this,i=r.selectAll("ellipse.ellipse_element").data(function(s){return s.element&&s.element instanceof Po?[s.element]:[]});i.enter().append("line").attr("class","top"),i.enter().append("line").attr("class","bottom"),i.enter().append("line").attr("class","right"),i.enter().append("line").attr("class","left");var o=i.enter().append("ellipse").attr("class","ellipse_element noselect");i.merge(o).attr("fill",function(s){return s.fill}).attr("fill-opacity",function(s){return s.fill_opacity}).attr("stroke",function(s){return s.stroke}).attr("stroke-width",function(s){return s.stroke_width}).attr("stroke-dasharray",function(s){return t.qtDasharrayFixer.fix(s.stroke_dasharray)}).attr("cx",function(s){return s.cx}).attr("cy",function(s){return s.cy}).attr("rx",function(s){return s.rx}).attr("ry",function(s){return s.ry}),i.exit().remove()},n.\u0275fac=function(t){return new(t||n)(e.LFG(uv))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Oj=function(){function n(r,t,i,o,a,s,u){this.textDrawingWidget=r,this.imageDrawingWidget=t,this.rectDrawingWidget=i,this.lineDrawingWidget=o,this.ellipseDrawingWidget=a,this.selectionManager=s,this.mapSettingsService=u,this.drawingWidgets=[],this.drawingWidgets=[this.textDrawingWidget,this.imageDrawingWidget,this.rectDrawingWidget,this.lineDrawingWidget,this.ellipseDrawingWidget]}return n.prototype.draw=function(r){var t=this,i=r.selectAll("g.drawing_body").data(function(s){return[s]}),o=i.enter().append("g").attr("class","drawing_body"),a=i.merge(o).attr("transform",function(s){return"translate("+s.x+","+s.y+") rotate("+s.rotation+")"});this.drawingWidgets.forEach(function(s){s.draw(a)}),a.select(".layer_label_wrapper").remove(),this.mapSettingsService.isLayerNumberVisible&&a.filter(function(s){return s.element instanceof gp||s.element instanceof Po}).append("rect").attr("class","layer_label_wrapper").attr("width","26").attr("height","26").attr("x",function(s){return s.element?s.element.width/2-13:0}).attr("y",function(s){return s.element?s.element.height/2-13:0}).attr("fill","red"),a.select(".layer_label").remove(),this.mapSettingsService.isLayerNumberVisible&&a.filter(function(s){return s.element instanceof gp||s.element instanceof Po}).append("text").attr("class","layer_label").text(function(s){return s.z}).attr("x",function(s){return s.z>=100?s.element?s.element.width/2-13:0:s.z>=10?s.element?s.element.width/2-9:0:s.element.width/2-5}).attr("y",function(s){return s.element?s.element.height/2+5:0}).attr("style",function(){var s=[];return s.push('font-family: "Noto Sans"'),s.push("font-size: 11pt"),s.push("font-weight: bold"),s.join("; ")}).attr("fill","#ffffff"),a.select("line.top").attr("stroke","transparent").attr("stroke-width","8px").attr("x1",function(s){return s.element instanceof Po?s.element.cx-s.element.width/10:"0"}).attr("x2",function(s){return s.element instanceof Po?s.element.cx+s.element.width/10:s.element.width}).attr("y1","0").attr("y2","0").attr("draggable","true").attr("cursor","ns-resize"),a.select("line.bottom").attr("stroke","transparent").attr("stroke-width","8px").attr("x1",function(s){return s.element instanceof Po?s.element.cx-s.element.width/10:"0"}).attr("x2",function(s){return s.element instanceof Po?s.element.cx+s.element.width/10:s.element.width}).attr("y1",function(s){return s.element.height}).attr("y2",function(s){return s.element.height}).attr("draggable","true").attr("cursor","ns-resize"),a.select("line.right").attr("stroke","transparent").attr("stroke-width","8px").attr("x1","0").attr("x2","0").attr("y1",function(s){return s.element instanceof Po?s.element.cy-s.element.height/10:"0"}).attr("y2",function(s){return s.element instanceof Po?s.element.cy+s.element.height/10:s.element.height}).attr("draggable","true").attr("cursor","ew-resize"),a.select("line.left").attr("stroke","transparent").attr("stroke-width","8px").attr("x1",function(s){return s.element.width}).attr("x2",function(s){return s.element.width}).attr("y1",function(s){return s.element instanceof Po?s.element.cy-s.element.height/10:"0"}).attr("y2",function(s){return s.element instanceof Po?s.element.cy+s.element.height/10:s.element.height}).attr("draggable","true").attr("cursor","ew-resize"),a.select("circle.left").attr("draggable","true").attr("fill","transparent").attr("stroke","transparent").attr("cx",function(s){return s.element.x1}).attr("cy",function(s){return s.element.y1}).attr("r",10).attr("cursor","move"),a.select("circle.right").attr("draggable","true").attr("fill","transparent").attr("stroke","transparent").attr("cx",function(s){return s.element.x2}).attr("cy",function(s){return s.element.y2}).attr("r",10).attr("cursor","move"),a.classed("drawing_selected",function(s){return t.selectionManager.isSelected(s)})},n.\u0275fac=function(t){return new(t||n)(e.LFG(kj),e.LFG(Ej),e.LFG(Mj),e.LFG(Aj),e.LFG(Dj),e.LFG(sc),e.LFG(Ou))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),RS=function(){function n(r,t,i,o){this.drawingWidget=r,this.svgToDrawingConverter=t,this.context=i,this.mapSettings=o,this.draggable=new D2,this.draggingEnabled=!1,this.resizingFinished=new e.vpe,this.onContextMenu=new e.vpe,this.svgToDrawingConverter=new IS}return n.prototype.redrawDrawing=function(r,t){this.drawingWidget.draw(this.selectDrawing(r,t))},n.prototype.draw=function(r){var t=this,i=r.selectAll("g.drawing").data(function(Ke){return Ke.drawings.forEach(function(et){try{et.element=t.svgToDrawingConverter.convert(et.svg)}catch(Rt){}}),Ke.drawings},function(Ke){return Ke.id}),o=i.enter().append("g").attr("class","drawing").attr("drawing_id",function(Ke){return Ke.id}).on("contextmenu",function(Ke){Mn.preventDefault(),t.onContextMenu.emit(new Nhe(Mn,Ke))}),a=i.merge(o);this.drawingWidget.draw(a),i.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(a);var s,u,p,m,G,Y,ee,pe,b=!1,R=Nf().on("start",function(Ke){document.body.style.cursor="ns-resize",p=Ke.y}).on("drag",function(Ke){var et=Mn;b?(u=s-(et.sourceEvent.pageY-(t.context.getZeroZeroTransformationPoint().y+t.context.transformation.y)),s=et.sourceEvent.pageY-(t.context.getZeroZeroTransformationPoint().y+t.context.transformation.y),Ke.element.height+u<0?(b=!1,s=p,Ke.element.height=Math.abs(Ke.element.height+et.dy)):(Ke.y=et.sourceEvent.pageY-(t.context.getZeroZeroTransformationPoint().y+t.context.transformation.y),Ke.element.height+=u,Ke.element instanceof Po&&(Ke.element.cy=Ke.element.cy+u/2<0?1:Ke.element.cy+=u/2,Ke.element.ry=Ke.element.ry+u/2<0?1:Ke.element.ry+=u/2))):Ke.element.height+et.dy<0?(b=!0,s=p,Ke.element.height=Math.abs(Ke.element.height+et.dy)):(Ke.element.height+=et.dy,Ke.element instanceof Po&&(Ke.element.cy=Ke.element.cy+et.dy/2<0?1:Ke.element.cy+=et.dy/2,Ke.element.ry=Ke.element.ry+et.dy/2<0?1:Ke.element.ry+=et.dy/2)),t.redrawDrawing(r,Ke)}).on("end",function(Ke){document.body.style.cursor="initial",t.resizingFinished.emit(t.createResizingEvent(Ke))}),F=Nf().on("start",function(Ke){s=Mn.sourceEvent.pageY-(t.context.getZeroZeroTransformationPoint().y+t.context.transformation.y),m=s+Ke.element.height,document.body.style.cursor="ns-resize"}).on("drag",function(Ke){var et=Mn;b?Ke.element.height+et.dy<0?(b=!1,s=m,Ke.element.height=Math.abs(Ke.element.height+et.dy)):(Ke.element.height+=et.dy,Ke.element instanceof Po&&(Ke.element.cy=Ke.element.cy+et.dy/2<0?1:Ke.element.cy+=et.dy/2,Ke.element.ry=Ke.element.ry+et.dy/2<0?1:Ke.element.ry+=et.dy/2)):(u=s-(et.sourceEvent.pageY-(t.context.getZeroZeroTransformationPoint().y+t.context.transformation.y)),s=et.sourceEvent.pageY-(t.context.getZeroZeroTransformationPoint().y+t.context.transformation.y),Ke.element.height+u<0?(s=m,b=!0,Ke.element.height=Math.abs(Ke.element.height+et.dy)):(Ke.y=et.sourceEvent.pageY-(t.context.getZeroZeroTransformationPoint().y+t.context.transformation.y),Ke.element.height+=u,Ke.element instanceof Po&&(Ke.element.cy=Ke.element.cy+u/2<0?1:Ke.element.cy+=u/2,Ke.element.ry=Ke.element.ry+u/2<0?1:Ke.element.ry+=u/2))),t.redrawDrawing(r,Ke)}).on("end",function(Ke){document.body.style.cursor="initial",t.resizingFinished.emit(t.createResizingEvent(Ke))}),Ee=!1,lt=Nf().on("start",function(Ke){G=Mn.sourceEvent.pageX-(t.context.getZeroZeroTransformationPoint().x+t.context.transformation.x),pe=G+Ke.element.width,document.body.style.cursor="ew-resize"}).on("drag",function(Ke){var et=Mn;Ee?Ke.element.width+et.dx<0?(G=pe,Ee=!1,Ke.element.width=Math.abs(Ke.element.width+et.dx)):(Ke.element instanceof Po&&(Ke.element.cx=Ke.element.cx+et.dx/2<0?1:Ke.element.cx+=et.dx/2,Ke.element.rx=Ke.element.rx+et.dx/2<0?1:Ke.element.rx+=et.dx/2),Ke.element.width=Ke.element.width+et.dx<0?1:Ke.element.width+=et.dx):(Y=G-(et.sourceEvent.pageX-(t.context.getZeroZeroTransformationPoint().x+t.context.transformation.x)),G=et.sourceEvent.pageX-(t.context.getZeroZeroTransformationPoint().x+t.context.transformation.x),Ke.element.width+Y<0?(G=pe,Ee=!0,Ke.element.width=Math.abs(Ke.element.width+et.dx)):(Ke.x=et.sourceEvent.pageX-(t.context.getZeroZeroTransformationPoint().x+t.context.transformation.x),Ke.element.width+=Y,Ke.element instanceof Po&&(Ke.element.cx=Ke.element.cx+Y/2<0?1:Ke.element.cx+=Y/2,Ke.element.rx=Ke.element.rx+Y/2<0?1:Ke.element.rx+=Y/2))),t.redrawDrawing(r,Ke)}).on("end",function(Ke){document.body.style.cursor="initial",t.resizingFinished.emit(t.createResizingEvent(Ke))}),tt=Nf().on("start",function(Ke){document.body.style.cursor="ew-resize",ee=Ke.x}).on("drag",function(Ke){var et=Mn;Ee?(Y=G-(et.sourceEvent.pageX-(t.context.getZeroZeroTransformationPoint().x+t.context.transformation.x)),G=et.sourceEvent.pageX-(t.context.getZeroZeroTransformationPoint().x+t.context.transformation.x),Ke.element.width+Y<0?(G=ee,Ee=!1,Ke.element.width=Math.abs(Ke.element.width+et.dx)):(Ke.x=et.sourceEvent.pageX-(t.context.getZeroZeroTransformationPoint().x+t.context.transformation.x),Ke.element.width+=Y,Ke.element instanceof Po&&(Ke.element.cx=Ke.element.cx+Y/2<0?1:Ke.element.cx+=Y/2,Ke.element.rx=Ke.element.rx+Y/2<0?1:Ke.element.rx+=Y/2))):Ke.element.width+et.dx<0?(G=ee,Ee=!0,Ke.element.width=Math.abs(Ke.element.width+et.dx)):(Ke.element instanceof Po&&(Ke.element.cx=Ke.element.cx+et.dx/2<0?1:Ke.element.cx+=et.dx/2,Ke.element.rx=Ke.element.rx+et.dx/2<0?1:Ke.element.rx+=et.dx/2),Ke.element.width=Ke.element.width+et.dx<0?1:Ke.element.width+=et.dx),t.redrawDrawing(r,Ke)}).on("end",function(Ke){document.body.style.cursor="initial",t.resizingFinished.emit(t.createResizingEvent(Ke))}),it=Nf().on("start",function(){document.body.style.cursor="move"}).on("drag",function(Ke){var et=Mn;Ke.element.width+=et.dx,Ke.element.height+=et.dy,Ke.element.x2+=et.dx,Ke.element.y2+=et.dy,t.redrawDrawing(r,Ke)}).on("end",function(Ke){document.body.style.cursor="initial",t.resizingFinished.emit(t.createResizingEvent(Ke))}),mt=Nf().on("start",function(){document.body.style.cursor="move"}).on("drag",function(Ke){var et=Mn;Ke.element.width+=et.dx,Ke.element.height+=et.dy,Ke.element.x1+=et.dx,Ke.element.y1+=et.dy,t.redrawDrawing(r,Ke)}).on("end",function(Ke){document.body.style.cursor="initial",t.resizingFinished.emit(t.createResizingEvent(Ke))});a.select("line.bottom").call(R),a.select("line.top").call(F),a.select("line.right").call(lt),a.select("line.left").call(tt),a.select("circle.right").call(it),a.select("circle.left").call(mt)},n.prototype.createResizingEvent=function(r){var t=new Vhe;return t.x=r.x,t.y=r.y,t.width=r.element.width,t.height=r.element.height,t.datum=r,t},n.prototype.selectDrawing=function(r,t){return r.selectAll('g.drawing[drawing_id="'+t.id+'"]')},n.\u0275fac=function(t){return new(t||n)(e.LFG(Oj),e.LFG(IS),e.LFG(iu),e.LFG(iy))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Pj=function(){function n(r,t,i){this.linksWidget=r,this.nodesWidget=t,this.drawingsWidget=i}return n.prototype.draw=function(r,t){var i=r.selectAll("g.layer").data(t,function(m){return m.index.toString()}),o=i.enter().append("g").attr("class","layer");o.append("g").attr("class","links"),o.append("g").attr("class","nodes"),o.append("g").attr("class","drawings");var a=i.merge(o);a.attr("data-index",function(m){return m.index});var s=a.select("g.links"),u=a.select("g.nodes"),p=a.select("g.drawings");i.exit().remove(),this.linksWidget.draw(s),this.nodesWidget.draw(u),this.drawingsWidget.draw(p)},n.\u0275fac=function(t){return new(t||n)(e.LFG(pL),e.LFG(I2),e.LFG(RS))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),fL=function(){function n(r,t,i,o,a,s){this.nodesWidget=r,this.drawingLineTool=t,this.selectionTool=i,this.movingTool=o,this.layersWidget=a,this.layersManager=s}return n.prototype.getNodesWidget=function(){return this.nodesWidget},n.prototype.getDrawingLineTool=function(){return this.drawingLineTool},n.prototype.getSelectionTool=function(){return this.selectionTool},n.prototype.connect=function(r,t){this.drawingLineTool.connect(r,t)},n.prototype.draw=function(r,t){r.attr("width",t.size.width).attr("height",t.size.height);var i=r.selectAll("g.canvas").data([t]),o=i.enter().append("g").attr("class","canvas");i.merge(o).attr("transform",function(a){return"translate("+(a.getZeroZeroTransformationPoint().x+a.transformation.x)+", "+(a.getZeroZeroTransformationPoint().y+a.transformation.y)+") scale("+a.transformation.k+")"}),this.layersWidget.draw(i,this.layersManager.getLayersList()),this.drawingLineTool.draw(r,t),this.selectionTool.draw(r,t),this.movingTool.draw(r,t)},n.prototype.disconnect=function(r){r.empty&&!r.empty()&&r.selectAll("*").remove()},n.\u0275fac=function(t){return new(t||n)(e.LFG(I2),e.LFG(lL),e.LFG(O2),e.LFG(aL),e.LFG(Pj),e.LFG(M2))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),NS=function(){function n(){this.isSelectionToolActivated=new Pn.xQ,this.isMovingToolActivated=new Pn.xQ,this.isTextEditingToolActivated=new Pn.xQ,this.isTextAddingToolActivated=new Pn.xQ,this.isDrawLinkToolActivated=new Pn.xQ}return n.prototype.selectionToolActivation=function(r){this.isSelectionToolActivated.next(r)},n.prototype.movingToolActivation=function(r){this.isMovingToolActivated.next(r)},n.prototype.textEditingToolActivation=function(r){this.isTextEditingToolActivated.next(r)},n.prototype.textAddingToolActivation=function(r){this.isTextAddingToolActivated.next(r)},n.prototype.drawLinkToolActivation=function(r){this.isDrawLinkToolActivated.next(r)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),ay=function(){function n(r){this.context=r,this.scaleChangeEmitter=new e.vpe,this.currentScale=1}return n.prototype.getScale=function(){return this.currentScale},n.prototype.setScale=function(r){this.currentScale=r,this.context.transformation.k=this.currentScale,this.scaleChangeEmitter.emit(this.currentScale)},n.prototype.resetToDefault=function(){this.currentScale=1,this.context.transformation.k=this.currentScale,this.scaleChangeEmitter.emit(this.currentScale)},n.\u0275fac=function(t){return new(t||n)(e.LFG(iu))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),N2=function(){function n(){this.movingModeState=new e.vpe}return n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),Yhe=function(){function n(r,t,i){this.element=r,this.movingEventSource=t,this.context=i,this.activated=!1}return n.prototype.ngOnInit=function(){var r=this;this.movingModeState=this.movingEventSource.movingModeState.subscribe(function(t){r.activated=t,t||r.removelisteners()})},n.prototype.ngOnDestroy=function(){this.movingModeState.unsubscribe()},n.prototype.onMouseDown=function(r){var t=this;this.activated&&(this.mousemoveListener=function(i){Xr(t.element.nativeElement).selectAll("g.canvas").data([t.context]).attr("transform",function(){return t.context.transformation.x=t.context.transformation.x+i.movementX,t.context.transformation.y=t.context.transformation.y+i.movementY,"translate("+(t.context.getZeroZeroTransformationPoint().x+t.context.transformation.x)+", "+(t.context.getZeroZeroTransformationPoint().y+t.context.transformation.y)+") scale("+t.context.transformation.k+")"})},this.mouseupListener=function(i){t.removelisteners()},this.element.nativeElement.addEventListener("mouseup",this.mouseupListener),this.element.nativeElement.addEventListener("mousemove",this.mousemoveListener))},n.prototype.removelisteners=function(){this.element.nativeElement.removeEventListener("mouseup",this.mouseupListener),this.element.nativeElement.removeEventListener("mousemove",this.mousemoveListener)},n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(N2),e.Y36(iu))},n.\u0275dir=e.lG2({type:n,selectors:[["","movingCanvas",""]],hostBindings:function(t,i){1&t&&e.NdJ("mousedown",function(a){return i.onMouseDown(a)})}}),n}(),Jhe=function(){function n(r,t,i,o){this.element=r,this.movingEventSource=t,this.context=i,this.mapsScaleService=o}return n.prototype.ngOnInit=function(){var r=this;this.movingModeState=this.movingEventSource.movingModeState.subscribe(function(t){t?r.addListener():r.removeListener()})},n.prototype.ngOnDestroy=function(){this.movingModeState.unsubscribe()},n.prototype.addListener=function(){var r=this;this.wheelListener=function(t){t.stopPropagation(),t.preventDefault();var i=t.deltaY;i=0===t.deltaMode?i/100:i/3,Xr(r.element.nativeElement).selectAll("g.canvas").data([r.context]).attr("transform",function(){r.context.transformation.k=r.context.transformation.k-i/10;var s=r.context.getZeroZeroTransformationPoint().x+r.context.transformation.x,u=r.context.getZeroZeroTransformationPoint().y+r.context.transformation.y,p=r.context.transformation.k;return r.mapsScaleService.setScale(p),"translate("+s+", "+u+") scale("+p+")"})},this.element.nativeElement.addEventListener("wheel",this.wheelListener,{passive:!1})},n.prototype.removeListener=function(){this.element.nativeElement.removeEventListener("wheel",this.wheelListener)},n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(N2),e.Y36(iu),e.Y36(ay))},n.\u0275dir=e.lG2({type:n,selectors:[["","zoomingCanvas",""]]}),n}(),lc=function(){function n(){this.dragged=new e.vpe,this.resized=new e.vpe,this.selected=new e.vpe,this.pointToAddSelected=new e.vpe,this.saved=new e.vpe,this.textAdded=new e.vpe,this.textEdited=new e.vpe,this.textSaved=new e.vpe}return n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),Qhe=function(){function n(r,t){this.drawingsEventSource=r,this.context=t}return n.prototype.ngOnInit=function(){var r=this;this.drawingSelected=this.drawingsEventSource.selected.subscribe(function(t){""===t?r.deactivate():r.activate()})},n.prototype.activate=function(){var r=this;this.deactivate(),this.mapListener=function(i){var o=(i.pageX-(r.context.getZeroZeroTransformationPoint().x+r.context.transformation.x))/r.context.transformation.k,a=(i.pageY-(r.context.getZeroZeroTransformationPoint().y+r.context.transformation.y))/r.context.transformation.k;r.drawingsEventSource.pointToAddSelected.emit(new Ohe(o,a)),r.deactivate()},this.svg.addEventListener("click",this.mapListener)},n.prototype.deactivate=function(){this.svg.removeEventListener("click",this.mapListener)},n.prototype.ngOnDestroy=function(){this.drawingSelected.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(lc),e.Y36(iu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-drawing-adding"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),Khe=["*"],Xhe=function(){function n(r,t){this.drawingsWidget=r,this.drawingsEventSource=t}return n.prototype.ngOnInit=function(){var r=this;this.resizingFinished=this.drawingsWidget.resizingFinished.subscribe(function(t){r.drawingsEventSource.resized.emit(new Dhe(t.datum,t.x,t.y,t.width,t.height))})},n.prototype.ngOnDestroy=function(){this.resizingFinished.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(RS),e.Y36(lc))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-drawing-resizing"]],ngContentSelectors:Khe,decls:1,vars:0,template:function(t,i){1&t&&(e.F$t(),e.Hsn(0))},styles:[""]}),n}(),Ij=function(){function n(){}return n.prototype.inRectangle=function(r,t,i){return r.x<=t&&t<r.x+r.width&&r.y<=i&&i<r.y+r.height},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),$he=function(){function n(r,t,i,o){this.selectionEventSource=r,this.graphDataManager=t,this.inRectangleHelper=i,this.selectionManager=o}return n.prototype.ngOnInit=function(){var r=this;this.onSelection=this.selectionEventSource.selected.subscribe(function(t){var i=r.graphDataManager.getNodes().filter(function(R){return r.inRectangleHelper.inRectangle(t,R.x,R.y)}),o=r.graphDataManager.getLinks().filter(function(R){return r.inRectangleHelper.inRectangle(t,R.x,R.y)}),a=r.graphDataManager.getDrawings().filter(function(R){return r.inRectangleHelper.inRectangle(t,R.x,R.y)}),s=r.graphDataManager.getNodes().filter(function(R){return void 0!==R.label&&r.inRectangleHelper.inRectangle(t,R.x+R.label.x,R.y+R.label.y)}).map(function(R){return R.label}),u=r.graphDataManager.getLinks().filter(function(R){return void 0!==R.source&&2==R.nodes.length&&void 0!==R.nodes[0].label&&r.inRectangleHelper.inRectangle(t,R.source.x+R.nodes[0].label.x,R.source.y+R.nodes[0].label.y)}).map(function(R){return R.nodes[0]}),p=r.graphDataManager.getLinks().filter(function(R){return void 0!==R.target&&2==R.nodes.length&&void 0!==R.nodes[1].label&&r.inRectangleHelper.inRectangle(t,R.target.x+R.nodes[1].label.x,R.target.y+R.nodes[1].label.y)}).map(function(R){return R.nodes[1]}),m=(0,Qn.ev)((0,Qn.ev)([],u),p),b=(0,Qn.ev)((0,Qn.ev)((0,Qn.ev)((0,Qn.ev)((0,Qn.ev)([],i),o),a),s),m);r.selectionManager.setSelected(b)})},n.prototype.ngOnDestroy=function(){this.onSelection.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(oL),e.Y36(ry),e.Y36(Ij),e.Y36(sc))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-selection-control"]],decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),eme=function(){function n(r,t){this.selectionManager=r,this.mapChangeDetectorRef=t}return n.prototype.ngOnInit=function(){var r=this;this.onSelected=this.selectionManager.selected.subscribe(function(){r.mapChangeDetectorRef.detectChanges()}),this.onUnselected=this.selectionManager.unselected.subscribe(function(){r.mapChangeDetectorRef.detectChanges()})},n.prototype.ngOnDestroy=function(){this.onSelected.unsubscribe(),this.onUnselected.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(sc),e.Y36(OS))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-selection-select"]],decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),uc=function(){function n(r){this.httpServer=r}return n.prototype.createLink=function(r,t,i,o,a,s,u,p,m){return this.httpServer.post(r,"/projects/"+t.project_id+"/links",{nodes:[{node_id:t.node_id,port_number:i.port_number,adapter_number:i.adapter_number,label:{rotation:0,style:"font-size: 10; font-style: Verdana",text:i.short_name,x:s,y:u}},{node_id:o.node_id,port_number:a.port_number,adapter_number:a.adapter_number,label:{rotation:0,style:"font-size: 10; font-style: Verdana",text:a.short_name,x:p,y:m}}]})},n.prototype.getLink=function(r,t,i){return this.httpServer.get(r,"/projects/"+t+"/links/"+i)},n.prototype.deleteLink=function(r,t){return this.httpServer.delete(r,"/projects/"+t.project_id+"/links/"+t.link_id)},n.prototype.updateLink=function(r,t){return t.x=Math.round(t.x),t.y=Math.round(t.y),this.httpServer.put(r,"/projects/"+t.project_id+"/links/"+t.link_id,t)},n.prototype.getAvailableFilters=function(r,t){return this.httpServer.get(r,"/projects/"+t.project_id+"/links/"+t.link_id+"/available_filters")},n.prototype.updateNodes=function(r,t,i){var o=i.map(function(a){return{node_id:a.node_id,port_number:a.port_number,adapter_number:a.adapter_number,label:{rotation:a.label.rotation,style:a.label.style,text:a.label.text,x:a.label.x,y:a.label.y}}});return this.httpServer.put(r,"/projects/"+t.project_id+"/links/"+t.link_id,{nodes:o})},n.prototype.startCaptureOnLink=function(r,t,i){return this.httpServer.post(r,"/projects/"+t.project_id+"/links/"+t.link_id+"/start_capture",i)},n.prototype.stopCaptureOnLink=function(r,t){return this.httpServer.post(r,"/projects/"+t.project_id+"/links/"+t.link_id+"/stop_capture",{})},n.prototype.streamPcap=function(r,t){return this.httpServer.get(r,"/projects/"+t.project_id+"/links/"+t.link_id+"/pcap")},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Kf=f(3941),Ea=f(96852),tme=["temporaryTextElement"],nme=function(){function n(r,t,i,o,a,s,u,p,m,b,R){this.drawingsEventSource=r,this.toolsService=t,this.context=i,this.renderer=o,this.mapScaleService=a,this.linkService=s,this.linksDataSource=u,this.nodesDataSource=p,this.selectionManager=m,this.fontFixer=b,this.ngZone=R,this.leftPosition="0px",this.topPosition="0px",this.innerText="",this.addingFinished=new e.vpe}return n.prototype.ngOnInit=function(){var r=this;this.textAddingSubscription=this.toolsService.isTextAddingToolActivated.subscribe(function(t){t?r.activateTextAdding():r.deactivateTextAdding()}),this.ngZone.runOutsideAngular(this.activateTextEditingForDrawings.bind(this)),this.ngZone.runOutsideAngular(this.activateTextEditingForNodeLabels.bind(this))},n.prototype.activateTextAdding=function(){var r=this;this.deactivateTextAdding(),this.mapListener=function(i){r.leftPosition=i.pageX.toString()+"px",r.topPosition=i.pageY.toString()+"px",r.renderer.setStyle(r.temporaryTextElement.nativeElement,"display","initial"),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"transform","scale("+r.mapScaleService.getScale()+")"),r.temporaryTextElement.nativeElement.focus(),r.textListener=function(){r.drawingsEventSource.textAdded.emit(new Ihe(r.temporaryTextElement.nativeElement.innerText.replace(/\n$/,""),i.pageX,i.pageY)),r.deactivateTextAdding(),r.innerText="",r.temporaryTextElement.nativeElement.innerText="",r.temporaryTextElement.nativeElement.removeEventListener("focusout",r.textListener),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"display","none")},r.temporaryTextElement.nativeElement.addEventListener("focusout",r.textListener)},this.svg.addEventListener("click",this.mapListener)},n.prototype.deactivateTextAdding=function(){this.svg.removeEventListener("click",this.mapListener)},n.prototype.activateTextEditingForNodeLabels=function(){var r=this,t=Xr(this.svg);t.selectAll("g.interface_label_container").select("text.interface_label").on("dblclick",function(i,o,a){r.selectionManager.setSelected([]),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"display","initial"),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"transform","scale("+r.mapScaleService.getScale()+")"),r.editedLink=i,Xr(a[o]).attr("visibility","hidden"),Xr(a[o]).classed("editingMode",!0),r.editedNode=r.nodesDataSource.get(i.nodeId),r.editedLink=i;var s=(i.label.originalX+r.editedNode.x-1)*r.context.transformation.k+r.context.getZeroZeroTransformationPoint().x+r.context.transformation.x,u=(i.label.originalY+r.editedNode.y+4)*r.context.transformation.k+r.context.getZeroZeroTransformationPoint().y+r.context.transformation.y;r.leftPosition=s.toString()+"px",r.topPosition=u.toString()+"px",r.temporaryTextElement.nativeElement.innerText=i.label.text;for(var p=[],m=0,b=i.label.style.split(";");m<b.length;m++){var R=b[m];p.push({property:R.split(": ")[0],value:R.split(": ")[1]})}var F={font_family:p.find(function(Y){return"font-family"===Y.property})?p.find(function(Y){return"font-family"===Y.property}).value:"TypeWriter",font_size:p.find(function(Y){return"font-size"===Y.property})?Number(p.find(function(Y){return"font-size"===Y.property}).value):10,font_weight:p.find(function(Y){return"font-weight"===Y.property})?p.find(function(Y){return"font-weight"===Y.property}).value:"normal"};F=r.fontFixer.fix(F),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"color",p.find(function(Y){return"fill"===Y.property})?p.find(function(Y){return"fill"===Y.property}).value:"#000000"),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"font-family",F.font_family),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"font-size",F.font_size+"pt"),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"font-weight",F.font_weight),r.textListener=function(){var Y=r.temporaryTextElement.nativeElement.innerText,ee=r.linksDataSource.get(r.editedLink.linkId);ee.nodes.find(function(pe){return pe.node_id===r.editedNode.node_id}).label.text=Y,r.linkService.updateLink(r.server,ee).subscribe(function(pe){t.selectAll("text.editingMode").attr("visibility","visible").classed("editingMode",!1),r.innerText="",r.temporaryTextElement.nativeElement.innerText="",r.temporaryTextElement.nativeElement.removeEventListener("focusout",r.textListener),r.clearStyle(),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"display","none")})},r.temporaryTextElement.nativeElement.addEventListener("focusout",r.textListener),r.temporaryTextElement.nativeElement.focus()})},n.prototype.activateTextEditingForDrawings=function(){var r=this,t=Xr(this.svg);t.selectAll("text.text_element").on("dblclick",function(i,o,a){r.renderer.setStyle(r.temporaryTextElement.nativeElement,"display","initial"),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"transform","scale("+r.mapScaleService.getScale()+")"),r.editedElement=i,Xr(a[o]).attr("visibility","hidden"),Xr(a[o]).classed("editingMode",!0),r.editingDrawingId=a[o].parentElement.parentElement.getAttribute("drawing_id");var s=a[o].parentElement.getAttribute("transform").split(/\(|\)/),u=Number(s[1].split(/,/)[0])*r.context.transformation.k+r.context.getZeroZeroTransformationPoint().x+r.context.transformation.x,p=Number(s[1].split(/,/)[1])*r.context.transformation.k+r.context.getZeroZeroTransformationPoint().y+r.context.transformation.y;r.leftPosition=u.toString()+"px",r.topPosition=p.toString()+"px",r.temporaryTextElement.nativeElement.innerText=i.text,r.renderer.setStyle(r.temporaryTextElement.nativeElement,"color",i.fill),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"font-family",i.font_family),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"font-size",i.font_size+"pt"),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"font-weight",i.font_weight),r.textListener=function(){r.drawingsEventSource.textEdited.emit(new Rhe(r.editingDrawingId,r.temporaryTextElement.nativeElement.innerText.replace(/\n$/,""),r.editedElement)),t.selectAll("text.editingMode").attr("visibility","visible").classed("editingMode",!1),r.innerText="",r.temporaryTextElement.nativeElement.innerText="",r.temporaryTextElement.nativeElement.removeEventListener("focusout",r.textListener),r.clearStyle(),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"display","none")},r.temporaryTextElement.nativeElement.addEventListener("focusout",r.textListener),r.temporaryTextElement.nativeElement.focus()})},n.prototype.ngOnDestroy=function(){this.textAddingSubscription.unsubscribe()},n.prototype.clearStyle=function(){this.renderer.setStyle(this.temporaryTextElement.nativeElement,"color","#000000"),this.renderer.setStyle(this.temporaryTextElement.nativeElement,"font-family","Noto Sans"),this.renderer.setStyle(this.temporaryTextElement.nativeElement,"font-size","11pt"),this.renderer.setStyle(this.temporaryTextElement.nativeElement,"font-weight","bold")},n.\u0275fac=function(t){return new(t||n)(e.Y36(lc),e.Y36(NS),e.Y36(iu),e.Y36(e.Qsj),e.Y36(ay),e.Y36(uc),e.Y36(Kf.F),e.Y36(Ea.G),e.Y36(sc),e.Y36(ac),e.Y36(e.R0b))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-text-editor"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(tme,5),2&t)&&(e.iGM(o=e.CRH())&&(i.temporaryTextElement=o.first))},inputs:{svg:"svg",server:"server"},decls:3,vars:5,consts:[["id","temporaryElement","contenteditable","true",1,"temporaryElement"],["temporaryTextElement",""]],template:function(t,i){1&t&&(e.TgZ(0,"div",0,1),e._uU(2),e.qZA()),2&t&&(e.Udp("top",i.topPosition)("left",i.leftPosition),e.xp6(2),e.hij(" ",i.innerText,"\n"))},styles:['.temporaryElement[_ngcontent-%COMP%]{padding-left:4px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:absolute;z-index:99;font-family:"Noto Sans";font-size:11pt;font-weight:bold;color:#000}']}),n}(),ZS=function(){function n(){this.created=new e.vpe,this.interfaceDragged=new e.vpe}return n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),rme=function(){function n(r,t,i,o,a,s,u,p,m,b,R){this.nodesWidget=r,this.drawingsWidget=t,this.linksWidget=i,this.labelWidget=o,this.interfaceWidget=a,this.selectionManager=s,this.nodesEventSource=u,this.drawingsEventSource=p,this.graphDataManager=m,this.linksEventSource=b,this.mapSettingsService=R,this.isMapLocked=!1}return n.prototype.ngOnInit=function(){var r=this,t=Xr(this.svg);this.mapSettingsSubscription=this.mapSettingsService.isMapLocked.subscribe(function(i){r.isMapLocked=i}),this.start=(0,go.T)(this.nodesWidget.draggable.start,this.drawingsWidget.draggable.start,this.labelWidget.draggable.start,this.interfaceWidget.draggable.start).subscribe(function(i){var o=r.selectionManager.getSelected();i.datum instanceof iv&&0===o.filter(function(a){return a instanceof iv&&a.id===i.datum.id}).length&&r.selectionManager.setSelected([i.datum]),i.datum instanceof Qf&&0===o.filter(function(a){return a instanceof Qf&&a.id===i.datum.id}).length&&r.selectionManager.setSelected([i.datum]),i.datum instanceof ny&&0===o.filter(function(a){return a instanceof ny&&a.id===i.datum.id}).length&&r.selectionManager.setSelected([i.datum]),i.datum instanceof AS&&0===o.filter(function(a){return a instanceof AS&&a.id===i.datum.id}).length&&r.selectionManager.setSelected([i.datum])}),this.drag=(0,go.T)(this.nodesWidget.draggable.drag,this.drawingsWidget.draggable.drag,this.labelWidget.draggable.drag,this.interfaceWidget.draggable.drag).subscribe(function(i){if(!r.isMapLocked){var o=r.selectionManager.getSelected(),a=o.filter(function(Y){return Y instanceof iv}),s=a.filter(function(Y){return Y.locked}),u=a.filter(function(Y){return!Y.locked});u.forEach(function(Y){Y.x+=i.dx,Y.y+=i.dy,r.nodesWidget.redrawNode(t,Y),r.graphDataManager.getLinks().filter(function(pe){return void 0!==pe.target&&pe.target.id===Y.id||void 0!==pe.source&&pe.source.id===Y.id}).forEach(function(pe){r.linksWidget.redrawLink(t,pe)})}),o.filter(function(Y){return Y instanceof Qf}).filter(function(Y){return!Y.locked}).forEach(function(Y){Y.x+=i.dx,Y.y+=i.dy,r.drawingsWidget.redrawDrawing(t,Y)}),o.filter(function(Y){return Y instanceof ny}).filter(function(Y){return 0===s.filter(function(ee){return ee.id===Y.nodeId}).length}).forEach(function(Y){if(!(u.filter(function(Ee){return Ee.id===Y.nodeId}).length>0)){var pe=r.graphDataManager.getNodes().filter(function(Ee){return Ee.id===Y.nodeId})[0];pe.label.x+=i.dx,pe.label.y+=i.dy,r.labelWidget.redrawLabel(t,Y)}}),o.filter(function(Y){return Y instanceof AS}).filter(function(Y){return 0===s.filter(function(ee){return ee.id===Y.nodeId}).length}).forEach(function(Y){if(!(u.filter(function(Ee){return Ee.id===Y.nodeId}).length>0)){var pe=r.graphDataManager.getLinks().filter(function(Ee){return Ee.nodes[0].id===Y.id||Ee.nodes[1].id===Y.id})[0];pe.nodes[0].id===Y.id&&(pe.nodes[0].label.x+=i.dx,pe.nodes[0].label.y+=i.dy),pe.nodes[1].id===Y.id&&(pe.nodes[1].label.x+=i.dx,pe.nodes[1].label.y+=i.dy),r.linksWidget.redrawLink(t,pe)}})}}),this.end=(0,go.T)(this.nodesWidget.draggable.end,this.drawingsWidget.draggable.end,this.labelWidget.draggable.end,this.interfaceWidget.draggable.end).subscribe(function(i){if(!r.isMapLocked){var o=r.selectionManager.getSelected(),a=o.filter(function(Y){return Y instanceof iv}),s=a.filter(function(Y){return Y.locked}),u=a.filter(function(Y){return!Y.locked});u.forEach(function(Y){r.nodesEventSource.dragged.emit(new oy(Y,i.dx,i.dy))}),o.filter(function(Y){return Y instanceof Qf}).filter(function(Y){return!Y.locked}).forEach(function(Y){r.drawingsEventSource.dragged.emit(new oy(Y,i.dx,i.dy))}),o.filter(function(Y){return Y instanceof ny}).filter(function(Y){return 0===s.filter(function(ee){return ee.id===Y.nodeId}).length}).forEach(function(Y){u.filter(function(pe){return pe.id===Y.nodeId}).length>0||r.nodesEventSource.labelDragged.emit(new oy(Y,i.dx,i.dy))}),o.filter(function(Y){return Y instanceof AS}).filter(function(Y){return 0===s.filter(function(ee){return ee.id===Y.nodeId}).length}).forEach(function(Y){u.filter(function(pe){return pe.id===Y.nodeId}).length>0||r.linksEventSource.interfaceDragged.emit(new oy(Y,i.dx,i.dy))})}})},n.prototype.ngOnDestroy=function(){this.start.unsubscribe(),this.drag.unsubscribe(),this.end.unsubscribe(),this.mapSettingsSubscription.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(I2),e.Y36(RS),e.Y36(pL),e.Y36(P2),e.Y36(PS),e.Y36(sc),e.Y36(av),e.Y36(lc),e.Y36(ry),e.Y36(ZS),e.Y36(Ou))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-draggable-selection"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),ime=["svg"],ome=["textEditor"],Rj=function(){function n(r,t,i,o,a,s,u,p,m,b,R,F,G){this.graphDataManager=r,this.context=t,this.mapChangeDetectorRef=i,this.canvasSizeDetector=o,this.mapSettings=a,this.element=s,this.interfaceLabelWidget=u,this.selectionToolWidget=p,this.movingToolWidget=m,this.graphLayout=b,this.toolsService=R,this.mapScaleService=F,this.mapSettingsService=G,this.nodes=[],this.links=[],this.drawings=[],this.symbols=[],this.width=1500,this.height=600,this.subscriptions=[],this.settings={show_interface_labels:!0},this.gridVisibility=0,this.nodeGridX=0,this.nodeGridY=0,this.drawingGridX=0,this.drawingGridY=0,this.parentNativeElement=s.nativeElement}return Object.defineProperty(n.prototype,"showInterfaceLabels",{set:function(r){r&&!this.mapSettingsService.integrateLinkLabelsToLinks?(this.settings.show_interface_labels=!0,this.interfaceLabelWidget.setEnabled(!0)):(this.settings.show_interface_labels=!1,this.interfaceLabelWidget.setEnabled(!1)),this.mapChangeDetectorRef.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"readonly",{set:function(r){this.mapSettings.isReadOnly=r},enumerable:!1,configurable:!0}),n.prototype.resize=function(r){if(r)this.svg.attr("height",window.innerHeight+window.scrollY-16);else{var t=window.innerHeight-16;this.svg.attr("height",this.height>t?this.height:t)}},n.prototype.ngOnChanges=function(r){(r.width&&!r.width.isFirstChange()||r.height&&!r.height.isFirstChange()||r.drawings&&!r.drawings.isFirstChange()||r.nodes&&!r.nodes.isFirstChange()||r.links&&!r.links.isFirstChange()||r.symbols&&!r.symbols.isFirstChange())&&this.svg.empty&&!this.svg.empty()&&(r.symbols&&this.onSymbolsChange(r.symbols),this.changeLayout())},n.prototype.ngOnInit=function(){var r=this;null!==this.parentNativeElement&&this.createGraph(this.parentNativeElement),this.context.size=this.getSize(),this.onChangesDetected=this.mapChangeDetectorRef.changesDetected.subscribe(function(){r.mapChangeDetectorRef.hasBeenDrawn&&r.redraw()}),this.subscriptions.push(this.mapScaleService.scaleChangeEmitter.subscribe(function(t){return r.redraw()})),this.subscriptions.push(this.toolsService.isMovingToolActivated.subscribe(function(t){r.mapChangeDetectorRef.detectChanges()})),this.subscriptions.push(this.toolsService.isSelectionToolActivated.subscribe(function(t){r.selectionToolWidget.setEnabled(t),r.mapChangeDetectorRef.detectChanges()})),this.subscriptions.push(this.toolsService.isDrawLinkToolActivated.subscribe(function(t){r.drawLinkTool=t})),this.gridVisibility="true"===localStorage.getItem("gridVisibility")?1:0,this.mapSettingsService.isScrollDisabled.subscribe(function(t){return r.resize(t)})},n.prototype.ngOnDestroy=function(){this.graphLayout.disconnect(this.svg),this.onChangesDetected.unsubscribe(),this.subscriptions.forEach(function(r){r.unsubscribe()})},n.prototype.applyMapSettingsChanges=function(){this.redraw()},n.prototype.createGraph=function(r){var t=Xr(r);this.svg=t.select("svg"),this.graphLayout.connect(this.svg,this.context),this.graphLayout.draw(this.svg,this.context),this.mapChangeDetectorRef.hasBeenDrawn=!0},n.prototype.getSize=function(){return this.canvasSizeDetector.getOptimalSize(this.width,this.height)},n.prototype.changeLayout=function(){null!=this.parentNativeElement&&(this.context.size=this.getSize()),this.redraw()},n.prototype.onSymbolsChange=function(r){this.graphDataManager.setSymbols(this.symbols)},n.prototype.redraw=function(){this.updateGrid(),this.graphDataManager.setNodes(this.nodes),this.graphDataManager.setLinks(this.links),this.graphDataManager.setDrawings(this.drawings),this.graphLayout.draw(this.svg,this.context),this.textEditor.activateTextEditingForDrawings(),this.textEditor.activateTextEditingForNodeLabels(),this.mapSettingsService.mapRenderedEmitter.emit(!0)},n.prototype.updateGrid=function(){this.project.grid_size&&this.project.grid_size>0&&(this.nodeGridX=this.project.scene_width/2-Math.floor(this.project.scene_width/2/this.project.grid_size)*this.project.grid_size),this.project.grid_size&&this.project.grid_size>0&&(this.nodeGridY=this.project.scene_height/2-Math.floor(this.project.scene_height/2/this.project.grid_size)*this.project.grid_size),this.project.drawing_grid_size&&this.project.drawing_grid_size>0&&(this.drawingGridX=this.project.scene_width/2-Math.floor(this.project.scene_width/2/this.project.drawing_grid_size)*this.project.drawing_grid_size),this.project.drawing_grid_size&&this.project.drawing_grid_size>0&&(this.drawingGridY=this.project.scene_height/2-Math.floor(this.project.scene_height/2/this.project.drawing_grid_size)*this.project.drawing_grid_size)},n.prototype.onResize=function(r){this.changeLayout()},n.\u0275fac=function(t){return new(t||n)(e.Y36(ry),e.Y36(iu),e.Y36(OS),e.Y36(rL),e.Y36(iy),e.Y36(e.SBq),e.Y36(PS),e.Y36(O2),e.Y36(aL),e.Y36(fL),e.Y36(NS),e.Y36(ay),e.Y36(Ou))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-d3-map"]],viewQuery:function(t,i){if(1&t&&(e.Gf(ime,5),e.Gf(ome,5)),2&t){var o=void 0;e.iGM(o=e.CRH())&&(i.svgRef=o.first),e.iGM(o=e.CRH())&&(i.textEditor=o.first)}},hostBindings:function(t,i){1&t&&e.NdJ("resize",function(a){return i.onResize(a)},!1,e.Jf7)},inputs:{nodes:"nodes",links:"links",drawings:"drawings",symbols:"symbols",project:"project",server:"server",width:"width",height:"height",showInterfaceLabels:["show-interface-labels","showInterfaceLabels"],readonly:"readonly"},features:[e.TTD],decls:19,vars:18,consts:[["id","map","preserveAspectRatio","none","movingCanvas","","zoomingCanvas","",1,"map"],["svg",""],["id","grayscale"],["id","feGrayscale","type","saturate","values","0"],["id","gridDrawing","patternUnits","userSpaceOnUse"],["fill","none","stroke","silver"],["id","gridNode","patternUnits","userSpaceOnUse"],["fill","none","stroke","DarkSlateGray"],["width","100%","height","100%","fill","url(#gridDrawing)"],["width","100%","height","100%","fill","url(#gridNode)"],[3,"svg"],[3,"server","svg"],["textEditor",""]],template:function(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"svg",0,1),e.TgZ(2,"filter",2),e._UZ(3,"feColorMatrix",3),e.qZA(),e.TgZ(4,"defs"),e.TgZ(5,"pattern",4),e._UZ(6,"path",5),e.qZA(),e.qZA(),e.TgZ(7,"defs"),e.TgZ(8,"pattern",6),e._UZ(9,"path",7),e.qZA(),e.qZA(),e._UZ(10,"rect",8),e._UZ(11,"rect",9),e.qZA(),e.kcU(),e._UZ(12,"app-drawing-adding",10),e._UZ(13,"app-drawing-resizing"),e._UZ(14,"app-selection-control"),e._UZ(15,"app-selection-select"),e._UZ(16,"app-text-editor",11,12),e._UZ(18,"app-draggable-selection",10)),2&t){var o=e.MAs(1);e.xp6(5),e.uIk("x",i.drawingGridX)("y",i.drawingGridY)("width",i.project.drawing_grid_size)("height",i.project.drawing_grid_size),e.xp6(1),e.zWS("d","M ",i.project.drawing_grid_size," 0 L 0 0 0 ",i.project.drawing_grid_size,""),e.uIk("stroke-width",i.gridVisibility),e.xp6(2),e.uIk("x",i.nodeGridX)("y",i.nodeGridY)("width",i.project.grid_size)("height",i.project.grid_size),e.xp6(1),e.zWS("d","M ",i.project.grid_size," 0 L 0 0 0 ",i.project.grid_size,""),e.uIk("stroke-width",i.gridVisibility),e.xp6(3),e.Q6J("svg",o),e.xp6(4),e.Q6J("server",i.server)("svg",o),e.xp6(2),e.Q6J("svg",o)}},directives:[Yhe,Jhe,Qhe,Xhe,$he,eme,nme,rme],styles:["svg[_ngcontent-%COMP%]{display:block}"]}),n}(),ame=function(n,r){return function(t){return(0,sS.H)(500).pipe((0,Hs.w)(function(){return r.list(n)}),(0,kr.U)(function(i){return i.find(function(o){return o.name===t.value})?{projectExist:!0}:null}))}};function sme(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",1),e.TgZ(1,"button",2),e.NdJ("click",function(){return e.CHM(t),e.oxw().onNoClick()}),e._uU(2,"No"),e.qZA(),e.TgZ(3,"button",3),e.NdJ("click",function(){return e.CHM(t),e.oxw().onYesClick()}),e._uU(4," Yes "),e.qZA(),e.qZA()}}function lme(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",1),e.TgZ(1,"button",4),e.NdJ("click",function(){return e.CHM(t),e.oxw().onNoClick()}),e._uU(2,"Ok"),e.qZA(),e.qZA()}}var Nj=function(){function n(r,t){this.dialogRef=r,this.data=t,this.existingProject=t.existingProject}return n.prototype.ngOnInit=function(){"opened"===this.existingProject.status?(this.confirmationMessage="Project "+this.existingProject.name+" is open. You can not overwrite it.",this.isOpen=!0):this.confirmationMessage="Project "+this.existingProject.name+" already exist, overwrite it?"},n.prototype.onNoClick=function(){this.dialogRef.close(!1)},n.prototype.onYesClick=function(){this.dialogRef.close(!0)},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(dd))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-import-project-dialog"]],decls:4,vars:3,consts:[["mat-dialog-actions","",4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",1,"cancelButton",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"confirmButton",3,"click"],["mat-button","","color","accent",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"span"),e._uU(1),e.qZA(),e.YNc(2,sme,5,0,"div",0),e.YNc(3,lme,3,0,"div",0)),2&t&&(e.xp6(1),e.Oqu(i.confirmationMessage),e.xp6(1),e.Q6J("ngIf",!i.isOpen),e.xp6(1),e.Q6J("ngIf",i.isOpen))},directives:[At.O5,ti,An],styles:[""]}),n}(),_p=function(){function n(){}return n.prototype.get=function(r){return new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\":<>\?]/).test(r.value)?{invalidName:!0}:null},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),fd=f(14200);function ume(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Project name is required"),e.qZA())}function cme(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Project name is incorrect"),e.qZA())}function dme(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Project with this name exists"),e.qZA())}var pme=function(n){return{"is-invalid":n}},Zj=function(){function n(r,t,i,o,a,s,u){this.dialogRef=r,this.router=t,this.dialog=i,this.projectService=o,this.toasterService=a,this.formBuilder=s,this.projectNameValidator=u,this.onAddProject=new e.vpe}return n.prototype.ngOnInit=function(){this.projectNameForm=this.formBuilder.group({projectName:new ne.NI(null,[ne.kI.required,this.projectNameValidator.get],[ame(this.server,this.projectService)])})},Object.defineProperty(n.prototype,"form",{get:function(){return this.projectNameForm.controls},enumerable:!1,configurable:!0}),n.prototype.onAddClick=function(){var r=this;this.projectNameForm.invalid||this.projectService.list(this.server).subscribe(function(t){var i=r.projectNameForm.controls.projectName.value,o=t.find(function(a){return a.name===i});o?r.openConfirmationDialog(o):r.addProject()})},n.prototype.onNoClick=function(){this.dialogRef.close()},n.prototype.addProject=function(){var r=this;this.uuid=(0,wa.v4)(),this.projectService.add(this.server,this.projectNameForm.controls.projectName.value,this.uuid).subscribe(function(t){r.dialogRef.close(),r.toasterService.success("Project "+t.name+" added"),r.router.navigate(["/server",r.server.id,"project",t.project_id])})},n.prototype.onKeyDown=function(r){"Enter"===r.key&&this.onAddClick()},n.prototype.openConfirmationDialog=function(r){var t=this;this.dialog.open(Nj,{width:"300px",height:"150px",data:{existingProject:r},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(o){o&&t.projectService.close(t.server,r.project_id).subscribe(function(){t.projectService.delete(t.server,r.project_id).subscribe(function(){t.addProject()})})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(Er),e.Y36(no),e.Y36(fd.Y),e.Y36(er),e.Y36(ne.qu),e.Y36(_p))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-add-blank-project-dialog"]],features:[e._Bn([_p])],decls:13,vars:7,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","projectName","placeholder","Please enter name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Create new project"),e.qZA(),e.TgZ(2,"form",1),e.TgZ(3,"mat-form-field",2),e.TgZ(4,"input",3),e.NdJ("keydown",function(a){return i.onKeyDown(a)}),e.qZA(),e.YNc(5,ume,2,0,"mat-error",4),e.YNc(6,cme,2,0,"mat-error",4),e.YNc(7,dme,2,0,"mat-error",4),e.qZA(),e.TgZ(8,"div",5),e.TgZ(9,"button",6),e.NdJ("click",function(){return i.onNoClick()}),e._uU(10,"Cancel"),e.qZA(),e.TgZ(11,"button",7),e.NdJ("click",function(){return i.onAddClick()}),e._uU(12," Add project "),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(2),e.Q6J("formGroup",i.projectNameForm),e.xp6(2),e.Q6J("ngClass",e.VKq(5,pme,null==i.form.projectName?null:i.form.projectName.errors)),e.xp6(1),e.Q6J("ngIf",(null==i.form.projectName?null:i.form.projectName.touched)&&(null==i.form.projectName?null:i.form.projectName.errors)&&(null==i.form.projectName?null:i.form.projectName.errors.required)),e.xp6(1),e.Q6J("ngIf",(null==i.form.projectName?null:i.form.projectName.errors)&&(null==i.form.projectName?null:i.form.projectName.errors.invalidName)),e.xp6(1),e.Q6J("ngIf",(null==i.form.projectName?null:i.form.projectName.errors)&&(null==i.form.projectName?null:i.form.projectName.errors.projectExist)))},directives:[ri,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,At.mk,At.O5,ti,An,Hn.TO],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]}),n}();function fme(n,r){}var hme=new e.OlP("MatBottomSheetData"),hL=function n(){(0,g.Z)(this,n),this.data=null,this.hasBackdrop=!0,this.disableClose=!1,this.ariaLabel=null,this.closeOnNavigation=!0,this.autoFocus=!1,this.restoreFocus=!0},mme={bottomSheetState:(0,an.X$)("state",[(0,an.SB)("void, hidden",(0,an.oB)({transform:"translateY(100%)"})),(0,an.SB)("visible",(0,an.oB)({transform:"translateY(0%)"})),(0,an.eR)("visible => void, visible => hidden",(0,an.jt)("".concat(un.mZ.COMPLEX," ").concat(un.yN.ACCELERATION_CURVE))),(0,an.eR)("void => visible",(0,an.jt)("".concat(un.mZ.EXITING," ").concat(un.yN.DECELERATION_CURVE)))])},vme=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u,p,m){var b;return(0,g.Z)(this,i),(b=t.call(this))._elementRef=o,b._changeDetectorRef=a,b._focusTrapFactory=s,b.bottomSheetConfig=m,b._animationState="void",b._animationStateChanged=new e.vpe,b._elementFocusedBeforeOpened=null,b.attachDomPortal=function(R){return b._validatePortalAttached(),b._setPanelClass(),b._savePreviouslyFocusedElement(),b._portalOutlet.attachDomPortal(R)},b._document=p,b._breakpointSubscription=u.observe([Wf_Medium,Wf_Large,"(min-width: 1920px)"]).subscribe(function(){b._toggleClass("mat-bottom-sheet-container-medium",u.isMatched(Wf_Medium)),b._toggleClass("mat-bottom-sheet-container-large",u.isMatched(Wf_Large)),b._toggleClass("mat-bottom-sheet-container-xlarge",u.isMatched("(min-width: 1920px)"))}),b}return(0,k.Z)(i,[{key:"attachComponentPortal",value:function(a){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(a)}},{key:"attachTemplatePortal",value:function(a){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(a)}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}},{key:"exit",value:function(){this._destroyed||(this._animationState="hidden",this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._breakpointSubscription.unsubscribe(),this._destroyed=!0}},{key:"_onAnimationDone",value:function(a){"hidden"===a.toState?this._restoreFocus():"visible"===a.toState&&this._trapFocus(),this._animationStateChanged.emit(a)}},{key:"_onAnimationStart",value:function(a){this._animationStateChanged.emit(a)}},{key:"_toggleClass",value:function(a,s){var u=this._elementRef.nativeElement.classList;s?u.add(a):u.remove(a)}},{key:"_validatePortalAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_setPanelClass",value:function(){var a=this._elementRef.nativeElement,s=this.bottomSheetConfig.panelClass;Array.isArray(s)?s.forEach(function(u){return a.classList.add(u)}):s&&a.classList.add(s)}},{key:"_trapFocus",value:function(){var a=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(a)),this.bottomSheetConfig.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{var s=(0,ei.ht)();s!==a&&!a.contains(s)&&a.focus()}}},{key:"_restoreFocus",value:function(){var a=this._elementFocusedBeforeOpened;if(this.bottomSheetConfig.restoreFocus&&a&&"function"==typeof a.focus){var s=(0,ei.ht)(),u=this._elementRef.nativeElement;(!s||s===this._document.body||s===u||u.contains(s))&&a.focus()}this._focusTrap&&this._focusTrap.destroy()}},{key:"_savePreviouslyFocusedElement",value:function(){var a=this;this._elementFocusedBeforeOpened=(0,ei.ht)(),this._elementRef.nativeElement.focus&&Promise.resolve().then(function(){return a._elementRef.nativeElement.focus()})}}]),i}(qi.en);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(xi.qV),e.Y36(d2),e.Y36(At.K0,8),e.Y36(hL))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-bottom-sheet-container"]],viewQuery:function(t,i){var o;1&t&&e.Gf(qi.Pl,7),2&t&&e.iGM(o=e.CRH())&&(i._portalOutlet=o.first)},hostAttrs:["tabindex","-1","role","dialog","aria-modal","true",1,"mat-bottom-sheet-container"],hostVars:2,hostBindings:function(t,i){1&t&&e.WFA("@state.start",function(a){return i._onAnimationStart(a)})("@state.done",function(a){return i._onAnimationDone(a)}),2&t&&(e.uIk("aria-label",null==i.bottomSheetConfig?null:i.bottomSheetConfig.ariaLabel),e.d8E("@state",i._animationState))},features:[e.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,i){1&t&&e.YNc(0,fme,0,0,"ng-template",0)},directives:[qi.Pl],styles:[".mat-bottom-sheet-container{padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:4px;border-top-right-radius:4px}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}\n"],encapsulation:2,data:{animation:[mme.bottomSheetState]}}),n}(),Lj=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[so.U8,un.BQ,qi.eL],un.BQ]}),n}(),Z2=function(){function n(r,t){var i=this;(0,g.Z)(this,n),this._overlayRef=t,this._afterDismissed=new Pn.xQ,this._afterOpened=new Pn.xQ,this.containerInstance=r,this.disableClose=r.bottomSheetConfig.disableClose,r._animationStateChanged.pipe((0,vi.h)(function(o){return"done"===o.phaseName&&"visible"===o.toState}),(0,eo.q)(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),r._animationStateChanged.pipe((0,vi.h)(function(o){return"done"===o.phaseName&&"hidden"===o.toState}),(0,eo.q)(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),t.dispose()}),t.detachments().pipe((0,eo.q)(1)).subscribe(function(){i._afterDismissed.next(i._result),i._afterDismissed.complete()}),(0,go.T)(t.backdropClick(),t.keydownEvents().pipe((0,vi.h)(function(o){return o.keyCode===Yr.hY}))).subscribe(function(o){!i.disableClose&&("keydown"!==o.type||!(0,Yr.Vb)(o))&&(o.preventDefault(),i.dismiss())})}return(0,k.Z)(n,[{key:"dismiss",value:function(t){var i=this;this._afterDismissed.closed||(this.containerInstance._animationStateChanged.pipe((0,vi.h)(function(o){return"start"===o.phaseName}),(0,eo.q)(1)).subscribe(function(o){i._closeFallbackTimeout=setTimeout(function(){i._overlayRef.dispose()},o.totalTime+100),i._overlayRef.detachBackdrop()}),this._result=t,this.containerInstance.exit())}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}}]),n}(),Fj=new e.OlP("mat-bottom-sheet-default-options"),LS=function(){var n=function(){function r(t,i,o,a){(0,g.Z)(this,r),this._overlay=t,this._injector=i,this._parentBottomSheet=o,this._defaultOptions=a,this._bottomSheetRefAtThisLevel=null}return(0,k.Z)(r,[{key:"_openedBottomSheetRef",get:function(){var i=this._parentBottomSheet;return i?i._openedBottomSheetRef:this._bottomSheetRefAtThisLevel},set:function(i){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=i:this._bottomSheetRefAtThisLevel=i}},{key:"open",value:function(i,o){var a=this,s=function(n,r){return Object.assign(Object.assign({},n),r)}(this._defaultOptions||new hL,o),u=this._createOverlay(s),p=this._attachContainer(u,s),m=new Z2(p,u);if(i instanceof e.Rgc)p.attachTemplatePortal(new qi.UE(i,null,{$implicit:s.data,bottomSheetRef:m}));else{var b=new qi.C5(i,void 0,this._createInjector(s,m)),R=p.attachComponentPortal(b);m.instance=R.instance}return m.afterDismissed().subscribe(function(){a._openedBottomSheetRef==m&&(a._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(function(){return m.containerInstance.enter()}),this._openedBottomSheetRef.dismiss()):m.containerInstance.enter(),this._openedBottomSheetRef=m,m}},{key:"dismiss",value:function(i){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(i)}},{key:"ngOnDestroy",value:function(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}},{key:"_attachContainer",value:function(i,o){var s=e.zs3.create({parent:o&&o.viewContainerRef&&o.viewContainerRef.injector||this._injector,providers:[{provide:hL,useValue:o}]}),u=new qi.C5(vme,o.viewContainerRef,s);return i.attach(u).instance}},{key:"_createOverlay",value:function(i){var o=new so.X_({direction:i.direction,hasBackdrop:i.hasBackdrop,disposeOnNavigation:i.closeOnNavigation,maxWidth:"100%",scrollStrategy:i.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0")});return i.backdropClass&&(o.backdropClass=i.backdropClass),this._overlay.create(o)}},{key:"_createInjector",value:function(i,o){var a=i&&i.viewContainerRef&&i.viewContainerRef.injector,s=[{provide:Z2,useValue:o},{provide:hme,useValue:i.data}];return i.direction&&(!a||!a.get(Ba.Is,null,e.XFs.Optional))&&s.push({provide:Ba.Is,useValue:{value:i.direction,change:(0,or.of)()}}),e.zs3.create({parent:a||this._injector,providers:s})}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(so.aV),e.LFG(e.zs3),e.LFG(n,12),e.LFG(Fj,8))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(so.aV),e.LFG(e.gxx),e.LFG(n,12),e.LFG(Fj,8))},token:n,providedIn:Lj}),n}(),_me=function(n){return{lightTheme:n}},Xf=function(){function n(r,t){this.bottomSheetRef=r,this.themeService=t,this.message="",this.isLightThemeEnabled=!1}return n.prototype.ngOnInit=function(){this.isLightThemeEnabled="light"===this.themeService.getActualTheme()},n.prototype.onNoClick=function(){this.bottomSheetRef.dismiss(!1)},n.prototype.onYesClick=function(){this.bottomSheetRef.dismiss(!0)},n.\u0275fac=function(t){return new(t||n)(e.Y36(Z2),e.Y36(rc.f))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-confirmation-bottomsheet"]],decls:8,vars:4,consts:[[1,"dialogWrapper",3,"ngClass"],[1,"title"],["mat-button","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._uU(2),e.qZA(),e.TgZ(3,"div"),e.TgZ(4,"button",2),e.NdJ("click",function(){return i.onNoClick()}),e._uU(5,"No"),e.qZA(),e.TgZ(6,"button",2),e.NdJ("click",function(){return i.onYesClick()}),e._uU(7,"Yes"),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.Q6J("ngClass",e.VKq(2,_me,i.isLightThemeEnabled)),e.xp6(2),e.Oqu(i.message))},directives:[At.mk,An],styles:[".dialogWrapper[_ngcontent-%COMP%]{background-color:#263238;padding:10px 20px;margin-bottom:-8px;display:flex;justify-content:space-between;align-items:center}.lightTheme[_ngcontent-%COMP%]{background-color:#fff!important}.title[_ngcontent-%COMP%]{margin-right:10px;margin-left:10px}"]}),n}(),L2=function(){function n(){}return n.prototype.get=function(r){return+r.value>=0?null:{negativeValue:!0}},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),ko=f(88802);function yme(n,r){1&n&&(e.TgZ(0,"th",26),e._uU(1,"Name"),e.qZA())}function bme(n,r){if(1&n&&(e.TgZ(0,"td",27),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.name)}}function Cme(n,r){1&n&&(e.TgZ(0,"th",26),e._uU(1,"Value"),e.qZA())}function Sme(n,r){if(1&n&&(e.TgZ(0,"td",27),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.value)}}function Tme(n,r){1&n&&(e.TgZ(0,"th",26),e._uU(1,"Actions"),e.qZA())}function xme(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"td",27),e.TgZ(1,"button",28),e.NdJ("click",function(){var a=e.CHM(t).$implicit;return e.oxw().deleteVariable(a)}),e.TgZ(2,"mat-icon",29),e._uU(3,"delete"),e.qZA(),e.qZA(),e.qZA()}}function wme(n,r){1&n&&e._UZ(0,"tr",30)}function kme(n,r){1&n&&e._UZ(0,"tr",31)}var F2=function(){return{standalone:!0}},Eme=function(){function n(r,t,i,o,a){this.dialogRef=r,this.formBuilder=t,this.projectService=i,this.toasterService=o,this.nonNegativeValidator=a,this.displayedColumns=["name","value","actions"],this.variables=[],this.formGroup=this.formBuilder.group({projectName:new ne.NI("",[ne.kI.required]),width:new ne.NI("",[ne.kI.required,a.get]),height:new ne.NI("",[ne.kI.required,a.get]),nodeGridSize:new ne.NI("",[ne.kI.required,a.get]),drawingGridSize:new ne.NI("",[ne.kI.required,a.get])}),this.variableFormGroup=this.formBuilder.group({name:new ne.NI("",[ne.kI.required]),value:new ne.NI("",[ne.kI.required])})}return n.prototype.ngOnInit=function(){var r=this;this.formGroup.controls.projectName.setValue(this.project.name),this.formGroup.controls.width.setValue(this.project.scene_width),this.formGroup.controls.height.setValue(this.project.scene_height),this.formGroup.controls.nodeGridSize.setValue(this.project.grid_size),this.formGroup.controls.drawingGridSize.setValue(this.project.drawing_grid_size),this.project.variables&&this.project.variables.forEach(function(t){return r.variables.push(t)}),this.auto_close=!this.project.auto_close},n.prototype.addVariable=function(){if(this.variableFormGroup.valid){var r={name:this.variableFormGroup.get("name").value,value:this.variableFormGroup.get("value").value};this.variables=this.variables.concat([r])}else this.toasterService.error("Fill all required fields with correct values.")},n.prototype.deleteVariable=function(r){this.variables=this.variables.filter(function(t){return t!==r})},n.prototype.onNoClick=function(){this.dialogRef.close()},n.prototype.onYesClick=function(){var r=this;this.formGroup.valid?(this.project.name=this.formGroup.get("projectName").value,this.project.scene_width=this.formGroup.get("width").value,this.project.scene_height=this.formGroup.get("height").value,this.project.drawing_grid_size=this.formGroup.get("drawingGridSize").value,this.project.grid_size=this.formGroup.get("nodeGridSize").value,this.project.variables=this.variables,this.project.auto_close=!this.auto_close,this.projectService.update(this.server,this.project).subscribe(function(t){r.toasterService.success("Project "+t.name+" updated."),r.onNoClick()})):this.toasterService.error("Fill all required fields with correct values.")},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(ne.qu),e.Y36(fd.Y),e.Y36(er),e.Y36(L2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-edit-project-dialog"]],decls:49,vars:17,consts:[["mat-dialog-title",""],[1,"modal-form-container"],["label","General"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","projectName","placeholder","Project name","type","text"],["matInput","","formControlName","width","placeholder","Scene width (px)","type","number"],["matInput","","formControlName","height","placeholder","Scene height (px)","type","number"],["matInput","","formControlName","nodeGridSize","placeholder","Node grid size","type","number"],["matInput","","formControlName","drawingGridSize","placeholder","Drawing grid size","type","number"],[3,"ngModelOptions","ngModel","ngModelChange"],["label","Global variables"],["matInput","","formControlName","name","placeholder","Name","type","text"],["matInput","","formControlName","value","placeholder","Value","type","text"],["mat-button","","mat-raised-button","","color","primary",1,"form-field",3,"click"],["mat-table","",1,"table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete variable","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete adapter"],["mat-header-row",""],["mat-row",""]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Edit project"),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"mat-tab-group"),e.TgZ(4,"mat-tab",2),e.TgZ(5,"form",3),e.TgZ(6,"mat-form-field",4),e._UZ(7,"input",5),e.qZA(),e.TgZ(8,"mat-form-field",4),e._UZ(9,"input",6),e.qZA(),e.TgZ(10,"mat-form-field",4),e._UZ(11,"input",7),e.qZA(),e.TgZ(12,"mat-form-field",4),e._UZ(13,"input",8),e.qZA(),e.TgZ(14,"mat-form-field",4),e._UZ(15,"input",9),e.qZA(),e.qZA(),e.TgZ(16,"mat-checkbox",10),e.NdJ("ngModelChange",function(a){return i.project.auto_open=a}),e._uU(17," Open this project in the background when GNS3 server starts "),e.qZA(),e.TgZ(18,"mat-checkbox",10),e.NdJ("ngModelChange",function(a){return i.project.auto_start=a}),e._uU(19," Start all nodes when this project is opened "),e.qZA(),e.TgZ(20,"mat-checkbox",10),e.NdJ("ngModelChange",function(a){return i.auto_close=a}),e._uU(21," Leave this project running in the background after closing "),e.qZA(),e.TgZ(22,"mat-checkbox",10),e.NdJ("ngModelChange",function(a){return i.project.show_interface_labels=a}),e._uU(23," Show interface labels at start "),e.qZA(),e.qZA(),e.TgZ(24,"mat-tab",11),e.TgZ(25,"form",3),e.TgZ(26,"mat-form-field",4),e._UZ(27,"input",12),e.qZA(),e.TgZ(28,"mat-form-field",4),e._UZ(29,"input",13),e.qZA(),e.qZA(),e.TgZ(30,"button",14),e.NdJ("click",function(){return i.addVariable()}),e._uU(31," Add variable "),e.qZA(),e.TgZ(32,"table",15),e.ynx(33,16),e.YNc(34,yme,2,0,"th",17),e.YNc(35,bme,2,1,"td",18),e.BQk(),e.ynx(36,19),e.YNc(37,Cme,2,0,"th",17),e.YNc(38,Sme,2,1,"td",18),e.BQk(),e.ynx(39,20),e.YNc(40,Tme,2,0,"th",17),e.YNc(41,xme,4,0,"td",18),e.BQk(),e.YNc(42,wme,1,0,"tr",21),e.YNc(43,kme,1,0,"tr",22),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(44,"div",23),e.TgZ(45,"button",24),e.NdJ("click",function(){return i.onNoClick()}),e._uU(46,"Cancel"),e.qZA(),e.TgZ(47,"button",25),e.NdJ("click",function(){return i.onYesClick()}),e._uU(48,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("formGroup",i.formGroup),e.xp6(11),e.Q6J("ngModelOptions",e.DdM(13,F2))("ngModel",i.project.auto_open),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(14,F2))("ngModel",i.project.auto_start),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(15,F2))("ngModel",i.auto_close),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(16,F2))("ngModel",i.project.show_interface_labels),e.xp6(3),e.Q6J("formGroup",i.variableFormGroup),e.xp6(7),e.Q6J("dataSource",i.variables),e.xp6(10),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns))},directives:[ri,ko.SP,ko.uX,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,ne.wV,Lo,ne.On,An,$l,fl,pl,dl,eu,tu,ti,hl,ml,Xa,ur,nu,ru],styles:[".form-field[_ngcontent-%COMP%]{width:100%}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}"]}),n}();function Mme(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Project name is required"),e.qZA())}function Ame(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Project name is incorrect"),e.qZA())}var Dme=function(n){return{empty:n}},Ome=function(n){return{"is-invalid":n}},Pme=function(n){return{width:n}},Bj=function(){function n(r,t,i,o,a,s){this.dialog=r,this.dialogRef=t,this.data=i,this.formBuilder=o,this.projectService=a,this.projectNameValidator=s,this.isImportEnabled=!1,this.isFinishEnabled=!1,this.isDeleteVisible=!1,this.resultMessage="The project is being imported... Please wait",this.submitted=!1,this.isFirstStepCompleted=!1,this.onImportProject=new e.vpe,this.projectNameForm=this.formBuilder.group({projectName:new ne.NI(null,[ne.kI.required,s.get])})}return n.prototype.ngOnInit=function(){var r=this;this.uploader=new Wm({}),this.uploader.onAfterAddingFile=function(t){t.withCredentials=!1},this.uploader.onErrorItem=function(t,i,o,a){var s=JSON.parse(i);r.resultMessage="An error occured: "+s.message,r.isFinishEnabled=!0},this.uploader.onCompleteItem=function(t,i,o,a){r.onImportProject.emit(r.uuid),r.resultMessage="Project was imported succesfully!",r.isFinishEnabled=!0}},Object.defineProperty(n.prototype,"form",{get:function(){return this.projectNameForm.controls},enumerable:!1,configurable:!0}),n.prototype.uploadProjectFile=function(r){this.projectNameForm.controls.projectName.setValue(r.target.files[0].name.split(".")[0]),this.isImportEnabled=!0,this.isDeleteVisible=!0},n.prototype.onImportClick=function(){var r=this;this.projectNameForm.invalid?this.submitted=!0:this.projectService.list(this.server).subscribe(function(t){var i=r.projectNameForm.controls.projectName.value,o=t.find(function(a){return a.name===i});o?r.openConfirmationDialog(o):r.importProject()})},n.prototype.importProject=function(){var r=this.prepareUploadPath();this.uploader.queue.forEach(function(i){return i.url=r}),this.isFirstStepCompleted=!0,this.uploader.uploadItem(this.uploader.queue[0])},n.prototype.openConfirmationDialog=function(r){var t=this;this.dialog.open(Nj,{width:"300px",height:"150px",data:{existingProject:r},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(o){o&&t.projectService.close(t.server,r.project_id).subscribe(function(){t.projectService.delete(t.server,r.project_id).subscribe(function(){t.importProject()})})})},n.prototype.onNoClick=function(){this.uploader.cancelAll(),this.dialogRef.close()},n.prototype.onFinishClick=function(){this.dialogRef.close()},n.prototype.onDeleteClick=function(){this.uploader.queue.pop(),this.isImportEnabled=!1,this.isDeleteVisible=!1,this.projectNameForm.controls.projectName.setValue("")},n.prototype.prepareUploadPath=function(){return this.uuid=(0,wa.v4)(),this.projectService.getUploadPath(this.server,this.uuid,this.projectNameForm.controls.projectName.value)},n.\u0275fac=function(t){return new(t||n)(e.Y36(no),e.Y36(Vr),e.Y36(dd),e.Y36(ne.qu),e.Y36(fd.Y),e.Y36(_p))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-import-project-dialog"]],features:[e._Bn([_p])],decls:29,vars:19,consts:[["mat-dialog-title",""],[3,"hidden"],[1,"file-name-form",3,"formGroup"],["type","file","accept",".gns3project, .gns3p","ng2FileSelect","",1,"non-visible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary","matTooltip","Import your .gns3p or .gns3project file","matTooltipClass","custom-tooltip",1,"file-button",3,"click"],[1,"file-name-form-field",3,"ngClass"],["matInput","","type","text","formControlName","projectName","placeholder","Please enter name",3,"ngClass"],[4,"ngIf"],[1,"delete-button",3,"hidden"],["color","primary",1,"delete-icon",3,"click"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"disabled","click"],[1,"progress"],["role","progressbar",1,"progress-bar",3,"ngStyle"],[1,"result-message-box"]],template:function(t,i){if(1&t){var o=e.EpF();e.TgZ(0,"h1",0),e._uU(1,"Import project"),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"form",2),e.TgZ(4,"input",3,4),e.NdJ("change",function(s){return i.uploadProjectFile(s)}),e.qZA(),e.TgZ(6,"button",5),e.NdJ("click",function(){return e.CHM(o),e.MAs(5).click()}),e._uU(7," Choose file "),e.qZA(),e.TgZ(8,"mat-form-field",6),e._UZ(9,"input",7),e.YNc(10,Mme,2,0,"mat-error",8),e.YNc(11,Ame,2,0,"mat-error",8),e.qZA(),e.TgZ(12,"button",9),e.TgZ(13,"mat-icon",10),e.NdJ("click",function(){return i.onDeleteClick()}),e._uU(14,"clear"),e.qZA(),e.qZA(),e.TgZ(15,"div",11),e.TgZ(16,"button",12),e.NdJ("click",function(){return i.onNoClick()}),e._uU(17,"Cancel"),e.qZA(),e.TgZ(18,"button",13),e.NdJ("click",function(){return i.onImportClick()}),e._uU(19," Import "),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",1),e.TgZ(21,"div",14),e._UZ(22,"div",15),e.qZA(),e.TgZ(23,"div",16),e.TgZ(24,"span"),e._uU(25),e.qZA(),e.qZA(),e.TgZ(26,"div",11),e.TgZ(27,"button",13),e.NdJ("click",function(){return i.onNoClick()}),e._uU(28," Finish "),e.qZA(),e.qZA(),e.qZA()}2&t&&(e.xp6(2),e.Q6J("hidden",i.isFirstStepCompleted),e.xp6(1),e.Q6J("formGroup",i.projectNameForm),e.xp6(1),e.Q6J("uploader",i.uploader),e.xp6(4),e.Q6J("ngClass",e.VKq(13,Dme,!i.isDeleteVisible)),e.xp6(1),e.Q6J("ngClass",e.VKq(15,Ome,i.form.projectName.errors)),e.xp6(1),e.Q6J("ngIf",i.form.projectName.errors&&i.form.projectName.errors.required),e.xp6(1),e.Q6J("ngIf",i.form.projectName.errors&&i.form.projectName.errors.invalidName),e.xp6(1),e.Q6J("hidden",!i.isDeleteVisible),e.xp6(6),e.Q6J("disabled",!i.isImportEnabled),e.xp6(2),e.Q6J("hidden",!i.isFirstStepCompleted),e.xp6(2),e.Q6J("ngStyle",e.VKq(17,Pme,i.uploader.progress+"%")),e.xp6(3),e.Oqu(i.resultMessage),e.xp6(2),e.Q6J("disabled",!i.isFinishEnabled))},directives:[ri,ne._Y,ne.JL,ne.sg,lS,An,Xa,Hn.KE,At.mk,dr,ne.Fj,ne.JJ,ne.u,At.O5,ur,ti,At.PC,Hn.TO],styles:['.non-visible[_ngcontent-%COMP%]{display:none}.file-button[_ngcontent-%COMP%]{width:100%;margin-top:5px;margin-bottom:10px;padding:0}.file-name-form[_ngcontent-%COMP%]{float:right;width:100%}.file-name-form-field[_ngcontent-%COMP%]{width:90%}.empty[_ngcontent-%COMP%]{width:100%}.delete-button[_ngcontent-%COMP%]{background:transparent;border:none;outline:0;width:10%}.delete-icon[_ngcontent-%COMP%]{vertical-align:"middle"}.result-message-box[_ngcontent-%COMP%]{margin-top:10px;text-align:center}.progress-bar[_ngcontent-%COMP%]{background-color:#0097a7}']}),n}(),Ime=function(n){return{lightTheme:n}},Uj=function(){function n(r,t){this.bottomSheetRef=r,this.themeService=t,this.projectMessage="",this.isLightThemeEnabled=!1}return n.prototype.ngOnInit=function(){this.isLightThemeEnabled="light"===this.themeService.getActualTheme()},n.prototype.onNoClick=function(){this.bottomSheetRef.dismiss(!1)},n.prototype.onYesClick=function(){this.bottomSheetRef.dismiss(!0)},n.\u0275fac=function(t){return new(t||n)(e.Y36(Z2),e.Y36(rc.f))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-navigation-dialog"]],decls:8,vars:4,consts:[[1,"dialogWrapper",3,"ngClass"],[1,"title"],["mat-button","",3,"click"],["mat-button","",1,"confirmButton",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._uU(2),e.qZA(),e.TgZ(3,"div"),e.TgZ(4,"button",2),e.NdJ("click",function(){return i.onNoClick()}),e._uU(5,"No"),e.qZA(),e.TgZ(6,"button",3),e.NdJ("click",function(){return i.onYesClick()}),e._uU(7,"Yes"),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.Q6J("ngClass",e.VKq(2,Ime,i.isLightThemeEnabled)),e.xp6(2),e.hij("Do you want to navigate to ",i.projectMessage,"?"))},directives:[At.mk,An],styles:[".dialogWrapper[_ngcontent-%COMP%]{background-color:#263238;padding:10px 20px;margin-bottom:-8px;display:flex;justify-content:space-between;align-items:center}.lightTheme[_ngcontent-%COMP%]{background-color:#fff!important}.title[_ngcontent-%COMP%]{margin-right:10px;margin-left:10px}"]}),n}();function Rme(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Project name is required"),e.qZA())}function Nme(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Project name is incorrect"),e.qZA())}var Zme=function(n){return{"is-invalid":n}},Lme=function(){function n(r,t,i,o,a,s){this.dialogRef=r,this.projectService=t,this.nodesDataSource=i,this.toasterService=o,this.formBuilder=a,this.projectNameValidator=s,this.onAddProject=new e.vpe,this.projectNameForm=this.formBuilder.group({projectName:new ne.NI(null,[ne.kI.required,s.get])})}return n.prototype.ngOnInit=function(){},Object.defineProperty(n.prototype,"form",{get:function(){return this.projectNameForm.controls},enumerable:!1,configurable:!0}),n.prototype.onAddClick=function(){var r=this;this.projectNameForm.invalid||this.projectService.list(this.server).subscribe(function(t){var i=r.projectNameForm.controls.projectName.value;t.find(function(a){return a.name===i})?r.toasterService.error("Project with this name already exists."):r.nodesDataSource.getItems().filter(function(a){return"started"===a.status&&"vpcs"===a.node_type||"started"===a.status&&"virtualbox"===a.node_type||"started"===a.status&&"vmware"===a.node_type}).length>0?r.toasterService.error("Please stop all nodes in order to save project."):r.addProject()})},n.prototype.onNoClick=function(){this.dialogRef.close()},n.prototype.addProject=function(){var r=this;this.projectService.duplicate(this.server,this.project.project_id,this.projectNameForm.controls.projectName.value).subscribe(function(t){r.dialogRef.close(),r.toasterService.success("Project "+t.name+" added")})},n.prototype.onKeyDown=function(r){"Enter"===r.key&&this.onAddClick()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(fd.Y),e.Y36(Ea.G),e.Y36(er),e.Y36(ne.qu),e.Y36(_p))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-save-project-dialog"]],features:[e._Bn([_p])],decls:12,vars:6,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","projectName","placeholder","Please enter name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Save project as"),e.qZA(),e.TgZ(2,"form",1),e.TgZ(3,"mat-form-field",2),e.TgZ(4,"input",3),e.NdJ("keydown",function(a){return i.onKeyDown(a)}),e.qZA(),e.YNc(5,Rme,2,0,"mat-error",4),e.YNc(6,Nme,2,0,"mat-error",4),e.qZA(),e.TgZ(7,"div",5),e.TgZ(8,"button",6),e.NdJ("click",function(){return i.onNoClick()}),e._uU(9,"Cancel"),e.qZA(),e.TgZ(10,"button",7),e.NdJ("click",function(){return i.onAddClick()}),e._uU(11,"Save project"),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(2),e.Q6J("formGroup",i.projectNameForm),e.xp6(2),e.Q6J("ngClass",e.VKq(4,Zme,null==i.form.projectName?null:i.form.projectName.errors)),e.xp6(1),e.Q6J("ngIf",(null==i.form.projectName?null:i.form.projectName.touched)&&(null==i.form.projectName?null:i.form.projectName.errors)&&(null==i.form.projectName?null:i.form.projectName.errors.required)),e.xp6(1),e.Q6J("ngIf",(null==i.form.projectName?null:i.form.projectName.touched)&&(null==i.form.projectName?null:i.form.projectName.errors)&&(null==i.form.projectName?null:i.form.projectName.errors.invalidName)))},directives:[ri,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,At.mk,At.O5,ti,An,Hn.TO],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]}),n}(),Hj=function(){function n(){}return n.prototype.getInfoAboutNode=function(r,t){var i=[];return"cloud"===r.node_type?i.push("Cloud "+r.name+" is always on."):"nat"===r.node_type?i.push("NAT "+r.name+" is always on."):"ethernet-hub"===r.node_type?i.push("Ethernet hub "+r.name+" is always on."):"ethernet_switch"===r.node_type?i.push("Ethernet switch "+r.name+" is always on."):"frame_relay_switch"===r.node_type?i.push("Frame relay switch "+r.name+" is always on."):"atm_switch"===r.node_type?i.push("ATM switch "+r.name+" is always on."):"docker"===r.node_type?i.push("Docker "+r.name+" is "+r.status+"."):"dynamips"===r.node_type?i.push("Dynamips "+r.name+" is always on."):"traceng"===r.node_type?i.push("TraceNG "+r.name+" is always on."):"virtualbox"===r.node_type?i.push("VirtualBox VM "+r.name+" is "+r.status+"."):"vmware"===r.node_type?i.push("VMware VM "+r.name+" is "+r.status+"."):"qemu"===r.node_type?i.push("QEMU VM "+r.name+" is "+r.status+"."):"iou"===r.node_type?i.push("IOU "+r.name+" is always on."):"vpcs"===r.node_type&&i.push("Node "+r.name+" is "+r.status+"."),i.push("Running on server "+t.name+" with port "+t.port+"."),i.push("Server ID is "+t.id+"."),"none"!==r.console_type&&"null"!==r.console_type&&i.push("Console is on port "+r.console+" and type is "+r.console_type+"."),i.concat(this.getInfoAboutPorts(r.ports))},n.prototype.getInfoAboutPorts=function(r){var t="Ports: ";return r.forEach(function(i){t+="link_type: "+i.link_type+", \n name: "+i.name+"; "}),t=t.substring(0,t.length-2)},n.prototype.getCommandLine=function(r){return"cloud"===r.node_type||"nat"===r.node_type||"ethernet_hub"===r.node_type||"ethernet_switch"===r.node_type||"frame_relay_switch"===r.node_type||"atm_switch"===r.node_type||"dynamips"===r.node_type||"traceng"===r.node_type||"iou"===r.node_type?"Command line information is not supported for this type of node.":r.command_line?r.command_line:"Please start the node in order to get the command line information."},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}();function Fme(n,r){if(1&n&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.hij(" ",t," ")}}var Bme=function(){function n(r,t){this.dialogRef=r,this.infoService=t,this.infoList=[],this.usage="",this.commandLine=""}return n.prototype.ngOnInit=function(){this.infoList=this.infoService.getInfoAboutNode(this.node,this.server),this.commandLine=this.infoService.getCommandLine(this.node),this.usage=this.node.usage?this.node.usage:"No usage information has been provided for this node."},n.prototype.onCloseClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(Hj))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-info-dialog"]],inputs:{server:"server",node:"node"},decls:16,vars:4,consts:[["mat-dialog-title",""],[1,"modal-form-container"],["animationDuration","0ms"],["label","General information"],[1,"textBox"],[4,"ngFor","ngForOf"],["label","Usage instructions"],["label","Command line"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"mat-tab-group",2),e.TgZ(4,"mat-tab",3),e.TgZ(5,"div",4),e.YNc(6,Fme,2,1,"div",5),e.qZA(),e.qZA(),e.TgZ(7,"mat-tab",6),e.TgZ(8,"div",4),e._uU(9),e.qZA(),e.qZA(),e.TgZ(10,"mat-tab",7),e.TgZ(11,"div",4),e._uU(12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"div",8),e.TgZ(14,"button",9),e.NdJ("click",function(){return i.onCloseClick()}),e._uU(15,"Close"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Oqu(i.node.name),e.xp6(5),e.Q6J("ngForOf",i.infoList),e.xp6(3),e.hij(" ",i.usage," "),e.xp6(3),e.hij(" ",i.commandLine," "))},directives:[ri,ko.SP,ko.uX,At.sg,ti,An],styles:[".textBox[_ngcontent-%COMP%]{margin-top:10px}"]}),n}(),Ume=function(){function n(r){this.dialog=r}return n.prototype.showNode=function(){var t=this.dialog.open(Bme,{width:"600px",maxHeight:"600px",autoFocus:!1,disableClose:!0}).componentInstance;t.node=this.node,t.server=this.server},n.\u0275fac=function(t){return new(t||n)(e.Y36(no))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-show-node-action"]],inputs:{node:"node",server:"server"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.showNode()}),e.TgZ(1,"mat-icon"),e._uU(2,"info"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Show node information"),e.qZA(),e.qZA())},directives:[Lr,ur],encapsulation:2}),n}(),Jr=function(){function n(r){this.httpServer=r}return n.prototype.getNodeById=function(r,t,i){return this.httpServer.get(r,"/projects/"+t+"/nodes/"+i)},n.prototype.start=function(r,t){return this.httpServer.post(r,"/projects/"+t.project_id+"/nodes/"+t.node_id+"/start",{})},n.prototype.startAll=function(r,t){return this.httpServer.post(r,"/projects/"+t.project_id+"/nodes/start",{})},n.prototype.stop=function(r,t){return this.httpServer.post(r,"/projects/"+t.project_id+"/nodes/"+t.node_id+"/stop",{})},n.prototype.stopAll=function(r,t){return this.httpServer.post(r,"/projects/"+t.project_id+"/nodes/stop",{})},n.prototype.suspend=function(r,t){return this.httpServer.post(r,"/projects/"+t.project_id+"/nodes/"+t.node_id+"/suspend",{})},n.prototype.suspendAll=function(r,t){return this.httpServer.post(r,"/projects/"+t.project_id+"/nodes/suspend",{})},n.prototype.reload=function(r,t){return this.httpServer.post(r,"/projects/"+t.project_id+"/nodes/"+t.node_id+"/reload",{})},n.prototype.reloadAll=function(r,t){return this.httpServer.post(r,"/projects/"+t.project_id+"/nodes/reload",{})},n.prototype.createFromTemplate=function(r,t,i,o,a,s){return this.httpServer.post(r,"/projects/"+t.project_id+"/templates/"+i.template_id,s?{x:Math.round(o),y:Math.round(a),compute_id:s}:{x:Math.round(o),y:Math.round(a),compute_id:"local"})},n.prototype.updatePosition=function(r,t,i,o,a){var s=Math.round(o),u=Math.round(a);return t.snap_to_grid&&(s=Math.round((s+i.width/2)/t.grid_size)*t.grid_size,u=Math.round((u+i.height/2)/t.grid_size)*t.grid_size,s=Math.round(s-i.width/2),u=Math.round(u-i.height/2)),this.httpServer.put(r,"/projects/"+i.project_id+"/nodes/"+i.node_id,{x:s,y:u})},n.prototype.updateLabel=function(r,t,i){return this.httpServer.put(r,"/projects/"+t.project_id+"/nodes/"+t.node_id,{label:{rotation:i.rotation,style:i.style,text:i.text,x:Math.round(i.x),y:Math.round(i.y)}})},n.prototype.updateSymbol=function(r,t,i){return this.httpServer.put(r,"/projects/"+t.project_id+"/nodes/"+t.node_id,{symbol:i})},n.prototype.update=function(r,t){return this.httpServer.put(r,"/projects/"+t.project_id+"/nodes/"+t.node_id,{x:Math.round(t.x),y:Math.round(t.y),z:t.z})},n.prototype.updateNode=function(r,t){return this.httpServer.put(r,"/projects/"+t.project_id+"/nodes/"+t.node_id,{console_type:t.console_type,console_auto_start:t.console_auto_start,locked:t.locked,name:t.name,properties:t.properties})},n.prototype.updateNodeWithCustomAdapters=function(r,t){return this.httpServer.put(r,"/projects/"+t.project_id+"/nodes/"+t.node_id,{console_type:t.console_type,console_auto_start:t.console_auto_start,custom_adapters:t.custom_adapters,name:t.name,properties:t.properties})},n.prototype.delete=function(r,t){return this.httpServer.delete(r,"/projects/"+t.project_id+"/nodes/"+t.node_id)},n.prototype.duplicate=function(r,t){return this.httpServer.post(r,"/projects/"+t.project_id+"/nodes/"+t.node_id+"/duplicate",{x:t.x+10,y:t.y+10,z:t.z})},n.prototype.getNode=function(r,t){return this.httpServer.get(r,"/projects/"+t.project_id+"/nodes/"+t.node_id)},n.prototype.getDefaultCommand=function(){return'putty.exe -telnet %h %p -wt "%d" -gns3 5 -skin 4'},n.prototype.getNetworkConfiguration=function(r,t){return this.httpServer.get(r,"/projects/"+t.project_id+"/nodes/"+t.node_id+"/files/etc/network/interfaces",{responseType:"text"})},n.prototype.saveNetworkConfiguration=function(r,t,i){return this.httpServer.post(r,"/projects/"+t.project_id+"/nodes/"+t.node_id+"/files/etc/network/interfaces",i)},n.prototype.getStartupConfiguration=function(r,t){var i="/projects/"+t.project_id+"/nodes/"+t.node_id;return"vpcs"===t.node_type?i+="/files/startup.vpc":"iou"===t.node_type?i+="/files/startup-config.cfg":"dynamips"===t.node_type&&(i+="/files/configs/i"+t.node_id+"_startup-config.cfg"),this.httpServer.get(r,i,{responseType:"text"})},n.prototype.getPrivateConfiguration=function(r,t){var i="/projects/"+t.project_id+"/nodes/"+t.node_id;return"iou"===t.node_type?i+="/files/private-config.cfg":"dynamips"===t.node_type&&(i+="/files/configs/i"+t.node_id+"_private-config.cfg"),this.httpServer.get(r,i,{responseType:"text"})},n.prototype.saveConfiguration=function(r,t,i){var o="/projects/"+t.project_id+"/nodes/"+t.node_id;return"vpcs"===t.node_type?o+="/files/startup.vpc":"iou"===t.node_type?o+="/files/startup-config.cfg":"dynamips"===t.node_type&&(o+="/files/configs/i"+t.node_id+"_startup-config.cfg"),this.httpServer.post(r,o,i)},n.prototype.savePrivateConfiguration=function(r,t,i){var o="/projects/"+t.project_id+"/nodes/"+t.node_id;return"iou"===t.node_type?o+="/files/private-config.cfg":"dynamips"===t.node_type&&(o+="/files/configs/i"+t.node_id+"_private-config.cfg"),this.httpServer.post(r,o,i)},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}();function Hme(n,r){1&n&&(e.TgZ(0,"th",27),e._uU(1,"Port : VPI : VCI"),e.qZA())}function Vme(n,r){if(1&n&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.portIn)}}function qme(n,r){1&n&&(e.TgZ(0,"th",27),e._uU(1,"Port : VPI : VCI"),e.qZA())}function jme(n,r){if(1&n&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.portOut)}}function zme(n,r){1&n&&(e.TgZ(0,"th",27),e._uU(1,"Actions"),e.qZA())}function Wme(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"td",28),e.TgZ(1,"button",29),e.NdJ("click",function(){var a=e.CHM(t).$implicit;return e.oxw(2).delete(a)}),e.TgZ(2,"mat-icon",30),e._uU(3,"delete"),e.qZA(),e.qZA(),e.qZA()}}function Gme(n,r){1&n&&e._UZ(0,"tr",31)}function Yme(n,r){1&n&&e._UZ(0,"tr",32)}function Jme(n,r){if(1&n&&(e.TgZ(0,"table",19),e.ynx(1,20),e.YNc(2,Hme,2,0,"th",21),e.YNc(3,Vme,2,1,"td",22),e.BQk(),e.ynx(4,23),e.YNc(5,qme,2,0,"th",21),e.YNc(6,jme,2,1,"td",22),e.BQk(),e.ynx(7,24),e.YNc(8,zme,2,0,"th",21),e.YNc(9,Wme,4,0,"td",22),e.BQk(),e.YNc(10,Gme,1,0,"tr",25),e.YNc(11,Yme,1,0,"tr",26),e.qZA()),2&n){var t=e.oxw();e.Q6J("dataSource",t.nodeMappingsDataSource),e.xp6(10),e.Q6J("matHeaderRowDef",t.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns)}}var Qme=function(){function n(r,t,i,o){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.consoleTypes=[],this.nodeMappings=new Map,this.nodeMappingsDataSource=[],this.dataSource=[],this.displayedColumns=["portIn","portOut","actions"],this.sourcePort="",this.sourceVpi="",this.sourceVci="",this.destinationPort="",this.destinationVpi="",this.destinationVci="",this.useVpiOnly=!1,this.nameForm=this.formBuilder.group({name:new ne.NI("",ne.kI.required)}),this.inputForm=this.formBuilder.group({sourcePort:new ne.NI("",ne.kI.required),sourceVci:new ne.NI("",ne.kI.required),destinationPort:new ne.NI("",ne.kI.required),destinationVci:new ne.NI("",ne.kI.required)}),this.abstractForm=this.formBuilder.group({sourceVpi:new ne.NI("",ne.kI.required),destinationVpi:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.name=t.name;var i=t.properties.mappings;Object.keys(i).forEach(function(o){r.nodeMappings.set(o,i[o])}),r.nodeMappings.forEach(function(o,a){r.nodeMappingsDataSource.push({portIn:a,portOut:o})})})},n.prototype.delete=function(r){this.nodeMappingsDataSource=this.nodeMappingsDataSource.filter(function(t){return t!==r})},n.prototype.add=function(){var r;this.inputForm.valid?this.useVpiOnly?(r={portIn:this.sourcePort+":"+this.sourceVci,portOut:this.destinationPort+":"+this.destinationVci},this.nodeMappingsDataSource.filter(function(t){return t.portIn===r.portIn}).length>0?this.toasterService.error("Mapping already defined."):(this.nodeMappingsDataSource=this.nodeMappingsDataSource.concat([r]),this.clearUserInput())):this.abstractForm.valid?(r={portIn:this.sourcePort+":"+this.sourceVpi+":"+this.sourceVci,portOut:this.destinationPort+":"+this.destinationVpi+":"+this.destinationVci},this.nodeMappingsDataSource.filter(function(t){return t.portIn===r.portIn}).length>0?this.toasterService.error("Mapping already defined."):(this.nodeMappingsDataSource=this.nodeMappingsDataSource.concat([r]),this.clearUserInput())):this.toasterService.error("Fill all required fields."):this.toasterService.error("Fill all required fields.")},n.prototype.clearUserInput=function(){this.sourcePort="0",this.sourceVpi="0",this.sourceVci="0",this.destinationPort="0",this.destinationVpi="0",this.sourceVci="0"},n.prototype.strMapToObj=function(r){for(var t=Object.create(null),i=0,o=r;i<o.length;i++){var a=o[i];t[a[0]]=a[1]}return t},n.prototype.onSaveClick=function(){var r=this;this.nameForm.valid?(this.nodeMappings.clear(),this.nodeMappingsDataSource.forEach(function(t){r.nodeMappings.set(t.portIn,t.portOut)}),this.node.properties.mappings=Array.from(this.nodeMappings).reduce(function(t,i){var o;return Object.assign(t,((o={})[i[0]]=i[1],o))},{}),this.nodeService.updateNode(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()})):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(Jr),e.Y36(er),e.Y36(ne.qu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-atm-switch"]],decls:39,vars:16,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],["class","table","mat-table","",3,"dataSource",4,"ngIf"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","sourcePort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","sourceVpi","placeholder","VPI",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","sourceVci","placeholder","VCI",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","destinationPort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","destinationVpi","placeholder","VPI",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","destinationVci","placeholder","VCI",3,"ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["mat-table","",1,"table",3,"dataSource"],["matColumnDef","portIn"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","portOut"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete port","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete port"],["mat-header-row",""],["mat-row",""]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.YNc(6,Jme,12,3,"table",4),e._UZ(7,"br"),e.TgZ(8,"form",5),e.TgZ(9,"mat-form-field",6),e.TgZ(10,"input",7),e.NdJ("ngModelChange",function(a){return i.node.name=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"mat-checkbox",8),e.NdJ("ngModelChange",function(a){return i.useVpiOnly=a}),e._uU(12," Use VPI only (VP tunnel) "),e.qZA(),e.TgZ(13,"form",5),e._uU(14," Source "),e.TgZ(15,"mat-form-field",6),e.TgZ(16,"input",9),e.NdJ("ngModelChange",function(a){return i.sourcePort=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"form",5),e.TgZ(18,"mat-form-field",6),e.TgZ(19,"input",10),e.NdJ("ngModelChange",function(a){return i.sourceVpi=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"form",5),e.TgZ(21,"mat-form-field",6),e.TgZ(22,"input",11),e.NdJ("ngModelChange",function(a){return i.sourceVci=a}),e.qZA(),e.qZA(),e._uU(23," Destination "),e.TgZ(24,"mat-form-field",6),e.TgZ(25,"input",12),e.NdJ("ngModelChange",function(a){return i.destinationPort=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"form",5),e.TgZ(27,"mat-form-field",6),e.TgZ(28,"input",13),e.NdJ("ngModelChange",function(a){return i.destinationVpi=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"form",5),e.TgZ(30,"mat-form-field",6),e.TgZ(31,"input",14),e.NdJ("ngModelChange",function(a){return i.destinationVci=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(32,"button",15),e.NdJ("click",function(){return i.add()}),e._uU(33,"Add"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(34,"div",16),e.TgZ(35,"button",17),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(36,"Cancel"),e.qZA(),e.TgZ(37,"button",18),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(38,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configurator for node ",i.name,""),e.xp6(5),e.Q6J("ngIf",i.nodeMappingsDataSource.length),e.xp6(2),e.Q6J("formGroup",i.nameForm),e.xp6(2),e.Q6J("ngModel",i.node.name),e.xp6(1),e.Q6J("ngModel",i.useVpiOnly),e.xp6(2),e.Q6J("formGroup",i.inputForm),e.xp6(3),e.Q6J("ngModel",i.sourcePort),e.xp6(1),e.Q6J("formGroup",i.abstractForm),e.xp6(2),e.Q6J("ngModel",i.sourceVpi),e.xp6(1),e.Q6J("formGroup",i.inputForm),e.xp6(2),e.Q6J("ngModel",i.sourceVci),e.xp6(3),e.Q6J("ngModel",i.destinationPort),e.xp6(1),e.Q6J("formGroup",i.abstractForm),e.xp6(2),e.Q6J("ngModel",i.destinationVpi),e.xp6(1),e.Q6J("formGroup",i.inputForm),e.xp6(2),e.Q6J("ngModel",i.destinationVci))},directives:[ri,_i,At.O5,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,Lo,ne.On,ne.wV,An,ti,$l,fl,pl,dl,eu,tu,hl,ml,Xa,ur,nu,ru],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function Kme(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"Name"),e.qZA())}function Xme(n,r){if(1&n&&(e.TgZ(0,"td",19),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.name)}}function $me(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"Local port"),e.qZA())}function eve(n,r){if(1&n&&(e.TgZ(0,"td",19),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.rport)}}function tve(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"Type"),e.qZA())}function nve(n,r){if(1&n&&(e.TgZ(0,"td",19),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.rhost)}}function rve(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"Remote port"),e.qZA())}function ive(n,r){if(1&n&&(e.TgZ(0,"td",19),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.lport)}}function ove(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"Actions"),e.qZA())}function ave(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"td",19),e.TgZ(1,"button",20),e.NdJ("click",function(){var a=e.CHM(t).$implicit;return e.oxw(2).delete(a)}),e.TgZ(2,"mat-icon",21),e._uU(3,"delete"),e.qZA(),e.qZA(),e.qZA()}}function sve(n,r){1&n&&e._UZ(0,"tr",22)}function lve(n,r){1&n&&e._UZ(0,"tr",23)}function uve(n,r){if(1&n&&(e.TgZ(0,"table",8),e.ynx(1,9),e.YNc(2,Kme,2,0,"th",10),e.YNc(3,Xme,2,1,"td",11),e.BQk(),e.ynx(4,12),e.YNc(5,$me,2,0,"th",10),e.YNc(6,eve,2,1,"td",11),e.BQk(),e.ynx(7,13),e.YNc(8,tve,2,0,"th",10),e.YNc(9,nve,2,1,"td",11),e.BQk(),e.ynx(10,14),e.YNc(11,rve,2,0,"th",10),e.YNc(12,ive,2,1,"td",11),e.BQk(),e.ynx(13,15),e.YNc(14,ove,2,0,"th",10),e.YNc(15,ave,4,0,"td",11),e.BQk(),e.YNc(16,sve,1,0,"tr",16),e.YNc(17,lve,1,0,"tr",17),e.qZA()),2&n){var t=e.oxw();e.Q6J("dataSource",t.dataSourceUdp),e.xp6(16),e.Q6J("matHeaderRowDef",t.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns)}}function cve(n,r){1&n&&e._UZ(0,"br")}var dve=function(){function n(r){this.builtInTemplatesConfigurationService=r,this.dataSourceUdp=[],this.displayedColumns=["name","lport","rhost","rport","action"],this.newPort={name:"",port_number:0},this.portTypes=[],this.etherTypes=[]}return n.prototype.ngOnInit=function(){this.getConfiguration()},n.prototype.getConfiguration=function(){this.etherTypes=this.builtInTemplatesConfigurationService.getEtherTypesForEthernetSwitches(),this.portTypes=this.builtInTemplatesConfigurationService.getPortTypesForEthernetSwitches()},n.prototype.onAddUdpInterface=function(){this.dataSourceUdp=this.dataSourceUdp.concat([this.newPort]),this.newPort={name:"",port_number:0}},n.prototype.delete=function(r){this.dataSourceUdp=this.dataSourceUdp.filter(function(t){return t!==r})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Gf))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-udp-tunnels"]],inputs:{dataSourceUdp:"dataSourceUdp"},decls:12,vars:6,consts:[["class","table","mat-table","",3,"dataSource",4,"ngIf"],[4,"ngIf"],[1,"form-field"],["matInput","","type","text","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Local port",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Remote host",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Remote port",3,"ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["mat-table","",1,"table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","rport"],["matColumnDef","rhost"],["matColumnDef","lport"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete port","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete port"],["mat-header-row",""],["mat-row",""]],template:function(t,i){1&t&&(e.YNc(0,uve,18,3,"table",0),e.YNc(1,cve,1,0,"br",1),e.TgZ(2,"mat-form-field",2),e.TgZ(3,"input",3),e.NdJ("ngModelChange",function(a){return i.newPort.name=a}),e.qZA(),e.qZA(),e.TgZ(4,"mat-form-field",2),e.TgZ(5,"input",4),e.NdJ("ngModelChange",function(a){return i.newPort.lport=a}),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",2),e.TgZ(7,"input",5),e.NdJ("ngModelChange",function(a){return i.newPort.rhost=a}),e.qZA(),e.qZA(),e.TgZ(8,"mat-form-field",2),e.TgZ(9,"input",6),e.NdJ("ngModelChange",function(a){return i.newPort.rport=a}),e.qZA(),e.qZA(),e.TgZ(10,"button",7),e.NdJ("click",function(){return i.onAddUdpInterface()}),e._uU(11,"Add"),e.qZA()),2&t&&(e.Q6J("ngIf",i.dataSourceUdp.length),e.xp6(1),e.Q6J("ngIf",i.dataSourceUdp.length),e.xp6(2),e.Q6J("ngModel",i.newPort.name),e.xp6(2),e.Q6J("ngModel",i.newPort.lport),e.xp6(2),e.Q6J("ngModel",i.newPort.rhost),e.xp6(2),e.Q6J("ngModel",i.newPort.rport))},directives:[At.O5,Hn.KE,dr,ne.Fj,ne.JJ,ne.On,ne.wV,An,$l,fl,pl,dl,eu,tu,hl,ml,Xa,ur,nu,ru],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),pve=["udpTunnels"];function fve(n,r){if(1&n&&(e.TgZ(0,"div",16),e.TgZ(1,"div",16),e._uU(2),e.qZA(),e._UZ(3,"br"),e._UZ(4,"br"),e.qZA()),2&n){var t=r.$implicit;e.xp6(2),e.Oqu(t.name)}}function hve(n,r){if(1&n&&(e.TgZ(0,"mat-option",28),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function mve(n,r){if(1&n&&(e.TgZ(0,"div",16),e.TgZ(1,"div",16),e._uU(2),e.qZA(),e._UZ(3,"br"),e._UZ(4,"br"),e.qZA()),2&n){var t=r.$implicit;e.xp6(2),e.Oqu(t.name)}}function vve(n,r){if(1&n&&(e.TgZ(0,"mat-option",28),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}var gve=function(){return{standalone:!0}};function _ve(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-tab-group"),e.TgZ(1,"mat-tab",9),e.YNc(2,fve,5,1,"div",10),e.TgZ(3,"mat-form-field",11),e.TgZ(4,"mat-select",12),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().ethernetInterface=a}),e.YNc(5,hve,2,2,"mat-option",13),e.qZA(),e.qZA(),e.TgZ(6,"button",14),e.NdJ("click",function(){return e.CHM(t),e.oxw().onAddEthernetInterface()}),e._uU(7,"Add"),e.qZA(),e.qZA(),e.TgZ(8,"mat-tab",15),e.YNc(9,mve,5,1,"div",10),e.TgZ(10,"mat-form-field",16),e.TgZ(11,"input",17),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().tapInterface=a}),e.qZA(),e.qZA(),e.TgZ(12,"button",14),e.NdJ("click",function(){return e.CHM(t),e.oxw().onAddTapInterface()}),e._uU(13,"Add"),e.qZA(),e.qZA(),e.TgZ(14,"mat-tab",18),e._UZ(15,"app-udp-tunnels",19,20),e.qZA(),e.TgZ(17,"mat-tab",21),e.TgZ(18,"form",22),e.TgZ(19,"mat-form-field",16),e.TgZ(20,"input",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.name=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(21,"mat-form-field",11),e.TgZ(22,"mat-select",24),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.console_type=a}),e.YNc(23,vve,2,2,"mat-option",13),e.qZA(),e.qZA(),e.TgZ(24,"mat-form-field",16),e.TgZ(25,"input",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.remote_console_host=a}),e.qZA(),e.qZA(),e.TgZ(26,"mat-form-field",16),e.TgZ(27,"input",26),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.remote_console_port=a}),e.qZA(),e.qZA(),e.TgZ(28,"mat-form-field",16),e.TgZ(29,"input",27),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.remote_console_http_path=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(2),e.Q6J("ngForOf",i.portsMappingEthernet),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(14,gve))("ngModel",i.ethernetInterface),e.xp6(1),e.Q6J("ngForOf",i.ethernetInterfaces),e.xp6(4),e.Q6J("ngForOf",i.portsMappingTap),e.xp6(2),e.Q6J("ngModel",i.tapInterface),e.xp6(4),e.Q6J("dataSourceUdp",i.portsMappingUdp),e.xp6(3),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.node.name),e.xp6(2),e.Q6J("ngModel",i.node.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(2),e.Q6J("ngModel",i.node.properties.remote_console_host),e.xp6(2),e.Q6J("ngModel",i.node.properties.remote_console_port),e.xp6(2),e.Q6J("ngModel",i.node.properties.remote_console_http_path)}}var yve=function(){function n(r,t,i,o,a){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.builtInTemplatesConfigurationService=a,this.consoleTypes=[],this.binaries=[],this.onCloseOptions=[],this.bootPriorities=[],this.diskInterfaces=[],this.portsMappingEthernet=[],this.portsMappingTap=[],this.portsMappingUdp=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.tapInterface="",this.ethernetInterface="",this.ethernetInterfaces=["Ethernet 2","Ethernet 3"],this.generalSettingsForm=this.formBuilder.group({name:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.name=t.name,r.getConfiguration(),r.portsMappingEthernet=r.node.properties.ports_mapping.filter(function(i){return"ethernet"===i.type}),r.portsMappingTap=r.node.properties.ports_mapping.filter(function(i){return"tap"===i.type}),r.portsMappingUdp=r.node.properties.ports_mapping.filter(function(i){return"udp"===i.type})})},n.prototype.getConfiguration=function(){this.consoleTypes=this.builtInTemplatesConfigurationService.getConsoleTypesForCloudNodes()},n.prototype.onAddEthernetInterface=function(){this.ethernetInterface&&this.portsMappingEthernet.push({interface:this.ethernetInterface,name:this.ethernetInterface,port_number:0,type:"ethernet"})},n.prototype.onAddTapInterface=function(){this.tapInterface&&this.portsMappingTap.push({interface:this.tapInterface,name:this.tapInterface,port_number:0,type:"tap"})},n.prototype.onSaveClick=function(){var r=this;this.generalSettingsForm.valid?(this.portsMappingUdp=this.udpTunnels.dataSourceUdp,this.node.properties.ports_mapping=this.portsMappingUdp.concat(this.portsMappingEthernet).concat(this.portsMappingTap),this.nodeService.updateNode(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()})):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(Jr),e.Y36(er),e.Y36(ne.qu),e.Y36(Gf))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-cloud"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(pve,5),2&t)&&(e.iGM(o=e.CRH())&&(i.udpTunnels=o.first))},decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","Ethernet interfaces"],["class","form-field",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Ethernet interface",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["mat-button","",1,"form-field",3,"click"],["label","TAP interfaces"],[1,"form-field"],["matInput","","type","text","placeholder","TAP interface",3,"ngModel","ngModelChange"],["label","UDP tunnels"],[3,"dataSourceUdp"],["udpTunnels",""],["label","Miscellaneous"],[3,"formGroup"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["placeholder","Console type",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console host",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console port",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console HTTP path",3,"ngModel","ngModelChange"],[3,"value"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card",4),e.YNc(6,_ve,30,15,"mat-tab-group",5),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",6),e.TgZ(8,"button",7),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(9,"Cancel"),e.qZA(),e.TgZ(10,"button",8),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(11,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configurator for node ",i.name,""),e.xp6(5),e.Q6J("ngIf",i.name))},directives:[ri,_i,At.O5,ti,An,ko.SP,ko.uX,At.sg,Hn.KE,fi.gD,ne.JJ,ne.On,dr,ne.Fj,dve,ne._Y,ne.JL,ne.sg,ne.u,un.ey],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),n}();function bve(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-list-item"),e.TgZ(1,"div",6),e.TgZ(2,"span",7),e._uU(3),e.qZA(),e.TgZ(4,"span",7),e.TgZ(5,"input",9),e.NdJ("ngModelChange",function(a){return e.CHM(t).$implicit.port_name=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit;e.xp6(3),e.hij(" Adapter ",i.adapter_number," "),e.xp6(2),e.Q6J("ngModel",i.port_name)}}function Cve(n,r){if(1&n&&(e.TgZ(0,"div",5),e.TgZ(1,"div",6),e.TgZ(2,"span",7),e._uU(3," Adapter number "),e.qZA(),e.TgZ(4,"span",7),e._uU(5," Port name "),e.qZA(),e.qZA(),e.TgZ(6,"div"),e.TgZ(7,"mat-list"),e.YNc(8,bve,6,2,"mat-list-item",8),e.qZA(),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(8),e.Q6J("ngForOf",t.adapters)}}var Sve=function(){function n(r,t,i,o,a){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.dockerConfigurationService=a,this.displayedColumns=["adapter_number","port_name"],this.adapters=[]}return n.prototype.ngOnInit=function(){var r=this;this.node.custom_adapters?this.adapters=this.node.custom_adapters:this.node.ports.forEach(function(i){r.adapters.push({adapter_number:0,port_name:""})})},n.prototype.onSaveClick=function(){var r=this;this.node.custom_adapters=this.adapters,this.nodeService.updateNodeWithCustomAdapters(this.server,this.node).subscribe(function(){r.onCancelClick(),r.toasterService.success("Configuration saved for node "+r.node.name)})},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(Jr),e.Y36(er),e.Y36(ne.qu),e.Y36(wS))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configure-custom-adapters"]],decls:8,vars:2,consts:[["mat-dialog-title",""],["class","modal-form-container",4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"modal-form-container"],[1,"header"],[1,"column"],[4,"ngFor","ngForOf"],["matInput","","type","text","placeholder","Edit port name",3,"ngModel","ngModelChange"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.YNc(2,Cve,9,1,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"button",3),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(5,"Cancel"),e.qZA(),e.TgZ(6,"button",4),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(7,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configure custom adapters for node ",i.node.name,""),e.xp6(1),e.Q6J("ngIf",i.node))},directives:[ri,At.O5,ti,An,NZ,At.sg,xs,dr,ne.Fj,ne.JJ,ne.On],styles:["th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}.column[_ngcontent-%COMP%]{width:50%}"]}),n}();function Tve(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",5),e.TgZ(1,"textarea",6),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().configuration=a}),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(1),e.Q6J("ngModel",i.configuration)}}var xve=function(){function n(r,t,i){this.dialogRef=r,this.nodeService=t,this.toasterService=i}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNetworkConfiguration(this.server,this.node).subscribe(function(t){r.configuration=t})},n.prototype.onSaveClick=function(){var r=this;this.nodeService.saveNetworkConfiguration(this.server,this.node,this.configuration).subscribe(function(t){r.onCancelClick(),r.toasterService.success("Configuration for node "+r.node.name+" saved.")})},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(Jr),e.Y36(er))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-edit-network-configuration"]],decls:8,vars:2,consts:[["mat-dialog-title",""],["class","modal-form-container",4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"modal-form-container"],["matInput","","type","text",1,"textArea",3,"ngModel","ngModelChange"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.YNc(2,Tve,2,1,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"button",3),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(5,"Cancel"),e.qZA(),e.TgZ(6,"button",4),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(7,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Edit network configuration for node ",i.node.name,""),e.xp6(1),e.Q6J("ngIf",i.node))},directives:[ri,At.O5,ti,An,dr,ne.Fj,ne.JJ,ne.On],styles:[".textArea[_ngcontent-%COMP%]{width:100%;height:350px}"]}),n}();function wve(n,r){if(1&n&&(e.TgZ(0,"mat-option",26),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function kve(n,r){if(1&n&&(e.TgZ(0,"mat-option",26),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}var mL=function(){return{standalone:!0}};function Eve(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-tab-group"),e.TgZ(1,"mat-tab",9),e._UZ(2,"br"),e.TgZ(3,"form",10),e.TgZ(4,"mat-form-field",11),e.TgZ(5,"input",12),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.name=a}),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",11),e.TgZ(7,"input",13),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.start_command=a}),e.qZA(),e.qZA(),e.TgZ(8,"mat-form-field",11),e.TgZ(9,"input",14),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.adapters=a}),e.qZA(),e.qZA(),e.TgZ(10,"button",15),e.NdJ("click",function(){return e.CHM(t),e.oxw().configureCustomAdapters()}),e._uU(11," Configure custom adapters "),e.qZA(),e.TgZ(12,"mat-form-field",16),e.TgZ(13,"mat-select",17),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.console_type=a}),e.YNc(14,wve,2,2,"mat-option",18),e.qZA(),e.qZA(),e.TgZ(15,"mat-checkbox",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.console_auto_start=a}),e._uU(16," Auto start console "),e.qZA(),e.TgZ(17,"mat-form-field",11),e.TgZ(18,"mat-select",20),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.console_resolution=a}),e.YNc(19,kve,2,2,"mat-option",18),e.qZA(),e.qZA(),e.TgZ(20,"mat-form-field",11),e.TgZ(21,"input",21),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.console_http_port=a}),e.qZA(),e.qZA(),e.TgZ(22,"mat-form-field",11),e.TgZ(23,"input",22),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.console_http_path=a}),e.qZA(),e.qZA(),e.TgZ(24,"button",15),e.NdJ("click",function(){return e.CHM(t),e.oxw().editNetworkConfiguration()}),e._uU(25," Edit network configuration "),e.qZA(),e.qZA(),e.TgZ(26,"h6"),e._uU(27,"Environment"),e.qZA(),e.TgZ(28,"mat-form-field",11),e.TgZ(29,"textarea",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.environment=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"mat-tab",24),e.TgZ(31,"h6"),e._uU(32,"Extra hosts"),e.qZA(),e.TgZ(33,"mat-form-field",11),e.TgZ(34,"textarea",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.extra_hosts=a}),e.qZA(),e.qZA(),e._UZ(35,"br"),e.TgZ(36,"h6"),e._uU(37,"Additional directories"),e.qZA(),e.TgZ(38,"mat-form-field",11),e.TgZ(39,"textarea",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.extra_volumes=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(40,"mat-tab",25),e.TgZ(41,"mat-form-field",11),e.TgZ(42,"textarea",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.usage=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(3),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.node.name),e.xp6(2),e.Q6J("ngModel",i.node.properties.start_command),e.xp6(2),e.Q6J("ngModel",i.node.properties.adapters),e.xp6(4),e.Q6J("ngModelOptions",e.DdM(18,mL))("ngModel",i.node.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(19,mL))("ngModel",i.node.console_auto_start),e.xp6(3),e.Q6J("ngModelOptions",e.DdM(20,mL))("ngModel",i.node.properties.console_resolution),e.xp6(1),e.Q6J("ngForOf",i.consoleResolutions),e.xp6(2),e.Q6J("ngModel",i.node.properties.console_http_port),e.xp6(2),e.Q6J("ngModel",i.node.properties.console_http_path),e.xp6(6),e.Q6J("ngModel",i.node.properties.environment),e.xp6(5),e.Q6J("ngModel",i.node.properties.extra_hosts),e.xp6(5),e.Q6J("ngModel",i.node.properties.extra_volumes),e.xp6(3),e.Q6J("ngModel",i.node.properties.usage)}}var Mve=function(){function n(r,t,i,o,a,s){this.dialogReference=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.dockerConfigurationService=a,this.dialog=s,this.consoleTypes=[],this.consoleResolutions=["640x480","800x600","1024x768","1280x800","1280x1024","1366x768","1920x1080"],this.conf={autoFocus:!1,width:"800px",disableClose:!0},this.generalSettingsForm=this.formBuilder.group({name:new ne.NI("",ne.kI.required),adapter:new ne.NI("",ne.kI.required),startCommand:new ne.NI("",ne.kI.required),consoleHttpPort:new ne.NI("",ne.kI.required),consoleHttpPath:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.name=t.name,r.getConfiguration()})},n.prototype.getConfiguration=function(){this.consoleTypes=this.dockerConfigurationService.getConsoleTypes()},n.prototype.configureCustomAdapters=function(){this.dialogRef=this.dialog.open(Sve,this.conf);var r=this.dialogRef.componentInstance;r.server=this.server,r.node=this.node},n.prototype.editNetworkConfiguration=function(){this.dialogRef=this.dialog.open(xve,this.conf);var r=this.dialogRef.componentInstance;r.server=this.server,r.node=this.node},n.prototype.onSaveClick=function(){var r=this;this.generalSettingsForm.valid?this.nodeService.updateNode(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()}):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogReference.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(Jr),e.Y36(er),e.Y36(ne.qu),e.Y36(wS),e.Y36(no))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-docker"]],decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","name","type","text","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","formControlName","startCommand","type","text","placeholder","Start command",3,"ngModel","ngModelChange"],["formControlName","adapter","matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],["placeholder","VNC console resolution",3,"ngModelOptions","ngModel","ngModelChange"],["formControlName","consoleHttpPort","matInput","","type","number","placeholder","HTTP port in the container",3,"ngModel","ngModelChange"],["matInput","","formControlName","consoleHttpPath","type","text","placeholder","HTTP path",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],["label","Advanced"],["label","Usage"],[3,"value"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card",4),e.YNc(6,Eve,43,21,"mat-tab-group",5),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",6),e.TgZ(8,"button",7),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(9,"Cancel"),e.qZA(),e.TgZ(10,"button",8),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(11,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configurator for node ",i.name,""),e.xp6(5),e.Q6J("ngIf",i.name))},directives:[ri,_i,At.O5,ti,An,ko.SP,ko.uX,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,ne.wV,fi.gD,ne.On,At.sg,Lo,un.ey],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),n}();function Ave(n,r){if(1&n&&(e.TgZ(0,"mat-option",16),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Dve(n,r){if(1&n&&e._UZ(0,"app-ports",17,18),2&n){var t=e.oxw(2);e.Q6J("ethernetPorts",t.node.properties.ports_mapping)}}var Ove=function(){return{standalone:!0}};function Pve(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",7),e.TgZ(1,"mat-card",8),e.TgZ(2,"form",9),e.TgZ(3,"mat-form-field",10),e.TgZ(4,"input",11),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.name=a}),e.qZA(),e.qZA(),e.TgZ(5,"mat-form-field",12),e.TgZ(6,"mat-select",13),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.console_type=a}),e.YNc(7,Ave,2,2,"mat-option",14),e.qZA(),e.qZA(),e.qZA(),e.YNc(8,Dve,2,1,"app-ports",15),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(2),e.Q6J("formGroup",i.inputForm),e.xp6(2),e.Q6J("ngModel",i.node.name),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(6,Ove))("ngModel",i.node.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngIf",i.node.properties)}}var Ive=function(){function n(r,t,i,o,a){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.ethernetSwitchesConfigurationService=a,this.consoleTypes=[],this.inputForm=this.formBuilder.group({name:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.name=r.node.name,r.getConfiguration()})},n.prototype.getConfiguration=function(){this.consoleTypes=this.ethernetSwitchesConfigurationService.getConsoleTypesForEthernetSwitches()},n.prototype.onSaveClick=function(){var r=this;this.inputForm.valid?(this.node.properties.ports_mapping=this.portsComponent.ethernetPorts,this.nodeService.updateNode(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()})):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(Jr),e.Y36(er),e.Y36(ne.qu),e.Y36(Gf))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-ethernet-switch"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(m2,5),2&t)&&(e.iGM(o=e.CRH())&&(i.portsComponent=o.first))},decls:10,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],["class","default-content",4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ethernetPorts",4,"ngIf"],[3,"value"],[3,"ethernetPorts"],["ports",""]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.YNc(4,Pve,9,7,"div",3),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"button",5),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(7,"Cancel"),e.qZA(),e.TgZ(8,"button",6),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(9,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configurator for node ",i.name,""),e.xp6(3),e.Q6J("ngIf",i.node))},directives:[ri,At.O5,ti,An,_i,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,fi.gD,ne.On,At.sg,un.ey,m2],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),n}(),Rve=function(){return{standalone:!0}},Nve=function(){function n(r,t,i,o,a){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.vpcsConfigurationService=a,this.consoleTypes=[],this.categories=[],this.inputForm=this.formBuilder.group({name:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.name=r.node.name,r.numberOfPorts=r.node.ports.length,r.getConfiguration()})},n.prototype.getConfiguration=function(){this.consoleTypes=this.vpcsConfigurationService.getConsoleTypes(),this.categories=this.vpcsConfigurationService.getCategories()},n.prototype.onSaveClick=function(){var r=this;if(this.inputForm.valid){this.node.properties.ports_mapping=[];for(var t=0;t<this.numberOfPorts;t++)this.node.properties.ports_mapping.push({name:"Ethernet"+t,port_number:t});this.nodeService.updateNode(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()})}else this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(Jr),e.Y36(er),e.Y36(ne.qu),e.Y36(x2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-ethernet-hub"]],decls:16,vars:6,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Number of ports",3,"ngModel","ngModelOptions","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card",4),e.TgZ(6,"form",5),e.TgZ(7,"mat-form-field",6),e.TgZ(8,"input",7),e.NdJ("ngModelChange",function(a){return i.node.name=a}),e.qZA(),e.qZA(),e.TgZ(9,"mat-form-field",6),e.TgZ(10,"input",8),e.NdJ("ngModelChange",function(a){return i.numberOfPorts=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",9),e.TgZ(12,"button",10),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(13,"Cancel"),e.qZA(),e.TgZ(14,"button",11),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(15,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configurator for node ",i.name,""),e.xp6(5),e.Q6J("formGroup",i.inputForm),e.xp6(2),e.Q6J("ngModel",i.node.name),e.xp6(2),e.Q6J("ngModel",i.numberOfPorts)("ngModelOptions",e.DdM(5,Rve)))},directives:[ri,_i,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,ne.wV,ne.On,ti,An],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),n}();function Zve(n,r){if(1&n&&(e.TgZ(0,"mat-option",23),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Lve(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-tab-group"),e.TgZ(1,"mat-tab",9),e._UZ(2,"br"),e.TgZ(3,"form",10),e.TgZ(4,"mat-form-field",11),e.TgZ(5,"input",12),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.name=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",13),e.TgZ(7,"mat-select",14),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.console_type=a}),e.YNc(8,Zve,2,2,"mat-option",15),e.qZA(),e.qZA(),e.TgZ(9,"mat-checkbox",16),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.console_auto_start=a}),e._uU(10," Auto start console "),e.qZA(),e._UZ(11,"br"),e.qZA(),e.TgZ(12,"mat-tab",17),e._UZ(13,"br"),e.TgZ(14,"form",10),e.TgZ(15,"mat-form-field",11),e.TgZ(16,"input",18),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.ram=a}),e.qZA(),e.TgZ(17,"span",19),e._uU(18,"MB"),e.qZA(),e.qZA(),e.TgZ(19,"mat-form-field",11),e.TgZ(20,"input",20),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.nvram=a}),e.qZA(),e.TgZ(21,"span",19),e._uU(22,"MB"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"mat-tab",21),e.TgZ(24,"mat-form-field",11),e.TgZ(25,"textarea",22),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.usage=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(3),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.node.name),e.xp6(2),e.Q6J("ngModel",i.node.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModel",i.node.console_auto_start),e.xp6(5),e.Q6J("formGroup",i.memoryForm),e.xp6(2),e.Q6J("ngModel",i.node.properties.ram),e.xp6(4),e.Q6J("ngModel",i.node.properties.nvram),e.xp6(5),e.Q6J("ngModel",i.node.properties.usage)}}var Fve=function(){function n(r,t,i,o,a){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.configurationService=a,this.consoleTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new ne.NI("",ne.kI.required)}),this.memoryForm=this.formBuilder.group({ram:new ne.NI("",ne.kI.required),nvram:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.name=t.name,r.getConfiguration()})},n.prototype.getConfiguration=function(){this.consoleTypes=this.configurationService.getConsoleTypes()},n.prototype.onSaveClick=function(){var r=this;this.generalSettingsForm.valid&&this.memoryForm.valid?this.nodeService.updateNode(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()}):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(Jr),e.Y36(er),e.Y36(ne.qu),e.Y36(_2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-ios"]],decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],["label","Memories and disks"],["matInput","","type","number","formControlName","ram","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","formControlName","nvram","placeholder","NVRAM size",3,"ngModel","ngModelChange"],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card",4),e.YNc(6,Lve,26,9,"mat-tab-group",5),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",6),e.TgZ(8,"button",7),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(9,"Cancel"),e.qZA(),e.TgZ(10,"button",8),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(11,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configurator for node ",i.name,""),e.xp6(5),e.Q6J("ngIf",i.name))},directives:[ri,_i,At.O5,ti,An,ko.SP,ko.uX,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,fi.gD,ne.On,At.sg,Lo,ne.wV,Hn.R9,un.ey],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),n}();function Bve(n,r){if(1&n&&(e.TgZ(0,"mat-option",25),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Uve(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-tab-group"),e.TgZ(1,"mat-tab",9),e._UZ(2,"br"),e.TgZ(3,"form",10),e.TgZ(4,"mat-form-field",11),e.TgZ(5,"input",12),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.name=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",13),e.TgZ(7,"mat-select",14),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.console_type=a}),e.YNc(8,Bve,2,2,"mat-option",15),e.qZA(),e.qZA(),e.TgZ(9,"mat-checkbox",16),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.console_auto_start=a}),e._uU(10," Auto start console "),e.qZA(),e._UZ(11,"br"),e.TgZ(12,"mat-form-field",11),e.TgZ(13,"input",17),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.ram=a}),e.qZA(),e.TgZ(14,"span",18),e._uU(15,"MB"),e.qZA(),e.qZA(),e.TgZ(16,"mat-form-field",11),e.TgZ(17,"input",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.nvram=a}),e.qZA(),e.TgZ(18,"span",18),e._uU(19,"MB"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"mat-tab",20),e._UZ(21,"br"),e.TgZ(22,"form",10),e.TgZ(23,"mat-form-field",11),e.TgZ(24,"input",21),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.ethernet_adapters=a}),e.qZA(),e.qZA(),e.TgZ(25,"mat-form-field",11),e.TgZ(26,"input",22),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.serial_adapters=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"mat-tab",23),e.TgZ(28,"mat-form-field",11),e.TgZ(29,"textarea",24),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.usage=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(3),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.node.name),e.xp6(2),e.Q6J("ngModel",i.node.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModel",i.node.console_auto_start),e.xp6(4),e.Q6J("ngModel",i.node.properties.ram),e.xp6(4),e.Q6J("ngModel",i.node.properties.nvram),e.xp6(5),e.Q6J("formGroup",i.networkForm),e.xp6(2),e.Q6J("ngModel",i.node.ethernet_adapters),e.xp6(2),e.Q6J("ngModel",i.node.serial_adapters),e.xp6(3),e.Q6J("ngModel",i.node.properties.usage)}}var Hve=function(){function n(r,t,i,o,a){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.configurationService=a,this.consoleTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new ne.NI("",ne.kI.required)}),this.networkForm=this.formBuilder.group({ethernetAdapters:new ne.NI("",ne.kI.required),serialAdapters:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.name=t.name,r.getConfiguration()})},n.prototype.getConfiguration=function(){this.consoleTypes=this.configurationService.getConsoleTypes()},n.prototype.onSaveClick=function(){var r=this;this.generalSettingsForm.valid&&this.networkForm.valid?this.nodeService.updateNode(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()}):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(Jr),e.Y36(er),e.Y36(ne.qu),e.Y36(qZ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-iou"]],decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","placeholder","NVRAM size",3,"ngModel","ngModelChange"],["label","Network"],["matInput","","formControlName","ethernetAdapters","type","number","placeholder","Ethernet adapters",3,"ngModel","ngModelChange"],["matInput","","formControlName","serialAdapters","type","number","placeholder","Serial adapters",3,"ngModel","ngModelChange"],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card",4),e.YNc(6,Uve,30,11,"mat-tab-group",5),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",6),e.TgZ(8,"button",7),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(9,"Cancel"),e.qZA(),e.TgZ(10,"button",8),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(11,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configurator for node ",i.name,""),e.xp6(5),e.Q6J("ngIf",i.name))},directives:[ri,_i,At.O5,ti,An,ko.SP,ko.uX,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,fi.gD,ne.On,At.sg,Lo,ne.wV,Hn.R9,un.ey],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),n}(),Vve=function(){function n(r,t,i,o){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.generalSettingsForm=this.formBuilder.group({name:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.name=t.name})},n.prototype.onSaveClick=function(){var r=this;this.generalSettingsForm.valid?this.nodeService.updateNode(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()}):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(Jr),e.Y36(er),e.Y36(ne.qu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-nat"]],decls:14,vars:3,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card",4),e.TgZ(6,"form",5),e.TgZ(7,"mat-form-field",6),e.TgZ(8,"input",7),e.NdJ("ngModelChange",function(a){return i.node.name=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e.TgZ(10,"button",9),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(11,"Cancel"),e.qZA(),e.TgZ(12,"button",10),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(13,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configurator for node ",i.name,""),e.xp6(5),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.node.name))},directives:[ri,_i,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,ti,An],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),n}();function qve(n,r){if(1&n&&(e.TgZ(0,"mat-option",16),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function jve(n,r){if(1&n&&(e.TgZ(0,"mat-option",16),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function zve(n,r){if(1&n&&(e.TgZ(0,"mat-option",16),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.value),e.xp6(1),e.hij(" ",t.name," ")}}function Wve(n,r){if(1&n&&(e.TgZ(0,"mat-option",16),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Gve(n,r){if(1&n&&(e.TgZ(0,"mat-option",16),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.value),e.xp6(1),e.hij(" ",t.name," ")}}function Yve(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div"),e._uU(1," Size options "),e.TgZ(2,"mat-form-field",6),e.TgZ(3,"mat-select",8),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuImg.preallocation=a}),e.YNc(4,jve,2,2,"mat-option",9),e.qZA(),e.qZA(),e.TgZ(5,"mat-form-field",6),e.TgZ(6,"mat-select",17),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuImg.cluster_size=a}),e.YNc(7,zve,2,2,"mat-option",9),e.qZA(),e.qZA(),e._uU(8," Refcounts "),e.TgZ(9,"mat-form-field",6),e.TgZ(10,"mat-select",18),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuImg.lazy_refcounts=a}),e.YNc(11,Wve,2,2,"mat-option",9),e.qZA(),e.qZA(),e.TgZ(12,"mat-form-field",6),e.TgZ(13,"mat-select",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuImg.refcount_bits=a}),e.YNc(14,Gve,2,2,"mat-option",9),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(3),e.Q6J("ngModel",i.qemuImg.preallocation),e.xp6(1),e.Q6J("ngForOf",i.preallocationsOptions),e.xp6(2),e.Q6J("ngModel",i.qemuImg.cluster_size),e.xp6(1),e.Q6J("ngForOf",i.clusterSizeOptions),e.xp6(3),e.Q6J("ngModel",i.qemuImg.lazy_refcounts),e.xp6(1),e.Q6J("ngForOf",i.lazyRefcountsOptions),e.xp6(2),e.Q6J("ngModel",i.qemuImg.refcount_bits),e.xp6(1),e.Q6J("ngForOf",i.clusterSizeOptions)}}function Jve(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"mat-radio-group",20),e.TgZ(2,"mat-radio-button",21),e.NdJ("click",function(){return e.CHM(t),e.oxw().setSubformat("dynamic")}),e._uU(3,"Dynamic"),e.qZA(),e.TgZ(4,"mat-radio-button",22),e.NdJ("click",function(){return e.CHM(t),e.oxw().setSubformat("fixed")}),e._uU(5,"Fixed"),e.qZA(),e.qZA(),e.qZA()}}function Qve(n,r){if(1&n&&(e.TgZ(0,"mat-option",16),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Kve(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div"),e._uU(1," Adapter type"),e._UZ(2,"br"),e.TgZ(3,"mat-radio-group",23),e.TgZ(4,"mat-radio-button",21),e.NdJ("click",function(){return e.CHM(t),e.oxw().setAdapterType("ide")}),e._uU(5,"IDE"),e.qZA(),e.TgZ(6,"mat-radio-button",22),e.NdJ("click",function(){return e.CHM(t),e.oxw().setAdapterType("lsilogic")}),e._uU(7,"LSI Logic"),e.qZA(),e.TgZ(8,"mat-radio-button",24),e.NdJ("click",function(){return e.CHM(t),e.oxw().setAdapterType("buslogic")}),e._uU(9,"BusLogic"),e.qZA(),e.TgZ(10,"mat-radio-button",25),e.NdJ("click",function(){return e.CHM(t),e.oxw().setAdapterType("legacyESX")}),e._uU(11,"Legacy (ESX)"),e.qZA(),e.qZA(),e._UZ(12,"br"),e._UZ(13,"br"),e._uU(14," Image file sizing mode"),e._UZ(15,"br"),e.TgZ(16,"mat-radio-group",20),e.TgZ(17,"mat-radio-button",21),e.NdJ("click",function(){return e.CHM(t),e.oxw().setSubformat("streamOptimized")}),e._uU(18,"Stream optimized"),e.qZA(),e.TgZ(19,"mat-radio-button",22),e.NdJ("click",function(){return e.CHM(t),e.oxw().setSubformat("twoGbMaxExtentSparse")}),e._uU(20,"Split every 2GB (sparse)"),e.qZA(),e.TgZ(21,"mat-radio-button",24),e.NdJ("click",function(){return e.CHM(t),e.oxw().setSubformat("twoGbMaxExtentFlat")}),e._uU(22,"Split every 2GB (flat)"),e.qZA(),e.TgZ(23,"mat-radio-button",25),e.NdJ("click",function(){return e.CHM(t),e.oxw().setSubformat("monolithicSparse")}),e._uU(24,"Monolithic sparse"),e.qZA(),e.TgZ(25,"mat-radio-button",26),e.NdJ("click",function(){return e.CHM(t),e.oxw().setSubformat("monolithicFlat")}),e._uU(26,"Monolithic flat"),e.qZA(),e.qZA(),e._UZ(27,"br"),e._UZ(28,"br"),e.TgZ(29,"mat-select",27),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuImg.zeroed_grain=a}),e.YNc(30,Qve,2,2,"mat-option",9),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(29),e.Q6J("ngModel",i.qemuImg.zeroed_grain),e.xp6(1),e.Q6J("ngForOf",i.zeroedGrainOptions)}}var Xve=function(){function n(r,t,i,o,a){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.qemuService=a,this.formatOptions=["qcow2","qcow","vhd","vdi","vmdk","raw"],this.preallocationsOptions=["off","metadata","falloc","full"],this.clusterSizeOptions=[{name:"512",value:512},{name:"1k",value:1024},{name:"2k",value:2048},{name:"4k",value:4096},{name:"8k",value:8192},{name:"16k",value:16384},{name:"32k",value:32768},{name:"64k",value:65536},{name:"128k",value:131072},{name:"256k",value:262144},{name:"512k",value:524288},{name:"1024k",value:1048576},{name:"2048k",value:2097152}],this.lazyRefcountsOptions=["off","on"],this.refcountBitsOptions=[1,2,4,8,16,32,64],this.zeroedGrainOptions=["on","off"],this.inputForm=this.formBuilder.group({qemu_img:new ne.NI("",ne.kI.required),path:new ne.NI("",ne.kI.required),size:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){this.qemuImg={}},n.prototype.setSubformat=function(r){this.qemuImg.subformat=r},n.prototype.onSaveClick=function(){var r=this;this.inputForm.valid&&this.qemuImg.format?this.qemuService.addImage(this.server,this.qemuImg).subscribe(function(){r.dialogRef.close()}):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(Jr),e.Y36(er),e.Y36(ne.qu),e.Y36(vp))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-qemu-image-creator"]],decls:25,vars:10,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","qemu_img","placeholder","Qemu image path",3,"ngModel","ngModelChange"],["placeholder","Image format",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["matInput","","type","text","formControlName","path","placeholder","File location",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","size","placeholder","Disk size",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"],["placeholder","Cluster size",3,"ngModel","ngModelChange"],["placeholder","Lazy refcounts",3,"ngModel","ngModelChange"],["placeholder","Refcount entry size",3,"ngModel","ngModelChange"],["aria-label","Image file sizing mode",1,"radio-selection"],["value","1","checked","",3,"click"],["value","2",3,"click"],["aria-label","Adapter type",1,"radio-selection"],["value","3",3,"click"],["value","4",3,"click"],["value","5",3,"click"],["placeholder","Zeroed grain",3,"ngModel","ngModelChange"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Qemu image configurator"),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card",4),e.TgZ(6,"form",5),e.TgZ(7,"mat-form-field",6),e.TgZ(8,"input",7),e.NdJ("ngModelChange",function(a){return i.qemuImg.qemu_img=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"mat-form-field",6),e.TgZ(10,"mat-select",8),e.NdJ("ngModelChange",function(a){return i.qemuImg.format=a}),e.YNc(11,qve,2,2,"mat-option",9),e.qZA(),e.qZA(),e.YNc(12,Yve,15,8,"div",10),e.YNc(13,Jve,6,0,"div",10),e.YNc(14,Kve,31,2,"div",10),e.TgZ(15,"form",5),e.TgZ(16,"mat-form-field",6),e.TgZ(17,"input",11),e.NdJ("ngModelChange",function(a){return i.qemuImg.path=a}),e.qZA(),e.qZA(),e.TgZ(18,"mat-form-field",6),e.TgZ(19,"input",12),e.NdJ("ngModelChange",function(a){return i.qemuImg.size=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",13),e.TgZ(21,"button",14),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(22,"Cancel"),e.qZA(),e.TgZ(23,"button",15),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(24,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("formGroup",i.inputForm),e.xp6(2),e.Q6J("ngModel",i.qemuImg.qemu_img),e.xp6(2),e.Q6J("ngModel",i.qemuImg.format),e.xp6(1),e.Q6J("ngForOf",i.formatOptions),e.xp6(1),e.Q6J("ngIf","qcow2"===i.qemuImg.format),e.xp6(1),e.Q6J("ngIf","vhd"===i.qemuImg.format||"vdi"===i.qemuImg.format),e.xp6(1),e.Q6J("ngIf","vmdk"===i.qemuImg.format),e.xp6(1),e.Q6J("formGroup",i.inputForm),e.xp6(2),e.Q6J("ngModel",i.qemuImg.path),e.xp6(2),e.Q6J("ngModel",i.qemuImg.size))},directives:[ri,_i,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,fi.gD,ne.On,At.sg,At.O5,ne.wV,ti,An,un.ey,vl,gl],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),n}(),$ve=["customAdapters"];function ege(n,r){if(1&n&&(e.TgZ(0,"mat-option",49),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.path),e.xp6(1),e.hij(" ",t.path," ")}}function tge(n,r){if(1&n&&(e.TgZ(0,"mat-option",49),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function nge(n,r){if(1&n&&(e.TgZ(0,"mat-option",49),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function rge(n,r){if(1&n&&(e.TgZ(0,"mat-option",49),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function ige(n,r){if(1&n&&(e.TgZ(0,"mat-option",49),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.filename),e.xp6(1),e.hij(" ",t.filename," ")}}function oge(n,r){if(1&n&&(e.TgZ(0,"mat-option",49),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function age(n,r){if(1&n&&(e.TgZ(0,"mat-option",49),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.filename),e.xp6(1),e.hij(" ",t.filename," ")}}function sge(n,r){if(1&n&&(e.TgZ(0,"mat-option",49),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function lge(n,r){if(1&n&&(e.TgZ(0,"mat-option",49),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.filename),e.xp6(1),e.hij(" ",t.filename," ")}}function uge(n,r){if(1&n&&(e.TgZ(0,"mat-option",49),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function cge(n,r){if(1&n&&(e.TgZ(0,"mat-option",49),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.filename),e.xp6(1),e.hij(" ",t.filename," ")}}function dge(n,r){if(1&n&&(e.TgZ(0,"mat-option",49),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function pge(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-form-field",11),e.TgZ(1,"input",50),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).node.properties.cpu_throttling=a}),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(1),e.Q6J("ngModel",i.node.properties.cpu_throttling)}}function fge(n,r){if(1&n&&(e.TgZ(0,"mat-option",49),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function hge(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-tab-group"),e.TgZ(1,"mat-tab",9),e._UZ(2,"br"),e.TgZ(3,"form",10),e.TgZ(4,"mat-form-field",11),e.TgZ(5,"input",12),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.name=a}),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",11),e.TgZ(7,"input",13),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.ram=a}),e.qZA(),e.TgZ(8,"span",14),e._uU(9,"MB"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"mat-form-field",11),e.TgZ(11,"input",15),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.cpus=a}),e.qZA(),e.qZA(),e.TgZ(12,"mat-form-field",11),e.TgZ(13,"mat-select",16),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.qemu_path=a}),e.YNc(14,ege,2,2,"mat-option",17),e.qZA(),e.qZA(),e.TgZ(15,"mat-form-field",11),e.TgZ(16,"mat-select",18),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.boot_priority=a}),e.YNc(17,tge,2,2,"mat-option",17),e.qZA(),e.qZA(),e.TgZ(18,"mat-form-field",11),e.TgZ(19,"mat-select",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.on_close=a}),e.YNc(20,nge,2,2,"mat-option",17),e.qZA(),e.qZA(),e.TgZ(21,"mat-form-field",20),e.TgZ(22,"mat-select",21),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.console_type=a}),e.YNc(23,rge,2,2,"mat-option",17),e.qZA(),e.qZA(),e.TgZ(24,"mat-checkbox",22),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.console_auto_start=a}),e._uU(25," Auto start console "),e.qZA(),e.qZA(),e.TgZ(26,"mat-tab",23),e.TgZ(27,"mat-card"),e.TgZ(28,"button",24),e.NdJ("click",function(){return e.CHM(t),e.oxw().openQemuImageCreator()}),e._uU(29," Create Qemu image "),e.qZA(),e._UZ(30,"mat-card-title"),e.TgZ(31,"mat-card-subtitle"),e._uU(32," HDA (Primary Master) "),e.qZA(),e.TgZ(33,"mat-card-content"),e.TgZ(34,"mat-select",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.hda_disk_image=a}),e.YNc(35,ige,2,2,"mat-option",17),e.qZA(),e.TgZ(36,"mat-form-field",11),e.TgZ(37,"mat-select",26),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.hda_disk_interface=a}),e.YNc(38,oge,2,2,"mat-option",17),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(39,"mat-card"),e._UZ(40,"mat-card-title"),e.TgZ(41,"mat-card-subtitle"),e._uU(42," HDB (Primary Slave) "),e.qZA(),e.TgZ(43,"mat-card-content"),e.TgZ(44,"mat-select",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.hdb_disk_image=a}),e.YNc(45,age,2,2,"mat-option",17),e.qZA(),e.TgZ(46,"mat-form-field",11),e.TgZ(47,"mat-select",26),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.hdb_disk_interface=a}),e.YNc(48,sge,2,2,"mat-option",17),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(49,"mat-card"),e._UZ(50,"mat-card-title"),e.TgZ(51,"mat-card-subtitle"),e._uU(52," HDC (Secondary Master) "),e.qZA(),e.TgZ(53,"mat-card-content"),e.TgZ(54,"mat-select",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.hdc_disk_image=a}),e.YNc(55,lge,2,2,"mat-option",17),e.qZA(),e.TgZ(56,"mat-form-field",11),e.TgZ(57,"mat-select",26),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.hdc_disk_interface=a}),e.YNc(58,uge,2,2,"mat-option",17),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(59,"mat-card"),e._UZ(60,"mat-card-title"),e.TgZ(61,"mat-card-subtitle"),e._uU(62," HDD (Secondary Slave) "),e.qZA(),e.TgZ(63,"mat-card-content"),e.TgZ(64,"mat-select",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.hdd_disk_image=a}),e.YNc(65,cge,2,2,"mat-option",17),e.qZA(),e.TgZ(66,"mat-form-field",11),e.TgZ(67,"mat-select",26),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.hdd_disk_interface=a}),e.YNc(68,dge,2,2,"mat-option",17),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(69,"mat-tab",27),e.TgZ(70,"div"),e.TgZ(71,"button",28),e.NdJ("click",function(){return e.CHM(t),e.MAs(74).click()}),e._uU(72,"Browse"),e.qZA(),e.TgZ(73,"input",29,30),e.NdJ("change",function(a){return e.CHM(t),e.oxw().uploadCdromImageFile(a)}),e.qZA(),e.TgZ(75,"mat-form-field",31),e.TgZ(76,"input",32),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.cdrom_image=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(77,"mat-tab",33),e._UZ(78,"br"),e.TgZ(79,"mat-checkbox",22),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.legacy_networking=a}),e._uU(80," Use the legacy networking mode "),e.qZA(),e._UZ(81,"br"),e.TgZ(82,"mat-checkbox",22),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.replicate_network_connection_state=a}),e._uU(83," Replicate network connection state "),e.qZA(),e._UZ(84,"app-custom-adapters-table",34,35),e.qZA(),e.TgZ(86,"mat-tab",36),e.TgZ(87,"mat-card"),e._UZ(88,"mat-card-title"),e.TgZ(89,"mat-card-subtitle"),e._uU(90," Linux boot specific settings "),e.qZA(),e.TgZ(91,"mat-card-content"),e.TgZ(92,"div"),e.TgZ(93,"button",28),e.NdJ("click",function(){return e.CHM(t),e.MAs(96).click()}),e._uU(94," Browse "),e.qZA(),e.TgZ(95,"input",29,37),e.NdJ("change",function(a){return e.CHM(t),e.oxw().uploadInitrdFile(a)}),e.qZA(),e.TgZ(97,"mat-form-field",31),e.TgZ(98,"input",38),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.initrd=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(99,"div"),e.TgZ(100,"button",28),e.NdJ("click",function(){return e.CHM(t),e.oxw().filekerenelimage.click()}),e._uU(101," Browse "),e.qZA(),e.TgZ(102,"input",29,39),e.NdJ("change",function(a){return e.CHM(t),e.oxw().uploadKernelImageFile(a)}),e.qZA(),e.TgZ(104,"mat-form-field",31),e.TgZ(105,"input",40),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.kernel_image=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(106,"mat-form-field",11),e.TgZ(107,"input",41),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.kernel_command_line=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(108,"mat-card"),e._UZ(109,"mat-card-title"),e.TgZ(110,"mat-card-subtitle"),e._uU(111," Bios "),e.qZA(),e.TgZ(112,"mat-card-content"),e.TgZ(113,"div"),e.TgZ(114,"button",28),e.NdJ("click",function(){return e.CHM(t),e.MAs(117).click()}),e._uU(115," Browse "),e.qZA(),e.TgZ(116,"input",29,42),e.NdJ("change",function(a){return e.CHM(t),e.oxw().uploadBiosFile(a)}),e.qZA(),e.TgZ(118,"mat-form-field",31),e.TgZ(119,"input",43),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.bios_image=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(120,"mat-card"),e._UZ(121,"mat-card-title"),e.TgZ(122,"mat-card-subtitle"),e._uU(123," Optimization "),e.qZA(),e.TgZ(124,"mat-card-content"),e.TgZ(125,"mat-checkbox",22),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().activateCpuThrottling=a}),e._uU(126," Activate CPU throttling "),e.qZA(),e.YNc(127,pge,2,1,"mat-form-field",44),e.TgZ(128,"mat-form-field",11),e.TgZ(129,"mat-select",45),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.process_priority=a}),e.YNc(130,fge,2,2,"mat-option",17),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(131,"mat-card"),e._UZ(132,"mat-card-title"),e.TgZ(133,"mat-card-subtitle"),e._uU(134," Additional settings "),e.qZA(),e.TgZ(135,"mat-card-content"),e.TgZ(136,"mat-form-field",11),e.TgZ(137,"input",46),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.options=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(138,"mat-tab",47),e.TgZ(139,"mat-form-field",11),e.TgZ(140,"textarea",48),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.usage=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(3),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.node.name),e.xp6(2),e.Q6J("ngModel",i.node.properties.ram),e.xp6(4),e.Q6J("ngModel",i.node.properties.cpus),e.xp6(2),e.Q6J("ngModel",i.node.properties.qemu_path),e.xp6(1),e.Q6J("ngForOf",i.binaries),e.xp6(2),e.Q6J("ngModel",i.node.properties.boot_priority),e.xp6(1),e.Q6J("ngForOf",i.bootPriorities),e.xp6(2),e.Q6J("ngModel",i.node.properties.on_close),e.xp6(1),e.Q6J("ngForOf",i.onCloseOptions),e.xp6(2),e.Q6J("ngModel",i.node.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModel",i.node.properties.console_auto_start),e.xp6(10),e.Q6J("ngModel",i.node.properties.hda_disk_image),e.xp6(1),e.Q6J("ngForOf",i.qemuImages),e.xp6(2),e.Q6J("ngModel",i.node.properties.hda_disk_interface),e.xp6(1),e.Q6J("ngForOf",i.diskInterfaces),e.xp6(6),e.Q6J("ngModel",i.node.properties.hdb_disk_image),e.xp6(1),e.Q6J("ngForOf",i.qemuImages),e.xp6(2),e.Q6J("ngModel",i.node.properties.hdb_disk_interface),e.xp6(1),e.Q6J("ngForOf",i.diskInterfaces),e.xp6(6),e.Q6J("ngModel",i.node.properties.hdc_disk_image),e.xp6(1),e.Q6J("ngForOf",i.qemuImages),e.xp6(2),e.Q6J("ngModel",i.node.properties.hdc_disk_interface),e.xp6(1),e.Q6J("ngForOf",i.diskInterfaces),e.xp6(6),e.Q6J("ngModel",i.node.properties.hdd_disk_image),e.xp6(1),e.Q6J("ngForOf",i.qemuImages),e.xp6(2),e.Q6J("ngModel",i.node.properties.hdd_disk_interface),e.xp6(1),e.Q6J("ngForOf",i.diskInterfaces),e.xp6(8),e.Q6J("ngModel",i.node.properties.cdrom_image),e.xp6(3),e.Q6J("ngModel",i.node.properties.legacy_networking),e.xp6(3),e.Q6J("ngModel",i.node.properties.replicate_network_connection_state),e.xp6(2),e.Q6J("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.node.ports),e.xp6(14),e.Q6J("ngModel",i.node.properties.initrd),e.xp6(7),e.Q6J("ngModel",i.node.properties.kernel_image),e.xp6(2),e.Q6J("ngModel",i.node.properties.kernel_command_line),e.xp6(12),e.Q6J("ngModel",i.node.properties.bios_image),e.xp6(6),e.Q6J("ngModel",i.activateCpuThrottling),e.xp6(2),e.Q6J("ngIf",i.activateCpuThrottling),e.xp6(2),e.Q6J("ngModel",i.node.properties.process_priority),e.xp6(1),e.Q6J("ngForOf",i.priorities),e.xp6(7),e.Q6J("ngModel",i.node.properties.options),e.xp6(3),e.Q6J("ngModel",i.node.properties.usage)}}var mge=function(){function n(r,t,i,o,a,s,u){this.dialog=r,this.dialogRef=t,this.nodeService=i,this.toasterService=o,this.formBuilder=a,this.qemuService=s,this.qemuConfigurationService=u,this.consoleTypes=[],this.binaries=[],this.onCloseOptions=[],this.bootPriorities=[],this.diskInterfaces=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.qemuImages=[],this.conf={autoFocus:!1,width:"800px",disableClose:!0},this.generalSettingsForm=this.formBuilder.group({name:new ne.NI("",ne.kI.required),ram:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.name=t.name,r.getConfiguration()}),this.qemuService.getBinaries(this.server).subscribe(function(t){r.binaries=t}),this.qemuService.getImages(this.server).subscribe(function(t){r.qemuImages=t})},n.prototype.openQemuImageCreator=function(){this.dialogRefQemuImageCreator=this.dialog.open(Xve,this.conf),this.dialogRefQemuImageCreator.componentInstance.server=this.server},n.prototype.uploadCdromImageFile=function(r){this.node.properties.cdrom_image=r.target.files[0].name},n.prototype.uploadInitrdFile=function(r){this.node.properties.initrd=r.target.files[0].name},n.prototype.uploadKernelImageFile=function(r){this.node.properties.kernel_image=r.target.files[0].name},n.prototype.uploadBiosFile=function(r){this.node.properties.bios_image=r.target.files[0].name},n.prototype.getConfiguration=function(){var r=this;this.consoleTypes=this.qemuConfigurationService.getConsoleTypes(),this.onCloseOptions=this.qemuConfigurationService.getOnCloseOptions(),this.qemuConfigurationService.getNetworkTypes().forEach(function(t){r.networkTypes.push(t)}),this.bootPriorities=this.qemuConfigurationService.getBootPriorities(),this.diskInterfaces=this.qemuConfigurationService.getDiskInterfaces()},n.prototype.onSaveClick=function(){var r=this;this.generalSettingsForm.valid?(this.node.custom_adapters=[],this.customAdapters.adapters.forEach(function(t){r.node.custom_adapters.push({adapter_number:t.adapter_number,adapter_type:t.adapter_type})}),this.node.properties.adapters=this.node.custom_adapters.length,this.nodeService.updateNodeWithCustomAdapters(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()})):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(no),e.Y36(Vr),e.Y36(Jr),e.Y36(er),e.Y36(ne.qu),e.Y36(vp),e.Y36(y2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-qemu"]],viewQuery:function(t,i){var o;(1&t&&e.Gf($ve,5),2&t)&&(e.iGM(o=e.CRH())&&(i.customAdapters=o.first))},decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","ram","placeholder","RAM",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","placeholder","vCPUs",3,"ngModel","ngModelChange"],["placeholder","Qemu binary",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Boot priority",3,"ngModel","ngModelChange"],["placeholder","On close",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["label","HDD"],["mat-raised-button","","color","primary",1,"create-button",3,"click"],["placeholder","Disk image",3,"ngModel","ngModelChange"],["placeholder","Disk interface",3,"ngModel","ngModelChange"],["label","CD/DVD"],["mat-raised-button","","color","primary",1,"file-button",3,"click"],["type","file",1,"nonvisible",3,"change"],["filecdrom",""],[1,"file-name-form-field"],["matInput","","type","text","placeholder","Image",3,"ngModel","ngModelChange"],["label","Network"],[3,"networkTypes","displayedColumns","adapters"],["customAdapters",""],["label","Advanced"],["fileinitrd",""],["matInput","","type","text","placeholder","Initial RAM disk (initrd)",3,"ngModel","ngModelChange"],["filekernelimage",""],["matInput","","type","text","placeholder","Kernel image",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Kernel command line",3,"ngModel","ngModelChange"],["filebios",""],["matInput","","type","text","placeholder","Bios image",3,"ngModel","ngModelChange"],["class","form-field",4,"ngIf"],["placeholder","Process priority",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Options",3,"ngModel","ngModelChange"],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"],["matInput","","type","number","placeholder","Perecentage of CPU allowed",3,"ngModel","ngModelChange"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card",4),e.YNc(6,hge,141,45,"mat-tab-group",5),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",6),e.TgZ(8,"button",7),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(9,"Cancel"),e.qZA(),e.TgZ(10,"button",8),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(11,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configurator for node ",i.name,""),e.xp6(5),e.Q6J("ngIf",i.name))},directives:[ri,_i,At.O5,ti,An,ko.SP,ko.uX,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,ne.wV,Hn.R9,ne.On,fi.gD,At.sg,Lo,fq,hq,DZ,b2,un.ey],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),n}();function vge(n,r){1&n&&(e.TgZ(0,"th",24),e._uU(1,"Port : DLCI"),e.qZA())}function gge(n,r){if(1&n&&(e.TgZ(0,"td",25),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.portIn)}}function _ge(n,r){1&n&&(e.TgZ(0,"th",24),e._uU(1,"Port : DLCI"),e.qZA())}function yge(n,r){if(1&n&&(e.TgZ(0,"td",25),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.portOut)}}function bge(n,r){1&n&&(e.TgZ(0,"th",24),e._uU(1,"Actions"),e.qZA())}function Cge(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"td",25),e.TgZ(1,"button",26),e.NdJ("click",function(){var a=e.CHM(t).$implicit;return e.oxw(2).delete(a)}),e.TgZ(2,"mat-icon",27),e._uU(3,"delete"),e.qZA(),e.qZA(),e.qZA()}}function Sge(n,r){1&n&&e._UZ(0,"tr",28)}function Tge(n,r){1&n&&e._UZ(0,"tr",29)}function xge(n,r){if(1&n&&(e.TgZ(0,"table",16),e.ynx(1,17),e.YNc(2,vge,2,0,"th",18),e.YNc(3,gge,2,1,"td",19),e.BQk(),e.ynx(4,20),e.YNc(5,_ge,2,0,"th",18),e.YNc(6,yge,2,1,"td",19),e.BQk(),e.ynx(7,21),e.YNc(8,bge,2,0,"th",18),e.YNc(9,Cge,4,0,"td",19),e.BQk(),e.YNc(10,Sge,1,0,"tr",22),e.YNc(11,Tge,1,0,"tr",23),e.qZA()),2&n){var t=e.oxw();e.Q6J("dataSource",t.nodeMappingsDataSource),e.xp6(10),e.Q6J("matHeaderRowDef",t.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns)}}var wge=function(){function n(r,t,i,o){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.consoleTypes=[],this.nodeMappings=new Map,this.nodeMappingsDataSource=[],this.dataSource=[],this.displayedColumns=["portIn","portOut","actions"],this.sourcePort="",this.sourceDlci="",this.destinationPort="",this.destinationDlci="",this.nameForm=this.formBuilder.group({name:new ne.NI("",ne.kI.required)}),this.inputForm=this.formBuilder.group({sourcePort:new ne.NI("",ne.kI.required),sourceDlci:new ne.NI("",ne.kI.required),destinationPort:new ne.NI("",ne.kI.required),destinationDlci:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.name=t.name;var i=t.properties.mappings;Object.keys(i).forEach(function(o){r.nodeMappings.set(o,i[o])}),r.nodeMappings.forEach(function(o,a){r.nodeMappingsDataSource.push({portIn:a,portOut:o})})})},n.prototype.delete=function(r){this.nodeMappingsDataSource=this.nodeMappingsDataSource.filter(function(t){return t!==r})},n.prototype.add=function(){if(this.inputForm.valid){var r={portIn:this.sourcePort+":"+this.sourceDlci,portOut:this.destinationPort+":"+this.destinationDlci};this.nodeMappingsDataSource.filter(function(t){return t.portIn===r.portIn}).length>0?this.toasterService.error("Mapping already defined."):(this.nodeMappingsDataSource=this.nodeMappingsDataSource.concat([r]),this.clearUserInput())}else this.toasterService.error("Fill all required fields.")},n.prototype.clearUserInput=function(){this.sourcePort="0",this.sourceDlci="0",this.destinationPort="0",this.destinationDlci="0"},n.prototype.strMapToObj=function(r){for(var t=Object.create(null),i=0,o=r;i<o.length;i++){var a=o[i];t[a[0]]=a[1]}return t},n.prototype.onSaveClick=function(){var r=this;this.nameForm.valid?(this.nodeMappings.clear(),this.nodeMappingsDataSource.forEach(function(t){r.nodeMappings.set(t.portIn,t.portOut)}),this.node.properties.mappings=Array.from(this.nodeMappings).reduce(function(t,i){var o;return Object.assign(t,((o={})[i[0]]=i[1],o))},{}),this.nodeService.updateNode(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()})):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(Jr),e.Y36(er),e.Y36(ne.qu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-switch"]],decls:29,vars:9,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],["class","table","mat-table","",3,"dataSource",4,"ngIf"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","sourcePort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","sourceDlci","placeholder","DLCI",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","destinationPort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","destinationDlci","placeholder","DLCI",3,"ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["mat-table","",1,"table",3,"dataSource"],["matColumnDef","portIn"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","portOut"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete port","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete port"],["mat-header-row",""],["mat-row",""]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.YNc(6,xge,12,3,"table",4),e._UZ(7,"br"),e.TgZ(8,"form",5),e.TgZ(9,"mat-form-field",6),e.TgZ(10,"input",7),e.NdJ("ngModelChange",function(a){return i.node.name=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"form",5),e._uU(12," Source "),e.TgZ(13,"mat-form-field",6),e.TgZ(14,"input",8),e.NdJ("ngModelChange",function(a){return i.sourcePort=a}),e.qZA(),e.qZA(),e.TgZ(15,"mat-form-field",6),e.TgZ(16,"input",9),e.NdJ("ngModelChange",function(a){return i.sourceDlci=a}),e.qZA(),e.qZA(),e._uU(17," Destination "),e.TgZ(18,"mat-form-field",6),e.TgZ(19,"input",10),e.NdJ("ngModelChange",function(a){return i.destinationPort=a}),e.qZA(),e.qZA(),e.TgZ(20,"mat-form-field",6),e.TgZ(21,"input",11),e.NdJ("ngModelChange",function(a){return i.destinationDlci=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"button",12),e.NdJ("click",function(){return i.add()}),e._uU(23,"Add"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(24,"div",13),e.TgZ(25,"button",14),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(26,"Cancel"),e.qZA(),e.TgZ(27,"button",15),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(28,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configurator for node ",i.name,""),e.xp6(5),e.Q6J("ngIf",i.nodeMappingsDataSource.length),e.xp6(2),e.Q6J("formGroup",i.nameForm),e.xp6(2),e.Q6J("ngModel",i.node.name),e.xp6(1),e.Q6J("formGroup",i.inputForm),e.xp6(3),e.Q6J("ngModel",i.sourcePort),e.xp6(2),e.Q6J("ngModel",i.sourceDlci),e.xp6(3),e.Q6J("ngModel",i.destinationPort),e.xp6(2),e.Q6J("ngModel",i.destinationDlci))},directives:[ri,_i,At.O5,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,ne.wV,An,ti,$l,fl,pl,dl,eu,tu,hl,ml,Xa,ur,nu,ru],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),kge=function(){function n(r,t,i,o){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.generalSettingsForm=this.formBuilder.group({name:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.name=t.name})},n.prototype.onSaveClick=function(){var r=this;this.generalSettingsForm.valid?this.nodeService.updateNode(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()}):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(Jr),e.Y36(er),e.Y36(ne.qu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-traceng"]],decls:14,vars:3,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card",4),e.TgZ(6,"form",5),e.TgZ(7,"mat-form-field",6),e.TgZ(8,"input",7),e.NdJ("ngModelChange",function(a){return i.node.name=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e.TgZ(10,"button",9),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(11,"Cancel"),e.qZA(),e.TgZ(12,"button",10),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(13,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configurator for node ",i.name,""),e.xp6(5),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.node.name))},directives:[ri,_i,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,ti,An],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),n}(),Ege=["customAdapters"];function Mge(n,r){if(1&n&&(e.TgZ(0,"mat-option",26),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Age(n,r){if(1&n&&(e.TgZ(0,"mat-option",26),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}var vL=function(){return{standalone:!0}};function Dge(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-tab-group"),e.TgZ(1,"mat-tab",9),e._UZ(2,"br"),e.TgZ(3,"form",10),e.TgZ(4,"mat-form-field",11),e.TgZ(5,"input",12),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.name=a}),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",13),e.TgZ(7,"mat-select",14),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.console_type=a}),e.YNc(8,Mge,2,2,"mat-option",15),e.qZA(),e.qZA(),e.TgZ(9,"mat-checkbox",16),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.console_auto_start=a}),e._uU(10," Auto start console "),e.qZA(),e.TgZ(11,"mat-form-field",11),e.TgZ(12,"input",17),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.ram=a}),e.qZA(),e.TgZ(13,"span",18),e._uU(14,"MB"),e.qZA(),e.qZA(),e.TgZ(15,"mat-form-field",11),e.TgZ(16,"mat-select",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.on_close=a}),e.YNc(17,Age,2,2,"mat-option",15),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"mat-checkbox",20),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.headless=a}),e._uU(19," Start VM in headless mode "),e.qZA(),e.qZA(),e.TgZ(20,"mat-tab",21),e._UZ(21,"br"),e.TgZ(22,"mat-checkbox",20),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.use_any_adapter=a}),e._uU(23," Allow GNS3 to use any configured VirtualBox adapter "),e.qZA(),e._UZ(24,"app-custom-adapters-table",22,23),e.qZA(),e.TgZ(26,"mat-tab",24),e.TgZ(27,"mat-form-field",11),e.TgZ(28,"textarea",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.usage=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(3),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.node.name),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(17,vL))("ngModel",i.node.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(18,vL))("ngModel",i.node.console_auto_start),e.xp6(3),e.Q6J("ngModel",i.node.properties.ram),e.xp6(4),e.Q6J("ngModelOptions",e.DdM(19,vL))("ngModel",i.node.properties.on_close),e.xp6(1),e.Q6J("ngForOf",i.onCloseOptions),e.xp6(1),e.Q6J("ngModel",i.node.properties.headless),e.xp6(4),e.Q6J("ngModel",i.node.properties.use_any_adapter),e.xp6(2),e.Q6J("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.node.ports),e.xp6(4),e.Q6J("ngModel",i.node.properties.usage)}}var Oge=function(){function n(r,t,i,o,a){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.virtualBoxConfigurationService=a,this.consoleTypes=[],this.onCloseOptions=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new ne.NI("",ne.kI.required),ram:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.name=t.name,r.getConfiguration()})},n.prototype.getConfiguration=function(){this.consoleTypes=this.virtualBoxConfigurationService.getConsoleTypes(),this.onCloseOptions=this.virtualBoxConfigurationService.getOnCloseoptions(),this.networkTypes=this.virtualBoxConfigurationService.getNetworkTypes()},n.prototype.onSaveClick=function(){var r=this;this.generalSettingsForm.valid?(this.node.custom_adapters=[],this.customAdapters.adapters.forEach(function(t){r.node.custom_adapters.push({adapter_number:t.adapter_number,adapter_type:t.adapter_type})}),this.node.properties.adapters=this.node.custom_adapters.length,this.nodeService.updateNodeWithCustomAdapters(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()})):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(Jr),e.Y36(er),e.Y36(ne.qu),e.Y36(GZ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-virtualbox"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(Ege,5),2&t)&&(e.iGM(o=e.CRH())&&(i.customAdapters=o.first))},decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","name","type","text","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","formControlName","ram","type","number","placeholder","RAM",3,"ngModel","ngModelChange"],["matSuffix",""],["placeholder","On close",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["label","Network"],[3,"networkTypes","displayedColumns","adapters"],["customAdapters",""],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card",4),e.YNc(6,Dge,29,20,"mat-tab-group",5),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",6),e.TgZ(8,"button",7),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(9,"Cancel"),e.qZA(),e.TgZ(10,"button",8),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(11,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configurator for node ",i.name,""),e.xp6(5),e.Q6J("ngIf",i.name))},directives:[ri,_i,At.O5,ti,An,ko.SP,ko.uX,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,fi.gD,ne.On,At.sg,Lo,ne.wV,Hn.R9,b2,un.ey],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),n}(),Pge=["customAdapters"];function Ige(n,r){if(1&n&&(e.TgZ(0,"mat-option",24),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Rge(n,r){if(1&n&&(e.TgZ(0,"mat-option",24),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}var gL=function(){return{standalone:!0}};function Nge(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-tab-group"),e.TgZ(1,"mat-tab",9),e._UZ(2,"br"),e.TgZ(3,"form",10),e.TgZ(4,"mat-form-field",11),e.TgZ(5,"input",12),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.name=a}),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",13),e.TgZ(7,"mat-select",14),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.console_type=a}),e.YNc(8,Ige,2,2,"mat-option",15),e.qZA(),e.qZA(),e.TgZ(9,"mat-checkbox",16),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.console_auto_start=a}),e._uU(10," Auto start console "),e.qZA(),e.TgZ(11,"mat-form-field",11),e.TgZ(12,"mat-select",17),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.on_close=a}),e.YNc(13,Rge,2,2,"mat-option",15),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"mat-checkbox",18),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.headless=a}),e._uU(15," Start VM in headless mode "),e.qZA(),e._UZ(16,"br"),e.TgZ(17,"mat-checkbox",18),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.linked_clone=a}),e._uU(18," Use a linked base VM (experimental) "),e.qZA(),e.qZA(),e.TgZ(19,"mat-tab",19),e._UZ(20,"br"),e.TgZ(21,"mat-checkbox",18),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.use_any_adapter=a}),e._uU(22," Allow GNS3 to override non custom VMware adapter "),e.qZA(),e._UZ(23,"app-custom-adapters-table",20,21),e.qZA(),e.TgZ(25,"mat-tab",22),e.TgZ(26,"mat-form-field",11),e.TgZ(27,"textarea",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.usage=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(3),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.node.name),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(17,gL))("ngModel",i.node.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(18,gL))("ngModel",i.node.console_auto_start),e.xp6(3),e.Q6J("ngModelOptions",e.DdM(19,gL))("ngModel",i.node.properties.on_close),e.xp6(1),e.Q6J("ngForOf",i.onCloseOptions),e.xp6(1),e.Q6J("ngModel",i.node.properties.headless),e.xp6(3),e.Q6J("ngModel",i.node.properties.linked_clone),e.xp6(4),e.Q6J("ngModel",i.node.properties.use_any_adapter),e.xp6(2),e.Q6J("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.node.ports),e.xp6(4),e.Q6J("ngModel",i.node.properties.usage)}}var Zge=function(){function n(r,t,i,o,a){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.vmwareConfigurationService=a,this.consoleTypes=[],this.onCloseOptions=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.name=t.name,r.getConfiguration()})},n.prototype.getConfiguration=function(){this.consoleTypes=this.vmwareConfigurationService.getConsoleTypes(),this.onCloseOptions=this.vmwareConfigurationService.getOnCloseoptions(),this.networkTypes=this.vmwareConfigurationService.getNetworkTypes()},n.prototype.onSaveClick=function(){var r=this;this.generalSettingsForm.valid?(this.node.custom_adapters=[],this.customAdapters.adapters.forEach(function(t){r.node.custom_adapters.push({adapter_number:t.adapter_number,adapter_type:t.adapter_type})}),this.node.properties.adapters=this.node.custom_adapters.length,this.nodeService.updateNodeWithCustomAdapters(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()})):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(Jr),e.Y36(er),e.Y36(ne.qu),e.Y36(YZ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-vmware"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(Pge,5),2&t)&&(e.iGM(o=e.CRH())&&(i.customAdapters=o.first))},decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","name","type","text","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],["placeholder","On close",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["label","Network"],[3,"networkTypes","displayedColumns","adapters"],["customAdapters",""],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card",4),e.YNc(6,Nge,28,20,"mat-tab-group",5),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",6),e.TgZ(8,"button",7),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(9,"Cancel"),e.qZA(),e.TgZ(10,"button",8),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(11,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configurator for node ",i.name,""),e.xp6(5),e.Q6J("ngIf",i.name))},directives:[ri,_i,At.O5,ti,An,ko.SP,ko.uX,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,fi.gD,ne.On,At.sg,Lo,b2,un.ey],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),n}();function Lge(n,r){if(1&n&&(e.TgZ(0,"mat-option",15),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}var Vj=function(){return{standalone:!0}},Fge=function(){function n(r,t,i,o,a){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.vpcsConfigurationService=a,this.consoleTypes=[],this.inputForm=this.formBuilder.group({name:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.name=t.name,r.getConfiguration()})},n.prototype.getConfiguration=function(){this.consoleTypes=this.vpcsConfigurationService.getConsoleTypes()},n.prototype.onSaveClick=function(){var r=this;this.inputForm.valid?this.nodeService.updateNode(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()}):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(Jr),e.Y36(er),e.Y36(ne.qu),e.Y36(x2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-vpcs"]],decls:19,vars:10,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card",4),e.TgZ(6,"form",5),e.TgZ(7,"mat-form-field",6),e.TgZ(8,"input",7),e.NdJ("ngModelChange",function(a){return i.node.name=a}),e.qZA(),e.qZA(),e.TgZ(9,"mat-form-field",8),e.TgZ(10,"mat-select",9),e.NdJ("ngModelChange",function(a){return i.node.console_type=a}),e.YNc(11,Lge,2,2,"mat-option",10),e.qZA(),e.qZA(),e.TgZ(12,"mat-checkbox",11),e.NdJ("ngModelChange",function(a){return i.node.console_auto_start=a}),e._uU(13," Auto start console "),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"div",12),e.TgZ(15,"button",13),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(16,"Cancel"),e.qZA(),e.TgZ(17,"button",14),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(18,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configurator for node ",i.name,""),e.xp6(5),e.Q6J("formGroup",i.inputForm),e.xp6(2),e.Q6J("ngModel",i.node.name),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(8,Vj))("ngModel",i.node.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(9,Vj))("ngModel",i.node.console_auto_start))},directives:[ri,_i,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,fi.gD,ne.On,At.sg,Lo,ti,An,un.ey],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),n}(),Bge=function(){function n(r){this.dialog=r,this.conf={autoFocus:!1,width:"800px",disableClose:!0}}return n.prototype.configureNode=function(){"vpcs"===this.node.node_type?this.dialogRef=this.dialog.open(Fge,this.conf):"ethernet_hub"===this.node.node_type?this.dialogRef=this.dialog.open(Nve,this.conf):"ethernet_switch"===this.node.node_type?this.dialogRef=this.dialog.open(Ive,this.conf):"cloud"===this.node.node_type?this.dialogRef=this.dialog.open(yve,this.conf):"dynamips"===this.node.node_type?this.dialogRef=this.dialog.open(Fve,this.conf):"iou"===this.node.node_type?this.dialogRef=this.dialog.open(Hve,this.conf):"qemu"===this.node.node_type?this.dialogRef=this.dialog.open(mge,this.conf):"virtualbox"===this.node.node_type?this.dialogRef=this.dialog.open(Oge,this.conf):"vmware"===this.node.node_type?this.dialogRef=this.dialog.open(Zge,this.conf):"docker"===this.node.node_type?this.dialogRef=this.dialog.open(Mve,this.conf):"nat"===this.node.node_type?this.dialogRef=this.dialog.open(Vve,this.conf):"frame_relay_switch"===this.node.node_type?this.dialogRef=this.dialog.open(wge,this.conf):"atm_switch"===this.node.node_type?this.dialogRef=this.dialog.open(Qme,this.conf):"traceng"===this.node.node_type&&(this.dialogRef=this.dialog.open(kge,this.conf));var r=this.dialogRef.componentInstance;r.server=this.server,r.node=this.node},n.\u0275fac=function(t){return new(t||n)(e.Y36(no))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-config-node-action"]],inputs:{server:"server",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.configureNode()}),e.TgZ(1,"mat-icon"),e._uU(2,"settings_applications"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Configure"),e.qZA(),e.qZA())},directives:[Lr,ur],encapsulation:2}),n}();function Uge(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",1),e.NdJ("click",function(){return e.CHM(t),e.oxw().startNodes()}),e.TgZ(1,"mat-icon"),e._uU(2,"play_arrow"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Start"),e.qZA(),e.qZA()}}var Hge=function(){function n(r,t){this.nodeService=r,this.toasterService=t}return n.prototype.ngOnInit=function(){},n.prototype.ngOnChanges=function(r){var t=this;r.nodes&&(this.isNodeWithStoppedStatus=!1,this.nodes.forEach(function(i){("stopped"===i.status||"suspended"===i.status)&&(t.isNodeWithStoppedStatus=!0)}))},n.prototype.startNodes=function(){var r=this;this.nodes.forEach(function(t){r.nodeService.start(r.server,t).subscribe(function(i){},function(i){r.toasterService.error(i.error.message)})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Jr),e.Y36(er))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-start-node-action"]],inputs:{server:"server",nodes:"nodes"},features:[e.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&e.YNc(0,Uge,5,0,"button",0),2&t&&e.Q6J("ngIf",i.isNodeWithStoppedStatus)},directives:[At.O5,Lr,ur],encapsulation:2}),n}();function Vge(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",1),e.NdJ("click",function(){return e.CHM(t),e.oxw().suspendNodes()}),e.TgZ(1,"mat-icon"),e._uU(2,"pause"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Suspend"),e.qZA(),e.qZA()}}var qge=function(){function n(r){this.nodeService=r}return n.prototype.ngOnInit=function(){},n.prototype.ngOnChanges=function(r){var t=this;r.nodes&&(this.isNodeWithStartedStatus=!1,this.nodes.forEach(function(i){"started"===i.status&&(t.isNodeWithStartedStatus=!0)}))},n.prototype.suspendNodes=function(){var r=this;this.nodes.forEach(function(t){r.nodeService.suspend(r.server,t).subscribe(function(i){})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Jr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-suspend-node-action"]],inputs:{server:"server",nodes:"nodes"},features:[e.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&e.YNc(0,Vge,5,0,"button",0),2&t&&e.Q6J("ngIf",i.isNodeWithStartedStatus)},directives:[At.O5,Lr,ur],encapsulation:2}),n}();function jge(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",1),e.NdJ("click",function(){return e.CHM(t),e.oxw().stopNodes()}),e.TgZ(1,"mat-icon"),e._uU(2,"stop"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Stop"),e.qZA(),e.qZA()}}var zge=function(){function n(r){this.nodeService=r}return n.prototype.ngOnInit=function(){},n.prototype.ngOnChanges=function(r){var t=this;r.nodes&&(this.isNodeWithStartedStatus=!1,this.nodes.forEach(function(i){"started"===i.status&&(t.isNodeWithStartedStatus=!0)}))},n.prototype.stopNodes=function(){var r=this;this.nodes.forEach(function(t){r.nodeService.stop(r.server,t).subscribe(function(i){})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Jr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-stop-node-action"]],inputs:{server:"server",nodes:"nodes"},features:[e.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&e.YNc(0,jge,5,0,"button",0),2&t&&e.Q6J("ngIf",i.isNodeWithStartedStatus)},directives:[At.O5,Lr,ur],encapsulation:2}),n}();function Wge(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",1),e.NdJ("click",function(){return e.CHM(t),e.oxw().reloadNodes()}),e.TgZ(1,"mat-icon"),e._uU(2,"refresh"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Reload"),e.qZA(),e.qZA()}}var Gge=function(){function n(r){this.nodeService=r,this.filteredNodes=[]}return n.prototype.ngOnInit=function(){var r=this;this.nodes.forEach(function(t){("vpcs"===t.node_type||"qemu"===t.node_type||"virtualbox"===t.node_type||"vmware"===t.node_type)&&r.filteredNodes.push(t)})},n.prototype.reloadNodes=function(){var r=this;this.filteredNodes.forEach(function(t){r.nodeService.reload(r.server,t).subscribe(function(i){})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Jr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-reload-node-action"]],inputs:{server:"server",nodes:"nodes"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&e.YNc(0,Wge,5,0,"button",0),2&t&&e.Q6J("ngIf",i.filteredNodes.length>0)},directives:[At.O5,Lr,ur],encapsulation:2}),n}(),hd=function(){function n(r,t,i){this.router=r,this.toasterService=t,this.mapSettingsService=i,this.nodeConsoleTrigger=new e.vpe,this.closeNodeConsoleTrigger=new Pn.xQ,this.consoleResized=new Pn.xQ,this.openConsoles=0,this.defaultConsoleWidth=720,this.defaultConsoleHeight=408,this.defaultNumberOfColumns=80,this.defaultNumberOfRows=24}return n.prototype.getNumberOfColumns=function(){return this.lastNumberOfColumns},n.prototype.getNumberOfRows=function(){return this.lastNumberOfRows},n.prototype.setNumberOfColumns=function(r){this.lastNumberOfColumns=r},n.prototype.setNumberOfRows=function(r){this.lastNumberOfRows=r},n.prototype.openConsoleForNode=function(r){this.nodeConsoleTrigger.emit(r)},n.prototype.closeConsoleForNode=function(r){this.closeNodeConsoleTrigger.next(r)},n.prototype.resizeTerminal=function(r){this.consoleResized.next(r)},n.prototype.getLineWidth=function(){return this.defaultConsoleWidth/this.defaultNumberOfColumns},n.prototype.getLineHeight=function(){return this.defaultConsoleHeight/this.defaultNumberOfRows},n.prototype.getUrl=function(r,t){var i="ws";return"https:"===r.protocol&&(i="wss"),i+"://"+r.host+":"+r.port+"/v2/projects/"+t.project_id+"/nodes/"+t.node_id+"/console/ws"},n.prototype.openConsolesForAllNodesInWidget=function(r){var t=this,i="Please start the following nodes if you want to open consoles for them: ",o=0;r.forEach(function(a){"started"===a.status?(t.mapSettingsService.logConsoleSubject.next(!0),setTimeout(function(){t.openConsoleForNode(a)},500)):(o++,i+=a.name+" ")}),o>0&&this.toasterService.error(i)},n.prototype.openConsolesForAllNodesInNewTabs=function(r){var t=this,i="Please start the following nodes if you want to open consoles for them: ",o=0;r.forEach(function(a){if("started"===a.status){var s=t.router.url.split("/");window.open("/static/web-ui/"+s[1]+"/"+s[2]+"/"+s[3]+"/"+s[4]+"/nodes/"+a.node_id)}else o++,i+=a.name+" "}),o>0&&this.toasterService.error(i)},n.\u0275fac=function(t){return new(t||n)(e.LFG(Er),e.LFG(er),e.LFG(Ou))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Yge=function(){function n(r){this.nodeConsoleService=r}return n.prototype.ngOnInit=function(){},n.prototype.openConsole=function(){this.nodeConsoleService.openConsolesForAllNodesInWidget(this.nodes)},n.\u0275fac=function(t){return new(t||n)(e.Y36(hd))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-http-console-action"]],inputs:{server:"server",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.openConsole()}),e.TgZ(1,"mat-icon"),e._uU(2,"http"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Web console"),e.qZA(),e.qZA())},directives:[Lr,ur],encapsulation:2}),n}(),Jge=function(){function n(r){this.nodeConsoleService=r}return n.prototype.ngOnInit=function(){},n.prototype.openConsole=function(){this.nodeConsoleService.openConsolesForAllNodesInNewTabs(this.nodes)},n.\u0275fac=function(t){return new(t||n)(e.Y36(hd))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-http-console-new-tab-action"]],inputs:{server:"server",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.openConsole()}),e.TgZ(1,"mat-icon"),e._uU(2,"http"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Web console in new tab"),e.qZA(),e.qZA())},directives:[Lr,ur],encapsulation:2}),n}(),yp=f(10503),Qge=function(){function n(r,t,i,o,a){this.electronService=r,this.serverService=t,this.settingsService=i,this.toasterService=o,this.nodeService=a}return n.prototype.ngOnInit=function(){},n.prototype.console=function(){return(0,Qn.mG)(this,void 0,void 0,function(){var r,i,o,a,s;return(0,Qn.Jh)(this,function(u){switch(u.label){case 0:if(r=this.settingsService.getConsoleSettings()?this.settingsService.getConsoleSettings():this.nodeService.getDefaultCommand(),0===this.nodes.filter(function(p){return"started"===p.status}).length)return this.toasterService.error("Device needs to be started in order to console to it."),[2];i=0,o=this.nodes,u.label=1;case 1:return i<o.length?"started"!==(a=o[i]).status?[3,3]:(s={command:r,type:a.console_type,host:a.console_host,port:a.console,name:a.name,project_id:a.project_id,node_id:a.node_id,server_url:this.serverService.getServerUrl(this.server)},[4,this.openConsole(s)]):[3,4];case 2:u.sent(),u.label=3;case 3:return i++,[3,1];case 4:return[2]}})})},n.prototype.openConsole=function(r){return(0,Qn.mG)(this,void 0,void 0,function(){return(0,Qn.Jh)(this,function(t){switch(t.label){case 0:return[4,this.electronService.remote.require("./console-executor.js").openConsole(r)];case 1:return[2,t.sent()]}})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(hs),e.Y36(Hr),e.Y36(yp.g),e.Y36(er),e.Y36(Jr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-console-device-action"]],inputs:{server:"server",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.console()}),e.TgZ(1,"mat-icon"),e._uU(2,"web_asset"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Console"),e.qZA(),e.qZA())},directives:[Lr,ur],encapsulation:2}),n}(),Kge=function(){function n(r,t){this.toasterService=r,this.nodeService=t}return n.prototype.openConsole=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.startConsole()})},n.prototype.startConsole=function(){if("started"!==this.node.status)this.toasterService.error("This node must be started before a console can be opened");else if(("0.0.0.0"===this.node.console_host||"0:0:0:0:0:0:0:0"===this.node.console_host||"::"===this.node.console_host)&&(this.node.console_host=this.server.host),"telnet"===this.node.console_type||"vnc"===this.node.console_type||"spice"===this.node.console_type)try{location.assign("gns3+"+this.node.console_type+"://"+this.node.console_host+":"+this.node.console+"?name="+this.node.name+"&project_id="+this.node.project_id+"&node_id="+this.node.node_id)}catch(r){this.toasterService.error(r)}else this.toasterService.error("Supported console types: telnet, vnc, spice.")},n.\u0275fac=function(t){return new(t||n)(e.Y36(er),e.Y36(Jr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-console-device-action-browser"]],inputs:{server:"server",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.openConsole()}),e.TgZ(1,"mat-icon"),e._uU(2,"web_asset"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Console"),e.qZA(),e.qZA())},directives:[Lr,ur],encapsulation:2}),n}(),Xge=function(){function n(r){this.electronService=r}return n.prototype.ngOnInit=function(){},n.prototype.open=function(){this.electronService.shell.openPath(this.node.node_directory)},n.\u0275fac=function(t){return new(t||n)(e.Y36(hs))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-open-file-explorer-action"]],inputs:{server:"server",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.open()}),e.TgZ(1,"mat-icon"),e._uU(2,"tab"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Open file explorer"),e.qZA(),e.qZA())},directives:[Lr,ur],encapsulation:2}),n}(),$ge=function(){function n(r,t,i,o){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.inputForm=this.formBuilder.group({name:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.name=r.node.name})},n.prototype.onSaveClick=function(){var r=this;this.inputForm.valid?this.nodeService.updateNode(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()}):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(Jr),e.Y36(er),e.Y36(ne.qu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-change-hostname-dialog-component"]],decls:14,vars:3,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card",4),e.TgZ(6,"form",5),e.TgZ(7,"mat-form-field",6),e.TgZ(8,"input",7),e.NdJ("ngModelChange",function(a){return i.node.name=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e.TgZ(10,"button",9),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(11,"Cancel"),e.qZA(),e.TgZ(12,"button",10),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(13,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Change hostname for node ",i.name,""),e.xp6(5),e.Q6J("formGroup",i.inputForm),e.xp6(2),e.Q6J("ngModel",i.node.name))},directives:[ri,_i,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,ti,An],styles:[".form-field[_ngcontent-%COMP%]{width:100%}"]}),n}(),e_e=function(){function n(r){this.dialog=r}return n.prototype.ngOnInit=function(){},n.prototype.changeHostname=function(){var t=this.dialog.open($ge,{autoFocus:!1,disableClose:!0}).componentInstance;t.server=this.server,t.node=this.node},n.\u0275fac=function(t){return new(t||n)(e.Y36(no))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-change-hostname-action"]],inputs:{server:"server",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.changeHostname()}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Change hostname"),e.qZA(),e.qZA())},directives:[Lr,ur],encapsulation:2}),n}(),t_e=function(){function n(r,t){this.dialogRef=r,this.nodeService=t}return n.prototype.ngOnInit=function(){this.symbol=this.node.symbol},n.prototype.symbolChanged=function(r){this.symbol=r},n.prototype.onCloseClick=function(){this.dialogRef.close()},n.prototype.onSelectClick=function(){var r=this;this.nodeService.updateSymbol(this.server,this.node,this.symbol).subscribe(function(){r.onCloseClick()})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(Jr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-change-symbol-dialog"]],inputs:{server:"server",node:"node"},decls:10,vars:3,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"symbolsWrapper"],[3,"server","symbol","symbolChanged"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"app-symbols",3),e.NdJ("symbolChanged",function(a){return i.symbolChanged(a)}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"button",5),e.NdJ("click",function(){return i.onCloseClick()}),e._uU(7,"Cancel"),e.qZA(),e.TgZ(8,"button",6),e.NdJ("click",function(){return i.onSelectClick()}),e._uU(9,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Change symbol for node: ",i.node.name,""),e.xp6(3),e.Q6J("server",i.server)("symbol",i.symbol))},directives:[ri,Lq,ti,An],styles:[".symbolsWrapper[_ngcontent-%COMP%]{height:350px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),n}(),n_e=function(){function n(r){this.dialog=r}return n.prototype.ngOnInit=function(){},n.prototype.changeSymbol=function(){var t=this.dialog.open(t_e,{width:"1000px",height:"500px",autoFocus:!1,disableClose:!0}).componentInstance;t.server=this.server,t.node=this.node},n.\u0275fac=function(t){return new(t||n)(e.Y36(no))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-change-symbol-action"]],inputs:{server:"server",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.changeSymbol()}),e.TgZ(1,"mat-icon"),e._uU(2,"find_replace"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Change symbol"),e.qZA(),e.qZA())},directives:[Lr,ur],encapsulation:2}),n}(),ks=function(){function n(r,t){this.httpServer=r,this.svgToDrawingConverter=t}return n.prototype.add=function(r,t,i,o,a){return this.httpServer.post(r,"/projects/"+t+"/drawings",{svg:a,x:Math.round(i),y:Math.round(o),z:1})},n.prototype.duplicate=function(r,t,i){return this.httpServer.post(r,"/projects/"+t+"/drawings",{svg:i.svg,rotation:i.rotation,x:i.x+10,y:i.y+10,z:i.z})},n.prototype.updatePosition=function(r,t,i,o,a){var s=Math.round(o),u=Math.round(a);return t.snap_to_grid&&(i.element=this.svgToDrawingConverter.convert(i.svg),s=Math.round((s+i.element.width/2)/t.drawing_grid_size)*t.drawing_grid_size,u=Math.round((u+i.element.width/2)/t.drawing_grid_size)*t.drawing_grid_size,s=Math.round(s-i.element.width/2),u=Math.round(u-i.element.height/2)),this.httpServer.put(r,"/projects/"+i.project_id+"/drawings/"+i.drawing_id,{x:s,y:u})},n.prototype.updateSizeAndPosition=function(r,t,i,o,a){return this.httpServer.put(r,"/projects/"+t.project_id+"/drawings/"+t.drawing_id,{svg:a,x:Math.round(i),y:Math.round(o)})},n.prototype.updateText=function(r,t,i){return this.httpServer.put(r,"/projects/"+t.project_id+"/drawings/"+t.drawing_id,{svg:i,x:Math.round(t.x),y:Math.round(t.y),z:t.z})},n.prototype.update=function(r,t){return this.httpServer.put(r,"/projects/"+t.project_id+"/drawings/"+t.drawing_id,{locked:t.locked,svg:t.svg,rotation:t.rotation,x:Math.round(t.x),y:Math.round(t.y),z:t.z})},n.prototype.delete=function(r,t){return this.httpServer.delete(r,"/projects/"+t.project_id+"/drawings/"+t.drawing_id)},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh),e.LFG(IS))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Es=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Qn.ZT)(r,n),r.prototype.getItemKey=function(t){return t.drawing_id},r.\u0275fac=function(){var t;return function(o){return(t||(t=e.n5z(r)))(o||r)}}(),r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r}(w2.o),r_e=function(){function n(r,t,i,o,a){this.nodeService=r,this.nodesDataSource=t,this.drawingService=i,this.drawingsDataSource=o,this.toasterService=a}return n.prototype.duplicate=function(){for(var r=this,t="",i=0,o=this.nodes;i<o.length;i++){var a=o[i];"stopped"===a.status?this.nodeService.duplicate(this.server,a).subscribe(function(m){r.nodesDataSource.add(m)}):t+=a.name+", "}for(var s=0,u=this.drawings;s<u.length;s++){var p=u[s];this.drawingService.duplicate(this.server,p.project_id,p).subscribe(function(m){r.drawingsDataSource.add(m)})}t.length>0&&(t=t.substring(0,t.length-2),this.toasterService.error("Cannot duplicate node data for nodes: "+t))},n.\u0275fac=function(t){return new(t||n)(e.Y36(Jr),e.Y36(Ea.G),e.Y36(ks),e.Y36(Es),e.Y36(er))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-duplicate-action"]],inputs:{server:"server",project:"project",drawings:"drawings",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.duplicate()}),e.TgZ(1,"mat-icon"),e._uU(2,"filter_none"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Duplicate"),e.qZA(),e.qZA())},directives:[Lr,ur],encapsulation:2}),n}(),cv=function(){function n(){}return n.prototype.convert=function(r){var t="";if(r.element instanceof gp)t='<rect fill="'+r.element.fill+'" fill-opacity="'+r.element.fill_opacity+'" height="'+r.element.height+'" width="'+r.element.width+'" stroke="'+r.element.stroke+'" stroke-width="'+r.element.stroke_width+'" />';else if(r.element instanceof Po)t='<ellipse fill="'+r.element.fill+'" fill-opacity="'+r.element.fill_opacity+'" cx="'+r.element.cx+'" cy="'+r.element.cy+'" rx="'+r.element.rx+'" ry="'+r.element.ry+'" stroke="'+r.element.stroke+'" stroke-width="'+r.element.stroke_width+'" />';else if(r.element instanceof sv)t='<line stroke="'+r.element.stroke+'" stroke-width="'+r.element.stroke_width+'" x1="'+r.element.x1+'" x2="'+r.element.x2+'" y1="'+r.element.y1+'" y2="'+r.element.y2+'" />';else{if(!(r.element instanceof lv))return"";t='<text fill="'+r.element.fill+'" fill-opacity="1.0" font-family="'+r.element.font_family+'" font-size="'+r.element.font_size+'" font-weight="'+r.element.font_weight+'">'+r.element.text+"</text>"}return'<svg height="'+r.element.height+'" width="'+r.element.width+'">'+t+"</svg>"},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),_L=function(){function n(){}return n.prototype.get=function(r){return+r.value>-360&&+r.value<=360?null:{negativeValue:!0}},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),yL=function(){return{standalone:!0}};function i_e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-form-field",3),e.TgZ(1,"input",12),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().element.stroke_dasharray=a}),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(1),e.Q6J("ngModelOptions",e.DdM(2,yL))("ngModel",i.element.stroke_dasharray)}}var o_e=function(){function n(r,t,i,o,a,s,u,p,m){this.dialogRef=r,this.drawingToMapDrawingConverter=t,this.mapDrawingToSvgConverter=i,this.drawingService=o,this.drawingsDataSource=a,this.formBuilder=s,this.toasterService=u,this.nonNegativeValidator=p,this.rotationValidator=m,this.formGroup=this.formBuilder.group({borderWidth:new ne.NI("",[ne.kI.required,p.get]),rotation:new ne.NI("",[ne.kI.required,m.get])})}return n.prototype.ngOnInit=function(){this.element=new a_e,this.drawing.element instanceof gp||this.drawing.element instanceof Po?(this.element.fill=this.drawing.element.fill,this.element.stroke=this.drawing.element.stroke,this.element.stroke_dasharray=this.drawing.element.stroke_dasharray,this.element.stroke_width=this.drawing.element.stroke_width):this.drawing.element instanceof sv&&(this.element.stroke=this.drawing.element.stroke,this.element.stroke_dasharray=this.drawing.element.stroke_dasharray,this.element.stroke_width=this.drawing.element.stroke_width),void 0===this.element.stroke_width&&(this.element.stroke_width=0),this.formGroup.controls.borderWidth.setValue(this.element.stroke_width),this.formGroup.controls.rotation.setValue(this.drawing.rotation)},n.prototype.onNoClick=function(){this.dialogRef.close()},n.prototype.onYesClick=function(){var r=this;if(this.formGroup.valid){this.element.stroke_width=this.formGroup.get("borderWidth").value,this.drawing.rotation=this.formGroup.get("rotation").value,this.drawing.element instanceof gp||this.drawing.element instanceof Po?(this.drawing.element.fill=this.element.fill,this.drawing.element.stroke=this.element.stroke,this.drawing.element.stroke_dasharray=this.element.stroke_dasharray,this.drawing.element.stroke_width=this.element.stroke_width):this.drawing.element instanceof sv&&(this.drawing.element.stroke=this.element.stroke,this.drawing.element.stroke_dasharray=this.element.stroke_dasharray,this.drawing.element.stroke_width=this.element.stroke_width);var t=this.drawingToMapDrawingConverter.convert(this.drawing);t.element=this.drawing.element,this.drawing.svg=this.mapDrawingToSvgConverter.convert(t),this.drawingService.update(this.server,this.drawing).subscribe(function(i){r.drawingsDataSource.update(i),r.dialogRef.close()})}else this.toasterService.error("Entered data is incorrect")},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(E2),e.Y36(cv),e.Y36(ks),e.Y36(Es),e.Y36(ne.qu),e.Y36(er),e.Y36(L2),e.Y36(_L))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-style-editor"]],decls:18,vars:8,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[3,"formGroup"],[1,"form-field"],["matInput","","placeholder","Fill color","type","color",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","placeholder","Border color","type","color",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","formControlName","borderWidth","placeholder","Border width","type","number"],["class","form-field",4,"ngIf"],["matInput","","formControlName","rotation","placeholder","Rotation","type","number"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["matInput","","placeholder","Border style","type","text",3,"ngModelOptions","ngModel","ngModelChange"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Style editor"),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"form",2),e.TgZ(4,"mat-form-field",3),e.TgZ(5,"input",4),e.NdJ("ngModelChange",function(a){return i.element.fill=a}),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",3),e.TgZ(7,"input",5),e.NdJ("ngModelChange",function(a){return i.element.stroke=a}),e.qZA(),e.qZA(),e.TgZ(8,"mat-form-field",3),e._UZ(9,"input",6),e.qZA(),e.YNc(10,i_e,2,3,"mat-form-field",7),e.TgZ(11,"mat-form-field",3),e._UZ(12,"input",8),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"div",9),e.TgZ(14,"button",10),e.NdJ("click",function(){return i.onNoClick()}),e._uU(15,"Cancel"),e.qZA(),e.TgZ(16,"button",11),e.NdJ("click",function(){return i.onYesClick()}),e._uU(17,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Q6J("formGroup",i.formGroup),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(6,yL))("ngModel",i.element.fill),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(7,yL))("ngModel",i.element.stroke),e.xp6(3),e.Q6J("ngIf",i.element.stroke_dasharray))},directives:[ri,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.On,ne.wV,ne.u,At.O5,ti,An],styles:[".item[_ngcontent-%COMP%]{height:25px;font-size:10pt;margin-bottom:10px}.item-name[_ngcontent-%COMP%]{margin-bottom:10px}.item-value[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}.input-color[_ngcontent-%COMP%]{padding:0;border-width:0px;width:100%;background-color:transparent;outline:none}input[_ngcontent-%COMP%]:focus{outline:none}input[type=color][_ngcontent-%COMP%]{-webkit-appearance:none;border:none;height:25px}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch-wrapper{padding:0}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch{border:none}.modal-form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.modal-form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.form-field[_ngcontent-%COMP%]{width:100%}"]}),n}(),a_e=function(){return function(){}}();function s_e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",1),e.NdJ("click",function(){return e.CHM(t),e.oxw().editStyle()}),e.TgZ(1,"mat-icon"),e._uU(2,"style"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Edit style"),e.qZA(),e.qZA()}}var l_e=function(){function n(r){this.dialog=r,this.isImageDrawing=!1}return n.prototype.ngOnChanges=function(){this.isImageDrawing=this.drawing.element instanceof R2},n.prototype.editStyle=function(){var t=this.dialog.open(o_e,{width:"800px",autoFocus:!1,disableClose:!0}).componentInstance;t.server=this.server,t.project=this.project,t.drawing=this.drawing},n.\u0275fac=function(t){return new(t||n)(e.Y36(no))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-edit-style-action"]],inputs:{server:"server",project:"project",drawing:"drawing"},features:[e.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&e.YNc(0,s_e,5,0,"button",0),2&t&&e.Q6J("ngIf",!i.isImageDrawing)},directives:[At.O5,Lr,ur],encapsulation:2}),n}(),u_e=["textArea"],c_e=function(){function n(r,t,i,o,a,s,u,p,m,b,R,F,G,Y){this.dialogRef=r,this.drawingToMapDrawingConverter=t,this.mapDrawingToSvgConverter=i,this.drawingService=o,this.drawingsDataSource=a,this.renderer=s,this.nodeService=u,this.nodesDataSource=p,this.linkService=m,this.linksDataSource=b,this.formBuilder=R,this.toasterService=F,this.rotationValidator=G,this.fontFixer=Y}return n.prototype.ngOnInit=function(){var r=this;this.formGroup=this.formBuilder.group({rotation:new ne.NI("",[ne.kI.required,this.rotationValidator.get])}),this.label&&this.node?(this.isTextEditable=!1,this.rotation=this.label.rotation.toString(),this.element=this.getTextElementFromLabel()):this.linkNode&&this.link?(this.isTextEditable=!0,this.label=this.link.nodes.find(function(i){return i.node_id===r.linkNode.node_id}).label,this.rotation=this.label.rotation.toString(),this.element=this.getTextElementFromLabel()):this.drawing&&(this.isTextEditable=!0,this.rotation=this.drawing.rotation.toString(),this.element=this.drawing.element);var t={font_family:this.element.font_family,font_size:this.element.font_size,font_weight:this.element.font_weight};t=this.fontFixer.fix(t),this.formGroup.controls.rotation.setValue(this.rotation),this.renderer.setStyle(this.textArea.nativeElement,"color",this.element.fill),this.renderer.setStyle(this.textArea.nativeElement,"font-family",t.font_family),this.renderer.setStyle(this.textArea.nativeElement,"font-size",t.font_size+"pt"),this.renderer.setStyle(this.textArea.nativeElement,"font-weight",t.font_weight)},n.prototype.getTextElementFromLabel=function(){for(var r=[],t=new lv,i=0,o=this.label.style.split(";");i<o.length;i++){var a=o[i];r.push({property:a.split(": ")[0],value:a.split(": ")[1]})}return t.text=this.label.text?this.label.text:"",t.font_family=r.find(function(s){return"font-family"===s.property})?r.find(function(s){return"font-family"===s.property}).value:"TypeWriter",t.font_size=r.find(function(s){return"font-size"===s.property})?+r.find(function(s){return"font-size"===s.property}).value:10,t.font_weight=r.find(function(s){return"font-weight"===s.property})?r.find(function(s){return"font-weight"===s.property}).value:"normal",t.fill=r.find(function(s){return"fill"===s.property})?r.find(function(s){return"fill"===s.property}).value:"#000000",t.fill_opacity=r.find(function(s){return"fill-opacity"===s.property})?+r.find(function(s){return"fill-opacity"===s.property}).value:1,t},n.prototype.getStyleFromTextElement=function(){return"font-family: "+this.element.font_family+";font-size: "+this.element.font_size+";font-weight: "+this.element.font_weight+";fill: "+this.element.fill+";fill-opacity: "+this.element.fill_opacity+";"},n.prototype.onNoClick=function(){this.dialogRef.close()},n.prototype.onYesClick=function(){var r=this;if(this.formGroup.valid){if(this.rotation=this.formGroup.get("rotation").value,this.label&&this.node)this.node.label.style=this.getStyleFromTextElement(),this.node.label.rotation=+this.rotation,this.nodeService.updateLabel(this.server,this.node,this.node.label).subscribe(function(i){r.nodesDataSource.update(i),r.dialogRef.close()});else if(this.linkNode&&this.link)this.label.style=this.getStyleFromTextElement(),this.label.rotation=+this.rotation,this.label.text=this.element.text,this.linkService.updateLink(this.server,this.link).subscribe(function(i){r.linksDataSource.update(i),r.dialogRef.close()});else if(this.drawing){this.drawing.rotation=+this.rotation,this.drawing.element=this.element;var t=this.drawingToMapDrawingConverter.convert(this.drawing);t.element=this.drawing.element,this.drawing.svg=this.mapDrawingToSvgConverter.convert(t),this.drawingService.update(this.server,this.drawing).subscribe(function(i){r.drawingsDataSource.update(i),r.dialogRef.close()})}}else this.toasterService.error("Entered data is incorrect")},n.prototype.changeTextColor=function(r){this.renderer.setStyle(this.textArea.nativeElement,"color",r)},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(E2),e.Y36(cv),e.Y36(ks),e.Y36(Es),e.Y36(e.Qsj),e.Y36(Jr),e.Y36(Ea.G),e.Y36(uc),e.Y36(Kf.F),e.Y36(ne.qu),e.Y36(er),e.Y36(_L),e.Y36(ac))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-text-editor"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(u_e,7),2&t)&&(e.iGM(o=e.CRH())&&(i.textArea=o.first))},decls:15,vars:4,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"form-field"],["matInput","","placeholder","Fill color","type","color",3,"ngModel","ngModelChange"],[3,"formGroup"],["formControlName","rotation","matInput","","placeholder","Rotation","type","text"],["id","textArea",1,"text",3,"ngModel","readonly","ngModelChange"],["textArea",""],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Text editor"),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"mat-form-field",2),e.TgZ(4,"input",3),e.NdJ("ngModelChange",function(a){return i.changeTextColor(a)})("ngModelChange",function(a){return i.element.fill=a}),e.qZA(),e.qZA(),e.TgZ(5,"form",4),e.TgZ(6,"mat-form-field",2),e._UZ(7,"input",5),e.qZA(),e.qZA(),e.TgZ(8,"textarea",6,7),e.NdJ("ngModelChange",function(a){return i.element.text=a}),e.qZA(),e.qZA(),e.TgZ(10,"div",8),e.TgZ(11,"button",9),e.NdJ("click",function(){return i.onNoClick()}),e._uU(12,"Cancel"),e.qZA(),e.TgZ(13,"button",10),e.NdJ("click",function(){return i.onYesClick()}),e._uU(14,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngModel",i.element.fill),e.xp6(1),e.Q6J("formGroup",i.formGroup),e.xp6(3),e.Q6J("ngModel",i.element.text)("readonly",!i.isTextEditable))},directives:[ri,Hn.KE,dr,ne.Fj,ne.JJ,ne.On,ne._Y,ne.JL,ne.sg,ne.u,ti,An],styles:[".item[_ngcontent-%COMP%]{height:25px;font-size:10pt;margin-bottom:10px}.item-name[_ngcontent-%COMP%]{margin-bottom:10px}.item-value[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}.input-color[_ngcontent-%COMP%]{padding:0;border-width:0px;width:100%;background-color:transparent;outline:none}input[_ngcontent-%COMP%]:focus{outline:none}input[type=color][_ngcontent-%COMP%]{-webkit-appearance:none;border:none;height:25px}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch-wrapper{padding:0}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch{border:none}.text[_ngcontent-%COMP%]{width:100%;height:150px}.modal-form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.modal-form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.form-field[_ngcontent-%COMP%]{width:100%}"]}),n}(),d_e=function(){function n(r){this.dialog=r}return n.prototype.ngOnInit=function(){},n.prototype.editText=function(){var t=this.dialog.open(c_e,{width:"300px",autoFocus:!1,disableClose:!0}).componentInstance;t.server=this.server,t.project=this.project,t.drawing=this.drawing,t.node=this.node,t.label=this.label,t.link=this.link,t.linkNode=this.linkNode},n.\u0275fac=function(t){return new(t||n)(e.Y36(no))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-edit-text-action"]],inputs:{server:"server",project:"project",drawing:"drawing",node:"node",label:"label",link:"link",linkNode:"linkNode"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.editText()}),e.TgZ(1,"mat-icon"),e._uU(2,"text_format"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Edit text"),e.qZA(),e.qZA())},directives:[Lr,ur],encapsulation:2}),n}();function p_e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",6),e.TgZ(1,"textarea",7,8),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().config=a}),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(1),e.Q6J("ngModel",i.config)}}function f_e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-tab-group"),e.TgZ(1,"mat-tab",9),e.TgZ(2,"textarea",10,8),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().config=a}),e.qZA(),e.qZA(),e.TgZ(4,"mat-tab",11),e.TgZ(5,"textarea",10,8),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().privateConfig=a}),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(2),e.Q6J("ngModel",i.config),e.xp6(3),e.Q6J("ngModel",i.privateConfig)}}var h_e=function(){function n(r,t,i){this.dialogRef=r,this.nodeService=t,this.toasterService=i}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getStartupConfiguration(this.server,this.node).subscribe(function(t){r.config=t}),("iou"===this.node.node_type||"dynamips"===this.node.node_type)&&this.nodeService.getPrivateConfiguration(this.server,this.node).subscribe(function(t){r.privateConfig=t})},n.prototype.onSaveClick=function(){var r=this;this.nodeService.saveConfiguration(this.server,this.node,this.config).subscribe(function(t){"iou"===r.node.node_type||"dynamips"===r.node.node_type?r.nodeService.savePrivateConfiguration(r.server,r.node,r.privateConfig).subscribe(function(i){r.dialogRef.close(),r.toasterService.success("Configuration for node "+r.node.name+" saved.")}):(r.dialogRef.close(),r.toasterService.success("Configuration for node "+r.node.name+" saved."))})},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(Jr),e.Y36(er))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-config-editor"]],decls:9,vars:3,consts:[["mat-dialog-title",""],["class","modal-form-container",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"modal-form-container"],["id","textArea",1,"textArea",3,"ngModel","ngModelChange"],["textArea",""],["label","Startup config"],["id","textArea",1,"textAreaTab",3,"ngModel","ngModelChange"],["label","Private config"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.YNc(2,p_e,3,1,"div",1),e.YNc(3,f_e,7,2,"mat-tab-group",2),e.TgZ(4,"div",3),e.TgZ(5,"button",4),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(6,"Cancel"),e.qZA(),e.TgZ(7,"button",5),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(8,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configuration for node ",i.node.name,""),e.xp6(1),e.Q6J("ngIf","vpcs"===i.node.node_type),e.xp6(1),e.Q6J("ngIf","iou"===i.node.node_type||"dynamips"===i.node.node_type))},directives:[ri,At.O5,ti,An,ne.Fj,ne.JJ,ne.On,ko.SP,ko.uX],styles:[".textArea[_ngcontent-%COMP%]{width:100%;height:350px}.textAreaTab[_ngcontent-%COMP%]{width:100%;height:300px}"]}),n}();function m_e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",1),e.NdJ("click",function(){return e.CHM(t),e.oxw().editConfig()}),e.TgZ(1,"mat-icon"),e._uU(2,"settings"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Edit config"),e.qZA(),e.qZA()}}var v_e=function(){function n(r){this.dialog=r}return n.prototype.editConfig=function(){var t=this.dialog.open(h_e,{width:"600px",height:"500px",autoFocus:!1,disableClose:!0}).componentInstance;t.server=this.server,t.project=this.project,t.node=this.node},n.\u0275fac=function(t){return new(t||n)(e.Y36(no))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-edit-config-action"]],inputs:{server:"server",project:"project",node:"node"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&e.YNc(0,m_e,5,0,"button",0),2&t&&e.Q6J("ngIf","vpcs"===i.node.node_type||"iou"===i.node.node_type||"dynamips"===i.node.node_type)},directives:[At.O5,Lr,ur],encapsulation:2}),n}(),qj=function(){function n(r){this.dialogRef=r}return n.prototype.close=function(r){this.dialogRef.close(r)},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-config-dialog"]],decls:10,vars:0,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"container"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Choose configuration file"),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div"),e.TgZ(5,"button",3),e.NdJ("click",function(){return i.close("startup-config")}),e._uU(6,"startup configuration"),e.qZA(),e.qZA(),e.TgZ(7,"div"),e.TgZ(8,"button",3),e.NdJ("click",function(){return i.close("private-config")}),e._uU(9,"private configuration"),e.qZA(),e.qZA(),e.qZA(),e.qZA())},directives:[ri,An],styles:[".container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between}"]}),n}();function g_e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",1),e.NdJ("click",function(){return e.CHM(t),e.oxw().exportConfig()}),e.TgZ(1,"mat-icon"),e._uU(2,"call_made"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Export config"),e.qZA(),e.qZA()}}var __e=function(){function n(r,t){this.nodeService=r,this.dialog=t}return n.prototype.exportConfig=function(){var r=this;"vpcs"===this.node.node_type?this.nodeService.getStartupConfiguration(this.server,this.node).subscribe(function(o){r.downloadByHtmlTag(o)}):this.dialog.open(qj,{width:"500px",autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(o){"startup-config"===o?r.nodeService.getStartupConfiguration(r.server,r.node).subscribe(function(a){r.downloadByHtmlTag(a)}):"private-config"===o&&r.nodeService.getPrivateConfiguration(r.server,r.node).subscribe(function(a){r.downloadByHtmlTag(a)})})},n.prototype.downloadByHtmlTag=function(r){var t=document.createElement("a");t.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(r)),"vpcs"===this.node.node_type?t.setAttribute("download",this.node.name+"_startup.vpc"):("iou"===this.node.node_type||"dynamips"===this.node.node_type)&&t.setAttribute("download",this.node.name+"_startup.cfg");var o=new MouseEvent("click");t.dispatchEvent(o)},n.\u0275fac=function(t){return new(t||n)(e.Y36(Jr),e.Y36(no))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-export-config-action"]],inputs:{server:"server",node:"node"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&e.YNc(0,g_e,5,0,"button",0),2&t&&e.Q6J("ngIf","vpcs"===i.node.node_type||"dynamips"===i.node.node_type||"iou"===i.node.node_type)},directives:[At.O5,Lr,ur],encapsulation:2}),n}(),y_e=["fileInput"],b_e=function(){function n(r,t,i){this.nodeService=r,this.toasterService=t,this.dialog=i}return n.prototype.triggerClick=function(){var r=this;"vpcs"!==this.node.node_type?this.dialog.open(qj,{width:"500px",autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(o){r.configType=o,r.fileInput.nativeElement.click()}):(this.configType="startup-config",this.fileInput.nativeElement.click())},n.prototype.importConfig=function(r){var t=this,i=r.target.files[0],o=new FileReader;o.onload=function(a){var s=o.result;"string"!=typeof s&&(s=s.toString()),"startup-config"===t.configType?t.nodeService.saveConfiguration(t.server,t.node,s).subscribe(function(){t.toasterService.success("Configuration for node "+t.node.name+" imported.")}):"private-config"===t.configType&&t.nodeService.savePrivateConfiguration(t.server,t.node,s).subscribe(function(){t.toasterService.success("Configuration for node "+t.node.name+" imported.")})},o.readAsText(i)},n.\u0275fac=function(t){return new(t||n)(e.Y36(Jr),e.Y36(er),e.Y36(no))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-import-config-action"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(y_e,5),2&t)&&(e.iGM(o=e.CRH())&&(i.fileInput=o.first))},inputs:{server:"server",node:"node"},decls:7,vars:0,consts:[["type","file","accept",".txt, .vpc",1,"non-visible",3,"change"],["fileInput",""],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"input",0,1),e.NdJ("change",function(a){return i.importConfig(a)}),e.qZA(),e.TgZ(2,"button",2),e.NdJ("click",function(){return i.triggerClick()}),e.TgZ(3,"mat-icon"),e._uU(4,"call_received"),e.qZA(),e.TgZ(5,"span"),e._uU(6,"Import config"),e.qZA(),e.qZA())},directives:[Lr,ur],styles:[".non-visible[_ngcontent-%COMP%]{display:none}"]}),n}(),C_e=function(){function n(r,t,i,o){this.nodesDataSource=r,this.drawingsDataSource=t,this.nodeService=i,this.drawingService=o}return n.prototype.ngOnInit=function(){},n.prototype.moveLayerUp=function(){var r=this;this.nodes.forEach(function(t){t.z++,r.nodesDataSource.update(t),r.nodeService.update(r.server,t).subscribe(function(i){})}),this.drawings.forEach(function(t){t.z++,r.drawingsDataSource.update(t),r.drawingService.update(r.server,t).subscribe(function(i){})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ea.G),e.Y36(Es),e.Y36(Jr),e.Y36(ks))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-move-layer-up-action"]],inputs:{server:"server",nodes:"nodes",drawings:"drawings"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.moveLayerUp()}),e.TgZ(1,"mat-icon"),e._uU(2,"keyboard_arrow_up"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Move layer up"),e.qZA(),e.qZA())},directives:[Lr,ur],encapsulation:2}),n}(),S_e=function(){function n(r,t,i,o){this.nodesDataSource=r,this.drawingsDataSource=t,this.nodeService=i,this.drawingService=o}return n.prototype.ngOnInit=function(){},n.prototype.moveLayerDown=function(){var r=this;this.nodes.forEach(function(t){t.z--,r.nodesDataSource.update(t),r.nodeService.update(r.server,t).subscribe(function(i){})}),this.drawings.forEach(function(t){t.z--,r.drawingsDataSource.update(t),r.drawingService.update(r.server,t).subscribe(function(i){})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ea.G),e.Y36(Es),e.Y36(Jr),e.Y36(ks))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-move-layer-down-action"]],inputs:{server:"server",nodes:"nodes",drawings:"drawings"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.moveLayerDown()}),e.TgZ(1,"mat-icon"),e._uU(2,"keyboard_arrow_down"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Move layer down"),e.qZA(),e.qZA())},directives:[Lr,ur],encapsulation:2}),n}(),T_e=function(){function n(r,t,i,o){this.nodesDataSource=r,this.drawingsDataSource=t,this.nodeService=i,this.drawingService=o}return n.prototype.ngOnInit=function(){},n.prototype.bringToFront=function(){var r=this,t=Math.max.apply(Math,this.nodes.map(function(a){return a.z})),i=Math.max.apply(Math,this.drawings.map(function(a){return a.z})),o=Math.max(t,i);o<100&&o++,this.nodes.forEach(function(a){a.z=o,r.nodesDataSource.update(a),r.nodeService.update(r.server,a).subscribe(function(s){})}),this.drawings.forEach(function(a){a.z=o,r.drawingsDataSource.update(a),r.drawingService.update(r.server,a).subscribe(function(s){})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ea.G),e.Y36(Es),e.Y36(Jr),e.Y36(ks))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-bring-to-front-action"]],inputs:{server:"server",nodes:"nodes",drawings:"drawings"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.bringToFront()}),e.TgZ(1,"mat-icon"),e._uU(2,"vertical_align_top"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Bring to front"),e.qZA(),e.qZA())},directives:[Lr,ur],encapsulation:2}),n}(),bL=function(){function n(){}return n.prototype.startCapture=function(r,t,i,o){location.assign("gns3+pcap://"+r.host+":"+r.port+"?project_id="+t.project_id+"&link_id="+i.link_id+"&name="+o)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}();function x_e(n,r){if(1&n&&(e.TgZ(0,"mat-option",11),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}var w_e=function(){return{standalone:!0}},k_e=function(){function n(r,t,i,o,a,s){this.dialogRef=r,this.linkService=t,this.formBuilder=i,this.toasterService=o,this.nodesDataSource=a,this.packetCaptureService=s,this.linkTypes=[],this.inputForm=this.formBuilder.group({linkType:new ne.NI("",ne.kI.required),fileName:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){this.linkTypes="ethernet"===this.link.link_type?[["Ethernet","DLT_EN10MB"]]:[["Cisco HDLC","DLT_C_HDLC"],["Cisco PPP","DLT_PPP_SERIAL"],["Frame Relay","DLT_FRELAY"],["ATM","DLT_ATM_RFC1483"]];var r=this.nodesDataSource.get(this.link.nodes[0].node_id),t=this.nodesDataSource.get(this.link.nodes[1].node_id);this.inputForm.controls.fileName.setValue(r.name+"_"+r.ports[this.link.nodes[0].port_number].name+"_to_"+t.name+"_"+t.ports[this.link.nodes[1].port_number].name)},n.prototype.onYesClick=function(){var r=this,t=!1;if(this.link.nodes.forEach(function(o){"started"===r.nodesDataSource.get(o.node_id).status&&(t=!0)}),t)if(this.inputForm.invalid)this.toasterService.error("Fill all required fields");else{var i={capture_file_name:this.inputForm.get("fileName").value,data_link_type:this.inputForm.get("linkType").value};this.startProgram&&this.packetCaptureService.startCapture(this.server,this.project,this.link,i.capture_file_name),this.linkService.startCaptureOnLink(this.server,this.link,i).subscribe(function(){r.dialogRef.close()})}else this.toasterService.error("Cannot capture because there is no running device on this link")},n.prototype.onNoClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(uc),e.Y36(ne.qu),e.Y36(er),e.Y36(Ea.G),e.Y36(bL))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-start-capture"]],decls:16,vars:5,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[3,"formGroup"],[1,"input-field"],["placeholder","Link type","formControlName","linkType","ngDefaultControl",""],[3,"value",4,"ngFor","ngForOf"],["placeholder","File name","formControlName","fileName","matInput","","type","text"],[3,"ngModelOptions","ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Packet capture"),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"form",2),e.TgZ(4,"mat-form-field",3),e.TgZ(5,"mat-select",4),e.YNc(6,x_e,2,2,"mat-option",5),e.qZA(),e.qZA(),e.TgZ(7,"mat-form-field",3),e._UZ(8,"input",6),e.qZA(),e.TgZ(9,"mat-checkbox",7),e.NdJ("ngModelChange",function(a){return i.startProgram=a}),e._uU(10," Start the capture visualization program "),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",8),e.TgZ(12,"button",9),e.NdJ("click",function(){return i.onNoClick()}),e._uU(13,"Cancel"),e.qZA(),e.TgZ(14,"button",10),e.NdJ("click",function(){return i.onYesClick()}),e._uU(15,"Ok"),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Q6J("formGroup",i.inputForm),e.xp6(3),e.Q6J("ngForOf",i.linkTypes),e.xp6(3),e.Q6J("ngModelOptions",e.DdM(4,w_e))("ngModel",i.startProgram))},directives:[ri,ne._Y,ne.JL,ne.sg,Hn.KE,fi.gD,ne.JJ,ne.u,ne.Fj,At.sg,dr,Lo,ne.On,ti,An,un.ey],styles:[".input-field[_ngcontent-%COMP%]{width:100%}"]}),n}();function E_e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",1),e.NdJ("click",function(){return e.CHM(t),e.oxw().startCapture()}),e.TgZ(1,"mat-icon"),e._uU(2,"loupe"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Start capture"),e.qZA(),e.qZA()}}var M_e=function(){function n(r){this.dialog=r}return n.prototype.startCapture=function(){var t=this.dialog.open(k_e,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance;t.server=this.server,t.project=this.project,t.link=this.link},n.\u0275fac=function(t){return new(t||n)(e.Y36(no))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-start-capture-action"]],inputs:{server:"server",project:"project",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&e.YNc(0,E_e,5,0,"button",0),2&t&&e.Q6J("ngIf",!i.link.capturing)},directives:[At.O5,Lr,ur],encapsulation:2}),n}();function A_e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",1),e.NdJ("click",function(){return e.CHM(t),e.oxw().stopCapture()}),e.TgZ(1,"mat-icon"),e._uU(2,"pause_circle_filled"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Stop capture"),e.qZA(),e.qZA()}}var D_e=function(){function n(r){this.linkService=r}return n.prototype.stopCapture=function(){this.linkService.stopCaptureOnLink(this.server,this.link).subscribe(function(){})},n.\u0275fac=function(t){return new(t||n)(e.Y36(uc))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-stop-capture-action"]],inputs:{server:"server",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&e.YNc(0,A_e,5,0,"button",0),2&t&&e.Q6J("ngIf",i.link.capturing)},directives:[At.O5,Lr,ur],encapsulation:2}),n}();function O_e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",1),e.NdJ("click",function(){return e.CHM(t),e.oxw().startCapture()}),e.TgZ(1,"mat-icon"),e._uU(2,"search"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Start Wireshark"),e.qZA(),e.qZA()}}var P_e=function(){function n(r){this.packetCaptureService=r}return n.prototype.startCapture=function(){var r=this.link.capture_file_name.split(".");this.packetCaptureService.startCapture(this.server,this.project,this.link,r[0])},n.\u0275fac=function(t){return new(t||n)(e.Y36(bL))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-start-capture-on-started-link-action"]],inputs:{server:"server",project:"project",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&e.YNc(0,O_e,5,0,"button",0),2&t&&e.Q6J("ngIf",i.link.capturing)},directives:[At.O5,Lr,ur],encapsulation:2}),n}();function I_e(n,r){if(1&n&&(e.TgZ(0,"div",5),e.TgZ(1,"h6"),e._uU(2),e.qZA(),e.TgZ(3,"span",6),e._uU(4),e.qZA(),e.qZA()),2&n){var t=r.$implicit;e.xp6(2),e.hij(" ",t.name," "),e.xp6(2),e.hij(" ",t.description," ")}}var R_e=function(){function n(r){this.dialogRef=r}return n.prototype.onCloseClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-help-dialog"]],inputs:{title:"title",messages:"messages"},decls:7,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],["class","message",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],[1,"message"],[1,"description"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.YNc(3,I_e,5,2,"div",2),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"button",4),e.NdJ("click",function(){return i.onCloseClick()}),e._uU(6,"Close"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Oqu(i.title),e.xp6(2),e.Q6J("ngForOf",i.messages))},directives:[ri,At.sg,ti,An],styles:[".message[_ngcontent-%COMP%]{margin-bottom:10px}.description[_ngcontent-%COMP%]{color:#b0bec5}"]}),n}();function N_e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-tab-group"),e.TgZ(1,"mat-tab",9),e.TgZ(2,"mat-form-field",10),e.TgZ(3,"input",11),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().filters.frequency_drop[0]=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(4,"mat-tab",12),e.TgZ(5,"mat-form-field",10),e.TgZ(6,"input",13),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().filters.packet_loss[0]=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"mat-tab",14),e.TgZ(8,"mat-form-field",10),e.TgZ(9,"input",15),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().filters.delay[0]=a}),e.qZA(),e.qZA(),e.TgZ(10,"mat-form-field",10),e.TgZ(11,"input",16),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().filters.delay[1]=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"mat-tab",17),e.TgZ(13,"mat-form-field",10),e.TgZ(14,"input",15),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().filters.corrupt[0]=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"mat-tab",18),e.TgZ(16,"mat-form-field",10),e.TgZ(17,"textarea",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().filters.bpf[0]=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(3),e.Q6J("ngModel",i.filters.frequency_drop[0]),e.xp6(3),e.Q6J("ngModel",i.filters.packet_loss[0]),e.xp6(3),e.Q6J("ngModel",i.filters.delay[0]),e.xp6(2),e.Q6J("ngModel",i.filters.delay[1]),e.xp6(3),e.Q6J("ngModel",i.filters.corrupt[0]),e.xp6(3),e.Q6J("ngModel",i.filters.bpf[0])}}var Z_e=function(){function n(r,t,i){this.dialogRef=r,this.linkService=t,this.dialog=i}return n.prototype.ngOnInit=function(){var r=this;this.linkService.getLink(this.server,this.link.project_id,this.link.link_id).subscribe(function(t){r.link=t,r.filters={bpf:[],corrupt:[0],delay:[0,0],frequency_drop:[0],packet_loss:[0]},r.link.filters&&(r.filters.bpf=r.link.filters.bpf?r.link.filters.bpf:[],r.filters.corrupt=r.link.filters.corrupt?r.link.filters.corrupt:[0],r.filters.delay=r.link.filters.delay?r.link.filters.delay:[0,0],r.filters.frequency_drop=r.link.filters.frequency_drop?r.link.filters.frequency_drop:[0],r.filters.packet_loss=r.link.filters.packet_loss?r.link.filters.packet_loss:[0])}),this.linkService.getAvailableFilters(this.server,this.link).subscribe(function(t){r.availableFilters=t})},n.prototype.onNoClick=function(){this.dialogRef.close()},n.prototype.onResetClick=function(){var r=this;this.link.filters={bpf:[],corrupt:[0],delay:[0,0],frequency_drop:[0],packet_loss:[0]},this.linkService.updateLink(this.server,this.link).subscribe(function(t){r.dialogRef.close()})},n.prototype.onYesClick=function(){var r=this;this.link.filters=this.filters,this.linkService.updateLink(this.server,this.link).subscribe(function(t){r.dialogRef.close()})},n.prototype.onHelpClick=function(){var t=this.dialog.open(R_e,{width:"500px",autoFocus:!1,disableClose:!0}).componentInstance;t.title="Help for filters";var i=[];this.availableFilters.forEach(function(o){i.push({name:o.name,description:o.description})}),t.messages=i},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(uc),e.Y36(no))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-packet-filters"]],decls:16,vars:1,consts:[["mat-dialog-title",""],[1,"content"],[4,"ngIf"],[1,"bottom-bar"],[1,"spacer"],["mat-dialog-actions","","layout","row",1,"dialog-actions"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"divider"],["label","Frequency drop"],[1,"input-field"],["matInput","","placeholder","Frequency","type","number",3,"ngModel","ngModelChange"],["label","Packet loss"],["matInput","","placeholder","Chance","type","number",3,"ngModel","ngModelChange"],["label","Delay"],["matInput","","placeholder","Latency","type","number",3,"ngModel","ngModelChange"],["matInput","","placeholder","Jitter","type","number",3,"ngModel","ngModelChange"],["label","Corrupt"],["label","Berkeley Packet Filter (BPF)"],["matInput","","type","text",3,"ngModel","ngModelChange"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Packet filters"),e.qZA(),e.TgZ(2,"div",1),e.YNc(3,N_e,18,6,"mat-tab-group",2),e.qZA(),e.TgZ(4,"div",3),e._UZ(5,"div",4),e.TgZ(6,"div",5),e.TgZ(7,"button",6),e.NdJ("click",function(){return i.onNoClick()}),e._uU(8,"Cancel"),e.qZA(),e.TgZ(9,"button",6),e.NdJ("click",function(){return i.onResetClick()}),e._uU(10,"Reset"),e.qZA(),e.TgZ(11,"button",7),e.NdJ("click",function(){return i.onYesClick()}),e._uU(12,"Apply"),e.qZA(),e._UZ(13,"div",8),e.TgZ(14,"button",6),e.NdJ("click",function(){return i.onHelpClick()}),e._uU(15,"Help"),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Q6J("ngIf",i.filters))},directives:[ri,At.O5,ti,An,ko.SP,ko.uX,Hn.KE,dr,ne.wV,ne.Fj,ne.JJ,ne.On],styles:[".spacer[_ngcontent-%COMP%]{flex-grow:1}.content[_ngcontent-%COMP%]{height:260px}.item[_ngcontent-%COMP%]{height:25px;font-size:10pt;margin-bottom:10px}.item-name[_ngcontent-%COMP%]{margin-bottom:10px}.item-value[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}.input-field[_ngcontent-%COMP%]{width:100%;margin-top:10px}.divider[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;flex:1 1 auto}.input-color[_ngcontent-%COMP%]{padding:0;border-width:0px;width:100%;background-color:transparent;outline:none}input[_ngcontent-%COMP%]:focus{outline:none}input[type=color][_ngcontent-%COMP%]{-webkit-appearance:none;border:none;height:25px}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch-wrapper{padding:0}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch{border:none}.modal-form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.modal-form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}"]}),n}(),L_e=function(){function n(r){this.dialog=r}return n.prototype.openPacketFilters=function(){var t=this.dialog.open(Z_e,{width:"900px",height:"400px",autoFocus:!1,disableClose:!0}).componentInstance;t.server=this.server,t.project=this.project,t.link=this.link},n.\u0275fac=function(t){return new(t||n)(e.Y36(no))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-packet-filters-action"]],inputs:{server:"server",project:"project",link:"link"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.openPacketFilters()}),e.TgZ(1,"mat-icon"),e._uU(2,"filter_list"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Packet filters"),e.qZA(),e.qZA())},directives:[Lr,ur],encapsulation:2}),n}();function F_e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",1),e.NdJ("click",function(){return e.CHM(t),e.oxw().resumeLink()}),e.TgZ(1,"mat-icon"),e._uU(2,"play_arrow"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Resume"),e.qZA(),e.qZA()}}var B_e=function(){function n(r){this.linkService=r}return n.prototype.resumeLink=function(){this.link.suspend=!1,this.linkService.updateLink(this.server,this.link).subscribe(function(){})},n.\u0275fac=function(t){return new(t||n)(e.Y36(uc))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-resume-link-action"]],inputs:{server:"server",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&e.YNc(0,F_e,5,0,"button",0),2&t&&e.Q6J("ngIf",i.link.suspend)},directives:[At.O5,Lr,ur],encapsulation:2}),n}();function U_e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",1),e.NdJ("click",function(){return e.CHM(t),e.oxw().suspendLink()}),e.TgZ(1,"mat-icon"),e._uU(2,"pause"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Suspend"),e.qZA(),e.qZA()}}var H_e=function(){function n(r){this.linkService=r}return n.prototype.suspendLink=function(){this.link.suspend=!0,this.linkService.updateLink(this.server,this.link).subscribe(function(){})},n.\u0275fac=function(t){return new(t||n)(e.Y36(uc))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-suspend-link-action"]],inputs:{server:"server",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&e.YNc(0,U_e,5,0,"button",0),2&t&&e.Q6J("ngIf",!i.link.suspend)},directives:[At.O5,Lr,ur],encapsulation:2}),n}(),V_e=function(){function n(r,t,i,o){this.nodesDataSource=r,this.drawingsDataSource=t,this.nodeService=i,this.drawingService=o}return n.prototype.ngOnChanges=function(){this.command=1===this.nodes.length&&0===this.drawings.length?this.nodes[0].locked?"Unlock item":"Lock item":0===this.nodes.length&&1===this.drawings.length?this.drawings[0].locked?"Unlock item":"Lock item":"Lock/unlock items"},n.prototype.lock=function(){var r=this;this.nodes.forEach(function(t){t.locked=!t.locked,r.nodeService.updateNode(r.server,t).subscribe(function(i){r.nodesDataSource.update(i)})}),this.drawings.forEach(function(t){t.locked=!t.locked,r.drawingService.update(r.server,t).subscribe(function(i){r.drawingsDataSource.update(i)})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ea.G),e.Y36(Es),e.Y36(Jr),e.Y36(ks))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-lock-action"]],inputs:{server:"server",nodes:"nodes",drawings:"drawings"},features:[e.TTD],decls:5,vars:1,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.lock()}),e.TgZ(1,"mat-icon"),e._uU(2,"lock"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.qZA(),e.qZA()),2&t&&(e.xp6(4),e.Oqu(i.command))},directives:[Lr,ur],encapsulation:2}),n}(),q_e=function(){function n(r,t,i,o,a,s,u){this.nodesDataSource=r,this.drawingsDataSource=t,this.linksDataSource=i,this.nodeService=o,this.drawingService=a,this.linkService=s,this.bottomSheet=u}return n.prototype.ngOnInit=function(){},n.prototype.confirmDelete=function(){var r=this;this.bottomSheet.open(Xf);var t=this.bottomSheet._openedBottomSheetRef;t.instance.message="Do you want to delete all selected objects?",t.afterDismissed().subscribe(function(o){o&&r.delete()})},n.prototype.delete=function(){var r=this;this.nodes.forEach(function(t){r.nodesDataSource.remove(t),r.nodeService.delete(r.server,t).subscribe(function(i){})}),this.drawings.forEach(function(t){r.drawingsDataSource.remove(t),r.drawingService.delete(r.server,t).subscribe(function(i){})}),this.links.forEach(function(t){r.linksDataSource.remove(t),r.linkService.deleteLink(r.server,t).subscribe(function(){})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ea.G),e.Y36(Es),e.Y36(Kf.F),e.Y36(Jr),e.Y36(ks),e.Y36(uc),e.Y36(LS))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-delete-action"]],inputs:{server:"server",nodes:"nodes",drawings:"drawings",links:"links"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.confirmDelete()}),e.TgZ(1,"mat-icon"),e._uU(2,"delete"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Delete"),e.qZA(),e.qZA())},directives:[Lr,ur],encapsulation:2}),n}(),j_e=function(){function n(r,t){this.nodesDataSource=r,this.nodeService=t}return n.prototype.ngOnInit=function(){},n.prototype.alignHorizontally=function(){var r=this,t=0;this.nodes.forEach(function(i){t+=i.y}),t/=this.nodes.length,this.nodes.forEach(function(i){i.y=t,r.nodesDataSource.update(i),r.nodeService.update(r.server,i).subscribe(function(o){})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ea.G),e.Y36(Jr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-align-horizontally-action"]],inputs:{server:"server",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.alignHorizontally()}),e.TgZ(1,"mat-icon"),e._uU(2,"more_horiz"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Align horizontally"),e.qZA(),e.qZA())},directives:[Lr,ur],encapsulation:2}),n}(),z_e=function(){function n(r,t){this.nodesDataSource=r,this.nodeService=t}return n.prototype.ngOnInit=function(){},n.prototype.alignVertically=function(){var r=this,t=0;this.nodes.forEach(function(i){t+=i.x}),t/=this.nodes.length,this.nodes.forEach(function(i){i.x=t,r.nodesDataSource.update(i),r.nodeService.update(r.server,i).subscribe(function(o){})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ea.G),e.Y36(Jr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-align-vertically-action"]],inputs:{server:"server",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.alignVertically()}),e.TgZ(1,"mat-icon"),e._uU(2,"more_vert"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Align vertically"),e.qZA(),e.qZA())},directives:[Lr,ur],encapsulation:2}),n}();function W_e(n,r){if(1&n&&e._UZ(0,"app-show-node-action",14),2&n){var t=e.oxw();e.Q6J("server",t.server)("node",t.nodes[0])}}function G_e(n,r){if(1&n&&e._UZ(0,"app-config-node-action",14),2&n){var t=e.oxw();e.Q6J("server",t.server)("node",t.nodes[0])}}function Y_e(n,r){if(1&n&&e._UZ(0,"app-start-node-action",15),2&n){var t=e.oxw();e.Q6J("server",t.server)("nodes",t.nodes)}}function J_e(n,r){if(1&n&&e._UZ(0,"app-suspend-node-action",15),2&n){var t=e.oxw();e.Q6J("server",t.server)("nodes",t.nodes)}}function Q_e(n,r){if(1&n&&e._UZ(0,"app-stop-node-action",15),2&n){var t=e.oxw();e.Q6J("server",t.server)("nodes",t.nodes)}}function K_e(n,r){if(1&n&&e._UZ(0,"app-reload-node-action",15),2&n){var t=e.oxw();e.Q6J("server",t.server)("nodes",t.nodes)}}function X_e(n,r){if(1&n&&e._UZ(0,"app-http-console-action",15),2&n){var t=e.oxw();e.Q6J("server",t.server)("nodes",t.nodes)}}function $_e(n,r){if(1&n&&e._UZ(0,"app-http-console-new-tab-action",15),2&n){var t=e.oxw();e.Q6J("server",t.server)("nodes",t.nodes)}}function eye(n,r){if(1&n&&e._UZ(0,"app-console-device-action",15),2&n){var t=e.oxw();e.Q6J("server",t.server)("nodes",t.nodes)}}function tye(n,r){if(1&n&&e._UZ(0,"app-console-device-action-browser",14),2&n){var t=e.oxw();e.Q6J("server",t.server)("node",t.nodes[0])}}function nye(n,r){if(1&n&&e._UZ(0,"app-open-file-explorer-action",14),2&n){var t=e.oxw();e.Q6J("server",t.server)("node",t.nodes[0])}}function rye(n,r){if(1&n&&e._UZ(0,"app-change-hostname-action",14),2&n){var t=e.oxw();e.Q6J("server",t.server)("node",t.nodes[0])}}function iye(n,r){if(1&n&&e._UZ(0,"app-change-symbol-action",14),2&n){var t=e.oxw();e.Q6J("server",t.server)("node",t.nodes[0])}}function oye(n,r){if(1&n&&e._UZ(0,"app-duplicate-action",16),2&n){var t=e.oxw();e.Q6J("server",t.server)("project",t.project)("nodes",t.nodes)("drawings",t.drawings)}}function aye(n,r){if(1&n&&e._UZ(0,"app-edit-style-action",17),2&n){var t=e.oxw();e.Q6J("server",t.server)("project",t.project)("drawing",t.drawings[0])}}function sye(n,r){if(1&n&&e._UZ(0,"app-edit-text-action",18),2&n){var t=e.oxw();e.Q6J("server",t.server)("project",t.project)("drawing",t.drawings[0])("node",t.nodes[0])("label",t.labels[0])("link",t.links[0])("linkNode",t.linkNodes[0])}}function lye(n,r){if(1&n&&e._UZ(0,"app-edit-config-action",19),2&n){var t=e.oxw();e.Q6J("server",t.server)("project",t.project)("node",t.nodes[0])}}function uye(n,r){if(1&n&&e._UZ(0,"app-export-config-action",14),2&n){var t=e.oxw();e.Q6J("server",t.server)("node",t.nodes[0])}}function cye(n,r){if(1&n&&e._UZ(0,"app-import-config-action",14),2&n){var t=e.oxw();e.Q6J("server",t.server)("node",t.nodes[0])}}function dye(n,r){if(1&n&&e._UZ(0,"app-move-layer-up-action",20),2&n){var t=e.oxw();e.Q6J("server",t.server)("nodes",t.nodes)("drawings",t.drawings)}}function pye(n,r){if(1&n&&e._UZ(0,"app-move-layer-down-action",20),2&n){var t=e.oxw();e.Q6J("server",t.server)("nodes",t.nodes)("drawings",t.drawings)}}function fye(n,r){if(1&n&&e._UZ(0,"app-bring-to-front-action",20),2&n){var t=e.oxw();e.Q6J("server",t.server)("nodes",t.nodes)("drawings",t.drawings)}}function hye(n,r){if(1&n&&e._UZ(0,"app-start-capture-action",21),2&n){var t=e.oxw();e.Q6J("server",t.server)("project",t.project)("link",t.links[0])}}function mye(n,r){if(1&n&&e._UZ(0,"app-stop-capture-action",22),2&n){var t=e.oxw();e.Q6J("server",t.server)("link",t.links[0])}}function vye(n,r){if(1&n&&e._UZ(0,"app-start-capture-on-started-link-action",21),2&n){var t=e.oxw();e.Q6J("server",t.server)("project",t.project)("link",t.links[0])}}function gye(n,r){if(1&n&&e._UZ(0,"app-packet-filters-action",21),2&n){var t=e.oxw();e.Q6J("server",t.server)("project",t.project)("link",t.links[0])}}function _ye(n,r){if(1&n&&e._UZ(0,"app-resume-link-action",22),2&n){var t=e.oxw();e.Q6J("server",t.server)("link",t.links[0])}}function yye(n,r){if(1&n&&e._UZ(0,"app-suspend-link-action",22),2&n){var t=e.oxw();e.Q6J("server",t.server)("link",t.links[0])}}function bye(n,r){if(1&n&&e._UZ(0,"app-lock-action",20),2&n){var t=e.oxw();e.Q6J("server",t.server)("nodes",t.nodes)("drawings",t.drawings)}}function Cye(n,r){if(1&n&&e._UZ(0,"app-delete-action",23),2&n){var t=e.oxw();e.Q6J("server",t.server)("nodes",t.nodes)("drawings",t.drawings)("links",t.links)}}function Sye(n,r){if(1&n&&e._UZ(0,"app-align-horizontally-action",15),2&n){var t=e.oxw();e.Q6J("server",t.server)("nodes",t.nodes)}}function Tye(n,r){if(1&n&&e._UZ(0,"app-align-vertically-action",15),2&n){var t=e.oxw();e.Q6J("server",t.server)("nodes",t.nodes)}}var jj=function(){function n(r,t,i,o){this.sanitizer=r,this.changeDetector=t,this.electronService=i,this.projectService=o,this.drawings=[],this.nodes=[],this.labels=[],this.links=[],this.linkNodes=[],this.hasTextCapabilities=!1,this.isElectronApp=!1,this.isBundledServer=!1}return n.prototype.ngOnInit=function(){this.setPosition(0,0),this.isElectronApp=this.electronService.isElectronApp,this.isBundledServer="bundled"===this.server.location},n.prototype.setPosition=function(r,t){this.topPosition=this.sanitizer.bypassSecurityTrustStyle(r+"px"),this.leftPosition=this.sanitizer.bypassSecurityTrustStyle(t+"px"),this.changeDetector.detectChanges()},n.prototype.openMenuForDrawing=function(r,t,i){this.resetCapabilities(),this.hasTextCapabilities=r.element instanceof lv,this.drawings=[r],this.setPosition(t,i),this.contextMenu.openMenu()},n.prototype.openMenuForNode=function(r,t,i){this.resetCapabilities(),this.nodes=[r],this.setPosition(t,i),this.contextMenu.openMenu()},n.prototype.openMenuForLabel=function(r,t,i,o){this.resetCapabilities(),this.labels=[r],this.nodes=[t],this.setPosition(i,o),this.contextMenu.openMenu()},n.prototype.openMenuForInterfaceLabel=function(r,t,i,o){this.resetCapabilities(),this.linkNodes=[r],this.links=[t],this.setPosition(i,o),this.contextMenu.openMenu()},n.prototype.openMenuForListOfElements=function(r,t,i,o,a,s){this.resetCapabilities(),this.drawings=r,this.nodes=t,this.labels=i,this.links=o,this.setPosition(a,s),this.contextMenu.openMenu()},n.prototype.resetCapabilities=function(){this.drawings=[],this.nodes=[],this.labels=[],this.linkNodes=[],this.links=[],this.hasTextCapabilities=!1},n.\u0275fac=function(t){return new(t||n)(e.Y36(B.H7),e.Y36(e.sBO),e.Y36(hs),e.Y36(fd.Y))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-context-menu"]],viewQuery:function(t,i){var o;(1&t&&e.Gf($a,5),2&t)&&(e.iGM(o=e.CRH())&&(i.contextMenu=o.first))},inputs:{project:"project",server:"server"},decls:36,vars:37,consts:[[1,"context-menu"],[3,"matMenuTriggerFor"],[1,"context-menu-items"],["contextMenu","matMenu"],[3,"server","node",4,"ngIf"],[3,"server","nodes",4,"ngIf"],[3,"server","project","nodes","drawings",4,"ngIf"],[3,"server","project","drawing",4,"ngIf"],[3,"server","project","drawing","node","label","link","linkNode",4,"ngIf"],[3,"server","project","node",4,"ngIf"],[3,"server","nodes","drawings",4,"ngIf"],[3,"server","project","link",4,"ngIf"],[3,"server","link",4,"ngIf"],[3,"server","nodes","drawings","links",4,"ngIf"],[3,"server","node"],[3,"server","nodes"],[3,"server","project","nodes","drawings"],[3,"server","project","drawing"],[3,"server","project","drawing","node","label","link","linkNode"],[3,"server","project","node"],[3,"server","nodes","drawings"],[3,"server","project","link"],[3,"server","link"],[3,"server","nodes","drawings","links"]],template:function(t,i){if(1&t&&(e.TgZ(0,"div",0),e._UZ(1,"span",1),e.TgZ(2,"mat-menu",2,3),e.YNc(4,W_e,1,2,"app-show-node-action",4),e.YNc(5,G_e,1,2,"app-config-node-action",4),e.YNc(6,Y_e,1,2,"app-start-node-action",5),e.YNc(7,J_e,1,2,"app-suspend-node-action",5),e.YNc(8,Q_e,1,2,"app-stop-node-action",5),e.YNc(9,K_e,1,2,"app-reload-node-action",5),e.YNc(10,X_e,1,2,"app-http-console-action",5),e.YNc(11,$_e,1,2,"app-http-console-new-tab-action",5),e.YNc(12,eye,1,2,"app-console-device-action",5),e.YNc(13,tye,1,2,"app-console-device-action-browser",4),e.YNc(14,nye,1,2,"app-open-file-explorer-action",4),e.YNc(15,rye,1,2,"app-change-hostname-action",4),e.YNc(16,iye,1,2,"app-change-symbol-action",4),e.YNc(17,oye,1,4,"app-duplicate-action",6),e.YNc(18,aye,1,3,"app-edit-style-action",7),e.YNc(19,sye,1,7,"app-edit-text-action",8),e.YNc(20,lye,1,3,"app-edit-config-action",9),e.YNc(21,uye,1,2,"app-export-config-action",4),e.YNc(22,cye,1,2,"app-import-config-action",4),e.YNc(23,dye,1,3,"app-move-layer-up-action",10),e.YNc(24,pye,1,3,"app-move-layer-down-action",10),e.YNc(25,fye,1,3,"app-bring-to-front-action",10),e.YNc(26,hye,1,3,"app-start-capture-action",11),e.YNc(27,mye,1,2,"app-stop-capture-action",12),e.YNc(28,vye,1,3,"app-start-capture-on-started-link-action",11),e.YNc(29,gye,1,3,"app-packet-filters-action",11),e.YNc(30,_ye,1,2,"app-resume-link-action",12),e.YNc(31,yye,1,2,"app-suspend-link-action",12),e.YNc(32,bye,1,3,"app-lock-action",10),e.YNc(33,Cye,1,4,"app-delete-action",13),e.YNc(34,Sye,1,2,"app-align-horizontally-action",5),e.YNc(35,Tye,1,2,"app-align-vertically-action",5),e.qZA(),e.qZA()),2&t){var o=e.MAs(3);e.Udp("left",i.leftPosition)("top",i.topPosition),e.xp6(1),e.Q6J("matMenuTriggerFor",o),e.xp6(3),e.Q6J("ngIf",1===i.nodes.length),e.xp6(1),e.Q6J("ngIf",1===i.nodes.length),e.xp6(1),e.Q6J("ngIf",i.nodes.length),e.xp6(1),e.Q6J("ngIf",i.nodes.length),e.xp6(1),e.Q6J("ngIf",i.nodes.length),e.xp6(1),e.Q6J("ngIf",i.nodes.length),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&i.nodes.length>0),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&i.nodes.length>0),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&i.nodes.length&&i.isElectronApp),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&1===i.nodes.length&&!i.isElectronApp),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&1===i.nodes.length&&i.isElectronApp),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&1===i.nodes.length),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&1===i.nodes.length),e.xp6(1),e.Q6J("ngIf",i.drawings.length>0||i.nodes.length>0),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&1===i.drawings.length&&!i.hasTextCapabilities),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&(1===i.drawings.length&&i.hasTextCapabilities&&0===i.labels.length&&0===i.linkNodes.length||1===i.labels.length&&0===i.linkNodes.length&&0===i.drawings.length||1===i.linkNodes.length&&0===i.labels.length&&0===i.drawings.length)),e.xp6(1),e.Q6J("ngIf",1===i.nodes.length&&"vpcs"===i.nodes[0].node_type),e.xp6(1),e.Q6J("ngIf",1===i.nodes.length&&("vpcs"===i.nodes[0].node_type||"iou"===i.nodes[0].node_type||"dynamips"===i.nodes[0].node_type)),e.xp6(1),e.Q6J("ngIf",1===i.nodes.length&&("vpcs"===i.nodes[0].node_type||"iou"===i.nodes[0].node_type||"dynamips"===i.nodes[0].node_type)),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&(i.drawings.length||i.nodes.length)),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&(i.drawings.length||i.nodes.length)),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&(i.drawings.length||i.nodes.length)),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&0===i.drawings.length&&0===i.nodes.length&&1===i.links.length),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&0===i.drawings.length&&0===i.nodes.length&&1===i.links.length&&0===i.linkNodes.length),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&0===i.drawings.length&&0===i.nodes.length&&1===i.links.length&&0===i.linkNodes.length),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&0===i.drawings.length&&0===i.nodes.length&&1===i.links.length&&0===i.linkNodes.length),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&0===i.drawings.length&&0===i.nodes.length&&1===i.links.length&&0===i.linkNodes.length),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&0===i.drawings.length&&0===i.nodes.length&&1===i.links.length&&0===i.linkNodes.length),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&(i.drawings.length>0||i.nodes.length>0)),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&(i.drawings.length>0||i.nodes.length>0||i.links.length>0)&&0===i.linkNodes.length),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&i.nodes.length>1),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&i.nodes.length>1)}},directives:[$a,ws,At.O5,Ume,Bge,Hge,qge,zge,Gge,Yge,Jge,Qge,Kge,Xge,e_e,n_e,r_e,l_e,d_e,v_e,__e,b_e,C_e,S_e,T_e,M_e,D_e,P_e,L_e,B_e,H_e,V_e,q_e,j_e,z_e],styles:[".context-menu[_ngcontent-%COMP%]{position:absolute;min-height:0px}.mat-menu-panel[_ngcontent-%COMP%] ng-trigger[_ngcontent-%COMP%] ng-trigger-transformMenu[_ngcontent-%COMP%] ng-tns-c7-5[_ngcontent-%COMP%] context-menu-items[_ngcontent-%COMP%] mat-menu-after[_ngcontent-%COMP%] mat-menu-below[_ngcontent-%COMP%] ng-star-inserted[_ngcontent-%COMP%] mat-elevation-z4[_ngcontent-%COMP%]{min-height:0px!important}"]}),n}();function xye(n,r){if(1&n&&(e.TgZ(0,"mat-option",19),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function wye(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-form-field",16),e.TgZ(1,"mat-select",17),e.NdJ("selectionChange",function(a){return e.CHM(t),e.oxw(2)._changePageSize(a.value)}),e.YNc(2,xye,2,2,"mat-option",18),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.Q6J("appearance",i._formFieldAppearance)("color",i.color),e.xp6(1),e.Q6J("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),e.xp6(1),e.Q6J("ngForOf",i._displayedPageSizeOptions)}}function kye(n,r){if(1&n&&(e.TgZ(0,"div",20),e._uU(1),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Oqu(t.pageSize)}}function Eye(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e._uU(2),e.qZA(),e.YNc(3,wye,3,6,"mat-form-field",14),e.YNc(4,kye,2,1,"div",15),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.hij(" ",t._intl.itemsPerPageLabel," "),e.xp6(1),e.Q6J("ngIf",t._displayedPageSizeOptions.length>1),e.xp6(1),e.Q6J("ngIf",t._displayedPageSizeOptions.length<=1)}}function Mye(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",21),e.NdJ("click",function(){return e.CHM(t),e.oxw().firstPage()}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",22),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),e.uIk("aria-label",i._intl.firstPageLabel)}}function Aye(n,r){if(1&n){var t=e.EpF();e.O4$(),e.kcU(),e.TgZ(0,"button",23),e.NdJ("click",function(){return e.CHM(t),e.oxw().lastPage()}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",24),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),e.uIk("aria-label",i._intl.lastPageLabel)}}var FS=function(){var n=function r(){(0,g.Z)(this,r),this.changes=new Pn.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(t,i,o){if(0==o||0==i)return"0 of ".concat(o);var a=t*i,s=a<(o=Math.max(o,0))?Math.min(a+i,o):a+i;return"".concat(a+1," \u2013 ").concat(s," of ").concat(o)}};return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({factory:function(){return new n},token:n,providedIn:"root"}),n}(),Oye={provide:FS,deps:[[new e.FiY,new e.tp0,FS]],useFactory:function(n){return n||new FS}},Iye=new e.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),Rye=(0,un.Id)((0,un.dB)(function(){return function n(){(0,g.Z)(this,n)}}())),Nye=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s){var u;if((0,g.Z)(this,i),(u=t.call(this))._intl=o,u._changeDetectorRef=a,u._pageIndex=0,u._length=0,u._pageSizeOptions=[],u._hidePageSize=!1,u._showFirstLastButtons=!1,u.page=new e.vpe,u._intlChanges=o.changes.subscribe(function(){return u._changeDetectorRef.markForCheck()}),s){var p=s.pageSize,m=s.pageSizeOptions,b=s.hidePageSize,R=s.showFirstLastButtons;null!=p&&(u._pageSize=p),null!=m&&(u._pageSizeOptions=m),null!=b&&(u._hidePageSize=b),null!=R&&(u._showFirstLastButtons=R)}return u}return(0,k.Z)(i,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(a){this._pageIndex=Math.max((0,On.su)(a),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(a){this._length=(0,On.su)(a),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(a){this._pageSize=Math.max((0,On.su)(a),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(a){this._pageSizeOptions=(a||[]).map(function(s){return(0,On.su)(s)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(a){this._hidePageSize=(0,On.Ig)(a)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(a){this._showFirstLastButtons=(0,On.Ig)(a)}},{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var a=this.pageIndex;this.pageIndex++,this._emitPageEvent(a)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var a=this.pageIndex;this.pageIndex--,this._emitPageEvent(a)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var a=this.pageIndex;this.pageIndex=0,this._emitPageEvent(a)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var a=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(a)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var a=this.getNumberOfPages()-1;return this.pageIndex<a&&0!=this.pageSize}},{key:"getNumberOfPages",value:function(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}},{key:"_changePageSize",value:function(a){var u=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/a)||0,this.pageSize=a,this._emitPageEvent(u)}},{key:"_nextButtonsDisabled",value:function(){return this.disabled||!this.hasNextPage()}},{key:"_previousButtonsDisabled",value:function(){return this.disabled||!this.hasPreviousPage()}},{key:"_updateDisplayedPageSizeOptions",value: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,s){return a-s}),this._changeDetectorRef.markForCheck())}},{key:"_emitPageEvent",value:function(a){this.page.emit({previousPageIndex:a,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}]),i}(Rye);return n.\u0275fac=function(t){return new(t||n)(e.Y36(FS),e.Y36(e.sBO),e.Y36(void 0))},n.\u0275dir=e.lG2({type:n,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[e.qOj]}),n}(),zj=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s){var u;return(0,g.Z)(this,i),u=t.call(this,o,a,s),s&&null!=s.formFieldAppearance&&(u._formFieldAppearance=s.formFieldAppearance),u}return i}(Nye);return n.\u0275fac=function(t){return new(t||n)(e.Y36(FS),e.Y36(e.sBO),e.Y36(Iye,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[e.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.YNc(2,Eye,5,3,"div",2),e.TgZ(3,"div",3),e.TgZ(4,"div",4),e._uU(5),e.qZA(),e.YNc(6,Mye,3,5,"button",5),e.TgZ(7,"button",6),e.NdJ("click",function(){return i.previousPage()}),e.O4$(),e.TgZ(8,"svg",7),e._UZ(9,"path",8),e.qZA(),e.qZA(),e.kcU(),e.TgZ(10,"button",9),e.NdJ("click",function(){return i.nextPage()}),e.O4$(),e.TgZ(11,"svg",7),e._UZ(12,"path",10),e.qZA(),e.qZA(),e.YNc(13,Aye,3,5,"button",11),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(2),e.Q6J("ngIf",!i.hidePageSize),e.xp6(3),e.hij(" ",i._intl.getRangeLabel(i.pageIndex,i.pageSize,i.length)," "),e.xp6(1),e.Q6J("ngIf",i.showFirstLastButtons),e.xp6(1),e.Q6J("matTooltip",i._intl.previousPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),e.uIk("aria-label",i._intl.previousPageLabel),e.xp6(3),e.Q6J("matTooltip",i._intl.nextPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),e.uIk("aria-label",i._intl.nextPageLabel),e.xp6(3),e.Q6J("ngIf",i.showFirstLastButtons))},directives:[At.O5,An,Xa,Hn.KE,fi.gD,At.sg,un.ey],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),n}(),Zye=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[Oye],imports:[[At.ez,c2,fi.LD,uq,un.BQ]]}),n}(),Lye=f(52402),Wj=function(){function n(r){this.dialogRef=r}return n.prototype.ngOnInit=function(){},n.prototype.onNoClick=function(){this.dialogRef.close(!1)},n.prototype.onYesClick=function(){this.dialogRef.close(!0)},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-information-dialog"]],decls:7,vars:1,consts:[["mat-dialog-actions",""],["mat-button","","color","accent",1,"cancelButton",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"confirmButton",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"span"),e._uU(1),e.qZA(),e.TgZ(2,"div",0),e.TgZ(3,"button",1),e.NdJ("click",function(){return i.onNoClick()}),e._uU(4,"No"),e.qZA(),e.TgZ(5,"button",2),e.NdJ("click",function(){return i.onYesClick()}),e._uU(6," Yes "),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Oqu(i.confirmationMessage))},directives:[ti,An],styles:[""]}),n}();function Fye(n,r){if(1&n&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&n){var t=e.oxw();e.xp6(1),e.hij("Adapters: ",t.appliance.qemu.adapters,"")}}function Bye(n,r){if(1&n&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&n){var t=e.oxw();e.xp6(1),e.hij("Console type: ",t.appliance.qemu.console_type,"")}}var Uye=function(){function n(r,t){this.dialogRef=r,this.data=t}return n.prototype.onNoClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(dd))},n.\u0275cmp=e.Xpm({type:n,selectors:[["appliance-info-dialog"]],decls:15,vars:6,consts:[[1,"title-container"],["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","tabindex","-1","color","accent",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"h1",1),e._uU(2),e.qZA(),e.qZA(),e.TgZ(3,"div",2),e.TgZ(4,"div"),e._uU(5),e.qZA(),e.TgZ(6,"div"),e._uU(7),e.qZA(),e.TgZ(8,"div"),e._uU(9),e.qZA(),e.YNc(10,Fye,2,1,"div",3),e.YNc(11,Bye,2,1,"div",3),e.qZA(),e.TgZ(12,"div",4),e.TgZ(13,"button",5),e.NdJ("click",function(){return i.onNoClick()}),e._uU(14,"Close"),e.qZA(),e.qZA()),2&t&&(e.xp6(2),e.Oqu(i.appliance.name),e.xp6(3),e.hij("Vendor: ",i.appliance.vendor_name,""),e.xp6(2),e.hij("Status: ",i.appliance.status,""),e.xp6(2),e.hij("Maintainer: ",i.appliance.maintainer,""),e.xp6(1),e.Q6J("ngIf",i.appliance.qemu),e.xp6(1),e.Q6J("ngIf",i.appliance.qemu))},directives:[ri,J_,At.O5,ti,An],encapsulation:2}),n}(),Hye=function(n,r){return function(t){return(0,sS.H)(500).pipe((0,Hs.w)(function(){return r.list(n)}),(0,kr.U)(function(i){return i.find(function(o){return o.name===t.value})?{templateExist:!0}:null}))}};function Vye(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Template name is required"),e.qZA())}function qye(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Template name is incorrect"),e.qZA())}function jye(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Template with this name exists"),e.qZA())}var zye=function(n){return{"is-invalid":n}},B2=function(){function n(r,t,i,o,a,s,u,p){this.dialogRef=r,this.router=t,this.dialog=i,this.toasterService=o,this.formBuilder=a,this.templateNameValidator=s,this.templateService=u,this.data=p}return n.prototype.ngOnInit=function(){var r=this;this.templateNameForm=this.formBuilder.group({templateName:new ne.NI(this.data.name,[ne.kI.required,this.templateNameValidator.get],[Hye(this.server,this.templateService)])}),setTimeout(function(){r.templateNameForm.controls.templateName.markAsTouched()},100)},Object.defineProperty(n.prototype,"form",{get:function(){return this.templateNameForm.controls},enumerable:!1,configurable:!0}),n.prototype.onAddClick=function(){var r=this;this.templateNameForm.invalid?this.toasterService.error("Please enter correct name for new template"):this.templateService.list(this.server).subscribe(function(t){var i=r.templateNameForm.controls.templateName.value;t.find(function(a){return a.name===i})?r.toasterService.error("Template with this name exists"):r.dialogRef.close(r.templateNameForm.controls.templateName.value)})},n.prototype.onNoClick=function(){this.dialogRef.close()},n.prototype.onKeyDown=function(r){"Enter"===r.key&&this.onAddClick()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(Er),e.Y36(no),e.Y36(er),e.Y36(ne.qu),e.Y36(_p),e.Y36(Q_),e.Y36(dd))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-template-name-dialog"]],features:[e._Bn([_p])],decls:13,vars:7,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Please enter name for the new template"),e.qZA(),e.TgZ(2,"form",1),e.TgZ(3,"mat-form-field",2),e.TgZ(4,"input",3),e.NdJ("keydown",function(a){return i.onKeyDown(a)}),e.qZA(),e.YNc(5,Vye,2,0,"mat-error",4),e.YNc(6,qye,2,0,"mat-error",4),e.YNc(7,jye,2,0,"mat-error",4),e.qZA(),e.TgZ(8,"div",5),e.TgZ(9,"button",6),e.NdJ("click",function(){return i.onNoClick()}),e._uU(10,"Cancel"),e.qZA(),e.TgZ(11,"button",7),e.NdJ("click",function(){return i.onAddClick()}),e._uU(12," Add template "),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(2),e.Q6J("formGroup",i.templateNameForm),e.xp6(2),e.Q6J("ngClass",e.VKq(5,zye,null==i.form.templateName?null:i.form.templateName.errors)),e.xp6(1),e.Q6J("ngIf",(null==i.form.templateName?null:i.form.templateName.touched)&&(null==i.form.templateName?null:i.form.templateName.errors)&&(null==i.form.templateName?null:i.form.templateName.errors.required)),e.xp6(1),e.Q6J("ngIf",(null==i.form.templateName?null:i.form.templateName.errors)&&(null==i.form.templateName?null:i.form.templateName.errors.invalidName)),e.xp6(1),e.Q6J("ngIf",(null==i.form.templateName?null:i.form.templateName.errors)&&(null==i.form.templateName?null:i.form.templateName.errors.templateExist)))},directives:[ri,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,At.mk,At.O5,ti,An,Hn.TO],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]}),n}(),Gj=function(){function n(r){this.httpServer=r}return n.prototype.getAppliances=function(r){return this.httpServer.get(r,"/appliances")},n.prototype.getAppliance=function(r,t){return this.httpServer.get(r,t)},n.prototype.getUploadPath=function(r,t,i){return r.protocol+"//"+r.host+":"+r.port+"/v2/compute/"+t+"/images/"+i},n.prototype.updateAppliances=function(r){return this.httpServer.get(r,"/appliances?update=yes")},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Wye=["mat-sort-header",""];function Gye(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",3),e.NdJ("@arrowPosition.start",function(){return e.CHM(t),e.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return e.CHM(t),e.oxw()._disableViewStateAnimation=!1}),e._UZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"div",6),e._UZ(4,"div",7),e._UZ(5,"div",8),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("@arrowOpacity",i._getArrowViewState())("@arrowPosition",i._getArrowViewState())("@allowChildren",i._getArrowDirectionState()),e.xp6(2),e.Q6J("@indicator",i._getArrowDirectionState()),e.xp6(1),e.Q6J("@leftPointer",i._getArrowDirectionState()),e.xp6(1),e.Q6J("@rightPointer",i._getArrowDirectionState())}}var Yye=["*"],Jye=new e.OlP("MAT_SORT_DEFAULT_OPTIONS"),Qye=(0,un.dB)((0,un.Id)(function(){return function n(){(0,g.Z)(this,n)}}())),BS=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o){var a;return(0,g.Z)(this,i),(a=t.call(this))._defaultOptions=o,a.sortables=new Map,a._stateChanges=new Pn.xQ,a.start="asc",a._direction="",a.sortChange=new e.vpe,a}return(0,k.Z)(i,[{key:"direction",get:function(){return this._direction},set:function(a){this._direction=a}},{key:"disableClear",get:function(){return this._disableClear},set:function(a){this._disableClear=(0,On.Ig)(a)}},{key:"register",value:function(a){this.sortables.set(a.id,a)}},{key:"deregister",value:function(a){this.sortables.delete(a.id)}},{key:"sort",value:function(a){this.active!=a.id?(this.active=a.id,this.direction=a.start?a.start:this.start):this.direction=this.getNextSortDirection(a),this.sortChange.emit({active:this.active,direction:this.direction})}},{key:"getNextSortDirection",value:function(a){var s,u,p;if(!a)return"";var m=null!==(u=null!==(s=null==a?void 0:a.disableClear)&&void 0!==s?s:this.disableClear)&&void 0!==u?u:!!(null===(p=this._defaultOptions)||void 0===p?void 0:p.disableClear),b=function(n,r){var t=["asc","desc"];return"desc"==n&&t.reverse(),r||t.push(""),t}(a.start||this.start,m),R=b.indexOf(this.direction)+1;return R>=b.length&&(R=0),b[R]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(Qye);return n.\u0275fac=function(t){return new(t||n)(e.Y36(Jye,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[e.qOj,e.TTD]}),n}(),$f=un.mZ.ENTERING+" "+un.yN.STANDARD_CURVE,sy={indicator:(0,an.X$)("indicator",[(0,an.SB)("active-asc, asc",(0,an.oB)({transform:"translateY(0px)"})),(0,an.SB)("active-desc, desc",(0,an.oB)({transform:"translateY(10px)"})),(0,an.eR)("active-asc <=> active-desc",(0,an.jt)($f))]),leftPointer:(0,an.X$)("leftPointer",[(0,an.SB)("active-asc, asc",(0,an.oB)({transform:"rotate(-45deg)"})),(0,an.SB)("active-desc, desc",(0,an.oB)({transform:"rotate(45deg)"})),(0,an.eR)("active-asc <=> active-desc",(0,an.jt)($f))]),rightPointer:(0,an.X$)("rightPointer",[(0,an.SB)("active-asc, asc",(0,an.oB)({transform:"rotate(45deg)"})),(0,an.SB)("active-desc, desc",(0,an.oB)({transform:"rotate(-45deg)"})),(0,an.eR)("active-asc <=> active-desc",(0,an.jt)($f))]),arrowOpacity:(0,an.X$)("arrowOpacity",[(0,an.SB)("desc-to-active, asc-to-active, active",(0,an.oB)({opacity:1})),(0,an.SB)("desc-to-hint, asc-to-hint, hint",(0,an.oB)({opacity:.54})),(0,an.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,an.oB)({opacity:0})),(0,an.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,an.jt)("0ms")),(0,an.eR)("* <=> *",(0,an.jt)($f))]),arrowPosition:(0,an.X$)("arrowPosition",[(0,an.eR)("* => desc-to-hint, * => desc-to-active",(0,an.jt)($f,(0,an.F4)([(0,an.oB)({transform:"translateY(-25%)"}),(0,an.oB)({transform:"translateY(0)"})]))),(0,an.eR)("* => hint-to-desc, * => active-to-desc",(0,an.jt)($f,(0,an.F4)([(0,an.oB)({transform:"translateY(0)"}),(0,an.oB)({transform:"translateY(25%)"})]))),(0,an.eR)("* => asc-to-hint, * => asc-to-active",(0,an.jt)($f,(0,an.F4)([(0,an.oB)({transform:"translateY(25%)"}),(0,an.oB)({transform:"translateY(0)"})]))),(0,an.eR)("* => hint-to-asc, * => active-to-asc",(0,an.jt)($f,(0,an.F4)([(0,an.oB)({transform:"translateY(0)"}),(0,an.oB)({transform:"translateY(-25%)"})]))),(0,an.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,an.oB)({transform:"translateY(0)"})),(0,an.SB)("hint-to-desc, active-to-desc, desc",(0,an.oB)({transform:"translateY(-25%)"})),(0,an.SB)("hint-to-asc, active-to-asc, asc",(0,an.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,an.X$)("allowChildren",[(0,an.eR)("* <=> *",[(0,an.IO)("@*",(0,an.pV)(),{optional:!0})])])},U2=function(){var n=function r(){(0,g.Z)(this,r),this.changes=new Pn.xQ};return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({factory:function(){return new n},token:n,providedIn:"root"}),n}(),$ye={provide:U2,deps:[[new e.FiY,new e.tp0,U2]],useFactory:function(n){return n||new U2}},ebe=(0,un.Id)(function(){return function n(){(0,g.Z)(this,n)}}()),Yj=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u,p,m){var b;return(0,g.Z)(this,i),(b=t.call(this))._intl=o,b._changeDetectorRef=a,b._sort=s,b._columnDef=u,b._focusMonitor=p,b._elementRef=m,b._showIndicatorHint=!1,b._viewState={},b._arrowDirection="",b._disableViewStateAnimation=!1,b.arrowPosition="after",b._handleStateChanges(),b}return(0,k.Z)(i,[{key:"disableClear",get:function(){return this._disableClear},set:function(a){this._disableClear=(0,On.Ig)(a)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(s){var u=!!s;u!==a._showIndicatorHint&&(a._setIndicatorHintVisible(u),a._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(a){this._isDisabled()&&a||(this._showIndicatorHint=a,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(a){this._viewState=a||{},this._disableViewStateAnimation&&(this._viewState={toState:a.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(a){!this._isDisabled()&&(a.keyCode===Yr.L_||a.keyCode===Yr.K5)&&(a.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var a=this._viewState.fromState;return(a?"".concat(a,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_handleStateChanges",value:function(){var a=this;this._rerenderSubscription=(0,go.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){a._isSorted()&&(a._updateArrowDirection(),("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()})}}]),i}(ebe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(U2),e.Y36(e.sBO),e.Y36(BS,8),e.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),e.Y36(xi.tE),e.Y36(e.SBq))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,i){1&t&&e.NdJ("click",function(){return i._handleClick()})("keydown",function(a){return i._handleKeydown(a)})("mouseenter",function(){return i._setIndicatorHintVisible(!0)})("mouseleave",function(){return i._setIndicatorHintVisible(!1)}),2&t&&(e.uIk("aria-sort",i._getAriaSortAttribute()),e.ekj("mat-sort-header-disabled",i._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[e.qOj],attrs:Wye,ngContentSelectors:Yye,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,i){1&t&&(e.F$t(),e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA(),e.YNc(3,Gye,6,6,"div",2),e.qZA()),2&t&&(e.ekj("mat-sort-header-sorted",i._isSorted())("mat-sort-header-position-before","before"==i.arrowPosition),e.uIk("tabindex",i._isDisabled()?null:0),e.xp6(3),e.Q6J("ngIf",i._renderArrow()))},directives:[At.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[sy.indicator,sy.leftPointer,sy.rightPointer,sy.arrowOpacity,sy.arrowPosition,sy.allowChildren]},changeDetection:0}),n}(),tbe=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[$ye],imports:[[At.ez,un.BQ]]}),n}(),nbe=function(){function n(){}return n.prototype.transform=function(r,t){return r?t?(t=t.toLowerCase(),r.filteredData.filter(function(i){return i.name.toLowerCase().includes(t)})):r:[]},n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=e.Yjl({name:"datasourcefilter",type:n,pure:!0}),n}(),rbe=["stepper"];function ibe(n,r){1&n&&e._uU(0,"Please select how you want to create new template")}function obe(n,r){if(1&n&&e._uU(0),2&n){var t=e.oxw();e.Oqu(t.actionTitle)}}function abe(n,r){if(1&n&&(e.TgZ(0,"mat-option",33),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function sbe(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Name "),e.qZA())}function lbe(n,r){if(1&n&&(e.TgZ(0,"mat-cell"),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.hij(" ",t.name," ")}}function ube(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Emulator "),e.qZA())}function cbe(n,r){if(1&n&&(e.TgZ(0,"mat-cell"),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.hij(" ",t.emulator," ")}}function dbe(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Vendor "),e.qZA())}function pbe(n,r){if(1&n&&(e.TgZ(0,"mat-cell"),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.hij(" ",t.vendor_name," ")}}function fbe(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Actions "),e.qZA())}function hbe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-cell",34),e.TgZ(1,"button",35),e.NdJ("click",function(){var a=e.CHM(t).$implicit;return e.oxw().install(a)}),e.TgZ(2,"mat-icon",36),e._uU(3,"archive"),e.qZA(),e.qZA(),e.TgZ(4,"button",37),e.NdJ("click",function(){var a=e.CHM(t).$implicit;return e.oxw().showInfo(a)}),e.TgZ(5,"mat-icon",38),e._uU(6,"info"),e.qZA(),e.qZA(),e.qZA()}}function mbe(n,r){1&n&&e._UZ(0,"mat-header-row")}function vbe(n,r){1&n&&e._UZ(0,"mat-row")}function gbe(n,r){if(1&n&&e._uU(0),2&n){var t=e.oxw(2);e.Oqu(t.secondActionTitle)}}function _be(n,r){if(1&n&&(e.TgZ(0,"mat-option",33),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t.path," ")}}function ybe(n,r){1&n&&(e.TgZ(0,"span"),e.TgZ(1,"mat-icon",52),e._uU(2,"check"),e.qZA(),e.qZA())}function bbe(n,r){1&n&&(e.TgZ(0,"span"),e.TgZ(1,"mat-icon",53),e._uU(2,"close"),e.qZA(),e.qZA())}function Cbe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",48),e.TgZ(1,"span"),e._uU(2),e.qZA(),e.TgZ(3,"div"),e.YNc(4,ybe,3,0,"span",32),e.YNc(5,bbe,3,0,"span",32),e.TgZ(6,"input",49,50),e.NdJ("change",function(s){e.CHM(t);var u=e.oxw().$implicit;return e.oxw(3).importImage(s,u.images.hda_disk_image)}),e.qZA(),e.TgZ(8,"button",51),e.NdJ("click",function(){return e.CHM(t),e.MAs(7).click()}),e._uU(9,"Import"),e.qZA(),e.TgZ(10,"button",51),e.NdJ("click",function(){e.CHM(t);var s=e.oxw().$implicit;return e.oxw(3).downloadImageFromVersion(s.images.hda_disk_image)}),e._uU(11," Download "),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw().$implicit,o=e.oxw(3);e.xp6(2),e.hij(" ",i.images.hda_disk_image," "),e.xp6(2),e.Q6J("ngIf",o.checkImageFromVersion(i.images.hda_disk_image)),e.xp6(1),e.Q6J("ngIf",!o.checkImageFromVersion(i.images.hda_disk_image)),e.xp6(1),e.Q6J("uploader",o.uploaderImage)}}function Sbe(n,r){1&n&&(e.TgZ(0,"span"),e.TgZ(1,"mat-icon",52),e._uU(2,"check"),e.qZA(),e.qZA())}function Tbe(n,r){1&n&&(e.TgZ(0,"span"),e.TgZ(1,"mat-icon",53),e._uU(2,"close"),e.qZA(),e.qZA())}function xbe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",48),e.TgZ(1,"span"),e._uU(2),e.qZA(),e.TgZ(3,"div"),e.YNc(4,Sbe,3,0,"span",32),e.YNc(5,Tbe,3,0,"span",32),e.TgZ(6,"input",49,54),e.NdJ("change",function(s){e.CHM(t);var u=e.oxw().$implicit;return e.oxw(3).importImage(s,u.images.hdb_disk_image)}),e.qZA(),e.TgZ(8,"button",51),e.NdJ("click",function(){return e.CHM(t),e.MAs(7).click()}),e._uU(9,"Import"),e.qZA(),e.TgZ(10,"button",51),e.NdJ("click",function(){e.CHM(t);var s=e.oxw().$implicit;return e.oxw(3).downloadImageFromVersion(s.images.hdb_disk_image)}),e._uU(11," Download "),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw().$implicit,o=e.oxw(3);e.xp6(2),e.hij(" ",i.images.hdb_disk_image," "),e.xp6(2),e.Q6J("ngIf",o.checkImageFromVersion(i.images.hdb_disk_image)),e.xp6(1),e.Q6J("ngIf",!o.checkImageFromVersion(i.images.hdb_disk_image)),e.xp6(1),e.Q6J("uploader",o.uploaderImage)}}function wbe(n,r){1&n&&(e.TgZ(0,"span"),e.TgZ(1,"mat-icon",52),e._uU(2,"check"),e.qZA(),e.qZA())}function kbe(n,r){1&n&&(e.TgZ(0,"span"),e.TgZ(1,"mat-icon",53),e._uU(2,"close"),e.qZA(),e.qZA())}function Ebe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",48),e.TgZ(1,"span"),e._uU(2),e.qZA(),e.TgZ(3,"div"),e.YNc(4,wbe,3,0,"span",32),e.YNc(5,kbe,3,0,"span",32),e.TgZ(6,"input",49,55),e.NdJ("change",function(s){e.CHM(t);var u=e.oxw().$implicit;return e.oxw(3).importImage(s,u.images.cdrom_image)}),e.qZA(),e.TgZ(8,"button",51),e.NdJ("click",function(){return e.CHM(t),e.MAs(7).click()}),e._uU(9,"Import"),e.qZA(),e.TgZ(10,"button",51),e.NdJ("click",function(){e.CHM(t);var s=e.oxw().$implicit;return e.oxw(3).downloadImageFromVersion(s.images.cdrom_image)}),e._uU(11," Download "),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw().$implicit,o=e.oxw(3);e.xp6(2),e.hij(" ",i.images.cdrom_image," "),e.xp6(2),e.Q6J("ngIf",o.checkImageFromVersion(i.images.cdrom_image)),e.xp6(1),e.Q6J("ngIf",!o.checkImageFromVersion(i.images.cdrom_image)),e.xp6(1),e.Q6J("uploader",o.uploaderImage)}}function Mbe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"div",45),e.TgZ(2,"span"),e._uU(3),e.qZA(),e.TgZ(4,"div"),e.TgZ(5,"button",46),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).createQemuTemplateFromVersion(u)}),e._uU(6," Create "),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,Cbe,12,4,"div",47),e.YNc(8,xbe,12,4,"div",47),e.YNc(9,Ebe,12,4,"div",47),e.qZA()}if(2&n){var i=r.$implicit,o=e.oxw(3);e.xp6(3),e.AsE("",o.applianceToInstall.name," version ",i.name,""),e.xp6(4),e.Q6J("ngIf",i.images.hda_disk_image),e.xp6(1),e.Q6J("ngIf",i.images.hdb_disk_image),e.xp6(1),e.Q6J("ngIf",i.images.cdrom_image)}}var Jj=function(){return{standalone:!0}};function Abe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"div"),e._uU(2," Server type"),e._UZ(3,"br"),e.TgZ(4,"mat-radio-group",4),e.TgZ(5,"mat-radio-button",39),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).setServerType("local")}),e._uU(6,"Install the appliance locally"),e.qZA(),e.TgZ(7,"mat-radio-button",40),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).setServerType("gns3 vm")}),e._uU(8,"Install the appliance on the GNS3 VM"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div"),e._uU(10," Qemu binary"),e._UZ(11,"br"),e.TgZ(12,"mat-select",41),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).selectedBinary=a}),e.YNc(13,_be,2,2,"mat-option",14),e.qZA(),e.qZA(),e.TgZ(14,"div"),e._uU(15," Install required files "),e.TgZ(16,"button",42),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).refreshImages()}),e.TgZ(17,"mat-icon",43),e._uU(18,"refresh"),e.qZA(),e.qZA(),e._UZ(19,"br"),e.TgZ(20,"div"),e.YNc(21,Mbe,10,5,"div",44),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(5),e.Q6J("disabled",!i.isLinuxPlatform)("checked",!i.isGns3VmChosen),e.xp6(2),e.Q6J("disabled",!i.isGns3VmAvailable)("checked",i.isGns3VmChosen),e.xp6(5),e.Q6J("ngModel",i.selectedBinary)("ngModelOptions",e.DdM(8,Jj)),e.xp6(1),e.Q6J("ngForOf",i.qemuBinaries),e.xp6(8),e.Q6J("ngForOf",i.applianceToInstall.versions)}}function Dbe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"div"),e._uU(2," Server type"),e._UZ(3,"br"),e.TgZ(4,"mat-radio-group",4),e.TgZ(5,"mat-radio-button",39),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).setServerType("local")}),e._uU(6,"Install the appliance locally"),e.qZA(),e.TgZ(7,"mat-radio-button",40),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).setServerType("gns3 vm")}),e._uU(8,"Install the appliance on the GNS3 VM"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"button",29),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).createDockerTemplate()}),e._uU(10," Create docker template "),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(5),e.Q6J("disabled",!i.isLinuxPlatform)("checked",!i.isGns3VmChosen),e.xp6(2),e.Q6J("disabled",!i.isGns3VmAvailable)("checked",i.isGns3VmChosen)}}function Obe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-list-item"),e.TgZ(1,"div",45),e.TgZ(2,"div"),e._uU(3),e.qZA(),e.TgZ(4,"div"),e.TgZ(5,"input",49,50),e.NdJ("change",function(s){var p=e.CHM(t).$implicit;return e.oxw(3).importImage(s,p.filename)}),e.qZA(),e.TgZ(7,"button",51),e.NdJ("click",function(){return e.CHM(t),e.MAs(6).click()}),e._uU(8,"Import"),e.qZA(),e.TgZ(9,"button",46),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).createIosTemplate(u)}),e._uU(10," Create "),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.oxw(3);e.xp6(3),e.hij(" ",i.filename," "),e.xp6(2),e.Q6J("uploader",o.uploaderImage)}}function Pbe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"div"),e._uU(2," Server type"),e._UZ(3,"br"),e.TgZ(4,"mat-radio-group",4),e.TgZ(5,"mat-radio-button",56),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).setServerType("local")}),e._uU(6,"Install the appliance locally"),e.qZA(),e.TgZ(7,"mat-radio-button",40),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).setServerType("gns3 vm")}),e._uU(8,"Install the appliance on the GNS3 VM"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div"),e._uU(10," Install required files "),e.TgZ(11,"button",42),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).refreshImages()}),e.TgZ(12,"mat-icon",43),e._uU(13,"refresh"),e.qZA(),e.qZA(),e._UZ(14,"br"),e.TgZ(15,"mat-list"),e.YNc(16,Obe,11,2,"mat-list-item",44),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(5),e.Q6J("checked",!i.isGns3VmChosen),e.xp6(2),e.Q6J("disabled",!i.isGns3VmAvailable)("checked",i.isGns3VmChosen),e.xp6(9),e.Q6J("ngForOf",i.applianceToInstall.images)}}function Ibe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-list-item"),e.TgZ(1,"div",45),e.TgZ(2,"div"),e._uU(3),e.qZA(),e.TgZ(4,"div"),e.TgZ(5,"input",49,50),e.NdJ("change",function(){var u=e.CHM(t).$implicit,p=e.oxw(3);return p.importImage(p.$,u.filename)}),e.qZA(),e.TgZ(7,"button",51),e.NdJ("click",function(){return e.CHM(t),e.MAs(6).click()}),e._uU(8,"Import"),e.qZA(),e.TgZ(9,"button",46),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).createIouTemplate(u)}),e._uU(10," Create "),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.oxw(3);e.xp6(3),e.hij(" ",i.filename," "),e.xp6(2),e.Q6J("uploader",o.uploaderImage)}}function Rbe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"div"),e._uU(2," Server type"),e._UZ(3,"br"),e.TgZ(4,"mat-radio-group",4),e.TgZ(5,"mat-radio-button",39),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).setServerType("local")}),e._uU(6,"Install the appliance locally"),e.qZA(),e.TgZ(7,"mat-radio-button",40),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).setServerType("gns3 vm")}),e._uU(8,"Install the appliance on the GNS3 VM"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div"),e._uU(10," Install required files "),e.TgZ(11,"button",42),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).refreshImages()}),e.TgZ(12,"mat-icon",43),e._uU(13,"refresh"),e.qZA(),e.qZA(),e._UZ(14,"br"),e.TgZ(15,"mat-list"),e.YNc(16,Ibe,11,2,"mat-list-item",44),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(5),e.Q6J("disabled",!i.isLinuxPlatform)("checked",!i.isGns3VmChosen),e.xp6(2),e.Q6J("disabled",!i.isGns3VmAvailable)("checked",i.isGns3VmChosen),e.xp6(9),e.Q6J("ngForOf",i.applianceToInstall.images)}}function Nbe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-step"),e.YNc(1,gbe,1,1,"ng-template",3),e.TgZ(2,"mat-card",9),e._uU(3," Please configure GNS3 VM to install selected appliance "),e.qZA(),e.TgZ(4,"mat-card",9),e.YNc(5,Abe,22,9,"div",32),e.YNc(6,Dbe,11,4,"div",32),e.YNc(7,Pbe,17,4,"div",32),e.YNc(8,Rbe,17,5,"div",32),e.qZA(),e.TgZ(9,"div"),e.TgZ(10,"button",30),e._uU(11,"Back"),e.qZA(),e.TgZ(12,"button",8),e.NdJ("click",function(){return e.CHM(t),e.oxw().onCloseClick()}),e._uU(13,"Cancel"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(2),e.Q6J("hidden",!(!i.isLinuxPlatform&&!i.isGns3VmAvailable&&!i.applianceToInstall.dynamips)),e.xp6(2),e.Q6J("hidden",!(i.isLinuxPlatform||i.isGns3VmAvailable||i.applianceToInstall.dynamips)),e.xp6(1),e.Q6J("ngIf",i.applianceToInstall.qemu),e.xp6(1),e.Q6J("ngIf",i.applianceToInstall.docker),e.xp6(1),e.Q6J("ngIf",i.applianceToInstall.dynamips),e.xp6(1),e.Q6J("ngIf",i.applianceToInstall.iou)}}var Zbe=function(){return[5,10,20,50,100]},Lbe=function(){function n(r,t,i,o,a,s,u,p,m,b,R,F,G){this.dialogRef=r,this.applianceService=t,this.changeDetector=i,this.toasterService=o,this.qemuService=a,this.dockerService=s,this.iosService=u,this.iouService=p,this.templateService=m,this.dialog=b,this.computeService=R,this.changeDetectorRef=F,this.progressService=G,this.action="install",this.actionTitle="Install appliance from server",this.secondActionTitle="Appliance settings",this.searchText="",this.allAppliances=[],this.appliances=[],this.isGns3VmAvailable=!1,this.isLinuxPlatform=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!1,this.qemuBinaries=[],this.categories=["all categories","router","multilayer_switch","guest","firewall"],this.category="all categories",this.displayedColumns=["name","emulator","vendor","actions"],this.qemuImages=[],this.iosImages=[],this.iouImages=[],this.templates=[]}return n.prototype.ngOnInit=function(){var r=this;this.templateService.list(this.server).subscribe(function(t){r.templates=t}),this.computeService.getComputes(this.server).subscribe(function(t){t.forEach(function(i){"vm"===i.compute_id&&(r.isGns3VmAvailable=!0,r.isGns3VmChosen=!0),"linux"===i.capabilities.platform&&(r.isLinuxPlatform=!0)})}),this.qemuService.getImages(this.server).subscribe(function(t){r.qemuImages=t}),this.iosService.getImages(this.server).subscribe(function(t){r.iosImages=t}),this.iouService.getImages(this.server).subscribe(function(t){r.iouImages=t}),this.applianceService.getAppliances(this.server).subscribe(function(t){r.appliances=t,r.appliances.forEach(function(i){i.docker&&(i.emulator="Docker"),i.dynamips&&(i.emulator="Dynamips"),i.iou&&(i.emulator="Iou"),i.qemu&&(i.emulator="Qemu")}),r.allAppliances=t,r.dataSource=new Oq(r.allAppliances),r.dataSource.paginator=r.paginator}),this.qemuService.getBinaries(this.server).subscribe(function(t){r.qemuBinaries=t}),this.uploader=new Wm({}),this.uploader.onAfterAddingFile=function(t){t.withCredentials=!1},this.uploader.onErrorItem=function(t,i,o,a){r.toasterService.error("An error has occured")},this.uploader.onSuccessItem=function(t,i,o,a){r.toasterService.success("Appliance imported succesfully"),r.getAppliance(t.url)},this.uploaderImage=new Wm({}),this.uploaderImage.onAfterAddingFile=function(t){t.withCredentials=!1},this.uploaderImage.onErrorItem=function(t,i,o,a){r.toasterService.error("An error has occured"),r.progressService.deactivate(),r.uploaderImage.clearQueue()},this.uploaderImage.onSuccessItem=function(t,i,o,a){r.toasterService.success("Image imported succesfully"),r.refreshImages(),r.progressService.deactivate(),r.uploaderImage.clearQueue()}},n.prototype.updateAppliances=function(){var r=this;this.progressService.activate(),this.applianceService.updateAppliances(this.server).subscribe(function(t){r.appliances=t,r.progressService.deactivate(),r.toasterService.success("Appliances are up-to-date.")},function(t){r.progressService.deactivate(),r.toasterService.error("Appliances were not updated correctly.")})},n.prototype.refreshImages=function(){var r=this;this.qemuService.getImages(this.server).subscribe(function(t){r.qemuImages=t}),this.iosService.getImages(this.server).subscribe(function(t){r.iosImages=t}),this.iouService.getImages(this.server).subscribe(function(t){r.iouImages=t})},n.prototype.getAppliance=function(r){var t=this,i=r.split("/v2");this.applianceService.getAppliance(this.server,i[i.length-1]).subscribe(function(a){t.applianceToInstall=a,setTimeout(function(){t.stepper.next()},100)})},n.prototype.addAppliance=function(r){var u,t=this,o=(r.target.files[0].name.split("-"),r.target.files[0].name),a=r.target.files[0],s=new FileReader;s.onloadend=function(){var p=JSON.parse(s.result);p.docker&&(u="docker"),p.dynamips&&(u="dynamips"),p.iou&&(u="iou"),p.qemu&&(u="qemu");var m=t.applianceService.getUploadPath(t.server,u,o);t.uploader.queue.forEach(function(R){return R.url=m});var b=t.uploader.queue[0];b.options.disableMultipart=!0,t.uploader.uploadItem(b)},s.readAsText(a)},n.prototype.filterAppliances=function(r){var t=this,i=this.allAppliances.filter(function(o){return o.name.toLowerCase().includes(t.searchText.toLowerCase())});this.appliances="all categories"!==this.category&&this.category?i.filter(function(o){return o.category===t.category}):i,this.dataSource=new Oq(this.appliances),this.dataSource.paginator=this.paginator},n.prototype.setAction=function(r){this.action=r,"install"===r?this.actionTitle="Install appliance from server":"import"===r&&(this.actionTitle="Import an appliance file")},n.prototype.setServerType=function(r){"gns3 vm"===r?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},n.prototype.sortData=function(r){if(r.active&&""!==r.direction){var t=this.appliances.slice();this.appliances=t.sort(function(i,o){var a="asc"===r.direction;return"name"===r.active?CL(i.name,o.name,a):"emulator"===r.active?CL(i.emulator,o.emulator,a):"vendor"===r.active?CL(i.vendor_name,o.vendor_name,a):0})}},n.prototype.onCloseClick=function(){this.dialogRef.close()},n.prototype.install=function(r){var t=this;this.applianceToInstall=r,setTimeout(function(){t.stepper.next(),t.applianceToInstall.qemu&&setTimeout(function(){if(t.qemuBinaries.length)if("x86_64"===t.applianceToInstall.qemu.arch)(i=t.qemuBinaries.filter(function(o){return o.path.includes("qemu-system-x86_64")})).length&&(t.selectedBinary=i[0]);else if("i386"===t.applianceToInstall.qemu.arch)(i=t.qemuBinaries.filter(function(a){return a.path.includes("qemu-system-i386")})).length&&(t.selectedBinary=i[0]);else if("x86_64"===t.applianceToInstall.qemu.arch){var i;(i=t.qemuBinaries.filter(function(a){return a.path.includes("qemu-system-arm")})).length&&(t.selectedBinary=i[0])}else t.selectedBinary=t.qemuBinaries[0]},100)},100)},n.prototype.showInfo=function(r){this.dialog.open(Uye,{width:"250px",data:{appliance:r}}).componentInstance.appliance=r},n.prototype.importImage=function(r,t){var i=this;this.progressService.activate(),this.computeChecksumMd5(r.target.files[0],!1).then(function(o){var a=i.applianceToInstall.images.filter(function(u){return u.filename===t})[0];if(a.md5sum!==o){i.progressService.deactivate();var s=i.dialog.open(Wj,{width:"400px",height:"200px",autoFocus:!1,disableClose:!0});s.componentInstance.confirmationMessage="This is not the correct file. \n The MD5 sum is "+o+" and should be "+a.md5sum+". Do you want to accept it at your own risks?",s.afterClosed().subscribe(function(u){u?i.importImageFile(r):i.uploaderImage.clearQueue()})}else i.importImageFile(r)})},n.prototype.importImageFile=function(r){var u,t=this,o=(r.target.files[0].name.split("-"),r.target.files[0].name),a=r.target.files[0],s=new FileReader;s.onloadend=function(){t.applianceToInstall.qemu&&(u="qemu"),t.applianceToInstall.dynamips&&(u="dynamips"),t.applianceToInstall.iou&&(u="iou");var p=t.applianceService.getUploadPath(t.server,u,o);t.uploaderImage.queue.forEach(function(b){return b.url=p});var m=t.uploaderImage.queue[0];m.options.disableMultipart=!0,t.uploaderImage.uploadItem(m),t.progressService.activate()},s.readAsText(a)},n.prototype.checkImageFromVersion=function(r){var t=this.applianceToInstall.images.filter(function(i){return i.filename===r})[0];if(this.applianceToInstall.qemu){if(this.qemuImages.filter(function(i){return i.md5sum===t.md5sum}).length>0)return!0}else if(this.applianceToInstall.dynamips){if(this.iosImages.filter(function(i){return i.md5sum===t.md5sum}).length>0)return!0}else if(this.applianceToInstall.iou&&this.iouImages.filter(function(i){return i.md5sum===t.md5sum}).length>0)return!0;return!1},n.prototype.checkImages=function(r){return r.images.hdb_disk_image?!(!this.checkImageFromVersion(r.images.hda_disk_image)||!this.checkImageFromVersion(r.images.hdb_disk_image)):!!this.checkImageFromVersion(r.images.hda_disk_image)},n.prototype.openConfirmationDialog=function(r,t){var i=this.dialog.open(Wj,{width:"400px",height:"200px",autoFocus:!1,disableClose:!0});i.componentInstance.confirmationMessage=r,i.afterClosed().subscribe(function(o){o&&window.open(t)})},n.prototype.downloadImage=function(r){r.direct_download_url?r.compression?this.openConfirmationDialog("The file is compressed with "+r.compression+", it must be uncompressed first.",r.direct_download_url):window.open(r.direct_download_url):this.openConfirmationDialog("Download will redirect you where the required file can be downloaded, you may have to be registered with the vendor in order to download the file.",r.download_url)},n.prototype.downloadImageFromVersion=function(r){var t=this;this.applianceToInstall.images.forEach(function(i){i.filename===r&&t.downloadImage(i)})},n.prototype.getCategory=function(){return"multilayer_switch"===this.applianceToInstall.category?"switch":this.applianceToInstall.category},n.prototype.createIouTemplate=function(r){var t=this,i=new VZ;i.nvram=this.applianceToInstall.iou.nvram,i.ram=this.applianceToInstall.iou.ram,i.ethernet_adapters=this.applianceToInstall.iou.ethernet_adapters,i.serial_adapters=this.applianceToInstall.iou.serial_adapters,i.startup_config=this.applianceToInstall.iou.startup_config,i.builtin=this.applianceToInstall.builtin,i.category=this.getCategory(),i.default_name_format=this.applianceToInstall.port_name_format,i.symbol=this.applianceToInstall.symbol,i.compute_id=this.isGns3VmChosen?"vm":"local",i.template_id=(0,wa.v4)(),i.path=r.filename,i.template_type="iou";var o=this.dialog.open(B2,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});o.componentInstance.server=this.server,o.afterClosed().subscribe(function(a){if(!a)return!1;i.name=a,t.iouService.addTemplate(t.server,i).subscribe(function(s){t.templateService.newTemplateCreated.next(s),t.toasterService.success("Template added"),t.dialogRef.close()})})},n.prototype.createIosTemplate=function(r){var t=this,i=new HZ;i.chassis=this.applianceToInstall.dynamips.chassis,i.nvram=this.applianceToInstall.dynamips.nvram,i.platform=this.applianceToInstall.dynamips.platform,i.ram=this.applianceToInstall.dynamips.ram,i.startup_config=this.applianceToInstall.dynamips.startup_config,i.slot0=this.applianceToInstall.dynamips.slot0,i.slot1=this.applianceToInstall.dynamips.slot1,i.slot2=this.applianceToInstall.dynamips.slot2,i.slot3=this.applianceToInstall.dynamips.slot3,i.slot4=this.applianceToInstall.dynamips.slot4,i.slot5=this.applianceToInstall.dynamips.slot5,i.slot6=this.applianceToInstall.dynamips.slot6,i.slot7=this.applianceToInstall.dynamips.slot7,i.builtin=this.applianceToInstall.builtin,i.category=this.getCategory(),i.default_name_format=this.applianceToInstall.port_name_format,i.symbol=this.applianceToInstall.symbol,i.compute_id=this.isGns3VmChosen?"vm":"local",i.template_id=(0,wa.v4)(),i.image=r.filename,i.template_type="dynamips";var o=this.dialog.open(B2,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});o.componentInstance.server=this.server,o.afterClosed().subscribe(function(a){if(!a)return!1;i.name=a,t.iosService.addTemplate(t.server,i).subscribe(function(s){t.templateService.newTemplateCreated.next(s),t.toasterService.success("Template added"),t.dialogRef.close()})})},n.prototype.createDockerTemplate=function(){var r=this,t=new BZ;t.adapters=this.applianceToInstall.docker.adapters,t.console_type=this.applianceToInstall.docker.console_type,t.builtin=this.applianceToInstall.builtin,t.category=this.getCategory(),t.default_name_format=this.applianceToInstall.port_name_format,t.symbol=this.applianceToInstall.symbol,t.compute_id=this.isGns3VmChosen?"vm":"local",t.template_id=(0,wa.v4)(),t.image=this.applianceToInstall.docker.image,t.template_type="docker";var i=this.dialog.open(B2,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});i.componentInstance.server=this.server,i.afterClosed().subscribe(function(o){if(!o)return!1;t.name=o,r.dockerService.addTemplate(r.server,t).subscribe(function(a){r.templateService.newTemplateCreated.next(a),r.toasterService.success("Template added"),r.dialogRef.close()})})},n.prototype.createQemuTemplateFromVersion=function(r){var t=this;if(this.checkImages(r))if(this.selectedBinary){var i=new jZ;i.ram=this.applianceToInstall.qemu.ram,i.adapters=this.applianceToInstall.qemu.adapters,i.adapter_type=this.applianceToInstall.qemu.adapter_type,i.boot_priority=this.applianceToInstall.qemu.boot_priority,i.console_type=this.applianceToInstall.qemu.console_type,i.hda_disk_interface=this.applianceToInstall.qemu.hda_disk_interface,i.hdb_disk_interface=this.applianceToInstall.qemu.hdb_disk_interface,i.hdc_disk_interface=this.applianceToInstall.qemu.hdc_disk_interface,i.hdd_disk_interface=this.applianceToInstall.qemu.hdd_disk_interface,i.builtin=this.applianceToInstall.builtin,i.category=this.getCategory(),i.first_port_name=this.applianceToInstall.first_port_name,i.port_name_format=this.applianceToInstall.port_name_format,i.symbol=this.applianceToInstall.symbol,i.qemu_path=this.selectedBinary.path,i.compute_id=this.isGns3VmChosen?"vm":"local",i.template_id=(0,wa.v4)(),i.hda_disk_image=r.images.hda_disk_image,i.hdb_disk_image=r.images.hdb_disk_image,i.template_type="qemu",i.usage=this.applianceToInstall.usage;var o=this.dialog.open(B2,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});o.componentInstance.server=this.server,o.afterClosed().subscribe(function(a){if(!a)return!1;i.name=a,t.qemuService.addTemplate(t.server,i).subscribe(function(s){t.templateService.newTemplateCreated.next(s),t.toasterService.success("Template added"),t.dialogRef.close()})})}else this.toasterService.error("Please select QEMU binary first");else this.toasterService.error("Please install required images first")},n.prototype.computeChecksumMd5=function(r,t){return void 0===t&&(t=!1),new Promise(function(i,o){var a=2097152,s=new Lye.ArrayBuffer,u=new FileReader,p=0;function m(b){var R=Math.min(r.size,b+a);u.readAsArrayBuffer(r.slice(b,R))}u.onerror=function(){o("MD5 computation failed - error reading the file")},u.onload=function(b){s.append(b.target.result),(p+=a)<r.size?m(p):i(s.end(t))},m(0)})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(Gj),e.Y36(e.sBO),e.Y36(er),e.Y36(vp),e.Y36(ev),e.Y36(nv),e.Y36(rv),e.Y36(Q_),e.Y36(no),e.Y36(oc.X),e.Y36(e.sBO),e.Y36(zf))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-new-template-dialog"]],viewQuery:function(t,i){if(1&t&&(e.Gf(zj,7),e.Gf(rbe,7)),2&t){var o=void 0;e.iGM(o=e.CRH())&&(i.paginator=o.first),e.iGM(o=e.CRH())&&(i.stepper=o.first)}},inputs:{server:"server",project:"project"},decls:56,vars:19,consts:[["mat-dialog-title",""],[3,"linear"],["stepper",""],["matStepLabel",""],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"click"],["mat-button","","matStepperNext",""],["mat-button","",3,"click"],[3,"hidden"],[1,"tableHeader"],[1,"filter-field"],["matInput","","placeholder","Filter",3,"ngModel","ngModelChange"],["placeholder","Category",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matSort","","multiTemplateDataRows","",1,"mat-table",3,"dataSource","matSortChange"],["table",""],["matColumnDef","name"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","emulator"],["matColumnDef","vendor"],["matColumnDef","actions"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["type","file","accept",".gns3appliance, .gns3a","ng2FileSelect","",1,"non-visible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary",1,"create-button",3,"click"],["mat-button","","matStepperPrevious",""],["mat-button","",3,"hidden","click"],[4,"ngIf"],[3,"value"],[2,"text-align","right"],["mat-icon-button","","matTooltip","Install","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Install"],["mat-icon-button","","matTooltip","Show info","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Show info"],["value","1",1,"radio-button",3,"disabled","checked","click"],["value","2",1,"radio-button",3,"disabled","checked","click"],["placeholder","Qemu binary",1,"selection-group",3,"ngModel","ngModelOptions","ngModelChange"],["mat-icon-button","","matTooltip","Refresh list of images","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Refresh list of images"],[4,"ngFor","ngForOf"],[1,"list-item"],["mat-raised-button","","color","primary",1,"button",3,"click"],["class","list-item-inside",4,"ngIf"],[1,"list-item-inside"],["type","file","ng2FileSelect","",1,"non-visible",3,"uploader","change"],["file2",""],["mat-raised-button","",1,"button",3,"click"],["matTooltip","Ready to install","matTooltipClass","custom-tooltip"],["matTooltip","Missing","matTooltipClass","custom-tooltip"],["file3",""],["file4",""],["value","1",1,"radio-button",3,"checked","click"]],template:function(t,i){if(1&t){var o=e.EpF();e.TgZ(0,"h1",0),e._uU(1,"Add new template"),e.qZA(),e.TgZ(2,"mat-horizontal-stepper",1,2),e.TgZ(4,"mat-step"),e.YNc(5,ibe,1,0,"ng-template",3),e.TgZ(6,"mat-radio-group",4),e.TgZ(7,"mat-radio-button",5),e.NdJ("click",function(){return i.setAction("install")}),e._uU(8,"Install new appliance from the GNS server"),e.qZA(),e._UZ(9,"br"),e.TgZ(10,"mat-radio-button",6),e.NdJ("click",function(){return i.setAction("import")}),e._uU(11,"Import an appliance file"),e.qZA(),e.qZA(),e.TgZ(12,"div"),e.TgZ(13,"button",7),e._uU(14,"Next"),e.qZA(),e.TgZ(15,"button",8),e.NdJ("click",function(){return i.onCloseClick()}),e._uU(16,"Cancel"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"mat-step"),e.YNc(18,obe,1,1,"ng-template",3),e.TgZ(19,"mat-card",9),e.TgZ(20,"div",10),e.TgZ(21,"mat-form-field",11),e.TgZ(22,"input",12),e.NdJ("ngModelChange",function(s){return i.searchText=s}),e.qZA(),e.qZA(),e.TgZ(23,"mat-select",13),e.NdJ("selectionChange",function(s){return i.filterAppliances(s)})("ngModelChange",function(s){return i.category=s}),e.YNc(24,abe,2,2,"mat-option",14),e.qZA(),e.qZA(),e.TgZ(25,"mat-table",15,16),e.NdJ("matSortChange",function(s){return i.sortData(s)}),e.ALo(27,"datasourcefilter"),e.ynx(28,17),e.YNc(29,sbe,2,0,"mat-header-cell",18),e.YNc(30,lbe,2,1,"mat-cell",19),e.BQk(),e.ynx(31,20),e.YNc(32,ube,2,0,"mat-header-cell",18),e.YNc(33,cbe,2,1,"mat-cell",19),e.BQk(),e.ynx(34,21),e.YNc(35,dbe,2,0,"mat-header-cell",18),e.YNc(36,pbe,2,1,"mat-cell",19),e.BQk(),e.ynx(37,22),e.YNc(38,fbe,2,0,"mat-header-cell",18),e.YNc(39,hbe,7,0,"mat-cell",23),e.BQk(),e.YNc(40,mbe,1,0,"mat-header-row",24),e.YNc(41,vbe,1,0,"mat-row",25),e.qZA(),e._UZ(42,"mat-paginator",26),e.qZA(),e.TgZ(43,"mat-card",9),e.TgZ(44,"input",27,28),e.NdJ("change",function(s){return i.addAppliance(s)}),e.qZA(),e.TgZ(46,"button",29),e.NdJ("click",function(){return e.CHM(o),e.MAs(45).click()}),e._uU(47," Click to import appliance "),e.qZA(),e.qZA(),e.TgZ(48,"div"),e.TgZ(49,"button",30),e._uU(50,"Back"),e.qZA(),e.TgZ(51,"button",31),e.NdJ("click",function(){return i.updateAppliances()}),e._uU(52," Update from online registry "),e.qZA(),e.TgZ(53,"button",8),e.NdJ("click",function(){return i.onCloseClick()}),e._uU(54,"Cancel"),e.qZA(),e.qZA(),e.qZA(),e.YNc(55,Nbe,14,6,"mat-step",32),e.qZA()}2&t&&(e.xp6(2),e.Q6J("linear",!1),e.xp6(17),e.Q6J("hidden","install"!==i.action),e.xp6(3),e.Q6J("ngModel",i.searchText),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(17,Jj))("ngModel",i.category),e.xp6(1),e.Q6J("ngForOf",i.categories),e.xp6(1),e.Q6J("dataSource",e.xi3(27,14,i.dataSource,i.searchText)),e.xp6(15),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns),e.xp6(1),e.Q6J("pageSizeOptions",e.DdM(18,Zbe)),e.xp6(1),e.Q6J("hidden","install"===i.action),e.xp6(1),e.Q6J("uploader",i.uploader),e.xp6(7),e.Q6J("hidden","install"!==i.action),e.xp6(4),e.Q6J("ngIf",i.applianceToInstall))},directives:[ri,$_,X_,v2,vl,gl,An,Ice,_i,Hn.KE,dr,ne.Fj,ne.JJ,ne.On,fi.gD,At.sg,$l,BS,fl,pl,dl,eu,tu,zj,lS,Rce,At.O5,un.ey,hl,ml,Xa,ur,nu,ru,NZ,xs],pipes:[nbe],styles:[".radio-button[_ngcontent-%COMP%]{margin-bottom:30px}.tableHeader[_ngcontent-%COMP%]{width:100%}.filter-field[_ngcontent-%COMP%]{width:100%}.example-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:500px;min-width:300px}.mat-table[_ngcontent-%COMP%]{overflow:auto;max-height:500px}.element-row[_ngcontent-%COMP%]{position:relative}.element-row[_ngcontent-%COMP%]:not(.expanded){cursor:pointer}.element-row[_ngcontent-%COMP%]:not(.expanded):hover{background:#f5f5f5}.element-row.expanded[_ngcontent-%COMP%]{border-bottom-color:transparent}.list-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;margin-bottom:15px}.list-item-inside[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;padding-left:30px;margin-bottom:15px}.button[_ngcontent-%COMP%]{margin-left:10px}.create-button[_ngcontent-%COMP%]{width:100%;margin-top:10px;margin-bottom:10px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.selection-group[_ngcontent-%COMP%]{padding-bottom:20px}"],data:{animation:[(0,an.X$)("detailExpand",[(0,an.SB)("collapsed",(0,an.oB)({height:"0px",minHeight:"0",visibility:"hidden"})),(0,an.SB)("expanded",(0,an.oB)({height:"*",visibility:"visible"})),(0,an.eR)("expanded <=> collapsed",(0,an.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),n}();function CL(n,r,t){return((n=n.toLowerCase())<(r=r.toLowerCase())?-1:1)*(t?1:-1)}var Fbe=f(56205),Bbe='<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">',dv_xmlns="http://www.w3.org/2000/xmlns/",dv_xlink="http://www.w3.org/1999/xlink",dv_svg="http://www.w3.org/2000/svg",Qj="untitled";function Hbe(){var n=document.createElementNS(dv_svg,"svg");document.body.appendChild(n),n.style.all="initial";var r=getComputedStyle(n);return document.body.removeChild(n),n=null,r}function qbe(n,r){function t(s){for(var p,m,u=getComputedStyle(s),b="",R=0,F=u.length;R<F;R++)(m=u.getPropertyValue(p=u[R]))!==r.getPropertyValue(p)&&(b+="".concat(p,":").concat(m,";"));s.setAttribute("style",b)}for(var o=(u=void 0,(u=[]).push(s=n),function p(m){if(m&&m.hasChildNodes())for(var b=m.firstChild;b;)1===b.nodeType&&"SCRIPT"!==b.nodeName&&(u.push(b),p(b)),b=b.nextSibling}(s),u),a=o.length;a--;)t(o[a]);var s,u}function jbe(n){var r=document.createElement("style");r.innerHTML=Array.from(document.styleSheets).filter(function(t){return!t.href||t.href.startsWith(document.location.origin)}).map(function(t){return Array.from(t.cssRules).map(function(i){return i.cssText}).join(" ")}).join(" "),n.prepend(r)}function Gbe(n,r,t){var i=document.createElement("a");document.body.appendChild(i),i.setAttribute("class","svg-crowbar"),i.setAttribute("download",n),i.setAttribute("href",r),i.style.display="none",i.click(),setTimeout(function(){t&&t(),document.body.removeChild(i)},10)}var Xbe=function(r,t,i){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qj,t=URL.createObjectURL(new Blob([n.source],{type:"text/xml"}));Gbe("".concat(r,".svg"),t,function(){return URL.revokeObjectURL(t)})}(function(n){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).css,i=void 0===t?"inline":t;if(!(n instanceof SVGElement))throw new Error("SVG element is required");n.setAttribute("version","1.1"),n.removeAttribute("xmlns"),n.removeAttribute("xlink"),n.hasAttributeNS(dv_xmlns,"xmlns")||n.setAttributeNS(dv_xmlns,"xmlns",dv_svg),n.hasAttributeNS(dv_xmlns,"xmlns:xlink")||n.setAttributeNS(dv_xmlns,"xmlns:xlink",dv_xlink),"inline"===i?qbe(n,Hbe()):"internal"===i&&jbe(n);var o=(new XMLSerializer).serializeToString(n),a=n.getBoundingClientRect();return{top:a.top,left:a.left,width:a.width,height:a.height,class:n.getAttribute("class"),id:n.getAttribute("id"),name:n.getAttribute("name"),childElementCount:n.childElementCount,source:Bbe+o}}(r,i),t||function(n){if(!(n instanceof SVGElement))throw new Error("SVG Element is required");return n.getAttribute("id")||n.getAttribute("class")||document.title.replace(/[^a-z0-9]/gi,"-").toLowerCase()||Qj}(r))},ly={UKNOWN:"Unknown"},SL={CHROME:"Chrome",FIREFOX:"Firefox",SAFARI:"Safari",OPERA:"Opera",IE:"IE",MS_EDGE:"MS-Edge",MS_EDGE_CHROMIUM:"MS-Edge-Chromium",FB_MESSANGER:"FB-Messanger",SAMSUNG:"Samsung",UCBROWSER:"UC-Browser",UNKNOWN:ly.UKNOWN},V2={HTC:/HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\bEVO\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel/,NEXUS_PHONE:/Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6/,DELL:/Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b/,MOTOROLA:new RegExp("Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|\n A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|\n MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|\n ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|\n WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|\n XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|\n XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052"),SAMSUNG:new RegExp("\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|\n GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|\n GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|\n GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|\n GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|\n GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|\n GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|\n GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|\n GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|\n GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|\n GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|\n GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|\n GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|\n GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|\n GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|\n GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|\n GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|\n GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|\n SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|\n SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|\n SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|\n SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|\n SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|\n SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|\n SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|\n SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|\n SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|\n SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|\n SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|\n SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|\n SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|\n SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|\n SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|\n SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|\n SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|\n SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|\n SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|\n SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|\n SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|\n SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|\n SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|\n SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|\n SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|\n SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|\n SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|\n SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|\n SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|\n SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|\n SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|\n GT-N7105|SCH-I535|SM-N900A|SM-N900T|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|\n GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|\n GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|\n SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|\n SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|\n SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F"),LG:new RegExp("\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|\n LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|\n C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|\n LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|\n VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|\n MS323|M257)"),SONY:/SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533/,ASUS:/Asus.*Galaxy|PadFone.*Mobile/,NOKIA_LUMIA:/Lumia [0-9]{3,4}/,MICROMAX:/Micromax.*\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\b/,PALM:/PalmSource|Palm/,VERTU:/Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature/,PANTECH:new RegExp("PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|\n IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|\n IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|\n CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|\n P2000|P7040|P7000|C790"),FLY:/IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250/,WIKO:new RegExp("KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|\n SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|\n CINK KING|CINK PEAX|CINK SLIM|SUBLIM"),I_MOBILE:/i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)/,SIMVALLEY:/\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\b/,WOLFGANG:/AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q/,ALCATEL:/Alcatel|Mobile; rv:49.0|Mobile; ALCATEL 4052R; rv:48.0/,NINTENDO:/Nintendo (3DS|Switch)/,AMOI:/Amoi/,INQ:/INQ/,VITA:/\bVita\b/,BLACKBERRY:/\bBlackBerry\b|\bBB10\b|rim[0-9]+/,FIREFOX_OS:/\bFirefox-OS\b/,IPHONE:/\biPhone\b/,iPod:/\biPod\b/,ANDROID:/\bAndroid\b/,WINDOWS_PHONE:/\bWindows-Phone\b/,GENERIC_PHONE:new RegExp("Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|\n up.link|vodafone|\\bwap\\b|nokia|Nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser")},uy={iPad:/iPad|iPad.*Mobile/,NexusTablet:/Android.*Nexus[\s]+(7|9|10)/,GoogleTablet:/Android.*Pixel C/,SamsungTablet:new RegExp("SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|\n GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|\n SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|\n GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|\n SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|\n GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|\n SHV-E230S|SHW-M180K|SHW-M180L|SM-T865|SM-T290|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|\n SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|\n GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T385M|SM-P585M|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|\n SM-P601|SM-P605|SM-P615|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|\n GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|\n SM-T510|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|\n SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T500|SM-T330|\n SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|\n SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|\n SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|\n SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|\n SM-T719|SM-T813|SM-T819|SM-T580|SM-T590|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|\n SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-P585Y"),Kindle:new RegExp("Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|\n KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome /[0-9.]+ (?!Mobile)"),SurfaceTablet:/Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)/,HPTablet:/HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10/,AsusTablet:new RegExp("^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|\n TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|\n Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|\n ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|\n ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b"),BlackBerryTablet:/PlayBook|RIM Tablet/,HTCtablet:/HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410/,MotorolaTablet:/xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617/,NookTablet:/Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2/,AcerTablet:new RegExp("Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|\n W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\n \\bA3-A20\\b|\\bA3-A30"),ToshibaTablet:/Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO/,LGTablet:/\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\b/,FujitsuTablet:/Android.*\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\b/,PrestigioTablet:new RegExp("PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|\n PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|\n PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|\n PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|\n PMT5887|PMT5001|PMT5002"),LenovoTablet:new RegExp("Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|\n YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|\n B8000|B8080)(-|)(FL|F|HV|H|)|TB-X606F|TB-X103F|TB-X304F|TB-X304L|TB-X704F|TB-8703F|Tab2A7-10F|TB2-X30L|TB-8504F"),DellTablet:/Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7/,YarvikTablet:new RegExp("Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|\n TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|\n TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|\n TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|\n TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b"),MedionTablet:/Android.*\bOYO\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB/,ArnovaTablet:/97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2/,IntensoTablet:/INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004/,IRUTablet:/M702pro/,MegafonTablet:/MegaFon V9|\bZTE V9\b|Android.*\bMT7A\b/,EbodaTablet:/E-Boda (Supreme|Impresspeed|Izzycomm|Essential)/,AllViewTablet:/Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)/,ArchosTablet:new RegExp("\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10|\n Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b"),AinolTablet:/NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark/,NokiaLumiaTablet:/Lumia 2520/,SonyTablet:new RegExp("Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|\n SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|\n EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|\n SGP612|SGP712"),PhilipsTablet:/\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\b/,CubeTablet:/Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT/,CobyTablet:new RegExp("MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|\n MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010"),MIDTablet:new RegExp("M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|\n MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|\n MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10"),MSITablet:new RegExp("MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|\n Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b"),SMiTTablet:/Android.*(\bMID\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)/,RockChipTablet:/Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A/,FlyTablet:/IQ310|Fly Vision/,bqTablet:new RegExp("Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|\n Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))|Maxwell.*Lite|Maxwell.*Plus"),HuaweiTablet:new RegExp("MediaPad|MediaPad 7 Youth|MediaPad T3 10|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|\n S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-W09"),NecTablet:/\bN-06D|\bN-08D/,PantechTablet:/Pantech.*P4100/,BronchoTablet:/Broncho.*(N701|N708|N802|a710)/,VersusTablet:/TOUCHPAD.*[78910]|\bTOUCHTAB\b/,ZyncTablet:/z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900/,PositivoTablet:/TB07STA|TB10STA|TB07FTA|TB10FTA/,NabiTablet:/Android.*\bNabi/,KoboTablet:/Kobo Touch|\bK080\b|\bVox\b Build|\bArc\b Build/,DanewTablet:/DSlide.*\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\b/,TexetTablet:new RegExp("NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|\n TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|\n TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|\n TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|\n TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|\n TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|\n TB-436|TB-416|TB-146SE|TB-126SE"),PlaystationTablet:/Playstation.*(Portable|Vita)/,TrekstorTablet:/ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab/,PyleAudioTablet:/\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\b/,AdvanTablet:new RegExp("Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|\n T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b"),DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|\n Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:/Android.*\bG1\b(?!\))/,MicromaxTablet:/Funbook|Micromax.*\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\b/,KarbonnTablet:/Android.*\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\b/,AllFineTablet:/Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide/,PROSCANTablet:new RegExp("\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|\n PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|\n PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|\n PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b"),YONESTablet:/BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026/,ChangJiaTablet:new RegExp("TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|\n TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|\n TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|\n TPC10111|TPC10203|TPC10205|TPC10503"),GUTablet:/TX-A1301|TX-M9002|Q702|kf026/,PointOfViewTablet:new RegExp("TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|\n TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|\n TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|\n TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10"),OvermaxTablet:new RegExp("OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|\n MagicTab|Stream|TB-08|TB-09)|Qualcore 1027"),HCLTablet:/HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync/,DPSTablet:/DPS Dream 9|DPS Dual 7/,VistureTablet:/V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10/,CrestaTablet:/CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989/,MediatekTablet:/\bMT8125|MT8389|MT8135|MT8377\b/,ConcordeTablet:/Concorde([ ]+)?Tab|ConCorde ReadMan/,GoCleverTablet:new RegExp("GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|\n TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|\n GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|\n TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|\n TAB R104|TAB R83.3|TAB A1042"),ModecomTablet:new RegExp("FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|\n FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|\n FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003"),VoninoTablet:new RegExp("\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|\n Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|\n Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b"),ECSTablet:/V07OT2|TM105A|S10OT1|TR10CS1/,StorexTablet:/eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab/,VodafoneTablet:/SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497/,EssentielBTablet:/Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2/,RossMoorTablet:/RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711/,iMobileTablet:/i-mobile i-note/,TolinoTablet:/tolino tab [0-9.]+|tolino shine/,AudioSonicTablet:/\bC-22Q|T7-QC|T-17B|T-17P\b/,AMPETablet:/Android.* A78 /,SkkTablet:/Android.* (SKYPAD|PHOENIX|CYCLOPS)/,TecnoTablet:/TECNO P9|TECNO DP8D/,JXDTablet:new RegExp("Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|\n S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|\n P1000|P300|S18|S6600|S9100)\\b"),iJoyTablet:new RegExp("Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|\n Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|\n Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|\n Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|\n Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)"),FX2Tablet:/FX2 PAD7|FX2 PAD10/,XoroTablet:new RegExp("KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|\n PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|\n PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|\n TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151"),ViewsonicTablet:/ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a/,VerizonTablet:/QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1/,OdysTablet:/LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\bXELIO\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10/,CaptivaTablet:/CAPTIVA PAD/,IconbitTablet:new RegExp("NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|\n NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S"),TeclastTablet:new RegExp("T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\n \\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\n \\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\n \\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\n \\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\n \\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\n \\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\n \\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\n \\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi"),OndaTablet:new RegExp("\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|\n V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|\n V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|\n Vi40)\\b[s]+|V10 \\b4G\\b"),JaytechTablet:/TPC-PA762/,BlaupunktTablet:/Endeavour 800NG|Endeavour 1010/,DigmaTablet:/\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\b/,EvolioTablet:/ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\bEvotab\b|\bNeura\b/,LavaTablet:/QPAD E704|\bIvoryS\b|E-TAB IVORY|\bE-TAB\b/,AocTablet:/MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712/,MpmanTablet:new RegExp("MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\n \\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|\n MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010"),CelkonTablet:/CT695|CT888|CT[\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\bCT-1\b/,WolderTablet:new RegExp("miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|\n POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|\n FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b"),MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:/\bMI PAD\b|\bHM NOTE 1W\b/,NibiruTablet:/Nibiru M1|Nibiru Jupiter One/,NexoTablet:/NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI/,LeaderTablet:new RegExp("TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|\n TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100"),UbislateTablet:/UbiSlate[\s]?7C/,PocketBookTablet:/Pocketbook/,KocasoTablet:/\b(TB-1207)\b/,HisenseTablet:/\b(F5281|E2371)\b/,Hudl:/Hudl HT7S3|Hudl 2/,TelstraTablet:/T-Hub2/,Honeywell:/RT10A/,GenericTablet:new RegExp("Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|\n A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|\n Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107")},eh={BLACKBERRY:"Blackberry",FIREFOX_OS:"Firefox-OS",CHROME_BOOK:"Chrome-Book",WINDOWS_PHONE:"Windows-Phone",VITA:"Vita",PS4:"PS4",MAC:"Macintosh",CHROMECAST:"Chromecast",APPLE_TV:"Apple-TV",GOOGLE_TV:"Google-TV",ANDROID:"Android",Tesla:"Tesla",iPad:"iPad",IPHONE:"iPhone",iPod:"iPod",UNKNOWN:ly.UKNOWN,HTC:"HTC",NEXUS_PHONE:"Nexus Phone",NexusTablet:"Nexus Tablet",DELL:"Dell",MOTOROLA:"Motorola",SAMSUNG:"Samsung",LG:"LG",SONY:"Sony",ASUS:"Asus",NOKIA_LUMIA:"Nokia Lumia",MICROMAX:"Micromax",PALM:"Palm",VERTU:"Vertu",PANTECH:"PANTECH",FLY:"Fly",WIKO:"WIKO",I_MOBILE:"i-mobile",SIMVALLEY:"Simvalley",WOLFGANG:"Wolfgang",ALCATEL:"Alcatel",HONEYWELL:"Honeywell",NINTENDO:"Nintendo",AMOI:"Amoi",INQ:"INQ",GENERIC_PHONE:"Generic Phone",MI_SE_9:"Mi SE 9"},Kj=[eh.PS4,eh.CHROME_BOOK,eh.MAC,eh.DELL,eh.ASUS,eh.UNKNOWN],$be={WINDOWS:"Windows",MAC:"Mac",IOS:"iOS",ANDROID:"Android",LINUX:"Linux",UNIX:"Unix",FIREFOX_OS:"Firefox-OS",CHROME_OS:"Chrome-OS",WINDOWS_PHONE:"Windows-Phone",UNKNOWN:ly.UKNOWN},e0e={WINDOWS_3_11:"windows-3-11",WINDOWS_95:"windows-95",WINDOWS_ME:"windows-me",WINDOWS_98:"windows-98",WINDOWS_CE:"windows-ce",WINDOWS_2000:"windows-2000",WINDOWS_XP:"windows-xp",WINDOWS_SERVER_2003:"windows-server-2003",WINDOWS_VISTA:"windows-vista",WINDOWS_7:"windows-7",WINDOWS_8_1:"windows-8-1",WINDOWS_8:"windows-8",WINDOWS_10:"windows-10",WINDOWS_PHONE_7_5:"windows-phone-7-5",WINDOWS_PHONE_8_1:"windows-phone-8-1",WINDOWS_PHONE_10:"windows-phone-10",WINDOWS_NT_4_0:"windows-nt-4-0",MACOSX_11_0:"mac-os-x-11-0",MACOSX_16:"mac-os-x-16",MACOSX_15:"mac-os-x-15",MACOSX_14:"mac-os-x-14",MACOSX_13:"mac-os-x-13",MACOSX_12:"mac-os-x-12",MACOSX_11:"mac-os-x-11",MACOSX_10:"mac-os-x-10",MACOSX_9:"mac-os-x-9",MACOSX_8:"mac-os-x-8",MACOSX_7:"mac-os-x-7",MACOSX_6:"mac-os-x-6",MACOSX_5:"mac-os-x-5",MACOSX_4:"mac-os-x-4",MACOSX_3:"mac-os-x-3",MACOSX_2:"mac-os-x-2",MACOSX:"mac-os-x",iOS:"iOS",ANDROID_9:"android-9",UNKNOWN:ly.UKNOWN.toLowerCase()},Xj={WINDOWS:{and:[{or:[/\bWindows|(Win\d\d)\b/,/\bWin 9x\b/]},{not:/\bWindows Phone\b/}]},MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]},IOS:{and:[{or:[/\biPad\b/,/\biPhone\b/,/\biPod\b/]},{not:/\bWindows Phone\b/}]},ANDROID:{and:[/\bAndroid\b/,{not:/\bWindows Phone\b/}]},LINUX:/\bLinux\b/,UNIX:/\bUNIX\b/,FIREFOX_OS:{and:[/\bFirefox\b/,/Mobile\b/]},CHROME_OS:/\bCrOS\b/,WINDOWS_PHONE:{or:[/\bIEMobile\b/,/\bWindows Phone\b/]},PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/},n0e=Object.assign(Object.assign(Object.assign(Object.assign({},V2),uy),Xj),{FIREFOX_OS:{and:[/\bFirefox\b/,/\bMobile\b/]},CHROME_BOOK:/\bCrOS\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,CHROMECAST:/\bCrKey\b/,APPLE_TV:/^iTunes-AppleTV\/4.1$/,GOOGLE_TV:/\bGoogleTV\b/,Tesla:/Tesla\/([0-9]{4}.[0-9]{1,2}.?[0-9]{0,2}.?[0-9]{0,2})-(.{7})/,MI_SE_9:/\bXiaomi\b/,MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]}}),TL={WINDOWS_3_11:/Win16/,WINDOWS_95:/(Windows 95|Win95|Windows_95)/,WINDOWS_ME:/(Win 9x 4.90|Windows ME)/,WINDOWS_98:/(Windows 98|Win98)/,WINDOWS_CE:/Windows CE/,WINDOWS_2000:/(Windows NT 5.0|Windows 2000)/,WINDOWS_XP:/(Windows NT 5.1|Windows XP)/,WINDOWS_SERVER_2003:/Windows NT 5.2/,WINDOWS_VISTA:/Windows NT 6.0/,WINDOWS_7:/(Windows 7|Windows NT 6.1)/,WINDOWS_8_1:/(Windows 8.1|Windows NT 6.3)/,WINDOWS_8:/(Windows 8|Windows NT 6.2)/,WINDOWS_10:/(Windows NT 10.0)/,WINDOWS_PHONE_7_5:/(Windows Phone OS 7.5)/,WINDOWS_PHONE_8_1:/(Windows Phone 8.1)/,WINDOWS_PHONE_10:/(Windows Phone 10)/,WINDOWS_NT_4_0:{and:[/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/,{not:/Windows NT 10.0/}]},MACOSX:/(MAC OS X\s*[^ 0-9])/,MACOSX_3:/(Darwin 10.3|Mac OS X 10.3)/,MACOSX_4:/(Darwin 10.4|Mac OS X 10.4)/,MACOSX_5:/(Mac OS X 10.5)/,MACOSX_6:/(Mac OS X 10.6)/,MACOSX_7:/(Mac OS X 10.7)/,MACOSX_8:/(Mac OS X 10.8)/,MACOSX_9:/(Mac OS X 10.9)/,MACOSX_10:/(Mac OS X 10.10)/,MACOSX_11:/(Mac OS X 10.11)/,MACOSX_12:/(Mac OS X 10.12)/,MACOSX_13:/(Mac OS X 10.13)/,MACOSX_14:/(Mac OS X 10.14)/,MACOSX_15:/(Mac OS X 10.15)/,MACOSX_16:/(Mac OS X 10.16)/,MACOSX_11_0:{or:[/11_0 like Mac OS X/,/Mac OS X 11/]},iOS:/(iPhone OS\s*[0-9_]+)/,ANDROID_9:/(Android 9)/},xL={CHROME:[/\bChrome\/([\d\.]+)\b/,/\bCriOS\/([\d\.]+)\b/,/\bHeadlessChrome\/([\d\.]+)\b/],FIREFOX:[/\bFirefox\/([\d\.]+)\b/,/\bFxiOS\/([\d\.]+)\b/],SAFARI:[/\bVersion\/([\d\.]+)\b/,/\bSafari\/([\d\.]+)\b/],OPERA:[/\bVersion\/([\d\.]+)\b/,/\bOPR\/([\d\.]+)\b/],IE:[/\bMSIE ([\d\.]+\w?)\b/,/\brv:([\d\.]+\w?)\b/],MS_EDGE:/\bEdg(?:e|A|iOS)\/([\d\.]+)\b/,MS_EDGE_CHROMIUM:/\bEdg\/([\d\.]+)\b/,SAMSUNG:/\bSamsungBrowser\/([\d\.]+)\b/,UCBROWSER:/\bUCBrowser\/([\d\.]+)\b/},$j=function(r,t){return r[t]=TL[t],r},r0e=Object.keys(TL).reduce($j,{}),ez=function(r,t){return r[SL[t]]=xL[t],r},tz=Object.keys(xL).reduce(ez,{}),md=Object.freeze({__proto__:null,GENERAL:ly,BROWSERS:SL,MOBILES_RE:V2,TABLETS_RE:uy,DEVICES:eh,DESKTOP_DEVICES:Kj,OS:$be,OS_VERSIONS:e0e,OS_RE:Xj,BROWSERS_RE:{CHROME:{and:[{or:[/\bChrome\b/,/\bCriOS\b/,/\bHeadlessChrome\b/]},{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},FIREFOX:{or:[/\bFirefox\b/,/\bFxiOS\b/]},SAFARI:{and:[/^((?!CriOS).)*\Safari\b.*$/,{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bWindows Phone\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},OPERA:{or:[/Opera\b/,/\bOPR\b/]},IE:{or:[/\bMSIE\b/,/\bTrident\b/,/^Mozilla\/5\.0 \(Windows NT 10\.0; Win64; x64\)$/]},MS_EDGE:{or:[/\bEdg(e|A|iOS)\b/]},MS_EDGE_CHROMIUM:/\bEdg\/\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/,FB_MESSANGER:/\bFBAN\/MessengerForiOS\b/,SAMSUNG:/\bSamsungBrowser\b/,UCBROWSER:/\bUCBrowser\b/},DEVICES_RE:n0e,OS_VERSIONS_RE_MAP:TL,BROWSER_VERSIONS_RE_MAP:xL,OS_VERSIONS_RE:r0e,BROWSER_VERSIONS_RE:tz,"\u02750":$j,"\u02751":ez}),i0e=function(){function n(){(0,g.Z)(this,n)}return(0,k.Z)(n,[{key:"test",value:function(t,i){var o=this;return"string"==typeof i&&(i=new RegExp(i)),i instanceof RegExp?i.test(t):i&&Array.isArray(i.and)?i.and.every(function(a){return o.test(t,a)}):i&&Array.isArray(i.or)?i.or.some(function(a){return o.test(t,a)}):!(!i||!i.not||this.test(t,i.not))}},{key:"exec",value:function(t,i){var o=this;return"string"==typeof i&&(i=new RegExp(i)),i instanceof RegExp?i.exec(t):i&&Array.isArray(i)?i.reduce(function(a,s){return a||o.exec(t,s)},null):null}}]),n}(),q2=function(n){return n.Mobile="mobile",n.Tablet="tablet",n.Desktop="desktop",n.Unknown="unknown",n}({}),nz=function(n){return n.Portrait="portrait",n.Landscape="landscape",n}({}),wL="iPad",o0e=function(){var n=function(){function r(t){(0,g.Z)(this,r),this.platformId=t,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new i0e,this.deviceType="",this.orientation="",(0,At.NF)(this.platformId)&&"undefined"!=typeof window&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}return(0,k.Z)(r,[{key:"setDeviceInfo",value:function(){var i=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;o!==this.userAgent&&(this.userAgent=o);var a=[{const:"OS",prop:"os"},{const:"BROWSERS",prop:"browser"},{const:"DEVICES",prop:"device"},{const:"OS_VERSIONS",prop:"os_version"}];if(a.forEach(function(p){i[p.prop]=Object.keys(md[p.const]).reduce(function(m,b){return"device"===md[p.const][b]&&(0,At.NF)(i.platformId)&&(i.reTree.test(i.userAgent,uy[wL])||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(m[md[p.const][b]]=wL,Object):(m[md[p.const][b]]=i.reTree.test(o,md["".concat(p.const,"_RE")][b]),m)},{})}),a.forEach(function(p){i[p.prop]=Object.keys(md[p.const]).map(function(m){return md[p.const][m]}).reduce(function(m,b){return"device"===p.prop&&m===md[p.const].ANDROID?i[p.prop][b]?b:m:m===md[p.const].UNKNOWN&&i[p.prop][b]?b:m},md[p.const].UNKNOWN)}),this.browser_version="0",this.browser!==SL.UNKNOWN){var s=tz[this.browser],u=this.reTree.exec(o,s);u&&(this.browser_version=u[1])}this.orientation="undefined"!=typeof window&&window.matchMedia?window.matchMedia("(orientation: landscape)").matches?nz.Landscape:nz.Portrait:ly.UKNOWN,this.deviceType=this.isTablet()?q2.Tablet:this.isMobile(this.userAgent)?q2.Mobile:this.isDesktop(this.userAgent)?q2.Desktop:q2.Unknown}},{key:"getDeviceInfo",value:function(){return{userAgent:this.userAgent,os:this.os,browser:this.browser,device:this.device,os_version:this.os_version,browser_version:this.browser_version,deviceType:this.deviceType,orientation:this.orientation}}},{key:"isMobile",value:function(){var i=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;if(this.isTablet(o))return!1;var a=Object.keys(V2).find(function(s){return i.reTree.test(o,V2[s])});return!!a}},{key:"isTablet",value:function(){var i=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;if((0,At.NF)(this.platformId)&&(this.reTree.test(this.userAgent,uy[wL])||"undefined"!=typeof navigator&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))return!0;var a=Object.keys(uy).find(function(s){return!!i.reTree.test(o,uy[s])});return!!a}},{key:"isDesktop",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;return(this.device!==eh.UNKNOWN||!this.isMobile(i)&&!this.isTablet(i))&&Kj.indexOf(this.device)>-1}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(e.Lbi))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(e.Lbi))},token:n,providedIn:"root"}),n}();function a0e(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Name for screenshot is required"),e.qZA())}function s0e(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Entered name is incorrect"),e.qZA())}var l0e=function(n){return{"is-invalid":n}},u0e=function(){function n(r,t,i,o,a){this.dialogRef=r,this.toasterService=t,this.formBuilder=i,this.electronService=o,this.deviceService=a,this.filetype="svg",this.nameForm=this.formBuilder.group({screenshotName:new ne.NI("screenshot-"+Date.now(),[ne.kI.required])}),this.isPngAvailable=this.electronService.isWindows||"Windows"===this.deviceService.getDeviceInfo().os}return n.prototype.ngOnInit=function(){},Object.defineProperty(n.prototype,"form",{get:function(){return this.nameForm.controls},enumerable:!1,configurable:!0}),n.prototype.onAddClick=function(){if(!this.nameForm.invalid){var r={name:this.nameForm.get("screenshotName").value,filetype:this.filetype};this.dialogRef.close(r)}},n.prototype.onNoClick=function(){this.dialogRef.close()},n.prototype.onKeyDown=function(r){"Enter"===r.key&&this.onAddClick()},n.prototype.setFiletype=function(r){this.isPngAvailable&&(this.filetype=r)},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(er),e.Y36(ne.qu),e.Y36(hs),e.Y36(o0e))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-screenshot-dialog"]],decls:17,vars:7,consts:[["mat-dialog-title",""],["aria-label","Sorting",1,"radio-group"],["value","1","checked","",3,"click"],["value","2",3,"disabled","click"],[1,"name-form",3,"formGroup"],[1,"name-form"],["matInput","","type","text","formControlName","screenshotName","placeholder","Please enter name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Take a screenshot"),e.qZA(),e.TgZ(2,"mat-radio-group",1),e.TgZ(3,"mat-radio-button",2),e.NdJ("click",function(){return i.setFiletype("svg")}),e._uU(4,"SVG"),e.qZA(),e.TgZ(5,"mat-radio-button",3),e.NdJ("click",function(){return i.setFiletype("png")}),e._uU(6,"PNG"),e.qZA(),e.qZA(),e.TgZ(7,"form",4),e.TgZ(8,"mat-form-field",5),e.TgZ(9,"input",6),e.NdJ("keydown",function(a){return i.onKeyDown(a)}),e.qZA(),e.YNc(10,a0e,2,0,"mat-error",7),e.YNc(11,s0e,2,0,"mat-error",7),e.qZA(),e.TgZ(12,"div",8),e.TgZ(13,"button",9),e.NdJ("click",function(){return i.onNoClick()}),e._uU(14,"Cancel"),e.qZA(),e.TgZ(15,"button",10),e.NdJ("click",function(){return i.onAddClick()}),e._uU(16,"Take a screenshot"),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("disabled",!i.isPngAvailable),e.xp6(2),e.Q6J("formGroup",i.nameForm),e.xp6(2),e.Q6J("ngClass",e.VKq(5,l0e,null==i.form.acreenshotName?null:i.form.acreenshotName.errors)),e.xp6(1),e.Q6J("ngIf",(null==i.form.screenshotName?null:i.form.screenshotName.touched)&&(null==i.form.screenshotName?null:i.form.screenshotName.errors)&&(null==i.form.screenshotName?null:i.form.screenshotName.errors.required)),e.xp6(1),e.Q6J("ngIf",(null==i.form.screenshotName?null:i.form.screenshotName.touched)&&(null==i.form.screenshotName?null:i.form.screenshotName.errors)&&(null==i.form.acreenshotName?null:i.form.acreenshotName.errors.invalidName)))},directives:[ri,vl,gl,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,At.mk,At.O5,ti,An,Hn.TO],styles:[".name-form[_ngcontent-%COMP%]{width:100%}.radio-group[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]}),n}(),rz=function(){function n(){}return n.prototype.getDrawingElement=function(){var r=new lv;return r.height=100,r.width=100,r.fill="#000000",r.fill_opacity=0,r.font_family="Noto Sans",r.font_size=11,r.font_weight="bold",r},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),iz=function(){function n(){}return n.prototype.getDrawingElement=function(){var r=new Po;return r.fill="#ffffff",r.fill_opacity=1,r.stroke="#000000",r.stroke_width=2,r.cx=100,r.cy=100,r.rx=100,r.ry=100,r.width=200,r.height=200,r},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),oz=function(){function n(){}return n.prototype.getDrawingElement=function(){var r=new gp;return r.fill="#ffffff",r.fill_opacity=1,r.stroke="#000000",r.stroke_width=2,r.width=200,r.height=100,r},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),az=function(){function n(){}return n.prototype.getDrawingElement=function(){var r=new sv;return r.stroke="#000000",r.stroke_width=2,r.x1=0,r.x2=200,r.y1=0,r.y2=0,r.width=100,r.height=0,r},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),kL=function(){function n(r,t,i,o){this.textElementFactory=r,this.ellipseElementFactory=t,this.rectangleElementFactory=i,this.lineElementFactory=o,this.availableFactories={text:this.textElementFactory,ellipse:this.ellipseElementFactory,rectangle:this.rectangleElementFactory,line:this.lineElementFactory}}return n.prototype.getDrawingMock=function(r){this.factory=this.availableFactories[r];var t=new Qf;return t.element=this.factory.getDrawingElement(),t},n.\u0275fac=function(t){return new(t||n)(e.LFG(rz),e.LFG(iz),e.LFG(oz),e.LFG(az))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),c0e=function(){function n(r,t,i,o,a){this.drawingService=r,this.drawingsDataSource=t,this.drawingsEventSource=i,this.drawingsFactory=o,this.mapDrawingToSvgConverter=a,this.drawingSaved=new e.vpe}return n.prototype.ngOnInit=function(){var r=this;this.pointToAddSelected=this.drawingsEventSource.pointToAddSelected.subscribe(function(t){return r.onDrawingSaved(t)})},n.prototype.ngOnChanges=function(r){r.selectedDrawing&&!r.selectedDrawing.isFirstChange()&&(this.selectedDrawing=r.selectedDrawing.currentValue,"text"!==this.selectedDrawing&&this.drawingsEventSource.selected.emit(this.selectedDrawing))},n.prototype.onDrawingSaved=function(r){var t=this,i=this.drawingsFactory.getDrawingMock(this.selectedDrawing),o=this.mapDrawingToSvgConverter.convert(i);this.drawingService.add(this.server,this.project.project_id,r.x,r.y,o).subscribe(function(a){t.drawingsDataSource.add(a),t.drawingSaved.emit(!0)})},n.prototype.ngOnDestroy=function(){this.pointToAddSelected.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(ks),e.Y36(Es),e.Y36(lc),e.Y36(kL),e.Y36(cv))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-drawing-added"]],inputs:{server:"server",project:"project",selectedDrawing:"selectedDrawing"},outputs:{drawingSaved:"drawingSaved"},features:[e.TTD],decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),sz=function(n){return{selected:n}};function d0e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(){return e.CHM(t),e.oxw().addDrawing("line")}),e.O4$(),e.TgZ(1,"svg",13),e._UZ(2,"line",14),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(2),e.Q6J("ngClass",e.VKq(1,sz,i.drawTools.isLineChosen))}}function p0e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(){return e.CHM(t),e.oxw().addDrawing("line")}),e.O4$(),e.TgZ(1,"svg",13),e._UZ(2,"line",15),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(2),e.Q6J("ngClass",e.VKq(1,sz,i.drawTools.isLineChosen))}}var f0e=function(n,r){return{unmarkedLight:n,marked:r}},h0e=function(n){return{unmarkedLight:n}},lz=function(){function n(r,t,i,o,a,s){this.toolsService=r,this.mapSettingsService=t,this.drawingService=i,this.symbolService=o,this.dialog=a,this.themeService=s,this.drawTools={isRectangleChosen:!1,isEllipseChosen:!1,isLineChosen:!1,isTextChosen:!1},this.isLocked=!1,this.isLightThemeEnabled=!1}return n.prototype.ngOnInit=function(){this.isLightThemeEnabled="light"===this.themeService.getActualTheme()},n.prototype.getCssClassForIcon=function(r){return"text"===r?{unmarkedLight:!this.drawTools.isTextChosen&&this.isLightThemeEnabled,marked:this.drawTools.isTextChosen}:"rectangle"===r?{unmarkedLight:!this.drawTools.isRectangleChosen&&this.isLightThemeEnabled,marked:this.drawTools.isRectangleChosen}:{unmarkedLight:!this.drawTools.isEllipseChosen&&this.isLightThemeEnabled,marked:this.drawTools.isEllipseChosen}},n.prototype.takeScreenshot=function(){var r=this;this.dialog.open(u0e,{width:"400px",autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(i){i&&r.saveImage(i)})},n.prototype.saveImage=function(r){return(0,Qn.mG)(this,void 0,void 0,function(){var t,i,o,a,s,u,p,m;return(0,Qn.Jh)(this,function(F){switch(F.label){case 0:if("png"!==r.filetype)return[3,4];t=document.getElementsByTagName("svg")[0].outerHTML.split("image"),i=1,F.label=1;case 1:return i<t.length?(o=t[i].split('"'),a=o[1].split("/"),[4,this.symbolService.raw(this.server,a[7]).toPromise()]):[3,3];case 2:return s=F.sent(),u=s.split("--\x3e"),t[i]=u[1].substring(2),i+=2,[3,1];case 3:return p=t.join(),(m=document.createElement("div")).innerHTML=p,Fbe.saveSvgAsPng(m.firstChild,r.name+".png"),[3,5];case 4:Xr("svg").attr("version",1.1).attr("xmlns","http://www.w3.org/2000/svg").node(),Xbe(Xr("svg").node(),""+r.name),F.label=5;case 5:return[2]}})})},n.prototype.addDrawing=function(r){switch(r){case"rectangle":this.drawTools.isTextChosen=!1,this.drawTools.isEllipseChosen=!1,this.drawTools.isRectangleChosen=!this.drawTools.isRectangleChosen,this.drawTools.isLineChosen=!1;break;case"ellipse":this.drawTools.isTextChosen=!1,this.drawTools.isEllipseChosen=!this.drawTools.isEllipseChosen,this.drawTools.isRectangleChosen=!1,this.drawTools.isLineChosen=!1;break;case"line":this.drawTools.isTextChosen=!1,this.drawTools.isEllipseChosen=!1,this.drawTools.isRectangleChosen=!1,this.drawTools.isLineChosen=!this.drawTools.isLineChosen;break;case"text":this.drawTools.isTextChosen=!this.drawTools.isTextChosen,this.drawTools.isEllipseChosen=!1,this.drawTools.isRectangleChosen=!1,this.drawTools.isLineChosen=!1,this.toolsService.textAddingToolActivation(this.drawTools.isTextChosen)}this.selectedDrawing=this.selectedDrawing===r?"":r},n.prototype.onDrawingSaved=function(){this.resetDrawToolChoice()},n.prototype.resetDrawToolChoice=function(){this.drawTools.isRectangleChosen=!1,this.drawTools.isEllipseChosen=!1,this.drawTools.isLineChosen=!1,this.drawTools.isTextChosen=!1,this.selectedDrawing="",this.toolsService.textAddingToolActivation(this.drawTools.isTextChosen)},n.prototype.changeLockValue=function(){this.isLocked=!this.isLocked,this.mapSettingsService.changeMapLockValue(this.isLocked)},n.prototype.uploadImageFile=function(r){this.readImageFile(r.target)},n.prototype.readImageFile=function(r){var t=this,i=r.files[0],o=new FileReader,a=new Image;o.onloadend=function(){var u=t.createSvgFileForImage(o.result,a);t.drawingService.add(t.server,t.project.project_id,-a.width/2,-a.height/2,u).subscribe(function(){})},a.onload=function(){o.readAsDataURL(i)},a.src=window.URL.createObjectURL(i)},n.prototype.createSvgFileForImage=function(r,t){return'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="'+t.height+'" \n width="'+t.width+'">\n<image height="'+t.height+'" width="'+t.width+'" xlink:href="'+r+'"/>\n</svg>'},n.prototype.ngOnDestroy=function(){},n.\u0275fac=function(t){return new(t||n)(e.Y36(NS),e.Y36(Ou),e.Y36(ks),e.Y36(TS),e.Y36(no),e.Y36(rc.f))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-project-map-menu"]],inputs:{project:"project",server:"server"},decls:24,vars:15,consts:[["matTooltip","Add a note","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],[3,"ngClass"],["type","file","accept",".svg, .bmp, .jpeg, .jpg, .gif, .png",1,"non-visible",3,"change"],["file",""],["matTooltip","Insert a picture","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Draw a rectangle","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Draw an ellipse","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Draw a line","matTooltipClass","custom-tooltip","mat-icon-button","","class","menu-button",3,"click",4,"ngIf"],["matTooltip","Lock or unlock all items","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Take a screenshot","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],[3,"server","project","selectedDrawing","drawingSaved"],["id","crowbar-workspace"],["matTooltip","Draw a line","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["height","40","width","40"],["x1","30","y1","10","x2","10","y2","30",2,"stroke","white","stroke-width","2",3,"ngClass"],["x1","30","y1","10","x2","10","y2","30",2,"stroke","black","stroke-width","2",3,"ngClass"]],template:function(t,i){if(1&t){var o=e.EpF();e.TgZ(0,"button",0),e.NdJ("click",function(){return i.addDrawing("text")}),e.TgZ(1,"mat-icon",1),e._uU(2,"create"),e.qZA(),e.qZA(),e.TgZ(3,"input",2,3),e.NdJ("change",function(s){return i.uploadImageFile(s)}),e.qZA(),e.TgZ(5,"button",4),e.NdJ("click",function(){return e.CHM(o),e.MAs(4).click()}),e.TgZ(6,"mat-icon"),e._uU(7,"image"),e.qZA(),e.qZA(),e.TgZ(8,"button",5),e.NdJ("click",function(){return i.addDrawing("rectangle")}),e.TgZ(9,"mat-icon",1),e._uU(10,"crop_3_2"),e.qZA(),e.qZA(),e.TgZ(11,"button",6),e.NdJ("click",function(){return i.addDrawing("ellipse")}),e.TgZ(12,"mat-icon",1),e._uU(13,"panorama_fish_eye"),e.qZA(),e.qZA(),e.YNc(14,d0e,3,3,"button",7),e.YNc(15,p0e,3,3,"button",7),e.TgZ(16,"button",8),e.NdJ("click",function(){return i.changeLockValue()}),e.TgZ(17,"mat-icon",1),e._uU(18,"lock"),e.qZA(),e.qZA(),e.TgZ(19,"button",9),e.NdJ("click",function(){return i.takeScreenshot()}),e.TgZ(20,"mat-icon",1),e._uU(21,"photo_camera"),e.qZA(),e.qZA(),e.TgZ(22,"app-drawing-added",10),e.NdJ("drawingSaved",function(){return i.onDrawingSaved()}),e.qZA(),e._UZ(23,"div",11)}2&t&&(e.xp6(1),e.Q6J("ngClass",i.getCssClassForIcon("text")),e.xp6(8),e.Q6J("ngClass",i.getCssClassForIcon("rectangle")),e.xp6(3),e.Q6J("ngClass",i.getCssClassForIcon("ellipse")),e.xp6(2),e.Q6J("ngIf",!i.isLightThemeEnabled),e.xp6(1),e.Q6J("ngIf",i.isLightThemeEnabled),e.xp6(2),e.Q6J("ngClass",e.WLB(10,f0e,!i.isLocked&&i.isLightThemeEnabled,i.isLocked)),e.xp6(3),e.Q6J("ngClass",e.VKq(13,h0e,!i.isLocked&&i.isLightThemeEnabled)),e.xp6(2),e.Q6J("server",i.server)("project",i.project)("selectedDrawing",i.selectedDrawing))},directives:[An,Xa,ur,At.mk,At.O5,c0e],styles:[".non-visible[_ngcontent-%COMP%]{display:none}.unmarked[_ngcontent-%COMP%]{color:#fff!important}.unmarkedLight[_ngcontent-%COMP%]{color:#000!important}.marked[_ngcontent-%COMP%]{color:#0097a7!important}"],changeDetection:0}),n}(),EL=function(){function n(r,t,i){this.nodesDataSource=r,this.linksDataSource=t,this.drawingsDataSource=i,this.nodeNotificationEmitter=new e.vpe,this.linkNotificationEmitter=new e.vpe,this.drawingNotificationEmitter=new e.vpe,this.infoNotificationEmitter=new e.vpe,this.warningNotificationEmitter=new e.vpe,this.errorNotificationEmitter=new e.vpe}return n.prototype.handleMessage=function(r){"node.updated"===r.action&&(this.nodesDataSource.update(r.event),this.nodeNotificationEmitter.emit(r)),"node.created"===r.action&&(this.nodesDataSource.add(r.event),this.nodeNotificationEmitter.emit(r)),"node.deleted"===r.action&&(this.nodesDataSource.remove(r.event),this.nodeNotificationEmitter.emit(r)),"link.created"===r.action&&(this.linksDataSource.add(r.event),this.linkNotificationEmitter.emit(r)),"link.updated"===r.action&&(this.linksDataSource.update(r.event),this.linkNotificationEmitter.emit(r)),"link.deleted"===r.action&&(this.linksDataSource.remove(r.event),this.linkNotificationEmitter.emit(r)),"drawing.created"===r.action&&(this.drawingsDataSource.add(r.event),this.drawingNotificationEmitter.emit(r)),"drawing.updated"===r.action&&(this.drawingsDataSource.update(r.event),this.drawingNotificationEmitter.emit(r)),"drawing.deleted"===r.action&&(this.drawingsDataSource.remove(r.event),this.drawingNotificationEmitter.emit(r)),"log.error"===r.action&&this.errorNotificationEmitter.emit(r.event.message),"log.warning"===r.action&&this.warningNotificationEmitter.emit(r.event.message),"log.info"===r.action&&this.infoNotificationEmitter.emit(r.event.message)},n.\u0275fac=function(t){return new(t||n)(e.LFG(Ea.G),e.LFG(Kf.F),e.LFG(Es))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),m0e=function(){return function(){}}(),v0e=function(){return function(){}}(),US=function(){function n(r,t,i){this.fontBBoxCalculator=r,this.cssFixer=t,this.fontFixer=i}return n.prototype.convert=function(r){var t=this.cssFixer.fix(r.style),i=this.fontFixer.fixStyles(t),o=this.fontBBoxCalculator.calculate(r.text,i),a=new v0e;return a.rotation=r.rotation,a.style=r.style,a.text=r.text,a.x=r.x,a.y=r.y,null!==a.x&&(a.x-=3),null!==a.y&&(a.y-=o.height),a},n.\u0275fac=function(t){return new(t||n)(e.LFG(ES),e.LFG(Jf),e.LFG(ac))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),g0e=function(){return function(){}}(),ML=function(){function n(){}return n.prototype.convert=function(r){var t=new g0e;return t.adapter_number=r.adapterNumber,t.link_type=r.linkType,t.name=r.name,t.port_number=r.portNumber,t.short_name=r.shortName,t},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),j2=function(){function n(r,t){this.mapLabelToLabel=r,this.mapPortToPort=t}return n.prototype.convert=function(r){var t=this,i=new m0e;return i.node_id=r.id,i.command_line=r.commandLine,i.compute_id=r.computeId,i.console=r.console,i.console_host=r.consoleHost,i.console_type=r.consoleType,i.first_port_name=r.firstPortName,i.height=r.height,i.label=r.label?this.mapLabelToLabel.convert(r.label):void 0,i.locked=r.locked,i.name=r.name,i.node_directory=r.nodeDirectory,i.node_type=r.nodeType,i.port_name_format=r.portNameFormat,i.port_segment_size=r.portSegmentSize,i.ports=r.ports?r.ports.map(function(o){return t.mapPortToPort.convert(o)}):[],i.project_id=r.projectId,i.status=r.status,i.symbol=r.symbol,i.symbol_url=r.symbolUrl,i.usage=r.usage,i.width=r.width,i.x=r.x,i.y=r.y,i.z=r.z,i},n.\u0275fac=function(t){return new(t||n)(e.LFG(US),e.LFG(ML))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),_0e=function(){return function(){}}(),uz=function(){function n(){}return n.prototype.convert=function(r){var t=new _0e;return t.drawing_id=r.id,t.project_id=r.projectId,t.rotation=r.rotation,t.svg=r.svg,t.locked=r.locked,t.x=r.x,t.y=r.y,t.z=r.z,t.element=r.element,t},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),y0e=function(){return function(){}}(),b0e=function(){return function(){}}(),AL=function(){function n(r){this.mapLabelToLabel=r}return n.prototype.convert=function(r){var t=new b0e;return t.node_id=r.nodeId,t.adapter_number=r.adapterNumber,t.port_number=r.portNumber,t.label=this.mapLabelToLabel.convert(r.label),t},n.\u0275fac=function(t){return new(t||n)(e.LFG(US))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),cz=function(){function n(r){this.mapLinkNodeToMapLinkNode=r}return n.prototype.convert=function(r){var t=this,i=new y0e;return i.link_id=r.id,i.capture_file_name=r.captureFileName,i.capture_file_path=r.captureFilePath,i.capturing=r.capturing,i.filters=r.filters,i.link_type=r.linkType,i.nodes=r.nodes.map(function(o){return t.mapLinkNodeToMapLinkNode.convert(o)}),i.project_id=r.projectId,i.suspend=r.suspend,i},n.\u0275fac=function(t){return new(t||n)(e.LFG(AL))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),z2=f(2094),dz=function(){function n(r){this.fontBBCalculator=r,this.MARGIN_BETWEEN_NODE_AND_LABEL=8}return n.prototype.fix=function(r){r.label.style="font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;";var t=this.fontBBCalculator.calculate(r.label.text,r.label.style);return r.label.x=r.width/2-t.width/2,r.label.y=-t.height-this.MARGIN_BETWEEN_NODE_AND_LABEL,r},n.\u0275fac=function(t){return new(t||n)(e.LFG(ES))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),pz=function(){function n(){}return n.prototype.notificationsPath=function(r){var t="ws";return"https:"===r.protocol&&(t="wss"),t+"://"+r.host+":"+r.port+"/v2/notifications/ws"},n.prototype.projectNotificationsPath=function(r,t){var i="ws";return"https:"===r.protocol&&(i="wss"),i+"://"+r.host+":"+r.port+"/v2/projects/"+t+"/notifications/ws"},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),C0e=function(){function n(r,t,i,o,a,s,u,p){this.nodeService=r,this.nodeConsoleService=t,this.nodesDataSource=i,this.toasterService=o,this.serverService=a,this.settingsService=s,this.mapSettingsService=u,this.electronService=p}return n.prototype.startConsoleForAllNodes=function(){return(0,Qn.mG)(this,void 0,void 0,function(){var r,t,i,o,a,s;return(0,Qn.Jh)(this,function(u){switch(u.label){case 0:if(!this.electronService.isElectronApp)return[3,5];r=this.settingsService.getConsoleSettings()?this.settingsService.getConsoleSettings():this.nodeService.getDefaultCommand(),t=this.nodesDataSource.getItems(),i=0,o=t,u.label=1;case 1:return i<o.length?(s={command:r,type:(a=o[i]).console_type,host:a.console_host,port:a.console,name:a.name,project_id:a.project_id,node_id:a.node_id,server_url:this.serverService.getServerUrl(this.server)},[4,this.electronService.remote.require("./console-executor.js").openConsole(s)]):[3,4];case 2:u.sent(),u.label=3;case 3:return i++,[3,1];case 4:return[3,6];case 5:this.mapSettingsService.openConsolesInWidget?this.nodeConsoleService.openConsolesForAllNodesInWidget(this.nodesDataSource.getItems()):this.nodeConsoleService.openConsolesForAllNodesInNewTabs(this.nodesDataSource.getItems()),u.label=6;case 6:return[2]}})})},n.prototype.startNodes=function(){var r=this;this.nodeService.startAll(this.server,this.project).subscribe(function(){r.toasterService.success("All nodes successfully started")})},n.prototype.stopNodes=function(){var r=this;this.nodeService.stopAll(this.server,this.project).subscribe(function(){r.toasterService.success("All nodes successfully stopped")})},n.prototype.suspendNodes=function(){var r=this;this.nodeService.suspendAll(this.server,this.project).subscribe(function(){r.toasterService.success("All nodes successfully suspended")})},n.prototype.reloadNodes=function(){var r=this;this.nodeService.reloadAll(this.server,this.project).subscribe(function(){r.toasterService.success("All nodes successfully reloaded")})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Jr),e.Y36(hd),e.Y36(Ea.G),e.Y36(er),e.Y36(Hr),e.Y36(yp.g),e.Y36(Ou),e.Y36(hs))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-nodes-menu"]],inputs:{project:"project",server:"server"},decls:16,vars:0,consts:[[1,"menu-button-group"],["matTooltip","Console connect to all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Start/Resume all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Suspend all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Stop all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Reload all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"button",1),e.NdJ("click",function(){return i.startConsoleForAllNodes()}),e.TgZ(2,"mat-icon"),e._uU(3,"web_asset"),e.qZA(),e.qZA(),e.TgZ(4,"button",2),e.NdJ("click",function(){return i.startNodes()}),e.TgZ(5,"mat-icon"),e._uU(6,"play_arrow"),e.qZA(),e.qZA(),e.TgZ(7,"button",3),e.NdJ("click",function(){return i.suspendNodes()}),e.TgZ(8,"mat-icon"),e._uU(9,"pause"),e.qZA(),e.qZA(),e.TgZ(10,"button",4),e.NdJ("click",function(){return i.stopNodes()}),e.TgZ(11,"mat-icon"),e._uU(12,"stop"),e.qZA(),e.qZA(),e.TgZ(13,"button",5),e.NdJ("click",function(){return i.reloadNodes()}),e.TgZ(14,"mat-icon"),e._uU(15,"replay"),e.qZA(),e.qZA(),e.qZA())},directives:[An,Xa,ur],styles:[".menu-button[_ngcontent-%COMP%]{margin:0 5px!important}.marked[_ngcontent-%COMP%]{color:#0097a7!important}"],changeDetection:0}),n}(),S0e=function(){function n(r,t,i,o,a){this.toasterService=r,this.dockerService=t,this.qemuService=i,this.iouService=o,this.iosService=a}return n.prototype.ngOnInit=function(){var r=this;this.uploader=new Wm({}),this.uploader.onAfterAddingFile=function(t){t.withCredentials=!1},this.uploader.onErrorItem=function(t,i,o,a){r.toasterService.error("An error has occured")},this.uploader.onCompleteItem=function(t,i,o,a){"qemu"===r.template.template_type?r.qemuService.addTemplate(r.server,r.template).subscribe(function(){return r.onUploadComplete()}):"iou"===r.template.template_type?r.iouService.addTemplate(r.server,r.template).subscribe(function(){return r.onUploadComplete()}):"dynamips"===r.template.template_type?r.iosService.addTemplate(r.server,r.template).subscribe(function(){return r.onUploadComplete()}):"docker"===r.template.template_type&&r.dockerService.addTemplate(r.server,r.template).subscribe(function(){return r.onUploadComplete()})}},n.prototype.onUploadComplete=function(){this.toasterService.success("Appliance imported successfully"),this.uploader.queue=[]},n.prototype.uploadAppliance=function(r){var s,t=this,i=r.target.files[0],o=i.name,a=new FileReader;a.onloadend=function(){var u=JSON.parse(a.result);if(u.qemu)(s=new jZ).template_type="qemu",s.adapter_type=u.qemu.adapter_type,s.adapters=u.qemu.adapters,s.ram=u.qemu.ram,s.options=u.qemu.options,s.console_type=u.qemu.console_type;else if(u.iou)(s=new VZ).template_type="iou",s.console_type=u.iou.console_type,s.console_auto_start=u.iou.console_auto_start,s.ethernet_adapters=u.iou.ethernet_adapters,s.l1_keepalives=u.iou.l1_keepalives,s.nvram=u.iou.nvram,s.ram=u.iou.ram,s.serial_adapters=u.iou.serial_adapters;else if(u.dynamips)(s=new HZ).template_type="dynamips",s.platform=u.dynamips.platform,s.ram=u.dynamips.ram,s.nvram=u.dynamips.nvram,s.startup_config=u.dynamips.startup_config,s.wic0=u.dynamips.wic0,s.wic1=u.dynamips.wic1,s.wic2=u.dynamips.wic2,s.slot0=u.dynamips.slot0,s.slot1=u.dynamips.slot1,s.slot2=u.dynamips.slot2,s.slot3=u.dynamips.slot3,s.slot4=u.dynamips.slot4,s.slot5=u.dynamips.slot5,s.slot6=u.dynamips.slot6,s.slot7=u.dynamips.slot7;else{if(!u.docker)return void t.toasterService.error("Template type not supported");(s=new BZ).template_type="docker",s.adapters=u.docker.adapters,s.console_type=u.docker.console_type,s.image=u.docker.image}s.name=u.name,s.category=u.category,s.builtin=!1,s.default_name_format="{name}-{0}",s.compute_id="vm",s.symbol="guest"===s.category?":/symbols/computer.svg":":/symbols/"+s.category+"_guest.svg",t.template=s;var m=t.getUploadPath(t.server,s.template_type,o);t.uploader.queue.forEach(function(R){return R.url=m}),t.uploader.uploadItem(t.uploader.queue[0])},a.readAsText(i)},n.prototype.getUploadPath=function(r,t,i){return r.protocol+"//"+r.host+":"+r.port+"/v2/"+t+"/images/"+i},n.\u0275fac=function(t){return new(t||n)(e.Y36(er),e.Y36(ev),e.Y36(vp),e.Y36(rv),e.Y36(nv))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-import-appliance"]],inputs:{project:"project",server:"server"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),T0e=function(){function n(r,t,i){this.drawingService=r,this.drawingsDataSource=t,this.drawingsEventSource=i}return n.prototype.ngOnInit=function(){var r=this;this.drawingDragged=this.drawingsEventSource.dragged.subscribe(function(t){return r.onDrawingDragged(t)})},n.prototype.onDrawingDragged=function(r){var t=this,i=this.drawingsDataSource.get(r.datum.id);i.x+=r.dx,i.y+=r.dy,this.drawingService.updatePosition(this.server,this.project,i,i.x,i.y).subscribe(function(o){t.drawingsDataSource.update(o)})},n.prototype.ngOnDestroy=function(){this.drawingDragged.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(ks),e.Y36(Es),e.Y36(lc))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-drawing-dragged"]],inputs:{server:"server",project:"project"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),x0e=function(){function n(r,t,i,o){this.drawingService=r,this.drawingsDataSource=t,this.drawingsEventSource=i,this.mapDrawingToSvgConverter=o}return n.prototype.ngOnInit=function(){var r=this;this.drawingResized=this.drawingsEventSource.resized.subscribe(function(t){return r.onDrawingResized(t)})},n.prototype.onDrawingResized=function(r){var t=this,i=this.drawingsDataSource.get(r.datum.id),o=this.mapDrawingToSvgConverter.convert(r.datum);this.drawingService.updateSizeAndPosition(this.server,i,r.x,r.y,o).subscribe(function(a){t.drawingsDataSource.update(a)})},n.prototype.ngOnDestroy=function(){this.drawingResized.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(ks),e.Y36(Es),e.Y36(lc),e.Y36(cv))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-drawing-resized"]],inputs:{server:"server"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),w0e=function(){function n(r,t,i){this.linkService=r,this.linksDataSource=t,this.linksEventSource=i}return n.prototype.ngOnInit=function(){var r=this;this.interfaceDragged=this.linksEventSource.interfaceDragged.subscribe(function(t){return r.onInterfaceLabelDragged(t)})},n.prototype.onInterfaceLabelDragged=function(r){var t=this,i=this.linksDataSource.get(r.datum.linkId);i.nodes[0].node_id===r.datum.nodeId&&(i.nodes[0].label.x+=r.dx,i.nodes[0].label.y+=r.dy),i.nodes[1].node_id===r.datum.nodeId&&(i.nodes[1].label.x+=r.dx,i.nodes[1].label.y+=r.dy),this.linkService.updateNodes(this.server,i,i.nodes).subscribe(function(o){t.linksDataSource.update(o)})},n.prototype.ngOnDestroy=function(){this.interfaceDragged.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(uc),e.Y36(Kf.F),e.Y36(ZS))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-interface-label-dragged"]],inputs:{server:"server"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),k0e=function(){function n(r,t,i,o,a,s){this.projectService=r,this.linkService=t,this.linksDataSource=i,this.linksEventSource=o,this.mapNodeToNode=a,this.mapPortToPort=s}return n.prototype.ngOnInit=function(){var r=this;this.linkCreated=this.linksEventSource.created.subscribe(function(t){return r.onLinkCreated(t)})},n.prototype.onLinkCreated=function(r){var t=this,i=Math.abs(r.sourceNode.x-r.targetNode.x),o=Math.abs(r.sourceNode.y-r.targetNode.y),a=Math.sqrt(Math.pow(i,2)+Math.pow(o,2)),s=o/a,u=45/a*i,p=45/a*o,m=0,b=0,R=0,F=0;r.sourceNode.x<=r.targetNode.x&&r.sourceNode.y<=r.targetNode.y?(m=Math.floor(r.sourceNode.width/2)+Math.round(u)+5,b=Math.floor(r.sourceNode.height/2)+Math.round(p)+5,R=Math.floor(r.targetNode.width/2)-Math.round(u)-5-Math.round(20*s),F=Math.floor(r.targetNode.height/2)-Math.round(p)+5-Math.round(20*s)):r.sourceNode.x>r.targetNode.x&&r.sourceNode.y<r.targetNode.y?(m=Math.floor(r.sourceNode.width/2)-Math.round(u)-5-Math.round(20*s),b=Math.floor(r.sourceNode.height/2)+Math.round(p)+5-Math.round(20*s),R=Math.floor(r.targetNode.width/2)+Math.round(u)+5,F=Math.floor(r.targetNode.height/2)-Math.round(p)-5):r.sourceNode.x<r.targetNode.x&&r.sourceNode.y>r.targetNode.y?(m=Math.floor(r.sourceNode.width/2)+Math.round(u)+5-Math.round(20*s),b=Math.floor(r.sourceNode.height/2)-Math.round(p)-5-Math.round(20*s),R=Math.floor(r.targetNode.width/2)-Math.round(u)-5,F=Math.floor(r.targetNode.height/2)+Math.round(p)+5):r.sourceNode.x>=r.targetNode.x&&r.sourceNode.y>=r.targetNode.y&&(m=Math.floor(r.sourceNode.width/2)-Math.round(u)-5-Math.round(20*s),b=Math.floor(r.sourceNode.height/2)-Math.round(p)+5-Math.round(20*s),R=Math.floor(r.targetNode.width/2)+Math.round(u)+5,F=Math.floor(r.targetNode.height/2)+Math.round(p)+5);var G=this.mapNodeToNode.convert(r.sourceNode),Y=this.mapPortToPort.convert(r.sourcePort),ee=this.mapNodeToNode.convert(r.targetNode),pe=this.mapPortToPort.convert(r.targetPort);this.linkService.createLink(this.server,G,Y,ee,pe,m,b,R,F).subscribe(function(){t.projectService.links(t.server,t.project.project_id).subscribe(function(Ee){t.linksDataSource.set(Ee)})})},n.prototype.ngOnDestroy=function(){this.linkCreated.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(fd.Y),e.Y36(uc),e.Y36(Kf.F),e.Y36(ZS),e.Y36(j2),e.Y36(ML))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-link-created"]],inputs:{server:"server",project:"project"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),E0e=function(){function n(r,t,i){this.nodesDataSource=r,this.nodeService=t,this.nodesEventSource=i}return n.prototype.ngOnInit=function(){var r=this;this.nodeDragged=this.nodesEventSource.dragged.subscribe(function(t){return r.onNodeDragged(t)})},n.prototype.onNodeDragged=function(r){var t=this,i=this.nodesDataSource.get(r.datum.id);i.x+=r.dx,i.y+=r.dy,this.nodeService.updatePosition(this.server,this.project,i,i.x,i.y).subscribe(function(o){t.nodesDataSource.update(o)})},n.prototype.ngOnDestroy=function(){this.nodeDragged.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ea.G),e.Y36(Jr),e.Y36(av))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-node-dragged"]],inputs:{server:"server",project:"project"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),M0e=function(){function n(r,t,i,o){this.nodesDataSource=r,this.nodeService=t,this.nodesEventSource=i,this.mapLabelToLabel=o}return n.prototype.ngOnInit=function(){var r=this;this.nodeLabelDragged=this.nodesEventSource.labelDragged.subscribe(function(t){return r.onNodeLabelDragged(t)})},n.prototype.onNodeLabelDragged=function(r){var t=this,i=this.nodesDataSource.get(r.datum.nodeId),o=r.datum;o.x+=r.dx,o.y+=r.dy;var a=this.mapLabelToLabel.convert(o);i.label=a,this.nodeService.updateLabel(this.server,i,i.label).subscribe(function(s){t.nodesDataSource.update(s)})},n.prototype.ngOnDestroy=function(){this.nodeLabelDragged.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ea.G),e.Y36(Jr),e.Y36(av),e.Y36(US))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-node-label-dragged"]],inputs:{server:"server"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),A0e=function(){function n(r,t,i,o,a,s){this.drawingService=r,this.drawingsDataSource=t,this.drawingsEventSource=i,this.drawingsFactory=o,this.mapDrawingToSvgConverter=a,this.context=s,this.drawingSaved=new e.vpe}return n.prototype.ngOnInit=function(){var r=this;this.textAdded=this.drawingsEventSource.textAdded.subscribe(function(t){return r.onTextAdded(t)})},n.prototype.onTextAdded=function(r){var t=this,i=this.drawingsFactory.getDrawingMock("text");i.element.text=r.savedText;var o=this.mapDrawingToSvgConverter.convert(i);this.drawingService.add(this.server,this.project.project_id,(r.x-(this.context.getZeroZeroTransformationPoint().x+this.context.transformation.x))/this.context.transformation.k,(r.y-(this.context.getZeroZeroTransformationPoint().y+this.context.transformation.y))/this.context.transformation.k,o).subscribe(function(a){t.drawingsDataSource.add(a),t.drawingSaved.emit(!0)})},n.prototype.ngOnDestroy=function(){this.textAdded.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(ks),e.Y36(Es),e.Y36(lc),e.Y36(kL),e.Y36(cv),e.Y36(iu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-text-added"]],inputs:{server:"server",project:"project"},outputs:{drawingSaved:"drawingSaved"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),D0e=function(){function n(r,t,i,o){this.drawingService=r,this.drawingsDataSource=t,this.drawingsEventSource=i,this.mapDrawingToSvgConverter=o}return n.prototype.ngOnInit=function(){var r=this;this.textEdited=this.drawingsEventSource.textEdited.subscribe(function(t){return r.onTextEdited(t)})},n.prototype.onTextEdited=function(r){var t=this,i=new Qf;i.element=r.textElement,i.element.text=r.editedText;var o=this.mapDrawingToSvgConverter.convert(i),a=this.drawingsDataSource.get(r.textDrawingId);this.drawingService.updateText(this.server,a,o).subscribe(function(s){t.drawingsDataSource.update(s),t.drawingsEventSource.textSaved.emit(!0)})},n.prototype.ngOnDestroy=function(){this.textEdited.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(ks),e.Y36(Es),e.Y36(lc),e.Y36(cv))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-text-edited"]],inputs:{server:"server"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),O0e=["app-selection",""];function P0e(n,r){if(1&n&&(e.O4$(),e._UZ(0,"path",2)),2&n){var t=e.oxw();e.uIk("d",t.d)}}var I0e=function(){function n(r){this.ref=r,this.started=!1,this.visible=!1,this.rectangleSelected=new e.vpe}return n.prototype.ngOnInit=function(){},n.prototype.ngAfterViewInit=function(){var r=this,t=na.y.fromEvent(this.svg,"mousedown").do(function(p){return p.preventDefault()});t.subscribe(function(p){p.target===r.svg&&(r.started=!0,r.startX=p.clientX+window.scrollX,r.startY=p.clientY+window.scrollY,r.width=0,r.height=0,r.visible=!0,r.ref.detectChanges())});var i=na.y.fromEvent(document,"mouseup").do(function(p){p.preventDefault()}),o=na.y.fromEvent(document,"mousemove").do(function(p){return p.stopPropagation()}),a=na.y.fromEvent(document,"scroll").startWith({}),s=na.y.combineLatest(o,a),u=t.mergeMap(function(p){return s.map(function(m){return m[0]}).do(function(m){!r.started||(r.visible=!0,r.width=m.clientX-r.startX+window.scrollX,r.height=m.clientY-r.startY+window.scrollY,r.ref.detectChanges(),r.selectedEvent([r.startX,r.startY],[r.width,r.height]))}).skipUntil(i.take(1).do(function(m){!r.started||(r.visible=!1,r.started=!1,r.width=m.clientX-r.startX+window.scrollX,r.height=m.clientY-r.startY+window.scrollY,r.ref.detectChanges(),r.selectedEvent([r.startX,r.startY],[r.width,r.height]))})).take(1)});this.draggable=u.subscribe(function(p){})},n.prototype.ngOnDestroy=function(){this.draggable.unsubscribe()},Object.defineProperty(n.prototype,"d",{get:function(){return this.rect(this.startX,this.startY,this.width,this.height)},enumerable:!1,configurable:!0}),n.prototype.rect=function(r,t,i,o){return"M"+[r,t]+" l"+[i,0]+" l"+[0,o]+" l"+[-i,0]+"z"},n.prototype.selectedEvent=function(r,t){var i=Math.min(r[0],t[0]),o=Math.min(r[1],t[1]),a=Math.abs(r[0]-t[0]),s=Math.abs(r[1]-t[1]);this.rectangleSelected.emit(new Sj(i,o,a,s))},n.\u0275fac=function(t){return new(t||n)(e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-selection",""]],inputs:{svg:["app-selection","svg"]},outputs:{rectangleSelected:"selected"},attrs:O0e,decls:2,vars:1,consts:[[1,"selection-line-tool"],["class","selection",4,"ngIf"],[1,"selection"]],template:function(t,i){1&t&&(e.O4$(),e.TgZ(0,"g",0),e.YNc(1,P0e,1,1,"path",1),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",i.visible))},directives:[At.O5],styles:[""]}),n}(),R0e=function(){function n(){}return n.prototype.d=function(r){var t=[[r.source.x+r.source.width/2,r.source.y+r.source.height/2],[r.target.x+r.target.width/2,r.target.y+r.target.height/2]],i=Ku();return i.moveTo(t[0][0],t[0][1]),i.lineTo(t[1][0],t[1][1]),i.toString()},n}(),N0e=function(){function n(){}return n.prototype.linkToPoints=function(r){var t={x:r.source.x+r.source.width/2,y:r.source.y+r.source.height/2},i={x:r.target.x+r.target.width/2,y:r.target.y+r.target.height/2},o=i.x-t.x,a=i.y-t.y,s=Math.atan2(a,o),u=-Math.PI/4,p=[Math.cos(s+u),Math.sin(s+u)];return[[t.x,t.y],[t.x+o/2+15*p[0],t.y+a/2+15*p[1]],[i.x-o/2-15*p[0],i.y-a/2-15*p[1]],[i.x,i.y]]},n.prototype.d=function(r){var t=this.linkToPoints(r),i=Ku();return i.moveTo(t[0][0],t[0][1]),i.lineTo(t[1][0],t[1][1]),i.lineTo(t[2][0],t[2][1]),i.lineTo(t[3][0],t[3][1]),i.toString()},n}(),Z0e=["app-status",""];function L0e(n,r){if(1&n&&(e.O4$(),e._UZ(0,"circle",3)),2&n){var t=e.oxw(2);e.uIk("cx",t.point.x)("cy",t.point.y)}}function F0e(n,r){if(1&n&&(e.O4$(),e._UZ(0,"rect",4)),2&n){var t=e.oxw(2);e.uIk("x",t.point.x-5)("y",t.point.y-5)}}function B0e(n,r){if(1&n&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,L0e,1,2,"circle",1),e.YNc(2,F0e,1,2,"rect",2),e.qZA()),2&n){var t=e.oxw();e.xp6(1),e.Q6J("ngIf","started"==t.status),e.xp6(1),e.Q6J("ngIf","stopped"==t.status)}}var U0e=function(){function n(r,t){this.element=r,this.ref=t,this.data={status:"",path:null,direction:null,d:null}}return Object.defineProperty(n.prototype,"status",{get:function(){return this.data.status},set:function(r){this.data.status=r,this.ref.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return this.data.path},set:function(r){this.data.path=r,this.ref.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"direction",{get:function(){return this.data.direction},set:function(r){this.data.direction=r,this.ref.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"d",{set:function(r){this.data.d!==r&&(this.data.d=r,this.ref.markForCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"sourceStatusPoint",{get:function(){return this.path?this.path.nativeElement.getPointAtLength(45):null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"targetStatusPoint",{get:function(){return this.path?this.path.nativeElement.getPointAtLength(this.path.nativeElement.getTotalLength()-45):null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"point",{get:function(){return"source"===this.direction?this.sourceStatusPoint:this.targetStatusPoint},enumerable:!1,configurable:!0}),n.STOPPED_STATUS_RECT_WIDTH=10,n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-status",""]],inputs:{status:["app-status","status"],path:"path",direction:"direction",d:"d"},attrs:Z0e,decls:1,vars:1,consts:[[4,"ngIf"],["class","status_started","r","6","fill","#2ecc71",4,"ngIf"],["class","status_stopped","width","10","height","10","r","6","fill","red",4,"ngIf"],["r","6","fill","#2ecc71",1,"status_started"],["width","10","height","10","r","6","fill","red",1,"status_stopped"]],template:function(t,i){1&t&&e.YNc(0,B0e,3,2,"g",0),2&t&&e.Q6J("ngIf",i.status&&i.point&&i.direction)},directives:[At.O5],styles:[""]}),n}(),H0e=["textSvg"],V0e=["app-interface-label",""],q0e=function(){function n(r,t,i,o){this.elementRef=r,this.ref=t,this.sanitizer=i,this.cssFixer=o,this.label={x:0,y:0,text:"",style:"",rotation:0},this.borderSize=5,this.textWidth=0,this.textHeight=0}return n.prototype.ngOnInit=function(){},Object.defineProperty(n.prototype,"x",{set:function(r){this.label.x=r,this.ref.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"y",{set:function(r){this.label.y=r,this.ref.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"text",{get:function(){return this.label.text},set:function(r){this.label.text=r,this.ref.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"style",{set:function(r){this.label.style=this.cssFixer.fix(r),this.ref.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"rotation",{set:function(r){this.label.rotation=r,this.ref.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"sanitizedStyle",{get:function(){return this.sanitizer.bypassSecurityTrustStyle(this.label.style)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"rectX",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"rectY",{get:function(){return-this.textRef.nativeElement.getBBox().height-this.borderSize},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"rectWidth",{get:function(){return this.textRef.nativeElement.getBBox().width+2*this.borderSize},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"rectHeight",{get:function(){return this.textRef.nativeElement.getBBox().height+this.borderSize},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"transform",{get:function(){var r=this.elementRef.nativeElement.getBBox(),t=this.label.x,i=this.label.y+r.height;return"translate("+t+", "+i+") rotate("+this.label.rotation+", "+t+", "+i+")"},enumerable:!1,configurable:!0}),n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(B.H7),e.Y36(Jf))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-interface-label",""]],viewQuery:function(t,i){var o;(1&t&&e.Gf(H0e,5),2&t)&&(e.iGM(o=e.CRH())&&(i.textRef=o.first))},inputs:{ignore:["app-interface-label","ignore"],x:"x",y:"y",text:"text",style:"style",rotation:"rotation"},attrs:V0e,decls:5,vars:9,consts:[["width","100","height","100",1,"text_container"],["stroke-dasharray","3,3","stroke-width","0.5","fill","none","stroke","black"],[1,"interface_label"],["textSvg",""]],template:function(t,i){1&t&&(e.O4$(),e.TgZ(0,"g",0),e._UZ(1,"rect",1),e.TgZ(2,"text",2,3),e._uU(4),e.qZA(),e.qZA()),2&t&&(e.uIk("transform",i.transform),e.xp6(1),e.uIk("x",i.rectX)("y",i.rectY)("width",i.rectWidth)("height",i.rectHeight),e.xp6(1),e.uIk("style",i.sanitizedStyle,e.Ckj)("x",i.borderSize)("y",-i.borderSize),e.xp6(2),e.hij(" ",i.text," "))},styles:[""]}),n}(),j0e=["path"],z0e=["app-link",""];function W0e(n,r){if(1&n&&(e.O4$(),e._UZ(0,"path",5,6)),2&n){var t=e.oxw();e.uIk("d",t.d)}}function G0e(n,r){if(1&n&&(e.O4$(),e._UZ(0,"path",7,6)),2&n){var t=e.oxw();e.uIk("d",t.d)}}function Y0e(n,r){if(1&n&&(e.O4$(),e._UZ(0,"g",8)),2&n){var t=e.oxw();e.Akn(t.link.nodes[0].label.style),e.Q6J("x",t.link.source.x+t.link.nodes[0].label.x)("y",t.link.source.y+t.link.nodes[0].label.y)("text",t.link.nodes[0].label.text)("rotation",t.link.nodes[0].label.rotation)}}function J0e(n,r){if(1&n&&(e.O4$(),e._UZ(0,"g",8)),2&n){var t=e.oxw();e.Akn(t.link.nodes[1].label.style),e.Q6J("x",t.link.target.x+t.link.nodes[1].label.x)("y",t.link.target.y+t.link.nodes[1].label.y)("text",t.link.nodes[1].label.text)("rotation",t.link.nodes[1].label.rotation)}}var Q0e=function(){function n(r,t){this.multiLinkCalculatorHelper=r,this.ref=t,this.ethernetLinkStrategy=new R0e,this.serialLinkStrategy=new N0e}return n.prototype.ngOnInit=function(){this.ref.detectChanges()},n.prototype.ngOnDestroy=function(){},Object.defineProperty(n.prototype,"strategy",{get:function(){return"serial"===this.link.linkType?this.serialLinkStrategy:this.ethernetLinkStrategy},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"transform",{get:function(){var r=this.multiLinkCalculatorHelper.linkTranslation(this.link.distance,this.link.source,this.link.target);return"translate ("+r.dx+", "+r.dy+")"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"d",{get:function(){return this.strategy.d(this.link)},enumerable:!1,configurable:!0}),n.\u0275fac=function(t){return new(t||n)(e.Y36(DS),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-link",""]],viewQuery:function(t,i){var o;(1&t&&e.Gf(j0e,5),2&t)&&(e.iGM(o=e.CRH())&&(i.path=o.first))},inputs:{link:["app-link","link"],nodeChanged:["node-changed","nodeChanged"],showInterfaceLabels:["show-interface-labels","showInterfaceLabels"]},attrs:z0e,decls:7,vars:16,consts:[[1,"link"],["class","ethernet_link","stroke","#000","stroke-width","2",4,"ngIf"],["class","serial_link","stroke","#B22222","fill","none","stroke-width","2",4,"ngIf"],[3,"app-status","direction","path","d"],[3,"app-interface-label","x","y","text","style","rotation",4,"ngIf"],["stroke","#000","stroke-width","2",1,"ethernet_link"],["path",""],["stroke","#B22222","fill","none","stroke-width","2",1,"serial_link"],[3,"app-interface-label","x","y","text","rotation"]],template:function(t,i){1&t&&(e.O4$(),e.TgZ(0,"g",0),e.YNc(1,W0e,2,1,"path",1),e.YNc(2,G0e,2,1,"path",2),e._UZ(3,"g",3),e._UZ(4,"g",3),e.YNc(5,Y0e,1,6,"g",4),e.YNc(6,J0e,1,6,"g",4),e.qZA()),2&t&&(e.uIk("link_id",i.link.id)("map-source",i.link.source.id)("map-target",i.link.target.id)("transform",i.transform),e.xp6(1),e.Q6J("ngIf","ethernet"==i.link.linkType),e.xp6(1),e.Q6J("ngIf","serial"==i.link.linkType),e.xp6(1),e.Q6J("app-status",i.link.source.status)("direction","source")("path",i.path)("d",i.d),e.xp6(1),e.Q6J("app-status",i.link.target.status)("direction","target")("path",i.path)("d",i.d),e.xp6(1),e.Q6J("ngIf",i.showInterfaceLabels),e.xp6(1),e.Q6J("ngIf",i.showInterfaceLabels))},directives:[At.O5,U0e,q0e],styles:[""]}),n}(),K0e=["app-draggable",""],X0e=["*"],fz=function(){return function(r,t,i,o){this.x=r,this.y=t,this.dx=i,this.dy=o}}(),hz=function(){function n(r){this.elementRef=r,this.dragging=new e.vpe,this.dragged=new e.vpe}return n.prototype.ngOnInit=function(){},n.prototype.ngAfterViewInit=function(){var r=this,t=na.y.fromEvent(this.elementRef.nativeElement,"mousedown").do(function(p){return p.preventDefault()});t.subscribe(function(p){r.posX=r.item.x,r.posY=r.item.y,r.startX=p.clientX,r.startY=p.clientY});var i=na.y.fromEvent(document,"mouseup").do(function(p){p.preventDefault()}),o=na.y.fromEvent(document,"mousemove").do(function(p){return p.stopPropagation()}),a=na.y.fromEvent(document,"scroll").startWith({}),s=na.y.combineLatest(o,a),u=t.mergeMap(function(p){return s.map(function(m){return m[0]}).do(function(m){var b=r.startX-m.clientX,R=r.startY-m.clientY;r.item.x=Math.round(r.posX-b),r.item.y=Math.round(r.posY-R),r.dragging.emit(new fz(r.item.x,r.item.y,-b,-R))}).skipUntil(i.take(1).do(function(m){var b=r.startX-m.clientX,R=r.startY-m.clientY;r.item.x=Math.round(r.posX-b),r.item.y=Math.round(r.posY-R),r.dragged.emit(new fz(r.item.x,r.item.y,-b,-R))})).take(1)});this.draggable=u.subscribe(function(p){})},n.prototype.ngOnDestroy=function(){this.draggable.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-draggable",""]],inputs:{item:["app-draggable","item"]},outputs:{dragging:"dragging",dragged:"dragged"},attrs:K0e,ngContentSelectors:X0e,decls:1,vars:0,template:function(t,i){1&t&&(e.F$t(),e.Hsn(0))},styles:[""]}),n}(),$0e=["label"],eCe=["image"],tCe=["app-node",""],nCe=function(){function n(r,t,i,o,a,s){this.cssFixer=r,this.fontFixer=t,this.sanitizer=i,this.element=o,this.cd=a,this.nodesEventSource=s,this.labelHeight=0}return n.prototype.ngOnInit=function(){},n.prototype.ngOnDestroy=function(){},n.prototype.ngOnChanges=function(r){this.cd.detectChanges()},n.prototype.ngAfterViewInit=function(){this.labelHeight=this.getLabelHeight(),this.cd.detectChanges()},n.prototype.OnDragging=function(r){this.node.x=r.x,this.node.y=r.y,this.cd.detectChanges()},n.prototype.OnDragged=function(r){this.cd.detectChanges(),this.nodesEventSource.dragged.emit(new oy(this.node,r.dx,r.dy))},Object.defineProperty(n.prototype,"symbol",{get:function(){var r=this,t=this.symbols.find(function(i){return i.symbol_id===r.node.symbol});return t?"data:image/svg+xml;base64,"+btoa(t.raw):"data:image/svg+xml;base64,none"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"label_style",{get:function(){var r=this.cssFixer.fix(this.node.label.style);return r=this.fontFixer.fixStyles(r),this.sanitizer.bypassSecurityTrustStyle(r)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"label_x",{get:function(){return null===this.node.label.x?-this.label.nativeElement.getBBox().width/2:this.node.label.x+n.NODE_LABEL_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"label_y",{get:function(){return this.labelHeight=this.getLabelHeight(),null===this.node.label.x?-this.node.height/2-this.labelHeight:this.node.label.y+this.labelHeight-n.NODE_LABEL_MARGIN},enumerable:!1,configurable:!0}),n.prototype.getLabelHeight=function(){return this.label.nativeElement.getBBox().height},n.NODE_LABEL_MARGIN=3,n.\u0275fac=function(t){return new(t||n)(e.Y36(Jf),e.Y36(ac),e.Y36(B.H7),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(av))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-node",""]],viewQuery:function(t,i){if(1&t&&(e.Gf($0e,5),e.Gf(eCe,5)),2&t){var o=void 0;e.iGM(o=e.CRH())&&(i.label=o.first),e.iGM(o=e.CRH())&&(i.imageRef=o.first)}},inputs:{node:["app-node","node"],symbols:"symbols",nodeChanged:["node-changed","nodeChanged"]},features:[e.TTD],attrs:tCe,decls:6,vars:11,consts:[[1,"node"],[3,"app-draggable","dragging","dragged"],["image",""],[1,"label"],["label",""]],template:function(t,i){1&t&&(e.O4$(),e.TgZ(0,"g",0),e.TgZ(1,"image",1,2),e.NdJ("dragging",function(a){return i.OnDragging(a)})("dragged",function(a){return i.OnDragged(a)}),e.qZA(),e.TgZ(3,"text",3,4),e._uU(5),e.qZA(),e.qZA()),2&t&&(e.uIk("transform","translate("+i.node.x+","+i.node.y+")"),e.xp6(1),e.Q6J("app-draggable",i.node),e.uIk("width",i.node.width)("height",i.node.height)("x",0)("y",0)("href",i.symbol,null,"xlink"),e.xp6(2),e.uIk("style",i.label_style,e.Ckj)("x",i.label_x)("y",i.label_y),e.xp6(2),e.hij(" ",i.node.label.text," "))},directives:[hz],styles:[""],changeDetection:0}),n}(),rCe=["app-ellipse",""],iCe=function(){function n(r){this.qtDasharrayFixer=r}return n.prototype.ngOnInit=function(){},Object.defineProperty(n.prototype,"fill_opacity",{get:function(){return isFinite(this.ellipse.fill_opacity)?this.ellipse.fill_opacity:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"stroke_width",{get:function(){return isFinite(this.ellipse.stroke_width)?this.ellipse.stroke_width:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"stroke_dasharray",{get:function(){return this.ellipse.stroke_dasharray?this.qtDasharrayFixer.fix(this.ellipse.stroke_dasharray):null},enumerable:!1,configurable:!0}),n.\u0275fac=function(t){return new(t||n)(e.Y36(uv))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-ellipse",""]],inputs:{ellipse:["app-ellipse","ellipse"]},attrs:rCe,decls:1,vars:9,consts:[[1,"ellipse_element","noselect"]],template:function(t,i){1&t&&(e.O4$(),e._UZ(0,"ellipse",0)),2&t&&e.uIk("fill",i.ellipse.fill)("fill-opacity",i.fill_opacity)("stroke",i.ellipse.stroke)("stroke-width",i.stroke_width)("stroke-dasharray",i.stroke_dasharray)("cx",i.ellipse.cx)("cy",i.ellipse.cy)("rx",i.ellipse.rx)("ry",i.ellipse.ry)},styles:[""]}),n}(),oCe=["app-image",""],aCe=function(){function n(){}return n.prototype.ngOnInit=function(){},n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-image",""]],inputs:{image:["app-image","image"]},attrs:oCe,decls:1,vars:3,consts:[[1,"image_element","noselect"]],template:function(t,i){1&t&&(e.O4$(),e._UZ(0,"image",0)),2&t&&e.uIk("href",i.image.data,null,"xlink")("width",i.image.width)("height",i.image.height)},styles:[""]}),n}(),sCe=["app-line",""],lCe=function(){function n(r){this.qtDasharrayFixer=r}return n.prototype.ngOnInit=function(){},Object.defineProperty(n.prototype,"stroke_width",{get:function(){return isFinite(this.line.stroke_width)?this.line.stroke_width:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"stroke_dasharray",{get:function(){return this.line.stroke_dasharray?this.qtDasharrayFixer.fix(this.line.stroke_dasharray):null},enumerable:!1,configurable:!0}),n.\u0275fac=function(t){return new(t||n)(e.Y36(uv))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-line",""]],inputs:{line:["app-line","line"]},attrs:sCe,decls:1,vars:7,consts:[[1,"line_element","noselect"]],template:function(t,i){1&t&&(e.O4$(),e._UZ(0,"line",0)),2&t&&e.uIk("stroke",i.line.stroke)("stroke-width",i.stroke_width)("stroke-dasharray",i.stroke_dasharray)("x1",i.line.x1)("x2",i.line.x2)("y1",i.line.y1)("y2",i.line.y2)},styles:[""]}),n}(),uCe=["app-rect",""],cCe=function(){function n(r){this.qtDasharrayFixer=r}return n.prototype.ngOnInit=function(){},Object.defineProperty(n.prototype,"fill_opacity",{get:function(){return isFinite(this.rect.fill_opacity)?this.rect.fill_opacity:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"stroke_width",{get:function(){return isFinite(this.rect.stroke_width)?this.rect.stroke_width:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"stroke_dasharray",{get:function(){return this.rect.stroke_dasharray?this.qtDasharrayFixer.fix(this.rect.stroke_dasharray):null},enumerable:!1,configurable:!0}),n.\u0275fac=function(t){return new(t||n)(e.Y36(uv))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-rect",""]],inputs:{rect:["app-rect","rect"]},attrs:uCe,decls:1,vars:7,consts:[[1,"rect_element","noselect"]],template:function(t,i){1&t&&(e.O4$(),e._UZ(0,"rect",0)),2&t&&e.uIk("fill",i.rect.fill)("fill-opacity",i.fill_opacity)("stroke",i.rect.stroke)("stroke-width",i.stroke_width)("stroke-dasharray",i.stroke_dasharray)("width",i.rect.width)("height",i.rect.height)},styles:[""]}),n}(),dCe=["text"],pCe=["app-text",""];function fCe(n,r){if(1&n&&(e.O4$(),e.TgZ(0,"tspan",3),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.uIk("dy",0==r.index?"0em":"1.4em"),e.xp6(1),e.hij(" ",t," ")}}var hCe=function(){function n(r,t){this.fontFixer=r,this.sanitizer=t,this.lines=[],this.transformation=""}return n.prototype.ngOnInit=function(){this.lines=this.getLines(this.text.text)},n.prototype.ngDoCheck=function(){this.transformation=this.calculateTransformation()},Object.defineProperty(n.prototype,"style",{get:function(){var r=this.fontFixer.fix(this.text),t=[];return r.font_family&&t.push('font-family: "'+this.text.font_family+'"'),r.font_size&&t.push("font-size: "+this.text.font_size+"pt"),r.font_weight&&t.push("font-weight: "+this.text.font_weight),this.sanitizer.bypassSecurityTrustStyle(t.join("; "))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"textDecoration",{get:function(){return this.text.text_decoration},enumerable:!1,configurable:!0}),n.prototype.calculateTransformation=function(){var r=this.textRef.nativeElement.getElementsByTagName("tspan");if(r.length>0){var t=this.textRef.nativeElement.getBBox().height/r.length;return"translate("+n.MARGIN+", "+(t-n.MARGIN)+")"}return""},n.prototype.getLines=function(r){return r.split(/\r?\n/)},n.MARGIN=4,n.\u0275fac=function(t){return new(t||n)(e.Y36(ac),e.Y36(B.H7))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-text",""]],viewQuery:function(t,i){var o;(1&t&&e.Gf(dCe,5),2&t)&&(e.iGM(o=e.CRH())&&(i.textRef=o.first))},inputs:{text:["app-text","text"]},attrs:pCe,decls:3,vars:5,consts:[[1,"text_element","noselect"],["text",""],[0,"xml","space","preserve","x","0",4,"ngFor","ngForOf"],[0,"xml","space","preserve","x","0"]],template:function(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"text",0,1),e.YNc(2,fCe,2,2,"tspan",2),e.qZA()),2&t){var o=e.MAs(1);e.uIk("style",i.style,e.Ckj)("text-decoration",i.textDecoration)("fill",o.fill)("transform",i.transformation),e.xp6(2),e.Q6J("ngForOf",i.lines)}},directives:[At.sg],styles:[""]}),n}(),mCe=["app-drawing",""];function vCe(n,r){if(1&n&&(e.O4$(),e._UZ(0,"g",6)),2&n){var t=e.oxw();e.Q6J("app-ellipse",t.drawing.element)}}function gCe(n,r){if(1&n&&(e.O4$(),e._UZ(0,"g",7)),2&n){var t=e.oxw();e.Q6J("app-image",t.drawing.element)}}function _Ce(n,r){if(1&n&&(e.O4$(),e._UZ(0,"g",8)),2&n){var t=e.oxw();e.Q6J("app-line",t.drawing.element)}}function yCe(n,r){if(1&n&&(e.O4$(),e._UZ(0,"g",9)),2&n){var t=e.oxw();e.Q6J("app-rect",t.drawing.element)}}function bCe(n,r){if(1&n&&(e.O4$(),e._UZ(0,"g",10)),2&n){var t=e.oxw();e.Q6J("app-text",t.drawing.element)}}var CCe=function(){function n(r,t,i){this.svgToDrawingConverter=r,this.drawingsEventSource=t,this.cd=i}return n.prototype.ngOnInit=function(){try{this.drawing.element=this.svgToDrawingConverter.convert(this.drawing.svg)}catch(r){}},n.prototype.OnDragging=function(r){this.drawing.x=r.x,this.drawing.y=r.y,this.cd.detectChanges()},n.prototype.OnDragged=function(r){this.cd.detectChanges(),this.drawingsEventSource.dragged.emit(new oy(this.drawing,r.dx,r.dy))},n.prototype.is=function(r,t){return!!r&&("ellipse"===t?r instanceof Po:"image"===t?r instanceof R2:"line"===t?r instanceof sv:"rect"===t?r instanceof gp:"text"===t&&r instanceof lv)},Object.defineProperty(n.prototype,"transformation",{get:function(){return"translate("+this.drawing.x+","+this.drawing.y+") rotate("+this.drawing.rotation+")"},enumerable:!1,configurable:!0}),n.\u0275fac=function(t){return new(t||n)(e.Y36(IS),e.Y36(lc),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-drawing",""]],inputs:{drawing:["app-drawing","drawing"]},attrs:mCe,decls:6,vars:7,consts:[[1,"drawing",3,"app-draggable","dragging","dragged"],[3,"app-ellipse",4,"ngIf"],[3,"app-image",4,"ngIf"],[3,"app-line",4,"ngIf"],[3,"app-rect",4,"ngIf"],[3,"app-text",4,"ngIf"],[3,"app-ellipse"],[3,"app-image"],[3,"app-line"],[3,"app-rect"],[3,"app-text"]],template:function(t,i){1&t&&(e.O4$(),e.TgZ(0,"g",0),e.NdJ("dragging",function(a){return i.OnDragging(a)})("dragged",function(a){return i.OnDragged(a)}),e.YNc(1,vCe,1,1,"g",1),e.YNc(2,gCe,1,1,"g",2),e.YNc(3,_Ce,1,1,"g",3),e.YNc(4,yCe,1,1,"g",4),e.YNc(5,bCe,1,1,"g",5),e.qZA()),2&t&&(e.Q6J("app-draggable",i.drawing),e.uIk("transform",i.transformation),e.xp6(1),e.Q6J("ngIf",i.is(i.drawing.element,"ellipse")),e.xp6(1),e.Q6J("ngIf",i.is(i.drawing.element,"image")),e.xp6(1),e.Q6J("ngIf",i.is(i.drawing.element,"line")),e.xp6(1),e.Q6J("ngIf",i.is(i.drawing.element,"rect")),e.xp6(1),e.Q6J("ngIf",i.is(i.drawing.element,"text")))},directives:[hz,At.O5,iCe,aCe,lCe,cCe,hCe],styles:[""]}),n}(),SCe=["svg"];function TCe(n,r){if(1&n&&(e.O4$(),e._UZ(0,"g",12)),2&n){var t=r.$implicit,i=e.oxw(2);e.Q6J("app-link",t)("show-interface-labels",i.settings.show_interface_labels)}}function xCe(n,r){if(1&n&&(e.O4$(),e._UZ(0,"g",13)),2&n){var t=r.$implicit,i=e.oxw(2);e.Q6J("app-node",t)("symbols",i.symbols)}}function wCe(n,r){1&n&&(e.O4$(),e._UZ(0,"g",14)),2&n&&e.Q6J("app-drawing",r.$implicit)}function kCe(n,r){if(1&n&&(e.O4$(),e.TgZ(0,"g"),e.TgZ(1,"g",6),e.YNc(2,TCe,1,2,"g",7),e.qZA(),e.TgZ(3,"g",8),e.YNc(4,xCe,1,2,"g",9),e.qZA(),e.TgZ(5,"g",10),e.YNc(6,wCe,1,1,"g",11),e.qZA(),e.qZA()),2&n){var t=r.$implicit;e.xp6(2),e.Q6J("ngForOf",t.links),e.xp6(2),e.Q6J("ngForOf",t.nodes),e.xp6(2),e.Q6J("ngForOf",t.drawings)}}var ECe=function(){function n(r,t,i,o,a,s,u){this.graphDataManager=r,this.context=t,this.mapChangeDetectorRef=i,this.canvasSizeDetector=o,this.changeDetectorRef=a,this.layersManger=s,this.graphLayout=u,this.nodes=[],this.links=[],this.drawings=[],this.symbols=[],this.width=1500,this.height=600,this.settings={show_interface_labels:!0}}return Object.defineProperty(n.prototype,"showInterfaceLabels",{set:function(r){this.settings.show_interface_labels=r,this.mapChangeDetectorRef.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"movingTool",{set:function(r){this.mapChangeDetectorRef.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selectionTool",{set:function(r){this.mapChangeDetectorRef.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"readonly",{set:function(r){},enumerable:!1,configurable:!0}),n.prototype.ngOnChanges=function(r){},n.prototype.ngOnInit=function(){var r=this;this.changesDetected=this.mapChangeDetectorRef.changesDetected.subscribe(function(){r.graphDataManager.setNodes(r.nodes),r.graphDataManager.setLinks(r.links),r.graphDataManager.setDrawings(r.drawings),r.graphDataManager.setSymbols(r.symbols),r.changeDetectorRef.detectChanges()})},n.prototype.ngOnDestroy=function(){this.changesDetected.unsubscribe()},n.prototype.getSize=function(){return this.canvasSizeDetector.getOptimalSize(this.width,this.height)},Object.defineProperty(n.prototype,"layers",{get:function(){return this.layersManger.getLayersList()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"transform",{get:function(){var r=new iu;return r.size=this.getSize(),"translate("+(r.getZeroZeroTransformationPoint().x+r.transformation.x)+", "+(r.getZeroZeroTransformationPoint().y+r.transformation.y)+") scale("+r.transformation.k+")"},enumerable:!1,configurable:!0}),n.prototype.onResize=function(r){},n.\u0275fac=function(t){return new(t||n)(e.Y36(ry),e.Y36(iu),e.Y36(OS),e.Y36(rL),e.Y36(e.sBO),e.Y36(M2),e.Y36(fL))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-experimental-map"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(SCe,5),2&t)&&(e.iGM(o=e.CRH())&&(i.svg=o.first))},hostBindings:function(t,i){1&t&&e.NdJ("resize",function(a){return i.onResize(a)},!1,e.Jf7)},inputs:{nodes:"nodes",links:"links",drawings:"drawings",symbols:"symbols",width:"width",height:"height",showInterfaceLabels:["show-interface-labels","showInterfaceLabels"],movingTool:["moving-tool","movingTool"],selectionTool:["selection-tool","selectionTool"],drawLinkTool:["draw-link-tool","drawLinkTool"],readonly:"readonly"},features:[e.TTD],decls:7,vars:5,consts:[["preserveAspectRatio","none",1,"map"],["svg",""],[4,"ngFor","ngForOf"],[3,"app-selection"],["id","grayscale"],["id","feGrayscale","type","saturate","values","0"],[1,"links"],[3,"app-link","show-interface-labels",4,"ngFor","ngForOf"],[1,"nodes"],[3,"app-node","symbols",4,"ngFor","ngForOf"],[1,"drawings"],[3,"app-drawing",4,"ngFor","ngForOf"],[3,"app-link","show-interface-labels"],[3,"app-node","symbols"],[3,"app-drawing"]],template:function(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"svg",0,1),e.TgZ(2,"g"),e.YNc(3,kCe,7,3,"g",2),e.qZA(),e._UZ(4,"g",3),e.TgZ(5,"filter",4),e._UZ(6,"feColorMatrix",5),e.qZA(),e.qZA()),2&t){var o=e.MAs(1);e.uIk("width",i.width)("height",i.height),e.xp6(2),e.uIk("transform",i.transform),e.xp6(1),e.Q6J("ngForOf",i.layers),e.xp6(1),e.Q6J("app-selection",o)}},directives:[At.sg,I0e,Q0e,nCe,CCe],styles:["svg[_ngcontent-%COMP%]{display:block}"],changeDetection:0}),n}(),MCe=function(){function n(){}return n.prototype.transform=function(r,t){return r?t?(t=t.toLowerCase(),r.filter(function(i){return i.name.toLowerCase().includes(t)})):r:[]},n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=e.Yjl({name:"templatefilter",type:n,pure:!0}),n}();function ACe(n,r){if(1&n&&(e.TgZ(0,"mat-option",18),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function DCe(n,r){if(1&n&&(e.TgZ(0,"mat-option",18),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t.name," ")}}function OCe(n,r){if(1&n&&(e.TgZ(0,"mat-option",18),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function PCe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-select",19),e.NdJ("valueChange",function(a){return e.CHM(t),e.oxw().selectedTemplate.compute_id=a}),e.YNc(1,OCe,2,2,"mat-option",8),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("value",i.selectedTemplate.compute_id),e.xp6(1),e.Q6J("ngForOf",i.nodeServers)}}var DL=function(){return{standalone:!0}},ICe=function(){function n(r,t,i,o,a,s){this.dialogRef=r,this.templateService=t,this.formBuilder=i,this.data=o,this.toasterService=a,this.nonNegativeValidator=s,this.templateTypes=["cloud","ethernet_hub","ethernet_switch","docker","dynamips","vpcs","traceng","virtualbox","vmware","iou","qemu"],this.searchText="",this.nodeServers=["local","vm"],this.server=o.server,this.project=o.project,this.configurationForm=this.formBuilder.group({numberOfNodes:new ne.NI(1,[ne.kI.required,s.get])}),this.positionForm=this.formBuilder.group({top:new ne.NI(0,ne.kI.required),left:new ne.NI(0,ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.templateService.list(this.server).subscribe(function(t){r.filteredTemplates=t,r.templates=t})},n.prototype.onNoClick=function(){this.dialogRef.close()},n.prototype.filterTemplates=function(r){var t=this,i=this.templates.filter(function(o){return o.name.toLowerCase().includes(t.searchText.toLowerCase())});this.filteredTemplates=i.filter(function(o){return o.template_type===r.value.toString()})},n.prototype.chooseTemplate=function(r){this.selectedTemplate=r.value,("cloud"===this.selectedTemplate.template_type||"ethernet_hub"===this.selectedTemplate.template_type||"ethernet_switch"===this.selectedTemplate.template_type)&&(this.selectedTemplate.compute_id="local")},n.prototype.onAddClick=function(){if(this.selectedTemplate&&0!==this.filteredTemplates.length)if(this.positionForm.valid&&this.configurationForm.valid&&this.selectedTemplate.compute_id){var r=this.positionForm.get("left").value,t=this.positionForm.get("top").value;if(r>this.project.scene_width/2||r<-this.project.scene_width/2||t>this.project.scene_height/2||t<-this.project.scene_height)this.toasterService.error("Please set correct position values.");else{var i={template:this.selectedTemplate,server:this.selectedTemplate.compute_id,numberOfNodes:this.configurationForm.get("numberOfNodes").value,x:r,y:t};this.dialogRef.close(i)}}else this.toasterService.error("Please fill all required fields.");else this.toasterService.error("Please firstly choose template.")},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(Q_),e.Y36(ne.qu),e.Y36(dd),e.Y36(er),e.Y36(L2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-template-list-dialog"]],decls:40,vars:18,consts:[[1,"title-container"],["mat-dialog-title",""],["mat-button","","color","accent",1,"top-button",3,"routerLink","click"],["mat-dialog-content","",1,"content"],["floatPlaceholder","never",1,"form-field"],["matInput","","placeholder","Search by name",3,"ngModel","ngModelOptions","ngModelChange"],[1,"form-field"],["placeholder","Filter templates by type",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Choose template",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"formGroup"],["type","number","matInput","","formControlName","numberOfNodes","placeholder","Enter number of nodes (default value is 1)"],["placeholder","Choose server for node",3,"value","valueChange",4,"ngIf"],["matInput","","type","number","formControlName","left"],["matInput","","type","number","formControlName","top"],["mat-dialog-actions","","align","end"],["mat-button","","tabindex","-1","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"addButton",3,"click"],[3,"value"],["placeholder","Choose server for node",3,"value","valueChange"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"h1",1),e._uU(2,"Add a node"),e.qZA(),e.TgZ(3,"button",2),e.NdJ("click",function(){return i.onNoClick()}),e._uU(4," Go to template preferences "),e.qZA(),e.qZA(),e.TgZ(5,"div",3),e.TgZ(6,"div",0),e.TgZ(7,"h6"),e._uU(8,"Template"),e.qZA(),e.qZA(),e.TgZ(9,"mat-form-field",4),e.TgZ(10,"input",5),e.NdJ("ngModelChange",function(a){return i.searchText=a}),e.qZA(),e.qZA(),e.TgZ(11,"mat-form-field",6),e.TgZ(12,"mat-select",7),e.NdJ("selectionChange",function(a){return i.filterTemplates(a)})("ngModelChange",function(a){return i.selectedType=a}),e.YNc(13,ACe,2,2,"mat-option",8),e.qZA(),e.qZA(),e.TgZ(14,"mat-form-field",6),e.TgZ(15,"mat-select",9),e.NdJ("selectionChange",function(a){return i.chooseTemplate(a)})("ngModelChange",function(a){return i.selectedTemplate=a}),e.YNc(16,DCe,2,2,"mat-option",8),e.ALo(17,"templatefilter"),e.qZA(),e.qZA(),e.TgZ(18,"div",0),e.TgZ(19,"h6"),e._uU(20,"Configuration"),e.qZA(),e.qZA(),e.TgZ(21,"form",10),e.TgZ(22,"mat-form-field",6),e._UZ(23,"input",11),e.qZA(),e.qZA(),e.YNc(24,PCe,2,2,"mat-select",12),e.TgZ(25,"div",0),e.TgZ(26,"h6"),e._uU(27,"Position"),e.qZA(),e.qZA(),e.TgZ(28,"form",10),e._uU(29," Left:\xa0 "),e.TgZ(30,"mat-form-field"),e._UZ(31,"input",13),e.qZA(),e._uU(32," Top:\xa0 "),e.TgZ(33,"mat-form-field"),e._UZ(34,"input",14),e.qZA(),e.qZA(),e.qZA(),e.TgZ(35,"div",15),e.TgZ(36,"button",16),e.NdJ("click",function(){return i.onNoClick()}),e._uU(37,"Close"),e.qZA(),e.TgZ(38,"button",17),e.NdJ("click",function(){return i.onAddClick()}),e._uU(39," Add "),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.MGl("routerLink","/server/",i.server.id,"/preferences"),e.xp6(7),e.Q6J("ngModel",i.searchText)("ngModelOptions",e.DdM(15,DL)),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(16,DL))("ngModel",i.selectedType),e.xp6(1),e.Q6J("ngForOf",i.templateTypes),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(17,DL))("ngModel",i.selectedTemplate),e.xp6(1),e.Q6J("ngForOf",e.xi3(17,12,i.filteredTemplates,i.searchText)),e.xp6(5),e.Q6J("formGroup",i.configurationForm),e.xp6(3),e.Q6J("ngIf",i.selectedTemplate),e.xp6(4),e.Q6J("formGroup",i.positionForm))},directives:[ri,An,fa,J_,Hn.KE,dr,ne.Fj,ne.JJ,ne.On,fi.gD,At.sg,ne._Y,ne.JL,ne.sg,ne.wV,ne.u,At.O5,ti,un.ey],pipes:[MCe],styles:[".header[_ngcontent-%COMP%]{min-height:64px;display:flex;align-items:baseline;padding:8px 24px 0;font-size:20px;justify-content:space-between}.mat-table[_ngcontent-%COMP%]{height:200px;overflow:scroll}.mat-form-field[_ngcontent-%COMP%]{font-size:16px;flex-grow:1}.form-field[_ngcontent-%COMP%]{width:100%}div[_ngcontent-%COMP%]{scrollbar-color:darkgrey #263238;scrollbar-width:thin}h6[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:10px;color:#0097a7}mat-table[_ngcontent-%COMP%]{scrollbar-color:darkgrey #263238;scrollbar-width:thin}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}.filterBox[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.title-container[_ngcontent-%COMP%]{display:flex;align-items:baseline;justify-content:space-between}"]}),n}();function RCe(n,r){if(1&n&&(e.TgZ(0,"mat-option",11),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function NCe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"span",14),e.TgZ(1,"div",15),e.NdJ("dragStart",function(s){return e.CHM(t),e.oxw(3).dragStart(s)})("dragEnd",function(s){e.CHM(t);var u=e.oxw(2).index,p=e.oxw();return p.dragEnd(s,p.filteredTemplates[u+1])}),e._UZ(2,"img",16),e.qZA(),e.TgZ(3,"div",17),e._uU(4),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2).index,o=e.oxw();e.xp6(2),e.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i+1]),e.LSH),e.xp6(2),e.Oqu(o.filteredTemplates[i+1].name)}}function ZCe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"span",14),e.TgZ(1,"div",15),e.NdJ("dragStart",function(s){return e.CHM(t),e.oxw(3).dragStart(s)})("dragEnd",function(s){e.CHM(t);var u=e.oxw(2).index,p=e.oxw();return p.dragEnd(s,p.filteredTemplates[u+2])}),e._UZ(2,"img",16),e.qZA(),e.TgZ(3,"div",17),e._uU(4),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2).index,o=e.oxw();e.xp6(2),e.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i+2]),e.LSH),e.xp6(2),e.Oqu(o.filteredTemplates[i+2].name)}}function LCe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"span",14),e.TgZ(1,"div",15),e.NdJ("dragStart",function(s){return e.CHM(t),e.oxw(3).dragStart(s)})("dragEnd",function(s){e.CHM(t);var u=e.oxw(2).index,p=e.oxw();return p.dragEnd(s,p.filteredTemplates[u+3])}),e._UZ(2,"img",16),e.qZA(),e.TgZ(3,"div",17),e._uU(4),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2).index,o=e.oxw();e.xp6(2),e.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i+3]),e.LSH),e.xp6(2),e.Oqu(o.filteredTemplates[i+3].name)}}function FCe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"span",13),e.TgZ(1,"span",14),e.TgZ(2,"div",15),e.NdJ("dragStart",function(s){return e.CHM(t),e.oxw(2).dragStart(s)})("dragEnd",function(s){e.CHM(t);var u=e.oxw().index,p=e.oxw();return p.dragEnd(s,p.filteredTemplates[u])}),e._UZ(3,"img",16),e.qZA(),e.TgZ(4,"div",17),e._uU(5),e.qZA(),e.qZA(),e.YNc(6,NCe,5,2,"span",18),e.YNc(7,ZCe,5,2,"span",18),e.YNc(8,LCe,5,2,"span",18),e.qZA()}if(2&n){var i=e.oxw().index,o=e.oxw();e.xp6(3),e.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i]),e.LSH),e.xp6(2),e.Oqu(o.filteredTemplates[i].name),e.xp6(1),e.Q6J("ngIf",o.filteredTemplates[i+1]),e.xp6(1),e.Q6J("ngIf",o.filteredTemplates[i+2]),e.xp6(1),e.Q6J("ngIf",o.filteredTemplates[i+3])}}function BCe(n,r){if(1&n&&(e.TgZ(0,"mat-list-item"),e.YNc(1,FCe,9,5,"span",12),e.qZA()),2&n){var t=r.index;e.xp6(1),e.Q6J("ngIf",t%4==0)}}var mz=function(){return{standalone:!0}},UCe=function(){function n(r,t,i,o){this.dialog=r,this.templateService=t,this.scaleService=i,this.symbolService=o,this.onNodeCreation=new e.vpe,this.templates=[],this.filteredTemplates=[],this.searchText="",this.templateTypes=["all","cloud","ethernet_hub","ethernet_switch","docker","dynamips","vpcs","traceng","virtualbox","vmware","iou","qemu"]}return n.prototype.ngOnInit=function(){var r=this;this.subscription=this.templateService.newTemplateCreated.subscribe(function(t){r.templates.push(t)}),this.templateService.list(this.server).subscribe(function(t){r.filteredTemplates=t,r.sortTemplates(),r.templates=t}),this.symbolService.list(this.server)},n.prototype.sortTemplates=function(){this.filteredTemplates=this.filteredTemplates.sort(function(r,t){return r.name<t.name?-1:1})},n.prototype.filterTemplates=function(r){var t=this,i=this.templates.filter(function(o){return o.name.toLowerCase().includes(t.searchText.toLowerCase())});this.filteredTemplates="all"!==this.selectedType&&this.selectedType?i.filter(function(o){return o.template_type===t.selectedType}):i,this.sortTemplates()},n.prototype.dragStart=function(r){var t=event.target.getBoundingClientRect();this.startX=event.clientX,this.startY=event.clientY,this.movementY=t.top-event.clientY,this.movementX=t.left-event.clientX},n.prototype.dragEnd=function(r,t){var i=this;this.symbolService.raw(this.server,t.symbol.substring(1)).subscribe(function(o){var a=+o.split('width="')[1].split('"')[0]?+o.split('width="')[1].split('"')[0]:0,s=i.scaleService.getScale(),u={template:t,server:"local",numberOfNodes:1,x:(i.startX+r.x-i.project.scene_width/2-a/2)*s+window.scrollX,y:(i.startY+r.y-i.project.scene_height/2)*s+window.scrollY};i.onNodeCreation.emit(u)})},n.prototype.openDialog=function(){var r=this;this.dialog.open(ICe,{width:"600px",data:{server:this.server,project:this.project},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(i){null!==i&&r.onNodeCreation.emit(i)})},n.prototype.getImageSourceForTemplate=function(r){return this.server.protocol+"//"+this.server.host+":"+this.server.port+"/v2/symbols/"+r.symbol+"/raw"},n.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(no),e.Y36(Q_),e.Y36(ay),e.Y36(TS))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-template"]],inputs:{server:"server",project:"project"},outputs:{onNodeCreation:"onNodeCreation"},decls:18,vars:9,consts:[["matTooltip","Add a node","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button","add-menu-button",3,"matMenuTriggerFor"],["mainMenu","matMenu"],["mat-menu-item","",3,"click"],["floatPlaceholder","never",1,"form-field",3,"click"],["matInput","","placeholder","Search by name",3,"ngModel","ngModelOptions","keyup","ngModelChange"],[1,"form-field",3,"click"],["placeholder","Filter templates by type",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"menu"],[1,"templateList"],[4,"ngFor","ngForOf"],[3,"value"],["class","templateRow",4,"ngIf"],[1,"templateRow"],[1,"templateIcon"],["mwlDraggable","",3,"dragStart","dragEnd"],[1,"image",3,"src"],[1,"templateText"],["class","templateIcon",4,"ngIf"]],template:function(t,i){if(1&t&&(e.TgZ(0,"button",0),e.TgZ(1,"mat-icon"),e._uU(2,"add"),e.qZA(),e.qZA(),e.TgZ(3,"mat-menu",null,1),e.TgZ(5,"button",2),e.NdJ("click",function(){return i.openDialog()}),e.TgZ(6,"mat-icon"),e._uU(7,"add_to_queue"),e.qZA(),e.TgZ(8,"span"),e._uU(9,"Open dialog to configure"),e.qZA(),e.qZA(),e.TgZ(10,"mat-form-field",3),e.NdJ("click",function(s){return s.stopPropagation()}),e.TgZ(11,"input",4),e.NdJ("keyup",function(s){return i.filterTemplates(s)})("ngModelChange",function(s){return i.searchText=s}),e.qZA(),e.qZA(),e.TgZ(12,"mat-form-field",5),e.NdJ("click",function(s){return s.stopPropagation()}),e.TgZ(13,"mat-select",6),e.NdJ("selectionChange",function(s){return i.filterTemplates(s)})("ngModelChange",function(s){return i.selectedType=s}),e.YNc(14,RCe,2,2,"mat-option",7),e.qZA(),e.qZA(),e.TgZ(15,"div",8),e.TgZ(16,"div",9),e.YNc(17,BCe,2,1,"mat-list-item",10),e.qZA(),e.qZA(),e.qZA()),2&t){var o=e.MAs(4);e.Q6J("matMenuTriggerFor",o),e.xp6(11),e.Q6J("ngModel",i.searchText)("ngModelOptions",e.DdM(7,mz)),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(8,mz))("ngModel",i.selectedType),e.xp6(1),e.Q6J("ngForOf",i.templateTypes),e.xp6(3),e.Q6J("ngForOf",i.filteredTemplates)}},directives:[An,Xa,$a,ur,ws,Lr,Hn.KE,dr,ne.Fj,ne.JJ,ne.On,fi.gD,At.sg,un.ey,xs,At.O5,c4],styles:[".mat-menu-panel{max-width:400px;max-height:500px}.menu[_ngcontent-%COMP%]{width:100%;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}.form-field[_ngcontent-%COMP%]{width:90%;margin-left:5%;margin-right:5%}.image[_ngcontent-%COMP%]{width:65px;height:65px;filter:invert(0);--webkit-filter: invert(0) !important}.templateList[_ngcontent-%COMP%]{width:100%}.templateRow[_ngcontent-%COMP%]{display:flex;margin-bottom:10px}.templateText[_ngcontent-%COMP%]{word-wrap:break-word}.templateIcon[_ngcontent-%COMP%]{width:80px!important;padding:10px}"]}),n}(),HCe=["primaryValueBar"],VCe=(0,un.pj)(function(){return function n(r){(0,g.Z)(this,n),this._elementRef=r}}(),"primary"),qCe=new e.OlP("mat-progress-bar-location",{providedIn:"root",factory:function(){var n=(0,e.f3M)(At.K0),r=n?n.location:null;return{getPathname:function(){return r?r.pathname+r.search:""}}}}),zCe=0,WCe=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u){var p;(0,g.Z)(this,i),(p=t.call(this,o))._ngZone=a,p._animationMode=s,p._isNoopAnimation=!1,p._value=0,p._bufferValue=0,p.animationEnd=new e.vpe,p._animationEndSubscription=us.w.EMPTY,p.mode="determinate",p.progressbarId="mat-progress-bar-".concat(zCe++);var m=u?u.getPathname().split("#")[0]:"";return p._rectangleFillValue="url('".concat(m,"#").concat(p.progressbarId,"')"),p._isNoopAnimation="NoopAnimations"===s,p}return(0,k.Z)(i,[{key:"value",get:function(){return this._value},set:function(a){this._value=vz((0,On.su)(a)||0)}},{key:"bufferValue",get:function(){return this._bufferValue},set:function(a){this._bufferValue=vz(a||0)}},{key:"_primaryTransform",value:function(){return{transform:"scale3d(".concat(this.value/100,", 1, 1)")}}},{key:"_bufferTransform",value:function(){return"buffer"===this.mode?{transform:"scale3d(".concat(this.bufferValue/100,", 1, 1)")}:null}},{key:"ngAfterViewInit",value:function(){var a=this;this._ngZone.runOutsideAngular(function(){var s=a._primaryValueBar.nativeElement;a._animationEndSubscription=(0,am.R)(s,"transitionend").pipe((0,vi.h)(function(u){return u.target===s})).subscribe(function(){("determinate"===a.mode||"buffer"===a.mode)&&a._ngZone.run(function(){return a.animationEnd.next({value:a.value})})})})}},{key:"ngOnDestroy",value:function(){this._animationEndSubscription.unsubscribe()}}]),i}(VCe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(Cs.Qb,8),e.Y36(qCe,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-progress-bar"]],viewQuery:function(t,i){var o;1&t&&e.Gf(HCe,5),2&t&&e.iGM(o=e.CRH())&&(i._primaryValueBar=o.first)},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(t,i){2&t&&(e.uIk("aria-valuenow","indeterminate"===i.mode||"query"===i.mode?null:i.value)("mode",i.mode),e.ekj("_mat-animation-noopable",i._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[e.qOj],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"],["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(t,i){1&t&&(e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1),e.TgZ(2,"defs"),e.TgZ(3,"pattern",2),e._UZ(4,"circle",3),e.qZA(),e.qZA(),e._UZ(5,"rect",4),e.qZA(),e.kcU(),e._UZ(6,"div",5),e._UZ(7,"div",6,7),e._UZ(9,"div",8),e.qZA()),2&t&&(e.xp6(3),e.Q6J("id",i.progressbarId),e.xp6(2),e.uIk("fill",i._rectangleFillValue),e.xp6(1),e.Q6J("ngStyle",i._bufferTransform()),e.xp6(1),e.Q6J("ngStyle",i._primaryTransform()))},directives:[At.PC],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}),n}();function vz(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return Math.max(r,Math.min(t,n))}var GCe=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[At.ez,un.BQ],un.BQ]}),n}(),OL=function(){function n(r,t){this.dialogRef=r,this.data=t}return n.prototype.onCancelClick=function(){this.dialogRef.close(n.CANCELLED)},n.prototype.ngOnInit=function(){},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(dd))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-progress-dialog"]],decls:7,vars:1,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["color","primary","mode","determinate",3,"value"],["mat-dialog-actions",""],["mat-button","","tabindex","-1","color","accent",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Operation in progress"),e.qZA(),e.TgZ(2,"div",1),e._UZ(3,"mat-progress-bar",2),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"button",4),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(6,"Cancel"),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Q6J("value",i.value))},directives:[ri,J_,WCe,ti,An],styles:[""]}),n}(),YCe=function(){return function(){}}(),W2=function(){function n(r){this.httpServer=r}return n.prototype.create=function(r,t,i){return this.httpServer.post(r,"/projects/"+t+"/snapshots",i)},n.prototype.delete=function(r,t,i){return this.httpServer.delete(r,"/projects/"+t+"/snapshots/"+i)},n.prototype.list=function(r,t){return this.httpServer.get(r,"/projects/"+t+"/snapshots")},n.prototype.restore=function(r,t,i){return this.httpServer.post(r,"/projects/"+t+"/snapshots/"+i+"/restore",{})},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),JCe=function(){function n(r,t,i,o,a,s){var u=this;this.dialogRef=r,this.formBuilder=t,this.toasterService=i,this.snapshotService=o,this.nodesDataSource=a,this.data=s,this.snapshot=new YCe,this.snapshots=[],this.server=s.server,this.project=s.project,this.inputForm=this.formBuilder.group({snapshotName:new ne.NI("",ne.kI.required)}),this.snapshotService.list(this.server,this.project.project_id).subscribe(function(p){p.forEach(function(m){u.snapshots.push(m.name)})}),this.nodesDataSource.getItems().forEach(function(p){"stopped"!==p.status&&!u.isAlwaysRunningNode(p.node_type)&&(u.isInRunningState=!0)})}return n.prototype.isAlwaysRunningNode=function(r){return!["qemu","docker","dynamips","vpcs","vmware","virtualbox","iou","traceng"].includes(r)},n.prototype.onAddClick=function(){this.inputForm.invalid?this.toasterService.error("Fill all required fields"):this.snapshots.includes(this.inputForm.get("snapshotName").value)?this.toasterService.error("Snapshot with this name already exists"):this.isInRunningState?this.toasterService.error("Project must be stopped in order to export it"):(this.snapshot.name=this.inputForm.get("snapshotName").value,this.dialogRef.close(this.snapshot))},n.prototype.onNoClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(ne.qu),e.Y36(er),e.Y36(W2),e.Y36(Ea.G),e.Y36(dd))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-create-snapshot-dialog"]],decls:14,vars:3,consts:[[1,"title-container"],["mat-dialog-title",""],["mat-button","","color","accent",1,"top-button",3,"routerLink","click"],["mat-dialog-content",""],[3,"formGroup"],[1,"name-input"],["matInput","","tabindex","1","formControlName","snapshotName","placeholder","Name"],["mat-dialog-actions",""],["mat-button","","tabindex","-1","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"h1",1),e._uU(2,"Create snapshot"),e.qZA(),e.TgZ(3,"button",2),e.NdJ("click",function(){return i.onNoClick()}),e._uU(4," Go to snapshots "),e.qZA(),e.qZA(),e.TgZ(5,"div",3),e.TgZ(6,"form",4),e.TgZ(7,"mat-form-field",5),e._UZ(8,"input",6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",7),e.TgZ(10,"button",8),e.NdJ("click",function(){return i.onNoClick()}),e._uU(11,"Cancel"),e.qZA(),e.TgZ(12,"button",9),e.NdJ("click",function(){return i.onAddClick()}),e._uU(13,"Add"),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.hYB("routerLink","/server/",i.server.id,"/project/",i.project.project_id,"/snapshots"),e.xp6(3),e.Q6J("formGroup",i.inputForm))},directives:[ri,An,fa,J_,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,ti],styles:[".title-container[_ngcontent-%COMP%]{display:flex;align-items:baseline;justify-content:space-between}.name-input[_ngcontent-%COMP%]{width:100%}.top-button[_ngcontent-%COMP%]{outline:none;box-shadow:none!important;background:transparent!important}button[_ngcontent-%COMP%]:focus{outline:0!important;border:0!important;box-shadow:none!important}"]}),n}(),PL=function(){function n(r){this.dialog=r}return n.prototype.open=function(){return this.dialog.open(OL,{width:"250px",autoFocus:!1,disableClose:!0})},n.\u0275fac=function(t){return new(t||n)(e.LFG(no))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),QCe=function(){function n(r,t,i,o){this.dialog=r,this.snapshotService=t,this.progressDialogService=i,this.toaster=o}return n.prototype.ngOnInit=function(){},n.prototype.createSnapshotModal=function(){var r=this;this.dialog.open(JCe,{width:"450px",data:{server:this.server,project:this.project},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(i){if(i){var o=r.snapshotService.create(r.server,r.project.project_id,i),a=r.progressDialogService.open(),s=o.subscribe(function(u){r.toaster.success("Snapshot '"+i.name+"' has been created."),a.close()});a.afterClosed().subscribe(function(u){u===OL.CANCELLED&&s.unsubscribe()})}})},n.\u0275fac=function(t){return new(t||n)(e.Y36(no),e.Y36(W2),e.Y36(PL),e.Y36(er))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-snapshot-menu-item"]],inputs:{project:"project",server:"server"},decls:3,vars:0,consts:[["matTooltip","Manage snapshots","matTooltipClass","custom-tooltip","mat-icon-button","",1,"snapshot-button","menu-button",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.createSnapshotModal()}),e.TgZ(1,"mat-icon"),e._uU(2,"filter_none"),e.qZA(),e.qZA())},directives:[An,Xa,ur],styles:[""]}),n}(),KCe=function(){return function(r,t,i,o){this.sourceNode=r,this.sourcePort=t,this.targetNode=i,this.targetPort=o}}();function XCe(n,r){1&n&&(e.O4$(),e.TgZ(0,"svg",9),e._UZ(1,"rect",10),e.qZA())}function $Ce(n,r){1&n&&(e.O4$(),e.TgZ(0,"svg",9),e._UZ(1,"rect",11),e.qZA())}function e1e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",6),e.NdJ("click",function(){var s=e.CHM(t).$implicit;return e.oxw(2).chooseInterface(s)}),e.YNc(1,XCe,2,0,"svg",7),e.YNc(2,$Ce,2,0,"svg",7),e.TgZ(3,"span",8),e._uU(4),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit;e.Q6J("disabled",!i.available),e.xp6(1),e.Q6J("ngIf",i.available),e.xp6(1),e.Q6J("ngIf",!i.available),e.xp6(2),e.Oqu(i.name)}}function t1e(n,r){if(1&n&&(e.TgZ(0,"div",1),e._UZ(1,"span",2),e.TgZ(2,"mat-menu",3,4),e.YNc(4,e1e,5,4,"button",5),e.qZA(),e.qZA()),2&n){var t=e.MAs(3),i=e.oxw();e.Udp("left",i.leftPosition)("top",i.topPosition),e.xp6(1),e.Q6J("matMenuTriggerFor",t),e.xp6(1),e.Udp("min-height",0),e.xp6(2),e.Q6J("ngForOf",i.ports)}}var gz=function(){function n(r,t){this.sanitizer=r,this.changeDetector=t,this.onChooseInterface=new e.vpe}return n.prototype.ngOnInit=function(){this.setPosition(0,0)},n.prototype.setPosition=function(r,t){this.topPosition=this.sanitizer.bypassSecurityTrustStyle(r+"px"),this.leftPosition=this.sanitizer.bypassSecurityTrustStyle(t+"px"),this.changeDetector.detectChanges()},n.prototype.open=function(r,t,i){this.node=r,this.filterNodePorts(),this.setPosition(t,i),this.contextMenu.openMenu()},n.prototype.filterNodePorts=function(){var r=this,t=[];this.links.forEach(function(i){i.nodes.forEach(function(o){o.node_id===r.node.node_id&&t.push(o)})}),this.ports=[],this.node.ports.forEach(function(i){var o=t.filter(function(a){return a.adapter_number===i.adapter_number});i.available=0===o.length||0===o.filter(function(a){return a.port_number===i.port_number}).length,r.ports.push(i)})},n.prototype.chooseInterface=function(r){this.onChooseInterface.emit({node:this.node,port:r})},n.\u0275fac=function(t){return new(t||n)(e.Y36(B.H7),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-node-select-interface"]],viewQuery:function(t,i){var o;(1&t&&e.Gf($a,5),2&t)&&(e.iGM(o=e.CRH())&&(i.contextMenu=o.first))},inputs:{links:"links"},outputs:{onChooseInterface:"onChooseInterface"},decls:1,vars:1,consts:[["class","context-menu",3,"left","top",4,"ngIf"],[1,"context-menu"],[3,"matMenuTriggerFor"],[1,"context-menu-items"],["selectInterfaceMenu","matMenu"],["mat-menu-item","",3,"disabled","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"disabled","click"],["width","10","height","10",4,"ngIf"],[1,"port"],["width","10","height","10"],["x","0","y","0","width","10","height","10","fill","green",1,"status"],["x","0","y","0","width","10","height","10","fill","red",1,"status"]],template:function(t,i){1&t&&e.YNc(0,t1e,5,8,"div",0),2&t&&e.Q6J("ngIf",i.node)},directives:[At.O5,$a,ws,At.sg,Lr],styles:[".context-menu[_ngcontent-%COMP%]{position:absolute}.context-menu-items[_ngcontent-%COMP%]{min-height:0px!important}.status[_ngcontent-%COMP%]{margin-right:10px}.port[_ngcontent-%COMP%]{margin-left:10px}"]}),n}(),n1e=function(){function n(r,t,i,o,a,s){this.drawingLineTool=r,this.nodesEventSource=t,this.linksEventSource=i,this.mapNodeToNode=o,this.nodeToMapNode=a,this.portToMapPort=s}return n.prototype.ngOnInit=function(){var r=this;this.nodeClicked$=this.nodesEventSource.clicked.subscribe(function(t){var i=r.mapNodeToNode.convert(t.datum);r.nodeSelectInterfaceMenu.open(i,t.y,t.x)})},n.prototype.ngOnDestroy=function(){this.drawingLineTool.isDrawing()&&this.drawingLineTool.stop(),this.nodeClicked$.unsubscribe()},n.prototype.onChooseInterface=function(r){var t=this.nodeToMapNode.convert(r.node),i=this.portToMapPort.convert(r.port);if(this.drawingLineTool.isDrawing()){var o=this.drawingLineTool.stop();this.linksEventSource.created.emit(new KCe(o.node,o.port,t,i))}else this.drawingLineTool.start(t.x+t.width/2,t.y+t.height/2,{node:t,port:i})},n.\u0275fac=function(t){return new(t||n)(e.Y36(lL),e.Y36(av),e.Y36(ZS),e.Y36(j2),e.Y36(nL),e.Y36(tL))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-draw-link-tool"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(gz,5),2&t)&&(e.iGM(o=e.CRH())&&(i.nodeSelectInterfaceMenu=o.first))},inputs:{links:"links"},decls:1,vars:1,consts:[[3,"links","onChooseInterface"]],template:function(t,i){1&t&&(e.TgZ(0,"app-node-select-interface",0),e.NdJ("onChooseInterface",function(a){return i.onChooseInterface(a)}),e.qZA()),2&t&&e.Q6J("links",i.links)},directives:[gz],styles:[""]}),n}(),_z=f(4147).i8,yz=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Qn.ZT)(r,n),r.prototype.getItemKey=function(t){return t},r.\u0275fac=function(){var t;return function(o){return(t||(t=e.n5z(r)))(o||r)}}(),r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r}(w2.o),r1e=["console"];function i1e(n,r){if(1&n&&(e.TgZ(0,"span",12),e._uU(1),e._UZ(2,"br"),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.hij(" ",t.message," ")}}var G2=function(n){return{lightTheme:n}},o1e=function(){function n(r,t,i,o,a,s,u,p,m){this.projectWebServiceHandler=r,this.nodeService=t,this.nodesDataSource=i,this.logEventsDataSource=o,this.httpService=a,this.themeService=s,this.cd=u,this.nodeConsoleService=p,this.changeDetectorRef=m,this.version=_z,this.command="",this.filters=["all","errors","warnings","info","map updates","server requests"],this.selectedFilter="all",this.filteredEvents=[],this.regexStart=/^start (.*?)$/,this.regexStop=/^stop (.*?)$/,this.regexSuspend=/^suspend (.*?)$/,this.regexReload=/^reload (.*?)$/,this.regexShow=/^show (.*?)$/,this.regexConsole=/^console (.*?)$/,this.style={},this.isDraggingEnabled=!1,this.isLightThemeEnabled=!1,this.selected=new ne.NI(0)}return n.prototype.ngOnInit=function(){var r=this;this.nodeConsoleService.consoleResized.subscribe(function(t){r.style={bottom:"20px",left:"20px",width:t.width+"px",height:t.height-70+"px"},r.changeDetectorRef.detectChanges()}),this.isLightThemeEnabled="light"===this.themeService.getActualTheme(),this.style={bottom:"20px",left:"20px",width:"720px",height:"340px"},this.nodeSubscription=this.projectWebServiceHandler.nodeNotificationEmitter.subscribe(function(t){var o,i=t.event;o=i.label?"Event received: "+t.action+" - "+r.printNode(i)+".":"Event received: "+t.action+" - "+i.name+".",r.showMessage({type:"map update",message:o})}),this.linkSubscription=this.projectWebServiceHandler.linkNotificationEmitter.subscribe(function(t){var o="Event received: "+t.action+" - "+r.printLink(t.event)+".";r.showMessage({type:"map update",message:o})}),this.drawingSubscription=this.projectWebServiceHandler.drawingNotificationEmitter.subscribe(function(t){var o="Event received: "+t.action+" - "+r.printDrawing(t.event)+".";r.showMessage({type:"map update",message:o})}),this.serverRequestsSubscription=this.httpService.requestsNotificationEmitter.subscribe(function(t){r.showMessage({type:"server request",message:t})}),this.errorSubscription=this.projectWebServiceHandler.errorNotificationEmitter.subscribe(function(t){r.showMessage({type:"error",message:t})}),this.warningSubscription=this.projectWebServiceHandler.warningNotificationEmitter.subscribe(function(t){r.showMessage({type:"warning",message:t})}),this.infoSubscription=this.projectWebServiceHandler.infoNotificationEmitter.subscribe(function(t){r.showMessage({type:"info",message:t})})},n.prototype.ngAfterViewInit=function(){this.console.nativeElement&&(this.console.nativeElement.scrollTop=this.console.nativeElement.scrollHeight)},n.prototype.ngOnDestroy=function(){this.nodeSubscription.unsubscribe(),this.linkSubscription.unsubscribe(),this.drawingSubscription.unsubscribe(),this.serverRequestsSubscription.unsubscribe(),this.errorSubscription.unsubscribe(),this.warningSubscription.unsubscribe(),this.infoSubscription.unsubscribe()},n.prototype.applyFilter=function(r){this.selectedFilter=r,this.filteredEvents=this.getFilteredEvents(),this.cd.detectChanges()},n.prototype.onKeyDown=function(r){"Enter"===r.key&&this.handleCommand()},n.prototype.handleCommand=function(){var r=this;if("help"===this.command||""===this.command)this.showCommand("Available commands: help, version, console {node name}, start all, start {node name}, stop all, stop {node name}, suspend all, suspend {node name}, reload all, reload {node name}, show {node name}.");else if("version"===this.command)this.showCommand("Current version: "+this.version);else if("start all"===this.command)this.showCommand("Starting all nodes..."),this.nodeService.startAll(this.server,this.project).subscribe(function(){r.showCommand("All nodes started.")});else if("stop all"===this.command)this.showCommand("Stopping all nodes..."),this.nodeService.stopAll(this.server,this.project).subscribe(function(){r.showCommand("All nodes stopped.")});else if("suspend all"===this.command)this.showCommand("Suspending all nodes..."),this.nodeService.suspendAll(this.server,this.project).subscribe(function(){r.showCommand("All nodes suspended.")});else if("reload all"===this.command)this.showCommand("Reloading all nodes..."),this.nodeService.reloadAll(this.server,this.project).subscribe(function(){r.showCommand("All nodes reloaded.")});else if(this.regexStart.test(this.command)||this.regexStop.test(this.command)||this.regexSuspend.test(this.command)||this.regexReload.test(this.command)||this.regexShow.test(this.command)||this.regexConsole.test(this.command)){var t=this.command.split(/[ ,]+/),i=this.nodesDataSource.getItems().find(function(o){return o.name.valueOf()===t[1].valueOf()});i?this.regexStart.test(this.command)?(this.showCommand("Starting node "+t[1]+"..."),this.nodeService.start(this.server,i).subscribe(function(){return r.showCommand("Node "+i.name+" started.")})):this.regexStop.test(this.command)?(this.showCommand("Stopping node "+t[1]+"..."),this.nodeService.stop(this.server,i).subscribe(function(){return r.showCommand("Node "+i.name+" stopped.")})):this.regexSuspend.test(this.command)?(this.showCommand("Suspending node "+t[1]+"..."),this.nodeService.suspend(this.server,i).subscribe(function(){return r.showCommand("Node "+i.name+" suspended.")})):this.regexReload.test(this.command)?(this.showCommand("Reloading node "+t[1]+"..."),this.nodeService.reload(this.server,i).subscribe(function(){return r.showCommand("Node "+i.name+" reloaded.")})):this.regexConsole.test(this.command)?"started"===i.status?(this.showCommand("Launching console for node "+t[1]+"..."),"telnet"===i.console_type?location.assign("gns3+telnet://"+i.console_host+":"+i.console+"?name="+i.name+"&project_id="+i.project_id+"&node_id="+i.node_id):"vnc"===i.console_type?location.assign("gns3+vnc://"+i.console_host+":"+i.console+"?name="+i.name+"&project_id="+i.project_id+"&node_id="+i.node_id):"spice"===i.console_type?location.assign("gns3+spice://"+i.console_host+":"+i.console+"?name="+i.name+"&project_id="+i.project_id+"&node_id="+i.node_id):this.showCommand("Supported console types: telnet, vnc, spice.")):this.showCommand("This node must be started before a console can be opened."):this.regexShow.test(this.command)&&(this.showCommand("Information about node "+i.name+":"),this.showCommand(this.printNode(i))):this.showCommand("Node with "+t[1]+" name was not found.")}else this.showCommand("Unknown syntax: "+this.command);this.command="",this.cd.detectChanges()},n.prototype.clearConsole=function(){this.filteredEvents=[],this.console.nativeElement.scrollTop=this.console.nativeElement.scrollHeight},n.prototype.showCommand=function(r){this.showMessage({type:"command",message:r})},n.prototype.showMessage=function(r){var t=this;this.logEventsDataSource.add(r),this.filteredEvents=this.getFilteredEvents(),this.console.nativeElement.scrollTop=this.console.nativeElement.scrollHeight,setTimeout(function(){t.console.nativeElement.scrollTop=t.console.nativeElement.scrollHeight},100),this.cd.detectChanges()},n.prototype.getFilteredEvents=function(){return"server requests"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(r){return"server request"===r.type}):"errors"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(r){return"error"===r.type}):"warnings"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(r){return"warning"===r.type}):"info"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(r){return"info"===r.type}):"map updates"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(r){return"map update"===r.type||"command"===r.type}):this.logEventsDataSource.getItems()},n.prototype.printNode=function(r){return"command_line: "+r.command_line+", \n compute_id: "+r.compute_id+", \n console: "+r.console+", \n console_host: "+r.console_host+", \n console_type: "+r.console_type+", \n first_port_name: "+r.first_port_name+", \n height: "+r.height+", \n label: "+r.label.text+", \n name: "+r.name+", \n node_directory: "+r.node_directory+", \n node_id: "+r.node_id+", \n node_type: "+r.node_type+", \n port_name_format: "+r.port_name_format+", \n port_segment_size: "+r.port_segment_size+", "+this.printPorts(r.ports)+"project_id: "+r.project_id+", \n status: "+r.status+", \n symbol: "+r.symbol+", \n symbol_url: "+r.symbol_url+", \n width: "+r.width+", \n x: "+r.x+", \n y: "+r.y+", \n z: "+r.z},n.prototype.printPorts=function(r){var t="ports: ";return r.forEach(function(i){t=t+"adapter_number: "+i.adapter_number+", \n link_type: "+i.link_type+", \n name: "+i.name+", \n port_number: "+i.port_number+", \n short_name: "+i.short_name+", "}),t},n.prototype.printLink=function(r){return"capture_file_name: "+r.capture_file_name+", \n capture_file_path: "+r.capture_file_path+", \n capturing: "+r.capturing+", \n link_id: "+r.link_id+", \n link_type: "+r.link_type+", \n project_id: "+r.project_id+", \n suspend: "+r.suspend+", "},n.prototype.printDrawing=function(r){return"drawing_id: "+r.drawing_id+", \n project_id: "+r.project_id+", \n rotation: "+r.rotation+", \n x: "+r.x+", \n y: "+r.y+", \n z: "+r.z},n.\u0275fac=function(t){return new(t||n)(e.Y36(EL),e.Y36(Jr),e.Y36(Ea.G),e.Y36(yz),e.Y36(Qo.wh),e.Y36(rc.f),e.Y36(e.sBO),e.Y36(hd),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-log-console"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(r1e,5),2&t)&&(e.iGM(o=e.CRH())&&(i.console=o.first))},inputs:{server:"server",project:"project"},decls:25,vars:16,consts:[[1,"consoleHeader"],[1,"consoleFiltering"],[1,"filterButton",3,"ngClass","matMenuTriggerFor"],["xPosition","after"],["filterMenu","matMenu"],["mat-menu-item","",3,"click"],[1,"console",3,"ngClass","ngStyle"],["console",""],["class","console-item",4,"ngFor","ngForOf"],[1,"consoleInput",3,"ngClass"],[1,"inputIcon"],["autofocus","","type","text",1,"commandLine",3,"ngClass","ngModel","keydown","ngModelChange"],[1,"console-item"]],template:function(t,i){if(1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"button",2),e._uU(3," Apply filter "),e.qZA(),e.TgZ(4,"mat-menu",3,4),e.TgZ(6,"button",5),e.NdJ("click",function(){return i.applyFilter("all")}),e._uU(7,"all"),e.qZA(),e.TgZ(8,"button",5),e.NdJ("click",function(){return i.applyFilter("errors")}),e._uU(9,"errors"),e.qZA(),e.TgZ(10,"button",5),e.NdJ("click",function(){return i.applyFilter("warnings")}),e._uU(11,"warnings"),e.qZA(),e.TgZ(12,"button",5),e.NdJ("click",function(){return i.applyFilter("info")}),e._uU(13,"info"),e.qZA(),e.TgZ(14,"button",5),e.NdJ("click",function(){return i.applyFilter("map updates")}),e._uU(15,"map updates"),e.qZA(),e.TgZ(16,"button",5),e.NdJ("click",function(){return i.applyFilter("server requests")}),e._uU(17,"server requests"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",6,7),e.YNc(20,i1e,3,1,"span",8),e.qZA(),e.TgZ(21,"div",9),e.TgZ(22,"mat-icon",10),e._uU(23,"keyboard_arrow_right"),e.qZA(),e.TgZ(24,"input",11),e.NdJ("keydown",function(s){return i.onKeyDown(s)})("ngModelChange",function(s){return i.command=s}),e.qZA(),e.qZA()),2&t){var o=e.MAs(5);e.xp6(2),e.Q6J("ngClass",e.VKq(8,G2,i.isLightThemeEnabled))("matMenuTriggerFor",o),e.xp6(16),e.Q6J("ngClass",e.VKq(10,G2,i.isLightThemeEnabled))("ngStyle",i.style),e.xp6(2),e.Q6J("ngForOf",i.filteredEvents),e.xp6(1),e.Q6J("ngClass",e.VKq(12,G2,i.isLightThemeEnabled)),e.xp6(3),e.Q6J("ngClass",e.VKq(14,G2,i.isLightThemeEnabled))("ngModel",i.command)}},directives:[At.mk,$a,ws,Lr,At.PC,At.sg,ur,ne.Fj,ne.JJ,ne.On],styles:[".consoleWrapper[_ngcontent-%COMP%]{box-shadow:0 4px 8px rgba(0,0,0,.2),0 6px 20px rgba(0,0,0,.188);position:fixed;bottom:20px;left:20px;height:180px;width:600px;background:#263238;color:#fff;overflow:hidden;font-size:12px}.lightTheme[_ngcontent-%COMP%]{background:white!important;color:#000}.filterButton[_ngcontent-%COMP%]{background:transparent;color:#fff;border:none;margin-top:0;outline:none;color:#dbd5d5;font-weight:bold;padding:0}.consoleFiltering[_ngcontent-%COMP%]{display:flex}.consoleHeader[_ngcontent-%COMP%]{width:100%;height:40px;font-size:12px;overflow:hidden;display:flex;padding:2px;justify-content:space-between}.console[_ngcontent-%COMP%]{width:596px;height:120px;overflow-y:scroll;padding:2px;color:#dbd5d5;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.consoleInput[_ngcontent-%COMP%]{width:100%;height:30px;padding:2px;display:flex}.commandLine[_ngcontent-%COMP%]{background-color:transparent;color:#fff;border:none}.inputIcon[_ngcontent-%COMP%]{margin-top:2px}mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px}input[_ngcontent-%COMP%]:focus{outline:none}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}.closeButton[_ngcontent-%COMP%]{cursor:pointer}"],changeDetection:0}),n}(),bz=f(20039),Cz=f(3397),Sz=f(97916),a1e=["terminal"],s1e=function(){function n(r,t){this.consoleService=r,this.themeService=t,this.term=new bz.Terminal,this.fitAddon=new Sz.FitAddon,this.isLightThemeEnabled=!1,this.copiedText=""}return n.prototype.ngOnInit=function(){var r=this;this.isLightThemeEnabled="light"===this.themeService.getActualTheme(),this.consoleService.consoleResized.subscribe(function(t){var i=Math.floor(t.width/9),o=Math.floor(t.height/17);r.consoleService.setNumberOfColumns(i),r.consoleService.setNumberOfRows(o),r.term.resize(i,o)}),this.consoleService.getNumberOfColumns()&&this.consoleService.getNumberOfRows()&&this.term.resize(this.consoleService.getNumberOfColumns(),this.consoleService.getNumberOfRows())},n.prototype.ngAfterViewInit=function(){var r=this;this.term.open(this.terminal.nativeElement),this.isLightThemeEnabled&&this.term.setOption("theme",{background:"white",foreground:"black",cursor:"black"});var t=new WebSocket(this.consoleService.getUrl(this.server,this.node));t.onerror=function(o){r.term.write("Connection lost")},t.onclose=function(o){r.consoleService.closeConsoleForNode(r.node)};var i=new Cz.AttachAddon(t);this.term.loadAddon(i),this.term.setOption("cursorBlink",!0),this.term.loadAddon(this.fitAddon),this.fitAddon.activate(this.term),this.term.focus(),this.term.attachCustomKeyEventHandler(function(o){return!(("KeyC"===o.code||"KeyV"===o.code)&&o.ctrlKey&&o.shiftKey)})},n.\u0275fac=function(t){return new(t||n)(e.Y36(hd),e.Y36(rc.f))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-web-console"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(a1e,5),2&t)&&(e.iGM(o=e.CRH())&&(i.terminal=o.first))},inputs:{server:"server",project:"project",node:"node"},decls:2,vars:0,consts:[["id","terminal",1,"lightTheme"],["terminal",""]],template:function(t,i){1&t&&e._UZ(0,"div",0,1)},styles:[".xterm{position:relative;-moz-user-select:none;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm{cursor:text}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline{text-decoration:underline}.xterm-strikethrough{text-decoration:line-through}\n",".lightTheme{background:white!important;color:#000!important}\n"],encapsulation:2}),n}();function l1e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",10),e.NdJ("mousemove",function(o){return e.CHM(t),e.oxw().dragWidget(o)},!1,e.evT)("mouseup",function(){return e.CHM(t),e.oxw().toggleDragging(!1)},!1,e.evT),e.qZA()}}function u1e(n,r){1&n&&(e.TgZ(0,"div",11),e._uU(1,"GNS3 console"),e.qZA())}var HS=function(n){return{lightThemeConsoleHeader:n}};function c1e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",11),e._uU(1),e.qZA(),e.TgZ(2,"button",7),e.NdJ("click",function(){e.CHM(t);var s=e.oxw().index;return e.oxw().removeTab(s)}),e.TgZ(3,"mat-icon"),e._uU(4,"close"),e.qZA(),e.qZA()}if(2&n){var i=e.oxw().$implicit,o=e.oxw();e.xp6(1),e.Oqu(i.name),e.xp6(1),e.Q6J("ngClass",e.VKq(2,HS,o.isLightThemeEnabled))}}function d1e(n,r){if(1&n&&(e.TgZ(0,"mat-tab",12),e.YNc(1,c1e,5,4,"ng-template",4),e.qZA()),2&n){var t=e.oxw();e.Q6J("label",t.tab)}}function p1e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){return e.CHM(t),e.oxw().minimize(!0)}),e.TgZ(1,"mat-icon"),e._uU(2,"remove"),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("ngClass",e.VKq(1,HS,i.isLightThemeEnabled))}}function f1e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){return e.CHM(t),e.oxw().minimize(!1)}),e.TgZ(1,"mat-icon"),e._uU(2,"web_asset"),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("ngClass",e.VKq(1,HS,i.isLightThemeEnabled))}}function h1e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",13),e.NdJ("mouseover",function(s){return e.CHM(t),e.oxw().disableScroll(s)})("mouseout",function(s){return e.CHM(t),e.oxw().enableScroll(s)}),e._UZ(1,"app-web-console",14),e.qZA()}if(2&n){var i=r.index,o=e.oxw();e.Q6J("hidden",o.isMinimized),e.xp6(1),e.Q6J("hidden",o.selected.value!==i+1)("server",o.server)("node",o.nodes[i])}}var m1e=function(n){return{lightTheme:n}},v1e=function(){return{right:!0,left:!0,bottom:!0,top:!0}},g1e=function(){function n(r,t,i){this.consoleService=r,this.themeService=t,this.mapSettingsService=i,this.closeConsole=new e.vpe,this.filters=["all","errors","warnings","info","map updates","server requests"],this.selectedFilter="all",this.style={},this.styleInside={height:"120px"},this.isDraggingEnabled=!1,this.isLightThemeEnabled=!1,this.isMinimized=!1,this.resizedWidth=720,this.resizedHeight=480,this.nodes=[],this.selected=new ne.NI(0)}return n.prototype.ngOnInit=function(){var r=this;this.isLightThemeEnabled="light"===this.themeService.getActualTheme(),this.style={bottom:"20px",left:"80px",width:"720px",height:"460px"},this.consoleService.nodeConsoleTrigger.subscribe(function(t){r.addTab(t,!0)}),this.consoleService.closeNodeConsoleTrigger.subscribe(function(t){var i=r.nodes.findIndex(function(o){return o.node_id===t.node_id});r.removeTab(i)})},n.prototype.minimize=function(r){this.isMinimized=r,this.style=r?{bottom:"20px",left:"20px",width:this.resizedWidth+"px",height:"56px"}:{bottom:"20px",left:"80px",width:this.resizedWidth+"px",height:this.resizedHeight+"px"}},n.prototype.addTab=function(r,t){this.minimize(!1),this.nodes.push(r),t&&this.selected.setValue(this.nodes.length),this.consoleService.openConsoles++},n.prototype.removeTab=function(r){this.nodes.splice(r,1),this.consoleService.openConsoles--},n.prototype.toggleDragging=function(r){this.isDraggingEnabled=r},n.prototype.dragWidget=function(r){var t=Number(r.movementX),i=Number(r.movementY),o=Number(this.style.width.split("px")[0]),a=Number(this.style.height.split("px")[0]),s=Number(this.style.left.split("px")[0])+t;if(this.style.top){var u=Number(this.style.top.split("px")[0])+i;this.style={position:"fixed",left:s+"px",top:u+"px",width:o+"px",height:a+"px"}}else{var p=Number(this.style.bottom.split("px")[0])-i;this.style={position:"fixed",left:s+"px",bottom:p+"px",width:o+"px",height:a+"px"}}},n.prototype.validate=function(r){return!(r.rectangle.width&&r.rectangle.height&&(r.rectangle.width<500||r.rectangle.height<100))},n.prototype.onResizeEnd=function(r){this.style={position:"fixed",left:r.rectangle.left+"px",top:r.rectangle.top+"px",width:r.rectangle.width+"px",height:r.rectangle.height+"px"},this.styleInside={height:r.rectangle.height-60+"px",width:r.rectangle.width+"px"},this.consoleService.consoleResized.next({width:r.rectangle.width,height:r.rectangle.height-53}),this.resizedWidth=r.rectangle.width,this.resizedHeight=r.rectangle.height},n.prototype.close=function(){this.closeConsole.emit(!1)},n.prototype.enableScroll=function(r){this.mapSettingsService.isScrollDisabled.next(!1)},n.prototype.disableScroll=function(r){this.mapSettingsService.isScrollDisabled.next(!0)},n.\u0275fac=function(t){return new(t||n)(e.Y36(hd),e.Y36(rc.f),e.Y36(Ou))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-console-wrapper"]],inputs:{server:"server",project:"project"},outputs:{closeConsole:"closeConsole"},decls:14,vars:23,consts:[[3,"mousemove","mouseup",4,"ngIf"],["mwlResizable","",1,"consoleWrapper",3,"ngClass","ngStyle","validateResize","resizeEdges","enableGhostResize","mousedown","resizeStart","resizeEnd"],[1,"consoleHeader",3,"ngClass"],[1,"tabs",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[3,"label",4,"ngFor","ngForOf"],["style","color: white","mat-icon-button","",3,"ngClass","click",4,"ngIf"],["mat-icon-button","",2,"color","white",3,"ngClass","click"],[3,"hidden","server","project"],["class","xterm-console",3,"hidden","mouseover","mouseout",4,"ngFor","ngForOf"],[3,"mousemove","mouseup"],[1,"col",2,"margin-left","20px"],[3,"label"],[1,"xterm-console",3,"hidden","mouseover","mouseout"],[3,"hidden","server","node"]],template:function(t,i){1&t&&(e.YNc(0,l1e,1,0,"div",0),e.TgZ(1,"div",1),e.NdJ("mousedown",function(){return i.toggleDragging(!0)})("resizeStart",function(){return i.toggleDragging(!1)})("resizeEnd",function(a){return i.onResizeEnd(a)}),e.TgZ(2,"div",2),e.TgZ(3,"mat-tab-group",3),e.NdJ("selectedIndexChange",function(a){return i.selected.setValue(a)}),e.TgZ(4,"mat-tab"),e.YNc(5,u1e,2,0,"ng-template",4),e.qZA(),e.YNc(6,d1e,2,1,"mat-tab",5),e.qZA(),e.YNc(7,p1e,3,3,"button",6),e.YNc(8,f1e,3,3,"button",6),e.TgZ(9,"button",7),e.NdJ("click",function(){return i.close()}),e.TgZ(10,"mat-icon"),e._uU(11,"close"),e.qZA(),e.qZA(),e.qZA(),e._UZ(12,"app-log-console",8),e.YNc(13,h1e,2,4,"div",9),e.qZA()),2&t&&(e.Q6J("ngIf",i.isDraggingEnabled),e.xp6(1),e.Q6J("ngClass",e.VKq(16,m1e,i.isLightThemeEnabled))("ngStyle",i.style)("validateResize",i.validate)("resizeEdges",e.DdM(18,v1e))("enableGhostResize",!0),e.xp6(1),e.Q6J("ngClass",e.VKq(19,HS,i.isLightThemeEnabled)),e.xp6(1),e.Q6J("selectedIndex",i.selected.value),e.xp6(3),e.Q6J("ngForOf",i.nodes),e.xp6(1),e.Q6J("ngIf",!i.isMinimized),e.xp6(1),e.Q6J("ngIf",i.isMinimized),e.xp6(1),e.Q6J("ngClass",e.VKq(21,HS,i.isLightThemeEnabled)),e.xp6(3),e.Q6J("hidden",0!==i.selected.value||i.isMinimized)("server",i.server)("project",i.project),e.xp6(1),e.Q6J("ngForOf",i.nodes))},directives:[At.O5,mE.E$,At.mk,At.PC,ko.SP,ko.uX,ko.uD,At.sg,An,ur,o1e,s1e],styles:["@media screen and (max-width: 700px){.consoleWrapper[_ngcontent-%COMP%]{visibility:hidden}}.consoleWrapper[_ngcontent-%COMP%]{box-shadow:0 4px 8px rgba(0,0,0,.2),0 6px 20px rgba(0,0,0,.188);position:fixed;bottom:40px;left:80px;height:180px;width:600px;background:#000000!important;color:#fff;overflow:hidden;font-size:12px;border-radius:8px}.lightTheme[_ngcontent-%COMP%]{background:white!important;color:#000}.filterButton[_ngcontent-%COMP%]{background:transparent;color:#fff;border:none;margin-top:0;outline:none;color:#dbd5d5;font-weight:bold;padding:0}.consoleFiltering[_ngcontent-%COMP%]{display:flex}.consoleHeader[_ngcontent-%COMP%]{width:100%;font-size:12px;overflow:hidden;display:flex;padding:2px;justify-content:space-between;background:#263238!important}.lightThemeConsoleHeader[_ngcontent-%COMP%]{background:white!important;color:#000!important}[_nghost-%COMP%] .mat-tab-label{height:3rem!important;min-width:8rem!important}[_nghost-%COMP%] .mat-tab-label.mat-tab-label-active{border-bottom:2px solid #0097a7;box-sizing:border-box;font-weight:1200}[_nghost-%COMP%] .mat-ink-bar{display:none!important}.tabs[_ngcontent-%COMP%]{width:80%}.console[_ngcontent-%COMP%]{width:596px;height:120px;overflow-y:scroll;padding:2px;color:#dbd5d5;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.xterm-console[_ngcontent-%COMP%]{background:black}.consoleInput[_ngcontent-%COMP%]{width:100%;height:30px;padding:2px;display:flex}.commandLine[_ngcontent-%COMP%]{background-color:transparent;color:#fff;border:none}.inputIcon[_ngcontent-%COMP%]{margin-top:2px}mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px}input[_ngcontent-%COMP%]:focus{outline:none}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}.closeButton[_ngcontent-%COMP%]{cursor:pointer}"]}),n}(),_1e=["topologySummaryContainer"];function y1e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"app-d3-map",38),e.NdJ("nodeDragged",function(a){return e.CHM(t),e.oxw(2).onNodeDragged(a)})("drawingDragged",function(a){return e.CHM(t),e.oxw(2).onDrawingDragged(a)})("onLinkCreated",function(a){return e.CHM(t),e.oxw(2).onLinkCreated(a)})("onDrawingResized",function(a){return e.CHM(t),e.oxw(2).onDrawingResized(a)}),e.qZA()}if(2&n){var i=e.oxw(2);e.Q6J("server",i.server)("project",i.project)("symbols",i.symbols)("nodes",i.nodes)("links",i.links)("drawings",i.drawings)("width",i.project.scene_width)("height",i.project.scene_height)("show-interface-labels",i.isInterfaceLabelVisible)("readonly",i.inReadOnlyMode)}}function b1e(n,r){if(1&n&&e._UZ(0,"app-experimental-map",39),2&n){var t=e.oxw(2);e.Q6J("symbols",t.symbols)("nodes",t.nodes)("links",t.links)("drawings",t.drawings)("width",t.project.scene_width)("height",t.project.scene_height)("show-interface-labels",t.isInterfaceLabelVisible)("selection-tool",t.tools.selection)("moving-tool",t.tools.moving)("draw-link-tool",t.tools.draw_link)("readonly",t.inReadOnlyMode)}}function C1e(n,r){1&n&&e._UZ(0,"mat-icon",40)}function S1e(n,r){1&n&&e._UZ(0,"mat-icon",41)}var Y2=function(n){return{lightTheme:n}},T1e=function(n){return{selected:n}};function x1e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",42),e.TgZ(1,"app-template",43),e.NdJ("onNodeCreation",function(a){return e.CHM(t),e.oxw(2).onNodeCreation(a)}),e.qZA(),e.TgZ(2,"button",44),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).toggleDrawLineMode()}),e.TgZ(3,"mat-icon"),e._uU(4,"timeline"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.Q6J("ngClass",e.VKq(5,Y2,i.isLightThemeEnabled)),e.xp6(1),e.Q6J("server",i.server)("project",i.project),e.xp6(1),e.Q6J("ngClass",e.VKq(7,T1e,i.tools.draw_link))("color",i.tools.draw_link?"primary":"basic")}}function w1e(n,r){if(1&n&&(e.TgZ(0,"div",26),e._UZ(1,"app-snapshot-menu-item",12),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("server",t.server)("project",t.project)}}function k1e(n,r){if(1&n&&e._UZ(0,"app-draw-link-tool",45),2&n){var t=e.oxw(2);e.Q6J("links",t.links)}}function E1e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"app-console-wrapper",46),e.NdJ("closeConsole",function(a){return e.CHM(t),e.oxw(2).toggleShowConsole(a)}),e.qZA()}if(2&n){var i=e.oxw(2);e.Q6J("server",i.server)("project",i.project)}}var M1e=function(n,r){return{unmarkedLight:n,marked:r}},A1e=function(n){return["/server",n,"projects"]},D1e=function(){return["/servers"]},O1e=function(n){return{visible:n}};function P1e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",2),e.YNc(1,y1e,1,10,"app-d3-map",3),e.YNc(2,b1e,1,11,"app-experimental-map",4),e.TgZ(3,"div",5),e.TgZ(4,"button",6),e.YNc(5,C1e,1,0,"mat-icon",7),e.YNc(6,S1e,1,0,"mat-icon",8),e.qZA(),e.TgZ(7,"div",9),e.YNc(8,x1e,5,9,"div",10),e.TgZ(9,"div",11),e._UZ(10,"app-nodes-menu",12),e._UZ(11,"app-context-menu",13),e.qZA(),e.qZA(),e.TgZ(12,"div"),e.TgZ(13,"button",14),e.NdJ("click",function(){e.CHM(t);var p=e.oxw();return p.toggleShowTopologySummary(!p.isTopologySummaryVisible)}),e.TgZ(14,"mat-icon"),e._uU(15,"toc"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(16,"mat-menu",15,16),e.TgZ(18,"button",17),e.TgZ(19,"mat-icon"),e._uU(20,"work"),e.qZA(),e.TgZ(21,"span"),e._uU(22,"Go to projects"),e.qZA(),e.qZA(),e.TgZ(23,"button",17),e.TgZ(24,"mat-icon"),e._uU(25,"developer_board"),e.qZA(),e.TgZ(26,"span"),e._uU(27,"Go to servers"),e.qZA(),e.qZA(),e.TgZ(28,"button",17),e.TgZ(29,"mat-icon"),e._uU(30,"settings_applications"),e.qZA(),e.TgZ(31,"span"),e._uU(32,"Go to preferences"),e.qZA(),e.qZA(),e.TgZ(33,"button",17),e.TgZ(34,"mat-icon"),e._uU(35,"info"),e.qZA(),e.TgZ(36,"span"),e._uU(37,"Go to system status"),e.qZA(),e.qZA(),e.TgZ(38,"button",18),e.TgZ(39,"mat-icon"),e._uU(40,"settings"),e.qZA(),e.TgZ(41,"span"),e._uU(42,"Go to settings"),e.qZA(),e.qZA(),e.TgZ(43,"button",19),e.NdJ("click",function(){return e.CHM(t),e.oxw().addNewTemplate()}),e.TgZ(44,"mat-icon"),e._uU(45,"control_point"),e.qZA(),e.TgZ(46,"span"),e._uU(47,"New template"),e.qZA(),e.qZA(),e._UZ(48,"app-import-appliance",12),e.TgZ(49,"button",20),e.TgZ(50,"mat-icon"),e._uU(51,"settings"),e.qZA(),e.TgZ(52,"span"),e._uU(53,"Project settings"),e.qZA(),e.qZA(),e.TgZ(54,"button",20),e.TgZ(55,"mat-icon"),e._uU(56,"view_module"),e.qZA(),e.TgZ(57,"span"),e._uU(58,"Map settings"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(59,"mat-menu",15,21),e.TgZ(61,"div"),e.TgZ(62,"button",19),e.NdJ("click",function(){return e.CHM(t),e.oxw().addNewProject()}),e.TgZ(63,"mat-icon"),e._uU(64,"add"),e.qZA(),e.TgZ(65,"span"),e._uU(66,"Add new blank project"),e.qZA(),e.qZA(),e.TgZ(67,"button",19),e.NdJ("click",function(){return e.CHM(t),e.oxw().saveProject()}),e.TgZ(68,"mat-icon"),e._uU(69,"save"),e.qZA(),e.TgZ(70,"span"),e._uU(71,"Save project as"),e.qZA(),e.qZA(),e.TgZ(72,"button",19),e.NdJ("click",function(){return e.CHM(t),e.oxw().editProject()}),e.TgZ(73,"mat-icon"),e._uU(74,"edit"),e.qZA(),e.TgZ(75,"span"),e._uU(76,"Edit project"),e.qZA(),e.qZA(),e.TgZ(77,"button",19),e.NdJ("click",function(){return e.CHM(t),e.oxw().exportProject()}),e.TgZ(78,"mat-icon"),e._uU(79,"call_made"),e.qZA(),e.TgZ(80,"span"),e._uU(81,"Export portable project"),e.qZA(),e.qZA(),e.TgZ(82,"button",19),e.NdJ("click",function(){return e.CHM(t),e.oxw().importProject()}),e.TgZ(83,"mat-icon"),e._uU(84,"call_received"),e.qZA(),e.TgZ(85,"span"),e._uU(86,"Import portable project"),e.qZA(),e.qZA(),e.TgZ(87,"button",19),e.NdJ("click",function(){return e.CHM(t),e.oxw().closeProject()}),e.TgZ(88,"mat-icon"),e._uU(89,"close"),e.qZA(),e.TgZ(90,"span"),e._uU(91,"Close project"),e.qZA(),e.qZA(),e.TgZ(92,"button",19),e.NdJ("click",function(){return e.CHM(t),e.oxw().deleteProject()}),e.TgZ(93,"mat-icon"),e._uU(94,"delete"),e.qZA(),e.TgZ(95,"span"),e._uU(96,"Delete project"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(97,"mat-menu",15,22),e.TgZ(99,"div",23),e.TgZ(100,"mat-checkbox",24),e.NdJ("change",function(p){return e.CHM(t),e.oxw().toggleShowInterfaceLabels(p.checked)}),e._uU(101," Show interface labels "),e.qZA(),e._UZ(102,"br"),e.TgZ(103,"mat-checkbox",24),e.NdJ("change",function(p){return e.CHM(t),e.oxw().toggleShowConsole(p.checked)}),e._uU(104," Show console "),e.qZA(),e._UZ(105,"br"),e.TgZ(106,"mat-checkbox",24),e.NdJ("change",function(p){return e.CHM(t),e.oxw().toggleShowTopologySummary(p.checked)}),e._uU(107," Show topology/servers summary "),e.qZA(),e._UZ(108,"br"),e.TgZ(109,"mat-checkbox",24),e.NdJ("change",function(p){return e.CHM(t),e.oxw().toggleNotifications(p.checked)}),e._uU(110," Show notifications "),e.qZA(),e._UZ(111,"br"),e.TgZ(112,"mat-checkbox",24),e.NdJ("change",function(p){return e.CHM(t),e.oxw().toggleLayers(p.checked)}),e._uU(113," Show layers "),e.qZA(),e._UZ(114,"br"),e.TgZ(115,"mat-checkbox",24),e.NdJ("change",function(p){return e.CHM(t),e.oxw().toggleGrid(p.checked)}),e._uU(116," Show grid "),e.qZA(),e._UZ(117,"br"),e.TgZ(118,"mat-checkbox",24),e.NdJ("change",function(p){return e.CHM(t),e.oxw().toggleSnapToGrid(p.checked)}),e._uU(119," Snap to grid "),e.qZA(),e._UZ(120,"br"),e.TgZ(121,"mat-checkbox",24),e.NdJ("change",function(p){return e.CHM(t),e.oxw().toggleSymbolScaling(p.checked)}),e._uU(122," Scale symbols "),e.qZA(),e._UZ(123,"br"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(124,"div",25),e.TgZ(125,"div",26),e.TgZ(126,"button",27),e.NdJ("click",function(){return e.CHM(t),e.oxw().toggleMovingMode()}),e.TgZ(127,"mat-icon"),e._uU(128,"near_me"),e.qZA(),e.qZA(),e.TgZ(129,"button",28),e.NdJ("click",function(){return e.CHM(t),e.oxw().toggleMovingMode()}),e.TgZ(130,"mat-icon"),e._uU(131,"zoom_out_map"),e.qZA(),e.qZA(),e.TgZ(132,"button",29),e.NdJ("click",function(){return e.CHM(t),e.oxw().zoomIn()}),e.TgZ(133,"mat-icon"),e._uU(134,"zoom_in"),e.qZA(),e.qZA(),e.TgZ(135,"button",30),e.NdJ("click",function(){return e.CHM(t),e.oxw().resetZoom()}),e.TgZ(136,"mat-icon"),e._uU(137,"adjust"),e.qZA(),e.qZA(),e.TgZ(138,"button",31),e.NdJ("click",function(){return e.CHM(t),e.oxw().zoomOut()}),e.TgZ(139,"mat-icon"),e._uU(140,"zoom_out"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(141,"div",26),e._UZ(142,"app-project-map-menu",12),e.qZA(),e.YNc(143,w1e,2,2,"div",32),e.qZA(),e._UZ(144,"app-progress"),e.YNc(145,k1e,1,1,"app-draw-link-tool",33),e._UZ(146,"app-drawing-dragged",12),e._UZ(147,"app-drawing-resized",34),e._UZ(148,"app-interface-label-dragged",34),e._UZ(149,"app-link-created",12),e._UZ(150,"app-node-dragged",12),e._UZ(151,"app-node-label-dragged",34),e.TgZ(152,"app-text-added",35),e.NdJ("drawingSaved",function(){return e.CHM(t),e.oxw().onDrawingSaved()}),e.qZA(),e._UZ(153,"app-text-edited",34),e.TgZ(154,"div",36),e.YNc(155,E1e,1,2,"app-console-wrapper",37),e.qZA(),e.qZA()}if(2&n){var i=e.MAs(17),o=e.MAs(60),a=e.MAs(98),s=e.oxw();e.Q6J("ngClass",e.VKq(53,Y2,s.isLightThemeEnabled)),e.xp6(1),e.Q6J("ngIf",!s.settings.angular_map),e.xp6(1),e.Q6J("ngIf",s.settings.angular_map),e.xp6(1),e.Q6J("ngClass",e.VKq(55,Y2,s.isLightThemeEnabled)),e.xp6(1),e.Q6J("matMenuTriggerFor",i),e.xp6(1),e.Q6J("ngIf",!s.isLightThemeEnabled),e.xp6(1),e.Q6J("ngIf",s.isLightThemeEnabled),e.xp6(2),e.Q6J("ngIf",!s.readonly),e.xp6(2),e.Q6J("server",s.server)("project",s.project),e.xp6(1),e.Q6J("project",s.project)("server",s.server),e.xp6(2),e.Q6J("ngClass",e.WLB(57,M1e,!s.isTopologySummaryVisible&&s.isLightThemeEnabled,s.isTopologySummaryVisible)),e.xp6(3),e.Q6J("overlapTrigger",!1),e.xp6(2),e.Q6J("routerLink",e.VKq(60,A1e,s.server.id)),e.xp6(5),e.Q6J("routerLink",e.DdM(62,D1e)),e.xp6(5),e.MGl("routerLink","/server/",s.server.id,"/preferences"),e.xp6(5),e.MGl("routerLink","/server/",s.server.id,"/systemstatus"),e.xp6(15),e.Q6J("server",s.server)("project",s.project),e.xp6(1),e.Q6J("matMenuTriggerFor",o),e.xp6(5),e.Q6J("matMenuTriggerFor",a),e.xp6(5),e.Q6J("overlapTrigger",!1),e.xp6(38),e.Q6J("overlapTrigger",!1),e.xp6(3),e.Q6J("ngModel",s.isInterfaceLabelVisible),e.xp6(3),e.Q6J("ngModel",s.isConsoleVisible),e.xp6(3),e.Q6J("ngModel",s.isTopologySummaryVisible),e.xp6(3),e.Q6J("ngModel",s.notificationsVisibility),e.xp6(3),e.Q6J("ngModel",s.layersVisibility),e.xp6(3),e.Q6J("ngModel",s.gridVisibility),e.xp6(3),e.Q6J("ngModel",s.project.snap_to_grid),e.xp6(3),e.Q6J("ngModel",s.symbolScaling),e.xp6(3),e.Q6J("ngClass",e.VKq(63,Y2,s.isLightThemeEnabled)),e.xp6(2),e.Q6J("color",s.tools.moving?"basic":"primary"),e.xp6(3),e.Q6J("color",s.tools.moving?"primary":"basic"),e.xp6(13),e.Q6J("server",s.server)("project",s.project),e.xp6(1),e.Q6J("ngIf",!s.readonly),e.xp6(2),e.Q6J("ngIf",s.tools.draw_link),e.xp6(1),e.Q6J("server",s.server)("project",s.project),e.xp6(1),e.Q6J("server",s.server),e.xp6(1),e.Q6J("server",s.server),e.xp6(1),e.Q6J("server",s.server)("project",s.project),e.xp6(1),e.Q6J("server",s.server)("project",s.project),e.xp6(1),e.Q6J("server",s.server),e.xp6(1),e.Q6J("server",s.server)("project",s.project),e.xp6(1),e.Q6J("server",s.server),e.xp6(1),e.Q6J("ngClass",e.VKq(65,O1e,!s.isConsoleVisible)),e.xp6(1),e.Q6J("ngIf",s.project)}}function I1e(n,r){}var R1e=function(){function n(r,t,i,o,a,s,u,p,m,b,R,F,G,Y,ee,pe,Ee,lt,tt,it,mt,Ke,et,Rt,kt,fn,Jt,st,Ot,gn,pn,kn,Ln,nr,gr,Wr,ar,Qr,si,_r,Li,Uo,vr,fr,sr,qn,Ko,wi){this.route=r,this.serverService=t,this.projectService=i,this.nodeService=o,this.drawingService=a,this.progressService=s,this.projectWebServiceHandler=u,this.mapChangeDetectorRef=p,this.nodeWidget=m,this.drawingsWidget=b,this.linkWidget=R,this.labelWidget=F,this.interfaceLabelWidget=G,this.mapNodeToNode=Y,this.mapDrawingToDrawing=ee,this.mapLabelToLabel=pe,this.mapLinkToLink=Ee,this.mapLinkNodeToLinkNode=lt,this.nodesDataSource=tt,this.linksDataSource=it,this.drawingsDataSource=mt,this.settingsService=Ke,this.toolsService=et,this.selectionManager=Rt,this.selectionTool=kt,this.recentlyOpenedProjectService=fn,this.movingEventSource=Jt,this.mapScaleService=st,this.nodeCreatedLabelStylesFixer=Ot,this.toasterService=gn,this.dialog=pn,this.router=kn,this.mapNodesDataSource=Ln,this.mapLinksDataSource=nr,this.mapDrawingsDataSource=gr,this.mapSymbolsDataSource=Wr,this.mapSettingsService=ar,this.ethernetLinkWidget=Qr,this.serialLinkWidget=si,this.bottomSheet=_r,this.notificationService=Li,this.themeService=Uo,this.title=vr,this.nodeConsoleService=fr,this.symbolService=sr,this.cd=qn,this.cfr=Ko,this.injector=wi,this.nodes=[],this.links=[],this.drawings=[],this.symbols=[],this.isProjectMapMenuVisible=!1,this.isConsoleVisible=!0,this.isTopologySummaryVisible=!0,this.isInterfaceLabelVisible=!1,this.notificationsVisibility=!1,this.layersVisibility=!1,this.gridVisibility=!1,this.toolbarVisibility=!0,this.symbolScaling=!0,this.tools={selection:!0,moving:!1,draw_link:!1,text_editing:!0},this.inReadOnlyMode=!1,this.scrollX=0,this.scrollY=0,this.scrollEnabled=!1,this.isLightThemeEnabled=!1,this.projectMapSubscription=new us.w}return n.prototype.ngOnInit=function(){var r=this;this.getSettings(),this.progressService.activate(),this.serverService.isServiceInitialized?this.getData():this.projectMapSubscription.add(this.serverService.serviceInitialized.subscribe(function(t){t&&r.getData()})),this.addSubscriptions(),this.addKeyboardListeners(),this.themeService.themeChanged.subscribe(function(t){r.isLightThemeEnabled="light"===r.themeService.getActualTheme()})},n.prototype.getSettings=function(){var r=this;this.isLightThemeEnabled="light"===this.themeService.getActualTheme(),this.cd.detectChanges(),this.settings=this.settingsService.getAll(),this.symbolScaling=this.mapSettingsService.getSymbolScaling(),this.isConsoleVisible=this.mapSettingsService.isLogConsoleVisible,this.mapSettingsService.logConsoleSubject.subscribe(function(t){return r.isConsoleVisible=t}),this.notificationsVisibility="true"===localStorage.getItem("notificationsVisibility"),this.layersVisibility="true"===localStorage.getItem("layersVisibility"),this.gridVisibility="true"===localStorage.getItem("gridVisibility")},n.prototype.lazyLoadTopologySummary=function(){return(0,Qn.mG)(this,void 0,void 0,function(){var r,t;return(0,Qn.Jh)(this,function(i){switch(i.label){case 0:return this.isTopologySummaryVisible?[4,f.e(26).then(f.bind(f,91026))]:[3,2];case 1:return r=i.sent().TopologySummaryComponent,t=this.cfr.resolveComponentFactory(r),this.instance=this.topologySummaryContainer.createComponent(t,null,this.injector),this.instance.instance.server=this.server,this.instance.instance.project=this.project,[3,3];case 2:this.instance&&this.instance.instance&&(this.instance.instance.ngOnDestroy(),this.instance.destroy()),i.label=3;case 3:return[2]}})})},n.prototype.addSubscriptions=function(){var r=this;this.projectMapSubscription.add(this.mapSettingsService.mapRenderedEmitter.subscribe(function(t){r.scrollEnabled&&r.centerCanvas()})),this.projectMapSubscription.add(this.drawingsDataSource.changes.subscribe(function(t){r.drawings=t,r.mapChangeDetectorRef.detectChanges()})),this.projectMapSubscription.add(this.nodesDataSource.changes.subscribe(function(t){!r.server||(t.forEach(function(i){return(0,Qn.mG)(r,void 0,void 0,function(){return(0,Qn.Jh)(this,function(o){return i.symbol_url=this.server.protocol+"//"+this.server.host+":"+this.server.port+"/v2/symbols/"+i.symbol+"/raw",[2]})})}),r.nodes=t,r.mapSettingsService.getSymbolScaling()&&r.applyScalingOfNodeSymbols(),r.mapChangeDetectorRef.detectChanges())})),this.projectMapSubscription.add(this.linksDataSource.changes.subscribe(function(t){r.links=t,r.mapChangeDetectorRef.detectChanges()})),this.projectMapSubscription.add(this.projectWebServiceHandler.errorNotificationEmitter.subscribe(function(t){r.showMessage({type:"error",message:t})})),this.projectMapSubscription.add(this.projectWebServiceHandler.warningNotificationEmitter.subscribe(function(t){r.showMessage({type:"warning",message:t})})),this.projectMapSubscription.add(this.mapSettingsService.symbolScalingSubject.subscribe(function(t){t&&r.applyScalingOfNodeSymbols()}))},n.prototype.applyScalingOfNodeSymbols=function(){var r=this;this.nodesDataSource.getItems().forEach(function(t){if(t.height>r.symbolService.getMaximumSymbolSize()){var i=r.symbolService.scaleDimensionsForNode(t);t.width=i.width,t.height=i.height}})},n.prototype.getData=function(){var r=this,t=this.route.paramMap.subscribe(function(i){var o=parseInt(i.get("server_id"),10);(0,cs.D)(r.serverService.get(o)).pipe((0,Yo.zg)(function(a){return a||r.router.navigate(["/servers"]),r.server=a,r.projectService.get(a,i.get("project_id")).pipe((0,kr.U)(function(s){return s}))}),(0,Yo.zg)(function(a){return r.project=a,a||r.router.navigate(["/servers"]),r.projectService.open(r.server,r.project.project_id),r.title.setTitle(r.project.name),r.isInterfaceLabelVisible=r.mapSettingsService.showInterfaceLabels,r.toggleShowTopologySummary(r.mapSettingsService.isTopologySummaryVisible),r.recentlyOpenedProjectService.setServerId(r.server.id.toString()),r.recentlyOpenedProjectService.setProjectId(r.project.project_id),"opened"===r.project.status?new na.y(function(s){s.next(r.project)}):r.projectService.open(r.server,r.project.project_id)})).subscribe(function(a){r.onProjectLoad(a)},function(a){r.progressService.setError(a)},function(){r.progressService.deactivate()})});this.projectMapSubscription.add(t)},n.prototype.addKeyboardListeners=function(){var r=this;Yf.bind("ctrl++",function(t){t.preventDefault(),r.zoomIn()}),Yf.bind("ctrl+-",function(t){t.preventDefault(),r.zoomOut()}),Yf.bind("ctrl+0",function(t){t.preventDefault(),r.resetZoom()}),Yf.bind("ctrl+a",function(t){t.preventDefault();var i=r.mapNodesDataSource.getItems(),o=r.mapDrawingsDataSource.getItems(),a=r.mapLinksDataSource.getItems(),s=r.mapSymbolsDataSource.getItems();r.selectionManager.setSelected(i.concat(o).concat(a).concat(s))}),Yf.bind("ctrl+h",function(t){t.preventDefault(),r.toolbarVisibility=!r.toolbarVisibility}),Yf.bind("ctrl+shift+a",function(t){t.preventDefault(),r.selectionManager.setSelected([])}),Yf.bind("ctrl+shift+s",function(t){t.preventDefault(),r.router.navigate(["/server",r.server.id,"preferences"])}),Yf.bind("del",function(t){t.preventDefault(),r.deleteItems()})},n.prototype.deleteItems=function(){var r=this;this.bottomSheet.open(Xf);var t=this.bottomSheet._openedBottomSheetRef;t.instance.message="Do you want to delete all selected objects?",t.afterDismissed().subscribe(function(o){o&&r.selectionManager.getSelected().filter(function(s){return s instanceof iv}).forEach(function(s){var u=r.mapNodeToNode.convert(s);r.nodeService.delete(r.server,u).subscribe(function(p){r.toasterService.success("Node has been deleted")})})})},n.prototype.onProjectLoad=function(r){var t=this;this.readonly=this.projectService.isReadOnly(r);var i=this.projectService.nodes(this.server,r.project_id).pipe((0,Yo.zg)(function(o){return t.nodesDataSource.set(o),t.projectService.links(t.server,r.project_id)}),(0,Yo.zg)(function(o){return t.linksDataSource.set(o),t.projectService.drawings(t.server,r.project_id)})).subscribe(function(o){t.drawingsDataSource.set(o),t.setUpMapCallbacks(),t.setUpProjectWS(r),t.progressService.deactivate()});this.projectMapSubscription.add(i)},n.prototype.setUpProjectWS=function(r){var t=this;this.projectws=new WebSocket(this.notificationService.projectNotificationsPath(this.server,r.project_id)),this.projectws.onmessage=function(i){t.projectWebServiceHandler.handleMessage(JSON.parse(i.data))},this.projectws.onerror=function(i){t.toasterService.error("Connection to host lost. Error: "+i.data)}},n.prototype.setUpWS=function(){this.ws=new WebSocket(this.notificationService.notificationsPath(this.server))},n.prototype.setUpMapCallbacks=function(){var r=this;this.readonly||this.toolsService.selectionToolActivation(!0);var t=this.linkWidget.onContextMenu.subscribe(function(b){var R=r.mapLinkToLink.convert(b.link);r.contextMenu.openMenuForListOfElements([],[],[],[R],b.event.pageY,b.event.pageX)}),i=this.ethernetLinkWidget.onContextMenu.subscribe(function(b){var R=r.mapLinkToLink.convert(b.link);r.contextMenu.openMenuForListOfElements([],[],[],[R],b.event.pageY,b.event.pageX)}),o=this.serialLinkWidget.onContextMenu.subscribe(function(b){var R=r.mapLinkToLink.convert(b.link);r.contextMenu.openMenuForListOfElements([],[],[],[R],b.event.pageY,b.event.pageX)}),a=this.nodeWidget.onContextMenu.subscribe(function(b){var R=r.mapNodeToNode.convert(b.node);r.contextMenu.openMenuForNode(R,b.event.pageY,b.event.pageX)}),s=this.drawingsWidget.onContextMenu.subscribe(function(b){var R=r.mapDrawingToDrawing.convert(b.drawing);r.contextMenu.openMenuForDrawing(R,b.event.pageY,b.event.pageX)}),u=this.labelWidget.onContextMenu.subscribe(function(b){var R=r.mapLabelToLabel.convert(b.label),F=r.nodes.find(function(G){return G.node_id===b.label.nodeId});r.contextMenu.openMenuForLabel(R,F,b.event.screenY-60,b.event.screenX)}),p=this.interfaceLabelWidget.onContextMenu.subscribe(function(b){var R=r.mapLinkNodeToLinkNode.convert(b.interfaceLabel),F=r.links.find(function(G){return G.link_id===b.interfaceLabel.linkId});r.contextMenu.openMenuForInterfaceLabel(R,F,b.event.pageY,b.event.pageX)}),m=this.selectionTool.contextMenuOpened.subscribe(function(b){var R=r.selectionManager.getSelected();if(!(R.length<2)&&b instanceof MouseEvent){var F=[],G=[],Y=[],ee=[];R.forEach(function(pe){pe instanceof Qf?F.push(r.mapDrawingToDrawing.convert(pe)):pe instanceof iv?G.push(r.mapNodeToNode.convert(pe)):pe instanceof ny?Y.push(r.mapLabelToLabel.convert(pe)):pe instanceof gj&&ee.push(r.mapLinkToLink.convert(pe))}),r.contextMenu.openMenuForListOfElements(F,G,Y,ee,b.pageY,b.pageX)}});this.projectMapSubscription.add(t),this.projectMapSubscription.add(i),this.projectMapSubscription.add(o),this.projectMapSubscription.add(a),this.projectMapSubscription.add(s),this.projectMapSubscription.add(m),this.projectMapSubscription.add(u),this.projectMapSubscription.add(p),this.mapChangeDetectorRef.detectChanges()},n.prototype.onNodeCreation=function(r){var t=this;!r||(r.x=r.x/this.mapScaleService.getScale(),r.y=r.y/this.mapScaleService.getScale(),this.progressService.activate(),this.nodeService.createFromTemplate(this.server,this.project,r.template,r.x,r.y,r.server).subscribe(function(i){t.projectService.nodes(t.server,t.project.project_id).subscribe(function(o){o.filter(function(a){return null===a.label.style}).forEach(function(a){var s=t.nodeCreatedLabelStylesFixer.fix(a);t.nodeService.updateLabel(t.server,a,s.label).subscribe()}),t.nodesDataSource.set(o),r.numberOfNodes--,r.numberOfNodes>0?(r.x=r.x+50<t.project.scene_width/2?r.x+50:r.x,r.y=r.y+50<t.project.scene_height/2?r.y+50:r.y,t.onNodeCreation(r)):t.progressService.deactivate()})},function(i){t.toasterService.error(i.error.message),t.progressService.deactivate()}))},n.prototype.fitInView=function(){if(this.drawings.forEach(function(et){var Rt=et.svg.split('"'),kt=parseInt(Rt[1],10),fn=parseInt(Rt[3],10);et.element={width:fn,height:kt}}),0!==this.nodes.length||0!==this.drawings.length){var r,t,i,o,a=[];this.nodes.forEach(function(et){var Rt=new N1e;Rt.node=et,Rt.top=et.y,Rt.left=et.x,Rt.bottom=et.y+et.height,Rt.right=et.x+et.width,et.y+et.label.y<Rt.top&&(Rt.top=et.y+et.label.y),et.x+et.label.x<Rt.left&&(Rt.left=et.x+et.label.x),et.y+et.label.y>Rt.bottom&&(Rt.bottom=et.y+et.label.y),et.x+et.label.x>Rt.right&&(Rt.right=et.x+et.label.x),a.push(Rt)});var s=a.sort(function(et,Rt){return et.left-Rt.left})[0],u=a.sort(function(et,Rt){return et.right-Rt.right})[a.length-1],p=a.sort(function(et,Rt){return et.top-Rt.top})[0],m=a.sort(function(et,Rt){return et.bottom-Rt.bottom})[a.length-1],b=[];this.drawings.forEach(function(et){var Rt=new Z1e;Rt.drawing=et,Rt.top=et.y,Rt.left=et.x,Rt.bottom=et.y+et.element.height,Rt.right=et.x+et.element.width,b.push(Rt)});var R=b.sort(function(et,Rt){return et.left-Rt.left})[0],F=b.sort(function(et,Rt){return et.right-Rt.right})[b.length-1],G=b.sort(function(et,Rt){return et.top-Rt.top})[0],Y=b.sort(function(et,Rt){return et.bottom-Rt.bottom})[b.length-1];R&&s?(r=s.left<R.left?s.left:R.left,t=u.right>F.right?u.right:F.right,i=p.top<G.top?p.top:G.top,o=m.bottom>Y.bottom?m.bottom:Y.bottom):s&&!R?(r=s.left,t=u.right,i=p.top,o=m.bottom):R&&!s?(r=R.left,t=F.right,i=G.top,o=Y.bottom):(r=0,t=0,i=0,o=0),r-=20,t+=20,i-=20,o+=20;var pe=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,Ee=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,lt=t-r,tt=o-i,mt=tt/Ee,Ke=1/Math.max(lt/pe,mt);Ke!==this.mapScaleService.currentScale?(this.mapScaleService.setScale(Ke),this.project.scene_width=this.project.scene_width*Ke,this.project.scene_height=this.project.scene_height*Ke,mt<lt?(this.scrollX=r*Ke-(pe-lt*Ke)/2+this.project.scene_width/2,this.scrollY=i*Ke+this.project.scene_height/2):(this.scrollX=r*Ke+this.project.scene_width/2,this.scrollY=i*Ke-(Ee-tt*Ke)/2+this.project.scene_height/2)):(this.scrollX=r*Ke+this.project.scene_width/2,this.scrollY=i*Ke+this.project.scene_height/2),this.scrollEnabled=!0}},n.prototype.centerCanvas=function(){window.scrollTo(this.scrollX,this.scrollY),this.scrollEnabled=!1},n.prototype.centerView=function(){if(this.project){var r=this.project.scene_width-document.documentElement.clientWidth>0?(this.project.scene_width-document.documentElement.clientWidth)/2:0,t=this.project.scene_height-document.documentElement.clientHeight>0?(this.project.scene_height-document.documentElement.clientHeight)/2:0;window.scrollTo(r,t)}else this.toasterService.error("Please wait until all components are loaded.")},n.prototype.onDrawingSaved=function(){this.projectMapMenuComponent.resetDrawToolChoice()},Object.defineProperty(n.prototype,"readonly",{get:function(){return this.inReadOnlyMode},set:function(r){this.inReadOnlyMode=r,r?(this.tools.selection=!1,this.toolsService.selectionToolActivation(!1)):(this.tools.selection=!0,this.toolsService.selectionToolActivation(!0))},enumerable:!1,configurable:!0}),n.prototype.toggleSymbolScaling=function(r){this.symbolScaling=r,this.mapSettingsService.setSymbolScaling(r)},n.prototype.toggleMovingMode=function(){this.tools.moving=!this.tools.moving,this.movingEventSource.movingModeState.emit(this.tools.moving),this.readonly||(this.tools.selection=!this.tools.moving,this.toolsService.selectionToolActivation(this.tools.selection))},n.prototype.toggleDrawLineMode=function(){this.tools.draw_link=!this.tools.draw_link,this.toolsService.drawLinkToolActivation(this.tools.draw_link)},n.prototype.toggleShowInterfaceLabels=function(r){this.isInterfaceLabelVisible=r,this.mapSettingsService.toggleShowInterfaceLabels(this.isInterfaceLabelVisible),this.mapSettingsService.mapRenderedEmitter.emit(!0)},n.prototype.toggleShowConsole=function(r){this.isConsoleVisible=r,this.mapSettingsService.toggleLogConsole(this.isConsoleVisible)},n.prototype.toggleShowTopologySummary=function(r){this.isTopologySummaryVisible=r,this.mapSettingsService.toggleTopologySummary(this.isTopologySummaryVisible),this.lazyLoadTopologySummary()},n.prototype.toggleNotifications=function(r){this.notificationsVisibility=r,this.notificationsVisibility?localStorage.setItem("notificationsVisibility","true"):localStorage.removeItem("notificationsVisibility")},n.prototype.toggleLayers=function(r){this.layersVisibility=r,this.mapSettingsService.toggleLayers(r),this.layersVisibility?localStorage.setItem("layersVisibility","true"):localStorage.removeItem("layersVisibility"),this.mapChild.applyMapSettingsChanges()},n.prototype.toggleGrid=function(r){this.gridVisibility=r,this.gridVisibility?localStorage.setItem("gridVisibility","true"):localStorage.removeItem("gridVisibility"),this.mapChild.gridVisibility=this.gridVisibility?1:0},n.prototype.toggleSnapToGrid=function(r){this.project.snap_to_grid=r},n.prototype.showMessage=function(r){this.notificationsVisibility&&("error"===r.type&&this.toasterService.error(r.message),"warning"===r.type&&this.toasterService.warning(r.message))},n.prototype.hideMenu=function(){this.projectMapMenuComponent.resetDrawToolChoice(),this.isProjectMapMenuVisible=!1},n.prototype.showMenu=function(){this.isProjectMapMenuVisible=!0},n.prototype.zoomIn=function(){this.mapScaleService.setScale(this.mapScaleService.getScale()+.1)},n.prototype.zoomOut=function(){var r=this.mapScaleService.getScale();r-.1>0&&this.mapScaleService.setScale(r-.1)},n.prototype.resetZoom=function(){this.mapScaleService.resetToDefault()},n.prototype.addNewProject=function(){this.dialog.open(Zj,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance.server=this.server},n.prototype.saveProject=function(){var t=this.dialog.open(Lme,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance;t.server=this.server,t.project=this.project},n.prototype.editProject=function(){var t=this.dialog.open(Eme,{width:"600px",autoFocus:!1,disableClose:!0}).componentInstance;t.server=this.server,t.project=this.project},n.prototype.importProject=function(){var r=this,t="",i=this.dialog.open(Bj,{width:"400px",autoFocus:!1,disableClose:!0});i.componentInstance.server=this.server;var a=i.componentInstance.onImportProject.subscribe(function(s){t=s});i.afterClosed().subscribe(function(){if(a.unsubscribe(),t){r.bottomSheet.open(Uj);var s=r.bottomSheet._openedBottomSheetRef;s.instance.projectMessage="imported project",s.afterDismissed().subscribe(function(p){p&&r.projectService.open(r.server,t).subscribe(function(){r.router.navigate(["/server",r.server.id,"project",t])})})}})},n.prototype.exportProject=function(){this.nodes.filter(function(r){return"virtualbox"===r.node_type}).length>0?this.toasterService.error("Map with VirtualBox machines cannot be exported."):this.nodes.filter(function(r){return"started"===r.status&&"vpcs"===r.node_type||"started"===r.status&&"virtualbox"===r.node_type||"started"===r.status&&"vmware"===r.node_type}).length>0?this.toasterService.error("Project with running nodes cannot be exported."):location.assign(this.projectService.getExportPath(this.server,this.project))},n.prototype.uploadImageFile=function(r){this.readImageFile(r.target)},n.prototype.readImageFile=function(r){var t=this,i=r.files[0],o=new FileReader,a=new Image;o.onloadend=function(){t.drawingService.add(t.server,t.project.project_id,-a.width/2,-a.height/2,'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" \n height="'+a.height+'" width="'+a.width+'">\n<image height="'+a.height+'" width="'+a.width+'" \n xlink:href="'+o.result+'"/>\n</svg>').subscribe(function(){})},a.onload=function(){o.readAsDataURL(i)},a.src=window.URL.createObjectURL(i)},n.prototype.closeProject=function(){var r=this;this.bottomSheet.open(Xf);var t=this.bottomSheet._openedBottomSheetRef;t.instance.message="Do you want to close the project?",t.afterDismissed().subscribe(function(o){o&&r.projectService.close(r.server,r.project.project_id).subscribe(function(){r.router.navigate(["/server",r.server.id,"projects"])})})},n.prototype.deleteProject=function(){var r=this;this.bottomSheet.open(Xf);var t=this.bottomSheet._openedBottomSheetRef;t.instance.message="Do you want to delete the project?",t.afterDismissed().subscribe(function(o){o&&r.projectService.delete(r.server,r.project.project_id).subscribe(function(){r.router.navigate(["/server",r.server.id,"projects"])})})},n.prototype.addNewTemplate=function(){var t=this.dialog.open(Lbe,{width:"1000px",maxHeight:"700px",autoFocus:!1,disableClose:!0}).componentInstance;t.server=this.server,t.project=this.project},n.prototype.ngOnDestroy=function(){this.nodeConsoleService.openConsoles=0,this.title.setTitle("GNS3 Web UI"),this.drawingsDataSource.clear(),this.nodesDataSource.clear(),this.linksDataSource.clear(),this.projectws&&this.projectws.OPEN&&this.projectws.close(),this.ws&&this.ws.OPEN&&this.ws.close(),this.projectMapSubscription.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(Hr),e.Y36(fd.Y),e.Y36(Jr),e.Y36(ks),e.Y36(zf),e.Y36(EL),e.Y36(OS),e.Y36(sL),e.Y36(RS),e.Y36(dL),e.Y36(P2),e.Y36(PS),e.Y36(j2),e.Y36(uz),e.Y36(US),e.Y36(cz),e.Y36(AL),e.Y36(Ea.G),e.Y36(Kf.F),e.Y36(Es),e.Y36(yp.g),e.Y36(NS),e.Y36(sc),e.Y36(O2),e.Y36(z2.p),e.Y36(N2),e.Y36(ay),e.Y36(dz),e.Y36(er),e.Y36(no),e.Y36(Er),e.Y36(QZ),e.Y36(KZ),e.Y36(XZ),e.Y36($Z),e.Y36(Ou),e.Y36(uL),e.Y36(cL),e.Y36(LS),e.Y36(pz),e.Y36(rc.f),e.Y36(B.Dx),e.Y36(hd),e.Y36(TS),e.Y36(e.sBO),e.Y36(e._Vd),e.Y36(e.zs3))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-project-map"]],viewQuery:function(t,i){if(1&t&&(e.Gf(jj,5),e.Gf(Rj,5),e.Gf(lz,5),e.Gf(_1e,5,e.s_b)),2&t){var o=void 0;e.iGM(o=e.CRH())&&(i.contextMenu=o.first),e.iGM(o=e.CRH())&&(i.mapChild=o.first),e.iGM(o=e.CRH())&&(i.projectMapMenuComponent=o.first),e.iGM(o=e.CRH())&&(i.topologySummaryContainer=o.first)}},decls:3,vars:1,consts:[["class","project-map",3,"ngClass",4,"ngIf"],["topologySummaryContainer",""],[1,"project-map",3,"ngClass"],[3,"server","project","symbols","nodes","links","drawings","width","height","show-interface-labels","readonly","nodeDragged","drawingDragged","onLinkCreated","onDrawingResized",4,"ngIf"],[3,"symbols","nodes","links","drawings","width","height","show-interface-labels","selection-tool","moving-tool","draw-link-tool","readonly",4,"ngIf"],["id","project-titlebar",3,"ngClass"],["matTooltip","Open menu","matTooltipClass","custom-tooltip","mat-icon-button","",1,"gns3-button","menu-button",3,"matMenuTriggerFor"],["svgIcon","gns3",4,"ngIf"],["svgIcon","gns3black",4,"ngIf"],[1,"project-titlebar-controls"],["class","menu-button-group primary-controls",3,"ngClass",4,"ngIf"],[1,"menu-button-group"],[3,"server","project"],[3,"project","server"],["matTooltip","Toggle topology/servers summary","matTooltipClass","custom-tooltip","mat-icon-button","",3,"ngClass","click"],[3,"overlapTrigger"],["mainMenu","matMenu"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","","routerLink","/settings"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"matMenuTriggerFor"],["projectMenu","matMenu"],["viewMenu","matMenu"],[1,"options-item"],[3,"ngModel","change"],["id","project-toolbar",3,"ngClass"],[1,"section"],["matTooltip","Selection mode","matTooltipClass","custom-tooltip","mat-icon-button","",1,"selection-button","menu-button",3,"color","click"],["matTooltip","Pan workspace","matTooltipClass","custom-tooltip","mat-icon-button","",1,"pan-button","menu-button",3,"color","click"],["matTooltip","Zoom in","matTooltipClass","custom-tooltip","mat-icon-button","",1,"zoom-button",3,"click"],["matTooltip","Reset zoom","matTooltipClass","custom-tooltip","mat-icon-button","",1,"reset-zoom-button",3,"click"],["matTooltip","Zoom out","matTooltipClass","custom-tooltip","mat-icon-button","",1,"zoom-button",3,"click"],["class","section",4,"ngIf"],[3,"links",4,"ngIf"],[3,"server"],[3,"server","project","drawingSaved"],[3,"ngClass"],[3,"server","project","closeConsole",4,"ngIf"],[3,"server","project","symbols","nodes","links","drawings","width","height","show-interface-labels","readonly","nodeDragged","drawingDragged","onLinkCreated","onDrawingResized"],[3,"symbols","nodes","links","drawings","width","height","show-interface-labels","selection-tool","moving-tool","draw-link-tool","readonly"],["svgIcon","gns3"],["svgIcon","gns3black"],[1,"menu-button-group","primary-controls",3,"ngClass"],[3,"server","project","onNodeCreation"],["matTooltip","Add a link","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"ngClass","color","click"],[3,"links"],[3,"server","project","closeConsole"]],template:function(t,i){1&t&&(e.YNc(0,P1e,156,67,"div",0),e.YNc(1,I1e,0,0,"ng-template",null,1,e.W1O)),2&t&&e.Q6J("ngIf",i.project)},directives:[At.O5,At.mk,An,Xa,$a,C0e,jj,ur,ws,Lr,fa,S0e,Lo,ne.JJ,ne.On,lz,MZ,T0e,x0e,w0e,k0e,E0e,M0e,A0e,D0e,Rj,ECe,UCe,QCe,n1e,g1e],styles:[".wrapper{height:600px}app-root,app-project-map,.project-map,app-map{width:auto}g.node:hover{background-color:#0097a7}.project-map{background-color:#e8ecef}#project-titlebar{position:fixed;top:0px;left:0px;right:0px;height:60px;padding:0 20px;background-color:#20313b;display:flex;justify-content:space-between;align-items:center;box-shadow:3px 3px 10px rgba(0,0,0,.2);z-index:2}#project-titlebar .gns3-button{position:relative;top:-2px}#project-titlebar .gns3-button mat-icon{width:30px!important;height:30px!important}#project-titlebar .primary-controls{border-right:1px solid rgba(255,255,255,.3);padding-right:15px;margin-right:15px}#project-titlebar .primary-controls.lightTheme{border-right:1px solid black}#project-titlebar .menu-button-group{display:flex;align-items:center;height:24px}#project-titlebar .menu-button{display:flex;justify-content:center;align-items:center;height:36px;width:36px;margin:0 8px;border-radius:18px;background:none;font-size:20px}#project-titlebar .add-menu-button mat-icon{font-size:28px!important}#project-titlebar .selected{background:rgba(0,151,167,.1)}#project-titlebar .selected mat-icon{color:#0097a7!important}#project-titlebar .project-titlebar-controls{display:flex;align-items:center}#project-titlebar.lightTheme{background-color:#fff!important}#project-titlebar.lightTheme .selected mat-icon{color:#0097a7!important}#project-toolbar{position:fixed;top:60px;left:0px;width:50px;margin:20px;background-color:#20313b;border-radius:6px;box-shadow:1px 1px 10px rgba(0,0,0,.2);z-index:2}#project-toolbar mat-icon{font-size:20px}#project-toolbar .menu-button{display:flex;justify-content:center;align-items:center;height:36px;width:36px;border-radius:18px;background:none;margin:2px 0}#project-toolbar .zoom-button{display:flex;justify-content:center;align-items:center;height:36px;width:36px;border-radius:18px;background:none;margin:2px 0;color:#fff}#project-toolbar .zoom-button mat-icon{font-size:24px!important}#project-toolbar .reset-zoom-button{display:flex;justify-content:center;align-items:center;height:36px;width:36px;border-radius:18px;background:none;margin:2px 0;color:#fff}#project-toolbar .reset-zoom-button mat-icon{font-size:18px!important}#project-toolbar .selection-button{margin-bottom:0!important}#project-toolbar .snapshot-button mat-icon{font-size:16px}#project-toolbar .section{display:flex;flex-direction:column;justify-content:center;align-items:center;border-top:1px solid rgba(255,255,255,.3);padding:5px 0}#project-toolbar .section:first-child{border:none}#project-toolbar.lightTheme{background-color:rgba(244,248,252,.949)!important}#project-toolbar.lightTheme .zoom-button{opacity:.7;color:#000}#project-toolbar.lightTheme .reset-zoom-button{opacity:.7;color:#000}#project-toolbar.lightTheme .section{border-top:1px solid rgba(0,0,0,.1)}#project-toolbar.lightTheme .section:first-child{border:none}img{filter:invert(1)}.lightTheme{color:#000!important}.darkTheme{color:#fff!important}#show-menu-wrapper{position:fixed;background:transparent;top:0px;left:92px;background:#263238;height:72px;padding-top:16px}#show-menu-wrapper .arrow-button{outline:0!important}.shadowed{box-shadow:0 4px 8px -4px rgba(0,0,0,.2),0 6px 20px -20px rgba(0,0,0,.188)}.non-visible{display:none}#menu-wrapper{position:fixed;background:transparent;top:0px;left:92px;right:0px;background:#263238;height:72px;padding-top:16px;padding-bottom:16px;transition:35s;width:0;overflow:hidden;transition:.15s;box-shadow:0 4px 8px rgba(0,0,0,.2),0 6px 20px rgba(0,0,0,.188);display:flex}#menu-wrapper .menu-button{outline:0!important;transition:.5s;margin-bottom:16px;width:40px;margin-right:12px!important;margin-left:12px!important;background:transparent;padding:0;border:none;background-color:transparent}#menu-wrapper .arrow-button{outline:0!important;transition:.5s;margin-bottom:16px}.extended{width:830px!important;height:100%;overflow:hidden}mat-divider.divider{height:40px;margin-left:1px;margin-right:7px;width:10px;color:gray}@-moz-document url-prefix(){.mat-drawer-content{display:inline!important}}.shadow{box-shadow:0 4px 8px rgba(0,0,0,.2),0 6px 20px rgba(0,0,0,.188)}.mat-drawer-backdrop.mat-drawer-shown{background-color:transparent}.project-toolbar .mat-toolbar-multiple-rows{width:auto!important}.loading-spinner{position:absolute;top:50%;width:100px;margin-left:-50px;margin-top:-50px;left:50%}line.selected{stroke:#0097a7!important}svg.map image:hover,svg.map image.chosen,g.selected{-moz-filter:grayscale(100%);-ms-filter:grayscale(100%);-o-filter:grayscale(100%);filter:grayscale(100%);filter:gray;filter:url(#grayscale)}path.selected{stroke:#8b0000}.selected>.interface_label_border{stroke:#000;fill:none}.selection-line-tool .selection{fill:#7ccbe1;stroke:#66aec2;fill-opacity:.3;stroke-opacity:.7;stroke-width:1;stroke-dasharray:5,5}g.node text,.noselect{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.project-toolbar button{outline:0;border:none;-moz-outline-style:none}.options-item{padding-left:15px;padding-right:15px}.context-menu-items .mat-menu-item{line-height:24px!important;height:24px!important;font-size:13px!important;padding:0 6px;outline:none!important}.context-menu-items .mat-menu-item .mat-icon{margin-right:3px}.context-menu-items .mat-menu-item:focus{background:none}.visible{display:none}mat-menu-panel{min-height:0px}.unmarked{color:#fff!important}.unmarkedLight{color:#000!important}.marked{color:#0097a7!important}\n"],encapsulation:2}),n}(),N1e=function(){return function(){}}(),Z1e=function(){return function(){}}(),L1e=function(){function n(r){this.dialogRef=r,this.message="Do you want to configure GNS3 VM?"}return n.prototype.ngOnInit=function(){},n.prototype.onNoClick=function(){this.dialogRef.close(!1)},n.prototype.onYesClick=function(){this.dialogRef.close(!0)},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configure-gns3-vm-dialog"]],decls:7,vars:1,consts:[[1,"message"],["mat-dialog-actions",""],["mat-button","","color","accent",1,"cancelButton",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"confirmButton",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"span",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"button",2),e.NdJ("click",function(){return i.onNoClick()}),e._uU(4,"No"),e.qZA(),e.TgZ(5,"button",3),e.NdJ("click",function(){return i.onYesClick()}),e._uU(6," Yes "),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Oqu(i.message))},directives:[ti,An],styles:[""]}),n}(),F1e=function(){function n(r,t){this.dialogRef=r,this.projectService=t}return n.prototype.ngOnInit=function(){this.name=this.project.name},n.prototype.onCloseClick=function(){this.dialogRef.close()},n.prototype.onSaveClick=function(){var r=this;this.projectService.duplicate(this.server,this.project.project_id,this.name).subscribe(function(){r.dialogRef.close()})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(fd.Y))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-choose-name-dialog"]],inputs:{server:"server",project:"project"},decls:10,vars:1,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"form-field"],["matInput","","placeholder","Project name","type","text",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Please choose name for exporting project"),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"mat-form-field",2),e.TgZ(4,"input",3),e.NdJ("ngModelChange",function(a){return i.name=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"button",5),e.NdJ("click",function(){return i.onCloseClick()}),e._uU(7,"Cancel"),e.qZA(),e.TgZ(8,"button",6),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(9,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngModel",i.name))},directives:[ri,Hn.KE,dr,ne.Fj,ne.JJ,ne.On,ti,An],styles:[".form-field[_ngcontent-%COMP%]{width:100%}"]}),n}();function B1e(n,r){1&n&&(e.TgZ(0,"mat-header-cell",21),e._uU(1," Name "),e.qZA())}var U1e=function(n,r){return["/server",n,"project",r]};function H1e(n,r){if(1&n&&(e.TgZ(0,"mat-cell"),e.TgZ(1,"a",22),e._uU(2),e.qZA(),e.qZA()),2&n){var t=r.$implicit,i=e.oxw();e.xp6(1),e.Q6J("routerLink",e.WLB(2,U1e,i.server.id,t.project_id)),e.xp6(1),e.Oqu(t.name)}}function V1e(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Actions "),e.qZA())}function q1e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",28),e.NdJ("click",function(){e.CHM(t);var o=e.oxw().$implicit;return e.oxw().open(o)}),e.TgZ(1,"mat-icon",29),e._uU(2,"play_arrow"),e.qZA(),e.qZA()}}function j1e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",30),e.NdJ("click",function(){e.CHM(t);var o=e.oxw().$implicit;return e.oxw().close(o)}),e.TgZ(1,"mat-icon",31),e._uU(2,"pause"),e.qZA(),e.qZA()}}function z1e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",32),e.NdJ("click",function(){e.CHM(t);var o=e.oxw().$implicit;return e.oxw().duplicate(o)}),e.TgZ(1,"mat-icon",33),e._uU(2,"filter_2"),e.qZA(),e.qZA()}}function W1e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",34),e.NdJ("click",function(){e.CHM(t);var o=e.oxw().$implicit;return e.oxw().delete(o)}),e.TgZ(1,"mat-icon",35),e._uU(2,"delete"),e.qZA(),e.qZA()}}function G1e(n,r){if(1&n&&(e.TgZ(0,"mat-cell",23),e.YNc(1,q1e,3,0,"button",24),e.YNc(2,j1e,3,0,"button",25),e.YNc(3,z1e,3,0,"button",26),e.YNc(4,W1e,3,0,"button",27),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Q6J("ngIf","closed"==t.status),e.xp6(1),e.Q6J("ngIf","opened"==t.status),e.xp6(1),e.Q6J("ngIf","closed"==t.status),e.xp6(1),e.Q6J("ngIf","closed"==t.status)}}function Y1e(n,r){1&n&&e._UZ(0,"mat-header-row")}function J1e(n,r){1&n&&e._UZ(0,"mat-row")}var Q1e=function(){return{standalone:!0}},Tz=function(){function n(r,t,i,o,a,s,u,p,m,b){this.route=r,this.projectService=t,this.settingsService=i,this.progressService=o,this.dialog=a,this.router=s,this.bottomSheet=u,this.toasterService=p,this.electronService=m,this.recentlyOpenedProjectService=b,this.projectDatabase=new K1e,this.displayedColumns=["name","actions"],this.searchText=""}return n.prototype.ngOnInit=function(){var r=this;this.server=this.route.snapshot.data.server,this.server||this.router.navigate(["/servers"]),this.recentlyOpenedProjectService.setServerIdProjectList(this.server.id.toString()),this.refresh(),this.sort.sort({id:"name",start:"asc"}),this.dataSource=new X1e(this.projectDatabase,this.sort),this.settings=this.settingsService.getAll(),this.projectService.projectListSubject.subscribe(function(){return r.refresh()});var t=localStorage.getItem("gns3vmConfig");this.electronService.isElectronApp&&"configured"!==t&&this.dialog.open(L1e,{width:"350px",height:"120px",autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(o){o&&(localStorage.setItem("gns3vmConfig","configured"),r.router.navigate(["/server",r.server.id,"preferences","gns3vm"]))})},n.prototype.goToPreferences=function(){var r=this;this.router.navigate(["/server",this.server.id,"preferences"]).catch(function(t){return r.toasterService.error("Cannot navigate to the preferences")})},n.prototype.goToSystemStatus=function(){var r=this;this.router.navigate(["/server",this.server.id,"systemstatus"]).catch(function(t){return r.toasterService.error("Cannot navigate to the system status")})},n.prototype.refresh=function(){var r=this;this.projectService.list(this.server).subscribe(function(t){r.projectDatabase.addProjects(t)},function(t){r.progressService.setError(t)})},n.prototype.delete=function(r){var t=this;this.bottomSheet.open(Xf);var i=this.bottomSheet._openedBottomSheetRef;i.instance.message="Do you want to delete the project?",i.afterDismissed().subscribe(function(a){a&&t.projectService.delete(t.server,r.project_id).subscribe(function(){t.refresh()})})},n.prototype.open=function(r){var t=this;this.progressService.activate(),this.projectService.open(this.server,r.project_id).subscribe(function(){t.refresh()},function(){t.refresh(),t.progressService.deactivate(),t.toasterService.error("Project was deleted.")},function(){t.progressService.deactivate()})},n.prototype.close=function(r){var t=this;this.bottomSheet.open(Xf);var i=this.bottomSheet._openedBottomSheetRef;i.instance.message="Do you want to close the project?",i.afterDismissed().subscribe(function(a){a&&t.projectService.close(t.server,r.project_id).subscribe(function(){t.refresh(),t.progressService.deactivate()})})},n.prototype.duplicate=function(r){var t=this,i=this.dialog.open(F1e,{width:"400px",autoFocus:!1,disableClose:!0}),o=i.componentInstance;o.server=this.server,o.project=r,i.afterClosed().subscribe(function(){t.refresh()})},n.prototype.addBlankProject=function(){this.dialog.open(Zj,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance.server=this.server},n.prototype.importProject=function(){var r=this,t="",i=this.dialog.open(Bj,{width:"400px",autoFocus:!1,disableClose:!0});i.componentInstance.server=this.server;var a=i.componentInstance.onImportProject.subscribe(function(s){t=s});i.afterClosed().subscribe(function(){if(r.refresh(),a.unsubscribe(),t){r.bottomSheet.open(Uj);var s=r.bottomSheet._openedBottomSheetRef;s.instance.projectMessage="imported project",s.afterDismissed().subscribe(function(p){p&&r.projectService.open(r.server,t).subscribe(function(){r.router.navigate(["/server",r.server.id,"project",t])})})}})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(fd.Y),e.Y36(yp.g),e.Y36(zf),e.Y36(no),e.Y36(Er),e.Y36(LS),e.Y36(er),e.Y36(hs),e.Y36(z2.p))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-projects"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(BS,7),2&t)&&(e.iGM(o=e.CRH())&&(i.sort=o.first))},decls:29,vars:9,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-raised-button","",1,"add-button",3,"click"],["mat-raised-button","","color","primary",1,"add-button",3,"click"],["mat-raised-button","","color","primary",1,"import-button",3,"click"],[1,"full-width"],["matInput","","placeholder","Search by name",3,"ngModel","ngModelOptions","ngModelChange"],[1,"default-content"],[1,"mat-elevation-z8"],["matSort","",3,"dataSource"],["table",""],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","actions"],[4,"matHeaderCellDef"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["mat-sort-header",""],[1,"table-link",3,"routerLink"],[2,"text-align","right"],["mat-icon-button","","matTooltip","Open project","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Close project","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Duplicate project","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Delete project","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Open project","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Open project"],["mat-icon-button","","matTooltip","Close project","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Close project"],["mat-icon-button","","matTooltip","Duplicate project","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Duplicate project"],["mat-icon-button","","matTooltip","Delete project","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete project"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Projects"),e.qZA(),e.TgZ(5,"button",4),e.NdJ("click",function(){return i.goToSystemStatus()}),e._uU(6,"Go to system status"),e.qZA(),e.TgZ(7,"button",4),e.NdJ("click",function(){return i.goToPreferences()}),e._uU(8,"Go to preferences"),e.qZA(),e.TgZ(9,"button",5),e.NdJ("click",function(){return i.addBlankProject()}),e._uU(10," Add blank project "),e.qZA(),e.TgZ(11,"button",6),e.NdJ("click",function(){return i.importProject()}),e._uU(12," Import project "),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"form"),e.TgZ(14,"mat-form-field",7),e.TgZ(15,"input",8),e.NdJ("ngModelChange",function(a){return i.searchText=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(16,"div",9),e.TgZ(17,"div",10),e.TgZ(18,"mat-table",11,12),e.ALo(20,"projectsfilter"),e.ynx(21,13),e.YNc(22,B1e,2,0,"mat-header-cell",14),e.YNc(23,H1e,3,5,"mat-cell",15),e.BQk(),e.ynx(24,16),e.YNc(25,V1e,2,0,"mat-header-cell",17),e.YNc(26,G1e,5,4,"mat-cell",18),e.BQk(),e.YNc(27,Y1e,1,0,"mat-header-row",19),e.YNc(28,J1e,1,0,"mat-row",20),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(15),e.Q6J("ngModel",i.searchText)("ngModelOptions",e.DdM(8,Q1e)),e.xp6(3),e.Q6J("dataSource",e.xi3(20,5,i.dataSource,i.searchText)),e.xp6(9),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns))},styles:[".import-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.add-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.full-width[_ngcontent-%COMP%]{width:940px;margin-left:-470px;left:50%}.row[_ngcontent-%COMP%]{display:flex}"]}),n}(),K1e=function(){function n(){this.dataChange=new to.X([])}return Object.defineProperty(n.prototype,"data",{get:function(){return this.dataChange.value},enumerable:!1,configurable:!0}),n.prototype.addProjects=function(r){this.dataChange.next(r)},n.prototype.remove=function(r){var t=this.data.indexOf(r);t>=0&&(this.data.splice(t,1),this.dataChange.next(this.data.slice()))},n}(),X1e=function(n){function r(t,i){var o=n.call(this)||this;return o.projectDatabase=t,o.sort=i,o}return(0,Qn.ZT)(r,n),r.prototype.connect=function(){var t=this;return go.T.apply(void 0,[this.projectDatabase.dataChange,this.sort.sortChange]).pipe((0,kr.U)(function(){return t.sort.active&&""!==t.sort.direction?t.projectDatabase.data.sort(function(o,a){var s=o[t.sort.active],u=a[t.sort.active];return((isNaN(+s)?s:+s)<(isNaN(+u)?u:+u)?-1:1)*("asc"===t.sort.direction?1:-1)}):t.projectDatabase.data}))},r.prototype.disconnect=function(){},r}(Wi.o2);function $1e(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"You must enter a value"),e.qZA())}function eSe(n,r){if(1&n&&(e.TgZ(0,"mat-option",13),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.key),e.xp6(1),e.hij(" ",t.name," ")}}function tSe(n,r){1&n&&(e.TgZ(0,"mat-form-field"),e._UZ(1,"input",14),e.qZA())}function nSe(n,r){1&n&&(e.TgZ(0,"mat-form-field"),e._UZ(1,"input",15),e.qZA())}function rSe(n,r){if(1&n&&(e.TgZ(0,"mat-option",13),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.key),e.xp6(1),e.hij(" ",t.name," ")}}function iSe(n,r){if(1&n&&(e.TgZ(0,"mat-option",13),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.key),e.xp6(1),e.hij(" ",t.name," ")}}function oSe(n,r){if(1&n&&(e.TgZ(0,"mat-form-field"),e.TgZ(1,"mat-select",16),e.YNc(2,iSe,2,2,"mat-option",6),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngForOf",t.authorizations)}}function aSe(n,r){1&n&&(e.TgZ(0,"mat-form-field"),e._UZ(1,"input",17),e.qZA())}function sSe(n,r){1&n&&(e.TgZ(0,"mat-form-field"),e._UZ(1,"input",18),e.qZA())}var lSe=function(){function n(r,t,i,o,a){this.dialogRef=r,this.electronService=t,this.serverService=i,this.toasterService=o,this.data=a,this.authorizations=[{key:"none",name:"No authorization"},{key:"basic",name:"Basic authorization"}],this.protocols=[{key:"http:",name:"HTTP"},{key:"https:",name:"HTTPS"}],this.locations=[],this.serverForm=new ne.cw({name:new ne.NI("",[ne.kI.required]),location:new ne.NI(""),path:new ne.NI(""),ubridge_path:new ne.NI(""),host:new ne.NI("",[ne.kI.required]),port:new ne.NI("",[ne.kI.required,ne.kI.min(1)]),protocol:new ne.NI("http:"),authorization:new ne.NI("none"),login:new ne.NI(""),password:new ne.NI("")})}return n.prototype.getLocations=function(){return(0,Qn.mG)(this,void 0,void 0,function(){var r,t;return(0,Qn.Jh)(this,function(i){switch(i.label){case 0:return[4,this.numberOfLocalServers()];case 1:return r=i.sent(),t=[],this.electronService.isElectronApp&&0===r&&t.push({key:"local",name:"Local"}),t.push({key:"remote",name:"Remote"}),[2,t]}})})},n.prototype.getDefaultLocation=function(){return(0,Qn.mG)(this,void 0,void 0,function(){var r;return(0,Qn.Jh)(this,function(t){switch(t.label){case 0:return[4,this.numberOfLocalServers()];case 1:return r=t.sent(),this.electronService.isElectronApp&&0===r?[2,"local"]:[2,"remote"]}})})},n.prototype.numberOfLocalServers=function(){return(0,Qn.mG)(this,void 0,void 0,function(){return(0,Qn.Jh)(this,function(t){switch(t.label){case 0:return[4,this.serverService.findAll()];case 1:return[2,t.sent().filter(function(i){return"local"===i.location}).length]}})})},n.prototype.getDefaultHost=function(){return"127.0.0.1"},n.prototype.getDefaultPort=function(){return 3080},n.prototype.getDefaultLocalServerPath=function(){return(0,Qn.mG)(this,void 0,void 0,function(){return(0,Qn.Jh)(this,function(r){switch(r.label){case 0:return this.electronService.isElectronApp?[4,this.electronService.remote.require("./local-server.js").getLocalServerPath()]:[3,2];case 1:return[2,r.sent()];case 2:return[2]}})})},n.prototype.getDefaultUbridgePath=function(){return(0,Qn.mG)(this,void 0,void 0,function(){return(0,Qn.Jh)(this,function(r){switch(r.label){case 0:return this.electronService.isElectronApp?[4,this.electronService.remote.require("./local-server.js").getUbridgePath()]:[3,2];case 1:return[2,r.sent()];case 2:return[2]}})})},n.prototype.ngOnInit=function(){return(0,Qn.mG)(this,void 0,void 0,function(){var r,t,i,o,a=this;return(0,Qn.Jh)(this,function(s){switch(s.label){case 0:return r=this,[4,this.getLocations()];case 1:return r.locations=s.sent(),[4,this.getDefaultLocalServerPath()];case 2:return t=s.sent(),[4,this.getDefaultUbridgePath()];case 3:return i=s.sent(),this.serverForm.get("location").valueChanges.subscribe(function(u){var p=a.serverForm.get("path"),m=a.serverForm.get("ubridge_path");"local"===u?(p.setValue(t),p.setValidators([ne.kI.required]),m.setValue(i),m.setValidators([ne.kI.required])):(p.setValue(""),p.clearValidators(),m.setValue(""),m.clearValidators()),[p,m].forEach(function(b){b.updateValueAndValidity({onlySelf:!0})})}),this.serverForm.get("authorization").valueChanges.subscribe(function(u){var p=a.serverForm.get("login"),m=a.serverForm.get("password");"none"===u?(p.clearValidators(),m.clearValidators()):(p.setValidators([ne.kI.required]),m.setValidators([ne.kI.required])),[p,m].forEach(function(b){b.updateValueAndValidity({onlySelf:!0})})}),[4,this.getDefaultLocation()];case 4:return o=s.sent(),this.serverForm.get("location").setValue(o),this.serverForm.get("host").setValue(this.getDefaultHost()),this.serverForm.get("port").setValue(this.getDefaultPort()),this.serverForm.get("authorization").setValue("none"),[2]}})})},n.prototype.onAddClick=function(){var r=this;if(this.serverForm.valid){var t=Object.assign({},this.serverForm.value);this.serverService.checkServerVersion(t).subscribe(function(i){i.version.split(".")[1]>=2&&i.version.split(".")[0]>=2?(r.dialogRef.close(t),r.toasterService.success("Server "+t.name+" added.")):(r.dialogRef.close(),r.toasterService.error("Server version is not supported."))},function(i){r.toasterService.error("Cannot connect to the server: "+i)})}},n.prototype.onNoClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Vr),e.Y36(hs),e.Y36(Hr),e.Y36(er),e.Y36(dd))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-add-server-dialog"]],decls:27,vars:9,consts:[["mat-dialog-title",""],[3,"formGroup"],["mat-dialog-content",""],["matInput","","tabindex","1","formControlName","name","placeholder","Name"],[4,"ngIf"],["placeholder","Location","formControlName","location"],[3,"value",4,"ngFor","ngForOf"],["matInput","","tabindex","1","formControlName","host","placeholder","Host"],["matInput","","tabindex","1","formControlName","port","placeholder","Port"],["placeholder","Protocol","formControlName","protocol"],["mat-dialog-actions",""],["mat-button","","tabindex","-1","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"],["matInput","","tabindex","1","formControlName","path","placeholder","Local server path"],["matInput","","tabindex","1","formControlName","ubridge_path","placeholder","Ubridge path"],["placeholder","Authorization","formControlName","authorization"],["matInput","","tabindex","1","formControlName","login","placeholder","Login"],["matInput","","type","password","tabindex","1","formControlName","password","placeholder","Password"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Add server"),e.qZA(),e.TgZ(2,"form",1),e.TgZ(3,"div",2),e.TgZ(4,"mat-form-field"),e._UZ(5,"input",3),e.YNc(6,$1e,2,0,"mat-error",4),e.qZA(),e.TgZ(7,"mat-form-field"),e.TgZ(8,"mat-select",5),e.YNc(9,eSe,2,2,"mat-option",6),e.qZA(),e.qZA(),e.YNc(10,tSe,2,0,"mat-form-field",4),e.YNc(11,nSe,2,0,"mat-form-field",4),e.TgZ(12,"mat-form-field"),e._UZ(13,"input",7),e.qZA(),e.TgZ(14,"mat-form-field"),e._UZ(15,"input",8),e.qZA(),e.TgZ(16,"mat-form-field"),e.TgZ(17,"mat-select",9),e.YNc(18,rSe,2,2,"mat-option",6),e.qZA(),e.qZA(),e.YNc(19,oSe,3,1,"mat-form-field",4),e.YNc(20,aSe,2,0,"mat-form-field",4),e.YNc(21,sSe,2,0,"mat-form-field",4),e.qZA(),e.TgZ(22,"div",10),e.TgZ(23,"button",11),e.NdJ("click",function(){return i.onNoClick()}),e._uU(24,"Cancel"),e.qZA(),e.TgZ(25,"button",12),e.NdJ("click",function(){return i.onAddClick()}),e._uU(26,"Add"),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(2),e.Q6J("formGroup",i.serverForm),e.xp6(4),e.Q6J("ngIf",i.serverForm.get("name").hasError("required")),e.xp6(3),e.Q6J("ngForOf",i.locations),e.xp6(1),e.Q6J("ngIf","local"===i.serverForm.get("location").value),e.xp6(1),e.Q6J("ngIf","local"===i.serverForm.get("location").value),e.xp6(7),e.Q6J("ngForOf",i.protocols),e.xp6(1),e.Q6J("ngIf","remote"===i.serverForm.get("location").value),e.xp6(1),e.Q6J("ngIf","basic"===i.serverForm.get("authorization").value),e.xp6(1),e.Q6J("ngIf","basic"===i.serverForm.get("authorization").value))},directives:[ri,ne._Y,ne.JL,ne.sg,J_,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,At.O5,fi.gD,At.sg,ti,An,Hn.TO,un.ey],encapsulation:2}),n}(),IL=function(){function n(r){var t=this;this.electronService=r,this.serverStatusChanged=new Pn.xQ,this.electronService.isElectronApp&&this.electronService.ipcRenderer.on(this.statusChannel,function(i,o){t.serverStatusChanged.next(o)})}return Object.defineProperty(n.prototype,"statusChannel",{get:function(){return"local-server-status-events"},enumerable:!1,configurable:!0}),n.prototype.start=function(r){return(0,Qn.mG)(this,void 0,void 0,function(){return(0,Qn.Jh)(this,function(i){switch(i.label){case 0:return this.serverStatusChanged.next({serverName:r.name,status:"starting",message:""}),[4,this.electronService.remote.require("./local-server.js").startLocalServer(r)];case 1:return[2,i.sent()]}})})},n.prototype.stop=function(r){return(0,Qn.mG)(this,void 0,void 0,function(){return(0,Qn.Jh)(this,function(t){switch(t.label){case 0:return[4,this.electronService.remote.require("./local-server.js").stopLocalServer(r)];case 1:return[2,t.sent()]}})})},n.prototype.stopAll=function(){return(0,Qn.mG)(this,void 0,void 0,function(){return(0,Qn.Jh)(this,function(r){switch(r.label){case 0:return[4,this.electronService.remote.require("./local-server.js").stopAllLocalServers()];case 1:return[2,r.sent()]}})})},n.prototype.getRunningServers=function(){return this.electronService.isElectronApp?this.electronService.remote.require("./local-server.js").getRunningServers():[]},n.prototype.ngOnDestroy=function(){this.electronService.isElectronApp&&this.electronService.ipcRenderer.removeAllListeners(this.statusChannel)},n.\u0275fac=function(t){return new(t||n)(e.LFG(hs))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),RL=f(53628),xz=function(){function n(r){this.httpServer=r}return n.prototype.get=function(r){return this.httpServer.get(r,"/version")},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}();function uSe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-card",2),e.TgZ(1,"mat-card-content",3),e._uU(2," We've discovered GNS3 server on "),e.TgZ(3,"b"),e._uU(4),e.qZA(),e._uU(5,", would you like to add to the list? "),e.qZA(),e.TgZ(6,"mat-card-actions",4),e.TgZ(7,"button",5),e.NdJ("click",function(){e.CHM(t);var a=e.oxw();return a.ignore(a.discoveredServer)}),e._uU(8,"NO"),e.qZA(),e.TgZ(9,"button",6),e.NdJ("click",function(){e.CHM(t);var a=e.oxw();return a.accept(a.discoveredServer)}),e._uU(10,"YES"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(4),e.AsE("",i.discoveredServer.host,":",i.discoveredServer.port,"")}}function cSe(n,r){1&n&&e._UZ(0,"mat-divider")}var dSe=function(){function n(r,t,i,o){this.versionService=r,this.serverService=t,this.serverDatabase=i,this.route=o,this.defaultServers=[{host:"127.0.0.1",port:3080}]}return n.prototype.ngOnInit=function(){var r=this;this.serverService.isServiceInitialized&&this.discoverFirstServer(),this.serverService.serviceInitialized.subscribe(function(t){return(0,Qn.mG)(r,void 0,void 0,function(){return(0,Qn.Jh)(this,function(i){return t&&this.discoverFirstServer(),[2]})})})},n.prototype.discoverFirstServer=function(){return(0,Qn.mG)(this,void 0,void 0,function(){var r;return(0,Qn.Jh)(this,function(i){switch(i.label){case 0:return[4,this.discoverServers()];case 1:return r=i.sent(),[4,this.serverService.findAll()];case 2:return i.sent().forEach(function(o){r=r.filter(function(a){return!(a.host==o.host&&a.port==o.port)})}),r.length>0&&(this.discoveredServer=r.shift()),[2]}})})},n.prototype.discoverServers=function(){return(0,Qn.mG)(this,void 0,void 0,function(){var r,t=this;return(0,Qn.Jh)(this,function(i){return r=[],this.defaultServers.forEach(function(o){return(0,Qn.mG)(t,void 0,void 0,function(){var a;return(0,Qn.Jh)(this,function(u){switch(u.label){case 0:return(a=new l2).host=o.host,a.port=o.port,[4,this.versionService.get(a).toPromise().catch(function(p){return null})];case 1:return u.sent()&&r.push(a),[2]}})})}),[2,r]})})},n.prototype.discoverFirstAvailableServer=function(){var r=this;(0,kZ.D)([(0,cs.D)(this.serverService.findAll()).pipe((0,kr.U)(function(t){return t})),this.discovery()]).subscribe(function(t){var o=t[1];t[0].forEach(function(a){o=o.filter(function(s){return!(s.host==a.host&&s.port==a.port)})}),o.length>0&&(r.discoveredServer=o.shift())},function(t){})},n.prototype.discovery=function(){var r=this,t=[];return this.defaultServers.forEach(function(i){t.push(r.isServerAvailable(i.host,i.port).catch(function(o){return RL.Observable.of(null)}))}),new RL.Observable(function(i){(0,kZ.D)(t).subscribe(function(o){i.next(o.filter(function(a){return null!=a})),i.complete()})})},n.prototype.isServerAvailable=function(r,t){var i=new l2;return i.host=r,i.port=t,this.versionService.get(i).flatMap(function(o){return RL.Observable.of(i)})},n.prototype.ignore=function(r){this.discoveredServer=null},n.prototype.accept=function(r){var t=this;null==r.name&&(r.name=r.host),r.location="remote",r.protocol=location.protocol,this.serverService.create(r).then(function(i){t.serverDatabase.addServer(i),t.discoveredServer=null})},n.\u0275fac=function(t){return new(t||n)(e.Y36(xz),e.Y36(Hr),e.Y36(p2),e.Y36(Ir))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-server-discovery"]],decls:2,vars:2,consts:[["class","info",4,"ngIf"],[4,"ngIf"],[1,"info"],["align","center"],["align","right"],["mat-button","","color","accent",3,"click"],["mat-button","",3,"click"]],template:function(t,i){1&t&&(e.YNc(0,uSe,11,2,"mat-card",0),e.YNc(1,cSe,1,0,"mat-divider",1)),2&t&&(e.Q6J("ngIf",i.discoveredServer),e.xp6(1),e.Q6J("ngIf",i.discoveredServer))},directives:[At.O5,_i,DZ,Mae,An,Cq.d],styles:[""]}),n}();function pSe(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," ID "),e.qZA())}function fSe(n,r){if(1&n&&(e.TgZ(0,"mat-cell"),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.hij(" ",t.id," ")}}function hSe(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Name "),e.qZA())}var mSe=function(n){return["/server",n,"projects"]};function vSe(n,r){if(1&n&&(e.TgZ(0,"a",22),e._uU(1),e.qZA()),2&n){var t=e.oxw().$implicit;e.Q6J("routerLink",e.VKq(2,mSe,t.id)),e.xp6(1),e.Oqu(t.name)}}function gSe(n,r){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){var t=e.oxw().$implicit;e.xp6(1),e.Oqu(t.name)}}function _Se(n,r){if(1&n&&(e.TgZ(0,"mat-cell"),e.YNc(1,vSe,2,4,"a",20),e.YNc(2,gSe,2,1,"span",21),e.qZA()),2&n){var t=r.$implicit,i=e.oxw();e.xp6(1),e.Q6J("ngIf","running"===i.getServerStatus(t)||"remote"===t.location||"bundled"===t.location),e.xp6(1),e.Q6J("ngIf","running"!=i.getServerStatus(t)&&"remote"!==t.location&&"bundled"!==t.location)}}function ySe(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Location "),e.qZA())}function bSe(n,r){if(1&n&&(e.TgZ(0,"mat-cell"),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.hij(" ",t.location," ")}}function CSe(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Host "),e.qZA())}function SSe(n,r){if(1&n&&(e.TgZ(0,"mat-cell"),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.hij(" ",t.host," ")}}function TSe(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Port "),e.qZA())}function xSe(n,r){if(1&n&&(e.TgZ(0,"mat-cell"),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.hij(" ",t.port," ")}}function wSe(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Actions "),e.qZA())}function kSe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",30),e.NdJ("click",function(){e.CHM(t);var o=e.oxw().$implicit;return e.oxw().openProjects(o)}),e.TgZ(1,"mat-icon",31),e._uU(2,"arrow_forward"),e.qZA(),e.qZA()}}function ESe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",32),e.NdJ("click",function(){e.CHM(t);var o=e.oxw().$implicit;return e.oxw().startServer(o)}),e.TgZ(1,"mat-icon",33),e._uU(2,"play_arrow"),e.qZA(),e.qZA()}}function MSe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",34),e.NdJ("click",function(){e.CHM(t);var o=e.oxw().$implicit;return e.oxw().stopServer(o)}),e.TgZ(1,"mat-icon",35),e._uU(2,"stop"),e.qZA(),e.qZA()}}function ASe(n,r){1&n&&e._UZ(0,"mat-spinner",36),2&n&&e.Q6J("diameter",24)}function DSe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-cell",23),e.YNc(1,kSe,3,0,"button",24),e.YNc(2,ESe,3,0,"button",25),e.YNc(3,MSe,3,0,"button",26),e.YNc(4,ASe,1,1,"mat-spinner",27),e.TgZ(5,"button",28),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw().deleteServer(u)}),e.TgZ(6,"mat-icon",29),e._uU(7,"delete"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.oxw();e.xp6(1),e.Q6J("ngIf","running"===o.getServerStatus(i)||"remote"===i.location||"bundled"===i.location),e.xp6(1),e.Q6J("ngIf","local"===i.location&&"stopped"===o.getServerStatus(i)),e.xp6(1),e.Q6J("ngIf","local"===i.location&&"running"===o.getServerStatus(i)),e.xp6(1),e.Q6J("ngIf","local"===i.location&&"starting"===o.getServerStatus(i))}}function OSe(n,r){1&n&&e._UZ(0,"mat-header-row")}function PSe(n,r){1&n&&e._UZ(0,"mat-row")}function ISe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",37),e.NdJ("click",function(){return e.CHM(t),e.oxw().startLocalServer()}),e._uU(1," Start local server "),e.qZA()}}var RSe=function(){function n(r,t,i,o,a,s,u,p,m,b){this.dialog=r,this.serverService=t,this.serverDatabase=i,this.serverManagement=o,this.changeDetector=a,this.electronService=s,this.childProcessService=u,this.bottomSheet=p,this.route=m,this.router=b,this.displayedColumns=["id","name","location","ip","port","actions"],this.isElectronApp=!1}return n.prototype.getServers=function(){var r=this,t=this.serverManagement.getRunningServers();this.serverService.findAll().then(function(i){i.forEach(function(o){t.findIndex(function(s){return o.name===s})>=0&&(o.status="running")}),i.forEach(function(o){r.serverService.checkServerVersion(o).subscribe(function(a){a.version.split(".")[1]>=2&&a.version.split(".")[0]>=2&&(o.protocol||(o.protocol=location.protocol),r.serverDatabase.find(o.name)||r.serverDatabase.addServer(o))},function(a){})})})},n.prototype.ngOnInit=function(){var r=this;this.isElectronApp=this.electronService.isElectronApp,this.serverService.isServiceInitialized&&this.getServers(),this.serverService.serviceInitialized.subscribe(function(t){return(0,Qn.mG)(r,void 0,void 0,function(){return(0,Qn.Jh)(this,function(i){return t&&this.getServers(),[2]})})}),this.dataSource=new NSe(this.serverDatabase),this.serverStatusSubscription=this.serverManagement.serverStatusChanged.subscribe(function(t){var i=r.serverDatabase.find(t.serverName);!i||("starting"===t.status&&(i.status="starting"),"stopped"===t.status&&(i.status="stopped"),"errored"===t.status&&(i.status="stopped"),"started"===t.status&&(i.status="running"),r.serverDatabase.update(i),r.changeDetector.detectChanges())})},n.prototype.ngOnDestroy=function(){this.serverStatusSubscription.unsubscribe()},n.prototype.startLocalServer=function(){var r=this.serverDatabase.data.find(function(t){return"bundled"===t.location||"local"});this.startServer(r)},n.prototype.openProjects=function(r){this.router.navigate(["/server",r.id,"projects"])},n.prototype.createModal=function(){var r=this;this.dialog.open(lSe,{width:"350px",autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(i){i&&r.serverService.create(i).then(function(o){r.serverDatabase.addServer(o)})})},n.prototype.getServerStatus=function(r){if("local"===r.location)return void 0===r.status?"stopped":r.status},n.prototype.deleteServer=function(r){var t=this;this.bottomSheet.open(Xf);var i=this.bottomSheet._openedBottomSheetRef;i.instance.message="Do you want to delete the server?",i.afterDismissed().subscribe(function(a){a&&t.serverService.delete(r).then(function(){t.serverDatabase.remove(r)})})},n.prototype.startServer=function(r){return(0,Qn.mG)(this,void 0,void 0,function(){return(0,Qn.Jh)(this,function(t){switch(t.label){case 0:return[4,this.serverManagement.start(r)];case 1:return t.sent(),[2]}})})},n.prototype.stopServer=function(r){return(0,Qn.mG)(this,void 0,void 0,function(){return(0,Qn.Jh)(this,function(t){switch(t.label){case 0:return[4,this.serverManagement.stop(r)];case 1:return t.sent(),[2]}})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(no),e.Y36(Hr),e.Y36(p2),e.Y36(IL),e.Y36(e.sBO),e.Y36(hs),e.Y36(rZ),e.Y36(LS),e.Y36(Ir),e.Y36(Er))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-server-list"]],decls:33,vars:4,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"mat-elevation-z8"],[3,"dataSource"],["table",""],["matColumnDef","id"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","name"],["matColumnDef","location"],["matColumnDef","ip"],["matColumnDef","port"],["matColumnDef","actions"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[1,"buttons-bar"],["mat-raised-button","","class","button",3,"click",4,"ngIf"],["mat-raised-button","","color","primary",1,"button",3,"click"],["class","table-link",3,"routerLink",4,"ngIf"],[4,"ngIf"],[1,"table-link",3,"routerLink"],[2,"text-align","right"],["mat-icon-button","","matTooltip","Go to projects","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Start server","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Stop server","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],[3,"diameter",4,"ngIf"],["mat-icon-button","","matTooltip","Remove server","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Remove server"],["mat-icon-button","","matTooltip","Go to projects","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Go to projects"],["mat-icon-button","","matTooltip","Start server","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Start server"],["mat-icon-button","","matTooltip","Stop server","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Stop server"],[3,"diameter"],["mat-raised-button","",1,"button",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"h1"),e._uU(3,"Servers"),e.qZA(),e.qZA(),e.TgZ(4,"div",2),e._UZ(5,"app-server-discovery"),e.TgZ(6,"div",3),e.TgZ(7,"mat-table",4,5),e.ynx(9,6),e.YNc(10,pSe,2,0,"mat-header-cell",7),e.YNc(11,fSe,2,1,"mat-cell",8),e.BQk(),e.ynx(12,9),e.YNc(13,hSe,2,0,"mat-header-cell",7),e.YNc(14,_Se,3,2,"mat-cell",8),e.BQk(),e.ynx(15,10),e.YNc(16,ySe,2,0,"mat-header-cell",7),e.YNc(17,bSe,2,1,"mat-cell",8),e.BQk(),e.ynx(18,11),e.YNc(19,CSe,2,0,"mat-header-cell",7),e.YNc(20,SSe,2,1,"mat-cell",8),e.BQk(),e.ynx(21,12),e.YNc(22,TSe,2,0,"mat-header-cell",7),e.YNc(23,xSe,2,1,"mat-cell",8),e.BQk(),e.ynx(24,13),e.YNc(25,wSe,2,0,"mat-header-cell",7),e.YNc(26,DSe,8,4,"mat-cell",14),e.BQk(),e.YNc(27,OSe,1,0,"mat-header-row",15),e.YNc(28,PSe,1,0,"mat-row",16),e.qZA(),e.qZA(),e.TgZ(29,"div",17),e.YNc(30,ISe,2,0,"button",18),e.TgZ(31,"button",19),e.NdJ("click",function(){return i.createModal()}),e._uU(32,"Add server"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("dataSource",i.dataSource),e.xp6(20),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns),e.xp6(2),e.Q6J("ngIf",i.isElectronApp))},directives:[dSe,$l,fl,pl,dl,eu,tu,At.O5,An,hl,ml,W_,Xa,ur,YV,nu,ru],styles:[".buttons-bar[_ngcontent-%COMP%]{padding-top:0}.button[_ngcontent-%COMP%]{margin:20px!important}"]}),n}(),NSe=function(n){function r(t){var i=n.call(this)||this;return i.serverDatabase=t,i}return(0,Qn.ZT)(r,n),r.prototype.connect=function(){var t=this;return(0,go.T)(this.serverDatabase.dataChange).pipe((0,kr.U)(function(){return t.serverDatabase.data}))},r.prototype.disconnect=function(){},r}(Wi.o2),wz=function(){function n(r){this.electronService=r}return n.prototype.get=function(){if(this.electronService.isElectronApp){if(this.electronService.isLinux)return'xfce4-terminal --tab -T "%d" -e "telnet %h %p"';if(this.electronService.isWindows)return'putty.exe -telnet %h %p -loghost "%d"'}},n.\u0275fac=function(t){return new(t||n)(e.LFG(hs))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),NL=function(){function n(r,t){this.defaultConsoleService=r,this.settingsService=t}return Object.defineProperty(n.prototype,"command",{get:function(){var r=this.settingsService.getConsoleSettings();return void 0===r?this.defaultConsoleService.get():r},set:function(r){this.settingsService.setConsoleSettings(r)},enumerable:!1,configurable:!0}),n.\u0275fac=function(t){return new(t||n)(e.LFG(wz),e.LFG(yp.g))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),ZSe=function(){function n(r,t,i){this.router=r,this.consoleService=t,this.toasterService=i,this.consoleForm=new ne.cw({command:new ne.NI("")})}return n.prototype.ngOnInit=function(){this.consoleForm.get("command").setValue(this.consoleService.command)},n.prototype.goBack=function(){this.router.navigate(["/settings"])},n.prototype.save=function(){this.consoleService.command=this.consoleForm.value.command,this.toasterService.success("Console command has been updated."),this.goBack()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Er),e.Y36(NL),e.Y36(er))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-console"]],decls:30,vars:1,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[3,"formGroup"],[1,"form-field","full-width-field"],["matInput","","formControlName","command","placeholder","Command"],[1,"help"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Console settings"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"mat-card"),e.TgZ(7,"form",5),e.TgZ(8,"mat-form-field",6),e._UZ(9,"textarea",7),e.qZA(),e.TgZ(10,"div",8),e._uU(11," The following variables are replaced by GNS3:"),e._UZ(12,"br"),e._uU(13," %h: console IP or hostname"),e._UZ(14,"br"),e._uU(15," %p: console port"),e._UZ(16,"br"),e._uU(17," %s: path of the serial connection"),e._UZ(18,"br"),e._uU(19," %d: title of the console"),e._UZ(20,"br"),e._uU(21," %i: Project UUID"),e._UZ(22,"br"),e._uU(23," %c: server URL (http://user:password@server:port) "),e.qZA(),e.qZA(),e.qZA(),e.TgZ(24,"div",9),e.TgZ(25,"button",10),e.NdJ("click",function(){return i.goBack()}),e._uU(26,"Cancel"),e.qZA(),e.TgZ(27,"button",11),e.NdJ("click",function(){return i.save()}),e._uU(28,"Save"),e.qZA(),e._UZ(29,"br"),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("formGroup",i.consoleForm))},directives:[_i,ne._Y,ne.JL,ne.sg,Hn.KE,dr,ne.Fj,ne.JJ,ne.u,An],styles:[".help[_ngcontent-%COMP%]{font-size:14px}"]}),n}(),kz=function(){function n(r){this.httpClient=r}return n.prototype.getLatestVersion=function(){return this.httpClient.get("http://update.gns3.net/")},n.\u0275fac=function(t){return new(t||n)(e.LFG(zc.eN))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),LSe=function(){function n(r,t,i,o,a,s){this.settingsService=r,this.toaster=t,this.consoleService=i,this.themeService=o,this.mapSettingsService=a,this.updatesService=s}return n.prototype.ngOnInit=function(){this.settings=this.settingsService.getAll(),this.consoleCommand=this.consoleService.command,this.integrateLinksLabelsToLinks=this.mapSettingsService.integrateLinkLabelsToLinks,this.openConsolesInWidget=this.mapSettingsService.openConsolesInWidget},n.prototype.save=function(){this.settingsService.setAll(this.settings),this.toaster.success("Settings have been saved."),this.mapSettingsService.toggleIntegrateInterfaceLabels(this.integrateLinksLabelsToLinks),this.mapSettingsService.toggleOpenConsolesInWidget(this.openConsolesInWidget)},n.prototype.setDarkMode=function(r){this.themeService.setDarkMode(r)},n.prototype.checkForUpdates=function(){window.open("https://gns3.com/software")},n.\u0275fac=function(t){return new(t||n)(e.Y36(yp.g),e.Y36(er),e.Y36(NL),e.Y36(rc.f),e.Y36(Ou),e.Y36(kz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-settings"]],decls:60,vars:9,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"expanded"],[3,"ngModel","ngModelChange"],[1,"full-width-field"],["matInput","","placeholder","console","readonly","true",3,"value"],["mat-icon-button","","matSuffix","","routerLink","/settings/console"],[1,"theme-panel"],["mat-raised-button","",3,"click"],["mat-raised-button","",1,"fullWidth",3,"click"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"h1"),e._uU(3,"Settings"),e.qZA(),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"div",3),e.TgZ(6,"mat-accordion"),e.TgZ(7,"mat-expansion-panel",4),e.TgZ(8,"mat-expansion-panel-header"),e.TgZ(9,"mat-panel-title"),e._uU(10," Local settings "),e.qZA(),e.TgZ(11,"mat-panel-description"),e._uU(12," Customize your local settings "),e.qZA(),e.qZA(),e.TgZ(13,"div"),e.TgZ(14,"mat-checkbox",5),e.NdJ("ngModelChange",function(a){return i.settings.crash_reports=a}),e._uU(15,"Send anonymous crash reports"),e.qZA(),e._UZ(16,"br"),e.TgZ(17,"mat-checkbox",5),e.NdJ("ngModelChange",function(a){return i.settings.anonymous_statistics=a}),e._uU(18,"Send anonymous usage statistics"),e.qZA(),e._UZ(19,"br"),e.TgZ(20,"mat-checkbox",5),e.NdJ("ngModelChange",function(a){return i.integrateLinksLabelsToLinks=a}),e._uU(21,"Integrate link labels to links"),e.qZA(),e._UZ(22,"br"),e.TgZ(23,"mat-checkbox",5),e.NdJ("ngModelChange",function(a){return i.openConsolesInWidget=a}),e._uU(24,"Open consoles in the widget instead of in new tabs after clicking start consoles for all nodes"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(25,"mat-expansion-panel",4),e.TgZ(26,"mat-expansion-panel-header"),e.TgZ(27,"mat-panel-title"),e._uU(28," Console settings "),e.qZA(),e.TgZ(29,"mat-panel-description"),e._uU(30," Customize console settings "),e.qZA(),e.qZA(),e.TgZ(31,"div"),e.TgZ(32,"mat-form-field",6),e._UZ(33,"input",7),e.TgZ(34,"a",8),e.TgZ(35,"mat-icon"),e._uU(36,"mode_edit"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(37,"mat-expansion-panel",4),e.TgZ(38,"mat-expansion-panel-header"),e.TgZ(39,"mat-panel-title"),e._uU(40," Theme settings "),e.qZA(),e.TgZ(41,"mat-panel-description"),e._uU(42," Customize theme settings "),e.qZA(),e.qZA(),e.TgZ(43,"div",9),e.TgZ(44,"button",10),e.NdJ("click",function(){return i.setDarkMode(!1)}),e._uU(45,"Switch to light theme"),e.qZA(),e.TgZ(46,"button",10),e.NdJ("click",function(){return i.setDarkMode(!0)}),e._uU(47,"Switch to dark theme"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(48,"mat-expansion-panel",4),e.TgZ(49,"mat-expansion-panel-header"),e.TgZ(50,"mat-panel-title"),e._uU(51," Updates "),e.qZA(),e.TgZ(52,"mat-panel-description"),e._uU(53," Check for updates "),e.qZA(),e.qZA(),e.TgZ(54,"div",9),e.TgZ(55,"button",11),e.NdJ("click",function(){return i.checkForUpdates()}),e._uU(56,"Check for updates"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(57,"div",12),e.TgZ(58,"button",13),e.NdJ("click",function(){return i.save()}),e._uU(59,"Save settings"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("expanded",!0),e.xp6(7),e.Q6J("ngModel",i.settings.crash_reports),e.xp6(3),e.Q6J("ngModel",i.settings.anonymous_statistics),e.xp6(3),e.Q6J("ngModel",i.integrateLinksLabelsToLinks),e.xp6(3),e.Q6J("ngModel",i.openConsolesInWidget),e.xp6(2),e.Q6J("expanded",!1),e.xp6(8),e.Q6J("value",i.consoleCommand),e.xp6(4),e.Q6J("expanded",!1),e.xp6(11),e.Q6J("expanded",!1))},directives:[ld,tc,nc,sd,use,Lo,ne.JJ,ne.On,Hn.KE,dr,Qoe,W_,Hn.R9,ur,An],styles:[".theme-panel[_ngcontent-%COMP%]{justify-content:space-between;display:flex;padding:10px}.fullWidth[_ngcontent-%COMP%]{width:100%}"]}),n}(),FSe=function(){function n(){}return n.prototype.transform=function(r,t){return r?t?(t=t.toLowerCase(),r.filter(function(i){return i.name.toLowerCase().includes(t)})):r:[]},n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=e.Yjl({name:"namefilter",type:n,pure:!0}),n}(),BSe=function(){function n(){}return n.prototype.transform=function(r){var t=new Date(1e3*+r),i=t.getHours(),o="0"+t.getMinutes(),a="0"+t.getSeconds(),s=t.getFullYear(),u=t.getMonth()+1,p=t.getDate();return i+":"+o.substr(-2)+":"+a.substr(-2)+" "+p+"/"+u+"/"+s},n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=e.Yjl({name:"datefilter",type:n,pure:!0}),n}();function USe(n,r){1&n&&(e.TgZ(0,"mat-header-cell",18),e._uU(1," Name "),e.qZA())}function HSe(n,r){if(1&n&&(e.TgZ(0,"mat-cell"),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.hij(" ",t.name," ")}}function VSe(n,r){1&n&&(e.TgZ(0,"mat-header-cell",18),e._uU(1," Date "),e.qZA())}function qSe(n,r){if(1&n&&(e.TgZ(0,"mat-cell"),e._uU(1),e.ALo(2,"datefilter"),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,t.created_at)," ")}}function jSe(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Actions "),e.qZA())}function zSe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-cell",19),e.TgZ(1,"button",20),e.NdJ("click",function(){var a=e.CHM(t).$implicit;return e.oxw().restoreSnapshot(a)}),e.TgZ(2,"mat-icon",21),e._uU(3,"restore"),e.qZA(),e.qZA(),e.TgZ(4,"button",22),e.NdJ("click",function(){var a=e.CHM(t).$implicit;return e.oxw().deleteSnapshot(a)}),e.TgZ(5,"mat-icon",23),e._uU(6,"delete"),e.qZA(),e.qZA(),e.qZA()}}function WSe(n,r){1&n&&e._UZ(0,"mat-header-row")}function GSe(n,r){1&n&&e._UZ(0,"mat-row")}var YSe=function(){function n(r,t,i,o){this.route=r,this.snapshotService=t,this.progressDialogService=i,this.toaster=o,this.displayedColumns=["name","creationDate","actions"]}return n.prototype.ngOnInit=function(){this.projectId=this.route.snapshot.paramMap.get("project_id"),this.server=this.route.snapshot.data.server,this.getSnapshots()},n.prototype.getSnapshots=function(){var r=this;this.snapshotService.list(this.server,this.projectId).subscribe(function(t){r.snapshots=t})},n.prototype.restoreSnapshot=function(r){var t=this,i=this.snapshotService.restore(this.server,this.projectId,r.snapshot_id.toString()),o=this.progressDialogService.open(),a=i.subscribe(function(s){t.toaster.success("Snapshot "+r.name+" has been restored."),o.close()});o.afterClosed().subscribe(function(s){s===OL.CANCELLED&&a.unsubscribe()})},n.prototype.deleteSnapshot=function(r){var t=this;this.snapshotService.delete(this.server,this.projectId,r.snapshot_id.toString()).subscribe(function(){t.getSnapshots(),t.toaster.success("Snapshot "+r.name+" has been deleted.")})},n.prototype.sortData=function(r){if(r.active&&""!==r.direction){var t=this.snapshots.slice();this.snapshots=t.sort(function(i,o){var a="asc"===r.direction;return"name"===r.active?function(n,r,t){return((n=n.toLowerCase())<(r=r.toLowerCase())?-1:1)*(t?1:-1)}(i.name,o.name,a):"creationDate"===r.active?function(n,r,t){return(n<r?-1:1)*(t?1:-1)}(+i.created_at,+o.created_at,!a):0})}},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(W2),e.Y36(PL),e.Y36(er))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-list-of-snapshots"]],decls:23,vars:7,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"filter-field"],["matInput","","placeholder","Filter",3,"ngModel","ngModelChange"],["matSort","",1,"mat-table",3,"dataSource","matSortChange"],["table",""],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","creationDate"],["matColumnDef","actions"],[4,"matHeaderCellDef"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["mat-sort-header",""],[2,"text-align","right"],["mat-icon-button","","matTooltip","Restore snapshot","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Restore snapshot"],["mat-icon-button","","matTooltip","Delete snapshot","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete snapshot"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Snapshots"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"mat-card"),e.TgZ(7,"mat-form-field",5),e.TgZ(8,"input",6),e.NdJ("ngModelChange",function(a){return i.searchText=a}),e.qZA(),e.qZA(),e.TgZ(9,"mat-table",7,8),e.NdJ("matSortChange",function(a){return i.sortData(a)}),e.ALo(11,"namefilter"),e.ynx(12,9),e.YNc(13,USe,2,0,"mat-header-cell",10),e.YNc(14,HSe,2,1,"mat-cell",11),e.BQk(),e.ynx(15,12),e.YNc(16,VSe,2,0,"mat-header-cell",10),e.YNc(17,qSe,3,3,"mat-cell",11),e.BQk(),e.ynx(18,13),e.YNc(19,jSe,2,0,"mat-header-cell",14),e.YNc(20,zSe,7,0,"mat-cell",15),e.BQk(),e.YNc(21,WSe,1,0,"mat-header-row",16),e.YNc(22,GSe,1,0,"mat-row",17),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(8),e.Q6J("ngModel",i.searchText),e.xp6(1),e.Q6J("dataSource",e.xi3(11,4,i.snapshots,i.searchText)),e.xp6(12),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns))},directives:[_i,Hn.KE,dr,ne.Fj,ne.JJ,ne.On,$l,BS,fl,pl,dl,eu,tu,hl,Yj,ml,An,Xa,ur,nu,ru],pipes:[FSe,BSe],styles:[".filter-field[_ngcontent-%COMP%]{width:100%}.mat-table[_ngcontent-%COMP%]{margin:-16px!important}"]}),n}(),KSe=["*"],Ez=new e.OlP("MatChipRemove"),Mz=new e.OlP("MatChipAvatar"),Az=new e.OlP("MatChipTrailingIcon"),$Se=(0,un.sb)((0,un.pj)((0,un.Kr)(function n(r){(0,g.Z)(this,n),this._elementRef=r}),"primary"),-1),J2=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u,p,m,b,R){var F;return(0,g.Z)(this,i),(F=t.call(this,o))._ngZone=a,F._changeDetectorRef=p,F._hasFocus=!1,F.chipListSelectable=!0,F._chipListMultiple=!1,F._chipListDisabled=!1,F._selected=!1,F._selectable=!0,F._disabled=!1,F._removable=!0,F._onFocus=new Pn.xQ,F._onBlur=new Pn.xQ,F.selectionChange=new e.vpe,F.destroyed=new e.vpe,F.removed=new e.vpe,F._addHostClassName(),F._chipRippleTarget=m.createElement("div"),F._chipRippleTarget.classList.add("mat-chip-ripple"),F._elementRef.nativeElement.appendChild(F._chipRippleTarget),F._chipRipple=new un.IR((0,uS.Z)(F),a,F._chipRippleTarget,s),F._chipRipple.setupTriggerEvents(o),F.rippleConfig=u||{},F._animationsDisabled="NoopAnimations"===b,F.tabIndex=null!=R&&parseInt(R)||-1,F}return(0,k.Z)(i,[{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(a){var s=(0,On.Ig)(a);s!==this._selected&&(this._selected=s,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(a){this._value=a}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(a){this._selectable=(0,On.Ig)(a)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(a){this._disabled=(0,On.Ig)(a)}},{key:"removable",get:function(){return this._removable},set:function(a){this._removable=(0,On.Ig)(a)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}},{key:"_addHostClassName",value:function(){var a="mat-basic-chip",s=this._elementRef.nativeElement;s.hasAttribute(a)||s.tagName.toLowerCase()===a?s.classList.add(a):s.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}},{key:"toggleSelected",value:function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(a),this._changeDetectorRef.markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(a){this.disabled?a.preventDefault():a.stopPropagation()}},{key:"_handleKeydown",value:function(a){if(!this.disabled)switch(a.keyCode){case Yr.yY:case Yr.ZH:this.remove(),a.preventDefault();break;case Yr.L_:this.selectable&&this.toggleSelected(!0),a.preventDefault()}}},{key:"_blur",value:function(){var a=this;this._ngZone.onStable.pipe((0,eo.q)(1)).subscribe(function(){a._ngZone.run(function(){a._hasFocus=!1,a._onBlur.next({chip:a})})})}},{key:"_dispatchSelectionChange",value:function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:a,selected:this._selected})}}]),i}($Se);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(ei.t4),e.Y36(un.Y2,8),e.Y36(e.sBO),e.Y36(At.K0),e.Y36(Cs.Qb,8),e.$8M("tabindex"))},n.\u0275dir=e.lG2({type:n,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,i,o){var a;1&t&&(e.Suo(o,Mz,5),e.Suo(o,Az,5),e.Suo(o,Ez,5)),2&t&&(e.iGM(a=e.CRH())&&(i.avatar=a.first),e.iGM(a=e.CRH())&&(i.trailingIcon=a.first),e.iGM(a=e.CRH())&&(i.removeIcon=a.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,i){1&t&&e.NdJ("click",function(a){return i._handleClick(a)})("keydown",function(a){return i._handleKeydown(a)})("focus",function(){return i.focus()})("blur",function(){return i._blur()}),2&t&&(e.uIk("tabindex",i.disabled?null:i.tabIndex)("disabled",i.disabled||null)("aria-disabled",i.disabled.toString())("aria-selected",i.ariaSelected),e.ekj("mat-chip-selected",i.selected)("mat-chip-with-avatar",i.avatar)("mat-chip-with-trailing-icon",i.trailingIcon||i.removeIcon)("mat-chip-disabled",i.disabled)("_mat-animation-noopable",i._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[e.qOj]}),n}(),Dz=new e.OlP("mat-chips-default-options"),rTe=(0,un.FD)(function(){return function n(r,t,i,o){(0,g.Z)(this,n),this._defaultErrorStateMatcher=r,this._parentForm=t,this._parentFormGroup=i,this.ngControl=o}}()),iTe=0,oTe=function n(r,t){(0,g.Z)(this,n),this.source=r,this.value=t},Oz=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s,u,p,m,b){var R;return(0,g.Z)(this,i),(R=t.call(this,m,u,p,b))._elementRef=o,R._changeDetectorRef=a,R._dir=s,R.controlType="mat-chip-list",R._lastDestroyedChipIndex=null,R._destroyed=new Pn.xQ,R._uid="mat-chip-list-".concat(iTe++),R._tabIndex=0,R._userTabIndex=null,R._onTouched=function(){},R._onChange=function(){},R._multiple=!1,R._compareWith=function(F,G){return F===G},R._required=!1,R._disabled=!1,R.ariaOrientation="horizontal",R._selectable=!0,R.change=new e.vpe,R.valueChange=new e.vpe,R.ngControl&&(R.ngControl.valueAccessor=(0,uS.Z)(R)),R}return(0,k.Z)(i,[{key:"selected",get:function(){var a,s;return this.multiple?(null===(a=this._selectionModel)||void 0===a?void 0:a.selected)||[]:null===(s=this._selectionModel)||void 0===s?void 0:s.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(a){this._multiple=(0,On.Ig)(a),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(a){this._compareWith=a,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(a){this.writeValue(a),this._value=a}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(a){this._required=(0,On.Ig)(a),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(a){this._placeholder=a,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(a){this._disabled=(0,On.Ig)(a),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(a){var s=this;this._selectable=(0,On.Ig)(a),this.chips&&this.chips.forEach(function(u){return u.chipListSelectable=s._selectable})}},{key:"tabIndex",set:function(a){this._userTabIndex=a,this._tabIndex=a}},{key:"chipSelectionChanges",get:function(){return go.T.apply(void 0,(0,y.Z)(this.chips.map(function(a){return a.selectionChange})))}},{key:"chipFocusChanges",get:function(){return go.T.apply(void 0,(0,y.Z)(this.chips.map(function(a){return a._onFocus})))}},{key:"chipBlurChanges",get:function(){return go.T.apply(void 0,(0,y.Z)(this.chips.map(function(a){return a._onBlur})))}},{key:"chipRemoveChanges",get:function(){return go.T.apply(void 0,(0,y.Z)(this.chips.map(function(a){return a.destroyed})))}},{key:"ngAfterContentInit",value:function(){var a=this;this._keyManager=new xi.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,Br.R)(this._destroyed)).subscribe(function(s){return a._keyManager.withHorizontalOrientation(s)}),this._keyManager.tabOut.pipe((0,Br.R)(this._destroyed)).subscribe(function(){a._allowFocusEscape()}),this.chips.changes.pipe((0,ua.O)(null),(0,Br.R)(this._destroyed)).subscribe(function(){a.disabled&&Promise.resolve().then(function(){a._syncChipsState()}),a._resetChips(),a._initializeSelection(),a._updateTabIndex(),a._updateFocusForDestroyedChips(),a.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new Wi.Ov(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(a){this._chipInput=a,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",a.id)}},{key:"setDescribedByIds",value:function(a){this._ariaDescribedby=a.join(" ")}},{key:"writeValue",value:function(a){this.chips&&this._setSelectionByValue(a,!1)}},{key:"registerOnChange",value:function(a){this._onChange=a}},{key:"registerOnTouched",value:function(a){this._onTouched=a}},{key:"setDisabledState",value:function(a){this.disabled=a,this.stateChanges.next()}},{key:"onContainerClick",value:function(a){this._originatesFromChip(a)||this.focus()}},{key:"focus",value:function(a){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(a),this.stateChanges.next()))}},{key:"_focusInput",value:function(a){this._chipInput&&this._chipInput.focus(a)}},{key:"_keydown",value:function(a){var s=a.target;s&&s.classList.contains("mat-chip")&&(this._keyManager.onKeydown(a),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var a=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(a)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(a){return a>=0&&a<this.chips.length}},{key:"_setSelectionByValue",value:function(a){var s=this,u=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(m){return m.deselect()}),Array.isArray(a))a.forEach(function(m){return s._selectValue(m,u)}),this._sortValues();else{var p=this._selectValue(a,u);p&&u&&this._keyManager.setActiveItem(p)}}},{key:"_selectValue",value:function(a){var s=this,u=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],p=this.chips.find(function(m){return null!=m.value&&s._compareWith(m.value,a)});return p&&(u?p.selectViaInteraction():p.select(),this._selectionModel.select(p)),p}},{key:"_initializeSelection",value:function(){var a=this;Promise.resolve().then(function(){(a.ngControl||a._value)&&(a._setSelectionByValue(a.ngControl?a.ngControl.value:a._value,!1),a.stateChanges.next())})}},{key:"_clearSelection",value:function(a){this._selectionModel.clear(),this.chips.forEach(function(s){s!==a&&s.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var a=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(s){s.selected&&a._selectionModel.select(s)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(a){var s;s=Array.isArray(this.selected)?this.selected.map(function(u){return u.value}):this.selected?this.selected.value:a,this._value=s,this.change.emit(new oTe(this,s)),this.valueChange.emit(s),this._onChange(s),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var a=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){a.focused||a._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var a=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){a._tabIndex=a._userTabIndex||0,a._changeDetectorRef.markForCheck()}))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}},{key:"_listenToChipsSelection",value:function(){var a=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(s){s.source.selected?a._selectionModel.select(s.source):a._selectionModel.deselect(s.source),a.multiple||a.chips.forEach(function(u){!a._selectionModel.isSelected(u)&&u.selected&&u.deselect()}),s.isUserInput&&a._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var a=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(s){var u=a.chips.toArray().indexOf(s.chip);a._isValidIndex(u)&&a._keyManager.updateActiveItem(u),a.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){a._blur(),a.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var a=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(s){var u=s.chip,p=a.chips.toArray().indexOf(s.chip);a._isValidIndex(p)&&u._hasFocus&&(a._lastDestroyedChipIndex=p)})}},{key:"_originatesFromChip",value:function(a){for(var s=a.target;s&&s!==this._elementRef.nativeElement;){if(s.classList.contains("mat-chip"))return!0;s=s.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(a){return a._hasFocus})}},{key:"_syncChipsState",value:function(){var a=this;this.chips&&this.chips.forEach(function(s){s._chipListDisabled=a._disabled,s._chipListMultiple=a.multiple})}}]),i}(rTe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Ba.Is,8),e.Y36(ne.F,8),e.Y36(ne.sg,8),e.Y36(un.rD),e.Y36(ne.a5,10))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-chip-list"]],contentQueries:function(t,i,o){var a;1&t&&e.Suo(o,J2,5),2&t&&e.iGM(a=e.CRH())&&(i.chips=a)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,i){1&t&&e.NdJ("focus",function(){return i.focus()})("blur",function(){return i._blur()})("keydown",function(a){return i._keydown(a)}),2&t&&(e.Ikx("id",i._uid),e.uIk("tabindex",i.disabled?null:i._tabIndex)("aria-describedby",i._ariaDescribedby||null)("aria-required",i.role?i.required:null)("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-multiselectable",i.multiple)("role",i.role)("aria-orientation",i.ariaOrientation),e.ekj("mat-chip-list-disabled",i.disabled)("mat-chip-list-invalid",i.errorState)("mat-chip-list-required",i.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[e._Bn([{provide:Hn.Eo,useExisting:n}]),e.qOj],ngContentSelectors:KSe,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,i){1&t&&(e.F$t(),e.TgZ(0,"div",0),e.Hsn(1),e.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),n}(),lTe={separatorKeyCodes:[Yr.K5]},uTe=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[un.rD,{provide:Dz,useValue:lTe}],imports:[[un.BQ]]}),n}(),cTe=function(){return["Load average","(last 1 minute)"]},dTe=function(){return["Load average","(last 5 minutes)"]},pTe=function(){return["Load average","(last 15 minutes)"]},fTe=function(){function n(){}return n.prototype.ngOnInit=function(){},n.prototype.formatBytes=function(r,t){if(void 0===t&&(t=2),0===r)return"0 Bytes";var o=t<0?0:t,s=Math.floor(Math.log(r)/Math.log(1024));return parseFloat((r/Math.pow(1024,s)).toFixed(o))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][s]},n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-status-chart"]],inputs:{computeStatistics:"computeStatistics"},decls:30,vars:114,consts:[[1,"wrapper"],[3,"percent","radius","outerStrokeWidth","innerStrokeWidth","outerStrokeColor","innerStrokeColor","animation","animationDuration","unitsColor","unitsFontSize","titleColor","titleFontSize","subtitle","subtitleColor","subtitleFontSize"],[1,"chips-wrapper"],["color","primary","selected",""]],template:function(t,i){1&t&&(e.TgZ(0,"mat-card"),e.TgZ(1,"div",0),e._UZ(2,"circle-progress",1),e._UZ(3,"circle-progress",1),e._UZ(4,"circle-progress",1),e._UZ(5,"circle-progress",1),e.qZA(),e.TgZ(6,"div",0),e._UZ(7,"circle-progress",1),e._UZ(8,"circle-progress",1),e._UZ(9,"circle-progress",1),e.qZA(),e.TgZ(10,"div",2),e.TgZ(11,"mat-chip-list"),e.TgZ(12,"mat-chip",3),e._uU(13),e.qZA(),e.qZA(),e.TgZ(14,"mat-chip-list"),e.TgZ(15,"mat-chip",3),e._uU(16),e.qZA(),e.qZA(),e.TgZ(17,"mat-chip-list"),e.TgZ(18,"mat-chip",3),e._uU(19),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",2),e.TgZ(21,"mat-chip-list"),e.TgZ(22,"mat-chip",3),e._uU(23),e.qZA(),e.qZA(),e.TgZ(24,"mat-chip-list"),e.TgZ(25,"mat-chip",3),e._uU(26),e.qZA(),e.qZA(),e.TgZ(27,"mat-chip-list"),e.TgZ(28,"mat-chip",3),e._uU(29),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(2),e.Q6J("percent",i.computeStatistics.statistics.cpu_usage_percent)("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle","CPU usage")("subtitleColor","#C0C0C0")("subtitleFontSize",15),e.xp6(1),e.Q6J("percent",i.computeStatistics.statistics.disk_usage_percent)("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle","Disk usage")("subtitleColor","#C0C0C0")("subtitleFontSize",15),e.xp6(1),e.Q6J("percent",i.computeStatistics.statistics.memory_usage_percent)("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle","Memory usage")("subtitleColor","#C0C0C0")("subtitleFontSize",15),e.xp6(1),e.Q6J("percent",i.computeStatistics.statistics.swap_usage_percent)("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle","SWAP usage")("subtitleColor","#C0C0C0")("subtitleFontSize",15),e.xp6(2),e.Q6J("percent",i.computeStatistics.statistics.load_average_percent[0])("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle",e.DdM(111,cTe))("subtitleColor","#C0C0C0")("subtitleFontSize",15),e.xp6(1),e.Q6J("percent",i.computeStatistics.statistics.load_average_percent[1])("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle",e.DdM(112,dTe))("subtitleColor","#C0C0C0")("subtitleFontSize",15),e.xp6(1),e.Q6J("percent",i.computeStatistics.statistics.load_average_percent[2])("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle",e.DdM(113,pTe))("subtitleColor","#C0C0C0")("subtitleFontSize",15),e.xp6(4),e.hij("Memory total: ",i.formatBytes(i.computeStatistics.statistics.memory_total),""),e.xp6(3),e.hij("Memory used: ",i.formatBytes(i.computeStatistics.statistics.memory_used),""),e.xp6(3),e.hij("Memory free: ",i.formatBytes(i.computeStatistics.statistics.memory_free),""),e.xp6(4),e.hij("Swap total: ",i.formatBytes(i.computeStatistics.statistics.swap_total),""),e.xp6(3),e.hij("Swap used: ",i.formatBytes(i.computeStatistics.statistics.swap_used),""),e.xp6(3),e.hij("Swap free: ",i.formatBytes(i.computeStatistics.statistics.swap_free),""))},directives:[_i,are,Oz,J2],styles:[".wrapper[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between;max-height:250px!important}.chips-wrapper[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between;margin-bottom:10px}"]}),n}();function hTe(n,r){1&n&&(e.TgZ(0,"div"),e._uU(1,"Statistics not loaded"),e.qZA())}function mTe(n,r){if(1&n&&(e.TgZ(0,"div"),e._uU(1),e._UZ(2,"app-status-chart",2),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.hij(" ",t.compute_name," "),e.xp6(1),e.Q6J("computeStatistics",t)}}var vTe=function(){function n(r,t,i,o){this.route=r,this.computeService=t,this.serverService=i,this.toasterService=o,this.serverId="",this.computeStatistics=[]}return n.prototype.ngOnInit=function(){this.serverId=this.route.snapshot.paramMap.get("server_id"),this.getStatistics()},n.prototype.getStatistics=function(){var r=this;this.serverService.get(Number(this.serverId)).then(function(t){r.computeService.getStatistics(t).subscribe(function(i){r.computeStatistics=i,setTimeout(function(){r.getStatistics()},2e4)})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir),e.Y36(oc.X),e.Y36(Hr),e.Y36(er))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-status-info"]],decls:2,vars:2,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"computeStatistics"]],template:function(t,i){1&t&&(e.YNc(0,hTe,2,0,"div",0),e.YNc(1,mTe,3,2,"div",1)),2&t&&(e.Q6J("ngIf",!i.computeStatistics.length),e.xp6(1),e.Q6J("ngForOf",i.computeStatistics))},directives:[At.O5,At.sg,fTe],styles:[""]}),n}(),gTe=function(){function n(r){this.route=r,this.serverId=""}return n.prototype.ngOnInit=function(){this.serverId=this.route.snapshot.paramMap.get("server_id")},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ir))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-system-status"]],decls:7,vars:0,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"System status"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e._UZ(6,"app-status-info"),e.qZA(),e.qZA())},directives:[vTe],styles:[""]}),n}(),_Te=["terminal"],Pz=function(){function n(r,t,i,o,a){this.consoleService=r,this.serverService=t,this.route=i,this.title=o,this.nodeService=a,this.subscriptions=new us.w,this.term=new bz.Terminal,this.fitAddon=new Sz.FitAddon}return n.prototype.ngOnInit=function(){var r=this;this.serverService.isServiceInitialized?this.getData():this.subscriptions.add(this.serverService.serviceInitialized.subscribe(function(t){t&&r.getData()}))},n.prototype.getData=function(){var r=this;this.serverId=this.route.snapshot.paramMap.get("server_id"),this.projectId=this.route.snapshot.paramMap.get("project_id"),this.nodeId=this.route.snapshot.paramMap.get("node_id"),this.consoleService.consoleResized.subscribe(function(t){r.fitAddon.fit()}),this.serverService.get(+this.serverId).then(function(t){r.server=t,r.nodeService.getNodeById(r.server,r.projectId,r.nodeId).subscribe(function(i){r.node=i,r.title.setTitle(r.node.name),r.openTerminal()})})},n.prototype.openTerminal=function(){var r=this;setTimeout(function(){r.term.open(r.terminal.nativeElement);var t=new WebSocket(r.consoleService.getUrl(r.server,r.node));t.onerror=function(s){r.term.write("Connection lost\r\n")},t.onclose=function(s){r.term.write("Connection closed\r\n")};var i=new Cz.AttachAddon(t);r.term.loadAddon(i),r.term.setOption("cursorBlink",!0),r.term.loadAddon(r.fitAddon),r.fitAddon.activate(r.term),r.fitAddon.fit(),r.term.focus(),r.term.attachCustomKeyEventHandler(function(s){return!(("KeyC"===s.code||"KeyV"===s.code)&&s.ctrlKey&&s.shiftKey)});var o=Math.round(window.innerWidth/r.consoleService.getLineWidth()),a=Math.round(window.innerHeight/r.consoleService.getLineHeight());r.term.resize(o,a)},0)},n.\u0275fac=function(t){return new(t||n)(e.Y36(hd),e.Y36(Hr),e.Y36(Ir),e.Y36(B.Dx),e.Y36(Jr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-web-console-full-window"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(_Te,5),2&t)&&(e.iGM(o=e.CRH())&&(i.terminal=o.first))},decls:2,vars:0,consts:[["id","terminal",2,"width","100%","height","100%"],["terminal",""]],template:function(t,i){1&t&&e._UZ(0,"div",0,1)},styles:[".xterm{position:relative;-moz-user-select:none;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm{cursor:text}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline{text-decoration:underline}.xterm-strikethrough{text-decoration:line-through}\n"],encapsulation:2}),n}(),Iz=function(){function n(r,t){this.consoleService=r,this.bottomSheet=t}return n.prototype.canDeactivate=function(){if(this.consoleService.openConsoles>0){this.bottomSheet.open(Xf);var r=this.bottomSheet._openedBottomSheetRef;return r.instance.message="Exiting the project will close open consoles, do you want to continue?",r.afterDismissed()}return!0},n.\u0275fac=function(t){return new(t||n)(e.LFG(hd),e.LFG(LS))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),yTe=["*",[["mat-toolbar-row"]]],bTe=["*","mat-toolbar-row"],CTe=(0,un.pj)(function(){return function n(r){(0,g.Z)(this,n),this._elementRef=r}}()),STe=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n}(),TTe=function(){var n=function(r){(0,M.Z)(i,r);var t=(0,A.Z)(i);function i(o,a,s){var u;return(0,g.Z)(this,i),(u=t.call(this,o))._platform=a,u._document=s,u}return(0,k.Z)(i,[{key:"ngAfterViewInit",value:function(){var a=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return a._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),i}(CTe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(ei.t4),e.Y36(At.K0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-toolbar"]],contentQueries:function(t,i,o){var a;1&t&&e.Suo(o,STe,5),2&t&&e.iGM(a=e.CRH())&&(i._toolbarRows=a)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,i){2&t&&e.ekj("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",0===i._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[e.qOj],ngContentSelectors:bTe,decls:2,vars:0,template:function(t,i){1&t&&(e.F$t(yTe),e.Hsn(0),e.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),n}(),xTe=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[un.BQ],un.BQ]}),n}();function wTe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){return e.CHM(t),e.oxw().listProjects()}),e._uU(1," Projects "),e.qZA()}}function kTe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){return e.CHM(t),e.oxw().backToProject()}),e._uU(1," Back to project "),e.qZA()}}var ETe=function(){function n(r,t,i,o,a,s){this.electronService=r,this.recentlyOpenedProjectService=t,this.serverManagement=i,this.toasterService=o,this.progressService=a,this.router=s,this.isInstalledSoftwareAvailable=!1,this.uiVersion=_z,this.shouldStopServersOnClosing=!0}return n.prototype.ngOnInit=function(){var r=this;this.recentlyOpenedServerId=this.recentlyOpenedProjectService.getServerId(),this.recentlyOpenedProjectId=this.recentlyOpenedProjectService.getProjectId(),this.serverIdProjectList=this.recentlyOpenedProjectService.getServerIdProjectList(),this.isInstalledSoftwareAvailable=this.electronService.isElectronApp,this.serverStatusSubscription=this.serverManagement.serverStatusChanged.subscribe(function(t){"errored"===t.status&&(console.error(t.message),r.toasterService.error(t.message)),"stderr"===t.status&&(console.error(t.message),r.toasterService.error(t.message))}),this.shouldStopServersOnClosing=this.electronService.isElectronApp},n.prototype.listProjects=function(){var r=this;this.router.navigate(["/server",this.serverIdProjectList,"projects"]).catch(function(t){return r.toasterService.error("Cannot list projects")})},n.prototype.backToProject=function(){var r=this;this.router.navigate(["/server",this.recentlyOpenedServerId,"project",this.recentlyOpenedProjectId]).catch(function(t){return r.toasterService.error("Cannot navigate to the last opened project")})},n.prototype.onBeforeUnload=function(r){return(0,Qn.mG)(this,void 0,void 0,function(){return(0,Qn.Jh)(this,function(t){switch(t.label){case 0:return this.shouldStopServersOnClosing?(r.preventDefault(),r.returnValue=!1,this.progressService.activate(),[4,this.serverManagement.stopAll()]):[2];case 1:return t.sent(),this.shouldStopServersOnClosing=!1,this.progressService.deactivate(),window.close(),[2,!1]}})})},n.prototype.ngOnDestroy=function(){this.serverStatusSubscription.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(hs),e.Y36(z2.p),e.Y36(IL),e.Y36(er),e.Y36(zf),e.Y36(Er))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-default-layout"]],hostBindings:function(t,i){1&t&&e.NdJ("beforeunload",function(a){return i.onBeforeUnload(a)},!1,e.Jf7)},decls:34,vars:5,consts:[["color","primary"],["mat-icon-button",""],["svgIcon","gns3"],["mat-button","","routerLink","/servers"],["mat-button","",3,"click",4,"ngIf"],[1,"fill-space"],["mat-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","","routerLink","/settings"],["mat-menu-item","","routerLink","/installed-software",3,"disabled"],["mat-menu-item","","routerLink","/help"],[1,"mat-app-background"],[1,"footer","mat-app-background"],["mat-button","",3,"click"]],template:function(t,i){if(1&t&&(e.TgZ(0,"header"),e.TgZ(1,"mat-toolbar",0),e.TgZ(2,"button",1),e._UZ(3,"mat-icon",2),e.qZA(),e.TgZ(4,"button",3),e._uU(5,"Servers"),e.qZA(),e.YNc(6,wTe,2,0,"button",4),e.YNc(7,kTe,2,0,"button",4),e._UZ(8,"span",5),e.TgZ(9,"button",6),e.TgZ(10,"mat-icon"),e._uU(11,"more_vert"),e.qZA(),e.qZA(),e.TgZ(12,"mat-menu",null,7),e.TgZ(14,"button",8),e.TgZ(15,"mat-icon"),e._uU(16,"settings"),e.qZA(),e.TgZ(17,"span"),e._uU(18,"Settings"),e.qZA(),e.qZA(),e.TgZ(19,"button",9),e.TgZ(20,"mat-icon"),e._uU(21,"cloud_download"),e.qZA(),e.TgZ(22,"span"),e._uU(23,"Installed software"),e.qZA(),e.qZA(),e.TgZ(24,"button",10),e.TgZ(25,"mat-icon"),e._uU(26,"help"),e.qZA(),e.TgZ(27,"span"),e._uU(28,"Help"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"main",11),e._UZ(30,"router-outlet"),e.qZA(),e._UZ(31,"app-progress"),e.TgZ(32,"footer",12),e._uU(33),e.qZA()),2&t){var o=e.MAs(13);e.xp6(6),e.Q6J("ngIf",!i.recentlyOpenedProjectId&&i.serverIdProjectList),e.xp6(1),e.Q6J("ngIf",i.recentlyOpenedProjectId&&i.recentlyOpenedServerId),e.xp6(2),e.Q6J("matMenuTriggerFor",o),e.xp6(10),e.Q6J("disabled",!i.isInstalledSoftwareAvailable),e.xp6(14),e.hij("GNS3 Web UI \xa9 2020 - v",i.uiVersion,"")}},directives:[TTe,An,ur,fa,At.O5,$a,ws,Lr,s2,MZ],styles:["html,body{height:100%}app-root,app-default-layout{height:100%}app-default-layout{display:flex;flex-direction:column;height:100vh}.footer{padding:20px;margin:auto 0 0}.default-content{margin:0 auto;max-width:940px;padding-top:20px;padding-bottom:20px}header{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px rgba(0,0,0,.141),0 1px 18px rgba(0,0,0,.122);z-index:10}.default-header h1{font-weight:300;margin:0;font-size:20px;padding:28px 8px}.default-header{margin:0 auto;max-width:940px}.buttons-bar{padding-top:10px;text-align:right}.fill-space{flex:1 1 auto}.container>*{width:100%}.container{padding:0%}.mat-dialog-content>*{width:100%}\n"],encapsulation:2}),n}(),ZL=function(){function n(r){this.serverService=r}return n.prototype.resolve=function(r){return this.serverService.get(parseInt(r.params.server_id))},n.\u0275fac=function(t){return new(t||n)(e.LFG(Hr))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),MTe=[{path:"",component:ETe,children:[{path:"",redirectTo:"servers",pathMatch:"full"},{path:"servers",component:RSe},{path:"bundled",component:fae},{path:"server/:server_id/projects",component:Tz,resolve:{server:ZL}},{path:"help",component:xse},{path:"settings",component:LSe},{path:"settings/console",component:ZSe},{path:"installed-software",component:Xse},{path:"server/:server_id/systemstatus",component:gTe},{path:"server/:server_ip/:server_port/project/:project_id",component:jae},{path:"server/:server_id/project/:project_id/snapshots",component:YSe,resolve:{server:ZL}},{path:"server/:server_id/preferences",component:Ipe},{path:"server/:server_id/preferences/gns3vm",component:dpe},{path:"server/:server_id/preferences/builtin",component:tle},{path:"server/:server_id/preferences/builtin/ethernet-hubs",component:Eue},{path:"server/:server_id/preferences/builtin/ethernet-hubs/addtemplate",component:mue},{path:"server/:server_id/preferences/builtin/ethernet-hubs/:template_id",component:bue},{path:"server/:server_id/preferences/builtin/ethernet-switches",component:tce},{path:"server/:server_id/preferences/builtin/ethernet-switches/addtemplate",component:Mue},{path:"server/:server_id/preferences/builtin/ethernet-switches/:template_id",component:Yue},{path:"server/:server_id/preferences/builtin/cloud-nodes",component:hue},{path:"server/:server_id/preferences/builtin/cloud-nodes/addtemplate",component:ple},{path:"server/:server_id/preferences/builtin/cloud-nodes/:template_id",component:Hle},{path:"server/:server_id/preferences/dynamips/templates",component:rpe},{path:"server/:server_id/preferences/dynamips/templates/addtemplate",component:Ade},{path:"server/:server_id/preferences/dynamips/templates/:template_id",component:Qde},{path:"server/:server_id/preferences/dynamips/templates/:template_id/copy",component:Dde},{path:"server/:server_id/preferences/qemu/templates",component:Sfe},{path:"server/:server_id/preferences/qemu/templates/:template_id/copy",component:Upe},{path:"server/:server_id/preferences/qemu/templates/:template_id",component:mfe},{path:"server/:server_id/preferences/qemu/addtemplate",component:Bpe},{path:"server/:server_id/preferences/vpcs/templates",component:Che},{path:"server/:server_id/preferences/vpcs/templates/:template_id",component:hhe},{path:"server/:server_id/preferences/vpcs/addtemplate",component:lhe},{path:"server/:server_id/preferences/virtualbox/templates",component:Hfe},{path:"server/:server_id/preferences/virtualbox/templates/:template_id",component:Rfe},{path:"server/:server_id/preferences/virtualbox/addtemplate",component:wfe},{path:"server/:server_id/preferences/vmware/templates",component:she},{path:"server/:server_id/preferences/vmware/templates/:template_id",component:ehe},{path:"server/:server_id/preferences/vmware/addtemplate",component:zfe},{path:"server/:server_id/preferences/docker/templates",component:pde},{path:"server/:server_id/preferences/docker/templates/:template_id",component:ode},{path:"server/:server_id/preferences/docker/templates/:template_id/copy",component:Hce},{path:"server/:server_id/preferences/docker/addtemplate",component:Uce},{path:"server/:server_id/preferences/iou/templates",component:Ppe},{path:"server/:server_id/preferences/iou/templates/:template_id",component:wpe},{path:"server/:server_id/preferences/iou/templates/:template_id/copy",component:gpe},{path:"server/:server_id/preferences/iou/addtemplate",component:vpe}]},{path:"server/:server_id/project/:project_id",component:R1e,canDeactivate:[Iz]},{path:"server/:server_id/project/:project_id/nodes/:node_id",component:Pz},{path:"static/web-ui/server/:server_id/project/:project_id/nodes/:node_id",component:Pz},{path:"**",component:ele}],ATe=function(){function n(){}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[qV.forRoot(MTe,{anchorScrolling:"enabled",enableTracing:!1,scrollPositionRestoration:"enabled"})],qV]}),n}(),DTe=function(n,r){return{dark:n,light:r}},OTe=function(){function n(r,t,i,o,a,s,u,p){var m=this;this.overlayContainer=r,this.settingsService=o,this.electronService=a,this.themeService=s,this.router=u,this.progressService=p,this.darkThemeEnabled=!1,t.addSvgIcon("gns3",i.bypassSecurityTrustResourceUrl("./assets/gns3_icon.svg")),t.addSvgIcon("gns3black",i.bypassSecurityTrustResourceUrl("./assets/gns3_icon_black.svg")),u.events.subscribe(function(b){m.checkEvent(b)})}return n.prototype.ngOnInit=function(){var r=this;this.applyTheme(this.themeService.savedTheme+"-theme"),this.themeService.themeChanged.subscribe(function(t){r.applyTheme(t)})},n.prototype.applyTheme=function(r){this.darkThemeEnabled="dark-theme"===r,this.overlayContainer.getContainerElement().classList.add(r),this.componentCssClass=r},n.prototype.checkEvent=function(r){r instanceof qA?this.progressService.activate():(r instanceof Ym||r instanceof aZ||r instanceof WH)&&this.progressService.deactivate()},n.\u0275fac=function(t){return new(t||n)(e.Y36(so.Xj),e.Y36(CS),e.Y36(B.H7),e.Y36(yp.g),e.Y36(hs),e.Y36(rc.f),e.Y36(Er),e.Y36(zf))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-root"]],hostVars:2,hostBindings:function(t,i){2&t&&e.Tol(i.componentCssClass)},decls:3,vars:4,consts:[[3,"ngClass"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"router-outlet"),e._UZ(2,"app-adbutler"),e.qZA()),2&t&&e.Q6J("ngClass",e.WLB(1,DTe,i.darkThemeEnabled,!i.darkThemeEnabled))},directives:[At.mk,s2,Pq],styles:["mat-menu-panel[_ngcontent-%COMP%]{min-height:0px}.dark[_ngcontent-%COMP%]{background:#263238!important}.light[_ngcontent-%COMP%]{background:white!important}"]}),n}(),PTe=function(){return function(){}}(),ITe=function(){function n(){}return n.prototype.convert=function(r){var t=new PTe;return t.symbol_id=r.id,t.builtin=r.builtin,t.filename=r.filename,t.raw=r.raw,t},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),RTe=function(){function n(){}return n.prototype.convert=function(r){var t={font_family:void 0,font_size:void 0,font_weight:void 0};return MS.parse(r,{context:"declarationList"}).children.forEach(function(o){"font-size"===o.property&&o.value&&o.value.children&&o.value.children.forEach(function(a){"Dimension"===a.type&&(t.font_size=parseInt(a.value))}),"font-family"===o.property&&o.value&&o.value.children&&o.value.children.forEach(function(a){"Identifier"===a.type&&(t.font_family=a.name)}),"font-weight"===o.property&&o.value&&o.value.children&&o.value.children.forEach(function(a){"Identifier"===a.type&&(t.font_weight=a.name)})}),t},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),NTe=[fL,pL,I2,sL,P2,RS,lL,O2,aL,Pj,dL,wj,PS,Dj,Ej,Aj,Mj,kj,Oj],ZTe=function(){function n(){}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:(0,Qn.ev)([Jf,ac,kL,rz,iz,oz,az,DS,IS,uv,M2,OS,rL,iu,lc,av,ZS,N2,cv,E2,eL,yj,_j,uz,US,AL,cz,j2,ML,ITe,nL,tL,bj,ry,QZ,KZ,XZ,$Z,oL,iy,ES,RTe,uL,cL],NTe),imports:[[At.ez,Qq,EZ]]}),n}(),LTe=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Qn.ZT)(r,n),r.prototype.getItemKey=function(t){return t.symbol_id},r.\u0275fac=function(){var t;return function(o){return(t||(t=e.n5z(r)))(o||r)}}(),r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r}(w2.o),LL=function(n,r){return(LL=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)i.hasOwnProperty(o)&&(t[o]=i[o])})(n,r)};function VS(n,r){function t(){this.constructor=n}LL(n,r),n.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)}var bp,Nz,Vn=function(){return(Vn=Object.assign||function(r){for(var t,i=1,o=arguments.length;i<o;i++)for(var a in t=arguments[i])Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=t[a]);return r}).apply(this,arguments)};function pv(n){var r="function"==typeof Symbol&&Symbol.iterator,t=r&&n[r],i=0;if(t)return t.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function Rz(n,r){var t="function"==typeof Symbol&&n[Symbol.iterator];if(!t)return n;var o,s,i=t.call(n),a=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(u){s={error:u}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(s)throw s.error}}return a}function Fo(){for(var n=[],r=0;r<arguments.length;r++)n=n.concat(Rz(arguments[r]));return n}!function(n){n.Ok="ok",n.Exited="exited",n.Crashed="crashed",n.Abnormal="abnormal"}(bp||(bp={})),function(n){n.Ok="ok",n.Errored="errored",n.Crashed="crashed"}(Nz||(Nz={}));var qr=f(82605),qS=f(46354),fv=(0,qr.Rf)(),FL="Sentry Logger ",BTe=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];!this._enabled||(0,qr.Cf)(function(){fv.console.log(FL+"[Log]: "+r.join(" "))})},n.prototype.warn=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];!this._enabled||(0,qr.Cf)(function(){fv.console.warn(FL+"[Warn]: "+r.join(" "))})},n.prototype.error=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];!this._enabled||(0,qr.Cf)(function(){fv.console.error(FL+"[Error]: "+r.join(" "))})},n}();fv.__SENTRY__=fv.__SENTRY__||{};var Cp,Gi=fv.__SENTRY__.logger||(fv.__SENTRY__.logger=new BTe),UTe=f(4839);function Zz(n){switch(Object.prototype.toString.call(n)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return th(n,Error)}}function Lz(n){return"[object ErrorEvent]"===Object.prototype.toString.call(n)}function Fz(n){return"[object DOMError]"===Object.prototype.toString.call(n)}function cy(n){return"[object String]"===Object.prototype.toString.call(n)}function K2(n){return null===n||"object"!=typeof n&&"function"!=typeof n}function dy(n){return"[object Object]"===Object.prototype.toString.call(n)}function BL(n){return"undefined"!=typeof Event&&th(n,Event)}function Bz(n){return"undefined"!=typeof Element&&th(n,Element)}function UL(n){return Boolean(n&&n.then&&"function"==typeof n.then)}function th(n,r){try{return n instanceof r}catch(t){return!1}}!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(Cp||(Cp={}));var _l=function(){function n(r){var t=this;this._state=Cp.PENDING,this._handlers=[],this._resolve=function(i){t._setResult(Cp.RESOLVED,i)},this._reject=function(i){t._setResult(Cp.REJECTED,i)},this._setResult=function(i,o){if(t._state===Cp.PENDING){if(UL(o))return void o.then(t._resolve,t._reject);t._state=i,t._value=o,t._executeHandlers()}},this._attachHandler=function(i){t._handlers=t._handlers.concat(i),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==Cp.PENDING){var i=t._handlers.slice();t._handlers=[],i.forEach(function(o){o.done||(t._state===Cp.RESOLVED&&o.onfulfilled&&o.onfulfilled(t._value),t._state===Cp.REJECTED&&o.onrejected&&o.onrejected(t._value),o.done=!0)})}};try{r(this._resolve,this._reject)}catch(i){this._reject(i)}}return n.resolve=function(r){return new n(function(t){t(r)})},n.reject=function(r){return new n(function(t,i){i(r)})},n.all=function(r){return new n(function(t,i){if(Array.isArray(r))if(0!==r.length){var o=r.length,a=[];r.forEach(function(s,u){n.resolve(s).then(function(p){a[u]=p,0==(o-=1)&&t(a)}).then(null,i)})}else t([]);else i(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(r,t){var i=this;return new n(function(o,a){i._attachHandler({done:!1,onfulfilled:function(u){if(r)try{return void o(r(u))}catch(p){return void a(p)}else o(u)},onrejected:function(u){if(t)try{return void o(t(u))}catch(p){return void a(p)}else a(u)}})})},n.prototype.catch=function(r){return this.then(function(t){return t},r)},n.prototype.finally=function(r){var t=this;return new n(function(i,o){var a,s;return t.then(function(u){s=!1,a=u,r&&r()},function(u){s=!0,a=u,r&&r()}).then(function(){s?o(a):i(a)})})},n.prototype.toString=function(){return"[object SyncPromise]"},n}(),X2=function(){function n(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return n.clone=function(r){var t=new n;return r&&(t._breadcrumbs=Fo(r._breadcrumbs),t._tags=Vn({},r._tags),t._extra=Vn({},r._extra),t._contexts=Vn({},r._contexts),t._user=r._user,t._level=r._level,t._span=r._span,t._session=r._session,t._transactionName=r._transactionName,t._fingerprint=r._fingerprint,t._eventProcessors=Fo(r._eventProcessors),t._requestSession=r._requestSession),t},n.prototype.addScopeListener=function(r){this._scopeListeners.push(r)},n.prototype.addEventProcessor=function(r){return this._eventProcessors.push(r),this},n.prototype.setUser=function(r){return this._user=r||{},this._session&&this._session.update({user:r}),this._notifyScopeListeners(),this},n.prototype.getUser=function(){return this._user},n.prototype.getRequestSession=function(){return this._requestSession},n.prototype.setRequestSession=function(r){return this._requestSession=r,this},n.prototype.setTags=function(r){return this._tags=Vn(Vn({},this._tags),r),this._notifyScopeListeners(),this},n.prototype.setTag=function(r,t){var i;return this._tags=Vn(Vn({},this._tags),((i={})[r]=t,i)),this._notifyScopeListeners(),this},n.prototype.setExtras=function(r){return this._extra=Vn(Vn({},this._extra),r),this._notifyScopeListeners(),this},n.prototype.setExtra=function(r,t){var i;return this._extra=Vn(Vn({},this._extra),((i={})[r]=t,i)),this._notifyScopeListeners(),this},n.prototype.setFingerprint=function(r){return this._fingerprint=r,this._notifyScopeListeners(),this},n.prototype.setLevel=function(r){return this._level=r,this._notifyScopeListeners(),this},n.prototype.setTransactionName=function(r){return this._transactionName=r,this._notifyScopeListeners(),this},n.prototype.setTransaction=function(r){return this.setTransactionName(r)},n.prototype.setContext=function(r,t){var i;return null===t?delete this._contexts[r]:this._contexts=Vn(Vn({},this._contexts),((i={})[r]=t,i)),this._notifyScopeListeners(),this},n.prototype.setSpan=function(r){return this._span=r,this._notifyScopeListeners(),this},n.prototype.getSpan=function(){return this._span},n.prototype.getTransaction=function(){var r,t,i,o,a=this.getSpan();return(null===(r=a)||void 0===r?void 0:r.transaction)?null===(t=a)||void 0===t?void 0:t.transaction:(null===(o=null===(i=a)||void 0===i?void 0:i.spanRecorder)||void 0===o?void 0:o.spans[0])?a.spanRecorder.spans[0]:void 0},n.prototype.setSession=function(r){return r?this._session=r:delete this._session,this._notifyScopeListeners(),this},n.prototype.getSession=function(){return this._session},n.prototype.update=function(r){if(!r)return this;if("function"==typeof r){var t=r(this);return t instanceof n?t:this}return r instanceof n?(this._tags=Vn(Vn({},this._tags),r._tags),this._extra=Vn(Vn({},this._extra),r._extra),this._contexts=Vn(Vn({},this._contexts),r._contexts),r._user&&Object.keys(r._user).length&&(this._user=r._user),r._level&&(this._level=r._level),r._fingerprint&&(this._fingerprint=r._fingerprint),r._requestSession&&(this._requestSession=r._requestSession)):dy(r)&&(r=r,this._tags=Vn(Vn({},this._tags),r.tags),this._extra=Vn(Vn({},this._extra),r.extra),this._contexts=Vn(Vn({},this._contexts),r.contexts),r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession)),this},n.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},n.prototype.addBreadcrumb=function(r,t){var i="number"==typeof t?Math.min(t,100):100;if(i<=0)return this;var o=Vn({timestamp:(0,qS.yW)()},r);return this._breadcrumbs=Fo(this._breadcrumbs,[o]).slice(-i),this._notifyScopeListeners(),this},n.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},n.prototype.applyToEvent=function(r,t){var i;if(this._extra&&Object.keys(this._extra).length&&(r.extra=Vn(Vn({},this._extra),r.extra)),this._tags&&Object.keys(this._tags).length&&(r.tags=Vn(Vn({},this._tags),r.tags)),this._user&&Object.keys(this._user).length&&(r.user=Vn(Vn({},this._user),r.user)),this._contexts&&Object.keys(this._contexts).length&&(r.contexts=Vn(Vn({},this._contexts),r.contexts)),this._level&&(r.level=this._level),this._transactionName&&(r.transaction=this._transactionName),this._span){r.contexts=Vn({trace:this._span.getTraceContext()},r.contexts);var o=null===(i=this._span.transaction)||void 0===i?void 0:i.name;o&&(r.tags=Vn({transaction:o},r.tags))}return this._applyFingerprint(r),r.breadcrumbs=Fo(r.breadcrumbs||[],this._breadcrumbs),r.breadcrumbs=r.breadcrumbs.length>0?r.breadcrumbs:void 0,this._notifyEventProcessors(Fo(Hz(),this._eventProcessors),r,t)},n.prototype._notifyEventProcessors=function(r,t,i,o){var a=this;return void 0===o&&(o=0),new _l(function(s,u){var p=r[o];if(null===t||"function"!=typeof p)s(t);else{var m=p(Vn({},t),i);UL(m)?m.then(function(b){return a._notifyEventProcessors(r,b,i,o+1).then(s)}).then(null,u):a._notifyEventProcessors(r,m,i,o+1).then(s).then(null,u)}})},n.prototype._notifyScopeListeners=function(){var r=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(function(t){t(r)}),this._notifyingListeners=!1)},n.prototype._applyFingerprint=function(r){r.fingerprint=r.fingerprint?Array.isArray(r.fingerprint)?r.fingerprint:[r.fingerprint]:[],this._fingerprint&&(r.fingerprint=r.fingerprint.concat(this._fingerprint)),r.fingerprint&&!r.fingerprint.length&&delete r.fingerprint},n}();function Hz(){var n=(0,qr.Rf)();return n.__SENTRY__=n.__SENTRY__||{},n.__SENTRY__.globalEventProcessors=n.__SENTRY__.globalEventProcessors||[],n.__SENTRY__.globalEventProcessors}function $2(n){Hz().push(n)}function eD(n,r){try{for(var t=n,a=[],s=0,u=0,m=" > ".length,b=void 0;t&&s++<5&&!("html"===(b=jTe(t,r))||s>1&&u+a.length*m+b.length>=80);)a.push(b),u+=b.length,t=t.parentNode;return a.reverse().join(" > ")}catch(R){return"<unknown>"}}function jTe(n,r){var t,i,s,u,p,m,b,o=n,a=[];if(!o||!o.tagName)return"";a.push(o.tagName.toLowerCase());var R=(null===(t=r)||void 0===t?void 0:t.length)?r.filter(function(G){return o.getAttribute(G)}).map(function(G){return[G,o.getAttribute(G)]}):null;if(null===(i=R)||void 0===i?void 0:i.length)R.forEach(function(G){a.push("["+G[0]+'="'+G[1]+'"]')});else if(o.id&&a.push("#"+o.id),(s=o.className)&&cy(s))for(u=s.split(/\s+/),b=0;b<u.length;b++)a.push("."+u[b]);var F=["type","name","title","alt"];for(b=0;b<F.length;b++)(m=o.getAttribute(p=F[b]))&&a.push("["+p+'="'+m+'"]');return a.join("")}var zTe=function(){function n(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return n.prototype.memoize=function(r){if(this._hasWeakSet)return!!this._inner.has(r)||(this._inner.add(r),!1);for(var t=0;t<this._inner.length;t++)if(this._inner[t]===r)return!0;return this._inner.push(r),!1},n.prototype.unmemoize=function(r){if(this._hasWeakSet)this._inner.delete(r);else for(var t=0;t<this._inner.length;t++)if(this._inner[t]===r){this._inner.splice(t,1);break}},n}(),HL="<anonymous>";function nh(n){try{return n&&"function"==typeof n&&n.name||HL}catch(r){return HL}}function jS(n,r){return void 0===r&&(r=0),"string"!=typeof n||0===r||n.length<=r?n:n.substr(0,r)+"..."}function Vz(n,r){if(!Array.isArray(n))return"";for(var t=[],i=0;i<n.length;i++){var o=n[i];try{t.push(String(o))}catch(a){t.push("[value cannot be serialized]")}}return t.join(r)}function VL(n,r){return!!cy(n)&&(function(n){return"[object RegExp]"===Object.prototype.toString.call(n)}(r)?r.test(n):"string"==typeof r&&-1!==n.indexOf(r))}function Ms(n,r,t){if(r in n){var i=n[r],o=t(i);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry_original__:{enumerable:!1,value:i}})}catch(a){}n[r]=o}}function qz(n){if(Zz(n)){var r=n,t={message:r.message,name:r.name,stack:r.stack};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);return t}if(BL(n)){var o=n,a={};a.type=o.type;try{a.target=Bz(o.target)?eD(o.target):Object.prototype.toString.call(o.target)}catch(u){a.target="<unknown>"}try{a.currentTarget=Bz(o.currentTarget)?eD(o.currentTarget):Object.prototype.toString.call(o.currentTarget)}catch(u){a.currentTarget="<unknown>"}for(var s in"undefined"!=typeof CustomEvent&&th(n,CustomEvent)&&(a.detail=o.detail),o)Object.prototype.hasOwnProperty.call(o,s)&&(a[s]=o[s]);return a}return n}function jz(n,r,t){void 0===r&&(r=3),void 0===t&&(t=102400);var i=py(n,r);return function(n){return function(n){return~-encodeURI(n).split(/%..|./).length}(JSON.stringify(n))}(i)>t?jz(n,r-1,t):i}function zz(n,r){return"domain"===r&&n&&"object"==typeof n&&n._events?"[Domain]":"domainEmitter"===r?"[DomainEmitter]":"undefined"!=typeof global&&n===global?"[Global]":"undefined"!=typeof window&&n===window?"[Window]":"undefined"!=typeof document&&n===document?"[Document]":function(n){return dy(n)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n}(n)?"[SyntheticEvent]":"number"==typeof n&&n!=n?"[NaN]":void 0===n?"[undefined]":"function"==typeof n?"[Function: "+nh(n)+"]":"symbol"==typeof n?"["+String(n)+"]":"bigint"==typeof n?"[BigInt: "+String(n)+"]":n}function Wz(n,r,t,i){if(void 0===t&&(t=1/0),void 0===i&&(i=new zTe),0===t)return function(n){var r=Object.prototype.toString.call(n);if("string"==typeof n)return n;if("[object Object]"===r)return"[Object]";if("[object Array]"===r)return"[Array]";var t=zz(n);return K2(t)?t:r}(r);if(null!=r&&"function"==typeof r.toJSON)return r.toJSON();var o=zz(r,n);if(K2(o))return o;var a=qz(r),s=Array.isArray(r)?[]:{};if(i.memoize(r))return"[Circular ~]";for(var u in a)!Object.prototype.hasOwnProperty.call(a,u)||(s[u]=Wz(u,a[u],t-1,i));return i.unmemoize(r),s}function py(n,r){try{return JSON.parse(JSON.stringify(n,function(t,i){return Wz(t,i,r)}))}catch(t){return"**non-serializable**"}}function QTe(n,r){void 0===r&&(r=40);var t=Object.keys(qz(n));if(t.sort(),!t.length)return"[object has no keys]";if(t[0].length>=r)return jS(t[0],r);for(var i=t.length;i>0;i--){var o=t.slice(0,i).join(", ");if(!(o.length>r))return i===t.length?o:jS(o,r)}return""}function tD(n){var r,t;if(dy(n)){var i=n,o={};try{for(var a=pv(Object.keys(i)),s=a.next();!s.done;s=a.next()){var u=s.value;void 0!==i[u]&&(o[u]=tD(i[u]))}}catch(p){r={error:p}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(r)throw r.error}}return o}return Array.isArray(n)?n.map(tD):n}var KTe=function(){function n(r){this.errors=0,this.sid=(0,qr.DM)(),this.duration=0,this.status=bp.Ok,this.init=!0,this.ignoreDuration=!1;var t=(0,qS.ph)();this.timestamp=t,this.started=t,r&&this.update(r)}return n.prototype.update=function(r){if(void 0===r&&(r={}),r.user&&(!this.ipAddress&&r.user.ip_address&&(this.ipAddress=r.user.ip_address),!this.did&&!r.did&&(this.did=r.user.id||r.user.email||r.user.username)),this.timestamp=r.timestamp||(0,qS.ph)(),r.ignoreDuration&&(this.ignoreDuration=r.ignoreDuration),r.sid&&(this.sid=32===r.sid.length?r.sid:(0,qr.DM)()),void 0!==r.init&&(this.init=r.init),!this.did&&r.did&&(this.did=""+r.did),"number"==typeof r.started&&(this.started=r.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof r.duration)this.duration=r.duration;else{var t=this.timestamp-this.started;this.duration=t>=0?t:0}r.release&&(this.release=r.release),r.environment&&(this.environment=r.environment),!this.ipAddress&&r.ipAddress&&(this.ipAddress=r.ipAddress),!this.userAgent&&r.userAgent&&(this.userAgent=r.userAgent),"number"==typeof r.errors&&(this.errors=r.errors),r.status&&(this.status=r.status)},n.prototype.close=function(r){r?this.update({status:r}):this.status===bp.Ok?this.update({status:bp.Exited}):this.update()},n.prototype.toJSON=function(){return tD({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:tD({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},n}(),jL=function(){function n(r,t,i){void 0===t&&(t=new X2),void 0===i&&(i=4),this._version=i,this._stack=[{}],this.getStackTop().scope=t,r&&this.bindClient(r)}return n.prototype.isOlderThan=function(r){return this._version<r},n.prototype.bindClient=function(r){this.getStackTop().client=r,r&&r.setupIntegrations&&r.setupIntegrations()},n.prototype.pushScope=function(){var r=X2.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:r}),r},n.prototype.popScope=function(){return!(this.getStack().length<=1||!this.getStack().pop())},n.prototype.withScope=function(r){var t=this.pushScope();try{r(t)}finally{this.popScope()}},n.prototype.getClient=function(){return this.getStackTop().client},n.prototype.getScope=function(){return this.getStackTop().scope},n.prototype.getStack=function(){return this._stack},n.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},n.prototype.captureException=function(r,t){var i=this._lastEventId=(0,qr.DM)(),o=t;if(!t){var a=void 0;try{throw new Error("Sentry syntheticException")}catch(s){a=s}o={originalException:r,syntheticException:a}}return this._invokeClient("captureException",r,Vn(Vn({},o),{event_id:i})),i},n.prototype.captureMessage=function(r,t,i){var o=this._lastEventId=(0,qr.DM)(),a=i;if(!i){var s=void 0;try{throw new Error(r)}catch(u){s=u}a={originalException:r,syntheticException:s}}return this._invokeClient("captureMessage",r,t,Vn(Vn({},a),{event_id:o})),o},n.prototype.captureEvent=function(r,t){var i=this._lastEventId=(0,qr.DM)();return this._invokeClient("captureEvent",r,Vn(Vn({},t),{event_id:i})),i},n.prototype.lastEventId=function(){return this._lastEventId},n.prototype.addBreadcrumb=function(r,t){var i=this.getStackTop(),o=i.scope,a=i.client;if(o&&a){var s=a.getOptions&&a.getOptions()||{},u=s.beforeBreadcrumb,p=void 0===u?null:u,m=s.maxBreadcrumbs,b=void 0===m?100:m;if(!(b<=0)){var R=(0,qS.yW)(),F=Vn({timestamp:R},r),G=p?(0,qr.Cf)(function(){return p(F,t)}):F;null!==G&&o.addBreadcrumb(G,b)}}},n.prototype.setUser=function(r){var t=this.getScope();t&&t.setUser(r)},n.prototype.setTags=function(r){var t=this.getScope();t&&t.setTags(r)},n.prototype.setExtras=function(r){var t=this.getScope();t&&t.setExtras(r)},n.prototype.setTag=function(r,t){var i=this.getScope();i&&i.setTag(r,t)},n.prototype.setExtra=function(r,t){var i=this.getScope();i&&i.setExtra(r,t)},n.prototype.setContext=function(r,t){var i=this.getScope();i&&i.setContext(r,t)},n.prototype.configureScope=function(r){var t=this.getStackTop(),i=t.scope;i&&t.client&&r(i)},n.prototype.run=function(r){var t=Gz(this);try{r(this)}finally{Gz(t)}},n.prototype.getIntegration=function(r){var t=this.getClient();if(!t)return null;try{return t.getIntegration(r)}catch(i){return Gi.warn("Cannot retrieve integration "+r.id+" from the current Hub"),null}},n.prototype.startSpan=function(r){return this._callExtensionMethod("startSpan",r)},n.prototype.startTransaction=function(r,t){return this._callExtensionMethod("startTransaction",r,t)},n.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},n.prototype.captureSession=function(r){if(void 0===r&&(r=!1),r)return this.endSession();this._sendSessionUpdate()},n.prototype.endSession=function(){var r,t,i,o,a;null===(i=null===(t=null===(r=this.getStackTop())||void 0===r?void 0:r.scope)||void 0===t?void 0:t.getSession())||void 0===i||i.close(),this._sendSessionUpdate(),null===(a=null===(o=this.getStackTop())||void 0===o?void 0:o.scope)||void 0===a||a.setSession()},n.prototype.startSession=function(r){var t=this.getStackTop(),i=t.scope,o=t.client,a=o&&o.getOptions()||{},s=a.release,u=a.environment,m=((0,qr.Rf)().navigator||{}).userAgent,b=new KTe(Vn(Vn(Vn({release:s,environment:u},i&&{user:i.getUser()}),m&&{userAgent:m}),r));if(i){var R=i.getSession&&i.getSession();R&&R.status===bp.Ok&&R.update({status:bp.Exited}),this.endSession(),i.setSession(b)}return b},n.prototype._sendSessionUpdate=function(){var r=this.getStackTop(),t=r.scope,i=r.client;if(t){var o=t.getSession&&t.getSession();o&&i&&i.captureSession&&i.captureSession(o)}},n.prototype._invokeClient=function(r){for(var t,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];var a=this.getStackTop(),s=a.scope,u=a.client;u&&u[r]&&(t=u)[r].apply(t,Fo(i,[s]))},n.prototype._callExtensionMethod=function(r){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];var o=zS(),a=o.__SENTRY__;if(a&&a.extensions&&"function"==typeof a.extensions[r])return a.extensions[r].apply(this,t);Gi.warn("Extension method "+r+" couldn't be found, doing nothing.")},n}();function zS(){var n=(0,qr.Rf)();return n.__SENTRY__=n.__SENTRY__||{extensions:{},hub:void 0},n}function Gz(n){var r=zS(),t=rh(r);return zL(r,n),t}function As(){var n=zS();return(!Yz(n)||rh(n).isOlderThan(4))&&zL(n,new jL),(0,UTe.KV)()?function(n){var r,t,i;try{var o=null===(i=null===(t=null===(r=zS().__SENTRY__)||void 0===r?void 0:r.extensions)||void 0===t?void 0:t.domain)||void 0===i?void 0:i.active;if(!o)return rh(n);if(!Yz(o)||rh(o).isOlderThan(4)){var a=rh(n).getStackTop();zL(o,new jL(a.client,X2.clone(a.scope)))}return rh(o)}catch(s){return rh(n)}}(n):rh(n)}function Yz(n){return!!(n&&n.__SENTRY__&&n.__SENTRY__.hub)}function rh(n){return n&&n.__SENTRY__&&n.__SENTRY__.hub||(n.__SENTRY__=n.__SENTRY__||{},n.__SENTRY__.hub=new jL),n.__SENTRY__.hub}function zL(n,r){return!!n&&(n.__SENTRY__=n.__SENTRY__||{},n.__SENTRY__.hub=r,!0)}function yl(n){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];var i=As();if(i&&i[n])return i[n].apply(i,Fo(r));throw new Error("No hub defined or "+n+" was not found on the hub, please open a bug report.")}function Jz(n,r){var t;try{throw new Error("Sentry syntheticException")}catch(i){t=i}return yl("captureException",n,{captureContext:r,originalException:n,syntheticException:t})}function exe(n){yl("withScope",n)}var Qz,nxe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],rxe=function(){function n(r){void 0===r&&(r={}),this._options=r,this.name=n.id}return n.prototype.setupOnce=function(){$2(function(r){var t=As();if(!t)return r;var i=t.getIntegration(n);if(i){var o=t.getClient(),a=o?o.getOptions():{},s="function"==typeof i._mergeOptions?i._mergeOptions(a):{};return"function"!=typeof i._shouldDropEvent?r:i._shouldDropEvent(r,s)?null:r}return r})},n.prototype._shouldDropEvent=function(r,t){return this._isSentryError(r,t)?(Gi.warn("Event dropped due to being internal Sentry Error.\nEvent: "+(0,qr.jH)(r)),!0):this._isIgnoredError(r,t)?(Gi.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+(0,qr.jH)(r)),!0):this._isDeniedUrl(r,t)?(Gi.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+(0,qr.jH)(r)+".\nUrl: "+this._getEventFilterUrl(r)),!0):!this._isAllowedUrl(r,t)&&(Gi.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+(0,qr.jH)(r)+".\nUrl: "+this._getEventFilterUrl(r)),!0)},n.prototype._isSentryError=function(r,t){if(!t.ignoreInternal)return!1;try{return r&&r.exception&&r.exception.values&&r.exception.values[0]&&"SentryError"===r.exception.values[0].type||!1}catch(i){return!1}},n.prototype._isIgnoredError=function(r,t){return!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._getPossibleEventMessages(r).some(function(i){return t.ignoreErrors.some(function(o){return VL(i,o)})})},n.prototype._isDeniedUrl=function(r,t){if(!t.denyUrls||!t.denyUrls.length)return!1;var i=this._getEventFilterUrl(r);return!!i&&t.denyUrls.some(function(o){return VL(i,o)})},n.prototype._isAllowedUrl=function(r,t){if(!t.allowUrls||!t.allowUrls.length)return!0;var i=this._getEventFilterUrl(r);return!i||t.allowUrls.some(function(o){return VL(i,o)})},n.prototype._mergeOptions=function(r){return void 0===r&&(r={}),{allowUrls:Fo(this._options.whitelistUrls||[],this._options.allowUrls||[],r.whitelistUrls||[],r.allowUrls||[]),denyUrls:Fo(this._options.blacklistUrls||[],this._options.denyUrls||[],r.blacklistUrls||[],r.denyUrls||[]),ignoreErrors:Fo(this._options.ignoreErrors||[],r.ignoreErrors||[],nxe),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},n.prototype._getPossibleEventMessages=function(r){if(r.message)return[r.message];if(r.exception)try{var t=r.exception.values&&r.exception.values[0]||{},i=t.type,a=t.value,s=void 0===a?"":a;return[""+s,(void 0===i?"":i)+": "+s]}catch(u){return Gi.error("Cannot extract message for event "+(0,qr.jH)(r)),[]}return[]},n.prototype._getLastValidUrl=function(r){void 0===r&&(r=[]);for(var t,i,o=r.length-1;o>=0;o--){var a=r[o];if("<anonymous>"!==(null===(t=a)||void 0===t?void 0:t.filename)&&"[native code]"!==(null===(i=a)||void 0===i?void 0:i.filename))return a.filename||null}return null},n.prototype._getEventFilterUrl=function(r){try{return r.stacktrace?this._getLastValidUrl(r.stacktrace.frames):r.exception?this._getLastValidUrl(r.exception.values&&r.exception.values[0].stacktrace&&r.exception.values[0].stacktrace.frames):null}catch(o){return Gi.error("Cannot extract url for event "+(0,qr.jH)(r)),null}},n.id="InboundFilters",n}(),ixe=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){Qz=Function.prototype.toString,Function.prototype.toString=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var i=this.__sentry_original__||this;return Qz.apply(i,r)}},n.id="FunctionToString",n}();function WL(){if(!("fetch"in(0,qr.Rf)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(n){return!1}}function GL(n){return n&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(n.toString())}function axe(){if(!WL())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(n){return!1}}var nD,rD,iD,Bo=(0,qr.Rf)(),WS={},Kz={};function ih(n){!n||"string"!=typeof n.type||"function"!=typeof n.callback||(WS[n.type]=WS[n.type]||[],WS[n.type].push(n.callback),function(n){if(!Kz[n])switch(Kz[n]=!0,n){case"console":"console"in Bo&&["debug","info","warn","error","log","assert"].forEach(function(n){n in Bo.console&&Ms(Bo.console,n,function(r){return function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];cc("console",{args:t,level:n}),r&&Function.prototype.apply.call(r,Bo.console,t)}})});break;case"dom":!function(){if("document"in Bo){var n=cc.bind(null,"dom"),r=Xz(n,!0);Bo.document.addEventListener("click",r,!1),Bo.document.addEventListener("keypress",r,!1),["EventTarget","Node"].forEach(function(t){var i=Bo[t]&&Bo[t].prototype;!i||!i.hasOwnProperty||!i.hasOwnProperty("addEventListener")||(Ms(i,"addEventListener",function(o){return function(a,s,u){if("click"===a||"keypress"==a)try{var m=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},b=m[a]=m[a]||{refCount:0};if(!b.handler){var R=Xz(n);b.handler=R,o.call(this,a,R,u)}b.refCount+=1}catch(F){}return o.call(this,a,s,u)}}),Ms(i,"removeEventListener",function(o){return function(a,s,u){if("click"===a||"keypress"==a)try{var m=this.__sentry_instrumentation_handlers__||{},b=m[a];b&&(b.refCount-=1,b.refCount<=0&&(o.call(this,a,b.handler,u),b.handler=void 0,delete m[a]),0===Object.keys(m).length&&delete this.__sentry_instrumentation_handlers__)}catch(R){}return o.call(this,a,s,u)}}))})}}();break;case"xhr":!function(){if("XMLHttpRequest"in Bo){var n=[],r=[],t=XMLHttpRequest.prototype;Ms(t,"open",function(i){return function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=this,u=o[1];s.__sentry_xhr__={method:cy(o[0])?o[0].toUpperCase():o[0],url:o[1]},cy(u)&&"POST"===s.__sentry_xhr__.method&&u.match(/sentry_key/)&&(s.__sentry_own_request__=!0);var p=function(){if(4===s.readyState){try{s.__sentry_xhr__&&(s.__sentry_xhr__.status_code=s.status)}catch(F){}try{var b=n.indexOf(s);if(-1!==b){n.splice(b);var R=r.splice(b)[0];s.__sentry_xhr__&&void 0!==R[0]&&(s.__sentry_xhr__.body=R[0])}}catch(F){}cc("xhr",{args:o,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:s})}};return"onreadystatechange"in s&&"function"==typeof s.onreadystatechange?Ms(s,"onreadystatechange",function(m){return function(){for(var b=[],R=0;R<arguments.length;R++)b[R]=arguments[R];return p(),m.apply(s,b)}}):s.addEventListener("readystatechange",p),i.apply(s,o)}}),Ms(t,"send",function(i){return function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return n.push(this),r.push(o),cc("xhr",{args:o,startTimestamp:Date.now(),xhr:this}),i.apply(this,o)}})}}();break;case"fetch":!function(){if(!WL())return!1;var n=(0,qr.Rf)();if(GL(n.fetch))return!0;var r=!1,t=n.document;if(t&&"function"==typeof t.createElement)try{var i=t.createElement("iframe");i.hidden=!0,t.head.appendChild(i),i.contentWindow&&i.contentWindow.fetch&&(r=GL(i.contentWindow.fetch)),t.head.removeChild(i)}catch(o){Gi.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",o)}return r}()||Ms(Bo,"fetch",function(n){return function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var i={args:r,fetchData:{method:dxe(r),url:pxe(r)},startTimestamp:Date.now()};return cc("fetch",Vn({},i)),n.apply(Bo,r).then(function(o){return cc("fetch",Vn(Vn({},i),{endTimestamp:Date.now(),response:o})),o},function(o){throw cc("fetch",Vn(Vn({},i),{endTimestamp:Date.now(),error:o})),o})}});break;case"history":!function(){if(function(){var n=(0,qr.Rf)(),r=n.chrome;return!(r&&r.app&&r.app.runtime||!("history"in n)||!n.history.pushState||!n.history.replaceState)}()){var n=Bo.onpopstate;Bo.onpopstate=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var o=Bo.location.href,a=nD;if(nD=o,cc("history",{from:a,to:o}),n)try{return n.apply(this,t)}catch(s){}},Ms(Bo.history,"pushState",r),Ms(Bo.history,"replaceState",r)}function r(t){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var a=i.length>2?i[2]:void 0;if(a){var s=nD,u=String(a);nD=u,cc("history",{from:s,to:u})}return t.apply(this,i)}}}();break;case"error":YL=Bo.onerror,Bo.onerror=function(n,r,t,i,o){return cc("error",{column:i,error:o,line:t,msg:n,url:r}),!!YL&&YL.apply(this,arguments)};break;case"unhandledrejection":JL=Bo.onunhandledrejection,Bo.onunhandledrejection=function(n){return cc("unhandledrejection",n),!JL||JL.apply(this,arguments)};break;default:Gi.warn("unknown instrumentation type:",n)}}(n.type))}function cc(n,r){var t,i;if(n&&WS[n])try{for(var o=pv(WS[n]||[]),a=o.next();!a.done;a=o.next()){var s=a.value;try{s(r)}catch(u){Gi.error("Error while triggering instrumentation handler.\nType: "+n+"\nName: "+nh(s)+"\nError: "+u)}}}catch(u){t={error:u}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(t)throw t.error}}}function dxe(n){return void 0===n&&(n=[]),"Request"in Bo&&th(n[0],Request)&&n[0].method?String(n[0].method).toUpperCase():n[1]&&n[1].method?String(n[1].method).toUpperCase():"GET"}function pxe(n){return void 0===n&&(n=[]),"string"==typeof n[0]?n[0]:"Request"in Bo&&th(n[0],Request)?n[0].url:String(n[0])}function Xz(n,r){return void 0===r&&(r=!1),function(t){if(t&&iD!==t&&!function(n){if("keypress"!==n.type)return!1;try{var r=n.target;if(!r||!r.tagName)return!0;if("INPUT"===r.tagName||"TEXTAREA"===r.tagName||r.isContentEditable)return!1}catch(t){}return!0}(t)){var i="keypress"===t.type?"input":t.type;(void 0===rD||function(n,r){if(!n||n.type!==r.type)return!0;try{if(n.target!==r.target)return!0}catch(t){}return!1}(iD,t))&&(n({event:t,name:i,global:r}),iD=t),clearTimeout(rD),rD=Bo.setTimeout(function(){rD=void 0},1e3)}}}var YL=null,JL=null,Cxe=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,r){return n.__proto__=r,n}:function(n,r){for(var t in r)n.hasOwnProperty(t)||(n[t]=r[t]);return n}),es=function(n){function r(t){var i=this.constructor,o=n.call(this,t)||this;return o.message=t,o.name=i.prototype.constructor.name,Cxe(o,i.prototype),o}return VS(r,n),r}(Error),xxe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,GS="Invalid Dsn",eW=function(){function n(r){"string"==typeof r?this._fromString(r):this._fromComponents(r),this._validate()}return n.prototype.toString=function(r){void 0===r&&(r=!1);var t=this,o=t.path,a=t.pass,s=t.port;return t.protocol+"://"+t.publicKey+(r&&a?":"+a:"")+"@"+t.host+(s?":"+s:"")+"/"+(o&&o+"/")+t.projectId},n.prototype._fromString=function(r){var t=xxe.exec(r);if(!t)throw new es(GS);var i=Rz(t.slice(1),6),o=i[0],a=i[1],s=i[2],u=void 0===s?"":s,p=i[3],m=i[4],b=void 0===m?"":m,F="",G=i[5],Y=G.split("/");if(Y.length>1&&(F=Y.slice(0,-1).join("/"),G=Y.pop()),G){var ee=G.match(/^\d+/);ee&&(G=ee[0])}this._fromComponents({host:p,pass:u,path:F,projectId:G,port:b,protocol:o,publicKey:a})},n.prototype._fromComponents=function(r){"user"in r&&!("publicKey"in r)&&(r.publicKey=r.user),this.user=r.publicKey||"",this.protocol=r.protocol,this.publicKey=r.publicKey||"",this.pass=r.pass||"",this.host=r.host,this.port=r.port||"",this.path=r.path||"",this.projectId=r.projectId},n.prototype._validate=function(){var r=this;if(["protocol","publicKey","host","projectId"].forEach(function(t){if(!r[t])throw new es(GS+": "+t+" missing")}),!this.projectId.match(/^\d+$/))throw new es(GS+": Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new es(GS+": Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new es(GS+": Invalid port "+this.port)},n}(),tW=[];function nW(n){return n.reduce(function(r,t){return r.every(function(i){return t.name!==i.name})&&r.push(t),r},[])}var hv,Mxe=function(){function n(r,t){this._integrations={},this._numProcessing=0,this._backend=new r(t),this._options=t,t.dsn&&(this._dsn=new eW(t.dsn))}return n.prototype.captureException=function(r,t,i){var o=this,a=t&&t.event_id;return this._process(this._getBackend().eventFromException(r,t).then(function(s){return o._captureEvent(s,t,i)}).then(function(s){a=s})),a},n.prototype.captureMessage=function(r,t,i,o){var a=this,s=i&&i.event_id,u=K2(r)?this._getBackend().eventFromMessage(String(r),t,i):this._getBackend().eventFromException(r,i);return this._process(u.then(function(p){return a._captureEvent(p,i,o)}).then(function(p){s=p})),s},n.prototype.captureEvent=function(r,t,i){var o=t&&t.event_id;return this._process(this._captureEvent(r,t,i).then(function(a){o=a})),o},n.prototype.captureSession=function(r){this._isEnabled()?"string"!=typeof r.release?Gi.warn("Discarded session because of missing or non-string release"):(this._sendSession(r),r.update({init:!1})):Gi.warn("SDK not enabled, will not capture session.")},n.prototype.getDsn=function(){return this._dsn},n.prototype.getOptions=function(){return this._options},n.prototype.flush=function(r){var t=this;return this._isClientDoneProcessing(r).then(function(i){return t._getBackend().getTransport().close(r).then(function(o){return i&&o})})},n.prototype.close=function(r){var t=this;return this.flush(r).then(function(i){return t.getOptions().enabled=!1,i})},n.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=function(n){var r={};return function(n){var r=n.defaultIntegrations&&Fo(n.defaultIntegrations)||[],t=n.integrations,i=Fo(nW(r));Array.isArray(t)?i=Fo(i.filter(function(s){return t.every(function(u){return u.name!==s.name})}),nW(t)):"function"==typeof t&&(i=t(i),i=Array.isArray(i)?i:[i]);var o=i.map(function(s){return s.name}),a="Debug";return-1!==o.indexOf(a)&&i.push.apply(i,Fo(i.splice(o.indexOf(a),1))),i}(n).forEach(function(t){r[t.name]=t,function(n){-1===tW.indexOf(n.name)&&(n.setupOnce($2,As),tW.push(n.name),Gi.log("Integration installed: "+n.name))}(t)}),Object.defineProperty(r,"initialized",{value:!0}),r}(this._options))},n.prototype.getIntegration=function(r){try{return this._integrations[r.id]||null}catch(t){return Gi.warn("Cannot retrieve integration "+r.id+" from the current Client"),null}},n.prototype._updateSessionFromEvent=function(r,t){var i,o,a=!1,s=!1,u=t.exception&&t.exception.values;if(u){s=!0;try{for(var p=pv(u),m=p.next();!m.done;m=p.next()){var R=m.value.mechanism;if(R&&!1===R.handled){a=!0;break}}}catch(Y){i={error:Y}}finally{try{m&&!m.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}}var F=r.status===bp.Ok;(F&&0===r.errors||F&&a)&&(r.update(Vn(Vn({},a&&{status:bp.Crashed}),{errors:r.errors||Number(s||a)})),this.captureSession(r))},n.prototype._sendSession=function(r){this._getBackend().sendSession(r)},n.prototype._isClientDoneProcessing=function(r){var t=this;return new _l(function(i){var o=0,s=setInterval(function(){0==t._numProcessing?(clearInterval(s),i(!0)):(o+=1,r&&o>=r&&(clearInterval(s),i(!1)))},1)})},n.prototype._getBackend=function(){return this._backend},n.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},n.prototype._prepareEvent=function(r,t,i){var o=this,a=this.getOptions().normalizeDepth,s=void 0===a?3:a,u=Vn(Vn({},r),{event_id:r.event_id||(i&&i.event_id?i.event_id:(0,qr.DM)()),timestamp:r.timestamp||(0,qS.yW)()});this._applyClientOptions(u),this._applyIntegrationsMetadata(u);var p=t;i&&i.captureContext&&(p=X2.clone(p).update(i.captureContext));var m=_l.resolve(u);return p&&(m=p.applyToEvent(u,i)),m.then(function(b){return"number"==typeof s&&s>0?o._normalizeEvent(b,s):b})},n.prototype._normalizeEvent=function(r,t){if(!r)return null;var i=Vn(Vn(Vn(Vn(Vn({},r),r.breadcrumbs&&{breadcrumbs:r.breadcrumbs.map(function(s){return Vn(Vn({},s),s.data&&{data:py(s.data,t)})})}),r.user&&{user:py(r.user,t)}),r.contexts&&{contexts:py(r.contexts,t)}),r.extra&&{extra:py(r.extra,t)});r.contexts&&r.contexts.trace&&(i.contexts.trace=r.contexts.trace);var o=this.getOptions()._experiments;return(void 0===o?{}:o).ensureNoCircularStructures?py(i):i},n.prototype._applyClientOptions=function(r){var t=this.getOptions(),o=t.release,a=t.dist,s=t.maxValueLength,u=void 0===s?250:s;"environment"in r||(r.environment="environment"in t?t.environment:"production"),void 0===r.release&&void 0!==o&&(r.release=o),void 0===r.dist&&void 0!==a&&(r.dist=a),r.message&&(r.message=jS(r.message,u));var p=r.exception&&r.exception.values&&r.exception.values[0];p&&p.value&&(p.value=jS(p.value,u));var m=r.request;m&&m.url&&(m.url=jS(m.url,u))},n.prototype._applyIntegrationsMetadata=function(r){var t=Object.keys(this._integrations);t.length>0&&(r.sdk=r.sdk||{},r.sdk.integrations=Fo(r.sdk.integrations||[],t))},n.prototype._sendEvent=function(r){this._getBackend().sendEvent(r)},n.prototype._captureEvent=function(r,t,i){return this._processEvent(r,t,i).then(function(o){return o.event_id},function(o){Gi.error(o)})},n.prototype._processEvent=function(r,t,i){var o=this,a=this.getOptions(),s=a.beforeSend,u=a.sampleRate;if(!this._isEnabled())return _l.reject(new es("SDK not enabled, will not capture event."));var p="transaction"===r.type;return!p&&"number"==typeof u&&Math.random()>u?_l.reject(new es("Discarding event because it's not included in the random sample (sampling rate = "+u+")")):this._prepareEvent(r,i,t).then(function(m){if(null===m)throw new es("An event processor returned null, will not send event.");if(t&&t.data&&!0===t.data.__sentry__||p||!s)return m;var R=s(m,t);return o._ensureBeforeSendRv(R)}).then(function(m){if(null===m)throw new es("`beforeSend` returned `null`, will not send event.");var b=i&&i.getSession&&i.getSession();return!p&&b&&o._updateSessionFromEvent(b,m),o._sendEvent(m),m}).then(null,function(m){throw m instanceof es?m:(o.captureException(m,{data:{__sentry__:!0},originalException:m}),new es("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+m))})},n.prototype._process=function(r){var t=this;this._numProcessing+=1,r.then(function(i){return t._numProcessing-=1,i},function(i){return t._numProcessing-=1,i})},n.prototype._ensureBeforeSendRv=function(r){var t="`beforeSend` method has to return `null` or a valid event.";if(UL(r))return r.then(function(i){if(!dy(i)&&null!==i)throw new es(t);return i},function(i){throw new es("beforeSend rejected with "+i)});if(!dy(r)&&null!==r)throw new es(t);return r},n}();(function(n){n.Unknown="unknown",n.Skipped="skipped",n.Success="success",n.RateLimit="rate_limit",n.Invalid="invalid",n.Failed="failed"})(hv||(hv={})),function(n){n.fromHttpCode=function(t){return t>=200&&t<300?n.Success:429===t?n.RateLimit:t>=400&&t<500?n.Invalid:t>=500?n.Failed:n.Unknown}}(hv||(hv={}));var vd,Axe=function(){function n(){}return n.prototype.sendEvent=function(r){return _l.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:hv.Skipped})},n.prototype.close=function(r){return _l.resolve(!0)},n}(),Dxe=function(){function n(r){this._options=r,this._options.dsn||Gi.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return n.prototype.eventFromException=function(r,t){throw new es("Backend has to implement `eventFromException` method")},n.prototype.eventFromMessage=function(r,t,i){throw new es("Backend has to implement `eventFromMessage` method")},n.prototype.sendEvent=function(r){this._transport.sendEvent(r).then(null,function(t){Gi.error("Error while sending event: "+t)})},n.prototype.sendSession=function(r){this._transport.sendSession?this._transport.sendSession(r).then(null,function(t){Gi.error("Error while sending session: "+t)}):Gi.warn("Dropping session because custom transport doesn't implement sendSession")},n.prototype.getTransport=function(){return this._transport},n.prototype._setupTransport=function(){return new Axe},n}();(function(n){n.Fatal="fatal",n.Error="error",n.Warning="warning",n.Log="log",n.Info="info",n.Debug="debug",n.Critical="critical"})(vd||(vd={})),function(n){n.fromString=function(t){switch(t){case"debug":return n.Debug;case"info":return n.Info;case"warn":case"warning":return n.Warning;case"error":return n.Error;case"fatal":return n.Fatal;case"critical":return n.Critical;case"log":default:return n.Log}}}(vd||(vd={}));var Oxe=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Pxe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ixe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Rxe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Nxe=/\((\S*)(?::(\d+))(?::(\d+))\)/,Zxe=/Minified React error #\d+;/i;function YS(n){var r=null,t=0;n&&("number"==typeof n.framesToPop?t=n.framesToPop:Zxe.test(n.message)&&(t=1));try{if(r=function(n){if(!n||!n.stacktrace)return null;for(var s,t=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,o=n.stacktrace.split("\n"),a=[],u=0;u<o.length;u+=2){var p=null;(s=t.exec(o[u]))?p={url:s[2],func:s[3],args:[],line:+s[1],column:null}:(s=i.exec(o[u]))&&(p={url:s[6],func:s[3]||s[4],args:s[5]?s[5].split(","):[],line:+s[1],column:+s[2]}),p&&(!p.func&&p.line&&(p.func="?"),a.push(p))}return a.length?{message:QL(n),name:n.name,stack:a}:null}(n))return rW(r,t)}catch(i){}try{if(r=function(n){if(!n||!n.stack)return null;for(var o,a,s,r=[],t=n.stack.split("\n"),u=0;u<t.length;++u){if(a=Oxe.exec(t[u])){var p=a[2]&&0===a[2].indexOf("native");a[2]&&0===a[2].indexOf("eval")&&(o=Nxe.exec(a[2]))&&(a[2]=o[1],a[3]=o[2],a[4]=o[3]);var m=a[2]&&0===a[2].indexOf("address at ")?a[2].substr("address at ".length):a[2],b=a[1]||"?",R=-1!==b.indexOf("safari-extension"),F=-1!==b.indexOf("safari-web-extension");(R||F)&&(b=-1!==b.indexOf("@")?b.split("@")[0]:"?",m=R?"safari-extension:"+m:"safari-web-extension:"+m),s={url:m,func:b,args:p?[a[2]]:[],line:a[3]?+a[3]:null,column:a[4]?+a[4]:null}}else if(a=Ixe.exec(t[u]))s={url:a[2],func:a[1]||"?",args:[],line:+a[3],column:a[4]?+a[4]:null};else{if(!(a=Pxe.exec(t[u])))continue;a[3]&&a[3].indexOf(" > eval")>-1&&(o=Rxe.exec(a[3]))?(a[1]=a[1]||"eval",a[3]=o[1],a[4]=o[2],a[5]=""):0===u&&!a[5]&&void 0!==n.columnNumber&&(r[0].column=n.columnNumber+1),s={url:a[3],func:a[1]||"?",args:a[2]?a[2].split(","):[],line:a[4]?+a[4]:null,column:a[5]?+a[5]:null}}!s.func&&s.line&&(s.func="?"),r.push(s)}return r.length?{message:QL(n),name:n.name,stack:r}:null}(n))return rW(r,t)}catch(i){}return{message:QL(n),name:n&&n.name,stack:[],failed:!0}}function rW(n,r){try{return Vn(Vn({},n),{stack:n.stack.slice(r)})}catch(t){return n}}function QL(n){var r=n&&n.message;return r?r.error&&"string"==typeof r.error.message?r.error.message:r:"No error message"}function iW(n){var r=KL(n.stack),t={type:n.name,value:n.message};return r&&r.length&&(t.stacktrace={frames:r}),void 0===t.type&&""===t.value&&(t.value="Unrecoverable error caught"),t}function oW(n){return{exception:{values:[iW(n)]}}}function KL(n){if(!n||!n.length)return[];var r=n,t=r[0].func||"",i=r[r.length-1].func||"";return(-1!==t.indexOf("captureMessage")||-1!==t.indexOf("captureException"))&&(r=r.slice(1)),-1!==i.indexOf("sentryWrapped")&&(r=r.slice(0,-1)),r.slice(0,50).map(function(o){return{colno:null===o.column?void 0:o.column,filename:o.url||r[0].url,function:o.func||"?",in_app:!0,lineno:null===o.line?void 0:o.line}}).reverse()}function XL(n,r,t){var i;if(void 0===t&&(t={}),Lz(n)&&n.error)return oW(YS(n=n.error));if(Fz(n)||function(n){return"[object DOMException]"===Object.prototype.toString.call(n)}(n)){var a=n,s=a.name||(Fz(a)?"DOMError":"DOMException"),u=a.message?s+": "+a.message:s;return i=$L(u,r,t),(0,qr.Db)(i,u),"code"in a&&(i.tags=Vn(Vn({},i.tags),{"DOMException.code":""+a.code})),i}return Zz(n)?i=oW(YS(n)):dy(n)||BL(n)?(i=function(n,r,t){var i={exception:{values:[{type:BL(n)?n.constructor.name:t?"UnhandledRejection":"Error",value:"Non-Error "+(t?"promise rejection":"exception")+" captured with keys: "+QTe(n)}]},extra:{__serialized__:jz(n)}};if(r){var a=KL(YS(r).stack);i.stacktrace={frames:a}}return i}(n,r,t.rejection),(0,qr.EG)(i,{synthetic:!0}),i):(i=$L(n,r,t),(0,qr.Db)(i,""+n,void 0),(0,qr.EG)(i,{synthetic:!0}),i)}function $L(n,r,t){void 0===t&&(t={});var i={message:n};if(t.attachStacktrace&&r){var a=KL(YS(r).stack);i.stacktrace={frames:a}}return i}function aW(n){if(n.metadata&&n.metadata.sdk){var r=n.metadata.sdk;return{name:r.name,version:r.version}}}function qxe(n,r){return r&&(n.sdk=n.sdk||{},n.sdk.name=n.sdk.name||r.name,n.sdk.version=n.sdk.version||r.version,n.sdk.integrations=Fo(n.sdk.integrations||[],r.integrations||[]),n.sdk.packages=Fo(n.sdk.packages||[],r.packages||[])),n}function sW(n,r){var t=aW(r),o="aggregates"in n?"sessions":"session";return{body:JSON.stringify(Vn(Vn({sent_at:(new Date).toISOString()},t&&{sdk:t}),r.forceEnvelope()&&{dsn:r.getDsn().toString()}))+"\n"+JSON.stringify({type:o})+"\n"+JSON.stringify(n),type:o,url:r.getEnvelopeEndpointWithUrlEncodedAuth()}}function lW(n,r){var t=aW(r),i=n.type||"event",o="transaction"===i||r.forceEnvelope(),a=n.debug_meta||{},s=a.transactionSampling,u=function(n,r){var t={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&r.indexOf(i)<0&&(t[i]=n[i]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(n);o<i.length;o++)r.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(n,i[o])&&(t[i[o]]=n[i[o]])}return t}(a,["transactionSampling"]),p=s||{},m=p.method,b=p.rate;0===Object.keys(u).length?delete n.debug_meta:n.debug_meta=u;var R={body:JSON.stringify(t?qxe(n,r.metadata.sdk):n),type:i,url:o?r.getEnvelopeEndpointWithUrlEncodedAuth():r.getStoreEndpointWithUrlEncodedAuth()};if(o){var F=JSON.stringify(Vn(Vn({event_id:n.event_id,sent_at:(new Date).toISOString()},t&&{sdk:t}),r.forceEnvelope()&&{dsn:r.getDsn().toString()})),G=JSON.stringify({type:i,sample_rates:[{id:m,rate:b}]});R.body=F+"\n"+G+"\n"+R.body}return R}var cW=function(){function n(r,t,i){void 0===t&&(t={}),this.dsn=r,this._dsnObject=new eW(r),this.metadata=t,this._tunnel=i}return n.prototype.getDsn=function(){return this._dsnObject},n.prototype.forceEnvelope=function(){return!!this._tunnel},n.prototype.getBaseApiEndpoint=function(){var r=this.getDsn();return(r.protocol?r.protocol+":":"")+"//"+r.host+(r.port?":"+r.port:"")+(r.path?"/"+r.path:"")+"/api/"},n.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},n.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},n.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this.forceEnvelope()?this._tunnel:this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},n.prototype.getStoreEndpointPath=function(){var r=this.getDsn();return(r.path?"/"+r.path:"")+"/api/"+r.projectId+"/store/"},n.prototype.getRequestHeaders=function(r,t){var i=this.getDsn(),o=["Sentry sentry_version=7"];return o.push("sentry_client="+r+"/"+t),o.push("sentry_key="+i.publicKey),i.pass&&o.push("sentry_secret="+i.pass),{"Content-Type":"application/json","X-Sentry-Auth":o.join(", ")}},n.prototype.getReportDialogEndpoint=function(r){void 0===r&&(r={});var t=this.getDsn(),i=this.getBaseApiEndpoint()+"embed/error-page/",o=[];for(var a in o.push("dsn="+t.toString()),r)if("dsn"!==a)if("user"===a){if(!r.user)continue;r.user.name&&o.push("name="+encodeURIComponent(r.user.name)),r.user.email&&o.push("email="+encodeURIComponent(r.user.email))}else o.push(encodeURIComponent(a)+"="+encodeURIComponent(r[a]));return o.length?i+"?"+o.join("&"):i},n.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},n.prototype._getIngestEndpoint=function(r){return this._tunnel?this._tunnel:""+this.getBaseApiEndpoint()+this.getDsn().projectId+"/"+r+"/"},n.prototype._encodedAuth=function(){return function(n){return Object.keys(n).map(function(r){return encodeURIComponent(r)+"="+encodeURIComponent(n[r])}).join("&")}({sentry_key:this.getDsn().publicKey,sentry_version:"7"})},n}(),jxe=function(){function n(r){this._limit=r,this._buffer=[]}return n.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},n.prototype.add=function(r){var t=this;if(!this.isReady())return _l.reject(new es("Not adding Promise due to buffer limit reached."));var i=r();return-1===this._buffer.indexOf(i)&&this._buffer.push(i),i.then(function(){return t.remove(i)}).then(null,function(){return t.remove(i).then(null,function(){})}),i},n.prototype.remove=function(r){return this._buffer.splice(this._buffer.indexOf(r),1)[0]},n.prototype.length=function(){return this._buffer.length},n.prototype.drain=function(r){var t=this;return new _l(function(i){var o=setTimeout(function(){r&&r>0&&i(!1)},r);_l.all(t._buffer).then(function(){clearTimeout(o),i(!0)}).then(null,function(){i(!0)})})},n}(),zxe={event:"error",transaction:"transaction",session:"session",attachment:"attachment"},dW=function(){function n(r){this.options=r,this._buffer=new jxe(30),this._rateLimits={},this._api=new cW(r.dsn,r._metadata,r.tunnel),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return n.prototype.sendEvent=function(r){throw new es("Transport Class has to implement `sendEvent` method")},n.prototype.close=function(r){return this._buffer.drain(r)},n.prototype._handleResponse=function(r){var t=r.requestType,i=r.response,o=r.headers,a=r.resolve,s=r.reject,u=hv.fromHttpCode(i.status);this._handleRateLimit(o)&&Gi.warn("Too many "+t+" requests, backing off until: "+this._disabledUntil(t)),u!==hv.Success?s(i):a({status:u})},n.prototype._disabledUntil=function(r){return this._rateLimits[zxe[r]]||this._rateLimits.all},n.prototype._isRateLimited=function(r){return this._disabledUntil(r)>new Date(Date.now())},n.prototype._handleRateLimit=function(r){var t,i,o,a,s=Date.now(),u=r["x-sentry-rate-limits"],p=r["retry-after"];if(u){try{for(var m=pv(u.trim().split(",")),b=m.next();!b.done;b=m.next()){var F=b.value.split(":",2),G=parseInt(F[0],10),Y=1e3*(isNaN(G)?60:G);try{for(var ee=(o=void 0,pv(F[1].split(";"))),pe=ee.next();!pe.done;pe=ee.next())this._rateLimits[pe.value||"all"]=new Date(s+Y)}catch(lt){o={error:lt}}finally{try{pe&&!pe.done&&(a=ee.return)&&a.call(ee)}finally{if(o)throw o.error}}}}catch(lt){t={error:lt}}finally{try{b&&!b.done&&(i=m.return)&&i.call(m)}finally{if(t)throw t.error}}return!0}return!!p&&(this._rateLimits.all=new Date(s+(0,qr.JY)(s,p)),!0)},n}(),Gxe=function(n){function r(t,i){void 0===i&&(i=function(){var n,r,t=(0,qr.Rf)();if(GL(t.fetch))return t.fetch.bind(t);var i=t.document,o=t.fetch;if("function"==typeof(null===(n=i)||void 0===n?void 0:n.createElement))try{var a=i.createElement("iframe");a.hidden=!0,i.head.appendChild(a),(null===(r=a.contentWindow)||void 0===r?void 0:r.fetch)&&(o=a.contentWindow.fetch),i.head.removeChild(a)}catch(s){Gi.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",s)}return o.bind(t)}());var o=n.call(this,t)||this;return o._fetch=i,o}return VS(r,n),r.prototype.sendEvent=function(t){return this._sendRequest(lW(t,this._api),t)},r.prototype.sendSession=function(t){return this._sendRequest(sW(t,this._api),t)},r.prototype._sendRequest=function(t,i){var o=this;if(this._isRateLimited(t.type))return Promise.reject({event:i,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429});var a={body:t.body,method:"POST",referrerPolicy:axe()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(a,this.options.fetchParameters),void 0!==this.options.headers&&(a.headers=this.options.headers),this._buffer.add(function(){return new _l(function(s,u){o._fetch(t.url,a).then(function(p){var m={"x-sentry-rate-limits":p.headers.get("X-Sentry-Rate-Limits"),"retry-after":p.headers.get("Retry-After")};o._handleResponse({requestType:t.type,response:p,headers:m,resolve:s,reject:u})}).catch(u)})})},r}(dW),Yxe=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return VS(r,n),r.prototype.sendEvent=function(t){return this._sendRequest(lW(t,this._api),t)},r.prototype.sendSession=function(t){return this._sendRequest(sW(t,this._api),t)},r.prototype._sendRequest=function(t,i){var o=this;return this._isRateLimited(t.type)?Promise.reject({event:i,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429}):this._buffer.add(function(){return new _l(function(a,s){var u=new XMLHttpRequest;for(var p in u.onreadystatechange=function(){if(4===u.readyState){var m={"x-sentry-rate-limits":u.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":u.getResponseHeader("Retry-After")};o._handleResponse({requestType:t.type,response:u,headers:m,resolve:a,reject:s})}},u.open("POST",t.url),o.options.headers)o.options.headers.hasOwnProperty(p)&&u.setRequestHeader(p,o.options.headers[p]);u.send(t.body)})})},r}(dW),Jxe=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return VS(r,n),r.prototype.eventFromException=function(t,i){return function(n,r,t){var o=XL(r,t&&t.syntheticException||void 0,{attachStacktrace:n.attachStacktrace});return(0,qr.EG)(o,{handled:!0,type:"generic"}),o.level=vd.Error,t&&t.event_id&&(o.event_id=t.event_id),_l.resolve(o)}(this._options,t,i)},r.prototype.eventFromMessage=function(t,i,o){return void 0===i&&(i=vd.Info),function(n,r,t,i){void 0===t&&(t=vd.Info);var a=$L(r,i&&i.syntheticException||void 0,{attachStacktrace:n.attachStacktrace});return a.level=t,i&&i.event_id&&(a.event_id=i.event_id),_l.resolve(a)}(this._options,t,i,o)},r.prototype._setupTransport=function(){if(!this._options.dsn)return n.prototype._setupTransport.call(this);var t=Vn(Vn({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,_metadata:this._options._metadata});return this._options.transport?new this._options.transport(t):WL()?new Gxe(t):new Yxe(t)},r}(Dxe),eF=0;function pW(){return eF>0}function Qxe(){eF+=1,setTimeout(function(){eF-=1})}function hy(n,r,t){if(void 0===r&&(r={}),"function"!=typeof n)return n;try{if(n.__sentry__)return n;if(n.__sentry_wrapped__)return n.__sentry_wrapped__}catch(s){return n}var i=function(){var u=Array.prototype.slice.call(arguments);try{t&&"function"==typeof t&&t.apply(this,arguments);var p=u.map(function(m){return hy(m,r)});return n.handleEvent?n.handleEvent.apply(this,p):n.apply(this,p)}catch(m){throw Qxe(),exe(function(b){b.addEventProcessor(function(R){var F=Vn({},R);return r.mechanism&&((0,qr.Db)(F,void 0,void 0),(0,qr.EG)(F,r.mechanism)),F.extra=Vn(Vn({},F.extra),{arguments:u}),F}),Jz(m)}),m}};try{for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[o]=n[o])}catch(s){}n.prototype=n.prototype||{},i.prototype=n.prototype,Object.defineProperty(n,"__sentry_wrapped__",{enumerable:!1,value:i}),Object.defineProperties(i,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:n}});try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:function(){return n.name}})}catch(s){}return i}var fW=function(){function n(r){this.name=n.id,this._options=Vn({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},r)}return n.prototype.addSentryBreadcrumb=function(r){!this._options.sentry||As().addBreadcrumb({category:"sentry."+("transaction"===r.type?"transaction":"event"),event_id:r.event_id,level:r.level,message:(0,qr.jH)(r)},{event:r})},n.prototype.setupOnce=function(){var r=this;this._options.console&&ih({callback:function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r._consoleBreadcrumb.apply(r,Fo(i))},type:"console"}),this._options.dom&&ih({callback:function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r._domBreadcrumb.apply(r,Fo(i))},type:"dom"}),this._options.xhr&&ih({callback:function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r._xhrBreadcrumb.apply(r,Fo(i))},type:"xhr"}),this._options.fetch&&ih({callback:function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r._fetchBreadcrumb.apply(r,Fo(i))},type:"fetch"}),this._options.history&&ih({callback:function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r._historyBreadcrumb.apply(r,Fo(i))},type:"history"})},n.prototype._consoleBreadcrumb=function(r){var t={category:"console",data:{arguments:r.args,logger:"console"},level:vd.fromString(r.level),message:Vz(r.args," ")};if("assert"===r.level){if(!1!==r.args[0])return;t.message="Assertion failed: "+(Vz(r.args.slice(1)," ")||"console.assert"),t.data.arguments=r.args.slice(1)}As().addBreadcrumb(t,{input:r.args,level:r.level})},n.prototype._domBreadcrumb=function(r){var t,i="object"==typeof this._options.dom?this._options.dom.serializeAttribute:void 0;"string"==typeof i&&(i=[i]);try{t=eD(r.event.target?r.event.target:r.event,i)}catch(o){t="<unknown>"}0!==t.length&&As().addBreadcrumb({category:"ui."+r.name,message:t},{event:r.event,name:r.name,global:r.global})},n.prototype._xhrBreadcrumb=function(r){if(r.endTimestamp){if(r.xhr.__sentry_own_request__)return;var t=r.xhr.__sentry_xhr__||{},i=t.method,o=t.url,a=t.status_code,s=t.body;As().addBreadcrumb({category:"xhr",data:{method:i,url:o,status_code:a},type:"http"},{xhr:r.xhr,input:s})}},n.prototype._fetchBreadcrumb=function(r){!r.endTimestamp||r.fetchData.url.match(/sentry_key/)&&"POST"===r.fetchData.method||(r.error?As().addBreadcrumb({category:"fetch",data:r.fetchData,level:vd.Error,type:"http"},{data:r.error,input:r.args}):As().addBreadcrumb({category:"fetch",data:Vn(Vn({},r.fetchData),{status_code:r.response.status}),type:"http"},{input:r.args,response:r.response}))},n.prototype._historyBreadcrumb=function(r){var t=(0,qr.Rf)(),i=r.from,o=r.to,a=(0,qr.en)(t.location.href),s=(0,qr.en)(i),u=(0,qr.en)(o);s.path||(s=a),a.protocol===u.protocol&&a.host===u.host&&(o=u.relative),a.protocol===s.protocol&&a.host===s.host&&(i=s.relative),As().addBreadcrumb({category:"navigation",data:{from:i,to:o}})},n.id="Breadcrumbs",n}(),Xxe=function(n){function r(t){return void 0===t&&(t={}),t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:"6.12.0"}],version:"6.12.0"},n.call(this,Jxe,t)||this}return VS(r,n),r.prototype.showReportDialog=function(t){if(void 0===t&&(t={}),(0,qr.Rf)().document){if(!this._isEnabled())return void Gi.error("Trying to call showReportDialog with Sentry Client disabled");!function(n){if(void 0===n&&(n={}),n.eventId)if(n.dsn){var r=document.createElement("script");r.async=!0,r.src=new cW(n.dsn).getReportDialogEndpoint(n),n.onLoad&&(r.onload=n.onLoad),(document.head||document.body).appendChild(r)}else Gi.error("Missing dsn option in showReportDialog call");else Gi.error("Missing eventId option in showReportDialog call")}(Vn(Vn({},t),{dsn:t.dsn||this.getDsn()}))}},r.prototype._prepareEvent=function(t,i,o){return t.platform=t.platform||"javascript",n.prototype._prepareEvent.call(this,t,i,o)},r.prototype._sendEvent=function(t){var i=this.getIntegration(fW);i&&i.addSentryBreadcrumb(t),n.prototype._sendEvent.call(this,t)},r}(Mxe),$xe=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],ewe=function(){function n(r){this.name=n.id,this._options=Vn({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},r)}return n.prototype.setupOnce=function(){var r=(0,qr.Rf)();this._options.setTimeout&&Ms(r,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&Ms(r,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&Ms(r,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in r&&Ms(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:$xe).forEach(this._wrapEventTarget.bind(this))},n.prototype._wrapTimeFunction=function(r){return function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var o=t[0];return t[0]=hy(o,{mechanism:{data:{function:nh(r)},handled:!0,type:"instrument"}}),r.apply(this,t)}},n.prototype._wrapRAF=function(r){return function(t){return r.call(this,hy(t,{mechanism:{data:{function:"requestAnimationFrame",handler:nh(r)},handled:!0,type:"instrument"}}))}},n.prototype._wrapEventTarget=function(r){var t=(0,qr.Rf)(),i=t[r]&&t[r].prototype;!i||!i.hasOwnProperty||!i.hasOwnProperty("addEventListener")||(Ms(i,"addEventListener",function(o){return function(a,s,u){try{"function"==typeof s.handleEvent&&(s.handleEvent=hy(s.handleEvent.bind(s),{mechanism:{data:{function:"handleEvent",handler:nh(s),target:r},handled:!0,type:"instrument"}}))}catch(p){}return o.call(this,a,hy(s,{mechanism:{data:{function:"addEventListener",handler:nh(s),target:r},handled:!0,type:"instrument"}}),u)}}),Ms(i,"removeEventListener",function(o){return function(a,s,u){var p,m=s;try{var b=null===(p=m)||void 0===p?void 0:p.__sentry_wrapped__;b&&o.call(this,a,b,u)}catch(R){}return o.call(this,a,m,u)}}))},n.prototype._wrapXHR=function(r){return function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var o=this,a=["onload","onerror","onprogress","onreadystatechange"];return a.forEach(function(s){s in o&&"function"==typeof o[s]&&Ms(o,s,function(u){var p={mechanism:{data:{function:s,handler:nh(u)},handled:!0,type:"instrument"}};return u.__sentry_original__&&(p.mechanism.data.handler=nh(u.__sentry_original__)),hy(u,p)})}),r.apply(this,t)}},n.id="TryCatch",n}(),twe=function(){function n(r){this.name=n.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=Vn({onerror:!0,onunhandledrejection:!0},r)}return n.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(Gi.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(Gi.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},n.prototype._installGlobalOnErrorHandler=function(){var r=this;this._onErrorHandlerInstalled||(ih({callback:function(i){var o=i.error,a=As(),s=a.getIntegration(n),u=o&&!0===o.__sentry_own_request__;if(s&&!pW()&&!u){var p=a.getClient(),m=void 0===o&&cy(i.msg)?r._eventFromIncompleteOnError(i.msg,i.url,i.line,i.column):r._enhanceEventWithInitialFrame(XL(o||i.msg,void 0,{attachStacktrace:p&&p.getOptions().attachStacktrace,rejection:!1}),i.url,i.line,i.column);(0,qr.EG)(m,{handled:!1,type:"onerror"}),a.captureEvent(m,{originalException:o})}},type:"error"}),this._onErrorHandlerInstalled=!0)},n.prototype._installGlobalOnUnhandledRejectionHandler=function(){var r=this;this._onUnhandledRejectionHandlerInstalled||(ih({callback:function(i){var o=i;try{"reason"in i?o=i.reason:"detail"in i&&"reason"in i.detail&&(o=i.detail.reason)}catch(b){}var a=As(),s=a.getIntegration(n),u=o&&!0===o.__sentry_own_request__;if(!s||pW()||u)return!0;var p=a.getClient(),m=K2(o)?r._eventFromRejectionWithPrimitive(o):XL(o,void 0,{attachStacktrace:p&&p.getOptions().attachStacktrace,rejection:!0});m.level=vd.Error,(0,qr.EG)(m,{handled:!1,type:"onunhandledrejection"}),a.captureEvent(m,{originalException:o})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},n.prototype._eventFromIncompleteOnError=function(r,t,i,o){var u,s=Lz(r)?r.message:r,p=s.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return p&&(u=p[1],s=p[2]),this._enhanceEventWithInitialFrame({exception:{values:[{type:u||"Error",value:s}]}},t,i,o)},n.prototype._eventFromRejectionWithPrimitive=function(r){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(r)}]}}},n.prototype._enhanceEventWithInitialFrame=function(r,t,i,o){r.exception=r.exception||{},r.exception.values=r.exception.values||[],r.exception.values[0]=r.exception.values[0]||{},r.exception.values[0].stacktrace=r.exception.values[0].stacktrace||{},r.exception.values[0].stacktrace.frames=r.exception.values[0].stacktrace.frames||[];var a=isNaN(parseInt(o,10))?void 0:o,s=isNaN(parseInt(i,10))?void 0:i,u=cy(t)&&t.length>0?t:(0,qr.l4)();return 0===r.exception.values[0].stacktrace.frames.length&&r.exception.values[0].stacktrace.frames.push({colno:a,filename:u,function:"?",in_app:!0,lineno:s}),r},n.id="GlobalHandlers",n}(),iwe=function(){function n(r){void 0===r&&(r={}),this.name=n.id,this._key=r.key||"cause",this._limit=r.limit||5}return n.prototype.setupOnce=function(){$2(function(r,t){var i=As().getIntegration(n);if(i){var o=i._handler&&i._handler.bind(i);return"function"==typeof o?o(r,t):r}return r})},n.prototype._handler=function(r,t){if(!(r.exception&&r.exception.values&&t&&th(t.originalException,Error)))return r;var i=this._walkErrorTree(t.originalException,this._key);return r.exception.values=Fo(i,r.exception.values),r},n.prototype._walkErrorTree=function(r,t,i){if(void 0===i&&(i=[]),!th(r[t],Error)||i.length+1>=this._limit)return i;var a=iW(YS(r[t]));return this._walkErrorTree(r[t],t,Fo([a],i))},n.id="LinkedErrors",n}(),owe=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(r,t){r(function(i){var o=t().getIntegration(n);if(o){try{if(o._shouldDropEvent(i,o._previousEvent))return Gi.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(a){return o._previousEvent=i}return o._previousEvent=i}return i})},n.prototype._shouldDropEvent=function(r,t){return!(!t||!this._isSameMessageEvent(r,t)&&!this._isSameExceptionEvent(r,t))},n.prototype._isSameMessageEvent=function(r,t){var i=r.message,o=t.message;return!(!i&&!o||i&&!o||!i&&o||i!==o||!this._isSameFingerprint(r,t)||!this._isSameStacktrace(r,t))},n.prototype._getFramesFromEvent=function(r){var t=r.exception;if(t)try{return t.values[0].stacktrace.frames}catch(i){return}else if(r.stacktrace)return r.stacktrace.frames},n.prototype._isSameStacktrace=function(r,t){var i=this._getFramesFromEvent(r),o=this._getFramesFromEvent(t);if(!i&&!o)return!0;if(i&&!o||!i&&o||(o=o).length!==(i=i).length)return!1;for(var a=0;a<o.length;a++){var s=o[a],u=i[a];if(s.filename!==u.filename||s.lineno!==u.lineno||s.colno!==u.colno||s.function!==u.function)return!1}return!0},n.prototype._getExceptionFromEvent=function(r){return r.exception&&r.exception.values&&r.exception.values[0]},n.prototype._isSameExceptionEvent=function(r,t){var i=this._getExceptionFromEvent(t),o=this._getExceptionFromEvent(r);return!!(i&&o&&i.type===o.type&&i.value===o.value&&this._isSameFingerprint(r,t)&&this._isSameStacktrace(r,t))},n.prototype._isSameFingerprint=function(r,t){var i=r.fingerprint,o=t.fingerprint;if(!i&&!o)return!0;if(i&&!o||!i&&o)return!1;i=i,o=o;try{return i.join("")===o.join("")}catch(a){return!1}},n.id="Dedupe",n}(),my=(0,qr.Rf)(),awe=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){$2(function(r){var t,i,o;if(As().getIntegration(n)){if(!my.navigator&&!my.location&&!my.document)return r;var a=(null===(t=r.request)||void 0===t?void 0:t.url)||(null===(i=my.location)||void 0===i?void 0:i.href),s=(my.document||{}).referrer,u=(my.navigator||{}).userAgent,p=Vn(Vn(Vn({},null===(o=r.request)||void 0===o?void 0:o.headers),s&&{Referer:s}),u&&{"User-Agent":u}),m=Vn(Vn({},a&&{url:a}),{headers:p});return Vn(Vn({},r),{request:m})}return r})},n.id="UserAgent",n}(),swe=[new rxe,new ixe,new ewe,new fW,new twe,new iwe,new owe,new awe];!function(n){if(void 0===n&&(n={}),void 0===n.defaultIntegrations&&(n.defaultIntegrations=swe),void 0===n.release){var r=(0,qr.Rf)();r.SENTRY_RELEASE&&r.SENTRY_RELEASE.id&&(n.release=r.SENTRY_RELEASE.id)}void 0===n.autoSessionTracking&&(n.autoSessionTracking=!0),function(n,r){var t;!0===r.debug&&Gi.enable();var i=As();null===(t=i.getScope())||void 0===t||t.update(r.initialScope);var o=new n(r);i.bindClient(o)}(Xxe,n),n.autoSessionTracking&&function(){if(void 0!==(0,qr.Rf)().document){var t=As();"function"!=typeof t.startSession||"function"!=typeof t.captureSession||(t.startSession({ignoreDuration:!0}),t.captureSession(),ih({callback:function(o){var a=o.from;void 0===a||a===o.to||(t.startSession({ignoreDuration:!0}),t.captureSession())},type:"history"}))}else Gi.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}()}({dsn:"https://d8be3a98530f49eb90968ff396db326c@o19455.ingest.sentry.io/842726"});var pwe=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Qn.ZT)(r,n),r.prototype.handleError=function(t){if(t.error&&t.error.status&&!(400===t.error.status||403===t.error.status||404===t.error.status||409===t.error.status)&&n.prototype.handleError.call(this,t),t){var i=this.injector.get(er);t.error&&t.error.message?i.error(t.error.message):t.message?i.error(t.message):t.error&&i.error(t.error)}},r.\u0275fac=function(){var t;return function(o){return(t||(t=e.n5z(r)))(o||r)}}(),r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r}(function(){function n(r){this.injector=r}return n.prototype.extractError=function(r){return r&&r.ngOriginalError&&(r=r.ngOriginalError),"string"==typeof r||r instanceof Error?r:r instanceof zc.UA?r.error instanceof Error?r.error:r.error instanceof ErrorEvent?r.error.message:"string"==typeof r.error?"Server returned code "+r.status+' with body "'+r.error+'"':r.message:null},n.prototype.handleError=function(r){var t=this.extractError(r)||"Handled unknown error";Jz(t)},n.\u0275fac=function(t){return new(t||n)(e.LFG(e.zs3))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}()),fwe=function(){function n(){}return n.prototype.transform=function(r,t){return r?t?(t=t.toLowerCase(),r.projectDatabase.data.filter(function(i){return i.filename.toLowerCase().includes(t)})):r:[]},n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=e.Yjl({name:"projectsfilter",type:n,pure:!0}),n}(),xwe=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[un.uc,un.BQ],un.uc,un.BQ]}),n}(),Awe=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({}),n}(),Fwe=[Zye,c2,Qq,Aae,xTe,EZ,Hn.lN,Zae,Zse,$le,GCe,Noe,dq,Xce,Tse,cse,tbe,fi.LD,uq,Nce,dle,xwe,ko.Nh,function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[Awe,un.BQ],un.BQ]}),n}(),Lj,uTe],_W=function(){function n(r,t){r.events.subscribe(function(i){t.getStatisticsSettings()&&i instanceof Ym&&(gtag("set","page",i.url),gtag("send","pageview"))})}return n.\u0275fac=function(t){return new(t||n)(e.LFG(Er),e.LFG(yp.g))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Bwe=function(){function n(r){this.httpServer=r}return n.prototype.get=function(r){return this.httpServer.get(r,"/settings")},n.prototype.update=function(r,t){return this.httpServer.post(r,"/settings",t)},n.prototype.getSettingsForQemu=function(r){return this.httpServer.get(r,"/settings/qemu")},n.prototype.updateSettingsForQemu=function(r,t){return this.httpServer.put(r,"/settings/qemu",{enable_hardware_acceleration:t.enable_hardware_acceleration,require_hardware_acceleration:t.require_hardware_acceleration})},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Uwe=function(){function n(r){this.httpServer=r}return n.prototype.getTemplates=function(r){return this.httpServer.get(r,"/templates")},n.prototype.getTemplate=function(r,t){return this.httpServer.get(r,"/templates/"+t)},n.prototype.addTemplate=function(r,t){return this.httpServer.post(r,"/templates",t)},n.prototype.saveTemplate=function(r,t){return this.httpServer.put(r,"/templates/"+t.template_id,t)},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Hwe=function(){function n(r){this._googleAnalyticsService=r}return n.\u0275fac=function(t){return new(t||n)(e.LFG(_W))},n.\u0275mod=e.oAB({type:n,bootstrap:[OTe]}),n.\u0275inj=e.cJS({providers:[yp.g,{provide:e.qLn,useClass:pwe},Vne,xz,fd.Y,TS,Hr,Q_,Jr,uc,ks,Qo.wh,W2,PL,er,zf,EL,Kf.F,Ea.G,LTe,yz,sc,Ij,Es,Qo.gc,p2,_p,NS,Bwe,vp,T2,ic,C2,ud,nv,Dq,Aq,Mq,_2,y2,GZ,x2,Gf,S2,YZ,ev,wS,rv,qZ,z2.p,IL,ay,NL,wz,dz,L2,_L,Ou,Hj,oc.X,Uwe,bL,pz,hj,rc.f,_W,hd,ZL,Iz,B.Dx,Gj,kz],imports:[[B.b2,zc.JF,ATe,ne.u5,ne.UX,Cs.PW,bC,ZTe,gre,pre,r4,mE.ym,$g,Hk,mre,Fwe,sre.forRoot(),so.U8]]}),n}();e.B6R(Tz,[An,ne._Y,ne.JL,ne.F,Hn.KE,dr,ne.Fj,ne.JJ,ne.On,$l,BS,fl,pl,hl,Yj,dl,ml,W_,At.O5,Xa,ur,eu,nu,tu,ru],[fwe]),(0,e.G48)(),B.q6().bootstrapModule(Hwe).then(function(n){var r=n.injector.get(e.z2F);(0,B.HJ)(r.components[0])}).catch(function(n){return console.log(n)})},50988:function(ce,q,f){"use strict";function U(B,V){(null==V||V>B.length)&&(V=B.length);for(var Z=0,T=new Array(V);Z<V;Z++)T[Z]=B[Z];return T}f.d(q,{Z:function(){return U}})},10061:function(ce,q,f){"use strict";function U(B){if(Array.isArray(B))return B}f.d(q,{Z:function(){return U}})},88009:function(ce,q,f){"use strict";function U(B){if(void 0===B)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}f.d(q,{Z:function(){return U}})},18967:function(ce,q,f){"use strict";function U(B,V){if(!(B instanceof V))throw new TypeError("Cannot call a class as a function")}f.d(q,{Z:function(){return U}})},99740:function(ce,q,f){"use strict";f.d(q,{Z:function(){return V}});var U=f(35470),B=f(1854);function V(Z,T,I){return(V=(0,B.Z)()?Reflect.construct:function(v,P,D){var M=[null];M.push.apply(M,P);var y=new(Function.bind.apply(v,M));return D&&(0,U.Z)(y,D.prototype),y}).apply(null,arguments)}},14105:function(ce,q,f){"use strict";function U(V,Z){for(var T=0;T<Z.length;T++){var I=Z[T];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(V,I.key,I)}}function B(V,Z,T){return Z&&U(V.prototype,Z),T&&U(V,T),V}f.d(q,{Z:function(){return B}})},36683:function(ce,q,f){"use strict";f.d(q,{Z:function(){return B}});var U=f(9087);function B(V,Z){var T="undefined"!=typeof Symbol&&V[Symbol.iterator]||V["@@iterator"];if(!T){if(Array.isArray(V)||(T=(0,U.Z)(V))||Z&&V&&"number"==typeof V.length){T&&(V=T);var I=0,C=function(){};return{s:C,n:function(){return I>=V.length?{done:!0}:{done:!1,value:V[I++]}},e:function(A){throw A},f:C}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var D,v=!0,P=!1;return{s:function(){T=T.call(V)},n:function(){var A=T.next();return v=A.done,A},e:function(A){P=!0,D=A},f:function(){try{!v&&null!=T.return&&T.return()}finally{if(P)throw D}}}}},97154:function(ce,q,f){"use strict";f.d(q,{Z:function(){return Z}});var U=f(89200),B=f(1854),V=f(70455);function Z(T){var I=(0,B.Z)();return function(){var P,v=(0,U.Z)(T);if(I){var D=(0,U.Z)(this).constructor;P=Reflect.construct(v,arguments,D)}else P=v.apply(this,arguments);return(0,V.Z)(this,P)}}},42515:function(ce,q,f){"use strict";function U(B,V,Z){return V in B?Object.defineProperty(B,V,{value:Z,enumerable:!0,configurable:!0,writable:!0}):B[V]=Z,B}f.d(q,{Z:function(){return U}})},20901:function(ce,q,f){"use strict";f.d(q,{Z:function(){return V}});var U=f(89200);function V(Z,T,I){return(V="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(v,P,D){var M=function(Z,T){for(;!Object.prototype.hasOwnProperty.call(Z,T)&&null!==(Z=(0,U.Z)(Z)););return Z}(v,P);if(M){var A=Object.getOwnPropertyDescriptor(M,P);return A.get?A.get.call(D):A.value}})(Z,T,I||Z)}},89200:function(ce,q,f){"use strict";function U(B){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(Z){return Z.__proto__||Object.getPrototypeOf(Z)})(B)}f.d(q,{Z:function(){return U}})},10509:function(ce,q,f){"use strict";f.d(q,{Z:function(){return B}});var U=f(35470);function B(V,Z){if("function"!=typeof Z&&null!==Z)throw new TypeError("Super expression must either be null or a function");V.prototype=Object.create(Z&&Z.prototype,{constructor:{value:V,writable:!0,configurable:!0}}),Z&&(0,U.Z)(V,Z)}},1854:function(ce,q,f){"use strict";function U(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(B){return!1}}f.d(q,{Z:function(){return U}})},16373:function(ce,q,f){"use strict";function U(B){if("undefined"!=typeof Symbol&&null!=B[Symbol.iterator]||null!=B["@@iterator"])return Array.from(B)}f.d(q,{Z:function(){return U}})},12486:function(ce,q,f){"use strict";function U(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}f.d(q,{Z:function(){return U}})},70455:function(ce,q,f){"use strict";function U(Z){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(I){return typeof I}:function(I){return I&&"function"==typeof Symbol&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I})(Z)}f.d(q,{Z:function(){return V}});var B=f(88009);function V(Z,T){return!T||"object"!==U(T)&&"function"!=typeof T?(0,B.Z)(Z):T}},35470:function(ce,q,f){"use strict";function U(B,V){return(U=Object.setPrototypeOf||function(T,I){return T.__proto__=I,T})(B,V)}f.d(q,{Z:function(){return U}})},27235:function(ce,q,f){"use strict";f.d(q,{Z:function(){return T}});var U=f(10061),V=f(9087),Z=f(12486);function T(I,C){return(0,U.Z)(I)||function(I,C){var v=null==I?null:"undefined"!=typeof Symbol&&I[Symbol.iterator]||I["@@iterator"];if(null!=v){var A,y,P=[],D=!0,M=!1;try{for(v=v.call(I);!(D=(A=v.next()).done)&&(P.push(A.value),!C||P.length!==C);D=!0);}catch(g){M=!0,y=g}finally{try{!D&&null!=v.return&&v.return()}finally{if(M)throw y}}return P}}(I,C)||(0,V.Z)(I,C)||(0,Z.Z)()}},99890:function(ce,q,f){"use strict";f.d(q,{Z:function(){return T}});var U=f(10061),B=f(16373),V=f(9087),Z=f(12486);function T(I){return(0,U.Z)(I)||(0,B.Z)(I)||(0,V.Z)(I)||(0,Z.Z)()}},10629:function(ce,q,f){"use strict";f.d(q,{Z:function(){return I}});var U=f(50988),V=f(16373),Z=f(9087);function I(C){return function(C){if(Array.isArray(C))return(0,U.Z)(C)}(C)||(0,V.Z)(C)||(0,Z.Z)(C)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},9087:function(ce,q,f){"use strict";f.d(q,{Z:function(){return B}});var U=f(50988);function B(V,Z){if(V){if("string"==typeof V)return(0,U.Z)(V,Z);var T=Object.prototype.toString.call(V).slice(8,-1);if("Object"===T&&V.constructor&&(T=V.constructor.name),"Map"===T||"Set"===T)return Array.from(V);if("Arguments"===T||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return(0,U.Z)(V,Z)}}},44900:function(ce){"use strict";ce.exports=JSON.parse('{"atrules":{"charset":{"prelude":"<string>"},"font-face":{"descriptors":{"unicode-range":{"comment":"replaces <unicode-range>, an old production name","syntax":"<urange>#"}}}},"properties":{"-moz-background-clip":{"comment":"deprecated syntax in old Firefox, https://developer.mozilla.org/en/docs/Web/CSS/background-clip","syntax":"padding | border"},"-moz-border-radius-bottomleft":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-left-radius","syntax":"<\'border-bottom-left-radius\'>"},"-moz-border-radius-bottomright":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius","syntax":"<\'border-bottom-right-radius\'>"},"-moz-border-radius-topleft":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-left-radius","syntax":"<\'border-top-left-radius\'>"},"-moz-border-radius-topright":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius","syntax":"<\'border-bottom-right-radius\'>"},"-moz-control-character-visibility":{"comment":"firefox specific keywords, https://bugzilla.mozilla.org/show_bug.cgi?id=947588","syntax":"visible | hidden"},"-moz-osx-font-smoothing":{"comment":"misssed old syntax https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth","syntax":"auto | grayscale"},"-moz-user-select":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/user-select","syntax":"none | text | all | -moz-none"},"-ms-flex-align":{"comment":"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-align","syntax":"start | end | center | baseline | stretch"},"-ms-flex-item-align":{"comment":"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-align","syntax":"auto | start | end | center | baseline | stretch"},"-ms-flex-line-pack":{"comment":"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-line-pack","syntax":"start | end | center | justify | distribute | stretch"},"-ms-flex-negative":{"comment":"misssed old syntax implemented in IE; TODO: find references for comfirmation","syntax":"<\'flex-shrink\'>"},"-ms-flex-pack":{"comment":"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-pack","syntax":"start | end | center | justify | distribute"},"-ms-flex-order":{"comment":"misssed old syntax implemented in IE; https://msdn.microsoft.com/en-us/library/jj127303(v=vs.85).aspx","syntax":"<integer>"},"-ms-flex-positive":{"comment":"misssed old syntax implemented in IE; TODO: find references for comfirmation","syntax":"<\'flex-grow\'>"},"-ms-flex-preferred-size":{"comment":"misssed old syntax implemented in IE; TODO: find references for comfirmation","syntax":"<\'flex-basis\'>"},"-ms-interpolation-mode":{"comment":"https://msdn.microsoft.com/en-us/library/ff521095(v=vs.85).aspx","syntax":"nearest-neighbor | bicubic"},"-ms-grid-column-align":{"comment":"add this property first since it uses as fallback for flexbox, https://msdn.microsoft.com/en-us/library/windows/apps/hh466338.aspx","syntax":"start | end | center | stretch"},"-ms-grid-row-align":{"comment":"add this property first since it uses as fallback for flexbox, https://msdn.microsoft.com/en-us/library/windows/apps/hh466348.aspx","syntax":"start | end | center | stretch"},"-ms-hyphenate-limit-last":{"comment":"misssed old syntax implemented in IE; https://www.w3.org/TR/css-text-4/#hyphenate-line-limits","syntax":"none | always | column | page | spread"},"-webkit-appearance":{"comment":"webkit specific keywords","references":["http://css-infos.net/property/-webkit-appearance"],"syntax":"none | button | button-bevel | caps-lock-indicator | caret | checkbox | default-button | inner-spin-button | listbox | listitem | media-controls-background | media-controls-fullscreen-background | media-current-time-display | media-enter-fullscreen-button | media-exit-fullscreen-button | media-fullscreen-button | media-mute-button | media-overlay-play-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | media-time-remaining-display | media-toggle-closed-captions-button | media-volume-slider | media-volume-slider-container | media-volume-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | meter | progress-bar | progress-bar-value | push-button | radio | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbargripper-horizontal | scrollbargripper-vertical | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield | -apple-pay-button"},"-webkit-background-clip":{"comment":"https://developer.mozilla.org/en/docs/Web/CSS/background-clip","syntax":"[ <box> | border | padding | content | text ]#"},"-webkit-column-break-after":{"comment":"added, http://help.dottoro.com/lcrthhhv.php","syntax":"always | auto | avoid"},"-webkit-column-break-before":{"comment":"added, http://help.dottoro.com/lcxquvkf.php","syntax":"always | auto | avoid"},"-webkit-column-break-inside":{"comment":"added, http://help.dottoro.com/lclhnthl.php","syntax":"always | auto | avoid"},"-webkit-font-smoothing":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth","syntax":"auto | none | antialiased | subpixel-antialiased"},"-webkit-mask-box-image":{"comment":"missed; https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-mask-box-image","syntax":"[ <url> | <gradient> | none ] [ <length-percentage>{4} <-webkit-mask-box-repeat>{2} ]?"},"-webkit-print-color-adjust":{"comment":"missed","references":["https://developer.mozilla.org/en/docs/Web/CSS/-webkit-print-color-adjust"],"syntax":"economy | exact"},"-webkit-text-security":{"comment":"missed; http://help.dottoro.com/lcbkewgt.php","syntax":"none | circle | disc | square"},"-webkit-user-drag":{"comment":"missed; http://help.dottoro.com/lcbixvwm.php","syntax":"none | element | auto"},"-webkit-user-select":{"comment":"auto is supported by old webkit, https://developer.mozilla.org/en-US/docs/Web/CSS/user-select","syntax":"auto | none | text | all"},"alignment-baseline":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/text.html#AlignmentBaselineProperty"],"syntax":"auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical"},"baseline-shift":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/text.html#BaselineShiftProperty"],"syntax":"baseline | sub | super | <svg-length>"},"behavior":{"comment":"added old IE property https://msdn.microsoft.com/en-us/library/ms530723(v=vs.85).aspx","syntax":"<url>+"},"clip-rule":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/masking.html#ClipRuleProperty"],"syntax":"nonzero | evenodd"},"cue":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<\'cue-before\'> <\'cue-after\'>?"},"cue-after":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<url> <decibel>? | none"},"cue-before":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<url> <decibel>? | none"},"cursor":{"comment":"added legacy keywords: hand, -webkit-grab. -webkit-grabbing, -webkit-zoom-in, -webkit-zoom-out, -moz-grab, -moz-grabbing, -moz-zoom-in, -moz-zoom-out","references":["https://www.sitepoint.com/css3-cursor-styles/"],"syntax":"[ [ <url> [ <x> <y> ]? , ]* [ auto | default | none | context-menu | help | pointer | progress | wait | cell | crosshair | text | vertical-text | alias | copy | move | no-drop | not-allowed | e-resize | n-resize | ne-resize | nw-resize | s-resize | se-resize | sw-resize | w-resize | ew-resize | ns-resize | nesw-resize | nwse-resize | col-resize | row-resize | all-scroll | zoom-in | zoom-out | grab | grabbing | hand | -webkit-grab | -webkit-grabbing | -webkit-zoom-in | -webkit-zoom-out | -moz-grab | -moz-grabbing | -moz-zoom-in | -moz-zoom-out ] ]"},"display":{"comment":"extended with -ms-flexbox","syntax":"| <-non-standard-display>"},"position":{"comment":"extended with -webkit-sticky","syntax":"| -webkit-sticky"},"dominant-baseline":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/text.html#DominantBaselineProperty"],"syntax":"auto | use-script | no-change | reset-size | ideographic | alphabetic | hanging | mathematical | central | middle | text-after-edge | text-before-edge"},"image-rendering":{"comment":"extended with <-non-standard-image-rendering>, added SVG keywords optimizeSpeed and optimizeQuality","references":["https://developer.mozilla.org/en/docs/Web/CSS/image-rendering","https://www.w3.org/TR/SVG/painting.html#ImageRenderingProperty"],"syntax":"| optimizeSpeed | optimizeQuality | <-non-standard-image-rendering>"},"fill":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#FillProperty"],"syntax":"<paint>"},"fill-opacity":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#FillProperty"],"syntax":"<number-zero-one>"},"fill-rule":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#FillProperty"],"syntax":"nonzero | evenodd"},"filter":{"comment":"extend with IE legacy syntaxes","syntax":"| <-ms-filter-function-list>"},"glyph-orientation-horizontal":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/text.html#GlyphOrientationHorizontalProperty"],"syntax":"<angle>"},"glyph-orientation-vertical":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/text.html#GlyphOrientationVerticalProperty"],"syntax":"<angle>"},"kerning":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/text.html#KerningProperty"],"syntax":"auto | <svg-length>"},"letter-spacing":{"comment":"fix syntax <length> -> <length-percentage>","references":["https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/letter-spacing"],"syntax":"normal | <length-percentage>"},"marker":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],"syntax":"none | <url>"},"marker-end":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],"syntax":"none | <url>"},"marker-mid":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],"syntax":"none | <url>"},"marker-start":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],"syntax":"none | <url>"},"max-width":{"comment":"fix auto -> none (https://github.com/mdn/data/pull/431); extend by non-standard width keywords https://developer.mozilla.org/en-US/docs/Web/CSS/max-width","syntax":"none | <length-percentage> | min-content | max-content | fit-content(<length-percentage>) | <-non-standard-width>"},"width":{"comment":"per spec fit-content should be a function, however browsers are supporting it as a keyword (https://github.com/csstree/stylelint-validator/issues/29)","syntax":"| fit-content | -moz-fit-content | -webkit-fit-content"},"min-width":{"comment":"extend by non-standard width keywords https://developer.mozilla.org/en-US/docs/Web/CSS/width","syntax":"auto | <length-percentage> | min-content | max-content | fit-content(<length-percentage>) | <-non-standard-width>"},"overflow":{"comment":"extend by vendor keywords https://developer.mozilla.org/en-US/docs/Web/CSS/overflow","syntax":"| <-non-standard-overflow>"},"pause":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<\'pause-before\'> <\'pause-after\'>?"},"pause-after":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<time> | none | x-weak | weak | medium | strong | x-strong"},"pause-before":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<time> | none | x-weak | weak | medium | strong | x-strong"},"rest":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<\'rest-before\'> <\'rest-after\'>?"},"rest-after":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<time> | none | x-weak | weak | medium | strong | x-strong"},"rest-before":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<time> | none | x-weak | weak | medium | strong | x-strong"},"shape-rendering":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#ShapeRenderingPropert"],"syntax":"auto | optimizeSpeed | crispEdges | geometricPrecision"},"src":{"comment":"added @font-face\'s src property https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/src","syntax":"[ <url> [ format( <string># ) ]? | local( <family-name> ) ]#"},"speak":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"auto | none | normal"},"speak-as":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"normal | spell-out || digits || [ literal-punctuation | no-punctuation ]"},"stroke":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],"syntax":"<paint>"},"stroke-dasharray":{"comment":"added SVG property; a list of comma and/or white space separated <length>s and <percentage>s","references":["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],"syntax":"none | [ <svg-length>+ ]#"},"stroke-dashoffset":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],"syntax":"<svg-length>"},"stroke-linecap":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],"syntax":"butt | round | square"},"stroke-linejoin":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],"syntax":"miter | round | bevel"},"stroke-miterlimit":{"comment":"added SVG property (<miterlimit> = <number-one-or-greater>) ","references":["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],"syntax":"<number-one-or-greater>"},"stroke-opacity":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],"syntax":"<number-zero-one>"},"stroke-width":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],"syntax":"<svg-length>"},"text-anchor":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/text.html#TextAlignmentProperties"],"syntax":"start | middle | end"},"unicode-bidi":{"comment":"added prefixed keywords https://developer.mozilla.org/en-US/docs/Web/CSS/unicode-bidi","syntax":"| -moz-isolate | -moz-isolate-override | -moz-plaintext | -webkit-isolate | -webkit-isolate-override | -webkit-plaintext"},"unicode-range":{"comment":"added missed property https://developer.mozilla.org/en-US/docs/Web/CSS/%40font-face/unicode-range","syntax":"<urange>#"},"voice-balance":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<number> | left | center | right | leftwards | rightwards"},"voice-duration":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"auto | <time>"},"voice-family":{"comment":"<name> -> <family-name>, https://www.w3.org/TR/css3-speech/#property-index","syntax":"[ [ <family-name> | <generic-voice> ] , ]* [ <family-name> | <generic-voice> ] | preserve"},"voice-pitch":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<frequency> && absolute | [ [ x-low | low | medium | high | x-high ] || [ <frequency> | <semitones> | <percentage> ] ]"},"voice-range":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<frequency> && absolute | [ [ x-low | low | medium | high | x-high ] || [ <frequency> | <semitones> | <percentage> ] ]"},"voice-rate":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"[ normal | x-slow | slow | medium | fast | x-fast ] || <percentage>"},"voice-stress":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"normal | strong | moderate | none | reduced"},"voice-volume":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"silent | [ [ x-soft | soft | medium | loud | x-loud ] || <decibel> ]"},"writing-mode":{"comment":"extend with SVG keywords","syntax":"| <svg-writing-mode>"}},"syntaxes":{"-legacy-gradient":{"comment":"added collection of legacy gradient syntaxes","syntax":"<-webkit-gradient()> | <-legacy-linear-gradient> | <-legacy-repeating-linear-gradient> | <-legacy-radial-gradient> | <-legacy-repeating-radial-gradient>"},"-legacy-linear-gradient":{"comment":"like standard syntax but w/o `to` keyword https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient","syntax":"-moz-linear-gradient( <-legacy-linear-gradient-arguments> ) | -webkit-linear-gradient( <-legacy-linear-gradient-arguments> ) | -o-linear-gradient( <-legacy-linear-gradient-arguments> )"},"-legacy-repeating-linear-gradient":{"comment":"like standard syntax but w/o `to` keyword https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient","syntax":"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> ) | -webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> ) | -o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )"},"-legacy-linear-gradient-arguments":{"comment":"like standard syntax but w/o `to` keyword https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient","syntax":"[ <angle> | <side-or-corner> ]? , <color-stop-list>"},"-legacy-radial-gradient":{"comment":"deprecated syntax that implemented by some browsers https://www.w3.org/TR/2011/WD-css3-images-20110908/#radial-gradients","syntax":"-moz-radial-gradient( <-legacy-radial-gradient-arguments> ) | -webkit-radial-gradient( <-legacy-radial-gradient-arguments> ) | -o-radial-gradient( <-legacy-radial-gradient-arguments> )"},"-legacy-repeating-radial-gradient":{"comment":"deprecated syntax that implemented by some browsers https://www.w3.org/TR/2011/WD-css3-images-20110908/#radial-gradients","syntax":"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> ) | -webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> ) | -o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )"},"-legacy-radial-gradient-arguments":{"comment":"deprecated syntax that implemented by some browsers https://www.w3.org/TR/2011/WD-css3-images-20110908/#radial-gradients","syntax":"[ <position> , ]? [ [ [ <-legacy-radial-gradient-shape> || <-legacy-radial-gradient-size> ] | [ <length> | <percentage> ]{2} ] , ]? <color-stop-list>"},"-legacy-radial-gradient-size":{"comment":"before a standard it contains 2 extra keywords (`contain` and `cover`) https://www.w3.org/TR/2011/WD-css3-images-20110908/#ltsize","syntax":"closest-side | closest-corner | farthest-side | farthest-corner | contain | cover"},"-legacy-radial-gradient-shape":{"comment":"define to double sure it doesn\'t extends in future https://www.w3.org/TR/2011/WD-css3-images-20110908/#ltshape","syntax":"circle | ellipse"},"-non-standard-font":{"comment":"non standard fonts","references":["https://webkit.org/blog/3709/using-the-system-font-in-web-content/"],"syntax":"-apple-system-body | -apple-system-headline | -apple-system-subheadline | -apple-system-caption1 | -apple-system-caption2 | -apple-system-footnote | -apple-system-short-body | -apple-system-short-headline | -apple-system-short-subheadline | -apple-system-short-caption1 | -apple-system-short-footnote | -apple-system-tall-body"},"-non-standard-color":{"comment":"non standard colors","references":["http://cssdot.ru/%D0%A1%D0%BF%D1%80%D0%B0%D0%B2%D0%BE%D1%87%D0%BD%D0%B8%D0%BA_CSS/color-i305.html","https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Mozilla_Color_Preference_Extensions"],"syntax":"-moz-ButtonDefault | -moz-ButtonHoverFace | -moz-ButtonHoverText | -moz-CellHighlight | -moz-CellHighlightText | -moz-Combobox | -moz-ComboboxText | -moz-Dialog | -moz-DialogText | -moz-dragtargetzone | -moz-EvenTreeRow | -moz-Field | -moz-FieldText | -moz-html-CellHighlight | -moz-html-CellHighlightText | -moz-mac-accentdarkestshadow | -moz-mac-accentdarkshadow | -moz-mac-accentface | -moz-mac-accentlightesthighlight | -moz-mac-accentlightshadow | -moz-mac-accentregularhighlight | -moz-mac-accentregularshadow | -moz-mac-chrome-active | -moz-mac-chrome-inactive | -moz-mac-focusring | -moz-mac-menuselect | -moz-mac-menushadow | -moz-mac-menutextselect | -moz-MenuHover | -moz-MenuHoverText | -moz-MenuBarText | -moz-MenuBarHoverText | -moz-nativehyperlinktext | -moz-OddTreeRow | -moz-win-communicationstext | -moz-win-mediatext | -moz-activehyperlinktext | -moz-default-background-color | -moz-default-color | -moz-hyperlinktext | -moz-visitedhyperlinktext | -webkit-activelink | -webkit-focus-ring-color | -webkit-link | -webkit-text"},"-non-standard-image-rendering":{"comment":"non-standard keywords http://phrogz.net/tmp/canvas_image_zoom.html","syntax":"optimize-contrast | -moz-crisp-edges | -o-crisp-edges | -webkit-optimize-contrast"},"-non-standard-overflow":{"comment":"non-standard keywords https://developer.mozilla.org/en-US/docs/Web/CSS/overflow","syntax":"-moz-scrollbars-none | -moz-scrollbars-horizontal | -moz-scrollbars-vertical | -moz-hidden-unscrollable"},"-non-standard-width":{"comment":"non-standard keywords https://developer.mozilla.org/en-US/docs/Web/CSS/width","syntax":"fill-available | min-intrinsic | intrinsic | -moz-available | -moz-fit-content | -moz-min-content | -moz-max-content | -webkit-min-content | -webkit-max-content"},"-webkit-gradient()":{"comment":"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/ - TODO: simplify when after match algorithm improvement ( [, point, radius | , point] -> [, radius]? , point )","syntax":"-webkit-gradient( <-webkit-gradient-type>, <-webkit-gradient-point> [, <-webkit-gradient-point> | , <-webkit-gradient-radius>, <-webkit-gradient-point> ] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )"},"-webkit-gradient-color-stop":{"comment":"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/","syntax":"from( <color> ) | color-stop( [ <number-zero-one> | <percentage> ] , <color> ) | to( <color> )"},"-webkit-gradient-point":{"comment":"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/","syntax":"[ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]"},"-webkit-gradient-radius":{"comment":"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/","syntax":"<length> | <percentage>"},"-webkit-gradient-type":{"comment":"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/","syntax":"linear | radial"},"-webkit-mask-box-repeat":{"comment":"missed; https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-mask-box-image","syntax":"repeat | stretch | round"},"-webkit-mask-clip-style":{"comment":"missed; there is no enough information about `-webkit-mask-clip` property, but looks like all those keywords are working","syntax":"border | border-box | padding | padding-box | content | content-box | text"},"-ms-filter-function-list":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter","syntax":"<-ms-filter-function>+"},"-ms-filter-function":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter","syntax":"<-ms-filter-function-progid> | <-ms-filter-function-legacy>"},"-ms-filter-function-progid":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter","syntax":"\'progid:\' [ <ident-token> \'.\' ]* [ <ident-token> | <function-token> <any-value>? ) ]"},"-ms-filter-function-legacy":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter","syntax":"<ident-token> | <function-token> <any-value>? )"},"-ms-filter":{"syntax":"<string>"},"age":{"comment":"https://www.w3.org/TR/css3-speech/#voice-family","syntax":"child | young | old"},"attr-name":{"syntax":"<wq-name>"},"attr-fallback":{"syntax":"<any-value>"},"border-radius":{"comment":"missed, https://drafts.csswg.org/css-backgrounds-3/#the-border-radius","syntax":"<length-percentage>{1,2}"},"bottom":{"comment":"missed; not sure we should add it, but no others except `shape` is using it so it\'s ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect","syntax":"<length> | auto"},"content-list":{"comment":"missed -> https://drafts.csswg.org/css-content/#typedef-content-list (document-url, <target> and leader() is omitted util stabilization)","syntax":"[ <string> | contents | <image> | <quote> | <target> | <leader()> | <attr()> | counter( <ident>, <\'list-style-type\'>? ) ]+"},"element()":{"comment":"https://drafts.csswg.org/css-gcpm/#element-syntax & https://drafts.csswg.org/css-images-4/#element-notation","syntax":"element( <custom-ident> , [ first | start | last | first-except ]? ) | element( <id-selector> )"},"generic-voice":{"comment":"https://www.w3.org/TR/css3-speech/#voice-family","syntax":"[ <age>? <gender> <integer>? ]"},"gender":{"comment":"https://www.w3.org/TR/css3-speech/#voice-family","syntax":"male | female | neutral"},"generic-family":{"comment":"added -apple-system","references":["https://webkit.org/blog/3709/using-the-system-font-in-web-content/"],"syntax":"| -apple-system"},"gradient":{"comment":"added legacy syntaxes support","syntax":"| <-legacy-gradient>"},"left":{"comment":"missed; not sure we should add it, but no others except `shape` is using it so it\'s ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect","syntax":"<length> | auto"},"mask-image":{"comment":"missed; https://drafts.fxtf.org/css-masking-1/#the-mask-image","syntax":"<mask-reference>#"},"name-repeat":{"comment":"missed, and looks like obsolete, keep it as is since other property syntaxes should be changed too; https://www.w3.org/TR/2015/WD-css-grid-1-20150917/#typedef-name-repeat","syntax":"repeat( [ <positive-integer> | auto-fill ], <line-names>+)"},"named-color":{"comment":"added non standard color names","syntax":"| <-non-standard-color>"},"paint":{"comment":"used by SVG https://www.w3.org/TR/SVG/painting.html#SpecifyingPaint","syntax":"none | <color> | <url> [ none | <color> ]? | context-fill | context-stroke"},"page-size":{"comment":"https://www.w3.org/TR/css-page-3/#typedef-page-size-page-size","syntax":"A5 | A4 | A3 | B5 | B4 | JIS-B5 | JIS-B4 | letter | legal | ledger"},"ratio":{"comment":"missed, https://drafts.csswg.org/mediaqueries-4/#typedef-ratio","syntax":"<integer> / <integer>"},"right":{"comment":"missed; not sure we should add it, but no others except `shape` is using it so it\'s ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect","syntax":"<length> | auto"},"shape":{"comment":"missed spaces in function body and add backwards compatible syntax","syntax":"rect( <top>, <right>, <bottom>, <left> ) | rect( <top> <right> <bottom> <left> )"},"svg-length":{"comment":"All coordinates and lengths in SVG can be specified with or without a unit identifier","references":["https://www.w3.org/TR/SVG11/coords.html#Units"],"syntax":"<percentage> | <length> | <number>"},"svg-writing-mode":{"comment":"SVG specific keywords (deprecated for CSS)","references":["https://developer.mozilla.org/en/docs/Web/CSS/writing-mode","https://www.w3.org/TR/SVG/text.html#WritingModeProperty"],"syntax":"lr-tb | rl-tb | tb-rl | lr | rl | tb"},"top":{"comment":"missed; not sure we should add it, but no others except `shape` is using it so it\'s ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect","syntax":"<length> | auto"},"track-group":{"comment":"used by old grid-columns and grid-rows syntax v0","syntax":"\'(\' [ <string>* <track-minmax> <string>* ]+ \')\' [ \'[\' <positive-integer> \']\' ]? | <track-minmax>"},"track-list-v0":{"comment":"used by old grid-columns and grid-rows syntax v0","syntax":"[ <string>* <track-group> <string>* ]+ | none"},"track-minmax":{"comment":"used by old grid-columns and grid-rows syntax v0","syntax":"minmax( <track-breadth> , <track-breadth> ) | auto | <track-breadth> | fit-content"},"x":{"comment":"missed; not sure we should add it, but no others except `cursor` is using it so it\'s ok for now; https://drafts.csswg.org/css-ui-3/#cursor","syntax":"<number>"},"y":{"comment":"missed; not sure we should add it, but no others except `cursor` is using so it\'s ok for now; https://drafts.csswg.org/css-ui-3/#cursor","syntax":"<number>"},"declaration":{"comment":"missed, restored by https://drafts.csswg.org/css-syntax","syntax":"<ident-token> : <declaration-value>? [ \'!\' important ]?"},"declaration-list":{"comment":"missed, restored by https://drafts.csswg.org/css-syntax","syntax":"[ <declaration>? \';\' ]* <declaration>?"},"url":{"comment":"https://drafts.csswg.org/css-values-4/#urls","syntax":"url( <string> <url-modifier>* ) | <url-token>"},"url-modifier":{"comment":"https://drafts.csswg.org/css-values-4/#typedef-url-modifier","syntax":"<ident> | <function-token> <any-value> )"},"number-zero-one":{"syntax":"<number [0,1]>"},"number-one-or-greater":{"syntax":"<number [1,\u221e]>"},"positive-integer":{"syntax":"<integer [0,\u221e]>"},"-non-standard-display":{"syntax":"-ms-inline-flexbox | -ms-grid | -ms-inline-grid | -webkit-flex | -webkit-inline-flex | -webkit-box | -webkit-inline-box | -moz-inline-stack | -moz-box | -moz-inline-box"}}}')},37151:function(ce){"use strict";ce.exports={version:"1.1.3"}},94518:function(ce){"use strict";ce.exports=JSON.parse('{"@charset":{"syntax":"@charset \\"<charset>\\";","groups":["CSS Charsets"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@charset"},"@counter-style":{"syntax":"@counter-style <counter-style-name> {\\n [ system: <counter-system>; ] ||\\n [ symbols: <counter-symbols>; ] ||\\n [ additive-symbols: <additive-symbols>; ] ||\\n [ negative: <negative-symbol>; ] ||\\n [ prefix: <prefix>; ] ||\\n [ suffix: <suffix>; ] ||\\n [ range: <range>; ] ||\\n [ pad: <padding>; ] ||\\n [ speak-as: <speak-as>; ] ||\\n [ fallback: <counter-style-name>; ]\\n}","interfaces":["CSSCounterStyleRule"],"groups":["CSS Counter Styles"],"descriptors":{"additive-symbols":{"syntax":"[ <integer> && <symbol> ]#","media":"all","initial":"n/a (required)","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"fallback":{"syntax":"<counter-style-name>","media":"all","initial":"decimal","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"negative":{"syntax":"<symbol> <symbol>?","media":"all","initial":"\\"-\\" hyphen-minus","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"pad":{"syntax":"<integer> && <symbol>","media":"all","initial":"0 \\"\\"","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"prefix":{"syntax":"<symbol>","media":"all","initial":"\\"\\"","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"range":{"syntax":"[ [ <integer> | infinite ]{2} ]# | auto","media":"all","initial":"auto","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"speak-as":{"syntax":"auto | bullets | numbers | words | spell-out | <counter-style-name>","media":"all","initial":"auto","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"suffix":{"syntax":"<symbol>","media":"all","initial":"\\". \\"","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"symbols":{"syntax":"<symbol>+","media":"all","initial":"n/a (required)","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"system":{"syntax":"cyclic | numeric | alphabetic | symbolic | additive | [ fixed <integer>? ] | [ extends <counter-style-name> ]","media":"all","initial":"symbolic","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"}},"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@counter-style"},"@document":{"syntax":"@document [ <url> | url-prefix(<string>) | domain(<string>) | media-document(<string>) | regexp(<string>) ]# {\\n <group-rule-body>\\n}","interfaces":["CSSGroupingRule","CSSConditionRule"],"groups":["CSS Conditional Rules"],"status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@document"},"@font-face":{"syntax":"@font-face {\\n [ font-family: <family-name>; ] ||\\n [ src: <src>; ] ||\\n [ unicode-range: <unicode-range>; ] ||\\n [ font-variant: <font-variant>; ] ||\\n [ font-feature-settings: <font-feature-settings>; ] ||\\n [ font-variation-settings: <font-variation-settings>; ] ||\\n [ font-stretch: <font-stretch>; ] ||\\n [ font-weight: <font-weight>; ] ||\\n [ font-style: <font-style>; ]\\n}","interfaces":["CSSFontFaceRule"],"groups":["CSS Fonts"],"descriptors":{"font-display":{"syntax":"[ auto | block | swap | fallback | optional ]","media":"visual","percentages":"no","initial":"auto","computed":"asSpecified","order":"uniqueOrder","status":"experimental"},"font-family":{"syntax":"<family-name>","media":"all","initial":"n/a (required)","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"font-feature-settings":{"syntax":"normal | <feature-tag-value>#","media":"all","initial":"normal","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"font-variation-settings":{"syntax":"normal | [ <string> <number> ]#","media":"all","initial":"normal","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"font-stretch":{"syntax":"<font-stretch-absolute>{1,2}","media":"all","initial":"normal","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"font-style":{"syntax":"normal | italic | oblique <angle>{0,2}","media":"all","initial":"normal","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"font-weight":{"syntax":"<font-weight-absolute>{1,2}","media":"all","initial":"normal","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"font-variant":{"syntax":"normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> || stylistic(<feature-value-name>) || historical-forms || styleset(<feature-value-name>#) || character-variant(<feature-value-name>#) || swash(<feature-value-name>) || ornaments(<feature-value-name>) || annotation(<feature-value-name>) || [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] || <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero || <east-asian-variant-values> || <east-asian-width-values> || ruby ]","media":"all","initial":"normal","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"src":{"syntax":"[ <url> [ format( <string># ) ]? | local( <family-name> ) ]#","media":"all","initial":"n/a (required)","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"unicode-range":{"syntax":"<unicode-range>#","media":"all","initial":"U+0-10FFFF","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"}},"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@font-face"},"@font-feature-values":{"syntax":"@font-feature-values <family-name># {\\n <feature-value-block-list>\\n}","interfaces":["CSSFontFeatureValuesRule"],"groups":["CSS Fonts"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@font-feature-values"},"@import":{"syntax":"@import [ <string> | <url> ] [ <media-query-list> ]?;","groups":["Media Queries"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@import"},"@keyframes":{"syntax":"@keyframes <keyframes-name> {\\n <keyframe-block-list>\\n}","interfaces":["CSSKeyframeRule","CSSKeyframesRule"],"groups":["CSS Animations"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@keyframes"},"@media":{"syntax":"@media <media-query-list> {\\n <group-rule-body>\\n}","interfaces":["CSSGroupingRule","CSSConditionRule","CSSMediaRule","CSSCustomMediaRule"],"groups":["CSS Conditional Rules","Media Queries"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@media"},"@namespace":{"syntax":"@namespace <namespace-prefix>? [ <string> | <url> ];","groups":["CSS Namespaces"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@namespace"},"@page":{"syntax":"@page <page-selector-list> {\\n <page-body>\\n}","interfaces":["CSSPageRule"],"groups":["CSS Pages"],"descriptors":{"bleed":{"syntax":"auto | <length>","media":["visual","paged"],"initial":"auto","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"marks":{"syntax":"none | [ crop || cross ]","media":["visual","paged"],"initial":"none","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"size":{"syntax":"<length>{1,2} | auto | [ <page-size> || [ portrait | landscape ] ]","media":["visual","paged"],"initial":"auto","percentages":"no","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"orderOfAppearance","status":"standard"}},"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@page"},"@property":{"syntax":"@property <custom-property-name> {\\n <declaration-list>\\n}","interfaces":["CSS","CSSPropertyRule"],"groups":["CSS Houdini"],"descriptors":{"syntax":{"syntax":"<string>","media":"all","percentages":"no","initial":"n/a (required)","computed":"asSpecified","order":"uniqueOrder","status":"experimental"},"inherits":{"syntax":"true | false","media":"all","percentages":"no","initial":"auto","computed":"asSpecified","order":"uniqueOrder","status":"experimental"},"initial-value":{"syntax":"<string>","media":"all","initial":"n/a (required)","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"experimental"}},"status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@property"},"@supports":{"syntax":"@supports <supports-condition> {\\n <group-rule-body>\\n}","interfaces":["CSSGroupingRule","CSSConditionRule","CSSSupportsRule"],"groups":["CSS Conditional Rules"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@supports"},"@viewport":{"syntax":"@viewport {\\n <group-rule-body>\\n}","interfaces":["CSSViewportRule"],"groups":["CSS Device Adaptation"],"descriptors":{"height":{"syntax":"<viewport-length>{1,2}","media":["visual","continuous"],"initial":["min-height","max-height"],"percentages":["min-height","max-height"],"computed":["min-height","max-height"],"order":"orderOfAppearance","status":"standard"},"max-height":{"syntax":"<viewport-length>","media":["visual","continuous"],"initial":"auto","percentages":"referToHeightOfInitialViewport","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard"},"max-width":{"syntax":"<viewport-length>","media":["visual","continuous"],"initial":"auto","percentages":"referToWidthOfInitialViewport","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard"},"max-zoom":{"syntax":"auto | <number> | <percentage>","media":["visual","continuous"],"initial":"auto","percentages":"the zoom factor itself","computed":"autoNonNegativeOrPercentage","order":"uniqueOrder","status":"standard"},"min-height":{"syntax":"<viewport-length>","media":["visual","continuous"],"initial":"auto","percentages":"referToHeightOfInitialViewport","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard"},"min-width":{"syntax":"<viewport-length>","media":["visual","continuous"],"initial":"auto","percentages":"referToWidthOfInitialViewport","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard"},"min-zoom":{"syntax":"auto | <number> | <percentage>","media":["visual","continuous"],"initial":"auto","percentages":"the zoom factor itself","computed":"autoNonNegativeOrPercentage","order":"uniqueOrder","status":"standard"},"orientation":{"syntax":"auto | portrait | landscape","media":["visual","continuous"],"initial":"auto","percentages":"referToSizeOfBoundingBox","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"user-zoom":{"syntax":"zoom | fixed","media":["visual","continuous"],"initial":"zoom","percentages":"referToSizeOfBoundingBox","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"viewport-fit":{"syntax":"auto | contain | cover","media":["visual","continuous"],"initial":"auto","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"width":{"syntax":"<viewport-length>{1,2}","media":["visual","continuous"],"initial":["min-width","max-width"],"percentages":["min-width","max-width"],"computed":["min-width","max-width"],"order":"orderOfAppearance","status":"standard"},"zoom":{"syntax":"auto | <number> | <percentage>","media":["visual","continuous"],"initial":"auto","percentages":"the zoom factor itself","computed":"autoNonNegativeOrPercentage","order":"uniqueOrder","status":"standard"}},"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@viewport"}}')},23050:function(ce){"use strict";ce.exports=JSON.parse('{"--*":{"syntax":"<declaration-value>","media":"all","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Variables"],"initial":"seeProse","appliesto":"allElements","computed":"asSpecifiedWithVarsSubstituted","order":"perGrammar","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/--*"},"-ms-accelerator":{"syntax":"false | true","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"false","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-accelerator"},"-ms-block-progression":{"syntax":"tb | rl | bt | lr","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"tb","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-block-progression"},"-ms-content-zoom-chaining":{"syntax":"none | chained","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"none","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-chaining"},"-ms-content-zooming":{"syntax":"none | zoom","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"zoomForTheTopLevelNoneForTheRest","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zooming"},"-ms-content-zoom-limit":{"syntax":"<\'-ms-content-zoom-limit-min\'> <\'-ms-content-zoom-limit-max\'>","media":"interactive","inherited":false,"animationType":"discrete","percentages":["-ms-content-zoom-limit-max","-ms-content-zoom-limit-min"],"groups":["Microsoft Extensions"],"initial":["-ms-content-zoom-limit-max","-ms-content-zoom-limit-min"],"appliesto":"nonReplacedBlockAndInlineBlockElements","computed":["-ms-content-zoom-limit-max","-ms-content-zoom-limit-min"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-limit"},"-ms-content-zoom-limit-max":{"syntax":"<percentage>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"maxZoomFactor","groups":["Microsoft Extensions"],"initial":"400%","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-limit-max"},"-ms-content-zoom-limit-min":{"syntax":"<percentage>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"minZoomFactor","groups":["Microsoft Extensions"],"initial":"100%","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-limit-min"},"-ms-content-zoom-snap":{"syntax":"<\'-ms-content-zoom-snap-type\'> || <\'-ms-content-zoom-snap-points\'>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":["-ms-content-zoom-snap-type","-ms-content-zoom-snap-points"],"appliesto":"nonReplacedBlockAndInlineBlockElements","computed":["-ms-content-zoom-snap-type","-ms-content-zoom-snap-points"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-snap"},"-ms-content-zoom-snap-points":{"syntax":"snapInterval( <percentage>, <percentage> ) | snapList( <percentage># )","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"snapInterval(0%, 100%)","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-snap-points"},"-ms-content-zoom-snap-type":{"syntax":"none | proximity | mandatory","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"none","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-snap-type"},"-ms-filter":{"syntax":"<string>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"\\"\\"","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-filter"},"-ms-flow-from":{"syntax":"[ none | <custom-ident> ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"none","appliesto":"nonReplacedElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-flow-from"},"-ms-flow-into":{"syntax":"[ none | <custom-ident> ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"none","appliesto":"iframeElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-flow-into"},"-ms-grid-columns":{"syntax":"none | <track-list> | <auto-track-list>","media":"visual","inherited":false,"animationType":"simpleListOfLpcDifferenceLpc","percentages":"referToDimensionOfContentArea","groups":["CSS Grid Layout"],"initial":"none","appliesto":"gridContainers","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-grid-columns"},"-ms-grid-rows":{"syntax":"none | <track-list> | <auto-track-list>","media":"visual","inherited":false,"animationType":"simpleListOfLpcDifferenceLpc","percentages":"referToDimensionOfContentArea","groups":["CSS Grid Layout"],"initial":"none","appliesto":"gridContainers","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-grid-rows"},"-ms-high-contrast-adjust":{"syntax":"auto | none","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-high-contrast-adjust"},"-ms-hyphenate-limit-chars":{"syntax":"auto | <integer>{1,3}","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-hyphenate-limit-chars"},"-ms-hyphenate-limit-lines":{"syntax":"no-limit | <integer>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"no-limit","appliesto":"blockContainerElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-hyphenate-limit-lines"},"-ms-hyphenate-limit-zone":{"syntax":"<percentage> | <length>","media":"visual","inherited":true,"animationType":"discrete","percentages":"referToLineBoxWidth","groups":["Microsoft Extensions"],"initial":"0","appliesto":"blockContainerElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-hyphenate-limit-zone"},"-ms-ime-align":{"syntax":"auto | after","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-ime-align"},"-ms-overflow-style":{"syntax":"auto | none | scrollbar | -ms-autohiding-scrollbar","media":"interactive","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"auto","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-overflow-style"},"-ms-scrollbar-3dlight-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"dependsOnUserAgent","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-3dlight-color"},"-ms-scrollbar-arrow-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"ButtonText","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-arrow-color"},"-ms-scrollbar-base-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"dependsOnUserAgent","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-base-color"},"-ms-scrollbar-darkshadow-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"ThreeDDarkShadow","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-darkshadow-color"},"-ms-scrollbar-face-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"ThreeDFace","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-face-color"},"-ms-scrollbar-highlight-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"ThreeDHighlight","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-highlight-color"},"-ms-scrollbar-shadow-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"ThreeDDarkShadow","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-shadow-color"},"-ms-scrollbar-track-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"Scrollbar","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-track-color"},"-ms-scroll-chaining":{"syntax":"chained | none","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"chained","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-chaining"},"-ms-scroll-limit":{"syntax":"<\'-ms-scroll-limit-x-min\'> <\'-ms-scroll-limit-y-min\'> <\'-ms-scroll-limit-x-max\'> <\'-ms-scroll-limit-y-max\'>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":["-ms-scroll-limit-x-min","-ms-scroll-limit-y-min","-ms-scroll-limit-x-max","-ms-scroll-limit-y-max"],"appliesto":"nonReplacedBlockAndInlineBlockElements","computed":["-ms-scroll-limit-x-min","-ms-scroll-limit-y-min","-ms-scroll-limit-x-max","-ms-scroll-limit-y-max"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-limit"},"-ms-scroll-limit-x-max":{"syntax":"auto | <length>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"auto","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-limit-x-max"},"-ms-scroll-limit-x-min":{"syntax":"<length>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"0","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-limit-x-min"},"-ms-scroll-limit-y-max":{"syntax":"auto | <length>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"auto","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-limit-y-max"},"-ms-scroll-limit-y-min":{"syntax":"<length>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"0","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-limit-y-min"},"-ms-scroll-rails":{"syntax":"none | railed","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"railed","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-rails"},"-ms-scroll-snap-points-x":{"syntax":"snapInterval( <length-percentage>, <length-percentage> ) | snapList( <length-percentage># )","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"snapInterval(0px, 100%)","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-snap-points-x"},"-ms-scroll-snap-points-y":{"syntax":"snapInterval( <length-percentage>, <length-percentage> ) | snapList( <length-percentage># )","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"snapInterval(0px, 100%)","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-snap-points-y"},"-ms-scroll-snap-type":{"syntax":"none | proximity | mandatory","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"none","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-snap-type"},"-ms-scroll-snap-x":{"syntax":"<\'-ms-scroll-snap-type\'> <\'-ms-scroll-snap-points-x\'>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":["-ms-scroll-snap-type","-ms-scroll-snap-points-x"],"appliesto":"nonReplacedBlockAndInlineBlockElements","computed":["-ms-scroll-snap-type","-ms-scroll-snap-points-x"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-snap-x"},"-ms-scroll-snap-y":{"syntax":"<\'-ms-scroll-snap-type\'> <\'-ms-scroll-snap-points-y\'>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":["-ms-scroll-snap-type","-ms-scroll-snap-points-y"],"appliesto":"nonReplacedBlockAndInlineBlockElements","computed":["-ms-scroll-snap-type","-ms-scroll-snap-points-y"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-snap-y"},"-ms-scroll-translation":{"syntax":"none | vertical-to-horizontal","media":"interactive","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-translation"},"-ms-text-autospace":{"syntax":"none | ideograph-alpha | ideograph-numeric | ideograph-parenthesis | ideograph-space","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-text-autospace"},"-ms-touch-select":{"syntax":"grippers | none","media":"interactive","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"grippers","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-touch-select"},"-ms-user-select":{"syntax":"none | element | text","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"text","appliesto":"nonReplacedElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-user-select"},"-ms-wrap-flow":{"syntax":"auto | both | start | end | maximum | clear","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"auto","appliesto":"blockLevelElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-wrap-flow"},"-ms-wrap-margin":{"syntax":"<length>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"0","appliesto":"exclusionElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-wrap-margin"},"-ms-wrap-through":{"syntax":"wrap | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"wrap","appliesto":"blockLevelElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-wrap-through"},"-moz-appearance":{"syntax":"none | button | button-arrow-down | button-arrow-next | button-arrow-previous | button-arrow-up | button-bevel | button-focus | caret | checkbox | checkbox-container | checkbox-label | checkmenuitem | dualbutton | groupbox | listbox | listitem | menuarrow | menubar | menucheckbox | menuimage | menuitem | menuitemtext | menulist | menulist-button | menulist-text | menulist-textfield | menupopup | menuradio | menuseparator | meterbar | meterchunk | progressbar | progressbar-vertical | progresschunk | progresschunk-vertical | radio | radio-container | radio-label | radiomenuitem | range | range-thumb | resizer | resizerpanel | scale-horizontal | scalethumbend | scalethumb-horizontal | scalethumbstart | scalethumbtick | scalethumb-vertical | scale-vertical | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | separator | sheet | spinner | spinner-downbutton | spinner-textfield | spinner-upbutton | splitter | statusbar | statusbarpanel | tab | tabpanel | tabpanels | tab-scroll-arrow-back | tab-scroll-arrow-forward | textfield | textfield-multiline | toolbar | toolbarbutton | toolbarbutton-dropdown | toolbargripper | toolbox | tooltip | treeheader | treeheadercell | treeheadersortarrow | treeitem | treeline | treetwisty | treetwistyopen | treeview | -moz-mac-unified-toolbar | -moz-win-borderless-glass | -moz-win-browsertabbar-toolbox | -moz-win-communicationstext | -moz-win-communications-toolbox | -moz-win-exclude-glass | -moz-win-glass | -moz-win-mediatext | -moz-win-media-toolbox | -moz-window-button-box | -moz-window-button-box-maximized | -moz-window-button-close | -moz-window-button-maximize | -moz-window-button-minimize | -moz-window-button-restore | -moz-window-frame-bottom | -moz-window-frame-left | -moz-window-frame-right | -moz-window-titlebar | -moz-window-titlebar-maximized","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions","WebKit Extensions"],"initial":"noneButOverriddenInUserAgentCSS","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/appearance"},"-moz-binding":{"syntax":"<url> | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElementsExceptGeneratedContentOrPseudoElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-binding"},"-moz-border-bottom-colors":{"syntax":"<color>+ | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-border-bottom-colors"},"-moz-border-left-colors":{"syntax":"<color>+ | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-border-left-colors"},"-moz-border-right-colors":{"syntax":"<color>+ | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-border-right-colors"},"-moz-border-top-colors":{"syntax":"<color>+ | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-border-top-colors"},"-moz-context-properties":{"syntax":"none | [ fill | fill-opacity | stroke | stroke-opacity ]#","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElementsThatCanReferenceImages","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-context-properties"},"-moz-float-edge":{"syntax":"border-box | content-box | margin-box | padding-box","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"content-box","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-float-edge"},"-moz-force-broken-image-icon":{"syntax":"<integer [0,1]>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"0","appliesto":"images","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-force-broken-image-icon"},"-moz-image-region":{"syntax":"<shape> | auto","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"auto","appliesto":"xulImageElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-image-region"},"-moz-orient":{"syntax":"inline | block | horizontal | vertical","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"inline","appliesto":"anyElementEffectOnProgressAndMeter","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-orient"},"-moz-outline-radius":{"syntax":"<outline-radius>{1,4} [ / <outline-radius>{1,4} ]?","media":"visual","inherited":false,"animationType":["-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-outline-radius-bottomright","-moz-outline-radius-bottomleft"],"percentages":["-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-outline-radius-bottomright","-moz-outline-radius-bottomleft"],"groups":["Mozilla Extensions"],"initial":["-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-outline-radius-bottomright","-moz-outline-radius-bottomleft"],"appliesto":"allElements","computed":["-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-outline-radius-bottomright","-moz-outline-radius-bottomleft"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius"},"-moz-outline-radius-bottomleft":{"syntax":"<outline-radius>","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["Mozilla Extensions"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-bottomleft"},"-moz-outline-radius-bottomright":{"syntax":"<outline-radius>","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["Mozilla Extensions"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-bottomright"},"-moz-outline-radius-topleft":{"syntax":"<outline-radius>","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["Mozilla Extensions"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-topleft"},"-moz-outline-radius-topright":{"syntax":"<outline-radius>","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["Mozilla Extensions"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-topright"},"-moz-stack-sizing":{"syntax":"ignore | stretch-to-fit","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"stretch-to-fit","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-stack-sizing"},"-moz-text-blink":{"syntax":"none | blink","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-text-blink"},"-moz-user-focus":{"syntax":"ignore | normal | select-after | select-before | select-menu | select-same | select-all | none","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-user-focus"},"-moz-user-input":{"syntax":"auto | none | enabled | disabled","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-user-input"},"-moz-user-modify":{"syntax":"read-only | read-write | write-only","media":"interactive","inherited":true,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"read-only","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-user-modify"},"-moz-window-dragging":{"syntax":"drag | no-drag","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"drag","appliesto":"allElementsCreatingNativeWindows","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-window-dragging"},"-moz-window-shadow":{"syntax":"default | menu | tooltip | sheet | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"default","appliesto":"allElementsCreatingNativeWindows","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-window-shadow"},"-webkit-appearance":{"syntax":"none | button | button-bevel | caret | checkbox | default-button | inner-spin-button | listbox | listitem | media-controls-background | media-controls-fullscreen-background | media-current-time-display | media-enter-fullscreen-button | media-exit-fullscreen-button | media-fullscreen-button | media-mute-button | media-overlay-play-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | media-time-remaining-display | media-toggle-closed-captions-button | media-volume-slider | media-volume-slider-container | media-volume-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | meter | progress-bar | progress-bar-value | push-button | radio | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield | -apple-pay-button","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"noneButOverriddenInUserAgentCSS","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/appearance"},"-webkit-border-before":{"syntax":"<\'border-width\'> || <\'border-style\'> || <\'color\'>","media":"visual","inherited":true,"animationType":"discrete","percentages":["-webkit-border-before-width"],"groups":["WebKit Extensions"],"initial":["border-width","border-style","color"],"appliesto":"allElements","computed":["border-width","border-style","color"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-border-before"},"-webkit-border-before-color":{"syntax":"<\'color\'>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"nonstandard"},"-webkit-border-before-style":{"syntax":"<\'border-style\'>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard"},"-webkit-border-before-width":{"syntax":"<\'border-width\'>","media":"visual","inherited":true,"animationType":"discrete","percentages":"logicalWidthOfContainingBlock","groups":["WebKit Extensions"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthZeroIfBorderStyleNoneOrHidden","order":"uniqueOrder","status":"nonstandard"},"-webkit-box-reflect":{"syntax":"[ above | below | right | left ]? <length>? <image>?","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-box-reflect"},"-webkit-line-clamp":{"syntax":"none | <integer>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["WebKit Extensions","CSS Overflow"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp"},"-webkit-mask":{"syntax":"[ <mask-reference> || <position> [ / <bg-size> ]? || <repeat-style> || [ <box> | border | padding | content | text ] || [ <box> | border | padding | content ] ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":["-webkit-mask-image","-webkit-mask-repeat","-webkit-mask-attachment","-webkit-mask-position","-webkit-mask-origin","-webkit-mask-clip"],"appliesto":"allElements","computed":["-webkit-mask-image","-webkit-mask-repeat","-webkit-mask-attachment","-webkit-mask-position","-webkit-mask-origin","-webkit-mask-clip"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask"},"-webkit-mask-attachment":{"syntax":"<attachment>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"scroll","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-attachment"},"-webkit-mask-clip":{"syntax":"[ <box> | border | padding | content | text ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"border","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-clip"},"-webkit-mask-composite":{"syntax":"<composite-style>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"source-over","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-composite"},"-webkit-mask-image":{"syntax":"<mask-reference>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"none","appliesto":"allElements","computed":"absoluteURIOrNone","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-image"},"-webkit-mask-origin":{"syntax":"[ <box> | border | padding | content ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"padding","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-origin"},"-webkit-mask-position":{"syntax":"<position>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"referToSizeOfElement","groups":["WebKit Extensions"],"initial":"0% 0%","appliesto":"allElements","computed":"absoluteLengthOrPercentage","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-position"},"-webkit-mask-position-x":{"syntax":"[ <length-percentage> | left | center | right ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"referToSizeOfElement","groups":["WebKit Extensions"],"initial":"0%","appliesto":"allElements","computed":"absoluteLengthOrPercentage","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-position-x"},"-webkit-mask-position-y":{"syntax":"[ <length-percentage> | top | center | bottom ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"referToSizeOfElement","groups":["WebKit Extensions"],"initial":"0%","appliesto":"allElements","computed":"absoluteLengthOrPercentage","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-position-y"},"-webkit-mask-repeat":{"syntax":"<repeat-style>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"repeat","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-repeat"},"-webkit-mask-repeat-x":{"syntax":"repeat | no-repeat | space | round","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"repeat","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-repeat-x"},"-webkit-mask-repeat-y":{"syntax":"repeat | no-repeat | space | round","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"repeat","appliesto":"allElements","computed":"absoluteLengthOrPercentage","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-repeat-y"},"-webkit-mask-size":{"syntax":"<bg-size>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"relativeToBackgroundPositioningArea","groups":["WebKit Extensions"],"initial":"auto auto","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-size"},"-webkit-overflow-scrolling":{"syntax":"auto | touch","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"auto","appliesto":"scrollingBoxes","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-overflow-scrolling"},"-webkit-tap-highlight-color":{"syntax":"<color>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"black","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-tap-highlight-color"},"-webkit-text-fill-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"color","percentages":"no","groups":["WebKit Extensions"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color"},"-webkit-text-stroke":{"syntax":"<length> || <color>","media":"visual","inherited":true,"animationType":["-webkit-text-stroke-width","-webkit-text-stroke-color"],"percentages":"no","groups":["WebKit Extensions"],"initial":["-webkit-text-stroke-width","-webkit-text-stroke-color"],"appliesto":"allElements","computed":["-webkit-text-stroke-width","-webkit-text-stroke-color"],"order":"canonicalOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke"},"-webkit-text-stroke-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"color","percentages":"no","groups":["WebKit Extensions"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color"},"-webkit-text-stroke-width":{"syntax":"<length>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"0","appliesto":"allElements","computed":"absoluteLength","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width"},"-webkit-touch-callout":{"syntax":"default | none","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"default","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-touch-callout"},"-webkit-user-modify":{"syntax":"read-only | read-write | read-write-plaintext-only","media":"interactive","inherited":true,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"read-only","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard"},"align-content":{"syntax":"normal | <baseline-position> | <content-distribution> | <overflow-position>? <content-position>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":"normal","appliesto":"multilineFlexContainers","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/align-content"},"align-items":{"syntax":"normal | stretch | <baseline-position> | [ <overflow-position>? <self-position> ]","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/align-items"},"align-self":{"syntax":"auto | normal | stretch | <baseline-position> | <overflow-position>? <self-position>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":"auto","appliesto":"flexItemsGridItemsAndAbsolutelyPositionedBoxes","computed":"autoOnAbsolutelyPositionedElementsValueOfAlignItemsOnParent","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/align-self"},"align-tracks":{"syntax":"[ normal | <baseline-position> | <content-distribution> | <overflow-position>? <content-position> ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":"normal","appliesto":"gridContainersWithMasonryLayoutInTheirBlockAxis","computed":"asSpecified","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/align-tracks"},"all":{"syntax":"initial | inherit | unset | revert","media":"noPracticalMedia","inherited":false,"animationType":"eachOfShorthandPropertiesExceptUnicodeBiDiAndDirection","percentages":"no","groups":["CSS Miscellaneous"],"initial":"noPracticalInitialValue","appliesto":"allElements","computed":"asSpecifiedAppliesToEachProperty","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/all"},"animation":{"syntax":"<single-animation>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Animations"],"initial":["animation-name","animation-duration","animation-timing-function","animation-delay","animation-iteration-count","animation-direction","animation-fill-mode","animation-play-state"],"appliesto":"allElementsAndPseudos","computed":["animation-name","animation-duration","animation-timing-function","animation-delay","animation-direction","animation-iteration-count","animation-fill-mode","animation-play-state"],"order":"orderOfAppearance","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/animation"},"animation-delay":{"syntax":"<time>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Animations"],"initial":"0s","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/animation-delay"},"animation-direction":{"syntax":"<single-animation-direction>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Animations"],"initial":"normal","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/animation-direction"},"animation-duration":{"syntax":"<time>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Animations"],"initial":"0s","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/animation-duration"},"animation-fill-mode":{"syntax":"<single-animation-fill-mode>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Animations"],"initial":"none","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode"},"animation-iteration-count":{"syntax":"<single-animation-iteration-count>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Animations"],"initial":"1","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count"},"animation-name":{"syntax":"[ none | <keyframes-name> ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Animations"],"initial":"none","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/animation-name"},"animation-play-state":{"syntax":"<single-animation-play-state>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Animations"],"initial":"running","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/animation-play-state"},"animation-timing-function":{"syntax":"<timing-function>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Animations"],"initial":"ease","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/animation-timing-function"},"appearance":{"syntax":"none | auto | textfield | menulist-button | <compat-auto>","media":"all","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Basic User Interface"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/appearance"},"aspect-ratio":{"syntax":"auto | <ratio>","media":"all","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Basic User Interface"],"initial":"auto","appliesto":"allElementsExceptInlineBoxesAndInternalRubyOrTableBoxes","computed":"asSpecified","order":"perGrammar","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/aspect-ratio"},"azimuth":{"syntax":"<angle> | [ [ left-side | far-left | left | center-left | center | center-right | right | far-right | right-side ] || behind ] | leftwards | rightwards","media":"aural","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Speech"],"initial":"center","appliesto":"allElements","computed":"normalizedAngle","order":"orderOfAppearance","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/azimuth"},"backdrop-filter":{"syntax":"none | <filter-function-list>","media":"visual","inherited":false,"animationType":"filterList","percentages":"no","groups":["Filter Effects"],"initial":"none","appliesto":"allElementsSVGContainerElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/backdrop-filter"},"backface-visibility":{"syntax":"visible | hidden","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Transforms"],"initial":"visible","appliesto":"transformableElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/backface-visibility"},"background":{"syntax":"[ <bg-layer> , ]* <final-bg-layer>","media":"visual","inherited":false,"animationType":["background-color","background-image","background-clip","background-position","background-size","background-repeat","background-attachment"],"percentages":["background-position","background-size"],"groups":["CSS Backgrounds and Borders"],"initial":["background-image","background-position","background-size","background-repeat","background-origin","background-clip","background-attachment","background-color"],"appliesto":"allElements","computed":["background-image","background-position","background-size","background-repeat","background-origin","background-clip","background-attachment","background-color"],"order":"orderOfAppearance","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background"},"background-attachment":{"syntax":"<attachment>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"scroll","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-attachment"},"background-blend-mode":{"syntax":"<blend-mode>#","media":"none","inherited":false,"animationType":"discrete","percentages":"no","groups":["Compositing and Blending"],"initial":"normal","appliesto":"allElementsSVGContainerGraphicsAndGraphicsReferencingElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-blend-mode"},"background-clip":{"syntax":"<box>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"border-box","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-clip"},"background-color":{"syntax":"<color>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"transparent","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-color"},"background-image":{"syntax":"<bg-image>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"none","appliesto":"allElements","computed":"asSpecifiedURLsAbsolute","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-image"},"background-origin":{"syntax":"<box>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"padding-box","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-origin"},"background-position":{"syntax":"<bg-position>#","media":"visual","inherited":false,"animationType":"repeatableListOfSimpleListOfLpc","percentages":"referToSizeOfBackgroundPositioningAreaMinusBackgroundImageSize","groups":["CSS Backgrounds and Borders"],"initial":"0% 0%","appliesto":"allElements","computed":"listEachItemTwoKeywordsOriginOffsets","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-position"},"background-position-x":{"syntax":"[ center | [ [ left | right | x-start | x-end ]? <length-percentage>? ]! ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"referToWidthOfBackgroundPositioningAreaMinusBackgroundImageHeight","groups":["CSS Backgrounds and Borders"],"initial":"left","appliesto":"allElements","computed":"listEachItemConsistingOfAbsoluteLengthPercentageAndOrigin","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-position-x"},"background-position-y":{"syntax":"[ center | [ [ top | bottom | y-start | y-end ]? <length-percentage>? ]! ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"referToHeightOfBackgroundPositioningAreaMinusBackgroundImageHeight","groups":["CSS Backgrounds and Borders"],"initial":"top","appliesto":"allElements","computed":"listEachItemConsistingOfAbsoluteLengthPercentageAndOrigin","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-position-y"},"background-repeat":{"syntax":"<repeat-style>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"repeat","appliesto":"allElements","computed":"listEachItemHasTwoKeywordsOnePerDimension","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-repeat"},"background-size":{"syntax":"<bg-size>#","media":"visual","inherited":false,"animationType":"repeatableListOfSimpleListOfLpc","percentages":"relativeToBackgroundPositioningArea","groups":["CSS Backgrounds and Borders"],"initial":"auto auto","appliesto":"allElements","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-size"},"block-overflow":{"syntax":"clip | ellipsis | <string>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Overflow"],"initial":"clip","appliesto":"blockContainers","computed":"asSpecified","order":"perGrammar","status":"experimental"},"block-size":{"syntax":"<\'width\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"blockSizeOfContainingBlock","groups":["CSS Logical Properties"],"initial":"auto","appliesto":"sameAsWidthAndHeight","computed":"sameAsWidthAndHeight","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/block-size"},"border":{"syntax":"<line-width> || <line-style> || <color>","media":"visual","inherited":false,"animationType":["border-color","border-style","border-width"],"percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":["border-width","border-style","border-color"],"appliesto":"allElements","computed":["border-width","border-style","border-color"],"order":"orderOfAppearance","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border"},"border-block":{"syntax":"<\'border-top-width\'> || <\'border-top-style\'> || <\'color\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":["border-top-width","border-top-style","border-top-color"],"appliesto":"allElements","computed":["border-top-width","border-top-style","border-top-color"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block"},"border-block-color":{"syntax":"<\'border-top-color\'>{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-color"},"border-block-style":{"syntax":"<\'border-top-style\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-style"},"border-block-width":{"syntax":"<\'border-top-width\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthZeroIfBorderStyleNoneOrHidden","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-width"},"border-block-end":{"syntax":"<\'border-top-width\'> || <\'border-top-style\'> || <\'color\'>","media":"visual","inherited":false,"animationType":["border-block-end-color","border-block-end-style","border-block-end-width"],"percentages":"no","groups":["CSS Logical Properties"],"initial":["border-top-width","border-top-style","border-top-color"],"appliesto":"allElements","computed":["border-top-width","border-top-style","border-top-color"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-end"},"border-block-end-color":{"syntax":"<\'border-top-color\'>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Logical Properties"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-end-color"},"border-block-end-style":{"syntax":"<\'border-top-style\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-end-style"},"border-block-end-width":{"syntax":"<\'border-top-width\'>","media":"visual","inherited":false,"animationType":"length","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthZeroIfBorderStyleNoneOrHidden","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-end-width"},"border-block-start":{"syntax":"<\'border-top-width\'> || <\'border-top-style\'> || <\'color\'>","media":"visual","inherited":false,"animationType":["border-block-start-color","border-block-start-style","border-block-start-width"],"percentages":"no","groups":["CSS Logical Properties"],"initial":["border-width","border-style","color"],"appliesto":"allElements","computed":["border-width","border-style","border-block-start-color"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-start"},"border-block-start-color":{"syntax":"<\'border-top-color\'>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Logical Properties"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-start-color"},"border-block-start-style":{"syntax":"<\'border-top-style\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-start-style"},"border-block-start-width":{"syntax":"<\'border-top-width\'>","media":"visual","inherited":false,"animationType":"length","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthZeroIfBorderStyleNoneOrHidden","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-start-width"},"border-bottom":{"syntax":"<line-width> || <line-style> || <color>","media":"visual","inherited":false,"animationType":["border-bottom-color","border-bottom-style","border-bottom-width"],"percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":["border-bottom-width","border-bottom-style","border-bottom-color"],"appliesto":"allElements","computed":["border-bottom-width","border-bottom-style","border-bottom-color"],"order":"orderOfAppearance","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-bottom"},"border-bottom-color":{"syntax":"<\'border-top-color\'>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-bottom-color"},"border-bottom-left-radius":{"syntax":"<length-percentage>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["CSS Backgrounds and Borders"],"initial":"0","appliesto":"allElementsUAsNotRequiredWhenCollapse","computed":"twoAbsoluteLengthOrPercentages","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius"},"border-bottom-right-radius":{"syntax":"<length-percentage>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["CSS Backgrounds and Borders"],"initial":"0","appliesto":"allElementsUAsNotRequiredWhenCollapse","computed":"twoAbsoluteLengthOrPercentages","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius"},"border-bottom-style":{"syntax":"<line-style>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-bottom-style"},"border-bottom-width":{"syntax":"<line-width>","media":"visual","inherited":false,"animationType":"length","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthOr0IfBorderBottomStyleNoneOrHidden","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-bottom-width"},"border-collapse":{"syntax":"collapse | separate","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Table"],"initial":"separate","appliesto":"tableElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-collapse"},"border-color":{"syntax":"<color>{1,4}","media":"visual","inherited":false,"animationType":["border-bottom-color","border-left-color","border-right-color","border-top-color"],"percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":["border-top-color","border-right-color","border-bottom-color","border-left-color"],"appliesto":"allElements","computed":["border-bottom-color","border-left-color","border-right-color","border-top-color"],"order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-color"},"border-end-end-radius":{"syntax":"<length-percentage>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElementsUAsNotRequiredWhenCollapse","computed":"twoAbsoluteLengthOrPercentages","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-end-end-radius"},"border-end-start-radius":{"syntax":"<length-percentage>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElementsUAsNotRequiredWhenCollapse","computed":"twoAbsoluteLengthOrPercentages","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-end-start-radius"},"border-image":{"syntax":"<\'border-image-source\'> || <\'border-image-slice\'> [ / <\'border-image-width\'> | / <\'border-image-width\'>? / <\'border-image-outset\'> ]? || <\'border-image-repeat\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":["border-image-slice","border-image-width"],"groups":["CSS Backgrounds and Borders"],"initial":["border-image-source","border-image-slice","border-image-width","border-image-outset","border-image-repeat"],"appliesto":"allElementsExceptTableElementsWhenCollapse","computed":["border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width"],"order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-image"},"border-image-outset":{"syntax":"[ <length> | <number> ]{1,4}","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"0","appliesto":"allElementsExceptTableElementsWhenCollapse","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-image-outset"},"border-image-repeat":{"syntax":"[ stretch | repeat | round | space ]{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"stretch","appliesto":"allElementsExceptTableElementsWhenCollapse","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-image-repeat"},"border-image-slice":{"syntax":"<number-percentage>{1,4} && fill?","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"referToSizeOfBorderImage","groups":["CSS Backgrounds and Borders"],"initial":"100%","appliesto":"allElementsExceptTableElementsWhenCollapse","computed":"oneToFourPercentagesOrAbsoluteLengthsPlusFill","order":"percentagesOrLengthsFollowedByFill","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-image-slice"},"border-image-source":{"syntax":"none | <image>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"none","appliesto":"allElementsExceptTableElementsWhenCollapse","computed":"noneOrImageWithAbsoluteURI","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-image-source"},"border-image-width":{"syntax":"[ <length-percentage> | <number> | auto ]{1,4}","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"referToWidthOrHeightOfBorderImageArea","groups":["CSS Backgrounds and Borders"],"initial":"1","appliesto":"allElementsExceptTableElementsWhenCollapse","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-image-width"},"border-inline":{"syntax":"<\'border-top-width\'> || <\'border-top-style\'> || <\'color\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":["border-top-width","border-top-style","border-top-color"],"appliesto":"allElements","computed":["border-top-width","border-top-style","border-top-color"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline"},"border-inline-end":{"syntax":"<\'border-top-width\'> || <\'border-top-style\'> || <\'color\'>","media":"visual","inherited":false,"animationType":["border-inline-end-color","border-inline-end-style","border-inline-end-width"],"percentages":"no","groups":["CSS Logical Properties"],"initial":["border-width","border-style","color"],"appliesto":"allElements","computed":["border-width","border-style","border-inline-end-color"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-end"},"border-inline-color":{"syntax":"<\'border-top-color\'>{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-color"},"border-inline-style":{"syntax":"<\'border-top-style\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-style"},"border-inline-width":{"syntax":"<\'border-top-width\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthZeroIfBorderStyleNoneOrHidden","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-width"},"border-inline-end-color":{"syntax":"<\'border-top-color\'>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Logical Properties"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color"},"border-inline-end-style":{"syntax":"<\'border-top-style\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style"},"border-inline-end-width":{"syntax":"<\'border-top-width\'>","media":"visual","inherited":false,"animationType":"length","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthZeroIfBorderStyleNoneOrHidden","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width"},"border-inline-start":{"syntax":"<\'border-top-width\'> || <\'border-top-style\'> || <\'color\'>","media":"visual","inherited":false,"animationType":["border-inline-start-color","border-inline-start-style","border-inline-start-width"],"percentages":"no","groups":["CSS Logical Properties"],"initial":["border-width","border-style","color"],"appliesto":"allElements","computed":["border-width","border-style","border-inline-start-color"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-start"},"border-inline-start-color":{"syntax":"<\'border-top-color\'>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Logical Properties"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color"},"border-inline-start-style":{"syntax":"<\'border-top-style\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style"},"border-inline-start-width":{"syntax":"<\'border-top-width\'>","media":"visual","inherited":false,"animationType":"length","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthZeroIfBorderStyleNoneOrHidden","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width"},"border-left":{"syntax":"<line-width> || <line-style> || <color>","media":"visual","inherited":false,"animationType":["border-left-color","border-left-style","border-left-width"],"percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":["border-left-width","border-left-style","border-left-color"],"appliesto":"allElements","computed":["border-left-width","border-left-style","border-left-color"],"order":"orderOfAppearance","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-left"},"border-left-color":{"syntax":"<color>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-left-color"},"border-left-style":{"syntax":"<line-style>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-left-style"},"border-left-width":{"syntax":"<line-width>","media":"visual","inherited":false,"animationType":"length","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthOr0IfBorderLeftStyleNoneOrHidden","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-left-width"},"border-radius":{"syntax":"<length-percentage>{1,4} [ / <length-percentage>{1,4} ]?","media":"visual","inherited":false,"animationType":["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"],"percentages":"referToDimensionOfBorderBox","groups":["CSS Backgrounds and Borders"],"initial":["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"],"appliesto":"allElementsUAsNotRequiredWhenCollapse","computed":["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius"],"order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-radius"},"border-right":{"syntax":"<line-width> || <line-style> || <color>","media":"visual","inherited":false,"animationType":["border-right-color","border-right-style","border-right-width"],"percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":["border-right-width","border-right-style","border-right-color"],"appliesto":"allElements","computed":["border-right-width","border-right-style","border-right-color"],"order":"orderOfAppearance","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-right"},"border-right-color":{"syntax":"<color>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-right-color"},"border-right-style":{"syntax":"<line-style>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-right-style"},"border-right-width":{"syntax":"<line-width>","media":"visual","inherited":false,"animationType":"length","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthOr0IfBorderRightStyleNoneOrHidden","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-right-width"},"border-spacing":{"syntax":"<length> <length>?","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Table"],"initial":"0","appliesto":"tableElements","computed":"twoAbsoluteLengths","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-spacing"},"border-start-end-radius":{"syntax":"<length-percentage>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElementsUAsNotRequiredWhenCollapse","computed":"twoAbsoluteLengthOrPercentages","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-start-end-radius"},"border-start-start-radius":{"syntax":"<length-percentage>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElementsUAsNotRequiredWhenCollapse","computed":"twoAbsoluteLengthOrPercentages","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-start-start-radius"},"border-style":{"syntax":"<line-style>{1,4}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":["border-top-style","border-right-style","border-bottom-style","border-left-style"],"appliesto":"allElements","computed":["border-bottom-style","border-left-style","border-right-style","border-top-style"],"order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-style"},"border-top":{"syntax":"<line-width> || <line-style> || <color>","media":"visual","inherited":false,"animationType":["border-top-color","border-top-style","border-top-width"],"percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":["border-top-width","border-top-style","border-top-color"],"appliesto":"allElements","computed":["border-top-width","border-top-style","border-top-color"],"order":"orderOfAppearance","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-top"},"border-top-color":{"syntax":"<color>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-top-color"},"border-top-left-radius":{"syntax":"<length-percentage>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["CSS Backgrounds and Borders"],"initial":"0","appliesto":"allElementsUAsNotRequiredWhenCollapse","computed":"twoAbsoluteLengthOrPercentages","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius"},"border-top-right-radius":{"syntax":"<length-percentage>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["CSS Backgrounds and Borders"],"initial":"0","appliesto":"allElementsUAsNotRequiredWhenCollapse","computed":"twoAbsoluteLengthOrPercentages","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius"},"border-top-style":{"syntax":"<line-style>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-top-style"},"border-top-width":{"syntax":"<line-width>","media":"visual","inherited":false,"animationType":"length","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthOr0IfBorderTopStyleNoneOrHidden","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-top-width"},"border-width":{"syntax":"<line-width>{1,4}","media":"visual","inherited":false,"animationType":["border-bottom-width","border-left-width","border-right-width","border-top-width"],"percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":["border-top-width","border-right-width","border-bottom-width","border-left-width"],"appliesto":"allElements","computed":["border-bottom-width","border-left-width","border-right-width","border-top-width"],"order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-width"},"bottom":{"syntax":"<length> | <percentage> | auto","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToContainingBlockHeight","groups":["CSS Positioning"],"initial":"auto","appliesto":"positionedElements","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/bottom"},"box-align":{"syntax":"start | center | end | baseline | stretch","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions","WebKit Extensions"],"initial":"stretch","appliesto":"elementsWithDisplayBoxOrInlineBox","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-align"},"box-decoration-break":{"syntax":"slice | clone","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Fragmentation"],"initial":"slice","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-decoration-break"},"box-direction":{"syntax":"normal | reverse | inherit","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions","WebKit Extensions"],"initial":"normal","appliesto":"elementsWithDisplayBoxOrInlineBox","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-direction"},"box-flex":{"syntax":"<number>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions","WebKit Extensions"],"initial":"0","appliesto":"directChildrenOfElementsWithDisplayMozBoxMozInlineBox","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-flex"},"box-flex-group":{"syntax":"<integer>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions","WebKit Extensions"],"initial":"1","appliesto":"inFlowChildrenOfBoxElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-flex-group"},"box-lines":{"syntax":"single | multiple","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions","WebKit Extensions"],"initial":"single","appliesto":"boxElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-lines"},"box-ordinal-group":{"syntax":"<integer>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions","WebKit Extensions"],"initial":"1","appliesto":"childrenOfBoxElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-ordinal-group"},"box-orient":{"syntax":"horizontal | vertical | inline-axis | block-axis | inherit","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions","WebKit Extensions"],"initial":"inlineAxisHorizontalInXUL","appliesto":"elementsWithDisplayBoxOrInlineBox","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-orient"},"box-pack":{"syntax":"start | center | end | justify","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions","WebKit Extensions"],"initial":"start","appliesto":"elementsWithDisplayMozBoxMozInlineBox","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-pack"},"box-shadow":{"syntax":"none | <shadow>#","media":"visual","inherited":false,"animationType":"shadowList","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"none","appliesto":"allElements","computed":"absoluteLengthsSpecifiedColorAsSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-shadow"},"box-sizing":{"syntax":"content-box | border-box","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Basic User Interface"],"initial":"content-box","appliesto":"allElementsAcceptingWidthOrHeight","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-sizing"},"break-after":{"syntax":"auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Fragmentation"],"initial":"auto","appliesto":"blockLevelElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/break-after"},"break-before":{"syntax":"auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Fragmentation"],"initial":"auto","appliesto":"blockLevelElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/break-before"},"break-inside":{"syntax":"auto | avoid | avoid-page | avoid-column | avoid-region","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Fragmentation"],"initial":"auto","appliesto":"blockLevelElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/break-inside"},"caption-side":{"syntax":"top | bottom | block-start | block-end | inline-start | inline-end","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Table"],"initial":"top","appliesto":"tableCaptionElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/caption-side"},"caret-color":{"syntax":"auto | <color>","media":"interactive","inherited":true,"animationType":"color","percentages":"no","groups":["CSS Basic User Interface"],"initial":"auto","appliesto":"allElements","computed":"asAutoOrColor","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/caret-color"},"clear":{"syntax":"none | left | right | both | inline-start | inline-end","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Positioning"],"initial":"none","appliesto":"blockLevelElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/clear"},"clip":{"syntax":"<shape> | auto","media":"visual","inherited":false,"animationType":"rectangle","percentages":"no","groups":["CSS Masking"],"initial":"auto","appliesto":"absolutelyPositionedElements","computed":"autoOrRectangle","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/clip"},"clip-path":{"syntax":"<clip-source> | [ <basic-shape> || <geometry-box> ] | none","media":"visual","inherited":false,"animationType":"basicShapeOtherwiseNo","percentages":"referToReferenceBoxWhenSpecifiedOtherwiseBorderBox","groups":["CSS Masking"],"initial":"none","appliesto":"allElementsSVGContainerElements","computed":"asSpecifiedURLsAbsolute","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/clip-path"},"color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"color","percentages":"no","groups":["CSS Color"],"initial":"variesFromBrowserToBrowser","appliesto":"allElements","computed":"translucentValuesRGBAOtherwiseRGB","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/color"},"color-adjust":{"syntax":"economy | exact","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Color"],"initial":"economy","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/color-adjust"},"column-count":{"syntax":"<integer> | auto","media":"visual","inherited":false,"animationType":"integer","percentages":"no","groups":["CSS Columns"],"initial":"auto","appliesto":"blockContainersExceptTableWrappers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-count"},"column-fill":{"syntax":"auto | balance | balance-all","media":"visualInContinuousMediaNoEffectInOverflowColumns","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Columns"],"initial":"balance","appliesto":"multicolElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-fill"},"column-gap":{"syntax":"normal | <length-percentage>","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfContentArea","groups":["CSS Box Alignment"],"initial":"normal","appliesto":"multiColumnElementsFlexContainersGridContainers","computed":"asSpecifiedWithLengthsAbsoluteAndNormalComputingToZeroExceptMultiColumn","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-gap"},"column-rule":{"syntax":"<\'column-rule-width\'> || <\'column-rule-style\'> || <\'column-rule-color\'>","media":"visual","inherited":false,"animationType":["column-rule-color","column-rule-style","column-rule-width"],"percentages":"no","groups":["CSS Columns"],"initial":["column-rule-width","column-rule-style","column-rule-color"],"appliesto":"multicolElements","computed":["column-rule-color","column-rule-style","column-rule-width"],"order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-rule"},"column-rule-color":{"syntax":"<color>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Columns"],"initial":"currentcolor","appliesto":"multicolElements","computed":"computedColor","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-rule-color"},"column-rule-style":{"syntax":"<\'border-style\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Columns"],"initial":"none","appliesto":"multicolElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-rule-style"},"column-rule-width":{"syntax":"<\'border-width\'>","media":"visual","inherited":false,"animationType":"length","percentages":"no","groups":["CSS Columns"],"initial":"medium","appliesto":"multicolElements","computed":"absoluteLength0IfColumnRuleStyleNoneOrHidden","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-rule-width"},"column-span":{"syntax":"none | all","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Columns"],"initial":"none","appliesto":"inFlowBlockLevelElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-span"},"column-width":{"syntax":"<length> | auto","media":"visual","inherited":false,"animationType":"length","percentages":"no","groups":["CSS Columns"],"initial":"auto","appliesto":"blockContainersExceptTableWrappers","computed":"absoluteLengthZeroOrLarger","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-width"},"columns":{"syntax":"<\'column-width\'> || <\'column-count\'>","media":"visual","inherited":false,"animationType":["column-width","column-count"],"percentages":"no","groups":["CSS Columns"],"initial":["column-width","column-count"],"appliesto":"blockContainersExceptTableWrappers","computed":["column-width","column-count"],"order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/columns"},"contain":{"syntax":"none | strict | content | [ size || layout || style || paint ]","media":"all","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Containment"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/contain"},"content":{"syntax":"normal | none | [ <content-replacement> | <content-list> ] [/ <string> ]?","media":"all","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Generated Content"],"initial":"normal","appliesto":"beforeAndAfterPseudos","computed":"normalOnElementsForPseudosNoneAbsoluteURIStringOrAsSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/content"},"counter-increment":{"syntax":"[ <custom-ident> <integer>? ]+ | none","media":"all","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Counter Styles"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/counter-increment"},"counter-reset":{"syntax":"[ <custom-ident> <integer>? ]+ | none","media":"all","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Counter Styles"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/counter-reset"},"counter-set":{"syntax":"[ <custom-ident> <integer>? ]+ | none","media":"all","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Counter Styles"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/counter-set"},"cursor":{"syntax":"[ [ <url> [ <x> <y> ]? , ]* [ auto | default | none | context-menu | help | pointer | progress | wait | cell | crosshair | text | vertical-text | alias | copy | move | no-drop | not-allowed | e-resize | n-resize | ne-resize | nw-resize | s-resize | se-resize | sw-resize | w-resize | ew-resize | ns-resize | nesw-resize | nwse-resize | col-resize | row-resize | all-scroll | zoom-in | zoom-out | grab | grabbing ] ]","media":["visual","interactive"],"inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Basic User Interface"],"initial":"auto","appliesto":"allElements","computed":"asSpecifiedURLsAbsolute","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/cursor"},"direction":{"syntax":"ltr | rtl","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Writing Modes"],"initial":"ltr","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/direction"},"display":{"syntax":"[ <display-outside> || <display-inside> ] | <display-listitem> | <display-internal> | <display-box> | <display-legacy>","media":"all","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Display"],"initial":"inline","appliesto":"allElements","computed":"asSpecifiedExceptPositionedFloatingAndRootElementsKeywordMaybeDifferent","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/display"},"empty-cells":{"syntax":"show | hide","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Table"],"initial":"show","appliesto":"tableCellElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/empty-cells"},"filter":{"syntax":"none | <filter-function-list>","media":"visual","inherited":false,"animationType":"filterList","percentages":"no","groups":["Filter Effects"],"initial":"none","appliesto":"allElementsSVGContainerElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/filter"},"flex":{"syntax":"none | [ <\'flex-grow\'> <\'flex-shrink\'>? || <\'flex-basis\'> ]","media":"visual","inherited":false,"animationType":["flex-grow","flex-shrink","flex-basis"],"percentages":"no","groups":["CSS Flexible Box Layout"],"initial":["flex-grow","flex-shrink","flex-basis"],"appliesto":"flexItemsAndInFlowPseudos","computed":["flex-grow","flex-shrink","flex-basis"],"order":"orderOfAppearance","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/flex"},"flex-basis":{"syntax":"content | <\'width\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToFlexContainersInnerMainSize","groups":["CSS Flexible Box Layout"],"initial":"auto","appliesto":"flexItemsAndInFlowPseudos","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"lengthOrPercentageBeforeKeywordIfBothPresent","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/flex-basis"},"flex-direction":{"syntax":"row | row-reverse | column | column-reverse","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Flexible Box Layout"],"initial":"row","appliesto":"flexContainers","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/flex-direction"},"flex-flow":{"syntax":"<\'flex-direction\'> || <\'flex-wrap\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Flexible Box Layout"],"initial":["flex-direction","flex-wrap"],"appliesto":"flexContainers","computed":["flex-direction","flex-wrap"],"order":"orderOfAppearance","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/flex-flow"},"flex-grow":{"syntax":"<number>","media":"visual","inherited":false,"animationType":"number","percentages":"no","groups":["CSS Flexible Box Layout"],"initial":"0","appliesto":"flexItemsAndInFlowPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/flex-grow"},"flex-shrink":{"syntax":"<number>","media":"visual","inherited":false,"animationType":"number","percentages":"no","groups":["CSS Flexible Box Layout"],"initial":"1","appliesto":"flexItemsAndInFlowPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/flex-shrink"},"flex-wrap":{"syntax":"nowrap | wrap | wrap-reverse","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Flexible Box Layout"],"initial":"nowrap","appliesto":"flexContainers","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/flex-wrap"},"float":{"syntax":"left | right | none | inline-start | inline-end","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Positioning"],"initial":"none","appliesto":"allElementsNoEffectIfDisplayNone","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/float"},"font":{"syntax":"[ [ <\'font-style\'> || <font-variant-css21> || <\'font-weight\'> || <\'font-stretch\'> ]? <\'font-size\'> [ / <\'line-height\'> ]? <\'font-family\'> ] | caption | icon | menu | message-box | small-caption | status-bar","media":"visual","inherited":true,"animationType":["font-style","font-variant","font-weight","font-stretch","font-size","line-height","font-family"],"percentages":["font-size","line-height"],"groups":["CSS Fonts"],"initial":["font-style","font-variant","font-weight","font-stretch","font-size","line-height","font-family"],"appliesto":"allElements","computed":["font-style","font-variant","font-weight","font-stretch","font-size","line-height","font-family"],"order":"orderOfAppearance","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font"},"font-family":{"syntax":"[ <family-name> | <generic-family> ]#","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"dependsOnUserAgent","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-family"},"font-feature-settings":{"syntax":"normal | <feature-tag-value>#","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-feature-settings"},"font-kerning":{"syntax":"auto | normal | none","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-kerning"},"font-language-override":{"syntax":"normal | <string>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-language-override"},"font-optical-sizing":{"syntax":"auto | none","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing"},"font-variation-settings":{"syntax":"normal | [ <string> <number> ]#","media":"visual","inherited":true,"animationType":"transform","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-variation-settings"},"font-size":{"syntax":"<absolute-size> | <relative-size> | <length-percentage>","media":"visual","inherited":true,"animationType":"length","percentages":"referToParentElementsFontSize","groups":["CSS Fonts"],"initial":"medium","appliesto":"allElements","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-size"},"font-size-adjust":{"syntax":"none | <number>","media":"visual","inherited":true,"animationType":"number","percentages":"no","groups":["CSS Fonts"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-size-adjust"},"font-smooth":{"syntax":"auto | never | always | <absolute-size> | <length>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-smooth"},"font-stretch":{"syntax":"<font-stretch-absolute>","media":"visual","inherited":true,"animationType":"fontStretch","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-stretch"},"font-style":{"syntax":"normal | italic | oblique <angle>?","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-style"},"font-synthesis":{"syntax":"none | [ weight || style ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"weight style","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-synthesis"},"font-variant":{"syntax":"normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> || stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) || [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] || <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero || <east-asian-variant-values> || <east-asian-width-values> || ruby ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-variant"},"font-variant-alternates":{"syntax":"normal | [ stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates"},"font-variant-caps":{"syntax":"normal | small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-variant-caps"},"font-variant-east-asian":{"syntax":"normal | [ <east-asian-variant-values> || <east-asian-width-values> || ruby ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian"},"font-variant-ligatures":{"syntax":"normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures"},"font-variant-numeric":{"syntax":"normal | [ <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric"},"font-variant-position":{"syntax":"normal | sub | super","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-variant-position"},"font-weight":{"syntax":"<font-weight-absolute> | bolder | lighter","media":"visual","inherited":true,"animationType":"fontWeight","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"keywordOrNumericalValueBolderLighterTransformedToRealValue","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-weight"},"gap":{"syntax":"<\'row-gap\'> <\'column-gap\'>?","media":"visual","inherited":false,"animationType":["row-gap","column-gap"],"percentages":"no","groups":["CSS Box Alignment"],"initial":["row-gap","column-gap"],"appliesto":"multiColumnElementsFlexContainersGridContainers","computed":["row-gap","column-gap"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/gap"},"grid":{"syntax":"<\'grid-template\'> | <\'grid-template-rows\'> / [ auto-flow && dense? ] <\'grid-auto-columns\'>? | [ auto-flow && dense? ] <\'grid-auto-rows\'>? / <\'grid-template-columns\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":["grid-template-rows","grid-template-columns","grid-auto-rows","grid-auto-columns"],"groups":["CSS Grid Layout"],"initial":["grid-template-rows","grid-template-columns","grid-template-areas","grid-auto-rows","grid-auto-columns","grid-auto-flow","grid-column-gap","grid-row-gap","column-gap","row-gap"],"appliesto":"gridContainers","computed":["grid-template-rows","grid-template-columns","grid-template-areas","grid-auto-rows","grid-auto-columns","grid-auto-flow","grid-column-gap","grid-row-gap","column-gap","row-gap"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid"},"grid-area":{"syntax":"<grid-line> [ / <grid-line> ]{0,3}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":["grid-row-start","grid-column-start","grid-row-end","grid-column-end"],"appliesto":"gridItemsAndBoxesWithinGridContainer","computed":["grid-row-start","grid-column-start","grid-row-end","grid-column-end"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-area"},"grid-auto-columns":{"syntax":"<track-size>+","media":"visual","inherited":false,"animationType":"discrete","percentages":"referToDimensionOfContentArea","groups":["CSS Grid Layout"],"initial":"auto","appliesto":"gridContainers","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns"},"grid-auto-flow":{"syntax":"[ row | column ] || dense","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":"row","appliesto":"gridContainers","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow"},"grid-auto-rows":{"syntax":"<track-size>+","media":"visual","inherited":false,"animationType":"discrete","percentages":"referToDimensionOfContentArea","groups":["CSS Grid Layout"],"initial":"auto","appliesto":"gridContainers","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows"},"grid-column":{"syntax":"<grid-line> [ / <grid-line> ]?","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":["grid-column-start","grid-column-end"],"appliesto":"gridItemsAndBoxesWithinGridContainer","computed":["grid-column-start","grid-column-end"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-column"},"grid-column-end":{"syntax":"<grid-line>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":"auto","appliesto":"gridItemsAndBoxesWithinGridContainer","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-column-end"},"grid-column-gap":{"syntax":"<length-percentage>","media":"visual","inherited":false,"animationType":"length","percentages":"referToDimensionOfContentArea","groups":["CSS Grid Layout"],"initial":"0","appliesto":"gridContainers","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-gap"},"grid-column-start":{"syntax":"<grid-line>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":"auto","appliesto":"gridItemsAndBoxesWithinGridContainer","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-column-start"},"grid-gap":{"syntax":"<\'grid-row-gap\'> <\'grid-column-gap\'>?","media":"visual","inherited":false,"animationType":["grid-row-gap","grid-column-gap"],"percentages":"no","groups":["CSS Grid Layout"],"initial":["grid-row-gap","grid-column-gap"],"appliesto":"gridContainers","computed":["grid-row-gap","grid-column-gap"],"order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/gap"},"grid-row":{"syntax":"<grid-line> [ / <grid-line> ]?","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":["grid-row-start","grid-row-end"],"appliesto":"gridItemsAndBoxesWithinGridContainer","computed":["grid-row-start","grid-row-end"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-row"},"grid-row-end":{"syntax":"<grid-line>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":"auto","appliesto":"gridItemsAndBoxesWithinGridContainer","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-row-end"},"grid-row-gap":{"syntax":"<length-percentage>","media":"visual","inherited":false,"animationType":"length","percentages":"referToDimensionOfContentArea","groups":["CSS Grid Layout"],"initial":"0","appliesto":"gridContainers","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/row-gap"},"grid-row-start":{"syntax":"<grid-line>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":"auto","appliesto":"gridItemsAndBoxesWithinGridContainer","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-row-start"},"grid-template":{"syntax":"none | [ <\'grid-template-rows\'> / <\'grid-template-columns\'> ] | [ <line-names>? <string> <track-size>? <line-names>? ]+ [ / <explicit-track-list> ]?","media":"visual","inherited":false,"animationType":"discrete","percentages":["grid-template-columns","grid-template-rows"],"groups":["CSS Grid Layout"],"initial":["grid-template-columns","grid-template-rows","grid-template-areas"],"appliesto":"gridContainers","computed":["grid-template-columns","grid-template-rows","grid-template-areas"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-template"},"grid-template-areas":{"syntax":"none | <string>+","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":"none","appliesto":"gridContainers","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-template-areas"},"grid-template-columns":{"syntax":"none | <track-list> | <auto-track-list> | subgrid <line-name-list>?","media":"visual","inherited":false,"animationType":"simpleListOfLpcDifferenceLpc","percentages":"referToDimensionOfContentArea","groups":["CSS Grid Layout"],"initial":"none","appliesto":"gridContainers","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-template-columns"},"grid-template-rows":{"syntax":"none | <track-list> | <auto-track-list> | subgrid <line-name-list>?","media":"visual","inherited":false,"animationType":"simpleListOfLpcDifferenceLpc","percentages":"referToDimensionOfContentArea","groups":["CSS Grid Layout"],"initial":"none","appliesto":"gridContainers","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-template-rows"},"hanging-punctuation":{"syntax":"none | [ first || [ force-end | allow-end ] || last ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/hanging-punctuation"},"height":{"syntax":"auto | <length> | <percentage> | min-content | max-content | fit-content(<length-percentage>)","media":"visual","inherited":false,"animationType":"lpc","percentages":"regardingHeightOfGeneratedBoxContainingBlockPercentagesRelativeToContainingBlock","groups":["CSS Box Model"],"initial":"auto","appliesto":"allElementsButNonReplacedAndTableColumns","computed":"percentageAutoOrAbsoluteLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/height"},"hyphens":{"syntax":"none | manual | auto","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"manual","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/hyphens"},"image-orientation":{"syntax":"from-image | <angle> | [ <angle>? flip ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Images"],"initial":"from-image","appliesto":"allElements","computed":"angleRoundedToNextQuarter","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/image-orientation"},"image-rendering":{"syntax":"auto | crisp-edges | pixelated","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Images"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/image-rendering"},"image-resolution":{"syntax":"[ from-image || <resolution> ] && snap?","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Images"],"initial":"1dppx","appliesto":"allElements","computed":"asSpecifiedWithExceptionOfResolution","order":"uniqueOrder","status":"experimental"},"ime-mode":{"syntax":"auto | normal | active | inactive | disabled","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Basic User Interface"],"initial":"auto","appliesto":"textFields","computed":"asSpecified","order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/ime-mode"},"initial-letter":{"syntax":"normal | [ <number> <integer>? ]","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Inline"],"initial":"normal","appliesto":"firstLetterPseudoElementsAndInlineLevelFirstChildren","computed":"asSpecified","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/initial-letter"},"initial-letter-align":{"syntax":"[ auto | alphabetic | hanging | ideographic ]","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Inline"],"initial":"auto","appliesto":"firstLetterPseudoElementsAndInlineLevelFirstChildren","computed":"asSpecified","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/initial-letter-align"},"inline-size":{"syntax":"<\'width\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"inlineSizeOfContainingBlock","groups":["CSS Logical Properties"],"initial":"auto","appliesto":"sameAsWidthAndHeight","computed":"sameAsWidthAndHeight","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/inline-size"},"inset":{"syntax":"<\'top\'>{1,4}","media":"visual","inherited":false,"animationType":"lpc","percentages":"logicalHeightOfContainingBlock","groups":["CSS Logical Properties"],"initial":"auto","appliesto":"positionedElements","computed":"sameAsBoxOffsets","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/inset"},"inset-block":{"syntax":"<\'top\'>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"logicalHeightOfContainingBlock","groups":["CSS Logical Properties"],"initial":"auto","appliesto":"positionedElements","computed":"sameAsBoxOffsets","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/inset-block"},"inset-block-end":{"syntax":"<\'top\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"logicalHeightOfContainingBlock","groups":["CSS Logical Properties"],"initial":"auto","appliesto":"positionedElements","computed":"sameAsBoxOffsets","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/inset-block-end"},"inset-block-start":{"syntax":"<\'top\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"logicalHeightOfContainingBlock","groups":["CSS Logical Properties"],"initial":"auto","appliesto":"positionedElements","computed":"sameAsBoxOffsets","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/inset-block-start"},"inset-inline":{"syntax":"<\'top\'>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"auto","appliesto":"positionedElements","computed":"sameAsBoxOffsets","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/inset-inline"},"inset-inline-end":{"syntax":"<\'top\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"auto","appliesto":"positionedElements","computed":"sameAsBoxOffsets","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/inset-inline-end"},"inset-inline-start":{"syntax":"<\'top\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"auto","appliesto":"positionedElements","computed":"sameAsBoxOffsets","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/inset-inline-start"},"isolation":{"syntax":"auto | isolate","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Compositing and Blending"],"initial":"auto","appliesto":"allElementsSVGContainerGraphicsAndGraphicsReferencingElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/isolation"},"justify-content":{"syntax":"normal | <content-distribution> | <overflow-position>? [ <content-position> | left | right ]","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":"normal","appliesto":"flexContainers","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/justify-content"},"justify-items":{"syntax":"normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ] | legacy | legacy && [ left | right | center ]","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":"legacy","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/justify-items"},"justify-self":{"syntax":"auto | normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ]","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":"auto","appliesto":"blockLevelBoxesAndAbsolutelyPositionedBoxesAndGridItems","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/justify-self"},"justify-tracks":{"syntax":"[ normal | <content-distribution> | <overflow-position>? [ <content-position> | left | right ] ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":"normal","appliesto":"gridContainersWithMasonryLayoutInTheirInlineAxis","computed":"asSpecified","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/justify-tracks"},"left":{"syntax":"<length> | <percentage> | auto","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToWidthOfContainingBlock","groups":["CSS Positioning"],"initial":"auto","appliesto":"positionedElements","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/left"},"letter-spacing":{"syntax":"normal | <length>","media":"visual","inherited":true,"animationType":"length","percentages":"no","groups":["CSS Text"],"initial":"normal","appliesto":"allElements","computed":"optimumValueOfAbsoluteLengthOrNormal","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/letter-spacing"},"line-break":{"syntax":"auto | loose | normal | strict | anywhere","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/line-break"},"line-clamp":{"syntax":"none | <integer>","media":"visual","inherited":false,"animationType":"integer","percentages":"no","groups":["CSS Overflow"],"initial":"none","appliesto":"blockContainersExceptMultiColumnContainers","computed":"asSpecified","order":"perGrammar","status":"experimental"},"line-height":{"syntax":"normal | <number> | <length> | <percentage>","media":"visual","inherited":true,"animationType":"numberOrLength","percentages":"referToElementFontSize","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"absoluteLengthOrAsSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/line-height"},"line-height-step":{"syntax":"<length>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"0","appliesto":"blockContainers","computed":"absoluteLength","order":"perGrammar","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/line-height-step"},"list-style":{"syntax":"<\'list-style-type\'> || <\'list-style-position\'> || <\'list-style-image\'>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Lists and Counters"],"initial":["list-style-type","list-style-position","list-style-image"],"appliesto":"listItems","computed":["list-style-image","list-style-position","list-style-type"],"order":"orderOfAppearance","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/list-style"},"list-style-image":{"syntax":"<url> | none","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Lists and Counters"],"initial":"none","appliesto":"listItems","computed":"noneOrImageWithAbsoluteURI","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/list-style-image"},"list-style-position":{"syntax":"inside | outside","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Lists and Counters"],"initial":"outside","appliesto":"listItems","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/list-style-position"},"list-style-type":{"syntax":"<counter-style> | <string> | none","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Lists and Counters"],"initial":"disc","appliesto":"listItems","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/list-style-type"},"margin":{"syntax":"[ <length> | <percentage> | auto ]{1,4}","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":["margin-bottom","margin-left","margin-right","margin-top"],"appliesto":"allElementsExceptTableDisplayTypes","computed":["margin-bottom","margin-left","margin-right","margin-top"],"order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin"},"margin-block":{"syntax":"<\'margin-left\'>{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"dependsOnLayoutModel","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsMargin","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-block"},"margin-block-end":{"syntax":"<\'margin-left\'>","media":"visual","inherited":false,"animationType":"length","percentages":"dependsOnLayoutModel","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsMargin","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-block-end"},"margin-block-start":{"syntax":"<\'margin-left\'>","media":"visual","inherited":false,"animationType":"length","percentages":"dependsOnLayoutModel","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsMargin","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-block-start"},"margin-bottom":{"syntax":"<length> | <percentage> | auto","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"0","appliesto":"allElementsExceptTableDisplayTypes","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-bottom"},"margin-inline":{"syntax":"<\'margin-left\'>{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"dependsOnLayoutModel","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsMargin","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-inline"},"margin-inline-end":{"syntax":"<\'margin-left\'>","media":"visual","inherited":false,"animationType":"length","percentages":"dependsOnLayoutModel","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsMargin","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-inline-end"},"margin-inline-start":{"syntax":"<\'margin-left\'>","media":"visual","inherited":false,"animationType":"length","percentages":"dependsOnLayoutModel","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsMargin","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-inline-start"},"margin-left":{"syntax":"<length> | <percentage> | auto","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"0","appliesto":"allElementsExceptTableDisplayTypes","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-left"},"margin-right":{"syntax":"<length> | <percentage> | auto","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"0","appliesto":"allElementsExceptTableDisplayTypes","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-right"},"margin-top":{"syntax":"<length> | <percentage> | auto","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"0","appliesto":"allElementsExceptTableDisplayTypes","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-top"},"margin-trim":{"syntax":"none | in-flow | all","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Model"],"initial":"none","appliesto":"blockContainersAndMultiColumnContainers","computed":"asSpecified","order":"perGrammar","alsoAppliesTo":["::first-letter","::first-line"],"status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-trim"},"mask":{"syntax":"<mask-layer>#","media":"visual","inherited":false,"animationType":["mask-image","mask-mode","mask-repeat","mask-position","mask-clip","mask-origin","mask-size","mask-composite"],"percentages":["mask-position"],"groups":["CSS Masking"],"initial":["mask-image","mask-mode","mask-repeat","mask-position","mask-clip","mask-origin","mask-size","mask-composite"],"appliesto":"allElementsSVGContainerElements","computed":["mask-image","mask-mode","mask-repeat","mask-position","mask-clip","mask-origin","mask-size","mask-composite"],"order":"perGrammar","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask"},"mask-border":{"syntax":"<\'mask-border-source\'> || <\'mask-border-slice\'> [ / <\'mask-border-width\'>? [ / <\'mask-border-outset\'> ]? ]? || <\'mask-border-repeat\'> || <\'mask-border-mode\'>","media":"visual","inherited":false,"animationType":["mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width"],"percentages":["mask-border-slice","mask-border-width"],"groups":["CSS Masking"],"initial":["mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width"],"appliesto":"allElementsSVGContainerElements","computed":["mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width"],"order":"perGrammar","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-border"},"mask-border-mode":{"syntax":"luminance | alpha","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"alpha","appliesto":"allElementsSVGContainerElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-border-mode"},"mask-border-outset":{"syntax":"[ <length> | <number> ]{1,4}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"0","appliesto":"allElementsSVGContainerElements","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-border-outset"},"mask-border-repeat":{"syntax":"[ stretch | repeat | round | space ]{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"stretch","appliesto":"allElementsSVGContainerElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-border-repeat"},"mask-border-slice":{"syntax":"<number-percentage>{1,4} fill?","media":"visual","inherited":false,"animationType":"discrete","percentages":"referToSizeOfMaskBorderImage","groups":["CSS Masking"],"initial":"0","appliesto":"allElementsSVGContainerElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-border-slice"},"mask-border-source":{"syntax":"none | <image>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"none","appliesto":"allElementsSVGContainerElements","computed":"asSpecifiedURLsAbsolute","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-border-source"},"mask-border-width":{"syntax":"[ <length-percentage> | <number> | auto ]{1,4}","media":"visual","inherited":false,"animationType":"discrete","percentages":"relativeToMaskBorderImageArea","groups":["CSS Masking"],"initial":"auto","appliesto":"allElementsSVGContainerElements","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-border-width"},"mask-clip":{"syntax":"[ <geometry-box> | no-clip ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"border-box","appliesto":"allElementsSVGContainerElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-clip"},"mask-composite":{"syntax":"<compositing-operator>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"add","appliesto":"allElementsSVGContainerElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-composite"},"mask-image":{"syntax":"<mask-reference>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"none","appliesto":"allElementsSVGContainerElements","computed":"asSpecifiedURLsAbsolute","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-image"},"mask-mode":{"syntax":"<masking-mode>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"match-source","appliesto":"allElementsSVGContainerElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-mode"},"mask-origin":{"syntax":"<geometry-box>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"border-box","appliesto":"allElementsSVGContainerElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-origin"},"mask-position":{"syntax":"<position>#","media":"visual","inherited":false,"animationType":"repeatableListOfSimpleListOfLpc","percentages":"referToSizeOfMaskPaintingArea","groups":["CSS Masking"],"initial":"center","appliesto":"allElementsSVGContainerElements","computed":"consistsOfTwoKeywordsForOriginAndOffsets","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-position"},"mask-repeat":{"syntax":"<repeat-style>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"no-repeat","appliesto":"allElementsSVGContainerElements","computed":"consistsOfTwoDimensionKeywords","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-repeat"},"mask-size":{"syntax":"<bg-size>#","media":"visual","inherited":false,"animationType":"repeatableListOfSimpleListOfLpc","percentages":"no","groups":["CSS Masking"],"initial":"auto","appliesto":"allElementsSVGContainerElements","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-size"},"mask-type":{"syntax":"luminance | alpha","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"luminance","appliesto":"maskElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-type"},"masonry-auto-flow":{"syntax":"[ pack | next ] || [ definite-first | ordered ]","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":"pack","appliesto":"gridContainersWithMasonryLayout","computed":"asSpecified","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/masonry-auto-flow"},"math-style":{"syntax":"normal | compact","media":"visual","inherited":true,"animationType":"notAnimatable","percentages":"no","groups":["MathML"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/math-style"},"max-block-size":{"syntax":"<\'max-width\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"blockSizeOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsWidthAndHeight","computed":"sameAsMaxWidthAndMaxHeight","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/max-block-size"},"max-height":{"syntax":"none | <length-percentage> | min-content | max-content | fit-content(<length-percentage>)","media":"visual","inherited":false,"animationType":"lpc","percentages":"regardingHeightOfGeneratedBoxContainingBlockPercentagesNone","groups":["CSS Box Model"],"initial":"none","appliesto":"allElementsButNonReplacedAndTableColumns","computed":"percentageAsSpecifiedAbsoluteLengthOrNone","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/max-height"},"max-inline-size":{"syntax":"<\'max-width\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"inlineSizeOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsWidthAndHeight","computed":"sameAsMaxWidthAndMaxHeight","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/max-inline-size"},"max-lines":{"syntax":"none | <integer>","media":"visual","inherited":false,"animationType":"integer","percentages":"no","groups":["CSS Overflow"],"initial":"none","appliesto":"blockContainersExceptMultiColumnContainers","computed":"asSpecified","order":"perGrammar","status":"experimental"},"max-width":{"syntax":"none | <length-percentage> | min-content | max-content | fit-content(<length-percentage>)","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"none","appliesto":"allElementsButNonReplacedAndTableRows","computed":"percentageAsSpecifiedAbsoluteLengthOrNone","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/max-width"},"min-block-size":{"syntax":"<\'min-width\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"blockSizeOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsWidthAndHeight","computed":"sameAsMinWidthAndMinHeight","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/min-block-size"},"min-height":{"syntax":"auto | <length> | <percentage> | min-content | max-content | fit-content(<length-percentage>)","media":"visual","inherited":false,"animationType":"lpc","percentages":"regardingHeightOfGeneratedBoxContainingBlockPercentages0","groups":["CSS Box Model"],"initial":"auto","appliesto":"allElementsButNonReplacedAndTableColumns","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/min-height"},"min-inline-size":{"syntax":"<\'min-width\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"inlineSizeOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsWidthAndHeight","computed":"sameAsMinWidthAndMinHeight","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/min-inline-size"},"min-width":{"syntax":"auto | <length> | <percentage> | min-content | max-content | fit-content(<length-percentage>)","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"auto","appliesto":"allElementsButNonReplacedAndTableRows","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/min-width"},"mix-blend-mode":{"syntax":"<blend-mode>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Compositing and Blending"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode"},"object-fit":{"syntax":"fill | contain | cover | none | scale-down","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Images"],"initial":"fill","appliesto":"replacedElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/object-fit"},"object-position":{"syntax":"<position>","media":"visual","inherited":true,"animationType":"repeatableListOfSimpleListOfLpc","percentages":"referToWidthAndHeightOfElement","groups":["CSS Images"],"initial":"50% 50%","appliesto":"replacedElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/object-position"},"offset":{"syntax":"[ <\'offset-position\'>? [ <\'offset-path\'> [ <\'offset-distance\'> || <\'offset-rotate\'> ]? ]? ]! [ / <\'offset-anchor\'> ]?","media":"visual","inherited":false,"animationType":["offset-position","offset-path","offset-distance","offset-anchor","offset-rotate"],"percentages":["offset-position","offset-distance","offset-anchor"],"groups":["CSS Motion Path"],"initial":["offset-position","offset-path","offset-distance","offset-anchor","offset-rotate"],"appliesto":"transformableElements","computed":["offset-position","offset-path","offset-distance","offset-anchor","offset-rotate"],"order":"perGrammar","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/offset"},"offset-anchor":{"syntax":"auto | <position>","media":"visual","inherited":false,"animationType":"position","percentages":"relativeToWidthAndHeight","groups":["CSS Motion Path"],"initial":"auto","appliesto":"transformableElements","computed":"forLengthAbsoluteValueOtherwisePercentage","order":"perGrammar","status":"standard"},"offset-distance":{"syntax":"<length-percentage>","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToTotalPathLength","groups":["CSS Motion Path"],"initial":"0","appliesto":"transformableElements","computed":"forLengthAbsoluteValueOtherwisePercentage","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/offset-distance"},"offset-path":{"syntax":"none | ray( [ <angle> && <size> && contain? ] ) | <path()> | <url> | [ <basic-shape> || <geometry-box> ]","media":"visual","inherited":false,"animationType":"angleOrBasicShapeOrPath","percentages":"no","groups":["CSS Motion Path"],"initial":"none","appliesto":"transformableElements","computed":"asSpecified","order":"perGrammar","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/offset-path"},"offset-position":{"syntax":"auto | <position>","media":"visual","inherited":false,"animationType":"position","percentages":"referToSizeOfContainingBlock","groups":["CSS Motion Path"],"initial":"auto","appliesto":"transformableElements","computed":"forLengthAbsoluteValueOtherwisePercentage","order":"perGrammar","status":"experimental"},"offset-rotate":{"syntax":"[ auto | reverse ] || <angle>","media":"visual","inherited":false,"animationType":"angleOrBasicShapeOrPath","percentages":"no","groups":["CSS Motion Path"],"initial":"auto","appliesto":"transformableElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/offset-rotate"},"opacity":{"syntax":"<alpha-value>","media":"visual","inherited":false,"animationType":"number","percentages":"no","groups":["CSS Color"],"initial":"1.0","appliesto":"allElements","computed":"specifiedValueClipped0To1","order":"uniqueOrder","alsoAppliesTo":["::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/opacity"},"order":{"syntax":"<integer>","media":"visual","inherited":false,"animationType":"integer","percentages":"no","groups":["CSS Flexible Box Layout"],"initial":"0","appliesto":"flexItemsGridItemsAbsolutelyPositionedContainerChildren","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/order"},"orphans":{"syntax":"<integer>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fragmentation"],"initial":"2","appliesto":"blockContainerElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/orphans"},"outline":{"syntax":"[ <\'outline-color\'> || <\'outline-style\'> || <\'outline-width\'> ]","media":["visual","interactive"],"inherited":false,"animationType":["outline-color","outline-width","outline-style"],"percentages":"no","groups":["CSS Basic User Interface"],"initial":["outline-color","outline-style","outline-width"],"appliesto":"allElements","computed":["outline-color","outline-width","outline-style"],"order":"orderOfAppearance","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/outline"},"outline-color":{"syntax":"<color> | invert","media":["visual","interactive"],"inherited":false,"animationType":"color","percentages":"no","groups":["CSS Basic User Interface"],"initial":"invertOrCurrentColor","appliesto":"allElements","computed":"invertForTranslucentColorRGBAOtherwiseRGB","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/outline-color"},"outline-offset":{"syntax":"<length>","media":["visual","interactive"],"inherited":false,"animationType":"length","percentages":"no","groups":["CSS Basic User Interface"],"initial":"0","appliesto":"allElements","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/outline-offset"},"outline-style":{"syntax":"auto | <\'border-style\'>","media":["visual","interactive"],"inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Basic User Interface"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/outline-style"},"outline-width":{"syntax":"<line-width>","media":["visual","interactive"],"inherited":false,"animationType":"length","percentages":"no","groups":["CSS Basic User Interface"],"initial":"medium","appliesto":"allElements","computed":"absoluteLength0ForNone","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/outline-width"},"overflow":{"syntax":"[ visible | hidden | clip | scroll | auto ]{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Overflow"],"initial":"visible","appliesto":"blockContainersFlexContainersGridContainers","computed":["overflow-x","overflow-y"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overflow"},"overflow-anchor":{"syntax":"auto | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Scroll Anchoring"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard"},"overflow-block":{"syntax":"visible | hidden | clip | scroll | auto","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Overflow"],"initial":"auto","appliesto":"blockContainersFlexContainersGridContainers","computed":"asSpecifiedButVisibleOrClipReplacedToAutoOrHiddenIfOtherValueDifferent","order":"perGrammar","status":"standard"},"overflow-clip-box":{"syntax":"padding-box | content-box","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"padding-box","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Mozilla/CSS/overflow-clip-box"},"overflow-inline":{"syntax":"visible | hidden | clip | scroll | auto","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Overflow"],"initial":"auto","appliesto":"blockContainersFlexContainersGridContainers","computed":"asSpecifiedButVisibleOrClipReplacedToAutoOrHiddenIfOtherValueDifferent","order":"perGrammar","status":"standard"},"overflow-wrap":{"syntax":"normal | break-word | anywhere","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"normal","appliesto":"nonReplacedInlineElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overflow-wrap"},"overflow-x":{"syntax":"visible | hidden | clip | scroll | auto","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Overflow"],"initial":"visible","appliesto":"blockContainersFlexContainersGridContainers","computed":"asSpecifiedButVisibleOrClipReplacedToAutoOrHiddenIfOtherValueDifferent","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overflow-x"},"overflow-y":{"syntax":"visible | hidden | clip | scroll | auto","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Overflow"],"initial":"visible","appliesto":"blockContainersFlexContainersGridContainers","computed":"asSpecifiedButVisibleOrClipReplacedToAutoOrHiddenIfOtherValueDifferent","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overflow-y"},"overscroll-behavior":{"syntax":"[ contain | none | auto ]{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Model"],"initial":"auto","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior"},"overscroll-behavior-block":{"syntax":"contain | none | auto","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Model"],"initial":"auto","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-block"},"overscroll-behavior-inline":{"syntax":"contain | none | auto","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Model"],"initial":"auto","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-inline"},"overscroll-behavior-x":{"syntax":"contain | none | auto","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Model"],"initial":"auto","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-x"},"overscroll-behavior-y":{"syntax":"contain | none | auto","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Model"],"initial":"auto","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-y"},"padding":{"syntax":"[ <length> | <percentage> ]{1,4}","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":["padding-bottom","padding-left","padding-right","padding-top"],"appliesto":"allElementsExceptInternalTableDisplayTypes","computed":["padding-bottom","padding-left","padding-right","padding-top"],"order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding"},"padding-block":{"syntax":"<\'padding-left\'>{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElements","computed":"asLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-block"},"padding-block-end":{"syntax":"<\'padding-left\'>","media":"visual","inherited":false,"animationType":"length","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElements","computed":"asLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-block-end"},"padding-block-start":{"syntax":"<\'padding-left\'>","media":"visual","inherited":false,"animationType":"length","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElements","computed":"asLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-block-start"},"padding-bottom":{"syntax":"<length> | <percentage>","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"0","appliesto":"allElementsExceptInternalTableDisplayTypes","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-bottom"},"padding-inline":{"syntax":"<\'padding-left\'>{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElements","computed":"asLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-inline"},"padding-inline-end":{"syntax":"<\'padding-left\'>","media":"visual","inherited":false,"animationType":"length","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElements","computed":"asLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-inline-end"},"padding-inline-start":{"syntax":"<\'padding-left\'>","media":"visual","inherited":false,"animationType":"length","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElements","computed":"asLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-inline-start"},"padding-left":{"syntax":"<length> | <percentage>","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"0","appliesto":"allElementsExceptInternalTableDisplayTypes","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-left"},"padding-right":{"syntax":"<length> | <percentage>","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"0","appliesto":"allElementsExceptInternalTableDisplayTypes","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-right"},"padding-top":{"syntax":"<length> | <percentage>","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"0","appliesto":"allElementsExceptInternalTableDisplayTypes","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-top"},"page-break-after":{"syntax":"auto | always | avoid | left | right | recto | verso","media":["visual","paged"],"inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Pages"],"initial":"auto","appliesto":"blockElementsInNormalFlow","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/page-break-after"},"page-break-before":{"syntax":"auto | always | avoid | left | right | recto | verso","media":["visual","paged"],"inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Pages"],"initial":"auto","appliesto":"blockElementsInNormalFlow","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/page-break-before"},"page-break-inside":{"syntax":"auto | avoid","media":["visual","paged"],"inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Pages"],"initial":"auto","appliesto":"blockElementsInNormalFlow","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/page-break-inside"},"paint-order":{"syntax":"normal | [ fill || stroke || markers ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"normal","appliesto":"textElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/paint-order"},"perspective":{"syntax":"none | <length>","media":"visual","inherited":false,"animationType":"length","percentages":"no","groups":["CSS Transforms"],"initial":"none","appliesto":"transformableElements","computed":"absoluteLengthOrNone","order":"uniqueOrder","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/perspective"},"perspective-origin":{"syntax":"<position>","media":"visual","inherited":false,"animationType":"simpleListOfLpc","percentages":"referToSizeOfBoundingBox","groups":["CSS Transforms"],"initial":"50% 50%","appliesto":"transformableElements","computed":"forLengthAbsoluteValueOtherwisePercentage","order":"oneOrTwoValuesLengthAbsoluteKeywordsPercentages","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/perspective-origin"},"place-content":{"syntax":"<\'align-content\'> <\'justify-content\'>?","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":"normal","appliesto":"multilineFlexContainers","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/place-content"},"place-items":{"syntax":"<\'align-items\'> <\'justify-items\'>?","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":["align-items","justify-items"],"appliesto":"allElements","computed":["align-items","justify-items"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/place-items"},"place-self":{"syntax":"<\'align-self\'> <\'justify-self\'>?","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":["align-self","justify-self"],"appliesto":"blockLevelBoxesAndAbsolutelyPositionedBoxesAndGridItems","computed":["align-self","justify-self"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/place-self"},"pointer-events":{"syntax":"auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | inherit","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Pointer Events"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/pointer-events"},"position":{"syntax":"static | relative | absolute | sticky | fixed","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Positioning"],"initial":"static","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/position"},"quotes":{"syntax":"none | auto | [ <string> <string> ]+","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Generated Content"],"initial":"dependsOnUserAgent","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/quotes"},"resize":{"syntax":"none | both | horizontal | vertical | block | inline","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Basic User Interface"],"initial":"none","appliesto":"elementsWithOverflowNotVisibleAndReplacedElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/resize"},"right":{"syntax":"<length> | <percentage> | auto","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToWidthOfContainingBlock","groups":["CSS Positioning"],"initial":"auto","appliesto":"positionedElements","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/right"},"rotate":{"syntax":"none | <angle> | [ x | y | z | <number>{3} ] && <angle>","media":"visual","inherited":false,"animationType":"transform","percentages":"no","groups":["CSS Transforms"],"initial":"none","appliesto":"transformableElements","computed":"asSpecified","order":"perGrammar","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/rotate"},"row-gap":{"syntax":"normal | <length-percentage>","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfContentArea","groups":["CSS Box Alignment"],"initial":"normal","appliesto":"multiColumnElementsFlexContainersGridContainers","computed":"asSpecifiedWithLengthsAbsoluteAndNormalComputingToZeroExceptMultiColumn","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/row-gap"},"ruby-align":{"syntax":"start | center | space-between | space-around","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Ruby"],"initial":"space-around","appliesto":"rubyBasesAnnotationsBaseAnnotationContainers","computed":"asSpecified","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/ruby-align"},"ruby-merge":{"syntax":"separate | collapse | auto","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Ruby"],"initial":"separate","appliesto":"rubyAnnotationsContainers","computed":"asSpecified","order":"uniqueOrder","status":"experimental"},"ruby-position":{"syntax":"over | under | inter-character","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Ruby"],"initial":"over","appliesto":"rubyAnnotationsContainers","computed":"asSpecified","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/ruby-position"},"scale":{"syntax":"none | <number>{1,3}","media":"visual","inherited":false,"animationType":"transform","percentages":"no","groups":["CSS Transforms"],"initial":"none","appliesto":"transformableElements","computed":"asSpecified","order":"perGrammar","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scale"},"scrollbar-color":{"syntax":"auto | dark | light | <color>{2}","media":"visual","inherited":true,"animationType":"color","percentages":"no","groups":["CSS Scrollbars"],"initial":"auto","appliesto":"scrollingBoxes","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scrollbar-color"},"scrollbar-gutter":{"syntax":"auto | [ stable | always ] && both? && force?","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Overflow"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scrollbar-gutter"},"scrollbar-width":{"syntax":"auto | thin | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Scrollbars"],"initial":"auto","appliesto":"scrollingBoxes","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scrollbar-width"},"scroll-behavior":{"syntax":"auto | smooth","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSSOM View"],"initial":"auto","appliesto":"scrollingBoxes","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-behavior"},"scroll-margin":{"syntax":"<length>{1,4}","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin"},"scroll-margin-block":{"syntax":"<length>{1,2}","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block"},"scroll-margin-block-start":{"syntax":"<length>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-start"},"scroll-margin-block-end":{"syntax":"<length>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-end"},"scroll-margin-bottom":{"syntax":"<length>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-bottom"},"scroll-margin-inline":{"syntax":"<length>{1,2}","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline"},"scroll-margin-inline-start":{"syntax":"<length>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-start"},"scroll-margin-inline-end":{"syntax":"<length>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-end"},"scroll-margin-left":{"syntax":"<length>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-left"},"scroll-margin-right":{"syntax":"<length>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-right"},"scroll-margin-top":{"syntax":"<length>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-top"},"scroll-padding":{"syntax":"[ auto | <length-percentage> ]{1,4}","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding"},"scroll-padding-block":{"syntax":"[ auto | <length-percentage> ]{1,2}","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block"},"scroll-padding-block-start":{"syntax":"auto | <length-percentage>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-start"},"scroll-padding-block-end":{"syntax":"auto | <length-percentage>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-end"},"scroll-padding-bottom":{"syntax":"auto | <length-percentage>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-bottom"},"scroll-padding-inline":{"syntax":"[ auto | <length-percentage> ]{1,2}","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline"},"scroll-padding-inline-start":{"syntax":"auto | <length-percentage>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-start"},"scroll-padding-inline-end":{"syntax":"auto | <length-percentage>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-end"},"scroll-padding-left":{"syntax":"auto | <length-percentage>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-left"},"scroll-padding-right":{"syntax":"auto | <length-percentage>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-right"},"scroll-padding-top":{"syntax":"auto | <length-percentage>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-top"},"scroll-snap-align":{"syntax":"[ none | start | end | center ]{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Scroll Snap"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align"},"scroll-snap-coordinate":{"syntax":"none | <position>#","media":"interactive","inherited":false,"animationType":"position","percentages":"referToBorderBox","groups":["CSS Scroll Snap"],"initial":"none","appliesto":"allElements","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-coordinate"},"scroll-snap-destination":{"syntax":"<position>","media":"interactive","inherited":false,"animationType":"position","percentages":"relativeToScrollContainerPaddingBoxAxis","groups":["CSS Scroll Snap"],"initial":"0px 0px","appliesto":"scrollContainers","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-destination"},"scroll-snap-points-x":{"syntax":"none | repeat( <length-percentage> )","media":"interactive","inherited":false,"animationType":"discrete","percentages":"relativeToScrollContainerPaddingBoxAxis","groups":["CSS Scroll Snap"],"initial":"none","appliesto":"scrollContainers","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-points-x"},"scroll-snap-points-y":{"syntax":"none | repeat( <length-percentage> )","media":"interactive","inherited":false,"animationType":"discrete","percentages":"relativeToScrollContainerPaddingBoxAxis","groups":["CSS Scroll Snap"],"initial":"none","appliesto":"scrollContainers","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-points-y"},"scroll-snap-stop":{"syntax":"normal | always","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Scroll Snap"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop"},"scroll-snap-type":{"syntax":"none | [ x | y | block | inline | both ] [ mandatory | proximity ]?","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Scroll Snap"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type"},"scroll-snap-type-x":{"syntax":"none | mandatory | proximity","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Scroll Snap"],"initial":"none","appliesto":"scrollContainers","computed":"asSpecified","order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type-x"},"scroll-snap-type-y":{"syntax":"none | mandatory | proximity","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Scroll Snap"],"initial":"none","appliesto":"scrollContainers","computed":"asSpecified","order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type-y"},"shape-image-threshold":{"syntax":"<alpha-value>","media":"visual","inherited":false,"animationType":"number","percentages":"no","groups":["CSS Shapes"],"initial":"0.0","appliesto":"floats","computed":"specifiedValueNumberClipped0To1","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold"},"shape-margin":{"syntax":"<length-percentage>","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToWidthOfContainingBlock","groups":["CSS Shapes"],"initial":"0","appliesto":"floats","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/shape-margin"},"shape-outside":{"syntax":"none | <shape-box> || <basic-shape> | <image>","media":"visual","inherited":false,"animationType":"basicShapeOtherwiseNo","percentages":"no","groups":["CSS Shapes"],"initial":"none","appliesto":"floats","computed":"asDefinedForBasicShapeWithAbsoluteURIOtherwiseAsSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/shape-outside"},"tab-size":{"syntax":"<integer> | <length>","media":"visual","inherited":true,"animationType":"length","percentages":"no","groups":["CSS Text"],"initial":"8","appliesto":"blockContainers","computed":"specifiedIntegerOrAbsoluteLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/tab-size"},"table-layout":{"syntax":"auto | fixed","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Table"],"initial":"auto","appliesto":"tableElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/table-layout"},"text-align":{"syntax":"start | end | left | right | center | justify | match-parent","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"startOrNamelessValueIfLTRRightIfRTL","appliesto":"blockContainers","computed":"asSpecifiedExceptMatchParent","order":"orderOfAppearance","alsoAppliesTo":["::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-align"},"text-align-last":{"syntax":"auto | start | end | left | right | center | justify","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"auto","appliesto":"blockContainers","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-align-last"},"text-combine-upright":{"syntax":"none | all | [ digits <integer>? ]","media":"visual","inherited":true,"animationType":"notAnimatable","percentages":"no","groups":["CSS Writing Modes"],"initial":"none","appliesto":"nonReplacedInlineElements","computed":"keywordPlusIntegerIfDigits","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-combine-upright"},"text-decoration":{"syntax":"<\'text-decoration-line\'> || <\'text-decoration-style\'> || <\'text-decoration-color\'> || <\'text-decoration-thickness\'>","media":"visual","inherited":false,"animationType":["text-decoration-color","text-decoration-style","text-decoration-line","text-decoration-thickness"],"percentages":"no","groups":["CSS Text Decoration"],"initial":["text-decoration-color","text-decoration-style","text-decoration-line"],"appliesto":"allElements","computed":["text-decoration-line","text-decoration-style","text-decoration-color","text-decoration-thickness"],"order":"orderOfAppearance","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-decoration"},"text-decoration-color":{"syntax":"<color>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Text Decoration"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-decoration-color"},"text-decoration-line":{"syntax":"none | [ underline || overline || line-through || blink ] | spelling-error | grammar-error","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Text Decoration"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-decoration-line"},"text-decoration-skip":{"syntax":"none | [ objects || [ spaces | [ leading-spaces || trailing-spaces ] ] || edges || box-decoration ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text Decoration"],"initial":"objects","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip"},"text-decoration-skip-ink":{"syntax":"auto | all | none","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text Decoration"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip-ink"},"text-decoration-style":{"syntax":"solid | double | dotted | dashed | wavy","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Text Decoration"],"initial":"solid","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-decoration-style"},"text-decoration-thickness":{"syntax":"auto | from-font | <length> | <percentage> ","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"referToElementFontSize","groups":["CSS Text Decoration"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness"},"text-emphasis":{"syntax":"<\'text-emphasis-style\'> || <\'text-emphasis-color\'>","media":"visual","inherited":false,"animationType":["text-emphasis-color","text-emphasis-style"],"percentages":"no","groups":["CSS Text Decoration"],"initial":["text-emphasis-style","text-emphasis-color"],"appliesto":"allElements","computed":["text-emphasis-style","text-emphasis-color"],"order":"orderOfAppearance","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-emphasis"},"text-emphasis-color":{"syntax":"<color>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Text Decoration"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-emphasis-color"},"text-emphasis-position":{"syntax":"[ over | under ] && [ right | left ]","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Text Decoration"],"initial":"over right","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-emphasis-position"},"text-emphasis-style":{"syntax":"none | [ [ filled | open ] || [ dot | circle | double-circle | triangle | sesame ] ] | <string>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Text Decoration"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style"},"text-indent":{"syntax":"<length-percentage> && hanging? && each-line?","media":"visual","inherited":true,"animationType":"lpc","percentages":"referToWidthOfContainingBlock","groups":["CSS Text"],"initial":"0","appliesto":"blockContainers","computed":"percentageOrAbsoluteLengthPlusKeywords","order":"lengthOrPercentageBeforeKeywords","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-indent"},"text-justify":{"syntax":"auto | inter-character | inter-word | none","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"auto","appliesto":"inlineLevelAndTableCellElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-justify"},"text-orientation":{"syntax":"mixed | upright | sideways","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Writing Modes"],"initial":"mixed","appliesto":"allElementsExceptTableRowGroupsRowsColumnGroupsAndColumns","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-orientation"},"text-overflow":{"syntax":"[ clip | ellipsis | <string> ]{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Basic User Interface"],"initial":"clip","appliesto":"blockContainerElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-overflow"},"text-rendering":{"syntax":"auto | optimizeSpeed | optimizeLegibility | geometricPrecision","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Miscellaneous"],"initial":"auto","appliesto":"textElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-rendering"},"text-shadow":{"syntax":"none | <shadow-t>#","media":"visual","inherited":true,"animationType":"shadowList","percentages":"no","groups":["CSS Text Decoration"],"initial":"none","appliesto":"allElements","computed":"colorPlusThreeAbsoluteLengths","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-shadow"},"text-size-adjust":{"syntax":"none | auto | <percentage>","media":"visual","inherited":true,"animationType":"discrete","percentages":"referToSizeOfFont","groups":["CSS Text"],"initial":"autoForSmartphoneBrowsersSupportingInflation","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-size-adjust"},"text-transform":{"syntax":"none | capitalize | uppercase | lowercase | full-width | full-size-kana","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-transform"},"text-underline-offset":{"syntax":"auto | <length> | <percentage> ","media":"visual","inherited":true,"animationType":"byComputedValueType","percentages":"referToElementFontSize","groups":["CSS Text Decoration"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-underline-offset"},"text-underline-position":{"syntax":"auto | from-font | [ under || [ left | right ] ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text Decoration"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-underline-position"},"top":{"syntax":"<length> | <percentage> | auto","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToContainingBlockHeight","groups":["CSS Positioning"],"initial":"auto","appliesto":"positionedElements","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/top"},"touch-action":{"syntax":"auto | none | [ [ pan-x | pan-left | pan-right ] || [ pan-y | pan-up | pan-down ] || pinch-zoom ] | manipulation","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Pointer Events"],"initial":"auto","appliesto":"allElementsExceptNonReplacedInlineElementsTableRowsColumnsRowColumnGroups","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/touch-action"},"transform":{"syntax":"none | <transform-list>","media":"visual","inherited":false,"animationType":"transform","percentages":"referToSizeOfBoundingBox","groups":["CSS Transforms"],"initial":"none","appliesto":"transformableElements","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/transform"},"transform-box":{"syntax":"content-box | border-box | fill-box | stroke-box | view-box","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Transforms"],"initial":"view-box","appliesto":"transformableElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/transform-box"},"transform-origin":{"syntax":"[ <length-percentage> | left | center | right | top | bottom ] | [ [ <length-percentage> | left | center | right ] && [ <length-percentage> | top | center | bottom ] ] <length>?","media":"visual","inherited":false,"animationType":"simpleListOfLpc","percentages":"referToSizeOfBoundingBox","groups":["CSS Transforms"],"initial":"50% 50% 0","appliesto":"transformableElements","computed":"forLengthAbsoluteValueOtherwisePercentage","order":"oneOrTwoValuesLengthAbsoluteKeywordsPercentages","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/transform-origin"},"transform-style":{"syntax":"flat | preserve-3d","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Transforms"],"initial":"flat","appliesto":"transformableElements","computed":"asSpecified","order":"uniqueOrder","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/transform-style"},"transition":{"syntax":"<single-transition>#","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Transitions"],"initial":["transition-delay","transition-duration","transition-property","transition-timing-function"],"appliesto":"allElementsAndPseudos","computed":["transition-delay","transition-duration","transition-property","transition-timing-function"],"order":"orderOfAppearance","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/transition"},"transition-delay":{"syntax":"<time>#","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Transitions"],"initial":"0s","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/transition-delay"},"transition-duration":{"syntax":"<time>#","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Transitions"],"initial":"0s","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/transition-duration"},"transition-property":{"syntax":"none | <single-transition-property>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Transitions"],"initial":"all","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/transition-property"},"transition-timing-function":{"syntax":"<timing-function>#","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Transitions"],"initial":"ease","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/transition-timing-function"},"translate":{"syntax":"none | <length-percentage> [ <length-percentage> <length>? ]?","media":"visual","inherited":false,"animationType":"transform","percentages":"referToSizeOfBoundingBox","groups":["CSS Transforms"],"initial":"none","appliesto":"transformableElements","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"perGrammar","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/translate"},"unicode-bidi":{"syntax":"normal | embed | isolate | bidi-override | isolate-override | plaintext","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Writing Modes"],"initial":"normal","appliesto":"allElementsSomeValuesNoEffectOnNonInlineElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/unicode-bidi"},"user-select":{"syntax":"auto | text | none | contain | all","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Basic User Interface"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/user-select"},"vertical-align":{"syntax":"baseline | sub | super | text-top | text-bottom | middle | top | bottom | <percentage> | <length>","media":"visual","inherited":false,"animationType":"length","percentages":"referToLineHeight","groups":["CSS Table"],"initial":"baseline","appliesto":"inlineLevelAndTableCellElements","computed":"absoluteLengthOrKeyword","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/vertical-align"},"visibility":{"syntax":"visible | hidden | collapse","media":"visual","inherited":true,"animationType":"visibility","percentages":"no","groups":["CSS Box Model"],"initial":"visible","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/visibility"},"white-space":{"syntax":"normal | pre | nowrap | pre-wrap | pre-line | break-spaces","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/white-space"},"widows":{"syntax":"<integer>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fragmentation"],"initial":"2","appliesto":"blockContainerElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/widows"},"width":{"syntax":"auto | <length> | <percentage> | min-content | max-content | fit-content(<length-percentage>)","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"auto","appliesto":"allElementsButNonReplacedAndTableRows","computed":"percentageAutoOrAbsoluteLength","order":"lengthOrPercentageBeforeKeywordIfBothPresent","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/width"},"will-change":{"syntax":"auto | <animateable-feature>#","media":"all","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Will Change"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/will-change"},"word-break":{"syntax":"normal | break-all | keep-all | break-word","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/word-break"},"word-spacing":{"syntax":"normal | <length-percentage>","media":"visual","inherited":true,"animationType":"length","percentages":"referToWidthOfAffectedGlyph","groups":["CSS Text"],"initial":"normal","appliesto":"allElements","computed":"optimumMinAndMaxValueOfAbsoluteLengthPercentageOrNormal","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/word-spacing"},"word-wrap":{"syntax":"normal | break-word","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"normal","appliesto":"nonReplacedInlineElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overflow-wrap"},"writing-mode":{"syntax":"horizontal-tb | vertical-rl | vertical-lr | sideways-rl | sideways-lr","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Writing Modes"],"initial":"horizontal-tb","appliesto":"allElementsExceptTableRowColumnGroupsTableRowsColumns","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/writing-mode"},"z-index":{"syntax":"auto | <integer>","media":"visual","inherited":false,"animationType":"integer","percentages":"no","groups":["CSS Positioning"],"initial":"auto","appliesto":"positionedElements","computed":"asSpecified","order":"uniqueOrder","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/z-index"},"zoom":{"syntax":"normal | reset | <number> | <percentage>","media":"visual","inherited":false,"animationType":"integer","percentages":"no","groups":["Microsoft Extensions"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/zoom"}}')},99262:function(ce){"use strict";ce.exports=JSON.parse('{"absolute-size":{"syntax":"xx-small | x-small | small | medium | large | x-large | xx-large | xxx-large"},"alpha-value":{"syntax":"<number> | <percentage>"},"angle-percentage":{"syntax":"<angle> | <percentage>"},"angular-color-hint":{"syntax":"<angle-percentage>"},"angular-color-stop":{"syntax":"<color> && <color-stop-angle>?"},"angular-color-stop-list":{"syntax":"[ <angular-color-stop> [, <angular-color-hint>]? ]# , <angular-color-stop>"},"animateable-feature":{"syntax":"scroll-position | contents | <custom-ident>"},"attachment":{"syntax":"scroll | fixed | local"},"attr()":{"syntax":"attr( <attr-name> <type-or-unit>? [, <attr-fallback> ]? )"},"attr-matcher":{"syntax":"[ \'~\' | \'|\' | \'^\' | \'$\' | \'*\' ]? \'=\'"},"attr-modifier":{"syntax":"i | s"},"attribute-selector":{"syntax":"\'[\' <wq-name> \']\' | \'[\' <wq-name> <attr-matcher> [ <string-token> | <ident-token> ] <attr-modifier>? \']\'"},"auto-repeat":{"syntax":"repeat( [ auto-fill | auto-fit ] , [ <line-names>? <fixed-size> ]+ <line-names>? )"},"auto-track-list":{"syntax":"[ <line-names>? [ <fixed-size> | <fixed-repeat> ] ]* <line-names>? <auto-repeat>\\n[ <line-names>? [ <fixed-size> | <fixed-repeat> ] ]* <line-names>?"},"baseline-position":{"syntax":"[ first | last ]? baseline"},"basic-shape":{"syntax":"<inset()> | <circle()> | <ellipse()> | <polygon()> | <path()>"},"bg-image":{"syntax":"none | <image>"},"bg-layer":{"syntax":"<bg-image> || <bg-position> [ / <bg-size> ]? || <repeat-style> || <attachment> || <box> || <box>"},"bg-position":{"syntax":"[ [ left | center | right | top | bottom | <length-percentage> ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ] | [ center | [ left | right ] <length-percentage>? ] && [ center | [ top | bottom ] <length-percentage>? ] ]"},"bg-size":{"syntax":"[ <length-percentage> | auto ]{1,2} | cover | contain"},"blur()":{"syntax":"blur( <length> )"},"blend-mode":{"syntax":"normal | multiply | screen | overlay | darken | lighten | color-dodge | color-burn | hard-light | soft-light | difference | exclusion | hue | saturation | color | luminosity"},"box":{"syntax":"border-box | padding-box | content-box"},"brightness()":{"syntax":"brightness( <number-percentage> )"},"calc()":{"syntax":"calc( <calc-sum> )"},"calc-sum":{"syntax":"<calc-product> [ [ \'+\' | \'-\' ] <calc-product> ]*"},"calc-product":{"syntax":"<calc-value> [ \'*\' <calc-value> | \'/\' <number> ]*"},"calc-value":{"syntax":"<number> | <dimension> | <percentage> | ( <calc-sum> )"},"cf-final-image":{"syntax":"<image> | <color>"},"cf-mixing-image":{"syntax":"<percentage>? && <image>"},"circle()":{"syntax":"circle( [ <shape-radius> ]? [ at <position> ]? )"},"clamp()":{"syntax":"clamp( <calc-sum>#{3} )"},"class-selector":{"syntax":"\'.\' <ident-token>"},"clip-source":{"syntax":"<url>"},"color":{"syntax":"<rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>"},"color-stop":{"syntax":"<color-stop-length> | <color-stop-angle>"},"color-stop-angle":{"syntax":"<angle-percentage>{1,2}"},"color-stop-length":{"syntax":"<length-percentage>{1,2}"},"color-stop-list":{"syntax":"[ <linear-color-stop> [, <linear-color-hint>]? ]# , <linear-color-stop>"},"combinator":{"syntax":"\'>\' | \'+\' | \'~\' | [ \'||\' ]"},"common-lig-values":{"syntax":"[ common-ligatures | no-common-ligatures ]"},"compat-auto":{"syntax":"searchfield | textarea | push-button | slider-horizontal | checkbox | radio | square-button | menulist | listbox | meter | progress-bar | button"},"composite-style":{"syntax":"clear | copy | source-over | source-in | source-out | source-atop | destination-over | destination-in | destination-out | destination-atop | xor"},"compositing-operator":{"syntax":"add | subtract | intersect | exclude"},"compound-selector":{"syntax":"[ <type-selector>? <subclass-selector>* [ <pseudo-element-selector> <pseudo-class-selector>* ]* ]!"},"compound-selector-list":{"syntax":"<compound-selector>#"},"complex-selector":{"syntax":"<compound-selector> [ <combinator>? <compound-selector> ]*"},"complex-selector-list":{"syntax":"<complex-selector>#"},"conic-gradient()":{"syntax":"conic-gradient( [ from <angle> ]? [ at <position> ]?, <angular-color-stop-list> )"},"contextual-alt-values":{"syntax":"[ contextual | no-contextual ]"},"content-distribution":{"syntax":"space-between | space-around | space-evenly | stretch"},"content-list":{"syntax":"[ <string> | contents | <image> | <quote> | <target> | <leader()> ]+"},"content-position":{"syntax":"center | start | end | flex-start | flex-end"},"content-replacement":{"syntax":"<image>"},"contrast()":{"syntax":"contrast( [ <number-percentage> ] )"},"counter()":{"syntax":"counter( <custom-ident>, <counter-style>? )"},"counter-style":{"syntax":"<counter-style-name> | symbols()"},"counter-style-name":{"syntax":"<custom-ident>"},"counters()":{"syntax":"counters( <custom-ident>, <string>, <counter-style>? )"},"cross-fade()":{"syntax":"cross-fade( <cf-mixing-image> , <cf-final-image>? )"},"cubic-bezier-timing-function":{"syntax":"ease | ease-in | ease-out | ease-in-out | cubic-bezier(<number [0,1]>, <number>, <number [0,1]>, <number>)"},"deprecated-system-color":{"syntax":"ActiveBorder | ActiveCaption | AppWorkspace | Background | ButtonFace | ButtonHighlight | ButtonShadow | ButtonText | CaptionText | GrayText | Highlight | HighlightText | InactiveBorder | InactiveCaption | InactiveCaptionText | InfoBackground | InfoText | Menu | MenuText | Scrollbar | ThreeDDarkShadow | ThreeDFace | ThreeDHighlight | ThreeDLightShadow | ThreeDShadow | Window | WindowFrame | WindowText"},"discretionary-lig-values":{"syntax":"[ discretionary-ligatures | no-discretionary-ligatures ]"},"display-box":{"syntax":"contents | none"},"display-inside":{"syntax":"flow | flow-root | table | flex | grid | ruby"},"display-internal":{"syntax":"table-row-group | table-header-group | table-footer-group | table-row | table-cell | table-column-group | table-column | table-caption | ruby-base | ruby-text | ruby-base-container | ruby-text-container"},"display-legacy":{"syntax":"inline-block | inline-list-item | inline-table | inline-flex | inline-grid"},"display-listitem":{"syntax":"<display-outside>? && [ flow | flow-root ]? && list-item"},"display-outside":{"syntax":"block | inline | run-in"},"drop-shadow()":{"syntax":"drop-shadow( <length>{2,3} <color>? )"},"east-asian-variant-values":{"syntax":"[ jis78 | jis83 | jis90 | jis04 | simplified | traditional ]"},"east-asian-width-values":{"syntax":"[ full-width | proportional-width ]"},"element()":{"syntax":"element( <id-selector> )"},"ellipse()":{"syntax":"ellipse( [ <shape-radius>{2} ]? [ at <position> ]? )"},"ending-shape":{"syntax":"circle | ellipse"},"env()":{"syntax":"env( <custom-ident> , <declaration-value>? )"},"explicit-track-list":{"syntax":"[ <line-names>? <track-size> ]+ <line-names>?"},"family-name":{"syntax":"<string> | <custom-ident>+"},"feature-tag-value":{"syntax":"<string> [ <integer> | on | off ]?"},"feature-type":{"syntax":"@stylistic | @historical-forms | @styleset | @character-variant | @swash | @ornaments | @annotation"},"feature-value-block":{"syntax":"<feature-type> \'{\' <feature-value-declaration-list> \'}\'"},"feature-value-block-list":{"syntax":"<feature-value-block>+"},"feature-value-declaration":{"syntax":"<custom-ident>: <integer>+;"},"feature-value-declaration-list":{"syntax":"<feature-value-declaration>"},"feature-value-name":{"syntax":"<custom-ident>"},"fill-rule":{"syntax":"nonzero | evenodd"},"filter-function":{"syntax":"<blur()> | <brightness()> | <contrast()> | <drop-shadow()> | <grayscale()> | <hue-rotate()> | <invert()> | <opacity()> | <saturate()> | <sepia()>"},"filter-function-list":{"syntax":"[ <filter-function> | <url> ]+"},"final-bg-layer":{"syntax":"<\'background-color\'> || <bg-image> || <bg-position> [ / <bg-size> ]? || <repeat-style> || <attachment> || <box> || <box>"},"fit-content()":{"syntax":"fit-content( [ <length> | <percentage> ] )"},"fixed-breadth":{"syntax":"<length-percentage>"},"fixed-repeat":{"syntax":"repeat( [ <positive-integer> ] , [ <line-names>? <fixed-size> ]+ <line-names>? )"},"fixed-size":{"syntax":"<fixed-breadth> | minmax( <fixed-breadth> , <track-breadth> ) | minmax( <inflexible-breadth> , <fixed-breadth> )"},"font-stretch-absolute":{"syntax":"normal | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded | <percentage>"},"font-variant-css21":{"syntax":"[ normal | small-caps ]"},"font-weight-absolute":{"syntax":"normal | bold | <number [1,1000]>"},"frequency-percentage":{"syntax":"<frequency> | <percentage>"},"general-enclosed":{"syntax":"[ <function-token> <any-value> ) ] | ( <ident> <any-value> )"},"generic-family":{"syntax":"serif | sans-serif | cursive | fantasy | monospace"},"generic-name":{"syntax":"serif | sans-serif | cursive | fantasy | monospace"},"geometry-box":{"syntax":"<shape-box> | fill-box | stroke-box | view-box"},"gradient":{"syntax":"<linear-gradient()> | <repeating-linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()>"},"grayscale()":{"syntax":"grayscale( <number-percentage> )"},"grid-line":{"syntax":"auto | <custom-ident> | [ <integer> && <custom-ident>? ] | [ span && [ <integer> || <custom-ident> ] ]"},"historical-lig-values":{"syntax":"[ historical-ligatures | no-historical-ligatures ]"},"hsl()":{"syntax":"hsl( <hue> <percentage> <percentage> [ / <alpha-value> ]? ) | hsl( <hue>, <percentage>, <percentage>, <alpha-value>? )"},"hsla()":{"syntax":"hsla( <hue> <percentage> <percentage> [ / <alpha-value> ]? ) | hsla( <hue>, <percentage>, <percentage>, <alpha-value>? )"},"hue":{"syntax":"<number> | <angle>"},"hue-rotate()":{"syntax":"hue-rotate( <angle> )"},"id-selector":{"syntax":"<hash-token>"},"image":{"syntax":"<url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient>"},"image()":{"syntax":"image( <image-tags>? [ <image-src>? , <color>? ]! )"},"image-set()":{"syntax":"image-set( <image-set-option># )"},"image-set-option":{"syntax":"[ <image> | <string> ] <resolution>"},"image-src":{"syntax":"<url> | <string>"},"image-tags":{"syntax":"ltr | rtl"},"inflexible-breadth":{"syntax":"<length> | <percentage> | min-content | max-content | auto"},"inset()":{"syntax":"inset( <length-percentage>{1,4} [ round <\'border-radius\'> ]? )"},"invert()":{"syntax":"invert( <number-percentage> )"},"keyframes-name":{"syntax":"<custom-ident> | <string>"},"keyframe-block":{"syntax":"<keyframe-selector># {\\n <declaration-list>\\n}"},"keyframe-block-list":{"syntax":"<keyframe-block>+"},"keyframe-selector":{"syntax":"from | to | <percentage>"},"leader()":{"syntax":"leader( <leader-type> )"},"leader-type":{"syntax":"dotted | solid | space | <string>"},"length-percentage":{"syntax":"<length> | <percentage>"},"line-names":{"syntax":"\'[\' <custom-ident>* \']\'"},"line-name-list":{"syntax":"[ <line-names> | <name-repeat> ]+"},"line-style":{"syntax":"none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset"},"line-width":{"syntax":"<length> | thin | medium | thick"},"linear-color-hint":{"syntax":"<length-percentage>"},"linear-color-stop":{"syntax":"<color> <color-stop-length>?"},"linear-gradient()":{"syntax":"linear-gradient( [ <angle> | to <side-or-corner> ]? , <color-stop-list> )"},"mask-layer":{"syntax":"<mask-reference> || <position> [ / <bg-size> ]? || <repeat-style> || <geometry-box> || [ <geometry-box> | no-clip ] || <compositing-operator> || <masking-mode>"},"mask-position":{"syntax":"[ <length-percentage> | left | center | right ] [ <length-percentage> | top | center | bottom ]?"},"mask-reference":{"syntax":"none | <image> | <mask-source>"},"mask-source":{"syntax":"<url>"},"masking-mode":{"syntax":"alpha | luminance | match-source"},"matrix()":{"syntax":"matrix( <number>#{6} )"},"matrix3d()":{"syntax":"matrix3d( <number>#{16} )"},"max()":{"syntax":"max( <calc-sum># )"},"media-and":{"syntax":"<media-in-parens> [ and <media-in-parens> ]+"},"media-condition":{"syntax":"<media-not> | <media-and> | <media-or> | <media-in-parens>"},"media-condition-without-or":{"syntax":"<media-not> | <media-and> | <media-in-parens>"},"media-feature":{"syntax":"( [ <mf-plain> | <mf-boolean> | <mf-range> ] )"},"media-in-parens":{"syntax":"( <media-condition> ) | <media-feature> | <general-enclosed>"},"media-not":{"syntax":"not <media-in-parens>"},"media-or":{"syntax":"<media-in-parens> [ or <media-in-parens> ]+"},"media-query":{"syntax":"<media-condition> | [ not | only ]? <media-type> [ and <media-condition-without-or> ]?"},"media-query-list":{"syntax":"<media-query>#"},"media-type":{"syntax":"<ident>"},"mf-boolean":{"syntax":"<mf-name>"},"mf-name":{"syntax":"<ident>"},"mf-plain":{"syntax":"<mf-name> : <mf-value>"},"mf-range":{"syntax":"<mf-name> [ \'<\' | \'>\' ]? \'=\'? <mf-value>\\n| <mf-value> [ \'<\' | \'>\' ]? \'=\'? <mf-name>\\n| <mf-value> \'<\' \'=\'? <mf-name> \'<\' \'=\'? <mf-value>\\n| <mf-value> \'>\' \'=\'? <mf-name> \'>\' \'=\'? <mf-value>"},"mf-value":{"syntax":"<number> | <dimension> | <ident> | <ratio>"},"min()":{"syntax":"min( <calc-sum># )"},"minmax()":{"syntax":"minmax( [ <length> | <percentage> | min-content | max-content | auto ] , [ <length> | <percentage> | <flex> | min-content | max-content | auto ] )"},"named-color":{"syntax":"transparent | aliceblue | antiquewhite | aqua | aquamarine | azure | beige | bisque | black | blanchedalmond | blue | blueviolet | brown | burlywood | cadetblue | chartreuse | chocolate | coral | cornflowerblue | cornsilk | crimson | cyan | darkblue | darkcyan | darkgoldenrod | darkgray | darkgreen | darkgrey | darkkhaki | darkmagenta | darkolivegreen | darkorange | darkorchid | darkred | darksalmon | darkseagreen | darkslateblue | darkslategray | darkslategrey | darkturquoise | darkviolet | deeppink | deepskyblue | dimgray | dimgrey | dodgerblue | firebrick | floralwhite | forestgreen | fuchsia | gainsboro | ghostwhite | gold | goldenrod | gray | green | greenyellow | grey | honeydew | hotpink | indianred | indigo | ivory | khaki | lavender | lavenderblush | lawngreen | lemonchiffon | lightblue | lightcoral | lightcyan | lightgoldenrodyellow | lightgray | lightgreen | lightgrey | lightpink | lightsalmon | lightseagreen | lightskyblue | lightslategray | lightslategrey | lightsteelblue | lightyellow | lime | limegreen | linen | magenta | maroon | mediumaquamarine | mediumblue | mediumorchid | mediumpurple | mediumseagreen | mediumslateblue | mediumspringgreen | mediumturquoise | mediumvioletred | midnightblue | mintcream | mistyrose | moccasin | navajowhite | navy | oldlace | olive | olivedrab | orange | orangered | orchid | palegoldenrod | palegreen | paleturquoise | palevioletred | papayawhip | peachpuff | peru | pink | plum | powderblue | purple | rebeccapurple | red | rosybrown | royalblue | saddlebrown | salmon | sandybrown | seagreen | seashell | sienna | silver | skyblue | slateblue | slategray | slategrey | snow | springgreen | steelblue | tan | teal | thistle | tomato | turquoise | violet | wheat | white | whitesmoke | yellow | yellowgreen"},"namespace-prefix":{"syntax":"<ident>"},"ns-prefix":{"syntax":"[ <ident-token> | \'*\' ]? \'|\'"},"number-percentage":{"syntax":"<number> | <percentage>"},"numeric-figure-values":{"syntax":"[ lining-nums | oldstyle-nums ]"},"numeric-fraction-values":{"syntax":"[ diagonal-fractions | stacked-fractions ]"},"numeric-spacing-values":{"syntax":"[ proportional-nums | tabular-nums ]"},"nth":{"syntax":"<an-plus-b> | even | odd"},"opacity()":{"syntax":"opacity( [ <number-percentage> ] )"},"overflow-position":{"syntax":"unsafe | safe"},"outline-radius":{"syntax":"<length> | <percentage>"},"page-body":{"syntax":"<declaration>? [ ; <page-body> ]? | <page-margin-box> <page-body>"},"page-margin-box":{"syntax":"<page-margin-box-type> \'{\' <declaration-list> \'}\'"},"page-margin-box-type":{"syntax":"@top-left-corner | @top-left | @top-center | @top-right | @top-right-corner | @bottom-left-corner | @bottom-left | @bottom-center | @bottom-right | @bottom-right-corner | @left-top | @left-middle | @left-bottom | @right-top | @right-middle | @right-bottom"},"page-selector-list":{"syntax":"[ <page-selector># ]?"},"page-selector":{"syntax":"<pseudo-page>+ | <ident> <pseudo-page>*"},"path()":{"syntax":"path( [ <fill-rule>, ]? <string> )"},"paint()":{"syntax":"paint( <ident>, <declaration-value>? )"},"perspective()":{"syntax":"perspective( <length> )"},"polygon()":{"syntax":"polygon( <fill-rule>? , [ <length-percentage> <length-percentage> ]# )"},"position":{"syntax":"[ [ left | center | right ] || [ top | center | bottom ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]? | [ [ left | right ] <length-percentage> ] && [ [ top | bottom ] <length-percentage> ] ]"},"pseudo-class-selector":{"syntax":"\':\' <ident-token> | \':\' <function-token> <any-value> \')\'"},"pseudo-element-selector":{"syntax":"\':\' <pseudo-class-selector>"},"pseudo-page":{"syntax":": [ left | right | first | blank ]"},"quote":{"syntax":"open-quote | close-quote | no-open-quote | no-close-quote"},"radial-gradient()":{"syntax":"radial-gradient( [ <ending-shape> || <size> ]? [ at <position> ]? , <color-stop-list> )"},"relative-selector":{"syntax":"<combinator>? <complex-selector>"},"relative-selector-list":{"syntax":"<relative-selector>#"},"relative-size":{"syntax":"larger | smaller"},"repeat-style":{"syntax":"repeat-x | repeat-y | [ repeat | space | round | no-repeat ]{1,2}"},"repeating-linear-gradient()":{"syntax":"repeating-linear-gradient( [ <angle> | to <side-or-corner> ]? , <color-stop-list> )"},"repeating-radial-gradient()":{"syntax":"repeating-radial-gradient( [ <ending-shape> || <size> ]? [ at <position> ]? , <color-stop-list> )"},"rgb()":{"syntax":"rgb( <percentage>{3} [ / <alpha-value> ]? ) | rgb( <number>{3} [ / <alpha-value> ]? ) | rgb( <percentage>#{3} , <alpha-value>? ) | rgb( <number>#{3} , <alpha-value>? )"},"rgba()":{"syntax":"rgba( <percentage>{3} [ / <alpha-value> ]? ) | rgba( <number>{3} [ / <alpha-value> ]? ) | rgba( <percentage>#{3} , <alpha-value>? ) | rgba( <number>#{3} , <alpha-value>? )"},"rotate()":{"syntax":"rotate( [ <angle> | <zero> ] )"},"rotate3d()":{"syntax":"rotate3d( <number> , <number> , <number> , [ <angle> | <zero> ] )"},"rotateX()":{"syntax":"rotateX( [ <angle> | <zero> ] )"},"rotateY()":{"syntax":"rotateY( [ <angle> | <zero> ] )"},"rotateZ()":{"syntax":"rotateZ( [ <angle> | <zero> ] )"},"saturate()":{"syntax":"saturate( <number-percentage> )"},"scale()":{"syntax":"scale( <number> , <number>? )"},"scale3d()":{"syntax":"scale3d( <number> , <number> , <number> )"},"scaleX()":{"syntax":"scaleX( <number> )"},"scaleY()":{"syntax":"scaleY( <number> )"},"scaleZ()":{"syntax":"scaleZ( <number> )"},"self-position":{"syntax":"center | start | end | self-start | self-end | flex-start | flex-end"},"shape-radius":{"syntax":"<length-percentage> | closest-side | farthest-side"},"skew()":{"syntax":"skew( [ <angle> | <zero> ] , [ <angle> | <zero> ]? )"},"skewX()":{"syntax":"skewX( [ <angle> | <zero> ] )"},"skewY()":{"syntax":"skewY( [ <angle> | <zero> ] )"},"sepia()":{"syntax":"sepia( <number-percentage> )"},"shadow":{"syntax":"inset? && <length>{2,4} && <color>?"},"shadow-t":{"syntax":"[ <length>{2,3} && <color>? ]"},"shape":{"syntax":"rect(<top>, <right>, <bottom>, <left>)"},"shape-box":{"syntax":"<box> | margin-box"},"side-or-corner":{"syntax":"[ left | right ] || [ top | bottom ]"},"single-animation":{"syntax":"<time> || <timing-function> || <time> || <single-animation-iteration-count> || <single-animation-direction> || <single-animation-fill-mode> || <single-animation-play-state> || [ none | <keyframes-name> ]"},"single-animation-direction":{"syntax":"normal | reverse | alternate | alternate-reverse"},"single-animation-fill-mode":{"syntax":"none | forwards | backwards | both"},"single-animation-iteration-count":{"syntax":"infinite | <number>"},"single-animation-play-state":{"syntax":"running | paused"},"single-transition":{"syntax":"[ none | <single-transition-property> ] || <time> || <timing-function> || <time>"},"single-transition-property":{"syntax":"all | <custom-ident>"},"size":{"syntax":"closest-side | farthest-side | closest-corner | farthest-corner | <length> | <length-percentage>{2}"},"step-position":{"syntax":"jump-start | jump-end | jump-none | jump-both | start | end"},"step-timing-function":{"syntax":"step-start | step-end | steps(<integer>[, <step-position>]?)"},"subclass-selector":{"syntax":"<id-selector> | <class-selector> | <attribute-selector> | <pseudo-class-selector>"},"supports-condition":{"syntax":"not <supports-in-parens> | <supports-in-parens> [ and <supports-in-parens> ]* | <supports-in-parens> [ or <supports-in-parens> ]*"},"supports-in-parens":{"syntax":"( <supports-condition> ) | <supports-feature> | <general-enclosed>"},"supports-feature":{"syntax":"<supports-decl> | <supports-selector-fn>"},"supports-decl":{"syntax":"( <declaration> )"},"supports-selector-fn":{"syntax":"selector( <complex-selector> )"},"symbol":{"syntax":"<string> | <image> | <custom-ident>"},"target":{"syntax":"<target-counter()> | <target-counters()> | <target-text()>"},"target-counter()":{"syntax":"target-counter( [ <string> | <url> ] , <custom-ident> , <counter-style>? )"},"target-counters()":{"syntax":"target-counters( [ <string> | <url> ] , <custom-ident> , <string> , <counter-style>? )"},"target-text()":{"syntax":"target-text( [ <string> | <url> ] , [ content | before | after | first-letter ]? )"},"time-percentage":{"syntax":"<time> | <percentage>"},"timing-function":{"syntax":"linear | <cubic-bezier-timing-function> | <step-timing-function>"},"track-breadth":{"syntax":"<length-percentage> | <flex> | min-content | max-content | auto"},"track-list":{"syntax":"[ <line-names>? [ <track-size> | <track-repeat> ] ]+ <line-names>?"},"track-repeat":{"syntax":"repeat( [ <positive-integer> ] , [ <line-names>? <track-size> ]+ <line-names>? )"},"track-size":{"syntax":"<track-breadth> | minmax( <inflexible-breadth> , <track-breadth> ) | fit-content( [ <length> | <percentage> ] )"},"transform-function":{"syntax":"<matrix()> | <translate()> | <translateX()> | <translateY()> | <scale()> | <scaleX()> | <scaleY()> | <rotate()> | <skew()> | <skewX()> | <skewY()> | <matrix3d()> | <translate3d()> | <translateZ()> | <scale3d()> | <scaleZ()> | <rotate3d()> | <rotateX()> | <rotateY()> | <rotateZ()> | <perspective()>"},"transform-list":{"syntax":"<transform-function>+"},"translate()":{"syntax":"translate( <length-percentage> , <length-percentage>? )"},"translate3d()":{"syntax":"translate3d( <length-percentage> , <length-percentage> , <length> )"},"translateX()":{"syntax":"translateX( <length-percentage> )"},"translateY()":{"syntax":"translateY( <length-percentage> )"},"translateZ()":{"syntax":"translateZ( <length> )"},"type-or-unit":{"syntax":"string | color | url | integer | number | length | angle | time | frequency | cap | ch | em | ex | ic | lh | rlh | rem | vb | vi | vw | vh | vmin | vmax | mm | Q | cm | in | pt | pc | px | deg | grad | rad | turn | ms | s | Hz | kHz | %"},"type-selector":{"syntax":"<wq-name> | <ns-prefix>? \'*\'"},"var()":{"syntax":"var( <custom-property-name> , <declaration-value>? )"},"viewport-length":{"syntax":"auto | <length-percentage>"},"wq-name":{"syntax":"<ns-prefix>? <ident-token>"}}')},4147:function(ce){"use strict";ce.exports={i8:"2.2.25"}}},function(ce){ce(ce.s=75161)}]);